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
#include "gamepad.h" #include "asm_decl.h" #include <xc.h> void HIGH() { CLR(); _delay(8); SET(); _delay(32); } void LOW() { CLR(); _delay(32); SET(); _delay(8); } uint8_t pack_byte(int8_t* r) { uint8_t x = 0; for (uint8_t m = 0x80; m; m >>= 1) { if (*r++ >= 0) x |= m; } return x; }
14.96
23
(translation_unit) "#include "gamepad.h"\n#include "asm_decl.h"\n#include <xc.h>\n\nvoid HIGH() { \n CLR();\n _delay(8);\n SET(); \n _delay(32);\n}\nvoid LOW() {\n CLR(); \n _delay(32);\n SET(); \n _delay(8);\n}\n\nuint8_t pack_byte(int8_t* r) {\n uint8_t x = 0;\n for (uint8_t m = 0x80; m; m >>= 1) {\n if (*r++ >= 0)\n x |= m;\n } \n return x;\n}" (preproc_include) "#include "gamepad.h"\n" (#include) "#include" (string_literal) ""gamepad.h"" (") """ (string_content) "gamepad.h" (") """ (preproc_include) "#include "asm_decl.h"\n" (#include) "#include" (string_literal) ""asm_decl.h"" (") """ (string_content) "asm_decl.h" (") """ (preproc_include) "#include <xc.h>\n" (#include) "#include" (system_lib_string) "<xc.h>" (function_definition) "void HIGH() { \n CLR();\n _delay(8);\n SET(); \n _delay(32);\n}" (primitive_type) "void" (function_declarator) "HIGH()" (identifier) "HIGH" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ \n CLR();\n _delay(8);\n SET(); \n _delay(32);\n}" ({) "{" (expression_statement) "CLR();" (call_expression) "CLR()" (identifier) "CLR" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "_delay(8);" (call_expression) "_delay(8)" (identifier) "_delay" (argument_list) "(8)" (() "(" (number_literal) "8" ()) ")" (;) ";" (expression_statement) "SET();" (call_expression) "SET()" (identifier) "SET" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "_delay(32);" (call_expression) "_delay(32)" (identifier) "_delay" (argument_list) "(32)" (() "(" (number_literal) "32" ()) ")" (;) ";" (}) "}" (function_definition) "void LOW() {\n CLR(); \n _delay(32);\n SET(); \n _delay(8);\n}" (primitive_type) "void" (function_declarator) "LOW()" (identifier) "LOW" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n CLR(); \n _delay(32);\n SET(); \n _delay(8);\n}" ({) "{" (expression_statement) "CLR();" (call_expression) "CLR()" (identifier) "CLR" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "_delay(32);" (call_expression) "_delay(32)" (identifier) "_delay" (argument_list) "(32)" (() "(" (number_literal) "32" ()) ")" (;) ";" (expression_statement) "SET();" (call_expression) "SET()" (identifier) "SET" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "_delay(8);" (call_expression) "_delay(8)" (identifier) "_delay" (argument_list) "(8)" (() "(" (number_literal) "8" ()) ")" (;) ";" (}) "}" (function_definition) "uint8_t pack_byte(int8_t* r) {\n uint8_t x = 0;\n for (uint8_t m = 0x80; m; m >>= 1) {\n if (*r++ >= 0)\n x |= m;\n } \n return x;\n}" (primitive_type) "uint8_t" (function_declarator) "pack_byte(int8_t* r)" (identifier) "pack_byte" (parameter_list) "(int8_t* r)" (() "(" (parameter_declaration) "int8_t* r" (primitive_type) "int8_t" (pointer_declarator) "* r" (*) "*" (identifier) "r" ()) ")" (compound_statement) "{\n uint8_t x = 0;\n for (uint8_t m = 0x80; m; m >>= 1) {\n if (*r++ >= 0)\n x |= m;\n } \n return x;\n}" ({) "{" (declaration) "uint8_t x = 0;" (primitive_type) "uint8_t" (init_declarator) "x = 0" (identifier) "x" (=) "=" (number_literal) "0" (;) ";" (for_statement) "for (uint8_t m = 0x80; m; m >>= 1) {\n if (*r++ >= 0)\n x |= m;\n }" (for) "for" (() "(" (declaration) "uint8_t m = 0x80;" (primitive_type) "uint8_t" (init_declarator) "m = 0x80" (identifier) "m" (=) "=" (number_literal) "0x80" (;) ";" (identifier) "m" (;) ";" (assignment_expression) "m >>= 1" (identifier) "m" (>>=) ">>=" (number_literal) "1" ()) ")" (compound_statement) "{\n if (*r++ >= 0)\n x |= m;\n }" ({) "{" (if_statement) "if (*r++ >= 0)\n x |= m;" (if) "if" (parenthesized_expression) "(*r++ >= 0)" (() "(" (binary_expression) "*r++ >= 0" (pointer_expression) "*r++" (*) "*" (update_expression) "r++" (identifier) "r" (++) "++" (>=) ">=" (number_literal) "0" ()) ")" (expression_statement) "x |= m;" (assignment_expression) "x |= m" (identifier) "x" (|=) "|=" (identifier) "m" (;) ";" (}) "}" (return_statement) "return x;" (return) "return" (identifier) "x" (;) ";" (}) "}"
161
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 14.96, "nodes": 91, "errors": 0, "source_hash": "6de932a61873838b3aa2cb052849c48820130d6f0ff93b5ebf36a8adfa1ed7ef", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"gamepad.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": "\"gamepad.h\"", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 20}}, {"id": 3, "type": "preproc_include", "text": "#include \"asm_decl.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": "\"asm_decl.h\"", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 21}}, {"id": 6, "type": "preproc_include", "text": "#include <xc.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": "<xc.h>", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 15}}, {"id": 9, "type": "function_definition", "text": "void HIGH() { \n CLR();\n _delay(8);\n SET(); \n _delay(32);\n}", "parent": null, "children": [10, 11], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 9, "column": 1}}, {"id": 10, "type": "primitive_type", "text": "void", "parent": 9, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 4}}, {"id": 11, "type": "function_declarator", "text": "HIGH()", "parent": 9, "children": [12, 13], "start_point": {"row": 4, "column": 5}, "end_point": {"row": 4, "column": 11}}, {"id": 12, "type": "identifier", "text": "HIGH", "parent": 11, "children": [], "start_point": {"row": 4, "column": 5}, "end_point": {"row": 4, "column": 9}}, {"id": 13, "type": "parameter_list", "text": "()", "parent": 11, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 11}}, {"id": 14, "type": "call_expression", "text": "CLR()", "parent": 9, "children": [15, 16], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 9}}, {"id": 15, "type": "identifier", "text": "CLR", "parent": 14, "children": [], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 7}}, {"id": 16, "type": "argument_list", "text": "()", "parent": 14, "children": [], "start_point": {"row": 5, "column": 7}, "end_point": {"row": 5, "column": 9}}, {"id": 17, "type": "call_expression", "text": "_delay(8)", "parent": 9, "children": [18, 19], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 13}}, {"id": 18, "type": "identifier", "text": "_delay", "parent": 17, "children": [], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 10}}, {"id": 19, "type": "argument_list", "text": "(8)", "parent": 17, "children": [20], "start_point": {"row": 6, "column": 10}, "end_point": {"row": 6, "column": 13}}, {"id": 20, "type": "number_literal", "text": "8", "parent": 19, "children": [], "start_point": {"row": 6, "column": 11}, "end_point": {"row": 6, "column": 12}}, {"id": 21, "type": "call_expression", "text": "SET()", "parent": 9, "children": [22, 23], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 9}}, {"id": 22, "type": "identifier", "text": "SET", "parent": 21, "children": [], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 7}}, {"id": 23, "type": "argument_list", "text": "()", "parent": 21, "children": [], "start_point": {"row": 7, "column": 7}, "end_point": {"row": 7, "column": 9}}, {"id": 24, "type": "call_expression", "text": "_delay(32)", "parent": 9, "children": [25, 26], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 14}}, {"id": 25, "type": "identifier", "text": "_delay", "parent": 24, "children": [], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 10}}, {"id": 26, "type": "argument_list", "text": "(32)", "parent": 24, "children": [27], "start_point": {"row": 8, "column": 10}, "end_point": {"row": 8, "column": 14}}, {"id": 27, "type": "number_literal", "text": "32", "parent": 26, "children": [], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 13}}, {"id": 28, "type": "function_definition", "text": "void LOW() {\n CLR(); \n _delay(32);\n SET(); \n _delay(8);\n}", "parent": null, "children": [29, 30], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 29, "type": "primitive_type", "text": "void", "parent": 28, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 4}}, {"id": 30, "type": "function_declarator", "text": "LOW()", "parent": 28, "children": [31, 32], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 10}}, {"id": 31, "type": "identifier", "text": "LOW", "parent": 30, "children": [], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 8}}, {"id": 32, "type": "parameter_list", "text": "()", "parent": 30, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 10}}, {"id": 33, "type": "call_expression", "text": "CLR()", "parent": 28, "children": [34, 35], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 9}}, {"id": 34, "type": "identifier", "text": "CLR", "parent": 33, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 7}}, {"id": 35, "type": "argument_list", "text": "()", "parent": 33, "children": [], "start_point": {"row": 11, "column": 7}, "end_point": {"row": 11, "column": 9}}, {"id": 36, "type": "call_expression", "text": "_delay(32)", "parent": 28, "children": [37, 38], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 14}}, {"id": 37, "type": "identifier", "text": "_delay", "parent": 36, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 10}}, {"id": 38, "type": "argument_list", "text": "(32)", "parent": 36, "children": [39], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 14}}, {"id": 39, "type": "number_literal", "text": "32", "parent": 38, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 13}}, {"id": 40, "type": "call_expression", "text": "SET()", "parent": 28, "children": [41, 42], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 9}}, {"id": 41, "type": "identifier", "text": "SET", "parent": 40, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 7}}, {"id": 42, "type": "argument_list", "text": "()", "parent": 40, "children": [], "start_point": {"row": 13, "column": 7}, "end_point": {"row": 13, "column": 9}}, {"id": 43, "type": "call_expression", "text": "_delay(8)", "parent": 28, "children": [44, 45], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 13}}, {"id": 44, "type": "identifier", "text": "_delay", "parent": 43, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 10}}, {"id": 45, "type": "argument_list", "text": "(8)", "parent": 43, "children": [46], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 13}}, {"id": 46, "type": "number_literal", "text": "8", "parent": 45, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 12}}, {"id": 47, "type": "function_definition", "text": "uint8_t pack_byte(int8_t* r) {\n uint8_t x = 0;\n for (uint8_t m = 0x80; m; m >>= 1) {\n if (*r++ >= 0)\n x |= m;\n } \n return x;\n}", "parent": null, "children": [48, 49], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 48, "type": "primitive_type", "text": "uint8_t", "parent": 47, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 7}}, {"id": 49, "type": "function_declarator", "text": "pack_byte(int8_t* r)", "parent": 47, "children": [50, 51], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 28}}, {"id": 50, "type": "identifier", "text": "pack_byte", "parent": 49, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 17}}, {"id": 51, "type": "parameter_list", "text": "(int8_t* r)", "parent": 49, "children": [52], "start_point": {"row": 17, "column": 17}, "end_point": {"row": 17, "column": 28}}, {"id": 52, "type": "parameter_declaration", "text": "int8_t* r", "parent": 51, "children": [53, 54], "start_point": {"row": 17, "column": 18}, "end_point": {"row": 17, "column": 27}}, {"id": 53, "type": "primitive_type", "text": "int8_t", "parent": 52, "children": [], "start_point": {"row": 17, "column": 18}, "end_point": {"row": 17, "column": 24}}, {"id": 54, "type": "pointer_declarator", "text": "* r", "parent": 52, "children": [55, 56], "start_point": {"row": 17, "column": 24}, "end_point": {"row": 17, "column": 27}}, {"id": 55, "type": "*", "text": "*", "parent": 54, "children": [], "start_point": {"row": 17, "column": 24}, "end_point": {"row": 17, "column": 25}}, {"id": 56, "type": "identifier", "text": "r", "parent": 54, "children": [], "start_point": {"row": 17, "column": 26}, "end_point": {"row": 17, "column": 27}}, {"id": 57, "type": "declaration", "text": "uint8_t x = 0;", "parent": 47, "children": [58, 59], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 18}}, {"id": 58, "type": "primitive_type", "text": "uint8_t", "parent": 57, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 11}}, {"id": 59, "type": "init_declarator", "text": "x = 0", "parent": 57, "children": [60, 61, 62], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 17}}, {"id": 60, "type": "identifier", "text": "x", "parent": 59, "children": [], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 13}}, {"id": 61, "type": "=", "text": "=", "parent": 59, "children": [], "start_point": {"row": 18, "column": 14}, "end_point": {"row": 18, "column": 15}}, {"id": 62, "type": "number_literal", "text": "0", "parent": 59, "children": [], "start_point": {"row": 18, "column": 16}, "end_point": {"row": 18, "column": 17}}, {"id": 63, "type": "for_statement", "text": "for (uint8_t m = 0x80; m; m >>= 1) {\n if (*r++ >= 0)\n x |= m;\n }", "parent": 47, "children": [64, 70, 71], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 22, "column": 5}}, {"id": 64, "type": "declaration", "text": "uint8_t m = 0x80;", "parent": 63, "children": [65, 66], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 26}}, {"id": 65, "type": "primitive_type", "text": "uint8_t", "parent": 64, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 16}}, {"id": 66, "type": "init_declarator", "text": "m = 0x80", "parent": 64, "children": [67, 68, 69], "start_point": {"row": 19, "column": 17}, "end_point": {"row": 19, "column": 25}}, {"id": 67, "type": "identifier", "text": "m", "parent": 66, "children": [], "start_point": {"row": 19, "column": 17}, "end_point": {"row": 19, "column": 18}}, {"id": 68, "type": "=", "text": "=", "parent": 66, "children": [], "start_point": {"row": 19, "column": 19}, "end_point": {"row": 19, "column": 20}}, {"id": 69, "type": "number_literal", "text": "0x80", "parent": 66, "children": [], "start_point": {"row": 19, "column": 21}, "end_point": {"row": 19, "column": 25}}, {"id": 70, "type": "identifier", "text": "m", "parent": 63, "children": [], "start_point": {"row": 19, "column": 27}, "end_point": {"row": 19, "column": 28}}, {"id": 71, "type": "assignment_expression", "text": "m >>= 1", "parent": 63, "children": [72, 73, 74], "start_point": {"row": 19, "column": 30}, "end_point": {"row": 19, "column": 37}}, {"id": 72, "type": "identifier", "text": "m", "parent": 71, "children": [], "start_point": {"row": 19, "column": 30}, "end_point": {"row": 19, "column": 31}}, {"id": 73, "type": ">>=", "text": ">>=", "parent": 71, "children": [], "start_point": {"row": 19, "column": 32}, "end_point": {"row": 19, "column": 35}}, {"id": 74, "type": "number_literal", "text": "1", "parent": 71, "children": [], "start_point": {"row": 19, "column": 36}, "end_point": {"row": 19, "column": 37}}, {"id": 75, "type": "if_statement", "text": "if (*r++ >= 0)\n x |= m;", "parent": 63, "children": [76], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 21, "column": 18}}, {"id": 76, "type": "parenthesized_expression", "text": "(*r++ >= 0)", "parent": 75, "children": [77], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 22}}, {"id": 77, "type": "binary_expression", "text": "*r++ >= 0", "parent": 76, "children": [78, 83, 84], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 21}}, {"id": 78, "type": "pointer_expression", "text": "*r++", "parent": 77, "children": [79, 80], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 16}}, {"id": 79, "type": "*", "text": "*", "parent": 78, "children": [], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 13}}, {"id": 80, "type": "update_expression", "text": "r++", "parent": 78, "children": [81, 82], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 16}}, {"id": 81, "type": "identifier", "text": "r", "parent": 80, "children": [], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 14}}, {"id": 82, "type": "++", "text": "++", "parent": 80, "children": [], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 16}}, {"id": 83, "type": ">=", "text": ">=", "parent": 77, "children": [], "start_point": {"row": 20, "column": 17}, "end_point": {"row": 20, "column": 19}}, {"id": 84, "type": "number_literal", "text": "0", "parent": 77, "children": [], "start_point": {"row": 20, "column": 20}, "end_point": {"row": 20, "column": 21}}, {"id": 85, "type": "assignment_expression", "text": "x |= m", "parent": 75, "children": [86, 87, 88], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 17}}, {"id": 86, "type": "identifier", "text": "x", "parent": 85, "children": [], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 12}}, {"id": 87, "type": "|=", "text": "|=", "parent": 85, "children": [], "start_point": {"row": 21, "column": 13}, "end_point": {"row": 21, "column": 15}}, {"id": 88, "type": "identifier", "text": "m", "parent": 85, "children": [], "start_point": {"row": 21, "column": 16}, "end_point": {"row": 21, "column": 17}}, {"id": 89, "type": "return_statement", "text": "return x;", "parent": 47, "children": [90], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 13}}, {"id": 90, "type": "identifier", "text": "x", "parent": 89, "children": [], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 12}}]}, "node_categories": {"declarations": {"functions": [9, 11, 28, 30, 47, 49], "variables": [52, 57, 64], "classes": [], "imports": [0, 1, 3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [14, 17, 21, 24, 33, 36, 40, 43, 76, 77, 78, 80], "assignments": [71, 85], "loops": [63], "conditionals": [12, 15, 18, 22, 25, 31, 34, 37, 41, 44, 50, 56, 60, 67, 70, 72, 75, 81, 86, 88, 90], "returns": [89], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 20, 27, 39, 46, 62, 69, 74, 84], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "HIGH", "text_snippet": "void HIGH() { \n CLR();\n _delay(8);\n SET(); \n _delay(32);\n}"}, {"node_id": 11, "universal_type": "function", "name": "unknown", "text_snippet": "HIGH()"}, {"node_id": 28, "universal_type": "function", "name": "LOW", "text_snippet": "void LOW() {\n CLR(); \n _delay(32);\n SET(); \n _delay(8);\n}"}, {"node_id": 30, "universal_type": "function", "name": "unknown", "text_snippet": "LOW()"}, {"node_id": 47, "universal_type": "function", "name": "unknown", "text_snippet": "uint8_t pack_byte(int8_t* r) {\n uint8_t x = 0;\n for (uint8_t m = 0x80; m; m >>= 1) {\n i"}, {"node_id": 49, "universal_type": "function", "name": "unknown", "text_snippet": "pack_byte(int8_t* r)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"gamepad.h\"\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include \"asm_decl.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <xc.h>\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#include \"gamepad.h\"\n#include \"asm_decl.h\"\n#include <xc.h>\n\nvoid HIGH() { \n CLR();\n _delay(8);\n SET(); \n _delay(32);\n}\nvoid LOW() {\n CLR(); \n _delay(32);\n SET(); \n _delay(8);\n}\n\nuint8_t pack_byte(int8_t* r) {\n uint8_t x = 0;\n for (uint8_t m = 0x80; m; m >>= 1) {\n if (*r++ >= 0)\n x |= m;\n } \n return x;\n}"}
80,200
c
// Copyright 2022 <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. #pragma once #include <tensorview/core/all.h> #define CUMM_MAXIMUM_NVRTC_CONV_NDIM 3 namespace tv { namespace gemm { struct GemmNVRTCParams { public: int m, n, k; const void *ptr_A, *ptr_B, *ptr_D; void *ptr_C; int64_t stride_A, stride_B, stride_C, stride_D; const int *indiceA, *indiceBorC; float alpha, beta; int split_k_slices; void *workspace; }; struct SparseConvNVRTCParams { public: const void *ptr_A, *ptr_B, *ptr_D; void *ptr_C; float alpha, beta; int split_k_slices; void *workspace; const uint32_t *mask_ptr; uint32_t *mask_out_ptr; uint32_t mask_filter; bool reverse_mask; int mask_width; int ndim, N, C, K; int kernel_volume; int mode; int groups; }; struct ConvNVRTCParams { public: const void *ptr_A, *ptr_B, *ptr_D; void *ptr_C; float alpha, beta; int split_k_slices; void *workspace; int ndim, N, C, K; tv::array<int, CUMM_MAXIMUM_NVRTC_CONV_NDIM> input_dims, output_dims, ksize, padding, stride, dilation; int kernel_volume; int mode; int groups; }; } // namespace gemm } // namespace tv
25.76
62
(translation_unit) "// Copyright 2022 <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#pragma once\n\n#include <tensorview/core/all.h>\n\n#define CUMM_MAXIMUM_NVRTC_CONV_NDIM 3\n\nnamespace tv {\nnamespace gemm {\n\nstruct GemmNVRTCParams {\npublic:\n int m, n, k;\n const void *ptr_A, *ptr_B, *ptr_D;\n void *ptr_C;\n int64_t stride_A, stride_B, stride_C, stride_D;\n const int *indiceA, *indiceBorC;\n float alpha, beta;\n int split_k_slices;\n void *workspace;\n};\n\nstruct SparseConvNVRTCParams {\npublic:\n const void *ptr_A, *ptr_B, *ptr_D;\n void *ptr_C;\n float alpha, beta;\n int split_k_slices;\n void *workspace;\n\n const uint32_t *mask_ptr;\n uint32_t *mask_out_ptr;\n uint32_t mask_filter;\n bool reverse_mask;\n int mask_width;\n\n int ndim, N, C, K;\n int kernel_volume;\n int mode;\n int groups;\n};\n\nstruct ConvNVRTCParams {\npublic:\n const void *ptr_A, *ptr_B, *ptr_D;\n void *ptr_C;\n float alpha, beta;\n int split_k_slices;\n void *workspace;\n\n int ndim, N, C, K;\n tv::array<int, CUMM_MAXIMUM_NVRTC_CONV_NDIM> input_dims, output_dims, ksize,\n padding, stride, dilation;\n int kernel_volume;\n int mode;\n int groups;\n};\n\n} // namespace gemm\n} // namespace tv" (comment) "// Copyright 2022 <NAME>" (comment) "//" (comment) "// Licensed under the Apache License, Version 2.0 (the "License");" (comment) "// you may not use this file except in compliance with the License." (comment) "// 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" (comment) "// distributed under the License is distributed on an "AS IS" BASIS," (comment) "// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied." (comment) "// See the License for the specific language governing permissions and" (comment) "// limitations under the License." (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <tensorview/core/all.h>\n" (#include) "#include" (system_lib_string) "<tensorview/core/all.h>" (preproc_def) "#define CUMM_MAXIMUM_NVRTC_CONV_NDIM 3\n" (#define) "#define" (identifier) "CUMM_MAXIMUM_NVRTC_CONV_NDIM" (preproc_arg) "3" (function_definition) "namespace tv {\nnamespace gemm {\n\nstruct GemmNVRTCParams {\npublic:\n int m, n, k;\n const void *ptr_A, *ptr_B, *ptr_D;\n void *ptr_C;\n int64_t stride_A, stride_B, stride_C, stride_D;\n const int *indiceA, *indiceBorC;\n float alpha, beta;\n int split_k_slices;\n void *workspace;\n};\n\nstruct SparseConvNVRTCParams {\npublic:\n const void *ptr_A, *ptr_B, *ptr_D;\n void *ptr_C;\n float alpha, beta;\n int split_k_slices;\n void *workspace;\n\n const uint32_t *mask_ptr;\n uint32_t *mask_out_ptr;\n uint32_t mask_filter;\n bool reverse_mask;\n int mask_width;\n\n int ndim, N, C, K;\n int kernel_volume;\n int mode;\n int groups;\n};\n\nstruct ConvNVRTCParams {\npublic:\n const void *ptr_A, *ptr_B, *ptr_D;\n void *ptr_C;\n float alpha, beta;\n int split_k_slices;\n void *workspace;\n\n int ndim, N, C, K;\n tv::array<int, CUMM_MAXIMUM_NVRTC_CONV_NDIM> input_dims, output_dims, ksize,\n padding, stride, dilation;\n int kernel_volume;\n int mode;\n int groups;\n};\n\n} // namespace gemm\n}" (type_identifier) "namespace" (identifier) "tv" (compound_statement) "{\nnamespace gemm {\n\nstruct GemmNVRTCParams {\npublic:\n int m, n, k;\n const void *ptr_A, *ptr_B, *ptr_D;\n void *ptr_C;\n int64_t stride_A, stride_B, stride_C, stride_D;\n const int *indiceA, *indiceBorC;\n float alpha, beta;\n int split_k_slices;\n void *workspace;\n};\n\nstruct SparseConvNVRTCParams {\npublic:\n const void *ptr_A, *ptr_B, *ptr_D;\n void *ptr_C;\n float alpha, beta;\n int split_k_slices;\n void *workspace;\n\n const uint32_t *mask_ptr;\n uint32_t *mask_out_ptr;\n uint32_t mask_filter;\n bool reverse_mask;\n int mask_width;\n\n int ndim, N, C, K;\n int kernel_volume;\n int mode;\n int groups;\n};\n\nstruct ConvNVRTCParams {\npublic:\n const void *ptr_A, *ptr_B, *ptr_D;\n void *ptr_C;\n float alpha, beta;\n int split_k_slices;\n void *workspace;\n\n int ndim, N, C, K;\n tv::array<int, CUMM_MAXIMUM_NVRTC_CONV_NDIM> input_dims, output_dims, ksize,\n padding, stride, dilation;\n int kernel_volume;\n int mode;\n int groups;\n};\n\n} // namespace gemm\n}" ({) "{" (function_definition) "namespace gemm {\n\nstruct GemmNVRTCParams {\npublic:\n int m, n, k;\n const void *ptr_A, *ptr_B, *ptr_D;\n void *ptr_C;\n int64_t stride_A, stride_B, stride_C, stride_D;\n const int *indiceA, *indiceBorC;\n float alpha, beta;\n int split_k_slices;\n void *workspace;\n};\n\nstruct SparseConvNVRTCParams {\npublic:\n const void *ptr_A, *ptr_B, *ptr_D;\n void *ptr_C;\n float alpha, beta;\n int split_k_slices;\n void *workspace;\n\n const uint32_t *mask_ptr;\n uint32_t *mask_out_ptr;\n uint32_t mask_filter;\n bool reverse_mask;\n int mask_width;\n\n int ndim, N, C, K;\n int kernel_volume;\n int mode;\n int groups;\n};\n\nstruct ConvNVRTCParams {\npublic:\n const void *ptr_A, *ptr_B, *ptr_D;\n void *ptr_C;\n float alpha, beta;\n int split_k_slices;\n void *workspace;\n\n int ndim, N, C, K;\n tv::array<int, CUMM_MAXIMUM_NVRTC_CONV_NDIM> input_dims, output_dims, ksize,\n padding, stride, dilation;\n int kernel_volume;\n int mode;\n int groups;\n};\n\n}" (type_identifier) "namespace" (identifier) "gemm" (compound_statement) "{\n\nstruct GemmNVRTCParams {\npublic:\n int m, n, k;\n const void *ptr_A, *ptr_B, *ptr_D;\n void *ptr_C;\n int64_t stride_A, stride_B, stride_C, stride_D;\n const int *indiceA, *indiceBorC;\n float alpha, beta;\n int split_k_slices;\n void *workspace;\n};\n\nstruct SparseConvNVRTCParams {\npublic:\n const void *ptr_A, *ptr_B, *ptr_D;\n void *ptr_C;\n float alpha, beta;\n int split_k_slices;\n void *workspace;\n\n const uint32_t *mask_ptr;\n uint32_t *mask_out_ptr;\n uint32_t mask_filter;\n bool reverse_mask;\n int mask_width;\n\n int ndim, N, C, K;\n int kernel_volume;\n int mode;\n int groups;\n};\n\nstruct ConvNVRTCParams {\npublic:\n const void *ptr_A, *ptr_B, *ptr_D;\n void *ptr_C;\n float alpha, beta;\n int split_k_slices;\n void *workspace;\n\n int ndim, N, C, K;\n tv::array<int, CUMM_MAXIMUM_NVRTC_CONV_NDIM> input_dims, output_dims, ksize,\n padding, stride, dilation;\n int kernel_volume;\n int mode;\n int groups;\n};\n\n}" ({) "{" (struct_specifier) "struct GemmNVRTCParams {\npublic:\n int m, n, k;\n const void *ptr_A, *ptr_B, *ptr_D;\n void *ptr_C;\n int64_t stride_A, stride_B, stride_C, stride_D;\n const int *indiceA, *indiceBorC;\n float alpha, beta;\n int split_k_slices;\n void *workspace;\n}" (struct) "struct" (type_identifier) "GemmNVRTCParams" (field_declaration_list) "{\npublic:\n int m, n, k;\n const void *ptr_A, *ptr_B, *ptr_D;\n void *ptr_C;\n int64_t stride_A, stride_B, stride_C, stride_D;\n const int *indiceA, *indiceBorC;\n float alpha, beta;\n int split_k_slices;\n void *workspace;\n}" ({) "{" (ERROR) "public:" (type_identifier) "public" (:) ":" (field_declaration) "int m, n, k;" (primitive_type) "int" (field_identifier) "m" (,) "," (field_identifier) "n" (,) "," (field_identifier) "k" (;) ";" (field_declaration) "const void *ptr_A, *ptr_B, *ptr_D;" (type_qualifier) "const" (const) "const" (primitive_type) "void" (pointer_declarator) "*ptr_A" (*) "*" (field_identifier) "ptr_A" (,) "," (pointer_declarator) "*ptr_B" (*) "*" (field_identifier) "ptr_B" (,) "," (pointer_declarator) "*ptr_D" (*) "*" (field_identifier) "ptr_D" (;) ";" (field_declaration) "void *ptr_C;" (primitive_type) "void" (pointer_declarator) "*ptr_C" (*) "*" (field_identifier) "ptr_C" (;) ";" (field_declaration) "int64_t stride_A, stride_B, stride_C, stride_D;" (primitive_type) "int64_t" (field_identifier) "stride_A" (,) "," (field_identifier) "stride_B" (,) "," (field_identifier) "stride_C" (,) "," (field_identifier) "stride_D" (;) ";" (field_declaration) "const int *indiceA, *indiceBorC;" (type_qualifier) "const" (const) "const" (primitive_type) "int" (pointer_declarator) "*indiceA" (*) "*" (field_identifier) "indiceA" (,) "," (pointer_declarator) "*indiceBorC" (*) "*" (field_identifier) "indiceBorC" (;) ";" (field_declaration) "float alpha, beta;" (primitive_type) "float" (field_identifier) "alpha" (,) "," (field_identifier) "beta" (;) ";" (field_declaration) "int split_k_slices;" (primitive_type) "int" (field_identifier) "split_k_slices" (;) ";" (field_declaration) "void *workspace;" (primitive_type) "void" (pointer_declarator) "*workspace" (*) "*" (field_identifier) "workspace" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct SparseConvNVRTCParams {\npublic:\n const void *ptr_A, *ptr_B, *ptr_D;\n void *ptr_C;\n float alpha, beta;\n int split_k_slices;\n void *workspace;\n\n const uint32_t *mask_ptr;\n uint32_t *mask_out_ptr;\n uint32_t mask_filter;\n bool reverse_mask;\n int mask_width;\n\n int ndim, N, C, K;\n int kernel_volume;\n int mode;\n int groups;\n}" (struct) "struct" (type_identifier) "SparseConvNVRTCParams" (field_declaration_list) "{\npublic:\n const void *ptr_A, *ptr_B, *ptr_D;\n void *ptr_C;\n float alpha, beta;\n int split_k_slices;\n void *workspace;\n\n const uint32_t *mask_ptr;\n uint32_t *mask_out_ptr;\n uint32_t mask_filter;\n bool reverse_mask;\n int mask_width;\n\n int ndim, N, C, K;\n int kernel_volume;\n int mode;\n int groups;\n}" ({) "{" (field_declaration) "public:\n const void *ptr_A, *ptr_B, *ptr_D;" (type_identifier) "public" (ERROR) ":" (:) ":" (type_qualifier) "const" (const) "const" (ERROR) "void" (field_identifier) "void" (pointer_declarator) "*ptr_A" (*) "*" (field_identifier) "ptr_A" (,) "," (pointer_declarator) "*ptr_B" (*) "*" (field_identifier) "ptr_B" (,) "," (pointer_declarator) "*ptr_D" (*) "*" (field_identifier) "ptr_D" (;) ";" (field_declaration) "void *ptr_C;" (primitive_type) "void" (pointer_declarator) "*ptr_C" (*) "*" (field_identifier) "ptr_C" (;) ";" (field_declaration) "float alpha, beta;" (primitive_type) "float" (field_identifier) "alpha" (,) "," (field_identifier) "beta" (;) ";" (field_declaration) "int split_k_slices;" (primitive_type) "int" (field_identifier) "split_k_slices" (;) ";" (field_declaration) "void *workspace;" (primitive_type) "void" (pointer_declarator) "*workspace" (*) "*" (field_identifier) "workspace" (;) ";" (field_declaration) "const uint32_t *mask_ptr;" (type_qualifier) "const" (const) "const" (primitive_type) "uint32_t" (pointer_declarator) "*mask_ptr" (*) "*" (field_identifier) "mask_ptr" (;) ";" (field_declaration) "uint32_t *mask_out_ptr;" (primitive_type) "uint32_t" (pointer_declarator) "*mask_out_ptr" (*) "*" (field_identifier) "mask_out_ptr" (;) ";" (field_declaration) "uint32_t mask_filter;" (primitive_type) "uint32_t" (field_identifier) "mask_filter" (;) ";" (field_declaration) "bool reverse_mask;" (primitive_type) "bool" (field_identifier) "reverse_mask" (;) ";" (field_declaration) "int mask_width;" (primitive_type) "int" (field_identifier) "mask_width" (;) ";" (field_declaration) "int ndim, N, C, K;" (primitive_type) "int" (field_identifier) "ndim" (,) "," (field_identifier) "N" (,) "," (field_identifier) "C" (,) "," (field_identifier) "K" (;) ";" (field_declaration) "int kernel_volume;" (primitive_type) "int" (field_identifier) "kernel_volume" (;) ";" (field_declaration) "int mode;" (primitive_type) "int" (field_identifier) "mode" (;) ";" (field_declaration) "int groups;" (primitive_type) "int" (field_identifier) "groups" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct ConvNVRTCParams {\npublic:\n const void *ptr_A, *ptr_B, *ptr_D;\n void *ptr_C;\n float alpha, beta;\n int split_k_slices;\n void *workspace;\n\n int ndim, N, C, K;\n tv::array<int, CUMM_MAXIMUM_NVRTC_CONV_NDIM> input_dims, output_dims, ksize,\n padding, stride, dilation;\n int kernel_volume;\n int mode;\n int groups;\n}" (struct) "struct" (type_identifier) "ConvNVRTCParams" (field_declaration_list) "{\npublic:\n const void *ptr_A, *ptr_B, *ptr_D;\n void *ptr_C;\n float alpha, beta;\n int split_k_slices;\n void *workspace;\n\n int ndim, N, C, K;\n tv::array<int, CUMM_MAXIMUM_NVRTC_CONV_NDIM> input_dims, output_dims, ksize,\n padding, stride, dilation;\n int kernel_volume;\n int mode;\n int groups;\n}" ({) "{" (field_declaration) "public:\n const void *ptr_A, *ptr_B, *ptr_D;" (type_identifier) "public" (ERROR) ":" (:) ":" (type_qualifier) "const" (const) "const" (ERROR) "void" (field_identifier) "void" (pointer_declarator) "*ptr_A" (*) "*" (field_identifier) "ptr_A" (,) "," (pointer_declarator) "*ptr_B" (*) "*" (field_identifier) "ptr_B" (,) "," (pointer_declarator) "*ptr_D" (*) "*" (field_identifier) "ptr_D" (;) ";" (field_declaration) "void *ptr_C;" (primitive_type) "void" (pointer_declarator) "*ptr_C" (*) "*" (field_identifier) "ptr_C" (;) ";" (field_declaration) "float alpha, beta;" (primitive_type) "float" (field_identifier) "alpha" (,) "," (field_identifier) "beta" (;) ";" (field_declaration) "int split_k_slices;" (primitive_type) "int" (field_identifier) "split_k_slices" (;) ";" (field_declaration) "void *workspace;" (primitive_type) "void" (pointer_declarator) "*workspace" (*) "*" (field_identifier) "workspace" (;) ";" (field_declaration) "int ndim, N, C, K;" (primitive_type) "int" (field_identifier) "ndim" (,) "," (field_identifier) "N" (,) "," (field_identifier) "C" (,) "," (field_identifier) "K" (;) ";" (field_declaration) "tv::array<int, CUMM_MAXIMUM_NVRTC_CONV_NDIM> input_dims, output_dims, ksize,\n padding, stride, dilation;" (type_identifier) "tv" (ERROR) "::" (:) ":" (:) ":" (field_identifier) "array" (ERROR) "<int" (<) "<" (primitive_type) "int" (,) "," (field_identifier) "CUMM_MAXIMUM_NVRTC_CONV_NDIM" (ERROR) "> input_dims" (>) ">" (identifier) "input_dims" (,) "," (field_identifier) "output_dims" (,) "," (field_identifier) "ksize" (,) "," (field_identifier) "padding" (,) "," (field_identifier) "stride" (,) "," (field_identifier) "dilation" (;) ";" (field_declaration) "int kernel_volume;" (primitive_type) "int" (field_identifier) "kernel_volume" (;) ";" (field_declaration) "int mode;" (primitive_type) "int" (field_identifier) "mode" (;) ";" (field_declaration) "int groups;" (primitive_type) "int" (field_identifier) "groups" (;) ";" (}) "}" (;) ";" (}) "}" (comment) "// namespace gemm" (}) "}" (comment) "// namespace tv"
309
8
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 25.76, "nodes": 195, "errors": 0, "source_hash": "75d7a38e6b8b0af6e727301c60e542be367827e344520a3296a35ff2b074e441", "categorized_nodes": 115}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once", "parent": 0, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 12}}, {"id": 3, "type": "preproc_include", "text": "#include <tensorview/core/all.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<tensorview/core/all.h>", "parent": 3, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 32}}, {"id": 6, "type": "preproc_def", "text": "#define CUMM_MAXIMUM_NVRTC_CONV_NDIM 3\n", "parent": null, "children": [7, 8, 9], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 7, "type": "#define", "text": "#define", "parent": 6, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 7}}, {"id": 8, "type": "identifier", "text": "CUMM_MAXIMUM_NVRTC_CONV_NDIM", "parent": 6, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 36}}, {"id": 9, "type": "preproc_arg", "text": "3", "parent": 6, "children": [], "start_point": {"row": 17, "column": 37}, "end_point": {"row": 17, "column": 38}}, {"id": 10, "type": "function_definition", "text": "namespace tv {\nnamespace gemm {\n\nstruct GemmNVRTCParams {\npublic:\n int m, n, k;\n const void *ptr_A, *ptr_B, *ptr_D;\n void *ptr_C;\n int64_t stride_A, stride_B, stride_C, stride_D;\n const int *indiceA, *indiceBorC;\n float alpha, beta;\n int split_k_slices;\n void *workspace;\n};\n\nstruct SparseConvNVRTCParams {\npublic:\n const void *ptr_A, *ptr_B, *ptr_D;\n void *ptr_C;\n float alpha, beta;\n int split_k_slices;\n void *workspace;\n\n const uint32_t *mask_ptr;\n uint32_t *mask_out_ptr;\n uint32_t mask_filter;\n bool reverse_mask;\n int mask_width;\n\n int ndim, N, C, K;\n int kernel_volume;\n int mode;\n int groups;\n};\n\nstruct ConvNVRTCParams {\npublic:\n const void *ptr_A, *ptr_B, *ptr_D;\n void *ptr_C;\n float alpha, beta;\n int split_k_slices;\n void *workspace;\n\n int ndim, N, C, K;\n tv::array<int, CUMM_MAXIMUM_NVRTC_CONV_NDIM> input_dims, output_dims, ksize,\n padding, stride, dilation;\n int kernel_volume;\n int mode;\n int groups;\n};\n\n} // namespace gemm\n}", "parent": null, "children": [11, 12], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 71, "column": 1}}, {"id": 11, "type": "type_identifier", "text": "namespace", "parent": 10, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 9}}, {"id": 12, "type": "identifier", "text": "tv", "parent": 10, "children": [], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 12}}, {"id": 13, "type": "function_definition", "text": "namespace gemm {\n\nstruct GemmNVRTCParams {\npublic:\n int m, n, k;\n const void *ptr_A, *ptr_B, *ptr_D;\n void *ptr_C;\n int64_t stride_A, stride_B, stride_C, stride_D;\n const int *indiceA, *indiceBorC;\n float alpha, beta;\n int split_k_slices;\n void *workspace;\n};\n\nstruct SparseConvNVRTCParams {\npublic:\n const void *ptr_A, *ptr_B, *ptr_D;\n void *ptr_C;\n float alpha, beta;\n int split_k_slices;\n void *workspace;\n\n const uint32_t *mask_ptr;\n uint32_t *mask_out_ptr;\n uint32_t mask_filter;\n bool reverse_mask;\n int mask_width;\n\n int ndim, N, C, K;\n int kernel_volume;\n int mode;\n int groups;\n};\n\nstruct ConvNVRTCParams {\npublic:\n const void *ptr_A, *ptr_B, *ptr_D;\n void *ptr_C;\n float alpha, beta;\n int split_k_slices;\n void *workspace;\n\n int ndim, N, C, K;\n tv::array<int, CUMM_MAXIMUM_NVRTC_CONV_NDIM> input_dims, output_dims, ksize,\n padding, stride, dilation;\n int kernel_volume;\n int mode;\n int groups;\n};\n\n}", "parent": 10, "children": [14, 15], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 70, "column": 1}}, {"id": 14, "type": "type_identifier", "text": "namespace", "parent": 13, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 9}}, {"id": 15, "type": "identifier", "text": "gemm", "parent": 13, "children": [], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 14}}, {"id": 16, "type": "struct_specifier", "text": "struct GemmNVRTCParams {\npublic:\n int m, n, k;\n const void *ptr_A, *ptr_B, *ptr_D;\n void *ptr_C;\n int64_t stride_A, stride_B, stride_C, stride_D;\n const int *indiceA, *indiceBorC;\n float alpha, beta;\n int split_k_slices;\n void *workspace;\n}", "parent": 13, "children": [17, 18], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 32, "column": 1}}, {"id": 17, "type": "struct", "text": "struct", "parent": 16, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 6}}, {"id": 18, "type": "type_identifier", "text": "GemmNVRTCParams", "parent": 16, "children": [], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 22}}, {"id": 19, "type": "ERROR", "text": "public:", "parent": 16, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 7}}, {"id": 20, "type": "field_declaration", "text": "int m, n, k;", "parent": 16, "children": [21, 22, 23, 24], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 14}}, {"id": 21, "type": "primitive_type", "text": "int", "parent": 20, "children": [], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 5}}, {"id": 22, "type": "field_identifier", "text": "m", "parent": 20, "children": [], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 7}}, {"id": 23, "type": "field_identifier", "text": "n", "parent": 20, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 10}}, {"id": 24, "type": "field_identifier", "text": "k", "parent": 20, "children": [], "start_point": {"row": 24, "column": 12}, "end_point": {"row": 24, "column": 13}}, {"id": 25, "type": "field_declaration", "text": "const void *ptr_A, *ptr_B, *ptr_D;", "parent": 16, "children": [26, 27, 30, 33], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 36}}, {"id": 26, "type": "primitive_type", "text": "void", "parent": 25, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 12}}, {"id": 27, "type": "pointer_declarator", "text": "*ptr_A", "parent": 25, "children": [28, 29], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 19}}, {"id": 28, "type": "*", "text": "*", "parent": 27, "children": [], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 14}}, {"id": 29, "type": "field_identifier", "text": "ptr_A", "parent": 27, "children": [], "start_point": {"row": 25, "column": 14}, "end_point": {"row": 25, "column": 19}}, {"id": 30, "type": "pointer_declarator", "text": "*ptr_B", "parent": 25, "children": [31, 32], "start_point": {"row": 25, "column": 21}, "end_point": {"row": 25, "column": 27}}, {"id": 31, "type": "*", "text": "*", "parent": 30, "children": [], "start_point": {"row": 25, "column": 21}, "end_point": {"row": 25, "column": 22}}, {"id": 32, "type": "field_identifier", "text": "ptr_B", "parent": 30, "children": [], "start_point": {"row": 25, "column": 22}, "end_point": {"row": 25, "column": 27}}, {"id": 33, "type": "pointer_declarator", "text": "*ptr_D", "parent": 25, "children": [34, 35], "start_point": {"row": 25, "column": 29}, "end_point": {"row": 25, "column": 35}}, {"id": 34, "type": "*", "text": "*", "parent": 33, "children": [], "start_point": {"row": 25, "column": 29}, "end_point": {"row": 25, "column": 30}}, {"id": 35, "type": "field_identifier", "text": "ptr_D", "parent": 33, "children": [], "start_point": {"row": 25, "column": 30}, "end_point": {"row": 25, "column": 35}}, {"id": 36, "type": "field_declaration", "text": "void *ptr_C;", "parent": 16, "children": [37, 38], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 14}}, {"id": 37, "type": "primitive_type", "text": "void", "parent": 36, "children": [], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 6}}, {"id": 38, "type": "pointer_declarator", "text": "*ptr_C", "parent": 36, "children": [39, 40], "start_point": {"row": 26, "column": 7}, "end_point": {"row": 26, "column": 13}}, {"id": 39, "type": "*", "text": "*", "parent": 38, "children": [], "start_point": {"row": 26, "column": 7}, "end_point": {"row": 26, "column": 8}}, {"id": 40, "type": "field_identifier", "text": "ptr_C", "parent": 38, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 13}}, {"id": 41, "type": "field_declaration", "text": "int64_t stride_A, stride_B, stride_C, stride_D;", "parent": 16, "children": [42, 43, 44, 45, 46], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 49}}, {"id": 42, "type": "primitive_type", "text": "int64_t", "parent": 41, "children": [], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 9}}, {"id": 43, "type": "field_identifier", "text": "stride_A", "parent": 41, "children": [], "start_point": {"row": 27, "column": 10}, "end_point": {"row": 27, "column": 18}}, {"id": 44, "type": "field_identifier", "text": "stride_B", "parent": 41, "children": [], "start_point": {"row": 27, "column": 20}, "end_point": {"row": 27, "column": 28}}, {"id": 45, "type": "field_identifier", "text": "stride_C", "parent": 41, "children": [], "start_point": {"row": 27, "column": 30}, "end_point": {"row": 27, "column": 38}}, {"id": 46, "type": "field_identifier", "text": "stride_D", "parent": 41, "children": [], "start_point": {"row": 27, "column": 40}, "end_point": {"row": 27, "column": 48}}, {"id": 47, "type": "field_declaration", "text": "const int *indiceA, *indiceBorC;", "parent": 16, "children": [48, 49, 52], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 34}}, {"id": 48, "type": "primitive_type", "text": "int", "parent": 47, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 11}}, {"id": 49, "type": "pointer_declarator", "text": "*indiceA", "parent": 47, "children": [50, 51], "start_point": {"row": 28, "column": 12}, "end_point": {"row": 28, "column": 20}}, {"id": 50, "type": "*", "text": "*", "parent": 49, "children": [], "start_point": {"row": 28, "column": 12}, "end_point": {"row": 28, "column": 13}}, {"id": 51, "type": "field_identifier", "text": "indiceA", "parent": 49, "children": [], "start_point": {"row": 28, "column": 13}, "end_point": {"row": 28, "column": 20}}, {"id": 52, "type": "pointer_declarator", "text": "*indiceBorC", "parent": 47, "children": [53, 54], "start_point": {"row": 28, "column": 22}, "end_point": {"row": 28, "column": 33}}, {"id": 53, "type": "*", "text": "*", "parent": 52, "children": [], "start_point": {"row": 28, "column": 22}, "end_point": {"row": 28, "column": 23}}, {"id": 54, "type": "field_identifier", "text": "indiceBorC", "parent": 52, "children": [], "start_point": {"row": 28, "column": 23}, "end_point": {"row": 28, "column": 33}}, {"id": 55, "type": "field_declaration", "text": "float alpha, beta;", "parent": 16, "children": [56, 57, 58], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 20}}, {"id": 56, "type": "primitive_type", "text": "float", "parent": 55, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 7}}, {"id": 57, "type": "field_identifier", "text": "alpha", "parent": 55, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 13}}, {"id": 58, "type": "field_identifier", "text": "beta", "parent": 55, "children": [], "start_point": {"row": 29, "column": 15}, "end_point": {"row": 29, "column": 19}}, {"id": 59, "type": "field_declaration", "text": "int split_k_slices;", "parent": 16, "children": [60, 61], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 21}}, {"id": 60, "type": "primitive_type", "text": "int", "parent": 59, "children": [], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 5}}, {"id": 61, "type": "field_identifier", "text": "split_k_slices", "parent": 59, "children": [], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 20}}, {"id": 62, "type": "field_declaration", "text": "void *workspace;", "parent": 16, "children": [63, 64], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 18}}, {"id": 63, "type": "primitive_type", "text": "void", "parent": 62, "children": [], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 6}}, {"id": 64, "type": "pointer_declarator", "text": "*workspace", "parent": 62, "children": [65, 66], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 17}}, {"id": 65, "type": "*", "text": "*", "parent": 64, "children": [], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 8}}, {"id": 66, "type": "field_identifier", "text": "workspace", "parent": 64, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 17}}, {"id": 67, "type": "struct_specifier", "text": "struct SparseConvNVRTCParams {\npublic:\n const void *ptr_A, *ptr_B, *ptr_D;\n void *ptr_C;\n float alpha, beta;\n int split_k_slices;\n void *workspace;\n\n const uint32_t *mask_ptr;\n uint32_t *mask_out_ptr;\n uint32_t mask_filter;\n bool reverse_mask;\n int mask_width;\n\n int ndim, N, C, K;\n int kernel_volume;\n int mode;\n int groups;\n}", "parent": 13, "children": [68, 69], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 52, "column": 1}}, {"id": 68, "type": "struct", "text": "struct", "parent": 67, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 6}}, {"id": 69, "type": "type_identifier", "text": "SparseConvNVRTCParams", "parent": 67, "children": [], "start_point": {"row": 34, "column": 7}, "end_point": {"row": 34, "column": 28}}, {"id": 70, "type": "field_declaration", "text": "public:\n const void *ptr_A, *ptr_B, *ptr_D;", "parent": 67, "children": [71, 73, 76, 79], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 36, "column": 36}}, {"id": 71, "type": "ERROR", "text": "void", "parent": 70, "children": [72], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 12}}, {"id": 72, "type": "field_identifier", "text": "void", "parent": 71, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 12}}, {"id": 73, "type": "pointer_declarator", "text": "*ptr_A", "parent": 70, "children": [74, 75], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 19}}, {"id": 74, "type": "*", "text": "*", "parent": 73, "children": [], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 14}}, {"id": 75, "type": "field_identifier", "text": "ptr_A", "parent": 73, "children": [], "start_point": {"row": 36, "column": 14}, "end_point": {"row": 36, "column": 19}}, {"id": 76, "type": "pointer_declarator", "text": "*ptr_B", "parent": 70, "children": [77, 78], "start_point": {"row": 36, "column": 21}, "end_point": {"row": 36, "column": 27}}, {"id": 77, "type": "*", "text": "*", "parent": 76, "children": [], "start_point": {"row": 36, "column": 21}, "end_point": {"row": 36, "column": 22}}, {"id": 78, "type": "field_identifier", "text": "ptr_B", "parent": 76, "children": [], "start_point": {"row": 36, "column": 22}, "end_point": {"row": 36, "column": 27}}, {"id": 79, "type": "pointer_declarator", "text": "*ptr_D", "parent": 70, "children": [80, 81], "start_point": {"row": 36, "column": 29}, "end_point": {"row": 36, "column": 35}}, {"id": 80, "type": "*", "text": "*", "parent": 79, "children": [], "start_point": {"row": 36, "column": 29}, "end_point": {"row": 36, "column": 30}}, {"id": 81, "type": "field_identifier", "text": "ptr_D", "parent": 79, "children": [], "start_point": {"row": 36, "column": 30}, "end_point": {"row": 36, "column": 35}}, {"id": 82, "type": "field_declaration", "text": "void *ptr_C;", "parent": 67, "children": [83, 84], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 14}}, {"id": 83, "type": "primitive_type", "text": "void", "parent": 82, "children": [], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 6}}, {"id": 84, "type": "pointer_declarator", "text": "*ptr_C", "parent": 82, "children": [85, 86], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 13}}, {"id": 85, "type": "*", "text": "*", "parent": 84, "children": [], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 8}}, {"id": 86, "type": "field_identifier", "text": "ptr_C", "parent": 84, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 13}}, {"id": 87, "type": "field_declaration", "text": "float alpha, beta;", "parent": 67, "children": [88, 89, 90], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 20}}, {"id": 88, "type": "primitive_type", "text": "float", "parent": 87, "children": [], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 7}}, {"id": 89, "type": "field_identifier", "text": "alpha", "parent": 87, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 13}}, {"id": 90, "type": "field_identifier", "text": "beta", "parent": 87, "children": [], "start_point": {"row": 38, "column": 15}, "end_point": {"row": 38, "column": 19}}, {"id": 91, "type": "field_declaration", "text": "int split_k_slices;", "parent": 67, "children": [92, 93], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 21}}, {"id": 92, "type": "primitive_type", "text": "int", "parent": 91, "children": [], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 5}}, {"id": 93, "type": "field_identifier", "text": "split_k_slices", "parent": 91, "children": [], "start_point": {"row": 39, "column": 6}, "end_point": {"row": 39, "column": 20}}, {"id": 94, "type": "field_declaration", "text": "void *workspace;", "parent": 67, "children": [95, 96], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 18}}, {"id": 95, "type": "primitive_type", "text": "void", "parent": 94, "children": [], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 6}}, {"id": 96, "type": "pointer_declarator", "text": "*workspace", "parent": 94, "children": [97, 98], "start_point": {"row": 40, "column": 7}, "end_point": {"row": 40, "column": 17}}, {"id": 97, "type": "*", "text": "*", "parent": 96, "children": [], "start_point": {"row": 40, "column": 7}, "end_point": {"row": 40, "column": 8}}, {"id": 98, "type": "field_identifier", "text": "workspace", "parent": 96, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 17}}, {"id": 99, "type": "field_declaration", "text": "const uint32_t *mask_ptr;", "parent": 67, "children": [100, 101], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 27}}, {"id": 100, "type": "primitive_type", "text": "uint32_t", "parent": 99, "children": [], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 16}}, {"id": 101, "type": "pointer_declarator", "text": "*mask_ptr", "parent": 99, "children": [102, 103], "start_point": {"row": 42, "column": 17}, "end_point": {"row": 42, "column": 26}}, {"id": 102, "type": "*", "text": "*", "parent": 101, "children": [], "start_point": {"row": 42, "column": 17}, "end_point": {"row": 42, "column": 18}}, {"id": 103, "type": "field_identifier", "text": "mask_ptr", "parent": 101, "children": [], "start_point": {"row": 42, "column": 18}, "end_point": {"row": 42, "column": 26}}, {"id": 104, "type": "field_declaration", "text": "uint32_t *mask_out_ptr;", "parent": 67, "children": [105, 106], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 25}}, {"id": 105, "type": "primitive_type", "text": "uint32_t", "parent": 104, "children": [], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 10}}, {"id": 106, "type": "pointer_declarator", "text": "*mask_out_ptr", "parent": 104, "children": [107, 108], "start_point": {"row": 43, "column": 11}, "end_point": {"row": 43, "column": 24}}, {"id": 107, "type": "*", "text": "*", "parent": 106, "children": [], "start_point": {"row": 43, "column": 11}, "end_point": {"row": 43, "column": 12}}, {"id": 108, "type": "field_identifier", "text": "mask_out_ptr", "parent": 106, "children": [], "start_point": {"row": 43, "column": 12}, "end_point": {"row": 43, "column": 24}}, {"id": 109, "type": "field_declaration", "text": "uint32_t mask_filter;", "parent": 67, "children": [110, 111], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 23}}, {"id": 110, "type": "primitive_type", "text": "uint32_t", "parent": 109, "children": [], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 10}}, {"id": 111, "type": "field_identifier", "text": "mask_filter", "parent": 109, "children": [], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 44, "column": 22}}, {"id": 112, "type": "field_declaration", "text": "bool reverse_mask;", "parent": 67, "children": [113, 114], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 20}}, {"id": 113, "type": "primitive_type", "text": "bool", "parent": 112, "children": [], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 6}}, {"id": 114, "type": "field_identifier", "text": "reverse_mask", "parent": 112, "children": [], "start_point": {"row": 45, "column": 7}, "end_point": {"row": 45, "column": 19}}, {"id": 115, "type": "field_declaration", "text": "int mask_width;", "parent": 67, "children": [116, 117], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 17}}, {"id": 116, "type": "primitive_type", "text": "int", "parent": 115, "children": [], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 5}}, {"id": 117, "type": "field_identifier", "text": "mask_width", "parent": 115, "children": [], "start_point": {"row": 46, "column": 6}, "end_point": {"row": 46, "column": 16}}, {"id": 118, "type": "field_declaration", "text": "int ndim, N, C, K;", "parent": 67, "children": [119, 120, 121, 122, 123], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 20}}, {"id": 119, "type": "primitive_type", "text": "int", "parent": 118, "children": [], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 5}}, {"id": 120, "type": "field_identifier", "text": "ndim", "parent": 118, "children": [], "start_point": {"row": 48, "column": 6}, "end_point": {"row": 48, "column": 10}}, {"id": 121, "type": "field_identifier", "text": "N", "parent": 118, "children": [], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 13}}, {"id": 122, "type": "field_identifier", "text": "C", "parent": 118, "children": [], "start_point": {"row": 48, "column": 15}, "end_point": {"row": 48, "column": 16}}, {"id": 123, "type": "field_identifier", "text": "K", "parent": 118, "children": [], "start_point": {"row": 48, "column": 18}, "end_point": {"row": 48, "column": 19}}, {"id": 124, "type": "field_declaration", "text": "int kernel_volume;", "parent": 67, "children": [125, 126], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 20}}, {"id": 125, "type": "primitive_type", "text": "int", "parent": 124, "children": [], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 5}}, {"id": 126, "type": "field_identifier", "text": "kernel_volume", "parent": 124, "children": [], "start_point": {"row": 49, "column": 6}, "end_point": {"row": 49, "column": 19}}, {"id": 127, "type": "field_declaration", "text": "int mode;", "parent": 67, "children": [128, 129], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 11}}, {"id": 128, "type": "primitive_type", "text": "int", "parent": 127, "children": [], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 5}}, {"id": 129, "type": "field_identifier", "text": "mode", "parent": 127, "children": [], "start_point": {"row": 50, "column": 6}, "end_point": {"row": 50, "column": 10}}, {"id": 130, "type": "field_declaration", "text": "int groups;", "parent": 67, "children": [131, 132], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 13}}, {"id": 131, "type": "primitive_type", "text": "int", "parent": 130, "children": [], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 5}}, {"id": 132, "type": "field_identifier", "text": "groups", "parent": 130, "children": [], "start_point": {"row": 51, "column": 6}, "end_point": {"row": 51, "column": 12}}, {"id": 133, "type": "struct_specifier", "text": "struct ConvNVRTCParams {\npublic:\n const void *ptr_A, *ptr_B, *ptr_D;\n void *ptr_C;\n float alpha, beta;\n int split_k_slices;\n void *workspace;\n\n int ndim, N, C, K;\n tv::array<int, CUMM_MAXIMUM_NVRTC_CONV_NDIM> input_dims, output_dims, ksize,\n padding, stride, dilation;\n int kernel_volume;\n int mode;\n int groups;\n}", "parent": 13, "children": [134, 135], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 68, "column": 1}}, {"id": 134, "type": "struct", "text": "struct", "parent": 133, "children": [], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 6}}, {"id": 135, "type": "type_identifier", "text": "ConvNVRTCParams", "parent": 133, "children": [], "start_point": {"row": 54, "column": 7}, "end_point": {"row": 54, "column": 22}}, {"id": 136, "type": "field_declaration", "text": "public:\n const void *ptr_A, *ptr_B, *ptr_D;", "parent": 133, "children": [137, 139, 142, 145], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 56, "column": 36}}, {"id": 137, "type": "ERROR", "text": "void", "parent": 136, "children": [138], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 12}}, {"id": 138, "type": "field_identifier", "text": "void", "parent": 137, "children": [], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 12}}, {"id": 139, "type": "pointer_declarator", "text": "*ptr_A", "parent": 136, "children": [140, 141], "start_point": {"row": 56, "column": 13}, "end_point": {"row": 56, "column": 19}}, {"id": 140, "type": "*", "text": "*", "parent": 139, "children": [], "start_point": {"row": 56, "column": 13}, "end_point": {"row": 56, "column": 14}}, {"id": 141, "type": "field_identifier", "text": "ptr_A", "parent": 139, "children": [], "start_point": {"row": 56, "column": 14}, "end_point": {"row": 56, "column": 19}}, {"id": 142, "type": "pointer_declarator", "text": "*ptr_B", "parent": 136, "children": [143, 144], "start_point": {"row": 56, "column": 21}, "end_point": {"row": 56, "column": 27}}, {"id": 143, "type": "*", "text": "*", "parent": 142, "children": [], "start_point": {"row": 56, "column": 21}, "end_point": {"row": 56, "column": 22}}, {"id": 144, "type": "field_identifier", "text": "ptr_B", "parent": 142, "children": [], "start_point": {"row": 56, "column": 22}, "end_point": {"row": 56, "column": 27}}, {"id": 145, "type": "pointer_declarator", "text": "*ptr_D", "parent": 136, "children": [146, 147], "start_point": {"row": 56, "column": 29}, "end_point": {"row": 56, "column": 35}}, {"id": 146, "type": "*", "text": "*", "parent": 145, "children": [], "start_point": {"row": 56, "column": 29}, "end_point": {"row": 56, "column": 30}}, {"id": 147, "type": "field_identifier", "text": "ptr_D", "parent": 145, "children": [], "start_point": {"row": 56, "column": 30}, "end_point": {"row": 56, "column": 35}}, {"id": 148, "type": "field_declaration", "text": "void *ptr_C;", "parent": 133, "children": [149, 150], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 14}}, {"id": 149, "type": "primitive_type", "text": "void", "parent": 148, "children": [], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 6}}, {"id": 150, "type": "pointer_declarator", "text": "*ptr_C", "parent": 148, "children": [151, 152], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 13}}, {"id": 151, "type": "*", "text": "*", "parent": 150, "children": [], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 8}}, {"id": 152, "type": "field_identifier", "text": "ptr_C", "parent": 150, "children": [], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 13}}, {"id": 153, "type": "field_declaration", "text": "float alpha, beta;", "parent": 133, "children": [154, 155, 156], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 20}}, {"id": 154, "type": "primitive_type", "text": "float", "parent": 153, "children": [], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 7}}, {"id": 155, "type": "field_identifier", "text": "alpha", "parent": 153, "children": [], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 13}}, {"id": 156, "type": "field_identifier", "text": "beta", "parent": 153, "children": [], "start_point": {"row": 58, "column": 15}, "end_point": {"row": 58, "column": 19}}, {"id": 157, "type": "field_declaration", "text": "int split_k_slices;", "parent": 133, "children": [158, 159], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 21}}, {"id": 158, "type": "primitive_type", "text": "int", "parent": 157, "children": [], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 5}}, {"id": 159, "type": "field_identifier", "text": "split_k_slices", "parent": 157, "children": [], "start_point": {"row": 59, "column": 6}, "end_point": {"row": 59, "column": 20}}, {"id": 160, "type": "field_declaration", "text": "void *workspace;", "parent": 133, "children": [161, 162], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 18}}, {"id": 161, "type": "primitive_type", "text": "void", "parent": 160, "children": [], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 6}}, {"id": 162, "type": "pointer_declarator", "text": "*workspace", "parent": 160, "children": [163, 164], "start_point": {"row": 60, "column": 7}, "end_point": {"row": 60, "column": 17}}, {"id": 163, "type": "*", "text": "*", "parent": 162, "children": [], "start_point": {"row": 60, "column": 7}, "end_point": {"row": 60, "column": 8}}, {"id": 164, "type": "field_identifier", "text": "workspace", "parent": 162, "children": [], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 17}}, {"id": 165, "type": "field_declaration", "text": "int ndim, N, C, K;", "parent": 133, "children": [166, 167, 168, 169, 170], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 20}}, {"id": 166, "type": "primitive_type", "text": "int", "parent": 165, "children": [], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 5}}, {"id": 167, "type": "field_identifier", "text": "ndim", "parent": 165, "children": [], "start_point": {"row": 62, "column": 6}, "end_point": {"row": 62, "column": 10}}, {"id": 168, "type": "field_identifier", "text": "N", "parent": 165, "children": [], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 62, "column": 13}}, {"id": 169, "type": "field_identifier", "text": "C", "parent": 165, "children": [], "start_point": {"row": 62, "column": 15}, "end_point": {"row": 62, "column": 16}}, {"id": 170, "type": "field_identifier", "text": "K", "parent": 165, "children": [], "start_point": {"row": 62, "column": 18}, "end_point": {"row": 62, "column": 19}}, {"id": 171, "type": "field_declaration", "text": "tv::array<int, CUMM_MAXIMUM_NVRTC_CONV_NDIM> input_dims, output_dims, ksize,\n padding, stride, dilation;", "parent": 133, "children": [172, 173, 174, 177, 178, 181, 182, 183, 184, 185], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 64, "column": 32}}, {"id": 172, "type": "type_identifier", "text": "tv", "parent": 171, "children": [], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 4}}, {"id": 173, "type": "field_identifier", "text": "array", "parent": 171, "children": [], "start_point": {"row": 63, "column": 6}, "end_point": {"row": 63, "column": 11}}, {"id": 174, "type": "ERROR", "text": "<int", "parent": 171, "children": [175, 176], "start_point": {"row": 63, "column": 11}, "end_point": {"row": 63, "column": 15}}, {"id": 175, "type": "<", "text": "<", "parent": 174, "children": [], "start_point": {"row": 63, "column": 11}, "end_point": {"row": 63, "column": 12}}, {"id": 176, "type": "primitive_type", "text": "int", "parent": 174, "children": [], "start_point": {"row": 63, "column": 12}, "end_point": {"row": 63, "column": 15}}, {"id": 177, "type": "field_identifier", "text": "CUMM_MAXIMUM_NVRTC_CONV_NDIM", "parent": 171, "children": [], "start_point": {"row": 63, "column": 17}, "end_point": {"row": 63, "column": 45}}, {"id": 178, "type": "ERROR", "text": "> input_dims", "parent": 171, "children": [179, 180], "start_point": {"row": 63, "column": 45}, "end_point": {"row": 63, "column": 57}}, {"id": 179, "type": ">", "text": ">", "parent": 178, "children": [], "start_point": {"row": 63, "column": 45}, "end_point": {"row": 63, "column": 46}}, {"id": 180, "type": "identifier", "text": "input_dims", "parent": 178, "children": [], "start_point": {"row": 63, "column": 47}, "end_point": {"row": 63, "column": 57}}, {"id": 181, "type": "field_identifier", "text": "output_dims", "parent": 171, "children": [], "start_point": {"row": 63, "column": 59}, "end_point": {"row": 63, "column": 70}}, {"id": 182, "type": "field_identifier", "text": "ksize", "parent": 171, "children": [], "start_point": {"row": 63, "column": 72}, "end_point": {"row": 63, "column": 77}}, {"id": 183, "type": "field_identifier", "text": "padding", "parent": 171, "children": [], "start_point": {"row": 64, "column": 6}, "end_point": {"row": 64, "column": 13}}, {"id": 184, "type": "field_identifier", "text": "stride", "parent": 171, "children": [], "start_point": {"row": 64, "column": 15}, "end_point": {"row": 64, "column": 21}}, {"id": 185, "type": "field_identifier", "text": "dilation", "parent": 171, "children": [], "start_point": {"row": 64, "column": 23}, "end_point": {"row": 64, "column": 31}}, {"id": 186, "type": "field_declaration", "text": "int kernel_volume;", "parent": 133, "children": [187, 188], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 65, "column": 20}}, {"id": 187, "type": "primitive_type", "text": "int", "parent": 186, "children": [], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 65, "column": 5}}, {"id": 188, "type": "field_identifier", "text": "kernel_volume", "parent": 186, "children": [], "start_point": {"row": 65, "column": 6}, "end_point": {"row": 65, "column": 19}}, {"id": 189, "type": "field_declaration", "text": "int mode;", "parent": 133, "children": [190, 191], "start_point": {"row": 66, "column": 2}, "end_point": {"row": 66, "column": 11}}, {"id": 190, "type": "primitive_type", "text": "int", "parent": 189, "children": [], "start_point": {"row": 66, "column": 2}, "end_point": {"row": 66, "column": 5}}, {"id": 191, "type": "field_identifier", "text": "mode", "parent": 189, "children": [], "start_point": {"row": 66, "column": 6}, "end_point": {"row": 66, "column": 10}}, {"id": 192, "type": "field_declaration", "text": "int groups;", "parent": 133, "children": [193, 194], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 13}}, {"id": 193, "type": "primitive_type", "text": "int", "parent": 192, "children": [], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 5}}, {"id": 194, "type": "field_identifier", "text": "groups", "parent": 192, "children": [], "start_point": {"row": 67, "column": 6}, "end_point": {"row": 67, "column": 12}}]}, "node_categories": {"declarations": {"functions": [10, 13], "variables": [20, 25, 36, 41, 47, 55, 59, 62, 70, 82, 87, 91, 94, 99, 104, 109, 112, 115, 118, 124, 127, 130, 136, 148, 153, 157, 160, 165, 171, 186, 189, 192], "classes": [16, 17, 67, 68, 133, 134], "imports": [3, 4], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [8, 11, 12, 14, 15, 18, 22, 23, 24, 29, 32, 35, 40, 43, 44, 45, 46, 51, 54, 57, 58, 61, 66, 69, 72, 75, 78, 81, 86, 89, 90, 93, 98, 103, 108, 111, 114, 117, 120, 121, 122, 123, 126, 129, 132, 135, 138, 141, 144, 147, 152, 155, 156, 159, 164, 167, 168, 169, 170, 172, 173, 177, 180, 181, 182, 183, 184, 185, 188, 191, 194], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 10, "universal_type": "function", "name": "GemmNVRTCParams", "text_snippet": "namespace tv {\nnamespace gemm {\n\nstruct GemmNVRTCParams {\npublic:\n int m, n, k;\n const void *ptr_A"}, {"node_id": 13, "universal_type": "function", "name": "GemmNVRTCParams", "text_snippet": "namespace gemm {\n\nstruct GemmNVRTCParams {\npublic:\n int m, n, k;\n const void *ptr_A, *ptr_B, *ptr_"}], "class_declarations": [{"node_id": 16, "universal_type": "class", "name": "GemmNVRTCParams", "text_snippet": "struct GemmNVRTCParams {\npublic:\n int m, n, k;\n const void *ptr_A, *ptr_B, *ptr_D;\n void *ptr_C;\n"}, {"node_id": 17, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 67, "universal_type": "class", "name": "SparseConvNVRTCParams", "text_snippet": "struct SparseConvNVRTCParams {\npublic:\n const void *ptr_A, *ptr_B, *ptr_D;\n void *ptr_C;\n float a"}, {"node_id": 68, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 133, "universal_type": "class", "name": "ConvNVRTCParams", "text_snippet": "struct ConvNVRTCParams {\npublic:\n const void *ptr_A, *ptr_B, *ptr_D;\n void *ptr_C;\n float alpha, "}, {"node_id": 134, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 3, "text": "#include <tensorview/core/all.h>\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "// Copyright 2022 <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#pragma once\n\n#include <tensorview/core/all.h>\n\n#define CUMM_MAXIMUM_NVRTC_CONV_NDIM 3\n\nnamespace tv {\nnamespace gemm {\n\nstruct GemmNVRTCParams {\npublic:\n int m, n, k;\n const void *ptr_A, *ptr_B, *ptr_D;\n void *ptr_C;\n int64_t stride_A, stride_B, stride_C, stride_D;\n const int *indiceA, *indiceBorC;\n float alpha, beta;\n int split_k_slices;\n void *workspace;\n};\n\nstruct SparseConvNVRTCParams {\npublic:\n const void *ptr_A, *ptr_B, *ptr_D;\n void *ptr_C;\n float alpha, beta;\n int split_k_slices;\n void *workspace;\n\n const uint32_t *mask_ptr;\n uint32_t *mask_out_ptr;\n uint32_t mask_filter;\n bool reverse_mask;\n int mask_width;\n\n int ndim, N, C, K;\n int kernel_volume;\n int mode;\n int groups;\n};\n\nstruct ConvNVRTCParams {\npublic:\n const void *ptr_A, *ptr_B, *ptr_D;\n void *ptr_C;\n float alpha, beta;\n int split_k_slices;\n void *workspace;\n\n int ndim, N, C, K;\n tv::array<int, CUMM_MAXIMUM_NVRTC_CONV_NDIM> input_dims, output_dims, ksize,\n padding, stride, dilation;\n int kernel_volume;\n int mode;\n int groups;\n};\n\n} // namespace gemm\n} // namespace tv"}
80,201
c
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import <objc/NSObject.h> @class NSDictionary, NSString; @interface GIPLocale : NSObject { NSDictionary *_appleLanguageToGoogleLanguage; NSString *_language; NSString *_locale; NSString *_countryCode; } + (id)countryCodeForLocale:(id)arg1; + (id)countryCodeForRegion:(id)arg1; + (id)countryCodeForLanguage:(id)arg1; + (id)legalDocsLanguageForPreferences:(id)arg1; + (id)currentLocaleCountryCode; + (id)defaultAppleToGoogleMapping; + (id)legalDocsLanguages; + (void)setCurrentLocale:(id)arg1; + (id)currentLocale; + (id)googleLocale; @property(retain, nonatomic) NSString *countryCode; // @synthesize countryCode=_countryCode; @property(retain, nonatomic) NSString *locale; // @synthesize locale=_locale; @property(retain, nonatomic) NSString *language; // @synthesize language=_language; - (void).cxx_destruct; - (id)currentGoogleCountryCode; - (id)currentGoogleLocale; - (id)currentGoogleLanguage; - (id)googleLocaleWithGoogleLanguage:(id)arg1 appleLocale:(id)arg2; - (void)recalculateLocale; - (id)googleLanguageWithAppleLanguages:(id)arg1; - (id)initWithLanguageMappings:(id)arg1; - (id)init; @end
34
37
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.\n//\n\n#import <objc/NSObject.h>\n\n@class NSDictionary, NSString;\n\n@interface GIPLocale : NSObject\n{\n NSDictionary *_appleLanguageToGoogleLanguage;\n NSString *_language;\n NSString *_locale;\n NSString *_countryCode;\n}\n\n+ (id)countryCodeForLocale:(id)arg1;\n+ (id)countryCodeForRegion:(id)arg1;\n+ (id)countryCodeForLanguage:(id)arg1;\n+ (id)legalDocsLanguageForPreferences:(id)arg1;\n+ (id)currentLocaleCountryCode;\n+ (id)defaultAppleToGoogleMapping;\n+ (id)legalDocsLanguages;\n+ (void)setCurrentLocale:(id)arg1;\n+ (id)currentLocale;\n+ (id)googleLocale;\n@property(retain, nonatomic) NSString *countryCode; // @synthesize countryCode=_countryCode;\n@property(retain, nonatomic) NSString *locale; // @synthesize locale=_locale;\n@property(retain, nonatomic) NSString *language; // @synthesize language=_language;\n- (void).cxx_destruct;\n- (id)currentGoogleCountryCode;\n- (id)currentGoogleLocale;\n- (id)currentGoogleLanguage;\n- (id)googleLocaleWithGoogleLanguage:(id)arg1 appleLocale:(id)arg2;\n- (void)recalculateLocale;\n- (id)googleLanguageWithAppleLanguages:(id)arg1;\n- (id)initWithLanguageMappings:(id)arg1;\n- (id)init;\n\n@end\n\n" (comment) "//" (comment) "// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48)." (comment) "//" (comment) "// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>." (comment) "//" (preproc_call) "#import <objc/NSObject.h>\n" (preproc_directive) "#import" (preproc_arg) "<objc/NSObject.h>" (ERROR) "@" (ERROR) "@" (declaration) "class NSDictionary, NSString;" (type_identifier) "class" (identifier) "NSDictionary" (,) "," (identifier) "NSString" (;) ";" (ERROR) "@" (ERROR) "@" (function_definition) "interface GIPLocale : NSObject\n{\n NSDictionary *_appleLanguageToGoogleLanguage;\n NSString *_language;\n NSString *_locale;\n NSString *_countryCode;\n}" (type_identifier) "interface" (identifier) "GIPLocale" (ERROR) ": NSObject" (:) ":" (identifier) "NSObject" (compound_statement) "{\n NSDictionary *_appleLanguageToGoogleLanguage;\n NSString *_language;\n NSString *_locale;\n NSString *_countryCode;\n}" ({) "{" (declaration) "NSDictionary *_appleLanguageToGoogleLanguage;" (type_identifier) "NSDictionary" (pointer_declarator) "*_appleLanguageToGoogleLanguage" (*) "*" (identifier) "_appleLanguageToGoogleLanguage" (;) ";" (declaration) "NSString *_language;" (type_identifier) "NSString" (pointer_declarator) "*_language" (*) "*" (identifier) "_language" (;) ";" (declaration) "NSString *_locale;" (type_identifier) "NSString" (pointer_declarator) "*_locale" (*) "*" (identifier) "_locale" (;) ";" (declaration) "NSString *_countryCode;" (type_identifier) "NSString" (pointer_declarator) "*_countryCode" (*) "*" (identifier) "_countryCode" (;) ";" (}) "}" (expression_statement) "+ (id)countryCodeForLocale:(id)arg1;" (unary_expression) "+ (id)countryCodeForLocale" (+) "+" (cast_expression) "(id)countryCodeForLocale" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "countryCodeForLocale" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "+ (id)countryCodeForRegion:(id)arg1;" (unary_expression) "+ (id)countryCodeForRegion" (+) "+" (cast_expression) "(id)countryCodeForRegion" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "countryCodeForRegion" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "+ (id)countryCodeForLanguage:(id)arg1;" (unary_expression) "+ (id)countryCodeForLanguage" (+) "+" (cast_expression) "(id)countryCodeForLanguage" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "countryCodeForLanguage" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "+ (id)legalDocsLanguageForPreferences:(id)arg1;" (unary_expression) "+ (id)legalDocsLanguageForPreferences" (+) "+" (cast_expression) "(id)legalDocsLanguageForPreferences" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "legalDocsLanguageForPreferences" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "+ (id)currentLocaleCountryCode;" (unary_expression) "+ (id)currentLocaleCountryCode" (+) "+" (cast_expression) "(id)currentLocaleCountryCode" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "currentLocaleCountryCode" (;) ";" (expression_statement) "+ (id)defaultAppleToGoogleMapping;" (unary_expression) "+ (id)defaultAppleToGoogleMapping" (+) "+" (cast_expression) "(id)defaultAppleToGoogleMapping" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "defaultAppleToGoogleMapping" (;) ";" (expression_statement) "+ (id)legalDocsLanguages;" (unary_expression) "+ (id)legalDocsLanguages" (+) "+" (cast_expression) "(id)legalDocsLanguages" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "legalDocsLanguages" (;) ";" (expression_statement) "+ (void)setCurrentLocale:(id)arg1;" (unary_expression) "+ (void)setCurrentLocale" (+) "+" (cast_expression) "(void)setCurrentLocale" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "setCurrentLocale" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "+ (id)currentLocale;" (unary_expression) "+ (id)currentLocale" (+) "+" (cast_expression) "(id)currentLocale" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "currentLocale" (;) ";" (expression_statement) "+ (id)googleLocale;" (unary_expression) "+ (id)googleLocale" (+) "+" (cast_expression) "(id)googleLocale" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "googleLocale" (;) ";" (ERROR) "@" (ERROR) "@" (expression_statement) "property(retain, nonatomic)" (call_expression) "property(retain, nonatomic)" (identifier) "property" (argument_list) "(retain, nonatomic)" (() "(" (identifier) "retain" (,) "," (identifier) "nonatomic" ()) ")" (;) "" (declaration) "NSString *countryCode;" (type_identifier) "NSString" (pointer_declarator) "*countryCode" (*) "*" (identifier) "countryCode" (;) ";" (comment) "// @synthesize countryCode=_countryCode;" (ERROR) "@" (ERROR) "@" (expression_statement) "property(retain, nonatomic)" (call_expression) "property(retain, nonatomic)" (identifier) "property" (argument_list) "(retain, nonatomic)" (() "(" (identifier) "retain" (,) "," (identifier) "nonatomic" ()) ")" (;) "" (declaration) "NSString *locale;" (type_identifier) "NSString" (pointer_declarator) "*locale" (*) "*" (identifier) "locale" (;) ";" (comment) "// @synthesize locale=_locale;" (ERROR) "@" (ERROR) "@" (expression_statement) "property(retain, nonatomic)" (call_expression) "property(retain, nonatomic)" (identifier) "property" (argument_list) "(retain, nonatomic)" (() "(" (identifier) "retain" (,) "," (identifier) "nonatomic" ()) ")" (;) "" (declaration) "NSString *language;" (type_identifier) "NSString" (pointer_declarator) "*language" (*) "*" (identifier) "language" (;) ";" (comment) "// @synthesize language=_language;" (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)currentGoogleCountryCode;" (unary_expression) "- (id)currentGoogleCountryCode" (-) "-" (cast_expression) "(id)currentGoogleCountryCode" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "currentGoogleCountryCode" (;) ";" (expression_statement) "- (id)currentGoogleLocale;" (unary_expression) "- (id)currentGoogleLocale" (-) "-" (cast_expression) "(id)currentGoogleLocale" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "currentGoogleLocale" (;) ";" (expression_statement) "- (id)currentGoogleLanguage;" (unary_expression) "- (id)currentGoogleLanguage" (-) "-" (cast_expression) "(id)currentGoogleLanguage" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "currentGoogleLanguage" (;) ";" (ERROR) "- (id)googleLocaleWithGoogleLanguage:(id)" (unary_expression) "- (id)googleLocaleWithGoogleLanguage" (-) "-" (cast_expression) "(id)googleLocaleWithGoogleLanguage" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "googleLocaleWithGoogleLanguage" (:) ":" (() "(" (identifier) "id" ()) ")" (declaration) "arg1 appleLocale:(id)arg2;" (type_identifier) "arg1" (identifier) "appleLocale" (ERROR) ":(id)arg2" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg2" (;) ";" (expression_statement) "- (void)recalculateLocale;" (unary_expression) "- (void)recalculateLocale" (-) "-" (cast_expression) "(void)recalculateLocale" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "recalculateLocale" (;) ";" (expression_statement) "- (id)googleLanguageWithAppleLanguages:(id)arg1;" (unary_expression) "- (id)googleLanguageWithAppleLanguages" (-) "-" (cast_expression) "(id)googleLanguageWithAppleLanguages" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "googleLanguageWithAppleLanguages" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "- (id)initWithLanguageMappings:(id)arg1;" (unary_expression) "- (id)initWithLanguageMappings" (-) "-" (cast_expression) "(id)initWithLanguageMappings" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "initWithLanguageMappings" (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" (;) ""
361
23
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 34.0, "nodes": 216, "errors": 0, "source_hash": "d8aba2fc61318c6b1b3fb8e01a314e01d091a742bc02baca8da1b44cee8fad86", "categorized_nodes": 134}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <objc/NSObject.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": "<objc/NSObject.h>", "parent": 0, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 25}}, {"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 NSDictionary, NSString;", "parent": null, "children": [6, 7], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 30}}, {"id": 6, "type": "identifier", "text": "NSDictionary", "parent": 5, "children": [], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 19}}, {"id": 7, "type": "identifier", "text": "NSString", "parent": 5, "children": [], "start_point": {"row": 8, "column": 21}, "end_point": {"row": 8, "column": 29}}, {"id": 8, "type": "ERROR", "text": "@", "parent": null, "children": [9], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 9, "type": "ERROR", "text": "@", "parent": 8, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 10, "type": "function_definition", "text": "interface GIPLocale : NSObject\n{\n NSDictionary *_appleLanguageToGoogleLanguage;\n NSString *_language;\n NSString *_locale;\n NSString *_countryCode;\n}", "parent": null, "children": [11, 12, 13], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 16, "column": 1}}, {"id": 11, "type": "type_identifier", "text": "interface", "parent": 10, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 10}}, {"id": 12, "type": "identifier", "text": "GIPLocale", "parent": 10, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 20}}, {"id": 13, "type": "ERROR", "text": ": NSObject", "parent": 10, "children": [14], "start_point": {"row": 10, "column": 21}, "end_point": {"row": 10, "column": 31}}, {"id": 14, "type": "identifier", "text": "NSObject", "parent": 13, "children": [], "start_point": {"row": 10, "column": 23}, "end_point": {"row": 10, "column": 31}}, {"id": 15, "type": "declaration", "text": "NSDictionary *_appleLanguageToGoogleLanguage;", "parent": 10, "children": [16, 17], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 49}}, {"id": 16, "type": "type_identifier", "text": "NSDictionary", "parent": 15, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 16}}, {"id": 17, "type": "pointer_declarator", "text": "*_appleLanguageToGoogleLanguage", "parent": 15, "children": [18, 19], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 12, "column": 48}}, {"id": 18, "type": "*", "text": "*", "parent": 17, "children": [], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 12, "column": 18}}, {"id": 19, "type": "identifier", "text": "_appleLanguageToGoogleLanguage", "parent": 17, "children": [], "start_point": {"row": 12, "column": 18}, "end_point": {"row": 12, "column": 48}}, {"id": 20, "type": "declaration", "text": "NSString *_language;", "parent": 10, "children": [21, 22], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 24}}, {"id": 21, "type": "type_identifier", "text": "NSString", "parent": 20, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 12}}, {"id": 22, "type": "pointer_declarator", "text": "*_language", "parent": 20, "children": [23, 24], "start_point": {"row": 13, "column": 13}, "end_point": {"row": 13, "column": 23}}, {"id": 23, "type": "*", "text": "*", "parent": 22, "children": [], "start_point": {"row": 13, "column": 13}, "end_point": {"row": 13, "column": 14}}, {"id": 24, "type": "identifier", "text": "_language", "parent": 22, "children": [], "start_point": {"row": 13, "column": 14}, "end_point": {"row": 13, "column": 23}}, {"id": 25, "type": "declaration", "text": "NSString *_locale;", "parent": 10, "children": [26, 27], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 22}}, {"id": 26, "type": "type_identifier", "text": "NSString", "parent": 25, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 12}}, {"id": 27, "type": "pointer_declarator", "text": "*_locale", "parent": 25, "children": [28, 29], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 21}}, {"id": 28, "type": "*", "text": "*", "parent": 27, "children": [], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 14}}, {"id": 29, "type": "identifier", "text": "_locale", "parent": 27, "children": [], "start_point": {"row": 14, "column": 14}, "end_point": {"row": 14, "column": 21}}, {"id": 30, "type": "declaration", "text": "NSString *_countryCode;", "parent": 10, "children": [31, 32], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 27}}, {"id": 31, "type": "type_identifier", "text": "NSString", "parent": 30, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 12}}, {"id": 32, "type": "pointer_declarator", "text": "*_countryCode", "parent": 30, "children": [33, 34], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 26}}, {"id": 33, "type": "*", "text": "*", "parent": 32, "children": [], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 14}}, {"id": 34, "type": "identifier", "text": "_countryCode", "parent": 32, "children": [], "start_point": {"row": 15, "column": 14}, "end_point": {"row": 15, "column": 26}}, {"id": 35, "type": "unary_expression", "text": "+ (id)countryCodeForLocale", "parent": null, "children": [36, 37], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 26}}, {"id": 36, "type": "+", "text": "+", "parent": 35, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 37, "type": "cast_expression", "text": "(id)countryCodeForLocale", "parent": 35, "children": [38, 40], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 26}}, {"id": 38, "type": "type_descriptor", "text": "id", "parent": 37, "children": [39], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 5}}, {"id": 39, "type": "type_identifier", "text": "id", "parent": 38, "children": [], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 5}}, {"id": 40, "type": "identifier", "text": "countryCodeForLocale", "parent": 37, "children": [], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 26}}, {"id": 41, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [42, 43], "start_point": {"row": 18, "column": 26}, "end_point": {"row": 18, "column": 35}}, {"id": 42, "type": "identifier", "text": "id", "parent": 41, "children": [], "start_point": {"row": 18, "column": 28}, "end_point": {"row": 18, "column": 30}}, {"id": 43, "type": "identifier", "text": "arg1", "parent": 41, "children": [], "start_point": {"row": 18, "column": 31}, "end_point": {"row": 18, "column": 35}}, {"id": 44, "type": "unary_expression", "text": "+ (id)countryCodeForRegion", "parent": null, "children": [45, 46], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 26}}, {"id": 45, "type": "+", "text": "+", "parent": 44, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 46, "type": "cast_expression", "text": "(id)countryCodeForRegion", "parent": 44, "children": [47, 49], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 26}}, {"id": 47, "type": "type_descriptor", "text": "id", "parent": 46, "children": [48], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 5}}, {"id": 48, "type": "type_identifier", "text": "id", "parent": 47, "children": [], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 5}}, {"id": 49, "type": "identifier", "text": "countryCodeForRegion", "parent": 46, "children": [], "start_point": {"row": 19, "column": 6}, "end_point": {"row": 19, "column": 26}}, {"id": 50, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [51, 52], "start_point": {"row": 19, "column": 26}, "end_point": {"row": 19, "column": 35}}, {"id": 51, "type": "identifier", "text": "id", "parent": 50, "children": [], "start_point": {"row": 19, "column": 28}, "end_point": {"row": 19, "column": 30}}, {"id": 52, "type": "identifier", "text": "arg1", "parent": 50, "children": [], "start_point": {"row": 19, "column": 31}, "end_point": {"row": 19, "column": 35}}, {"id": 53, "type": "unary_expression", "text": "+ (id)countryCodeForLanguage", "parent": null, "children": [54, 55], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 28}}, {"id": 54, "type": "+", "text": "+", "parent": 53, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 55, "type": "cast_expression", "text": "(id)countryCodeForLanguage", "parent": 53, "children": [56, 58], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 28}}, {"id": 56, "type": "type_descriptor", "text": "id", "parent": 55, "children": [57], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 5}}, {"id": 57, "type": "type_identifier", "text": "id", "parent": 56, "children": [], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 5}}, {"id": 58, "type": "identifier", "text": "countryCodeForLanguage", "parent": 55, "children": [], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 28}}, {"id": 59, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [60, 61], "start_point": {"row": 20, "column": 28}, "end_point": {"row": 20, "column": 37}}, {"id": 60, "type": "identifier", "text": "id", "parent": 59, "children": [], "start_point": {"row": 20, "column": 30}, "end_point": {"row": 20, "column": 32}}, {"id": 61, "type": "identifier", "text": "arg1", "parent": 59, "children": [], "start_point": {"row": 20, "column": 33}, "end_point": {"row": 20, "column": 37}}, {"id": 62, "type": "unary_expression", "text": "+ (id)legalDocsLanguageForPreferences", "parent": null, "children": [63, 64], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 37}}, {"id": 63, "type": "+", "text": "+", "parent": 62, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 64, "type": "cast_expression", "text": "(id)legalDocsLanguageForPreferences", "parent": 62, "children": [65, 67], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 37}}, {"id": 65, "type": "type_descriptor", "text": "id", "parent": 64, "children": [66], "start_point": {"row": 21, "column": 3}, "end_point": {"row": 21, "column": 5}}, {"id": 66, "type": "type_identifier", "text": "id", "parent": 65, "children": [], "start_point": {"row": 21, "column": 3}, "end_point": {"row": 21, "column": 5}}, {"id": 67, "type": "identifier", "text": "legalDocsLanguageForPreferences", "parent": 64, "children": [], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 37}}, {"id": 68, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [69, 70], "start_point": {"row": 21, "column": 37}, "end_point": {"row": 21, "column": 46}}, {"id": 69, "type": "identifier", "text": "id", "parent": 68, "children": [], "start_point": {"row": 21, "column": 39}, "end_point": {"row": 21, "column": 41}}, {"id": 70, "type": "identifier", "text": "arg1", "parent": 68, "children": [], "start_point": {"row": 21, "column": 42}, "end_point": {"row": 21, "column": 46}}, {"id": 71, "type": "unary_expression", "text": "+ (id)currentLocaleCountryCode", "parent": null, "children": [72, 73], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 30}}, {"id": 72, "type": "+", "text": "+", "parent": 71, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 1}}, {"id": 73, "type": "cast_expression", "text": "(id)currentLocaleCountryCode", "parent": 71, "children": [74, 76], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 30}}, {"id": 74, "type": "type_descriptor", "text": "id", "parent": 73, "children": [75], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 5}}, {"id": 75, "type": "type_identifier", "text": "id", "parent": 74, "children": [], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 5}}, {"id": 76, "type": "identifier", "text": "currentLocaleCountryCode", "parent": 73, "children": [], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 30}}, {"id": 77, "type": "unary_expression", "text": "+ (id)defaultAppleToGoogleMapping", "parent": null, "children": [78, 79], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 33}}, {"id": 78, "type": "+", "text": "+", "parent": 77, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 79, "type": "cast_expression", "text": "(id)defaultAppleToGoogleMapping", "parent": 77, "children": [80, 82], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 33}}, {"id": 80, "type": "type_descriptor", "text": "id", "parent": 79, "children": [81], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 5}}, {"id": 81, "type": "type_identifier", "text": "id", "parent": 80, "children": [], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 5}}, {"id": 82, "type": "identifier", "text": "defaultAppleToGoogleMapping", "parent": 79, "children": [], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 33}}, {"id": 83, "type": "unary_expression", "text": "+ (id)legalDocsLanguages", "parent": null, "children": [84, 85], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 24}}, {"id": 84, "type": "+", "text": "+", "parent": 83, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 85, "type": "cast_expression", "text": "(id)legalDocsLanguages", "parent": 83, "children": [86, 88], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 24}}, {"id": 86, "type": "type_descriptor", "text": "id", "parent": 85, "children": [87], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 5}}, {"id": 87, "type": "type_identifier", "text": "id", "parent": 86, "children": [], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 5}}, {"id": 88, "type": "identifier", "text": "legalDocsLanguages", "parent": 85, "children": [], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 24}}, {"id": 89, "type": "unary_expression", "text": "+ (void)setCurrentLocale", "parent": null, "children": [90, 91], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 24}}, {"id": 90, "type": "+", "text": "+", "parent": 89, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 91, "type": "cast_expression", "text": "(void)setCurrentLocale", "parent": 89, "children": [92, 94], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 24}}, {"id": 92, "type": "type_descriptor", "text": "void", "parent": 91, "children": [93], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 25, "column": 7}}, {"id": 93, "type": "primitive_type", "text": "void", "parent": 92, "children": [], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 25, "column": 7}}, {"id": 94, "type": "identifier", "text": "setCurrentLocale", "parent": 91, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 24}}, {"id": 95, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [96, 97], "start_point": {"row": 25, "column": 24}, "end_point": {"row": 25, "column": 33}}, {"id": 96, "type": "identifier", "text": "id", "parent": 95, "children": [], "start_point": {"row": 25, "column": 26}, "end_point": {"row": 25, "column": 28}}, {"id": 97, "type": "identifier", "text": "arg1", "parent": 95, "children": [], "start_point": {"row": 25, "column": 29}, "end_point": {"row": 25, "column": 33}}, {"id": 98, "type": "unary_expression", "text": "+ (id)currentLocale", "parent": null, "children": [99, 100], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 19}}, {"id": 99, "type": "+", "text": "+", "parent": 98, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 100, "type": "cast_expression", "text": "(id)currentLocale", "parent": 98, "children": [101, 103], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 19}}, {"id": 101, "type": "type_descriptor", "text": "id", "parent": 100, "children": [102], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 26, "column": 5}}, {"id": 102, "type": "type_identifier", "text": "id", "parent": 101, "children": [], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 26, "column": 5}}, {"id": 103, "type": "identifier", "text": "currentLocale", "parent": 100, "children": [], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 19}}, {"id": 104, "type": "unary_expression", "text": "+ (id)googleLocale", "parent": null, "children": [105, 106], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 18}}, {"id": 105, "type": "+", "text": "+", "parent": 104, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 1}}, {"id": 106, "type": "cast_expression", "text": "(id)googleLocale", "parent": 104, "children": [107, 109], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 18}}, {"id": 107, "type": "type_descriptor", "text": "id", "parent": 106, "children": [108], "start_point": {"row": 27, "column": 3}, "end_point": {"row": 27, "column": 5}}, {"id": 108, "type": "type_identifier", "text": "id", "parent": 107, "children": [], "start_point": {"row": 27, "column": 3}, "end_point": {"row": 27, "column": 5}}, {"id": 109, "type": "identifier", "text": "googleLocale", "parent": 106, "children": [], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 18}}, {"id": 110, "type": "ERROR", "text": "@", "parent": null, "children": [111], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 1}}, {"id": 111, "type": "ERROR", "text": "@", "parent": 110, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 1}}, {"id": 112, "type": "call_expression", "text": "property(retain, nonatomic)", "parent": null, "children": [113, 114], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 28}}, {"id": 113, "type": "identifier", "text": "property", "parent": 112, "children": [], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 9}}, {"id": 114, "type": "argument_list", "text": "(retain, nonatomic)", "parent": 112, "children": [115, 116], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 28}}, {"id": 115, "type": "identifier", "text": "retain", "parent": 114, "children": [], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 16}}, {"id": 116, "type": "identifier", "text": "nonatomic", "parent": 114, "children": [], "start_point": {"row": 28, "column": 18}, "end_point": {"row": 28, "column": 27}}, {"id": 117, "type": "declaration", "text": "NSString *countryCode;", "parent": null, "children": [118, 119], "start_point": {"row": 28, "column": 29}, "end_point": {"row": 28, "column": 51}}, {"id": 118, "type": "type_identifier", "text": "NSString", "parent": 117, "children": [], "start_point": {"row": 28, "column": 29}, "end_point": {"row": 28, "column": 37}}, {"id": 119, "type": "pointer_declarator", "text": "*countryCode", "parent": 117, "children": [120, 121], "start_point": {"row": 28, "column": 38}, "end_point": {"row": 28, "column": 50}}, {"id": 120, "type": "*", "text": "*", "parent": 119, "children": [], "start_point": {"row": 28, "column": 38}, "end_point": {"row": 28, "column": 39}}, {"id": 121, "type": "identifier", "text": "countryCode", "parent": 119, "children": [], "start_point": {"row": 28, "column": 39}, "end_point": {"row": 28, "column": 50}}, {"id": 122, "type": "ERROR", "text": "@", "parent": null, "children": [123], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 1}}, {"id": 123, "type": "ERROR", "text": "@", "parent": 122, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 1}}, {"id": 124, "type": "call_expression", "text": "property(retain, nonatomic)", "parent": null, "children": [125, 126], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 28}}, {"id": 125, "type": "identifier", "text": "property", "parent": 124, "children": [], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 9}}, {"id": 126, "type": "argument_list", "text": "(retain, nonatomic)", "parent": 124, "children": [127, 128], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 28}}, {"id": 127, "type": "identifier", "text": "retain", "parent": 126, "children": [], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 16}}, {"id": 128, "type": "identifier", "text": "nonatomic", "parent": 126, "children": [], "start_point": {"row": 29, "column": 18}, "end_point": {"row": 29, "column": 27}}, {"id": 129, "type": "declaration", "text": "NSString *locale;", "parent": null, "children": [130, 131], "start_point": {"row": 29, "column": 29}, "end_point": {"row": 29, "column": 46}}, {"id": 130, "type": "type_identifier", "text": "NSString", "parent": 129, "children": [], "start_point": {"row": 29, "column": 29}, "end_point": {"row": 29, "column": 37}}, {"id": 131, "type": "pointer_declarator", "text": "*locale", "parent": 129, "children": [132, 133], "start_point": {"row": 29, "column": 38}, "end_point": {"row": 29, "column": 45}}, {"id": 132, "type": "*", "text": "*", "parent": 131, "children": [], "start_point": {"row": 29, "column": 38}, "end_point": {"row": 29, "column": 39}}, {"id": 133, "type": "identifier", "text": "locale", "parent": 131, "children": [], "start_point": {"row": 29, "column": 39}, "end_point": {"row": 29, "column": 45}}, {"id": 134, "type": "ERROR", "text": "@", "parent": null, "children": [135], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 1}}, {"id": 135, "type": "ERROR", "text": "@", "parent": 134, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 1}}, {"id": 136, "type": "call_expression", "text": "property(retain, nonatomic)", "parent": null, "children": [137, 138], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 28}}, {"id": 137, "type": "identifier", "text": "property", "parent": 136, "children": [], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 9}}, {"id": 138, "type": "argument_list", "text": "(retain, nonatomic)", "parent": 136, "children": [139, 140], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 28}}, {"id": 139, "type": "identifier", "text": "retain", "parent": 138, "children": [], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 16}}, {"id": 140, "type": "identifier", "text": "nonatomic", "parent": 138, "children": [], "start_point": {"row": 30, "column": 18}, "end_point": {"row": 30, "column": 27}}, {"id": 141, "type": "declaration", "text": "NSString *language;", "parent": null, "children": [142, 143], "start_point": {"row": 30, "column": 29}, "end_point": {"row": 30, "column": 48}}, {"id": 142, "type": "type_identifier", "text": "NSString", "parent": 141, "children": [], "start_point": {"row": 30, "column": 29}, "end_point": {"row": 30, "column": 37}}, {"id": 143, "type": "pointer_declarator", "text": "*language", "parent": 141, "children": [144, 145], "start_point": {"row": 30, "column": 38}, "end_point": {"row": 30, "column": 47}}, {"id": 144, "type": "*", "text": "*", "parent": 143, "children": [], "start_point": {"row": 30, "column": 38}, "end_point": {"row": 30, "column": 39}}, {"id": 145, "type": "identifier", "text": "language", "parent": 143, "children": [], "start_point": {"row": 30, "column": 39}, "end_point": {"row": 30, "column": 47}}, {"id": 146, "type": "unary_expression", "text": "- (void).cxx_destruct", "parent": null, "children": [147, 148], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 21}}, {"id": 147, "type": "-", "text": "-", "parent": 146, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 1}}, {"id": 148, "type": "cast_expression", "text": "(void).cxx_destruct", "parent": 146, "children": [149, 151], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 21}}, {"id": 149, "type": "type_descriptor", "text": "void", "parent": 148, "children": [150], "start_point": {"row": 31, "column": 3}, "end_point": {"row": 31, "column": 7}}, {"id": 150, "type": "primitive_type", "text": "void", "parent": 149, "children": [], "start_point": {"row": 31, "column": 3}, "end_point": {"row": 31, "column": 7}}, {"id": 151, "type": "identifier", "text": "cxx_destruct", "parent": 148, "children": [], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 21}}, {"id": 152, "type": "unary_expression", "text": "- (id)currentGoogleCountryCode", "parent": null, "children": [153, 154], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 30}}, {"id": 153, "type": "-", "text": "-", "parent": 152, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 1}}, {"id": 154, "type": "cast_expression", "text": "(id)currentGoogleCountryCode", "parent": 152, "children": [155, 157], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 30}}, {"id": 155, "type": "type_descriptor", "text": "id", "parent": 154, "children": [156], "start_point": {"row": 32, "column": 3}, "end_point": {"row": 32, "column": 5}}, {"id": 156, "type": "type_identifier", "text": "id", "parent": 155, "children": [], "start_point": {"row": 32, "column": 3}, "end_point": {"row": 32, "column": 5}}, {"id": 157, "type": "identifier", "text": "currentGoogleCountryCode", "parent": 154, "children": [], "start_point": {"row": 32, "column": 6}, "end_point": {"row": 32, "column": 30}}, {"id": 158, "type": "unary_expression", "text": "- (id)currentGoogleLocale", "parent": null, "children": [159, 160], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 25}}, {"id": 159, "type": "-", "text": "-", "parent": 158, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 1}}, {"id": 160, "type": "cast_expression", "text": "(id)currentGoogleLocale", "parent": 158, "children": [161, 163], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 25}}, {"id": 161, "type": "type_descriptor", "text": "id", "parent": 160, "children": [162], "start_point": {"row": 33, "column": 3}, "end_point": {"row": 33, "column": 5}}, {"id": 162, "type": "type_identifier", "text": "id", "parent": 161, "children": [], "start_point": {"row": 33, "column": 3}, "end_point": {"row": 33, "column": 5}}, {"id": 163, "type": "identifier", "text": "currentGoogleLocale", "parent": 160, "children": [], "start_point": {"row": 33, "column": 6}, "end_point": {"row": 33, "column": 25}}, {"id": 164, "type": "unary_expression", "text": "- (id)currentGoogleLanguage", "parent": null, "children": [165, 166], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 27}}, {"id": 165, "type": "-", "text": "-", "parent": 164, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 1}}, {"id": 166, "type": "cast_expression", "text": "(id)currentGoogleLanguage", "parent": 164, "children": [167, 169], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 27}}, {"id": 167, "type": "type_descriptor", "text": "id", "parent": 166, "children": [168], "start_point": {"row": 34, "column": 3}, "end_point": {"row": 34, "column": 5}}, {"id": 168, "type": "type_identifier", "text": "id", "parent": 167, "children": [], "start_point": {"row": 34, "column": 3}, "end_point": {"row": 34, "column": 5}}, {"id": 169, "type": "identifier", "text": "currentGoogleLanguage", "parent": 166, "children": [], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 27}}, {"id": 170, "type": "ERROR", "text": "- (id)googleLocaleWithGoogleLanguage:(id)", "parent": null, "children": [171, 177], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 41}}, {"id": 171, "type": "unary_expression", "text": "- (id)googleLocaleWithGoogleLanguage", "parent": 170, "children": [172, 173], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 36}}, {"id": 172, "type": "-", "text": "-", "parent": 171, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 1}}, {"id": 173, "type": "cast_expression", "text": "(id)googleLocaleWithGoogleLanguage", "parent": 171, "children": [174, 176], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 36}}, {"id": 174, "type": "type_descriptor", "text": "id", "parent": 173, "children": [175], "start_point": {"row": 35, "column": 3}, "end_point": {"row": 35, "column": 5}}, {"id": 175, "type": "type_identifier", "text": "id", "parent": 174, "children": [], "start_point": {"row": 35, "column": 3}, "end_point": {"row": 35, "column": 5}}, {"id": 176, "type": "identifier", "text": "googleLocaleWithGoogleLanguage", "parent": 173, "children": [], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 36}}, {"id": 177, "type": "identifier", "text": "id", "parent": 170, "children": [], "start_point": {"row": 35, "column": 38}, "end_point": {"row": 35, "column": 40}}, {"id": 178, "type": "declaration", "text": "arg1 appleLocale:(id)arg2;", "parent": null, "children": [179, 180, 181], "start_point": {"row": 35, "column": 41}, "end_point": {"row": 35, "column": 67}}, {"id": 179, "type": "type_identifier", "text": "arg1", "parent": 178, "children": [], "start_point": {"row": 35, "column": 41}, "end_point": {"row": 35, "column": 45}}, {"id": 180, "type": "identifier", "text": "appleLocale", "parent": 178, "children": [], "start_point": {"row": 35, "column": 46}, "end_point": {"row": 35, "column": 57}}, {"id": 181, "type": "ERROR", "text": ":(id)arg2", "parent": 178, "children": [182, 183], "start_point": {"row": 35, "column": 57}, "end_point": {"row": 35, "column": 66}}, {"id": 182, "type": "identifier", "text": "id", "parent": 181, "children": [], "start_point": {"row": 35, "column": 59}, "end_point": {"row": 35, "column": 61}}, {"id": 183, "type": "identifier", "text": "arg2", "parent": 181, "children": [], "start_point": {"row": 35, "column": 62}, "end_point": {"row": 35, "column": 66}}, {"id": 184, "type": "unary_expression", "text": "- (void)recalculateLocale", "parent": null, "children": [185, 186], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 25}}, {"id": 185, "type": "-", "text": "-", "parent": 184, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 1}}, {"id": 186, "type": "cast_expression", "text": "(void)recalculateLocale", "parent": 184, "children": [187, 189], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 25}}, {"id": 187, "type": "type_descriptor", "text": "void", "parent": 186, "children": [188], "start_point": {"row": 36, "column": 3}, "end_point": {"row": 36, "column": 7}}, {"id": 188, "type": "primitive_type", "text": "void", "parent": 187, "children": [], "start_point": {"row": 36, "column": 3}, "end_point": {"row": 36, "column": 7}}, {"id": 189, "type": "identifier", "text": "recalculateLocale", "parent": 186, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 25}}, {"id": 190, "type": "unary_expression", "text": "- (id)googleLanguageWithAppleLanguages", "parent": null, "children": [191, 192], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 38}}, {"id": 191, "type": "-", "text": "-", "parent": 190, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 1}}, {"id": 192, "type": "cast_expression", "text": "(id)googleLanguageWithAppleLanguages", "parent": 190, "children": [193, 195], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 38}}, {"id": 193, "type": "type_descriptor", "text": "id", "parent": 192, "children": [194], "start_point": {"row": 37, "column": 3}, "end_point": {"row": 37, "column": 5}}, {"id": 194, "type": "type_identifier", "text": "id", "parent": 193, "children": [], "start_point": {"row": 37, "column": 3}, "end_point": {"row": 37, "column": 5}}, {"id": 195, "type": "identifier", "text": "googleLanguageWithAppleLanguages", "parent": 192, "children": [], "start_point": {"row": 37, "column": 6}, "end_point": {"row": 37, "column": 38}}, {"id": 196, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [197, 198], "start_point": {"row": 37, "column": 38}, "end_point": {"row": 37, "column": 47}}, {"id": 197, "type": "identifier", "text": "id", "parent": 196, "children": [], "start_point": {"row": 37, "column": 40}, "end_point": {"row": 37, "column": 42}}, {"id": 198, "type": "identifier", "text": "arg1", "parent": 196, "children": [], "start_point": {"row": 37, "column": 43}, "end_point": {"row": 37, "column": 47}}, {"id": 199, "type": "unary_expression", "text": "- (id)initWithLanguageMappings", "parent": null, "children": [200, 201], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 30}}, {"id": 200, "type": "-", "text": "-", "parent": 199, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 1}}, {"id": 201, "type": "cast_expression", "text": "(id)initWithLanguageMappings", "parent": 199, "children": [202, 204], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 30}}, {"id": 202, "type": "type_descriptor", "text": "id", "parent": 201, "children": [203], "start_point": {"row": 38, "column": 3}, "end_point": {"row": 38, "column": 5}}, {"id": 203, "type": "type_identifier", "text": "id", "parent": 202, "children": [], "start_point": {"row": 38, "column": 3}, "end_point": {"row": 38, "column": 5}}, {"id": 204, "type": "identifier", "text": "initWithLanguageMappings", "parent": 201, "children": [], "start_point": {"row": 38, "column": 6}, "end_point": {"row": 38, "column": 30}}, {"id": 205, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [206, 207], "start_point": {"row": 38, "column": 30}, "end_point": {"row": 38, "column": 39}}, {"id": 206, "type": "identifier", "text": "id", "parent": 205, "children": [], "start_point": {"row": 38, "column": 32}, "end_point": {"row": 38, "column": 34}}, {"id": 207, "type": "identifier", "text": "arg1", "parent": 205, "children": [], "start_point": {"row": 38, "column": 35}, "end_point": {"row": 38, "column": 39}}, {"id": 208, "type": "unary_expression", "text": "- (id)init", "parent": null, "children": [209, 210], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 10}}, {"id": 209, "type": "-", "text": "-", "parent": 208, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 1}}, {"id": 210, "type": "cast_expression", "text": "(id)init", "parent": 208, "children": [211, 213], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 10}}, {"id": 211, "type": "type_descriptor", "text": "id", "parent": 210, "children": [212], "start_point": {"row": 39, "column": 3}, "end_point": {"row": 39, "column": 5}}, {"id": 212, "type": "type_identifier", "text": "id", "parent": 211, "children": [], "start_point": {"row": 39, "column": 3}, "end_point": {"row": 39, "column": 5}}, {"id": 213, "type": "identifier", "text": "init", "parent": 210, "children": [], "start_point": {"row": 39, "column": 6}, "end_point": {"row": 39, "column": 10}}, {"id": 214, "type": "ERROR", "text": "@", "parent": null, "children": [215], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 1}}, {"id": 215, "type": "ERROR", "text": "@", "parent": 214, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 1}}]}, "node_categories": {"declarations": {"functions": [10], "variables": [5, 15, 20, 25, 30, 117, 129, 141, 178], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [35, 37, 44, 46, 53, 55, 62, 64, 71, 73, 77, 79, 83, 85, 89, 91, 98, 100, 104, 106, 112, 124, 136, 146, 148, 152, 154, 158, 160, 164, 166, 171, 173, 184, 186, 190, 192, 199, 201, 208, 210], "assignments": [], "loops": [], "conditionals": [6, 7, 11, 12, 14, 16, 19, 21, 24, 26, 29, 31, 34, 39, 40, 42, 43, 48, 49, 51, 52, 57, 58, 60, 61, 66, 67, 69, 70, 75, 76, 81, 82, 87, 88, 94, 96, 97, 102, 103, 108, 109, 113, 115, 116, 118, 121, 125, 127, 128, 130, 133, 137, 139, 140, 142, 145, 151, 156, 157, 162, 163, 168, 169, 175, 176, 177, 179, 180, 182, 183, 189, 194, 195, 197, 198, 203, 204, 206, 207, 212, 213], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 10, "universal_type": "function", "name": "GIPLocale", "text_snippet": "interface GIPLocale : NSObject\n{\n NSDictionary *_appleLanguageToGoogleLanguage;\n NSString *_la"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.\n//\n\n#import <objc/NSObject.h>\n\n@class NSDictionary, NSString;\n\n@interface GIPLocale : NSObject\n{\n NSDictionary *_appleLanguageToGoogleLanguage;\n NSString *_language;\n NSString *_locale;\n NSString *_countryCode;\n}\n\n+ (id)countryCodeForLocale:(id)arg1;\n+ (id)countryCodeForRegion:(id)arg1;\n+ (id)countryCodeForLanguage:(id)arg1;\n+ (id)legalDocsLanguageForPreferences:(id)arg1;\n+ (id)currentLocaleCountryCode;\n+ (id)defaultAppleToGoogleMapping;\n+ (id)legalDocsLanguages;\n+ (void)setCurrentLocale:(id)arg1;\n+ (id)currentLocale;\n+ (id)googleLocale;\n@property(retain, nonatomic) NSString *countryCode; // @synthesize countryCode=_countryCode;\n@property(retain, nonatomic) NSString *locale; // @synthesize locale=_locale;\n@property(retain, nonatomic) NSString *language; // @synthesize language=_language;\n- (void).cxx_destruct;\n- (id)currentGoogleCountryCode;\n- (id)currentGoogleLocale;\n- (id)currentGoogleLanguage;\n- (id)googleLocaleWithGoogleLanguage:(id)arg1 appleLocale:(id)arg2;\n- (void)recalculateLocale;\n- (id)googleLanguageWithAppleLanguages:(id)arg1;\n- (id)initWithLanguageMappings:(id)arg1;\n- (id)init;\n\n@end\n\n"}
80,202
c
// // ComputerOpponent.h // ReversiGame // // Created by <NAME> on 02/01/2013. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import "ReversiBoardDelegate.h" #import "ReversiBoard.h" /** A simple computer opponent. */ @interface ComputerOpponent : NSObject<ReversiBoardDelegate> - (id) initWithBoard:(ReversiBoard*)board color:(BoardCellState)computerColor maxDepth:(NSInteger)depth; - (void) shutdown; @end
27.29
17
(ERROR) "//\n// ComputerOpponent.h\n// ReversiGame\n//\n// Created by <NAME> on 02/01/2013.\n// Copyright (c) 2013 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "ReversiBoardDelegate.h"\n#import "ReversiBoard.h"\n\n/** A simple computer opponent. */\n@interface ComputerOpponent : NSObject<ReversiBoardDelegate>\n\n- (id) initWithBoard:(ReversiBoard*)board\n color:(BoardCellState)computerColor\n maxDepth:(NSInteger)depth;\n\n- (void) shutdown;\n\n@end\n" (comment) "//" (comment) "// ComputerOpponent.h" (comment) "// ReversiGame" (comment) "//" (comment) "// Created by <NAME> on 02/01/2013." (comment) "// Copyright (c) 2013 <NAME>. All rights reserved." (comment) "//" (preproc_call) "#import <Foundation/Foundation.h>\n" (preproc_directive) "#import" (preproc_arg) "<Foundation/Foundation.h>" (preproc_call) "#import "ReversiBoardDelegate.h"\n" (preproc_directive) "#import" (preproc_arg) ""ReversiBoardDelegate.h"" (preproc_call) "#import "ReversiBoard.h"\n" (preproc_directive) "#import" (preproc_arg) ""ReversiBoard.h"" (comment) "/** A simple computer opponent. */" (ERROR) "@interface ComputerOpponent : NSObject<ReversiBoardDelegate>\n\n- (id) initWithBoard:(" (ERROR) "@" (type_identifier) "interface" (ERROR) "ComputerOpponent : NSObject<" (identifier) "ComputerOpponent" (:) ":" (identifier) "NSObject" (<) "<" (identifier) "ReversiBoardDelegate" (>) ">" (unary_expression) "- (id) initWithBoard" (-) "-" (cast_expression) "(id) initWithBoard" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "initWithBoard" (:) ":" (() "(" (binary_expression) "ReversiBoard*)board" (identifier) "ReversiBoard" (*) "*" (ERROR) ")" ()) ")" (identifier) "board" (identifier) "color" (:) ":" (() "(" (identifier) "BoardCellState" ()) ")" (identifier) "computerColor" (identifier) "maxDepth" (:) ":" (() "(" (identifier) "NSInteger" ()) ")" (identifier) "depth" (;) ";" (-) "-" (() "(" (primitive_type) "void" ()) ")" (identifier) "shutdown" (;) ";" (ERROR) "@" (identifier) "end"
65
6
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 27.29, "nodes": 39, "errors": 0, "source_hash": "0b366d0ec994aa851a9285bc786f263be0989f62420b840511c5131679252da8", "categorized_nodes": 21}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// ComputerOpponent.h\n// ReversiGame\n//\n// Created by <NAME> on 02/01/2013.\n// Copyright (c) 2013 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import \"ReversiBoardDelegate.h\"\n#import \"ReversiBoard.h\"\n\n/** A simple computer opponent. */\n@interface ComputerOpponent : NSObject<ReversiBoardDelegate>\n\n- (id) initWithBoard:(ReversiBoard*)board\n color:(BoardCellState)computerColor\n maxDepth:(NSInteger)depth;\n\n- (void) shutdown;\n\n@end\n", "parent": null, "children": [1, 4, 7, 10, 25, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 1, "type": "preproc_call", "text": "#import <Foundation/Foundation.h>\n", "parent": 0, "children": [2, 3], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 2, "type": "preproc_directive", "text": "#import", "parent": 1, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 3, "type": "preproc_arg", "text": "<Foundation/Foundation.h>", "parent": 1, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 33}}, {"id": 4, "type": "preproc_call", "text": "#import \"ReversiBoardDelegate.h\"\n", "parent": 0, "children": [5, 6], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 5, "type": "preproc_directive", "text": "#import", "parent": 4, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 6, "type": "preproc_arg", "text": "\"ReversiBoardDelegate.h\"", "parent": 4, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 32}}, {"id": 7, "type": "preproc_call", "text": "#import \"ReversiBoard.h\"\n", "parent": 0, "children": [8, 9], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 8, "type": "preproc_directive", "text": "#import", "parent": 7, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 7}}, {"id": 9, "type": "preproc_arg", "text": "\"ReversiBoard.h\"", "parent": 7, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 24}}, {"id": 10, "type": "ERROR", "text": "@interface ComputerOpponent : NSObject<ReversiBoardDelegate>\n\n- (id) initWithBoard:(", "parent": 0, "children": [11, 12, 13, 17, 18, 19], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 15, "column": 22}}, {"id": 11, "type": "ERROR", "text": "@", "parent": 10, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 12, "type": "type_identifier", "text": "interface", "parent": 10, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 10}}, {"id": 13, "type": "ERROR", "text": "ComputerOpponent : NSObject<", "parent": 10, "children": [14, 15, 16], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 39}}, {"id": 14, "type": "identifier", "text": "ComputerOpponent", "parent": 13, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 27}}, {"id": 15, "type": "identifier", "text": "NSObject", "parent": 13, "children": [], "start_point": {"row": 13, "column": 30}, "end_point": {"row": 13, "column": 38}}, {"id": 16, "type": "<", "text": "<", "parent": 13, "children": [], "start_point": {"row": 13, "column": 38}, "end_point": {"row": 13, "column": 39}}, {"id": 17, "type": "identifier", "text": "ReversiBoardDelegate", "parent": 10, "children": [], "start_point": {"row": 13, "column": 39}, "end_point": {"row": 13, "column": 59}}, {"id": 18, "type": ">", "text": ">", "parent": 10, "children": [], "start_point": {"row": 13, "column": 59}, "end_point": {"row": 13, "column": 60}}, {"id": 19, "type": "unary_expression", "text": "- (id) initWithBoard", "parent": 10, "children": [20, 21], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 20}}, {"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) initWithBoard", "parent": 19, "children": [22, 24], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 20}}, {"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": "initWithBoard", "parent": 21, "children": [], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 20}}, {"id": 25, "type": "binary_expression", "text": "ReversiBoard*)board", "parent": 0, "children": [26, 27, 28], "start_point": {"row": 15, "column": 22}, "end_point": {"row": 15, "column": 41}}, {"id": 26, "type": "identifier", "text": "ReversiBoard", "parent": 25, "children": [], "start_point": {"row": 15, "column": 22}, "end_point": {"row": 15, "column": 34}}, {"id": 27, "type": "*", "text": "*", "parent": 25, "children": [], "start_point": {"row": 15, "column": 34}, "end_point": {"row": 15, "column": 35}}, {"id": 28, "type": "identifier", "text": "board", "parent": 25, "children": [], "start_point": {"row": 15, "column": 36}, "end_point": {"row": 15, "column": 41}}, {"id": 29, "type": "identifier", "text": "color", "parent": 0, "children": [], "start_point": {"row": 16, "column": 15}, "end_point": {"row": 16, "column": 20}}, {"id": 30, "type": "identifier", "text": "BoardCellState", "parent": 0, "children": [], "start_point": {"row": 16, "column": 22}, "end_point": {"row": 16, "column": 36}}, {"id": 31, "type": "identifier", "text": "computerColor", "parent": 0, "children": [], "start_point": {"row": 16, "column": 37}, "end_point": {"row": 16, "column": 50}}, {"id": 32, "type": "identifier", "text": "maxDepth", "parent": 0, "children": [], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 20}}, {"id": 33, "type": "identifier", "text": "NSInteger", "parent": 0, "children": [], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 31}}, {"id": 34, "type": "identifier", "text": "depth", "parent": 0, "children": [], "start_point": {"row": 17, "column": 32}, "end_point": {"row": 17, "column": 37}}, {"id": 35, "type": "-", "text": "-", "parent": 0, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 36, "type": "primitive_type", "text": "void", "parent": 0, "children": [], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 7}}, {"id": 37, "type": "identifier", "text": "shutdown", "parent": 0, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 17}}, {"id": 38, "type": "ERROR", "text": "@", "parent": 0, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 1}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [19, 21, 25], "assignments": [], "loops": [], "conditionals": [12, 14, 15, 17, 23, 24, 26, 28, 29, 30, 31, 32, 33, 34, 37], "returns": [], "exceptions": []}, "expressions": {"calls": [1, 4, 7], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// ComputerOpponent.h\n// ReversiGame\n//\n// Created by <NAME> on 02/01/2013.\n// Copyright (c) 2013 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import \"ReversiBoardDelegate.h\"\n#import \"ReversiBoard.h\"\n\n/** A simple computer opponent. */\n@interface ComputerOpponent : NSObject<ReversiBoardDelegate>\n\n- (id) initWithBoard:(ReversiBoard*)board\n color:(BoardCellState)computerColor\n maxDepth:(NSInteger)depth;\n\n- (void) shutdown;\n\n@end\n"}
80,203
c
/* * The MIT License * * Copyright (c) 1997-2021 The University of Utah * * 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. */ // Fluid.h #ifndef __FLUID_H__ #define __FLUID_H__ #include <CCA/Components/MPM/Materials/Contact/Contact.h> #include<CCA/Components/MPM/Materials/Contact/ContactMaterialSpec.h> #include <CCA/Components/MPM/Core/MPMFlags.h> #include <CCA/Ports/DataWarehouseP.h> #include <Core/Parallel/UintahParallelComponent.h> #include <Core/ProblemSpec/ProblemSpecP.h> #include <Core/ProblemSpec/ProblemSpec.h> #include <Core/Grid/GridP.h> #include <Core/Grid/LevelP.h> #include <Core/Grid/MaterialManager.h> #include <Core/Grid/MaterialManagerP.h> namespace Uintah { class DataWarehouse; class MPMLabel; class HydroMPMLabel; class MPMFlags; class ProcessorGroup; class Patch; class VarLabel; class Task; /************************************** CLASS FluidContact Short description... GENERAL INFORMATION FluidContact.h <NAME> Department of Civil Engineering Norwegian University of Science and Technology KEYWORDS Contact_Model_Fluid DESCRIPTION One of the derived Contact classes. This particular version is used to apply contact with pore fluid. WARNING ****************************************/ class FluidContact { private: // Prevent copying of this class // copy constructor FluidContact(const FluidContact &con); FluidContact& operator=(const FluidContact &con); MaterialManagerP d_sharedState; int d_rigid_material; double d_vol_const; double d_sepFac; bool d_compColinearNorms; int NGP; int NGN; public: // Constructor FluidContact(const ProcessorGroup* myworld, MaterialManagerP& d_sS,MPMLabel* lb, HydroMPMLabel* Hlb, MPMFlags* MFlag); // Destructor virtual ~FluidContact(); virtual void outputProblemSpec(ProblemSpecP& ps); // Basic contact methods virtual void exMomInterpolated(const ProcessorGroup*, const PatchSubset* patches, const MaterialSubset* matls, DataWarehouse* old_dw, DataWarehouse* new_dw); virtual void exMomIntegrated(const ProcessorGroup*, const PatchSubset* patches, const MaterialSubset* matls, DataWarehouse* old_dw, DataWarehouse* new_dw); virtual void addComputesAndRequiresInterpolated(SchedulerP & sched, const PatchSet* patches, const MaterialSet* matls); virtual void addComputesAndRequiresIntegrated(SchedulerP & sched, const PatchSet* patches, const MaterialSet* matls); protected: MPMLabel* lb; MPMFlags* flag; HydroMPMLabel* Hlb; int d_oneOrTwoStep; ContactMaterialSpec d_matls; }; } // End namespace Uintah #endif /* __FLUID_H__ */
35.73
122
(translation_unit) "/*\n * The MIT License\n *\n * Copyright (c) 1997-2021 The University of Utah\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\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell 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\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\n// Fluid.h\n\n#ifndef __FLUID_H__\n#define __FLUID_H__\n\n#include <CCA/Components/MPM/Materials/Contact/Contact.h>\n#include<CCA/Components/MPM/Materials/Contact/ContactMaterialSpec.h> \n#include <CCA/Components/MPM/Core/MPMFlags.h>\n#include <CCA/Ports/DataWarehouseP.h>\n#include <Core/Parallel/UintahParallelComponent.h>\n#include <Core/ProblemSpec/ProblemSpecP.h>\n#include <Core/ProblemSpec/ProblemSpec.h>\n#include <Core/Grid/GridP.h>\n#include <Core/Grid/LevelP.h>\n#include <Core/Grid/MaterialManager.h>\n#include <Core/Grid/MaterialManagerP.h>\n\n\nnamespace Uintah {\n\n class DataWarehouse;\n class MPMLabel;\n class HydroMPMLabel;\n class MPMFlags;\n class ProcessorGroup;\n class Patch;\n class VarLabel;\n class Task;\n\n/**************************************\n\nCLASS\n FluidContact\n \n Short description...\n\nGENERAL INFORMATION\n\n FluidContact.h\n\n <NAME>\n Department of Civil Engineering\n Norwegian University of Science and Technology\n\n\nKEYWORDS\n Contact_Model_Fluid\n\nDESCRIPTION\n One of the derived Contact classes. This particular\n version is used to apply contact with pore fluid.\n \nWARNING\n \n****************************************/\n\n class FluidContact {\n private:\n \n // Prevent copying of this class\n // copy constructor\n FluidContact(const FluidContact &con);\n FluidContact& operator=(const FluidContact &con);\n \n MaterialManagerP d_sharedState;\n \n int d_rigid_material;\n\n double d_vol_const;\n double d_sepFac;\n bool d_compColinearNorms;\n\n int NGP;\n int NGN;\n\n public:\n // Constructor\n FluidContact(const ProcessorGroup* myworld,\n MaterialManagerP& d_sS,MPMLabel* lb, HydroMPMLabel* Hlb,\n MPMFlags* MFlag);\n \n // Destructor\n virtual ~FluidContact();\n\n virtual void outputProblemSpec(ProblemSpecP& ps);\n\n // Basic contact methods\n virtual void exMomInterpolated(const ProcessorGroup*,\n const PatchSubset* patches,\n const MaterialSubset* matls,\n DataWarehouse* old_dw,\n DataWarehouse* new_dw);\n \n virtual void exMomIntegrated(const ProcessorGroup*,\n const PatchSubset* patches,\n const MaterialSubset* matls,\n DataWarehouse* old_dw,\n DataWarehouse* new_dw);\n \n virtual void addComputesAndRequiresInterpolated(SchedulerP & sched,\n const PatchSet* patches,\n const MaterialSet* matls);\n\n virtual void addComputesAndRequiresIntegrated(SchedulerP & sched,\n const PatchSet* patches,\n const MaterialSet* matls);\n \n protected:\n MPMLabel* lb;\n MPMFlags* flag;\n HydroMPMLabel* Hlb;\n int d_oneOrTwoStep;\n\n ContactMaterialSpec d_matls;\n };\n} // End namespace Uintah\n \n\n#endif /* __FLUID_H__ */\n\n" (comment) "/*\n * The MIT License\n *\n * Copyright (c) 1997-2021 The University of Utah\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\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell 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\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */" (comment) "// Fluid.h" (preproc_ifdef) "#ifndef __FLUID_H__\n#define __FLUID_H__\n\n#include <CCA/Components/MPM/Materials/Contact/Contact.h>\n#include<CCA/Components/MPM/Materials/Contact/ContactMaterialSpec.h> \n#include <CCA/Components/MPM/Core/MPMFlags.h>\n#include <CCA/Ports/DataWarehouseP.h>\n#include <Core/Parallel/UintahParallelComponent.h>\n#include <Core/ProblemSpec/ProblemSpecP.h>\n#include <Core/ProblemSpec/ProblemSpec.h>\n#include <Core/Grid/GridP.h>\n#include <Core/Grid/LevelP.h>\n#include <Core/Grid/MaterialManager.h>\n#include <Core/Grid/MaterialManagerP.h>\n\n\nnamespace Uintah {\n\n class DataWarehouse;\n class MPMLabel;\n class HydroMPMLabel;\n class MPMFlags;\n class ProcessorGroup;\n class Patch;\n class VarLabel;\n class Task;\n\n/**************************************\n\nCLASS\n FluidContact\n \n Short description...\n\nGENERAL INFORMATION\n\n FluidContact.h\n\n <NAME>\n Department of Civil Engineering\n Norwegian University of Science and Technology\n\n\nKEYWORDS\n Contact_Model_Fluid\n\nDESCRIPTION\n One of the derived Contact classes. This particular\n version is used to apply contact with pore fluid.\n \nWARNING\n \n****************************************/\n\n class FluidContact {\n private:\n \n // Prevent copying of this class\n // copy constructor\n FluidContact(const FluidContact &con);\n FluidContact& operator=(const FluidContact &con);\n \n MaterialManagerP d_sharedState;\n \n int d_rigid_material;\n\n double d_vol_const;\n double d_sepFac;\n bool d_compColinearNorms;\n\n int NGP;\n int NGN;\n\n public:\n // Constructor\n FluidContact(const ProcessorGroup* myworld,\n MaterialManagerP& d_sS,MPMLabel* lb, HydroMPMLabel* Hlb,\n MPMFlags* MFlag);\n \n // Destructor\n virtual ~FluidContact();\n\n virtual void outputProblemSpec(ProblemSpecP& ps);\n\n // Basic contact methods\n virtual void exMomInterpolated(const ProcessorGroup*,\n const PatchSubset* patches,\n const MaterialSubset* matls,\n DataWarehouse* old_dw,\n DataWarehouse* new_dw);\n \n virtual void exMomIntegrated(const ProcessorGroup*,\n const PatchSubset* patches,\n const MaterialSubset* matls,\n DataWarehouse* old_dw,\n DataWarehouse* new_dw);\n \n virtual void addComputesAndRequiresInterpolated(SchedulerP & sched,\n const PatchSet* patches,\n const MaterialSet* matls);\n\n virtual void addComputesAndRequiresIntegrated(SchedulerP & sched,\n const PatchSet* patches,\n const MaterialSet* matls);\n \n protected:\n MPMLabel* lb;\n MPMFlags* flag;\n HydroMPMLabel* Hlb;\n int d_oneOrTwoStep;\n\n ContactMaterialSpec d_matls;\n };\n} // End namespace Uintah\n \n\n#endif" (#ifndef) "#ifndef" (identifier) "__FLUID_H__" (preproc_def) "#define __FLUID_H__\n" (#define) "#define" (identifier) "__FLUID_H__" (preproc_include) "#include <CCA/Components/MPM/Materials/Contact/Contact.h>\n" (#include) "#include" (system_lib_string) "<CCA/Components/MPM/Materials/Contact/Contact.h>" (preproc_include) "#include<CCA/Components/MPM/Materials/Contact/ContactMaterialSpec.h>" (#include) "#include" (system_lib_string) "<CCA/Components/MPM/Materials/Contact/ContactMaterialSpec.h>" (preproc_include) "#include <CCA/Components/MPM/Core/MPMFlags.h>\n" (#include) "#include" (system_lib_string) "<CCA/Components/MPM/Core/MPMFlags.h>" (preproc_include) "#include <CCA/Ports/DataWarehouseP.h>\n" (#include) "#include" (system_lib_string) "<CCA/Ports/DataWarehouseP.h>" (preproc_include) "#include <Core/Parallel/UintahParallelComponent.h>\n" (#include) "#include" (system_lib_string) "<Core/Parallel/UintahParallelComponent.h>" (preproc_include) "#include <Core/ProblemSpec/ProblemSpecP.h>\n" (#include) "#include" (system_lib_string) "<Core/ProblemSpec/ProblemSpecP.h>" (preproc_include) "#include <Core/ProblemSpec/ProblemSpec.h>\n" (#include) "#include" (system_lib_string) "<Core/ProblemSpec/ProblemSpec.h>" (preproc_include) "#include <Core/Grid/GridP.h>\n" (#include) "#include" (system_lib_string) "<Core/Grid/GridP.h>" (preproc_include) "#include <Core/Grid/LevelP.h>\n" (#include) "#include" (system_lib_string) "<Core/Grid/LevelP.h>" (preproc_include) "#include <Core/Grid/MaterialManager.h>\n" (#include) "#include" (system_lib_string) "<Core/Grid/MaterialManager.h>" (preproc_include) "#include <Core/Grid/MaterialManagerP.h>\n" (#include) "#include" (system_lib_string) "<Core/Grid/MaterialManagerP.h>" (function_definition) "namespace Uintah {\n\n class DataWarehouse;\n class MPMLabel;\n class HydroMPMLabel;\n class MPMFlags;\n class ProcessorGroup;\n class Patch;\n class VarLabel;\n class Task;\n\n/**************************************\n\nCLASS\n FluidContact\n \n Short description...\n\nGENERAL INFORMATION\n\n FluidContact.h\n\n <NAME>\n Department of Civil Engineering\n Norwegian University of Science and Technology\n\n\nKEYWORDS\n Contact_Model_Fluid\n\nDESCRIPTION\n One of the derived Contact classes. This particular\n version is used to apply contact with pore fluid.\n \nWARNING\n \n****************************************/\n\n class FluidContact {\n private:\n \n // Prevent copying of this class\n // copy constructor\n FluidContact(const FluidContact &con);\n FluidContact& operator=(const FluidContact &con);\n \n MaterialManagerP d_sharedState;\n \n int d_rigid_material;\n\n double d_vol_const;\n double d_sepFac;\n bool d_compColinearNorms;\n\n int NGP;\n int NGN;\n\n public:\n // Constructor\n FluidContact(const ProcessorGroup* myworld,\n MaterialManagerP& d_sS,MPMLabel* lb, HydroMPMLabel* Hlb,\n MPMFlags* MFlag);\n \n // Destructor\n virtual ~FluidContact();\n\n virtual void outputProblemSpec(ProblemSpecP& ps);\n\n // Basic contact methods\n virtual void exMomInterpolated(const ProcessorGroup*,\n const PatchSubset* patches,\n const MaterialSubset* matls,\n DataWarehouse* old_dw,\n DataWarehouse* new_dw);\n \n virtual void exMomIntegrated(const ProcessorGroup*,\n const PatchSubset* patches,\n const MaterialSubset* matls,\n DataWarehouse* old_dw,\n DataWarehouse* new_dw);\n \n virtual void addComputesAndRequiresInterpolated(SchedulerP & sched,\n const PatchSet* patches,\n const MaterialSet* matls);\n\n virtual void addComputesAndRequiresIntegrated(SchedulerP & sched,\n const PatchSet* patches,\n const MaterialSet* matls);\n \n protected:\n MPMLabel* lb;\n MPMFlags* flag;\n HydroMPMLabel* Hlb;\n int d_oneOrTwoStep;\n\n ContactMaterialSpec d_matls;\n };\n}" (type_identifier) "namespace" (identifier) "Uintah" (compound_statement) "{\n\n class DataWarehouse;\n class MPMLabel;\n class HydroMPMLabel;\n class MPMFlags;\n class ProcessorGroup;\n class Patch;\n class VarLabel;\n class Task;\n\n/**************************************\n\nCLASS\n FluidContact\n \n Short description...\n\nGENERAL INFORMATION\n\n FluidContact.h\n\n <NAME>\n Department of Civil Engineering\n Norwegian University of Science and Technology\n\n\nKEYWORDS\n Contact_Model_Fluid\n\nDESCRIPTION\n One of the derived Contact classes. This particular\n version is used to apply contact with pore fluid.\n \nWARNING\n \n****************************************/\n\n class FluidContact {\n private:\n \n // Prevent copying of this class\n // copy constructor\n FluidContact(const FluidContact &con);\n FluidContact& operator=(const FluidContact &con);\n \n MaterialManagerP d_sharedState;\n \n int d_rigid_material;\n\n double d_vol_const;\n double d_sepFac;\n bool d_compColinearNorms;\n\n int NGP;\n int NGN;\n\n public:\n // Constructor\n FluidContact(const ProcessorGroup* myworld,\n MaterialManagerP& d_sS,MPMLabel* lb, HydroMPMLabel* Hlb,\n MPMFlags* MFlag);\n \n // Destructor\n virtual ~FluidContact();\n\n virtual void outputProblemSpec(ProblemSpecP& ps);\n\n // Basic contact methods\n virtual void exMomInterpolated(const ProcessorGroup*,\n const PatchSubset* patches,\n const MaterialSubset* matls,\n DataWarehouse* old_dw,\n DataWarehouse* new_dw);\n \n virtual void exMomIntegrated(const ProcessorGroup*,\n const PatchSubset* patches,\n const MaterialSubset* matls,\n DataWarehouse* old_dw,\n DataWarehouse* new_dw);\n \n virtual void addComputesAndRequiresInterpolated(SchedulerP & sched,\n const PatchSet* patches,\n const MaterialSet* matls);\n\n virtual void addComputesAndRequiresIntegrated(SchedulerP & sched,\n const PatchSet* patches,\n const MaterialSet* matls);\n \n protected:\n MPMLabel* lb;\n MPMFlags* flag;\n HydroMPMLabel* Hlb;\n int d_oneOrTwoStep;\n\n ContactMaterialSpec d_matls;\n };\n}" ({) "{" (declaration) "class DataWarehouse;" (type_identifier) "class" (identifier) "DataWarehouse" (;) ";" (declaration) "class MPMLabel;" (type_identifier) "class" (identifier) "MPMLabel" (;) ";" (declaration) "class HydroMPMLabel;" (type_identifier) "class" (identifier) "HydroMPMLabel" (;) ";" (declaration) "class MPMFlags;" (type_identifier) "class" (identifier) "MPMFlags" (;) ";" (declaration) "class ProcessorGroup;" (type_identifier) "class" (identifier) "ProcessorGroup" (;) ";" (declaration) "class Patch;" (type_identifier) "class" (identifier) "Patch" (;) ";" (declaration) "class VarLabel;" (type_identifier) "class" (identifier) "VarLabel" (;) ";" (declaration) "class Task;" (type_identifier) "class" (identifier) "Task" (;) ";" (comment) "/**************************************\n\nCLASS\n FluidContact\n \n Short description...\n\nGENERAL INFORMATION\n\n FluidContact.h\n\n <NAME>\n Department of Civil Engineering\n Norwegian University of Science and Technology\n\n\nKEYWORDS\n Contact_Model_Fluid\n\nDESCRIPTION\n One of the derived Contact classes. This particular\n version is used to apply contact with pore fluid.\n \nWARNING\n \n****************************************/" (function_definition) "class FluidContact {\n private:\n \n // Prevent copying of this class\n // copy constructor\n FluidContact(const FluidContact &con);\n FluidContact& operator=(const FluidContact &con);\n \n MaterialManagerP d_sharedState;\n \n int d_rigid_material;\n\n double d_vol_const;\n double d_sepFac;\n bool d_compColinearNorms;\n\n int NGP;\n int NGN;\n\n public:\n // Constructor\n FluidContact(const ProcessorGroup* myworld,\n MaterialManagerP& d_sS,MPMLabel* lb, HydroMPMLabel* Hlb,\n MPMFlags* MFlag);\n \n // Destructor\n virtual ~FluidContact();\n\n virtual void outputProblemSpec(ProblemSpecP& ps);\n\n // Basic contact methods\n virtual void exMomInterpolated(const ProcessorGroup*,\n const PatchSubset* patches,\n const MaterialSubset* matls,\n DataWarehouse* old_dw,\n DataWarehouse* new_dw);\n \n virtual void exMomIntegrated(const ProcessorGroup*,\n const PatchSubset* patches,\n const MaterialSubset* matls,\n DataWarehouse* old_dw,\n DataWarehouse* new_dw);\n \n virtual void addComputesAndRequiresInterpolated(SchedulerP & sched,\n const PatchSet* patches,\n const MaterialSet* matls);\n\n virtual void addComputesAndRequiresIntegrated(SchedulerP & sched,\n const PatchSet* patches,\n const MaterialSet* matls);\n \n protected:\n MPMLabel* lb;\n MPMFlags* flag;\n HydroMPMLabel* Hlb;\n int d_oneOrTwoStep;\n\n ContactMaterialSpec d_matls;\n }" (type_identifier) "class" (identifier) "FluidContact" (compound_statement) "{\n private:\n \n // Prevent copying of this class\n // copy constructor\n FluidContact(const FluidContact &con);\n FluidContact& operator=(const FluidContact &con);\n \n MaterialManagerP d_sharedState;\n \n int d_rigid_material;\n\n double d_vol_const;\n double d_sepFac;\n bool d_compColinearNorms;\n\n int NGP;\n int NGN;\n\n public:\n // Constructor\n FluidContact(const ProcessorGroup* myworld,\n MaterialManagerP& d_sS,MPMLabel* lb, HydroMPMLabel* Hlb,\n MPMFlags* MFlag);\n \n // Destructor\n virtual ~FluidContact();\n\n virtual void outputProblemSpec(ProblemSpecP& ps);\n\n // Basic contact methods\n virtual void exMomInterpolated(const ProcessorGroup*,\n const PatchSubset* patches,\n const MaterialSubset* matls,\n DataWarehouse* old_dw,\n DataWarehouse* new_dw);\n \n virtual void exMomIntegrated(const ProcessorGroup*,\n const PatchSubset* patches,\n const MaterialSubset* matls,\n DataWarehouse* old_dw,\n DataWarehouse* new_dw);\n \n virtual void addComputesAndRequiresInterpolated(SchedulerP & sched,\n const PatchSet* patches,\n const MaterialSet* matls);\n\n virtual void addComputesAndRequiresIntegrated(SchedulerP & sched,\n const PatchSet* patches,\n const MaterialSet* matls);\n \n protected:\n MPMLabel* lb;\n MPMFlags* flag;\n HydroMPMLabel* Hlb;\n int d_oneOrTwoStep;\n\n ContactMaterialSpec d_matls;\n }" ({) "{" (labeled_statement) "private:\n \n // Prevent copying of this class\n // copy constructor\n FluidContact(const FluidContact &con);" (statement_identifier) "private" (:) ":" (comment) "// Prevent copying of this class" (comment) "// copy constructor" (declaration) "FluidContact(const FluidContact &con);" (macro_type_specifier) "FluidContact(const FluidContact &con)" (identifier) "FluidContact" (() "(" (type_descriptor) "const FluidContact" (type_qualifier) "const" (const) "const" (type_identifier) "FluidContact" (ERROR) "&con" (&) "&" (identifier) "con" ()) ")" (identifier) "" (;) ";" (expression_statement) "FluidContact& operator=(const FluidContact &con);" (binary_expression) "FluidContact& operator=(const FluidContact &con)" (identifier) "FluidContact" (&) "&" (assignment_expression) "operator=(const FluidContact &con)" (identifier) "operator" (=) "=" (parenthesized_expression) "(const FluidContact &con)" (() "(" (ERROR) "const FluidContact" (type_descriptor) "const FluidContact" (type_qualifier) "const" (const) "const" (type_identifier) "FluidContact" (pointer_expression) "&con" (&) "&" (identifier) "con" ()) ")" (;) ";" (declaration) "MaterialManagerP d_sharedState;" (type_identifier) "MaterialManagerP" (identifier) "d_sharedState" (;) ";" (declaration) "int d_rigid_material;" (primitive_type) "int" (identifier) "d_rigid_material" (;) ";" (declaration) "double d_vol_const;" (primitive_type) "double" (identifier) "d_vol_const" (;) ";" (declaration) "double d_sepFac;" (primitive_type) "double" (identifier) "d_sepFac" (;) ";" (declaration) "bool d_compColinearNorms;" (primitive_type) "bool" (identifier) "d_compColinearNorms" (;) ";" (declaration) "int NGP;" (primitive_type) "int" (identifier) "NGP" (;) ";" (declaration) "int NGN;" (primitive_type) "int" (identifier) "NGN" (;) ";" (labeled_statement) "public:\n // Constructor\n FluidContact(const ProcessorGroup* myworld,\n MaterialManagerP& d_sS,MPMLabel* lb, HydroMPMLabel* Hlb,\n MPMFlags* MFlag);" (statement_identifier) "public" (:) ":" (comment) "// Constructor" (declaration) "FluidContact(const ProcessorGroup* myworld,\n MaterialManagerP& d_sS,MPMLabel* lb, HydroMPMLabel* Hlb,\n MPMFlags* MFlag);" (macro_type_specifier) "FluidContact(const ProcessorGroup*" (identifier) "FluidContact" (() "(" (type_descriptor) "const ProcessorGroup*" (type_qualifier) "const" (const) "const" (type_identifier) "ProcessorGroup" (abstract_pointer_declarator) "*" (*) "*" ()) "" (identifier) "myworld" (,) "," (identifier) "MaterialManagerP" (ERROR) "& d_sS" (&) "&" (identifier) "d_sS" (,) "," (ERROR) "MPMLabel" (identifier) "MPMLabel" (pointer_declarator) "* lb" (*) "*" (identifier) "lb" (,) "," (ERROR) "HydroMPMLabel" (identifier) "HydroMPMLabel" (pointer_declarator) "* Hlb" (*) "*" (identifier) "Hlb" (,) "," (ERROR) "MPMFlags" (identifier) "MPMFlags" (pointer_declarator) "* MFlag" (*) "*" (identifier) "MFlag" (ERROR) ")" ()) ")" (;) ";" (comment) "// Destructor" (declaration) "virtual ~FluidContact();" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "FluidContact()" (identifier) "FluidContact" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual void" (type_identifier) "virtual" (identifier) "void" (;) "" (expression_statement) "outputProblemSpec(ProblemSpecP& ps);" (call_expression) "outputProblemSpec(ProblemSpecP& ps)" (identifier) "outputProblemSpec" (argument_list) "(ProblemSpecP& ps)" (() "(" (binary_expression) "ProblemSpecP& ps" (identifier) "ProblemSpecP" (&) "&" (identifier) "ps" ()) ")" (;) ";" (comment) "// Basic contact methods" (declaration) "virtual void exMomInterpolated(const ProcessorGroup*,\n const PatchSubset* patches,\n const MaterialSubset* matls,\n DataWarehouse* old_dw,\n DataWarehouse* new_dw);" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "exMomInterpolated(const ProcessorGroup*,\n const PatchSubset* patches,\n const MaterialSubset* matls,\n DataWarehouse* old_dw,\n DataWarehouse* new_dw)" (identifier) "exMomInterpolated" (parameter_list) "(const ProcessorGroup*,\n const PatchSubset* patches,\n const MaterialSubset* matls,\n DataWarehouse* old_dw,\n DataWarehouse* new_dw)" (() "(" (parameter_declaration) "const ProcessorGroup*" (type_qualifier) "const" (const) "const" (type_identifier) "ProcessorGroup" (abstract_pointer_declarator) "*" (*) "*" (,) "," (parameter_declaration) "const PatchSubset* patches" (type_qualifier) "const" (const) "const" (type_identifier) "PatchSubset" (pointer_declarator) "* patches" (*) "*" (identifier) "patches" (,) "," (parameter_declaration) "const MaterialSubset* matls" (type_qualifier) "const" (const) "const" (type_identifier) "MaterialSubset" (pointer_declarator) "* matls" (*) "*" (identifier) "matls" (,) "," (parameter_declaration) "DataWarehouse* old_dw" (type_identifier) "DataWarehouse" (pointer_declarator) "* old_dw" (*) "*" (identifier) "old_dw" (,) "," (parameter_declaration) "DataWarehouse* new_dw" (type_identifier) "DataWarehouse" (pointer_declarator) "* new_dw" (*) "*" (identifier) "new_dw" ()) ")" (;) ";" (declaration) "virtual void exMomIntegrated(const ProcessorGroup*,\n const PatchSubset* patches,\n const MaterialSubset* matls,\n DataWarehouse* old_dw,\n DataWarehouse* new_dw);" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "exMomIntegrated(const ProcessorGroup*,\n const PatchSubset* patches,\n const MaterialSubset* matls,\n DataWarehouse* old_dw,\n DataWarehouse* new_dw)" (identifier) "exMomIntegrated" (parameter_list) "(const ProcessorGroup*,\n const PatchSubset* patches,\n const MaterialSubset* matls,\n DataWarehouse* old_dw,\n DataWarehouse* new_dw)" (() "(" (parameter_declaration) "const ProcessorGroup*" (type_qualifier) "const" (const) "const" (type_identifier) "ProcessorGroup" (abstract_pointer_declarator) "*" (*) "*" (,) "," (parameter_declaration) "const PatchSubset* patches" (type_qualifier) "const" (const) "const" (type_identifier) "PatchSubset" (pointer_declarator) "* patches" (*) "*" (identifier) "patches" (,) "," (parameter_declaration) "const MaterialSubset* matls" (type_qualifier) "const" (const) "const" (type_identifier) "MaterialSubset" (pointer_declarator) "* matls" (*) "*" (identifier) "matls" (,) "," (parameter_declaration) "DataWarehouse* old_dw" (type_identifier) "DataWarehouse" (pointer_declarator) "* old_dw" (*) "*" (identifier) "old_dw" (,) "," (parameter_declaration) "DataWarehouse* new_dw" (type_identifier) "DataWarehouse" (pointer_declarator) "* new_dw" (*) "*" (identifier) "new_dw" ()) ")" (;) ";" (declaration) "virtual void" (type_identifier) "virtual" (identifier) "void" (;) "" (expression_statement) "addComputesAndRequiresInterpolated(SchedulerP & sched,\n const PatchSet* patches,\n const MaterialSet* matls);" (call_expression) "addComputesAndRequiresInterpolated(SchedulerP & sched,\n const PatchSet* patches,\n const MaterialSet* matls)" (identifier) "addComputesAndRequiresInterpolated" (argument_list) "(SchedulerP & sched,\n const PatchSet* patches,\n const MaterialSet* matls)" (() "(" (binary_expression) "SchedulerP & sched" (identifier) "SchedulerP" (&) "&" (identifier) "sched" (,) "," (ERROR) "const" (identifier) "const" (binary_expression) "PatchSet* patches" (identifier) "PatchSet" (*) "*" (identifier) "patches" (,) "," (ERROR) "const" (identifier) "const" (binary_expression) "MaterialSet* matls" (identifier) "MaterialSet" (*) "*" (identifier) "matls" ()) ")" (;) ";" (declaration) "virtual void" (type_identifier) "virtual" (identifier) "void" (;) "" (expression_statement) "addComputesAndRequiresIntegrated(SchedulerP & sched,\n const PatchSet* patches,\n const MaterialSet* matls);" (call_expression) "addComputesAndRequiresIntegrated(SchedulerP & sched,\n const PatchSet* patches,\n const MaterialSet* matls)" (identifier) "addComputesAndRequiresIntegrated" (argument_list) "(SchedulerP & sched,\n const PatchSet* patches,\n const MaterialSet* matls)" (() "(" (binary_expression) "SchedulerP & sched" (identifier) "SchedulerP" (&) "&" (identifier) "sched" (,) "," (ERROR) "const" (identifier) "const" (binary_expression) "PatchSet* patches" (identifier) "PatchSet" (*) "*" (identifier) "patches" (,) "," (ERROR) "const" (identifier) "const" (binary_expression) "MaterialSet* matls" (identifier) "MaterialSet" (*) "*" (identifier) "matls" ()) ")" (;) ";" (labeled_statement) "protected:\n MPMLabel* lb;" (statement_identifier) "protected" (:) ":" (declaration) "MPMLabel* lb;" (type_identifier) "MPMLabel" (pointer_declarator) "* lb" (*) "*" (identifier) "lb" (;) ";" (declaration) "MPMFlags* flag;" (type_identifier) "MPMFlags" (pointer_declarator) "* flag" (*) "*" (identifier) "flag" (;) ";" (declaration) "HydroMPMLabel* Hlb;" (type_identifier) "HydroMPMLabel" (pointer_declarator) "* Hlb" (*) "*" (identifier) "Hlb" (;) ";" (declaration) "int d_oneOrTwoStep;" (primitive_type) "int" (identifier) "d_oneOrTwoStep" (;) ";" (declaration) "ContactMaterialSpec d_matls;" (type_identifier) "ContactMaterialSpec" (identifier) "d_matls" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (comment) "// End namespace Uintah" (#endif) "#endif" (comment) "/* __FLUID_H__ */"
402
14
{"language": "c", "success": true, "metadata": {"lines": 122, "avg_line_length": 35.73, "nodes": 263, "errors": 0, "source_hash": "ff9dcd18d282f9fdbb6a83350627fd3bf56b726d71d97d923ac8f01edc8f8fde", "categorized_nodes": 193}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __FLUID_H__\n#define __FLUID_H__\n\n#include <CCA/Components/MPM/Materials/Contact/Contact.h>\n#include<CCA/Components/MPM/Materials/Contact/ContactMaterialSpec.h> \n#include <CCA/Components/MPM/Core/MPMFlags.h>\n#include <CCA/Ports/DataWarehouseP.h>\n#include <Core/Parallel/UintahParallelComponent.h>\n#include <Core/ProblemSpec/ProblemSpecP.h>\n#include <Core/ProblemSpec/ProblemSpec.h>\n#include <Core/Grid/GridP.h>\n#include <Core/Grid/LevelP.h>\n#include <Core/Grid/MaterialManager.h>\n#include <Core/Grid/MaterialManagerP.h>\n\n\nnamespace Uintah {\n\n class DataWarehouse;\n class MPMLabel;\n class HydroMPMLabel;\n class MPMFlags;\n class ProcessorGroup;\n class Patch;\n class VarLabel;\n class Task;\n\n/**************************************\n\nCLASS\n FluidContact\n \n Short description...\n\nGENERAL INFORMATION\n\n FluidContact.h\n\n <NAME>\n Department of Civil Engineering\n Norwegian University of Science and Technology\n\n\nKEYWORDS\n Contact_Model_Fluid\n\nDESCRIPTION\n One of the derived Contact classes. This particular\n version is used to apply contact with pore fluid.\n \nWARNING\n \n****************************************/\n\n class FluidContact {\n private:\n \n // Prevent copying of this class\n // copy constructor\n FluidContact(const FluidContact &con);\n FluidContact& operator=(const FluidContact &con);\n \n MaterialManagerP d_sharedState;\n \n int d_rigid_material;\n\n double d_vol_const;\n double d_sepFac;\n bool d_compColinearNorms;\n\n int NGP;\n int NGN;\n\n public:\n // Constructor\n FluidContact(const ProcessorGroup* myworld,\n MaterialManagerP& d_sS,MPMLabel* lb, HydroMPMLabel* Hlb,\n MPMFlags* MFlag);\n \n // Destructor\n virtual ~FluidContact();\n\n virtual void outputProblemSpec(ProblemSpecP& ps);\n\n // Basic contact methods\n virtual void exMomInterpolated(const ProcessorGroup*,\n const PatchSubset* patches,\n const MaterialSubset* matls,\n DataWarehouse* old_dw,\n DataWarehouse* new_dw);\n \n virtual void exMomIntegrated(const ProcessorGroup*,\n const PatchSubset* patches,\n const MaterialSubset* matls,\n DataWarehouse* old_dw,\n DataWarehouse* new_dw);\n \n virtual void addComputesAndRequiresInterpolated(SchedulerP & sched,\n const PatchSet* patches,\n const MaterialSet* matls);\n\n virtual void addComputesAndRequiresIntegrated(SchedulerP & sched,\n const PatchSet* patches,\n const MaterialSet* matls);\n \n protected:\n MPMLabel* lb;\n MPMFlags* flag;\n HydroMPMLabel* Hlb;\n int d_oneOrTwoStep;\n\n ContactMaterialSpec d_matls;\n };\n} // End namespace Uintah\n \n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 262], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 142, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 7}}, {"id": 2, "type": "identifier", "text": "__FLUID_H__", "parent": 0, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 19}}, {"id": 3, "type": "preproc_def", "text": "#define __FLUID_H__\n", "parent": 0, "children": [4, 5], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 7}}, {"id": 5, "type": "identifier", "text": "__FLUID_H__", "parent": 3, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 19}}, {"id": 6, "type": "preproc_include", "text": "#include <CCA/Components/MPM/Materials/Contact/Contact.h>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<CCA/Components/MPM/Materials/Contact/Contact.h>", "parent": 6, "children": [], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 57}}, {"id": 9, "type": "preproc_include", "text": "#include<CCA/Components/MPM/Materials/Contact/ContactMaterialSpec.h>", "parent": 0, "children": [10, 11], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 68}}, {"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": "<CCA/Components/MPM/Materials/Contact/ContactMaterialSpec.h>", "parent": 9, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 68}}, {"id": 12, "type": "preproc_include", "text": "#include <CCA/Components/MPM/Core/MPMFlags.h>\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": "<CCA/Components/MPM/Core/MPMFlags.h>", "parent": 12, "children": [], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 45}}, {"id": 15, "type": "preproc_include", "text": "#include <CCA/Ports/DataWarehouseP.h>\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": "<CCA/Ports/DataWarehouseP.h>", "parent": 15, "children": [], "start_point": {"row": 32, "column": 9}, "end_point": {"row": 32, "column": 37}}, {"id": 18, "type": "preproc_include", "text": "#include <Core/Parallel/UintahParallelComponent.h>\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": "<Core/Parallel/UintahParallelComponent.h>", "parent": 18, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 50}}, {"id": 21, "type": "preproc_include", "text": "#include <Core/ProblemSpec/ProblemSpecP.h>\n", "parent": 0, "children": [22, 23], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 35, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 8}}, {"id": 23, "type": "system_lib_string", "text": "<Core/ProblemSpec/ProblemSpecP.h>", "parent": 21, "children": [], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 42}}, {"id": 24, "type": "preproc_include", "text": "#include <Core/ProblemSpec/ProblemSpec.h>\n", "parent": 0, "children": [25, 26], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 36, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 8}}, {"id": 26, "type": "system_lib_string", "text": "<Core/ProblemSpec/ProblemSpec.h>", "parent": 24, "children": [], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 41}}, {"id": 27, "type": "preproc_include", "text": "#include <Core/Grid/GridP.h>\n", "parent": 0, "children": [28, 29], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 37, "column": 0}}, {"id": 28, "type": "#include", "text": "#include", "parent": 27, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 8}}, {"id": 29, "type": "system_lib_string", "text": "<Core/Grid/GridP.h>", "parent": 27, "children": [], "start_point": {"row": 36, "column": 9}, "end_point": {"row": 36, "column": 28}}, {"id": 30, "type": "preproc_include", "text": "#include <Core/Grid/LevelP.h>\n", "parent": 0, "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": "<Core/Grid/LevelP.h>", "parent": 30, "children": [], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 29}}, {"id": 33, "type": "preproc_include", "text": "#include <Core/Grid/MaterialManager.h>\n", "parent": 0, "children": [34, 35], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 39, "column": 0}}, {"id": 34, "type": "#include", "text": "#include", "parent": 33, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 8}}, {"id": 35, "type": "system_lib_string", "text": "<Core/Grid/MaterialManager.h>", "parent": 33, "children": [], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 38}}, {"id": 36, "type": "preproc_include", "text": "#include <Core/Grid/MaterialManagerP.h>\n", "parent": 0, "children": [37, 38], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 40, "column": 0}}, {"id": 37, "type": "#include", "text": "#include", "parent": 36, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 8}}, {"id": 38, "type": "system_lib_string", "text": "<Core/Grid/MaterialManagerP.h>", "parent": 36, "children": [], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 39}}, {"id": 39, "type": "function_definition", "text": "namespace Uintah {\n\n class DataWarehouse;\n class MPMLabel;\n class HydroMPMLabel;\n class MPMFlags;\n class ProcessorGroup;\n class Patch;\n class VarLabel;\n class Task;\n\n/**************************************\n\nCLASS\n FluidContact\n \n Short description...\n\nGENERAL INFORMATION\n\n FluidContact.h\n\n <NAME>\n Department of Civil Engineering\n Norwegian University of Science and Technology\n\n\nKEYWORDS\n Contact_Model_Fluid\n\nDESCRIPTION\n One of the derived Contact classes. This particular\n version is used to apply contact with pore fluid.\n \nWARNING\n \n****************************************/\n\n class FluidContact {\n private:\n \n // Prevent copying of this class\n // copy constructor\n FluidContact(const FluidContact &con);\n FluidContact& operator=(const FluidContact &con);\n \n MaterialManagerP d_sharedState;\n \n int d_rigid_material;\n\n double d_vol_const;\n double d_sepFac;\n bool d_compColinearNorms;\n\n int NGP;\n int NGN;\n\n public:\n // Constructor\n FluidContact(const ProcessorGroup* myworld,\n MaterialManagerP& d_sS,MPMLabel* lb, HydroMPMLabel* Hlb,\n MPMFlags* MFlag);\n \n // Destructor\n virtual ~FluidContact();\n\n virtual void outputProblemSpec(ProblemSpecP& ps);\n\n // Basic contact methods\n virtual void exMomInterpolated(const ProcessorGroup*,\n const PatchSubset* patches,\n const MaterialSubset* matls,\n DataWarehouse* old_dw,\n DataWarehouse* new_dw);\n \n virtual void exMomIntegrated(const ProcessorGroup*,\n const PatchSubset* patches,\n const MaterialSubset* matls,\n DataWarehouse* old_dw,\n DataWarehouse* new_dw);\n \n virtual void addComputesAndRequiresInterpolated(SchedulerP & sched,\n const PatchSet* patches,\n const MaterialSet* matls);\n\n virtual void addComputesAndRequiresIntegrated(SchedulerP & sched,\n const PatchSet* patches,\n const MaterialSet* matls);\n \n protected:\n MPMLabel* lb;\n MPMFlags* flag;\n HydroMPMLabel* Hlb;\n int d_oneOrTwoStep;\n\n ContactMaterialSpec d_matls;\n };\n}", "parent": 0, "children": [40, 41], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 139, "column": 1}}, {"id": 40, "type": "type_identifier", "text": "namespace", "parent": 39, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 9}}, {"id": 41, "type": "identifier", "text": "Uintah", "parent": 39, "children": [], "start_point": {"row": 42, "column": 10}, "end_point": {"row": 42, "column": 16}}, {"id": 42, "type": "declaration", "text": "class DataWarehouse;", "parent": 39, "children": [43], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 24}}, {"id": 43, "type": "identifier", "text": "DataWarehouse", "parent": 42, "children": [], "start_point": {"row": 44, "column": 10}, "end_point": {"row": 44, "column": 23}}, {"id": 44, "type": "declaration", "text": "class MPMLabel;", "parent": 39, "children": [45], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 19}}, {"id": 45, "type": "identifier", "text": "MPMLabel", "parent": 44, "children": [], "start_point": {"row": 45, "column": 10}, "end_point": {"row": 45, "column": 18}}, {"id": 46, "type": "declaration", "text": "class HydroMPMLabel;", "parent": 39, "children": [47], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 24}}, {"id": 47, "type": "identifier", "text": "HydroMPMLabel", "parent": 46, "children": [], "start_point": {"row": 46, "column": 10}, "end_point": {"row": 46, "column": 23}}, {"id": 48, "type": "declaration", "text": "class MPMFlags;", "parent": 39, "children": [49], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 19}}, {"id": 49, "type": "identifier", "text": "MPMFlags", "parent": 48, "children": [], "start_point": {"row": 47, "column": 10}, "end_point": {"row": 47, "column": 18}}, {"id": 50, "type": "declaration", "text": "class ProcessorGroup;", "parent": 39, "children": [51], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 25}}, {"id": 51, "type": "identifier", "text": "ProcessorGroup", "parent": 50, "children": [], "start_point": {"row": 48, "column": 10}, "end_point": {"row": 48, "column": 24}}, {"id": 52, "type": "declaration", "text": "class Patch;", "parent": 39, "children": [53], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 16}}, {"id": 53, "type": "identifier", "text": "Patch", "parent": 52, "children": [], "start_point": {"row": 49, "column": 10}, "end_point": {"row": 49, "column": 15}}, {"id": 54, "type": "declaration", "text": "class VarLabel;", "parent": 39, "children": [55], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 19}}, {"id": 55, "type": "identifier", "text": "VarLabel", "parent": 54, "children": [], "start_point": {"row": 50, "column": 10}, "end_point": {"row": 50, "column": 18}}, {"id": 56, "type": "declaration", "text": "class Task;", "parent": 39, "children": [57], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 15}}, {"id": 57, "type": "identifier", "text": "Task", "parent": 56, "children": [], "start_point": {"row": 51, "column": 10}, "end_point": {"row": 51, "column": 14}}, {"id": 58, "type": "function_definition", "text": "class FluidContact {\n private:\n \n // Prevent copying of this class\n // copy constructor\n FluidContact(const FluidContact &con);\n FluidContact& operator=(const FluidContact &con);\n \n MaterialManagerP d_sharedState;\n \n int d_rigid_material;\n\n double d_vol_const;\n double d_sepFac;\n bool d_compColinearNorms;\n\n int NGP;\n int NGN;\n\n public:\n // Constructor\n FluidContact(const ProcessorGroup* myworld,\n MaterialManagerP& d_sS,MPMLabel* lb, HydroMPMLabel* Hlb,\n MPMFlags* MFlag);\n \n // Destructor\n virtual ~FluidContact();\n\n virtual void outputProblemSpec(ProblemSpecP& ps);\n\n // Basic contact methods\n virtual void exMomInterpolated(const ProcessorGroup*,\n const PatchSubset* patches,\n const MaterialSubset* matls,\n DataWarehouse* old_dw,\n DataWarehouse* new_dw);\n \n virtual void exMomIntegrated(const ProcessorGroup*,\n const PatchSubset* patches,\n const MaterialSubset* matls,\n DataWarehouse* old_dw,\n DataWarehouse* new_dw);\n \n virtual void addComputesAndRequiresInterpolated(SchedulerP & sched,\n const PatchSet* patches,\n const MaterialSet* matls);\n\n virtual void addComputesAndRequiresIntegrated(SchedulerP & sched,\n const PatchSet* patches,\n const MaterialSet* matls);\n \n protected:\n MPMLabel* lb;\n MPMFlags* flag;\n HydroMPMLabel* Hlb;\n int d_oneOrTwoStep;\n\n ContactMaterialSpec d_matls;\n }", "parent": 39, "children": [59], "start_point": {"row": 80, "column": 6}, "end_point": {"row": 138, "column": 7}}, {"id": 59, "type": "identifier", "text": "FluidContact", "parent": 58, "children": [], "start_point": {"row": 80, "column": 12}, "end_point": {"row": 80, "column": 24}}, {"id": 60, "type": "labeled_statement", "text": "private:\n \n // Prevent copying of this class\n // copy constructor\n FluidContact(const FluidContact &con);", "parent": 58, "children": [61], "start_point": {"row": 81, "column": 6}, "end_point": {"row": 85, "column": 47}}, {"id": 61, "type": "declaration", "text": "FluidContact(const FluidContact &con);", "parent": 60, "children": [62, 68], "start_point": {"row": 85, "column": 9}, "end_point": {"row": 85, "column": 47}}, {"id": 62, "type": "macro_type_specifier", "text": "FluidContact(const FluidContact &con)", "parent": 61, "children": [63, 64, 66], "start_point": {"row": 85, "column": 9}, "end_point": {"row": 85, "column": 46}}, {"id": 63, "type": "identifier", "text": "FluidContact", "parent": 62, "children": [], "start_point": {"row": 85, "column": 9}, "end_point": {"row": 85, "column": 21}}, {"id": 64, "type": "type_descriptor", "text": "const FluidContact", "parent": 62, "children": [65], "start_point": {"row": 85, "column": 22}, "end_point": {"row": 85, "column": 40}}, {"id": 65, "type": "type_identifier", "text": "FluidContact", "parent": 64, "children": [], "start_point": {"row": 85, "column": 28}, "end_point": {"row": 85, "column": 40}}, {"id": 66, "type": "ERROR", "text": "&con", "parent": 62, "children": [67], "start_point": {"row": 85, "column": 41}, "end_point": {"row": 85, "column": 45}}, {"id": 67, "type": "identifier", "text": "con", "parent": 66, "children": [], "start_point": {"row": 85, "column": 42}, "end_point": {"row": 85, "column": 45}}, {"id": 68, "type": "identifier", "text": "", "parent": 61, "children": [], "start_point": {"row": 85, "column": 46}, "end_point": {"row": 85, "column": 46}}, {"id": 69, "type": "binary_expression", "text": "FluidContact& operator=(const FluidContact &con)", "parent": 58, "children": [70, 71], "start_point": {"row": 86, "column": 9}, "end_point": {"row": 86, "column": 57}}, {"id": 70, "type": "identifier", "text": "FluidContact", "parent": 69, "children": [], "start_point": {"row": 86, "column": 9}, "end_point": {"row": 86, "column": 21}}, {"id": 71, "type": "assignment_expression", "text": "operator=(const FluidContact &con)", "parent": 69, "children": [72, 73, 74], "start_point": {"row": 86, "column": 23}, "end_point": {"row": 86, "column": 57}}, {"id": 72, "type": "identifier", "text": "operator", "parent": 71, "children": [], "start_point": {"row": 86, "column": 23}, "end_point": {"row": 86, "column": 31}}, {"id": 73, "type": "=", "text": "=", "parent": 71, "children": [], "start_point": {"row": 86, "column": 31}, "end_point": {"row": 86, "column": 32}}, {"id": 74, "type": "parenthesized_expression", "text": "(const FluidContact &con)", "parent": 71, "children": [75, 78], "start_point": {"row": 86, "column": 32}, "end_point": {"row": 86, "column": 57}}, {"id": 75, "type": "ERROR", "text": "const FluidContact", "parent": 74, "children": [76], "start_point": {"row": 86, "column": 33}, "end_point": {"row": 86, "column": 51}}, {"id": 76, "type": "type_descriptor", "text": "const FluidContact", "parent": 75, "children": [77], "start_point": {"row": 86, "column": 33}, "end_point": {"row": 86, "column": 51}}, {"id": 77, "type": "type_identifier", "text": "FluidContact", "parent": 76, "children": [], "start_point": {"row": 86, "column": 39}, "end_point": {"row": 86, "column": 51}}, {"id": 78, "type": "pointer_expression", "text": "&con", "parent": 74, "children": [79], "start_point": {"row": 86, "column": 52}, "end_point": {"row": 86, "column": 56}}, {"id": 79, "type": "identifier", "text": "con", "parent": 78, "children": [], "start_point": {"row": 86, "column": 53}, "end_point": {"row": 86, "column": 56}}, {"id": 80, "type": "declaration", "text": "MaterialManagerP d_sharedState;", "parent": 58, "children": [81, 82], "start_point": {"row": 88, "column": 9}, "end_point": {"row": 88, "column": 43}}, {"id": 81, "type": "type_identifier", "text": "MaterialManagerP", "parent": 80, "children": [], "start_point": {"row": 88, "column": 9}, "end_point": {"row": 88, "column": 25}}, {"id": 82, "type": "identifier", "text": "d_sharedState", "parent": 80, "children": [], "start_point": {"row": 88, "column": 29}, "end_point": {"row": 88, "column": 42}}, {"id": 83, "type": "declaration", "text": "int d_rigid_material;", "parent": 58, "children": [84, 85], "start_point": {"row": 90, "column": 9}, "end_point": {"row": 90, "column": 30}}, {"id": 84, "type": "primitive_type", "text": "int", "parent": 83, "children": [], "start_point": {"row": 90, "column": 9}, "end_point": {"row": 90, "column": 12}}, {"id": 85, "type": "identifier", "text": "d_rigid_material", "parent": 83, "children": [], "start_point": {"row": 90, "column": 13}, "end_point": {"row": 90, "column": 29}}, {"id": 86, "type": "declaration", "text": "double d_vol_const;", "parent": 58, "children": [87, 88], "start_point": {"row": 92, "column": 9}, "end_point": {"row": 92, "column": 28}}, {"id": 87, "type": "primitive_type", "text": "double", "parent": 86, "children": [], "start_point": {"row": 92, "column": 9}, "end_point": {"row": 92, "column": 15}}, {"id": 88, "type": "identifier", "text": "d_vol_const", "parent": 86, "children": [], "start_point": {"row": 92, "column": 16}, "end_point": {"row": 92, "column": 27}}, {"id": 89, "type": "declaration", "text": "double d_sepFac;", "parent": 58, "children": [90, 91], "start_point": {"row": 93, "column": 9}, "end_point": {"row": 93, "column": 25}}, {"id": 90, "type": "primitive_type", "text": "double", "parent": 89, "children": [], "start_point": {"row": 93, "column": 9}, "end_point": {"row": 93, "column": 15}}, {"id": 91, "type": "identifier", "text": "d_sepFac", "parent": 89, "children": [], "start_point": {"row": 93, "column": 16}, "end_point": {"row": 93, "column": 24}}, {"id": 92, "type": "declaration", "text": "bool d_compColinearNorms;", "parent": 58, "children": [93, 94], "start_point": {"row": 94, "column": 9}, "end_point": {"row": 94, "column": 34}}, {"id": 93, "type": "primitive_type", "text": "bool", "parent": 92, "children": [], "start_point": {"row": 94, "column": 9}, "end_point": {"row": 94, "column": 13}}, {"id": 94, "type": "identifier", "text": "d_compColinearNorms", "parent": 92, "children": [], "start_point": {"row": 94, "column": 14}, "end_point": {"row": 94, "column": 33}}, {"id": 95, "type": "declaration", "text": "int NGP;", "parent": 58, "children": [96, 97], "start_point": {"row": 96, "column": 9}, "end_point": {"row": 96, "column": 17}}, {"id": 96, "type": "primitive_type", "text": "int", "parent": 95, "children": [], "start_point": {"row": 96, "column": 9}, "end_point": {"row": 96, "column": 12}}, {"id": 97, "type": "identifier", "text": "NGP", "parent": 95, "children": [], "start_point": {"row": 96, "column": 13}, "end_point": {"row": 96, "column": 16}}, {"id": 98, "type": "declaration", "text": "int NGN;", "parent": 58, "children": [99, 100], "start_point": {"row": 97, "column": 9}, "end_point": {"row": 97, "column": 17}}, {"id": 99, "type": "primitive_type", "text": "int", "parent": 98, "children": [], "start_point": {"row": 97, "column": 9}, "end_point": {"row": 97, "column": 12}}, {"id": 100, "type": "identifier", "text": "NGN", "parent": 98, "children": [], "start_point": {"row": 97, "column": 13}, "end_point": {"row": 97, "column": 16}}, {"id": 101, "type": "labeled_statement", "text": "public:\n // Constructor\n FluidContact(const ProcessorGroup* myworld,\n MaterialManagerP& d_sS,MPMLabel* lb, HydroMPMLabel* Hlb,\n MPMFlags* MFlag);", "parent": 58, "children": [102], "start_point": {"row": 99, "column": 6}, "end_point": {"row": 103, "column": 42}}, {"id": 102, "type": "declaration", "text": "FluidContact(const ProcessorGroup* myworld,\n MaterialManagerP& d_sS,MPMLabel* lb, HydroMPMLabel* Hlb,\n MPMFlags* MFlag);", "parent": 101, "children": [103, 109, 110, 111, 113, 115, 118, 120, 123, 125], "start_point": {"row": 101, "column": 9}, "end_point": {"row": 103, "column": 42}}, {"id": 103, "type": "macro_type_specifier", "text": "FluidContact(const ProcessorGroup*", "parent": 102, "children": [104, 105], "start_point": {"row": 101, "column": 9}, "end_point": {"row": 101, "column": 43}}, {"id": 104, "type": "identifier", "text": "FluidContact", "parent": 103, "children": [], "start_point": {"row": 101, "column": 9}, "end_point": {"row": 101, "column": 21}}, {"id": 105, "type": "type_descriptor", "text": "const ProcessorGroup*", "parent": 103, "children": [106, 107], "start_point": {"row": 101, "column": 22}, "end_point": {"row": 101, "column": 43}}, {"id": 106, "type": "type_identifier", "text": "ProcessorGroup", "parent": 105, "children": [], "start_point": {"row": 101, "column": 28}, "end_point": {"row": 101, "column": 42}}, {"id": 107, "type": "abstract_pointer_declarator", "text": "*", "parent": 105, "children": [108], "start_point": {"row": 101, "column": 42}, "end_point": {"row": 101, "column": 43}}, {"id": 108, "type": "*", "text": "*", "parent": 107, "children": [], "start_point": {"row": 101, "column": 42}, "end_point": {"row": 101, "column": 43}}, {"id": 109, "type": "identifier", "text": "myworld", "parent": 102, "children": [], "start_point": {"row": 101, "column": 44}, "end_point": {"row": 101, "column": 51}}, {"id": 110, "type": "identifier", "text": "MaterialManagerP", "parent": 102, "children": [], "start_point": {"row": 102, "column": 25}, "end_point": {"row": 102, "column": 41}}, {"id": 111, "type": "ERROR", "text": "& d_sS", "parent": 102, "children": [112], "start_point": {"row": 102, "column": 41}, "end_point": {"row": 102, "column": 47}}, {"id": 112, "type": "identifier", "text": "d_sS", "parent": 111, "children": [], "start_point": {"row": 102, "column": 43}, "end_point": {"row": 102, "column": 47}}, {"id": 113, "type": "ERROR", "text": "MPMLabel", "parent": 102, "children": [114], "start_point": {"row": 102, "column": 48}, "end_point": {"row": 102, "column": 56}}, {"id": 114, "type": "identifier", "text": "MPMLabel", "parent": 113, "children": [], "start_point": {"row": 102, "column": 48}, "end_point": {"row": 102, "column": 56}}, {"id": 115, "type": "pointer_declarator", "text": "* lb", "parent": 102, "children": [116, 117], "start_point": {"row": 102, "column": 56}, "end_point": {"row": 102, "column": 60}}, {"id": 116, "type": "*", "text": "*", "parent": 115, "children": [], "start_point": {"row": 102, "column": 56}, "end_point": {"row": 102, "column": 57}}, {"id": 117, "type": "identifier", "text": "lb", "parent": 115, "children": [], "start_point": {"row": 102, "column": 58}, "end_point": {"row": 102, "column": 60}}, {"id": 118, "type": "ERROR", "text": "HydroMPMLabel", "parent": 102, "children": [119], "start_point": {"row": 102, "column": 62}, "end_point": {"row": 102, "column": 75}}, {"id": 119, "type": "identifier", "text": "HydroMPMLabel", "parent": 118, "children": [], "start_point": {"row": 102, "column": 62}, "end_point": {"row": 102, "column": 75}}, {"id": 120, "type": "pointer_declarator", "text": "* Hlb", "parent": 102, "children": [121, 122], "start_point": {"row": 102, "column": 75}, "end_point": {"row": 102, "column": 80}}, {"id": 121, "type": "*", "text": "*", "parent": 120, "children": [], "start_point": {"row": 102, "column": 75}, "end_point": {"row": 102, "column": 76}}, {"id": 122, "type": "identifier", "text": "Hlb", "parent": 120, "children": [], "start_point": {"row": 102, "column": 77}, "end_point": {"row": 102, "column": 80}}, {"id": 123, "type": "ERROR", "text": "MPMFlags", "parent": 102, "children": [124], "start_point": {"row": 103, "column": 25}, "end_point": {"row": 103, "column": 33}}, {"id": 124, "type": "identifier", "text": "MPMFlags", "parent": 123, "children": [], "start_point": {"row": 103, "column": 25}, "end_point": {"row": 103, "column": 33}}, {"id": 125, "type": "pointer_declarator", "text": "* MFlag", "parent": 102, "children": [126, 127], "start_point": {"row": 103, "column": 33}, "end_point": {"row": 103, "column": 40}}, {"id": 126, "type": "*", "text": "*", "parent": 125, "children": [], "start_point": {"row": 103, "column": 33}, "end_point": {"row": 103, "column": 34}}, {"id": 127, "type": "identifier", "text": "MFlag", "parent": 125, "children": [], "start_point": {"row": 103, "column": 35}, "end_point": {"row": 103, "column": 40}}, {"id": 128, "type": "declaration", "text": "virtual ~FluidContact();", "parent": 58, "children": [129, 130, 132], "start_point": {"row": 106, "column": 9}, "end_point": {"row": 106, "column": 33}}, {"id": 129, "type": "type_identifier", "text": "virtual", "parent": 128, "children": [], "start_point": {"row": 106, "column": 9}, "end_point": {"row": 106, "column": 16}}, {"id": 130, "type": "ERROR", "text": "~", "parent": 128, "children": [131], "start_point": {"row": 106, "column": 17}, "end_point": {"row": 106, "column": 18}}, {"id": 131, "type": "~", "text": "~", "parent": 130, "children": [], "start_point": {"row": 106, "column": 17}, "end_point": {"row": 106, "column": 18}}, {"id": 132, "type": "function_declarator", "text": "FluidContact()", "parent": 128, "children": [133, 134], "start_point": {"row": 106, "column": 18}, "end_point": {"row": 106, "column": 32}}, {"id": 133, "type": "identifier", "text": "FluidContact", "parent": 132, "children": [], "start_point": {"row": 106, "column": 18}, "end_point": {"row": 106, "column": 30}}, {"id": 134, "type": "parameter_list", "text": "()", "parent": 132, "children": [], "start_point": {"row": 106, "column": 30}, "end_point": {"row": 106, "column": 32}}, {"id": 135, "type": "declaration", "text": "virtual void", "parent": 58, "children": [136, 137], "start_point": {"row": 108, "column": 9}, "end_point": {"row": 108, "column": 21}}, {"id": 136, "type": "type_identifier", "text": "virtual", "parent": 135, "children": [], "start_point": {"row": 108, "column": 9}, "end_point": {"row": 108, "column": 16}}, {"id": 137, "type": "identifier", "text": "void", "parent": 135, "children": [], "start_point": {"row": 108, "column": 17}, "end_point": {"row": 108, "column": 21}}, {"id": 138, "type": "call_expression", "text": "outputProblemSpec(ProblemSpecP& ps)", "parent": 58, "children": [139, 140], "start_point": {"row": 108, "column": 22}, "end_point": {"row": 108, "column": 57}}, {"id": 139, "type": "identifier", "text": "outputProblemSpec", "parent": 138, "children": [], "start_point": {"row": 108, "column": 22}, "end_point": {"row": 108, "column": 39}}, {"id": 140, "type": "argument_list", "text": "(ProblemSpecP& ps)", "parent": 138, "children": [141], "start_point": {"row": 108, "column": 39}, "end_point": {"row": 108, "column": 57}}, {"id": 141, "type": "binary_expression", "text": "ProblemSpecP& ps", "parent": 140, "children": [142, 143], "start_point": {"row": 108, "column": 40}, "end_point": {"row": 108, "column": 56}}, {"id": 142, "type": "identifier", "text": "ProblemSpecP", "parent": 141, "children": [], "start_point": {"row": 108, "column": 40}, "end_point": {"row": 108, "column": 52}}, {"id": 143, "type": "identifier", "text": "ps", "parent": 141, "children": [], "start_point": {"row": 108, "column": 54}, "end_point": {"row": 108, "column": 56}}, {"id": 144, "type": "declaration", "text": "virtual void exMomInterpolated(const ProcessorGroup*,\n const PatchSubset* patches,\n const MaterialSubset* matls,\n DataWarehouse* old_dw,\n DataWarehouse* new_dw);", "parent": 58, "children": [145, 146, 148], "start_point": {"row": 111, "column": 9}, "end_point": {"row": 115, "column": 63}}, {"id": 145, "type": "type_identifier", "text": "virtual", "parent": 144, "children": [], "start_point": {"row": 111, "column": 9}, "end_point": {"row": 111, "column": 16}}, {"id": 146, "type": "ERROR", "text": "void", "parent": 144, "children": [147], "start_point": {"row": 111, "column": 17}, "end_point": {"row": 111, "column": 21}}, {"id": 147, "type": "identifier", "text": "void", "parent": 146, "children": [], "start_point": {"row": 111, "column": 17}, "end_point": {"row": 111, "column": 21}}, {"id": 148, "type": "function_declarator", "text": "exMomInterpolated(const ProcessorGroup*,\n const PatchSubset* patches,\n const MaterialSubset* matls,\n DataWarehouse* old_dw,\n DataWarehouse* new_dw)", "parent": 144, "children": [149, 150], "start_point": {"row": 111, "column": 22}, "end_point": {"row": 115, "column": 62}}, {"id": 149, "type": "identifier", "text": "exMomInterpolated", "parent": 148, "children": [], "start_point": {"row": 111, "column": 22}, "end_point": {"row": 111, "column": 39}}, {"id": 150, "type": "parameter_list", "text": "(const ProcessorGroup*,\n const PatchSubset* patches,\n const MaterialSubset* matls,\n DataWarehouse* old_dw,\n DataWarehouse* new_dw)", "parent": 148, "children": [151, 155, 160, 165, 170], "start_point": {"row": 111, "column": 39}, "end_point": {"row": 115, "column": 62}}, {"id": 151, "type": "parameter_declaration", "text": "const ProcessorGroup*", "parent": 150, "children": [152, 153], "start_point": {"row": 111, "column": 40}, "end_point": {"row": 111, "column": 61}}, {"id": 152, "type": "type_identifier", "text": "ProcessorGroup", "parent": 151, "children": [], "start_point": {"row": 111, "column": 46}, "end_point": {"row": 111, "column": 60}}, {"id": 153, "type": "abstract_pointer_declarator", "text": "*", "parent": 151, "children": [154], "start_point": {"row": 111, "column": 60}, "end_point": {"row": 111, "column": 61}}, {"id": 154, "type": "*", "text": "*", "parent": 153, "children": [], "start_point": {"row": 111, "column": 60}, "end_point": {"row": 111, "column": 61}}, {"id": 155, "type": "parameter_declaration", "text": "const PatchSubset* patches", "parent": 150, "children": [156, 157], "start_point": {"row": 112, "column": 40}, "end_point": {"row": 112, "column": 66}}, {"id": 156, "type": "type_identifier", "text": "PatchSubset", "parent": 155, "children": [], "start_point": {"row": 112, "column": 46}, "end_point": {"row": 112, "column": 57}}, {"id": 157, "type": "pointer_declarator", "text": "* patches", "parent": 155, "children": [158, 159], "start_point": {"row": 112, "column": 57}, "end_point": {"row": 112, "column": 66}}, {"id": 158, "type": "*", "text": "*", "parent": 157, "children": [], "start_point": {"row": 112, "column": 57}, "end_point": {"row": 112, "column": 58}}, {"id": 159, "type": "identifier", "text": "patches", "parent": 157, "children": [], "start_point": {"row": 112, "column": 59}, "end_point": {"row": 112, "column": 66}}, {"id": 160, "type": "parameter_declaration", "text": "const MaterialSubset* matls", "parent": 150, "children": [161, 162], "start_point": {"row": 113, "column": 40}, "end_point": {"row": 113, "column": 67}}, {"id": 161, "type": "type_identifier", "text": "MaterialSubset", "parent": 160, "children": [], "start_point": {"row": 113, "column": 46}, "end_point": {"row": 113, "column": 60}}, {"id": 162, "type": "pointer_declarator", "text": "* matls", "parent": 160, "children": [163, 164], "start_point": {"row": 113, "column": 60}, "end_point": {"row": 113, "column": 67}}, {"id": 163, "type": "*", "text": "*", "parent": 162, "children": [], "start_point": {"row": 113, "column": 60}, "end_point": {"row": 113, "column": 61}}, {"id": 164, "type": "identifier", "text": "matls", "parent": 162, "children": [], "start_point": {"row": 113, "column": 62}, "end_point": {"row": 113, "column": 67}}, {"id": 165, "type": "parameter_declaration", "text": "DataWarehouse* old_dw", "parent": 150, "children": [166, 167], "start_point": {"row": 114, "column": 40}, "end_point": {"row": 114, "column": 61}}, {"id": 166, "type": "type_identifier", "text": "DataWarehouse", "parent": 165, "children": [], "start_point": {"row": 114, "column": 40}, "end_point": {"row": 114, "column": 53}}, {"id": 167, "type": "pointer_declarator", "text": "* old_dw", "parent": 165, "children": [168, 169], "start_point": {"row": 114, "column": 53}, "end_point": {"row": 114, "column": 61}}, {"id": 168, "type": "*", "text": "*", "parent": 167, "children": [], "start_point": {"row": 114, "column": 53}, "end_point": {"row": 114, "column": 54}}, {"id": 169, "type": "identifier", "text": "old_dw", "parent": 167, "children": [], "start_point": {"row": 114, "column": 55}, "end_point": {"row": 114, "column": 61}}, {"id": 170, "type": "parameter_declaration", "text": "DataWarehouse* new_dw", "parent": 150, "children": [171, 172], "start_point": {"row": 115, "column": 40}, "end_point": {"row": 115, "column": 61}}, {"id": 171, "type": "type_identifier", "text": "DataWarehouse", "parent": 170, "children": [], "start_point": {"row": 115, "column": 40}, "end_point": {"row": 115, "column": 53}}, {"id": 172, "type": "pointer_declarator", "text": "* new_dw", "parent": 170, "children": [173, 174], "start_point": {"row": 115, "column": 53}, "end_point": {"row": 115, "column": 61}}, {"id": 173, "type": "*", "text": "*", "parent": 172, "children": [], "start_point": {"row": 115, "column": 53}, "end_point": {"row": 115, "column": 54}}, {"id": 174, "type": "identifier", "text": "new_dw", "parent": 172, "children": [], "start_point": {"row": 115, "column": 55}, "end_point": {"row": 115, "column": 61}}, {"id": 175, "type": "declaration", "text": "virtual void exMomIntegrated(const ProcessorGroup*,\n const PatchSubset* patches,\n const MaterialSubset* matls,\n DataWarehouse* old_dw,\n DataWarehouse* new_dw);", "parent": 58, "children": [176, 177, 179], "start_point": {"row": 117, "column": 9}, "end_point": {"row": 121, "column": 61}}, {"id": 176, "type": "type_identifier", "text": "virtual", "parent": 175, "children": [], "start_point": {"row": 117, "column": 9}, "end_point": {"row": 117, "column": 16}}, {"id": 177, "type": "ERROR", "text": "void", "parent": 175, "children": [178], "start_point": {"row": 117, "column": 17}, "end_point": {"row": 117, "column": 21}}, {"id": 178, "type": "identifier", "text": "void", "parent": 177, "children": [], "start_point": {"row": 117, "column": 17}, "end_point": {"row": 117, "column": 21}}, {"id": 179, "type": "function_declarator", "text": "exMomIntegrated(const ProcessorGroup*,\n const PatchSubset* patches,\n const MaterialSubset* matls,\n DataWarehouse* old_dw,\n DataWarehouse* new_dw)", "parent": 175, "children": [180, 181], "start_point": {"row": 117, "column": 22}, "end_point": {"row": 121, "column": 60}}, {"id": 180, "type": "identifier", "text": "exMomIntegrated", "parent": 179, "children": [], "start_point": {"row": 117, "column": 22}, "end_point": {"row": 117, "column": 37}}, {"id": 181, "type": "parameter_list", "text": "(const ProcessorGroup*,\n const PatchSubset* patches,\n const MaterialSubset* matls,\n DataWarehouse* old_dw,\n DataWarehouse* new_dw)", "parent": 179, "children": [182, 186, 191, 196, 201], "start_point": {"row": 117, "column": 37}, "end_point": {"row": 121, "column": 60}}, {"id": 182, "type": "parameter_declaration", "text": "const ProcessorGroup*", "parent": 181, "children": [183, 184], "start_point": {"row": 117, "column": 38}, "end_point": {"row": 117, "column": 59}}, {"id": 183, "type": "type_identifier", "text": "ProcessorGroup", "parent": 182, "children": [], "start_point": {"row": 117, "column": 44}, "end_point": {"row": 117, "column": 58}}, {"id": 184, "type": "abstract_pointer_declarator", "text": "*", "parent": 182, "children": [185], "start_point": {"row": 117, "column": 58}, "end_point": {"row": 117, "column": 59}}, {"id": 185, "type": "*", "text": "*", "parent": 184, "children": [], "start_point": {"row": 117, "column": 58}, "end_point": {"row": 117, "column": 59}}, {"id": 186, "type": "parameter_declaration", "text": "const PatchSubset* patches", "parent": 181, "children": [187, 188], "start_point": {"row": 118, "column": 38}, "end_point": {"row": 118, "column": 64}}, {"id": 187, "type": "type_identifier", "text": "PatchSubset", "parent": 186, "children": [], "start_point": {"row": 118, "column": 44}, "end_point": {"row": 118, "column": 55}}, {"id": 188, "type": "pointer_declarator", "text": "* patches", "parent": 186, "children": [189, 190], "start_point": {"row": 118, "column": 55}, "end_point": {"row": 118, "column": 64}}, {"id": 189, "type": "*", "text": "*", "parent": 188, "children": [], "start_point": {"row": 118, "column": 55}, "end_point": {"row": 118, "column": 56}}, {"id": 190, "type": "identifier", "text": "patches", "parent": 188, "children": [], "start_point": {"row": 118, "column": 57}, "end_point": {"row": 118, "column": 64}}, {"id": 191, "type": "parameter_declaration", "text": "const MaterialSubset* matls", "parent": 181, "children": [192, 193], "start_point": {"row": 119, "column": 38}, "end_point": {"row": 119, "column": 65}}, {"id": 192, "type": "type_identifier", "text": "MaterialSubset", "parent": 191, "children": [], "start_point": {"row": 119, "column": 44}, "end_point": {"row": 119, "column": 58}}, {"id": 193, "type": "pointer_declarator", "text": "* matls", "parent": 191, "children": [194, 195], "start_point": {"row": 119, "column": 58}, "end_point": {"row": 119, "column": 65}}, {"id": 194, "type": "*", "text": "*", "parent": 193, "children": [], "start_point": {"row": 119, "column": 58}, "end_point": {"row": 119, "column": 59}}, {"id": 195, "type": "identifier", "text": "matls", "parent": 193, "children": [], "start_point": {"row": 119, "column": 60}, "end_point": {"row": 119, "column": 65}}, {"id": 196, "type": "parameter_declaration", "text": "DataWarehouse* old_dw", "parent": 181, "children": [197, 198], "start_point": {"row": 120, "column": 38}, "end_point": {"row": 120, "column": 59}}, {"id": 197, "type": "type_identifier", "text": "DataWarehouse", "parent": 196, "children": [], "start_point": {"row": 120, "column": 38}, "end_point": {"row": 120, "column": 51}}, {"id": 198, "type": "pointer_declarator", "text": "* old_dw", "parent": 196, "children": [199, 200], "start_point": {"row": 120, "column": 51}, "end_point": {"row": 120, "column": 59}}, {"id": 199, "type": "*", "text": "*", "parent": 198, "children": [], "start_point": {"row": 120, "column": 51}, "end_point": {"row": 120, "column": 52}}, {"id": 200, "type": "identifier", "text": "old_dw", "parent": 198, "children": [], "start_point": {"row": 120, "column": 53}, "end_point": {"row": 120, "column": 59}}, {"id": 201, "type": "parameter_declaration", "text": "DataWarehouse* new_dw", "parent": 181, "children": [202, 203], "start_point": {"row": 121, "column": 38}, "end_point": {"row": 121, "column": 59}}, {"id": 202, "type": "type_identifier", "text": "DataWarehouse", "parent": 201, "children": [], "start_point": {"row": 121, "column": 38}, "end_point": {"row": 121, "column": 51}}, {"id": 203, "type": "pointer_declarator", "text": "* new_dw", "parent": 201, "children": [204, 205], "start_point": {"row": 121, "column": 51}, "end_point": {"row": 121, "column": 59}}, {"id": 204, "type": "*", "text": "*", "parent": 203, "children": [], "start_point": {"row": 121, "column": 51}, "end_point": {"row": 121, "column": 52}}, {"id": 205, "type": "identifier", "text": "new_dw", "parent": 203, "children": [], "start_point": {"row": 121, "column": 53}, "end_point": {"row": 121, "column": 59}}, {"id": 206, "type": "declaration", "text": "virtual void", "parent": 58, "children": [207, 208], "start_point": {"row": 123, "column": 9}, "end_point": {"row": 123, "column": 21}}, {"id": 207, "type": "type_identifier", "text": "virtual", "parent": 206, "children": [], "start_point": {"row": 123, "column": 9}, "end_point": {"row": 123, "column": 16}}, {"id": 208, "type": "identifier", "text": "void", "parent": 206, "children": [], "start_point": {"row": 123, "column": 17}, "end_point": {"row": 123, "column": 21}}, {"id": 209, "type": "call_expression", "text": "addComputesAndRequiresInterpolated(SchedulerP & sched,\n const PatchSet* patches,\n const MaterialSet* matls)", "parent": 58, "children": [210, 211], "start_point": {"row": 123, "column": 22}, "end_point": {"row": 125, "column": 70}}, {"id": 210, "type": "identifier", "text": "addComputesAndRequiresInterpolated", "parent": 209, "children": [], "start_point": {"row": 123, "column": 22}, "end_point": {"row": 123, "column": 56}}, {"id": 211, "type": "argument_list", "text": "(SchedulerP & sched,\n const PatchSet* patches,\n const MaterialSet* matls)", "parent": 209, "children": [212, 215, 219], "start_point": {"row": 123, "column": 56}, "end_point": {"row": 125, "column": 70}}, {"id": 212, "type": "binary_expression", "text": "SchedulerP & sched", "parent": 211, "children": [213, 214], "start_point": {"row": 123, "column": 57}, "end_point": {"row": 123, "column": 75}}, {"id": 213, "type": "identifier", "text": "SchedulerP", "parent": 212, "children": [], "start_point": {"row": 123, "column": 57}, "end_point": {"row": 123, "column": 67}}, {"id": 214, "type": "identifier", "text": "sched", "parent": 212, "children": [], "start_point": {"row": 123, "column": 70}, "end_point": {"row": 123, "column": 75}}, {"id": 215, "type": "binary_expression", "text": "PatchSet* patches", "parent": 211, "children": [216, 217, 218], "start_point": {"row": 124, "column": 51}, "end_point": {"row": 124, "column": 68}}, {"id": 216, "type": "identifier", "text": "PatchSet", "parent": 215, "children": [], "start_point": {"row": 124, "column": 51}, "end_point": {"row": 124, "column": 59}}, {"id": 217, "type": "*", "text": "*", "parent": 215, "children": [], "start_point": {"row": 124, "column": 59}, "end_point": {"row": 124, "column": 60}}, {"id": 218, "type": "identifier", "text": "patches", "parent": 215, "children": [], "start_point": {"row": 124, "column": 61}, "end_point": {"row": 124, "column": 68}}, {"id": 219, "type": "binary_expression", "text": "MaterialSet* matls", "parent": 211, "children": [220, 221, 222], "start_point": {"row": 125, "column": 51}, "end_point": {"row": 125, "column": 69}}, {"id": 220, "type": "identifier", "text": "MaterialSet", "parent": 219, "children": [], "start_point": {"row": 125, "column": 51}, "end_point": {"row": 125, "column": 62}}, {"id": 221, "type": "*", "text": "*", "parent": 219, "children": [], "start_point": {"row": 125, "column": 62}, "end_point": {"row": 125, "column": 63}}, {"id": 222, "type": "identifier", "text": "matls", "parent": 219, "children": [], "start_point": {"row": 125, "column": 64}, "end_point": {"row": 125, "column": 69}}, {"id": 223, "type": "declaration", "text": "virtual void", "parent": 58, "children": [224, 225], "start_point": {"row": 127, "column": 9}, "end_point": {"row": 127, "column": 21}}, {"id": 224, "type": "type_identifier", "text": "virtual", "parent": 223, "children": [], "start_point": {"row": 127, "column": 9}, "end_point": {"row": 127, "column": 16}}, {"id": 225, "type": "identifier", "text": "void", "parent": 223, "children": [], "start_point": {"row": 127, "column": 17}, "end_point": {"row": 127, "column": 21}}, {"id": 226, "type": "call_expression", "text": "addComputesAndRequiresIntegrated(SchedulerP & sched,\n const PatchSet* patches,\n const MaterialSet* matls)", "parent": 58, "children": [227, 228], "start_point": {"row": 127, "column": 22}, "end_point": {"row": 129, "column": 70}}, {"id": 227, "type": "identifier", "text": "addComputesAndRequiresIntegrated", "parent": 226, "children": [], "start_point": {"row": 127, "column": 22}, "end_point": {"row": 127, "column": 54}}, {"id": 228, "type": "argument_list", "text": "(SchedulerP & sched,\n const PatchSet* patches,\n const MaterialSet* matls)", "parent": 226, "children": [229, 232, 236], "start_point": {"row": 127, "column": 54}, "end_point": {"row": 129, "column": 70}}, {"id": 229, "type": "binary_expression", "text": "SchedulerP & sched", "parent": 228, "children": [230, 231], "start_point": {"row": 127, "column": 55}, "end_point": {"row": 127, "column": 73}}, {"id": 230, "type": "identifier", "text": "SchedulerP", "parent": 229, "children": [], "start_point": {"row": 127, "column": 55}, "end_point": {"row": 127, "column": 65}}, {"id": 231, "type": "identifier", "text": "sched", "parent": 229, "children": [], "start_point": {"row": 127, "column": 68}, "end_point": {"row": 127, "column": 73}}, {"id": 232, "type": "binary_expression", "text": "PatchSet* patches", "parent": 228, "children": [233, 234, 235], "start_point": {"row": 128, "column": 51}, "end_point": {"row": 128, "column": 68}}, {"id": 233, "type": "identifier", "text": "PatchSet", "parent": 232, "children": [], "start_point": {"row": 128, "column": 51}, "end_point": {"row": 128, "column": 59}}, {"id": 234, "type": "*", "text": "*", "parent": 232, "children": [], "start_point": {"row": 128, "column": 59}, "end_point": {"row": 128, "column": 60}}, {"id": 235, "type": "identifier", "text": "patches", "parent": 232, "children": [], "start_point": {"row": 128, "column": 61}, "end_point": {"row": 128, "column": 68}}, {"id": 236, "type": "binary_expression", "text": "MaterialSet* matls", "parent": 228, "children": [237, 238, 239], "start_point": {"row": 129, "column": 51}, "end_point": {"row": 129, "column": 69}}, {"id": 237, "type": "identifier", "text": "MaterialSet", "parent": 236, "children": [], "start_point": {"row": 129, "column": 51}, "end_point": {"row": 129, "column": 62}}, {"id": 238, "type": "*", "text": "*", "parent": 236, "children": [], "start_point": {"row": 129, "column": 62}, "end_point": {"row": 129, "column": 63}}, {"id": 239, "type": "identifier", "text": "matls", "parent": 236, "children": [], "start_point": {"row": 129, "column": 64}, "end_point": {"row": 129, "column": 69}}, {"id": 240, "type": "labeled_statement", "text": "protected:\n MPMLabel* lb;", "parent": 58, "children": [241], "start_point": {"row": 131, "column": 6}, "end_point": {"row": 132, "column": 23}}, {"id": 241, "type": "declaration", "text": "MPMLabel* lb;", "parent": 240, "children": [242, 243], "start_point": {"row": 132, "column": 10}, "end_point": {"row": 132, "column": 23}}, {"id": 242, "type": "type_identifier", "text": "MPMLabel", "parent": 241, "children": [], "start_point": {"row": 132, "column": 10}, "end_point": {"row": 132, "column": 18}}, {"id": 243, "type": "pointer_declarator", "text": "* lb", "parent": 241, "children": [244, 245], "start_point": {"row": 132, "column": 18}, "end_point": {"row": 132, "column": 22}}, {"id": 244, "type": "*", "text": "*", "parent": 243, "children": [], "start_point": {"row": 132, "column": 18}, "end_point": {"row": 132, "column": 19}}, {"id": 245, "type": "identifier", "text": "lb", "parent": 243, "children": [], "start_point": {"row": 132, "column": 20}, "end_point": {"row": 132, "column": 22}}, {"id": 246, "type": "declaration", "text": "MPMFlags* flag;", "parent": 58, "children": [247, 248], "start_point": {"row": 133, "column": 10}, "end_point": {"row": 133, "column": 25}}, {"id": 247, "type": "type_identifier", "text": "MPMFlags", "parent": 246, "children": [], "start_point": {"row": 133, "column": 10}, "end_point": {"row": 133, "column": 18}}, {"id": 248, "type": "pointer_declarator", "text": "* flag", "parent": 246, "children": [249, 250], "start_point": {"row": 133, "column": 18}, "end_point": {"row": 133, "column": 24}}, {"id": 249, "type": "*", "text": "*", "parent": 248, "children": [], "start_point": {"row": 133, "column": 18}, "end_point": {"row": 133, "column": 19}}, {"id": 250, "type": "identifier", "text": "flag", "parent": 248, "children": [], "start_point": {"row": 133, "column": 20}, "end_point": {"row": 133, "column": 24}}, {"id": 251, "type": "declaration", "text": "HydroMPMLabel* Hlb;", "parent": 58, "children": [252, 253], "start_point": {"row": 134, "column": 10}, "end_point": {"row": 134, "column": 29}}, {"id": 252, "type": "type_identifier", "text": "HydroMPMLabel", "parent": 251, "children": [], "start_point": {"row": 134, "column": 10}, "end_point": {"row": 134, "column": 23}}, {"id": 253, "type": "pointer_declarator", "text": "* Hlb", "parent": 251, "children": [254, 255], "start_point": {"row": 134, "column": 23}, "end_point": {"row": 134, "column": 28}}, {"id": 254, "type": "*", "text": "*", "parent": 253, "children": [], "start_point": {"row": 134, "column": 23}, "end_point": {"row": 134, "column": 24}}, {"id": 255, "type": "identifier", "text": "Hlb", "parent": 253, "children": [], "start_point": {"row": 134, "column": 25}, "end_point": {"row": 134, "column": 28}}, {"id": 256, "type": "declaration", "text": "int d_oneOrTwoStep;", "parent": 58, "children": [257, 258], "start_point": {"row": 135, "column": 10}, "end_point": {"row": 135, "column": 32}}, {"id": 257, "type": "primitive_type", "text": "int", "parent": 256, "children": [], "start_point": {"row": 135, "column": 10}, "end_point": {"row": 135, "column": 13}}, {"id": 258, "type": "identifier", "text": "d_oneOrTwoStep", "parent": 256, "children": [], "start_point": {"row": 135, "column": 17}, "end_point": {"row": 135, "column": 31}}, {"id": 259, "type": "declaration", "text": "ContactMaterialSpec d_matls;", "parent": 58, "children": [260, 261], "start_point": {"row": 137, "column": 10}, "end_point": {"row": 137, "column": 38}}, {"id": 260, "type": "type_identifier", "text": "ContactMaterialSpec", "parent": 259, "children": [], "start_point": {"row": 137, "column": 10}, "end_point": {"row": 137, "column": 29}}, {"id": 261, "type": "identifier", "text": "d_matls", "parent": 259, "children": [], "start_point": {"row": 137, "column": 30}, "end_point": {"row": 137, "column": 37}}, {"id": 262, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 142, "column": 0}, "end_point": {"row": 142, "column": 6}}]}, "node_categories": {"declarations": {"functions": [39, 58, 132, 148, 179], "variables": [42, 44, 46, 48, 50, 52, 54, 56, 61, 80, 83, 86, 89, 92, 95, 98, 102, 128, 135, 144, 151, 155, 160, 165, 170, 175, 182, 186, 191, 196, 201, 206, 223, 241, 246, 251, 256, 259], "classes": [], "imports": [6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25, 27, 28, 30, 31, 33, 34, 36, 37], "modules": [], "enums": []}, "statements": {"expressions": [69, 74, 78, 138, 141, 209, 212, 215, 219, 226, 229, 232, 236], "assignments": [71], "loops": [], "conditionals": [0, 1, 2, 5, 40, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 62, 63, 65, 67, 68, 70, 72, 77, 79, 81, 82, 85, 88, 91, 94, 97, 100, 103, 104, 106, 109, 110, 112, 114, 117, 119, 122, 124, 127, 129, 133, 136, 137, 139, 142, 143, 145, 147, 149, 152, 156, 159, 161, 164, 166, 169, 171, 174, 176, 178, 180, 183, 187, 190, 192, 195, 197, 200, 202, 205, 207, 208, 210, 213, 214, 216, 218, 220, 222, 224, 225, 227, 230, 231, 233, 235, 237, 239, 242, 245, 247, 250, 252, 255, 258, 260, 261, 262], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 20, 23, 26, 29, 32, 35, 38], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 39, "universal_type": "function", "name": "DataWarehouse;", "text_snippet": "namespace Uintah {\n\n class DataWarehouse;\n class MPMLabel;\n class HydroMPMLabel;\n class "}, {"node_id": 58, "universal_type": "function", "name": "FluidContact", "text_snippet": "class FluidContact {\n private:\n \n // Prevent copying of this class\n //"}, {"node_id": 132, "universal_type": "function", "name": "unknown", "text_snippet": "FluidContact()"}, {"node_id": 148, "universal_type": "function", "name": "unknown", "text_snippet": "exMomInterpolated(const ProcessorGroup*,\n const PatchSubset* "}, {"node_id": 179, "universal_type": "function", "name": "unknown", "text_snippet": "exMomIntegrated(const ProcessorGroup*,\n const PatchSubset* patc"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <CCA/Components/MPM/Materials/Contact/Contact.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include<CCA/Components/MPM/Materials/Contact/ContactMaterialSpec.h>"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <CCA/Components/MPM/Core/MPMFlags.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <CCA/Ports/DataWarehouseP.h>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <Core/Parallel/UintahParallelComponent.h>\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include <Core/ProblemSpec/ProblemSpecP.h>\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include <Core/ProblemSpec/ProblemSpec.h>\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include <Core/Grid/GridP.h>\n"}, {"node_id": 28, "text": "#include"}, {"node_id": 30, "text": "#include <Core/Grid/LevelP.h>\n"}, {"node_id": 31, "text": "#include"}, {"node_id": 33, "text": "#include <Core/Grid/MaterialManager.h>\n"}, {"node_id": 34, "text": "#include"}, {"node_id": 36, "text": "#include <Core/Grid/MaterialManagerP.h>\n"}, {"node_id": 37, "text": "#include"}]}, "original_source_code": "/*\n * The MIT License\n *\n * Copyright (c) 1997-2021 The University of Utah\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\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell 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\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\n// Fluid.h\n\n#ifndef __FLUID_H__\n#define __FLUID_H__\n\n#include <CCA/Components/MPM/Materials/Contact/Contact.h>\n#include<CCA/Components/MPM/Materials/Contact/ContactMaterialSpec.h> \n#include <CCA/Components/MPM/Core/MPMFlags.h>\n#include <CCA/Ports/DataWarehouseP.h>\n#include <Core/Parallel/UintahParallelComponent.h>\n#include <Core/ProblemSpec/ProblemSpecP.h>\n#include <Core/ProblemSpec/ProblemSpec.h>\n#include <Core/Grid/GridP.h>\n#include <Core/Grid/LevelP.h>\n#include <Core/Grid/MaterialManager.h>\n#include <Core/Grid/MaterialManagerP.h>\n\n\nnamespace Uintah {\n\n class DataWarehouse;\n class MPMLabel;\n class HydroMPMLabel;\n class MPMFlags;\n class ProcessorGroup;\n class Patch;\n class VarLabel;\n class Task;\n\n/**************************************\n\nCLASS\n FluidContact\n \n Short description...\n\nGENERAL INFORMATION\n\n FluidContact.h\n\n <NAME>\n Department of Civil Engineering\n Norwegian University of Science and Technology\n\n\nKEYWORDS\n Contact_Model_Fluid\n\nDESCRIPTION\n One of the derived Contact classes. This particular\n version is used to apply contact with pore fluid.\n \nWARNING\n \n****************************************/\n\n class FluidContact {\n private:\n \n // Prevent copying of this class\n // copy constructor\n FluidContact(const FluidContact &con);\n FluidContact& operator=(const FluidContact &con);\n \n MaterialManagerP d_sharedState;\n \n int d_rigid_material;\n\n double d_vol_const;\n double d_sepFac;\n bool d_compColinearNorms;\n\n int NGP;\n int NGN;\n\n public:\n // Constructor\n FluidContact(const ProcessorGroup* myworld,\n MaterialManagerP& d_sS,MPMLabel* lb, HydroMPMLabel* Hlb,\n MPMFlags* MFlag);\n \n // Destructor\n virtual ~FluidContact();\n\n virtual void outputProblemSpec(ProblemSpecP& ps);\n\n // Basic contact methods\n virtual void exMomInterpolated(const ProcessorGroup*,\n const PatchSubset* patches,\n const MaterialSubset* matls,\n DataWarehouse* old_dw,\n DataWarehouse* new_dw);\n \n virtual void exMomIntegrated(const ProcessorGroup*,\n const PatchSubset* patches,\n const MaterialSubset* matls,\n DataWarehouse* old_dw,\n DataWarehouse* new_dw);\n \n virtual void addComputesAndRequiresInterpolated(SchedulerP & sched,\n const PatchSet* patches,\n const MaterialSet* matls);\n\n virtual void addComputesAndRequiresIntegrated(SchedulerP & sched,\n const PatchSet* patches,\n const MaterialSet* matls);\n \n protected:\n MPMLabel* lb;\n MPMFlags* flag;\n HydroMPMLabel* Hlb;\n int d_oneOrTwoStep;\n\n ContactMaterialSpec d_matls;\n };\n} // End namespace Uintah\n \n\n#endif /* __FLUID_H__ */\n\n"}
80,204
c
#pragma once #include<list> #include "Globals.h" #include "Module.h" class ModuleRender; class ModuleWindow; class ModuleTextures; class ModuleInput; class ModuleRenderExercise; //class ModuleTriangle; class ModuleProgramShader; class ModuleTexture; class ModuleEditor; class ModuleEditorCamera; class ModuleModelLoader; class Application { public: Application(); ~Application(); bool Init(); update_status Update(); bool CleanUp(); public: ModuleRender* renderer = nullptr; ModuleWindow* window = nullptr; ModuleInput* input = nullptr; //ModuleTriangle* triangle = nullptr; ModuleProgramShader* programShader = nullptr; ModuleTexture* texture = nullptr; ModuleEditor* editor = nullptr; ModuleEditorCamera* editorCamera = nullptr; ModuleModelLoader* modelLoader = nullptr; private: std::list<Module*> modules; }; extern Application* App;
22.05
37
(translation_unit) "#pragma once\n\n#include<list>\n#include "Globals.h"\n#include "Module.h"\n\nclass ModuleRender;\nclass ModuleWindow;\nclass ModuleTextures;\nclass ModuleInput;\nclass ModuleRenderExercise;\n//class ModuleTriangle;\nclass ModuleProgramShader;\nclass ModuleTexture;\nclass ModuleEditor;\nclass ModuleEditorCamera;\nclass ModuleModelLoader;\n\nclass Application\n{\npublic:\n\n Application();\n ~Application();\n\n bool Init();\n update_status Update();\n bool CleanUp();\n\npublic:\n ModuleRender* renderer = nullptr;\n ModuleWindow* window = nullptr;\n ModuleInput* input = nullptr;\n //ModuleTriangle* triangle = nullptr;\n ModuleProgramShader* programShader = nullptr;\n ModuleTexture* texture = nullptr;\n ModuleEditor* editor = nullptr;\n ModuleEditorCamera* editorCamera = nullptr;\n ModuleModelLoader* modelLoader = nullptr;\n\nprivate:\n std::list<Module*> modules;\n};\n\nextern Application* App;\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include<list>\n" (#include) "#include" (system_lib_string) "<list>" (preproc_include) "#include "Globals.h"\n" (#include) "#include" (string_literal) ""Globals.h"" (") """ (string_content) "Globals.h" (") """ (preproc_include) "#include "Module.h"\n" (#include) "#include" (string_literal) ""Module.h"" (") """ (string_content) "Module.h" (") """ (declaration) "class ModuleRender;" (type_identifier) "class" (identifier) "ModuleRender" (;) ";" (declaration) "class ModuleWindow;" (type_identifier) "class" (identifier) "ModuleWindow" (;) ";" (declaration) "class ModuleTextures;" (type_identifier) "class" (identifier) "ModuleTextures" (;) ";" (declaration) "class ModuleInput;" (type_identifier) "class" (identifier) "ModuleInput" (;) ";" (declaration) "class ModuleRenderExercise;" (type_identifier) "class" (identifier) "ModuleRenderExercise" (;) ";" (comment) "//class ModuleTriangle;" (declaration) "class ModuleProgramShader;" (type_identifier) "class" (identifier) "ModuleProgramShader" (;) ";" (declaration) "class ModuleTexture;" (type_identifier) "class" (identifier) "ModuleTexture" (;) ";" (declaration) "class ModuleEditor;" (type_identifier) "class" (identifier) "ModuleEditor" (;) ";" (declaration) "class ModuleEditorCamera;" (type_identifier) "class" (identifier) "ModuleEditorCamera" (;) ";" (declaration) "class ModuleModelLoader;" (type_identifier) "class" (identifier) "ModuleModelLoader" (;) ";" (function_definition) "class Application\n{\npublic:\n\n Application();\n ~Application();\n\n bool Init();\n update_status Update();\n bool CleanUp();\n\npublic:\n ModuleRender* renderer = nullptr;\n ModuleWindow* window = nullptr;\n ModuleInput* input = nullptr;\n //ModuleTriangle* triangle = nullptr;\n ModuleProgramShader* programShader = nullptr;\n ModuleTexture* texture = nullptr;\n ModuleEditor* editor = nullptr;\n ModuleEditorCamera* editorCamera = nullptr;\n ModuleModelLoader* modelLoader = nullptr;\n\nprivate:\n std::list<Module*> modules;\n}" (type_identifier) "class" (identifier) "Application" (compound_statement) "{\npublic:\n\n Application();\n ~Application();\n\n bool Init();\n update_status Update();\n bool CleanUp();\n\npublic:\n ModuleRender* renderer = nullptr;\n ModuleWindow* window = nullptr;\n ModuleInput* input = nullptr;\n //ModuleTriangle* triangle = nullptr;\n ModuleProgramShader* programShader = nullptr;\n ModuleTexture* texture = nullptr;\n ModuleEditor* editor = nullptr;\n ModuleEditorCamera* editorCamera = nullptr;\n ModuleModelLoader* modelLoader = nullptr;\n\nprivate:\n std::list<Module*> modules;\n}" ({) "{" (labeled_statement) "public:\n\n Application();" (statement_identifier) "public" (:) ":" (expression_statement) "Application();" (call_expression) "Application()" (identifier) "Application" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "~Application();" (unary_expression) "~Application()" (~) "~" (call_expression) "Application()" (identifier) "Application" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "bool Init();" (primitive_type) "bool" (function_declarator) "Init()" (identifier) "Init" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "update_status Update();" (type_identifier) "update_status" (function_declarator) "Update()" (identifier) "Update" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "bool CleanUp();" (primitive_type) "bool" (function_declarator) "CleanUp()" (identifier) "CleanUp" (parameter_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "public:\n ModuleRender* renderer = nullptr;" (statement_identifier) "public" (:) ":" (declaration) "ModuleRender* renderer = nullptr;" (type_identifier) "ModuleRender" (init_declarator) "* renderer = nullptr" (pointer_declarator) "* renderer" (*) "*" (identifier) "renderer" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "ModuleWindow* window = nullptr;" (type_identifier) "ModuleWindow" (init_declarator) "* window = nullptr" (pointer_declarator) "* window" (*) "*" (identifier) "window" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "ModuleInput* input = nullptr;" (type_identifier) "ModuleInput" (init_declarator) "* input = nullptr" (pointer_declarator) "* input" (*) "*" (identifier) "input" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (comment) "//ModuleTriangle* triangle = nullptr;" (declaration) "ModuleProgramShader* programShader = nullptr;" (type_identifier) "ModuleProgramShader" (init_declarator) "* programShader = nullptr" (pointer_declarator) "* programShader" (*) "*" (identifier) "programShader" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "ModuleTexture* texture = nullptr;" (type_identifier) "ModuleTexture" (init_declarator) "* texture = nullptr" (pointer_declarator) "* texture" (*) "*" (identifier) "texture" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "ModuleEditor* editor = nullptr;" (type_identifier) "ModuleEditor" (init_declarator) "* editor = nullptr" (pointer_declarator) "* editor" (*) "*" (identifier) "editor" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "ModuleEditorCamera* editorCamera = nullptr;" (type_identifier) "ModuleEditorCamera" (init_declarator) "* editorCamera = nullptr" (pointer_declarator) "* editorCamera" (*) "*" (identifier) "editorCamera" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "ModuleModelLoader* modelLoader = nullptr;" (type_identifier) "ModuleModelLoader" (init_declarator) "* modelLoader = nullptr" (pointer_declarator) "* modelLoader" (*) "*" (identifier) "modelLoader" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (labeled_statement) "private:\n std::list<Module*> modules;" (statement_identifier) "private" (:) ":" (labeled_statement) "std::list<Module*> modules;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "list<Module*> modules;" (binary_expression) "list<Module*> modules" (binary_expression) "list<Module" (identifier) "list" (<) "<" (identifier) "Module" (ERROR) "*" (*) "*" (>) ">" (identifier) "modules" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (declaration) "extern Application* App;" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "Application" (pointer_declarator) "* App" (*) "*" (identifier) "App" (;) ";"
222
2
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 22.05, "nodes": 150, "errors": 0, "source_hash": "f1fa8903e83d6476f0f6c496ea8fe5f15fa091753a2b8e46230bd0a21929d262", "categorized_nodes": 81}, "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<list>\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": "<list>", "parent": 3, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 14}}, {"id": 6, "type": "preproc_include", "text": "#include \"Globals.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": "\"Globals.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 20}}, {"id": 9, "type": "preproc_include", "text": "#include \"Module.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": "\"Module.h\"", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 19}}, {"id": 12, "type": "declaration", "text": "class ModuleRender;", "parent": null, "children": [13], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 19}}, {"id": 13, "type": "identifier", "text": "ModuleRender", "parent": 12, "children": [], "start_point": {"row": 6, "column": 6}, "end_point": {"row": 6, "column": 18}}, {"id": 14, "type": "declaration", "text": "class ModuleWindow;", "parent": null, "children": [15], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 19}}, {"id": 15, "type": "identifier", "text": "ModuleWindow", "parent": 14, "children": [], "start_point": {"row": 7, "column": 6}, "end_point": {"row": 7, "column": 18}}, {"id": 16, "type": "declaration", "text": "class ModuleTextures;", "parent": null, "children": [17], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 21}}, {"id": 17, "type": "identifier", "text": "ModuleTextures", "parent": 16, "children": [], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 8, "column": 20}}, {"id": 18, "type": "declaration", "text": "class ModuleInput;", "parent": null, "children": [19], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 18}}, {"id": 19, "type": "identifier", "text": "ModuleInput", "parent": 18, "children": [], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 17}}, {"id": 20, "type": "declaration", "text": "class ModuleRenderExercise;", "parent": null, "children": [21], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 27}}, {"id": 21, "type": "identifier", "text": "ModuleRenderExercise", "parent": 20, "children": [], "start_point": {"row": 10, "column": 6}, "end_point": {"row": 10, "column": 26}}, {"id": 22, "type": "declaration", "text": "class ModuleProgramShader;", "parent": null, "children": [23], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 26}}, {"id": 23, "type": "identifier", "text": "ModuleProgramShader", "parent": 22, "children": [], "start_point": {"row": 12, "column": 6}, "end_point": {"row": 12, "column": 25}}, {"id": 24, "type": "declaration", "text": "class ModuleTexture;", "parent": null, "children": [25], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 20}}, {"id": 25, "type": "identifier", "text": "ModuleTexture", "parent": 24, "children": [], "start_point": {"row": 13, "column": 6}, "end_point": {"row": 13, "column": 19}}, {"id": 26, "type": "declaration", "text": "class ModuleEditor;", "parent": null, "children": [27], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 19}}, {"id": 27, "type": "identifier", "text": "ModuleEditor", "parent": 26, "children": [], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 14, "column": 18}}, {"id": 28, "type": "declaration", "text": "class ModuleEditorCamera;", "parent": null, "children": [29], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 25}}, {"id": 29, "type": "identifier", "text": "ModuleEditorCamera", "parent": 28, "children": [], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 24}}, {"id": 30, "type": "declaration", "text": "class ModuleModelLoader;", "parent": null, "children": [31], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 24}}, {"id": 31, "type": "identifier", "text": "ModuleModelLoader", "parent": 30, "children": [], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 23}}, {"id": 32, "type": "function_definition", "text": "class Application\n{\npublic:\n\n\tApplication();\n\t~Application();\n\n\tbool Init();\n\tupdate_status Update();\n\tbool CleanUp();\n\npublic:\n\tModuleRender* renderer = nullptr;\n\tModuleWindow* window = nullptr;\n\tModuleInput* input = nullptr;\n\t//ModuleTriangle* triangle = nullptr;\n\tModuleProgramShader* programShader = nullptr;\n\tModuleTexture* texture = nullptr;\n\tModuleEditor* editor = nullptr;\n\tModuleEditorCamera* editorCamera = nullptr;\n\tModuleModelLoader* modelLoader = nullptr;\n\nprivate:\n\tstd::list<Module*> modules;\n}", "parent": null, "children": [33], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 42, "column": 1}}, {"id": 33, "type": "identifier", "text": "Application", "parent": 32, "children": [], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 17}}, {"id": 34, "type": "labeled_statement", "text": "public:\n\n\tApplication();", "parent": 32, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 22, "column": 15}}, {"id": 35, "type": "call_expression", "text": "Application()", "parent": 34, "children": [36, 37], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 14}}, {"id": 36, "type": "identifier", "text": "Application", "parent": 35, "children": [], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 12}}, {"id": 37, "type": "argument_list", "text": "()", "parent": 35, "children": [], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 14}}, {"id": 38, "type": "unary_expression", "text": "~Application()", "parent": 32, "children": [39, 40], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 15}}, {"id": 39, "type": "~", "text": "~", "parent": 38, "children": [], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 2}}, {"id": 40, "type": "call_expression", "text": "Application()", "parent": 38, "children": [41, 42], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 15}}, {"id": 41, "type": "identifier", "text": "Application", "parent": 40, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 13}}, {"id": 42, "type": "argument_list", "text": "()", "parent": 40, "children": [], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 15}}, {"id": 43, "type": "declaration", "text": "bool Init();", "parent": 32, "children": [44, 45], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 13}}, {"id": 44, "type": "primitive_type", "text": "bool", "parent": 43, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 5}}, {"id": 45, "type": "function_declarator", "text": "Init()", "parent": 43, "children": [46, 47], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 12}}, {"id": 46, "type": "identifier", "text": "Init", "parent": 45, "children": [], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 10}}, {"id": 47, "type": "parameter_list", "text": "()", "parent": 45, "children": [], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 12}}, {"id": 48, "type": "declaration", "text": "update_status Update();", "parent": 32, "children": [49, 50], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 24}}, {"id": 49, "type": "type_identifier", "text": "update_status", "parent": 48, "children": [], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 14}}, {"id": 50, "type": "function_declarator", "text": "Update()", "parent": 48, "children": [51, 52], "start_point": {"row": 26, "column": 15}, "end_point": {"row": 26, "column": 23}}, {"id": 51, "type": "identifier", "text": "Update", "parent": 50, "children": [], "start_point": {"row": 26, "column": 15}, "end_point": {"row": 26, "column": 21}}, {"id": 52, "type": "parameter_list", "text": "()", "parent": 50, "children": [], "start_point": {"row": 26, "column": 21}, "end_point": {"row": 26, "column": 23}}, {"id": 53, "type": "declaration", "text": "bool CleanUp();", "parent": 32, "children": [54, 55], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 16}}, {"id": 54, "type": "primitive_type", "text": "bool", "parent": 53, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 5}}, {"id": 55, "type": "function_declarator", "text": "CleanUp()", "parent": 53, "children": [56, 57], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 15}}, {"id": 56, "type": "identifier", "text": "CleanUp", "parent": 55, "children": [], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 13}}, {"id": 57, "type": "parameter_list", "text": "()", "parent": 55, "children": [], "start_point": {"row": 27, "column": 13}, "end_point": {"row": 27, "column": 15}}, {"id": 58, "type": "labeled_statement", "text": "public:\n\tModuleRender* renderer = nullptr;", "parent": 32, "children": [59], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 34}}, {"id": 59, "type": "declaration", "text": "ModuleRender* renderer = nullptr;", "parent": 58, "children": [60, 61], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 34}}, {"id": 60, "type": "type_identifier", "text": "ModuleRender", "parent": 59, "children": [], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 13}}, {"id": 61, "type": "init_declarator", "text": "* renderer = nullptr", "parent": 59, "children": [62, 65, 66], "start_point": {"row": 30, "column": 13}, "end_point": {"row": 30, "column": 33}}, {"id": 62, "type": "pointer_declarator", "text": "* renderer", "parent": 61, "children": [63, 64], "start_point": {"row": 30, "column": 13}, "end_point": {"row": 30, "column": 23}}, {"id": 63, "type": "*", "text": "*", "parent": 62, "children": [], "start_point": {"row": 30, "column": 13}, "end_point": {"row": 30, "column": 14}}, {"id": 64, "type": "identifier", "text": "renderer", "parent": 62, "children": [], "start_point": {"row": 30, "column": 15}, "end_point": {"row": 30, "column": 23}}, {"id": 65, "type": "=", "text": "=", "parent": 61, "children": [], "start_point": {"row": 30, "column": 24}, "end_point": {"row": 30, "column": 25}}, {"id": 66, "type": "null", "text": "nullptr", "parent": 61, "children": [67], "start_point": {"row": 30, "column": 26}, "end_point": {"row": 30, "column": 33}}, {"id": 67, "type": "nullptr", "text": "nullptr", "parent": 66, "children": [], "start_point": {"row": 30, "column": 26}, "end_point": {"row": 30, "column": 33}}, {"id": 68, "type": "declaration", "text": "ModuleWindow* window = nullptr;", "parent": 32, "children": [69, 70], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 32}}, {"id": 69, "type": "type_identifier", "text": "ModuleWindow", "parent": 68, "children": [], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 13}}, {"id": 70, "type": "init_declarator", "text": "* window = nullptr", "parent": 68, "children": [71, 74, 75], "start_point": {"row": 31, "column": 13}, "end_point": {"row": 31, "column": 31}}, {"id": 71, "type": "pointer_declarator", "text": "* window", "parent": 70, "children": [72, 73], "start_point": {"row": 31, "column": 13}, "end_point": {"row": 31, "column": 21}}, {"id": 72, "type": "*", "text": "*", "parent": 71, "children": [], "start_point": {"row": 31, "column": 13}, "end_point": {"row": 31, "column": 14}}, {"id": 73, "type": "identifier", "text": "window", "parent": 71, "children": [], "start_point": {"row": 31, "column": 15}, "end_point": {"row": 31, "column": 21}}, {"id": 74, "type": "=", "text": "=", "parent": 70, "children": [], "start_point": {"row": 31, "column": 22}, "end_point": {"row": 31, "column": 23}}, {"id": 75, "type": "null", "text": "nullptr", "parent": 70, "children": [76], "start_point": {"row": 31, "column": 24}, "end_point": {"row": 31, "column": 31}}, {"id": 76, "type": "nullptr", "text": "nullptr", "parent": 75, "children": [], "start_point": {"row": 31, "column": 24}, "end_point": {"row": 31, "column": 31}}, {"id": 77, "type": "declaration", "text": "ModuleInput* input = nullptr;", "parent": 32, "children": [78, 79], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 30}}, {"id": 78, "type": "type_identifier", "text": "ModuleInput", "parent": 77, "children": [], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 12}}, {"id": 79, "type": "init_declarator", "text": "* input = nullptr", "parent": 77, "children": [80, 83, 84], "start_point": {"row": 32, "column": 12}, "end_point": {"row": 32, "column": 29}}, {"id": 80, "type": "pointer_declarator", "text": "* input", "parent": 79, "children": [81, 82], "start_point": {"row": 32, "column": 12}, "end_point": {"row": 32, "column": 19}}, {"id": 81, "type": "*", "text": "*", "parent": 80, "children": [], "start_point": {"row": 32, "column": 12}, "end_point": {"row": 32, "column": 13}}, {"id": 82, "type": "identifier", "text": "input", "parent": 80, "children": [], "start_point": {"row": 32, "column": 14}, "end_point": {"row": 32, "column": 19}}, {"id": 83, "type": "=", "text": "=", "parent": 79, "children": [], "start_point": {"row": 32, "column": 20}, "end_point": {"row": 32, "column": 21}}, {"id": 84, "type": "null", "text": "nullptr", "parent": 79, "children": [85], "start_point": {"row": 32, "column": 22}, "end_point": {"row": 32, "column": 29}}, {"id": 85, "type": "nullptr", "text": "nullptr", "parent": 84, "children": [], "start_point": {"row": 32, "column": 22}, "end_point": {"row": 32, "column": 29}}, {"id": 86, "type": "declaration", "text": "ModuleProgramShader* programShader = nullptr;", "parent": 32, "children": [87, 88], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 46}}, {"id": 87, "type": "type_identifier", "text": "ModuleProgramShader", "parent": 86, "children": [], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 20}}, {"id": 88, "type": "init_declarator", "text": "* programShader = nullptr", "parent": 86, "children": [89, 92, 93], "start_point": {"row": 34, "column": 20}, "end_point": {"row": 34, "column": 45}}, {"id": 89, "type": "pointer_declarator", "text": "* programShader", "parent": 88, "children": [90, 91], "start_point": {"row": 34, "column": 20}, "end_point": {"row": 34, "column": 35}}, {"id": 90, "type": "*", "text": "*", "parent": 89, "children": [], "start_point": {"row": 34, "column": 20}, "end_point": {"row": 34, "column": 21}}, {"id": 91, "type": "identifier", "text": "programShader", "parent": 89, "children": [], "start_point": {"row": 34, "column": 22}, "end_point": {"row": 34, "column": 35}}, {"id": 92, "type": "=", "text": "=", "parent": 88, "children": [], "start_point": {"row": 34, "column": 36}, "end_point": {"row": 34, "column": 37}}, {"id": 93, "type": "null", "text": "nullptr", "parent": 88, "children": [94], "start_point": {"row": 34, "column": 38}, "end_point": {"row": 34, "column": 45}}, {"id": 94, "type": "nullptr", "text": "nullptr", "parent": 93, "children": [], "start_point": {"row": 34, "column": 38}, "end_point": {"row": 34, "column": 45}}, {"id": 95, "type": "declaration", "text": "ModuleTexture* texture = nullptr;", "parent": 32, "children": [96, 97], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 34}}, {"id": 96, "type": "type_identifier", "text": "ModuleTexture", "parent": 95, "children": [], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 14}}, {"id": 97, "type": "init_declarator", "text": "* texture = nullptr", "parent": 95, "children": [98, 101, 102], "start_point": {"row": 35, "column": 14}, "end_point": {"row": 35, "column": 33}}, {"id": 98, "type": "pointer_declarator", "text": "* texture", "parent": 97, "children": [99, 100], "start_point": {"row": 35, "column": 14}, "end_point": {"row": 35, "column": 23}}, {"id": 99, "type": "*", "text": "*", "parent": 98, "children": [], "start_point": {"row": 35, "column": 14}, "end_point": {"row": 35, "column": 15}}, {"id": 100, "type": "identifier", "text": "texture", "parent": 98, "children": [], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 23}}, {"id": 101, "type": "=", "text": "=", "parent": 97, "children": [], "start_point": {"row": 35, "column": 24}, "end_point": {"row": 35, "column": 25}}, {"id": 102, "type": "null", "text": "nullptr", "parent": 97, "children": [103], "start_point": {"row": 35, "column": 26}, "end_point": {"row": 35, "column": 33}}, {"id": 103, "type": "nullptr", "text": "nullptr", "parent": 102, "children": [], "start_point": {"row": 35, "column": 26}, "end_point": {"row": 35, "column": 33}}, {"id": 104, "type": "declaration", "text": "ModuleEditor* editor = nullptr;", "parent": 32, "children": [105, 106], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 32}}, {"id": 105, "type": "type_identifier", "text": "ModuleEditor", "parent": 104, "children": [], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 13}}, {"id": 106, "type": "init_declarator", "text": "* editor = nullptr", "parent": 104, "children": [107, 110, 111], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 31}}, {"id": 107, "type": "pointer_declarator", "text": "* editor", "parent": 106, "children": [108, 109], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 21}}, {"id": 108, "type": "*", "text": "*", "parent": 107, "children": [], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 14}}, {"id": 109, "type": "identifier", "text": "editor", "parent": 107, "children": [], "start_point": {"row": 36, "column": 15}, "end_point": {"row": 36, "column": 21}}, {"id": 110, "type": "=", "text": "=", "parent": 106, "children": [], "start_point": {"row": 36, "column": 22}, "end_point": {"row": 36, "column": 23}}, {"id": 111, "type": "null", "text": "nullptr", "parent": 106, "children": [112], "start_point": {"row": 36, "column": 24}, "end_point": {"row": 36, "column": 31}}, {"id": 112, "type": "nullptr", "text": "nullptr", "parent": 111, "children": [], "start_point": {"row": 36, "column": 24}, "end_point": {"row": 36, "column": 31}}, {"id": 113, "type": "declaration", "text": "ModuleEditorCamera* editorCamera = nullptr;", "parent": 32, "children": [114, 115], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 44}}, {"id": 114, "type": "type_identifier", "text": "ModuleEditorCamera", "parent": 113, "children": [], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 19}}, {"id": 115, "type": "init_declarator", "text": "* editorCamera = nullptr", "parent": 113, "children": [116, 119, 120], "start_point": {"row": 37, "column": 19}, "end_point": {"row": 37, "column": 43}}, {"id": 116, "type": "pointer_declarator", "text": "* editorCamera", "parent": 115, "children": [117, 118], "start_point": {"row": 37, "column": 19}, "end_point": {"row": 37, "column": 33}}, {"id": 117, "type": "*", "text": "*", "parent": 116, "children": [], "start_point": {"row": 37, "column": 19}, "end_point": {"row": 37, "column": 20}}, {"id": 118, "type": "identifier", "text": "editorCamera", "parent": 116, "children": [], "start_point": {"row": 37, "column": 21}, "end_point": {"row": 37, "column": 33}}, {"id": 119, "type": "=", "text": "=", "parent": 115, "children": [], "start_point": {"row": 37, "column": 34}, "end_point": {"row": 37, "column": 35}}, {"id": 120, "type": "null", "text": "nullptr", "parent": 115, "children": [121], "start_point": {"row": 37, "column": 36}, "end_point": {"row": 37, "column": 43}}, {"id": 121, "type": "nullptr", "text": "nullptr", "parent": 120, "children": [], "start_point": {"row": 37, "column": 36}, "end_point": {"row": 37, "column": 43}}, {"id": 122, "type": "declaration", "text": "ModuleModelLoader* modelLoader = nullptr;", "parent": 32, "children": [123, 124], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 42}}, {"id": 123, "type": "type_identifier", "text": "ModuleModelLoader", "parent": 122, "children": [], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 18}}, {"id": 124, "type": "init_declarator", "text": "* modelLoader = nullptr", "parent": 122, "children": [125, 128, 129], "start_point": {"row": 38, "column": 18}, "end_point": {"row": 38, "column": 41}}, {"id": 125, "type": "pointer_declarator", "text": "* modelLoader", "parent": 124, "children": [126, 127], "start_point": {"row": 38, "column": 18}, "end_point": {"row": 38, "column": 31}}, {"id": 126, "type": "*", "text": "*", "parent": 125, "children": [], "start_point": {"row": 38, "column": 18}, "end_point": {"row": 38, "column": 19}}, {"id": 127, "type": "identifier", "text": "modelLoader", "parent": 125, "children": [], "start_point": {"row": 38, "column": 20}, "end_point": {"row": 38, "column": 31}}, {"id": 128, "type": "=", "text": "=", "parent": 124, "children": [], "start_point": {"row": 38, "column": 32}, "end_point": {"row": 38, "column": 33}}, {"id": 129, "type": "null", "text": "nullptr", "parent": 124, "children": [130], "start_point": {"row": 38, "column": 34}, "end_point": {"row": 38, "column": 41}}, {"id": 130, "type": "nullptr", "text": "nullptr", "parent": 129, "children": [], "start_point": {"row": 38, "column": 34}, "end_point": {"row": 38, "column": 41}}, {"id": 131, "type": "labeled_statement", "text": "private:\n\tstd::list<Module*> modules;", "parent": 32, "children": [132], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 41, "column": 28}}, {"id": 132, "type": "labeled_statement", "text": "std::list<Module*> modules;", "parent": 131, "children": [133], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 28}}, {"id": 133, "type": "statement_identifier", "text": "std", "parent": 132, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 4}}, {"id": 134, "type": "binary_expression", "text": "list<Module*> modules", "parent": 132, "children": [135, 139, 141, 142], "start_point": {"row": 41, "column": 6}, "end_point": {"row": 41, "column": 27}}, {"id": 135, "type": "binary_expression", "text": "list<Module", "parent": 134, "children": [136, 137, 138], "start_point": {"row": 41, "column": 6}, "end_point": {"row": 41, "column": 17}}, {"id": 136, "type": "identifier", "text": "list", "parent": 135, "children": [], "start_point": {"row": 41, "column": 6}, "end_point": {"row": 41, "column": 10}}, {"id": 137, "type": "<", "text": "<", "parent": 135, "children": [], "start_point": {"row": 41, "column": 10}, "end_point": {"row": 41, "column": 11}}, {"id": 138, "type": "identifier", "text": "Module", "parent": 135, "children": [], "start_point": {"row": 41, "column": 11}, "end_point": {"row": 41, "column": 17}}, {"id": 139, "type": "ERROR", "text": "*", "parent": 134, "children": [140], "start_point": {"row": 41, "column": 17}, "end_point": {"row": 41, "column": 18}}, {"id": 140, "type": "*", "text": "*", "parent": 139, "children": [], "start_point": {"row": 41, "column": 17}, "end_point": {"row": 41, "column": 18}}, {"id": 141, "type": ">", "text": ">", "parent": 134, "children": [], "start_point": {"row": 41, "column": 18}, "end_point": {"row": 41, "column": 19}}, {"id": 142, "type": "identifier", "text": "modules", "parent": 134, "children": [], "start_point": {"row": 41, "column": 20}, "end_point": {"row": 41, "column": 27}}, {"id": 143, "type": "declaration", "text": "extern Application* App;", "parent": null, "children": [144, 146, 147], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 24}}, {"id": 144, "type": "storage_class_specifier", "text": "extern", "parent": 143, "children": [145], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 6}}, {"id": 145, "type": "extern", "text": "extern", "parent": 144, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 6}}, {"id": 146, "type": "type_identifier", "text": "Application", "parent": 143, "children": [], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 18}}, {"id": 147, "type": "pointer_declarator", "text": "* App", "parent": 143, "children": [148, 149], "start_point": {"row": 44, "column": 18}, "end_point": {"row": 44, "column": 23}}, {"id": 148, "type": "*", "text": "*", "parent": 147, "children": [], "start_point": {"row": 44, "column": 18}, "end_point": {"row": 44, "column": 19}}, {"id": 149, "type": "identifier", "text": "App", "parent": 147, "children": [], "start_point": {"row": 44, "column": 20}, "end_point": {"row": 44, "column": 23}}]}, "node_categories": {"declarations": {"functions": [32, 45, 50, 55], "variables": [12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 43, 48, 53, 59, 68, 77, 86, 95, 104, 113, 122, 143], "classes": [144], "imports": [3, 4, 6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [35, 38, 40, 134, 135], "assignments": [], "loops": [], "conditionals": [13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 36, 41, 46, 49, 51, 56, 60, 64, 69, 73, 78, 82, 87, 91, 96, 100, 105, 109, 114, 118, 123, 127, 133, 136, 138, 142, 146, 149], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 11], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 32, "universal_type": "function", "name": "Application", "text_snippet": "class Application\n{\npublic:\n\n\tApplication();\n\t~Application();\n\n\tbool Init();\n\tupdate_status Update()"}, {"node_id": 45, "universal_type": "function", "name": "unknown", "text_snippet": "Init()"}, {"node_id": 50, "universal_type": "function", "name": "unknown", "text_snippet": "Update()"}, {"node_id": 55, "universal_type": "function", "name": "unknown", "text_snippet": "CleanUp()"}], "class_declarations": [{"node_id": 144, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}], "import_statements": [{"node_id": 3, "text": "#include<list>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"Globals.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"Module.h\"\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "#pragma once\n\n#include<list>\n#include \"Globals.h\"\n#include \"Module.h\"\n\nclass ModuleRender;\nclass ModuleWindow;\nclass ModuleTextures;\nclass ModuleInput;\nclass ModuleRenderExercise;\n//class ModuleTriangle;\nclass ModuleProgramShader;\nclass ModuleTexture;\nclass ModuleEditor;\nclass ModuleEditorCamera;\nclass ModuleModelLoader;\n\nclass Application\n{\npublic:\n\n\tApplication();\n\t~Application();\n\n\tbool Init();\n\tupdate_status Update();\n\tbool CleanUp();\n\npublic:\n\tModuleRender* renderer = nullptr;\n\tModuleWindow* window = nullptr;\n\tModuleInput* input = nullptr;\n\t//ModuleTriangle* triangle = nullptr;\n\tModuleProgramShader* programShader = nullptr;\n\tModuleTexture* texture = nullptr;\n\tModuleEditor* editor = nullptr;\n\tModuleEditorCamera* editorCamera = nullptr;\n\tModuleModelLoader* modelLoader = nullptr;\n\nprivate:\n\tstd::list<Module*> modules;\n};\n\nextern Application* App;\n"}
80,205
c
// Copyright (c) 2015 fjz13. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. #pragma once #include "MedusaCorePreDeclares.h" #include "Core/Siren/SirenHeader.h" USING_MEDUSA; //SIREN_HEADER_INCLUDE_BEGIN //SIREN_HEADER_INCLUDE_END class LoginRequest { public: struct Schema; LoginRequest(); ~LoginRequest(); //SIREN_HEADER_COPY_BEGIN public: LoginRequest(const LoginRequest& other) { mName = other.mName; mOrder = other.mOrder; } LoginRequest& operator=(const LoginRequest& other) { mName = other.mName; mOrder = other.mOrder; return *this; } //SIREN_HEADER_COPY_END //SIREN_HEADER_COMPARE_BEGIN public: SIREN_COMMON(LoginRequest); //SIREN_HEADER_COMPARE_END //SIREN_HEADER_METHOD_BEGIN public: SIREN_STRING(HeapString, Name); SIREN_METHOD(uint, Order); //SIREN_HEADER_METHOD_END //SIREN_HEADER_FIELD_BEGIN protected: HeapString mName; uint mOrder; //SIREN_HEADER_FIELD_END }; //SIREN_HEADER_SCHEMA_BEGIN struct LoginRequest::Schema { constexpr static uint Id{ 1 }; SIREN_FIELD(0, 0, Required, LoginRequest, HeapString, mName); SIREN_FIELD(1, 1, Required, LoginRequest, uint, mOrder); SIREN_FIELDS_2(void,LoginRequest); }; //SIREN_HEADER_SCHEMA_END
22.66
53
(translation_unit) "// Copyright (c) 2015 fjz13. All rights reserved.\n// Use of this source code is governed by a MIT-style\n// license that can be found in the LICENSE file.\n#pragma once\n#include "MedusaCorePreDeclares.h"\n#include "Core/Siren/SirenHeader.h"\nUSING_MEDUSA;\n\n//SIREN_HEADER_INCLUDE_BEGIN\n//SIREN_HEADER_INCLUDE_END\n\nclass LoginRequest\n{\npublic:\n struct Schema;\n LoginRequest();\n ~LoginRequest();\n//SIREN_HEADER_COPY_BEGIN\npublic:\n LoginRequest(const LoginRequest& other)\n {\n mName = other.mName;\n mOrder = other.mOrder;\n }\n LoginRequest& operator=(const LoginRequest& other)\n {\n mName = other.mName;\n mOrder = other.mOrder;\n return *this;\n }\n//SIREN_HEADER_COPY_END\n//SIREN_HEADER_COMPARE_BEGIN\npublic:\n SIREN_COMMON(LoginRequest);\n//SIREN_HEADER_COMPARE_END\n//SIREN_HEADER_METHOD_BEGIN\npublic:\n SIREN_STRING(HeapString, Name);\n SIREN_METHOD(uint, Order);\n//SIREN_HEADER_METHOD_END\n//SIREN_HEADER_FIELD_BEGIN\nprotected:\n HeapString mName;\n uint mOrder;\n//SIREN_HEADER_FIELD_END\n};\n\n//SIREN_HEADER_SCHEMA_BEGIN\nstruct LoginRequest::Schema\n{\n constexpr static uint Id{ 1 };\n SIREN_FIELD(0, 0, Required, LoginRequest, HeapString, mName);\n SIREN_FIELD(1, 1, Required, LoginRequest, uint, mOrder);\n SIREN_FIELDS_2(void,LoginRequest);\n};\n\n//SIREN_HEADER_SCHEMA_END\n\n" (comment) "// Copyright (c) 2015 fjz13. All rights reserved." (comment) "// Use of this source code is governed by a MIT-style" (comment) "// license that can be found in the LICENSE file." (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "MedusaCorePreDeclares.h"\n" (#include) "#include" (string_literal) ""MedusaCorePreDeclares.h"" (") """ (string_content) "MedusaCorePreDeclares.h" (") """ (preproc_include) "#include "Core/Siren/SirenHeader.h"\n" (#include) "#include" (string_literal) ""Core/Siren/SirenHeader.h"" (") """ (string_content) "Core/Siren/SirenHeader.h" (") """ (expression_statement) "USING_MEDUSA;" (identifier) "USING_MEDUSA" (;) ";" (comment) "//SIREN_HEADER_INCLUDE_BEGIN" (comment) "//SIREN_HEADER_INCLUDE_END" (function_definition) "class LoginRequest\n{\npublic:\n struct Schema;\n LoginRequest();\n ~LoginRequest();\n//SIREN_HEADER_COPY_BEGIN\npublic:\n LoginRequest(const LoginRequest& other)\n {\n mName = other.mName;\n mOrder = other.mOrder;\n }" (type_identifier) "class" (identifier) "LoginRequest" (compound_statement) "{\npublic:\n struct Schema;\n LoginRequest();\n ~LoginRequest();\n//SIREN_HEADER_COPY_BEGIN\npublic:\n LoginRequest(const LoginRequest& other)\n {\n mName = other.mName;\n mOrder = other.mOrder;\n }" ({) "{" (labeled_statement) "public:\n struct Schema;\n LoginRequest();" (statement_identifier) "public" (:) ":" (declaration) "struct Schema;\n LoginRequest();" (struct_specifier) "struct Schema" (struct) "struct" (type_identifier) "Schema" (ERROR) ";" (;) ";" (function_declarator) "LoginRequest()" (identifier) "LoginRequest" (parameter_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "~LoginRequest();" (unary_expression) "~LoginRequest()" (~) "~" (call_expression) "LoginRequest()" (identifier) "LoginRequest" (argument_list) "()" (() "(" ()) ")" (;) ";" (comment) "//SIREN_HEADER_COPY_BEGIN" (labeled_statement) "public:\n LoginRequest(const LoginRequest& other)\n {\n mName = other.mName;" (statement_identifier) "public" (:) ":" (declaration) "LoginRequest(const LoginRequest& other)\n {\n mName = other.mName;" (macro_type_specifier) "LoginRequest(const LoginRequest& other)" (identifier) "LoginRequest" (() "(" (type_descriptor) "const LoginRequest" (type_qualifier) "const" (const) "const" (type_identifier) "LoginRequest" (ERROR) "& other" (&) "&" (identifier) "other" ()) ")" (ERROR) "{" ({) "{" (init_declarator) "mName = other.mName" (identifier) "mName" (=) "=" (field_expression) "other.mName" (identifier) "other" (.) "." (field_identifier) "mName" (;) ";" (expression_statement) "mOrder = other.mOrder;" (assignment_expression) "mOrder = other.mOrder" (identifier) "mOrder" (=) "=" (field_expression) "other.mOrder" (identifier) "other" (.) "." (field_identifier) "mOrder" (;) ";" (}) "}" (ERROR) "LoginRequest& operator=(const LoginRequest& other)" (binary_expression) "LoginRequest& operator=(const LoginRequest& other)" (identifier) "LoginRequest" (&) "&" (assignment_expression) "operator=(const LoginRequest& other)" (identifier) "operator" (=) "=" (parenthesized_expression) "(const LoginRequest& other)" (() "(" (ERROR) "const LoginRequest" (type_descriptor) "const LoginRequest" (type_qualifier) "const" (const) "const" (type_identifier) "LoginRequest" (pointer_expression) "& other" (&) "&" (identifier) "other" ()) ")" (compound_statement) "{\n mName = other.mName;\n mOrder = other.mOrder;\n return *this;\n }" ({) "{" (expression_statement) "mName = other.mName;" (assignment_expression) "mName = other.mName" (identifier) "mName" (=) "=" (field_expression) "other.mName" (identifier) "other" (.) "." (field_identifier) "mName" (;) ";" (expression_statement) "mOrder = other.mOrder;" (assignment_expression) "mOrder = other.mOrder" (identifier) "mOrder" (=) "=" (field_expression) "other.mOrder" (identifier) "other" (.) "." (field_identifier) "mOrder" (;) ";" (return_statement) "return *this;" (return) "return" (pointer_expression) "*this" (*) "*" (identifier) "this" (;) ";" (}) "}" (comment) "//SIREN_HEADER_COPY_END" (comment) "//SIREN_HEADER_COMPARE_BEGIN" (labeled_statement) "public:\n SIREN_COMMON(LoginRequest);" (statement_identifier) "public" (:) ":" (expression_statement) "SIREN_COMMON(LoginRequest);" (call_expression) "SIREN_COMMON(LoginRequest)" (identifier) "SIREN_COMMON" (argument_list) "(LoginRequest)" (() "(" (identifier) "LoginRequest" ()) ")" (;) ";" (comment) "//SIREN_HEADER_COMPARE_END" (comment) "//SIREN_HEADER_METHOD_BEGIN" (labeled_statement) "public:\n SIREN_STRING(HeapString, Name);" (statement_identifier) "public" (:) ":" (expression_statement) "SIREN_STRING(HeapString, Name);" (call_expression) "SIREN_STRING(HeapString, Name)" (identifier) "SIREN_STRING" (argument_list) "(HeapString, Name)" (() "(" (identifier) "HeapString" (,) "," (identifier) "Name" ()) ")" (;) ";" (expression_statement) "SIREN_METHOD(uint, Order);" (call_expression) "SIREN_METHOD(uint, Order)" (identifier) "SIREN_METHOD" (argument_list) "(uint, Order)" (() "(" (identifier) "uint" (,) "," (identifier) "Order" ()) ")" (;) ";" (comment) "//SIREN_HEADER_METHOD_END" (comment) "//SIREN_HEADER_FIELD_BEGIN" (labeled_statement) "protected:\n HeapString mName;" (statement_identifier) "protected" (:) ":" (declaration) "HeapString mName;" (type_identifier) "HeapString" (identifier) "mName" (;) ";" (declaration) "uint mOrder;" (type_identifier) "uint" (identifier) "mOrder" (;) ";" (comment) "//SIREN_HEADER_FIELD_END" (ERROR) "}" (}) "}" (expression_statement) ";" (;) ";" (comment) "//SIREN_HEADER_SCHEMA_BEGIN" (function_definition) "struct LoginRequest::Schema\n{\n constexpr static uint Id{ 1 };\n SIREN_FIELD(0, 0, Required, LoginRequest, HeapString, mName);\n SIREN_FIELD(1, 1, Required, LoginRequest, uint, mOrder);\n SIREN_FIELDS_2(void,LoginRequest);\n}" (struct_specifier) "struct LoginRequest" (struct) "struct" (type_identifier) "LoginRequest" (ERROR) "::" (:) ":" (:) ":" (identifier) "Schema" (compound_statement) "{\n constexpr static uint Id{ 1 };\n SIREN_FIELD(0, 0, Required, LoginRequest, HeapString, mName);\n SIREN_FIELD(1, 1, Required, LoginRequest, uint, mOrder);\n SIREN_FIELDS_2(void,LoginRequest);\n}" ({) "{" (function_definition) "constexpr static uint Id{ 1 }" (type_qualifier) "constexpr" (constexpr) "constexpr" (storage_class_specifier) "static" (static) "static" (type_identifier) "uint" (identifier) "Id" (compound_statement) "{ 1 }" ({) "{" (ERROR) "1" (number_literal) "1" (}) "}" (expression_statement) ";" (;) ";" (expression_statement) "SIREN_FIELD(0, 0, Required, LoginRequest, HeapString, mName);" (call_expression) "SIREN_FIELD(0, 0, Required, LoginRequest, HeapString, mName)" (identifier) "SIREN_FIELD" (argument_list) "(0, 0, Required, LoginRequest, HeapString, mName)" (() "(" (number_literal) "0" (,) "," (number_literal) "0" (,) "," (identifier) "Required" (,) "," (identifier) "LoginRequest" (,) "," (identifier) "HeapString" (,) "," (identifier) "mName" ()) ")" (;) ";" (expression_statement) "SIREN_FIELD(1, 1, Required, LoginRequest, uint, mOrder);" (call_expression) "SIREN_FIELD(1, 1, Required, LoginRequest, uint, mOrder)" (identifier) "SIREN_FIELD" (argument_list) "(1, 1, Required, LoginRequest, uint, mOrder)" (() "(" (number_literal) "1" (,) "," (number_literal) "1" (,) "," (identifier) "Required" (,) "," (identifier) "LoginRequest" (,) "," (identifier) "uint" (,) "," (identifier) "mOrder" ()) ")" (;) ";" (expression_statement) "SIREN_FIELDS_2(void,LoginRequest);" (call_expression) "SIREN_FIELDS_2(void,LoginRequest)" (identifier) "SIREN_FIELDS_2" (argument_list) "(void,LoginRequest)" (() "(" (identifier) "void" (,) "," (identifier) "LoginRequest" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (comment) "//SIREN_HEADER_SCHEMA_END"
265
8
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 22.66, "nodes": 131, "errors": 0, "source_hash": "bf9590cc0822b8778891be79d0d395d09f8664b17b912e569717ca7ed7db8b77", "categorized_nodes": 101}, "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 \"MedusaCorePreDeclares.h\"\n", "parent": null, "children": [4, 5], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 5, "type": "string_literal", "text": "\"MedusaCorePreDeclares.h\"", "parent": 3, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 34}}, {"id": 6, "type": "preproc_include", "text": "#include \"Core/Siren/SirenHeader.h\"\n", "parent": null, "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": "\"Core/Siren/SirenHeader.h\"", "parent": 6, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 35}}, {"id": 9, "type": "identifier", "text": "USING_MEDUSA", "parent": null, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 12}}, {"id": 10, "type": "function_definition", "text": "class LoginRequest\n{\npublic:\n\tstruct Schema;\n\tLoginRequest();\n\t~LoginRequest();\n//SIREN_HEADER_COPY_BEGIN\npublic:\n\tLoginRequest(const LoginRequest& other)\n\t{\n\t\tmName = other.mName;\n\t\tmOrder = other.mOrder;\n\t}", "parent": null, "children": [11], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 23, "column": 2}}, {"id": 11, "type": "identifier", "text": "LoginRequest", "parent": 10, "children": [], "start_point": {"row": 11, "column": 6}, "end_point": {"row": 11, "column": 18}}, {"id": 12, "type": "labeled_statement", "text": "public:\n\tstruct Schema;\n\tLoginRequest();", "parent": 10, "children": [13], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 15, "column": 16}}, {"id": 13, "type": "declaration", "text": "struct Schema;\n\tLoginRequest();", "parent": 12, "children": [14, 17], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 15, "column": 16}}, {"id": 14, "type": "struct_specifier", "text": "struct Schema", "parent": 13, "children": [15, 16], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 14}}, {"id": 15, "type": "struct", "text": "struct", "parent": 14, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 7}}, {"id": 16, "type": "type_identifier", "text": "Schema", "parent": 14, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 14}}, {"id": 17, "type": "function_declarator", "text": "LoginRequest()", "parent": 13, "children": [18, 19], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 15}}, {"id": 18, "type": "identifier", "text": "LoginRequest", "parent": 17, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 13}}, {"id": 19, "type": "parameter_list", "text": "()", "parent": 17, "children": [], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 15}}, {"id": 20, "type": "unary_expression", "text": "~LoginRequest()", "parent": 10, "children": [21, 22], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 16}}, {"id": 21, "type": "~", "text": "~", "parent": 20, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 2}}, {"id": 22, "type": "call_expression", "text": "LoginRequest()", "parent": 20, "children": [23, 24], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 16}}, {"id": 23, "type": "identifier", "text": "LoginRequest", "parent": 22, "children": [], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 14}}, {"id": 24, "type": "argument_list", "text": "()", "parent": 22, "children": [], "start_point": {"row": 16, "column": 14}, "end_point": {"row": 16, "column": 16}}, {"id": 25, "type": "labeled_statement", "text": "public:\n\tLoginRequest(const LoginRequest& other)\n\t{\n\t\tmName = other.mName;", "parent": 10, "children": [26], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 21, "column": 22}}, {"id": 26, "type": "declaration", "text": "LoginRequest(const LoginRequest& other)\n\t{\n\t\tmName = other.mName;", "parent": 25, "children": [27, 33], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 21, "column": 22}}, {"id": 27, "type": "macro_type_specifier", "text": "LoginRequest(const LoginRequest& other)", "parent": 26, "children": [28, 29, 31], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 40}}, {"id": 28, "type": "identifier", "text": "LoginRequest", "parent": 27, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 13}}, {"id": 29, "type": "type_descriptor", "text": "const LoginRequest", "parent": 27, "children": [30], "start_point": {"row": 19, "column": 14}, "end_point": {"row": 19, "column": 32}}, {"id": 30, "type": "type_identifier", "text": "LoginRequest", "parent": 29, "children": [], "start_point": {"row": 19, "column": 20}, "end_point": {"row": 19, "column": 32}}, {"id": 31, "type": "ERROR", "text": "& other", "parent": 27, "children": [32], "start_point": {"row": 19, "column": 32}, "end_point": {"row": 19, "column": 39}}, {"id": 32, "type": "identifier", "text": "other", "parent": 31, "children": [], "start_point": {"row": 19, "column": 34}, "end_point": {"row": 19, "column": 39}}, {"id": 33, "type": "init_declarator", "text": "mName = other.mName", "parent": 26, "children": [34, 35, 36], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 21}}, {"id": 34, "type": "identifier", "text": "mName", "parent": 33, "children": [], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 7}}, {"id": 35, "type": "=", "text": "=", "parent": 33, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 9}}, {"id": 36, "type": "field_expression", "text": "other.mName", "parent": 33, "children": [37, 38], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 21}}, {"id": 37, "type": "identifier", "text": "other", "parent": 36, "children": [], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 15}}, {"id": 38, "type": "field_identifier", "text": "mName", "parent": 36, "children": [], "start_point": {"row": 21, "column": 16}, "end_point": {"row": 21, "column": 21}}, {"id": 39, "type": "assignment_expression", "text": "mOrder = other.mOrder", "parent": 10, "children": [40, 41, 42], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 23}}, {"id": 40, "type": "identifier", "text": "mOrder", "parent": 39, "children": [], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 8}}, {"id": 41, "type": "=", "text": "=", "parent": 39, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 10}}, {"id": 42, "type": "field_expression", "text": "other.mOrder", "parent": 39, "children": [43, 44], "start_point": {"row": 22, "column": 11}, "end_point": {"row": 22, "column": 23}}, {"id": 43, "type": "identifier", "text": "other", "parent": 42, "children": [], "start_point": {"row": 22, "column": 11}, "end_point": {"row": 22, "column": 16}}, {"id": 44, "type": "field_identifier", "text": "mOrder", "parent": 42, "children": [], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 23}}, {"id": 45, "type": "ERROR", "text": "LoginRequest& operator=(const LoginRequest& other)", "parent": null, "children": [46], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 51}}, {"id": 46, "type": "binary_expression", "text": "LoginRequest& operator=(const LoginRequest& other)", "parent": 45, "children": [47, 48], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 51}}, {"id": 47, "type": "identifier", "text": "LoginRequest", "parent": 46, "children": [], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 13}}, {"id": 48, "type": "assignment_expression", "text": "operator=(const LoginRequest& other)", "parent": 46, "children": [49, 50, 51], "start_point": {"row": 24, "column": 15}, "end_point": {"row": 24, "column": 51}}, {"id": 49, "type": "identifier", "text": "operator", "parent": 48, "children": [], "start_point": {"row": 24, "column": 15}, "end_point": {"row": 24, "column": 23}}, {"id": 50, "type": "=", "text": "=", "parent": 48, "children": [], "start_point": {"row": 24, "column": 23}, "end_point": {"row": 24, "column": 24}}, {"id": 51, "type": "parenthesized_expression", "text": "(const LoginRequest& other)", "parent": 48, "children": [52, 55], "start_point": {"row": 24, "column": 24}, "end_point": {"row": 24, "column": 51}}, {"id": 52, "type": "ERROR", "text": "const LoginRequest", "parent": 51, "children": [53], "start_point": {"row": 24, "column": 25}, "end_point": {"row": 24, "column": 43}}, {"id": 53, "type": "type_descriptor", "text": "const LoginRequest", "parent": 52, "children": [54], "start_point": {"row": 24, "column": 25}, "end_point": {"row": 24, "column": 43}}, {"id": 54, "type": "type_identifier", "text": "LoginRequest", "parent": 53, "children": [], "start_point": {"row": 24, "column": 31}, "end_point": {"row": 24, "column": 43}}, {"id": 55, "type": "pointer_expression", "text": "& other", "parent": 51, "children": [56], "start_point": {"row": 24, "column": 43}, "end_point": {"row": 24, "column": 50}}, {"id": 56, "type": "identifier", "text": "other", "parent": 55, "children": [], "start_point": {"row": 24, "column": 45}, "end_point": {"row": 24, "column": 50}}, {"id": 57, "type": "assignment_expression", "text": "mName = other.mName", "parent": null, "children": [58, 59, 60], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 21}}, {"id": 58, "type": "identifier", "text": "mName", "parent": 57, "children": [], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 7}}, {"id": 59, "type": "=", "text": "=", "parent": 57, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 9}}, {"id": 60, "type": "field_expression", "text": "other.mName", "parent": 57, "children": [61, 62], "start_point": {"row": 26, "column": 10}, "end_point": {"row": 26, "column": 21}}, {"id": 61, "type": "identifier", "text": "other", "parent": 60, "children": [], "start_point": {"row": 26, "column": 10}, "end_point": {"row": 26, "column": 15}}, {"id": 62, "type": "field_identifier", "text": "mName", "parent": 60, "children": [], "start_point": {"row": 26, "column": 16}, "end_point": {"row": 26, "column": 21}}, {"id": 63, "type": "assignment_expression", "text": "mOrder = other.mOrder", "parent": null, "children": [64, 65, 66], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 23}}, {"id": 64, "type": "identifier", "text": "mOrder", "parent": 63, "children": [], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 8}}, {"id": 65, "type": "=", "text": "=", "parent": 63, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 10}}, {"id": 66, "type": "field_expression", "text": "other.mOrder", "parent": 63, "children": [67, 68], "start_point": {"row": 27, "column": 11}, "end_point": {"row": 27, "column": 23}}, {"id": 67, "type": "identifier", "text": "other", "parent": 66, "children": [], "start_point": {"row": 27, "column": 11}, "end_point": {"row": 27, "column": 16}}, {"id": 68, "type": "field_identifier", "text": "mOrder", "parent": 66, "children": [], "start_point": {"row": 27, "column": 17}, "end_point": {"row": 27, "column": 23}}, {"id": 69, "type": "return_statement", "text": "return *this;", "parent": null, "children": [70], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 15}}, {"id": 70, "type": "pointer_expression", "text": "*this", "parent": 69, "children": [71, 72], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 14}}, {"id": 71, "type": "*", "text": "*", "parent": 70, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 10}}, {"id": 72, "type": "identifier", "text": "this", "parent": 70, "children": [], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 14}}, {"id": 73, "type": "labeled_statement", "text": "public:\n\tSIREN_COMMON(LoginRequest);", "parent": null, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 33, "column": 28}}, {"id": 74, "type": "call_expression", "text": "SIREN_COMMON(LoginRequest)", "parent": 73, "children": [75, 76], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 27}}, {"id": 75, "type": "identifier", "text": "SIREN_COMMON", "parent": 74, "children": [], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 13}}, {"id": 76, "type": "argument_list", "text": "(LoginRequest)", "parent": 74, "children": [77], "start_point": {"row": 33, "column": 13}, "end_point": {"row": 33, "column": 27}}, {"id": 77, "type": "identifier", "text": "LoginRequest", "parent": 76, "children": [], "start_point": {"row": 33, "column": 14}, "end_point": {"row": 33, "column": 26}}, {"id": 78, "type": "labeled_statement", "text": "public:\n\tSIREN_STRING(HeapString, Name);", "parent": null, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 37, "column": 32}}, {"id": 79, "type": "call_expression", "text": "SIREN_STRING(HeapString, Name)", "parent": 78, "children": [80, 81], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 31}}, {"id": 80, "type": "identifier", "text": "SIREN_STRING", "parent": 79, "children": [], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 13}}, {"id": 81, "type": "argument_list", "text": "(HeapString, Name)", "parent": 79, "children": [82, 83], "start_point": {"row": 37, "column": 13}, "end_point": {"row": 37, "column": 31}}, {"id": 82, "type": "identifier", "text": "HeapString", "parent": 81, "children": [], "start_point": {"row": 37, "column": 14}, "end_point": {"row": 37, "column": 24}}, {"id": 83, "type": "identifier", "text": "Name", "parent": 81, "children": [], "start_point": {"row": 37, "column": 26}, "end_point": {"row": 37, "column": 30}}, {"id": 84, "type": "call_expression", "text": "SIREN_METHOD(uint, Order)", "parent": null, "children": [85, 86], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 26}}, {"id": 85, "type": "identifier", "text": "SIREN_METHOD", "parent": 84, "children": [], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 13}}, {"id": 86, "type": "argument_list", "text": "(uint, Order)", "parent": 84, "children": [87, 88], "start_point": {"row": 38, "column": 13}, "end_point": {"row": 38, "column": 26}}, {"id": 87, "type": "identifier", "text": "uint", "parent": 86, "children": [], "start_point": {"row": 38, "column": 14}, "end_point": {"row": 38, "column": 18}}, {"id": 88, "type": "identifier", "text": "Order", "parent": 86, "children": [], "start_point": {"row": 38, "column": 20}, "end_point": {"row": 38, "column": 25}}, {"id": 89, "type": "labeled_statement", "text": "protected:\n\tHeapString mName;", "parent": null, "children": [90], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 42, "column": 18}}, {"id": 90, "type": "declaration", "text": "HeapString mName;", "parent": 89, "children": [91, 92], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 18}}, {"id": 91, "type": "type_identifier", "text": "HeapString", "parent": 90, "children": [], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 11}}, {"id": 92, "type": "identifier", "text": "mName", "parent": 90, "children": [], "start_point": {"row": 42, "column": 12}, "end_point": {"row": 42, "column": 17}}, {"id": 93, "type": "declaration", "text": "uint mOrder;", "parent": null, "children": [94, 95], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 13}}, {"id": 94, "type": "type_identifier", "text": "uint", "parent": 93, "children": [], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 5}}, {"id": 95, "type": "identifier", "text": "mOrder", "parent": 93, "children": [], "start_point": {"row": 43, "column": 6}, "end_point": {"row": 43, "column": 12}}, {"id": 96, "type": "function_definition", "text": "struct LoginRequest::Schema\n{\n\tconstexpr static uint Id{ 1 };\n\tSIREN_FIELD(0, 0, Required, LoginRequest, HeapString, mName);\n\tSIREN_FIELD(1, 1, Required, LoginRequest, uint, mOrder);\n\tSIREN_FIELDS_2(void,LoginRequest);\n}", "parent": null, "children": [97, 100], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 54, "column": 1}}, {"id": 97, "type": "struct_specifier", "text": "struct LoginRequest", "parent": 96, "children": [98, 99], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 19}}, {"id": 98, "type": "struct", "text": "struct", "parent": 97, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 6}}, {"id": 99, "type": "type_identifier", "text": "LoginRequest", "parent": 97, "children": [], "start_point": {"row": 48, "column": 7}, "end_point": {"row": 48, "column": 19}}, {"id": 100, "type": "identifier", "text": "Schema", "parent": 96, "children": [], "start_point": {"row": 48, "column": 21}, "end_point": {"row": 48, "column": 27}}, {"id": 101, "type": "function_definition", "text": "constexpr static uint Id{ 1 }", "parent": 96, "children": [102, 104, 105], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 30}}, {"id": 102, "type": "type_qualifier", "text": "constexpr", "parent": 101, "children": [103], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 10}}, {"id": 103, "type": "constexpr", "text": "constexpr", "parent": 102, "children": [], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 10}}, {"id": 104, "type": "type_identifier", "text": "uint", "parent": 101, "children": [], "start_point": {"row": 50, "column": 18}, "end_point": {"row": 50, "column": 22}}, {"id": 105, "type": "identifier", "text": "Id", "parent": 101, "children": [], "start_point": {"row": 50, "column": 23}, "end_point": {"row": 50, "column": 25}}, {"id": 106, "type": "ERROR", "text": "1", "parent": 101, "children": [107], "start_point": {"row": 50, "column": 27}, "end_point": {"row": 50, "column": 28}}, {"id": 107, "type": "number_literal", "text": "1", "parent": 106, "children": [], "start_point": {"row": 50, "column": 27}, "end_point": {"row": 50, "column": 28}}, {"id": 108, "type": "call_expression", "text": "SIREN_FIELD(0, 0, Required, LoginRequest, HeapString, mName)", "parent": 96, "children": [109, 110], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 61}}, {"id": 109, "type": "identifier", "text": "SIREN_FIELD", "parent": 108, "children": [], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 12}}, {"id": 110, "type": "argument_list", "text": "(0, 0, Required, LoginRequest, HeapString, mName)", "parent": 108, "children": [111, 112, 113, 114, 115, 116], "start_point": {"row": 51, "column": 12}, "end_point": {"row": 51, "column": 61}}, {"id": 111, "type": "number_literal", "text": "0", "parent": 110, "children": [], "start_point": {"row": 51, "column": 13}, "end_point": {"row": 51, "column": 14}}, {"id": 112, "type": "number_literal", "text": "0", "parent": 110, "children": [], "start_point": {"row": 51, "column": 16}, "end_point": {"row": 51, "column": 17}}, {"id": 113, "type": "identifier", "text": "Required", "parent": 110, "children": [], "start_point": {"row": 51, "column": 19}, "end_point": {"row": 51, "column": 27}}, {"id": 114, "type": "identifier", "text": "LoginRequest", "parent": 110, "children": [], "start_point": {"row": 51, "column": 29}, "end_point": {"row": 51, "column": 41}}, {"id": 115, "type": "identifier", "text": "HeapString", "parent": 110, "children": [], "start_point": {"row": 51, "column": 43}, "end_point": {"row": 51, "column": 53}}, {"id": 116, "type": "identifier", "text": "mName", "parent": 110, "children": [], "start_point": {"row": 51, "column": 55}, "end_point": {"row": 51, "column": 60}}, {"id": 117, "type": "call_expression", "text": "SIREN_FIELD(1, 1, Required, LoginRequest, uint, mOrder)", "parent": 96, "children": [118, 119], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 56}}, {"id": 118, "type": "identifier", "text": "SIREN_FIELD", "parent": 117, "children": [], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 12}}, {"id": 119, "type": "argument_list", "text": "(1, 1, Required, LoginRequest, uint, mOrder)", "parent": 117, "children": [120, 121, 122, 123, 124, 125], "start_point": {"row": 52, "column": 12}, "end_point": {"row": 52, "column": 56}}, {"id": 120, "type": "number_literal", "text": "1", "parent": 119, "children": [], "start_point": {"row": 52, "column": 13}, "end_point": {"row": 52, "column": 14}}, {"id": 121, "type": "number_literal", "text": "1", "parent": 119, "children": [], "start_point": {"row": 52, "column": 16}, "end_point": {"row": 52, "column": 17}}, {"id": 122, "type": "identifier", "text": "Required", "parent": 119, "children": [], "start_point": {"row": 52, "column": 19}, "end_point": {"row": 52, "column": 27}}, {"id": 123, "type": "identifier", "text": "LoginRequest", "parent": 119, "children": [], "start_point": {"row": 52, "column": 29}, "end_point": {"row": 52, "column": 41}}, {"id": 124, "type": "identifier", "text": "uint", "parent": 119, "children": [], "start_point": {"row": 52, "column": 43}, "end_point": {"row": 52, "column": 47}}, {"id": 125, "type": "identifier", "text": "mOrder", "parent": 119, "children": [], "start_point": {"row": 52, "column": 49}, "end_point": {"row": 52, "column": 55}}, {"id": 126, "type": "call_expression", "text": "SIREN_FIELDS_2(void,LoginRequest)", "parent": 96, "children": [127, 128], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 34}}, {"id": 127, "type": "identifier", "text": "SIREN_FIELDS_2", "parent": 126, "children": [], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 15}}, {"id": 128, "type": "argument_list", "text": "(void,LoginRequest)", "parent": 126, "children": [129, 130], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 34}}, {"id": 129, "type": "identifier", "text": "void", "parent": 128, "children": [], "start_point": {"row": 53, "column": 16}, "end_point": {"row": 53, "column": 20}}, {"id": 130, "type": "identifier", "text": "LoginRequest", "parent": 128, "children": [], "start_point": {"row": 53, "column": 21}, "end_point": {"row": 53, "column": 33}}]}, "node_categories": {"declarations": {"functions": [10, 17, 96, 101], "variables": [13, 26, 90, 93], "classes": [14, 15, 97, 98], "imports": [3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [20, 22, 36, 42, 46, 51, 55, 60, 66, 70, 74, 79, 84, 108, 117, 126], "assignments": [39, 48, 57, 63], "loops": [], "conditionals": [9, 11, 16, 18, 23, 27, 28, 30, 32, 34, 37, 38, 40, 43, 44, 47, 49, 54, 56, 58, 61, 62, 64, 67, 68, 72, 75, 77, 80, 82, 83, 85, 87, 88, 91, 92, 94, 95, 99, 100, 102, 104, 105, 109, 113, 114, 115, 116, 118, 122, 123, 124, 125, 127, 129, 130], "returns": [69], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 107, 111, 112, 120, 121], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 10, "universal_type": "function", "name": "LoginRequest", "text_snippet": "class LoginRequest\n{\npublic:\n\tstruct Schema;\n\tLoginRequest();\n\t~LoginRequest();\n//SIREN_HEADER_COPY_"}, {"node_id": 17, "universal_type": "function", "name": "unknown", "text_snippet": "LoginRequest()"}, {"node_id": 96, "universal_type": "function", "name": "LoginRequest::Schema", "text_snippet": "struct LoginRequest::Schema\n{\n\tconstexpr static uint Id{ 1 };\n\tSIREN_FIELD(0, 0, Required, LoginRequ"}, {"node_id": 101, "universal_type": "function", "name": "unknown", "text_snippet": "constexpr static uint Id{ 1 }"}], "class_declarations": [{"node_id": 14, "universal_type": "class", "name": "Schema", "text_snippet": "struct Schema"}, {"node_id": 15, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 97, "universal_type": "class", "name": "LoginRequest", "text_snippet": "struct LoginRequest"}, {"node_id": 98, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 3, "text": "#include \"MedusaCorePreDeclares.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"Core/Siren/SirenHeader.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "// Copyright (c) 2015 fjz13. All rights reserved.\n// Use of this source code is governed by a MIT-style\n// license that can be found in the LICENSE file.\n#pragma once\n#include \"MedusaCorePreDeclares.h\"\n#include \"Core/Siren/SirenHeader.h\"\nUSING_MEDUSA;\n\n//SIREN_HEADER_INCLUDE_BEGIN\n//SIREN_HEADER_INCLUDE_END\n\nclass LoginRequest\n{\npublic:\n\tstruct Schema;\n\tLoginRequest();\n\t~LoginRequest();\n//SIREN_HEADER_COPY_BEGIN\npublic:\n\tLoginRequest(const LoginRequest& other)\n\t{\n\t\tmName = other.mName;\n\t\tmOrder = other.mOrder;\n\t}\n\tLoginRequest& operator=(const LoginRequest& other)\n\t{\n\t\tmName = other.mName;\n\t\tmOrder = other.mOrder;\n\t\treturn *this;\n\t}\n//SIREN_HEADER_COPY_END\n//SIREN_HEADER_COMPARE_BEGIN\npublic:\n\tSIREN_COMMON(LoginRequest);\n//SIREN_HEADER_COMPARE_END\n//SIREN_HEADER_METHOD_BEGIN\npublic:\n\tSIREN_STRING(HeapString, Name);\n\tSIREN_METHOD(uint, Order);\n//SIREN_HEADER_METHOD_END\n//SIREN_HEADER_FIELD_BEGIN\nprotected:\n\tHeapString mName;\n\tuint mOrder;\n//SIREN_HEADER_FIELD_END\n};\n\n//SIREN_HEADER_SCHEMA_BEGIN\nstruct LoginRequest::Schema\n{\n\tconstexpr static uint Id{ 1 };\n\tSIREN_FIELD(0, 0, Required, LoginRequest, HeapString, mName);\n\tSIREN_FIELD(1, 1, Required, LoginRequest, uint, mOrder);\n\tSIREN_FIELDS_2(void,LoginRequest);\n};\n\n//SIREN_HEADER_SCHEMA_END\n\n"}
80,206
c
/* // @(#) addr_range.h // @(License-CC0) */ # if !defined( ADDR_RANGE_H) # define ADDR_RANGE_H # include "netaddr.h" enum { MAXRANGES = 63, }; typedef struct addr_range addr_range_t; struct addr_range { haddr_t addr; int mask; }; typedef struct range_list range_list_t; struct range_list { size_t nranges; addr_range_t ranges [MAXRANGES]; }; static inline void range_list_init (range_list_t* r) { r->nranges = 0; } static inline void range_list_append (range_list_t* r, haddr_t addr, int mask) { addr_range_t ar = { .addr = addr, .mask = mask }; r->ranges[r->nranges++] = ar; } int range_list_make (haddr_t start, haddr_t finish, range_list_t* r); # endif
23.63
27
(translation_unit) "/*\n// @(#) addr_range.h\n// @(License-CC0)\n*/\n\n# if !defined( ADDR_RANGE_H)\n# define ADDR_RANGE_H\n\n# include "netaddr.h"\n\nenum { MAXRANGES = 63, };\n\ntypedef struct addr_range addr_range_t;\nstruct addr_range {\n haddr_t addr;\n int mask;\n};\n\ntypedef struct range_list range_list_t;\nstruct range_list {\n size_t nranges;\n addr_range_t ranges [MAXRANGES];\n};\n\nstatic inline void range_list_init (range_list_t* r) {\n r->nranges = 0;\n}\n\nstatic inline void range_list_append (range_list_t* r, haddr_t addr, int mask) {\n addr_range_t ar = { .addr = addr, .mask = mask };\n r->ranges[r->nranges++] = ar;\n}\n\nint range_list_make (haddr_t start, haddr_t finish, range_list_t* r);\n\n# endif\n" (comment) "/*\n// @(#) addr_range.h\n// @(License-CC0)\n*/" (preproc_if) "# if !defined( ADDR_RANGE_H)\n# define ADDR_RANGE_H\n\n# include "netaddr.h"\n\nenum { MAXRANGES = 63, };\n\ntypedef struct addr_range addr_range_t;\nstruct addr_range {\n haddr_t addr;\n int mask;\n};\n\ntypedef struct range_list range_list_t;\nstruct range_list {\n size_t nranges;\n addr_range_t ranges [MAXRANGES];\n};\n\nstatic inline void range_list_init (range_list_t* r) {\n r->nranges = 0;\n}\n\nstatic inline void range_list_append (range_list_t* r, haddr_t addr, int mask) {\n addr_range_t ar = { .addr = addr, .mask = mask };\n r->ranges[r->nranges++] = ar;\n}\n\nint range_list_make (haddr_t start, haddr_t finish, range_list_t* r);\n\n# endif" (#if) "# if" (unary_expression) "!defined( ADDR_RANGE_H)" (!) "!" (preproc_defined) "defined( ADDR_RANGE_H)" (defined) "defined" (() "(" (identifier) "ADDR_RANGE_H" ()) ")" ( ) "\n" (preproc_def) "# define ADDR_RANGE_H\n" (#define) "# define" (identifier) "ADDR_RANGE_H" (preproc_include) "# include "netaddr.h"\n" (#include) "# include" (string_literal) ""netaddr.h"" (") """ (string_content) "netaddr.h" (") """ (enum_specifier) "enum { MAXRANGES = 63, }" (enum) "enum" (enumerator_list) "{ MAXRANGES = 63, }" ({) "{" (enumerator) "MAXRANGES = 63" (identifier) "MAXRANGES" (=) "=" (number_literal) "63" (,) "," (}) "}" (;) ";" (type_definition) "typedef struct addr_range addr_range_t;" (typedef) "typedef" (struct_specifier) "struct addr_range" (struct) "struct" (type_identifier) "addr_range" (type_identifier) "addr_range_t" (;) ";" (struct_specifier) "struct addr_range {\n haddr_t addr;\n int mask;\n}" (struct) "struct" (type_identifier) "addr_range" (field_declaration_list) "{\n haddr_t addr;\n int mask;\n}" ({) "{" (field_declaration) "haddr_t addr;" (type_identifier) "haddr_t" (field_identifier) "addr" (;) ";" (field_declaration) "int mask;" (primitive_type) "int" (field_identifier) "mask" (;) ";" (}) "}" (;) ";" (type_definition) "typedef struct range_list range_list_t;" (typedef) "typedef" (struct_specifier) "struct range_list" (struct) "struct" (type_identifier) "range_list" (type_identifier) "range_list_t" (;) ";" (struct_specifier) "struct range_list {\n size_t nranges;\n addr_range_t ranges [MAXRANGES];\n}" (struct) "struct" (type_identifier) "range_list" (field_declaration_list) "{\n size_t nranges;\n addr_range_t ranges [MAXRANGES];\n}" ({) "{" (field_declaration) "size_t nranges;" (primitive_type) "size_t" (field_identifier) "nranges" (;) ";" (field_declaration) "addr_range_t ranges [MAXRANGES];" (type_identifier) "addr_range_t" (array_declarator) "ranges [MAXRANGES]" (field_identifier) "ranges" ([) "[" (identifier) "MAXRANGES" (]) "]" (;) ";" (}) "}" (;) ";" (function_definition) "static inline void range_list_init (range_list_t* r) {\n r->nranges = 0;\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "void" (function_declarator) "range_list_init (range_list_t* r)" (identifier) "range_list_init" (parameter_list) "(range_list_t* r)" (() "(" (parameter_declaration) "range_list_t* r" (type_identifier) "range_list_t" (pointer_declarator) "* r" (*) "*" (identifier) "r" ()) ")" (compound_statement) "{\n r->nranges = 0;\n}" ({) "{" (expression_statement) "r->nranges = 0;" (assignment_expression) "r->nranges = 0" (field_expression) "r->nranges" (identifier) "r" (->) "->" (field_identifier) "nranges" (=) "=" (number_literal) "0" (;) ";" (}) "}" (function_definition) "static inline void range_list_append (range_list_t* r, haddr_t addr, int mask) {\n addr_range_t ar = { .addr = addr, .mask = mask };\n r->ranges[r->nranges++] = ar;\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "void" (function_declarator) "range_list_append (range_list_t* r, haddr_t addr, int mask)" (identifier) "range_list_append" (parameter_list) "(range_list_t* r, haddr_t addr, int mask)" (() "(" (parameter_declaration) "range_list_t* r" (type_identifier) "range_list_t" (pointer_declarator) "* r" (*) "*" (identifier) "r" (,) "," (parameter_declaration) "haddr_t addr" (type_identifier) "haddr_t" (identifier) "addr" (,) "," (parameter_declaration) "int mask" (primitive_type) "int" (identifier) "mask" ()) ")" (compound_statement) "{\n addr_range_t ar = { .addr = addr, .mask = mask };\n r->ranges[r->nranges++] = ar;\n}" ({) "{" (declaration) "addr_range_t ar = { .addr = addr, .mask = mask };" (type_identifier) "addr_range_t" (init_declarator) "ar = { .addr = addr, .mask = mask }" (identifier) "ar" (=) "=" (initializer_list) "{ .addr = addr, .mask = mask }" ({) "{" (initializer_pair) ".addr = addr" (field_designator) ".addr" (.) "." (field_identifier) "addr" (=) "=" (identifier) "addr" (,) "," (initializer_pair) ".mask = mask" (field_designator) ".mask" (.) "." (field_identifier) "mask" (=) "=" (identifier) "mask" (}) "}" (;) ";" (expression_statement) "r->ranges[r->nranges++] = ar;" (assignment_expression) "r->ranges[r->nranges++] = ar" (subscript_expression) "r->ranges[r->nranges++]" (field_expression) "r->ranges" (identifier) "r" (->) "->" (field_identifier) "ranges" ([) "[" (update_expression) "r->nranges++" (field_expression) "r->nranges" (identifier) "r" (->) "->" (field_identifier) "nranges" (++) "++" (]) "]" (=) "=" (identifier) "ar" (;) ";" (}) "}" (declaration) "int range_list_make (haddr_t start, haddr_t finish, range_list_t* r);" (primitive_type) "int" (function_declarator) "range_list_make (haddr_t start, haddr_t finish, range_list_t* r)" (identifier) "range_list_make" (parameter_list) "(haddr_t start, haddr_t finish, range_list_t* r)" (() "(" (parameter_declaration) "haddr_t start" (type_identifier) "haddr_t" (identifier) "start" (,) "," (parameter_declaration) "haddr_t finish" (type_identifier) "haddr_t" (identifier) "finish" (,) "," (parameter_declaration) "range_list_t* r" (type_identifier) "range_list_t" (pointer_declarator) "* r" (*) "*" (identifier) "r" ()) ")" (;) ";" (#endif) "# endif"
197
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 23.63, "nodes": 134, "errors": 0, "source_hash": "9d8ce8c83abb4845e2de41eb33d510291cbda4da19c823f957de0bf4bbccd4c9", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "# if\t!defined( ADDR_RANGE_H)\n# define\tADDR_RANGE_H\n\n# include\t\"netaddr.h\"\n\nenum\t{ MAXRANGES\t= 63, };\n\ntypedef\tstruct\taddr_range addr_range_t;\nstruct\taddr_range {\n\thaddr_t\taddr;\n\tint\tmask;\n};\n\ntypedef\tstruct\trange_list\trange_list_t;\nstruct\trange_list\t{\n\tsize_t\t\tnranges;\n\taddr_range_t\tranges [MAXRANGES];\n};\n\nstatic\tinline\tvoid\trange_list_init (range_list_t* r) {\n\tr->nranges\t= 0;\n}\n\nstatic\tinline void\trange_list_append (range_list_t* r, haddr_t addr, int mask) {\n\taddr_range_t\tar\t= { .addr = addr, .mask = mask };\n\tr->ranges[r->nranges++]\t= ar;\n}\n\nint\trange_list_make (haddr_t start, haddr_t finish, range_list_t* r);\n\n# endif", "parent": null, "children": [1, 2, 7, 8, 11, 14, 21, 27, 36, 42, 53, 71, 117, 133], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 35, "column": 7}}, {"id": 1, "type": "#if", "text": "# if", "parent": 0, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 4}}, {"id": 2, "type": "unary_expression", "text": "!defined( ADDR_RANGE_H)", "parent": 0, "children": [3, 4], "start_point": {"row": 5, "column": 5}, "end_point": {"row": 5, "column": 28}}, {"id": 3, "type": "!", "text": "!", "parent": 2, "children": [], "start_point": {"row": 5, "column": 5}, "end_point": {"row": 5, "column": 6}}, {"id": 4, "type": "preproc_defined", "text": "defined( ADDR_RANGE_H)", "parent": 2, "children": [5, 6], "start_point": {"row": 5, "column": 6}, "end_point": {"row": 5, "column": 28}}, {"id": 5, "type": "defined", "text": "defined", "parent": 4, "children": [], "start_point": {"row": 5, "column": 6}, "end_point": {"row": 5, "column": 13}}, {"id": 6, "type": "identifier", "text": "ADDR_RANGE_H", "parent": 4, "children": [], "start_point": {"row": 5, "column": 15}, "end_point": {"row": 5, "column": 27}}, {"id": 7, "type": "\n", "text": "\n", "parent": 0, "children": [], "start_point": {"row": 5, "column": 28}, "end_point": {"row": 6, "column": 0}}, {"id": 8, "type": "preproc_def", "text": "# define\tADDR_RANGE_H\n", "parent": 0, "children": [9, 10], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 9, "type": "#define", "text": "# define", "parent": 8, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 10, "type": "identifier", "text": "ADDR_RANGE_H", "parent": 8, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 21}}, {"id": 11, "type": "preproc_include", "text": "# include\t\"netaddr.h\"\n", "parent": 0, "children": [12, 13], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 12, "type": "#include", "text": "# include", "parent": 11, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 9}}, {"id": 13, "type": "string_literal", "text": "\"netaddr.h\"", "parent": 11, "children": [], "start_point": {"row": 8, "column": 10}, "end_point": {"row": 8, "column": 21}}, {"id": 14, "type": "enum_specifier", "text": "enum\t{ MAXRANGES\t= 63, }", "parent": 0, "children": [15, 16], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 24}}, {"id": 15, "type": "enum", "text": "enum", "parent": 14, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 4}}, {"id": 16, "type": "enumerator_list", "text": "{ MAXRANGES\t= 63, }", "parent": 14, "children": [17], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 24}}, {"id": 17, "type": "enumerator", "text": "MAXRANGES\t= 63", "parent": 16, "children": [18, 19, 20], "start_point": {"row": 10, "column": 7}, "end_point": {"row": 10, "column": 21}}, {"id": 18, "type": "identifier", "text": "MAXRANGES", "parent": 17, "children": [], "start_point": {"row": 10, "column": 7}, "end_point": {"row": 10, "column": 16}}, {"id": 19, "type": "=", "text": "=", "parent": 17, "children": [], "start_point": {"row": 10, "column": 17}, "end_point": {"row": 10, "column": 18}}, {"id": 20, "type": "number_literal", "text": "63", "parent": 17, "children": [], "start_point": {"row": 10, "column": 19}, "end_point": {"row": 10, "column": 21}}, {"id": 21, "type": "type_definition", "text": "typedef\tstruct\taddr_range addr_range_t;", "parent": 0, "children": [22, 23, 26], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 39}}, {"id": 22, "type": "typedef", "text": "typedef", "parent": 21, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 7}}, {"id": 23, "type": "struct_specifier", "text": "struct\taddr_range", "parent": 21, "children": [24, 25], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 25}}, {"id": 24, "type": "struct", "text": "struct", "parent": 23, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 14}}, {"id": 25, "type": "type_identifier", "text": "addr_range", "parent": 23, "children": [], "start_point": {"row": 12, "column": 15}, "end_point": {"row": 12, "column": 25}}, {"id": 26, "type": "type_identifier", "text": "addr_range_t", "parent": 21, "children": [], "start_point": {"row": 12, "column": 26}, "end_point": {"row": 12, "column": 38}}, {"id": 27, "type": "struct_specifier", "text": "struct\taddr_range {\n\thaddr_t\taddr;\n\tint\tmask;\n}", "parent": 0, "children": [28, 29], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 28, "type": "struct", "text": "struct", "parent": 27, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 6}}, {"id": 29, "type": "type_identifier", "text": "addr_range", "parent": 27, "children": [], "start_point": {"row": 13, "column": 7}, "end_point": {"row": 13, "column": 17}}, {"id": 30, "type": "field_declaration", "text": "haddr_t\taddr;", "parent": 27, "children": [31, 32], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 14}}, {"id": 31, "type": "type_identifier", "text": "haddr_t", "parent": 30, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 8}}, {"id": 32, "type": "field_identifier", "text": "addr", "parent": 30, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 13}}, {"id": 33, "type": "field_declaration", "text": "int\tmask;", "parent": 27, "children": [34, 35], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 10}}, {"id": 34, "type": "primitive_type", "text": "int", "parent": 33, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 4}}, {"id": 35, "type": "field_identifier", "text": "mask", "parent": 33, "children": [], "start_point": {"row": 15, "column": 5}, "end_point": {"row": 15, "column": 9}}, {"id": 36, "type": "type_definition", "text": "typedef\tstruct\trange_list\trange_list_t;", "parent": 0, "children": [37, 38, 41], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 39}}, {"id": 37, "type": "typedef", "text": "typedef", "parent": 36, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 7}}, {"id": 38, "type": "struct_specifier", "text": "struct\trange_list", "parent": 36, "children": [39, 40], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 25}}, {"id": 39, "type": "struct", "text": "struct", "parent": 38, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 14}}, {"id": 40, "type": "type_identifier", "text": "range_list", "parent": 38, "children": [], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 25}}, {"id": 41, "type": "type_identifier", "text": "range_list_t", "parent": 36, "children": [], "start_point": {"row": 18, "column": 26}, "end_point": {"row": 18, "column": 38}}, {"id": 42, "type": "struct_specifier", "text": "struct\trange_list\t{\n\tsize_t\t\tnranges;\n\taddr_range_t\tranges [MAXRANGES];\n}", "parent": 0, "children": [43, 44], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 22, "column": 1}}, {"id": 43, "type": "struct", "text": "struct", "parent": 42, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 6}}, {"id": 44, "type": "type_identifier", "text": "range_list", "parent": 42, "children": [], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 17}}, {"id": 45, "type": "field_declaration", "text": "size_t\t\tnranges;", "parent": 42, "children": [46, 47], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 17}}, {"id": 46, "type": "primitive_type", "text": "size_t", "parent": 45, "children": [], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 7}}, {"id": 47, "type": "field_identifier", "text": "nranges", "parent": 45, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 16}}, {"id": 48, "type": "field_declaration", "text": "addr_range_t\tranges [MAXRANGES];", "parent": 42, "children": [49, 50], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 33}}, {"id": 49, "type": "type_identifier", "text": "addr_range_t", "parent": 48, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 13}}, {"id": 50, "type": "array_declarator", "text": "ranges [MAXRANGES]", "parent": 48, "children": [51, 52], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 32}}, {"id": 51, "type": "field_identifier", "text": "ranges", "parent": 50, "children": [], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 20}}, {"id": 52, "type": "identifier", "text": "MAXRANGES", "parent": 50, "children": [], "start_point": {"row": 21, "column": 22}, "end_point": {"row": 21, "column": 31}}, {"id": 53, "type": "function_definition", "text": "static\tinline\tvoid\trange_list_init (range_list_t* r) {\n\tr->nranges\t= 0;\n}", "parent": 0, "children": [54, 56, 57], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 54, "type": "storage_class_specifier", "text": "inline", "parent": 53, "children": [55], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 13}}, {"id": 55, "type": "inline", "text": "inline", "parent": 54, "children": [], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 13}}, {"id": 56, "type": "primitive_type", "text": "void", "parent": 53, "children": [], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 24, "column": 18}}, {"id": 57, "type": "function_declarator", "text": "range_list_init (range_list_t* r)", "parent": 53, "children": [58, 59], "start_point": {"row": 24, "column": 19}, "end_point": {"row": 24, "column": 52}}, {"id": 58, "type": "identifier", "text": "range_list_init", "parent": 57, "children": [], "start_point": {"row": 24, "column": 19}, "end_point": {"row": 24, "column": 34}}, {"id": 59, "type": "parameter_list", "text": "(range_list_t* r)", "parent": 57, "children": [60], "start_point": {"row": 24, "column": 35}, "end_point": {"row": 24, "column": 52}}, {"id": 60, "type": "parameter_declaration", "text": "range_list_t* r", "parent": 59, "children": [61, 62], "start_point": {"row": 24, "column": 36}, "end_point": {"row": 24, "column": 51}}, {"id": 61, "type": "type_identifier", "text": "range_list_t", "parent": 60, "children": [], "start_point": {"row": 24, "column": 36}, "end_point": {"row": 24, "column": 48}}, {"id": 62, "type": "pointer_declarator", "text": "* r", "parent": 60, "children": [63, 64], "start_point": {"row": 24, "column": 48}, "end_point": {"row": 24, "column": 51}}, {"id": 63, "type": "*", "text": "*", "parent": 62, "children": [], "start_point": {"row": 24, "column": 48}, "end_point": {"row": 24, "column": 49}}, {"id": 64, "type": "identifier", "text": "r", "parent": 62, "children": [], "start_point": {"row": 24, "column": 50}, "end_point": {"row": 24, "column": 51}}, {"id": 65, "type": "assignment_expression", "text": "r->nranges\t= 0", "parent": 53, "children": [66, 69, 70], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 15}}, {"id": 66, "type": "field_expression", "text": "r->nranges", "parent": 65, "children": [67, 68], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 11}}, {"id": 67, "type": "identifier", "text": "r", "parent": 66, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 2}}, {"id": 68, "type": "field_identifier", "text": "nranges", "parent": 66, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 11}}, {"id": 69, "type": "=", "text": "=", "parent": 65, "children": [], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 13}}, {"id": 70, "type": "number_literal", "text": "0", "parent": 65, "children": [], "start_point": {"row": 25, "column": 14}, "end_point": {"row": 25, "column": 15}}, {"id": 71, "type": "function_definition", "text": "static\tinline void\trange_list_append (range_list_t* r, haddr_t addr, int mask) {\n\taddr_range_t\tar\t= { .addr = addr, .mask = mask };\n\tr->ranges[r->nranges++]\t= ar;\n}", "parent": 0, "children": [72, 74, 75], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 31, "column": 1}}, {"id": 72, "type": "storage_class_specifier", "text": "inline", "parent": 71, "children": [73], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 13}}, {"id": 73, "type": "inline", "text": "inline", "parent": 72, "children": [], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 13}}, {"id": 74, "type": "primitive_type", "text": "void", "parent": 71, "children": [], "start_point": {"row": 28, "column": 14}, "end_point": {"row": 28, "column": 18}}, {"id": 75, "type": "function_declarator", "text": "range_list_append (range_list_t* r, haddr_t addr, int mask)", "parent": 71, "children": [76, 77], "start_point": {"row": 28, "column": 19}, "end_point": {"row": 28, "column": 78}}, {"id": 76, "type": "identifier", "text": "range_list_append", "parent": 75, "children": [], "start_point": {"row": 28, "column": 19}, "end_point": {"row": 28, "column": 36}}, {"id": 77, "type": "parameter_list", "text": "(range_list_t* r, haddr_t addr, int mask)", "parent": 75, "children": [78, 83, 86], "start_point": {"row": 28, "column": 37}, "end_point": {"row": 28, "column": 78}}, {"id": 78, "type": "parameter_declaration", "text": "range_list_t* r", "parent": 77, "children": [79, 80], "start_point": {"row": 28, "column": 38}, "end_point": {"row": 28, "column": 53}}, {"id": 79, "type": "type_identifier", "text": "range_list_t", "parent": 78, "children": [], "start_point": {"row": 28, "column": 38}, "end_point": {"row": 28, "column": 50}}, {"id": 80, "type": "pointer_declarator", "text": "* r", "parent": 78, "children": [81, 82], "start_point": {"row": 28, "column": 50}, "end_point": {"row": 28, "column": 53}}, {"id": 81, "type": "*", "text": "*", "parent": 80, "children": [], "start_point": {"row": 28, "column": 50}, "end_point": {"row": 28, "column": 51}}, {"id": 82, "type": "identifier", "text": "r", "parent": 80, "children": [], "start_point": {"row": 28, "column": 52}, "end_point": {"row": 28, "column": 53}}, {"id": 83, "type": "parameter_declaration", "text": "haddr_t addr", "parent": 77, "children": [84, 85], "start_point": {"row": 28, "column": 55}, "end_point": {"row": 28, "column": 67}}, {"id": 84, "type": "type_identifier", "text": "haddr_t", "parent": 83, "children": [], "start_point": {"row": 28, "column": 55}, "end_point": {"row": 28, "column": 62}}, {"id": 85, "type": "identifier", "text": "addr", "parent": 83, "children": [], "start_point": {"row": 28, "column": 63}, "end_point": {"row": 28, "column": 67}}, {"id": 86, "type": "parameter_declaration", "text": "int mask", "parent": 77, "children": [87, 88], "start_point": {"row": 28, "column": 69}, "end_point": {"row": 28, "column": 77}}, {"id": 87, "type": "primitive_type", "text": "int", "parent": 86, "children": [], "start_point": {"row": 28, "column": 69}, "end_point": {"row": 28, "column": 72}}, {"id": 88, "type": "identifier", "text": "mask", "parent": 86, "children": [], "start_point": {"row": 28, "column": 73}, "end_point": {"row": 28, "column": 77}}, {"id": 89, "type": "declaration", "text": "addr_range_t\tar\t= { .addr = addr, .mask = mask };", "parent": 71, "children": [90, 91], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 50}}, {"id": 90, "type": "type_identifier", "text": "addr_range_t", "parent": 89, "children": [], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 13}}, {"id": 91, "type": "init_declarator", "text": "ar\t= { .addr = addr, .mask = mask }", "parent": 89, "children": [92, 93, 94], "start_point": {"row": 29, "column": 14}, "end_point": {"row": 29, "column": 49}}, {"id": 92, "type": "identifier", "text": "ar", "parent": 91, "children": [], "start_point": {"row": 29, "column": 14}, "end_point": {"row": 29, "column": 16}}, {"id": 93, "type": "=", "text": "=", "parent": 91, "children": [], "start_point": {"row": 29, "column": 17}, "end_point": {"row": 29, "column": 18}}, {"id": 94, "type": "initializer_list", "text": "{ .addr = addr, .mask = mask }", "parent": 91, "children": [95, 100], "start_point": {"row": 29, "column": 19}, "end_point": {"row": 29, "column": 49}}, {"id": 95, "type": "initializer_pair", "text": ".addr = addr", "parent": 94, "children": [96, 98, 99], "start_point": {"row": 29, "column": 21}, "end_point": {"row": 29, "column": 33}}, {"id": 96, "type": "field_designator", "text": ".addr", "parent": 95, "children": [97], "start_point": {"row": 29, "column": 21}, "end_point": {"row": 29, "column": 26}}, {"id": 97, "type": "field_identifier", "text": "addr", "parent": 96, "children": [], "start_point": {"row": 29, "column": 22}, "end_point": {"row": 29, "column": 26}}, {"id": 98, "type": "=", "text": "=", "parent": 95, "children": [], "start_point": {"row": 29, "column": 27}, "end_point": {"row": 29, "column": 28}}, {"id": 99, "type": "identifier", "text": "addr", "parent": 95, "children": [], "start_point": {"row": 29, "column": 29}, "end_point": {"row": 29, "column": 33}}, {"id": 100, "type": "initializer_pair", "text": ".mask = mask", "parent": 94, "children": [101, 103, 104], "start_point": {"row": 29, "column": 35}, "end_point": {"row": 29, "column": 47}}, {"id": 101, "type": "field_designator", "text": ".mask", "parent": 100, "children": [102], "start_point": {"row": 29, "column": 35}, "end_point": {"row": 29, "column": 40}}, {"id": 102, "type": "field_identifier", "text": "mask", "parent": 101, "children": [], "start_point": {"row": 29, "column": 36}, "end_point": {"row": 29, "column": 40}}, {"id": 103, "type": "=", "text": "=", "parent": 100, "children": [], "start_point": {"row": 29, "column": 41}, "end_point": {"row": 29, "column": 42}}, {"id": 104, "type": "identifier", "text": "mask", "parent": 100, "children": [], "start_point": {"row": 29, "column": 43}, "end_point": {"row": 29, "column": 47}}, {"id": 105, "type": "assignment_expression", "text": "r->ranges[r->nranges++]\t= ar", "parent": 71, "children": [106, 115, 116], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 29}}, {"id": 106, "type": "subscript_expression", "text": "r->ranges[r->nranges++]", "parent": 105, "children": [107, 110], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 24}}, {"id": 107, "type": "field_expression", "text": "r->ranges", "parent": 106, "children": [108, 109], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 10}}, {"id": 108, "type": "identifier", "text": "r", "parent": 107, "children": [], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 2}}, {"id": 109, "type": "field_identifier", "text": "ranges", "parent": 107, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 10}}, {"id": 110, "type": "update_expression", "text": "r->nranges++", "parent": 106, "children": [111, 114], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 23}}, {"id": 111, "type": "field_expression", "text": "r->nranges", "parent": 110, "children": [112, 113], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 21}}, {"id": 112, "type": "identifier", "text": "r", "parent": 111, "children": [], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 12}}, {"id": 113, "type": "field_identifier", "text": "nranges", "parent": 111, "children": [], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 21}}, {"id": 114, "type": "++", "text": "++", "parent": 110, "children": [], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 23}}, {"id": 115, "type": "=", "text": "=", "parent": 105, "children": [], "start_point": {"row": 30, "column": 25}, "end_point": {"row": 30, "column": 26}}, {"id": 116, "type": "identifier", "text": "ar", "parent": 105, "children": [], "start_point": {"row": 30, "column": 27}, "end_point": {"row": 30, "column": 29}}, {"id": 117, "type": "declaration", "text": "int\trange_list_make (haddr_t start, haddr_t finish, range_list_t* r);", "parent": 0, "children": [118, 119], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 69}}, {"id": 118, "type": "primitive_type", "text": "int", "parent": 117, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 3}}, {"id": 119, "type": "function_declarator", "text": "range_list_make (haddr_t start, haddr_t finish, range_list_t* r)", "parent": 117, "children": [120, 121], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 68}}, {"id": 120, "type": "identifier", "text": "range_list_make", "parent": 119, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 19}}, {"id": 121, "type": "parameter_list", "text": "(haddr_t start, haddr_t finish, range_list_t* r)", "parent": 119, "children": [122, 125, 128], "start_point": {"row": 33, "column": 20}, "end_point": {"row": 33, "column": 68}}, {"id": 122, "type": "parameter_declaration", "text": "haddr_t start", "parent": 121, "children": [123, 124], "start_point": {"row": 33, "column": 21}, "end_point": {"row": 33, "column": 34}}, {"id": 123, "type": "type_identifier", "text": "haddr_t", "parent": 122, "children": [], "start_point": {"row": 33, "column": 21}, "end_point": {"row": 33, "column": 28}}, {"id": 124, "type": "identifier", "text": "start", "parent": 122, "children": [], "start_point": {"row": 33, "column": 29}, "end_point": {"row": 33, "column": 34}}, {"id": 125, "type": "parameter_declaration", "text": "haddr_t finish", "parent": 121, "children": [126, 127], "start_point": {"row": 33, "column": 36}, "end_point": {"row": 33, "column": 50}}, {"id": 126, "type": "type_identifier", "text": "haddr_t", "parent": 125, "children": [], "start_point": {"row": 33, "column": 36}, "end_point": {"row": 33, "column": 43}}, {"id": 127, "type": "identifier", "text": "finish", "parent": 125, "children": [], "start_point": {"row": 33, "column": 44}, "end_point": {"row": 33, "column": 50}}, {"id": 128, "type": "parameter_declaration", "text": "range_list_t* r", "parent": 121, "children": [129, 130], "start_point": {"row": 33, "column": 52}, "end_point": {"row": 33, "column": 67}}, {"id": 129, "type": "type_identifier", "text": "range_list_t", "parent": 128, "children": [], "start_point": {"row": 33, "column": 52}, "end_point": {"row": 33, "column": 64}}, {"id": 130, "type": "pointer_declarator", "text": "* r", "parent": 128, "children": [131, 132], "start_point": {"row": 33, "column": 64}, "end_point": {"row": 33, "column": 67}}, {"id": 131, "type": "*", "text": "*", "parent": 130, "children": [], "start_point": {"row": 33, "column": 64}, "end_point": {"row": 33, "column": 65}}, {"id": 132, "type": "identifier", "text": "r", "parent": 130, "children": [], "start_point": {"row": 33, "column": 66}, "end_point": {"row": 33, "column": 67}}, {"id": 133, "type": "#endif", "text": "# endif", "parent": 0, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 7}}]}, "node_categories": {"declarations": {"functions": [53, 57, 71, 75, 119], "variables": [21, 30, 33, 36, 45, 48, 60, 78, 83, 86, 89, 117, 122, 125, 128], "classes": [23, 24, 27, 28, 38, 39, 42, 43, 54, 72], "imports": [11, 12], "modules": [], "enums": [14, 15, 16, 17]}, "statements": {"expressions": [2, 66, 106, 107, 110, 111], "assignments": [65, 105], "loops": [], "conditionals": [0, 1, 6, 10, 18, 25, 26, 29, 31, 32, 35, 40, 41, 44, 47, 49, 51, 52, 58, 61, 64, 67, 68, 76, 79, 82, 84, 85, 88, 90, 92, 97, 99, 102, 104, 108, 109, 112, 113, 116, 120, 123, 124, 126, 127, 129, 132, 133], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [13, 20, 70], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": [96, 101]}}, "cross_language_map": {"function_declarations": [{"node_id": 53, "universal_type": "function", "name": "range_list_init", "text_snippet": "static\tinline\tvoid\trange_list_init (range_list_t* r) {\n\tr->nranges\t= 0;\n}"}, {"node_id": 57, "universal_type": "function", "name": "unknown", "text_snippet": "range_list_init (range_list_t* r)"}, {"node_id": 71, "universal_type": "function", "name": "range_list_append", "text_snippet": "static\tinline void\trange_list_append (range_list_t* r, haddr_t addr, int mask) {\n\taddr_range_t\tar\t= "}, {"node_id": 75, "universal_type": "function", "name": "mask)", "text_snippet": "range_list_append (range_list_t* r, haddr_t addr, int mask)"}, {"node_id": 119, "universal_type": "function", "name": "unknown", "text_snippet": "range_list_make (haddr_t start, haddr_t finish, range_list_t* r)"}], "class_declarations": [{"node_id": 23, "universal_type": "class", "name": "addr_range", "text_snippet": "struct\taddr_range"}, {"node_id": 24, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 27, "universal_type": "class", "name": "addr_range", "text_snippet": "struct\taddr_range {\n\thaddr_t\taddr;\n\tint\tmask;\n}"}, {"node_id": 28, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 38, "universal_type": "class", "name": "range_list", "text_snippet": "struct\trange_list"}, {"node_id": 39, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 42, "universal_type": "class", "name": "range_list", "text_snippet": "struct\trange_list\t{\n\tsize_t\t\tnranges;\n\taddr_range_t\tranges [MAXRANGES];\n}"}, {"node_id": 43, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 54, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 72, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}], "import_statements": [{"node_id": 11, "text": "# include\t\"netaddr.h\"\n"}, {"node_id": 12, "text": "# include"}]}, "original_source_code": "/*\n// @(#) addr_range.h\n// @(License-CC0)\n*/\n\n# if\t!defined( ADDR_RANGE_H)\n# define\tADDR_RANGE_H\n\n# include\t\"netaddr.h\"\n\nenum\t{ MAXRANGES\t= 63, };\n\ntypedef\tstruct\taddr_range addr_range_t;\nstruct\taddr_range {\n\thaddr_t\taddr;\n\tint\tmask;\n};\n\ntypedef\tstruct\trange_list\trange_list_t;\nstruct\trange_list\t{\n\tsize_t\t\tnranges;\n\taddr_range_t\tranges [MAXRANGES];\n};\n\nstatic\tinline\tvoid\trange_list_init (range_list_t* r) {\n\tr->nranges\t= 0;\n}\n\nstatic\tinline void\trange_list_append (range_list_t* r, haddr_t addr, int mask) {\n\taddr_range_t\tar\t= { .addr = addr, .mask = mask };\n\tr->ranges[r->nranges++]\t= ar;\n}\n\nint\trange_list_make (haddr_t start, haddr_t finish, range_list_t* r);\n\n# endif\n"}
80,207
c
#include <stdio.h> typedef struct { int x; int y; void * z; } st_t; st_t * st_alloc(int x, int y){ st_t * t = (st_t *) malloc(1 * sizeof(st_t)); __ESBMC_assume(t); if ( x > 0 && y > 0){ t -> x = x; t -> y = y; t -> z = NULL; } else { t -> x = 0; t -> y = 0; t -> z = (void *) malloc (100 * sizeof(int)); __ESBMC_assume(t->z); } return t; } int st_compact(st_t * st1, st_t * st2){ if (st1 -> z > 0 ){ if (st2 -> z > 0 ){ assert(st1 -> x > 0); assert(st2 -> y > 0); } else { st2 -> x = st1 -> x; st2 -> y = -1; st1 -> z = st2 -> z; st2 -> z = NULL; } } return st1 -> x; } int main(){ int a, b; st_t *st1, *st2; // ASSUME(a> 0); // ASSUME(b > 0); __ESBMC_assume(a>0); __ESBMC_assume(b>0); st1 = st_alloc(a,b); st2 = st_alloc(-b,-a); st_compact(st1,st2); return 1; }
17.22
49
(translation_unit) "#include <stdio.h>\n\ntypedef struct {\n\n int x;\n int y;\n void * z;\n\n} st_t;\n\nst_t * st_alloc(int x, int y){\n st_t * t = (st_t *) malloc(1 * sizeof(st_t));\n __ESBMC_assume(t);\n if ( x > 0 && y > 0){\n t -> x = x;\n t -> y = y;\n t -> z = NULL;\n } else {\n\n t -> x = 0;\n t -> y = 0;\n t -> z = (void *) malloc (100 * sizeof(int));\n __ESBMC_assume(t->z);\n }\n return t;\n}\n\nint st_compact(st_t * st1, st_t * st2){\n if (st1 -> z > 0 ){\n if (st2 -> z > 0 ){\n assert(st1 -> x > 0);\n assert(st2 -> y > 0);\n } else {\n st2 -> x = st1 -> x;\n st2 -> y = -1;\n st1 -> z = st2 -> z;\n st2 -> z = NULL;\n }\n }\n\n return st1 -> x;\n\n}\n\nint main(){\n int a, b;\n st_t *st1, *st2;\n// ASSUME(a> 0);\n// ASSUME(b > 0);\n __ESBMC_assume(a>0);\n __ESBMC_assume(b>0);\n \n st1 = st_alloc(a,b); \n st2 = st_alloc(-b,-a); \n \n st_compact(st1,st2);\n return 1;\n\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (type_definition) "typedef struct {\n\n int x;\n int y;\n void * z;\n\n} st_t;" (typedef) "typedef" (struct_specifier) "struct {\n\n int x;\n int y;\n void * z;\n\n}" (struct) "struct" (field_declaration_list) "{\n\n int x;\n int y;\n void * z;\n\n}" ({) "{" (field_declaration) "int x;" (primitive_type) "int" (field_identifier) "x" (;) ";" (field_declaration) "int y;" (primitive_type) "int" (field_identifier) "y" (;) ";" (field_declaration) "void * z;" (primitive_type) "void" (pointer_declarator) "* z" (*) "*" (field_identifier) "z" (;) ";" (}) "}" (type_identifier) "st_t" (;) ";" (function_definition) "st_t * st_alloc(int x, int y){\n st_t * t = (st_t *) malloc(1 * sizeof(st_t));\n __ESBMC_assume(t);\n if ( x > 0 && y > 0){\n t -> x = x;\n t -> y = y;\n t -> z = NULL;\n } else {\n\n t -> x = 0;\n t -> y = 0;\n t -> z = (void *) malloc (100 * sizeof(int));\n __ESBMC_assume(t->z);\n }\n return t;\n}" (type_identifier) "st_t" (pointer_declarator) "* st_alloc(int x, int y)" (*) "*" (function_declarator) "st_alloc(int x, int y)" (identifier) "st_alloc" (parameter_list) "(int x, int y)" (() "(" (parameter_declaration) "int x" (primitive_type) "int" (identifier) "x" (,) "," (parameter_declaration) "int y" (primitive_type) "int" (identifier) "y" ()) ")" (compound_statement) "{\n st_t * t = (st_t *) malloc(1 * sizeof(st_t));\n __ESBMC_assume(t);\n if ( x > 0 && y > 0){\n t -> x = x;\n t -> y = y;\n t -> z = NULL;\n } else {\n\n t -> x = 0;\n t -> y = 0;\n t -> z = (void *) malloc (100 * sizeof(int));\n __ESBMC_assume(t->z);\n }\n return t;\n}" ({) "{" (declaration) "st_t * t = (st_t *) malloc(1 * sizeof(st_t));" (type_identifier) "st_t" (init_declarator) "* t = (st_t *) malloc(1 * sizeof(st_t))" (pointer_declarator) "* t" (*) "*" (identifier) "t" (=) "=" (cast_expression) "(st_t *) malloc(1 * sizeof(st_t))" (() "(" (type_descriptor) "st_t *" (type_identifier) "st_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "malloc(1 * sizeof(st_t))" (identifier) "malloc" (argument_list) "(1 * sizeof(st_t))" (() "(" (binary_expression) "1 * sizeof(st_t)" (number_literal) "1" (*) "*" (sizeof_expression) "sizeof(st_t)" (sizeof) "sizeof" (parenthesized_expression) "(st_t)" (() "(" (identifier) "st_t" ()) ")" ()) ")" (;) ";" (expression_statement) "__ESBMC_assume(t);" (call_expression) "__ESBMC_assume(t)" (identifier) "__ESBMC_assume" (argument_list) "(t)" (() "(" (identifier) "t" ()) ")" (;) ";" (if_statement) "if ( x > 0 && y > 0){\n t -> x = x;\n t -> y = y;\n t -> z = NULL;\n } else {\n\n t -> x = 0;\n t -> y = 0;\n t -> z = (void *) malloc (100 * sizeof(int));\n __ESBMC_assume(t->z);\n }" (if) "if" (parenthesized_expression) "( x > 0 && y > 0)" (() "(" (binary_expression) "x > 0 && y > 0" (binary_expression) "x > 0" (identifier) "x" (>) ">" (number_literal) "0" (&&) "&&" (binary_expression) "y > 0" (identifier) "y" (>) ">" (number_literal) "0" ()) ")" (compound_statement) "{\n t -> x = x;\n t -> y = y;\n t -> z = NULL;\n }" ({) "{" (expression_statement) "t -> x = x;" (assignment_expression) "t -> x = x" (field_expression) "t -> x" (identifier) "t" (->) "->" (field_identifier) "x" (=) "=" (identifier) "x" (;) ";" (expression_statement) "t -> y = y;" (assignment_expression) "t -> y = y" (field_expression) "t -> y" (identifier) "t" (->) "->" (field_identifier) "y" (=) "=" (identifier) "y" (;) ";" (expression_statement) "t -> z = NULL;" (assignment_expression) "t -> z = NULL" (field_expression) "t -> z" (identifier) "t" (->) "->" (field_identifier) "z" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (else_clause) "else {\n\n t -> x = 0;\n t -> y = 0;\n t -> z = (void *) malloc (100 * sizeof(int));\n __ESBMC_assume(t->z);\n }" (else) "else" (compound_statement) "{\n\n t -> x = 0;\n t -> y = 0;\n t -> z = (void *) malloc (100 * sizeof(int));\n __ESBMC_assume(t->z);\n }" ({) "{" (expression_statement) "t -> x = 0;" (assignment_expression) "t -> x = 0" (field_expression) "t -> x" (identifier) "t" (->) "->" (field_identifier) "x" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "t -> y = 0;" (assignment_expression) "t -> y = 0" (field_expression) "t -> y" (identifier) "t" (->) "->" (field_identifier) "y" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "t -> z = (void *) malloc (100 * sizeof(int));" (assignment_expression) "t -> z = (void *) malloc (100 * sizeof(int))" (field_expression) "t -> z" (identifier) "t" (->) "->" (field_identifier) "z" (=) "=" (cast_expression) "(void *) malloc (100 * sizeof(int))" (() "(" (type_descriptor) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "malloc (100 * sizeof(int))" (identifier) "malloc" (argument_list) "(100 * sizeof(int))" (() "(" (binary_expression) "100 * sizeof(int)" (number_literal) "100" (*) "*" (sizeof_expression) "sizeof(int)" (sizeof) "sizeof" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" ()) ")" (;) ";" (expression_statement) "__ESBMC_assume(t->z);" (call_expression) "__ESBMC_assume(t->z)" (identifier) "__ESBMC_assume" (argument_list) "(t->z)" (() "(" (field_expression) "t->z" (identifier) "t" (->) "->" (field_identifier) "z" ()) ")" (;) ";" (}) "}" (return_statement) "return t;" (return) "return" (identifier) "t" (;) ";" (}) "}" (function_definition) "int st_compact(st_t * st1, st_t * st2){\n if (st1 -> z > 0 ){\n if (st2 -> z > 0 ){\n assert(st1 -> x > 0);\n assert(st2 -> y > 0);\n } else {\n st2 -> x = st1 -> x;\n st2 -> y = -1;\n st1 -> z = st2 -> z;\n st2 -> z = NULL;\n }\n }\n\n return st1 -> x;\n\n}" (primitive_type) "int" (function_declarator) "st_compact(st_t * st1, st_t * st2)" (identifier) "st_compact" (parameter_list) "(st_t * st1, st_t * st2)" (() "(" (parameter_declaration) "st_t * st1" (type_identifier) "st_t" (pointer_declarator) "* st1" (*) "*" (identifier) "st1" (,) "," (parameter_declaration) "st_t * st2" (type_identifier) "st_t" (pointer_declarator) "* st2" (*) "*" (identifier) "st2" ()) ")" (compound_statement) "{\n if (st1 -> z > 0 ){\n if (st2 -> z > 0 ){\n assert(st1 -> x > 0);\n assert(st2 -> y > 0);\n } else {\n st2 -> x = st1 -> x;\n st2 -> y = -1;\n st1 -> z = st2 -> z;\n st2 -> z = NULL;\n }\n }\n\n return st1 -> x;\n\n}" ({) "{" (if_statement) "if (st1 -> z > 0 ){\n if (st2 -> z > 0 ){\n assert(st1 -> x > 0);\n assert(st2 -> y > 0);\n } else {\n st2 -> x = st1 -> x;\n st2 -> y = -1;\n st1 -> z = st2 -> z;\n st2 -> z = NULL;\n }\n }" (if) "if" (parenthesized_expression) "(st1 -> z > 0 )" (() "(" (binary_expression) "st1 -> z > 0" (field_expression) "st1 -> z" (identifier) "st1" (->) "->" (field_identifier) "z" (>) ">" (number_literal) "0" ()) ")" (compound_statement) "{\n if (st2 -> z > 0 ){\n assert(st1 -> x > 0);\n assert(st2 -> y > 0);\n } else {\n st2 -> x = st1 -> x;\n st2 -> y = -1;\n st1 -> z = st2 -> z;\n st2 -> z = NULL;\n }\n }" ({) "{" (if_statement) "if (st2 -> z > 0 ){\n assert(st1 -> x > 0);\n assert(st2 -> y > 0);\n } else {\n st2 -> x = st1 -> x;\n st2 -> y = -1;\n st1 -> z = st2 -> z;\n st2 -> z = NULL;\n }" (if) "if" (parenthesized_expression) "(st2 -> z > 0 )" (() "(" (binary_expression) "st2 -> z > 0" (field_expression) "st2 -> z" (identifier) "st2" (->) "->" (field_identifier) "z" (>) ">" (number_literal) "0" ()) ")" (compound_statement) "{\n assert(st1 -> x > 0);\n assert(st2 -> y > 0);\n }" ({) "{" (expression_statement) "assert(st1 -> x > 0);" (call_expression) "assert(st1 -> x > 0)" (identifier) "assert" (argument_list) "(st1 -> x > 0)" (() "(" (binary_expression) "st1 -> x > 0" (field_expression) "st1 -> x" (identifier) "st1" (->) "->" (field_identifier) "x" (>) ">" (number_literal) "0" ()) ")" (;) ";" (expression_statement) "assert(st2 -> y > 0);" (call_expression) "assert(st2 -> y > 0)" (identifier) "assert" (argument_list) "(st2 -> y > 0)" (() "(" (binary_expression) "st2 -> y > 0" (field_expression) "st2 -> y" (identifier) "st2" (->) "->" (field_identifier) "y" (>) ">" (number_literal) "0" ()) ")" (;) ";" (}) "}" (else_clause) "else {\n st2 -> x = st1 -> x;\n st2 -> y = -1;\n st1 -> z = st2 -> z;\n st2 -> z = NULL;\n }" (else) "else" (compound_statement) "{\n st2 -> x = st1 -> x;\n st2 -> y = -1;\n st1 -> z = st2 -> z;\n st2 -> z = NULL;\n }" ({) "{" (expression_statement) "st2 -> x = st1 -> x;" (assignment_expression) "st2 -> x = st1 -> x" (field_expression) "st2 -> x" (identifier) "st2" (->) "->" (field_identifier) "x" (=) "=" (field_expression) "st1 -> x" (identifier) "st1" (->) "->" (field_identifier) "x" (;) ";" (expression_statement) "st2 -> y = -1;" (assignment_expression) "st2 -> y = -1" (field_expression) "st2 -> y" (identifier) "st2" (->) "->" (field_identifier) "y" (=) "=" (number_literal) "-1" (;) ";" (expression_statement) "st1 -> z = st2 -> z;" (assignment_expression) "st1 -> z = st2 -> z" (field_expression) "st1 -> z" (identifier) "st1" (->) "->" (field_identifier) "z" (=) "=" (field_expression) "st2 -> z" (identifier) "st2" (->) "->" (field_identifier) "z" (;) ";" (expression_statement) "st2 -> z = NULL;" (assignment_expression) "st2 -> z = NULL" (field_expression) "st2 -> z" (identifier) "st2" (->) "->" (field_identifier) "z" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (}) "}" (return_statement) "return st1 -> x;" (return) "return" (field_expression) "st1 -> x" (identifier) "st1" (->) "->" (field_identifier) "x" (;) ";" (}) "}" (function_definition) "int main(){\n int a, b;\n st_t *st1, *st2;\n// ASSUME(a> 0);\n// ASSUME(b > 0);\n __ESBMC_assume(a>0);\n __ESBMC_assume(b>0);\n \n st1 = st_alloc(a,b); \n st2 = st_alloc(-b,-a); \n \n st_compact(st1,st2);\n return 1;\n\n}" (primitive_type) "int" (function_declarator) "main()" (identifier) "main" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n int a, b;\n st_t *st1, *st2;\n// ASSUME(a> 0);\n// ASSUME(b > 0);\n __ESBMC_assume(a>0);\n __ESBMC_assume(b>0);\n \n st1 = st_alloc(a,b); \n st2 = st_alloc(-b,-a); \n \n st_compact(st1,st2);\n return 1;\n\n}" ({) "{" (declaration) "int a, b;" (primitive_type) "int" (identifier) "a" (,) "," (identifier) "b" (;) ";" (declaration) "st_t *st1, *st2;" (type_identifier) "st_t" (pointer_declarator) "*st1" (*) "*" (identifier) "st1" (,) "," (pointer_declarator) "*st2" (*) "*" (identifier) "st2" (;) ";" (comment) "// ASSUME(a> 0);" (comment) "// ASSUME(b > 0);" (expression_statement) "__ESBMC_assume(a>0);" (call_expression) "__ESBMC_assume(a>0)" (identifier) "__ESBMC_assume" (argument_list) "(a>0)" (() "(" (binary_expression) "a>0" (identifier) "a" (>) ">" (number_literal) "0" ()) ")" (;) ";" (expression_statement) "__ESBMC_assume(b>0);" (call_expression) "__ESBMC_assume(b>0)" (identifier) "__ESBMC_assume" (argument_list) "(b>0)" (() "(" (binary_expression) "b>0" (identifier) "b" (>) ">" (number_literal) "0" ()) ")" (;) ";" (expression_statement) "st1 = st_alloc(a,b);" (assignment_expression) "st1 = st_alloc(a,b)" (identifier) "st1" (=) "=" (call_expression) "st_alloc(a,b)" (identifier) "st_alloc" (argument_list) "(a,b)" (() "(" (identifier) "a" (,) "," (identifier) "b" ()) ")" (;) ";" (expression_statement) "st2 = st_alloc(-b,-a);" (assignment_expression) "st2 = st_alloc(-b,-a)" (identifier) "st2" (=) "=" (call_expression) "st_alloc(-b,-a)" (identifier) "st_alloc" (argument_list) "(-b,-a)" (() "(" (unary_expression) "-b" (-) "-" (identifier) "b" (,) "," (unary_expression) "-a" (-) "-" (identifier) "a" ()) ")" (;) ";" (expression_statement) "st_compact(st1,st2);" (call_expression) "st_compact(st1,st2)" (identifier) "st_compact" (argument_list) "(st1,st2)" (() "(" (identifier) "st1" (,) "," (identifier) "st2" ()) ")" (;) ";" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}"
424
0
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 17.22, "nodes": 269, "errors": 0, "source_hash": "a082555fea199a43f5edc554bec84f9afccbdc4f83e451d6226de96db7eba13c", "categorized_nodes": 190}, "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": "type_definition", "text": "typedef struct {\n\n int x;\n int y;\n void * z;\n\n} st_t;", "parent": null, "children": [4, 5, 18], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 4, "type": "typedef", "text": "typedef", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 7}}, {"id": 5, "type": "struct_specifier", "text": "struct {\n\n int x;\n int y;\n void * z;\n\n}", "parent": 3, "children": [6], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 8, "column": 1}}, {"id": 6, "type": "struct", "text": "struct", "parent": 5, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 14}}, {"id": 7, "type": "field_declaration", "text": "int x;", "parent": 5, "children": [8, 9], "start_point": {"row": 4, "column": 2}, "end_point": {"row": 4, "column": 8}}, {"id": 8, "type": "primitive_type", "text": "int", "parent": 7, "children": [], "start_point": {"row": 4, "column": 2}, "end_point": {"row": 4, "column": 5}}, {"id": 9, "type": "field_identifier", "text": "x", "parent": 7, "children": [], "start_point": {"row": 4, "column": 6}, "end_point": {"row": 4, "column": 7}}, {"id": 10, "type": "field_declaration", "text": "int y;", "parent": 5, "children": [11, 12], "start_point": {"row": 5, "column": 2}, "end_point": {"row": 5, "column": 8}}, {"id": 11, "type": "primitive_type", "text": "int", "parent": 10, "children": [], "start_point": {"row": 5, "column": 2}, "end_point": {"row": 5, "column": 5}}, {"id": 12, "type": "field_identifier", "text": "y", "parent": 10, "children": [], "start_point": {"row": 5, "column": 6}, "end_point": {"row": 5, "column": 7}}, {"id": 13, "type": "field_declaration", "text": "void * z;", "parent": 5, "children": [14, 15], "start_point": {"row": 6, "column": 2}, "end_point": {"row": 6, "column": 11}}, {"id": 14, "type": "primitive_type", "text": "void", "parent": 13, "children": [], "start_point": {"row": 6, "column": 2}, "end_point": {"row": 6, "column": 6}}, {"id": 15, "type": "pointer_declarator", "text": "* z", "parent": 13, "children": [16, 17], "start_point": {"row": 6, "column": 7}, "end_point": {"row": 6, "column": 10}}, {"id": 16, "type": "*", "text": "*", "parent": 15, "children": [], "start_point": {"row": 6, "column": 7}, "end_point": {"row": 6, "column": 8}}, {"id": 17, "type": "field_identifier", "text": "z", "parent": 15, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 10}}, {"id": 18, "type": "type_identifier", "text": "st_t", "parent": 3, "children": [], "start_point": {"row": 8, "column": 2}, "end_point": {"row": 8, "column": 6}}, {"id": 19, "type": "function_definition", "text": "st_t * st_alloc(int x, int y){\n st_t * t = (st_t *) malloc(1 * sizeof(st_t));\n __ESBMC_assume(t);\n if ( x > 0 && y > 0){\n t -> x = x;\n t -> y = y;\n t -> z = NULL;\n } else {\n\n t -> x = 0;\n t -> y = 0;\n t -> z = (void *) malloc (100 * sizeof(int));\n __ESBMC_assume(t->z);\n }\n return t;\n}", "parent": null, "children": [20, 21], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 20, "type": "type_identifier", "text": "st_t", "parent": 19, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 4}}, {"id": 21, "type": "pointer_declarator", "text": "* st_alloc(int x, int y)", "parent": 19, "children": [22, 23], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 29}}, {"id": 22, "type": "*", "text": "*", "parent": 21, "children": [], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 6}}, {"id": 23, "type": "function_declarator", "text": "st_alloc(int x, int y)", "parent": 21, "children": [24, 25], "start_point": {"row": 10, "column": 7}, "end_point": {"row": 10, "column": 29}}, {"id": 24, "type": "identifier", "text": "st_alloc", "parent": 23, "children": [], "start_point": {"row": 10, "column": 7}, "end_point": {"row": 10, "column": 15}}, {"id": 25, "type": "parameter_list", "text": "(int x, int y)", "parent": 23, "children": [26, 29], "start_point": {"row": 10, "column": 15}, "end_point": {"row": 10, "column": 29}}, {"id": 26, "type": "parameter_declaration", "text": "int x", "parent": 25, "children": [27, 28], "start_point": {"row": 10, "column": 16}, "end_point": {"row": 10, "column": 21}}, {"id": 27, "type": "primitive_type", "text": "int", "parent": 26, "children": [], "start_point": {"row": 10, "column": 16}, "end_point": {"row": 10, "column": 19}}, {"id": 28, "type": "identifier", "text": "x", "parent": 26, "children": [], "start_point": {"row": 10, "column": 20}, "end_point": {"row": 10, "column": 21}}, {"id": 29, "type": "parameter_declaration", "text": "int y", "parent": 25, "children": [30, 31], "start_point": {"row": 10, "column": 23}, "end_point": {"row": 10, "column": 28}}, {"id": 30, "type": "primitive_type", "text": "int", "parent": 29, "children": [], "start_point": {"row": 10, "column": 23}, "end_point": {"row": 10, "column": 26}}, {"id": 31, "type": "identifier", "text": "y", "parent": 29, "children": [], "start_point": {"row": 10, "column": 27}, "end_point": {"row": 10, "column": 28}}, {"id": 32, "type": "declaration", "text": "st_t * t = (st_t *) malloc(1 * sizeof(st_t));", "parent": 19, "children": [33, 34], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 11, "column": 47}}, {"id": 33, "type": "type_identifier", "text": "st_t", "parent": 32, "children": [], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 11, "column": 6}}, {"id": 34, "type": "init_declarator", "text": "* t = (st_t *) malloc(1 * sizeof(st_t))", "parent": 32, "children": [35, 38, 39], "start_point": {"row": 11, "column": 7}, "end_point": {"row": 11, "column": 46}}, {"id": 35, "type": "pointer_declarator", "text": "* t", "parent": 34, "children": [36, 37], "start_point": {"row": 11, "column": 7}, "end_point": {"row": 11, "column": 10}}, {"id": 36, "type": "*", "text": "*", "parent": 35, "children": [], "start_point": {"row": 11, "column": 7}, "end_point": {"row": 11, "column": 8}}, {"id": 37, "type": "identifier", "text": "t", "parent": 35, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 10}}, {"id": 38, "type": "=", "text": "=", "parent": 34, "children": [], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 12}}, {"id": 39, "type": "cast_expression", "text": "(st_t *) malloc(1 * sizeof(st_t))", "parent": 34, "children": [40, 44], "start_point": {"row": 11, "column": 13}, "end_point": {"row": 11, "column": 46}}, {"id": 40, "type": "type_descriptor", "text": "st_t *", "parent": 39, "children": [41, 42], "start_point": {"row": 11, "column": 14}, "end_point": {"row": 11, "column": 20}}, {"id": 41, "type": "type_identifier", "text": "st_t", "parent": 40, "children": [], "start_point": {"row": 11, "column": 14}, "end_point": {"row": 11, "column": 18}}, {"id": 42, "type": "abstract_pointer_declarator", "text": "*", "parent": 40, "children": [43], "start_point": {"row": 11, "column": 19}, "end_point": {"row": 11, "column": 20}}, {"id": 43, "type": "*", "text": "*", "parent": 42, "children": [], "start_point": {"row": 11, "column": 19}, "end_point": {"row": 11, "column": 20}}, {"id": 44, "type": "call_expression", "text": "malloc(1 * sizeof(st_t))", "parent": 39, "children": [45, 46], "start_point": {"row": 11, "column": 22}, "end_point": {"row": 11, "column": 46}}, {"id": 45, "type": "identifier", "text": "malloc", "parent": 44, "children": [], "start_point": {"row": 11, "column": 22}, "end_point": {"row": 11, "column": 28}}, {"id": 46, "type": "argument_list", "text": "(1 * sizeof(st_t))", "parent": 44, "children": [47], "start_point": {"row": 11, "column": 28}, "end_point": {"row": 11, "column": 46}}, {"id": 47, "type": "binary_expression", "text": "1 * sizeof(st_t)", "parent": 46, "children": [48, 49, 50], "start_point": {"row": 11, "column": 29}, "end_point": {"row": 11, "column": 45}}, {"id": 48, "type": "number_literal", "text": "1", "parent": 47, "children": [], "start_point": {"row": 11, "column": 29}, "end_point": {"row": 11, "column": 30}}, {"id": 49, "type": "*", "text": "*", "parent": 47, "children": [], "start_point": {"row": 11, "column": 31}, "end_point": {"row": 11, "column": 32}}, {"id": 50, "type": "sizeof_expression", "text": "sizeof(st_t)", "parent": 47, "children": [51], "start_point": {"row": 11, "column": 33}, "end_point": {"row": 11, "column": 45}}, {"id": 51, "type": "parenthesized_expression", "text": "(st_t)", "parent": 50, "children": [52], "start_point": {"row": 11, "column": 39}, "end_point": {"row": 11, "column": 45}}, {"id": 52, "type": "identifier", "text": "st_t", "parent": 51, "children": [], "start_point": {"row": 11, "column": 40}, "end_point": {"row": 11, "column": 44}}, {"id": 53, "type": "call_expression", "text": "__ESBMC_assume(t)", "parent": 19, "children": [54, 55], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 19}}, {"id": 54, "type": "identifier", "text": "__ESBMC_assume", "parent": 53, "children": [], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 16}}, {"id": 55, "type": "argument_list", "text": "(t)", "parent": 53, "children": [56], "start_point": {"row": 12, "column": 16}, "end_point": {"row": 12, "column": 19}}, {"id": 56, "type": "identifier", "text": "t", "parent": 55, "children": [], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 12, "column": 18}}, {"id": 57, "type": "if_statement", "text": "if ( x > 0 && y > 0){\n t -> x = x;\n t -> y = y;\n t -> z = NULL;\n } else {\n\n t -> x = 0;\n t -> y = 0;\n t -> z = (void *) malloc (100 * sizeof(int));\n __ESBMC_assume(t->z);\n }", "parent": 19, "children": [58, 88], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 23, "column": 3}}, {"id": 58, "type": "parenthesized_expression", "text": "( x > 0 && y > 0)", "parent": 57, "children": [59], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 24}}, {"id": 59, "type": "binary_expression", "text": "x > 0 && y > 0", "parent": 58, "children": [60, 64, 65], "start_point": {"row": 13, "column": 7}, "end_point": {"row": 13, "column": 23}}, {"id": 60, "type": "binary_expression", "text": "x > 0", "parent": 59, "children": [61, 62, 63], "start_point": {"row": 13, "column": 7}, "end_point": {"row": 13, "column": 13}}, {"id": 61, "type": "identifier", "text": "x", "parent": 60, "children": [], "start_point": {"row": 13, "column": 7}, "end_point": {"row": 13, "column": 8}}, {"id": 62, "type": ">", "text": ">", "parent": 60, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 10}}, {"id": 63, "type": "number_literal", "text": "0", "parent": 60, "children": [], "start_point": {"row": 13, "column": 12}, "end_point": {"row": 13, "column": 13}}, {"id": 64, "type": "&&", "text": "&&", "parent": 59, "children": [], "start_point": {"row": 13, "column": 14}, "end_point": {"row": 13, "column": 16}}, {"id": 65, "type": "binary_expression", "text": "y > 0", "parent": 59, "children": [66, 67, 68], "start_point": {"row": 13, "column": 17}, "end_point": {"row": 13, "column": 23}}, {"id": 66, "type": "identifier", "text": "y", "parent": 65, "children": [], "start_point": {"row": 13, "column": 17}, "end_point": {"row": 13, "column": 18}}, {"id": 67, "type": ">", "text": ">", "parent": 65, "children": [], "start_point": {"row": 13, "column": 19}, "end_point": {"row": 13, "column": 20}}, {"id": 68, "type": "number_literal", "text": "0", "parent": 65, "children": [], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 23}}, {"id": 69, "type": "assignment_expression", "text": "t -> x = x", "parent": 57, "children": [70, 73, 74], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 14}}, {"id": 70, "type": "field_expression", "text": "t -> x", "parent": 69, "children": [71, 72], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 10}}, {"id": 71, "type": "identifier", "text": "t", "parent": 70, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 5}}, {"id": 72, "type": "field_identifier", "text": "x", "parent": 70, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 10}}, {"id": 73, "type": "=", "text": "=", "parent": 69, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 12}}, {"id": 74, "type": "identifier", "text": "x", "parent": 69, "children": [], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 14}}, {"id": 75, "type": "assignment_expression", "text": "t -> y = y", "parent": 57, "children": [76, 79, 80], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 14}}, {"id": 76, "type": "field_expression", "text": "t -> y", "parent": 75, "children": [77, 78], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 10}}, {"id": 77, "type": "identifier", "text": "t", "parent": 76, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 5}}, {"id": 78, "type": "field_identifier", "text": "y", "parent": 76, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 10}}, {"id": 79, "type": "=", "text": "=", "parent": 75, "children": [], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 12}}, {"id": 80, "type": "identifier", "text": "y", "parent": 75, "children": [], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 14}}, {"id": 81, "type": "assignment_expression", "text": "t -> z = NULL", "parent": 57, "children": [82, 85, 86], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 17}}, {"id": 82, "type": "field_expression", "text": "t -> z", "parent": 81, "children": [83, 84], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 10}}, {"id": 83, "type": "identifier", "text": "t", "parent": 82, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 5}}, {"id": 84, "type": "field_identifier", "text": "z", "parent": 82, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 10}}, {"id": 85, "type": "=", "text": "=", "parent": 81, "children": [], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 12}}, {"id": 86, "type": "null", "text": "NULL", "parent": 81, "children": [87], "start_point": {"row": 16, "column": 13}, "end_point": {"row": 16, "column": 17}}, {"id": 87, "type": "NULL", "text": "NULL", "parent": 86, "children": [], "start_point": {"row": 16, "column": 13}, "end_point": {"row": 16, "column": 17}}, {"id": 88, "type": "else_clause", "text": "else {\n\n t -> x = 0;\n t -> y = 0;\n t -> z = (void *) malloc (100 * sizeof(int));\n __ESBMC_assume(t->z);\n }", "parent": 57, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 23, "column": 3}}, {"id": 89, "type": "assignment_expression", "text": "t -> x = 0", "parent": 88, "children": [90, 93, 94], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 14}}, {"id": 90, "type": "field_expression", "text": "t -> x", "parent": 89, "children": [91, 92], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 10}}, {"id": 91, "type": "identifier", "text": "t", "parent": 90, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 5}}, {"id": 92, "type": "field_identifier", "text": "x", "parent": 90, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 10}}, {"id": 93, "type": "=", "text": "=", "parent": 89, "children": [], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 12}}, {"id": 94, "type": "number_literal", "text": "0", "parent": 89, "children": [], "start_point": {"row": 19, "column": 13}, "end_point": {"row": 19, "column": 14}}, {"id": 95, "type": "assignment_expression", "text": "t -> y = 0", "parent": 88, "children": [96, 99, 100], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 14}}, {"id": 96, "type": "field_expression", "text": "t -> y", "parent": 95, "children": [97, 98], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 10}}, {"id": 97, "type": "identifier", "text": "t", "parent": 96, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 5}}, {"id": 98, "type": "field_identifier", "text": "y", "parent": 96, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 10}}, {"id": 99, "type": "=", "text": "=", "parent": 95, "children": [], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 12}}, {"id": 100, "type": "number_literal", "text": "0", "parent": 95, "children": [], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 14}}, {"id": 101, "type": "assignment_expression", "text": "t -> z = (void *) malloc (100 * sizeof(int))", "parent": 88, "children": [102, 105, 106], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 48}}, {"id": 102, "type": "field_expression", "text": "t -> z", "parent": 101, "children": [103, 104], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 10}}, {"id": 103, "type": "identifier", "text": "t", "parent": 102, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 5}}, {"id": 104, "type": "field_identifier", "text": "z", "parent": 102, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 10}}, {"id": 105, "type": "=", "text": "=", "parent": 101, "children": [], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 12}}, {"id": 106, "type": "cast_expression", "text": "(void *) malloc (100 * sizeof(int))", "parent": 101, "children": [107, 111], "start_point": {"row": 21, "column": 13}, "end_point": {"row": 21, "column": 48}}, {"id": 107, "type": "type_descriptor", "text": "void *", "parent": 106, "children": [108, 109], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 20}}, {"id": 108, "type": "primitive_type", "text": "void", "parent": 107, "children": [], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 18}}, {"id": 109, "type": "abstract_pointer_declarator", "text": "*", "parent": 107, "children": [110], "start_point": {"row": 21, "column": 19}, "end_point": {"row": 21, "column": 20}}, {"id": 110, "type": "*", "text": "*", "parent": 109, "children": [], "start_point": {"row": 21, "column": 19}, "end_point": {"row": 21, "column": 20}}, {"id": 111, "type": "call_expression", "text": "malloc (100 * sizeof(int))", "parent": 106, "children": [112, 113], "start_point": {"row": 21, "column": 22}, "end_point": {"row": 21, "column": 48}}, {"id": 112, "type": "identifier", "text": "malloc", "parent": 111, "children": [], "start_point": {"row": 21, "column": 22}, "end_point": {"row": 21, "column": 28}}, {"id": 113, "type": "argument_list", "text": "(100 * sizeof(int))", "parent": 111, "children": [114], "start_point": {"row": 21, "column": 29}, "end_point": {"row": 21, "column": 48}}, {"id": 114, "type": "binary_expression", "text": "100 * sizeof(int)", "parent": 113, "children": [115, 116, 117], "start_point": {"row": 21, "column": 30}, "end_point": {"row": 21, "column": 47}}, {"id": 115, "type": "number_literal", "text": "100", "parent": 114, "children": [], "start_point": {"row": 21, "column": 30}, "end_point": {"row": 21, "column": 33}}, {"id": 116, "type": "*", "text": "*", "parent": 114, "children": [], "start_point": {"row": 21, "column": 34}, "end_point": {"row": 21, "column": 35}}, {"id": 117, "type": "sizeof_expression", "text": "sizeof(int)", "parent": 114, "children": [118], "start_point": {"row": 21, "column": 36}, "end_point": {"row": 21, "column": 47}}, {"id": 118, "type": "type_descriptor", "text": "int", "parent": 117, "children": [119], "start_point": {"row": 21, "column": 43}, "end_point": {"row": 21, "column": 46}}, {"id": 119, "type": "primitive_type", "text": "int", "parent": 118, "children": [], "start_point": {"row": 21, "column": 43}, "end_point": {"row": 21, "column": 46}}, {"id": 120, "type": "call_expression", "text": "__ESBMC_assume(t->z)", "parent": 88, "children": [121, 122], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 24}}, {"id": 121, "type": "identifier", "text": "__ESBMC_assume", "parent": 120, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 18}}, {"id": 122, "type": "argument_list", "text": "(t->z)", "parent": 120, "children": [123], "start_point": {"row": 22, "column": 18}, "end_point": {"row": 22, "column": 24}}, {"id": 123, "type": "field_expression", "text": "t->z", "parent": 122, "children": [124, 125], "start_point": {"row": 22, "column": 19}, "end_point": {"row": 22, "column": 23}}, {"id": 124, "type": "identifier", "text": "t", "parent": 123, "children": [], "start_point": {"row": 22, "column": 19}, "end_point": {"row": 22, "column": 20}}, {"id": 125, "type": "field_identifier", "text": "z", "parent": 123, "children": [], "start_point": {"row": 22, "column": 22}, "end_point": {"row": 22, "column": 23}}, {"id": 126, "type": "return_statement", "text": "return t;", "parent": 19, "children": [127], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 11}}, {"id": 127, "type": "identifier", "text": "t", "parent": 126, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 10}}, {"id": 128, "type": "function_definition", "text": "int st_compact(st_t * st1, st_t * st2){\n if (st1 -> z > 0 ){\n if (st2 -> z > 0 ){\n assert(st1 -> x > 0);\n assert(st2 -> y > 0);\n } else {\n st2 -> x = st1 -> x;\n st2 -> y = -1;\n st1 -> z = st2 -> z;\n st2 -> z = NULL;\n }\n }\n\n return st1 -> x;\n\n}", "parent": null, "children": [129, 130], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 42, "column": 1}}, {"id": 129, "type": "primitive_type", "text": "int", "parent": 128, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 3}}, {"id": 130, "type": "function_declarator", "text": "st_compact(st_t * st1, st_t * st2)", "parent": 128, "children": [131, 132], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 38}}, {"id": 131, "type": "identifier", "text": "st_compact", "parent": 130, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 14}}, {"id": 132, "type": "parameter_list", "text": "(st_t * st1, st_t * st2)", "parent": 130, "children": [133, 138], "start_point": {"row": 27, "column": 14}, "end_point": {"row": 27, "column": 38}}, {"id": 133, "type": "parameter_declaration", "text": "st_t * st1", "parent": 132, "children": [134, 135], "start_point": {"row": 27, "column": 15}, "end_point": {"row": 27, "column": 25}}, {"id": 134, "type": "type_identifier", "text": "st_t", "parent": 133, "children": [], "start_point": {"row": 27, "column": 15}, "end_point": {"row": 27, "column": 19}}, {"id": 135, "type": "pointer_declarator", "text": "* st1", "parent": 133, "children": [136, 137], "start_point": {"row": 27, "column": 20}, "end_point": {"row": 27, "column": 25}}, {"id": 136, "type": "*", "text": "*", "parent": 135, "children": [], "start_point": {"row": 27, "column": 20}, "end_point": {"row": 27, "column": 21}}, {"id": 137, "type": "identifier", "text": "st1", "parent": 135, "children": [], "start_point": {"row": 27, "column": 22}, "end_point": {"row": 27, "column": 25}}, {"id": 138, "type": "parameter_declaration", "text": "st_t * st2", "parent": 132, "children": [139, 140], "start_point": {"row": 27, "column": 27}, "end_point": {"row": 27, "column": 37}}, {"id": 139, "type": "type_identifier", "text": "st_t", "parent": 138, "children": [], "start_point": {"row": 27, "column": 27}, "end_point": {"row": 27, "column": 31}}, {"id": 140, "type": "pointer_declarator", "text": "* st2", "parent": 138, "children": [141, 142], "start_point": {"row": 27, "column": 32}, "end_point": {"row": 27, "column": 37}}, {"id": 141, "type": "*", "text": "*", "parent": 140, "children": [], "start_point": {"row": 27, "column": 32}, "end_point": {"row": 27, "column": 33}}, {"id": 142, "type": "identifier", "text": "st2", "parent": 140, "children": [], "start_point": {"row": 27, "column": 34}, "end_point": {"row": 27, "column": 37}}, {"id": 143, "type": "if_statement", "text": "if (st1 -> z > 0 ){\n if (st2 -> z > 0 ){\n assert(st1 -> x > 0);\n assert(st2 -> y > 0);\n } else {\n st2 -> x = st1 -> x;\n st2 -> y = -1;\n st1 -> z = st2 -> z;\n st2 -> z = NULL;\n }\n }", "parent": 128, "children": [144], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 38, "column": 3}}, {"id": 144, "type": "parenthesized_expression", "text": "(st1 -> z > 0 )", "parent": 143, "children": [145], "start_point": {"row": 28, "column": 5}, "end_point": {"row": 28, "column": 20}}, {"id": 145, "type": "binary_expression", "text": "st1 -> z > 0", "parent": 144, "children": [146, 149, 150], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 18}}, {"id": 146, "type": "field_expression", "text": "st1 -> z", "parent": 145, "children": [147, 148], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 14}}, {"id": 147, "type": "identifier", "text": "st1", "parent": 146, "children": [], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 9}}, {"id": 148, "type": "field_identifier", "text": "z", "parent": 146, "children": [], "start_point": {"row": 28, "column": 13}, "end_point": {"row": 28, "column": 14}}, {"id": 149, "type": ">", "text": ">", "parent": 145, "children": [], "start_point": {"row": 28, "column": 15}, "end_point": {"row": 28, "column": 16}}, {"id": 150, "type": "number_literal", "text": "0", "parent": 145, "children": [], "start_point": {"row": 28, "column": 17}, "end_point": {"row": 28, "column": 18}}, {"id": 151, "type": "if_statement", "text": "if (st2 -> z > 0 ){\n assert(st1 -> x > 0);\n assert(st2 -> y > 0);\n } else {\n st2 -> x = st1 -> x;\n st2 -> y = -1;\n st1 -> z = st2 -> z;\n st2 -> z = NULL;\n }", "parent": 143, "children": [152, 177], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 37, "column": 5}}, {"id": 152, "type": "parenthesized_expression", "text": "(st2 -> z > 0 )", "parent": 151, "children": [153], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 22}}, {"id": 153, "type": "binary_expression", "text": "st2 -> z > 0", "parent": 152, "children": [154, 157, 158], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 20}}, {"id": 154, "type": "field_expression", "text": "st2 -> z", "parent": 153, "children": [155, 156], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 16}}, {"id": 155, "type": "identifier", "text": "st2", "parent": 154, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 11}}, {"id": 156, "type": "field_identifier", "text": "z", "parent": 154, "children": [], "start_point": {"row": 29, "column": 15}, "end_point": {"row": 29, "column": 16}}, {"id": 157, "type": ">", "text": ">", "parent": 153, "children": [], "start_point": {"row": 29, "column": 17}, "end_point": {"row": 29, "column": 18}}, {"id": 158, "type": "number_literal", "text": "0", "parent": 153, "children": [], "start_point": {"row": 29, "column": 19}, "end_point": {"row": 29, "column": 20}}, {"id": 159, "type": "call_expression", "text": "assert(st1 -> x > 0)", "parent": 151, "children": [160, 161], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 26}}, {"id": 160, "type": "identifier", "text": "assert", "parent": 159, "children": [], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 12}}, {"id": 161, "type": "argument_list", "text": "(st1 -> x > 0)", "parent": 159, "children": [162], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 30, "column": 26}}, {"id": 162, "type": "binary_expression", "text": "st1 -> x > 0", "parent": 161, "children": [163, 166, 167], "start_point": {"row": 30, "column": 13}, "end_point": {"row": 30, "column": 25}}, {"id": 163, "type": "field_expression", "text": "st1 -> x", "parent": 162, "children": [164, 165], "start_point": {"row": 30, "column": 13}, "end_point": {"row": 30, "column": 21}}, {"id": 164, "type": "identifier", "text": "st1", "parent": 163, "children": [], "start_point": {"row": 30, "column": 13}, "end_point": {"row": 30, "column": 16}}, {"id": 165, "type": "field_identifier", "text": "x", "parent": 163, "children": [], "start_point": {"row": 30, "column": 20}, "end_point": {"row": 30, "column": 21}}, {"id": 166, "type": ">", "text": ">", "parent": 162, "children": [], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 23}}, {"id": 167, "type": "number_literal", "text": "0", "parent": 162, "children": [], "start_point": {"row": 30, "column": 24}, "end_point": {"row": 30, "column": 25}}, {"id": 168, "type": "call_expression", "text": "assert(st2 -> y > 0)", "parent": 151, "children": [169, 170], "start_point": {"row": 31, "column": 6}, "end_point": {"row": 31, "column": 26}}, {"id": 169, "type": "identifier", "text": "assert", "parent": 168, "children": [], "start_point": {"row": 31, "column": 6}, "end_point": {"row": 31, "column": 12}}, {"id": 170, "type": "argument_list", "text": "(st2 -> y > 0)", "parent": 168, "children": [171], "start_point": {"row": 31, "column": 12}, "end_point": {"row": 31, "column": 26}}, {"id": 171, "type": "binary_expression", "text": "st2 -> y > 0", "parent": 170, "children": [172, 175, 176], "start_point": {"row": 31, "column": 13}, "end_point": {"row": 31, "column": 25}}, {"id": 172, "type": "field_expression", "text": "st2 -> y", "parent": 171, "children": [173, 174], "start_point": {"row": 31, "column": 13}, "end_point": {"row": 31, "column": 21}}, {"id": 173, "type": "identifier", "text": "st2", "parent": 172, "children": [], "start_point": {"row": 31, "column": 13}, "end_point": {"row": 31, "column": 16}}, {"id": 174, "type": "field_identifier", "text": "y", "parent": 172, "children": [], "start_point": {"row": 31, "column": 20}, "end_point": {"row": 31, "column": 21}}, {"id": 175, "type": ">", "text": ">", "parent": 171, "children": [], "start_point": {"row": 31, "column": 22}, "end_point": {"row": 31, "column": 23}}, {"id": 176, "type": "number_literal", "text": "0", "parent": 171, "children": [], "start_point": {"row": 31, "column": 24}, "end_point": {"row": 31, "column": 25}}, {"id": 177, "type": "else_clause", "text": "else {\n st2 -> x = st1 -> x;\n st2 -> y = -1;\n st1 -> z = st2 -> z;\n st2 -> z = NULL;\n }", "parent": 151, "children": [], "start_point": {"row": 32, "column": 6}, "end_point": {"row": 37, "column": 5}}, {"id": 178, "type": "assignment_expression", "text": "st2 -> x = st1 -> x", "parent": 177, "children": [179, 182, 183], "start_point": {"row": 33, "column": 6}, "end_point": {"row": 33, "column": 25}}, {"id": 179, "type": "field_expression", "text": "st2 -> x", "parent": 178, "children": [180, 181], "start_point": {"row": 33, "column": 6}, "end_point": {"row": 33, "column": 14}}, {"id": 180, "type": "identifier", "text": "st2", "parent": 179, "children": [], "start_point": {"row": 33, "column": 6}, "end_point": {"row": 33, "column": 9}}, {"id": 181, "type": "field_identifier", "text": "x", "parent": 179, "children": [], "start_point": {"row": 33, "column": 13}, "end_point": {"row": 33, "column": 14}}, {"id": 182, "type": "=", "text": "=", "parent": 178, "children": [], "start_point": {"row": 33, "column": 15}, "end_point": {"row": 33, "column": 16}}, {"id": 183, "type": "field_expression", "text": "st1 -> x", "parent": 178, "children": [184, 185], "start_point": {"row": 33, "column": 17}, "end_point": {"row": 33, "column": 25}}, {"id": 184, "type": "identifier", "text": "st1", "parent": 183, "children": [], "start_point": {"row": 33, "column": 17}, "end_point": {"row": 33, "column": 20}}, {"id": 185, "type": "field_identifier", "text": "x", "parent": 183, "children": [], "start_point": {"row": 33, "column": 24}, "end_point": {"row": 33, "column": 25}}, {"id": 186, "type": "assignment_expression", "text": "st2 -> y = -1", "parent": 177, "children": [187, 190, 191], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 19}}, {"id": 187, "type": "field_expression", "text": "st2 -> y", "parent": 186, "children": [188, 189], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 14}}, {"id": 188, "type": "identifier", "text": "st2", "parent": 187, "children": [], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 9}}, {"id": 189, "type": "field_identifier", "text": "y", "parent": 187, "children": [], "start_point": {"row": 34, "column": 13}, "end_point": {"row": 34, "column": 14}}, {"id": 190, "type": "=", "text": "=", "parent": 186, "children": [], "start_point": {"row": 34, "column": 15}, "end_point": {"row": 34, "column": 16}}, {"id": 191, "type": "number_literal", "text": "-1", "parent": 186, "children": [], "start_point": {"row": 34, "column": 17}, "end_point": {"row": 34, "column": 19}}, {"id": 192, "type": "assignment_expression", "text": "st1 -> z = st2 -> z", "parent": 177, "children": [193, 196, 197], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 25}}, {"id": 193, "type": "field_expression", "text": "st1 -> z", "parent": 192, "children": [194, 195], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 14}}, {"id": 194, "type": "identifier", "text": "st1", "parent": 193, "children": [], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 9}}, {"id": 195, "type": "field_identifier", "text": "z", "parent": 193, "children": [], "start_point": {"row": 35, "column": 13}, "end_point": {"row": 35, "column": 14}}, {"id": 196, "type": "=", "text": "=", "parent": 192, "children": [], "start_point": {"row": 35, "column": 15}, "end_point": {"row": 35, "column": 16}}, {"id": 197, "type": "field_expression", "text": "st2 -> z", "parent": 192, "children": [198, 199], "start_point": {"row": 35, "column": 17}, "end_point": {"row": 35, "column": 25}}, {"id": 198, "type": "identifier", "text": "st2", "parent": 197, "children": [], "start_point": {"row": 35, "column": 17}, "end_point": {"row": 35, "column": 20}}, {"id": 199, "type": "field_identifier", "text": "z", "parent": 197, "children": [], "start_point": {"row": 35, "column": 24}, "end_point": {"row": 35, "column": 25}}, {"id": 200, "type": "assignment_expression", "text": "st2 -> z = NULL", "parent": 177, "children": [201, 204, 205], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 21}}, {"id": 201, "type": "field_expression", "text": "st2 -> z", "parent": 200, "children": [202, 203], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 14}}, {"id": 202, "type": "identifier", "text": "st2", "parent": 201, "children": [], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 9}}, {"id": 203, "type": "field_identifier", "text": "z", "parent": 201, "children": [], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 14}}, {"id": 204, "type": "=", "text": "=", "parent": 200, "children": [], "start_point": {"row": 36, "column": 15}, "end_point": {"row": 36, "column": 16}}, {"id": 205, "type": "null", "text": "NULL", "parent": 200, "children": [206], "start_point": {"row": 36, "column": 17}, "end_point": {"row": 36, "column": 21}}, {"id": 206, "type": "NULL", "text": "NULL", "parent": 205, "children": [], "start_point": {"row": 36, "column": 17}, "end_point": {"row": 36, "column": 21}}, {"id": 207, "type": "return_statement", "text": "return st1 -> x;", "parent": 128, "children": [208], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 18}}, {"id": 208, "type": "field_expression", "text": "st1 -> x", "parent": 207, "children": [209, 210], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 17}}, {"id": 209, "type": "identifier", "text": "st1", "parent": 208, "children": [], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 12}}, {"id": 210, "type": "field_identifier", "text": "x", "parent": 208, "children": [], "start_point": {"row": 40, "column": 16}, "end_point": {"row": 40, "column": 17}}, {"id": 211, "type": "function_definition", "text": "int main(){\n int a, b;\n st_t *st1, *st2;\n// ASSUME(a> 0);\n// ASSUME(b > 0);\n __ESBMC_assume(a>0);\n __ESBMC_assume(b>0);\n \n st1 = st_alloc(a,b); \n st2 = st_alloc(-b,-a); \n \n st_compact(st1,st2);\n return 1;\n\n}", "parent": null, "children": [212, 213], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 58, "column": 1}}, {"id": 212, "type": "primitive_type", "text": "int", "parent": 211, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 3}}, {"id": 213, "type": "function_declarator", "text": "main()", "parent": 211, "children": [214, 215], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 10}}, {"id": 214, "type": "identifier", "text": "main", "parent": 213, "children": [], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 8}}, {"id": 215, "type": "parameter_list", "text": "()", "parent": 213, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 10}}, {"id": 216, "type": "declaration", "text": "int a, b;", "parent": 211, "children": [217, 218, 219], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 11}}, {"id": 217, "type": "primitive_type", "text": "int", "parent": 216, "children": [], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 5}}, {"id": 218, "type": "identifier", "text": "a", "parent": 216, "children": [], "start_point": {"row": 45, "column": 6}, "end_point": {"row": 45, "column": 7}}, {"id": 219, "type": "identifier", "text": "b", "parent": 216, "children": [], "start_point": {"row": 45, "column": 9}, "end_point": {"row": 45, "column": 10}}, {"id": 220, "type": "declaration", "text": "st_t *st1, *st2;", "parent": 211, "children": [221, 222, 225], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 18}}, {"id": 221, "type": "type_identifier", "text": "st_t", "parent": 220, "children": [], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 6}}, {"id": 222, "type": "pointer_declarator", "text": "*st1", "parent": 220, "children": [223, 224], "start_point": {"row": 46, "column": 7}, "end_point": {"row": 46, "column": 11}}, {"id": 223, "type": "*", "text": "*", "parent": 222, "children": [], "start_point": {"row": 46, "column": 7}, "end_point": {"row": 46, "column": 8}}, {"id": 224, "type": "identifier", "text": "st1", "parent": 222, "children": [], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 11}}, {"id": 225, "type": "pointer_declarator", "text": "*st2", "parent": 220, "children": [226, 227], "start_point": {"row": 46, "column": 13}, "end_point": {"row": 46, "column": 17}}, {"id": 226, "type": "*", "text": "*", "parent": 225, "children": [], "start_point": {"row": 46, "column": 13}, "end_point": {"row": 46, "column": 14}}, {"id": 227, "type": "identifier", "text": "st2", "parent": 225, "children": [], "start_point": {"row": 46, "column": 14}, "end_point": {"row": 46, "column": 17}}, {"id": 228, "type": "call_expression", "text": "__ESBMC_assume(a>0)", "parent": 211, "children": [229, 230], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 21}}, {"id": 229, "type": "identifier", "text": "__ESBMC_assume", "parent": 228, "children": [], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 16}}, {"id": 230, "type": "argument_list", "text": "(a>0)", "parent": 228, "children": [231], "start_point": {"row": 49, "column": 16}, "end_point": {"row": 49, "column": 21}}, {"id": 231, "type": "binary_expression", "text": "a>0", "parent": 230, "children": [232, 233, 234], "start_point": {"row": 49, "column": 17}, "end_point": {"row": 49, "column": 20}}, {"id": 232, "type": "identifier", "text": "a", "parent": 231, "children": [], "start_point": {"row": 49, "column": 17}, "end_point": {"row": 49, "column": 18}}, {"id": 233, "type": ">", "text": ">", "parent": 231, "children": [], "start_point": {"row": 49, "column": 18}, "end_point": {"row": 49, "column": 19}}, {"id": 234, "type": "number_literal", "text": "0", "parent": 231, "children": [], "start_point": {"row": 49, "column": 19}, "end_point": {"row": 49, "column": 20}}, {"id": 235, "type": "call_expression", "text": "__ESBMC_assume(b>0)", "parent": 211, "children": [236, 237], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 21}}, {"id": 236, "type": "identifier", "text": "__ESBMC_assume", "parent": 235, "children": [], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 16}}, {"id": 237, "type": "argument_list", "text": "(b>0)", "parent": 235, "children": [238], "start_point": {"row": 50, "column": 16}, "end_point": {"row": 50, "column": 21}}, {"id": 238, "type": "binary_expression", "text": "b>0", "parent": 237, "children": [239, 240, 241], "start_point": {"row": 50, "column": 17}, "end_point": {"row": 50, "column": 20}}, {"id": 239, "type": "identifier", "text": "b", "parent": 238, "children": [], "start_point": {"row": 50, "column": 17}, "end_point": {"row": 50, "column": 18}}, {"id": 240, "type": ">", "text": ">", "parent": 238, "children": [], "start_point": {"row": 50, "column": 18}, "end_point": {"row": 50, "column": 19}}, {"id": 241, "type": "number_literal", "text": "0", "parent": 238, "children": [], "start_point": {"row": 50, "column": 19}, "end_point": {"row": 50, "column": 20}}, {"id": 242, "type": "assignment_expression", "text": "st1 = st_alloc(a,b)", "parent": 211, "children": [243, 244, 245], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 21}}, {"id": 243, "type": "identifier", "text": "st1", "parent": 242, "children": [], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 5}}, {"id": 244, "type": "=", "text": "=", "parent": 242, "children": [], "start_point": {"row": 52, "column": 6}, "end_point": {"row": 52, "column": 7}}, {"id": 245, "type": "call_expression", "text": "st_alloc(a,b)", "parent": 242, "children": [246, 247], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 21}}, {"id": 246, "type": "identifier", "text": "st_alloc", "parent": 245, "children": [], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 16}}, {"id": 247, "type": "argument_list", "text": "(a,b)", "parent": 245, "children": [248, 249], "start_point": {"row": 52, "column": 16}, "end_point": {"row": 52, "column": 21}}, {"id": 248, "type": "identifier", "text": "a", "parent": 247, "children": [], "start_point": {"row": 52, "column": 17}, "end_point": {"row": 52, "column": 18}}, {"id": 249, "type": "identifier", "text": "b", "parent": 247, "children": [], "start_point": {"row": 52, "column": 19}, "end_point": {"row": 52, "column": 20}}, {"id": 250, "type": "assignment_expression", "text": "st2 = st_alloc(-b,-a)", "parent": 211, "children": [251, 252, 253], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 53, "column": 23}}, {"id": 251, "type": "identifier", "text": "st2", "parent": 250, "children": [], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 53, "column": 5}}, {"id": 252, "type": "=", "text": "=", "parent": 250, "children": [], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 53, "column": 7}}, {"id": 253, "type": "call_expression", "text": "st_alloc(-b,-a)", "parent": 250, "children": [254, 255], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 23}}, {"id": 254, "type": "identifier", "text": "st_alloc", "parent": 253, "children": [], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 16}}, {"id": 255, "type": "argument_list", "text": "(-b,-a)", "parent": 253, "children": [256, 259], "start_point": {"row": 53, "column": 16}, "end_point": {"row": 53, "column": 23}}, {"id": 256, "type": "unary_expression", "text": "-b", "parent": 255, "children": [257, 258], "start_point": {"row": 53, "column": 17}, "end_point": {"row": 53, "column": 19}}, {"id": 257, "type": "-", "text": "-", "parent": 256, "children": [], "start_point": {"row": 53, "column": 17}, "end_point": {"row": 53, "column": 18}}, {"id": 258, "type": "identifier", "text": "b", "parent": 256, "children": [], "start_point": {"row": 53, "column": 18}, "end_point": {"row": 53, "column": 19}}, {"id": 259, "type": "unary_expression", "text": "-a", "parent": 255, "children": [260, 261], "start_point": {"row": 53, "column": 20}, "end_point": {"row": 53, "column": 22}}, {"id": 260, "type": "-", "text": "-", "parent": 259, "children": [], "start_point": {"row": 53, "column": 20}, "end_point": {"row": 53, "column": 21}}, {"id": 261, "type": "identifier", "text": "a", "parent": 259, "children": [], "start_point": {"row": 53, "column": 21}, "end_point": {"row": 53, "column": 22}}, {"id": 262, "type": "call_expression", "text": "st_compact(st1,st2)", "parent": 211, "children": [263, 264], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 21}}, {"id": 263, "type": "identifier", "text": "st_compact", "parent": 262, "children": [], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 12}}, {"id": 264, "type": "argument_list", "text": "(st1,st2)", "parent": 262, "children": [265, 266], "start_point": {"row": 55, "column": 12}, "end_point": {"row": 55, "column": 21}}, {"id": 265, "type": "identifier", "text": "st1", "parent": 264, "children": [], "start_point": {"row": 55, "column": 13}, "end_point": {"row": 55, "column": 16}}, {"id": 266, "type": "identifier", "text": "st2", "parent": 264, "children": [], "start_point": {"row": 55, "column": 17}, "end_point": {"row": 55, "column": 20}}, {"id": 267, "type": "return_statement", "text": "return 1;", "parent": 211, "children": [268], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 11}}, {"id": 268, "type": "number_literal", "text": "1", "parent": 267, "children": [], "start_point": {"row": 56, "column": 9}, "end_point": {"row": 56, "column": 10}}]}, "node_categories": {"declarations": {"functions": [19, 23, 128, 130, 211, 213], "variables": [3, 7, 10, 13, 26, 29, 32, 133, 138, 216, 220], "classes": [5, 6], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [39, 44, 47, 50, 51, 53, 58, 59, 60, 65, 70, 76, 82, 90, 96, 102, 106, 111, 114, 117, 120, 123, 144, 145, 146, 152, 153, 154, 159, 162, 163, 168, 171, 172, 179, 183, 187, 193, 197, 201, 208, 228, 231, 235, 238, 245, 253, 256, 259, 262], "assignments": [69, 75, 81, 89, 95, 101, 178, 186, 192, 200, 242, 250], "loops": [], "conditionals": [9, 12, 17, 18, 20, 24, 28, 31, 33, 37, 41, 45, 52, 54, 56, 57, 61, 66, 71, 72, 74, 77, 78, 80, 83, 84, 91, 92, 97, 98, 103, 104, 112, 121, 124, 125, 127, 131, 134, 137, 139, 142, 143, 147, 148, 151, 155, 156, 160, 164, 165, 169, 173, 174, 180, 181, 184, 185, 188, 189, 194, 195, 198, 199, 202, 203, 209, 210, 214, 218, 219, 221, 224, 227, 229, 232, 236, 239, 243, 246, 248, 249, 251, 254, 258, 261, 263, 265, 266], "returns": [126, 207, 267], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 48, 63, 68, 94, 100, 115, 150, 158, 167, 176, 191, 234, 241, 268], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 19, "universal_type": "function", "name": "y){", "text_snippet": "st_t * st_alloc(int x, int y){\n st_t * t = (st_t *) malloc(1 * sizeof(st_t));\n __ESBMC_assume(t);\n"}, {"node_id": 23, "universal_type": "function", "name": "y)", "text_snippet": "st_alloc(int x, int y)"}, {"node_id": 128, "universal_type": "function", "name": "st_compact", "text_snippet": "int st_compact(st_t * st1, st_t * st2){\n if (st1 -> z > 0 ){\n if (st2 -> z > 0 ){\n assert(s"}, {"node_id": 130, "universal_type": "function", "name": "unknown", "text_snippet": "st_compact(st_t * st1, st_t * st2)"}, {"node_id": 211, "universal_type": "function", "name": "main", "text_snippet": "int main(){\n int a, b;\n st_t *st1, *st2;\n// ASSUME(a> 0);\n// ASSUME(b > 0);\n __ESBMC_assume(a>0"}, {"node_id": 213, "universal_type": "function", "name": "unknown", "text_snippet": "main()"}], "class_declarations": [{"node_id": 5, "universal_type": "class", "name": "{", "text_snippet": "struct {\n\n int x;\n int y;\n void * z;\n\n}"}, {"node_id": 6, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include <stdio.h>\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "#include <stdio.h>\n\ntypedef struct {\n\n int x;\n int y;\n void * z;\n\n} st_t;\n\nst_t * st_alloc(int x, int y){\n st_t * t = (st_t *) malloc(1 * sizeof(st_t));\n __ESBMC_assume(t);\n if ( x > 0 && y > 0){\n t -> x = x;\n t -> y = y;\n t -> z = NULL;\n } else {\n\n t -> x = 0;\n t -> y = 0;\n t -> z = (void *) malloc (100 * sizeof(int));\n __ESBMC_assume(t->z);\n }\n return t;\n}\n\nint st_compact(st_t * st1, st_t * st2){\n if (st1 -> z > 0 ){\n if (st2 -> z > 0 ){\n assert(st1 -> x > 0);\n assert(st2 -> y > 0);\n } else {\n st2 -> x = st1 -> x;\n st2 -> y = -1;\n st1 -> z = st2 -> z;\n st2 -> z = NULL;\n }\n }\n\n return st1 -> x;\n\n}\n\nint main(){\n int a, b;\n st_t *st1, *st2;\n// ASSUME(a> 0);\n// ASSUME(b > 0);\n __ESBMC_assume(a>0);\n __ESBMC_assume(b>0);\n \n st1 = st_alloc(a,b); \n st2 = st_alloc(-b,-a); \n \n st_compact(st1,st2);\n return 1;\n\n}\n"}
80,208
c
/* hosts/amiga/signal_rr.c ** ** Just the exception catcher -- it needs registerized args (-mRR) which ** are not used elsewhere. ** ** 28-Feb-93 [lars] Done for DICE 2.07.53 */ #include <exec/types.h> #ifdef INCLUDE_VERSION #include <dos/dos.h> #else #include <libraries/dos.h> #endif #include "nsignal.h" extern __stkargs ULONG SetSignal(unsigned long newSignals, unsigned long signalSet); /*-----------------------------------------------------------------------*/ extern ULONG sys_signal_alarm, /* The system-signal-masks */ sys_signal_hup, sys_signal_usr; extern void (*handler_hup) (void), (*handler_alarm) (void), (*handler_usr) (void); /*----------------------------------------------------------------------- ** ULONG catch_exception (ULONG mask) ** ** Called by the OS if the task gets an exception, this dispatch to ** the appropriate signal-function. ** Note that the std-raise() also removes the handler, so our functions ** are called manually. */ __regargs __geta4 ULONG catch_exception(__D0 ULONG mask) { /* Handle our special exceptions */ if (mask & sys_signal_alarm) (*handler_alarm) (); if (mask & sys_signal_hup) (*handler_hup) (); if (mask & sys_signal_usr) (*handler_usr) (); /* Stop select() anyway */ SetSignal(EXT_SIGINT, EXT_SIGINT); return mask; } /*************************************************************************/
32.36
42
(translation_unit) "/* hosts/amiga/signal_rr.c\n**\n** Just the exception catcher -- it needs registerized args (-mRR) which\n** are not used elsewhere.\n**\n** 28-Feb-93 [lars] Done for DICE 2.07.53\n*/\n\n#include <exec/types.h>\n#ifdef INCLUDE_VERSION\n#include <dos/dos.h>\n#else\n#include <libraries/dos.h>\n#endif\n#include "nsignal.h"\nextern __stkargs ULONG SetSignal(unsigned long newSignals, unsigned long signalSet);\n\n\n/*-----------------------------------------------------------------------*/\n\nextern ULONG sys_signal_alarm, /* The system-signal-masks */\n sys_signal_hup, sys_signal_usr;\n\nextern void (*handler_hup) (void), (*handler_alarm) (void), (*handler_usr) (void);\n\n/*-----------------------------------------------------------------------\n** ULONG catch_exception (ULONG mask)\n**\n** Called by the OS if the task gets an exception, this dispatch to\n** the appropriate signal-function.\n** Note that the std-raise() also removes the handler, so our functions\n** are called manually.\n*/\n\n__regargs __geta4 ULONG catch_exception(__D0 ULONG mask)\n{\n /* Handle our special exceptions */\n if (mask & sys_signal_alarm)\n (*handler_alarm) ();\n if (mask & sys_signal_hup)\n (*handler_hup) ();\n if (mask & sys_signal_usr)\n (*handler_usr) ();\n /* Stop select() anyway */\n SetSignal(EXT_SIGINT, EXT_SIGINT);\n return mask;\n}\n\n/*************************************************************************/\n" (comment) "/* hosts/amiga/signal_rr.c\n**\n** Just the exception catcher -- it needs registerized args (-mRR) which\n** are not used elsewhere.\n**\n** 28-Feb-93 [lars] Done for DICE 2.07.53\n*/" (preproc_include) "#include <exec/types.h>\n" (#include) "#include" (system_lib_string) "<exec/types.h>" (preproc_ifdef) "#ifdef INCLUDE_VERSION\n#include <dos/dos.h>\n#else\n#include <libraries/dos.h>\n#endif" (#ifdef) "#ifdef" (identifier) "INCLUDE_VERSION" (preproc_include) "#include <dos/dos.h>\n" (#include) "#include" (system_lib_string) "<dos/dos.h>" (preproc_else) "#else\n#include <libraries/dos.h>\n" (#else) "#else" (preproc_include) "#include <libraries/dos.h>\n" (#include) "#include" (system_lib_string) "<libraries/dos.h>" (#endif) "#endif" (preproc_include) "#include "nsignal.h"\n" (#include) "#include" (string_literal) ""nsignal.h"" (") """ (string_content) "nsignal.h" (") """ (declaration) "extern __stkargs ULONG SetSignal(unsigned long newSignals, unsigned long signalSet);" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "__stkargs" (ERROR) "ULONG" (identifier) "ULONG" (function_declarator) "SetSignal(unsigned long newSignals, unsigned long signalSet)" (identifier) "SetSignal" (parameter_list) "(unsigned long newSignals, unsigned long signalSet)" (() "(" (parameter_declaration) "unsigned long newSignals" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (identifier) "newSignals" (,) "," (parameter_declaration) "unsigned long signalSet" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (identifier) "signalSet" ()) ")" (;) ";" (comment) "/*-----------------------------------------------------------------------*/" (declaration) "extern ULONG sys_signal_alarm, /* The system-signal-masks */\n sys_signal_hup, sys_signal_usr;" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "ULONG" (identifier) "sys_signal_alarm" (,) "," (comment) "/* The system-signal-masks */" (identifier) "sys_signal_hup" (,) "," (identifier) "sys_signal_usr" (;) ";" (declaration) "extern void (*handler_hup) (void), (*handler_alarm) (void), (*handler_usr) (void);" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "void" (function_declarator) "(*handler_hup) (void)" (parenthesized_declarator) "(*handler_hup)" (() "(" (pointer_declarator) "*handler_hup" (*) "*" (identifier) "handler_hup" ()) ")" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (,) "," (function_declarator) "(*handler_alarm) (void)" (parenthesized_declarator) "(*handler_alarm)" (() "(" (pointer_declarator) "*handler_alarm" (*) "*" (identifier) "handler_alarm" ()) ")" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (,) "," (function_declarator) "(*handler_usr) (void)" (parenthesized_declarator) "(*handler_usr)" (() "(" (pointer_declarator) "*handler_usr" (*) "*" (identifier) "handler_usr" ()) ")" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (comment) "/*-----------------------------------------------------------------------\n** ULONG catch_exception (ULONG mask)\n**\n** Called by the OS if the task gets an exception, this dispatch to\n** the appropriate signal-function.\n** Note that the std-raise() also removes the handler, so our functions\n** are called manually.\n*/" (declaration) "__regargs __geta4" (type_identifier) "__regargs" (identifier) "__geta4" (;) "" (function_definition) "ULONG catch_exception(__D0 ULONG mask)\n{\n /* Handle our special exceptions */\n if (mask & sys_signal_alarm)\n (*handler_alarm) ();\n if (mask & sys_signal_hup)\n (*handler_hup) ();\n if (mask & sys_signal_usr)\n (*handler_usr) ();\n /* Stop select() anyway */\n SetSignal(EXT_SIGINT, EXT_SIGINT);\n return mask;\n}" (type_identifier) "ULONG" (function_declarator) "catch_exception(__D0 ULONG mask)" (identifier) "catch_exception" (parameter_list) "(__D0 ULONG mask)" (() "(" (parameter_declaration) "__D0 ULONG" (type_identifier) "__D0" (identifier) "ULONG" (ERROR) "mask" (identifier) "mask" ()) ")" (compound_statement) "{\n /* Handle our special exceptions */\n if (mask & sys_signal_alarm)\n (*handler_alarm) ();\n if (mask & sys_signal_hup)\n (*handler_hup) ();\n if (mask & sys_signal_usr)\n (*handler_usr) ();\n /* Stop select() anyway */\n SetSignal(EXT_SIGINT, EXT_SIGINT);\n return mask;\n}" ({) "{" (comment) "/* Handle our special exceptions */" (if_statement) "if (mask & sys_signal_alarm)\n (*handler_alarm) ();" (if) "if" (parenthesized_expression) "(mask & sys_signal_alarm)" (() "(" (binary_expression) "mask & sys_signal_alarm" (identifier) "mask" (&) "&" (identifier) "sys_signal_alarm" ()) ")" (expression_statement) "(*handler_alarm) ();" (call_expression) "(*handler_alarm) ()" (parenthesized_expression) "(*handler_alarm)" (() "(" (pointer_expression) "*handler_alarm" (*) "*" (identifier) "handler_alarm" ()) ")" (argument_list) "()" (() "(" ()) ")" (;) ";" (if_statement) "if (mask & sys_signal_hup)\n (*handler_hup) ();" (if) "if" (parenthesized_expression) "(mask & sys_signal_hup)" (() "(" (binary_expression) "mask & sys_signal_hup" (identifier) "mask" (&) "&" (identifier) "sys_signal_hup" ()) ")" (expression_statement) "(*handler_hup) ();" (call_expression) "(*handler_hup) ()" (parenthesized_expression) "(*handler_hup)" (() "(" (pointer_expression) "*handler_hup" (*) "*" (identifier) "handler_hup" ()) ")" (argument_list) "()" (() "(" ()) ")" (;) ";" (if_statement) "if (mask & sys_signal_usr)\n (*handler_usr) ();" (if) "if" (parenthesized_expression) "(mask & sys_signal_usr)" (() "(" (binary_expression) "mask & sys_signal_usr" (identifier) "mask" (&) "&" (identifier) "sys_signal_usr" ()) ")" (expression_statement) "(*handler_usr) ();" (call_expression) "(*handler_usr) ()" (parenthesized_expression) "(*handler_usr)" (() "(" (pointer_expression) "*handler_usr" (*) "*" (identifier) "handler_usr" ()) ")" (argument_list) "()" (() "(" ()) ")" (;) ";" (comment) "/* Stop select() anyway */" (expression_statement) "SetSignal(EXT_SIGINT, EXT_SIGINT);" (call_expression) "SetSignal(EXT_SIGINT, EXT_SIGINT)" (identifier) "SetSignal" (argument_list) "(EXT_SIGINT, EXT_SIGINT)" (() "(" (identifier) "EXT_SIGINT" (,) "," (identifier) "EXT_SIGINT" ()) ")" (;) ";" (return_statement) "return mask;" (return) "return" (identifier) "mask" (;) ";" (}) "}" (comment) "/*************************************************************************/"
201
2
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 32.36, "nodes": 125, "errors": 0, "source_hash": "17ba6ae00d286b1989b8532a1edb52d64b6862e82404e7204838c82857282db2", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <exec/types.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<exec/types.h>", "parent": 0, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 23}}, {"id": 3, "type": "preproc_ifdef", "text": "#ifdef INCLUDE_VERSION\n#include <dos/dos.h>\n#else\n#include <libraries/dos.h>\n#endif", "parent": null, "children": [4, 5, 6, 9, 14], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 13, "column": 6}}, {"id": 4, "type": "#ifdef", "text": "#ifdef", "parent": 3, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 6}}, {"id": 5, "type": "identifier", "text": "INCLUDE_VERSION", "parent": 3, "children": [], "start_point": {"row": 9, "column": 7}, "end_point": {"row": 9, "column": 22}}, {"id": 6, "type": "preproc_include", "text": "#include <dos/dos.h>\n", "parent": 3, "children": [7, 8], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<dos/dos.h>", "parent": 6, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 20}}, {"id": 9, "type": "preproc_else", "text": "#else\n#include <libraries/dos.h>\n", "parent": 3, "children": [10, 11], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 10, "type": "#else", "text": "#else", "parent": 9, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 5}}, {"id": 11, "type": "preproc_include", "text": "#include <libraries/dos.h>\n", "parent": 9, "children": [12, 13], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 12, "type": "#include", "text": "#include", "parent": 11, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 13, "type": "system_lib_string", "text": "<libraries/dos.h>", "parent": 11, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 26}}, {"id": 14, "type": "#endif", "text": "#endif", "parent": 3, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 6}}, {"id": 15, "type": "preproc_include", "text": "#include \"nsignal.h\"\n", "parent": null, "children": [16, 17], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 8}}, {"id": 17, "type": "string_literal", "text": "\"nsignal.h\"", "parent": 15, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 20}}, {"id": 18, "type": "declaration", "text": "extern __stkargs ULONG SetSignal(unsigned long newSignals, unsigned long signalSet);", "parent": null, "children": [19, 21, 22, 24], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 84}}, {"id": 19, "type": "storage_class_specifier", "text": "extern", "parent": 18, "children": [20], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 6}}, {"id": 20, "type": "extern", "text": "extern", "parent": 19, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 6}}, {"id": 21, "type": "type_identifier", "text": "__stkargs", "parent": 18, "children": [], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 16}}, {"id": 22, "type": "ERROR", "text": "ULONG", "parent": 18, "children": [23], "start_point": {"row": 15, "column": 17}, "end_point": {"row": 15, "column": 22}}, {"id": 23, "type": "identifier", "text": "ULONG", "parent": 22, "children": [], "start_point": {"row": 15, "column": 17}, "end_point": {"row": 15, "column": 22}}, {"id": 24, "type": "function_declarator", "text": "SetSignal(unsigned long newSignals, unsigned long signalSet)", "parent": 18, "children": [25, 26], "start_point": {"row": 15, "column": 23}, "end_point": {"row": 15, "column": 83}}, {"id": 25, "type": "identifier", "text": "SetSignal", "parent": 24, "children": [], "start_point": {"row": 15, "column": 23}, "end_point": {"row": 15, "column": 32}}, {"id": 26, "type": "parameter_list", "text": "(unsigned long newSignals, unsigned long signalSet)", "parent": 24, "children": [27, 32], "start_point": {"row": 15, "column": 32}, "end_point": {"row": 15, "column": 83}}, {"id": 27, "type": "parameter_declaration", "text": "unsigned long newSignals", "parent": 26, "children": [28, 31], "start_point": {"row": 15, "column": 33}, "end_point": {"row": 15, "column": 57}}, {"id": 28, "type": "sized_type_specifier", "text": "unsigned long", "parent": 27, "children": [29, 30], "start_point": {"row": 15, "column": 33}, "end_point": {"row": 15, "column": 46}}, {"id": 29, "type": "unsigned", "text": "unsigned", "parent": 28, "children": [], "start_point": {"row": 15, "column": 33}, "end_point": {"row": 15, "column": 41}}, {"id": 30, "type": "long", "text": "long", "parent": 28, "children": [], "start_point": {"row": 15, "column": 42}, "end_point": {"row": 15, "column": 46}}, {"id": 31, "type": "identifier", "text": "newSignals", "parent": 27, "children": [], "start_point": {"row": 15, "column": 47}, "end_point": {"row": 15, "column": 57}}, {"id": 32, "type": "parameter_declaration", "text": "unsigned long signalSet", "parent": 26, "children": [33, 36], "start_point": {"row": 15, "column": 59}, "end_point": {"row": 15, "column": 82}}, {"id": 33, "type": "sized_type_specifier", "text": "unsigned long", "parent": 32, "children": [34, 35], "start_point": {"row": 15, "column": 59}, "end_point": {"row": 15, "column": 72}}, {"id": 34, "type": "unsigned", "text": "unsigned", "parent": 33, "children": [], "start_point": {"row": 15, "column": 59}, "end_point": {"row": 15, "column": 67}}, {"id": 35, "type": "long", "text": "long", "parent": 33, "children": [], "start_point": {"row": 15, "column": 68}, "end_point": {"row": 15, "column": 72}}, {"id": 36, "type": "identifier", "text": "signalSet", "parent": 32, "children": [], "start_point": {"row": 15, "column": 73}, "end_point": {"row": 15, "column": 82}}, {"id": 37, "type": "declaration", "text": "extern ULONG sys_signal_alarm,\t/* The system-signal-masks */\n sys_signal_hup, sys_signal_usr;", "parent": null, "children": [38, 40, 41, 42, 43], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 37}}, {"id": 38, "type": "storage_class_specifier", "text": "extern", "parent": 37, "children": [39], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 6}}, {"id": 39, "type": "extern", "text": "extern", "parent": 38, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 6}}, {"id": 40, "type": "type_identifier", "text": "ULONG", "parent": 37, "children": [], "start_point": {"row": 20, "column": 7}, "end_point": {"row": 20, "column": 12}}, {"id": 41, "type": "identifier", "text": "sys_signal_alarm", "parent": 37, "children": [], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 29}}, {"id": 42, "type": "identifier", "text": "sys_signal_hup", "parent": 37, "children": [], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 20}}, {"id": 43, "type": "identifier", "text": "sys_signal_usr", "parent": 37, "children": [], "start_point": {"row": 21, "column": 22}, "end_point": {"row": 21, "column": 36}}, {"id": 44, "type": "declaration", "text": "extern void (*handler_hup) (void), (*handler_alarm) (void), (*handler_usr) (void);", "parent": null, "children": [45, 47, 48, 56, 64], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 82}}, {"id": 45, "type": "storage_class_specifier", "text": "extern", "parent": 44, "children": [46], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 6}}, {"id": 46, "type": "extern", "text": "extern", "parent": 45, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 6}}, {"id": 47, "type": "primitive_type", "text": "void", "parent": 44, "children": [], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 11}}, {"id": 48, "type": "function_declarator", "text": "(*handler_hup) (void)", "parent": 44, "children": [49, 53], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 33}}, {"id": 49, "type": "parenthesized_declarator", "text": "(*handler_hup)", "parent": 48, "children": [50], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 26}}, {"id": 50, "type": "pointer_declarator", "text": "*handler_hup", "parent": 49, "children": [51, 52], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 25}}, {"id": 51, "type": "*", "text": "*", "parent": 50, "children": [], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 14}}, {"id": 52, "type": "identifier", "text": "handler_hup", "parent": 50, "children": [], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 25}}, {"id": 53, "type": "parameter_list", "text": "(void)", "parent": 48, "children": [54], "start_point": {"row": 23, "column": 27}, "end_point": {"row": 23, "column": 33}}, {"id": 54, "type": "parameter_declaration", "text": "void", "parent": 53, "children": [55], "start_point": {"row": 23, "column": 28}, "end_point": {"row": 23, "column": 32}}, {"id": 55, "type": "primitive_type", "text": "void", "parent": 54, "children": [], "start_point": {"row": 23, "column": 28}, "end_point": {"row": 23, "column": 32}}, {"id": 56, "type": "function_declarator", "text": "(*handler_alarm) (void)", "parent": 44, "children": [57, 61], "start_point": {"row": 23, "column": 35}, "end_point": {"row": 23, "column": 58}}, {"id": 57, "type": "parenthesized_declarator", "text": "(*handler_alarm)", "parent": 56, "children": [58], "start_point": {"row": 23, "column": 35}, "end_point": {"row": 23, "column": 51}}, {"id": 58, "type": "pointer_declarator", "text": "*handler_alarm", "parent": 57, "children": [59, 60], "start_point": {"row": 23, "column": 36}, "end_point": {"row": 23, "column": 50}}, {"id": 59, "type": "*", "text": "*", "parent": 58, "children": [], "start_point": {"row": 23, "column": 36}, "end_point": {"row": 23, "column": 37}}, {"id": 60, "type": "identifier", "text": "handler_alarm", "parent": 58, "children": [], "start_point": {"row": 23, "column": 37}, "end_point": {"row": 23, "column": 50}}, {"id": 61, "type": "parameter_list", "text": "(void)", "parent": 56, "children": [62], "start_point": {"row": 23, "column": 52}, "end_point": {"row": 23, "column": 58}}, {"id": 62, "type": "parameter_declaration", "text": "void", "parent": 61, "children": [63], "start_point": {"row": 23, "column": 53}, "end_point": {"row": 23, "column": 57}}, {"id": 63, "type": "primitive_type", "text": "void", "parent": 62, "children": [], "start_point": {"row": 23, "column": 53}, "end_point": {"row": 23, "column": 57}}, {"id": 64, "type": "function_declarator", "text": "(*handler_usr) (void)", "parent": 44, "children": [65, 69], "start_point": {"row": 23, "column": 60}, "end_point": {"row": 23, "column": 81}}, {"id": 65, "type": "parenthesized_declarator", "text": "(*handler_usr)", "parent": 64, "children": [66], "start_point": {"row": 23, "column": 60}, "end_point": {"row": 23, "column": 74}}, {"id": 66, "type": "pointer_declarator", "text": "*handler_usr", "parent": 65, "children": [67, 68], "start_point": {"row": 23, "column": 61}, "end_point": {"row": 23, "column": 73}}, {"id": 67, "type": "*", "text": "*", "parent": 66, "children": [], "start_point": {"row": 23, "column": 61}, "end_point": {"row": 23, "column": 62}}, {"id": 68, "type": "identifier", "text": "handler_usr", "parent": 66, "children": [], "start_point": {"row": 23, "column": 62}, "end_point": {"row": 23, "column": 73}}, {"id": 69, "type": "parameter_list", "text": "(void)", "parent": 64, "children": [70], "start_point": {"row": 23, "column": 75}, "end_point": {"row": 23, "column": 81}}, {"id": 70, "type": "parameter_declaration", "text": "void", "parent": 69, "children": [71], "start_point": {"row": 23, "column": 76}, "end_point": {"row": 23, "column": 80}}, {"id": 71, "type": "primitive_type", "text": "void", "parent": 70, "children": [], "start_point": {"row": 23, "column": 76}, "end_point": {"row": 23, "column": 80}}, {"id": 72, "type": "declaration", "text": "__regargs __geta4", "parent": null, "children": [73, 74], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 17}}, {"id": 73, "type": "type_identifier", "text": "__regargs", "parent": 72, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 9}}, {"id": 74, "type": "identifier", "text": "__geta4", "parent": 72, "children": [], "start_point": {"row": 34, "column": 10}, "end_point": {"row": 34, "column": 17}}, {"id": 75, "type": "function_definition", "text": "ULONG catch_exception(__D0 ULONG mask)\n{\n /* Handle our special exceptions */\n if (mask & sys_signal_alarm)\n\t(*handler_alarm) ();\n if (mask & sys_signal_hup)\n\t(*handler_hup) ();\n if (mask & sys_signal_usr)\n\t(*handler_usr) ();\n /* Stop select() anyway */\n SetSignal(EXT_SIGINT, EXT_SIGINT);\n return mask;\n}", "parent": null, "children": [76, 77], "start_point": {"row": 34, "column": 18}, "end_point": {"row": 46, "column": 1}}, {"id": 76, "type": "type_identifier", "text": "ULONG", "parent": 75, "children": [], "start_point": {"row": 34, "column": 18}, "end_point": {"row": 34, "column": 23}}, {"id": 77, "type": "function_declarator", "text": "catch_exception(__D0 ULONG mask)", "parent": 75, "children": [78, 79], "start_point": {"row": 34, "column": 24}, "end_point": {"row": 34, "column": 56}}, {"id": 78, "type": "identifier", "text": "catch_exception", "parent": 77, "children": [], "start_point": {"row": 34, "column": 24}, "end_point": {"row": 34, "column": 39}}, {"id": 79, "type": "parameter_list", "text": "(__D0 ULONG mask)", "parent": 77, "children": [80, 83], "start_point": {"row": 34, "column": 39}, "end_point": {"row": 34, "column": 56}}, {"id": 80, "type": "parameter_declaration", "text": "__D0 ULONG", "parent": 79, "children": [81, 82], "start_point": {"row": 34, "column": 40}, "end_point": {"row": 34, "column": 50}}, {"id": 81, "type": "type_identifier", "text": "__D0", "parent": 80, "children": [], "start_point": {"row": 34, "column": 40}, "end_point": {"row": 34, "column": 44}}, {"id": 82, "type": "identifier", "text": "ULONG", "parent": 80, "children": [], "start_point": {"row": 34, "column": 45}, "end_point": {"row": 34, "column": 50}}, {"id": 83, "type": "ERROR", "text": "mask", "parent": 79, "children": [84], "start_point": {"row": 34, "column": 51}, "end_point": {"row": 34, "column": 55}}, {"id": 84, "type": "identifier", "text": "mask", "parent": 83, "children": [], "start_point": {"row": 34, "column": 51}, "end_point": {"row": 34, "column": 55}}, {"id": 85, "type": "if_statement", "text": "if (mask & sys_signal_alarm)\n\t(*handler_alarm) ();", "parent": 75, "children": [86], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 38, "column": 21}}, {"id": 86, "type": "parenthesized_expression", "text": "(mask & sys_signal_alarm)", "parent": 85, "children": [87], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 32}}, {"id": 87, "type": "binary_expression", "text": "mask & sys_signal_alarm", "parent": 86, "children": [88, 89], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 31}}, {"id": 88, "type": "identifier", "text": "mask", "parent": 87, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 12}}, {"id": 89, "type": "identifier", "text": "sys_signal_alarm", "parent": 87, "children": [], "start_point": {"row": 37, "column": 15}, "end_point": {"row": 37, "column": 31}}, {"id": 90, "type": "call_expression", "text": "(*handler_alarm) ()", "parent": 85, "children": [91, 95], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 20}}, {"id": 91, "type": "parenthesized_expression", "text": "(*handler_alarm)", "parent": 90, "children": [92], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 17}}, {"id": 92, "type": "pointer_expression", "text": "*handler_alarm", "parent": 91, "children": [93, 94], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 16}}, {"id": 93, "type": "*", "text": "*", "parent": 92, "children": [], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 3}}, {"id": 94, "type": "identifier", "text": "handler_alarm", "parent": 92, "children": [], "start_point": {"row": 38, "column": 3}, "end_point": {"row": 38, "column": 16}}, {"id": 95, "type": "argument_list", "text": "()", "parent": 90, "children": [], "start_point": {"row": 38, "column": 18}, "end_point": {"row": 38, "column": 20}}, {"id": 96, "type": "if_statement", "text": "if (mask & sys_signal_hup)\n\t(*handler_hup) ();", "parent": 75, "children": [97], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 40, "column": 19}}, {"id": 97, "type": "parenthesized_expression", "text": "(mask & sys_signal_hup)", "parent": 96, "children": [98], "start_point": {"row": 39, "column": 7}, "end_point": {"row": 39, "column": 30}}, {"id": 98, "type": "binary_expression", "text": "mask & sys_signal_hup", "parent": 97, "children": [99, 100], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 29}}, {"id": 99, "type": "identifier", "text": "mask", "parent": 98, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 12}}, {"id": 100, "type": "identifier", "text": "sys_signal_hup", "parent": 98, "children": [], "start_point": {"row": 39, "column": 15}, "end_point": {"row": 39, "column": 29}}, {"id": 101, "type": "call_expression", "text": "(*handler_hup) ()", "parent": 96, "children": [102, 106], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 18}}, {"id": 102, "type": "parenthesized_expression", "text": "(*handler_hup)", "parent": 101, "children": [103], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 15}}, {"id": 103, "type": "pointer_expression", "text": "*handler_hup", "parent": 102, "children": [104, 105], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 14}}, {"id": 104, "type": "*", "text": "*", "parent": 103, "children": [], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 3}}, {"id": 105, "type": "identifier", "text": "handler_hup", "parent": 103, "children": [], "start_point": {"row": 40, "column": 3}, "end_point": {"row": 40, "column": 14}}, {"id": 106, "type": "argument_list", "text": "()", "parent": 101, "children": [], "start_point": {"row": 40, "column": 16}, "end_point": {"row": 40, "column": 18}}, {"id": 107, "type": "if_statement", "text": "if (mask & sys_signal_usr)\n\t(*handler_usr) ();", "parent": 75, "children": [108], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 42, "column": 19}}, {"id": 108, "type": "parenthesized_expression", "text": "(mask & sys_signal_usr)", "parent": 107, "children": [109], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 41, "column": 30}}, {"id": 109, "type": "binary_expression", "text": "mask & sys_signal_usr", "parent": 108, "children": [110, 111], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 29}}, {"id": 110, "type": "identifier", "text": "mask", "parent": 109, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 12}}, {"id": 111, "type": "identifier", "text": "sys_signal_usr", "parent": 109, "children": [], "start_point": {"row": 41, "column": 15}, "end_point": {"row": 41, "column": 29}}, {"id": 112, "type": "call_expression", "text": "(*handler_usr) ()", "parent": 107, "children": [113, 117], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 18}}, {"id": 113, "type": "parenthesized_expression", "text": "(*handler_usr)", "parent": 112, "children": [114], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 15}}, {"id": 114, "type": "pointer_expression", "text": "*handler_usr", "parent": 113, "children": [115, 116], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 14}}, {"id": 115, "type": "*", "text": "*", "parent": 114, "children": [], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 3}}, {"id": 116, "type": "identifier", "text": "handler_usr", "parent": 114, "children": [], "start_point": {"row": 42, "column": 3}, "end_point": {"row": 42, "column": 14}}, {"id": 117, "type": "argument_list", "text": "()", "parent": 112, "children": [], "start_point": {"row": 42, "column": 16}, "end_point": {"row": 42, "column": 18}}, {"id": 118, "type": "call_expression", "text": "SetSignal(EXT_SIGINT, EXT_SIGINT)", "parent": 75, "children": [119, 120], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 37}}, {"id": 119, "type": "identifier", "text": "SetSignal", "parent": 118, "children": [], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 13}}, {"id": 120, "type": "argument_list", "text": "(EXT_SIGINT, EXT_SIGINT)", "parent": 118, "children": [121, 122], "start_point": {"row": 44, "column": 13}, "end_point": {"row": 44, "column": 37}}, {"id": 121, "type": "identifier", "text": "EXT_SIGINT", "parent": 120, "children": [], "start_point": {"row": 44, "column": 14}, "end_point": {"row": 44, "column": 24}}, {"id": 122, "type": "identifier", "text": "EXT_SIGINT", "parent": 120, "children": [], "start_point": {"row": 44, "column": 26}, "end_point": {"row": 44, "column": 36}}, {"id": 123, "type": "return_statement", "text": "return mask;", "parent": 75, "children": [124], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 16}}, {"id": 124, "type": "identifier", "text": "mask", "parent": 123, "children": [], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 15}}]}, "node_categories": {"declarations": {"functions": [24, 48, 56, 64, 75, 77], "variables": [18, 27, 32, 37, 44, 54, 62, 70, 72, 80], "classes": [19, 38, 45], "imports": [0, 1, 6, 7, 11, 12, 15, 16], "modules": [], "enums": []}, "statements": {"expressions": [86, 87, 90, 91, 92, 97, 98, 101, 102, 103, 108, 109, 112, 113, 114, 118], "assignments": [], "loops": [], "conditionals": [3, 4, 5, 14, 21, 23, 25, 28, 31, 33, 36, 40, 41, 42, 43, 52, 60, 68, 73, 74, 76, 78, 81, 82, 84, 85, 88, 89, 94, 96, 99, 100, 105, 107, 110, 111, 116, 119, 121, 122, 124], "returns": [123], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 8, 13, 17], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 24, "universal_type": "function", "name": "unknown", "text_snippet": "SetSignal(unsigned long newSignals, unsigned long signalSet)"}, {"node_id": 48, "universal_type": "function", "name": "unknown", "text_snippet": "(*handler_hup) (void)"}, {"node_id": 56, "universal_type": "function", "name": "unknown", "text_snippet": "(*handler_alarm) (void)"}, {"node_id": 64, "universal_type": "function", "name": "unknown", "text_snippet": "(*handler_usr) (void)"}, {"node_id": 75, "universal_type": "function", "name": "unknown", "text_snippet": "ULONG catch_exception(__D0 ULONG mask)\n{\n /* Handle our special exceptions */\n if (mask & sys_"}, {"node_id": 77, "universal_type": "function", "name": "unknown", "text_snippet": "catch_exception(__D0 ULONG mask)"}], "class_declarations": [{"node_id": 19, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 38, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 45, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}], "import_statements": [{"node_id": 0, "text": "#include <exec/types.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 6, "text": "#include <dos/dos.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 11, "text": "#include <libraries/dos.h>\n"}, {"node_id": 12, "text": "#include"}, {"node_id": 15, "text": "#include \"nsignal.h\"\n"}, {"node_id": 16, "text": "#include"}]}, "original_source_code": "/* hosts/amiga/signal_rr.c\n**\n** Just the exception catcher -- it needs registerized args (-mRR) which\n** are not used elsewhere.\n**\n** 28-Feb-93 [lars] Done for DICE 2.07.53\n*/\n\n#include <exec/types.h>\n#ifdef INCLUDE_VERSION\n#include <dos/dos.h>\n#else\n#include <libraries/dos.h>\n#endif\n#include \"nsignal.h\"\nextern __stkargs ULONG SetSignal(unsigned long newSignals, unsigned long signalSet);\n\n\n/*-----------------------------------------------------------------------*/\n\nextern ULONG sys_signal_alarm,\t/* The system-signal-masks */\n sys_signal_hup, sys_signal_usr;\n\nextern void (*handler_hup) (void), (*handler_alarm) (void), (*handler_usr) (void);\n\n/*-----------------------------------------------------------------------\n** ULONG catch_exception (ULONG mask)\n**\n** Called by the OS if the task gets an exception, this dispatch to\n** the appropriate signal-function.\n** Note that the std-raise() also removes the handler, so our functions\n** are called manually.\n*/\n\n__regargs __geta4 ULONG catch_exception(__D0 ULONG mask)\n{\n /* Handle our special exceptions */\n if (mask & sys_signal_alarm)\n\t(*handler_alarm) ();\n if (mask & sys_signal_hup)\n\t(*handler_hup) ();\n if (mask & sys_signal_usr)\n\t(*handler_usr) ();\n /* Stop select() anyway */\n SetSignal(EXT_SIGINT, EXT_SIGINT);\n return mask;\n}\n\n/*************************************************************************/\n"}
80,209
c
/* * packet_private.h * simplepgp * * Created by <NAME> on 11/11/11. * * Copyright 2011 <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 _PACKET_PRIVATE_H #include "simplepgp.h" //#include "gcrypt.h" //#include <stdio.h> #include <setjmp.h> #include <pthread.h> /********************************************************************** ** ** MACROS ** ***********************************************************************/ #pragma mark Macros #define RAISE(err) do { \ pthread_mutex_lock(&spgp_mtx); \ _spgp_err = (err); \ Serial.printf("raise 0x%X\n",_spgp_err); \ pthread_mutex_unlock(&spgp_mtx); \ longjmp(exception,_spgp_err); \ } while(0) #define SAFE_IDX_INCREMENT(idx,max) \ do{ \ if (++(idx)>=(max)) {\ RAISE(BUFFER_OVERFLOW);\ } \ } while(0) #define Serial.printf(fmt, ...) do {\ if (debug_log_enabled) {\ Serial.printf("SPGP [%s():%d]: " fmt, \ __FUNCTION__, __LINE__, ## __VA_ARGS__);\ } } while(0) extern pthread_mutex_t spgp_mtx; extern uint8_t debug_log_enabled; extern uint32_t _spgp_err; extern jmp_buf exception; struct spgp_packet_header_struct { spgp_packet_t *parent; uint32_t contentLength; uint8_t rawTagByte; uint8_t isNewFormat; uint8_t type; uint8_t headerLength; uint8_t isPartial; }; struct spgp_packet_struct { spgp_pkt_header_t *header; union { spgp_public_pkt_t *pub; spgp_secret_pkt_t *secret; spgp_userid_pkt_t *userid; spgp_session_pkt_t *session; spgp_literal_pkt_t *literal; spgp_signature_pkt_t *signature; } c; spgp_packet_t *next; spgp_packet_t *prev; }; struct spgp_mpi_struct { uint8_t *data; uint32_t bits; uint32_t count; spgp_mpi_t *next; }; struct spgp_literal_packet_struct { char *filename; char *data; uint32_t dataLen; uint32_t filenameLen; }; struct spgp_signature_packet_struct { uint8_t version; uint8_t type; uint8_t asymAlgo; uint8_t hashAlgo; uint16_t hashedSubLength; uint16_t unhashedSubLength; uint16_t hashTest; spgp_mpi_t *mpiHead; }; struct spgp_userid_packet_struct { uint8_t *data; }; struct spgp_session_packet_struct { uint8_t keyid[8]; uint8_t version; uint8_t algo; uint8_t symAlgo; uint32_t keylen; char *key; spgp_mpi_t *mpi1; spgp_mpi_t *mpi2; }; struct spgp_public_packet_struct { // This is public key stuff uint8_t version; uint32_t creationTime; uint8_t asymAlgo; spgp_mpi_t *mpiHead; uint8_t mpiCount; uint8_t *fingerprint; } __attribute__((packed)); struct spgp_secret_packet_struct { // This is public key stuff spgp_public_pkt_t pub; // This is secret key stuff uint8_t isDecrypted; uint8_t s2kType; uint8_t s2kEncryption; uint8_t s2kSpecifier; uint8_t s2kHashAlgo; uint8_t *s2kSalt; uint8_t s2kSaltLength; uint8_t s2kCount; uint8_t *encryptedData; uint32_t encryptedDataLength; uint8_t *key; uint32_t keyLength; uint8_t *iv; uint8_t ivLength; } __attribute__((packed)); typedef enum { GENERIC_ERROR = 0x100, OUT_OF_MEMORY, INVALID_HEADER, FORMAT_UNSUPPORTED, INVALID_ARGS, BUFFER_OVERFLOW, INCOMPLETE_PACKET, DECRYPT_FAILED, GCRY_ERROR, KEYCHAIN_ERROR, ZLIB_ERROR, } spgp_error_t; typedef enum { PKT_TYPE_SESSION = 1, PKT_TYPE_SIGNATURE = 2, PKT_TYPE_SECRET_KEY = 5, PKT_TYPE_PUBLIC_KEY = 6, PKT_TYPE_SECRET_SUBKEY = 7, PKT_TYPE_COMPRESSED_DATA = 8, PKT_TYPE_LITERAL_DATA = 11, PKT_TYPE_USER_ID = 13, PKT_TYPE_PUBLIC_SUBKEY = 14, PKT_TYPE_SYM_ENC_INT_DATA = 18, } spgp_pkt_type_t; typedef enum { ASYM_ALGO_RSA = 1, ASYM_ALGO_RSA_ENCRYPT = 2, ASYM_ALGO_RSA_SIGN = 3, ASYM_ALGO_ELGAMAL = 16, ASYM_ALGO_DSA = 17, } spgp_asym_algo_t; typedef enum { SYM_ALGO_PLAINTEXT = 0, SYM_ALGO_IDEA, SYM_ALGO_3DES, SYM_ALGO_CAST5, SYM_ALGO_BLOWFISH, SYM_ALGO_AES128, SYM_ALGO_AES192, SYM_ALGO_AES256, SYM_ALGO_TWOFISH, } spgp_sym_algo_t; typedef enum { HASH_ALGO_MD5 = 1, HASH_ALGO_SHA1, HASH_ALGO_RIPEMD160, HASH_ALGO_SHA256, HASH_ALGO_SHA384, HASH_ALGO_SHA512, HASH_ALGO_SHA224, } spgp_hash_algo_t; typedef enum { COMPRESSION_UNCOMPRESSED = 0, COMPRESSION_ZIP, COMPRESSION_ZLIB, COMPRESSION_BZIP2, } spgp_compression_t; typedef enum { S2K_TYPE_SIMPLE = 0, S2K_TYPE_SALTED, S2K_TYPE_RESERVED, S2K_TYPE_ITERATED, } spgp_s2k_type_t; #define _PACKET_PRIVATE_H #endif
23.29
208
(translation_unit) "/*\n * packet_private.h\n * simplepgp\n *\n * Created by <NAME> on 11/11/11.\n *\n * Copyright 2011 <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 */\n\n#ifndef _PACKET_PRIVATE_H\n\n#include "simplepgp.h"\n//#include "gcrypt.h"\n\n//#include <stdio.h>\n#include <setjmp.h>\n#include <pthread.h>\n\n\n/**********************************************************************\n**\n** MACROS\n**\n***********************************************************************/\n#pragma mark Macros\n\n#define RAISE(err) do { \\n pthread_mutex_lock(&spgp_mtx); \\n _spgp_err = (err); \\n Serial.printf("raise 0x%X\n",_spgp_err); \\n pthread_mutex_unlock(&spgp_mtx); \\n longjmp(exception,_spgp_err); \\n } while(0)\n \n\n#define SAFE_IDX_INCREMENT(idx,max) \\n do{ \\n if (++(idx)>=(max)) {\\n RAISE(BUFFER_OVERFLOW);\\n } \\n } while(0)\n \n#define Serial.printf(fmt, ...) do {\\n if (debug_log_enabled) {\\n Serial.printf("SPGP [%s():%d]: " fmt, \\n __FUNCTION__, __LINE__, ## __VA_ARGS__);\\n } } while(0)\n \n\n\nextern pthread_mutex_t spgp_mtx;\nextern uint8_t debug_log_enabled;\nextern uint32_t _spgp_err;\nextern jmp_buf exception;\n\n\nstruct spgp_packet_header_struct {\n spgp_packet_t *parent;\n uint32_t contentLength;\n uint8_t rawTagByte;\n uint8_t isNewFormat;\n uint8_t type;\n uint8_t headerLength;\n uint8_t isPartial;\n};\n\nstruct spgp_packet_struct {\n spgp_pkt_header_t *header;\n union {\n spgp_public_pkt_t *pub;\n spgp_secret_pkt_t *secret;\n spgp_userid_pkt_t *userid;\n spgp_session_pkt_t *session;\n spgp_literal_pkt_t *literal;\n spgp_signature_pkt_t *signature;\n } c;\n spgp_packet_t *next;\n spgp_packet_t *prev;\n};\n\nstruct spgp_mpi_struct {\n uint8_t *data;\n uint32_t bits;\n uint32_t count;\n spgp_mpi_t *next;\n}; \n\nstruct spgp_literal_packet_struct {\n char *filename;\n char *data;\n uint32_t dataLen;\n uint32_t filenameLen;\n};\n\nstruct spgp_signature_packet_struct {\n uint8_t version;\n uint8_t type;\n uint8_t asymAlgo;\n uint8_t hashAlgo;\n uint16_t hashedSubLength;\n uint16_t unhashedSubLength;\n uint16_t hashTest;\n spgp_mpi_t *mpiHead;\n};\n\n\nstruct spgp_userid_packet_struct {\n uint8_t *data;\n};\n\nstruct spgp_session_packet_struct {\n uint8_t keyid[8];\n uint8_t version;\n uint8_t algo;\n uint8_t symAlgo;\n uint32_t keylen;\n char *key;\n spgp_mpi_t *mpi1;\n spgp_mpi_t *mpi2;\n};\n\nstruct spgp_public_packet_struct {\n// This is public key stuff\n uint8_t version;\n uint32_t creationTime;\n uint8_t asymAlgo;\n spgp_mpi_t *mpiHead;\n uint8_t mpiCount;\n uint8_t *fingerprint;\n} __attribute__((packed));\n\nstruct spgp_secret_packet_struct {\n// This is public key stuff\n spgp_public_pkt_t pub;\n// This is secret key stuff \n uint8_t isDecrypted;\n uint8_t s2kType;\n uint8_t s2kEncryption;\n uint8_t s2kSpecifier;\n uint8_t s2kHashAlgo;\n uint8_t *s2kSalt;\n uint8_t s2kSaltLength;\n uint8_t s2kCount;\n uint8_t *encryptedData;\n uint32_t encryptedDataLength;\n uint8_t *key;\n uint32_t keyLength;\n uint8_t *iv;\n uint8_t ivLength;\n} __attribute__((packed));\n\ntypedef enum {\n GENERIC_ERROR = 0x100,\n OUT_OF_MEMORY,\n INVALID_HEADER,\n FORMAT_UNSUPPORTED,\n INVALID_ARGS,\n BUFFER_OVERFLOW,\n INCOMPLETE_PACKET,\n DECRYPT_FAILED,\n GCRY_ERROR,\n KEYCHAIN_ERROR,\n ZLIB_ERROR,\n} spgp_error_t;\n\n\ntypedef enum {\n PKT_TYPE_SESSION = 1,\n PKT_TYPE_SIGNATURE = 2,\n PKT_TYPE_SECRET_KEY = 5,\n PKT_TYPE_PUBLIC_KEY = 6,\n PKT_TYPE_SECRET_SUBKEY = 7,\n PKT_TYPE_COMPRESSED_DATA = 8,\n PKT_TYPE_LITERAL_DATA = 11,\n PKT_TYPE_USER_ID = 13,\n PKT_TYPE_PUBLIC_SUBKEY = 14,\n PKT_TYPE_SYM_ENC_INT_DATA = 18,\n} spgp_pkt_type_t;\n\ntypedef enum {\n ASYM_ALGO_RSA = 1,\n ASYM_ALGO_RSA_ENCRYPT = 2,\n ASYM_ALGO_RSA_SIGN = 3,\n ASYM_ALGO_ELGAMAL = 16,\n ASYM_ALGO_DSA = 17,\n} spgp_asym_algo_t;\n\ntypedef enum {\n SYM_ALGO_PLAINTEXT = 0,\n SYM_ALGO_IDEA,\n SYM_ALGO_3DES,\n SYM_ALGO_CAST5,\n SYM_ALGO_BLOWFISH,\n SYM_ALGO_AES128,\n SYM_ALGO_AES192,\n SYM_ALGO_AES256,\n SYM_ALGO_TWOFISH,\n} spgp_sym_algo_t;\n\ntypedef enum {\n HASH_ALGO_MD5 = 1,\n HASH_ALGO_SHA1,\n HASH_ALGO_RIPEMD160,\n HASH_ALGO_SHA256,\n HASH_ALGO_SHA384,\n HASH_ALGO_SHA512,\n HASH_ALGO_SHA224,\n} spgp_hash_algo_t;\n\ntypedef enum {\n COMPRESSION_UNCOMPRESSED = 0,\n COMPRESSION_ZIP,\n COMPRESSION_ZLIB,\n COMPRESSION_BZIP2,\n} spgp_compression_t;\n\ntypedef enum {\n S2K_TYPE_SIMPLE = 0,\n S2K_TYPE_SALTED,\n S2K_TYPE_RESERVED,\n S2K_TYPE_ITERATED,\n} spgp_s2k_type_t;\n\n\n#define _PACKET_PRIVATE_H\n#endif\n" (comment) "/*\n * packet_private.h\n * simplepgp\n *\n * Created by <NAME> on 11/11/11.\n *\n * Copyright 2011 <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 */" (preproc_ifdef) "#ifndef _PACKET_PRIVATE_H\n\n#include "simplepgp.h"\n//#include "gcrypt.h"\n\n//#include <stdio.h>\n#include <setjmp.h>\n#include <pthread.h>\n\n\n/**********************************************************************\n**\n** MACROS\n**\n***********************************************************************/\n#pragma mark Macros\n\n#define RAISE(err) do { \\n pthread_mutex_lock(&spgp_mtx); \\n _spgp_err = (err); \\n Serial.printf("raise 0x%X\n",_spgp_err); \\n pthread_mutex_unlock(&spgp_mtx); \\n longjmp(exception,_spgp_err); \\n } while(0)\n \n\n#define SAFE_IDX_INCREMENT(idx,max) \\n do{ \\n if (++(idx)>=(max)) {\\n RAISE(BUFFER_OVERFLOW);\\n } \\n } while(0)\n \n#define Serial.printf(fmt, ...) do {\\n if (debug_log_enabled) {\\n Serial.printf("SPGP [%s():%d]: " fmt, \\n __FUNCTION__, __LINE__, ## __VA_ARGS__);\\n } } while(0)\n \n\n\nextern pthread_mutex_t spgp_mtx;\nextern uint8_t debug_log_enabled;\nextern uint32_t _spgp_err;\nextern jmp_buf exception;\n\n\nstruct spgp_packet_header_struct {\n spgp_packet_t *parent;\n uint32_t contentLength;\n uint8_t rawTagByte;\n uint8_t isNewFormat;\n uint8_t type;\n uint8_t headerLength;\n uint8_t isPartial;\n};\n\nstruct spgp_packet_struct {\n spgp_pkt_header_t *header;\n union {\n spgp_public_pkt_t *pub;\n spgp_secret_pkt_t *secret;\n spgp_userid_pkt_t *userid;\n spgp_session_pkt_t *session;\n spgp_literal_pkt_t *literal;\n spgp_signature_pkt_t *signature;\n } c;\n spgp_packet_t *next;\n spgp_packet_t *prev;\n};\n\nstruct spgp_mpi_struct {\n uint8_t *data;\n uint32_t bits;\n uint32_t count;\n spgp_mpi_t *next;\n}; \n\nstruct spgp_literal_packet_struct {\n char *filename;\n char *data;\n uint32_t dataLen;\n uint32_t filenameLen;\n};\n\nstruct spgp_signature_packet_struct {\n uint8_t version;\n uint8_t type;\n uint8_t asymAlgo;\n uint8_t hashAlgo;\n uint16_t hashedSubLength;\n uint16_t unhashedSubLength;\n uint16_t hashTest;\n spgp_mpi_t *mpiHead;\n};\n\n\nstruct spgp_userid_packet_struct {\n uint8_t *data;\n};\n\nstruct spgp_session_packet_struct {\n uint8_t keyid[8];\n uint8_t version;\n uint8_t algo;\n uint8_t symAlgo;\n uint32_t keylen;\n char *key;\n spgp_mpi_t *mpi1;\n spgp_mpi_t *mpi2;\n};\n\nstruct spgp_public_packet_struct {\n// This is public key stuff\n uint8_t version;\n uint32_t creationTime;\n uint8_t asymAlgo;\n spgp_mpi_t *mpiHead;\n uint8_t mpiCount;\n uint8_t *fingerprint;\n} __attribute__((packed));\n\nstruct spgp_secret_packet_struct {\n// This is public key stuff\n spgp_public_pkt_t pub;\n// This is secret key stuff \n uint8_t isDecrypted;\n uint8_t s2kType;\n uint8_t s2kEncryption;\n uint8_t s2kSpecifier;\n uint8_t s2kHashAlgo;\n uint8_t *s2kSalt;\n uint8_t s2kSaltLength;\n uint8_t s2kCount;\n uint8_t *encryptedData;\n uint32_t encryptedDataLength;\n uint8_t *key;\n uint32_t keyLength;\n uint8_t *iv;\n uint8_t ivLength;\n} __attribute__((packed));\n\ntypedef enum {\n GENERIC_ERROR = 0x100,\n OUT_OF_MEMORY,\n INVALID_HEADER,\n FORMAT_UNSUPPORTED,\n INVALID_ARGS,\n BUFFER_OVERFLOW,\n INCOMPLETE_PACKET,\n DECRYPT_FAILED,\n GCRY_ERROR,\n KEYCHAIN_ERROR,\n ZLIB_ERROR,\n} spgp_error_t;\n\n\ntypedef enum {\n PKT_TYPE_SESSION = 1,\n PKT_TYPE_SIGNATURE = 2,\n PKT_TYPE_SECRET_KEY = 5,\n PKT_TYPE_PUBLIC_KEY = 6,\n PKT_TYPE_SECRET_SUBKEY = 7,\n PKT_TYPE_COMPRESSED_DATA = 8,\n PKT_TYPE_LITERAL_DATA = 11,\n PKT_TYPE_USER_ID = 13,\n PKT_TYPE_PUBLIC_SUBKEY = 14,\n PKT_TYPE_SYM_ENC_INT_DATA = 18,\n} spgp_pkt_type_t;\n\ntypedef enum {\n ASYM_ALGO_RSA = 1,\n ASYM_ALGO_RSA_ENCRYPT = 2,\n ASYM_ALGO_RSA_SIGN = 3,\n ASYM_ALGO_ELGAMAL = 16,\n ASYM_ALGO_DSA = 17,\n} spgp_asym_algo_t;\n\ntypedef enum {\n SYM_ALGO_PLAINTEXT = 0,\n SYM_ALGO_IDEA,\n SYM_ALGO_3DES,\n SYM_ALGO_CAST5,\n SYM_ALGO_BLOWFISH,\n SYM_ALGO_AES128,\n SYM_ALGO_AES192,\n SYM_ALGO_AES256,\n SYM_ALGO_TWOFISH,\n} spgp_sym_algo_t;\n\ntypedef enum {\n HASH_ALGO_MD5 = 1,\n HASH_ALGO_SHA1,\n HASH_ALGO_RIPEMD160,\n HASH_ALGO_SHA256,\n HASH_ALGO_SHA384,\n HASH_ALGO_SHA512,\n HASH_ALGO_SHA224,\n} spgp_hash_algo_t;\n\ntypedef enum {\n COMPRESSION_UNCOMPRESSED = 0,\n COMPRESSION_ZIP,\n COMPRESSION_ZLIB,\n COMPRESSION_BZIP2,\n} spgp_compression_t;\n\ntypedef enum {\n S2K_TYPE_SIMPLE = 0,\n S2K_TYPE_SALTED,\n S2K_TYPE_RESERVED,\n S2K_TYPE_ITERATED,\n} spgp_s2k_type_t;\n\n\n#define _PACKET_PRIVATE_H\n#endif" (#ifndef) "#ifndef" (identifier) "_PACKET_PRIVATE_H" (preproc_include) "#include "simplepgp.h"\n" (#include) "#include" (string_literal) ""simplepgp.h"" (") """ (string_content) "simplepgp.h" (") """ (comment) "//#include "gcrypt.h"" (comment) "//#include <stdio.h>" (preproc_include) "#include <setjmp.h>\n" (#include) "#include" (system_lib_string) "<setjmp.h>" (preproc_include) "#include <pthread.h>\n" (#include) "#include" (system_lib_string) "<pthread.h>" (comment) "/**********************************************************************\n**\n** MACROS\n**\n***********************************************************************/" (preproc_call) "#pragma mark Macros\n" (preproc_directive) "#pragma" (preproc_arg) "mark Macros" (preproc_function_def) "#define RAISE(err) do { \\n pthread_mutex_lock(&spgp_mtx); \\n _spgp_err = (err); \\n Serial.printf("raise 0x%X\n",_spgp_err); \\n pthread_mutex_unlock(&spgp_mtx); \\n longjmp(exception,_spgp_err); \\n } while(0)\n" (#define) "#define" (identifier) "RAISE" (preproc_params) "(err)" (() "(" (identifier) "err" ()) ")" (preproc_arg) "do { \\n pthread_mutex_lock(&spgp_mtx); \\n _spgp_err = (err); \\n Serial.printf("raise 0x%X\n",_spgp_err); \\n pthread_mutex_unlock(&spgp_mtx); \\n longjmp(exception,_spgp_err); \\n } while(0)" (preproc_function_def) "#define SAFE_IDX_INCREMENT(idx,max) \\n do{ \\n if (++(idx)>=(max)) {\\n RAISE(BUFFER_OVERFLOW);\\n } \\n } while(0)\n" (#define) "#define" (identifier) "SAFE_IDX_INCREMENT" (preproc_params) "(idx,max)" (() "(" (identifier) "idx" (,) "," (identifier) "max" ()) ")" (preproc_arg) "do{ \\n if (++(idx)>=(max)) {\\n RAISE(BUFFER_OVERFLOW);\\n } \\n } while(0)" (preproc_def) "#define Serial.printf(fmt, ...) do {\\n if (debug_log_enabled) {\\n Serial.printf("SPGP [%s():%d]: " fmt, \\n __FUNCTION__, __LINE__, ## __VA_ARGS__);\\n } } while(0)\n" (#define) "#define" (identifier) "Serial" (preproc_arg) ".printf(fmt, ...) do {\\n if (debug_log_enabled) {\\n Serial.printf("SPGP [%s():%d]: " fmt, \\n __FUNCTION__, __LINE__, ## __VA_ARGS__);\\n } } while(0)" (declaration) "extern pthread_mutex_t spgp_mtx;" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "pthread_mutex_t" (identifier) "spgp_mtx" (;) ";" (declaration) "extern uint8_t debug_log_enabled;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "uint8_t" (identifier) "debug_log_enabled" (;) ";" (declaration) "extern uint32_t _spgp_err;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "uint32_t" (identifier) "_spgp_err" (;) ";" (declaration) "extern jmp_buf exception;" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "jmp_buf" (identifier) "exception" (;) ";" (struct_specifier) "struct spgp_packet_header_struct {\n spgp_packet_t *parent;\n uint32_t contentLength;\n uint8_t rawTagByte;\n uint8_t isNewFormat;\n uint8_t type;\n uint8_t headerLength;\n uint8_t isPartial;\n}" (struct) "struct" (type_identifier) "spgp_packet_header_struct" (field_declaration_list) "{\n spgp_packet_t *parent;\n uint32_t contentLength;\n uint8_t rawTagByte;\n uint8_t isNewFormat;\n uint8_t type;\n uint8_t headerLength;\n uint8_t isPartial;\n}" ({) "{" (field_declaration) "spgp_packet_t *parent;" (type_identifier) "spgp_packet_t" (pointer_declarator) "*parent" (*) "*" (field_identifier) "parent" (;) ";" (field_declaration) "uint32_t contentLength;" (primitive_type) "uint32_t" (field_identifier) "contentLength" (;) ";" (field_declaration) "uint8_t rawTagByte;" (primitive_type) "uint8_t" (field_identifier) "rawTagByte" (;) ";" (field_declaration) "uint8_t isNewFormat;" (primitive_type) "uint8_t" (field_identifier) "isNewFormat" (;) ";" (field_declaration) "uint8_t type;" (primitive_type) "uint8_t" (field_identifier) "type" (;) ";" (field_declaration) "uint8_t headerLength;" (primitive_type) "uint8_t" (field_identifier) "headerLength" (;) ";" (field_declaration) "uint8_t isPartial;" (primitive_type) "uint8_t" (field_identifier) "isPartial" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct spgp_packet_struct {\n spgp_pkt_header_t *header;\n union {\n spgp_public_pkt_t *pub;\n spgp_secret_pkt_t *secret;\n spgp_userid_pkt_t *userid;\n spgp_session_pkt_t *session;\n spgp_literal_pkt_t *literal;\n spgp_signature_pkt_t *signature;\n } c;\n spgp_packet_t *next;\n spgp_packet_t *prev;\n}" (struct) "struct" (type_identifier) "spgp_packet_struct" (field_declaration_list) "{\n spgp_pkt_header_t *header;\n union {\n spgp_public_pkt_t *pub;\n spgp_secret_pkt_t *secret;\n spgp_userid_pkt_t *userid;\n spgp_session_pkt_t *session;\n spgp_literal_pkt_t *literal;\n spgp_signature_pkt_t *signature;\n } c;\n spgp_packet_t *next;\n spgp_packet_t *prev;\n}" ({) "{" (field_declaration) "spgp_pkt_header_t *header;" (type_identifier) "spgp_pkt_header_t" (pointer_declarator) "*header" (*) "*" (field_identifier) "header" (;) ";" (field_declaration) "union {\n spgp_public_pkt_t *pub;\n spgp_secret_pkt_t *secret;\n spgp_userid_pkt_t *userid;\n spgp_session_pkt_t *session;\n spgp_literal_pkt_t *literal;\n spgp_signature_pkt_t *signature;\n } c;" (union_specifier) "union {\n spgp_public_pkt_t *pub;\n spgp_secret_pkt_t *secret;\n spgp_userid_pkt_t *userid;\n spgp_session_pkt_t *session;\n spgp_literal_pkt_t *literal;\n spgp_signature_pkt_t *signature;\n }" (union) "union" (field_declaration_list) "{\n spgp_public_pkt_t *pub;\n spgp_secret_pkt_t *secret;\n spgp_userid_pkt_t *userid;\n spgp_session_pkt_t *session;\n spgp_literal_pkt_t *literal;\n spgp_signature_pkt_t *signature;\n }" ({) "{" (field_declaration) "spgp_public_pkt_t *pub;" (type_identifier) "spgp_public_pkt_t" (pointer_declarator) "*pub" (*) "*" (field_identifier) "pub" (;) ";" (field_declaration) "spgp_secret_pkt_t *secret;" (type_identifier) "spgp_secret_pkt_t" (pointer_declarator) "*secret" (*) "*" (field_identifier) "secret" (;) ";" (field_declaration) "spgp_userid_pkt_t *userid;" (type_identifier) "spgp_userid_pkt_t" (pointer_declarator) "*userid" (*) "*" (field_identifier) "userid" (;) ";" (field_declaration) "spgp_session_pkt_t *session;" (type_identifier) "spgp_session_pkt_t" (pointer_declarator) "*session" (*) "*" (field_identifier) "session" (;) ";" (field_declaration) "spgp_literal_pkt_t *literal;" (type_identifier) "spgp_literal_pkt_t" (pointer_declarator) "*literal" (*) "*" (field_identifier) "literal" (;) ";" (field_declaration) "spgp_signature_pkt_t *signature;" (type_identifier) "spgp_signature_pkt_t" (pointer_declarator) "*signature" (*) "*" (field_identifier) "signature" (;) ";" (}) "}" (field_identifier) "c" (;) ";" (field_declaration) "spgp_packet_t *next;" (type_identifier) "spgp_packet_t" (pointer_declarator) "*next" (*) "*" (field_identifier) "next" (;) ";" (field_declaration) "spgp_packet_t *prev;" (type_identifier) "spgp_packet_t" (pointer_declarator) "*prev" (*) "*" (field_identifier) "prev" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct spgp_mpi_struct {\n uint8_t *data;\n uint32_t bits;\n uint32_t count;\n spgp_mpi_t *next;\n}" (struct) "struct" (type_identifier) "spgp_mpi_struct" (field_declaration_list) "{\n uint8_t *data;\n uint32_t bits;\n uint32_t count;\n spgp_mpi_t *next;\n}" ({) "{" (field_declaration) "uint8_t *data;" (primitive_type) "uint8_t" (pointer_declarator) "*data" (*) "*" (field_identifier) "data" (;) ";" (field_declaration) "uint32_t bits;" (primitive_type) "uint32_t" (field_identifier) "bits" (;) ";" (field_declaration) "uint32_t count;" (primitive_type) "uint32_t" (field_identifier) "count" (;) ";" (field_declaration) "spgp_mpi_t *next;" (type_identifier) "spgp_mpi_t" (pointer_declarator) "*next" (*) "*" (field_identifier) "next" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct spgp_literal_packet_struct {\n char *filename;\n char *data;\n uint32_t dataLen;\n uint32_t filenameLen;\n}" (struct) "struct" (type_identifier) "spgp_literal_packet_struct" (field_declaration_list) "{\n char *filename;\n char *data;\n uint32_t dataLen;\n uint32_t filenameLen;\n}" ({) "{" (field_declaration) "char *filename;" (primitive_type) "char" (pointer_declarator) "*filename" (*) "*" (field_identifier) "filename" (;) ";" (field_declaration) "char *data;" (primitive_type) "char" (pointer_declarator) "*data" (*) "*" (field_identifier) "data" (;) ";" (field_declaration) "uint32_t dataLen;" (primitive_type) "uint32_t" (field_identifier) "dataLen" (;) ";" (field_declaration) "uint32_t filenameLen;" (primitive_type) "uint32_t" (field_identifier) "filenameLen" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct spgp_signature_packet_struct {\n uint8_t version;\n uint8_t type;\n uint8_t asymAlgo;\n uint8_t hashAlgo;\n uint16_t hashedSubLength;\n uint16_t unhashedSubLength;\n uint16_t hashTest;\n spgp_mpi_t *mpiHead;\n}" (struct) "struct" (type_identifier) "spgp_signature_packet_struct" (field_declaration_list) "{\n uint8_t version;\n uint8_t type;\n uint8_t asymAlgo;\n uint8_t hashAlgo;\n uint16_t hashedSubLength;\n uint16_t unhashedSubLength;\n uint16_t hashTest;\n spgp_mpi_t *mpiHead;\n}" ({) "{" (field_declaration) "uint8_t version;" (primitive_type) "uint8_t" (field_identifier) "version" (;) ";" (field_declaration) "uint8_t type;" (primitive_type) "uint8_t" (field_identifier) "type" (;) ";" (field_declaration) "uint8_t asymAlgo;" (primitive_type) "uint8_t" (field_identifier) "asymAlgo" (;) ";" (field_declaration) "uint8_t hashAlgo;" (primitive_type) "uint8_t" (field_identifier) "hashAlgo" (;) ";" (field_declaration) "uint16_t hashedSubLength;" (primitive_type) "uint16_t" (field_identifier) "hashedSubLength" (;) ";" (field_declaration) "uint16_t unhashedSubLength;" (primitive_type) "uint16_t" (field_identifier) "unhashedSubLength" (;) ";" (field_declaration) "uint16_t hashTest;" (primitive_type) "uint16_t" (field_identifier) "hashTest" (;) ";" (field_declaration) "spgp_mpi_t *mpiHead;" (type_identifier) "spgp_mpi_t" (pointer_declarator) "*mpiHead" (*) "*" (field_identifier) "mpiHead" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct spgp_userid_packet_struct {\n uint8_t *data;\n}" (struct) "struct" (type_identifier) "spgp_userid_packet_struct" (field_declaration_list) "{\n uint8_t *data;\n}" ({) "{" (field_declaration) "uint8_t *data;" (primitive_type) "uint8_t" (pointer_declarator) "*data" (*) "*" (field_identifier) "data" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct spgp_session_packet_struct {\n uint8_t keyid[8];\n uint8_t version;\n uint8_t algo;\n uint8_t symAlgo;\n uint32_t keylen;\n char *key;\n spgp_mpi_t *mpi1;\n spgp_mpi_t *mpi2;\n}" (struct) "struct" (type_identifier) "spgp_session_packet_struct" (field_declaration_list) "{\n uint8_t keyid[8];\n uint8_t version;\n uint8_t algo;\n uint8_t symAlgo;\n uint32_t keylen;\n char *key;\n spgp_mpi_t *mpi1;\n spgp_mpi_t *mpi2;\n}" ({) "{" (field_declaration) "uint8_t keyid[8];" (primitive_type) "uint8_t" (array_declarator) "keyid[8]" (field_identifier) "keyid" ([) "[" (number_literal) "8" (]) "]" (;) ";" (field_declaration) "uint8_t version;" (primitive_type) "uint8_t" (field_identifier) "version" (;) ";" (field_declaration) "uint8_t algo;" (primitive_type) "uint8_t" (field_identifier) "algo" (;) ";" (field_declaration) "uint8_t symAlgo;" (primitive_type) "uint8_t" (field_identifier) "symAlgo" (;) ";" (field_declaration) "uint32_t keylen;" (primitive_type) "uint32_t" (field_identifier) "keylen" (;) ";" (field_declaration) "char *key;" (primitive_type) "char" (pointer_declarator) "*key" (*) "*" (field_identifier) "key" (;) ";" (field_declaration) "spgp_mpi_t *mpi1;" (type_identifier) "spgp_mpi_t" (pointer_declarator) "*mpi1" (*) "*" (field_identifier) "mpi1" (;) ";" (field_declaration) "spgp_mpi_t *mpi2;" (type_identifier) "spgp_mpi_t" (pointer_declarator) "*mpi2" (*) "*" (field_identifier) "mpi2" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct spgp_public_packet_struct {\n// This is public key stuff\n uint8_t version;\n uint32_t creationTime;\n uint8_t asymAlgo;\n spgp_mpi_t *mpiHead;\n uint8_t mpiCount;\n uint8_t *fingerprint;\n} __attribute__((packed))" (struct) "struct" (type_identifier) "spgp_public_packet_struct" (field_declaration_list) "{\n// This is public key stuff\n uint8_t version;\n uint32_t creationTime;\n uint8_t asymAlgo;\n spgp_mpi_t *mpiHead;\n uint8_t mpiCount;\n uint8_t *fingerprint;\n}" ({) "{" (comment) "// This is public key stuff" (field_declaration) "uint8_t version;" (primitive_type) "uint8_t" (field_identifier) "version" (;) ";" (field_declaration) "uint32_t creationTime;" (primitive_type) "uint32_t" (field_identifier) "creationTime" (;) ";" (field_declaration) "uint8_t asymAlgo;" (primitive_type) "uint8_t" (field_identifier) "asymAlgo" (;) ";" (field_declaration) "spgp_mpi_t *mpiHead;" (type_identifier) "spgp_mpi_t" (pointer_declarator) "*mpiHead" (*) "*" (field_identifier) "mpiHead" (;) ";" (field_declaration) "uint8_t mpiCount;" (primitive_type) "uint8_t" (field_identifier) "mpiCount" (;) ";" (field_declaration) "uint8_t *fingerprint;" (primitive_type) "uint8_t" (pointer_declarator) "*fingerprint" (*) "*" (field_identifier) "fingerprint" (;) ";" (}) "}" (attribute_specifier) "__attribute__((packed))" (__attribute__) "__attribute__" (() "(" (argument_list) "(packed)" (() "(" (identifier) "packed" ()) ")" ()) ")" (;) ";" (struct_specifier) "struct spgp_secret_packet_struct {\n// This is public key stuff\n spgp_public_pkt_t pub;\n// This is secret key stuff \n uint8_t isDecrypted;\n uint8_t s2kType;\n uint8_t s2kEncryption;\n uint8_t s2kSpecifier;\n uint8_t s2kHashAlgo;\n uint8_t *s2kSalt;\n uint8_t s2kSaltLength;\n uint8_t s2kCount;\n uint8_t *encryptedData;\n uint32_t encryptedDataLength;\n uint8_t *key;\n uint32_t keyLength;\n uint8_t *iv;\n uint8_t ivLength;\n} __attribute__((packed))" (struct) "struct" (type_identifier) "spgp_secret_packet_struct" (field_declaration_list) "{\n// This is public key stuff\n spgp_public_pkt_t pub;\n// This is secret key stuff \n uint8_t isDecrypted;\n uint8_t s2kType;\n uint8_t s2kEncryption;\n uint8_t s2kSpecifier;\n uint8_t s2kHashAlgo;\n uint8_t *s2kSalt;\n uint8_t s2kSaltLength;\n uint8_t s2kCount;\n uint8_t *encryptedData;\n uint32_t encryptedDataLength;\n uint8_t *key;\n uint32_t keyLength;\n uint8_t *iv;\n uint8_t ivLength;\n}" ({) "{" (comment) "// This is public key stuff" (field_declaration) "spgp_public_pkt_t pub;" (type_identifier) "spgp_public_pkt_t" (field_identifier) "pub" (;) ";" (comment) "// This is secret key stuff " (field_declaration) "uint8_t isDecrypted;" (primitive_type) "uint8_t" (field_identifier) "isDecrypted" (;) ";" (field_declaration) "uint8_t s2kType;" (primitive_type) "uint8_t" (field_identifier) "s2kType" (;) ";" (field_declaration) "uint8_t s2kEncryption;" (primitive_type) "uint8_t" (field_identifier) "s2kEncryption" (;) ";" (field_declaration) "uint8_t s2kSpecifier;" (primitive_type) "uint8_t" (field_identifier) "s2kSpecifier" (;) ";" (field_declaration) "uint8_t s2kHashAlgo;" (primitive_type) "uint8_t" (field_identifier) "s2kHashAlgo" (;) ";" (field_declaration) "uint8_t *s2kSalt;" (primitive_type) "uint8_t" (pointer_declarator) "*s2kSalt" (*) "*" (field_identifier) "s2kSalt" (;) ";" (field_declaration) "uint8_t s2kSaltLength;" (primitive_type) "uint8_t" (field_identifier) "s2kSaltLength" (;) ";" (field_declaration) "uint8_t s2kCount;" (primitive_type) "uint8_t" (field_identifier) "s2kCount" (;) ";" (field_declaration) "uint8_t *encryptedData;" (primitive_type) "uint8_t" (pointer_declarator) "*encryptedData" (*) "*" (field_identifier) "encryptedData" (;) ";" (field_declaration) "uint32_t encryptedDataLength;" (primitive_type) "uint32_t" (field_identifier) "encryptedDataLength" (;) ";" (field_declaration) "uint8_t *key;" (primitive_type) "uint8_t" (pointer_declarator) "*key" (*) "*" (field_identifier) "key" (;) ";" (field_declaration) "uint32_t keyLength;" (primitive_type) "uint32_t" (field_identifier) "keyLength" (;) ";" (field_declaration) "uint8_t *iv;" (primitive_type) "uint8_t" (pointer_declarator) "*iv" (*) "*" (field_identifier) "iv" (;) ";" (field_declaration) "uint8_t ivLength;" (primitive_type) "uint8_t" (field_identifier) "ivLength" (;) ";" (}) "}" (attribute_specifier) "__attribute__((packed))" (__attribute__) "__attribute__" (() "(" (argument_list) "(packed)" (() "(" (identifier) "packed" ()) ")" ()) ")" (;) ";" (type_definition) "typedef enum {\n GENERIC_ERROR = 0x100,\n OUT_OF_MEMORY,\n INVALID_HEADER,\n FORMAT_UNSUPPORTED,\n INVALID_ARGS,\n BUFFER_OVERFLOW,\n INCOMPLETE_PACKET,\n DECRYPT_FAILED,\n GCRY_ERROR,\n KEYCHAIN_ERROR,\n ZLIB_ERROR,\n} spgp_error_t;" (typedef) "typedef" (enum_specifier) "enum {\n GENERIC_ERROR = 0x100,\n OUT_OF_MEMORY,\n INVALID_HEADER,\n FORMAT_UNSUPPORTED,\n INVALID_ARGS,\n BUFFER_OVERFLOW,\n INCOMPLETE_PACKET,\n DECRYPT_FAILED,\n GCRY_ERROR,\n KEYCHAIN_ERROR,\n ZLIB_ERROR,\n}" (enum) "enum" (enumerator_list) "{\n GENERIC_ERROR = 0x100,\n OUT_OF_MEMORY,\n INVALID_HEADER,\n FORMAT_UNSUPPORTED,\n INVALID_ARGS,\n BUFFER_OVERFLOW,\n INCOMPLETE_PACKET,\n DECRYPT_FAILED,\n GCRY_ERROR,\n KEYCHAIN_ERROR,\n ZLIB_ERROR,\n}" ({) "{" (enumerator) "GENERIC_ERROR = 0x100" (identifier) "GENERIC_ERROR" (=) "=" (number_literal) "0x100" (,) "," (enumerator) "OUT_OF_MEMORY" (identifier) "OUT_OF_MEMORY" (,) "," (enumerator) "INVALID_HEADER" (identifier) "INVALID_HEADER" (,) "," (enumerator) "FORMAT_UNSUPPORTED" (identifier) "FORMAT_UNSUPPORTED" (,) "," (enumerator) "INVALID_ARGS" (identifier) "INVALID_ARGS" (,) "," (enumerator) "BUFFER_OVERFLOW" (identifier) "BUFFER_OVERFLOW" (,) "," (enumerator) "INCOMPLETE_PACKET" (identifier) "INCOMPLETE_PACKET" (,) "," (enumerator) "DECRYPT_FAILED" (identifier) "DECRYPT_FAILED" (,) "," (enumerator) "GCRY_ERROR" (identifier) "GCRY_ERROR" (,) "," (enumerator) "KEYCHAIN_ERROR" (identifier) "KEYCHAIN_ERROR" (,) "," (enumerator) "ZLIB_ERROR" (identifier) "ZLIB_ERROR" (,) "," (}) "}" (type_identifier) "spgp_error_t" (;) ";" (type_definition) "typedef enum {\n PKT_TYPE_SESSION = 1,\n PKT_TYPE_SIGNATURE = 2,\n PKT_TYPE_SECRET_KEY = 5,\n PKT_TYPE_PUBLIC_KEY = 6,\n PKT_TYPE_SECRET_SUBKEY = 7,\n PKT_TYPE_COMPRESSED_DATA = 8,\n PKT_TYPE_LITERAL_DATA = 11,\n PKT_TYPE_USER_ID = 13,\n PKT_TYPE_PUBLIC_SUBKEY = 14,\n PKT_TYPE_SYM_ENC_INT_DATA = 18,\n} spgp_pkt_type_t;" (typedef) "typedef" (enum_specifier) "enum {\n PKT_TYPE_SESSION = 1,\n PKT_TYPE_SIGNATURE = 2,\n PKT_TYPE_SECRET_KEY = 5,\n PKT_TYPE_PUBLIC_KEY = 6,\n PKT_TYPE_SECRET_SUBKEY = 7,\n PKT_TYPE_COMPRESSED_DATA = 8,\n PKT_TYPE_LITERAL_DATA = 11,\n PKT_TYPE_USER_ID = 13,\n PKT_TYPE_PUBLIC_SUBKEY = 14,\n PKT_TYPE_SYM_ENC_INT_DATA = 18,\n}" (enum) "enum" (enumerator_list) "{\n PKT_TYPE_SESSION = 1,\n PKT_TYPE_SIGNATURE = 2,\n PKT_TYPE_SECRET_KEY = 5,\n PKT_TYPE_PUBLIC_KEY = 6,\n PKT_TYPE_SECRET_SUBKEY = 7,\n PKT_TYPE_COMPRESSED_DATA = 8,\n PKT_TYPE_LITERAL_DATA = 11,\n PKT_TYPE_USER_ID = 13,\n PKT_TYPE_PUBLIC_SUBKEY = 14,\n PKT_TYPE_SYM_ENC_INT_DATA = 18,\n}" ({) "{" (enumerator) "PKT_TYPE_SESSION = 1" (identifier) "PKT_TYPE_SESSION" (=) "=" (number_literal) "1" (,) "," (enumerator) "PKT_TYPE_SIGNATURE = 2" (identifier) "PKT_TYPE_SIGNATURE" (=) "=" (number_literal) "2" (,) "," (enumerator) "PKT_TYPE_SECRET_KEY = 5" (identifier) "PKT_TYPE_SECRET_KEY" (=) "=" (number_literal) "5" (,) "," (enumerator) "PKT_TYPE_PUBLIC_KEY = 6" (identifier) "PKT_TYPE_PUBLIC_KEY" (=) "=" (number_literal) "6" (,) "," (enumerator) "PKT_TYPE_SECRET_SUBKEY = 7" (identifier) "PKT_TYPE_SECRET_SUBKEY" (=) "=" (number_literal) "7" (,) "," (enumerator) "PKT_TYPE_COMPRESSED_DATA = 8" (identifier) "PKT_TYPE_COMPRESSED_DATA" (=) "=" (number_literal) "8" (,) "," (enumerator) "PKT_TYPE_LITERAL_DATA = 11" (identifier) "PKT_TYPE_LITERAL_DATA" (=) "=" (number_literal) "11" (,) "," (enumerator) "PKT_TYPE_USER_ID = 13" (identifier) "PKT_TYPE_USER_ID" (=) "=" (number_literal) "13" (,) "," (enumerator) "PKT_TYPE_PUBLIC_SUBKEY = 14" (identifier) "PKT_TYPE_PUBLIC_SUBKEY" (=) "=" (number_literal) "14" (,) "," (enumerator) "PKT_TYPE_SYM_ENC_INT_DATA = 18" (identifier) "PKT_TYPE_SYM_ENC_INT_DATA" (=) "=" (number_literal) "18" (,) "," (}) "}" (type_identifier) "spgp_pkt_type_t" (;) ";" (type_definition) "typedef enum {\n ASYM_ALGO_RSA = 1,\n ASYM_ALGO_RSA_ENCRYPT = 2,\n ASYM_ALGO_RSA_SIGN = 3,\n ASYM_ALGO_ELGAMAL = 16,\n ASYM_ALGO_DSA = 17,\n} spgp_asym_algo_t;" (typedef) "typedef" (enum_specifier) "enum {\n ASYM_ALGO_RSA = 1,\n ASYM_ALGO_RSA_ENCRYPT = 2,\n ASYM_ALGO_RSA_SIGN = 3,\n ASYM_ALGO_ELGAMAL = 16,\n ASYM_ALGO_DSA = 17,\n}" (enum) "enum" (enumerator_list) "{\n ASYM_ALGO_RSA = 1,\n ASYM_ALGO_RSA_ENCRYPT = 2,\n ASYM_ALGO_RSA_SIGN = 3,\n ASYM_ALGO_ELGAMAL = 16,\n ASYM_ALGO_DSA = 17,\n}" ({) "{" (enumerator) "ASYM_ALGO_RSA = 1" (identifier) "ASYM_ALGO_RSA" (=) "=" (number_literal) "1" (,) "," (enumerator) "ASYM_ALGO_RSA_ENCRYPT = 2" (identifier) "ASYM_ALGO_RSA_ENCRYPT" (=) "=" (number_literal) "2" (,) "," (enumerator) "ASYM_ALGO_RSA_SIGN = 3" (identifier) "ASYM_ALGO_RSA_SIGN" (=) "=" (number_literal) "3" (,) "," (enumerator) "ASYM_ALGO_ELGAMAL = 16" (identifier) "ASYM_ALGO_ELGAMAL" (=) "=" (number_literal) "16" (,) "," (enumerator) "ASYM_ALGO_DSA = 17" (identifier) "ASYM_ALGO_DSA" (=) "=" (number_literal) "17" (,) "," (}) "}" (type_identifier) "spgp_asym_algo_t" (;) ";" (type_definition) "typedef enum {\n SYM_ALGO_PLAINTEXT = 0,\n SYM_ALGO_IDEA,\n SYM_ALGO_3DES,\n SYM_ALGO_CAST5,\n SYM_ALGO_BLOWFISH,\n SYM_ALGO_AES128,\n SYM_ALGO_AES192,\n SYM_ALGO_AES256,\n SYM_ALGO_TWOFISH,\n} spgp_sym_algo_t;" (typedef) "typedef" (enum_specifier) "enum {\n SYM_ALGO_PLAINTEXT = 0,\n SYM_ALGO_IDEA,\n SYM_ALGO_3DES,\n SYM_ALGO_CAST5,\n SYM_ALGO_BLOWFISH,\n SYM_ALGO_AES128,\n SYM_ALGO_AES192,\n SYM_ALGO_AES256,\n SYM_ALGO_TWOFISH,\n}" (enum) "enum" (enumerator_list) "{\n SYM_ALGO_PLAINTEXT = 0,\n SYM_ALGO_IDEA,\n SYM_ALGO_3DES,\n SYM_ALGO_CAST5,\n SYM_ALGO_BLOWFISH,\n SYM_ALGO_AES128,\n SYM_ALGO_AES192,\n SYM_ALGO_AES256,\n SYM_ALGO_TWOFISH,\n}" ({) "{" (enumerator) "SYM_ALGO_PLAINTEXT = 0" (identifier) "SYM_ALGO_PLAINTEXT" (=) "=" (number_literal) "0" (,) "," (enumerator) "SYM_ALGO_IDEA" (identifier) "SYM_ALGO_IDEA" (,) "," (enumerator) "SYM_ALGO_3DES" (identifier) "SYM_ALGO_3DES" (,) "," (enumerator) "SYM_ALGO_CAST5" (identifier) "SYM_ALGO_CAST5" (,) "," (enumerator) "SYM_ALGO_BLOWFISH" (identifier) "SYM_ALGO_BLOWFISH" (,) "," (enumerator) "SYM_ALGO_AES128" (identifier) "SYM_ALGO_AES128" (,) "," (enumerator) "SYM_ALGO_AES192" (identifier) "SYM_ALGO_AES192" (,) "," (enumerator) "SYM_ALGO_AES256" (identifier) "SYM_ALGO_AES256" (,) "," (enumerator) "SYM_ALGO_TWOFISH" (identifier) "SYM_ALGO_TWOFISH" (,) "," (}) "}" (type_identifier) "spgp_sym_algo_t" (;) ";" (type_definition) "typedef enum {\n HASH_ALGO_MD5 = 1,\n HASH_ALGO_SHA1,\n HASH_ALGO_RIPEMD160,\n HASH_ALGO_SHA256,\n HASH_ALGO_SHA384,\n HASH_ALGO_SHA512,\n HASH_ALGO_SHA224,\n} spgp_hash_algo_t;" (typedef) "typedef" (enum_specifier) "enum {\n HASH_ALGO_MD5 = 1,\n HASH_ALGO_SHA1,\n HASH_ALGO_RIPEMD160,\n HASH_ALGO_SHA256,\n HASH_ALGO_SHA384,\n HASH_ALGO_SHA512,\n HASH_ALGO_SHA224,\n}" (enum) "enum" (enumerator_list) "{\n HASH_ALGO_MD5 = 1,\n HASH_ALGO_SHA1,\n HASH_ALGO_RIPEMD160,\n HASH_ALGO_SHA256,\n HASH_ALGO_SHA384,\n HASH_ALGO_SHA512,\n HASH_ALGO_SHA224,\n}" ({) "{" (enumerator) "HASH_ALGO_MD5 = 1" (identifier) "HASH_ALGO_MD5" (=) "=" (number_literal) "1" (,) "," (enumerator) "HASH_ALGO_SHA1" (identifier) "HASH_ALGO_SHA1" (,) "," (enumerator) "HASH_ALGO_RIPEMD160" (identifier) "HASH_ALGO_RIPEMD160" (,) "," (enumerator) "HASH_ALGO_SHA256" (identifier) "HASH_ALGO_SHA256" (,) "," (enumerator) "HASH_ALGO_SHA384" (identifier) "HASH_ALGO_SHA384" (,) "," (enumerator) "HASH_ALGO_SHA512" (identifier) "HASH_ALGO_SHA512" (,) "," (enumerator) "HASH_ALGO_SHA224" (identifier) "HASH_ALGO_SHA224" (,) "," (}) "}" (type_identifier) "spgp_hash_algo_t" (;) ";" (type_definition) "typedef enum {\n COMPRESSION_UNCOMPRESSED = 0,\n COMPRESSION_ZIP,\n COMPRESSION_ZLIB,\n COMPRESSION_BZIP2,\n} spgp_compression_t;" (typedef) "typedef" (enum_specifier) "enum {\n COMPRESSION_UNCOMPRESSED = 0,\n COMPRESSION_ZIP,\n COMPRESSION_ZLIB,\n COMPRESSION_BZIP2,\n}" (enum) "enum" (enumerator_list) "{\n COMPRESSION_UNCOMPRESSED = 0,\n COMPRESSION_ZIP,\n COMPRESSION_ZLIB,\n COMPRESSION_BZIP2,\n}" ({) "{" (enumerator) "COMPRESSION_UNCOMPRESSED = 0" (identifier) "COMPRESSION_UNCOMPRESSED" (=) "=" (number_literal) "0" (,) "," (enumerator) "COMPRESSION_ZIP" (identifier) "COMPRESSION_ZIP" (,) "," (enumerator) "COMPRESSION_ZLIB" (identifier) "COMPRESSION_ZLIB" (,) "," (enumerator) "COMPRESSION_BZIP2" (identifier) "COMPRESSION_BZIP2" (,) "," (}) "}" (type_identifier) "spgp_compression_t" (;) ";" (type_definition) "typedef enum {\n S2K_TYPE_SIMPLE = 0,\n S2K_TYPE_SALTED,\n S2K_TYPE_RESERVED,\n S2K_TYPE_ITERATED,\n} spgp_s2k_type_t;" (typedef) "typedef" (enum_specifier) "enum {\n S2K_TYPE_SIMPLE = 0,\n S2K_TYPE_SALTED,\n S2K_TYPE_RESERVED,\n S2K_TYPE_ITERATED,\n}" (enum) "enum" (enumerator_list) "{\n S2K_TYPE_SIMPLE = 0,\n S2K_TYPE_SALTED,\n S2K_TYPE_RESERVED,\n S2K_TYPE_ITERATED,\n}" ({) "{" (enumerator) "S2K_TYPE_SIMPLE = 0" (identifier) "S2K_TYPE_SIMPLE" (=) "=" (number_literal) "0" (,) "," (enumerator) "S2K_TYPE_SALTED" (identifier) "S2K_TYPE_SALTED" (,) "," (enumerator) "S2K_TYPE_RESERVED" (identifier) "S2K_TYPE_RESERVED" (,) "," (enumerator) "S2K_TYPE_ITERATED" (identifier) "S2K_TYPE_ITERATED" (,) "," (}) "}" (type_identifier) "spgp_s2k_type_t" (;) ";" (preproc_def) "#define _PACKET_PRIVATE_H\n" (#define) "#define" (identifier) "_PACKET_PRIVATE_H" (#endif) "#endif"
718
0
{"language": "c", "success": true, "metadata": {"lines": 208, "avg_line_length": 23.29, "nodes": 515, "errors": 0, "source_hash": "ab39a3d439928010fbd840dae09fb4f1f520570bdb9996ac63d6ca29baee67c1", "categorized_nodes": 368}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _PACKET_PRIVATE_H\n\n#include \"simplepgp.h\"\n//#include \"gcrypt.h\"\n\n//#include <stdio.h>\n#include <setjmp.h>\n#include <pthread.h>\n\n\n/**********************************************************************\n**\n** MACROS\n**\n***********************************************************************/\n#pragma mark Macros\n\n#define RAISE(err) do { \\\n\t\tpthread_mutex_lock(&spgp_mtx); \\\n\t\t_spgp_err = (err); \\\n Serial.printf(\"raise 0x%X\\n\",_spgp_err); \\\n\t\tpthread_mutex_unlock(&spgp_mtx); \\\n longjmp(exception,_spgp_err); \\\n } while(0)\n \n\n#define SAFE_IDX_INCREMENT(idx,max) \\\n\tdo{ \\\n\t\tif (++(idx)>=(max)) {\\\n \t\tRAISE(BUFFER_OVERFLOW);\\\n } \\\n } while(0)\n \n#define Serial.printf(fmt, ...) do {\\\n\tif (debug_log_enabled) {\\\n \tSerial.printf(\"SPGP [%s():%d]: \" fmt, \\\n \t__FUNCTION__, __LINE__, ## __VA_ARGS__);\\\n } } while(0)\n \n\n\nextern pthread_mutex_t spgp_mtx;\nextern uint8_t debug_log_enabled;\nextern uint32_t _spgp_err;\nextern jmp_buf exception;\n\n\nstruct spgp_packet_header_struct {\n\tspgp_packet_t *parent;\n uint32_t contentLength;\n uint8_t rawTagByte;\n uint8_t isNewFormat;\n uint8_t type;\n uint8_t headerLength;\n uint8_t isPartial;\n};\n\nstruct spgp_packet_struct {\n\tspgp_pkt_header_t *header;\n union {\n \tspgp_public_pkt_t *pub;\n \tspgp_secret_pkt_t *secret;\n spgp_userid_pkt_t *userid;\n spgp_session_pkt_t *session;\n spgp_literal_pkt_t *literal;\n spgp_signature_pkt_t *signature;\n } c;\n\tspgp_packet_t *next;\n spgp_packet_t *prev;\n};\n\nstruct spgp_mpi_struct {\n\tuint8_t *data;\n uint32_t bits;\n uint32_t count;\n\tspgp_mpi_t *next;\n}; \n\nstruct spgp_literal_packet_struct {\n\tchar *filename;\n\tchar *data;\n uint32_t dataLen;\n uint32_t filenameLen;\n};\n\nstruct spgp_signature_packet_struct {\n\tuint8_t version;\n uint8_t type;\n uint8_t asymAlgo;\n uint8_t hashAlgo;\n uint16_t hashedSubLength;\n uint16_t unhashedSubLength;\n uint16_t hashTest;\n spgp_mpi_t *mpiHead;\n};\n\n\nstruct spgp_userid_packet_struct {\n\tuint8_t *data;\n};\n\nstruct spgp_session_packet_struct {\n uint8_t keyid[8];\n\tuint8_t version;\n uint8_t algo;\n uint8_t symAlgo;\n uint32_t keylen;\n char *key;\n spgp_mpi_t *mpi1;\n spgp_mpi_t *mpi2;\n};\n\nstruct spgp_public_packet_struct {\n// This is public key stuff\n\tuint8_t version;\n uint32_t creationTime;\n\tuint8_t asymAlgo;\n spgp_mpi_t *mpiHead;\n uint8_t mpiCount;\n uint8_t *fingerprint;\n} __attribute__((packed));\n\nstruct spgp_secret_packet_struct {\n// This is public key stuff\n\tspgp_public_pkt_t pub;\n// This is secret key stuff \n\tuint8_t isDecrypted;\n uint8_t s2kType;\n uint8_t s2kEncryption;\n uint8_t s2kSpecifier;\n uint8_t s2kHashAlgo;\n uint8_t *s2kSalt;\n uint8_t s2kSaltLength;\n uint8_t s2kCount;\n uint8_t *encryptedData;\n uint32_t encryptedDataLength;\n uint8_t *key;\n uint32_t keyLength;\n uint8_t *iv;\n uint8_t ivLength;\n} __attribute__((packed));\n\ntypedef enum {\n\tGENERIC_ERROR = 0x100,\n OUT_OF_MEMORY,\n INVALID_HEADER,\n FORMAT_UNSUPPORTED,\n\tINVALID_ARGS,\n\tBUFFER_OVERFLOW,\n INCOMPLETE_PACKET,\n DECRYPT_FAILED,\n GCRY_ERROR,\n KEYCHAIN_ERROR,\n ZLIB_ERROR,\n} spgp_error_t;\n\n\ntypedef enum {\n\tPKT_TYPE_SESSION = 1,\n\tPKT_TYPE_SIGNATURE = 2,\n\tPKT_TYPE_SECRET_KEY = 5,\n PKT_TYPE_PUBLIC_KEY = 6,\n\tPKT_TYPE_SECRET_SUBKEY = 7,\n PKT_TYPE_COMPRESSED_DATA = 8,\n PKT_TYPE_LITERAL_DATA = 11,\n PKT_TYPE_USER_ID = 13,\n PKT_TYPE_PUBLIC_SUBKEY = 14,\n PKT_TYPE_SYM_ENC_INT_DATA = 18,\n} spgp_pkt_type_t;\n\ntypedef enum {\n\tASYM_ALGO_RSA = 1,\n ASYM_ALGO_RSA_ENCRYPT = 2,\n ASYM_ALGO_RSA_SIGN = 3,\n ASYM_ALGO_ELGAMAL = 16,\n ASYM_ALGO_DSA = 17,\n} spgp_asym_algo_t;\n\ntypedef enum {\n\tSYM_ALGO_PLAINTEXT = 0,\n SYM_ALGO_IDEA,\n SYM_ALGO_3DES,\n SYM_ALGO_CAST5,\n SYM_ALGO_BLOWFISH,\n SYM_ALGO_AES128,\n SYM_ALGO_AES192,\n SYM_ALGO_AES256,\n SYM_ALGO_TWOFISH,\n} spgp_sym_algo_t;\n\ntypedef enum {\n\tHASH_ALGO_MD5 = 1,\n HASH_ALGO_SHA1,\n HASH_ALGO_RIPEMD160,\n HASH_ALGO_SHA256,\n HASH_ALGO_SHA384,\n HASH_ALGO_SHA512,\n HASH_ALGO_SHA224,\n} spgp_hash_algo_t;\n\ntypedef enum {\n\tCOMPRESSION_UNCOMPRESSED = 0,\n COMPRESSION_ZIP,\n COMPRESSION_ZLIB,\n COMPRESSION_BZIP2,\n} spgp_compression_t;\n\ntypedef enum {\n\tS2K_TYPE_SIMPLE = 0,\n S2K_TYPE_SALTED,\n S2K_TYPE_RESERVED,\n S2K_TYPE_ITERATED,\n} spgp_s2k_type_t;\n\n\n#define _PACKET_PRIVATE_H\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 21, 28, 32, 37, 42, 47, 52, 78, 130, 149, 168, 197, 205, 240, 269, 329, 359, 405, 431, 457, 479, 495, 511, 514], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 238, "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": "_PACKET_PRIVATE_H", "parent": 0, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 25}}, {"id": 3, "type": "preproc_include", "text": "#include \"simplepgp.h\"\n", "parent": 0, "children": [4, 5], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 8}}, {"id": 5, "type": "string_literal", "text": "\"simplepgp.h\"", "parent": 3, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 22}}, {"id": 6, "type": "preproc_include", "text": "#include <setjmp.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": "system_lib_string", "text": "<setjmp.h>", "parent": 6, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 19}}, {"id": 9, "type": "preproc_include", "text": "#include <pthread.h>\n", "parent": 0, "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": "system_lib_string", "text": "<pthread.h>", "parent": 9, "children": [], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 20}}, {"id": 12, "type": "preproc_call", "text": "#pragma mark Macros\n", "parent": 0, "children": [13, 14], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 0}}, {"id": 13, "type": "preproc_directive", "text": "#pragma", "parent": 12, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 7}}, {"id": 14, "type": "preproc_arg", "text": "mark Macros", "parent": 12, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 19}}, {"id": 15, "type": "preproc_function_def", "text": "#define RAISE(err) do { \\\n\t\tpthread_mutex_lock(&spgp_mtx); \\\n\t\t_spgp_err = (err); \\\n Serial.printf(\"raise 0x%X\\n\",_spgp_err); \\\n\t\tpthread_mutex_unlock(&spgp_mtx); \\\n longjmp(exception,_spgp_err); \\\n } while(0)\n", "parent": 0, "children": [16, 17, 18, 20], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 46, "column": 0}}, {"id": 16, "type": "#define", "text": "#define", "parent": 15, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 7}}, {"id": 17, "type": "identifier", "text": "RAISE", "parent": 15, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 13}}, {"id": 18, "type": "preproc_params", "text": "(err)", "parent": 15, "children": [19], "start_point": {"row": 39, "column": 13}, "end_point": {"row": 39, "column": 18}}, {"id": 19, "type": "identifier", "text": "err", "parent": 18, "children": [], "start_point": {"row": 39, "column": 14}, "end_point": {"row": 39, "column": 17}}, {"id": 20, "type": "preproc_arg", "text": "do { \\\n\t\tpthread_mutex_lock(&spgp_mtx); \\\n\t\t_spgp_err = (err); \\\n Serial.printf(\"raise 0x%X\\n\",_spgp_err); \\\n\t\tpthread_mutex_unlock(&spgp_mtx); \\\n longjmp(exception,_spgp_err); \\\n } while(0)", "parent": 15, "children": [], "start_point": {"row": 39, "column": 19}, "end_point": {"row": 45, "column": 12}}, {"id": 21, "type": "preproc_function_def", "text": "#define SAFE_IDX_INCREMENT(idx,max) \\\n\tdo{ \\\n\t\tif (++(idx)>=(max)) {\\\n \t\tRAISE(BUFFER_OVERFLOW);\\\n } \\\n } while(0)\n", "parent": 0, "children": [22, 23, 24, 27], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 54, "column": 0}}, {"id": 22, "type": "#define", "text": "#define", "parent": 21, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 7}}, {"id": 23, "type": "identifier", "text": "SAFE_IDX_INCREMENT", "parent": 21, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 26}}, {"id": 24, "type": "preproc_params", "text": "(idx,max)", "parent": 21, "children": [25, 26], "start_point": {"row": 48, "column": 26}, "end_point": {"row": 48, "column": 35}}, {"id": 25, "type": "identifier", "text": "idx", "parent": 24, "children": [], "start_point": {"row": 48, "column": 27}, "end_point": {"row": 48, "column": 30}}, {"id": 26, "type": "identifier", "text": "max", "parent": 24, "children": [], "start_point": {"row": 48, "column": 31}, "end_point": {"row": 48, "column": 34}}, {"id": 27, "type": "preproc_arg", "text": "do{ \\\n\t\tif (++(idx)>=(max)) {\\\n \t\tRAISE(BUFFER_OVERFLOW);\\\n } \\\n } while(0)", "parent": 21, "children": [], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 53, "column": 12}}, {"id": 28, "type": "preproc_def", "text": "#define Serial.printf(fmt, ...) do {\\\n\tif (debug_log_enabled) {\\\n \tSerial.printf(\"SPGP [%s():%d]: \" fmt, \\\n \t__FUNCTION__, __LINE__, ## __VA_ARGS__);\\\n } } while(0)\n", "parent": 0, "children": [29, 30, 31], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 60, "column": 0}}, {"id": 29, "type": "#define", "text": "#define", "parent": 28, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 7}}, {"id": 30, "type": "identifier", "text": "Serial", "parent": 28, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 14}}, {"id": 31, "type": "preproc_arg", "text": ".printf(fmt, ...) do {\\\n\tif (debug_log_enabled) {\\\n \tSerial.printf(\"SPGP [%s():%d]: \" fmt, \\\n \t__FUNCTION__, __LINE__, ## __VA_ARGS__);\\\n } } while(0)", "parent": 28, "children": [], "start_point": {"row": 55, "column": 14}, "end_point": {"row": 59, "column": 14}}, {"id": 32, "type": "declaration", "text": "extern pthread_mutex_t spgp_mtx;", "parent": 0, "children": [33, 35, 36], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 32}}, {"id": 33, "type": "storage_class_specifier", "text": "extern", "parent": 32, "children": [34], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 6}}, {"id": 34, "type": "extern", "text": "extern", "parent": 33, "children": [], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 6}}, {"id": 35, "type": "type_identifier", "text": "pthread_mutex_t", "parent": 32, "children": [], "start_point": {"row": 63, "column": 7}, "end_point": {"row": 63, "column": 22}}, {"id": 36, "type": "identifier", "text": "spgp_mtx", "parent": 32, "children": [], "start_point": {"row": 63, "column": 23}, "end_point": {"row": 63, "column": 31}}, {"id": 37, "type": "declaration", "text": "extern uint8_t debug_log_enabled;", "parent": 0, "children": [38, 40, 41], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 33}}, {"id": 38, "type": "storage_class_specifier", "text": "extern", "parent": 37, "children": [39], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 6}}, {"id": 39, "type": "extern", "text": "extern", "parent": 38, "children": [], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 6}}, {"id": 40, "type": "primitive_type", "text": "uint8_t", "parent": 37, "children": [], "start_point": {"row": 64, "column": 7}, "end_point": {"row": 64, "column": 14}}, {"id": 41, "type": "identifier", "text": "debug_log_enabled", "parent": 37, "children": [], "start_point": {"row": 64, "column": 15}, "end_point": {"row": 64, "column": 32}}, {"id": 42, "type": "declaration", "text": "extern uint32_t _spgp_err;", "parent": 0, "children": [43, 45, 46], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 26}}, {"id": 43, "type": "storage_class_specifier", "text": "extern", "parent": 42, "children": [44], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 6}}, {"id": 44, "type": "extern", "text": "extern", "parent": 43, "children": [], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 6}}, {"id": 45, "type": "primitive_type", "text": "uint32_t", "parent": 42, "children": [], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 65, "column": 15}}, {"id": 46, "type": "identifier", "text": "_spgp_err", "parent": 42, "children": [], "start_point": {"row": 65, "column": 16}, "end_point": {"row": 65, "column": 25}}, {"id": 47, "type": "declaration", "text": "extern jmp_buf exception;", "parent": 0, "children": [48, 50, 51], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 25}}, {"id": 48, "type": "storage_class_specifier", "text": "extern", "parent": 47, "children": [49], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 6}}, {"id": 49, "type": "extern", "text": "extern", "parent": 48, "children": [], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 6}}, {"id": 50, "type": "type_identifier", "text": "jmp_buf", "parent": 47, "children": [], "start_point": {"row": 66, "column": 7}, "end_point": {"row": 66, "column": 14}}, {"id": 51, "type": "identifier", "text": "exception", "parent": 47, "children": [], "start_point": {"row": 66, "column": 15}, "end_point": {"row": 66, "column": 24}}, {"id": 52, "type": "struct_specifier", "text": "struct spgp_packet_header_struct {\n\tspgp_packet_t *parent;\n uint32_t contentLength;\n uint8_t rawTagByte;\n uint8_t isNewFormat;\n uint8_t type;\n uint8_t headerLength;\n uint8_t isPartial;\n}", "parent": 0, "children": [53, 54], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 77, "column": 1}}, {"id": 53, "type": "struct", "text": "struct", "parent": 52, "children": [], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 6}}, {"id": 54, "type": "type_identifier", "text": "spgp_packet_header_struct", "parent": 52, "children": [], "start_point": {"row": 69, "column": 7}, "end_point": {"row": 69, "column": 32}}, {"id": 55, "type": "field_declaration", "text": "spgp_packet_t *parent;", "parent": 52, "children": [56, 57], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 23}}, {"id": 56, "type": "type_identifier", "text": "spgp_packet_t", "parent": 55, "children": [], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 14}}, {"id": 57, "type": "pointer_declarator", "text": "*parent", "parent": 55, "children": [58, 59], "start_point": {"row": 70, "column": 15}, "end_point": {"row": 70, "column": 22}}, {"id": 58, "type": "*", "text": "*", "parent": 57, "children": [], "start_point": {"row": 70, "column": 15}, "end_point": {"row": 70, "column": 16}}, {"id": 59, "type": "field_identifier", "text": "parent", "parent": 57, "children": [], "start_point": {"row": 70, "column": 16}, "end_point": {"row": 70, "column": 22}}, {"id": 60, "type": "field_declaration", "text": "uint32_t contentLength;", "parent": 52, "children": [61, 62], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 25}}, {"id": 61, "type": "primitive_type", "text": "uint32_t", "parent": 60, "children": [], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 10}}, {"id": 62, "type": "field_identifier", "text": "contentLength", "parent": 60, "children": [], "start_point": {"row": 71, "column": 11}, "end_point": {"row": 71, "column": 24}}, {"id": 63, "type": "field_declaration", "text": "uint8_t rawTagByte;", "parent": 52, "children": [64, 65], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 21}}, {"id": 64, "type": "primitive_type", "text": "uint8_t", "parent": 63, "children": [], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 9}}, {"id": 65, "type": "field_identifier", "text": "rawTagByte", "parent": 63, "children": [], "start_point": {"row": 72, "column": 10}, "end_point": {"row": 72, "column": 20}}, {"id": 66, "type": "field_declaration", "text": "uint8_t isNewFormat;", "parent": 52, "children": [67, 68], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 22}}, {"id": 67, "type": "primitive_type", "text": "uint8_t", "parent": 66, "children": [], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 9}}, {"id": 68, "type": "field_identifier", "text": "isNewFormat", "parent": 66, "children": [], "start_point": {"row": 73, "column": 10}, "end_point": {"row": 73, "column": 21}}, {"id": 69, "type": "field_declaration", "text": "uint8_t type;", "parent": 52, "children": [70, 71], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 15}}, {"id": 70, "type": "primitive_type", "text": "uint8_t", "parent": 69, "children": [], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 9}}, {"id": 71, "type": "field_identifier", "text": "type", "parent": 69, "children": [], "start_point": {"row": 74, "column": 10}, "end_point": {"row": 74, "column": 14}}, {"id": 72, "type": "field_declaration", "text": "uint8_t headerLength;", "parent": 52, "children": [73, 74], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 23}}, {"id": 73, "type": "primitive_type", "text": "uint8_t", "parent": 72, "children": [], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 9}}, {"id": 74, "type": "field_identifier", "text": "headerLength", "parent": 72, "children": [], "start_point": {"row": 75, "column": 10}, "end_point": {"row": 75, "column": 22}}, {"id": 75, "type": "field_declaration", "text": "uint8_t isPartial;", "parent": 52, "children": [76, 77], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 20}}, {"id": 76, "type": "primitive_type", "text": "uint8_t", "parent": 75, "children": [], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 9}}, {"id": 77, "type": "field_identifier", "text": "isPartial", "parent": 75, "children": [], "start_point": {"row": 76, "column": 10}, "end_point": {"row": 76, "column": 19}}, {"id": 78, "type": "struct_specifier", "text": "struct spgp_packet_struct {\n\tspgp_pkt_header_t *header;\n union {\n \tspgp_public_pkt_t *pub;\n \tspgp_secret_pkt_t *secret;\n spgp_userid_pkt_t *userid;\n spgp_session_pkt_t *session;\n spgp_literal_pkt_t *literal;\n spgp_signature_pkt_t *signature;\n } c;\n\tspgp_packet_t *next;\n spgp_packet_t *prev;\n}", "parent": 0, "children": [79, 80], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 91, "column": 1}}, {"id": 79, "type": "struct", "text": "struct", "parent": 78, "children": [], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 79, "column": 6}}, {"id": 80, "type": "type_identifier", "text": "spgp_packet_struct", "parent": 78, "children": [], "start_point": {"row": 79, "column": 7}, "end_point": {"row": 79, "column": 25}}, {"id": 81, "type": "field_declaration", "text": "spgp_pkt_header_t *header;", "parent": 78, "children": [82, 83], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 27}}, {"id": 82, "type": "type_identifier", "text": "spgp_pkt_header_t", "parent": 81, "children": [], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 18}}, {"id": 83, "type": "pointer_declarator", "text": "*header", "parent": 81, "children": [84, 85], "start_point": {"row": 80, "column": 19}, "end_point": {"row": 80, "column": 26}}, {"id": 84, "type": "*", "text": "*", "parent": 83, "children": [], "start_point": {"row": 80, "column": 19}, "end_point": {"row": 80, "column": 20}}, {"id": 85, "type": "field_identifier", "text": "header", "parent": 83, "children": [], "start_point": {"row": 80, "column": 20}, "end_point": {"row": 80, "column": 26}}, {"id": 86, "type": "field_declaration", "text": "union {\n \tspgp_public_pkt_t *pub;\n \tspgp_secret_pkt_t *secret;\n spgp_userid_pkt_t *userid;\n spgp_session_pkt_t *session;\n spgp_literal_pkt_t *literal;\n spgp_signature_pkt_t *signature;\n } c;", "parent": 78, "children": [87, 119], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 88, "column": 6}}, {"id": 87, "type": "union_specifier", "text": "union {\n \tspgp_public_pkt_t *pub;\n \tspgp_secret_pkt_t *secret;\n spgp_userid_pkt_t *userid;\n spgp_session_pkt_t *session;\n spgp_literal_pkt_t *literal;\n spgp_signature_pkt_t *signature;\n }", "parent": 86, "children": [88], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 88, "column": 3}}, {"id": 88, "type": "union", "text": "union", "parent": 87, "children": [], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 7}}, {"id": 89, "type": "field_declaration", "text": "spgp_public_pkt_t *pub;", "parent": 87, "children": [90, 91], "start_point": {"row": 82, "column": 3}, "end_point": {"row": 82, "column": 29}}, {"id": 90, "type": "type_identifier", "text": "spgp_public_pkt_t", "parent": 89, "children": [], "start_point": {"row": 82, "column": 3}, "end_point": {"row": 82, "column": 20}}, {"id": 91, "type": "pointer_declarator", "text": "*pub", "parent": 89, "children": [92, 93], "start_point": {"row": 82, "column": 24}, "end_point": {"row": 82, "column": 28}}, {"id": 92, "type": "*", "text": "*", "parent": 91, "children": [], "start_point": {"row": 82, "column": 24}, "end_point": {"row": 82, "column": 25}}, {"id": 93, "type": "field_identifier", "text": "pub", "parent": 91, "children": [], "start_point": {"row": 82, "column": 25}, "end_point": {"row": 82, "column": 28}}, {"id": 94, "type": "field_declaration", "text": "spgp_secret_pkt_t *secret;", "parent": 87, "children": [95, 96], "start_point": {"row": 83, "column": 3}, "end_point": {"row": 83, "column": 32}}, {"id": 95, "type": "type_identifier", "text": "spgp_secret_pkt_t", "parent": 94, "children": [], "start_point": {"row": 83, "column": 3}, "end_point": {"row": 83, "column": 20}}, {"id": 96, "type": "pointer_declarator", "text": "*secret", "parent": 94, "children": [97, 98], "start_point": {"row": 83, "column": 24}, "end_point": {"row": 83, "column": 31}}, {"id": 97, "type": "*", "text": "*", "parent": 96, "children": [], "start_point": {"row": 83, "column": 24}, "end_point": {"row": 83, "column": 25}}, {"id": 98, "type": "field_identifier", "text": "secret", "parent": 96, "children": [], "start_point": {"row": 83, "column": 25}, "end_point": {"row": 83, "column": 31}}, {"id": 99, "type": "field_declaration", "text": "spgp_userid_pkt_t *userid;", "parent": 87, "children": [100, 101], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 33}}, {"id": 100, "type": "type_identifier", "text": "spgp_userid_pkt_t", "parent": 99, "children": [], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 21}}, {"id": 101, "type": "pointer_declarator", "text": "*userid", "parent": 99, "children": [102, 103], "start_point": {"row": 84, "column": 25}, "end_point": {"row": 84, "column": 32}}, {"id": 102, "type": "*", "text": "*", "parent": 101, "children": [], "start_point": {"row": 84, "column": 25}, "end_point": {"row": 84, "column": 26}}, {"id": 103, "type": "field_identifier", "text": "userid", "parent": 101, "children": [], "start_point": {"row": 84, "column": 26}, "end_point": {"row": 84, "column": 32}}, {"id": 104, "type": "field_declaration", "text": "spgp_session_pkt_t *session;", "parent": 87, "children": [105, 106], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 34}}, {"id": 105, "type": "type_identifier", "text": "spgp_session_pkt_t", "parent": 104, "children": [], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 22}}, {"id": 106, "type": "pointer_declarator", "text": "*session", "parent": 104, "children": [107, 108], "start_point": {"row": 85, "column": 25}, "end_point": {"row": 85, "column": 33}}, {"id": 107, "type": "*", "text": "*", "parent": 106, "children": [], "start_point": {"row": 85, "column": 25}, "end_point": {"row": 85, "column": 26}}, {"id": 108, "type": "field_identifier", "text": "session", "parent": 106, "children": [], "start_point": {"row": 85, "column": 26}, "end_point": {"row": 85, "column": 33}}, {"id": 109, "type": "field_declaration", "text": "spgp_literal_pkt_t *literal;", "parent": 87, "children": [110, 111], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 34}}, {"id": 110, "type": "type_identifier", "text": "spgp_literal_pkt_t", "parent": 109, "children": [], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 22}}, {"id": 111, "type": "pointer_declarator", "text": "*literal", "parent": 109, "children": [112, 113], "start_point": {"row": 86, "column": 25}, "end_point": {"row": 86, "column": 33}}, {"id": 112, "type": "*", "text": "*", "parent": 111, "children": [], "start_point": {"row": 86, "column": 25}, "end_point": {"row": 86, "column": 26}}, {"id": 113, "type": "field_identifier", "text": "literal", "parent": 111, "children": [], "start_point": {"row": 86, "column": 26}, "end_point": {"row": 86, "column": 33}}, {"id": 114, "type": "field_declaration", "text": "spgp_signature_pkt_t *signature;", "parent": 87, "children": [115, 116], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 36}}, {"id": 115, "type": "type_identifier", "text": "spgp_signature_pkt_t", "parent": 114, "children": [], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 24}}, {"id": 116, "type": "pointer_declarator", "text": "*signature", "parent": 114, "children": [117, 118], "start_point": {"row": 87, "column": 25}, "end_point": {"row": 87, "column": 35}}, {"id": 117, "type": "*", "text": "*", "parent": 116, "children": [], "start_point": {"row": 87, "column": 25}, "end_point": {"row": 87, "column": 26}}, {"id": 118, "type": "field_identifier", "text": "signature", "parent": 116, "children": [], "start_point": {"row": 87, "column": 26}, "end_point": {"row": 87, "column": 35}}, {"id": 119, "type": "field_identifier", "text": "c", "parent": 86, "children": [], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 5}}, {"id": 120, "type": "field_declaration", "text": "spgp_packet_t *next;", "parent": 78, "children": [121, 122], "start_point": {"row": 89, "column": 1}, "end_point": {"row": 89, "column": 21}}, {"id": 121, "type": "type_identifier", "text": "spgp_packet_t", "parent": 120, "children": [], "start_point": {"row": 89, "column": 1}, "end_point": {"row": 89, "column": 14}}, {"id": 122, "type": "pointer_declarator", "text": "*next", "parent": 120, "children": [123, 124], "start_point": {"row": 89, "column": 15}, "end_point": {"row": 89, "column": 20}}, {"id": 123, "type": "*", "text": "*", "parent": 122, "children": [], "start_point": {"row": 89, "column": 15}, "end_point": {"row": 89, "column": 16}}, {"id": 124, "type": "field_identifier", "text": "next", "parent": 122, "children": [], "start_point": {"row": 89, "column": 16}, "end_point": {"row": 89, "column": 20}}, {"id": 125, "type": "field_declaration", "text": "spgp_packet_t *prev;", "parent": 78, "children": [126, 127], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 22}}, {"id": 126, "type": "type_identifier", "text": "spgp_packet_t", "parent": 125, "children": [], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 15}}, {"id": 127, "type": "pointer_declarator", "text": "*prev", "parent": 125, "children": [128, 129], "start_point": {"row": 90, "column": 16}, "end_point": {"row": 90, "column": 21}}, {"id": 128, "type": "*", "text": "*", "parent": 127, "children": [], "start_point": {"row": 90, "column": 16}, "end_point": {"row": 90, "column": 17}}, {"id": 129, "type": "field_identifier", "text": "prev", "parent": 127, "children": [], "start_point": {"row": 90, "column": 17}, "end_point": {"row": 90, "column": 21}}, {"id": 130, "type": "struct_specifier", "text": "struct spgp_mpi_struct {\n\tuint8_t *data;\n uint32_t bits;\n uint32_t count;\n\tspgp_mpi_t *next;\n}", "parent": 0, "children": [131, 132], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 98, "column": 1}}, {"id": 131, "type": "struct", "text": "struct", "parent": 130, "children": [], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 93, "column": 6}}, {"id": 132, "type": "type_identifier", "text": "spgp_mpi_struct", "parent": 130, "children": [], "start_point": {"row": 93, "column": 7}, "end_point": {"row": 93, "column": 22}}, {"id": 133, "type": "field_declaration", "text": "uint8_t *data;", "parent": 130, "children": [134, 135], "start_point": {"row": 94, "column": 1}, "end_point": {"row": 94, "column": 15}}, {"id": 134, "type": "primitive_type", "text": "uint8_t", "parent": 133, "children": [], "start_point": {"row": 94, "column": 1}, "end_point": {"row": 94, "column": 8}}, {"id": 135, "type": "pointer_declarator", "text": "*data", "parent": 133, "children": [136, 137], "start_point": {"row": 94, "column": 9}, "end_point": {"row": 94, "column": 14}}, {"id": 136, "type": "*", "text": "*", "parent": 135, "children": [], "start_point": {"row": 94, "column": 9}, "end_point": {"row": 94, "column": 10}}, {"id": 137, "type": "field_identifier", "text": "data", "parent": 135, "children": [], "start_point": {"row": 94, "column": 10}, "end_point": {"row": 94, "column": 14}}, {"id": 138, "type": "field_declaration", "text": "uint32_t bits;", "parent": 130, "children": [139, 140], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 16}}, {"id": 139, "type": "primitive_type", "text": "uint32_t", "parent": 138, "children": [], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 10}}, {"id": 140, "type": "field_identifier", "text": "bits", "parent": 138, "children": [], "start_point": {"row": 95, "column": 11}, "end_point": {"row": 95, "column": 15}}, {"id": 141, "type": "field_declaration", "text": "uint32_t count;", "parent": 130, "children": [142, 143], "start_point": {"row": 96, "column": 2}, "end_point": {"row": 96, "column": 17}}, {"id": 142, "type": "primitive_type", "text": "uint32_t", "parent": 141, "children": [], "start_point": {"row": 96, "column": 2}, "end_point": {"row": 96, "column": 10}}, {"id": 143, "type": "field_identifier", "text": "count", "parent": 141, "children": [], "start_point": {"row": 96, "column": 11}, "end_point": {"row": 96, "column": 16}}, {"id": 144, "type": "field_declaration", "text": "spgp_mpi_t *next;", "parent": 130, "children": [145, 146], "start_point": {"row": 97, "column": 1}, "end_point": {"row": 97, "column": 18}}, {"id": 145, "type": "type_identifier", "text": "spgp_mpi_t", "parent": 144, "children": [], "start_point": {"row": 97, "column": 1}, "end_point": {"row": 97, "column": 11}}, {"id": 146, "type": "pointer_declarator", "text": "*next", "parent": 144, "children": [147, 148], "start_point": {"row": 97, "column": 12}, "end_point": {"row": 97, "column": 17}}, {"id": 147, "type": "*", "text": "*", "parent": 146, "children": [], "start_point": {"row": 97, "column": 12}, "end_point": {"row": 97, "column": 13}}, {"id": 148, "type": "field_identifier", "text": "next", "parent": 146, "children": [], "start_point": {"row": 97, "column": 13}, "end_point": {"row": 97, "column": 17}}, {"id": 149, "type": "struct_specifier", "text": "struct spgp_literal_packet_struct {\n\tchar *filename;\n\tchar *data;\n uint32_t dataLen;\n uint32_t filenameLen;\n}", "parent": 0, "children": [150, 151], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 105, "column": 1}}, {"id": 150, "type": "struct", "text": "struct", "parent": 149, "children": [], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 100, "column": 6}}, {"id": 151, "type": "type_identifier", "text": "spgp_literal_packet_struct", "parent": 149, "children": [], "start_point": {"row": 100, "column": 7}, "end_point": {"row": 100, "column": 33}}, {"id": 152, "type": "field_declaration", "text": "char *filename;", "parent": 149, "children": [153, 154], "start_point": {"row": 101, "column": 1}, "end_point": {"row": 101, "column": 16}}, {"id": 153, "type": "primitive_type", "text": "char", "parent": 152, "children": [], "start_point": {"row": 101, "column": 1}, "end_point": {"row": 101, "column": 5}}, {"id": 154, "type": "pointer_declarator", "text": "*filename", "parent": 152, "children": [155, 156], "start_point": {"row": 101, "column": 6}, "end_point": {"row": 101, "column": 15}}, {"id": 155, "type": "*", "text": "*", "parent": 154, "children": [], "start_point": {"row": 101, "column": 6}, "end_point": {"row": 101, "column": 7}}, {"id": 156, "type": "field_identifier", "text": "filename", "parent": 154, "children": [], "start_point": {"row": 101, "column": 7}, "end_point": {"row": 101, "column": 15}}, {"id": 157, "type": "field_declaration", "text": "char *data;", "parent": 149, "children": [158, 159], "start_point": {"row": 102, "column": 1}, "end_point": {"row": 102, "column": 12}}, {"id": 158, "type": "primitive_type", "text": "char", "parent": 157, "children": [], "start_point": {"row": 102, "column": 1}, "end_point": {"row": 102, "column": 5}}, {"id": 159, "type": "pointer_declarator", "text": "*data", "parent": 157, "children": [160, 161], "start_point": {"row": 102, "column": 6}, "end_point": {"row": 102, "column": 11}}, {"id": 160, "type": "*", "text": "*", "parent": 159, "children": [], "start_point": {"row": 102, "column": 6}, "end_point": {"row": 102, "column": 7}}, {"id": 161, "type": "field_identifier", "text": "data", "parent": 159, "children": [], "start_point": {"row": 102, "column": 7}, "end_point": {"row": 102, "column": 11}}, {"id": 162, "type": "field_declaration", "text": "uint32_t dataLen;", "parent": 149, "children": [163, 164], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 103, "column": 19}}, {"id": 163, "type": "primitive_type", "text": "uint32_t", "parent": 162, "children": [], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 103, "column": 10}}, {"id": 164, "type": "field_identifier", "text": "dataLen", "parent": 162, "children": [], "start_point": {"row": 103, "column": 11}, "end_point": {"row": 103, "column": 18}}, {"id": 165, "type": "field_declaration", "text": "uint32_t filenameLen;", "parent": 149, "children": [166, 167], "start_point": {"row": 104, "column": 2}, "end_point": {"row": 104, "column": 23}}, {"id": 166, "type": "primitive_type", "text": "uint32_t", "parent": 165, "children": [], "start_point": {"row": 104, "column": 2}, "end_point": {"row": 104, "column": 10}}, {"id": 167, "type": "field_identifier", "text": "filenameLen", "parent": 165, "children": [], "start_point": {"row": 104, "column": 11}, "end_point": {"row": 104, "column": 22}}, {"id": 168, "type": "struct_specifier", "text": "struct spgp_signature_packet_struct {\n\tuint8_t version;\n uint8_t type;\n uint8_t asymAlgo;\n uint8_t hashAlgo;\n uint16_t hashedSubLength;\n uint16_t unhashedSubLength;\n uint16_t hashTest;\n spgp_mpi_t *mpiHead;\n}", "parent": 0, "children": [169, 170], "start_point": {"row": 107, "column": 0}, "end_point": {"row": 116, "column": 1}}, {"id": 169, "type": "struct", "text": "struct", "parent": 168, "children": [], "start_point": {"row": 107, "column": 0}, "end_point": {"row": 107, "column": 6}}, {"id": 170, "type": "type_identifier", "text": "spgp_signature_packet_struct", "parent": 168, "children": [], "start_point": {"row": 107, "column": 7}, "end_point": {"row": 107, "column": 35}}, {"id": 171, "type": "field_declaration", "text": "uint8_t version;", "parent": 168, "children": [172, 173], "start_point": {"row": 108, "column": 1}, "end_point": {"row": 108, "column": 17}}, {"id": 172, "type": "primitive_type", "text": "uint8_t", "parent": 171, "children": [], "start_point": {"row": 108, "column": 1}, "end_point": {"row": 108, "column": 8}}, {"id": 173, "type": "field_identifier", "text": "version", "parent": 171, "children": [], "start_point": {"row": 108, "column": 9}, "end_point": {"row": 108, "column": 16}}, {"id": 174, "type": "field_declaration", "text": "uint8_t type;", "parent": 168, "children": [175, 176], "start_point": {"row": 109, "column": 2}, "end_point": {"row": 109, "column": 15}}, {"id": 175, "type": "primitive_type", "text": "uint8_t", "parent": 174, "children": [], "start_point": {"row": 109, "column": 2}, "end_point": {"row": 109, "column": 9}}, {"id": 176, "type": "field_identifier", "text": "type", "parent": 174, "children": [], "start_point": {"row": 109, "column": 10}, "end_point": {"row": 109, "column": 14}}, {"id": 177, "type": "field_declaration", "text": "uint8_t asymAlgo;", "parent": 168, "children": [178, 179], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 110, "column": 19}}, {"id": 178, "type": "primitive_type", "text": "uint8_t", "parent": 177, "children": [], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 110, "column": 9}}, {"id": 179, "type": "field_identifier", "text": "asymAlgo", "parent": 177, "children": [], "start_point": {"row": 110, "column": 10}, "end_point": {"row": 110, "column": 18}}, {"id": 180, "type": "field_declaration", "text": "uint8_t hashAlgo;", "parent": 168, "children": [181, 182], "start_point": {"row": 111, "column": 2}, "end_point": {"row": 111, "column": 19}}, {"id": 181, "type": "primitive_type", "text": "uint8_t", "parent": 180, "children": [], "start_point": {"row": 111, "column": 2}, "end_point": {"row": 111, "column": 9}}, {"id": 182, "type": "field_identifier", "text": "hashAlgo", "parent": 180, "children": [], "start_point": {"row": 111, "column": 10}, "end_point": {"row": 111, "column": 18}}, {"id": 183, "type": "field_declaration", "text": "uint16_t hashedSubLength;", "parent": 168, "children": [184, 185], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 27}}, {"id": 184, "type": "primitive_type", "text": "uint16_t", "parent": 183, "children": [], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 10}}, {"id": 185, "type": "field_identifier", "text": "hashedSubLength", "parent": 183, "children": [], "start_point": {"row": 112, "column": 11}, "end_point": {"row": 112, "column": 26}}, {"id": 186, "type": "field_declaration", "text": "uint16_t unhashedSubLength;", "parent": 168, "children": [187, 188], "start_point": {"row": 113, "column": 2}, "end_point": {"row": 113, "column": 29}}, {"id": 187, "type": "primitive_type", "text": "uint16_t", "parent": 186, "children": [], "start_point": {"row": 113, "column": 2}, "end_point": {"row": 113, "column": 10}}, {"id": 188, "type": "field_identifier", "text": "unhashedSubLength", "parent": 186, "children": [], "start_point": {"row": 113, "column": 11}, "end_point": {"row": 113, "column": 28}}, {"id": 189, "type": "field_declaration", "text": "uint16_t hashTest;", "parent": 168, "children": [190, 191], "start_point": {"row": 114, "column": 2}, "end_point": {"row": 114, "column": 20}}, {"id": 190, "type": "primitive_type", "text": "uint16_t", "parent": 189, "children": [], "start_point": {"row": 114, "column": 2}, "end_point": {"row": 114, "column": 10}}, {"id": 191, "type": "field_identifier", "text": "hashTest", "parent": 189, "children": [], "start_point": {"row": 114, "column": 11}, "end_point": {"row": 114, "column": 19}}, {"id": 192, "type": "field_declaration", "text": "spgp_mpi_t *mpiHead;", "parent": 168, "children": [193, 194], "start_point": {"row": 115, "column": 2}, "end_point": {"row": 115, "column": 22}}, {"id": 193, "type": "type_identifier", "text": "spgp_mpi_t", "parent": 192, "children": [], "start_point": {"row": 115, "column": 2}, "end_point": {"row": 115, "column": 12}}, {"id": 194, "type": "pointer_declarator", "text": "*mpiHead", "parent": 192, "children": [195, 196], "start_point": {"row": 115, "column": 13}, "end_point": {"row": 115, "column": 21}}, {"id": 195, "type": "*", "text": "*", "parent": 194, "children": [], "start_point": {"row": 115, "column": 13}, "end_point": {"row": 115, "column": 14}}, {"id": 196, "type": "field_identifier", "text": "mpiHead", "parent": 194, "children": [], "start_point": {"row": 115, "column": 14}, "end_point": {"row": 115, "column": 21}}, {"id": 197, "type": "struct_specifier", "text": "struct spgp_userid_packet_struct {\n\tuint8_t *data;\n}", "parent": 0, "children": [198, 199], "start_point": {"row": 119, "column": 0}, "end_point": {"row": 121, "column": 1}}, {"id": 198, "type": "struct", "text": "struct", "parent": 197, "children": [], "start_point": {"row": 119, "column": 0}, "end_point": {"row": 119, "column": 6}}, {"id": 199, "type": "type_identifier", "text": "spgp_userid_packet_struct", "parent": 197, "children": [], "start_point": {"row": 119, "column": 7}, "end_point": {"row": 119, "column": 32}}, {"id": 200, "type": "field_declaration", "text": "uint8_t *data;", "parent": 197, "children": [201, 202], "start_point": {"row": 120, "column": 1}, "end_point": {"row": 120, "column": 15}}, {"id": 201, "type": "primitive_type", "text": "uint8_t", "parent": 200, "children": [], "start_point": {"row": 120, "column": 1}, "end_point": {"row": 120, "column": 8}}, {"id": 202, "type": "pointer_declarator", "text": "*data", "parent": 200, "children": [203, 204], "start_point": {"row": 120, "column": 9}, "end_point": {"row": 120, "column": 14}}, {"id": 203, "type": "*", "text": "*", "parent": 202, "children": [], "start_point": {"row": 120, "column": 9}, "end_point": {"row": 120, "column": 10}}, {"id": 204, "type": "field_identifier", "text": "data", "parent": 202, "children": [], "start_point": {"row": 120, "column": 10}, "end_point": {"row": 120, "column": 14}}, {"id": 205, "type": "struct_specifier", "text": "struct spgp_session_packet_struct {\n uint8_t keyid[8];\n\tuint8_t version;\n uint8_t algo;\n uint8_t symAlgo;\n uint32_t keylen;\n char *key;\n spgp_mpi_t *mpi1;\n spgp_mpi_t *mpi2;\n}", "parent": 0, "children": [206, 207], "start_point": {"row": 123, "column": 0}, "end_point": {"row": 132, "column": 1}}, {"id": 206, "type": "struct", "text": "struct", "parent": 205, "children": [], "start_point": {"row": 123, "column": 0}, "end_point": {"row": 123, "column": 6}}, {"id": 207, "type": "type_identifier", "text": "spgp_session_packet_struct", "parent": 205, "children": [], "start_point": {"row": 123, "column": 7}, "end_point": {"row": 123, "column": 33}}, {"id": 208, "type": "field_declaration", "text": "uint8_t keyid[8];", "parent": 205, "children": [209, 210], "start_point": {"row": 124, "column": 2}, "end_point": {"row": 124, "column": 19}}, {"id": 209, "type": "primitive_type", "text": "uint8_t", "parent": 208, "children": [], "start_point": {"row": 124, "column": 2}, "end_point": {"row": 124, "column": 9}}, {"id": 210, "type": "array_declarator", "text": "keyid[8]", "parent": 208, "children": [211, 212], "start_point": {"row": 124, "column": 10}, "end_point": {"row": 124, "column": 18}}, {"id": 211, "type": "field_identifier", "text": "keyid", "parent": 210, "children": [], "start_point": {"row": 124, "column": 10}, "end_point": {"row": 124, "column": 15}}, {"id": 212, "type": "number_literal", "text": "8", "parent": 210, "children": [], "start_point": {"row": 124, "column": 16}, "end_point": {"row": 124, "column": 17}}, {"id": 213, "type": "field_declaration", "text": "uint8_t version;", "parent": 205, "children": [214, 215], "start_point": {"row": 125, "column": 1}, "end_point": {"row": 125, "column": 17}}, {"id": 214, "type": "primitive_type", "text": "uint8_t", "parent": 213, "children": [], "start_point": {"row": 125, "column": 1}, "end_point": {"row": 125, "column": 8}}, {"id": 215, "type": "field_identifier", "text": "version", "parent": 213, "children": [], "start_point": {"row": 125, "column": 9}, "end_point": {"row": 125, "column": 16}}, {"id": 216, "type": "field_declaration", "text": "uint8_t algo;", "parent": 205, "children": [217, 218], "start_point": {"row": 126, "column": 2}, "end_point": {"row": 126, "column": 15}}, {"id": 217, "type": "primitive_type", "text": "uint8_t", "parent": 216, "children": [], "start_point": {"row": 126, "column": 2}, "end_point": {"row": 126, "column": 9}}, {"id": 218, "type": "field_identifier", "text": "algo", "parent": 216, "children": [], "start_point": {"row": 126, "column": 10}, "end_point": {"row": 126, "column": 14}}, {"id": 219, "type": "field_declaration", "text": "uint8_t symAlgo;", "parent": 205, "children": [220, 221], "start_point": {"row": 127, "column": 2}, "end_point": {"row": 127, "column": 18}}, {"id": 220, "type": "primitive_type", "text": "uint8_t", "parent": 219, "children": [], "start_point": {"row": 127, "column": 2}, "end_point": {"row": 127, "column": 9}}, {"id": 221, "type": "field_identifier", "text": "symAlgo", "parent": 219, "children": [], "start_point": {"row": 127, "column": 10}, "end_point": {"row": 127, "column": 17}}, {"id": 222, "type": "field_declaration", "text": "uint32_t keylen;", "parent": 205, "children": [223, 224], "start_point": {"row": 128, "column": 2}, "end_point": {"row": 128, "column": 18}}, {"id": 223, "type": "primitive_type", "text": "uint32_t", "parent": 222, "children": [], "start_point": {"row": 128, "column": 2}, "end_point": {"row": 128, "column": 10}}, {"id": 224, "type": "field_identifier", "text": "keylen", "parent": 222, "children": [], "start_point": {"row": 128, "column": 11}, "end_point": {"row": 128, "column": 17}}, {"id": 225, "type": "field_declaration", "text": "char *key;", "parent": 205, "children": [226, 227], "start_point": {"row": 129, "column": 2}, "end_point": {"row": 129, "column": 12}}, {"id": 226, "type": "primitive_type", "text": "char", "parent": 225, "children": [], "start_point": {"row": 129, "column": 2}, "end_point": {"row": 129, "column": 6}}, {"id": 227, "type": "pointer_declarator", "text": "*key", "parent": 225, "children": [228, 229], "start_point": {"row": 129, "column": 7}, "end_point": {"row": 129, "column": 11}}, {"id": 228, "type": "*", "text": "*", "parent": 227, "children": [], "start_point": {"row": 129, "column": 7}, "end_point": {"row": 129, "column": 8}}, {"id": 229, "type": "field_identifier", "text": "key", "parent": 227, "children": [], "start_point": {"row": 129, "column": 8}, "end_point": {"row": 129, "column": 11}}, {"id": 230, "type": "field_declaration", "text": "spgp_mpi_t *mpi1;", "parent": 205, "children": [231, 232], "start_point": {"row": 130, "column": 2}, "end_point": {"row": 130, "column": 19}}, {"id": 231, "type": "type_identifier", "text": "spgp_mpi_t", "parent": 230, "children": [], "start_point": {"row": 130, "column": 2}, "end_point": {"row": 130, "column": 12}}, {"id": 232, "type": "pointer_declarator", "text": "*mpi1", "parent": 230, "children": [233, 234], "start_point": {"row": 130, "column": 13}, "end_point": {"row": 130, "column": 18}}, {"id": 233, "type": "*", "text": "*", "parent": 232, "children": [], "start_point": {"row": 130, "column": 13}, "end_point": {"row": 130, "column": 14}}, {"id": 234, "type": "field_identifier", "text": "mpi1", "parent": 232, "children": [], "start_point": {"row": 130, "column": 14}, "end_point": {"row": 130, "column": 18}}, {"id": 235, "type": "field_declaration", "text": "spgp_mpi_t *mpi2;", "parent": 205, "children": [236, 237], "start_point": {"row": 131, "column": 2}, "end_point": {"row": 131, "column": 19}}, {"id": 236, "type": "type_identifier", "text": "spgp_mpi_t", "parent": 235, "children": [], "start_point": {"row": 131, "column": 2}, "end_point": {"row": 131, "column": 12}}, {"id": 237, "type": "pointer_declarator", "text": "*mpi2", "parent": 235, "children": [238, 239], "start_point": {"row": 131, "column": 13}, "end_point": {"row": 131, "column": 18}}, {"id": 238, "type": "*", "text": "*", "parent": 237, "children": [], "start_point": {"row": 131, "column": 13}, "end_point": {"row": 131, "column": 14}}, {"id": 239, "type": "field_identifier", "text": "mpi2", "parent": 237, "children": [], "start_point": {"row": 131, "column": 14}, "end_point": {"row": 131, "column": 18}}, {"id": 240, "type": "struct_specifier", "text": "struct spgp_public_packet_struct {\n// This is public key stuff\n\tuint8_t version;\n uint32_t creationTime;\n\tuint8_t asymAlgo;\n spgp_mpi_t *mpiHead;\n uint8_t mpiCount;\n uint8_t *fingerprint;\n} __attribute__((packed))", "parent": 0, "children": [241, 242, 265], "start_point": {"row": 134, "column": 0}, "end_point": {"row": 142, "column": 25}}, {"id": 241, "type": "struct", "text": "struct", "parent": 240, "children": [], "start_point": {"row": 134, "column": 0}, "end_point": {"row": 134, "column": 6}}, {"id": 242, "type": "type_identifier", "text": "spgp_public_packet_struct", "parent": 240, "children": [], "start_point": {"row": 134, "column": 7}, "end_point": {"row": 134, "column": 32}}, {"id": 243, "type": "field_declaration", "text": "uint8_t version;", "parent": 240, "children": [244, 245], "start_point": {"row": 136, "column": 1}, "end_point": {"row": 136, "column": 17}}, {"id": 244, "type": "primitive_type", "text": "uint8_t", "parent": 243, "children": [], "start_point": {"row": 136, "column": 1}, "end_point": {"row": 136, "column": 8}}, {"id": 245, "type": "field_identifier", "text": "version", "parent": 243, "children": [], "start_point": {"row": 136, "column": 9}, "end_point": {"row": 136, "column": 16}}, {"id": 246, "type": "field_declaration", "text": "uint32_t creationTime;", "parent": 240, "children": [247, 248], "start_point": {"row": 137, "column": 2}, "end_point": {"row": 137, "column": 24}}, {"id": 247, "type": "primitive_type", "text": "uint32_t", "parent": 246, "children": [], "start_point": {"row": 137, "column": 2}, "end_point": {"row": 137, "column": 10}}, {"id": 248, "type": "field_identifier", "text": "creationTime", "parent": 246, "children": [], "start_point": {"row": 137, "column": 11}, "end_point": {"row": 137, "column": 23}}, {"id": 249, "type": "field_declaration", "text": "uint8_t asymAlgo;", "parent": 240, "children": [250, 251], "start_point": {"row": 138, "column": 1}, "end_point": {"row": 138, "column": 18}}, {"id": 250, "type": "primitive_type", "text": "uint8_t", "parent": 249, "children": [], "start_point": {"row": 138, "column": 1}, "end_point": {"row": 138, "column": 8}}, {"id": 251, "type": "field_identifier", "text": "asymAlgo", "parent": 249, "children": [], "start_point": {"row": 138, "column": 9}, "end_point": {"row": 138, "column": 17}}, {"id": 252, "type": "field_declaration", "text": "spgp_mpi_t *mpiHead;", "parent": 240, "children": [253, 254], "start_point": {"row": 139, "column": 2}, "end_point": {"row": 139, "column": 22}}, {"id": 253, "type": "type_identifier", "text": "spgp_mpi_t", "parent": 252, "children": [], "start_point": {"row": 139, "column": 2}, "end_point": {"row": 139, "column": 12}}, {"id": 254, "type": "pointer_declarator", "text": "*mpiHead", "parent": 252, "children": [255, 256], "start_point": {"row": 139, "column": 13}, "end_point": {"row": 139, "column": 21}}, {"id": 255, "type": "*", "text": "*", "parent": 254, "children": [], "start_point": {"row": 139, "column": 13}, "end_point": {"row": 139, "column": 14}}, {"id": 256, "type": "field_identifier", "text": "mpiHead", "parent": 254, "children": [], "start_point": {"row": 139, "column": 14}, "end_point": {"row": 139, "column": 21}}, {"id": 257, "type": "field_declaration", "text": "uint8_t mpiCount;", "parent": 240, "children": [258, 259], "start_point": {"row": 140, "column": 2}, "end_point": {"row": 140, "column": 19}}, {"id": 258, "type": "primitive_type", "text": "uint8_t", "parent": 257, "children": [], "start_point": {"row": 140, "column": 2}, "end_point": {"row": 140, "column": 9}}, {"id": 259, "type": "field_identifier", "text": "mpiCount", "parent": 257, "children": [], "start_point": {"row": 140, "column": 10}, "end_point": {"row": 140, "column": 18}}, {"id": 260, "type": "field_declaration", "text": "uint8_t *fingerprint;", "parent": 240, "children": [261, 262], "start_point": {"row": 141, "column": 2}, "end_point": {"row": 141, "column": 23}}, {"id": 261, "type": "primitive_type", "text": "uint8_t", "parent": 260, "children": [], "start_point": {"row": 141, "column": 2}, "end_point": {"row": 141, "column": 9}}, {"id": 262, "type": "pointer_declarator", "text": "*fingerprint", "parent": 260, "children": [263, 264], "start_point": {"row": 141, "column": 10}, "end_point": {"row": 141, "column": 22}}, {"id": 263, "type": "*", "text": "*", "parent": 262, "children": [], "start_point": {"row": 141, "column": 10}, "end_point": {"row": 141, "column": 11}}, {"id": 264, "type": "field_identifier", "text": "fingerprint", "parent": 262, "children": [], "start_point": {"row": 141, "column": 11}, "end_point": {"row": 141, "column": 22}}, {"id": 265, "type": "attribute_specifier", "text": "__attribute__((packed))", "parent": 240, "children": [266, 267], "start_point": {"row": 142, "column": 2}, "end_point": {"row": 142, "column": 25}}, {"id": 266, "type": "__attribute__", "text": "__attribute__", "parent": 265, "children": [], "start_point": {"row": 142, "column": 2}, "end_point": {"row": 142, "column": 15}}, {"id": 267, "type": "argument_list", "text": "(packed)", "parent": 265, "children": [268], "start_point": {"row": 142, "column": 16}, "end_point": {"row": 142, "column": 24}}, {"id": 268, "type": "identifier", "text": "packed", "parent": 267, "children": [], "start_point": {"row": 142, "column": 17}, "end_point": {"row": 142, "column": 23}}, {"id": 269, "type": "struct_specifier", "text": "struct spgp_secret_packet_struct {\n// This is public key stuff\n\tspgp_public_pkt_t pub;\n// This is secret key stuff \n\tuint8_t isDecrypted;\n uint8_t s2kType;\n uint8_t s2kEncryption;\n uint8_t s2kSpecifier;\n uint8_t s2kHashAlgo;\n uint8_t *s2kSalt;\n uint8_t s2kSaltLength;\n uint8_t s2kCount;\n uint8_t *encryptedData;\n uint32_t encryptedDataLength;\n uint8_t *key;\n uint32_t keyLength;\n uint8_t *iv;\n uint8_t ivLength;\n} __attribute__((packed))", "parent": 0, "children": [270, 271, 325], "start_point": {"row": 144, "column": 0}, "end_point": {"row": 162, "column": 25}}, {"id": 270, "type": "struct", "text": "struct", "parent": 269, "children": [], "start_point": {"row": 144, "column": 0}, "end_point": {"row": 144, "column": 6}}, {"id": 271, "type": "type_identifier", "text": "spgp_secret_packet_struct", "parent": 269, "children": [], "start_point": {"row": 144, "column": 7}, "end_point": {"row": 144, "column": 32}}, {"id": 272, "type": "field_declaration", "text": "spgp_public_pkt_t pub;", "parent": 269, "children": [273, 274], "start_point": {"row": 146, "column": 1}, "end_point": {"row": 146, "column": 23}}, {"id": 273, "type": "type_identifier", "text": "spgp_public_pkt_t", "parent": 272, "children": [], "start_point": {"row": 146, "column": 1}, "end_point": {"row": 146, "column": 18}}, {"id": 274, "type": "field_identifier", "text": "pub", "parent": 272, "children": [], "start_point": {"row": 146, "column": 19}, "end_point": {"row": 146, "column": 22}}, {"id": 275, "type": "field_declaration", "text": "uint8_t isDecrypted;", "parent": 269, "children": [276, 277], "start_point": {"row": 148, "column": 1}, "end_point": {"row": 148, "column": 21}}, {"id": 276, "type": "primitive_type", "text": "uint8_t", "parent": 275, "children": [], "start_point": {"row": 148, "column": 1}, "end_point": {"row": 148, "column": 8}}, {"id": 277, "type": "field_identifier", "text": "isDecrypted", "parent": 275, "children": [], "start_point": {"row": 148, "column": 9}, "end_point": {"row": 148, "column": 20}}, {"id": 278, "type": "field_declaration", "text": "uint8_t s2kType;", "parent": 269, "children": [279, 280], "start_point": {"row": 149, "column": 2}, "end_point": {"row": 149, "column": 18}}, {"id": 279, "type": "primitive_type", "text": "uint8_t", "parent": 278, "children": [], "start_point": {"row": 149, "column": 2}, "end_point": {"row": 149, "column": 9}}, {"id": 280, "type": "field_identifier", "text": "s2kType", "parent": 278, "children": [], "start_point": {"row": 149, "column": 10}, "end_point": {"row": 149, "column": 17}}, {"id": 281, "type": "field_declaration", "text": "uint8_t s2kEncryption;", "parent": 269, "children": [282, 283], "start_point": {"row": 150, "column": 2}, "end_point": {"row": 150, "column": 24}}, {"id": 282, "type": "primitive_type", "text": "uint8_t", "parent": 281, "children": [], "start_point": {"row": 150, "column": 2}, "end_point": {"row": 150, "column": 9}}, {"id": 283, "type": "field_identifier", "text": "s2kEncryption", "parent": 281, "children": [], "start_point": {"row": 150, "column": 10}, "end_point": {"row": 150, "column": 23}}, {"id": 284, "type": "field_declaration", "text": "uint8_t s2kSpecifier;", "parent": 269, "children": [285, 286], "start_point": {"row": 151, "column": 2}, "end_point": {"row": 151, "column": 23}}, {"id": 285, "type": "primitive_type", "text": "uint8_t", "parent": 284, "children": [], "start_point": {"row": 151, "column": 2}, "end_point": {"row": 151, "column": 9}}, {"id": 286, "type": "field_identifier", "text": "s2kSpecifier", "parent": 284, "children": [], "start_point": {"row": 151, "column": 10}, "end_point": {"row": 151, "column": 22}}, {"id": 287, "type": "field_declaration", "text": "uint8_t s2kHashAlgo;", "parent": 269, "children": [288, 289], "start_point": {"row": 152, "column": 2}, "end_point": {"row": 152, "column": 22}}, {"id": 288, "type": "primitive_type", "text": "uint8_t", "parent": 287, "children": [], "start_point": {"row": 152, "column": 2}, "end_point": {"row": 152, "column": 9}}, {"id": 289, "type": "field_identifier", "text": "s2kHashAlgo", "parent": 287, "children": [], "start_point": {"row": 152, "column": 10}, "end_point": {"row": 152, "column": 21}}, {"id": 290, "type": "field_declaration", "text": "uint8_t *s2kSalt;", "parent": 269, "children": [291, 292], "start_point": {"row": 153, "column": 2}, "end_point": {"row": 153, "column": 19}}, {"id": 291, "type": "primitive_type", "text": "uint8_t", "parent": 290, "children": [], "start_point": {"row": 153, "column": 2}, "end_point": {"row": 153, "column": 9}}, {"id": 292, "type": "pointer_declarator", "text": "*s2kSalt", "parent": 290, "children": [293, 294], "start_point": {"row": 153, "column": 10}, "end_point": {"row": 153, "column": 18}}, {"id": 293, "type": "*", "text": "*", "parent": 292, "children": [], "start_point": {"row": 153, "column": 10}, "end_point": {"row": 153, "column": 11}}, {"id": 294, "type": "field_identifier", "text": "s2kSalt", "parent": 292, "children": [], "start_point": {"row": 153, "column": 11}, "end_point": {"row": 153, "column": 18}}, {"id": 295, "type": "field_declaration", "text": "uint8_t s2kSaltLength;", "parent": 269, "children": [296, 297], "start_point": {"row": 154, "column": 2}, "end_point": {"row": 154, "column": 24}}, {"id": 296, "type": "primitive_type", "text": "uint8_t", "parent": 295, "children": [], "start_point": {"row": 154, "column": 2}, "end_point": {"row": 154, "column": 9}}, {"id": 297, "type": "field_identifier", "text": "s2kSaltLength", "parent": 295, "children": [], "start_point": {"row": 154, "column": 10}, "end_point": {"row": 154, "column": 23}}, {"id": 298, "type": "field_declaration", "text": "uint8_t s2kCount;", "parent": 269, "children": [299, 300], "start_point": {"row": 155, "column": 2}, "end_point": {"row": 155, "column": 19}}, {"id": 299, "type": "primitive_type", "text": "uint8_t", "parent": 298, "children": [], "start_point": {"row": 155, "column": 2}, "end_point": {"row": 155, "column": 9}}, {"id": 300, "type": "field_identifier", "text": "s2kCount", "parent": 298, "children": [], "start_point": {"row": 155, "column": 10}, "end_point": {"row": 155, "column": 18}}, {"id": 301, "type": "field_declaration", "text": "uint8_t *encryptedData;", "parent": 269, "children": [302, 303], "start_point": {"row": 156, "column": 2}, "end_point": {"row": 156, "column": 25}}, {"id": 302, "type": "primitive_type", "text": "uint8_t", "parent": 301, "children": [], "start_point": {"row": 156, "column": 2}, "end_point": {"row": 156, "column": 9}}, {"id": 303, "type": "pointer_declarator", "text": "*encryptedData", "parent": 301, "children": [304, 305], "start_point": {"row": 156, "column": 10}, "end_point": {"row": 156, "column": 24}}, {"id": 304, "type": "*", "text": "*", "parent": 303, "children": [], "start_point": {"row": 156, "column": 10}, "end_point": {"row": 156, "column": 11}}, {"id": 305, "type": "field_identifier", "text": "encryptedData", "parent": 303, "children": [], "start_point": {"row": 156, "column": 11}, "end_point": {"row": 156, "column": 24}}, {"id": 306, "type": "field_declaration", "text": "uint32_t encryptedDataLength;", "parent": 269, "children": [307, 308], "start_point": {"row": 157, "column": 2}, "end_point": {"row": 157, "column": 31}}, {"id": 307, "type": "primitive_type", "text": "uint32_t", "parent": 306, "children": [], "start_point": {"row": 157, "column": 2}, "end_point": {"row": 157, "column": 10}}, {"id": 308, "type": "field_identifier", "text": "encryptedDataLength", "parent": 306, "children": [], "start_point": {"row": 157, "column": 11}, "end_point": {"row": 157, "column": 30}}, {"id": 309, "type": "field_declaration", "text": "uint8_t *key;", "parent": 269, "children": [310, 311], "start_point": {"row": 158, "column": 2}, "end_point": {"row": 158, "column": 15}}, {"id": 310, "type": "primitive_type", "text": "uint8_t", "parent": 309, "children": [], "start_point": {"row": 158, "column": 2}, "end_point": {"row": 158, "column": 9}}, {"id": 311, "type": "pointer_declarator", "text": "*key", "parent": 309, "children": [312, 313], "start_point": {"row": 158, "column": 10}, "end_point": {"row": 158, "column": 14}}, {"id": 312, "type": "*", "text": "*", "parent": 311, "children": [], "start_point": {"row": 158, "column": 10}, "end_point": {"row": 158, "column": 11}}, {"id": 313, "type": "field_identifier", "text": "key", "parent": 311, "children": [], "start_point": {"row": 158, "column": 11}, "end_point": {"row": 158, "column": 14}}, {"id": 314, "type": "field_declaration", "text": "uint32_t keyLength;", "parent": 269, "children": [315, 316], "start_point": {"row": 159, "column": 2}, "end_point": {"row": 159, "column": 21}}, {"id": 315, "type": "primitive_type", "text": "uint32_t", "parent": 314, "children": [], "start_point": {"row": 159, "column": 2}, "end_point": {"row": 159, "column": 10}}, {"id": 316, "type": "field_identifier", "text": "keyLength", "parent": 314, "children": [], "start_point": {"row": 159, "column": 11}, "end_point": {"row": 159, "column": 20}}, {"id": 317, "type": "field_declaration", "text": "uint8_t *iv;", "parent": 269, "children": [318, 319], "start_point": {"row": 160, "column": 2}, "end_point": {"row": 160, "column": 14}}, {"id": 318, "type": "primitive_type", "text": "uint8_t", "parent": 317, "children": [], "start_point": {"row": 160, "column": 2}, "end_point": {"row": 160, "column": 9}}, {"id": 319, "type": "pointer_declarator", "text": "*iv", "parent": 317, "children": [320, 321], "start_point": {"row": 160, "column": 10}, "end_point": {"row": 160, "column": 13}}, {"id": 320, "type": "*", "text": "*", "parent": 319, "children": [], "start_point": {"row": 160, "column": 10}, "end_point": {"row": 160, "column": 11}}, {"id": 321, "type": "field_identifier", "text": "iv", "parent": 319, "children": [], "start_point": {"row": 160, "column": 11}, "end_point": {"row": 160, "column": 13}}, {"id": 322, "type": "field_declaration", "text": "uint8_t ivLength;", "parent": 269, "children": [323, 324], "start_point": {"row": 161, "column": 2}, "end_point": {"row": 161, "column": 19}}, {"id": 323, "type": "primitive_type", "text": "uint8_t", "parent": 322, "children": [], "start_point": {"row": 161, "column": 2}, "end_point": {"row": 161, "column": 9}}, {"id": 324, "type": "field_identifier", "text": "ivLength", "parent": 322, "children": [], "start_point": {"row": 161, "column": 10}, "end_point": {"row": 161, "column": 18}}, {"id": 325, "type": "attribute_specifier", "text": "__attribute__((packed))", "parent": 269, "children": [326, 327], "start_point": {"row": 162, "column": 2}, "end_point": {"row": 162, "column": 25}}, {"id": 326, "type": "__attribute__", "text": "__attribute__", "parent": 325, "children": [], "start_point": {"row": 162, "column": 2}, "end_point": {"row": 162, "column": 15}}, {"id": 327, "type": "argument_list", "text": "(packed)", "parent": 325, "children": [328], "start_point": {"row": 162, "column": 16}, "end_point": {"row": 162, "column": 24}}, {"id": 328, "type": "identifier", "text": "packed", "parent": 327, "children": [], "start_point": {"row": 162, "column": 17}, "end_point": {"row": 162, "column": 23}}, {"id": 329, "type": "type_definition", "text": "typedef enum {\n\tGENERIC_ERROR = 0x100,\n OUT_OF_MEMORY,\n INVALID_HEADER,\n FORMAT_UNSUPPORTED,\n\tINVALID_ARGS,\n\tBUFFER_OVERFLOW,\n INCOMPLETE_PACKET,\n DECRYPT_FAILED,\n GCRY_ERROR,\n KEYCHAIN_ERROR,\n ZLIB_ERROR,\n} spgp_error_t;", "parent": 0, "children": [330, 331, 358], "start_point": {"row": 164, "column": 0}, "end_point": {"row": 176, "column": 15}}, {"id": 330, "type": "typedef", "text": "typedef", "parent": 329, "children": [], "start_point": {"row": 164, "column": 0}, "end_point": {"row": 164, "column": 7}}, {"id": 331, "type": "enum_specifier", "text": "enum {\n\tGENERIC_ERROR = 0x100,\n OUT_OF_MEMORY,\n INVALID_HEADER,\n FORMAT_UNSUPPORTED,\n\tINVALID_ARGS,\n\tBUFFER_OVERFLOW,\n INCOMPLETE_PACKET,\n DECRYPT_FAILED,\n GCRY_ERROR,\n KEYCHAIN_ERROR,\n ZLIB_ERROR,\n}", "parent": 329, "children": [332, 333], "start_point": {"row": 164, "column": 8}, "end_point": {"row": 176, "column": 1}}, {"id": 332, "type": "enum", "text": "enum", "parent": 331, "children": [], "start_point": {"row": 164, "column": 8}, "end_point": {"row": 164, "column": 12}}, {"id": 333, "type": "enumerator_list", "text": "{\n\tGENERIC_ERROR = 0x100,\n OUT_OF_MEMORY,\n INVALID_HEADER,\n FORMAT_UNSUPPORTED,\n\tINVALID_ARGS,\n\tBUFFER_OVERFLOW,\n INCOMPLETE_PACKET,\n DECRYPT_FAILED,\n GCRY_ERROR,\n KEYCHAIN_ERROR,\n ZLIB_ERROR,\n}", "parent": 331, "children": [334, 338, 340, 342, 344, 346, 348, 350, 352, 354, 356], "start_point": {"row": 164, "column": 13}, "end_point": {"row": 176, "column": 1}}, {"id": 334, "type": "enumerator", "text": "GENERIC_ERROR = 0x100", "parent": 333, "children": [335, 336, 337], "start_point": {"row": 165, "column": 1}, "end_point": {"row": 165, "column": 32}}, {"id": 335, "type": "identifier", "text": "GENERIC_ERROR", "parent": 334, "children": [], "start_point": {"row": 165, "column": 1}, "end_point": {"row": 165, "column": 14}}, {"id": 336, "type": "=", "text": "=", "parent": 334, "children": [], "start_point": {"row": 165, "column": 25}, "end_point": {"row": 165, "column": 26}}, {"id": 337, "type": "number_literal", "text": "0x100", "parent": 334, "children": [], "start_point": {"row": 165, "column": 27}, "end_point": {"row": 165, "column": 32}}, {"id": 338, "type": "enumerator", "text": "OUT_OF_MEMORY", "parent": 333, "children": [339], "start_point": {"row": 166, "column": 2}, "end_point": {"row": 166, "column": 15}}, {"id": 339, "type": "identifier", "text": "OUT_OF_MEMORY", "parent": 338, "children": [], "start_point": {"row": 166, "column": 2}, "end_point": {"row": 166, "column": 15}}, {"id": 340, "type": "enumerator", "text": "INVALID_HEADER", "parent": 333, "children": [341], "start_point": {"row": 167, "column": 2}, "end_point": {"row": 167, "column": 16}}, {"id": 341, "type": "identifier", "text": "INVALID_HEADER", "parent": 340, "children": [], "start_point": {"row": 167, "column": 2}, "end_point": {"row": 167, "column": 16}}, {"id": 342, "type": "enumerator", "text": "FORMAT_UNSUPPORTED", "parent": 333, "children": [343], "start_point": {"row": 168, "column": 2}, "end_point": {"row": 168, "column": 20}}, {"id": 343, "type": "identifier", "text": "FORMAT_UNSUPPORTED", "parent": 342, "children": [], "start_point": {"row": 168, "column": 2}, "end_point": {"row": 168, "column": 20}}, {"id": 344, "type": "enumerator", "text": "INVALID_ARGS", "parent": 333, "children": [345], "start_point": {"row": 169, "column": 1}, "end_point": {"row": 169, "column": 13}}, {"id": 345, "type": "identifier", "text": "INVALID_ARGS", "parent": 344, "children": [], "start_point": {"row": 169, "column": 1}, "end_point": {"row": 169, "column": 13}}, {"id": 346, "type": "enumerator", "text": "BUFFER_OVERFLOW", "parent": 333, "children": [347], "start_point": {"row": 170, "column": 1}, "end_point": {"row": 170, "column": 16}}, {"id": 347, "type": "identifier", "text": "BUFFER_OVERFLOW", "parent": 346, "children": [], "start_point": {"row": 170, "column": 1}, "end_point": {"row": 170, "column": 16}}, {"id": 348, "type": "enumerator", "text": "INCOMPLETE_PACKET", "parent": 333, "children": [349], "start_point": {"row": 171, "column": 2}, "end_point": {"row": 171, "column": 19}}, {"id": 349, "type": "identifier", "text": "INCOMPLETE_PACKET", "parent": 348, "children": [], "start_point": {"row": 171, "column": 2}, "end_point": {"row": 171, "column": 19}}, {"id": 350, "type": "enumerator", "text": "DECRYPT_FAILED", "parent": 333, "children": [351], "start_point": {"row": 172, "column": 2}, "end_point": {"row": 172, "column": 16}}, {"id": 351, "type": "identifier", "text": "DECRYPT_FAILED", "parent": 350, "children": [], "start_point": {"row": 172, "column": 2}, "end_point": {"row": 172, "column": 16}}, {"id": 352, "type": "enumerator", "text": "GCRY_ERROR", "parent": 333, "children": [353], "start_point": {"row": 173, "column": 2}, "end_point": {"row": 173, "column": 12}}, {"id": 353, "type": "identifier", "text": "GCRY_ERROR", "parent": 352, "children": [], "start_point": {"row": 173, "column": 2}, "end_point": {"row": 173, "column": 12}}, {"id": 354, "type": "enumerator", "text": "KEYCHAIN_ERROR", "parent": 333, "children": [355], "start_point": {"row": 174, "column": 2}, "end_point": {"row": 174, "column": 16}}, {"id": 355, "type": "identifier", "text": "KEYCHAIN_ERROR", "parent": 354, "children": [], "start_point": {"row": 174, "column": 2}, "end_point": {"row": 174, "column": 16}}, {"id": 356, "type": "enumerator", "text": "ZLIB_ERROR", "parent": 333, "children": [357], "start_point": {"row": 175, "column": 2}, "end_point": {"row": 175, "column": 12}}, {"id": 357, "type": "identifier", "text": "ZLIB_ERROR", "parent": 356, "children": [], "start_point": {"row": 175, "column": 2}, "end_point": {"row": 175, "column": 12}}, {"id": 358, "type": "type_identifier", "text": "spgp_error_t", "parent": 329, "children": [], "start_point": {"row": 176, "column": 2}, "end_point": {"row": 176, "column": 14}}, {"id": 359, "type": "type_definition", "text": "typedef enum {\n\tPKT_TYPE_SESSION = 1,\n\tPKT_TYPE_SIGNATURE = 2,\n\tPKT_TYPE_SECRET_KEY = 5,\n PKT_TYPE_PUBLIC_KEY = 6,\n\tPKT_TYPE_SECRET_SUBKEY = 7,\n PKT_TYPE_COMPRESSED_DATA = 8,\n PKT_TYPE_LITERAL_DATA = 11,\n PKT_TYPE_USER_ID = 13,\n PKT_TYPE_PUBLIC_SUBKEY = 14,\n PKT_TYPE_SYM_ENC_INT_DATA = 18,\n} spgp_pkt_type_t;", "parent": 0, "children": [360, 361, 404], "start_point": {"row": 179, "column": 0}, "end_point": {"row": 190, "column": 18}}, {"id": 360, "type": "typedef", "text": "typedef", "parent": 359, "children": [], "start_point": {"row": 179, "column": 0}, "end_point": {"row": 179, "column": 7}}, {"id": 361, "type": "enum_specifier", "text": "enum {\n\tPKT_TYPE_SESSION = 1,\n\tPKT_TYPE_SIGNATURE = 2,\n\tPKT_TYPE_SECRET_KEY = 5,\n PKT_TYPE_PUBLIC_KEY = 6,\n\tPKT_TYPE_SECRET_SUBKEY = 7,\n PKT_TYPE_COMPRESSED_DATA = 8,\n PKT_TYPE_LITERAL_DATA = 11,\n PKT_TYPE_USER_ID = 13,\n PKT_TYPE_PUBLIC_SUBKEY = 14,\n PKT_TYPE_SYM_ENC_INT_DATA = 18,\n}", "parent": 359, "children": [362, 363], "start_point": {"row": 179, "column": 8}, "end_point": {"row": 190, "column": 1}}, {"id": 362, "type": "enum", "text": "enum", "parent": 361, "children": [], "start_point": {"row": 179, "column": 8}, "end_point": {"row": 179, "column": 12}}, {"id": 363, "type": "enumerator_list", "text": "{\n\tPKT_TYPE_SESSION = 1,\n\tPKT_TYPE_SIGNATURE = 2,\n\tPKT_TYPE_SECRET_KEY = 5,\n PKT_TYPE_PUBLIC_KEY = 6,\n\tPKT_TYPE_SECRET_SUBKEY = 7,\n PKT_TYPE_COMPRESSED_DATA = 8,\n PKT_TYPE_LITERAL_DATA = 11,\n PKT_TYPE_USER_ID = 13,\n PKT_TYPE_PUBLIC_SUBKEY = 14,\n PKT_TYPE_SYM_ENC_INT_DATA = 18,\n}", "parent": 361, "children": [364, 368, 372, 376, 380, 384, 388, 392, 396, 400], "start_point": {"row": 179, "column": 13}, "end_point": {"row": 190, "column": 1}}, {"id": 364, "type": "enumerator", "text": "PKT_TYPE_SESSION = 1", "parent": 363, "children": [365, 366, 367], "start_point": {"row": 180, "column": 1}, "end_point": {"row": 180, "column": 31}}, {"id": 365, "type": "identifier", "text": "PKT_TYPE_SESSION", "parent": 364, "children": [], "start_point": {"row": 180, "column": 1}, "end_point": {"row": 180, "column": 17}}, {"id": 366, "type": "=", "text": "=", "parent": 364, "children": [], "start_point": {"row": 180, "column": 28}, "end_point": {"row": 180, "column": 29}}, {"id": 367, "type": "number_literal", "text": "1", "parent": 364, "children": [], "start_point": {"row": 180, "column": 30}, "end_point": {"row": 180, "column": 31}}, {"id": 368, "type": "enumerator", "text": "PKT_TYPE_SIGNATURE = 2", "parent": 363, "children": [369, 370, 371], "start_point": {"row": 181, "column": 1}, "end_point": {"row": 181, "column": 31}}, {"id": 369, "type": "identifier", "text": "PKT_TYPE_SIGNATURE", "parent": 368, "children": [], "start_point": {"row": 181, "column": 1}, "end_point": {"row": 181, "column": 19}}, {"id": 370, "type": "=", "text": "=", "parent": 368, "children": [], "start_point": {"row": 181, "column": 28}, "end_point": {"row": 181, "column": 29}}, {"id": 371, "type": "number_literal", "text": "2", "parent": 368, "children": [], "start_point": {"row": 181, "column": 30}, "end_point": {"row": 181, "column": 31}}, {"id": 372, "type": "enumerator", "text": "PKT_TYPE_SECRET_KEY = 5", "parent": 363, "children": [373, 374, 375], "start_point": {"row": 182, "column": 1}, "end_point": {"row": 182, "column": 31}}, {"id": 373, "type": "identifier", "text": "PKT_TYPE_SECRET_KEY", "parent": 372, "children": [], "start_point": {"row": 182, "column": 1}, "end_point": {"row": 182, "column": 20}}, {"id": 374, "type": "=", "text": "=", "parent": 372, "children": [], "start_point": {"row": 182, "column": 28}, "end_point": {"row": 182, "column": 29}}, {"id": 375, "type": "number_literal", "text": "5", "parent": 372, "children": [], "start_point": {"row": 182, "column": 30}, "end_point": {"row": 182, "column": 31}}, {"id": 376, "type": "enumerator", "text": "PKT_TYPE_PUBLIC_KEY = 6", "parent": 363, "children": [377, 378, 379], "start_point": {"row": 183, "column": 2}, "end_point": {"row": 183, "column": 32}}, {"id": 377, "type": "identifier", "text": "PKT_TYPE_PUBLIC_KEY", "parent": 376, "children": [], "start_point": {"row": 183, "column": 2}, "end_point": {"row": 183, "column": 21}}, {"id": 378, "type": "=", "text": "=", "parent": 376, "children": [], "start_point": {"row": 183, "column": 29}, "end_point": {"row": 183, "column": 30}}, {"id": 379, "type": "number_literal", "text": "6", "parent": 376, "children": [], "start_point": {"row": 183, "column": 31}, "end_point": {"row": 183, "column": 32}}, {"id": 380, "type": "enumerator", "text": "PKT_TYPE_SECRET_SUBKEY = 7", "parent": 363, "children": [381, 382, 383], "start_point": {"row": 184, "column": 1}, "end_point": {"row": 184, "column": 31}}, {"id": 381, "type": "identifier", "text": "PKT_TYPE_SECRET_SUBKEY", "parent": 380, "children": [], "start_point": {"row": 184, "column": 1}, "end_point": {"row": 184, "column": 23}}, {"id": 382, "type": "=", "text": "=", "parent": 380, "children": [], "start_point": {"row": 184, "column": 28}, "end_point": {"row": 184, "column": 29}}, {"id": 383, "type": "number_literal", "text": "7", "parent": 380, "children": [], "start_point": {"row": 184, "column": 30}, "end_point": {"row": 184, "column": 31}}, {"id": 384, "type": "enumerator", "text": "PKT_TYPE_COMPRESSED_DATA = 8", "parent": 363, "children": [385, 386, 387], "start_point": {"row": 185, "column": 2}, "end_point": {"row": 185, "column": 32}}, {"id": 385, "type": "identifier", "text": "PKT_TYPE_COMPRESSED_DATA", "parent": 384, "children": [], "start_point": {"row": 185, "column": 2}, "end_point": {"row": 185, "column": 26}}, {"id": 386, "type": "=", "text": "=", "parent": 384, "children": [], "start_point": {"row": 185, "column": 29}, "end_point": {"row": 185, "column": 30}}, {"id": 387, "type": "number_literal", "text": "8", "parent": 384, "children": [], "start_point": {"row": 185, "column": 31}, "end_point": {"row": 185, "column": 32}}, {"id": 388, "type": "enumerator", "text": "PKT_TYPE_LITERAL_DATA = 11", "parent": 363, "children": [389, 390, 391], "start_point": {"row": 186, "column": 2}, "end_point": {"row": 186, "column": 33}}, {"id": 389, "type": "identifier", "text": "PKT_TYPE_LITERAL_DATA", "parent": 388, "children": [], "start_point": {"row": 186, "column": 2}, "end_point": {"row": 186, "column": 23}}, {"id": 390, "type": "=", "text": "=", "parent": 388, "children": [], "start_point": {"row": 186, "column": 29}, "end_point": {"row": 186, "column": 30}}, {"id": 391, "type": "number_literal", "text": "11", "parent": 388, "children": [], "start_point": {"row": 186, "column": 31}, "end_point": {"row": 186, "column": 33}}, {"id": 392, "type": "enumerator", "text": "PKT_TYPE_USER_ID = 13", "parent": 363, "children": [393, 394, 395], "start_point": {"row": 187, "column": 2}, "end_point": {"row": 187, "column": 33}}, {"id": 393, "type": "identifier", "text": "PKT_TYPE_USER_ID", "parent": 392, "children": [], "start_point": {"row": 187, "column": 2}, "end_point": {"row": 187, "column": 18}}, {"id": 394, "type": "=", "text": "=", "parent": 392, "children": [], "start_point": {"row": 187, "column": 29}, "end_point": {"row": 187, "column": 30}}, {"id": 395, "type": "number_literal", "text": "13", "parent": 392, "children": [], "start_point": {"row": 187, "column": 31}, "end_point": {"row": 187, "column": 33}}, {"id": 396, "type": "enumerator", "text": "PKT_TYPE_PUBLIC_SUBKEY = 14", "parent": 363, "children": [397, 398, 399], "start_point": {"row": 188, "column": 2}, "end_point": {"row": 188, "column": 33}}, {"id": 397, "type": "identifier", "text": "PKT_TYPE_PUBLIC_SUBKEY", "parent": 396, "children": [], "start_point": {"row": 188, "column": 2}, "end_point": {"row": 188, "column": 24}}, {"id": 398, "type": "=", "text": "=", "parent": 396, "children": [], "start_point": {"row": 188, "column": 29}, "end_point": {"row": 188, "column": 30}}, {"id": 399, "type": "number_literal", "text": "14", "parent": 396, "children": [], "start_point": {"row": 188, "column": 31}, "end_point": {"row": 188, "column": 33}}, {"id": 400, "type": "enumerator", "text": "PKT_TYPE_SYM_ENC_INT_DATA = 18", "parent": 363, "children": [401, 402, 403], "start_point": {"row": 189, "column": 2}, "end_point": {"row": 189, "column": 33}}, {"id": 401, "type": "identifier", "text": "PKT_TYPE_SYM_ENC_INT_DATA", "parent": 400, "children": [], "start_point": {"row": 189, "column": 2}, "end_point": {"row": 189, "column": 27}}, {"id": 402, "type": "=", "text": "=", "parent": 400, "children": [], "start_point": {"row": 189, "column": 29}, "end_point": {"row": 189, "column": 30}}, {"id": 403, "type": "number_literal", "text": "18", "parent": 400, "children": [], "start_point": {"row": 189, "column": 31}, "end_point": {"row": 189, "column": 33}}, {"id": 404, "type": "type_identifier", "text": "spgp_pkt_type_t", "parent": 359, "children": [], "start_point": {"row": 190, "column": 2}, "end_point": {"row": 190, "column": 17}}, {"id": 405, "type": "type_definition", "text": "typedef enum {\n\tASYM_ALGO_RSA = 1,\n ASYM_ALGO_RSA_ENCRYPT = 2,\n ASYM_ALGO_RSA_SIGN = 3,\n ASYM_ALGO_ELGAMAL = 16,\n ASYM_ALGO_DSA = 17,\n} spgp_asym_algo_t;", "parent": 0, "children": [406, 407, 430], "start_point": {"row": 192, "column": 0}, "end_point": {"row": 198, "column": 19}}, {"id": 406, "type": "typedef", "text": "typedef", "parent": 405, "children": [], "start_point": {"row": 192, "column": 0}, "end_point": {"row": 192, "column": 7}}, {"id": 407, "type": "enum_specifier", "text": "enum {\n\tASYM_ALGO_RSA = 1,\n ASYM_ALGO_RSA_ENCRYPT = 2,\n ASYM_ALGO_RSA_SIGN = 3,\n ASYM_ALGO_ELGAMAL = 16,\n ASYM_ALGO_DSA = 17,\n}", "parent": 405, "children": [408, 409], "start_point": {"row": 192, "column": 8}, "end_point": {"row": 198, "column": 1}}, {"id": 408, "type": "enum", "text": "enum", "parent": 407, "children": [], "start_point": {"row": 192, "column": 8}, "end_point": {"row": 192, "column": 12}}, {"id": 409, "type": "enumerator_list", "text": "{\n\tASYM_ALGO_RSA = 1,\n ASYM_ALGO_RSA_ENCRYPT = 2,\n ASYM_ALGO_RSA_SIGN = 3,\n ASYM_ALGO_ELGAMAL = 16,\n ASYM_ALGO_DSA = 17,\n}", "parent": 407, "children": [410, 414, 418, 422, 426], "start_point": {"row": 192, "column": 13}, "end_point": {"row": 198, "column": 1}}, {"id": 410, "type": "enumerator", "text": "ASYM_ALGO_RSA = 1", "parent": 409, "children": [411, 412, 413], "start_point": {"row": 193, "column": 1}, "end_point": {"row": 193, "column": 31}}, {"id": 411, "type": "identifier", "text": "ASYM_ALGO_RSA", "parent": 410, "children": [], "start_point": {"row": 193, "column": 1}, "end_point": {"row": 193, "column": 14}}, {"id": 412, "type": "=", "text": "=", "parent": 410, "children": [], "start_point": {"row": 193, "column": 28}, "end_point": {"row": 193, "column": 29}}, {"id": 413, "type": "number_literal", "text": "1", "parent": 410, "children": [], "start_point": {"row": 193, "column": 30}, "end_point": {"row": 193, "column": 31}}, {"id": 414, "type": "enumerator", "text": "ASYM_ALGO_RSA_ENCRYPT = 2", "parent": 409, "children": [415, 416, 417], "start_point": {"row": 194, "column": 2}, "end_point": {"row": 194, "column": 32}}, {"id": 415, "type": "identifier", "text": "ASYM_ALGO_RSA_ENCRYPT", "parent": 414, "children": [], "start_point": {"row": 194, "column": 2}, "end_point": {"row": 194, "column": 23}}, {"id": 416, "type": "=", "text": "=", "parent": 414, "children": [], "start_point": {"row": 194, "column": 29}, "end_point": {"row": 194, "column": 30}}, {"id": 417, "type": "number_literal", "text": "2", "parent": 414, "children": [], "start_point": {"row": 194, "column": 31}, "end_point": {"row": 194, "column": 32}}, {"id": 418, "type": "enumerator", "text": "ASYM_ALGO_RSA_SIGN = 3", "parent": 409, "children": [419, 420, 421], "start_point": {"row": 195, "column": 2}, "end_point": {"row": 195, "column": 32}}, {"id": 419, "type": "identifier", "text": "ASYM_ALGO_RSA_SIGN", "parent": 418, "children": [], "start_point": {"row": 195, "column": 2}, "end_point": {"row": 195, "column": 20}}, {"id": 420, "type": "=", "text": "=", "parent": 418, "children": [], "start_point": {"row": 195, "column": 29}, "end_point": {"row": 195, "column": 30}}, {"id": 421, "type": "number_literal", "text": "3", "parent": 418, "children": [], "start_point": {"row": 195, "column": 31}, "end_point": {"row": 195, "column": 32}}, {"id": 422, "type": "enumerator", "text": "ASYM_ALGO_ELGAMAL = 16", "parent": 409, "children": [423, 424, 425], "start_point": {"row": 196, "column": 2}, "end_point": {"row": 196, "column": 33}}, {"id": 423, "type": "identifier", "text": "ASYM_ALGO_ELGAMAL", "parent": 422, "children": [], "start_point": {"row": 196, "column": 2}, "end_point": {"row": 196, "column": 19}}, {"id": 424, "type": "=", "text": "=", "parent": 422, "children": [], "start_point": {"row": 196, "column": 29}, "end_point": {"row": 196, "column": 30}}, {"id": 425, "type": "number_literal", "text": "16", "parent": 422, "children": [], "start_point": {"row": 196, "column": 31}, "end_point": {"row": 196, "column": 33}}, {"id": 426, "type": "enumerator", "text": "ASYM_ALGO_DSA = 17", "parent": 409, "children": [427, 428, 429], "start_point": {"row": 197, "column": 2}, "end_point": {"row": 197, "column": 33}}, {"id": 427, "type": "identifier", "text": "ASYM_ALGO_DSA", "parent": 426, "children": [], "start_point": {"row": 197, "column": 2}, "end_point": {"row": 197, "column": 15}}, {"id": 428, "type": "=", "text": "=", "parent": 426, "children": [], "start_point": {"row": 197, "column": 29}, "end_point": {"row": 197, "column": 30}}, {"id": 429, "type": "number_literal", "text": "17", "parent": 426, "children": [], "start_point": {"row": 197, "column": 31}, "end_point": {"row": 197, "column": 33}}, {"id": 430, "type": "type_identifier", "text": "spgp_asym_algo_t", "parent": 405, "children": [], "start_point": {"row": 198, "column": 2}, "end_point": {"row": 198, "column": 18}}, {"id": 431, "type": "type_definition", "text": "typedef enum {\n\tSYM_ALGO_PLAINTEXT = 0,\n SYM_ALGO_IDEA,\n SYM_ALGO_3DES,\n SYM_ALGO_CAST5,\n SYM_ALGO_BLOWFISH,\n SYM_ALGO_AES128,\n SYM_ALGO_AES192,\n SYM_ALGO_AES256,\n SYM_ALGO_TWOFISH,\n} spgp_sym_algo_t;", "parent": 0, "children": [432, 433, 456], "start_point": {"row": 200, "column": 0}, "end_point": {"row": 210, "column": 18}}, {"id": 432, "type": "typedef", "text": "typedef", "parent": 431, "children": [], "start_point": {"row": 200, "column": 0}, "end_point": {"row": 200, "column": 7}}, {"id": 433, "type": "enum_specifier", "text": "enum {\n\tSYM_ALGO_PLAINTEXT = 0,\n SYM_ALGO_IDEA,\n SYM_ALGO_3DES,\n SYM_ALGO_CAST5,\n SYM_ALGO_BLOWFISH,\n SYM_ALGO_AES128,\n SYM_ALGO_AES192,\n SYM_ALGO_AES256,\n SYM_ALGO_TWOFISH,\n}", "parent": 431, "children": [434, 435], "start_point": {"row": 200, "column": 8}, "end_point": {"row": 210, "column": 1}}, {"id": 434, "type": "enum", "text": "enum", "parent": 433, "children": [], "start_point": {"row": 200, "column": 8}, "end_point": {"row": 200, "column": 12}}, {"id": 435, "type": "enumerator_list", "text": "{\n\tSYM_ALGO_PLAINTEXT = 0,\n SYM_ALGO_IDEA,\n SYM_ALGO_3DES,\n SYM_ALGO_CAST5,\n SYM_ALGO_BLOWFISH,\n SYM_ALGO_AES128,\n SYM_ALGO_AES192,\n SYM_ALGO_AES256,\n SYM_ALGO_TWOFISH,\n}", "parent": 433, "children": [436, 440, 442, 444, 446, 448, 450, 452, 454], "start_point": {"row": 200, "column": 13}, "end_point": {"row": 210, "column": 1}}, {"id": 436, "type": "enumerator", "text": "SYM_ALGO_PLAINTEXT = 0", "parent": 435, "children": [437, 438, 439], "start_point": {"row": 201, "column": 1}, "end_point": {"row": 201, "column": 31}}, {"id": 437, "type": "identifier", "text": "SYM_ALGO_PLAINTEXT", "parent": 436, "children": [], "start_point": {"row": 201, "column": 1}, "end_point": {"row": 201, "column": 19}}, {"id": 438, "type": "=", "text": "=", "parent": 436, "children": [], "start_point": {"row": 201, "column": 28}, "end_point": {"row": 201, "column": 29}}, {"id": 439, "type": "number_literal", "text": "0", "parent": 436, "children": [], "start_point": {"row": 201, "column": 30}, "end_point": {"row": 201, "column": 31}}, {"id": 440, "type": "enumerator", "text": "SYM_ALGO_IDEA", "parent": 435, "children": [441], "start_point": {"row": 202, "column": 2}, "end_point": {"row": 202, "column": 15}}, {"id": 441, "type": "identifier", "text": "SYM_ALGO_IDEA", "parent": 440, "children": [], "start_point": {"row": 202, "column": 2}, "end_point": {"row": 202, "column": 15}}, {"id": 442, "type": "enumerator", "text": "SYM_ALGO_3DES", "parent": 435, "children": [443], "start_point": {"row": 203, "column": 2}, "end_point": {"row": 203, "column": 15}}, {"id": 443, "type": "identifier", "text": "SYM_ALGO_3DES", "parent": 442, "children": [], "start_point": {"row": 203, "column": 2}, "end_point": {"row": 203, "column": 15}}, {"id": 444, "type": "enumerator", "text": "SYM_ALGO_CAST5", "parent": 435, "children": [445], "start_point": {"row": 204, "column": 2}, "end_point": {"row": 204, "column": 16}}, {"id": 445, "type": "identifier", "text": "SYM_ALGO_CAST5", "parent": 444, "children": [], "start_point": {"row": 204, "column": 2}, "end_point": {"row": 204, "column": 16}}, {"id": 446, "type": "enumerator", "text": "SYM_ALGO_BLOWFISH", "parent": 435, "children": [447], "start_point": {"row": 205, "column": 2}, "end_point": {"row": 205, "column": 19}}, {"id": 447, "type": "identifier", "text": "SYM_ALGO_BLOWFISH", "parent": 446, "children": [], "start_point": {"row": 205, "column": 2}, "end_point": {"row": 205, "column": 19}}, {"id": 448, "type": "enumerator", "text": "SYM_ALGO_AES128", "parent": 435, "children": [449], "start_point": {"row": 206, "column": 2}, "end_point": {"row": 206, "column": 17}}, {"id": 449, "type": "identifier", "text": "SYM_ALGO_AES128", "parent": 448, "children": [], "start_point": {"row": 206, "column": 2}, "end_point": {"row": 206, "column": 17}}, {"id": 450, "type": "enumerator", "text": "SYM_ALGO_AES192", "parent": 435, "children": [451], "start_point": {"row": 207, "column": 2}, "end_point": {"row": 207, "column": 17}}, {"id": 451, "type": "identifier", "text": "SYM_ALGO_AES192", "parent": 450, "children": [], "start_point": {"row": 207, "column": 2}, "end_point": {"row": 207, "column": 17}}, {"id": 452, "type": "enumerator", "text": "SYM_ALGO_AES256", "parent": 435, "children": [453], "start_point": {"row": 208, "column": 2}, "end_point": {"row": 208, "column": 17}}, {"id": 453, "type": "identifier", "text": "SYM_ALGO_AES256", "parent": 452, "children": [], "start_point": {"row": 208, "column": 2}, "end_point": {"row": 208, "column": 17}}, {"id": 454, "type": "enumerator", "text": "SYM_ALGO_TWOFISH", "parent": 435, "children": [455], "start_point": {"row": 209, "column": 2}, "end_point": {"row": 209, "column": 18}}, {"id": 455, "type": "identifier", "text": "SYM_ALGO_TWOFISH", "parent": 454, "children": [], "start_point": {"row": 209, "column": 2}, "end_point": {"row": 209, "column": 18}}, {"id": 456, "type": "type_identifier", "text": "spgp_sym_algo_t", "parent": 431, "children": [], "start_point": {"row": 210, "column": 2}, "end_point": {"row": 210, "column": 17}}, {"id": 457, "type": "type_definition", "text": "typedef enum {\n\tHASH_ALGO_MD5 = 1,\n HASH_ALGO_SHA1,\n HASH_ALGO_RIPEMD160,\n HASH_ALGO_SHA256,\n HASH_ALGO_SHA384,\n HASH_ALGO_SHA512,\n HASH_ALGO_SHA224,\n} spgp_hash_algo_t;", "parent": 0, "children": [458, 459, 478], "start_point": {"row": 212, "column": 0}, "end_point": {"row": 220, "column": 19}}, {"id": 458, "type": "typedef", "text": "typedef", "parent": 457, "children": [], "start_point": {"row": 212, "column": 0}, "end_point": {"row": 212, "column": 7}}, {"id": 459, "type": "enum_specifier", "text": "enum {\n\tHASH_ALGO_MD5 = 1,\n HASH_ALGO_SHA1,\n HASH_ALGO_RIPEMD160,\n HASH_ALGO_SHA256,\n HASH_ALGO_SHA384,\n HASH_ALGO_SHA512,\n HASH_ALGO_SHA224,\n}", "parent": 457, "children": [460, 461], "start_point": {"row": 212, "column": 8}, "end_point": {"row": 220, "column": 1}}, {"id": 460, "type": "enum", "text": "enum", "parent": 459, "children": [], "start_point": {"row": 212, "column": 8}, "end_point": {"row": 212, "column": 12}}, {"id": 461, "type": "enumerator_list", "text": "{\n\tHASH_ALGO_MD5 = 1,\n HASH_ALGO_SHA1,\n HASH_ALGO_RIPEMD160,\n HASH_ALGO_SHA256,\n HASH_ALGO_SHA384,\n HASH_ALGO_SHA512,\n HASH_ALGO_SHA224,\n}", "parent": 459, "children": [462, 466, 468, 470, 472, 474, 476], "start_point": {"row": 212, "column": 13}, "end_point": {"row": 220, "column": 1}}, {"id": 462, "type": "enumerator", "text": "HASH_ALGO_MD5 = 1", "parent": 461, "children": [463, 464, 465], "start_point": {"row": 213, "column": 1}, "end_point": {"row": 213, "column": 31}}, {"id": 463, "type": "identifier", "text": "HASH_ALGO_MD5", "parent": 462, "children": [], "start_point": {"row": 213, "column": 1}, "end_point": {"row": 213, "column": 14}}, {"id": 464, "type": "=", "text": "=", "parent": 462, "children": [], "start_point": {"row": 213, "column": 28}, "end_point": {"row": 213, "column": 29}}, {"id": 465, "type": "number_literal", "text": "1", "parent": 462, "children": [], "start_point": {"row": 213, "column": 30}, "end_point": {"row": 213, "column": 31}}, {"id": 466, "type": "enumerator", "text": "HASH_ALGO_SHA1", "parent": 461, "children": [467], "start_point": {"row": 214, "column": 2}, "end_point": {"row": 214, "column": 16}}, {"id": 467, "type": "identifier", "text": "HASH_ALGO_SHA1", "parent": 466, "children": [], "start_point": {"row": 214, "column": 2}, "end_point": {"row": 214, "column": 16}}, {"id": 468, "type": "enumerator", "text": "HASH_ALGO_RIPEMD160", "parent": 461, "children": [469], "start_point": {"row": 215, "column": 2}, "end_point": {"row": 215, "column": 21}}, {"id": 469, "type": "identifier", "text": "HASH_ALGO_RIPEMD160", "parent": 468, "children": [], "start_point": {"row": 215, "column": 2}, "end_point": {"row": 215, "column": 21}}, {"id": 470, "type": "enumerator", "text": "HASH_ALGO_SHA256", "parent": 461, "children": [471], "start_point": {"row": 216, "column": 2}, "end_point": {"row": 216, "column": 18}}, {"id": 471, "type": "identifier", "text": "HASH_ALGO_SHA256", "parent": 470, "children": [], "start_point": {"row": 216, "column": 2}, "end_point": {"row": 216, "column": 18}}, {"id": 472, "type": "enumerator", "text": "HASH_ALGO_SHA384", "parent": 461, "children": [473], "start_point": {"row": 217, "column": 2}, "end_point": {"row": 217, "column": 18}}, {"id": 473, "type": "identifier", "text": "HASH_ALGO_SHA384", "parent": 472, "children": [], "start_point": {"row": 217, "column": 2}, "end_point": {"row": 217, "column": 18}}, {"id": 474, "type": "enumerator", "text": "HASH_ALGO_SHA512", "parent": 461, "children": [475], "start_point": {"row": 218, "column": 2}, "end_point": {"row": 218, "column": 18}}, {"id": 475, "type": "identifier", "text": "HASH_ALGO_SHA512", "parent": 474, "children": [], "start_point": {"row": 218, "column": 2}, "end_point": {"row": 218, "column": 18}}, {"id": 476, "type": "enumerator", "text": "HASH_ALGO_SHA224", "parent": 461, "children": [477], "start_point": {"row": 219, "column": 2}, "end_point": {"row": 219, "column": 18}}, {"id": 477, "type": "identifier", "text": "HASH_ALGO_SHA224", "parent": 476, "children": [], "start_point": {"row": 219, "column": 2}, "end_point": {"row": 219, "column": 18}}, {"id": 478, "type": "type_identifier", "text": "spgp_hash_algo_t", "parent": 457, "children": [], "start_point": {"row": 220, "column": 2}, "end_point": {"row": 220, "column": 18}}, {"id": 479, "type": "type_definition", "text": "typedef enum {\n\tCOMPRESSION_UNCOMPRESSED = 0,\n COMPRESSION_ZIP,\n COMPRESSION_ZLIB,\n COMPRESSION_BZIP2,\n} spgp_compression_t;", "parent": 0, "children": [480, 481, 494], "start_point": {"row": 222, "column": 0}, "end_point": {"row": 227, "column": 21}}, {"id": 480, "type": "typedef", "text": "typedef", "parent": 479, "children": [], "start_point": {"row": 222, "column": 0}, "end_point": {"row": 222, "column": 7}}, {"id": 481, "type": "enum_specifier", "text": "enum {\n\tCOMPRESSION_UNCOMPRESSED = 0,\n COMPRESSION_ZIP,\n COMPRESSION_ZLIB,\n COMPRESSION_BZIP2,\n}", "parent": 479, "children": [482, 483], "start_point": {"row": 222, "column": 8}, "end_point": {"row": 227, "column": 1}}, {"id": 482, "type": "enum", "text": "enum", "parent": 481, "children": [], "start_point": {"row": 222, "column": 8}, "end_point": {"row": 222, "column": 12}}, {"id": 483, "type": "enumerator_list", "text": "{\n\tCOMPRESSION_UNCOMPRESSED = 0,\n COMPRESSION_ZIP,\n COMPRESSION_ZLIB,\n COMPRESSION_BZIP2,\n}", "parent": 481, "children": [484, 488, 490, 492], "start_point": {"row": 222, "column": 13}, "end_point": {"row": 227, "column": 1}}, {"id": 484, "type": "enumerator", "text": "COMPRESSION_UNCOMPRESSED = 0", "parent": 483, "children": [485, 486, 487], "start_point": {"row": 223, "column": 1}, "end_point": {"row": 223, "column": 31}}, {"id": 485, "type": "identifier", "text": "COMPRESSION_UNCOMPRESSED", "parent": 484, "children": [], "start_point": {"row": 223, "column": 1}, "end_point": {"row": 223, "column": 25}}, {"id": 486, "type": "=", "text": "=", "parent": 484, "children": [], "start_point": {"row": 223, "column": 28}, "end_point": {"row": 223, "column": 29}}, {"id": 487, "type": "number_literal", "text": "0", "parent": 484, "children": [], "start_point": {"row": 223, "column": 30}, "end_point": {"row": 223, "column": 31}}, {"id": 488, "type": "enumerator", "text": "COMPRESSION_ZIP", "parent": 483, "children": [489], "start_point": {"row": 224, "column": 2}, "end_point": {"row": 224, "column": 17}}, {"id": 489, "type": "identifier", "text": "COMPRESSION_ZIP", "parent": 488, "children": [], "start_point": {"row": 224, "column": 2}, "end_point": {"row": 224, "column": 17}}, {"id": 490, "type": "enumerator", "text": "COMPRESSION_ZLIB", "parent": 483, "children": [491], "start_point": {"row": 225, "column": 2}, "end_point": {"row": 225, "column": 18}}, {"id": 491, "type": "identifier", "text": "COMPRESSION_ZLIB", "parent": 490, "children": [], "start_point": {"row": 225, "column": 2}, "end_point": {"row": 225, "column": 18}}, {"id": 492, "type": "enumerator", "text": "COMPRESSION_BZIP2", "parent": 483, "children": [493], "start_point": {"row": 226, "column": 2}, "end_point": {"row": 226, "column": 19}}, {"id": 493, "type": "identifier", "text": "COMPRESSION_BZIP2", "parent": 492, "children": [], "start_point": {"row": 226, "column": 2}, "end_point": {"row": 226, "column": 19}}, {"id": 494, "type": "type_identifier", "text": "spgp_compression_t", "parent": 479, "children": [], "start_point": {"row": 227, "column": 2}, "end_point": {"row": 227, "column": 20}}, {"id": 495, "type": "type_definition", "text": "typedef enum {\n\tS2K_TYPE_SIMPLE = 0,\n S2K_TYPE_SALTED,\n S2K_TYPE_RESERVED,\n S2K_TYPE_ITERATED,\n} spgp_s2k_type_t;", "parent": 0, "children": [496, 497, 510], "start_point": {"row": 229, "column": 0}, "end_point": {"row": 234, "column": 18}}, {"id": 496, "type": "typedef", "text": "typedef", "parent": 495, "children": [], "start_point": {"row": 229, "column": 0}, "end_point": {"row": 229, "column": 7}}, {"id": 497, "type": "enum_specifier", "text": "enum {\n\tS2K_TYPE_SIMPLE = 0,\n S2K_TYPE_SALTED,\n S2K_TYPE_RESERVED,\n S2K_TYPE_ITERATED,\n}", "parent": 495, "children": [498, 499], "start_point": {"row": 229, "column": 8}, "end_point": {"row": 234, "column": 1}}, {"id": 498, "type": "enum", "text": "enum", "parent": 497, "children": [], "start_point": {"row": 229, "column": 8}, "end_point": {"row": 229, "column": 12}}, {"id": 499, "type": "enumerator_list", "text": "{\n\tS2K_TYPE_SIMPLE = 0,\n S2K_TYPE_SALTED,\n S2K_TYPE_RESERVED,\n S2K_TYPE_ITERATED,\n}", "parent": 497, "children": [500, 504, 506, 508], "start_point": {"row": 229, "column": 13}, "end_point": {"row": 234, "column": 1}}, {"id": 500, "type": "enumerator", "text": "S2K_TYPE_SIMPLE = 0", "parent": 499, "children": [501, 502, 503], "start_point": {"row": 230, "column": 1}, "end_point": {"row": 230, "column": 31}}, {"id": 501, "type": "identifier", "text": "S2K_TYPE_SIMPLE", "parent": 500, "children": [], "start_point": {"row": 230, "column": 1}, "end_point": {"row": 230, "column": 16}}, {"id": 502, "type": "=", "text": "=", "parent": 500, "children": [], "start_point": {"row": 230, "column": 28}, "end_point": {"row": 230, "column": 29}}, {"id": 503, "type": "number_literal", "text": "0", "parent": 500, "children": [], "start_point": {"row": 230, "column": 30}, "end_point": {"row": 230, "column": 31}}, {"id": 504, "type": "enumerator", "text": "S2K_TYPE_SALTED", "parent": 499, "children": [505], "start_point": {"row": 231, "column": 2}, "end_point": {"row": 231, "column": 17}}, {"id": 505, "type": "identifier", "text": "S2K_TYPE_SALTED", "parent": 504, "children": [], "start_point": {"row": 231, "column": 2}, "end_point": {"row": 231, "column": 17}}, {"id": 506, "type": "enumerator", "text": "S2K_TYPE_RESERVED", "parent": 499, "children": [507], "start_point": {"row": 232, "column": 2}, "end_point": {"row": 232, "column": 19}}, {"id": 507, "type": "identifier", "text": "S2K_TYPE_RESERVED", "parent": 506, "children": [], "start_point": {"row": 232, "column": 2}, "end_point": {"row": 232, "column": 19}}, {"id": 508, "type": "enumerator", "text": "S2K_TYPE_ITERATED", "parent": 499, "children": [509], "start_point": {"row": 233, "column": 2}, "end_point": {"row": 233, "column": 19}}, {"id": 509, "type": "identifier", "text": "S2K_TYPE_ITERATED", "parent": 508, "children": [], "start_point": {"row": 233, "column": 2}, "end_point": {"row": 233, "column": 19}}, {"id": 510, "type": "type_identifier", "text": "spgp_s2k_type_t", "parent": 495, "children": [], "start_point": {"row": 234, "column": 2}, "end_point": {"row": 234, "column": 17}}, {"id": 511, "type": "preproc_def", "text": "#define _PACKET_PRIVATE_H\n", "parent": 0, "children": [512, 513], "start_point": {"row": 237, "column": 0}, "end_point": {"row": 238, "column": 0}}, {"id": 512, "type": "#define", "text": "#define", "parent": 511, "children": [], "start_point": {"row": 237, "column": 0}, "end_point": {"row": 237, "column": 7}}, {"id": 513, "type": "identifier", "text": "_PACKET_PRIVATE_H", "parent": 511, "children": [], "start_point": {"row": 237, "column": 8}, "end_point": {"row": 237, "column": 25}}, {"id": 514, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 238, "column": 0}, "end_point": {"row": 238, "column": 6}}]}, "node_categories": {"declarations": {"functions": [15, 21], "variables": [32, 37, 42, 47, 55, 60, 63, 66, 69, 72, 75, 81, 86, 89, 94, 99, 104, 109, 114, 120, 125, 133, 138, 141, 144, 152, 157, 162, 165, 171, 174, 177, 180, 183, 186, 189, 192, 200, 208, 213, 216, 219, 222, 225, 230, 235, 243, 246, 249, 252, 257, 260, 272, 275, 278, 281, 284, 287, 290, 295, 298, 301, 306, 309, 314, 317, 322, 329, 359, 405, 431, 457, 479, 495], "classes": [33, 38, 43, 48, 52, 53, 78, 79, 87, 88, 130, 131, 149, 150, 168, 169, 197, 198, 205, 206, 240, 241, 269, 270], "imports": [3, 4, 6, 7, 9, 10], "modules": [], "enums": [331, 332, 333, 334, 338, 340, 342, 344, 346, 348, 350, 352, 354, 356, 361, 362, 363, 364, 368, 372, 376, 380, 384, 388, 392, 396, 400, 407, 408, 409, 410, 414, 418, 422, 426, 433, 434, 435, 436, 440, 442, 444, 446, 448, 450, 452, 454, 459, 460, 461, 462, 466, 468, 470, 472, 474, 476, 481, 482, 483, 484, 488, 490, 492, 497, 498, 499, 500, 504, 506, 508]}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 17, 19, 23, 25, 26, 30, 35, 36, 41, 46, 50, 51, 54, 56, 59, 62, 65, 68, 71, 74, 77, 80, 82, 85, 90, 93, 95, 98, 100, 103, 105, 108, 110, 113, 115, 118, 119, 121, 124, 126, 129, 132, 137, 140, 143, 145, 148, 151, 156, 161, 164, 167, 170, 173, 176, 179, 182, 185, 188, 191, 193, 196, 199, 204, 207, 211, 215, 218, 221, 224, 229, 231, 234, 236, 239, 242, 245, 248, 251, 253, 256, 259, 264, 265, 268, 271, 273, 274, 277, 280, 283, 286, 289, 294, 297, 300, 305, 308, 313, 316, 321, 324, 325, 328, 335, 339, 341, 343, 345, 347, 349, 351, 353, 355, 357, 358, 365, 369, 373, 377, 381, 385, 389, 393, 397, 401, 404, 411, 415, 419, 423, 427, 430, 437, 441, 443, 445, 447, 449, 451, 453, 455, 456, 463, 467, 469, 471, 473, 475, 477, 478, 485, 489, 491, 493, 494, 501, 505, 507, 509, 510, 513, 514], "returns": [], "exceptions": []}, "expressions": {"calls": [12], "literals": [5, 8, 11, 212, 337, 367, 371, 375, 379, 383, 387, 391, 395, 399, 403, 413, 417, 421, 425, 429, 439, 465, 487, 503], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 15, "universal_type": "function", "name": "unknown", "text_snippet": "#define RAISE(err) do { \\\n\t\tpthread_mutex_lock(&spgp_mtx); \\\n\t\t_spgp_err = (err); \\\n Serial.print"}, {"node_id": 21, "universal_type": "function", "name": "unknown", "text_snippet": "#define SAFE_IDX_INCREMENT(idx,max) \\\n\tdo{ \\\n\t\tif (++(idx)>=(max)) {\\\n \t\tRAISE(BUFFER_OVERFLOW);\\\n "}], "class_declarations": [{"node_id": 33, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 38, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 43, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 48, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 52, "universal_type": "class", "name": "spgp_packet_header_struct", "text_snippet": "struct spgp_packet_header_struct {\n\tspgp_packet_t *parent;\n uint32_t contentLength;\n uint8_t rawTa"}, {"node_id": 53, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 78, "universal_type": "class", "name": "spgp_packet_struct", "text_snippet": "struct spgp_packet_struct {\n\tspgp_pkt_header_t *header;\n union {\n \tspgp_public_pkt_t *pub;\n \ts"}, {"node_id": 79, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 87, "universal_type": "class", "name": "{", "text_snippet": "union {\n \tspgp_public_pkt_t *pub;\n \tspgp_secret_pkt_t *secret;\n spgp_userid_pkt_t *use"}, {"node_id": 88, "universal_type": "class", "name": "unknown", "text_snippet": "union"}, {"node_id": 130, "universal_type": "class", "name": "spgp_mpi_struct", "text_snippet": "struct spgp_mpi_struct {\n\tuint8_t *data;\n uint32_t bits;\n uint32_t count;\n\tspgp_mpi_t *next;\n}"}, {"node_id": 131, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 149, "universal_type": "class", "name": "spgp_literal_packet_struct", "text_snippet": "struct spgp_literal_packet_struct {\n\tchar *filename;\n\tchar *data;\n uint32_t dataLen;\n uint32_t fil"}, {"node_id": 150, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 168, "universal_type": "class", "name": "spgp_signature_packet_struct", "text_snippet": "struct spgp_signature_packet_struct {\n\tuint8_t version;\n uint8_t type;\n uint8_t asymAlgo;\n uint8_"}, {"node_id": 169, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 197, "universal_type": "class", "name": "spgp_userid_packet_struct", "text_snippet": "struct spgp_userid_packet_struct {\n\tuint8_t *data;\n}"}, {"node_id": 198, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 205, "universal_type": "class", "name": "spgp_session_packet_struct", "text_snippet": "struct spgp_session_packet_struct {\n uint8_t keyid[8];\n\tuint8_t version;\n uint8_t algo;\n uint8_t "}, {"node_id": 206, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 240, "universal_type": "class", "name": "spgp_public_packet_struct", "text_snippet": "struct spgp_public_packet_struct {\n// This is public key stuff\n\tuint8_t version;\n uint32_t creation"}, {"node_id": 241, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 269, "universal_type": "class", "name": "spgp_secret_packet_struct", "text_snippet": "struct spgp_secret_packet_struct {\n// This is public key stuff\n\tspgp_public_pkt_t pub;\n// This is se"}, {"node_id": 270, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 3, "text": "#include \"simplepgp.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <setjmp.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <pthread.h>\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "/*\n * packet_private.h\n * simplepgp\n *\n * Created by <NAME> on 11/11/11.\n *\n * Copyright 2011 <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 */\n\n#ifndef _PACKET_PRIVATE_H\n\n#include \"simplepgp.h\"\n//#include \"gcrypt.h\"\n\n//#include <stdio.h>\n#include <setjmp.h>\n#include <pthread.h>\n\n\n/**********************************************************************\n**\n** MACROS\n**\n***********************************************************************/\n#pragma mark Macros\n\n#define RAISE(err) do { \\\n\t\tpthread_mutex_lock(&spgp_mtx); \\\n\t\t_spgp_err = (err); \\\n Serial.printf(\"raise 0x%X\\n\",_spgp_err); \\\n\t\tpthread_mutex_unlock(&spgp_mtx); \\\n longjmp(exception,_spgp_err); \\\n } while(0)\n \n\n#define SAFE_IDX_INCREMENT(idx,max) \\\n\tdo{ \\\n\t\tif (++(idx)>=(max)) {\\\n \t\tRAISE(BUFFER_OVERFLOW);\\\n } \\\n } while(0)\n \n#define Serial.printf(fmt, ...) do {\\\n\tif (debug_log_enabled) {\\\n \tSerial.printf(\"SPGP [%s():%d]: \" fmt, \\\n \t__FUNCTION__, __LINE__, ## __VA_ARGS__);\\\n } } while(0)\n \n\n\nextern pthread_mutex_t spgp_mtx;\nextern uint8_t debug_log_enabled;\nextern uint32_t _spgp_err;\nextern jmp_buf exception;\n\n\nstruct spgp_packet_header_struct {\n\tspgp_packet_t *parent;\n uint32_t contentLength;\n uint8_t rawTagByte;\n uint8_t isNewFormat;\n uint8_t type;\n uint8_t headerLength;\n uint8_t isPartial;\n};\n\nstruct spgp_packet_struct {\n\tspgp_pkt_header_t *header;\n union {\n \tspgp_public_pkt_t *pub;\n \tspgp_secret_pkt_t *secret;\n spgp_userid_pkt_t *userid;\n spgp_session_pkt_t *session;\n spgp_literal_pkt_t *literal;\n spgp_signature_pkt_t *signature;\n } c;\n\tspgp_packet_t *next;\n spgp_packet_t *prev;\n};\n\nstruct spgp_mpi_struct {\n\tuint8_t *data;\n uint32_t bits;\n uint32_t count;\n\tspgp_mpi_t *next;\n}; \n\nstruct spgp_literal_packet_struct {\n\tchar *filename;\n\tchar *data;\n uint32_t dataLen;\n uint32_t filenameLen;\n};\n\nstruct spgp_signature_packet_struct {\n\tuint8_t version;\n uint8_t type;\n uint8_t asymAlgo;\n uint8_t hashAlgo;\n uint16_t hashedSubLength;\n uint16_t unhashedSubLength;\n uint16_t hashTest;\n spgp_mpi_t *mpiHead;\n};\n\n\nstruct spgp_userid_packet_struct {\n\tuint8_t *data;\n};\n\nstruct spgp_session_packet_struct {\n uint8_t keyid[8];\n\tuint8_t version;\n uint8_t algo;\n uint8_t symAlgo;\n uint32_t keylen;\n char *key;\n spgp_mpi_t *mpi1;\n spgp_mpi_t *mpi2;\n};\n\nstruct spgp_public_packet_struct {\n// This is public key stuff\n\tuint8_t version;\n uint32_t creationTime;\n\tuint8_t asymAlgo;\n spgp_mpi_t *mpiHead;\n uint8_t mpiCount;\n uint8_t *fingerprint;\n} __attribute__((packed));\n\nstruct spgp_secret_packet_struct {\n// This is public key stuff\n\tspgp_public_pkt_t pub;\n// This is secret key stuff \n\tuint8_t isDecrypted;\n uint8_t s2kType;\n uint8_t s2kEncryption;\n uint8_t s2kSpecifier;\n uint8_t s2kHashAlgo;\n uint8_t *s2kSalt;\n uint8_t s2kSaltLength;\n uint8_t s2kCount;\n uint8_t *encryptedData;\n uint32_t encryptedDataLength;\n uint8_t *key;\n uint32_t keyLength;\n uint8_t *iv;\n uint8_t ivLength;\n} __attribute__((packed));\n\ntypedef enum {\n\tGENERIC_ERROR = 0x100,\n OUT_OF_MEMORY,\n INVALID_HEADER,\n FORMAT_UNSUPPORTED,\n\tINVALID_ARGS,\n\tBUFFER_OVERFLOW,\n INCOMPLETE_PACKET,\n DECRYPT_FAILED,\n GCRY_ERROR,\n KEYCHAIN_ERROR,\n ZLIB_ERROR,\n} spgp_error_t;\n\n\ntypedef enum {\n\tPKT_TYPE_SESSION = 1,\n\tPKT_TYPE_SIGNATURE = 2,\n\tPKT_TYPE_SECRET_KEY = 5,\n PKT_TYPE_PUBLIC_KEY = 6,\n\tPKT_TYPE_SECRET_SUBKEY = 7,\n PKT_TYPE_COMPRESSED_DATA = 8,\n PKT_TYPE_LITERAL_DATA = 11,\n PKT_TYPE_USER_ID = 13,\n PKT_TYPE_PUBLIC_SUBKEY = 14,\n PKT_TYPE_SYM_ENC_INT_DATA = 18,\n} spgp_pkt_type_t;\n\ntypedef enum {\n\tASYM_ALGO_RSA = 1,\n ASYM_ALGO_RSA_ENCRYPT = 2,\n ASYM_ALGO_RSA_SIGN = 3,\n ASYM_ALGO_ELGAMAL = 16,\n ASYM_ALGO_DSA = 17,\n} spgp_asym_algo_t;\n\ntypedef enum {\n\tSYM_ALGO_PLAINTEXT = 0,\n SYM_ALGO_IDEA,\n SYM_ALGO_3DES,\n SYM_ALGO_CAST5,\n SYM_ALGO_BLOWFISH,\n SYM_ALGO_AES128,\n SYM_ALGO_AES192,\n SYM_ALGO_AES256,\n SYM_ALGO_TWOFISH,\n} spgp_sym_algo_t;\n\ntypedef enum {\n\tHASH_ALGO_MD5 = 1,\n HASH_ALGO_SHA1,\n HASH_ALGO_RIPEMD160,\n HASH_ALGO_SHA256,\n HASH_ALGO_SHA384,\n HASH_ALGO_SHA512,\n HASH_ALGO_SHA224,\n} spgp_hash_algo_t;\n\ntypedef enum {\n\tCOMPRESSION_UNCOMPRESSED = 0,\n COMPRESSION_ZIP,\n COMPRESSION_ZLIB,\n COMPRESSION_BZIP2,\n} spgp_compression_t;\n\ntypedef enum {\n\tS2K_TYPE_SIMPLE = 0,\n S2K_TYPE_SALTED,\n S2K_TYPE_RESERVED,\n S2K_TYPE_ITERATED,\n} spgp_s2k_type_t;\n\n\n#define _PACKET_PRIVATE_H\n#endif\n"}
80,210
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" @class NSDictionary, NSMutableArray; @interface VCPVoiceDetector : NSObject { NSDictionary *_model; struct AudioStreamBasicDescription _audioStream; int _sampleBatchSize; CDStruct_1b6d18a9 _trackStart; BOOL _voiceActivity; CDStruct_1b6d18a9 _voiceStart; NSMutableArray *_voiceDetections; NSMutableArray *_utteranceDetections; NSMutableArray *_musicDetections; } + (id)detector; @property(retain) NSMutableArray *voiceDetections; // @synthesize voiceDetections=_voiceDetections; - (void).cxx_destruct; - (id)results; - (int)finalizeAnalysisAtTime:(const CDStruct_1b6d18a9 *)arg1; - (int)processAudioSamples:(struct AudioBufferList *)arg1 timestamp:(struct AudioTimeStamp)arg2; - (int)setupWithAudioStream:(const struct AudioStreamBasicDescription *)arg1; - (int)loadModel; - (int)setupWithSample:(struct opaqueCMSampleBuffer *)arg1 andSampleBatchSize:(int)arg2; - (void)addDetectionFromTime:(const CDStruct_1b6d18a9 *)arg1 toTime:(const CDStruct_1b6d18a9 *)arg2 result:(id)arg3; - (id)audioFormatRequirements; - (id)init; @end
36.97
32
(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 "NSObject.h"\n\n@class NSDictionary, NSMutableArray;\n\n@interface VCPVoiceDetector : NSObject\n{\n NSDictionary *_model;\n struct AudioStreamBasicDescription _audioStream;\n int _sampleBatchSize;\n CDStruct_1b6d18a9 _trackStart;\n BOOL _voiceActivity;\n CDStruct_1b6d18a9 _voiceStart;\n NSMutableArray *_voiceDetections;\n NSMutableArray *_utteranceDetections;\n NSMutableArray *_musicDetections;\n}\n\n+ (id)detector;\n@property(retain) NSMutableArray *voiceDetections; // @synthesize voiceDetections=_voiceDetections;\n- (void).cxx_destruct;\n- (id)results;\n- (int)finalizeAnalysisAtTime:(const CDStruct_1b6d18a9 *)arg1;\n- (int)processAudioSamples:(struct AudioBufferList *)arg1 timestamp:(struct AudioTimeStamp)arg2;\n- (int)setupWithAudioStream:(const struct AudioStreamBasicDescription *)arg1;\n- (int)loadModel;\n- (int)setupWithSample:(struct opaqueCMSampleBuffer *)arg1 andSampleBatchSize:(int)arg2;\n- (void)addDetectionFromTime:(const CDStruct_1b6d18a9 *)arg1 toTime:(const CDStruct_1b6d18a9 *)arg2 result:(id)arg3;\n- (id)audioFormatRequirements;\n- (id)init;\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 "NSObject.h"\n" (preproc_directive) "#import" (preproc_arg) ""NSObject.h"" (ERROR) "@" (ERROR) "@" (declaration) "class NSDictionary, NSMutableArray;" (type_identifier) "class" (identifier) "NSDictionary" (,) "," (identifier) "NSMutableArray" (;) ";" (ERROR) "@" (ERROR) "@" (function_definition) "interface VCPVoiceDetector : NSObject\n{\n NSDictionary *_model;\n struct AudioStreamBasicDescription _audioStream;\n int _sampleBatchSize;\n CDStruct_1b6d18a9 _trackStart;\n BOOL _voiceActivity;\n CDStruct_1b6d18a9 _voiceStart;\n NSMutableArray *_voiceDetections;\n NSMutableArray *_utteranceDetections;\n NSMutableArray *_musicDetections;\n}" (type_identifier) "interface" (identifier) "VCPVoiceDetector" (ERROR) ": NSObject" (:) ":" (identifier) "NSObject" (compound_statement) "{\n NSDictionary *_model;\n struct AudioStreamBasicDescription _audioStream;\n int _sampleBatchSize;\n CDStruct_1b6d18a9 _trackStart;\n BOOL _voiceActivity;\n CDStruct_1b6d18a9 _voiceStart;\n NSMutableArray *_voiceDetections;\n NSMutableArray *_utteranceDetections;\n NSMutableArray *_musicDetections;\n}" ({) "{" (declaration) "NSDictionary *_model;" (type_identifier) "NSDictionary" (pointer_declarator) "*_model" (*) "*" (identifier) "_model" (;) ";" (declaration) "struct AudioStreamBasicDescription _audioStream;" (struct_specifier) "struct AudioStreamBasicDescription" (struct) "struct" (type_identifier) "AudioStreamBasicDescription" (identifier) "_audioStream" (;) ";" (declaration) "int _sampleBatchSize;" (primitive_type) "int" (identifier) "_sampleBatchSize" (;) ";" (declaration) "CDStruct_1b6d18a9 _trackStart;" (type_identifier) "CDStruct_1b6d18a9" (identifier) "_trackStart" (;) ";" (declaration) "BOOL _voiceActivity;" (type_identifier) "BOOL" (identifier) "_voiceActivity" (;) ";" (declaration) "CDStruct_1b6d18a9 _voiceStart;" (type_identifier) "CDStruct_1b6d18a9" (identifier) "_voiceStart" (;) ";" (declaration) "NSMutableArray *_voiceDetections;" (type_identifier) "NSMutableArray" (pointer_declarator) "*_voiceDetections" (*) "*" (identifier) "_voiceDetections" (;) ";" (declaration) "NSMutableArray *_utteranceDetections;" (type_identifier) "NSMutableArray" (pointer_declarator) "*_utteranceDetections" (*) "*" (identifier) "_utteranceDetections" (;) ";" (declaration) "NSMutableArray *_musicDetections;" (type_identifier) "NSMutableArray" (pointer_declarator) "*_musicDetections" (*) "*" (identifier) "_musicDetections" (;) ";" (}) "}" (expression_statement) "+ (id)detector;" (unary_expression) "+ (id)detector" (+) "+" (cast_expression) "(id)detector" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "detector" (;) ";" (ERROR) "@" (ERROR) "@" (declaration) "property(retain) NSMutableArray" (macro_type_specifier) "property(retain)" (identifier) "property" (() "(" (type_descriptor) "retain" (type_identifier) "retain" ()) ")" (identifier) "NSMutableArray" (;) "" (expression_statement) "*voiceDetections;" (pointer_expression) "*voiceDetections" (*) "*" (identifier) "voiceDetections" (;) ";" (comment) "// @synthesize voiceDetections=_voiceDetections;" (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)results;" (unary_expression) "- (id)results" (-) "-" (cast_expression) "(id)results" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "results" (;) ";" (ERROR) "- (int)finalizeAnalysisAtTime:(" (unary_expression) "- (int)finalizeAnalysisAtTime" (-) "-" (cast_expression) "(int)finalizeAnalysisAtTime" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (identifier) "finalizeAnalysisAtTime" (:) ":" (() "(" (declaration) "const CDStruct_1b6d18a9 *)arg1;" (type_qualifier) "const" (const) "const" (type_identifier) "CDStruct_1b6d18a9" (pointer_declarator) "*)arg1" (*) "*" (ERROR) ")" ()) ")" (identifier) "arg1" (;) ";" (ERROR) "- (int)processAudioSamples:(" (unary_expression) "- (int)processAudioSamples" (-) "-" (cast_expression) "(int)processAudioSamples" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (identifier) "processAudioSamples" (:) ":" (() "(" (declaration) "struct AudioBufferList *)arg1" (struct_specifier) "struct AudioBufferList" (struct) "struct" (type_identifier) "AudioBufferList" (pointer_declarator) "*)arg1" (*) "*" (ERROR) ")" ()) ")" (identifier) "arg1" (;) "" (labeled_statement) "timestamp:(struct AudioTimeStamp)arg2;" (statement_identifier) "timestamp" (:) ":" (expression_statement) "(struct AudioTimeStamp)arg2;" (cast_expression) "(struct AudioTimeStamp)arg2" (() "(" (type_descriptor) "struct AudioTimeStamp" (struct_specifier) "struct AudioTimeStamp" (struct) "struct" (type_identifier) "AudioTimeStamp" ()) ")" (identifier) "arg2" (;) ";" (ERROR) "- (int)setupWithAudioStream:(" (unary_expression) "- (int)setupWithAudioStream" (-) "-" (cast_expression) "(int)setupWithAudioStream" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (identifier) "setupWithAudioStream" (:) ":" (() "(" (declaration) "const struct AudioStreamBasicDescription *)arg1;" (type_qualifier) "const" (const) "const" (struct_specifier) "struct AudioStreamBasicDescription" (struct) "struct" (type_identifier) "AudioStreamBasicDescription" (pointer_declarator) "*)arg1" (*) "*" (ERROR) ")" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "- (int)loadModel;" (unary_expression) "- (int)loadModel" (-) "-" (cast_expression) "(int)loadModel" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (identifier) "loadModel" (;) ";" (ERROR) "- (int)setupWithSample:(" (unary_expression) "- (int)setupWithSample" (-) "-" (cast_expression) "(int)setupWithSample" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (identifier) "setupWithSample" (:) ":" (() "(" (declaration) "struct opaqueCMSampleBuffer *)arg1" (struct_specifier) "struct opaqueCMSampleBuffer" (struct) "struct" (type_identifier) "opaqueCMSampleBuffer" (pointer_declarator) "*)arg1" (*) "*" (ERROR) ")" ()) ")" (identifier) "arg1" (;) "" (labeled_statement) "andSampleBatchSize:(int)arg2;" (statement_identifier) "andSampleBatchSize" (:) ":" (expression_statement) "(int)arg2;" (cast_expression) "(int)arg2" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (identifier) "arg2" (;) ";" (ERROR) "- (void)addDetectionFromTime:(" (unary_expression) "- (void)addDetectionFromTime" (-) "-" (cast_expression) "(void)addDetectionFromTime" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "addDetectionFromTime" (:) ":" (() "(" (declaration) "const CDStruct_1b6d18a9 *)arg1" (type_qualifier) "const" (const) "const" (type_identifier) "CDStruct_1b6d18a9" (pointer_declarator) "*)arg1" (*) "*" (ERROR) ")" ()) ")" (identifier) "arg1" (;) "" (labeled_statement) "toTime:(const CDStruct_1b6d18a9 *)arg2" (statement_identifier) "toTime" (:) ":" (expression_statement) "(const CDStruct_1b6d18a9 *)arg2" (cast_expression) "(const CDStruct_1b6d18a9 *)arg2" (() "(" (type_descriptor) "const CDStruct_1b6d18a9 *" (type_qualifier) "const" (const) "const" (type_identifier) "CDStruct_1b6d18a9" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "arg2" (;) "" (labeled_statement) "result:(id)arg3;" (statement_identifier) "result" (:) ":" (expression_statement) "(id)arg3;" (cast_expression) "(id)arg3" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "arg3" (;) ";" (expression_statement) "- (id)audioFormatRequirements;" (unary_expression) "- (id)audioFormatRequirements" (-) "-" (cast_expression) "(id)audioFormatRequirements" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "audioFormatRequirements" (;) ";" (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" (;) ""
315
20
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 36.97, "nodes": 195, "errors": 0, "source_hash": "58b2b6800b0309fc702a1a872ddb2147ac3d15899dd20ed736cc508b921526c0", "categorized_nodes": 118}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"NSObject.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": "\"NSObject.h\"", "parent": 0, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 20}}, {"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 NSDictionary, NSMutableArray;", "parent": null, "children": [6, 7], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 36}}, {"id": 6, "type": "identifier", "text": "NSDictionary", "parent": 5, "children": [], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 19}}, {"id": 7, "type": "identifier", "text": "NSMutableArray", "parent": 5, "children": [], "start_point": {"row": 8, "column": 21}, "end_point": {"row": 8, "column": 35}}, {"id": 8, "type": "ERROR", "text": "@", "parent": null, "children": [9], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 9, "type": "ERROR", "text": "@", "parent": 8, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 10, "type": "function_definition", "text": "interface VCPVoiceDetector : NSObject\n{\n NSDictionary *_model;\n struct AudioStreamBasicDescription _audioStream;\n int _sampleBatchSize;\n CDStruct_1b6d18a9 _trackStart;\n BOOL _voiceActivity;\n CDStruct_1b6d18a9 _voiceStart;\n NSMutableArray *_voiceDetections;\n NSMutableArray *_utteranceDetections;\n NSMutableArray *_musicDetections;\n}", "parent": null, "children": [11, 12, 13], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 21, "column": 1}}, {"id": 11, "type": "type_identifier", "text": "interface", "parent": 10, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 10}}, {"id": 12, "type": "identifier", "text": "VCPVoiceDetector", "parent": 10, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 27}}, {"id": 13, "type": "ERROR", "text": ": NSObject", "parent": 10, "children": [14], "start_point": {"row": 10, "column": 28}, "end_point": {"row": 10, "column": 38}}, {"id": 14, "type": "identifier", "text": "NSObject", "parent": 13, "children": [], "start_point": {"row": 10, "column": 30}, "end_point": {"row": 10, "column": 38}}, {"id": 15, "type": "declaration", "text": "NSDictionary *_model;", "parent": 10, "children": [16, 17], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 25}}, {"id": 16, "type": "type_identifier", "text": "NSDictionary", "parent": 15, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 16}}, {"id": 17, "type": "pointer_declarator", "text": "*_model", "parent": 15, "children": [18, 19], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 12, "column": 24}}, {"id": 18, "type": "*", "text": "*", "parent": 17, "children": [], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 12, "column": 18}}, {"id": 19, "type": "identifier", "text": "_model", "parent": 17, "children": [], "start_point": {"row": 12, "column": 18}, "end_point": {"row": 12, "column": 24}}, {"id": 20, "type": "declaration", "text": "struct AudioStreamBasicDescription _audioStream;", "parent": 10, "children": [21, 24], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 52}}, {"id": 21, "type": "struct_specifier", "text": "struct AudioStreamBasicDescription", "parent": 20, "children": [22, 23], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 38}}, {"id": 22, "type": "struct", "text": "struct", "parent": 21, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 10}}, {"id": 23, "type": "type_identifier", "text": "AudioStreamBasicDescription", "parent": 21, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 38}}, {"id": 24, "type": "identifier", "text": "_audioStream", "parent": 20, "children": [], "start_point": {"row": 13, "column": 39}, "end_point": {"row": 13, "column": 51}}, {"id": 25, "type": "declaration", "text": "int _sampleBatchSize;", "parent": 10, "children": [26, 27], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 25}}, {"id": 26, "type": "primitive_type", "text": "int", "parent": 25, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 7}}, {"id": 27, "type": "identifier", "text": "_sampleBatchSize", "parent": 25, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 24}}, {"id": 28, "type": "declaration", "text": "CDStruct_1b6d18a9 _trackStart;", "parent": 10, "children": [29, 30], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 34}}, {"id": 29, "type": "type_identifier", "text": "CDStruct_1b6d18a9", "parent": 28, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 21}}, {"id": 30, "type": "identifier", "text": "_trackStart", "parent": 28, "children": [], "start_point": {"row": 15, "column": 22}, "end_point": {"row": 15, "column": 33}}, {"id": 31, "type": "declaration", "text": "BOOL _voiceActivity;", "parent": 10, "children": [32, 33], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 24}}, {"id": 32, "type": "type_identifier", "text": "BOOL", "parent": 31, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 8}}, {"id": 33, "type": "identifier", "text": "_voiceActivity", "parent": 31, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 23}}, {"id": 34, "type": "declaration", "text": "CDStruct_1b6d18a9 _voiceStart;", "parent": 10, "children": [35, 36], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 34}}, {"id": 35, "type": "type_identifier", "text": "CDStruct_1b6d18a9", "parent": 34, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 21}}, {"id": 36, "type": "identifier", "text": "_voiceStart", "parent": 34, "children": [], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 33}}, {"id": 37, "type": "declaration", "text": "NSMutableArray *_voiceDetections;", "parent": 10, "children": [38, 39], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 37}}, {"id": 38, "type": "type_identifier", "text": "NSMutableArray", "parent": 37, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 18}}, {"id": 39, "type": "pointer_declarator", "text": "*_voiceDetections", "parent": 37, "children": [40, 41], "start_point": {"row": 18, "column": 19}, "end_point": {"row": 18, "column": 36}}, {"id": 40, "type": "*", "text": "*", "parent": 39, "children": [], "start_point": {"row": 18, "column": 19}, "end_point": {"row": 18, "column": 20}}, {"id": 41, "type": "identifier", "text": "_voiceDetections", "parent": 39, "children": [], "start_point": {"row": 18, "column": 20}, "end_point": {"row": 18, "column": 36}}, {"id": 42, "type": "declaration", "text": "NSMutableArray *_utteranceDetections;", "parent": 10, "children": [43, 44], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 41}}, {"id": 43, "type": "type_identifier", "text": "NSMutableArray", "parent": 42, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 18}}, {"id": 44, "type": "pointer_declarator", "text": "*_utteranceDetections", "parent": 42, "children": [45, 46], "start_point": {"row": 19, "column": 19}, "end_point": {"row": 19, "column": 40}}, {"id": 45, "type": "*", "text": "*", "parent": 44, "children": [], "start_point": {"row": 19, "column": 19}, "end_point": {"row": 19, "column": 20}}, {"id": 46, "type": "identifier", "text": "_utteranceDetections", "parent": 44, "children": [], "start_point": {"row": 19, "column": 20}, "end_point": {"row": 19, "column": 40}}, {"id": 47, "type": "declaration", "text": "NSMutableArray *_musicDetections;", "parent": 10, "children": [48, 49], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 37}}, {"id": 48, "type": "type_identifier", "text": "NSMutableArray", "parent": 47, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 18}}, {"id": 49, "type": "pointer_declarator", "text": "*_musicDetections", "parent": 47, "children": [50, 51], "start_point": {"row": 20, "column": 19}, "end_point": {"row": 20, "column": 36}}, {"id": 50, "type": "*", "text": "*", "parent": 49, "children": [], "start_point": {"row": 20, "column": 19}, "end_point": {"row": 20, "column": 20}}, {"id": 51, "type": "identifier", "text": "_musicDetections", "parent": 49, "children": [], "start_point": {"row": 20, "column": 20}, "end_point": {"row": 20, "column": 36}}, {"id": 52, "type": "unary_expression", "text": "+ (id)detector", "parent": null, "children": [53, 54], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 14}}, {"id": 53, "type": "+", "text": "+", "parent": 52, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 54, "type": "cast_expression", "text": "(id)detector", "parent": 52, "children": [55, 57], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 14}}, {"id": 55, "type": "type_descriptor", "text": "id", "parent": 54, "children": [56], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 5}}, {"id": 56, "type": "type_identifier", "text": "id", "parent": 55, "children": [], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 5}}, {"id": 57, "type": "identifier", "text": "detector", "parent": 54, "children": [], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 14}}, {"id": 58, "type": "ERROR", "text": "@", "parent": null, "children": [59], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 59, "type": "ERROR", "text": "@", "parent": 58, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 60, "type": "declaration", "text": "property(retain) NSMutableArray", "parent": null, "children": [61, 65], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 32}}, {"id": 61, "type": "macro_type_specifier", "text": "property(retain)", "parent": 60, "children": [62, 63], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 17}}, {"id": 62, "type": "identifier", "text": "property", "parent": 61, "children": [], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 9}}, {"id": 63, "type": "type_descriptor", "text": "retain", "parent": 61, "children": [64], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 16}}, {"id": 64, "type": "type_identifier", "text": "retain", "parent": 63, "children": [], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 16}}, {"id": 65, "type": "identifier", "text": "NSMutableArray", "parent": 60, "children": [], "start_point": {"row": 24, "column": 18}, "end_point": {"row": 24, "column": 32}}, {"id": 66, "type": "pointer_expression", "text": "*voiceDetections", "parent": null, "children": [67, 68], "start_point": {"row": 24, "column": 33}, "end_point": {"row": 24, "column": 49}}, {"id": 67, "type": "*", "text": "*", "parent": 66, "children": [], "start_point": {"row": 24, "column": 33}, "end_point": {"row": 24, "column": 34}}, {"id": 68, "type": "identifier", "text": "voiceDetections", "parent": 66, "children": [], "start_point": {"row": 24, "column": 34}, "end_point": {"row": 24, "column": 49}}, {"id": 69, "type": "unary_expression", "text": "- (void).cxx_destruct", "parent": null, "children": [70, 71], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 21}}, {"id": 70, "type": "-", "text": "-", "parent": 69, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 71, "type": "cast_expression", "text": "(void).cxx_destruct", "parent": 69, "children": [72, 74], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 21}}, {"id": 72, "type": "type_descriptor", "text": "void", "parent": 71, "children": [73], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 25, "column": 7}}, {"id": 73, "type": "primitive_type", "text": "void", "parent": 72, "children": [], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 25, "column": 7}}, {"id": 74, "type": "identifier", "text": "cxx_destruct", "parent": 71, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 21}}, {"id": 75, "type": "unary_expression", "text": "- (id)results", "parent": null, "children": [76, 77], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 13}}, {"id": 76, "type": "-", "text": "-", "parent": 75, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 77, "type": "cast_expression", "text": "(id)results", "parent": 75, "children": [78, 80], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 13}}, {"id": 78, "type": "type_descriptor", "text": "id", "parent": 77, "children": [79], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 26, "column": 5}}, {"id": 79, "type": "type_identifier", "text": "id", "parent": 78, "children": [], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 26, "column": 5}}, {"id": 80, "type": "identifier", "text": "results", "parent": 77, "children": [], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 13}}, {"id": 81, "type": "ERROR", "text": "- (int)finalizeAnalysisAtTime:(", "parent": null, "children": [82], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 31}}, {"id": 82, "type": "unary_expression", "text": "- (int)finalizeAnalysisAtTime", "parent": 81, "children": [83, 84], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 29}}, {"id": 83, "type": "-", "text": "-", "parent": 82, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 1}}, {"id": 84, "type": "cast_expression", "text": "(int)finalizeAnalysisAtTime", "parent": 82, "children": [85, 87], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 29}}, {"id": 85, "type": "type_descriptor", "text": "int", "parent": 84, "children": [86], "start_point": {"row": 27, "column": 3}, "end_point": {"row": 27, "column": 6}}, {"id": 86, "type": "primitive_type", "text": "int", "parent": 85, "children": [], "start_point": {"row": 27, "column": 3}, "end_point": {"row": 27, "column": 6}}, {"id": 87, "type": "identifier", "text": "finalizeAnalysisAtTime", "parent": 84, "children": [], "start_point": {"row": 27, "column": 7}, "end_point": {"row": 27, "column": 29}}, {"id": 88, "type": "declaration", "text": "const CDStruct_1b6d18a9 *)arg1;", "parent": null, "children": [89, 90], "start_point": {"row": 27, "column": 31}, "end_point": {"row": 27, "column": 62}}, {"id": 89, "type": "type_identifier", "text": "CDStruct_1b6d18a9", "parent": 88, "children": [], "start_point": {"row": 27, "column": 37}, "end_point": {"row": 27, "column": 54}}, {"id": 90, "type": "pointer_declarator", "text": "*)arg1", "parent": 88, "children": [91, 92], "start_point": {"row": 27, "column": 55}, "end_point": {"row": 27, "column": 61}}, {"id": 91, "type": "*", "text": "*", "parent": 90, "children": [], "start_point": {"row": 27, "column": 55}, "end_point": {"row": 27, "column": 56}}, {"id": 92, "type": "identifier", "text": "arg1", "parent": 90, "children": [], "start_point": {"row": 27, "column": 57}, "end_point": {"row": 27, "column": 61}}, {"id": 93, "type": "ERROR", "text": "- (int)processAudioSamples:(", "parent": null, "children": [94], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 28}}, {"id": 94, "type": "unary_expression", "text": "- (int)processAudioSamples", "parent": 93, "children": [95, 96], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 26}}, {"id": 95, "type": "-", "text": "-", "parent": 94, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 1}}, {"id": 96, "type": "cast_expression", "text": "(int)processAudioSamples", "parent": 94, "children": [97, 99], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 26}}, {"id": 97, "type": "type_descriptor", "text": "int", "parent": 96, "children": [98], "start_point": {"row": 28, "column": 3}, "end_point": {"row": 28, "column": 6}}, {"id": 98, "type": "primitive_type", "text": "int", "parent": 97, "children": [], "start_point": {"row": 28, "column": 3}, "end_point": {"row": 28, "column": 6}}, {"id": 99, "type": "identifier", "text": "processAudioSamples", "parent": 96, "children": [], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 26}}, {"id": 100, "type": "declaration", "text": "struct AudioBufferList *)arg1", "parent": null, "children": [101, 104], "start_point": {"row": 28, "column": 28}, "end_point": {"row": 28, "column": 57}}, {"id": 101, "type": "struct_specifier", "text": "struct AudioBufferList", "parent": 100, "children": [102, 103], "start_point": {"row": 28, "column": 28}, "end_point": {"row": 28, "column": 50}}, {"id": 102, "type": "struct", "text": "struct", "parent": 101, "children": [], "start_point": {"row": 28, "column": 28}, "end_point": {"row": 28, "column": 34}}, {"id": 103, "type": "type_identifier", "text": "AudioBufferList", "parent": 101, "children": [], "start_point": {"row": 28, "column": 35}, "end_point": {"row": 28, "column": 50}}, {"id": 104, "type": "pointer_declarator", "text": "*)arg1", "parent": 100, "children": [105, 106], "start_point": {"row": 28, "column": 51}, "end_point": {"row": 28, "column": 57}}, {"id": 105, "type": "*", "text": "*", "parent": 104, "children": [], "start_point": {"row": 28, "column": 51}, "end_point": {"row": 28, "column": 52}}, {"id": 106, "type": "identifier", "text": "arg1", "parent": 104, "children": [], "start_point": {"row": 28, "column": 53}, "end_point": {"row": 28, "column": 57}}, {"id": 107, "type": "labeled_statement", "text": "timestamp:(struct AudioTimeStamp)arg2;", "parent": null, "children": [108], "start_point": {"row": 28, "column": 58}, "end_point": {"row": 28, "column": 96}}, {"id": 108, "type": "statement_identifier", "text": "timestamp", "parent": 107, "children": [], "start_point": {"row": 28, "column": 58}, "end_point": {"row": 28, "column": 67}}, {"id": 109, "type": "cast_expression", "text": "(struct AudioTimeStamp)arg2", "parent": 107, "children": [110, 114], "start_point": {"row": 28, "column": 68}, "end_point": {"row": 28, "column": 95}}, {"id": 110, "type": "type_descriptor", "text": "struct AudioTimeStamp", "parent": 109, "children": [111], "start_point": {"row": 28, "column": 69}, "end_point": {"row": 28, "column": 90}}, {"id": 111, "type": "struct_specifier", "text": "struct AudioTimeStamp", "parent": 110, "children": [112, 113], "start_point": {"row": 28, "column": 69}, "end_point": {"row": 28, "column": 90}}, {"id": 112, "type": "struct", "text": "struct", "parent": 111, "children": [], "start_point": {"row": 28, "column": 69}, "end_point": {"row": 28, "column": 75}}, {"id": 113, "type": "type_identifier", "text": "AudioTimeStamp", "parent": 111, "children": [], "start_point": {"row": 28, "column": 76}, "end_point": {"row": 28, "column": 90}}, {"id": 114, "type": "identifier", "text": "arg2", "parent": 109, "children": [], "start_point": {"row": 28, "column": 91}, "end_point": {"row": 28, "column": 95}}, {"id": 115, "type": "ERROR", "text": "- (int)setupWithAudioStream:(", "parent": null, "children": [116], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 29}}, {"id": 116, "type": "unary_expression", "text": "- (int)setupWithAudioStream", "parent": 115, "children": [117, 118], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 27}}, {"id": 117, "type": "-", "text": "-", "parent": 116, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 1}}, {"id": 118, "type": "cast_expression", "text": "(int)setupWithAudioStream", "parent": 116, "children": [119, 121], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 27}}, {"id": 119, "type": "type_descriptor", "text": "int", "parent": 118, "children": [120], "start_point": {"row": 29, "column": 3}, "end_point": {"row": 29, "column": 6}}, {"id": 120, "type": "primitive_type", "text": "int", "parent": 119, "children": [], "start_point": {"row": 29, "column": 3}, "end_point": {"row": 29, "column": 6}}, {"id": 121, "type": "identifier", "text": "setupWithAudioStream", "parent": 118, "children": [], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 27}}, {"id": 122, "type": "declaration", "text": "const struct AudioStreamBasicDescription *)arg1;", "parent": null, "children": [123, 126], "start_point": {"row": 29, "column": 29}, "end_point": {"row": 29, "column": 77}}, {"id": 123, "type": "struct_specifier", "text": "struct AudioStreamBasicDescription", "parent": 122, "children": [124, 125], "start_point": {"row": 29, "column": 35}, "end_point": {"row": 29, "column": 69}}, {"id": 124, "type": "struct", "text": "struct", "parent": 123, "children": [], "start_point": {"row": 29, "column": 35}, "end_point": {"row": 29, "column": 41}}, {"id": 125, "type": "type_identifier", "text": "AudioStreamBasicDescription", "parent": 123, "children": [], "start_point": {"row": 29, "column": 42}, "end_point": {"row": 29, "column": 69}}, {"id": 126, "type": "pointer_declarator", "text": "*)arg1", "parent": 122, "children": [127, 128], "start_point": {"row": 29, "column": 70}, "end_point": {"row": 29, "column": 76}}, {"id": 127, "type": "*", "text": "*", "parent": 126, "children": [], "start_point": {"row": 29, "column": 70}, "end_point": {"row": 29, "column": 71}}, {"id": 128, "type": "identifier", "text": "arg1", "parent": 126, "children": [], "start_point": {"row": 29, "column": 72}, "end_point": {"row": 29, "column": 76}}, {"id": 129, "type": "unary_expression", "text": "- (int)loadModel", "parent": null, "children": [130, 131], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 16}}, {"id": 130, "type": "-", "text": "-", "parent": 129, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 1}}, {"id": 131, "type": "cast_expression", "text": "(int)loadModel", "parent": 129, "children": [132, 134], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 16}}, {"id": 132, "type": "type_descriptor", "text": "int", "parent": 131, "children": [133], "start_point": {"row": 30, "column": 3}, "end_point": {"row": 30, "column": 6}}, {"id": 133, "type": "primitive_type", "text": "int", "parent": 132, "children": [], "start_point": {"row": 30, "column": 3}, "end_point": {"row": 30, "column": 6}}, {"id": 134, "type": "identifier", "text": "loadModel", "parent": 131, "children": [], "start_point": {"row": 30, "column": 7}, "end_point": {"row": 30, "column": 16}}, {"id": 135, "type": "ERROR", "text": "- (int)setupWithSample:(", "parent": null, "children": [136], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 24}}, {"id": 136, "type": "unary_expression", "text": "- (int)setupWithSample", "parent": 135, "children": [137, 138], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 22}}, {"id": 137, "type": "-", "text": "-", "parent": 136, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 1}}, {"id": 138, "type": "cast_expression", "text": "(int)setupWithSample", "parent": 136, "children": [139, 141], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 22}}, {"id": 139, "type": "type_descriptor", "text": "int", "parent": 138, "children": [140], "start_point": {"row": 31, "column": 3}, "end_point": {"row": 31, "column": 6}}, {"id": 140, "type": "primitive_type", "text": "int", "parent": 139, "children": [], "start_point": {"row": 31, "column": 3}, "end_point": {"row": 31, "column": 6}}, {"id": 141, "type": "identifier", "text": "setupWithSample", "parent": 138, "children": [], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 22}}, {"id": 142, "type": "declaration", "text": "struct opaqueCMSampleBuffer *)arg1", "parent": null, "children": [143, 146], "start_point": {"row": 31, "column": 24}, "end_point": {"row": 31, "column": 58}}, {"id": 143, "type": "struct_specifier", "text": "struct opaqueCMSampleBuffer", "parent": 142, "children": [144, 145], "start_point": {"row": 31, "column": 24}, "end_point": {"row": 31, "column": 51}}, {"id": 144, "type": "struct", "text": "struct", "parent": 143, "children": [], "start_point": {"row": 31, "column": 24}, "end_point": {"row": 31, "column": 30}}, {"id": 145, "type": "type_identifier", "text": "opaqueCMSampleBuffer", "parent": 143, "children": [], "start_point": {"row": 31, "column": 31}, "end_point": {"row": 31, "column": 51}}, {"id": 146, "type": "pointer_declarator", "text": "*)arg1", "parent": 142, "children": [147, 148], "start_point": {"row": 31, "column": 52}, "end_point": {"row": 31, "column": 58}}, {"id": 147, "type": "*", "text": "*", "parent": 146, "children": [], "start_point": {"row": 31, "column": 52}, "end_point": {"row": 31, "column": 53}}, {"id": 148, "type": "identifier", "text": "arg1", "parent": 146, "children": [], "start_point": {"row": 31, "column": 54}, "end_point": {"row": 31, "column": 58}}, {"id": 149, "type": "labeled_statement", "text": "andSampleBatchSize:(int)arg2;", "parent": null, "children": [150], "start_point": {"row": 31, "column": 59}, "end_point": {"row": 31, "column": 88}}, {"id": 150, "type": "statement_identifier", "text": "andSampleBatchSize", "parent": 149, "children": [], "start_point": {"row": 31, "column": 59}, "end_point": {"row": 31, "column": 77}}, {"id": 151, "type": "cast_expression", "text": "(int)arg2", "parent": 149, "children": [152, 154], "start_point": {"row": 31, "column": 78}, "end_point": {"row": 31, "column": 87}}, {"id": 152, "type": "type_descriptor", "text": "int", "parent": 151, "children": [153], "start_point": {"row": 31, "column": 79}, "end_point": {"row": 31, "column": 82}}, {"id": 153, "type": "primitive_type", "text": "int", "parent": 152, "children": [], "start_point": {"row": 31, "column": 79}, "end_point": {"row": 31, "column": 82}}, {"id": 154, "type": "identifier", "text": "arg2", "parent": 151, "children": [], "start_point": {"row": 31, "column": 83}, "end_point": {"row": 31, "column": 87}}, {"id": 155, "type": "ERROR", "text": "- (void)addDetectionFromTime:(", "parent": null, "children": [156], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 30}}, {"id": 156, "type": "unary_expression", "text": "- (void)addDetectionFromTime", "parent": 155, "children": [157, 158], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 28}}, {"id": 157, "type": "-", "text": "-", "parent": 156, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 1}}, {"id": 158, "type": "cast_expression", "text": "(void)addDetectionFromTime", "parent": 156, "children": [159, 161], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 28}}, {"id": 159, "type": "type_descriptor", "text": "void", "parent": 158, "children": [160], "start_point": {"row": 32, "column": 3}, "end_point": {"row": 32, "column": 7}}, {"id": 160, "type": "primitive_type", "text": "void", "parent": 159, "children": [], "start_point": {"row": 32, "column": 3}, "end_point": {"row": 32, "column": 7}}, {"id": 161, "type": "identifier", "text": "addDetectionFromTime", "parent": 158, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 28}}, {"id": 162, "type": "declaration", "text": "const CDStruct_1b6d18a9 *)arg1", "parent": null, "children": [163, 164], "start_point": {"row": 32, "column": 30}, "end_point": {"row": 32, "column": 60}}, {"id": 163, "type": "type_identifier", "text": "CDStruct_1b6d18a9", "parent": 162, "children": [], "start_point": {"row": 32, "column": 36}, "end_point": {"row": 32, "column": 53}}, {"id": 164, "type": "pointer_declarator", "text": "*)arg1", "parent": 162, "children": [165, 166], "start_point": {"row": 32, "column": 54}, "end_point": {"row": 32, "column": 60}}, {"id": 165, "type": "*", "text": "*", "parent": 164, "children": [], "start_point": {"row": 32, "column": 54}, "end_point": {"row": 32, "column": 55}}, {"id": 166, "type": "identifier", "text": "arg1", "parent": 164, "children": [], "start_point": {"row": 32, "column": 56}, "end_point": {"row": 32, "column": 60}}, {"id": 167, "type": "labeled_statement", "text": "toTime:(const CDStruct_1b6d18a9 *)arg2", "parent": null, "children": [168], "start_point": {"row": 32, "column": 61}, "end_point": {"row": 32, "column": 99}}, {"id": 168, "type": "statement_identifier", "text": "toTime", "parent": 167, "children": [], "start_point": {"row": 32, "column": 61}, "end_point": {"row": 32, "column": 67}}, {"id": 169, "type": "cast_expression", "text": "(const CDStruct_1b6d18a9 *)arg2", "parent": 167, "children": [170, 174], "start_point": {"row": 32, "column": 68}, "end_point": {"row": 32, "column": 99}}, {"id": 170, "type": "type_descriptor", "text": "const CDStruct_1b6d18a9 *", "parent": 169, "children": [171, 172], "start_point": {"row": 32, "column": 69}, "end_point": {"row": 32, "column": 94}}, {"id": 171, "type": "type_identifier", "text": "CDStruct_1b6d18a9", "parent": 170, "children": [], "start_point": {"row": 32, "column": 75}, "end_point": {"row": 32, "column": 92}}, {"id": 172, "type": "abstract_pointer_declarator", "text": "*", "parent": 170, "children": [173], "start_point": {"row": 32, "column": 93}, "end_point": {"row": 32, "column": 94}}, {"id": 173, "type": "*", "text": "*", "parent": 172, "children": [], "start_point": {"row": 32, "column": 93}, "end_point": {"row": 32, "column": 94}}, {"id": 174, "type": "identifier", "text": "arg2", "parent": 169, "children": [], "start_point": {"row": 32, "column": 95}, "end_point": {"row": 32, "column": 99}}, {"id": 175, "type": "labeled_statement", "text": "result:(id)arg3;", "parent": null, "children": [176], "start_point": {"row": 32, "column": 100}, "end_point": {"row": 32, "column": 116}}, {"id": 176, "type": "statement_identifier", "text": "result", "parent": 175, "children": [], "start_point": {"row": 32, "column": 100}, "end_point": {"row": 32, "column": 106}}, {"id": 177, "type": "cast_expression", "text": "(id)arg3", "parent": 175, "children": [178, 180], "start_point": {"row": 32, "column": 107}, "end_point": {"row": 32, "column": 115}}, {"id": 178, "type": "type_descriptor", "text": "id", "parent": 177, "children": [179], "start_point": {"row": 32, "column": 108}, "end_point": {"row": 32, "column": 110}}, {"id": 179, "type": "type_identifier", "text": "id", "parent": 178, "children": [], "start_point": {"row": 32, "column": 108}, "end_point": {"row": 32, "column": 110}}, {"id": 180, "type": "identifier", "text": "arg3", "parent": 177, "children": [], "start_point": {"row": 32, "column": 111}, "end_point": {"row": 32, "column": 115}}, {"id": 181, "type": "unary_expression", "text": "- (id)audioFormatRequirements", "parent": null, "children": [182, 183], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 29}}, {"id": 182, "type": "-", "text": "-", "parent": 181, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 1}}, {"id": 183, "type": "cast_expression", "text": "(id)audioFormatRequirements", "parent": 181, "children": [184, 186], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 29}}, {"id": 184, "type": "type_descriptor", "text": "id", "parent": 183, "children": [185], "start_point": {"row": 33, "column": 3}, "end_point": {"row": 33, "column": 5}}, {"id": 185, "type": "type_identifier", "text": "id", "parent": 184, "children": [], "start_point": {"row": 33, "column": 3}, "end_point": {"row": 33, "column": 5}}, {"id": 186, "type": "identifier", "text": "audioFormatRequirements", "parent": 183, "children": [], "start_point": {"row": 33, "column": 6}, "end_point": {"row": 33, "column": 29}}, {"id": 187, "type": "unary_expression", "text": "- (id)init", "parent": null, "children": [188, 189], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 10}}, {"id": 188, "type": "-", "text": "-", "parent": 187, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 1}}, {"id": 189, "type": "cast_expression", "text": "(id)init", "parent": 187, "children": [190, 192], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 10}}, {"id": 190, "type": "type_descriptor", "text": "id", "parent": 189, "children": [191], "start_point": {"row": 34, "column": 3}, "end_point": {"row": 34, "column": 5}}, {"id": 191, "type": "type_identifier", "text": "id", "parent": 190, "children": [], "start_point": {"row": 34, "column": 3}, "end_point": {"row": 34, "column": 5}}, {"id": 192, "type": "identifier", "text": "init", "parent": 189, "children": [], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 10}}, {"id": 193, "type": "ERROR", "text": "@", "parent": null, "children": [194], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 1}}, {"id": 194, "type": "ERROR", "text": "@", "parent": 193, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 1}}]}, "node_categories": {"declarations": {"functions": [10], "variables": [5, 15, 20, 25, 28, 31, 34, 37, 42, 47, 60, 88, 100, 122, 142, 162], "classes": [21, 22, 101, 102, 111, 112, 123, 124, 143, 144], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [52, 54, 66, 69, 71, 75, 77, 82, 84, 94, 96, 109, 116, 118, 129, 131, 136, 138, 151, 156, 158, 169, 177, 181, 183, 187, 189], "assignments": [], "loops": [], "conditionals": [6, 7, 11, 12, 14, 16, 19, 23, 24, 27, 29, 30, 32, 33, 35, 36, 38, 41, 43, 46, 48, 51, 56, 57, 61, 62, 64, 65, 68, 74, 79, 80, 87, 89, 92, 99, 103, 106, 108, 113, 114, 121, 125, 128, 134, 141, 145, 148, 150, 154, 161, 163, 166, 168, 171, 174, 176, 179, 180, 185, 186, 191, 192], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 10, "universal_type": "function", "name": "VCPVoiceDetector", "text_snippet": "interface VCPVoiceDetector : NSObject\n{\n NSDictionary *_model;\n struct AudioStreamBasicDescrip"}], "class_declarations": [{"node_id": 21, "universal_type": "class", "name": "AudioStreamBasicDescription", "text_snippet": "struct AudioStreamBasicDescription"}, {"node_id": 22, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 101, "universal_type": "class", "name": "AudioBufferList", "text_snippet": "struct AudioBufferList"}, {"node_id": 102, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 111, "universal_type": "class", "name": "AudioTimeStamp", "text_snippet": "struct AudioTimeStamp"}, {"node_id": 112, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 123, "universal_type": "class", "name": "AudioStreamBasicDescription", "text_snippet": "struct AudioStreamBasicDescription"}, {"node_id": 124, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 143, "universal_type": "class", "name": "opaqueCMSampleBuffer", "text_snippet": "struct opaqueCMSampleBuffer"}, {"node_id": 144, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "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 \"NSObject.h\"\n\n@class NSDictionary, NSMutableArray;\n\n@interface VCPVoiceDetector : NSObject\n{\n NSDictionary *_model;\n struct AudioStreamBasicDescription _audioStream;\n int _sampleBatchSize;\n CDStruct_1b6d18a9 _trackStart;\n BOOL _voiceActivity;\n CDStruct_1b6d18a9 _voiceStart;\n NSMutableArray *_voiceDetections;\n NSMutableArray *_utteranceDetections;\n NSMutableArray *_musicDetections;\n}\n\n+ (id)detector;\n@property(retain) NSMutableArray *voiceDetections; // @synthesize voiceDetections=_voiceDetections;\n- (void).cxx_destruct;\n- (id)results;\n- (int)finalizeAnalysisAtTime:(const CDStruct_1b6d18a9 *)arg1;\n- (int)processAudioSamples:(struct AudioBufferList *)arg1 timestamp:(struct AudioTimeStamp)arg2;\n- (int)setupWithAudioStream:(const struct AudioStreamBasicDescription *)arg1;\n- (int)loadModel;\n- (int)setupWithSample:(struct opaqueCMSampleBuffer *)arg1 andSampleBatchSize:(int)arg2;\n- (void)addDetectionFromTime:(const CDStruct_1b6d18a9 *)arg1 toTime:(const CDStruct_1b6d18a9 *)arg2 result:(id)arg3;\n- (id)audioFormatRequirements;\n- (id)init;\n\n@end\n\n"}
80,211
c
/* * ACPI INT3403 thermal driver * Copyright (c) 2013, Intel Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. * * This program is distributed in the hope 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. */ #include <linux/kernel.h> #include <linux/module.h> #include <linux/init.h> #include <linux/types.h> #include <linux/acpi.h> #include <linux/thermal.h> #define INT3403_TYPE_SENSOR 0x03 #define INT3403_PERF_CHANGED_EVENT 0x80 #define INT3403_THERMAL_EVENT 0x90 #define DECI_KELVIN_TO_MILLI_CELSIUS(t, off) (((t) - (off)) * 100) #define KELVIN_OFFSET 2732 #define MILLI_CELSIUS_TO_DECI_KELVIN(t, off) (((t) / 100) + (off)) #define ACPI_INT3403_CLASS "int3403" #define ACPI_INT3403_FILE_STATE "state" struct int3403_sensor { struct thermal_zone_device *tzone; unsigned long *thresholds; }; static int sys_get_curr_temp(struct thermal_zone_device *tzone, unsigned long *temp) { struct acpi_device *device = tzone->devdata; unsigned long long tmp; acpi_status status; status = acpi_evaluate_integer(device->handle, "_TMP", NULL, &tmp); if (ACPI_FAILURE(status)) return -EIO; *temp = DECI_KELVIN_TO_MILLI_CELSIUS(tmp, KELVIN_OFFSET); return 0; } static int sys_get_trip_hyst(struct thermal_zone_device *tzone, int trip, unsigned long *temp) { struct acpi_device *device = tzone->devdata; unsigned long long hyst; acpi_status status; status = acpi_evaluate_integer(device->handle, "GTSH", NULL, &hyst); if (ACPI_FAILURE(status)) return -EIO; /* * Thermal hysteresis represents a temperature difference. * Kelvin and Celsius have same degree size. So the * conversion here between tenths of degree Kelvin unit * and Milli-Celsius unit is just to multiply 100. */ *temp = hyst * 100; return 0; } static int sys_get_trip_temp(struct thermal_zone_device *tzone, int trip, unsigned long *temp) { struct acpi_device *device = tzone->devdata; struct int3403_sensor *obj = acpi_driver_data(device); /* * get_trip_temp is a mandatory callback but * PATx method doesn't return any value, so return * cached value, which was last set from user space. */ *temp = obj->thresholds[trip]; return 0; } static int sys_get_trip_type(struct thermal_zone_device *thermal, int trip, enum thermal_trip_type *type) { /* Mandatory callback, may not mean much here */ *type = THERMAL_TRIP_PASSIVE; return 0; } int sys_set_trip_temp(struct thermal_zone_device *tzone, int trip, unsigned long temp) { struct acpi_device *device = tzone->devdata; acpi_status status; char name[10]; int ret = 0; struct int3403_sensor *obj = acpi_driver_data(device); snprintf(name, sizeof(name), "PAT%d", trip); if (acpi_has_method(device->handle, name)) { status = acpi_execute_simple_method(device->handle, name, MILLI_CELSIUS_TO_DECI_KELVIN(temp, KELVIN_OFFSET)); if (ACPI_FAILURE(status)) ret = -EIO; else obj->thresholds[trip] = temp; } else { ret = -EIO; dev_err(&device->dev, "sys_set_trip_temp: method not found\n"); } return ret; } static struct thermal_zone_device_ops tzone_ops = { .get_temp = sys_get_curr_temp, .get_trip_temp = sys_get_trip_temp, .get_trip_type = sys_get_trip_type, .set_trip_temp = sys_set_trip_temp, .get_trip_hyst = sys_get_trip_hyst, }; static void acpi_thermal_notify(struct acpi_device *device, u32 event) { struct int3403_sensor *obj; if (!device) return; obj = acpi_driver_data(device); if (!obj) return; switch (event) { case INT3403_PERF_CHANGED_EVENT: break; case INT3403_THERMAL_EVENT: thermal_zone_device_update(obj->tzone); break; default: dev_err(&device->dev, "Unsupported event [0x%x]\n", event); break; } } static int acpi_int3403_add(struct acpi_device *device) { int result = 0; unsigned long long ptyp; acpi_status status; struct int3403_sensor *obj; unsigned long long trip_cnt; int trip_mask = 0; if (!device) return -EINVAL; status = acpi_evaluate_integer(device->handle, "PTYP", NULL, &ptyp); if (ACPI_FAILURE(status)) return -EINVAL; if (ptyp != INT3403_TYPE_SENSOR) return -EINVAL; obj = devm_kzalloc(&device->dev, sizeof(*obj), GFP_KERNEL); if (!obj) return -ENOMEM; device->driver_data = obj; status = acpi_evaluate_integer(device->handle, "PATC", NULL, &trip_cnt); if (ACPI_FAILURE(status)) trip_cnt = 0; if (trip_cnt) { /* We have to cache, thresholds can't be readback */ obj->thresholds = devm_kzalloc(&device->dev, sizeof(*obj->thresholds) * trip_cnt, GFP_KERNEL); if (!obj->thresholds) return -ENOMEM; trip_mask = BIT(trip_cnt) - 1; } obj->tzone = thermal_zone_device_register(acpi_device_bid(device), trip_cnt, trip_mask, device, &tzone_ops, NULL, 0, 0); if (IS_ERR(obj->tzone)) { result = PTR_ERR(obj->tzone); return result; } strcpy(acpi_device_name(device), "INT3403"); strcpy(acpi_device_class(device), ACPI_INT3403_CLASS); return 0; } static int acpi_int3403_remove(struct acpi_device *device) { struct int3403_sensor *obj; obj = acpi_driver_data(device); thermal_zone_device_unregister(obj->tzone); return 0; } ACPI_MODULE_NAME("int3403"); static const struct acpi_device_id int3403_device_ids[] = { {"INT3403", 0}, {"", 0}, }; MODULE_DEVICE_TABLE(acpi, int3403_device_ids); static struct acpi_driver acpi_int3403_driver = { .name = "INT3403", .class = ACPI_INT3403_CLASS, .ids = int3403_device_ids, .ops = { .add = acpi_int3403_add, .remove = acpi_int3403_remove, .notify = acpi_thermal_notify, }, }; module_acpi_driver(acpi_int3403_driver); MODULE_AUTHOR("<NAME> <<EMAIL>>"); MODULE_LICENSE("GPL v2"); MODULE_DESCRIPTION("ACPI INT3403 thermal driver");
28.65
200
(translation_unit) "/*\n * ACPI INT3403 thermal driver\n * Copyright (c) 2013, Intel Corporation.\n *\n * This program is free software; you can redistribute it and/or modify it\n * under the terms and conditions of the GNU General Public License,\n * version 2, as published by the Free Software Foundation.\n *\n * This program is distributed in the hope it will be useful, but WITHOUT\n * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\n * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for\n * more details.\n */\n\n#include <linux/kernel.h>\n#include <linux/module.h>\n#include <linux/init.h>\n#include <linux/types.h>\n#include <linux/acpi.h>\n#include <linux/thermal.h>\n\n#define INT3403_TYPE_SENSOR 0x03\n#define INT3403_PERF_CHANGED_EVENT 0x80\n#define INT3403_THERMAL_EVENT 0x90\n\n#define DECI_KELVIN_TO_MILLI_CELSIUS(t, off) (((t) - (off)) * 100)\n#define KELVIN_OFFSET 2732\n#define MILLI_CELSIUS_TO_DECI_KELVIN(t, off) (((t) / 100) + (off))\n\n#define ACPI_INT3403_CLASS "int3403"\n#define ACPI_INT3403_FILE_STATE "state"\n\nstruct int3403_sensor {\n struct thermal_zone_device *tzone;\n unsigned long *thresholds;\n};\n\nstatic int sys_get_curr_temp(struct thermal_zone_device *tzone,\n unsigned long *temp)\n{\n struct acpi_device *device = tzone->devdata;\n unsigned long long tmp;\n acpi_status status;\n\n status = acpi_evaluate_integer(device->handle, "_TMP", NULL, &tmp);\n if (ACPI_FAILURE(status))\n return -EIO;\n\n *temp = DECI_KELVIN_TO_MILLI_CELSIUS(tmp, KELVIN_OFFSET);\n\n return 0;\n}\n\nstatic int sys_get_trip_hyst(struct thermal_zone_device *tzone,\n int trip, unsigned long *temp)\n{\n struct acpi_device *device = tzone->devdata;\n unsigned long long hyst;\n acpi_status status;\n\n status = acpi_evaluate_integer(device->handle, "GTSH", NULL, &hyst);\n if (ACPI_FAILURE(status))\n return -EIO;\n\n /*\n * Thermal hysteresis represents a temperature difference.\n * Kelvin and Celsius have same degree size. So the\n * conversion here between tenths of degree Kelvin unit\n * and Milli-Celsius unit is just to multiply 100.\n */\n *temp = hyst * 100;\n\n return 0;\n}\n\nstatic int sys_get_trip_temp(struct thermal_zone_device *tzone,\n int trip, unsigned long *temp)\n{\n struct acpi_device *device = tzone->devdata;\n struct int3403_sensor *obj = acpi_driver_data(device);\n\n /*\n * get_trip_temp is a mandatory callback but\n * PATx method doesn't return any value, so return\n * cached value, which was last set from user space.\n */\n *temp = obj->thresholds[trip];\n\n return 0;\n}\n\nstatic int sys_get_trip_type(struct thermal_zone_device *thermal,\n int trip, enum thermal_trip_type *type)\n{\n /* Mandatory callback, may not mean much here */\n *type = THERMAL_TRIP_PASSIVE;\n\n return 0;\n}\n\nint sys_set_trip_temp(struct thermal_zone_device *tzone, int trip,\n unsigned long temp)\n{\n struct acpi_device *device = tzone->devdata;\n acpi_status status;\n char name[10];\n int ret = 0;\n struct int3403_sensor *obj = acpi_driver_data(device);\n\n snprintf(name, sizeof(name), "PAT%d", trip);\n if (acpi_has_method(device->handle, name)) {\n status = acpi_execute_simple_method(device->handle, name,\n MILLI_CELSIUS_TO_DECI_KELVIN(temp,\n KELVIN_OFFSET));\n if (ACPI_FAILURE(status))\n ret = -EIO;\n else\n obj->thresholds[trip] = temp;\n } else {\n ret = -EIO;\n dev_err(&device->dev, "sys_set_trip_temp: method not found\n");\n }\n\n return ret;\n}\n\nstatic struct thermal_zone_device_ops tzone_ops = {\n .get_temp = sys_get_curr_temp,\n .get_trip_temp = sys_get_trip_temp,\n .get_trip_type = sys_get_trip_type,\n .set_trip_temp = sys_set_trip_temp,\n .get_trip_hyst = sys_get_trip_hyst,\n};\n\nstatic void acpi_thermal_notify(struct acpi_device *device, u32 event)\n{\n struct int3403_sensor *obj;\n\n if (!device)\n return;\n\n obj = acpi_driver_data(device);\n if (!obj)\n return;\n\n switch (event) {\n case INT3403_PERF_CHANGED_EVENT:\n break;\n case INT3403_THERMAL_EVENT:\n thermal_zone_device_update(obj->tzone);\n break;\n default:\n dev_err(&device->dev, "Unsupported event [0x%x]\n", event);\n break;\n }\n}\n\nstatic int acpi_int3403_add(struct acpi_device *device)\n{\n int result = 0;\n unsigned long long ptyp;\n acpi_status status;\n struct int3403_sensor *obj;\n unsigned long long trip_cnt;\n int trip_mask = 0;\n\n if (!device)\n return -EINVAL;\n\n status = acpi_evaluate_integer(device->handle, "PTYP", NULL, &ptyp);\n if (ACPI_FAILURE(status))\n return -EINVAL;\n\n if (ptyp != INT3403_TYPE_SENSOR)\n return -EINVAL;\n\n obj = devm_kzalloc(&device->dev, sizeof(*obj), GFP_KERNEL);\n if (!obj)\n return -ENOMEM;\n\n device->driver_data = obj;\n\n status = acpi_evaluate_integer(device->handle, "PATC", NULL,\n &trip_cnt);\n if (ACPI_FAILURE(status))\n trip_cnt = 0;\n\n if (trip_cnt) {\n /* We have to cache, thresholds can't be readback */\n obj->thresholds = devm_kzalloc(&device->dev,\n sizeof(*obj->thresholds) * trip_cnt,\n GFP_KERNEL);\n if (!obj->thresholds)\n return -ENOMEM;\n trip_mask = BIT(trip_cnt) - 1;\n }\n obj->tzone = thermal_zone_device_register(acpi_device_bid(device),\n trip_cnt, trip_mask, device, &tzone_ops,\n NULL, 0, 0);\n if (IS_ERR(obj->tzone)) {\n result = PTR_ERR(obj->tzone);\n return result;\n }\n\n strcpy(acpi_device_name(device), "INT3403");\n strcpy(acpi_device_class(device), ACPI_INT3403_CLASS);\n\n return 0;\n}\n\nstatic int acpi_int3403_remove(struct acpi_device *device)\n{\n struct int3403_sensor *obj;\n\n obj = acpi_driver_data(device);\n thermal_zone_device_unregister(obj->tzone);\n\n return 0;\n}\n\nACPI_MODULE_NAME("int3403");\nstatic const struct acpi_device_id int3403_device_ids[] = {\n {"INT3403", 0},\n {"", 0},\n};\nMODULE_DEVICE_TABLE(acpi, int3403_device_ids);\n\nstatic struct acpi_driver acpi_int3403_driver = {\n .name = "INT3403",\n .class = ACPI_INT3403_CLASS,\n .ids = int3403_device_ids,\n .ops = {\n .add = acpi_int3403_add,\n .remove = acpi_int3403_remove,\n .notify = acpi_thermal_notify,\n },\n};\n\nmodule_acpi_driver(acpi_int3403_driver);\n\nMODULE_AUTHOR("<NAME> <<EMAIL>>");\nMODULE_LICENSE("GPL v2");\nMODULE_DESCRIPTION("ACPI INT3403 thermal driver");\n" (comment) "/*\n * ACPI INT3403 thermal driver\n * Copyright (c) 2013, Intel Corporation.\n *\n * This program is free software; you can redistribute it and/or modify it\n * under the terms and conditions of the GNU General Public License,\n * version 2, as published by the Free Software Foundation.\n *\n * This program is distributed in the hope it will be useful, but WITHOUT\n * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\n * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for\n * more details.\n */" (preproc_include) "#include <linux/kernel.h>\n" (#include) "#include" (system_lib_string) "<linux/kernel.h>" (preproc_include) "#include <linux/module.h>\n" (#include) "#include" (system_lib_string) "<linux/module.h>" (preproc_include) "#include <linux/init.h>\n" (#include) "#include" (system_lib_string) "<linux/init.h>" (preproc_include) "#include <linux/types.h>\n" (#include) "#include" (system_lib_string) "<linux/types.h>" (preproc_include) "#include <linux/acpi.h>\n" (#include) "#include" (system_lib_string) "<linux/acpi.h>" (preproc_include) "#include <linux/thermal.h>\n" (#include) "#include" (system_lib_string) "<linux/thermal.h>" (preproc_def) "#define INT3403_TYPE_SENSOR 0x03\n" (#define) "#define" (identifier) "INT3403_TYPE_SENSOR" (preproc_arg) "0x03" (preproc_def) "#define INT3403_PERF_CHANGED_EVENT 0x80\n" (#define) "#define" (identifier) "INT3403_PERF_CHANGED_EVENT" (preproc_arg) "0x80" (preproc_def) "#define INT3403_THERMAL_EVENT 0x90\n" (#define) "#define" (identifier) "INT3403_THERMAL_EVENT" (preproc_arg) "0x90" (preproc_function_def) "#define DECI_KELVIN_TO_MILLI_CELSIUS(t, off) (((t) - (off)) * 100)\n" (#define) "#define" (identifier) "DECI_KELVIN_TO_MILLI_CELSIUS" (preproc_params) "(t, off)" (() "(" (identifier) "t" (,) "," (identifier) "off" ()) ")" (preproc_arg) "(((t) - (off)) * 100)" (preproc_def) "#define KELVIN_OFFSET 2732\n" (#define) "#define" (identifier) "KELVIN_OFFSET" (preproc_arg) "2732" (preproc_function_def) "#define MILLI_CELSIUS_TO_DECI_KELVIN(t, off) (((t) / 100) + (off))\n" (#define) "#define" (identifier) "MILLI_CELSIUS_TO_DECI_KELVIN" (preproc_params) "(t, off)" (() "(" (identifier) "t" (,) "," (identifier) "off" ()) ")" (preproc_arg) "(((t) / 100) + (off))" (preproc_def) "#define ACPI_INT3403_CLASS "int3403"\n" (#define) "#define" (identifier) "ACPI_INT3403_CLASS" (preproc_arg) ""int3403"" (preproc_def) "#define ACPI_INT3403_FILE_STATE "state"\n" (#define) "#define" (identifier) "ACPI_INT3403_FILE_STATE" (preproc_arg) ""state"" (struct_specifier) "struct int3403_sensor {\n struct thermal_zone_device *tzone;\n unsigned long *thresholds;\n}" (struct) "struct" (type_identifier) "int3403_sensor" (field_declaration_list) "{\n struct thermal_zone_device *tzone;\n unsigned long *thresholds;\n}" ({) "{" (field_declaration) "struct thermal_zone_device *tzone;" (struct_specifier) "struct thermal_zone_device" (struct) "struct" (type_identifier) "thermal_zone_device" (pointer_declarator) "*tzone" (*) "*" (field_identifier) "tzone" (;) ";" (field_declaration) "unsigned long *thresholds;" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (pointer_declarator) "*thresholds" (*) "*" (field_identifier) "thresholds" (;) ";" (}) "}" (;) ";" (function_definition) "static int sys_get_curr_temp(struct thermal_zone_device *tzone,\n unsigned long *temp)\n{\n struct acpi_device *device = tzone->devdata;\n unsigned long long tmp;\n acpi_status status;\n\n status = acpi_evaluate_integer(device->handle, "_TMP", NULL, &tmp);\n if (ACPI_FAILURE(status))\n return -EIO;\n\n *temp = DECI_KELVIN_TO_MILLI_CELSIUS(tmp, KELVIN_OFFSET);\n\n return 0;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "sys_get_curr_temp(struct thermal_zone_device *tzone,\n unsigned long *temp)" (identifier) "sys_get_curr_temp" (parameter_list) "(struct thermal_zone_device *tzone,\n unsigned long *temp)" (() "(" (parameter_declaration) "struct thermal_zone_device *tzone" (struct_specifier) "struct thermal_zone_device" (struct) "struct" (type_identifier) "thermal_zone_device" (pointer_declarator) "*tzone" (*) "*" (identifier) "tzone" (,) "," (parameter_declaration) "unsigned long *temp" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (pointer_declarator) "*temp" (*) "*" (identifier) "temp" ()) ")" (compound_statement) "{\n struct acpi_device *device = tzone->devdata;\n unsigned long long tmp;\n acpi_status status;\n\n status = acpi_evaluate_integer(device->handle, "_TMP", NULL, &tmp);\n if (ACPI_FAILURE(status))\n return -EIO;\n\n *temp = DECI_KELVIN_TO_MILLI_CELSIUS(tmp, KELVIN_OFFSET);\n\n return 0;\n}" ({) "{" (declaration) "struct acpi_device *device = tzone->devdata;" (struct_specifier) "struct acpi_device" (struct) "struct" (type_identifier) "acpi_device" (init_declarator) "*device = tzone->devdata" (pointer_declarator) "*device" (*) "*" (identifier) "device" (=) "=" (field_expression) "tzone->devdata" (identifier) "tzone" (->) "->" (field_identifier) "devdata" (;) ";" (declaration) "unsigned long long tmp;" (sized_type_specifier) "unsigned long long" (unsigned) "unsigned" (long) "long" (long) "long" (identifier) "tmp" (;) ";" (declaration) "acpi_status status;" (type_identifier) "acpi_status" (identifier) "status" (;) ";" (expression_statement) "status = acpi_evaluate_integer(device->handle, "_TMP", NULL, &tmp);" (assignment_expression) "status = acpi_evaluate_integer(device->handle, "_TMP", NULL, &tmp)" (identifier) "status" (=) "=" (call_expression) "acpi_evaluate_integer(device->handle, "_TMP", NULL, &tmp)" (identifier) "acpi_evaluate_integer" (argument_list) "(device->handle, "_TMP", NULL, &tmp)" (() "(" (field_expression) "device->handle" (identifier) "device" (->) "->" (field_identifier) "handle" (,) "," (string_literal) ""_TMP"" (") """ (string_content) "_TMP" (") """ (,) "," (null) "NULL" (NULL) "NULL" (,) "," (pointer_expression) "&tmp" (&) "&" (identifier) "tmp" ()) ")" (;) ";" (if_statement) "if (ACPI_FAILURE(status))\n return -EIO;" (if) "if" (parenthesized_expression) "(ACPI_FAILURE(status))" (() "(" (call_expression) "ACPI_FAILURE(status)" (identifier) "ACPI_FAILURE" (argument_list) "(status)" (() "(" (identifier) "status" ()) ")" ()) ")" (return_statement) "return -EIO;" (return) "return" (unary_expression) "-EIO" (-) "-" (identifier) "EIO" (;) ";" (expression_statement) "*temp = DECI_KELVIN_TO_MILLI_CELSIUS(tmp, KELVIN_OFFSET);" (assignment_expression) "*temp = DECI_KELVIN_TO_MILLI_CELSIUS(tmp, KELVIN_OFFSET)" (pointer_expression) "*temp" (*) "*" (identifier) "temp" (=) "=" (call_expression) "DECI_KELVIN_TO_MILLI_CELSIUS(tmp, KELVIN_OFFSET)" (identifier) "DECI_KELVIN_TO_MILLI_CELSIUS" (argument_list) "(tmp, KELVIN_OFFSET)" (() "(" (identifier) "tmp" (,) "," (identifier) "KELVIN_OFFSET" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "static int sys_get_trip_hyst(struct thermal_zone_device *tzone,\n int trip, unsigned long *temp)\n{\n struct acpi_device *device = tzone->devdata;\n unsigned long long hyst;\n acpi_status status;\n\n status = acpi_evaluate_integer(device->handle, "GTSH", NULL, &hyst);\n if (ACPI_FAILURE(status))\n return -EIO;\n\n /*\n * Thermal hysteresis represents a temperature difference.\n * Kelvin and Celsius have same degree size. So the\n * conversion here between tenths of degree Kelvin unit\n * and Milli-Celsius unit is just to multiply 100.\n */\n *temp = hyst * 100;\n\n return 0;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "sys_get_trip_hyst(struct thermal_zone_device *tzone,\n int trip, unsigned long *temp)" (identifier) "sys_get_trip_hyst" (parameter_list) "(struct thermal_zone_device *tzone,\n int trip, unsigned long *temp)" (() "(" (parameter_declaration) "struct thermal_zone_device *tzone" (struct_specifier) "struct thermal_zone_device" (struct) "struct" (type_identifier) "thermal_zone_device" (pointer_declarator) "*tzone" (*) "*" (identifier) "tzone" (,) "," (parameter_declaration) "int trip" (primitive_type) "int" (identifier) "trip" (,) "," (parameter_declaration) "unsigned long *temp" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (pointer_declarator) "*temp" (*) "*" (identifier) "temp" ()) ")" (compound_statement) "{\n struct acpi_device *device = tzone->devdata;\n unsigned long long hyst;\n acpi_status status;\n\n status = acpi_evaluate_integer(device->handle, "GTSH", NULL, &hyst);\n if (ACPI_FAILURE(status))\n return -EIO;\n\n /*\n * Thermal hysteresis represents a temperature difference.\n * Kelvin and Celsius have same degree size. So the\n * conversion here between tenths of degree Kelvin unit\n * and Milli-Celsius unit is just to multiply 100.\n */\n *temp = hyst * 100;\n\n return 0;\n}" ({) "{" (declaration) "struct acpi_device *device = tzone->devdata;" (struct_specifier) "struct acpi_device" (struct) "struct" (type_identifier) "acpi_device" (init_declarator) "*device = tzone->devdata" (pointer_declarator) "*device" (*) "*" (identifier) "device" (=) "=" (field_expression) "tzone->devdata" (identifier) "tzone" (->) "->" (field_identifier) "devdata" (;) ";" (declaration) "unsigned long long hyst;" (sized_type_specifier) "unsigned long long" (unsigned) "unsigned" (long) "long" (long) "long" (identifier) "hyst" (;) ";" (declaration) "acpi_status status;" (type_identifier) "acpi_status" (identifier) "status" (;) ";" (expression_statement) "status = acpi_evaluate_integer(device->handle, "GTSH", NULL, &hyst);" (assignment_expression) "status = acpi_evaluate_integer(device->handle, "GTSH", NULL, &hyst)" (identifier) "status" (=) "=" (call_expression) "acpi_evaluate_integer(device->handle, "GTSH", NULL, &hyst)" (identifier) "acpi_evaluate_integer" (argument_list) "(device->handle, "GTSH", NULL, &hyst)" (() "(" (field_expression) "device->handle" (identifier) "device" (->) "->" (field_identifier) "handle" (,) "," (string_literal) ""GTSH"" (") """ (string_content) "GTSH" (") """ (,) "," (null) "NULL" (NULL) "NULL" (,) "," (pointer_expression) "&hyst" (&) "&" (identifier) "hyst" ()) ")" (;) ";" (if_statement) "if (ACPI_FAILURE(status))\n return -EIO;" (if) "if" (parenthesized_expression) "(ACPI_FAILURE(status))" (() "(" (call_expression) "ACPI_FAILURE(status)" (identifier) "ACPI_FAILURE" (argument_list) "(status)" (() "(" (identifier) "status" ()) ")" ()) ")" (return_statement) "return -EIO;" (return) "return" (unary_expression) "-EIO" (-) "-" (identifier) "EIO" (;) ";" (comment) "/*\n * Thermal hysteresis represents a temperature difference.\n * Kelvin and Celsius have same degree size. So the\n * conversion here between tenths of degree Kelvin unit\n * and Milli-Celsius unit is just to multiply 100.\n */" (expression_statement) "*temp = hyst * 100;" (assignment_expression) "*temp = hyst * 100" (pointer_expression) "*temp" (*) "*" (identifier) "temp" (=) "=" (binary_expression) "hyst * 100" (identifier) "hyst" (*) "*" (number_literal) "100" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "static int sys_get_trip_temp(struct thermal_zone_device *tzone,\n int trip, unsigned long *temp)\n{\n struct acpi_device *device = tzone->devdata;\n struct int3403_sensor *obj = acpi_driver_data(device);\n\n /*\n * get_trip_temp is a mandatory callback but\n * PATx method doesn't return any value, so return\n * cached value, which was last set from user space.\n */\n *temp = obj->thresholds[trip];\n\n return 0;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "sys_get_trip_temp(struct thermal_zone_device *tzone,\n int trip, unsigned long *temp)" (identifier) "sys_get_trip_temp" (parameter_list) "(struct thermal_zone_device *tzone,\n int trip, unsigned long *temp)" (() "(" (parameter_declaration) "struct thermal_zone_device *tzone" (struct_specifier) "struct thermal_zone_device" (struct) "struct" (type_identifier) "thermal_zone_device" (pointer_declarator) "*tzone" (*) "*" (identifier) "tzone" (,) "," (parameter_declaration) "int trip" (primitive_type) "int" (identifier) "trip" (,) "," (parameter_declaration) "unsigned long *temp" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (pointer_declarator) "*temp" (*) "*" (identifier) "temp" ()) ")" (compound_statement) "{\n struct acpi_device *device = tzone->devdata;\n struct int3403_sensor *obj = acpi_driver_data(device);\n\n /*\n * get_trip_temp is a mandatory callback but\n * PATx method doesn't return any value, so return\n * cached value, which was last set from user space.\n */\n *temp = obj->thresholds[trip];\n\n return 0;\n}" ({) "{" (declaration) "struct acpi_device *device = tzone->devdata;" (struct_specifier) "struct acpi_device" (struct) "struct" (type_identifier) "acpi_device" (init_declarator) "*device = tzone->devdata" (pointer_declarator) "*device" (*) "*" (identifier) "device" (=) "=" (field_expression) "tzone->devdata" (identifier) "tzone" (->) "->" (field_identifier) "devdata" (;) ";" (declaration) "struct int3403_sensor *obj = acpi_driver_data(device);" (struct_specifier) "struct int3403_sensor" (struct) "struct" (type_identifier) "int3403_sensor" (init_declarator) "*obj = acpi_driver_data(device)" (pointer_declarator) "*obj" (*) "*" (identifier) "obj" (=) "=" (call_expression) "acpi_driver_data(device)" (identifier) "acpi_driver_data" (argument_list) "(device)" (() "(" (identifier) "device" ()) ")" (;) ";" (comment) "/*\n * get_trip_temp is a mandatory callback but\n * PATx method doesn't return any value, so return\n * cached value, which was last set from user space.\n */" (expression_statement) "*temp = obj->thresholds[trip];" (assignment_expression) "*temp = obj->thresholds[trip]" (pointer_expression) "*temp" (*) "*" (identifier) "temp" (=) "=" (subscript_expression) "obj->thresholds[trip]" (field_expression) "obj->thresholds" (identifier) "obj" (->) "->" (field_identifier) "thresholds" ([) "[" (identifier) "trip" (]) "]" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "static int sys_get_trip_type(struct thermal_zone_device *thermal,\n int trip, enum thermal_trip_type *type)\n{\n /* Mandatory callback, may not mean much here */\n *type = THERMAL_TRIP_PASSIVE;\n\n return 0;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "sys_get_trip_type(struct thermal_zone_device *thermal,\n int trip, enum thermal_trip_type *type)" (identifier) "sys_get_trip_type" (parameter_list) "(struct thermal_zone_device *thermal,\n int trip, enum thermal_trip_type *type)" (() "(" (parameter_declaration) "struct thermal_zone_device *thermal" (struct_specifier) "struct thermal_zone_device" (struct) "struct" (type_identifier) "thermal_zone_device" (pointer_declarator) "*thermal" (*) "*" (identifier) "thermal" (,) "," (parameter_declaration) "int trip" (primitive_type) "int" (identifier) "trip" (,) "," (parameter_declaration) "enum thermal_trip_type *type" (enum_specifier) "enum thermal_trip_type" (enum) "enum" (type_identifier) "thermal_trip_type" (pointer_declarator) "*type" (*) "*" (identifier) "type" ()) ")" (compound_statement) "{\n /* Mandatory callback, may not mean much here */\n *type = THERMAL_TRIP_PASSIVE;\n\n return 0;\n}" ({) "{" (comment) "/* Mandatory callback, may not mean much here */" (expression_statement) "*type = THERMAL_TRIP_PASSIVE;" (assignment_expression) "*type = THERMAL_TRIP_PASSIVE" (pointer_expression) "*type" (*) "*" (identifier) "type" (=) "=" (identifier) "THERMAL_TRIP_PASSIVE" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "int sys_set_trip_temp(struct thermal_zone_device *tzone, int trip,\n unsigned long temp)\n{\n struct acpi_device *device = tzone->devdata;\n acpi_status status;\n char name[10];\n int ret = 0;\n struct int3403_sensor *obj = acpi_driver_data(device);\n\n snprintf(name, sizeof(name), "PAT%d", trip);\n if (acpi_has_method(device->handle, name)) {\n status = acpi_execute_simple_method(device->handle, name,\n MILLI_CELSIUS_TO_DECI_KELVIN(temp,\n KELVIN_OFFSET));\n if (ACPI_FAILURE(status))\n ret = -EIO;\n else\n obj->thresholds[trip] = temp;\n } else {\n ret = -EIO;\n dev_err(&device->dev, "sys_set_trip_temp: method not found\n");\n }\n\n return ret;\n}" (primitive_type) "int" (function_declarator) "sys_set_trip_temp(struct thermal_zone_device *tzone, int trip,\n unsigned long temp)" (identifier) "sys_set_trip_temp" (parameter_list) "(struct thermal_zone_device *tzone, int trip,\n unsigned long temp)" (() "(" (parameter_declaration) "struct thermal_zone_device *tzone" (struct_specifier) "struct thermal_zone_device" (struct) "struct" (type_identifier) "thermal_zone_device" (pointer_declarator) "*tzone" (*) "*" (identifier) "tzone" (,) "," (parameter_declaration) "int trip" (primitive_type) "int" (identifier) "trip" (,) "," (parameter_declaration) "unsigned long temp" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (identifier) "temp" ()) ")" (compound_statement) "{\n struct acpi_device *device = tzone->devdata;\n acpi_status status;\n char name[10];\n int ret = 0;\n struct int3403_sensor *obj = acpi_driver_data(device);\n\n snprintf(name, sizeof(name), "PAT%d", trip);\n if (acpi_has_method(device->handle, name)) {\n status = acpi_execute_simple_method(device->handle, name,\n MILLI_CELSIUS_TO_DECI_KELVIN(temp,\n KELVIN_OFFSET));\n if (ACPI_FAILURE(status))\n ret = -EIO;\n else\n obj->thresholds[trip] = temp;\n } else {\n ret = -EIO;\n dev_err(&device->dev, "sys_set_trip_temp: method not found\n");\n }\n\n return ret;\n}" ({) "{" (declaration) "struct acpi_device *device = tzone->devdata;" (struct_specifier) "struct acpi_device" (struct) "struct" (type_identifier) "acpi_device" (init_declarator) "*device = tzone->devdata" (pointer_declarator) "*device" (*) "*" (identifier) "device" (=) "=" (field_expression) "tzone->devdata" (identifier) "tzone" (->) "->" (field_identifier) "devdata" (;) ";" (declaration) "acpi_status status;" (type_identifier) "acpi_status" (identifier) "status" (;) ";" (declaration) "char name[10];" (primitive_type) "char" (array_declarator) "name[10]" (identifier) "name" ([) "[" (number_literal) "10" (]) "]" (;) ";" (declaration) "int ret = 0;" (primitive_type) "int" (init_declarator) "ret = 0" (identifier) "ret" (=) "=" (number_literal) "0" (;) ";" (declaration) "struct int3403_sensor *obj = acpi_driver_data(device);" (struct_specifier) "struct int3403_sensor" (struct) "struct" (type_identifier) "int3403_sensor" (init_declarator) "*obj = acpi_driver_data(device)" (pointer_declarator) "*obj" (*) "*" (identifier) "obj" (=) "=" (call_expression) "acpi_driver_data(device)" (identifier) "acpi_driver_data" (argument_list) "(device)" (() "(" (identifier) "device" ()) ")" (;) ";" (expression_statement) "snprintf(name, sizeof(name), "PAT%d", trip);" (call_expression) "snprintf(name, sizeof(name), "PAT%d", trip)" (identifier) "snprintf" (argument_list) "(name, sizeof(name), "PAT%d", trip)" (() "(" (identifier) "name" (,) "," (sizeof_expression) "sizeof(name)" (sizeof) "sizeof" (parenthesized_expression) "(name)" (() "(" (identifier) "name" ()) ")" (,) "," (string_literal) ""PAT%d"" (") """ (string_content) "PAT%d" (") """ (,) "," (identifier) "trip" ()) ")" (;) ";" (if_statement) "if (acpi_has_method(device->handle, name)) {\n status = acpi_execute_simple_method(device->handle, name,\n MILLI_CELSIUS_TO_DECI_KELVIN(temp,\n KELVIN_OFFSET));\n if (ACPI_FAILURE(status))\n ret = -EIO;\n else\n obj->thresholds[trip] = temp;\n } else {\n ret = -EIO;\n dev_err(&device->dev, "sys_set_trip_temp: method not found\n");\n }" (if) "if" (parenthesized_expression) "(acpi_has_method(device->handle, name))" (() "(" (call_expression) "acpi_has_method(device->handle, name)" (identifier) "acpi_has_method" (argument_list) "(device->handle, name)" (() "(" (field_expression) "device->handle" (identifier) "device" (->) "->" (field_identifier) "handle" (,) "," (identifier) "name" ()) ")" ()) ")" (compound_statement) "{\n status = acpi_execute_simple_method(device->handle, name,\n MILLI_CELSIUS_TO_DECI_KELVIN(temp,\n KELVIN_OFFSET));\n if (ACPI_FAILURE(status))\n ret = -EIO;\n else\n obj->thresholds[trip] = temp;\n }" ({) "{" (expression_statement) "status = acpi_execute_simple_method(device->handle, name,\n MILLI_CELSIUS_TO_DECI_KELVIN(temp,\n KELVIN_OFFSET));" (assignment_expression) "status = acpi_execute_simple_method(device->handle, name,\n MILLI_CELSIUS_TO_DECI_KELVIN(temp,\n KELVIN_OFFSET))" (identifier) "status" (=) "=" (call_expression) "acpi_execute_simple_method(device->handle, name,\n MILLI_CELSIUS_TO_DECI_KELVIN(temp,\n KELVIN_OFFSET))" (identifier) "acpi_execute_simple_method" (argument_list) "(device->handle, name,\n MILLI_CELSIUS_TO_DECI_KELVIN(temp,\n KELVIN_OFFSET))" (() "(" (field_expression) "device->handle" (identifier) "device" (->) "->" (field_identifier) "handle" (,) "," (identifier) "name" (,) "," (call_expression) "MILLI_CELSIUS_TO_DECI_KELVIN(temp,\n KELVIN_OFFSET)" (identifier) "MILLI_CELSIUS_TO_DECI_KELVIN" (argument_list) "(temp,\n KELVIN_OFFSET)" (() "(" (identifier) "temp" (,) "," (identifier) "KELVIN_OFFSET" ()) ")" ()) ")" (;) ";" (if_statement) "if (ACPI_FAILURE(status))\n ret = -EIO;\n else\n obj->thresholds[trip] = temp;" (if) "if" (parenthesized_expression) "(ACPI_FAILURE(status))" (() "(" (call_expression) "ACPI_FAILURE(status)" (identifier) "ACPI_FAILURE" (argument_list) "(status)" (() "(" (identifier) "status" ()) ")" ()) ")" (expression_statement) "ret = -EIO;" (assignment_expression) "ret = -EIO" (identifier) "ret" (=) "=" (unary_expression) "-EIO" (-) "-" (identifier) "EIO" (;) ";" (else_clause) "else\n obj->thresholds[trip] = temp;" (else) "else" (expression_statement) "obj->thresholds[trip] = temp;" (assignment_expression) "obj->thresholds[trip] = temp" (subscript_expression) "obj->thresholds[trip]" (field_expression) "obj->thresholds" (identifier) "obj" (->) "->" (field_identifier) "thresholds" ([) "[" (identifier) "trip" (]) "]" (=) "=" (identifier) "temp" (;) ";" (}) "}" (else_clause) "else {\n ret = -EIO;\n dev_err(&device->dev, "sys_set_trip_temp: method not found\n");\n }" (else) "else" (compound_statement) "{\n ret = -EIO;\n dev_err(&device->dev, "sys_set_trip_temp: method not found\n");\n }" ({) "{" (expression_statement) "ret = -EIO;" (assignment_expression) "ret = -EIO" (identifier) "ret" (=) "=" (unary_expression) "-EIO" (-) "-" (identifier) "EIO" (;) ";" (expression_statement) "dev_err(&device->dev, "sys_set_trip_temp: method not found\n");" (call_expression) "dev_err(&device->dev, "sys_set_trip_temp: method not found\n")" (identifier) "dev_err" (argument_list) "(&device->dev, "sys_set_trip_temp: method not found\n")" (() "(" (pointer_expression) "&device->dev" (&) "&" (field_expression) "device->dev" (identifier) "device" (->) "->" (field_identifier) "dev" (,) "," (string_literal) ""sys_set_trip_temp: method not found\n"" (") """ (string_content) "sys_set_trip_temp: method not found" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (}) "}" (return_statement) "return ret;" (return) "return" (identifier) "ret" (;) ";" (}) "}" (declaration) "static struct thermal_zone_device_ops tzone_ops = {\n .get_temp = sys_get_curr_temp,\n .get_trip_temp = sys_get_trip_temp,\n .get_trip_type = sys_get_trip_type,\n .set_trip_temp = sys_set_trip_temp,\n .get_trip_hyst = sys_get_trip_hyst,\n};" (storage_class_specifier) "static" (static) "static" (struct_specifier) "struct thermal_zone_device_ops" (struct) "struct" (type_identifier) "thermal_zone_device_ops" (init_declarator) "tzone_ops = {\n .get_temp = sys_get_curr_temp,\n .get_trip_temp = sys_get_trip_temp,\n .get_trip_type = sys_get_trip_type,\n .set_trip_temp = sys_set_trip_temp,\n .get_trip_hyst = sys_get_trip_hyst,\n}" (identifier) "tzone_ops" (=) "=" (initializer_list) "{\n .get_temp = sys_get_curr_temp,\n .get_trip_temp = sys_get_trip_temp,\n .get_trip_type = sys_get_trip_type,\n .set_trip_temp = sys_set_trip_temp,\n .get_trip_hyst = sys_get_trip_hyst,\n}" ({) "{" (initializer_pair) ".get_temp = sys_get_curr_temp" (field_designator) ".get_temp" (.) "." (field_identifier) "get_temp" (=) "=" (identifier) "sys_get_curr_temp" (,) "," (initializer_pair) ".get_trip_temp = sys_get_trip_temp" (field_designator) ".get_trip_temp" (.) "." (field_identifier) "get_trip_temp" (=) "=" (identifier) "sys_get_trip_temp" (,) "," (initializer_pair) ".get_trip_type = sys_get_trip_type" (field_designator) ".get_trip_type" (.) "." (field_identifier) "get_trip_type" (=) "=" (identifier) "sys_get_trip_type" (,) "," (initializer_pair) ".set_trip_temp = sys_set_trip_temp" (field_designator) ".set_trip_temp" (.) "." (field_identifier) "set_trip_temp" (=) "=" (identifier) "sys_set_trip_temp" (,) "," (initializer_pair) ".get_trip_hyst = sys_get_trip_hyst" (field_designator) ".get_trip_hyst" (.) "." (field_identifier) "get_trip_hyst" (=) "=" (identifier) "sys_get_trip_hyst" (,) "," (}) "}" (;) ";" (function_definition) "static void acpi_thermal_notify(struct acpi_device *device, u32 event)\n{\n struct int3403_sensor *obj;\n\n if (!device)\n return;\n\n obj = acpi_driver_data(device);\n if (!obj)\n return;\n\n switch (event) {\n case INT3403_PERF_CHANGED_EVENT:\n break;\n case INT3403_THERMAL_EVENT:\n thermal_zone_device_update(obj->tzone);\n break;\n default:\n dev_err(&device->dev, "Unsupported event [0x%x]\n", event);\n break;\n }\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "acpi_thermal_notify(struct acpi_device *device, u32 event)" (identifier) "acpi_thermal_notify" (parameter_list) "(struct acpi_device *device, u32 event)" (() "(" (parameter_declaration) "struct acpi_device *device" (struct_specifier) "struct acpi_device" (struct) "struct" (type_identifier) "acpi_device" (pointer_declarator) "*device" (*) "*" (identifier) "device" (,) "," (parameter_declaration) "u32 event" (type_identifier) "u32" (identifier) "event" ()) ")" (compound_statement) "{\n struct int3403_sensor *obj;\n\n if (!device)\n return;\n\n obj = acpi_driver_data(device);\n if (!obj)\n return;\n\n switch (event) {\n case INT3403_PERF_CHANGED_EVENT:\n break;\n case INT3403_THERMAL_EVENT:\n thermal_zone_device_update(obj->tzone);\n break;\n default:\n dev_err(&device->dev, "Unsupported event [0x%x]\n", event);\n break;\n }\n}" ({) "{" (declaration) "struct int3403_sensor *obj;" (struct_specifier) "struct int3403_sensor" (struct) "struct" (type_identifier) "int3403_sensor" (pointer_declarator) "*obj" (*) "*" (identifier) "obj" (;) ";" (if_statement) "if (!device)\n return;" (if) "if" (parenthesized_expression) "(!device)" (() "(" (unary_expression) "!device" (!) "!" (identifier) "device" ()) ")" (return_statement) "return;" (return) "return" (;) ";" (expression_statement) "obj = acpi_driver_data(device);" (assignment_expression) "obj = acpi_driver_data(device)" (identifier) "obj" (=) "=" (call_expression) "acpi_driver_data(device)" (identifier) "acpi_driver_data" (argument_list) "(device)" (() "(" (identifier) "device" ()) ")" (;) ";" (if_statement) "if (!obj)\n return;" (if) "if" (parenthesized_expression) "(!obj)" (() "(" (unary_expression) "!obj" (!) "!" (identifier) "obj" ()) ")" (return_statement) "return;" (return) "return" (;) ";" (switch_statement) "switch (event) {\n case INT3403_PERF_CHANGED_EVENT:\n break;\n case INT3403_THERMAL_EVENT:\n thermal_zone_device_update(obj->tzone);\n break;\n default:\n dev_err(&device->dev, "Unsupported event [0x%x]\n", event);\n break;\n }" (switch) "switch" (parenthesized_expression) "(event)" (() "(" (identifier) "event" ()) ")" (compound_statement) "{\n case INT3403_PERF_CHANGED_EVENT:\n break;\n case INT3403_THERMAL_EVENT:\n thermal_zone_device_update(obj->tzone);\n break;\n default:\n dev_err(&device->dev, "Unsupported event [0x%x]\n", event);\n break;\n }" ({) "{" (case_statement) "case INT3403_PERF_CHANGED_EVENT:\n break;" (case) "case" (identifier) "INT3403_PERF_CHANGED_EVENT" (:) ":" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case INT3403_THERMAL_EVENT:\n thermal_zone_device_update(obj->tzone);\n break;" (case) "case" (identifier) "INT3403_THERMAL_EVENT" (:) ":" (expression_statement) "thermal_zone_device_update(obj->tzone);" (call_expression) "thermal_zone_device_update(obj->tzone)" (identifier) "thermal_zone_device_update" (argument_list) "(obj->tzone)" (() "(" (field_expression) "obj->tzone" (identifier) "obj" (->) "->" (field_identifier) "tzone" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "default:\n dev_err(&device->dev, "Unsupported event [0x%x]\n", event);\n break;" (default) "default" (:) ":" (expression_statement) "dev_err(&device->dev, "Unsupported event [0x%x]\n", event);" (call_expression) "dev_err(&device->dev, "Unsupported event [0x%x]\n", event)" (identifier) "dev_err" (argument_list) "(&device->dev, "Unsupported event [0x%x]\n", event)" (() "(" (pointer_expression) "&device->dev" (&) "&" (field_expression) "device->dev" (identifier) "device" (->) "->" (field_identifier) "dev" (,) "," (string_literal) ""Unsupported event [0x%x]\n"" (") """ (string_content) "Unsupported event [0x%x]" (escape_sequence) "\n" (") """ (,) "," (identifier) "event" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (}) "}" (function_definition) "static int acpi_int3403_add(struct acpi_device *device)\n{\n int result = 0;\n unsigned long long ptyp;\n acpi_status status;\n struct int3403_sensor *obj;\n unsigned long long trip_cnt;\n int trip_mask = 0;\n\n if (!device)\n return -EINVAL;\n\n status = acpi_evaluate_integer(device->handle, "PTYP", NULL, &ptyp);\n if (ACPI_FAILURE(status))\n return -EINVAL;\n\n if (ptyp != INT3403_TYPE_SENSOR)\n return -EINVAL;\n\n obj = devm_kzalloc(&device->dev, sizeof(*obj), GFP_KERNEL);\n if (!obj)\n return -ENOMEM;\n\n device->driver_data = obj;\n\n status = acpi_evaluate_integer(device->handle, "PATC", NULL,\n &trip_cnt);\n if (ACPI_FAILURE(status))\n trip_cnt = 0;\n\n if (trip_cnt) {\n /* We have to cache, thresholds can't be readback */\n obj->thresholds = devm_kzalloc(&device->dev,\n sizeof(*obj->thresholds) * trip_cnt,\n GFP_KERNEL);\n if (!obj->thresholds)\n return -ENOMEM;\n trip_mask = BIT(trip_cnt) - 1;\n }\n obj->tzone = thermal_zone_device_register(acpi_device_bid(device),\n trip_cnt, trip_mask, device, &tzone_ops,\n NULL, 0, 0);\n if (IS_ERR(obj->tzone)) {\n result = PTR_ERR(obj->tzone);\n return result;\n }\n\n strcpy(acpi_device_name(device), "INT3403");\n strcpy(acpi_device_class(device), ACPI_INT3403_CLASS);\n\n return 0;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "acpi_int3403_add(struct acpi_device *device)" (identifier) "acpi_int3403_add" (parameter_list) "(struct acpi_device *device)" (() "(" (parameter_declaration) "struct acpi_device *device" (struct_specifier) "struct acpi_device" (struct) "struct" (type_identifier) "acpi_device" (pointer_declarator) "*device" (*) "*" (identifier) "device" ()) ")" (compound_statement) "{\n int result = 0;\n unsigned long long ptyp;\n acpi_status status;\n struct int3403_sensor *obj;\n unsigned long long trip_cnt;\n int trip_mask = 0;\n\n if (!device)\n return -EINVAL;\n\n status = acpi_evaluate_integer(device->handle, "PTYP", NULL, &ptyp);\n if (ACPI_FAILURE(status))\n return -EINVAL;\n\n if (ptyp != INT3403_TYPE_SENSOR)\n return -EINVAL;\n\n obj = devm_kzalloc(&device->dev, sizeof(*obj), GFP_KERNEL);\n if (!obj)\n return -ENOMEM;\n\n device->driver_data = obj;\n\n status = acpi_evaluate_integer(device->handle, "PATC", NULL,\n &trip_cnt);\n if (ACPI_FAILURE(status))\n trip_cnt = 0;\n\n if (trip_cnt) {\n /* We have to cache, thresholds can't be readback */\n obj->thresholds = devm_kzalloc(&device->dev,\n sizeof(*obj->thresholds) * trip_cnt,\n GFP_KERNEL);\n if (!obj->thresholds)\n return -ENOMEM;\n trip_mask = BIT(trip_cnt) - 1;\n }\n obj->tzone = thermal_zone_device_register(acpi_device_bid(device),\n trip_cnt, trip_mask, device, &tzone_ops,\n NULL, 0, 0);\n if (IS_ERR(obj->tzone)) {\n result = PTR_ERR(obj->tzone);\n return result;\n }\n\n strcpy(acpi_device_name(device), "INT3403");\n strcpy(acpi_device_class(device), ACPI_INT3403_CLASS);\n\n return 0;\n}" ({) "{" (declaration) "int result = 0;" (primitive_type) "int" (init_declarator) "result = 0" (identifier) "result" (=) "=" (number_literal) "0" (;) ";" (declaration) "unsigned long long ptyp;" (sized_type_specifier) "unsigned long long" (unsigned) "unsigned" (long) "long" (long) "long" (identifier) "ptyp" (;) ";" (declaration) "acpi_status status;" (type_identifier) "acpi_status" (identifier) "status" (;) ";" (declaration) "struct int3403_sensor *obj;" (struct_specifier) "struct int3403_sensor" (struct) "struct" (type_identifier) "int3403_sensor" (pointer_declarator) "*obj" (*) "*" (identifier) "obj" (;) ";" (declaration) "unsigned long long trip_cnt;" (sized_type_specifier) "unsigned long long" (unsigned) "unsigned" (long) "long" (long) "long" (identifier) "trip_cnt" (;) ";" (declaration) "int trip_mask = 0;" (primitive_type) "int" (init_declarator) "trip_mask = 0" (identifier) "trip_mask" (=) "=" (number_literal) "0" (;) ";" (if_statement) "if (!device)\n return -EINVAL;" (if) "if" (parenthesized_expression) "(!device)" (() "(" (unary_expression) "!device" (!) "!" (identifier) "device" ()) ")" (return_statement) "return -EINVAL;" (return) "return" (unary_expression) "-EINVAL" (-) "-" (identifier) "EINVAL" (;) ";" (expression_statement) "status = acpi_evaluate_integer(device->handle, "PTYP", NULL, &ptyp);" (assignment_expression) "status = acpi_evaluate_integer(device->handle, "PTYP", NULL, &ptyp)" (identifier) "status" (=) "=" (call_expression) "acpi_evaluate_integer(device->handle, "PTYP", NULL, &ptyp)" (identifier) "acpi_evaluate_integer" (argument_list) "(device->handle, "PTYP", NULL, &ptyp)" (() "(" (field_expression) "device->handle" (identifier) "device" (->) "->" (field_identifier) "handle" (,) "," (string_literal) ""PTYP"" (") """ (string_content) "PTYP" (") """ (,) "," (null) "NULL" (NULL) "NULL" (,) "," (pointer_expression) "&ptyp" (&) "&" (identifier) "ptyp" ()) ")" (;) ";" (if_statement) "if (ACPI_FAILURE(status))\n return -EINVAL;" (if) "if" (parenthesized_expression) "(ACPI_FAILURE(status))" (() "(" (call_expression) "ACPI_FAILURE(status)" (identifier) "ACPI_FAILURE" (argument_list) "(status)" (() "(" (identifier) "status" ()) ")" ()) ")" (return_statement) "return -EINVAL;" (return) "return" (unary_expression) "-EINVAL" (-) "-" (identifier) "EINVAL" (;) ";" (if_statement) "if (ptyp != INT3403_TYPE_SENSOR)\n return -EINVAL;" (if) "if" (parenthesized_expression) "(ptyp != INT3403_TYPE_SENSOR)" (() "(" (binary_expression) "ptyp != INT3403_TYPE_SENSOR" (identifier) "ptyp" (!=) "!=" (identifier) "INT3403_TYPE_SENSOR" ()) ")" (return_statement) "return -EINVAL;" (return) "return" (unary_expression) "-EINVAL" (-) "-" (identifier) "EINVAL" (;) ";" (expression_statement) "obj = devm_kzalloc(&device->dev, sizeof(*obj), GFP_KERNEL);" (assignment_expression) "obj = devm_kzalloc(&device->dev, sizeof(*obj), GFP_KERNEL)" (identifier) "obj" (=) "=" (call_expression) "devm_kzalloc(&device->dev, sizeof(*obj), GFP_KERNEL)" (identifier) "devm_kzalloc" (argument_list) "(&device->dev, sizeof(*obj), GFP_KERNEL)" (() "(" (pointer_expression) "&device->dev" (&) "&" (field_expression) "device->dev" (identifier) "device" (->) "->" (field_identifier) "dev" (,) "," (sizeof_expression) "sizeof(*obj)" (sizeof) "sizeof" (parenthesized_expression) "(*obj)" (() "(" (pointer_expression) "*obj" (*) "*" (identifier) "obj" ()) ")" (,) "," (identifier) "GFP_KERNEL" ()) ")" (;) ";" (if_statement) "if (!obj)\n return -ENOMEM;" (if) "if" (parenthesized_expression) "(!obj)" (() "(" (unary_expression) "!obj" (!) "!" (identifier) "obj" ()) ")" (return_statement) "return -ENOMEM;" (return) "return" (unary_expression) "-ENOMEM" (-) "-" (identifier) "ENOMEM" (;) ";" (expression_statement) "device->driver_data = obj;" (assignment_expression) "device->driver_data = obj" (field_expression) "device->driver_data" (identifier) "device" (->) "->" (field_identifier) "driver_data" (=) "=" (identifier) "obj" (;) ";" (expression_statement) "status = acpi_evaluate_integer(device->handle, "PATC", NULL,\n &trip_cnt);" (assignment_expression) "status = acpi_evaluate_integer(device->handle, "PATC", NULL,\n &trip_cnt)" (identifier) "status" (=) "=" (call_expression) "acpi_evaluate_integer(device->handle, "PATC", NULL,\n &trip_cnt)" (identifier) "acpi_evaluate_integer" (argument_list) "(device->handle, "PATC", NULL,\n &trip_cnt)" (() "(" (field_expression) "device->handle" (identifier) "device" (->) "->" (field_identifier) "handle" (,) "," (string_literal) ""PATC"" (") """ (string_content) "PATC" (") """ (,) "," (null) "NULL" (NULL) "NULL" (,) "," (pointer_expression) "&trip_cnt" (&) "&" (identifier) "trip_cnt" ()) ")" (;) ";" (if_statement) "if (ACPI_FAILURE(status))\n trip_cnt = 0;" (if) "if" (parenthesized_expression) "(ACPI_FAILURE(status))" (() "(" (call_expression) "ACPI_FAILURE(status)" (identifier) "ACPI_FAILURE" (argument_list) "(status)" (() "(" (identifier) "status" ()) ")" ()) ")" (expression_statement) "trip_cnt = 0;" (assignment_expression) "trip_cnt = 0" (identifier) "trip_cnt" (=) "=" (number_literal) "0" (;) ";" (if_statement) "if (trip_cnt) {\n /* We have to cache, thresholds can't be readback */\n obj->thresholds = devm_kzalloc(&device->dev,\n sizeof(*obj->thresholds) * trip_cnt,\n GFP_KERNEL);\n if (!obj->thresholds)\n return -ENOMEM;\n trip_mask = BIT(trip_cnt) - 1;\n }" (if) "if" (parenthesized_expression) "(trip_cnt)" (() "(" (identifier) "trip_cnt" ()) ")" (compound_statement) "{\n /* We have to cache, thresholds can't be readback */\n obj->thresholds = devm_kzalloc(&device->dev,\n sizeof(*obj->thresholds) * trip_cnt,\n GFP_KERNEL);\n if (!obj->thresholds)\n return -ENOMEM;\n trip_mask = BIT(trip_cnt) - 1;\n }" ({) "{" (comment) "/* We have to cache, thresholds can't be readback */" (expression_statement) "obj->thresholds = devm_kzalloc(&device->dev,\n sizeof(*obj->thresholds) * trip_cnt,\n GFP_KERNEL);" (assignment_expression) "obj->thresholds = devm_kzalloc(&device->dev,\n sizeof(*obj->thresholds) * trip_cnt,\n GFP_KERNEL)" (field_expression) "obj->thresholds" (identifier) "obj" (->) "->" (field_identifier) "thresholds" (=) "=" (call_expression) "devm_kzalloc(&device->dev,\n sizeof(*obj->thresholds) * trip_cnt,\n GFP_KERNEL)" (identifier) "devm_kzalloc" (argument_list) "(&device->dev,\n sizeof(*obj->thresholds) * trip_cnt,\n GFP_KERNEL)" (() "(" (pointer_expression) "&device->dev" (&) "&" (field_expression) "device->dev" (identifier) "device" (->) "->" (field_identifier) "dev" (,) "," (binary_expression) "sizeof(*obj->thresholds) * trip_cnt" (sizeof_expression) "sizeof(*obj->thresholds)" (sizeof) "sizeof" (parenthesized_expression) "(*obj->thresholds)" (() "(" (pointer_expression) "*obj->thresholds" (*) "*" (field_expression) "obj->thresholds" (identifier) "obj" (->) "->" (field_identifier) "thresholds" ()) ")" (*) "*" (identifier) "trip_cnt" (,) "," (identifier) "GFP_KERNEL" ()) ")" (;) ";" (if_statement) "if (!obj->thresholds)\n return -ENOMEM;" (if) "if" (parenthesized_expression) "(!obj->thresholds)" (() "(" (unary_expression) "!obj->thresholds" (!) "!" (field_expression) "obj->thresholds" (identifier) "obj" (->) "->" (field_identifier) "thresholds" ()) ")" (return_statement) "return -ENOMEM;" (return) "return" (unary_expression) "-ENOMEM" (-) "-" (identifier) "ENOMEM" (;) ";" (expression_statement) "trip_mask = BIT(trip_cnt) - 1;" (assignment_expression) "trip_mask = BIT(trip_cnt) - 1" (identifier) "trip_mask" (=) "=" (binary_expression) "BIT(trip_cnt) - 1" (call_expression) "BIT(trip_cnt)" (identifier) "BIT" (argument_list) "(trip_cnt)" (() "(" (identifier) "trip_cnt" ()) ")" (-) "-" (number_literal) "1" (;) ";" (}) "}" (expression_statement) "obj->tzone = thermal_zone_device_register(acpi_device_bid(device),\n trip_cnt, trip_mask, device, &tzone_ops,\n NULL, 0, 0);" (assignment_expression) "obj->tzone = thermal_zone_device_register(acpi_device_bid(device),\n trip_cnt, trip_mask, device, &tzone_ops,\n NULL, 0, 0)" (field_expression) "obj->tzone" (identifier) "obj" (->) "->" (field_identifier) "tzone" (=) "=" (call_expression) "thermal_zone_device_register(acpi_device_bid(device),\n trip_cnt, trip_mask, device, &tzone_ops,\n NULL, 0, 0)" (identifier) "thermal_zone_device_register" (argument_list) "(acpi_device_bid(device),\n trip_cnt, trip_mask, device, &tzone_ops,\n NULL, 0, 0)" (() "(" (call_expression) "acpi_device_bid(device)" (identifier) "acpi_device_bid" (argument_list) "(device)" (() "(" (identifier) "device" ()) ")" (,) "," (identifier) "trip_cnt" (,) "," (identifier) "trip_mask" (,) "," (identifier) "device" (,) "," (pointer_expression) "&tzone_ops" (&) "&" (identifier) "tzone_ops" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (number_literal) "0" (,) "," (number_literal) "0" ()) ")" (;) ";" (if_statement) "if (IS_ERR(obj->tzone)) {\n result = PTR_ERR(obj->tzone);\n return result;\n }" (if) "if" (parenthesized_expression) "(IS_ERR(obj->tzone))" (() "(" (call_expression) "IS_ERR(obj->tzone)" (identifier) "IS_ERR" (argument_list) "(obj->tzone)" (() "(" (field_expression) "obj->tzone" (identifier) "obj" (->) "->" (field_identifier) "tzone" ()) ")" ()) ")" (compound_statement) "{\n result = PTR_ERR(obj->tzone);\n return result;\n }" ({) "{" (expression_statement) "result = PTR_ERR(obj->tzone);" (assignment_expression) "result = PTR_ERR(obj->tzone)" (identifier) "result" (=) "=" (call_expression) "PTR_ERR(obj->tzone)" (identifier) "PTR_ERR" (argument_list) "(obj->tzone)" (() "(" (field_expression) "obj->tzone" (identifier) "obj" (->) "->" (field_identifier) "tzone" ()) ")" (;) ";" (return_statement) "return result;" (return) "return" (identifier) "result" (;) ";" (}) "}" (expression_statement) "strcpy(acpi_device_name(device), "INT3403");" (call_expression) "strcpy(acpi_device_name(device), "INT3403")" (identifier) "strcpy" (argument_list) "(acpi_device_name(device), "INT3403")" (() "(" (call_expression) "acpi_device_name(device)" (identifier) "acpi_device_name" (argument_list) "(device)" (() "(" (identifier) "device" ()) ")" (,) "," (string_literal) ""INT3403"" (") """ (string_content) "INT3403" (") """ ()) ")" (;) ";" (expression_statement) "strcpy(acpi_device_class(device), ACPI_INT3403_CLASS);" (call_expression) "strcpy(acpi_device_class(device), ACPI_INT3403_CLASS)" (identifier) "strcpy" (argument_list) "(acpi_device_class(device), ACPI_INT3403_CLASS)" (() "(" (call_expression) "acpi_device_class(device)" (identifier) "acpi_device_class" (argument_list) "(device)" (() "(" (identifier) "device" ()) ")" (,) "," (identifier) "ACPI_INT3403_CLASS" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "static int acpi_int3403_remove(struct acpi_device *device)\n{\n struct int3403_sensor *obj;\n\n obj = acpi_driver_data(device);\n thermal_zone_device_unregister(obj->tzone);\n\n return 0;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "acpi_int3403_remove(struct acpi_device *device)" (identifier) "acpi_int3403_remove" (parameter_list) "(struct acpi_device *device)" (() "(" (parameter_declaration) "struct acpi_device *device" (struct_specifier) "struct acpi_device" (struct) "struct" (type_identifier) "acpi_device" (pointer_declarator) "*device" (*) "*" (identifier) "device" ()) ")" (compound_statement) "{\n struct int3403_sensor *obj;\n\n obj = acpi_driver_data(device);\n thermal_zone_device_unregister(obj->tzone);\n\n return 0;\n}" ({) "{" (declaration) "struct int3403_sensor *obj;" (struct_specifier) "struct int3403_sensor" (struct) "struct" (type_identifier) "int3403_sensor" (pointer_declarator) "*obj" (*) "*" (identifier) "obj" (;) ";" (expression_statement) "obj = acpi_driver_data(device);" (assignment_expression) "obj = acpi_driver_data(device)" (identifier) "obj" (=) "=" (call_expression) "acpi_driver_data(device)" (identifier) "acpi_driver_data" (argument_list) "(device)" (() "(" (identifier) "device" ()) ")" (;) ";" (expression_statement) "thermal_zone_device_unregister(obj->tzone);" (call_expression) "thermal_zone_device_unregister(obj->tzone)" (identifier) "thermal_zone_device_unregister" (argument_list) "(obj->tzone)" (() "(" (field_expression) "obj->tzone" (identifier) "obj" (->) "->" (field_identifier) "tzone" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (expression_statement) "ACPI_MODULE_NAME("int3403");" (call_expression) "ACPI_MODULE_NAME("int3403")" (identifier) "ACPI_MODULE_NAME" (argument_list) "("int3403")" (() "(" (string_literal) ""int3403"" (") """ (string_content) "int3403" (") """ ()) ")" (;) ";" (declaration) "static const struct acpi_device_id int3403_device_ids[] = {\n {"INT3403", 0},\n {"", 0},\n};" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (struct_specifier) "struct acpi_device_id" (struct) "struct" (type_identifier) "acpi_device_id" (init_declarator) "int3403_device_ids[] = {\n {"INT3403", 0},\n {"", 0},\n}" (array_declarator) "int3403_device_ids[]" (identifier) "int3403_device_ids" ([) "[" (]) "]" (=) "=" (initializer_list) "{\n {"INT3403", 0},\n {"", 0},\n}" ({) "{" (initializer_list) "{"INT3403", 0}" ({) "{" (string_literal) ""INT3403"" (") """ (string_content) "INT3403" (") """ (,) "," (number_literal) "0" (}) "}" (,) "," (initializer_list) "{"", 0}" ({) "{" (string_literal) """" (") """ (") """ (,) "," (number_literal) "0" (}) "}" (,) "," (}) "}" (;) ";" (expression_statement) "MODULE_DEVICE_TABLE(acpi, int3403_device_ids);" (call_expression) "MODULE_DEVICE_TABLE(acpi, int3403_device_ids)" (identifier) "MODULE_DEVICE_TABLE" (argument_list) "(acpi, int3403_device_ids)" (() "(" (identifier) "acpi" (,) "," (identifier) "int3403_device_ids" ()) ")" (;) ";" (declaration) "static struct acpi_driver acpi_int3403_driver = {\n .name = "INT3403",\n .class = ACPI_INT3403_CLASS,\n .ids = int3403_device_ids,\n .ops = {\n .add = acpi_int3403_add,\n .remove = acpi_int3403_remove,\n .notify = acpi_thermal_notify,\n },\n};" (storage_class_specifier) "static" (static) "static" (struct_specifier) "struct acpi_driver" (struct) "struct" (type_identifier) "acpi_driver" (init_declarator) "acpi_int3403_driver = {\n .name = "INT3403",\n .class = ACPI_INT3403_CLASS,\n .ids = int3403_device_ids,\n .ops = {\n .add = acpi_int3403_add,\n .remove = acpi_int3403_remove,\n .notify = acpi_thermal_notify,\n },\n}" (identifier) "acpi_int3403_driver" (=) "=" (initializer_list) "{\n .name = "INT3403",\n .class = ACPI_INT3403_CLASS,\n .ids = int3403_device_ids,\n .ops = {\n .add = acpi_int3403_add,\n .remove = acpi_int3403_remove,\n .notify = acpi_thermal_notify,\n },\n}" ({) "{" (initializer_pair) ".name = "INT3403"" (field_designator) ".name" (.) "." (field_identifier) "name" (=) "=" (string_literal) ""INT3403"" (") """ (string_content) "INT3403" (") """ (,) "," (initializer_pair) ".class = ACPI_INT3403_CLASS" (field_designator) ".class" (.) "." (field_identifier) "class" (=) "=" (identifier) "ACPI_INT3403_CLASS" (,) "," (initializer_pair) ".ids = int3403_device_ids" (field_designator) ".ids" (.) "." (field_identifier) "ids" (=) "=" (identifier) "int3403_device_ids" (,) "," (initializer_pair) ".ops = {\n .add = acpi_int3403_add,\n .remove = acpi_int3403_remove,\n .notify = acpi_thermal_notify,\n }" (field_designator) ".ops" (.) "." (field_identifier) "ops" (=) "=" (initializer_list) "{\n .add = acpi_int3403_add,\n .remove = acpi_int3403_remove,\n .notify = acpi_thermal_notify,\n }" ({) "{" (initializer_pair) ".add = acpi_int3403_add" (field_designator) ".add" (.) "." (field_identifier) "add" (=) "=" (identifier) "acpi_int3403_add" (,) "," (initializer_pair) ".remove = acpi_int3403_remove" (field_designator) ".remove" (.) "." (field_identifier) "remove" (=) "=" (identifier) "acpi_int3403_remove" (,) "," (initializer_pair) ".notify = acpi_thermal_notify" (field_designator) ".notify" (.) "." (field_identifier) "notify" (=) "=" (identifier) "acpi_thermal_notify" (,) "," (}) "}" (,) "," (}) "}" (;) ";" (expression_statement) "module_acpi_driver(acpi_int3403_driver);" (call_expression) "module_acpi_driver(acpi_int3403_driver)" (identifier) "module_acpi_driver" (argument_list) "(acpi_int3403_driver)" (() "(" (identifier) "acpi_int3403_driver" ()) ")" (;) ";" (expression_statement) "MODULE_AUTHOR("<NAME> <<EMAIL>>");" (call_expression) "MODULE_AUTHOR("<NAME> <<EMAIL>>")" (identifier) "MODULE_AUTHOR" (argument_list) "("<NAME> <<EMAIL>>")" (() "(" (string_literal) ""<NAME> <<EMAIL>>"" (") """ (string_content) "<NAME> <<EMAIL>>" (") """ ()) ")" (;) ";" (expression_statement) "MODULE_LICENSE("GPL v2");" (call_expression) "MODULE_LICENSE("GPL v2")" (identifier) "MODULE_LICENSE" (argument_list) "("GPL v2")" (() "(" (string_literal) ""GPL v2"" (") """ (string_content) "GPL v2" (") """ ()) ")" (;) ";" (expression_statement) "MODULE_DESCRIPTION("ACPI INT3403 thermal driver");" (call_expression) "MODULE_DESCRIPTION("ACPI INT3403 thermal driver")" (identifier) "MODULE_DESCRIPTION" (argument_list) "("ACPI INT3403 thermal driver")" (() "(" (string_literal) ""ACPI INT3403 thermal driver"" (") """ (string_content) "ACPI INT3403 thermal driver" (") """ ()) ")" (;) ";"
1,454
0
{"language": "c", "success": true, "metadata": {"lines": 200, "avg_line_length": 28.65, "nodes": 920, "errors": 0, "source_hash": "6c1b597d1c37baa14a53e758b8cd17d5ad344296b6858504950756021a65ad59", "categorized_nodes": 643}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <linux/kernel.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<linux/kernel.h>", "parent": 0, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 25}}, {"id": 3, "type": "preproc_include", "text": "#include <linux/module.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<linux/module.h>", "parent": 3, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 25}}, {"id": 6, "type": "preproc_include", "text": "#include <linux/init.h>\n", "parent": null, "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/init.h>", "parent": 6, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 23}}, {"id": 9, "type": "preproc_include", "text": "#include <linux/types.h>\n", "parent": null, "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/types.h>", "parent": 9, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 24}}, {"id": 12, "type": "preproc_include", "text": "#include <linux/acpi.h>\n", "parent": null, "children": [13, 14], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<linux/acpi.h>", "parent": 12, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 23}}, {"id": 15, "type": "preproc_include", "text": "#include <linux/thermal.h>\n", "parent": null, "children": [16, 17], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<linux/thermal.h>", "parent": 15, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 26}}, {"id": 18, "type": "preproc_def", "text": "#define INT3403_TYPE_SENSOR\t\t0x03\n", "parent": null, "children": [19, 20, 21], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 19, "type": "#define", "text": "#define", "parent": 18, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 7}}, {"id": 20, "type": "identifier", "text": "INT3403_TYPE_SENSOR", "parent": 18, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 27}}, {"id": 21, "type": "preproc_arg", "text": "0x03", "parent": 18, "children": [], "start_point": {"row": 21, "column": 29}, "end_point": {"row": 21, "column": 33}}, {"id": 22, "type": "preproc_def", "text": "#define INT3403_PERF_CHANGED_EVENT\t0x80\n", "parent": null, "children": [23, 24, 25], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 23, "type": "#define", "text": "#define", "parent": 22, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 7}}, {"id": 24, "type": "identifier", "text": "INT3403_PERF_CHANGED_EVENT", "parent": 22, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 34}}, {"id": 25, "type": "preproc_arg", "text": "0x80", "parent": 22, "children": [], "start_point": {"row": 22, "column": 35}, "end_point": {"row": 22, "column": 39}}, {"id": 26, "type": "preproc_def", "text": "#define INT3403_THERMAL_EVENT\t\t0x90\n", "parent": null, "children": [27, 28, 29], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 27, "type": "#define", "text": "#define", "parent": 26, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 7}}, {"id": 28, "type": "identifier", "text": "INT3403_THERMAL_EVENT", "parent": 26, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 29}}, {"id": 29, "type": "preproc_arg", "text": "0x90", "parent": 26, "children": [], "start_point": {"row": 23, "column": 31}, "end_point": {"row": 23, "column": 35}}, {"id": 30, "type": "preproc_function_def", "text": "#define DECI_KELVIN_TO_MILLI_CELSIUS(t, off) (((t) - (off)) * 100)\n", "parent": null, "children": [31, 32, 33, 36], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 31, "type": "#define", "text": "#define", "parent": 30, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 7}}, {"id": 32, "type": "identifier", "text": "DECI_KELVIN_TO_MILLI_CELSIUS", "parent": 30, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 36}}, {"id": 33, "type": "preproc_params", "text": "(t, off)", "parent": 30, "children": [34, 35], "start_point": {"row": 25, "column": 36}, "end_point": {"row": 25, "column": 44}}, {"id": 34, "type": "identifier", "text": "t", "parent": 33, "children": [], "start_point": {"row": 25, "column": 37}, "end_point": {"row": 25, "column": 38}}, {"id": 35, "type": "identifier", "text": "off", "parent": 33, "children": [], "start_point": {"row": 25, "column": 40}, "end_point": {"row": 25, "column": 43}}, {"id": 36, "type": "preproc_arg", "text": "(((t) - (off)) * 100)", "parent": 30, "children": [], "start_point": {"row": 25, "column": 45}, "end_point": {"row": 25, "column": 66}}, {"id": 37, "type": "preproc_def", "text": "#define KELVIN_OFFSET\t2732\n", "parent": null, "children": [38, 39, 40], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 38, "type": "#define", "text": "#define", "parent": 37, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 7}}, {"id": 39, "type": "identifier", "text": "KELVIN_OFFSET", "parent": 37, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 21}}, {"id": 40, "type": "preproc_arg", "text": "2732", "parent": 37, "children": [], "start_point": {"row": 26, "column": 22}, "end_point": {"row": 26, "column": 26}}, {"id": 41, "type": "preproc_function_def", "text": "#define MILLI_CELSIUS_TO_DECI_KELVIN(t, off) (((t) / 100) + (off))\n", "parent": null, "children": [42, 43, 44, 47], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 42, "type": "#define", "text": "#define", "parent": 41, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 7}}, {"id": 43, "type": "identifier", "text": "MILLI_CELSIUS_TO_DECI_KELVIN", "parent": 41, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 36}}, {"id": 44, "type": "preproc_params", "text": "(t, off)", "parent": 41, "children": [45, 46], "start_point": {"row": 27, "column": 36}, "end_point": {"row": 27, "column": 44}}, {"id": 45, "type": "identifier", "text": "t", "parent": 44, "children": [], "start_point": {"row": 27, "column": 37}, "end_point": {"row": 27, "column": 38}}, {"id": 46, "type": "identifier", "text": "off", "parent": 44, "children": [], "start_point": {"row": 27, "column": 40}, "end_point": {"row": 27, "column": 43}}, {"id": 47, "type": "preproc_arg", "text": "(((t) / 100) + (off))", "parent": 41, "children": [], "start_point": {"row": 27, "column": 45}, "end_point": {"row": 27, "column": 66}}, {"id": 48, "type": "preproc_def", "text": "#define ACPI_INT3403_CLASS\t\t\"int3403\"\n", "parent": null, "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": "ACPI_INT3403_CLASS", "parent": 48, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 26}}, {"id": 51, "type": "preproc_arg", "text": "\"int3403\"", "parent": 48, "children": [], "start_point": {"row": 29, "column": 28}, "end_point": {"row": 29, "column": 37}}, {"id": 52, "type": "preproc_def", "text": "#define ACPI_INT3403_FILE_STATE\t\t\"state\"\n", "parent": null, "children": [53, 54, 55], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 31, "column": 0}}, {"id": 53, "type": "#define", "text": "#define", "parent": 52, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 7}}, {"id": 54, "type": "identifier", "text": "ACPI_INT3403_FILE_STATE", "parent": 52, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 31}}, {"id": 55, "type": "preproc_arg", "text": "\"state\"", "parent": 52, "children": [], "start_point": {"row": 30, "column": 33}, "end_point": {"row": 30, "column": 40}}, {"id": 56, "type": "struct_specifier", "text": "struct int3403_sensor {\n\tstruct thermal_zone_device *tzone;\n\tunsigned long *thresholds;\n}", "parent": null, "children": [57, 58], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 35, "column": 1}}, {"id": 57, "type": "struct", "text": "struct", "parent": 56, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 6}}, {"id": 58, "type": "type_identifier", "text": "int3403_sensor", "parent": 56, "children": [], "start_point": {"row": 32, "column": 7}, "end_point": {"row": 32, "column": 21}}, {"id": 59, "type": "field_declaration", "text": "struct thermal_zone_device *tzone;", "parent": 56, "children": [60, 63], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 35}}, {"id": 60, "type": "struct_specifier", "text": "struct thermal_zone_device", "parent": 59, "children": [61, 62], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 27}}, {"id": 61, "type": "struct", "text": "struct", "parent": 60, "children": [], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 7}}, {"id": 62, "type": "type_identifier", "text": "thermal_zone_device", "parent": 60, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 27}}, {"id": 63, "type": "pointer_declarator", "text": "*tzone", "parent": 59, "children": [64, 65], "start_point": {"row": 33, "column": 28}, "end_point": {"row": 33, "column": 34}}, {"id": 64, "type": "*", "text": "*", "parent": 63, "children": [], "start_point": {"row": 33, "column": 28}, "end_point": {"row": 33, "column": 29}}, {"id": 65, "type": "field_identifier", "text": "tzone", "parent": 63, "children": [], "start_point": {"row": 33, "column": 29}, "end_point": {"row": 33, "column": 34}}, {"id": 66, "type": "field_declaration", "text": "unsigned long *thresholds;", "parent": 56, "children": [67, 70], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 27}}, {"id": 67, "type": "sized_type_specifier", "text": "unsigned long", "parent": 66, "children": [68, 69], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 14}}, {"id": 68, "type": "unsigned", "text": "unsigned", "parent": 67, "children": [], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 9}}, {"id": 69, "type": "long", "text": "long", "parent": 67, "children": [], "start_point": {"row": 34, "column": 10}, "end_point": {"row": 34, "column": 14}}, {"id": 70, "type": "pointer_declarator", "text": "*thresholds", "parent": 66, "children": [71, 72], "start_point": {"row": 34, "column": 15}, "end_point": {"row": 34, "column": 26}}, {"id": 71, "type": "*", "text": "*", "parent": 70, "children": [], "start_point": {"row": 34, "column": 15}, "end_point": {"row": 34, "column": 16}}, {"id": 72, "type": "field_identifier", "text": "thresholds", "parent": 70, "children": [], "start_point": {"row": 34, "column": 16}, "end_point": {"row": 34, "column": 26}}, {"id": 73, "type": "function_definition", "text": "static int sys_get_curr_temp(struct thermal_zone_device *tzone,\n\t\t\t\tunsigned long *temp)\n{\n\tstruct acpi_device *device = tzone->devdata;\n\tunsigned long long tmp;\n\tacpi_status status;\n\n\tstatus = acpi_evaluate_integer(device->handle, \"_TMP\", NULL, &tmp);\n\tif (ACPI_FAILURE(status))\n\t\treturn -EIO;\n\n\t*temp = DECI_KELVIN_TO_MILLI_CELSIUS(tmp, KELVIN_OFFSET);\n\n\treturn 0;\n}", "parent": null, "children": [74, 75], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 51, "column": 1}}, {"id": 74, "type": "primitive_type", "text": "int", "parent": 73, "children": [], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 10}}, {"id": 75, "type": "function_declarator", "text": "sys_get_curr_temp(struct thermal_zone_device *tzone,\n\t\t\t\tunsigned long *temp)", "parent": 73, "children": [76, 77], "start_point": {"row": 37, "column": 11}, "end_point": {"row": 38, "column": 24}}, {"id": 76, "type": "identifier", "text": "sys_get_curr_temp", "parent": 75, "children": [], "start_point": {"row": 37, "column": 11}, "end_point": {"row": 37, "column": 28}}, {"id": 77, "type": "parameter_list", "text": "(struct thermal_zone_device *tzone,\n\t\t\t\tunsigned long *temp)", "parent": 75, "children": [78, 85], "start_point": {"row": 37, "column": 28}, "end_point": {"row": 38, "column": 24}}, {"id": 78, "type": "parameter_declaration", "text": "struct thermal_zone_device *tzone", "parent": 77, "children": [79, 82], "start_point": {"row": 37, "column": 29}, "end_point": {"row": 37, "column": 62}}, {"id": 79, "type": "struct_specifier", "text": "struct thermal_zone_device", "parent": 78, "children": [80, 81], "start_point": {"row": 37, "column": 29}, "end_point": {"row": 37, "column": 55}}, {"id": 80, "type": "struct", "text": "struct", "parent": 79, "children": [], "start_point": {"row": 37, "column": 29}, "end_point": {"row": 37, "column": 35}}, {"id": 81, "type": "type_identifier", "text": "thermal_zone_device", "parent": 79, "children": [], "start_point": {"row": 37, "column": 36}, "end_point": {"row": 37, "column": 55}}, {"id": 82, "type": "pointer_declarator", "text": "*tzone", "parent": 78, "children": [83, 84], "start_point": {"row": 37, "column": 56}, "end_point": {"row": 37, "column": 62}}, {"id": 83, "type": "*", "text": "*", "parent": 82, "children": [], "start_point": {"row": 37, "column": 56}, "end_point": {"row": 37, "column": 57}}, {"id": 84, "type": "identifier", "text": "tzone", "parent": 82, "children": [], "start_point": {"row": 37, "column": 57}, "end_point": {"row": 37, "column": 62}}, {"id": 85, "type": "parameter_declaration", "text": "unsigned long *temp", "parent": 77, "children": [86, 89], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 23}}, {"id": 86, "type": "sized_type_specifier", "text": "unsigned long", "parent": 85, "children": [87, 88], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 17}}, {"id": 87, "type": "unsigned", "text": "unsigned", "parent": 86, "children": [], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 12}}, {"id": 88, "type": "long", "text": "long", "parent": 86, "children": [], "start_point": {"row": 38, "column": 13}, "end_point": {"row": 38, "column": 17}}, {"id": 89, "type": "pointer_declarator", "text": "*temp", "parent": 85, "children": [90, 91], "start_point": {"row": 38, "column": 18}, "end_point": {"row": 38, "column": 23}}, {"id": 90, "type": "*", "text": "*", "parent": 89, "children": [], "start_point": {"row": 38, "column": 18}, "end_point": {"row": 38, "column": 19}}, {"id": 91, "type": "identifier", "text": "temp", "parent": 89, "children": [], "start_point": {"row": 38, "column": 19}, "end_point": {"row": 38, "column": 23}}, {"id": 92, "type": "declaration", "text": "struct acpi_device *device = tzone->devdata;", "parent": 73, "children": [93, 96], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 45}}, {"id": 93, "type": "struct_specifier", "text": "struct acpi_device", "parent": 92, "children": [94, 95], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 19}}, {"id": 94, "type": "struct", "text": "struct", "parent": 93, "children": [], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 7}}, {"id": 95, "type": "type_identifier", "text": "acpi_device", "parent": 93, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 19}}, {"id": 96, "type": "init_declarator", "text": "*device = tzone->devdata", "parent": 92, "children": [97, 100, 101], "start_point": {"row": 40, "column": 20}, "end_point": {"row": 40, "column": 44}}, {"id": 97, "type": "pointer_declarator", "text": "*device", "parent": 96, "children": [98, 99], "start_point": {"row": 40, "column": 20}, "end_point": {"row": 40, "column": 27}}, {"id": 98, "type": "*", "text": "*", "parent": 97, "children": [], "start_point": {"row": 40, "column": 20}, "end_point": {"row": 40, "column": 21}}, {"id": 99, "type": "identifier", "text": "device", "parent": 97, "children": [], "start_point": {"row": 40, "column": 21}, "end_point": {"row": 40, "column": 27}}, {"id": 100, "type": "=", "text": "=", "parent": 96, "children": [], "start_point": {"row": 40, "column": 28}, "end_point": {"row": 40, "column": 29}}, {"id": 101, "type": "field_expression", "text": "tzone->devdata", "parent": 96, "children": [102, 103], "start_point": {"row": 40, "column": 30}, "end_point": {"row": 40, "column": 44}}, {"id": 102, "type": "identifier", "text": "tzone", "parent": 101, "children": [], "start_point": {"row": 40, "column": 30}, "end_point": {"row": 40, "column": 35}}, {"id": 103, "type": "field_identifier", "text": "devdata", "parent": 101, "children": [], "start_point": {"row": 40, "column": 37}, "end_point": {"row": 40, "column": 44}}, {"id": 104, "type": "declaration", "text": "unsigned long long tmp;", "parent": 73, "children": [105, 109], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 24}}, {"id": 105, "type": "sized_type_specifier", "text": "unsigned long long", "parent": 104, "children": [106, 107, 108], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 19}}, {"id": 106, "type": "unsigned", "text": "unsigned", "parent": 105, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 9}}, {"id": 107, "type": "long", "text": "long", "parent": 105, "children": [], "start_point": {"row": 41, "column": 10}, "end_point": {"row": 41, "column": 14}}, {"id": 108, "type": "long", "text": "long", "parent": 105, "children": [], "start_point": {"row": 41, "column": 15}, "end_point": {"row": 41, "column": 19}}, {"id": 109, "type": "identifier", "text": "tmp", "parent": 104, "children": [], "start_point": {"row": 41, "column": 20}, "end_point": {"row": 41, "column": 23}}, {"id": 110, "type": "declaration", "text": "acpi_status status;", "parent": 73, "children": [111, 112], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 20}}, {"id": 111, "type": "type_identifier", "text": "acpi_status", "parent": 110, "children": [], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 12}}, {"id": 112, "type": "identifier", "text": "status", "parent": 110, "children": [], "start_point": {"row": 42, "column": 13}, "end_point": {"row": 42, "column": 19}}, {"id": 113, "type": "assignment_expression", "text": "status = acpi_evaluate_integer(device->handle, \"_TMP\", NULL, &tmp)", "parent": 73, "children": [114, 115, 116], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 67}}, {"id": 114, "type": "identifier", "text": "status", "parent": 113, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 7}}, {"id": 115, "type": "=", "text": "=", "parent": 113, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 9}}, {"id": 116, "type": "call_expression", "text": "acpi_evaluate_integer(device->handle, \"_TMP\", NULL, &tmp)", "parent": 113, "children": [117, 118], "start_point": {"row": 44, "column": 10}, "end_point": {"row": 44, "column": 67}}, {"id": 117, "type": "identifier", "text": "acpi_evaluate_integer", "parent": 116, "children": [], "start_point": {"row": 44, "column": 10}, "end_point": {"row": 44, "column": 31}}, {"id": 118, "type": "argument_list", "text": "(device->handle, \"_TMP\", NULL, &tmp)", "parent": 116, "children": [119, 122, 123, 125], "start_point": {"row": 44, "column": 31}, "end_point": {"row": 44, "column": 67}}, {"id": 119, "type": "field_expression", "text": "device->handle", "parent": 118, "children": [120, 121], "start_point": {"row": 44, "column": 32}, "end_point": {"row": 44, "column": 46}}, {"id": 120, "type": "identifier", "text": "device", "parent": 119, "children": [], "start_point": {"row": 44, "column": 32}, "end_point": {"row": 44, "column": 38}}, {"id": 121, "type": "field_identifier", "text": "handle", "parent": 119, "children": [], "start_point": {"row": 44, "column": 40}, "end_point": {"row": 44, "column": 46}}, {"id": 122, "type": "string_literal", "text": "\"_TMP\"", "parent": 118, "children": [], "start_point": {"row": 44, "column": 48}, "end_point": {"row": 44, "column": 54}}, {"id": 123, "type": "null", "text": "NULL", "parent": 118, "children": [124], "start_point": {"row": 44, "column": 56}, "end_point": {"row": 44, "column": 60}}, {"id": 124, "type": "NULL", "text": "NULL", "parent": 123, "children": [], "start_point": {"row": 44, "column": 56}, "end_point": {"row": 44, "column": 60}}, {"id": 125, "type": "pointer_expression", "text": "&tmp", "parent": 118, "children": [126], "start_point": {"row": 44, "column": 62}, "end_point": {"row": 44, "column": 66}}, {"id": 126, "type": "identifier", "text": "tmp", "parent": 125, "children": [], "start_point": {"row": 44, "column": 63}, "end_point": {"row": 44, "column": 66}}, {"id": 127, "type": "if_statement", "text": "if (ACPI_FAILURE(status))\n\t\treturn -EIO;", "parent": 73, "children": [128, 133], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 46, "column": 14}}, {"id": 128, "type": "parenthesized_expression", "text": "(ACPI_FAILURE(status))", "parent": 127, "children": [129], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 26}}, {"id": 129, "type": "call_expression", "text": "ACPI_FAILURE(status)", "parent": 128, "children": [130, 131], "start_point": {"row": 45, "column": 5}, "end_point": {"row": 45, "column": 25}}, {"id": 130, "type": "identifier", "text": "ACPI_FAILURE", "parent": 129, "children": [], "start_point": {"row": 45, "column": 5}, "end_point": {"row": 45, "column": 17}}, {"id": 131, "type": "argument_list", "text": "(status)", "parent": 129, "children": [132], "start_point": {"row": 45, "column": 17}, "end_point": {"row": 45, "column": 25}}, {"id": 132, "type": "identifier", "text": "status", "parent": 131, "children": [], "start_point": {"row": 45, "column": 18}, "end_point": {"row": 45, "column": 24}}, {"id": 133, "type": "return_statement", "text": "return -EIO;", "parent": 127, "children": [134], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 14}}, {"id": 134, "type": "unary_expression", "text": "-EIO", "parent": 133, "children": [135, 136], "start_point": {"row": 46, "column": 9}, "end_point": {"row": 46, "column": 13}}, {"id": 135, "type": "-", "text": "-", "parent": 134, "children": [], "start_point": {"row": 46, "column": 9}, "end_point": {"row": 46, "column": 10}}, {"id": 136, "type": "identifier", "text": "EIO", "parent": 134, "children": [], "start_point": {"row": 46, "column": 10}, "end_point": {"row": 46, "column": 13}}, {"id": 137, "type": "assignment_expression", "text": "*temp = DECI_KELVIN_TO_MILLI_CELSIUS(tmp, KELVIN_OFFSET)", "parent": 73, "children": [138, 141, 142], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 57}}, {"id": 138, "type": "pointer_expression", "text": "*temp", "parent": 137, "children": [139, 140], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 6}}, {"id": 139, "type": "*", "text": "*", "parent": 138, "children": [], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 2}}, {"id": 140, "type": "identifier", "text": "temp", "parent": 138, "children": [], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 6}}, {"id": 141, "type": "=", "text": "=", "parent": 137, "children": [], "start_point": {"row": 48, "column": 7}, "end_point": {"row": 48, "column": 8}}, {"id": 142, "type": "call_expression", "text": "DECI_KELVIN_TO_MILLI_CELSIUS(tmp, KELVIN_OFFSET)", "parent": 137, "children": [143, 144], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 57}}, {"id": 143, "type": "identifier", "text": "DECI_KELVIN_TO_MILLI_CELSIUS", "parent": 142, "children": [], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 37}}, {"id": 144, "type": "argument_list", "text": "(tmp, KELVIN_OFFSET)", "parent": 142, "children": [145, 146], "start_point": {"row": 48, "column": 37}, "end_point": {"row": 48, "column": 57}}, {"id": 145, "type": "identifier", "text": "tmp", "parent": 144, "children": [], "start_point": {"row": 48, "column": 38}, "end_point": {"row": 48, "column": 41}}, {"id": 146, "type": "identifier", "text": "KELVIN_OFFSET", "parent": 144, "children": [], "start_point": {"row": 48, "column": 43}, "end_point": {"row": 48, "column": 56}}, {"id": 147, "type": "return_statement", "text": "return 0;", "parent": 73, "children": [148], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 10}}, {"id": 148, "type": "number_literal", "text": "0", "parent": 147, "children": [], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 9}}, {"id": 149, "type": "function_definition", "text": "static int sys_get_trip_hyst(struct thermal_zone_device *tzone,\n\t\tint trip, unsigned long *temp)\n{\n\tstruct acpi_device *device = tzone->devdata;\n\tunsigned long long hyst;\n\tacpi_status status;\n\n\tstatus = acpi_evaluate_integer(device->handle, \"GTSH\", NULL, &hyst);\n\tif (ACPI_FAILURE(status))\n\t\treturn -EIO;\n\n\t/*\n\t * Thermal hysteresis represents a temperature difference.\n\t * Kelvin and Celsius have same degree size. So the\n\t * conversion here between tenths of degree Kelvin unit\n\t * and Milli-Celsius unit is just to multiply 100.\n\t */\n\t*temp = hyst * 100;\n\n\treturn 0;\n}", "parent": null, "children": [150, 151], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 73, "column": 1}}, {"id": 150, "type": "primitive_type", "text": "int", "parent": 149, "children": [], "start_point": {"row": 53, "column": 7}, "end_point": {"row": 53, "column": 10}}, {"id": 151, "type": "function_declarator", "text": "sys_get_trip_hyst(struct thermal_zone_device *tzone,\n\t\tint trip, unsigned long *temp)", "parent": 149, "children": [152, 153], "start_point": {"row": 53, "column": 11}, "end_point": {"row": 54, "column": 32}}, {"id": 152, "type": "identifier", "text": "sys_get_trip_hyst", "parent": 151, "children": [], "start_point": {"row": 53, "column": 11}, "end_point": {"row": 53, "column": 28}}, {"id": 153, "type": "parameter_list", "text": "(struct thermal_zone_device *tzone,\n\t\tint trip, unsigned long *temp)", "parent": 151, "children": [154, 161, 164], "start_point": {"row": 53, "column": 28}, "end_point": {"row": 54, "column": 32}}, {"id": 154, "type": "parameter_declaration", "text": "struct thermal_zone_device *tzone", "parent": 153, "children": [155, 158], "start_point": {"row": 53, "column": 29}, "end_point": {"row": 53, "column": 62}}, {"id": 155, "type": "struct_specifier", "text": "struct thermal_zone_device", "parent": 154, "children": [156, 157], "start_point": {"row": 53, "column": 29}, "end_point": {"row": 53, "column": 55}}, {"id": 156, "type": "struct", "text": "struct", "parent": 155, "children": [], "start_point": {"row": 53, "column": 29}, "end_point": {"row": 53, "column": 35}}, {"id": 157, "type": "type_identifier", "text": "thermal_zone_device", "parent": 155, "children": [], "start_point": {"row": 53, "column": 36}, "end_point": {"row": 53, "column": 55}}, {"id": 158, "type": "pointer_declarator", "text": "*tzone", "parent": 154, "children": [159, 160], "start_point": {"row": 53, "column": 56}, "end_point": {"row": 53, "column": 62}}, {"id": 159, "type": "*", "text": "*", "parent": 158, "children": [], "start_point": {"row": 53, "column": 56}, "end_point": {"row": 53, "column": 57}}, {"id": 160, "type": "identifier", "text": "tzone", "parent": 158, "children": [], "start_point": {"row": 53, "column": 57}, "end_point": {"row": 53, "column": 62}}, {"id": 161, "type": "parameter_declaration", "text": "int trip", "parent": 153, "children": [162, 163], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 10}}, {"id": 162, "type": "primitive_type", "text": "int", "parent": 161, "children": [], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 5}}, {"id": 163, "type": "identifier", "text": "trip", "parent": 161, "children": [], "start_point": {"row": 54, "column": 6}, "end_point": {"row": 54, "column": 10}}, {"id": 164, "type": "parameter_declaration", "text": "unsigned long *temp", "parent": 153, "children": [165, 168], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 31}}, {"id": 165, "type": "sized_type_specifier", "text": "unsigned long", "parent": 164, "children": [166, 167], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 25}}, {"id": 166, "type": "unsigned", "text": "unsigned", "parent": 165, "children": [], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 20}}, {"id": 167, "type": "long", "text": "long", "parent": 165, "children": [], "start_point": {"row": 54, "column": 21}, "end_point": {"row": 54, "column": 25}}, {"id": 168, "type": "pointer_declarator", "text": "*temp", "parent": 164, "children": [169, 170], "start_point": {"row": 54, "column": 26}, "end_point": {"row": 54, "column": 31}}, {"id": 169, "type": "*", "text": "*", "parent": 168, "children": [], "start_point": {"row": 54, "column": 26}, "end_point": {"row": 54, "column": 27}}, {"id": 170, "type": "identifier", "text": "temp", "parent": 168, "children": [], "start_point": {"row": 54, "column": 27}, "end_point": {"row": 54, "column": 31}}, {"id": 171, "type": "declaration", "text": "struct acpi_device *device = tzone->devdata;", "parent": 149, "children": [172, 175], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 56, "column": 45}}, {"id": 172, "type": "struct_specifier", "text": "struct acpi_device", "parent": 171, "children": [173, 174], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 56, "column": 19}}, {"id": 173, "type": "struct", "text": "struct", "parent": 172, "children": [], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 56, "column": 7}}, {"id": 174, "type": "type_identifier", "text": "acpi_device", "parent": 172, "children": [], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 19}}, {"id": 175, "type": "init_declarator", "text": "*device = tzone->devdata", "parent": 171, "children": [176, 179, 180], "start_point": {"row": 56, "column": 20}, "end_point": {"row": 56, "column": 44}}, {"id": 176, "type": "pointer_declarator", "text": "*device", "parent": 175, "children": [177, 178], "start_point": {"row": 56, "column": 20}, "end_point": {"row": 56, "column": 27}}, {"id": 177, "type": "*", "text": "*", "parent": 176, "children": [], "start_point": {"row": 56, "column": 20}, "end_point": {"row": 56, "column": 21}}, {"id": 178, "type": "identifier", "text": "device", "parent": 176, "children": [], "start_point": {"row": 56, "column": 21}, "end_point": {"row": 56, "column": 27}}, {"id": 179, "type": "=", "text": "=", "parent": 175, "children": [], "start_point": {"row": 56, "column": 28}, "end_point": {"row": 56, "column": 29}}, {"id": 180, "type": "field_expression", "text": "tzone->devdata", "parent": 175, "children": [181, 182], "start_point": {"row": 56, "column": 30}, "end_point": {"row": 56, "column": 44}}, {"id": 181, "type": "identifier", "text": "tzone", "parent": 180, "children": [], "start_point": {"row": 56, "column": 30}, "end_point": {"row": 56, "column": 35}}, {"id": 182, "type": "field_identifier", "text": "devdata", "parent": 180, "children": [], "start_point": {"row": 56, "column": 37}, "end_point": {"row": 56, "column": 44}}, {"id": 183, "type": "declaration", "text": "unsigned long long hyst;", "parent": 149, "children": [184, 188], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 25}}, {"id": 184, "type": "sized_type_specifier", "text": "unsigned long long", "parent": 183, "children": [185, 186, 187], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 19}}, {"id": 185, "type": "unsigned", "text": "unsigned", "parent": 184, "children": [], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 9}}, {"id": 186, "type": "long", "text": "long", "parent": 184, "children": [], "start_point": {"row": 57, "column": 10}, "end_point": {"row": 57, "column": 14}}, {"id": 187, "type": "long", "text": "long", "parent": 184, "children": [], "start_point": {"row": 57, "column": 15}, "end_point": {"row": 57, "column": 19}}, {"id": 188, "type": "identifier", "text": "hyst", "parent": 183, "children": [], "start_point": {"row": 57, "column": 20}, "end_point": {"row": 57, "column": 24}}, {"id": 189, "type": "declaration", "text": "acpi_status status;", "parent": 149, "children": [190, 191], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 20}}, {"id": 190, "type": "type_identifier", "text": "acpi_status", "parent": 189, "children": [], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 12}}, {"id": 191, "type": "identifier", "text": "status", "parent": 189, "children": [], "start_point": {"row": 58, "column": 13}, "end_point": {"row": 58, "column": 19}}, {"id": 192, "type": "assignment_expression", "text": "status = acpi_evaluate_integer(device->handle, \"GTSH\", NULL, &hyst)", "parent": 149, "children": [193, 194, 195], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 68}}, {"id": 193, "type": "identifier", "text": "status", "parent": 192, "children": [], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 7}}, {"id": 194, "type": "=", "text": "=", "parent": 192, "children": [], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 9}}, {"id": 195, "type": "call_expression", "text": "acpi_evaluate_integer(device->handle, \"GTSH\", NULL, &hyst)", "parent": 192, "children": [196, 197], "start_point": {"row": 60, "column": 10}, "end_point": {"row": 60, "column": 68}}, {"id": 196, "type": "identifier", "text": "acpi_evaluate_integer", "parent": 195, "children": [], "start_point": {"row": 60, "column": 10}, "end_point": {"row": 60, "column": 31}}, {"id": 197, "type": "argument_list", "text": "(device->handle, \"GTSH\", NULL, &hyst)", "parent": 195, "children": [198, 201, 202, 204], "start_point": {"row": 60, "column": 31}, "end_point": {"row": 60, "column": 68}}, {"id": 198, "type": "field_expression", "text": "device->handle", "parent": 197, "children": [199, 200], "start_point": {"row": 60, "column": 32}, "end_point": {"row": 60, "column": 46}}, {"id": 199, "type": "identifier", "text": "device", "parent": 198, "children": [], "start_point": {"row": 60, "column": 32}, "end_point": {"row": 60, "column": 38}}, {"id": 200, "type": "field_identifier", "text": "handle", "parent": 198, "children": [], "start_point": {"row": 60, "column": 40}, "end_point": {"row": 60, "column": 46}}, {"id": 201, "type": "string_literal", "text": "\"GTSH\"", "parent": 197, "children": [], "start_point": {"row": 60, "column": 48}, "end_point": {"row": 60, "column": 54}}, {"id": 202, "type": "null", "text": "NULL", "parent": 197, "children": [203], "start_point": {"row": 60, "column": 56}, "end_point": {"row": 60, "column": 60}}, {"id": 203, "type": "NULL", "text": "NULL", "parent": 202, "children": [], "start_point": {"row": 60, "column": 56}, "end_point": {"row": 60, "column": 60}}, {"id": 204, "type": "pointer_expression", "text": "&hyst", "parent": 197, "children": [205], "start_point": {"row": 60, "column": 62}, "end_point": {"row": 60, "column": 67}}, {"id": 205, "type": "identifier", "text": "hyst", "parent": 204, "children": [], "start_point": {"row": 60, "column": 63}, "end_point": {"row": 60, "column": 67}}, {"id": 206, "type": "if_statement", "text": "if (ACPI_FAILURE(status))\n\t\treturn -EIO;", "parent": 149, "children": [207, 212], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 62, "column": 14}}, {"id": 207, "type": "parenthesized_expression", "text": "(ACPI_FAILURE(status))", "parent": 206, "children": [208], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 26}}, {"id": 208, "type": "call_expression", "text": "ACPI_FAILURE(status)", "parent": 207, "children": [209, 210], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 25}}, {"id": 209, "type": "identifier", "text": "ACPI_FAILURE", "parent": 208, "children": [], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 17}}, {"id": 210, "type": "argument_list", "text": "(status)", "parent": 208, "children": [211], "start_point": {"row": 61, "column": 17}, "end_point": {"row": 61, "column": 25}}, {"id": 211, "type": "identifier", "text": "status", "parent": 210, "children": [], "start_point": {"row": 61, "column": 18}, "end_point": {"row": 61, "column": 24}}, {"id": 212, "type": "return_statement", "text": "return -EIO;", "parent": 206, "children": [213], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 14}}, {"id": 213, "type": "unary_expression", "text": "-EIO", "parent": 212, "children": [214, 215], "start_point": {"row": 62, "column": 9}, "end_point": {"row": 62, "column": 13}}, {"id": 214, "type": "-", "text": "-", "parent": 213, "children": [], "start_point": {"row": 62, "column": 9}, "end_point": {"row": 62, "column": 10}}, {"id": 215, "type": "identifier", "text": "EIO", "parent": 213, "children": [], "start_point": {"row": 62, "column": 10}, "end_point": {"row": 62, "column": 13}}, {"id": 216, "type": "assignment_expression", "text": "*temp = hyst * 100", "parent": 149, "children": [217, 220, 221], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 19}}, {"id": 217, "type": "pointer_expression", "text": "*temp", "parent": 216, "children": [218, 219], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 6}}, {"id": 218, "type": "*", "text": "*", "parent": 217, "children": [], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 2}}, {"id": 219, "type": "identifier", "text": "temp", "parent": 217, "children": [], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 6}}, {"id": 220, "type": "=", "text": "=", "parent": 216, "children": [], "start_point": {"row": 70, "column": 7}, "end_point": {"row": 70, "column": 8}}, {"id": 221, "type": "binary_expression", "text": "hyst * 100", "parent": 216, "children": [222, 223, 224], "start_point": {"row": 70, "column": 9}, "end_point": {"row": 70, "column": 19}}, {"id": 222, "type": "identifier", "text": "hyst", "parent": 221, "children": [], "start_point": {"row": 70, "column": 9}, "end_point": {"row": 70, "column": 13}}, {"id": 223, "type": "*", "text": "*", "parent": 221, "children": [], "start_point": {"row": 70, "column": 14}, "end_point": {"row": 70, "column": 15}}, {"id": 224, "type": "number_literal", "text": "100", "parent": 221, "children": [], "start_point": {"row": 70, "column": 16}, "end_point": {"row": 70, "column": 19}}, {"id": 225, "type": "return_statement", "text": "return 0;", "parent": 149, "children": [226], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 10}}, {"id": 226, "type": "number_literal", "text": "0", "parent": 225, "children": [], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 9}}, {"id": 227, "type": "function_definition", "text": "static int sys_get_trip_temp(struct thermal_zone_device *tzone,\n\t\tint trip, unsigned long *temp)\n{\n\tstruct acpi_device *device = tzone->devdata;\n\tstruct int3403_sensor *obj = acpi_driver_data(device);\n\n\t/*\n\t * get_trip_temp is a mandatory callback but\n\t * PATx method doesn't return any value, so return\n\t * cached value, which was last set from user space.\n\t */\n\t*temp = obj->thresholds[trip];\n\n\treturn 0;\n}", "parent": null, "children": [228, 229], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 89, "column": 1}}, {"id": 228, "type": "primitive_type", "text": "int", "parent": 227, "children": [], "start_point": {"row": 75, "column": 7}, "end_point": {"row": 75, "column": 10}}, {"id": 229, "type": "function_declarator", "text": "sys_get_trip_temp(struct thermal_zone_device *tzone,\n\t\tint trip, unsigned long *temp)", "parent": 227, "children": [230, 231], "start_point": {"row": 75, "column": 11}, "end_point": {"row": 76, "column": 32}}, {"id": 230, "type": "identifier", "text": "sys_get_trip_temp", "parent": 229, "children": [], "start_point": {"row": 75, "column": 11}, "end_point": {"row": 75, "column": 28}}, {"id": 231, "type": "parameter_list", "text": "(struct thermal_zone_device *tzone,\n\t\tint trip, unsigned long *temp)", "parent": 229, "children": [232, 239, 242], "start_point": {"row": 75, "column": 28}, "end_point": {"row": 76, "column": 32}}, {"id": 232, "type": "parameter_declaration", "text": "struct thermal_zone_device *tzone", "parent": 231, "children": [233, 236], "start_point": {"row": 75, "column": 29}, "end_point": {"row": 75, "column": 62}}, {"id": 233, "type": "struct_specifier", "text": "struct thermal_zone_device", "parent": 232, "children": [234, 235], "start_point": {"row": 75, "column": 29}, "end_point": {"row": 75, "column": 55}}, {"id": 234, "type": "struct", "text": "struct", "parent": 233, "children": [], "start_point": {"row": 75, "column": 29}, "end_point": {"row": 75, "column": 35}}, {"id": 235, "type": "type_identifier", "text": "thermal_zone_device", "parent": 233, "children": [], "start_point": {"row": 75, "column": 36}, "end_point": {"row": 75, "column": 55}}, {"id": 236, "type": "pointer_declarator", "text": "*tzone", "parent": 232, "children": [237, 238], "start_point": {"row": 75, "column": 56}, "end_point": {"row": 75, "column": 62}}, {"id": 237, "type": "*", "text": "*", "parent": 236, "children": [], "start_point": {"row": 75, "column": 56}, "end_point": {"row": 75, "column": 57}}, {"id": 238, "type": "identifier", "text": "tzone", "parent": 236, "children": [], "start_point": {"row": 75, "column": 57}, "end_point": {"row": 75, "column": 62}}, {"id": 239, "type": "parameter_declaration", "text": "int trip", "parent": 231, "children": [240, 241], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 10}}, {"id": 240, "type": "primitive_type", "text": "int", "parent": 239, "children": [], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 5}}, {"id": 241, "type": "identifier", "text": "trip", "parent": 239, "children": [], "start_point": {"row": 76, "column": 6}, "end_point": {"row": 76, "column": 10}}, {"id": 242, "type": "parameter_declaration", "text": "unsigned long *temp", "parent": 231, "children": [243, 246], "start_point": {"row": 76, "column": 12}, "end_point": {"row": 76, "column": 31}}, {"id": 243, "type": "sized_type_specifier", "text": "unsigned long", "parent": 242, "children": [244, 245], "start_point": {"row": 76, "column": 12}, "end_point": {"row": 76, "column": 25}}, {"id": 244, "type": "unsigned", "text": "unsigned", "parent": 243, "children": [], "start_point": {"row": 76, "column": 12}, "end_point": {"row": 76, "column": 20}}, {"id": 245, "type": "long", "text": "long", "parent": 243, "children": [], "start_point": {"row": 76, "column": 21}, "end_point": {"row": 76, "column": 25}}, {"id": 246, "type": "pointer_declarator", "text": "*temp", "parent": 242, "children": [247, 248], "start_point": {"row": 76, "column": 26}, "end_point": {"row": 76, "column": 31}}, {"id": 247, "type": "*", "text": "*", "parent": 246, "children": [], "start_point": {"row": 76, "column": 26}, "end_point": {"row": 76, "column": 27}}, {"id": 248, "type": "identifier", "text": "temp", "parent": 246, "children": [], "start_point": {"row": 76, "column": 27}, "end_point": {"row": 76, "column": 31}}, {"id": 249, "type": "declaration", "text": "struct acpi_device *device = tzone->devdata;", "parent": 227, "children": [250, 253], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 45}}, {"id": 250, "type": "struct_specifier", "text": "struct acpi_device", "parent": 249, "children": [251, 252], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 19}}, {"id": 251, "type": "struct", "text": "struct", "parent": 250, "children": [], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 7}}, {"id": 252, "type": "type_identifier", "text": "acpi_device", "parent": 250, "children": [], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 78, "column": 19}}, {"id": 253, "type": "init_declarator", "text": "*device = tzone->devdata", "parent": 249, "children": [254, 257, 258], "start_point": {"row": 78, "column": 20}, "end_point": {"row": 78, "column": 44}}, {"id": 254, "type": "pointer_declarator", "text": "*device", "parent": 253, "children": [255, 256], "start_point": {"row": 78, "column": 20}, "end_point": {"row": 78, "column": 27}}, {"id": 255, "type": "*", "text": "*", "parent": 254, "children": [], "start_point": {"row": 78, "column": 20}, "end_point": {"row": 78, "column": 21}}, {"id": 256, "type": "identifier", "text": "device", "parent": 254, "children": [], "start_point": {"row": 78, "column": 21}, "end_point": {"row": 78, "column": 27}}, {"id": 257, "type": "=", "text": "=", "parent": 253, "children": [], "start_point": {"row": 78, "column": 28}, "end_point": {"row": 78, "column": 29}}, {"id": 258, "type": "field_expression", "text": "tzone->devdata", "parent": 253, "children": [259, 260], "start_point": {"row": 78, "column": 30}, "end_point": {"row": 78, "column": 44}}, {"id": 259, "type": "identifier", "text": "tzone", "parent": 258, "children": [], "start_point": {"row": 78, "column": 30}, "end_point": {"row": 78, "column": 35}}, {"id": 260, "type": "field_identifier", "text": "devdata", "parent": 258, "children": [], "start_point": {"row": 78, "column": 37}, "end_point": {"row": 78, "column": 44}}, {"id": 261, "type": "declaration", "text": "struct int3403_sensor *obj = acpi_driver_data(device);", "parent": 227, "children": [262, 265], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 55}}, {"id": 262, "type": "struct_specifier", "text": "struct int3403_sensor", "parent": 261, "children": [263, 264], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 22}}, {"id": 263, "type": "struct", "text": "struct", "parent": 262, "children": [], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 7}}, {"id": 264, "type": "type_identifier", "text": "int3403_sensor", "parent": 262, "children": [], "start_point": {"row": 79, "column": 8}, "end_point": {"row": 79, "column": 22}}, {"id": 265, "type": "init_declarator", "text": "*obj = acpi_driver_data(device)", "parent": 261, "children": [266, 269, 270], "start_point": {"row": 79, "column": 23}, "end_point": {"row": 79, "column": 54}}, {"id": 266, "type": "pointer_declarator", "text": "*obj", "parent": 265, "children": [267, 268], "start_point": {"row": 79, "column": 23}, "end_point": {"row": 79, "column": 27}}, {"id": 267, "type": "*", "text": "*", "parent": 266, "children": [], "start_point": {"row": 79, "column": 23}, "end_point": {"row": 79, "column": 24}}, {"id": 268, "type": "identifier", "text": "obj", "parent": 266, "children": [], "start_point": {"row": 79, "column": 24}, "end_point": {"row": 79, "column": 27}}, {"id": 269, "type": "=", "text": "=", "parent": 265, "children": [], "start_point": {"row": 79, "column": 28}, "end_point": {"row": 79, "column": 29}}, {"id": 270, "type": "call_expression", "text": "acpi_driver_data(device)", "parent": 265, "children": [271, 272], "start_point": {"row": 79, "column": 30}, "end_point": {"row": 79, "column": 54}}, {"id": 271, "type": "identifier", "text": "acpi_driver_data", "parent": 270, "children": [], "start_point": {"row": 79, "column": 30}, "end_point": {"row": 79, "column": 46}}, {"id": 272, "type": "argument_list", "text": "(device)", "parent": 270, "children": [273], "start_point": {"row": 79, "column": 46}, "end_point": {"row": 79, "column": 54}}, {"id": 273, "type": "identifier", "text": "device", "parent": 272, "children": [], "start_point": {"row": 79, "column": 47}, "end_point": {"row": 79, "column": 53}}, {"id": 274, "type": "assignment_expression", "text": "*temp = obj->thresholds[trip]", "parent": 227, "children": [275, 278, 279], "start_point": {"row": 86, "column": 1}, "end_point": {"row": 86, "column": 30}}, {"id": 275, "type": "pointer_expression", "text": "*temp", "parent": 274, "children": [276, 277], "start_point": {"row": 86, "column": 1}, "end_point": {"row": 86, "column": 6}}, {"id": 276, "type": "*", "text": "*", "parent": 275, "children": [], "start_point": {"row": 86, "column": 1}, "end_point": {"row": 86, "column": 2}}, {"id": 277, "type": "identifier", "text": "temp", "parent": 275, "children": [], "start_point": {"row": 86, "column": 2}, "end_point": {"row": 86, "column": 6}}, {"id": 278, "type": "=", "text": "=", "parent": 274, "children": [], "start_point": {"row": 86, "column": 7}, "end_point": {"row": 86, "column": 8}}, {"id": 279, "type": "subscript_expression", "text": "obj->thresholds[trip]", "parent": 274, "children": [280, 283], "start_point": {"row": 86, "column": 9}, "end_point": {"row": 86, "column": 30}}, {"id": 280, "type": "field_expression", "text": "obj->thresholds", "parent": 279, "children": [281, 282], "start_point": {"row": 86, "column": 9}, "end_point": {"row": 86, "column": 24}}, {"id": 281, "type": "identifier", "text": "obj", "parent": 280, "children": [], "start_point": {"row": 86, "column": 9}, "end_point": {"row": 86, "column": 12}}, {"id": 282, "type": "field_identifier", "text": "thresholds", "parent": 280, "children": [], "start_point": {"row": 86, "column": 14}, "end_point": {"row": 86, "column": 24}}, {"id": 283, "type": "identifier", "text": "trip", "parent": 279, "children": [], "start_point": {"row": 86, "column": 25}, "end_point": {"row": 86, "column": 29}}, {"id": 284, "type": "return_statement", "text": "return 0;", "parent": 227, "children": [285], "start_point": {"row": 88, "column": 1}, "end_point": {"row": 88, "column": 10}}, {"id": 285, "type": "number_literal", "text": "0", "parent": 284, "children": [], "start_point": {"row": 88, "column": 8}, "end_point": {"row": 88, "column": 9}}, {"id": 286, "type": "function_definition", "text": "static int sys_get_trip_type(struct thermal_zone_device *thermal,\n\t\tint trip, enum thermal_trip_type *type)\n{\n\t/* Mandatory callback, may not mean much here */\n\t*type = THERMAL_TRIP_PASSIVE;\n\n\treturn 0;\n}", "parent": null, "children": [287, 288], "start_point": {"row": 91, "column": 0}, "end_point": {"row": 98, "column": 1}}, {"id": 287, "type": "primitive_type", "text": "int", "parent": 286, "children": [], "start_point": {"row": 91, "column": 7}, "end_point": {"row": 91, "column": 10}}, {"id": 288, "type": "function_declarator", "text": "sys_get_trip_type(struct thermal_zone_device *thermal,\n\t\tint trip, enum thermal_trip_type *type)", "parent": 286, "children": [289, 290], "start_point": {"row": 91, "column": 11}, "end_point": {"row": 92, "column": 41}}, {"id": 289, "type": "identifier", "text": "sys_get_trip_type", "parent": 288, "children": [], "start_point": {"row": 91, "column": 11}, "end_point": {"row": 91, "column": 28}}, {"id": 290, "type": "parameter_list", "text": "(struct thermal_zone_device *thermal,\n\t\tint trip, enum thermal_trip_type *type)", "parent": 288, "children": [291, 298, 301], "start_point": {"row": 91, "column": 28}, "end_point": {"row": 92, "column": 41}}, {"id": 291, "type": "parameter_declaration", "text": "struct thermal_zone_device *thermal", "parent": 290, "children": [292, 295], "start_point": {"row": 91, "column": 29}, "end_point": {"row": 91, "column": 64}}, {"id": 292, "type": "struct_specifier", "text": "struct thermal_zone_device", "parent": 291, "children": [293, 294], "start_point": {"row": 91, "column": 29}, "end_point": {"row": 91, "column": 55}}, {"id": 293, "type": "struct", "text": "struct", "parent": 292, "children": [], "start_point": {"row": 91, "column": 29}, "end_point": {"row": 91, "column": 35}}, {"id": 294, "type": "type_identifier", "text": "thermal_zone_device", "parent": 292, "children": [], "start_point": {"row": 91, "column": 36}, "end_point": {"row": 91, "column": 55}}, {"id": 295, "type": "pointer_declarator", "text": "*thermal", "parent": 291, "children": [296, 297], "start_point": {"row": 91, "column": 56}, "end_point": {"row": 91, "column": 64}}, {"id": 296, "type": "*", "text": "*", "parent": 295, "children": [], "start_point": {"row": 91, "column": 56}, "end_point": {"row": 91, "column": 57}}, {"id": 297, "type": "identifier", "text": "thermal", "parent": 295, "children": [], "start_point": {"row": 91, "column": 57}, "end_point": {"row": 91, "column": 64}}, {"id": 298, "type": "parameter_declaration", "text": "int trip", "parent": 290, "children": [299, 300], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 92, "column": 10}}, {"id": 299, "type": "primitive_type", "text": "int", "parent": 298, "children": [], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 92, "column": 5}}, {"id": 300, "type": "identifier", "text": "trip", "parent": 298, "children": [], "start_point": {"row": 92, "column": 6}, "end_point": {"row": 92, "column": 10}}, {"id": 301, "type": "parameter_declaration", "text": "enum thermal_trip_type *type", "parent": 290, "children": [302, 305], "start_point": {"row": 92, "column": 12}, "end_point": {"row": 92, "column": 40}}, {"id": 302, "type": "enum_specifier", "text": "enum thermal_trip_type", "parent": 301, "children": [303, 304], "start_point": {"row": 92, "column": 12}, "end_point": {"row": 92, "column": 34}}, {"id": 303, "type": "enum", "text": "enum", "parent": 302, "children": [], "start_point": {"row": 92, "column": 12}, "end_point": {"row": 92, "column": 16}}, {"id": 304, "type": "type_identifier", "text": "thermal_trip_type", "parent": 302, "children": [], "start_point": {"row": 92, "column": 17}, "end_point": {"row": 92, "column": 34}}, {"id": 305, "type": "pointer_declarator", "text": "*type", "parent": 301, "children": [306, 307], "start_point": {"row": 92, "column": 35}, "end_point": {"row": 92, "column": 40}}, {"id": 306, "type": "*", "text": "*", "parent": 305, "children": [], "start_point": {"row": 92, "column": 35}, "end_point": {"row": 92, "column": 36}}, {"id": 307, "type": "identifier", "text": "type", "parent": 305, "children": [], "start_point": {"row": 92, "column": 36}, "end_point": {"row": 92, "column": 40}}, {"id": 308, "type": "assignment_expression", "text": "*type = THERMAL_TRIP_PASSIVE", "parent": 286, "children": [309, 312, 313], "start_point": {"row": 95, "column": 1}, "end_point": {"row": 95, "column": 29}}, {"id": 309, "type": "pointer_expression", "text": "*type", "parent": 308, "children": [310, 311], "start_point": {"row": 95, "column": 1}, "end_point": {"row": 95, "column": 6}}, {"id": 310, "type": "*", "text": "*", "parent": 309, "children": [], "start_point": {"row": 95, "column": 1}, "end_point": {"row": 95, "column": 2}}, {"id": 311, "type": "identifier", "text": "type", "parent": 309, "children": [], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 6}}, {"id": 312, "type": "=", "text": "=", "parent": 308, "children": [], "start_point": {"row": 95, "column": 7}, "end_point": {"row": 95, "column": 8}}, {"id": 313, "type": "identifier", "text": "THERMAL_TRIP_PASSIVE", "parent": 308, "children": [], "start_point": {"row": 95, "column": 9}, "end_point": {"row": 95, "column": 29}}, {"id": 314, "type": "return_statement", "text": "return 0;", "parent": 286, "children": [315], "start_point": {"row": 97, "column": 1}, "end_point": {"row": 97, "column": 10}}, {"id": 315, "type": "number_literal", "text": "0", "parent": 314, "children": [], "start_point": {"row": 97, "column": 8}, "end_point": {"row": 97, "column": 9}}, {"id": 316, "type": "function_definition", "text": "int sys_set_trip_temp(struct thermal_zone_device *tzone, int trip,\n\t\t\t\t\t\t\tunsigned long temp)\n{\n\tstruct acpi_device *device = tzone->devdata;\n\tacpi_status status;\n\tchar name[10];\n\tint ret = 0;\n\tstruct int3403_sensor *obj = acpi_driver_data(device);\n\n\tsnprintf(name, sizeof(name), \"PAT%d\", trip);\n\tif (acpi_has_method(device->handle, name)) {\n\t\tstatus = acpi_execute_simple_method(device->handle, name,\n\t\t\t\tMILLI_CELSIUS_TO_DECI_KELVIN(temp,\n\t\t\t\t\t\t\tKELVIN_OFFSET));\n\t\tif (ACPI_FAILURE(status))\n\t\t\tret = -EIO;\n\t\telse\n\t\t\tobj->thresholds[trip] = temp;\n\t} else {\n\t\tret = -EIO;\n\t\tdev_err(&device->dev, \"sys_set_trip_temp: method not found\\n\");\n\t}\n\n\treturn ret;\n}", "parent": null, "children": [317, 318], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 124, "column": 1}}, {"id": 317, "type": "primitive_type", "text": "int", "parent": 316, "children": [], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 100, "column": 3}}, {"id": 318, "type": "function_declarator", "text": "sys_set_trip_temp(struct thermal_zone_device *tzone, int trip,\n\t\t\t\t\t\t\tunsigned long temp)", "parent": 316, "children": [319, 320], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 101, "column": 26}}, {"id": 319, "type": "identifier", "text": "sys_set_trip_temp", "parent": 318, "children": [], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 21}}, {"id": 320, "type": "parameter_list", "text": "(struct thermal_zone_device *tzone, int trip,\n\t\t\t\t\t\t\tunsigned long temp)", "parent": 318, "children": [321, 328, 331], "start_point": {"row": 100, "column": 21}, "end_point": {"row": 101, "column": 26}}, {"id": 321, "type": "parameter_declaration", "text": "struct thermal_zone_device *tzone", "parent": 320, "children": [322, 325], "start_point": {"row": 100, "column": 22}, "end_point": {"row": 100, "column": 55}}, {"id": 322, "type": "struct_specifier", "text": "struct thermal_zone_device", "parent": 321, "children": [323, 324], "start_point": {"row": 100, "column": 22}, "end_point": {"row": 100, "column": 48}}, {"id": 323, "type": "struct", "text": "struct", "parent": 322, "children": [], "start_point": {"row": 100, "column": 22}, "end_point": {"row": 100, "column": 28}}, {"id": 324, "type": "type_identifier", "text": "thermal_zone_device", "parent": 322, "children": [], "start_point": {"row": 100, "column": 29}, "end_point": {"row": 100, "column": 48}}, {"id": 325, "type": "pointer_declarator", "text": "*tzone", "parent": 321, "children": [326, 327], "start_point": {"row": 100, "column": 49}, "end_point": {"row": 100, "column": 55}}, {"id": 326, "type": "*", "text": "*", "parent": 325, "children": [], "start_point": {"row": 100, "column": 49}, "end_point": {"row": 100, "column": 50}}, {"id": 327, "type": "identifier", "text": "tzone", "parent": 325, "children": [], "start_point": {"row": 100, "column": 50}, "end_point": {"row": 100, "column": 55}}, {"id": 328, "type": "parameter_declaration", "text": "int trip", "parent": 320, "children": [329, 330], "start_point": {"row": 100, "column": 57}, "end_point": {"row": 100, "column": 65}}, {"id": 329, "type": "primitive_type", "text": "int", "parent": 328, "children": [], "start_point": {"row": 100, "column": 57}, "end_point": {"row": 100, "column": 60}}, {"id": 330, "type": "identifier", "text": "trip", "parent": 328, "children": [], "start_point": {"row": 100, "column": 61}, "end_point": {"row": 100, "column": 65}}, {"id": 331, "type": "parameter_declaration", "text": "unsigned long temp", "parent": 320, "children": [332, 335], "start_point": {"row": 101, "column": 7}, "end_point": {"row": 101, "column": 25}}, {"id": 332, "type": "sized_type_specifier", "text": "unsigned long", "parent": 331, "children": [333, 334], "start_point": {"row": 101, "column": 7}, "end_point": {"row": 101, "column": 20}}, {"id": 333, "type": "unsigned", "text": "unsigned", "parent": 332, "children": [], "start_point": {"row": 101, "column": 7}, "end_point": {"row": 101, "column": 15}}, {"id": 334, "type": "long", "text": "long", "parent": 332, "children": [], "start_point": {"row": 101, "column": 16}, "end_point": {"row": 101, "column": 20}}, {"id": 335, "type": "identifier", "text": "temp", "parent": 331, "children": [], "start_point": {"row": 101, "column": 21}, "end_point": {"row": 101, "column": 25}}, {"id": 336, "type": "declaration", "text": "struct acpi_device *device = tzone->devdata;", "parent": 316, "children": [337, 340], "start_point": {"row": 103, "column": 1}, "end_point": {"row": 103, "column": 45}}, {"id": 337, "type": "struct_specifier", "text": "struct acpi_device", "parent": 336, "children": [338, 339], "start_point": {"row": 103, "column": 1}, "end_point": {"row": 103, "column": 19}}, {"id": 338, "type": "struct", "text": "struct", "parent": 337, "children": [], "start_point": {"row": 103, "column": 1}, "end_point": {"row": 103, "column": 7}}, {"id": 339, "type": "type_identifier", "text": "acpi_device", "parent": 337, "children": [], "start_point": {"row": 103, "column": 8}, "end_point": {"row": 103, "column": 19}}, {"id": 340, "type": "init_declarator", "text": "*device = tzone->devdata", "parent": 336, "children": [341, 344, 345], "start_point": {"row": 103, "column": 20}, "end_point": {"row": 103, "column": 44}}, {"id": 341, "type": "pointer_declarator", "text": "*device", "parent": 340, "children": [342, 343], "start_point": {"row": 103, "column": 20}, "end_point": {"row": 103, "column": 27}}, {"id": 342, "type": "*", "text": "*", "parent": 341, "children": [], "start_point": {"row": 103, "column": 20}, "end_point": {"row": 103, "column": 21}}, {"id": 343, "type": "identifier", "text": "device", "parent": 341, "children": [], "start_point": {"row": 103, "column": 21}, "end_point": {"row": 103, "column": 27}}, {"id": 344, "type": "=", "text": "=", "parent": 340, "children": [], "start_point": {"row": 103, "column": 28}, "end_point": {"row": 103, "column": 29}}, {"id": 345, "type": "field_expression", "text": "tzone->devdata", "parent": 340, "children": [346, 347], "start_point": {"row": 103, "column": 30}, "end_point": {"row": 103, "column": 44}}, {"id": 346, "type": "identifier", "text": "tzone", "parent": 345, "children": [], "start_point": {"row": 103, "column": 30}, "end_point": {"row": 103, "column": 35}}, {"id": 347, "type": "field_identifier", "text": "devdata", "parent": 345, "children": [], "start_point": {"row": 103, "column": 37}, "end_point": {"row": 103, "column": 44}}, {"id": 348, "type": "declaration", "text": "acpi_status status;", "parent": 316, "children": [349, 350], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 20}}, {"id": 349, "type": "type_identifier", "text": "acpi_status", "parent": 348, "children": [], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 12}}, {"id": 350, "type": "identifier", "text": "status", "parent": 348, "children": [], "start_point": {"row": 104, "column": 13}, "end_point": {"row": 104, "column": 19}}, {"id": 351, "type": "declaration", "text": "char name[10];", "parent": 316, "children": [352, 353], "start_point": {"row": 105, "column": 1}, "end_point": {"row": 105, "column": 15}}, {"id": 352, "type": "primitive_type", "text": "char", "parent": 351, "children": [], "start_point": {"row": 105, "column": 1}, "end_point": {"row": 105, "column": 5}}, {"id": 353, "type": "array_declarator", "text": "name[10]", "parent": 351, "children": [354, 355], "start_point": {"row": 105, "column": 6}, "end_point": {"row": 105, "column": 14}}, {"id": 354, "type": "identifier", "text": "name", "parent": 353, "children": [], "start_point": {"row": 105, "column": 6}, "end_point": {"row": 105, "column": 10}}, {"id": 355, "type": "number_literal", "text": "10", "parent": 353, "children": [], "start_point": {"row": 105, "column": 11}, "end_point": {"row": 105, "column": 13}}, {"id": 356, "type": "declaration", "text": "int ret = 0;", "parent": 316, "children": [357, 358], "start_point": {"row": 106, "column": 1}, "end_point": {"row": 106, "column": 13}}, {"id": 357, "type": "primitive_type", "text": "int", "parent": 356, "children": [], "start_point": {"row": 106, "column": 1}, "end_point": {"row": 106, "column": 4}}, {"id": 358, "type": "init_declarator", "text": "ret = 0", "parent": 356, "children": [359, 360, 361], "start_point": {"row": 106, "column": 5}, "end_point": {"row": 106, "column": 12}}, {"id": 359, "type": "identifier", "text": "ret", "parent": 358, "children": [], "start_point": {"row": 106, "column": 5}, "end_point": {"row": 106, "column": 8}}, {"id": 360, "type": "=", "text": "=", "parent": 358, "children": [], "start_point": {"row": 106, "column": 9}, "end_point": {"row": 106, "column": 10}}, {"id": 361, "type": "number_literal", "text": "0", "parent": 358, "children": [], "start_point": {"row": 106, "column": 11}, "end_point": {"row": 106, "column": 12}}, {"id": 362, "type": "declaration", "text": "struct int3403_sensor *obj = acpi_driver_data(device);", "parent": 316, "children": [363, 366], "start_point": {"row": 107, "column": 1}, "end_point": {"row": 107, "column": 55}}, {"id": 363, "type": "struct_specifier", "text": "struct int3403_sensor", "parent": 362, "children": [364, 365], "start_point": {"row": 107, "column": 1}, "end_point": {"row": 107, "column": 22}}, {"id": 364, "type": "struct", "text": "struct", "parent": 363, "children": [], "start_point": {"row": 107, "column": 1}, "end_point": {"row": 107, "column": 7}}, {"id": 365, "type": "type_identifier", "text": "int3403_sensor", "parent": 363, "children": [], "start_point": {"row": 107, "column": 8}, "end_point": {"row": 107, "column": 22}}, {"id": 366, "type": "init_declarator", "text": "*obj = acpi_driver_data(device)", "parent": 362, "children": [367, 370, 371], "start_point": {"row": 107, "column": 23}, "end_point": {"row": 107, "column": 54}}, {"id": 367, "type": "pointer_declarator", "text": "*obj", "parent": 366, "children": [368, 369], "start_point": {"row": 107, "column": 23}, "end_point": {"row": 107, "column": 27}}, {"id": 368, "type": "*", "text": "*", "parent": 367, "children": [], "start_point": {"row": 107, "column": 23}, "end_point": {"row": 107, "column": 24}}, {"id": 369, "type": "identifier", "text": "obj", "parent": 367, "children": [], "start_point": {"row": 107, "column": 24}, "end_point": {"row": 107, "column": 27}}, {"id": 370, "type": "=", "text": "=", "parent": 366, "children": [], "start_point": {"row": 107, "column": 28}, "end_point": {"row": 107, "column": 29}}, {"id": 371, "type": "call_expression", "text": "acpi_driver_data(device)", "parent": 366, "children": [372, 373], "start_point": {"row": 107, "column": 30}, "end_point": {"row": 107, "column": 54}}, {"id": 372, "type": "identifier", "text": "acpi_driver_data", "parent": 371, "children": [], "start_point": {"row": 107, "column": 30}, "end_point": {"row": 107, "column": 46}}, {"id": 373, "type": "argument_list", "text": "(device)", "parent": 371, "children": [374], "start_point": {"row": 107, "column": 46}, "end_point": {"row": 107, "column": 54}}, {"id": 374, "type": "identifier", "text": "device", "parent": 373, "children": [], "start_point": {"row": 107, "column": 47}, "end_point": {"row": 107, "column": 53}}, {"id": 375, "type": "call_expression", "text": "snprintf(name, sizeof(name), \"PAT%d\", trip)", "parent": 316, "children": [376, 377], "start_point": {"row": 109, "column": 1}, "end_point": {"row": 109, "column": 44}}, {"id": 376, "type": "identifier", "text": "snprintf", "parent": 375, "children": [], "start_point": {"row": 109, "column": 1}, "end_point": {"row": 109, "column": 9}}, {"id": 377, "type": "argument_list", "text": "(name, sizeof(name), \"PAT%d\", trip)", "parent": 375, "children": [378, 379, 382, 383], "start_point": {"row": 109, "column": 9}, "end_point": {"row": 109, "column": 44}}, {"id": 378, "type": "identifier", "text": "name", "parent": 377, "children": [], "start_point": {"row": 109, "column": 10}, "end_point": {"row": 109, "column": 14}}, {"id": 379, "type": "sizeof_expression", "text": "sizeof(name)", "parent": 377, "children": [380], "start_point": {"row": 109, "column": 16}, "end_point": {"row": 109, "column": 28}}, {"id": 380, "type": "parenthesized_expression", "text": "(name)", "parent": 379, "children": [381], "start_point": {"row": 109, "column": 22}, "end_point": {"row": 109, "column": 28}}, {"id": 381, "type": "identifier", "text": "name", "parent": 380, "children": [], "start_point": {"row": 109, "column": 23}, "end_point": {"row": 109, "column": 27}}, {"id": 382, "type": "string_literal", "text": "\"PAT%d\"", "parent": 377, "children": [], "start_point": {"row": 109, "column": 30}, "end_point": {"row": 109, "column": 37}}, {"id": 383, "type": "identifier", "text": "trip", "parent": 377, "children": [], "start_point": {"row": 109, "column": 39}, "end_point": {"row": 109, "column": 43}}, {"id": 384, "type": "if_statement", "text": "if (acpi_has_method(device->handle, name)) {\n\t\tstatus = acpi_execute_simple_method(device->handle, name,\n\t\t\t\tMILLI_CELSIUS_TO_DECI_KELVIN(temp,\n\t\t\t\t\t\t\tKELVIN_OFFSET));\n\t\tif (ACPI_FAILURE(status))\n\t\t\tret = -EIO;\n\t\telse\n\t\t\tobj->thresholds[trip] = temp;\n\t} else {\n\t\tret = -EIO;\n\t\tdev_err(&device->dev, \"sys_set_trip_temp: method not found\\n\");\n\t}", "parent": 316, "children": [385, 429], "start_point": {"row": 110, "column": 1}, "end_point": {"row": 121, "column": 2}}, {"id": 385, "type": "parenthesized_expression", "text": "(acpi_has_method(device->handle, name))", "parent": 384, "children": [386], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 43}}, {"id": 386, "type": "call_expression", "text": "acpi_has_method(device->handle, name)", "parent": 385, "children": [387, 388], "start_point": {"row": 110, "column": 5}, "end_point": {"row": 110, "column": 42}}, {"id": 387, "type": "identifier", "text": "acpi_has_method", "parent": 386, "children": [], "start_point": {"row": 110, "column": 5}, "end_point": {"row": 110, "column": 20}}, {"id": 388, "type": "argument_list", "text": "(device->handle, name)", "parent": 386, "children": [389, 392], "start_point": {"row": 110, "column": 20}, "end_point": {"row": 110, "column": 42}}, {"id": 389, "type": "field_expression", "text": "device->handle", "parent": 388, "children": [390, 391], "start_point": {"row": 110, "column": 21}, "end_point": {"row": 110, "column": 35}}, {"id": 390, "type": "identifier", "text": "device", "parent": 389, "children": [], "start_point": {"row": 110, "column": 21}, "end_point": {"row": 110, "column": 27}}, {"id": 391, "type": "field_identifier", "text": "handle", "parent": 389, "children": [], "start_point": {"row": 110, "column": 29}, "end_point": {"row": 110, "column": 35}}, {"id": 392, "type": "identifier", "text": "name", "parent": 388, "children": [], "start_point": {"row": 110, "column": 37}, "end_point": {"row": 110, "column": 41}}, {"id": 393, "type": "assignment_expression", "text": "status = acpi_execute_simple_method(device->handle, name,\n\t\t\t\tMILLI_CELSIUS_TO_DECI_KELVIN(temp,\n\t\t\t\t\t\t\tKELVIN_OFFSET))", "parent": 384, "children": [394, 395, 396], "start_point": {"row": 111, "column": 2}, "end_point": {"row": 113, "column": 22}}, {"id": 394, "type": "identifier", "text": "status", "parent": 393, "children": [], "start_point": {"row": 111, "column": 2}, "end_point": {"row": 111, "column": 8}}, {"id": 395, "type": "=", "text": "=", "parent": 393, "children": [], "start_point": {"row": 111, "column": 9}, "end_point": {"row": 111, "column": 10}}, {"id": 396, "type": "call_expression", "text": "acpi_execute_simple_method(device->handle, name,\n\t\t\t\tMILLI_CELSIUS_TO_DECI_KELVIN(temp,\n\t\t\t\t\t\t\tKELVIN_OFFSET))", "parent": 393, "children": [397, 398], "start_point": {"row": 111, "column": 11}, "end_point": {"row": 113, "column": 22}}, {"id": 397, "type": "identifier", "text": "acpi_execute_simple_method", "parent": 396, "children": [], "start_point": {"row": 111, "column": 11}, "end_point": {"row": 111, "column": 37}}, {"id": 398, "type": "argument_list", "text": "(device->handle, name,\n\t\t\t\tMILLI_CELSIUS_TO_DECI_KELVIN(temp,\n\t\t\t\t\t\t\tKELVIN_OFFSET))", "parent": 396, "children": [399, 402, 403], "start_point": {"row": 111, "column": 37}, "end_point": {"row": 113, "column": 22}}, {"id": 399, "type": "field_expression", "text": "device->handle", "parent": 398, "children": [400, 401], "start_point": {"row": 111, "column": 38}, "end_point": {"row": 111, "column": 52}}, {"id": 400, "type": "identifier", "text": "device", "parent": 399, "children": [], "start_point": {"row": 111, "column": 38}, "end_point": {"row": 111, "column": 44}}, {"id": 401, "type": "field_identifier", "text": "handle", "parent": 399, "children": [], "start_point": {"row": 111, "column": 46}, "end_point": {"row": 111, "column": 52}}, {"id": 402, "type": "identifier", "text": "name", "parent": 398, "children": [], "start_point": {"row": 111, "column": 54}, "end_point": {"row": 111, "column": 58}}, {"id": 403, "type": "call_expression", "text": "MILLI_CELSIUS_TO_DECI_KELVIN(temp,\n\t\t\t\t\t\t\tKELVIN_OFFSET)", "parent": 398, "children": [404, 405], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 113, "column": 21}}, {"id": 404, "type": "identifier", "text": "MILLI_CELSIUS_TO_DECI_KELVIN", "parent": 403, "children": [], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 112, "column": 32}}, {"id": 405, "type": "argument_list", "text": "(temp,\n\t\t\t\t\t\t\tKELVIN_OFFSET)", "parent": 403, "children": [406, 407], "start_point": {"row": 112, "column": 32}, "end_point": {"row": 113, "column": 21}}, {"id": 406, "type": "identifier", "text": "temp", "parent": 405, "children": [], "start_point": {"row": 112, "column": 33}, "end_point": {"row": 112, "column": 37}}, {"id": 407, "type": "identifier", "text": "KELVIN_OFFSET", "parent": 405, "children": [], "start_point": {"row": 113, "column": 7}, "end_point": {"row": 113, "column": 20}}, {"id": 408, "type": "if_statement", "text": "if (ACPI_FAILURE(status))\n\t\t\tret = -EIO;\n\t\telse\n\t\t\tobj->thresholds[trip] = temp;", "parent": 384, "children": [409, 420], "start_point": {"row": 114, "column": 2}, "end_point": {"row": 117, "column": 32}}, {"id": 409, "type": "parenthesized_expression", "text": "(ACPI_FAILURE(status))", "parent": 408, "children": [410], "start_point": {"row": 114, "column": 5}, "end_point": {"row": 114, "column": 27}}, {"id": 410, "type": "call_expression", "text": "ACPI_FAILURE(status)", "parent": 409, "children": [411, 412], "start_point": {"row": 114, "column": 6}, "end_point": {"row": 114, "column": 26}}, {"id": 411, "type": "identifier", "text": "ACPI_FAILURE", "parent": 410, "children": [], "start_point": {"row": 114, "column": 6}, "end_point": {"row": 114, "column": 18}}, {"id": 412, "type": "argument_list", "text": "(status)", "parent": 410, "children": [413], "start_point": {"row": 114, "column": 18}, "end_point": {"row": 114, "column": 26}}, {"id": 413, "type": "identifier", "text": "status", "parent": 412, "children": [], "start_point": {"row": 114, "column": 19}, "end_point": {"row": 114, "column": 25}}, {"id": 414, "type": "assignment_expression", "text": "ret = -EIO", "parent": 408, "children": [415, 416, 417], "start_point": {"row": 115, "column": 3}, "end_point": {"row": 115, "column": 13}}, {"id": 415, "type": "identifier", "text": "ret", "parent": 414, "children": [], "start_point": {"row": 115, "column": 3}, "end_point": {"row": 115, "column": 6}}, {"id": 416, "type": "=", "text": "=", "parent": 414, "children": [], "start_point": {"row": 115, "column": 7}, "end_point": {"row": 115, "column": 8}}, {"id": 417, "type": "unary_expression", "text": "-EIO", "parent": 414, "children": [418, 419], "start_point": {"row": 115, "column": 9}, "end_point": {"row": 115, "column": 13}}, {"id": 418, "type": "-", "text": "-", "parent": 417, "children": [], "start_point": {"row": 115, "column": 9}, "end_point": {"row": 115, "column": 10}}, {"id": 419, "type": "identifier", "text": "EIO", "parent": 417, "children": [], "start_point": {"row": 115, "column": 10}, "end_point": {"row": 115, "column": 13}}, {"id": 420, "type": "else_clause", "text": "else\n\t\t\tobj->thresholds[trip] = temp;", "parent": 408, "children": [], "start_point": {"row": 116, "column": 2}, "end_point": {"row": 117, "column": 32}}, {"id": 421, "type": "assignment_expression", "text": "obj->thresholds[trip] = temp", "parent": 420, "children": [422, 427, 428], "start_point": {"row": 117, "column": 3}, "end_point": {"row": 117, "column": 31}}, {"id": 422, "type": "subscript_expression", "text": "obj->thresholds[trip]", "parent": 421, "children": [423, 426], "start_point": {"row": 117, "column": 3}, "end_point": {"row": 117, "column": 24}}, {"id": 423, "type": "field_expression", "text": "obj->thresholds", "parent": 422, "children": [424, 425], "start_point": {"row": 117, "column": 3}, "end_point": {"row": 117, "column": 18}}, {"id": 424, "type": "identifier", "text": "obj", "parent": 423, "children": [], "start_point": {"row": 117, "column": 3}, "end_point": {"row": 117, "column": 6}}, {"id": 425, "type": "field_identifier", "text": "thresholds", "parent": 423, "children": [], "start_point": {"row": 117, "column": 8}, "end_point": {"row": 117, "column": 18}}, {"id": 426, "type": "identifier", "text": "trip", "parent": 422, "children": [], "start_point": {"row": 117, "column": 19}, "end_point": {"row": 117, "column": 23}}, {"id": 427, "type": "=", "text": "=", "parent": 421, "children": [], "start_point": {"row": 117, "column": 25}, "end_point": {"row": 117, "column": 26}}, {"id": 428, "type": "identifier", "text": "temp", "parent": 421, "children": [], "start_point": {"row": 117, "column": 27}, "end_point": {"row": 117, "column": 31}}, {"id": 429, "type": "else_clause", "text": "else {\n\t\tret = -EIO;\n\t\tdev_err(&device->dev, \"sys_set_trip_temp: method not found\\n\");\n\t}", "parent": 384, "children": [], "start_point": {"row": 118, "column": 3}, "end_point": {"row": 121, "column": 2}}, {"id": 430, "type": "assignment_expression", "text": "ret = -EIO", "parent": 429, "children": [431, 432, 433], "start_point": {"row": 119, "column": 2}, "end_point": {"row": 119, "column": 12}}, {"id": 431, "type": "identifier", "text": "ret", "parent": 430, "children": [], "start_point": {"row": 119, "column": 2}, "end_point": {"row": 119, "column": 5}}, {"id": 432, "type": "=", "text": "=", "parent": 430, "children": [], "start_point": {"row": 119, "column": 6}, "end_point": {"row": 119, "column": 7}}, {"id": 433, "type": "unary_expression", "text": "-EIO", "parent": 430, "children": [434, 435], "start_point": {"row": 119, "column": 8}, "end_point": {"row": 119, "column": 12}}, {"id": 434, "type": "-", "text": "-", "parent": 433, "children": [], "start_point": {"row": 119, "column": 8}, "end_point": {"row": 119, "column": 9}}, {"id": 435, "type": "identifier", "text": "EIO", "parent": 433, "children": [], "start_point": {"row": 119, "column": 9}, "end_point": {"row": 119, "column": 12}}, {"id": 436, "type": "call_expression", "text": "dev_err(&device->dev, \"sys_set_trip_temp: method not found\\n\")", "parent": 429, "children": [437, 438], "start_point": {"row": 120, "column": 2}, "end_point": {"row": 120, "column": 64}}, {"id": 437, "type": "identifier", "text": "dev_err", "parent": 436, "children": [], "start_point": {"row": 120, "column": 2}, "end_point": {"row": 120, "column": 9}}, {"id": 438, "type": "argument_list", "text": "(&device->dev, \"sys_set_trip_temp: method not found\\n\")", "parent": 436, "children": [439, 443], "start_point": {"row": 120, "column": 9}, "end_point": {"row": 120, "column": 64}}, {"id": 439, "type": "pointer_expression", "text": "&device->dev", "parent": 438, "children": [440], "start_point": {"row": 120, "column": 10}, "end_point": {"row": 120, "column": 22}}, {"id": 440, "type": "field_expression", "text": "device->dev", "parent": 439, "children": [441, 442], "start_point": {"row": 120, "column": 11}, "end_point": {"row": 120, "column": 22}}, {"id": 441, "type": "identifier", "text": "device", "parent": 440, "children": [], "start_point": {"row": 120, "column": 11}, "end_point": {"row": 120, "column": 17}}, {"id": 442, "type": "field_identifier", "text": "dev", "parent": 440, "children": [], "start_point": {"row": 120, "column": 19}, "end_point": {"row": 120, "column": 22}}, {"id": 443, "type": "string_literal", "text": "\"sys_set_trip_temp: method not found\\n\"", "parent": 438, "children": [444], "start_point": {"row": 120, "column": 24}, "end_point": {"row": 120, "column": 63}}, {"id": 444, "type": "escape_sequence", "text": "\\n", "parent": 443, "children": [], "start_point": {"row": 120, "column": 60}, "end_point": {"row": 120, "column": 62}}, {"id": 445, "type": "return_statement", "text": "return ret;", "parent": 316, "children": [446], "start_point": {"row": 123, "column": 1}, "end_point": {"row": 123, "column": 12}}, {"id": 446, "type": "identifier", "text": "ret", "parent": 445, "children": [], "start_point": {"row": 123, "column": 8}, "end_point": {"row": 123, "column": 11}}, {"id": 447, "type": "declaration", "text": "static struct thermal_zone_device_ops tzone_ops = {\n\t.get_temp = sys_get_curr_temp,\n\t.get_trip_temp = sys_get_trip_temp,\n\t.get_trip_type = sys_get_trip_type,\n\t.set_trip_temp = sys_set_trip_temp,\n\t.get_trip_hyst = sys_get_trip_hyst,\n};", "parent": null, "children": [448, 451], "start_point": {"row": 126, "column": 0}, "end_point": {"row": 132, "column": 2}}, {"id": 448, "type": "struct_specifier", "text": "struct thermal_zone_device_ops", "parent": 447, "children": [449, 450], "start_point": {"row": 126, "column": 7}, "end_point": {"row": 126, "column": 37}}, {"id": 449, "type": "struct", "text": "struct", "parent": 448, "children": [], "start_point": {"row": 126, "column": 7}, "end_point": {"row": 126, "column": 13}}, {"id": 450, "type": "type_identifier", "text": "thermal_zone_device_ops", "parent": 448, "children": [], "start_point": {"row": 126, "column": 14}, "end_point": {"row": 126, "column": 37}}, {"id": 451, "type": "init_declarator", "text": "tzone_ops = {\n\t.get_temp = sys_get_curr_temp,\n\t.get_trip_temp = sys_get_trip_temp,\n\t.get_trip_type = sys_get_trip_type,\n\t.set_trip_temp = sys_set_trip_temp,\n\t.get_trip_hyst = sys_get_trip_hyst,\n}", "parent": 447, "children": [452, 453, 454], "start_point": {"row": 126, "column": 38}, "end_point": {"row": 132, "column": 1}}, {"id": 452, "type": "identifier", "text": "tzone_ops", "parent": 451, "children": [], "start_point": {"row": 126, "column": 38}, "end_point": {"row": 126, "column": 47}}, {"id": 453, "type": "=", "text": "=", "parent": 451, "children": [], "start_point": {"row": 126, "column": 48}, "end_point": {"row": 126, "column": 49}}, {"id": 454, "type": "initializer_list", "text": "{\n\t.get_temp = sys_get_curr_temp,\n\t.get_trip_temp = sys_get_trip_temp,\n\t.get_trip_type = sys_get_trip_type,\n\t.set_trip_temp = sys_set_trip_temp,\n\t.get_trip_hyst = sys_get_trip_hyst,\n}", "parent": 451, "children": [455, 460, 465, 470, 475], "start_point": {"row": 126, "column": 50}, "end_point": {"row": 132, "column": 1}}, {"id": 455, "type": "initializer_pair", "text": ".get_temp = sys_get_curr_temp", "parent": 454, "children": [456, 458, 459], "start_point": {"row": 127, "column": 1}, "end_point": {"row": 127, "column": 30}}, {"id": 456, "type": "field_designator", "text": ".get_temp", "parent": 455, "children": [457], "start_point": {"row": 127, "column": 1}, "end_point": {"row": 127, "column": 10}}, {"id": 457, "type": "field_identifier", "text": "get_temp", "parent": 456, "children": [], "start_point": {"row": 127, "column": 2}, "end_point": {"row": 127, "column": 10}}, {"id": 458, "type": "=", "text": "=", "parent": 455, "children": [], "start_point": {"row": 127, "column": 11}, "end_point": {"row": 127, "column": 12}}, {"id": 459, "type": "identifier", "text": "sys_get_curr_temp", "parent": 455, "children": [], "start_point": {"row": 127, "column": 13}, "end_point": {"row": 127, "column": 30}}, {"id": 460, "type": "initializer_pair", "text": ".get_trip_temp = sys_get_trip_temp", "parent": 454, "children": [461, 463, 464], "start_point": {"row": 128, "column": 1}, "end_point": {"row": 128, "column": 35}}, {"id": 461, "type": "field_designator", "text": ".get_trip_temp", "parent": 460, "children": [462], "start_point": {"row": 128, "column": 1}, "end_point": {"row": 128, "column": 15}}, {"id": 462, "type": "field_identifier", "text": "get_trip_temp", "parent": 461, "children": [], "start_point": {"row": 128, "column": 2}, "end_point": {"row": 128, "column": 15}}, {"id": 463, "type": "=", "text": "=", "parent": 460, "children": [], "start_point": {"row": 128, "column": 16}, "end_point": {"row": 128, "column": 17}}, {"id": 464, "type": "identifier", "text": "sys_get_trip_temp", "parent": 460, "children": [], "start_point": {"row": 128, "column": 18}, "end_point": {"row": 128, "column": 35}}, {"id": 465, "type": "initializer_pair", "text": ".get_trip_type = sys_get_trip_type", "parent": 454, "children": [466, 468, 469], "start_point": {"row": 129, "column": 1}, "end_point": {"row": 129, "column": 35}}, {"id": 466, "type": "field_designator", "text": ".get_trip_type", "parent": 465, "children": [467], "start_point": {"row": 129, "column": 1}, "end_point": {"row": 129, "column": 15}}, {"id": 467, "type": "field_identifier", "text": "get_trip_type", "parent": 466, "children": [], "start_point": {"row": 129, "column": 2}, "end_point": {"row": 129, "column": 15}}, {"id": 468, "type": "=", "text": "=", "parent": 465, "children": [], "start_point": {"row": 129, "column": 16}, "end_point": {"row": 129, "column": 17}}, {"id": 469, "type": "identifier", "text": "sys_get_trip_type", "parent": 465, "children": [], "start_point": {"row": 129, "column": 18}, "end_point": {"row": 129, "column": 35}}, {"id": 470, "type": "initializer_pair", "text": ".set_trip_temp = sys_set_trip_temp", "parent": 454, "children": [471, 473, 474], "start_point": {"row": 130, "column": 1}, "end_point": {"row": 130, "column": 35}}, {"id": 471, "type": "field_designator", "text": ".set_trip_temp", "parent": 470, "children": [472], "start_point": {"row": 130, "column": 1}, "end_point": {"row": 130, "column": 15}}, {"id": 472, "type": "field_identifier", "text": "set_trip_temp", "parent": 471, "children": [], "start_point": {"row": 130, "column": 2}, "end_point": {"row": 130, "column": 15}}, {"id": 473, "type": "=", "text": "=", "parent": 470, "children": [], "start_point": {"row": 130, "column": 16}, "end_point": {"row": 130, "column": 17}}, {"id": 474, "type": "identifier", "text": "sys_set_trip_temp", "parent": 470, "children": [], "start_point": {"row": 130, "column": 18}, "end_point": {"row": 130, "column": 35}}, {"id": 475, "type": "initializer_pair", "text": ".get_trip_hyst = sys_get_trip_hyst", "parent": 454, "children": [476, 478, 479], "start_point": {"row": 131, "column": 1}, "end_point": {"row": 131, "column": 36}}, {"id": 476, "type": "field_designator", "text": ".get_trip_hyst", "parent": 475, "children": [477], "start_point": {"row": 131, "column": 1}, "end_point": {"row": 131, "column": 15}}, {"id": 477, "type": "field_identifier", "text": "get_trip_hyst", "parent": 476, "children": [], "start_point": {"row": 131, "column": 2}, "end_point": {"row": 131, "column": 15}}, {"id": 478, "type": "=", "text": "=", "parent": 475, "children": [], "start_point": {"row": 131, "column": 16}, "end_point": {"row": 131, "column": 17}}, {"id": 479, "type": "identifier", "text": "sys_get_trip_hyst", "parent": 475, "children": [], "start_point": {"row": 131, "column": 19}, "end_point": {"row": 131, "column": 36}}, {"id": 480, "type": "function_definition", "text": "static void acpi_thermal_notify(struct acpi_device *device, u32 event)\n{\n\tstruct int3403_sensor *obj;\n\n\tif (!device)\n\t\treturn;\n\n\tobj = acpi_driver_data(device);\n\tif (!obj)\n\t\treturn;\n\n\tswitch (event) {\n\tcase INT3403_PERF_CHANGED_EVENT:\n\t\tbreak;\n\tcase INT3403_THERMAL_EVENT:\n\t\tthermal_zone_device_update(obj->tzone);\n\t\tbreak;\n\tdefault:\n\t\tdev_err(&device->dev, \"Unsupported event [0x%x]\\n\", event);\n\t\tbreak;\n\t}\n}", "parent": null, "children": [481, 482], "start_point": {"row": 134, "column": 0}, "end_point": {"row": 155, "column": 1}}, {"id": 481, "type": "primitive_type", "text": "void", "parent": 480, "children": [], "start_point": {"row": 134, "column": 7}, "end_point": {"row": 134, "column": 11}}, {"id": 482, "type": "function_declarator", "text": "acpi_thermal_notify(struct acpi_device *device, u32 event)", "parent": 480, "children": [483, 484], "start_point": {"row": 134, "column": 12}, "end_point": {"row": 134, "column": 70}}, {"id": 483, "type": "identifier", "text": "acpi_thermal_notify", "parent": 482, "children": [], "start_point": {"row": 134, "column": 12}, "end_point": {"row": 134, "column": 31}}, {"id": 484, "type": "parameter_list", "text": "(struct acpi_device *device, u32 event)", "parent": 482, "children": [485, 492], "start_point": {"row": 134, "column": 31}, "end_point": {"row": 134, "column": 70}}, {"id": 485, "type": "parameter_declaration", "text": "struct acpi_device *device", "parent": 484, "children": [486, 489], "start_point": {"row": 134, "column": 32}, "end_point": {"row": 134, "column": 58}}, {"id": 486, "type": "struct_specifier", "text": "struct acpi_device", "parent": 485, "children": [487, 488], "start_point": {"row": 134, "column": 32}, "end_point": {"row": 134, "column": 50}}, {"id": 487, "type": "struct", "text": "struct", "parent": 486, "children": [], "start_point": {"row": 134, "column": 32}, "end_point": {"row": 134, "column": 38}}, {"id": 488, "type": "type_identifier", "text": "acpi_device", "parent": 486, "children": [], "start_point": {"row": 134, "column": 39}, "end_point": {"row": 134, "column": 50}}, {"id": 489, "type": "pointer_declarator", "text": "*device", "parent": 485, "children": [490, 491], "start_point": {"row": 134, "column": 51}, "end_point": {"row": 134, "column": 58}}, {"id": 490, "type": "*", "text": "*", "parent": 489, "children": [], "start_point": {"row": 134, "column": 51}, "end_point": {"row": 134, "column": 52}}, {"id": 491, "type": "identifier", "text": "device", "parent": 489, "children": [], "start_point": {"row": 134, "column": 52}, "end_point": {"row": 134, "column": 58}}, {"id": 492, "type": "parameter_declaration", "text": "u32 event", "parent": 484, "children": [493, 494], "start_point": {"row": 134, "column": 60}, "end_point": {"row": 134, "column": 69}}, {"id": 493, "type": "type_identifier", "text": "u32", "parent": 492, "children": [], "start_point": {"row": 134, "column": 60}, "end_point": {"row": 134, "column": 63}}, {"id": 494, "type": "identifier", "text": "event", "parent": 492, "children": [], "start_point": {"row": 134, "column": 64}, "end_point": {"row": 134, "column": 69}}, {"id": 495, "type": "declaration", "text": "struct int3403_sensor *obj;", "parent": 480, "children": [496, 499], "start_point": {"row": 136, "column": 1}, "end_point": {"row": 136, "column": 28}}, {"id": 496, "type": "struct_specifier", "text": "struct int3403_sensor", "parent": 495, "children": [497, 498], "start_point": {"row": 136, "column": 1}, "end_point": {"row": 136, "column": 22}}, {"id": 497, "type": "struct", "text": "struct", "parent": 496, "children": [], "start_point": {"row": 136, "column": 1}, "end_point": {"row": 136, "column": 7}}, {"id": 498, "type": "type_identifier", "text": "int3403_sensor", "parent": 496, "children": [], "start_point": {"row": 136, "column": 8}, "end_point": {"row": 136, "column": 22}}, {"id": 499, "type": "pointer_declarator", "text": "*obj", "parent": 495, "children": [500, 501], "start_point": {"row": 136, "column": 23}, "end_point": {"row": 136, "column": 27}}, {"id": 500, "type": "*", "text": "*", "parent": 499, "children": [], "start_point": {"row": 136, "column": 23}, "end_point": {"row": 136, "column": 24}}, {"id": 501, "type": "identifier", "text": "obj", "parent": 499, "children": [], "start_point": {"row": 136, "column": 24}, "end_point": {"row": 136, "column": 27}}, {"id": 502, "type": "if_statement", "text": "if (!device)\n\t\treturn;", "parent": 480, "children": [503, 507], "start_point": {"row": 138, "column": 1}, "end_point": {"row": 139, "column": 9}}, {"id": 503, "type": "parenthesized_expression", "text": "(!device)", "parent": 502, "children": [504], "start_point": {"row": 138, "column": 4}, "end_point": {"row": 138, "column": 13}}, {"id": 504, "type": "unary_expression", "text": "!device", "parent": 503, "children": [505, 506], "start_point": {"row": 138, "column": 5}, "end_point": {"row": 138, "column": 12}}, {"id": 505, "type": "!", "text": "!", "parent": 504, "children": [], "start_point": {"row": 138, "column": 5}, "end_point": {"row": 138, "column": 6}}, {"id": 506, "type": "identifier", "text": "device", "parent": 504, "children": [], "start_point": {"row": 138, "column": 6}, "end_point": {"row": 138, "column": 12}}, {"id": 507, "type": "return_statement", "text": "return;", "parent": 502, "children": [], "start_point": {"row": 139, "column": 2}, "end_point": {"row": 139, "column": 9}}, {"id": 508, "type": "assignment_expression", "text": "obj = acpi_driver_data(device)", "parent": 480, "children": [509, 510, 511], "start_point": {"row": 141, "column": 1}, "end_point": {"row": 141, "column": 31}}, {"id": 509, "type": "identifier", "text": "obj", "parent": 508, "children": [], "start_point": {"row": 141, "column": 1}, "end_point": {"row": 141, "column": 4}}, {"id": 510, "type": "=", "text": "=", "parent": 508, "children": [], "start_point": {"row": 141, "column": 5}, "end_point": {"row": 141, "column": 6}}, {"id": 511, "type": "call_expression", "text": "acpi_driver_data(device)", "parent": 508, "children": [512, 513], "start_point": {"row": 141, "column": 7}, "end_point": {"row": 141, "column": 31}}, {"id": 512, "type": "identifier", "text": "acpi_driver_data", "parent": 511, "children": [], "start_point": {"row": 141, "column": 7}, "end_point": {"row": 141, "column": 23}}, {"id": 513, "type": "argument_list", "text": "(device)", "parent": 511, "children": [514], "start_point": {"row": 141, "column": 23}, "end_point": {"row": 141, "column": 31}}, {"id": 514, "type": "identifier", "text": "device", "parent": 513, "children": [], "start_point": {"row": 141, "column": 24}, "end_point": {"row": 141, "column": 30}}, {"id": 515, "type": "if_statement", "text": "if (!obj)\n\t\treturn;", "parent": 480, "children": [516, 520], "start_point": {"row": 142, "column": 1}, "end_point": {"row": 143, "column": 9}}, {"id": 516, "type": "parenthesized_expression", "text": "(!obj)", "parent": 515, "children": [517], "start_point": {"row": 142, "column": 4}, "end_point": {"row": 142, "column": 10}}, {"id": 517, "type": "unary_expression", "text": "!obj", "parent": 516, "children": [518, 519], "start_point": {"row": 142, "column": 5}, "end_point": {"row": 142, "column": 9}}, {"id": 518, "type": "!", "text": "!", "parent": 517, "children": [], "start_point": {"row": 142, "column": 5}, "end_point": {"row": 142, "column": 6}}, {"id": 519, "type": "identifier", "text": "obj", "parent": 517, "children": [], "start_point": {"row": 142, "column": 6}, "end_point": {"row": 142, "column": 9}}, {"id": 520, "type": "return_statement", "text": "return;", "parent": 515, "children": [], "start_point": {"row": 143, "column": 2}, "end_point": {"row": 143, "column": 9}}, {"id": 521, "type": "switch_statement", "text": "switch (event) {\n\tcase INT3403_PERF_CHANGED_EVENT:\n\t\tbreak;\n\tcase INT3403_THERMAL_EVENT:\n\t\tthermal_zone_device_update(obj->tzone);\n\t\tbreak;\n\tdefault:\n\t\tdev_err(&device->dev, \"Unsupported event [0x%x]\\n\", event);\n\t\tbreak;\n\t}", "parent": 480, "children": [522, 523], "start_point": {"row": 145, "column": 1}, "end_point": {"row": 154, "column": 2}}, {"id": 522, "type": "switch", "text": "switch", "parent": 521, "children": [], "start_point": {"row": 145, "column": 1}, "end_point": {"row": 145, "column": 7}}, {"id": 523, "type": "parenthesized_expression", "text": "(event)", "parent": 521, "children": [524], "start_point": {"row": 145, "column": 8}, "end_point": {"row": 145, "column": 15}}, {"id": 524, "type": "identifier", "text": "event", "parent": 523, "children": [], "start_point": {"row": 145, "column": 9}, "end_point": {"row": 145, "column": 14}}, {"id": 525, "type": "case_statement", "text": "case INT3403_PERF_CHANGED_EVENT:\n\t\tbreak;", "parent": 521, "children": [526, 527, 528], "start_point": {"row": 146, "column": 1}, "end_point": {"row": 147, "column": 8}}, {"id": 526, "type": "case", "text": "case", "parent": 525, "children": [], "start_point": {"row": 146, "column": 1}, "end_point": {"row": 146, "column": 5}}, {"id": 527, "type": "identifier", "text": "INT3403_PERF_CHANGED_EVENT", "parent": 525, "children": [], "start_point": {"row": 146, "column": 6}, "end_point": {"row": 146, "column": 32}}, {"id": 528, "type": "break_statement", "text": "break;", "parent": 525, "children": [529], "start_point": {"row": 147, "column": 2}, "end_point": {"row": 147, "column": 8}}, {"id": 529, "type": "break", "text": "break", "parent": 528, "children": [], "start_point": {"row": 147, "column": 2}, "end_point": {"row": 147, "column": 7}}, {"id": 530, "type": "case_statement", "text": "case INT3403_THERMAL_EVENT:\n\t\tthermal_zone_device_update(obj->tzone);\n\t\tbreak;", "parent": 521, "children": [531, 532, 539], "start_point": {"row": 148, "column": 1}, "end_point": {"row": 150, "column": 8}}, {"id": 531, "type": "case", "text": "case", "parent": 530, "children": [], "start_point": {"row": 148, "column": 1}, "end_point": {"row": 148, "column": 5}}, {"id": 532, "type": "identifier", "text": "INT3403_THERMAL_EVENT", "parent": 530, "children": [], "start_point": {"row": 148, "column": 6}, "end_point": {"row": 148, "column": 27}}, {"id": 533, "type": "call_expression", "text": "thermal_zone_device_update(obj->tzone)", "parent": 530, "children": [534, 535], "start_point": {"row": 149, "column": 2}, "end_point": {"row": 149, "column": 40}}, {"id": 534, "type": "identifier", "text": "thermal_zone_device_update", "parent": 533, "children": [], "start_point": {"row": 149, "column": 2}, "end_point": {"row": 149, "column": 28}}, {"id": 535, "type": "argument_list", "text": "(obj->tzone)", "parent": 533, "children": [536], "start_point": {"row": 149, "column": 28}, "end_point": {"row": 149, "column": 40}}, {"id": 536, "type": "field_expression", "text": "obj->tzone", "parent": 535, "children": [537, 538], "start_point": {"row": 149, "column": 29}, "end_point": {"row": 149, "column": 39}}, {"id": 537, "type": "identifier", "text": "obj", "parent": 536, "children": [], "start_point": {"row": 149, "column": 29}, "end_point": {"row": 149, "column": 32}}, {"id": 538, "type": "field_identifier", "text": "tzone", "parent": 536, "children": [], "start_point": {"row": 149, "column": 34}, "end_point": {"row": 149, "column": 39}}, {"id": 539, "type": "break_statement", "text": "break;", "parent": 530, "children": [540], "start_point": {"row": 150, "column": 2}, "end_point": {"row": 150, "column": 8}}, {"id": 540, "type": "break", "text": "break", "parent": 539, "children": [], "start_point": {"row": 150, "column": 2}, "end_point": {"row": 150, "column": 7}}, {"id": 541, "type": "case_statement", "text": "default:\n\t\tdev_err(&device->dev, \"Unsupported event [0x%x]\\n\", event);\n\t\tbreak;", "parent": 521, "children": [542, 553], "start_point": {"row": 151, "column": 1}, "end_point": {"row": 153, "column": 8}}, {"id": 542, "type": "default", "text": "default", "parent": 541, "children": [], "start_point": {"row": 151, "column": 1}, "end_point": {"row": 151, "column": 8}}, {"id": 543, "type": "call_expression", "text": "dev_err(&device->dev, \"Unsupported event [0x%x]\\n\", event)", "parent": 541, "children": [544, 545], "start_point": {"row": 152, "column": 2}, "end_point": {"row": 152, "column": 60}}, {"id": 544, "type": "identifier", "text": "dev_err", "parent": 543, "children": [], "start_point": {"row": 152, "column": 2}, "end_point": {"row": 152, "column": 9}}, {"id": 545, "type": "argument_list", "text": "(&device->dev, \"Unsupported event [0x%x]\\n\", event)", "parent": 543, "children": [546, 550, 552], "start_point": {"row": 152, "column": 9}, "end_point": {"row": 152, "column": 60}}, {"id": 546, "type": "pointer_expression", "text": "&device->dev", "parent": 545, "children": [547], "start_point": {"row": 152, "column": 10}, "end_point": {"row": 152, "column": 22}}, {"id": 547, "type": "field_expression", "text": "device->dev", "parent": 546, "children": [548, 549], "start_point": {"row": 152, "column": 11}, "end_point": {"row": 152, "column": 22}}, {"id": 548, "type": "identifier", "text": "device", "parent": 547, "children": [], "start_point": {"row": 152, "column": 11}, "end_point": {"row": 152, "column": 17}}, {"id": 549, "type": "field_identifier", "text": "dev", "parent": 547, "children": [], "start_point": {"row": 152, "column": 19}, "end_point": {"row": 152, "column": 22}}, {"id": 550, "type": "string_literal", "text": "\"Unsupported event [0x%x]\\n\"", "parent": 545, "children": [551], "start_point": {"row": 152, "column": 24}, "end_point": {"row": 152, "column": 52}}, {"id": 551, "type": "escape_sequence", "text": "\\n", "parent": 550, "children": [], "start_point": {"row": 152, "column": 49}, "end_point": {"row": 152, "column": 51}}, {"id": 552, "type": "identifier", "text": "event", "parent": 545, "children": [], "start_point": {"row": 152, "column": 54}, "end_point": {"row": 152, "column": 59}}, {"id": 553, "type": "break_statement", "text": "break;", "parent": 541, "children": [554], "start_point": {"row": 153, "column": 2}, "end_point": {"row": 153, "column": 8}}, {"id": 554, "type": "break", "text": "break", "parent": 553, "children": [], "start_point": {"row": 153, "column": 2}, "end_point": {"row": 153, "column": 7}}, {"id": 555, "type": "function_definition", "text": "static int acpi_int3403_add(struct acpi_device *device)\n{\n\tint result = 0;\n\tunsigned long long ptyp;\n\tacpi_status status;\n\tstruct int3403_sensor *obj;\n\tunsigned long long trip_cnt;\n\tint trip_mask = 0;\n\n\tif (!device)\n\t\treturn -EINVAL;\n\n\tstatus = acpi_evaluate_integer(device->handle, \"PTYP\", NULL, &ptyp);\n\tif (ACPI_FAILURE(status))\n\t\treturn -EINVAL;\n\n\tif (ptyp != INT3403_TYPE_SENSOR)\n\t\treturn -EINVAL;\n\n\tobj = devm_kzalloc(&device->dev, sizeof(*obj), GFP_KERNEL);\n\tif (!obj)\n\t\treturn -ENOMEM;\n\n\tdevice->driver_data = obj;\n\n\tstatus = acpi_evaluate_integer(device->handle, \"PATC\", NULL,\n\t\t\t\t\t\t&trip_cnt);\n\tif (ACPI_FAILURE(status))\n\t\ttrip_cnt = 0;\n\n\tif (trip_cnt) {\n\t\t/* We have to cache, thresholds can't be readback */\n\t\tobj->thresholds = devm_kzalloc(&device->dev,\n\t\t\t\t\tsizeof(*obj->thresholds) * trip_cnt,\n\t\t\t\t\tGFP_KERNEL);\n\t\tif (!obj->thresholds)\n\t\t\treturn -ENOMEM;\n\t\ttrip_mask = BIT(trip_cnt) - 1;\n\t}\n\tobj->tzone = thermal_zone_device_register(acpi_device_bid(device),\n\t\t\t\ttrip_cnt, trip_mask, device, &tzone_ops,\n\t\t\t\tNULL, 0, 0);\n\tif (IS_ERR(obj->tzone)) {\n\t\tresult = PTR_ERR(obj->tzone);\n\t\treturn result;\n\t}\n\n\tstrcpy(acpi_device_name(device), \"INT3403\");\n\tstrcpy(acpi_device_class(device), ACPI_INT3403_CLASS);\n\n\treturn 0;\n}", "parent": null, "children": [556, 557], "start_point": {"row": 157, "column": 0}, "end_point": {"row": 208, "column": 1}}, {"id": 556, "type": "primitive_type", "text": "int", "parent": 555, "children": [], "start_point": {"row": 157, "column": 7}, "end_point": {"row": 157, "column": 10}}, {"id": 557, "type": "function_declarator", "text": "acpi_int3403_add(struct acpi_device *device)", "parent": 555, "children": [558, 559], "start_point": {"row": 157, "column": 11}, "end_point": {"row": 157, "column": 55}}, {"id": 558, "type": "identifier", "text": "acpi_int3403_add", "parent": 557, "children": [], "start_point": {"row": 157, "column": 11}, "end_point": {"row": 157, "column": 27}}, {"id": 559, "type": "parameter_list", "text": "(struct acpi_device *device)", "parent": 557, "children": [560], "start_point": {"row": 157, "column": 27}, "end_point": {"row": 157, "column": 55}}, {"id": 560, "type": "parameter_declaration", "text": "struct acpi_device *device", "parent": 559, "children": [561, 564], "start_point": {"row": 157, "column": 28}, "end_point": {"row": 157, "column": 54}}, {"id": 561, "type": "struct_specifier", "text": "struct acpi_device", "parent": 560, "children": [562, 563], "start_point": {"row": 157, "column": 28}, "end_point": {"row": 157, "column": 46}}, {"id": 562, "type": "struct", "text": "struct", "parent": 561, "children": [], "start_point": {"row": 157, "column": 28}, "end_point": {"row": 157, "column": 34}}, {"id": 563, "type": "type_identifier", "text": "acpi_device", "parent": 561, "children": [], "start_point": {"row": 157, "column": 35}, "end_point": {"row": 157, "column": 46}}, {"id": 564, "type": "pointer_declarator", "text": "*device", "parent": 560, "children": [565, 566], "start_point": {"row": 157, "column": 47}, "end_point": {"row": 157, "column": 54}}, {"id": 565, "type": "*", "text": "*", "parent": 564, "children": [], "start_point": {"row": 157, "column": 47}, "end_point": {"row": 157, "column": 48}}, {"id": 566, "type": "identifier", "text": "device", "parent": 564, "children": [], "start_point": {"row": 157, "column": 48}, "end_point": {"row": 157, "column": 54}}, {"id": 567, "type": "declaration", "text": "int result = 0;", "parent": 555, "children": [568, 569], "start_point": {"row": 159, "column": 1}, "end_point": {"row": 159, "column": 16}}, {"id": 568, "type": "primitive_type", "text": "int", "parent": 567, "children": [], "start_point": {"row": 159, "column": 1}, "end_point": {"row": 159, "column": 4}}, {"id": 569, "type": "init_declarator", "text": "result = 0", "parent": 567, "children": [570, 571, 572], "start_point": {"row": 159, "column": 5}, "end_point": {"row": 159, "column": 15}}, {"id": 570, "type": "identifier", "text": "result", "parent": 569, "children": [], "start_point": {"row": 159, "column": 5}, "end_point": {"row": 159, "column": 11}}, {"id": 571, "type": "=", "text": "=", "parent": 569, "children": [], "start_point": {"row": 159, "column": 12}, "end_point": {"row": 159, "column": 13}}, {"id": 572, "type": "number_literal", "text": "0", "parent": 569, "children": [], "start_point": {"row": 159, "column": 14}, "end_point": {"row": 159, "column": 15}}, {"id": 573, "type": "declaration", "text": "unsigned long long ptyp;", "parent": 555, "children": [574, 578], "start_point": {"row": 160, "column": 1}, "end_point": {"row": 160, "column": 25}}, {"id": 574, "type": "sized_type_specifier", "text": "unsigned long long", "parent": 573, "children": [575, 576, 577], "start_point": {"row": 160, "column": 1}, "end_point": {"row": 160, "column": 19}}, {"id": 575, "type": "unsigned", "text": "unsigned", "parent": 574, "children": [], "start_point": {"row": 160, "column": 1}, "end_point": {"row": 160, "column": 9}}, {"id": 576, "type": "long", "text": "long", "parent": 574, "children": [], "start_point": {"row": 160, "column": 10}, "end_point": {"row": 160, "column": 14}}, {"id": 577, "type": "long", "text": "long", "parent": 574, "children": [], "start_point": {"row": 160, "column": 15}, "end_point": {"row": 160, "column": 19}}, {"id": 578, "type": "identifier", "text": "ptyp", "parent": 573, "children": [], "start_point": {"row": 160, "column": 20}, "end_point": {"row": 160, "column": 24}}, {"id": 579, "type": "declaration", "text": "acpi_status status;", "parent": 555, "children": [580, 581], "start_point": {"row": 161, "column": 1}, "end_point": {"row": 161, "column": 20}}, {"id": 580, "type": "type_identifier", "text": "acpi_status", "parent": 579, "children": [], "start_point": {"row": 161, "column": 1}, "end_point": {"row": 161, "column": 12}}, {"id": 581, "type": "identifier", "text": "status", "parent": 579, "children": [], "start_point": {"row": 161, "column": 13}, "end_point": {"row": 161, "column": 19}}, {"id": 582, "type": "declaration", "text": "struct int3403_sensor *obj;", "parent": 555, "children": [583, 586], "start_point": {"row": 162, "column": 1}, "end_point": {"row": 162, "column": 28}}, {"id": 583, "type": "struct_specifier", "text": "struct int3403_sensor", "parent": 582, "children": [584, 585], "start_point": {"row": 162, "column": 1}, "end_point": {"row": 162, "column": 22}}, {"id": 584, "type": "struct", "text": "struct", "parent": 583, "children": [], "start_point": {"row": 162, "column": 1}, "end_point": {"row": 162, "column": 7}}, {"id": 585, "type": "type_identifier", "text": "int3403_sensor", "parent": 583, "children": [], "start_point": {"row": 162, "column": 8}, "end_point": {"row": 162, "column": 22}}, {"id": 586, "type": "pointer_declarator", "text": "*obj", "parent": 582, "children": [587, 588], "start_point": {"row": 162, "column": 23}, "end_point": {"row": 162, "column": 27}}, {"id": 587, "type": "*", "text": "*", "parent": 586, "children": [], "start_point": {"row": 162, "column": 23}, "end_point": {"row": 162, "column": 24}}, {"id": 588, "type": "identifier", "text": "obj", "parent": 586, "children": [], "start_point": {"row": 162, "column": 24}, "end_point": {"row": 162, "column": 27}}, {"id": 589, "type": "declaration", "text": "unsigned long long trip_cnt;", "parent": 555, "children": [590, 594], "start_point": {"row": 163, "column": 1}, "end_point": {"row": 163, "column": 29}}, {"id": 590, "type": "sized_type_specifier", "text": "unsigned long long", "parent": 589, "children": [591, 592, 593], "start_point": {"row": 163, "column": 1}, "end_point": {"row": 163, "column": 19}}, {"id": 591, "type": "unsigned", "text": "unsigned", "parent": 590, "children": [], "start_point": {"row": 163, "column": 1}, "end_point": {"row": 163, "column": 9}}, {"id": 592, "type": "long", "text": "long", "parent": 590, "children": [], "start_point": {"row": 163, "column": 10}, "end_point": {"row": 163, "column": 14}}, {"id": 593, "type": "long", "text": "long", "parent": 590, "children": [], "start_point": {"row": 163, "column": 15}, "end_point": {"row": 163, "column": 19}}, {"id": 594, "type": "identifier", "text": "trip_cnt", "parent": 589, "children": [], "start_point": {"row": 163, "column": 20}, "end_point": {"row": 163, "column": 28}}, {"id": 595, "type": "declaration", "text": "int trip_mask = 0;", "parent": 555, "children": [596, 597], "start_point": {"row": 164, "column": 1}, "end_point": {"row": 164, "column": 19}}, {"id": 596, "type": "primitive_type", "text": "int", "parent": 595, "children": [], "start_point": {"row": 164, "column": 1}, "end_point": {"row": 164, "column": 4}}, {"id": 597, "type": "init_declarator", "text": "trip_mask = 0", "parent": 595, "children": [598, 599, 600], "start_point": {"row": 164, "column": 5}, "end_point": {"row": 164, "column": 18}}, {"id": 598, "type": "identifier", "text": "trip_mask", "parent": 597, "children": [], "start_point": {"row": 164, "column": 5}, "end_point": {"row": 164, "column": 14}}, {"id": 599, "type": "=", "text": "=", "parent": 597, "children": [], "start_point": {"row": 164, "column": 15}, "end_point": {"row": 164, "column": 16}}, {"id": 600, "type": "number_literal", "text": "0", "parent": 597, "children": [], "start_point": {"row": 164, "column": 17}, "end_point": {"row": 164, "column": 18}}, {"id": 601, "type": "if_statement", "text": "if (!device)\n\t\treturn -EINVAL;", "parent": 555, "children": [602, 606], "start_point": {"row": 166, "column": 1}, "end_point": {"row": 167, "column": 17}}, {"id": 602, "type": "parenthesized_expression", "text": "(!device)", "parent": 601, "children": [603], "start_point": {"row": 166, "column": 4}, "end_point": {"row": 166, "column": 13}}, {"id": 603, "type": "unary_expression", "text": "!device", "parent": 602, "children": [604, 605], "start_point": {"row": 166, "column": 5}, "end_point": {"row": 166, "column": 12}}, {"id": 604, "type": "!", "text": "!", "parent": 603, "children": [], "start_point": {"row": 166, "column": 5}, "end_point": {"row": 166, "column": 6}}, {"id": 605, "type": "identifier", "text": "device", "parent": 603, "children": [], "start_point": {"row": 166, "column": 6}, "end_point": {"row": 166, "column": 12}}, {"id": 606, "type": "return_statement", "text": "return -EINVAL;", "parent": 601, "children": [607], "start_point": {"row": 167, "column": 2}, "end_point": {"row": 167, "column": 17}}, {"id": 607, "type": "unary_expression", "text": "-EINVAL", "parent": 606, "children": [608, 609], "start_point": {"row": 167, "column": 9}, "end_point": {"row": 167, "column": 16}}, {"id": 608, "type": "-", "text": "-", "parent": 607, "children": [], "start_point": {"row": 167, "column": 9}, "end_point": {"row": 167, "column": 10}}, {"id": 609, "type": "identifier", "text": "EINVAL", "parent": 607, "children": [], "start_point": {"row": 167, "column": 10}, "end_point": {"row": 167, "column": 16}}, {"id": 610, "type": "assignment_expression", "text": "status = acpi_evaluate_integer(device->handle, \"PTYP\", NULL, &ptyp)", "parent": 555, "children": [611, 612, 613], "start_point": {"row": 169, "column": 1}, "end_point": {"row": 169, "column": 68}}, {"id": 611, "type": "identifier", "text": "status", "parent": 610, "children": [], "start_point": {"row": 169, "column": 1}, "end_point": {"row": 169, "column": 7}}, {"id": 612, "type": "=", "text": "=", "parent": 610, "children": [], "start_point": {"row": 169, "column": 8}, "end_point": {"row": 169, "column": 9}}, {"id": 613, "type": "call_expression", "text": "acpi_evaluate_integer(device->handle, \"PTYP\", NULL, &ptyp)", "parent": 610, "children": [614, 615], "start_point": {"row": 169, "column": 10}, "end_point": {"row": 169, "column": 68}}, {"id": 614, "type": "identifier", "text": "acpi_evaluate_integer", "parent": 613, "children": [], "start_point": {"row": 169, "column": 10}, "end_point": {"row": 169, "column": 31}}, {"id": 615, "type": "argument_list", "text": "(device->handle, \"PTYP\", NULL, &ptyp)", "parent": 613, "children": [616, 619, 620, 622], "start_point": {"row": 169, "column": 31}, "end_point": {"row": 169, "column": 68}}, {"id": 616, "type": "field_expression", "text": "device->handle", "parent": 615, "children": [617, 618], "start_point": {"row": 169, "column": 32}, "end_point": {"row": 169, "column": 46}}, {"id": 617, "type": "identifier", "text": "device", "parent": 616, "children": [], "start_point": {"row": 169, "column": 32}, "end_point": {"row": 169, "column": 38}}, {"id": 618, "type": "field_identifier", "text": "handle", "parent": 616, "children": [], "start_point": {"row": 169, "column": 40}, "end_point": {"row": 169, "column": 46}}, {"id": 619, "type": "string_literal", "text": "\"PTYP\"", "parent": 615, "children": [], "start_point": {"row": 169, "column": 48}, "end_point": {"row": 169, "column": 54}}, {"id": 620, "type": "null", "text": "NULL", "parent": 615, "children": [621], "start_point": {"row": 169, "column": 56}, "end_point": {"row": 169, "column": 60}}, {"id": 621, "type": "NULL", "text": "NULL", "parent": 620, "children": [], "start_point": {"row": 169, "column": 56}, "end_point": {"row": 169, "column": 60}}, {"id": 622, "type": "pointer_expression", "text": "&ptyp", "parent": 615, "children": [623], "start_point": {"row": 169, "column": 62}, "end_point": {"row": 169, "column": 67}}, {"id": 623, "type": "identifier", "text": "ptyp", "parent": 622, "children": [], "start_point": {"row": 169, "column": 63}, "end_point": {"row": 169, "column": 67}}, {"id": 624, "type": "if_statement", "text": "if (ACPI_FAILURE(status))\n\t\treturn -EINVAL;", "parent": 555, "children": [625, 630], "start_point": {"row": 170, "column": 1}, "end_point": {"row": 171, "column": 17}}, {"id": 625, "type": "parenthesized_expression", "text": "(ACPI_FAILURE(status))", "parent": 624, "children": [626], "start_point": {"row": 170, "column": 4}, "end_point": {"row": 170, "column": 26}}, {"id": 626, "type": "call_expression", "text": "ACPI_FAILURE(status)", "parent": 625, "children": [627, 628], "start_point": {"row": 170, "column": 5}, "end_point": {"row": 170, "column": 25}}, {"id": 627, "type": "identifier", "text": "ACPI_FAILURE", "parent": 626, "children": [], "start_point": {"row": 170, "column": 5}, "end_point": {"row": 170, "column": 17}}, {"id": 628, "type": "argument_list", "text": "(status)", "parent": 626, "children": [629], "start_point": {"row": 170, "column": 17}, "end_point": {"row": 170, "column": 25}}, {"id": 629, "type": "identifier", "text": "status", "parent": 628, "children": [], "start_point": {"row": 170, "column": 18}, "end_point": {"row": 170, "column": 24}}, {"id": 630, "type": "return_statement", "text": "return -EINVAL;", "parent": 624, "children": [631], "start_point": {"row": 171, "column": 2}, "end_point": {"row": 171, "column": 17}}, {"id": 631, "type": "unary_expression", "text": "-EINVAL", "parent": 630, "children": [632, 633], "start_point": {"row": 171, "column": 9}, "end_point": {"row": 171, "column": 16}}, {"id": 632, "type": "-", "text": "-", "parent": 631, "children": [], "start_point": {"row": 171, "column": 9}, "end_point": {"row": 171, "column": 10}}, {"id": 633, "type": "identifier", "text": "EINVAL", "parent": 631, "children": [], "start_point": {"row": 171, "column": 10}, "end_point": {"row": 171, "column": 16}}, {"id": 634, "type": "if_statement", "text": "if (ptyp != INT3403_TYPE_SENSOR)\n\t\treturn -EINVAL;", "parent": 555, "children": [635, 640], "start_point": {"row": 173, "column": 1}, "end_point": {"row": 174, "column": 17}}, {"id": 635, "type": "parenthesized_expression", "text": "(ptyp != INT3403_TYPE_SENSOR)", "parent": 634, "children": [636], "start_point": {"row": 173, "column": 4}, "end_point": {"row": 173, "column": 33}}, {"id": 636, "type": "binary_expression", "text": "ptyp != INT3403_TYPE_SENSOR", "parent": 635, "children": [637, 638, 639], "start_point": {"row": 173, "column": 5}, "end_point": {"row": 173, "column": 32}}, {"id": 637, "type": "identifier", "text": "ptyp", "parent": 636, "children": [], "start_point": {"row": 173, "column": 5}, "end_point": {"row": 173, "column": 9}}, {"id": 638, "type": "!=", "text": "!=", "parent": 636, "children": [], "start_point": {"row": 173, "column": 10}, "end_point": {"row": 173, "column": 12}}, {"id": 639, "type": "identifier", "text": "INT3403_TYPE_SENSOR", "parent": 636, "children": [], "start_point": {"row": 173, "column": 13}, "end_point": {"row": 173, "column": 32}}, {"id": 640, "type": "return_statement", "text": "return -EINVAL;", "parent": 634, "children": [641], "start_point": {"row": 174, "column": 2}, "end_point": {"row": 174, "column": 17}}, {"id": 641, "type": "unary_expression", "text": "-EINVAL", "parent": 640, "children": [642, 643], "start_point": {"row": 174, "column": 9}, "end_point": {"row": 174, "column": 16}}, {"id": 642, "type": "-", "text": "-", "parent": 641, "children": [], "start_point": {"row": 174, "column": 9}, "end_point": {"row": 174, "column": 10}}, {"id": 643, "type": "identifier", "text": "EINVAL", "parent": 641, "children": [], "start_point": {"row": 174, "column": 10}, "end_point": {"row": 174, "column": 16}}, {"id": 644, "type": "assignment_expression", "text": "obj = devm_kzalloc(&device->dev, sizeof(*obj), GFP_KERNEL)", "parent": 555, "children": [645, 646, 647], "start_point": {"row": 176, "column": 1}, "end_point": {"row": 176, "column": 59}}, {"id": 645, "type": "identifier", "text": "obj", "parent": 644, "children": [], "start_point": {"row": 176, "column": 1}, "end_point": {"row": 176, "column": 4}}, {"id": 646, "type": "=", "text": "=", "parent": 644, "children": [], "start_point": {"row": 176, "column": 5}, "end_point": {"row": 176, "column": 6}}, {"id": 647, "type": "call_expression", "text": "devm_kzalloc(&device->dev, sizeof(*obj), GFP_KERNEL)", "parent": 644, "children": [648, 649], "start_point": {"row": 176, "column": 7}, "end_point": {"row": 176, "column": 59}}, {"id": 648, "type": "identifier", "text": "devm_kzalloc", "parent": 647, "children": [], "start_point": {"row": 176, "column": 7}, "end_point": {"row": 176, "column": 19}}, {"id": 649, "type": "argument_list", "text": "(&device->dev, sizeof(*obj), GFP_KERNEL)", "parent": 647, "children": [650, 654, 659], "start_point": {"row": 176, "column": 19}, "end_point": {"row": 176, "column": 59}}, {"id": 650, "type": "pointer_expression", "text": "&device->dev", "parent": 649, "children": [651], "start_point": {"row": 176, "column": 20}, "end_point": {"row": 176, "column": 32}}, {"id": 651, "type": "field_expression", "text": "device->dev", "parent": 650, "children": [652, 653], "start_point": {"row": 176, "column": 21}, "end_point": {"row": 176, "column": 32}}, {"id": 652, "type": "identifier", "text": "device", "parent": 651, "children": [], "start_point": {"row": 176, "column": 21}, "end_point": {"row": 176, "column": 27}}, {"id": 653, "type": "field_identifier", "text": "dev", "parent": 651, "children": [], "start_point": {"row": 176, "column": 29}, "end_point": {"row": 176, "column": 32}}, {"id": 654, "type": "sizeof_expression", "text": "sizeof(*obj)", "parent": 649, "children": [655], "start_point": {"row": 176, "column": 34}, "end_point": {"row": 176, "column": 46}}, {"id": 655, "type": "parenthesized_expression", "text": "(*obj)", "parent": 654, "children": [656], "start_point": {"row": 176, "column": 40}, "end_point": {"row": 176, "column": 46}}, {"id": 656, "type": "pointer_expression", "text": "*obj", "parent": 655, "children": [657, 658], "start_point": {"row": 176, "column": 41}, "end_point": {"row": 176, "column": 45}}, {"id": 657, "type": "*", "text": "*", "parent": 656, "children": [], "start_point": {"row": 176, "column": 41}, "end_point": {"row": 176, "column": 42}}, {"id": 658, "type": "identifier", "text": "obj", "parent": 656, "children": [], "start_point": {"row": 176, "column": 42}, "end_point": {"row": 176, "column": 45}}, {"id": 659, "type": "identifier", "text": "GFP_KERNEL", "parent": 649, "children": [], "start_point": {"row": 176, "column": 48}, "end_point": {"row": 176, "column": 58}}, {"id": 660, "type": "if_statement", "text": "if (!obj)\n\t\treturn -ENOMEM;", "parent": 555, "children": [661, 665], "start_point": {"row": 177, "column": 1}, "end_point": {"row": 178, "column": 17}}, {"id": 661, "type": "parenthesized_expression", "text": "(!obj)", "parent": 660, "children": [662], "start_point": {"row": 177, "column": 4}, "end_point": {"row": 177, "column": 10}}, {"id": 662, "type": "unary_expression", "text": "!obj", "parent": 661, "children": [663, 664], "start_point": {"row": 177, "column": 5}, "end_point": {"row": 177, "column": 9}}, {"id": 663, "type": "!", "text": "!", "parent": 662, "children": [], "start_point": {"row": 177, "column": 5}, "end_point": {"row": 177, "column": 6}}, {"id": 664, "type": "identifier", "text": "obj", "parent": 662, "children": [], "start_point": {"row": 177, "column": 6}, "end_point": {"row": 177, "column": 9}}, {"id": 665, "type": "return_statement", "text": "return -ENOMEM;", "parent": 660, "children": [666], "start_point": {"row": 178, "column": 2}, "end_point": {"row": 178, "column": 17}}, {"id": 666, "type": "unary_expression", "text": "-ENOMEM", "parent": 665, "children": [667, 668], "start_point": {"row": 178, "column": 9}, "end_point": {"row": 178, "column": 16}}, {"id": 667, "type": "-", "text": "-", "parent": 666, "children": [], "start_point": {"row": 178, "column": 9}, "end_point": {"row": 178, "column": 10}}, {"id": 668, "type": "identifier", "text": "ENOMEM", "parent": 666, "children": [], "start_point": {"row": 178, "column": 10}, "end_point": {"row": 178, "column": 16}}, {"id": 669, "type": "assignment_expression", "text": "device->driver_data = obj", "parent": 555, "children": [670, 673, 674], "start_point": {"row": 180, "column": 1}, "end_point": {"row": 180, "column": 26}}, {"id": 670, "type": "field_expression", "text": "device->driver_data", "parent": 669, "children": [671, 672], "start_point": {"row": 180, "column": 1}, "end_point": {"row": 180, "column": 20}}, {"id": 671, "type": "identifier", "text": "device", "parent": 670, "children": [], "start_point": {"row": 180, "column": 1}, "end_point": {"row": 180, "column": 7}}, {"id": 672, "type": "field_identifier", "text": "driver_data", "parent": 670, "children": [], "start_point": {"row": 180, "column": 9}, "end_point": {"row": 180, "column": 20}}, {"id": 673, "type": "=", "text": "=", "parent": 669, "children": [], "start_point": {"row": 180, "column": 21}, "end_point": {"row": 180, "column": 22}}, {"id": 674, "type": "identifier", "text": "obj", "parent": 669, "children": [], "start_point": {"row": 180, "column": 23}, "end_point": {"row": 180, "column": 26}}, {"id": 675, "type": "assignment_expression", "text": "status = acpi_evaluate_integer(device->handle, \"PATC\", NULL,\n\t\t\t\t\t\t&trip_cnt)", "parent": 555, "children": [676, 677, 678], "start_point": {"row": 182, "column": 1}, "end_point": {"row": 183, "column": 16}}, {"id": 676, "type": "identifier", "text": "status", "parent": 675, "children": [], "start_point": {"row": 182, "column": 1}, "end_point": {"row": 182, "column": 7}}, {"id": 677, "type": "=", "text": "=", "parent": 675, "children": [], "start_point": {"row": 182, "column": 8}, "end_point": {"row": 182, "column": 9}}, {"id": 678, "type": "call_expression", "text": "acpi_evaluate_integer(device->handle, \"PATC\", NULL,\n\t\t\t\t\t\t&trip_cnt)", "parent": 675, "children": [679, 680], "start_point": {"row": 182, "column": 10}, "end_point": {"row": 183, "column": 16}}, {"id": 679, "type": "identifier", "text": "acpi_evaluate_integer", "parent": 678, "children": [], "start_point": {"row": 182, "column": 10}, "end_point": {"row": 182, "column": 31}}, {"id": 680, "type": "argument_list", "text": "(device->handle, \"PATC\", NULL,\n\t\t\t\t\t\t&trip_cnt)", "parent": 678, "children": [681, 684, 685, 687], "start_point": {"row": 182, "column": 31}, "end_point": {"row": 183, "column": 16}}, {"id": 681, "type": "field_expression", "text": "device->handle", "parent": 680, "children": [682, 683], "start_point": {"row": 182, "column": 32}, "end_point": {"row": 182, "column": 46}}, {"id": 682, "type": "identifier", "text": "device", "parent": 681, "children": [], "start_point": {"row": 182, "column": 32}, "end_point": {"row": 182, "column": 38}}, {"id": 683, "type": "field_identifier", "text": "handle", "parent": 681, "children": [], "start_point": {"row": 182, "column": 40}, "end_point": {"row": 182, "column": 46}}, {"id": 684, "type": "string_literal", "text": "\"PATC\"", "parent": 680, "children": [], "start_point": {"row": 182, "column": 48}, "end_point": {"row": 182, "column": 54}}, {"id": 685, "type": "null", "text": "NULL", "parent": 680, "children": [686], "start_point": {"row": 182, "column": 56}, "end_point": {"row": 182, "column": 60}}, {"id": 686, "type": "NULL", "text": "NULL", "parent": 685, "children": [], "start_point": {"row": 182, "column": 56}, "end_point": {"row": 182, "column": 60}}, {"id": 687, "type": "pointer_expression", "text": "&trip_cnt", "parent": 680, "children": [688], "start_point": {"row": 183, "column": 6}, "end_point": {"row": 183, "column": 15}}, {"id": 688, "type": "identifier", "text": "trip_cnt", "parent": 687, "children": [], "start_point": {"row": 183, "column": 7}, "end_point": {"row": 183, "column": 15}}, {"id": 689, "type": "if_statement", "text": "if (ACPI_FAILURE(status))\n\t\ttrip_cnt = 0;", "parent": 555, "children": [690], "start_point": {"row": 184, "column": 1}, "end_point": {"row": 185, "column": 15}}, {"id": 690, "type": "parenthesized_expression", "text": "(ACPI_FAILURE(status))", "parent": 689, "children": [691], "start_point": {"row": 184, "column": 4}, "end_point": {"row": 184, "column": 26}}, {"id": 691, "type": "call_expression", "text": "ACPI_FAILURE(status)", "parent": 690, "children": [692, 693], "start_point": {"row": 184, "column": 5}, "end_point": {"row": 184, "column": 25}}, {"id": 692, "type": "identifier", "text": "ACPI_FAILURE", "parent": 691, "children": [], "start_point": {"row": 184, "column": 5}, "end_point": {"row": 184, "column": 17}}, {"id": 693, "type": "argument_list", "text": "(status)", "parent": 691, "children": [694], "start_point": {"row": 184, "column": 17}, "end_point": {"row": 184, "column": 25}}, {"id": 694, "type": "identifier", "text": "status", "parent": 693, "children": [], "start_point": {"row": 184, "column": 18}, "end_point": {"row": 184, "column": 24}}, {"id": 695, "type": "assignment_expression", "text": "trip_cnt = 0", "parent": 689, "children": [696, 697, 698], "start_point": {"row": 185, "column": 2}, "end_point": {"row": 185, "column": 14}}, {"id": 696, "type": "identifier", "text": "trip_cnt", "parent": 695, "children": [], "start_point": {"row": 185, "column": 2}, "end_point": {"row": 185, "column": 10}}, {"id": 697, "type": "=", "text": "=", "parent": 695, "children": [], "start_point": {"row": 185, "column": 11}, "end_point": {"row": 185, "column": 12}}, {"id": 698, "type": "number_literal", "text": "0", "parent": 695, "children": [], "start_point": {"row": 185, "column": 13}, "end_point": {"row": 185, "column": 14}}, {"id": 699, "type": "if_statement", "text": "if (trip_cnt) {\n\t\t/* We have to cache, thresholds can't be readback */\n\t\tobj->thresholds = devm_kzalloc(&device->dev,\n\t\t\t\t\tsizeof(*obj->thresholds) * trip_cnt,\n\t\t\t\t\tGFP_KERNEL);\n\t\tif (!obj->thresholds)\n\t\t\treturn -ENOMEM;\n\t\ttrip_mask = BIT(trip_cnt) - 1;\n\t}", "parent": 555, "children": [700], "start_point": {"row": 187, "column": 1}, "end_point": {"row": 195, "column": 2}}, {"id": 700, "type": "parenthesized_expression", "text": "(trip_cnt)", "parent": 699, "children": [701], "start_point": {"row": 187, "column": 4}, "end_point": {"row": 187, "column": 14}}, {"id": 701, "type": "identifier", "text": "trip_cnt", "parent": 700, "children": [], "start_point": {"row": 187, "column": 5}, "end_point": {"row": 187, "column": 13}}, {"id": 702, "type": "assignment_expression", "text": "obj->thresholds = devm_kzalloc(&device->dev,\n\t\t\t\t\tsizeof(*obj->thresholds) * trip_cnt,\n\t\t\t\t\tGFP_KERNEL)", "parent": 699, "children": [703, 706, 707], "start_point": {"row": 189, "column": 2}, "end_point": {"row": 191, "column": 16}}, {"id": 703, "type": "field_expression", "text": "obj->thresholds", "parent": 702, "children": [704, 705], "start_point": {"row": 189, "column": 2}, "end_point": {"row": 189, "column": 17}}, {"id": 704, "type": "identifier", "text": "obj", "parent": 703, "children": [], "start_point": {"row": 189, "column": 2}, "end_point": {"row": 189, "column": 5}}, {"id": 705, "type": "field_identifier", "text": "thresholds", "parent": 703, "children": [], "start_point": {"row": 189, "column": 7}, "end_point": {"row": 189, "column": 17}}, {"id": 706, "type": "=", "text": "=", "parent": 702, "children": [], "start_point": {"row": 189, "column": 18}, "end_point": {"row": 189, "column": 19}}, {"id": 707, "type": "call_expression", "text": "devm_kzalloc(&device->dev,\n\t\t\t\t\tsizeof(*obj->thresholds) * trip_cnt,\n\t\t\t\t\tGFP_KERNEL)", "parent": 702, "children": [708, 709], "start_point": {"row": 189, "column": 20}, "end_point": {"row": 191, "column": 16}}, {"id": 708, "type": "identifier", "text": "devm_kzalloc", "parent": 707, "children": [], "start_point": {"row": 189, "column": 20}, "end_point": {"row": 189, "column": 32}}, {"id": 709, "type": "argument_list", "text": "(&device->dev,\n\t\t\t\t\tsizeof(*obj->thresholds) * trip_cnt,\n\t\t\t\t\tGFP_KERNEL)", "parent": 707, "children": [710, 714, 724], "start_point": {"row": 189, "column": 32}, "end_point": {"row": 191, "column": 16}}, {"id": 710, "type": "pointer_expression", "text": "&device->dev", "parent": 709, "children": [711], "start_point": {"row": 189, "column": 33}, "end_point": {"row": 189, "column": 45}}, {"id": 711, "type": "field_expression", "text": "device->dev", "parent": 710, "children": [712, 713], "start_point": {"row": 189, "column": 34}, "end_point": {"row": 189, "column": 45}}, {"id": 712, "type": "identifier", "text": "device", "parent": 711, "children": [], "start_point": {"row": 189, "column": 34}, "end_point": {"row": 189, "column": 40}}, {"id": 713, "type": "field_identifier", "text": "dev", "parent": 711, "children": [], "start_point": {"row": 189, "column": 42}, "end_point": {"row": 189, "column": 45}}, {"id": 714, "type": "binary_expression", "text": "sizeof(*obj->thresholds) * trip_cnt", "parent": 709, "children": [715, 722, 723], "start_point": {"row": 190, "column": 5}, "end_point": {"row": 190, "column": 40}}, {"id": 715, "type": "sizeof_expression", "text": "sizeof(*obj->thresholds)", "parent": 714, "children": [716], "start_point": {"row": 190, "column": 5}, "end_point": {"row": 190, "column": 29}}, {"id": 716, "type": "parenthesized_expression", "text": "(*obj->thresholds)", "parent": 715, "children": [717], "start_point": {"row": 190, "column": 11}, "end_point": {"row": 190, "column": 29}}, {"id": 717, "type": "pointer_expression", "text": "*obj->thresholds", "parent": 716, "children": [718, 719], "start_point": {"row": 190, "column": 12}, "end_point": {"row": 190, "column": 28}}, {"id": 718, "type": "*", "text": "*", "parent": 717, "children": [], "start_point": {"row": 190, "column": 12}, "end_point": {"row": 190, "column": 13}}, {"id": 719, "type": "field_expression", "text": "obj->thresholds", "parent": 717, "children": [720, 721], "start_point": {"row": 190, "column": 13}, "end_point": {"row": 190, "column": 28}}, {"id": 720, "type": "identifier", "text": "obj", "parent": 719, "children": [], "start_point": {"row": 190, "column": 13}, "end_point": {"row": 190, "column": 16}}, {"id": 721, "type": "field_identifier", "text": "thresholds", "parent": 719, "children": [], "start_point": {"row": 190, "column": 18}, "end_point": {"row": 190, "column": 28}}, {"id": 722, "type": "*", "text": "*", "parent": 714, "children": [], "start_point": {"row": 190, "column": 30}, "end_point": {"row": 190, "column": 31}}, {"id": 723, "type": "identifier", "text": "trip_cnt", "parent": 714, "children": [], "start_point": {"row": 190, "column": 32}, "end_point": {"row": 190, "column": 40}}, {"id": 724, "type": "identifier", "text": "GFP_KERNEL", "parent": 709, "children": [], "start_point": {"row": 191, "column": 5}, "end_point": {"row": 191, "column": 15}}, {"id": 725, "type": "if_statement", "text": "if (!obj->thresholds)\n\t\t\treturn -ENOMEM;", "parent": 699, "children": [726, 732], "start_point": {"row": 192, "column": 2}, "end_point": {"row": 193, "column": 18}}, {"id": 726, "type": "parenthesized_expression", "text": "(!obj->thresholds)", "parent": 725, "children": [727], "start_point": {"row": 192, "column": 5}, "end_point": {"row": 192, "column": 23}}, {"id": 727, "type": "unary_expression", "text": "!obj->thresholds", "parent": 726, "children": [728, 729], "start_point": {"row": 192, "column": 6}, "end_point": {"row": 192, "column": 22}}, {"id": 728, "type": "!", "text": "!", "parent": 727, "children": [], "start_point": {"row": 192, "column": 6}, "end_point": {"row": 192, "column": 7}}, {"id": 729, "type": "field_expression", "text": "obj->thresholds", "parent": 727, "children": [730, 731], "start_point": {"row": 192, "column": 7}, "end_point": {"row": 192, "column": 22}}, {"id": 730, "type": "identifier", "text": "obj", "parent": 729, "children": [], "start_point": {"row": 192, "column": 7}, "end_point": {"row": 192, "column": 10}}, {"id": 731, "type": "field_identifier", "text": "thresholds", "parent": 729, "children": [], "start_point": {"row": 192, "column": 12}, "end_point": {"row": 192, "column": 22}}, {"id": 732, "type": "return_statement", "text": "return -ENOMEM;", "parent": 725, "children": [733], "start_point": {"row": 193, "column": 3}, "end_point": {"row": 193, "column": 18}}, {"id": 733, "type": "unary_expression", "text": "-ENOMEM", "parent": 732, "children": [734, 735], "start_point": {"row": 193, "column": 10}, "end_point": {"row": 193, "column": 17}}, {"id": 734, "type": "-", "text": "-", "parent": 733, "children": [], "start_point": {"row": 193, "column": 10}, "end_point": {"row": 193, "column": 11}}, {"id": 735, "type": "identifier", "text": "ENOMEM", "parent": 733, "children": [], "start_point": {"row": 193, "column": 11}, "end_point": {"row": 193, "column": 17}}, {"id": 736, "type": "assignment_expression", "text": "trip_mask = BIT(trip_cnt) - 1", "parent": 699, "children": [737, 738, 739], "start_point": {"row": 194, "column": 2}, "end_point": {"row": 194, "column": 31}}, {"id": 737, "type": "identifier", "text": "trip_mask", "parent": 736, "children": [], "start_point": {"row": 194, "column": 2}, "end_point": {"row": 194, "column": 11}}, {"id": 738, "type": "=", "text": "=", "parent": 736, "children": [], "start_point": {"row": 194, "column": 12}, "end_point": {"row": 194, "column": 13}}, {"id": 739, "type": "binary_expression", "text": "BIT(trip_cnt) - 1", "parent": 736, "children": [740, 744, 745], "start_point": {"row": 194, "column": 14}, "end_point": {"row": 194, "column": 31}}, {"id": 740, "type": "call_expression", "text": "BIT(trip_cnt)", "parent": 739, "children": [741, 742], "start_point": {"row": 194, "column": 14}, "end_point": {"row": 194, "column": 27}}, {"id": 741, "type": "identifier", "text": "BIT", "parent": 740, "children": [], "start_point": {"row": 194, "column": 14}, "end_point": {"row": 194, "column": 17}}, {"id": 742, "type": "argument_list", "text": "(trip_cnt)", "parent": 740, "children": [743], "start_point": {"row": 194, "column": 17}, "end_point": {"row": 194, "column": 27}}, {"id": 743, "type": "identifier", "text": "trip_cnt", "parent": 742, "children": [], "start_point": {"row": 194, "column": 18}, "end_point": {"row": 194, "column": 26}}, {"id": 744, "type": "-", "text": "-", "parent": 739, "children": [], "start_point": {"row": 194, "column": 28}, "end_point": {"row": 194, "column": 29}}, {"id": 745, "type": "number_literal", "text": "1", "parent": 739, "children": [], "start_point": {"row": 194, "column": 30}, "end_point": {"row": 194, "column": 31}}, {"id": 746, "type": "assignment_expression", "text": "obj->tzone = thermal_zone_device_register(acpi_device_bid(device),\n\t\t\t\ttrip_cnt, trip_mask, device, &tzone_ops,\n\t\t\t\tNULL, 0, 0)", "parent": 555, "children": [747, 750, 751], "start_point": {"row": 196, "column": 1}, "end_point": {"row": 198, "column": 15}}, {"id": 747, "type": "field_expression", "text": "obj->tzone", "parent": 746, "children": [748, 749], "start_point": {"row": 196, "column": 1}, "end_point": {"row": 196, "column": 11}}, {"id": 748, "type": "identifier", "text": "obj", "parent": 747, "children": [], "start_point": {"row": 196, "column": 1}, "end_point": {"row": 196, "column": 4}}, {"id": 749, "type": "field_identifier", "text": "tzone", "parent": 747, "children": [], "start_point": {"row": 196, "column": 6}, "end_point": {"row": 196, "column": 11}}, {"id": 750, "type": "=", "text": "=", "parent": 746, "children": [], "start_point": {"row": 196, "column": 12}, "end_point": {"row": 196, "column": 13}}, {"id": 751, "type": "call_expression", "text": "thermal_zone_device_register(acpi_device_bid(device),\n\t\t\t\ttrip_cnt, trip_mask, device, &tzone_ops,\n\t\t\t\tNULL, 0, 0)", "parent": 746, "children": [752, 753], "start_point": {"row": 196, "column": 14}, "end_point": {"row": 198, "column": 15}}, {"id": 752, "type": "identifier", "text": "thermal_zone_device_register", "parent": 751, "children": [], "start_point": {"row": 196, "column": 14}, "end_point": {"row": 196, "column": 42}}, {"id": 753, "type": "argument_list", "text": "(acpi_device_bid(device),\n\t\t\t\ttrip_cnt, trip_mask, device, &tzone_ops,\n\t\t\t\tNULL, 0, 0)", "parent": 751, "children": [754, 758, 759, 760, 761, 763, 765, 766], "start_point": {"row": 196, "column": 42}, "end_point": {"row": 198, "column": 15}}, {"id": 754, "type": "call_expression", "text": "acpi_device_bid(device)", "parent": 753, "children": [755, 756], "start_point": {"row": 196, "column": 43}, "end_point": {"row": 196, "column": 66}}, {"id": 755, "type": "identifier", "text": "acpi_device_bid", "parent": 754, "children": [], "start_point": {"row": 196, "column": 43}, "end_point": {"row": 196, "column": 58}}, {"id": 756, "type": "argument_list", "text": "(device)", "parent": 754, "children": [757], "start_point": {"row": 196, "column": 58}, "end_point": {"row": 196, "column": 66}}, {"id": 757, "type": "identifier", "text": "device", "parent": 756, "children": [], "start_point": {"row": 196, "column": 59}, "end_point": {"row": 196, "column": 65}}, {"id": 758, "type": "identifier", "text": "trip_cnt", "parent": 753, "children": [], "start_point": {"row": 197, "column": 4}, "end_point": {"row": 197, "column": 12}}, {"id": 759, "type": "identifier", "text": "trip_mask", "parent": 753, "children": [], "start_point": {"row": 197, "column": 14}, "end_point": {"row": 197, "column": 23}}, {"id": 760, "type": "identifier", "text": "device", "parent": 753, "children": [], "start_point": {"row": 197, "column": 25}, "end_point": {"row": 197, "column": 31}}, {"id": 761, "type": "pointer_expression", "text": "&tzone_ops", "parent": 753, "children": [762], "start_point": {"row": 197, "column": 33}, "end_point": {"row": 197, "column": 43}}, {"id": 762, "type": "identifier", "text": "tzone_ops", "parent": 761, "children": [], "start_point": {"row": 197, "column": 34}, "end_point": {"row": 197, "column": 43}}, {"id": 763, "type": "null", "text": "NULL", "parent": 753, "children": [764], "start_point": {"row": 198, "column": 4}, "end_point": {"row": 198, "column": 8}}, {"id": 764, "type": "NULL", "text": "NULL", "parent": 763, "children": [], "start_point": {"row": 198, "column": 4}, "end_point": {"row": 198, "column": 8}}, {"id": 765, "type": "number_literal", "text": "0", "parent": 753, "children": [], "start_point": {"row": 198, "column": 10}, "end_point": {"row": 198, "column": 11}}, {"id": 766, "type": "number_literal", "text": "0", "parent": 753, "children": [], "start_point": {"row": 198, "column": 13}, "end_point": {"row": 198, "column": 14}}, {"id": 767, "type": "if_statement", "text": "if (IS_ERR(obj->tzone)) {\n\t\tresult = PTR_ERR(obj->tzone);\n\t\treturn result;\n\t}", "parent": 555, "children": [768], "start_point": {"row": 199, "column": 1}, "end_point": {"row": 202, "column": 2}}, {"id": 768, "type": "parenthesized_expression", "text": "(IS_ERR(obj->tzone))", "parent": 767, "children": [769], "start_point": {"row": 199, "column": 4}, "end_point": {"row": 199, "column": 24}}, {"id": 769, "type": "call_expression", "text": "IS_ERR(obj->tzone)", "parent": 768, "children": [770, 771], "start_point": {"row": 199, "column": 5}, "end_point": {"row": 199, "column": 23}}, {"id": 770, "type": "identifier", "text": "IS_ERR", "parent": 769, "children": [], "start_point": {"row": 199, "column": 5}, "end_point": {"row": 199, "column": 11}}, {"id": 771, "type": "argument_list", "text": "(obj->tzone)", "parent": 769, "children": [772], "start_point": {"row": 199, "column": 11}, "end_point": {"row": 199, "column": 23}}, {"id": 772, "type": "field_expression", "text": "obj->tzone", "parent": 771, "children": [773, 774], "start_point": {"row": 199, "column": 12}, "end_point": {"row": 199, "column": 22}}, {"id": 773, "type": "identifier", "text": "obj", "parent": 772, "children": [], "start_point": {"row": 199, "column": 12}, "end_point": {"row": 199, "column": 15}}, {"id": 774, "type": "field_identifier", "text": "tzone", "parent": 772, "children": [], "start_point": {"row": 199, "column": 17}, "end_point": {"row": 199, "column": 22}}, {"id": 775, "type": "assignment_expression", "text": "result = PTR_ERR(obj->tzone)", "parent": 767, "children": [776, 777, 778], "start_point": {"row": 200, "column": 2}, "end_point": {"row": 200, "column": 30}}, {"id": 776, "type": "identifier", "text": "result", "parent": 775, "children": [], "start_point": {"row": 200, "column": 2}, "end_point": {"row": 200, "column": 8}}, {"id": 777, "type": "=", "text": "=", "parent": 775, "children": [], "start_point": {"row": 200, "column": 9}, "end_point": {"row": 200, "column": 10}}, {"id": 778, "type": "call_expression", "text": "PTR_ERR(obj->tzone)", "parent": 775, "children": [779, 780], "start_point": {"row": 200, "column": 11}, "end_point": {"row": 200, "column": 30}}, {"id": 779, "type": "identifier", "text": "PTR_ERR", "parent": 778, "children": [], "start_point": {"row": 200, "column": 11}, "end_point": {"row": 200, "column": 18}}, {"id": 780, "type": "argument_list", "text": "(obj->tzone)", "parent": 778, "children": [781], "start_point": {"row": 200, "column": 18}, "end_point": {"row": 200, "column": 30}}, {"id": 781, "type": "field_expression", "text": "obj->tzone", "parent": 780, "children": [782, 783], "start_point": {"row": 200, "column": 19}, "end_point": {"row": 200, "column": 29}}, {"id": 782, "type": "identifier", "text": "obj", "parent": 781, "children": [], "start_point": {"row": 200, "column": 19}, "end_point": {"row": 200, "column": 22}}, {"id": 783, "type": "field_identifier", "text": "tzone", "parent": 781, "children": [], "start_point": {"row": 200, "column": 24}, "end_point": {"row": 200, "column": 29}}, {"id": 784, "type": "return_statement", "text": "return result;", "parent": 767, "children": [785], "start_point": {"row": 201, "column": 2}, "end_point": {"row": 201, "column": 16}}, {"id": 785, "type": "identifier", "text": "result", "parent": 784, "children": [], "start_point": {"row": 201, "column": 9}, "end_point": {"row": 201, "column": 15}}, {"id": 786, "type": "call_expression", "text": "strcpy(acpi_device_name(device), \"INT3403\")", "parent": 555, "children": [787, 788], "start_point": {"row": 204, "column": 1}, "end_point": {"row": 204, "column": 44}}, {"id": 787, "type": "identifier", "text": "strcpy", "parent": 786, "children": [], "start_point": {"row": 204, "column": 1}, "end_point": {"row": 204, "column": 7}}, {"id": 788, "type": "argument_list", "text": "(acpi_device_name(device), \"INT3403\")", "parent": 786, "children": [789, 793], "start_point": {"row": 204, "column": 7}, "end_point": {"row": 204, "column": 44}}, {"id": 789, "type": "call_expression", "text": "acpi_device_name(device)", "parent": 788, "children": [790, 791], "start_point": {"row": 204, "column": 8}, "end_point": {"row": 204, "column": 32}}, {"id": 790, "type": "identifier", "text": "acpi_device_name", "parent": 789, "children": [], "start_point": {"row": 204, "column": 8}, "end_point": {"row": 204, "column": 24}}, {"id": 791, "type": "argument_list", "text": "(device)", "parent": 789, "children": [792], "start_point": {"row": 204, "column": 24}, "end_point": {"row": 204, "column": 32}}, {"id": 792, "type": "identifier", "text": "device", "parent": 791, "children": [], "start_point": {"row": 204, "column": 25}, "end_point": {"row": 204, "column": 31}}, {"id": 793, "type": "string_literal", "text": "\"INT3403\"", "parent": 788, "children": [], "start_point": {"row": 204, "column": 34}, "end_point": {"row": 204, "column": 43}}, {"id": 794, "type": "call_expression", "text": "strcpy(acpi_device_class(device), ACPI_INT3403_CLASS)", "parent": 555, "children": [795, 796], "start_point": {"row": 205, "column": 1}, "end_point": {"row": 205, "column": 54}}, {"id": 795, "type": "identifier", "text": "strcpy", "parent": 794, "children": [], "start_point": {"row": 205, "column": 1}, "end_point": {"row": 205, "column": 7}}, {"id": 796, "type": "argument_list", "text": "(acpi_device_class(device), ACPI_INT3403_CLASS)", "parent": 794, "children": [797, 801], "start_point": {"row": 205, "column": 7}, "end_point": {"row": 205, "column": 54}}, {"id": 797, "type": "call_expression", "text": "acpi_device_class(device)", "parent": 796, "children": [798, 799], "start_point": {"row": 205, "column": 8}, "end_point": {"row": 205, "column": 33}}, {"id": 798, "type": "identifier", "text": "acpi_device_class", "parent": 797, "children": [], "start_point": {"row": 205, "column": 8}, "end_point": {"row": 205, "column": 25}}, {"id": 799, "type": "argument_list", "text": "(device)", "parent": 797, "children": [800], "start_point": {"row": 205, "column": 25}, "end_point": {"row": 205, "column": 33}}, {"id": 800, "type": "identifier", "text": "device", "parent": 799, "children": [], "start_point": {"row": 205, "column": 26}, "end_point": {"row": 205, "column": 32}}, {"id": 801, "type": "identifier", "text": "ACPI_INT3403_CLASS", "parent": 796, "children": [], "start_point": {"row": 205, "column": 35}, "end_point": {"row": 205, "column": 53}}, {"id": 802, "type": "return_statement", "text": "return 0;", "parent": 555, "children": [803], "start_point": {"row": 207, "column": 1}, "end_point": {"row": 207, "column": 10}}, {"id": 803, "type": "number_literal", "text": "0", "parent": 802, "children": [], "start_point": {"row": 207, "column": 8}, "end_point": {"row": 207, "column": 9}}, {"id": 804, "type": "function_definition", "text": "static int acpi_int3403_remove(struct acpi_device *device)\n{\n\tstruct int3403_sensor *obj;\n\n\tobj = acpi_driver_data(device);\n\tthermal_zone_device_unregister(obj->tzone);\n\n\treturn 0;\n}", "parent": null, "children": [805, 806], "start_point": {"row": 210, "column": 0}, "end_point": {"row": 218, "column": 1}}, {"id": 805, "type": "primitive_type", "text": "int", "parent": 804, "children": [], "start_point": {"row": 210, "column": 7}, "end_point": {"row": 210, "column": 10}}, {"id": 806, "type": "function_declarator", "text": "acpi_int3403_remove(struct acpi_device *device)", "parent": 804, "children": [807, 808], "start_point": {"row": 210, "column": 11}, "end_point": {"row": 210, "column": 58}}, {"id": 807, "type": "identifier", "text": "acpi_int3403_remove", "parent": 806, "children": [], "start_point": {"row": 210, "column": 11}, "end_point": {"row": 210, "column": 30}}, {"id": 808, "type": "parameter_list", "text": "(struct acpi_device *device)", "parent": 806, "children": [809], "start_point": {"row": 210, "column": 30}, "end_point": {"row": 210, "column": 58}}, {"id": 809, "type": "parameter_declaration", "text": "struct acpi_device *device", "parent": 808, "children": [810, 813], "start_point": {"row": 210, "column": 31}, "end_point": {"row": 210, "column": 57}}, {"id": 810, "type": "struct_specifier", "text": "struct acpi_device", "parent": 809, "children": [811, 812], "start_point": {"row": 210, "column": 31}, "end_point": {"row": 210, "column": 49}}, {"id": 811, "type": "struct", "text": "struct", "parent": 810, "children": [], "start_point": {"row": 210, "column": 31}, "end_point": {"row": 210, "column": 37}}, {"id": 812, "type": "type_identifier", "text": "acpi_device", "parent": 810, "children": [], "start_point": {"row": 210, "column": 38}, "end_point": {"row": 210, "column": 49}}, {"id": 813, "type": "pointer_declarator", "text": "*device", "parent": 809, "children": [814, 815], "start_point": {"row": 210, "column": 50}, "end_point": {"row": 210, "column": 57}}, {"id": 814, "type": "*", "text": "*", "parent": 813, "children": [], "start_point": {"row": 210, "column": 50}, "end_point": {"row": 210, "column": 51}}, {"id": 815, "type": "identifier", "text": "device", "parent": 813, "children": [], "start_point": {"row": 210, "column": 51}, "end_point": {"row": 210, "column": 57}}, {"id": 816, "type": "declaration", "text": "struct int3403_sensor *obj;", "parent": 804, "children": [817, 820], "start_point": {"row": 212, "column": 1}, "end_point": {"row": 212, "column": 28}}, {"id": 817, "type": "struct_specifier", "text": "struct int3403_sensor", "parent": 816, "children": [818, 819], "start_point": {"row": 212, "column": 1}, "end_point": {"row": 212, "column": 22}}, {"id": 818, "type": "struct", "text": "struct", "parent": 817, "children": [], "start_point": {"row": 212, "column": 1}, "end_point": {"row": 212, "column": 7}}, {"id": 819, "type": "type_identifier", "text": "int3403_sensor", "parent": 817, "children": [], "start_point": {"row": 212, "column": 8}, "end_point": {"row": 212, "column": 22}}, {"id": 820, "type": "pointer_declarator", "text": "*obj", "parent": 816, "children": [821, 822], "start_point": {"row": 212, "column": 23}, "end_point": {"row": 212, "column": 27}}, {"id": 821, "type": "*", "text": "*", "parent": 820, "children": [], "start_point": {"row": 212, "column": 23}, "end_point": {"row": 212, "column": 24}}, {"id": 822, "type": "identifier", "text": "obj", "parent": 820, "children": [], "start_point": {"row": 212, "column": 24}, "end_point": {"row": 212, "column": 27}}, {"id": 823, "type": "assignment_expression", "text": "obj = acpi_driver_data(device)", "parent": 804, "children": [824, 825, 826], "start_point": {"row": 214, "column": 1}, "end_point": {"row": 214, "column": 31}}, {"id": 824, "type": "identifier", "text": "obj", "parent": 823, "children": [], "start_point": {"row": 214, "column": 1}, "end_point": {"row": 214, "column": 4}}, {"id": 825, "type": "=", "text": "=", "parent": 823, "children": [], "start_point": {"row": 214, "column": 5}, "end_point": {"row": 214, "column": 6}}, {"id": 826, "type": "call_expression", "text": "acpi_driver_data(device)", "parent": 823, "children": [827, 828], "start_point": {"row": 214, "column": 7}, "end_point": {"row": 214, "column": 31}}, {"id": 827, "type": "identifier", "text": "acpi_driver_data", "parent": 826, "children": [], "start_point": {"row": 214, "column": 7}, "end_point": {"row": 214, "column": 23}}, {"id": 828, "type": "argument_list", "text": "(device)", "parent": 826, "children": [829], "start_point": {"row": 214, "column": 23}, "end_point": {"row": 214, "column": 31}}, {"id": 829, "type": "identifier", "text": "device", "parent": 828, "children": [], "start_point": {"row": 214, "column": 24}, "end_point": {"row": 214, "column": 30}}, {"id": 830, "type": "call_expression", "text": "thermal_zone_device_unregister(obj->tzone)", "parent": 804, "children": [831, 832], "start_point": {"row": 215, "column": 1}, "end_point": {"row": 215, "column": 43}}, {"id": 831, "type": "identifier", "text": "thermal_zone_device_unregister", "parent": 830, "children": [], "start_point": {"row": 215, "column": 1}, "end_point": {"row": 215, "column": 31}}, {"id": 832, "type": "argument_list", "text": "(obj->tzone)", "parent": 830, "children": [833], "start_point": {"row": 215, "column": 31}, "end_point": {"row": 215, "column": 43}}, {"id": 833, "type": "field_expression", "text": "obj->tzone", "parent": 832, "children": [834, 835], "start_point": {"row": 215, "column": 32}, "end_point": {"row": 215, "column": 42}}, {"id": 834, "type": "identifier", "text": "obj", "parent": 833, "children": [], "start_point": {"row": 215, "column": 32}, "end_point": {"row": 215, "column": 35}}, {"id": 835, "type": "field_identifier", "text": "tzone", "parent": 833, "children": [], "start_point": {"row": 215, "column": 37}, "end_point": {"row": 215, "column": 42}}, {"id": 836, "type": "return_statement", "text": "return 0;", "parent": 804, "children": [837], "start_point": {"row": 217, "column": 1}, "end_point": {"row": 217, "column": 10}}, {"id": 837, "type": "number_literal", "text": "0", "parent": 836, "children": [], "start_point": {"row": 217, "column": 8}, "end_point": {"row": 217, "column": 9}}, {"id": 838, "type": "call_expression", "text": "ACPI_MODULE_NAME(\"int3403\")", "parent": null, "children": [839, 840], "start_point": {"row": 220, "column": 0}, "end_point": {"row": 220, "column": 27}}, {"id": 839, "type": "identifier", "text": "ACPI_MODULE_NAME", "parent": 838, "children": [], "start_point": {"row": 220, "column": 0}, "end_point": {"row": 220, "column": 16}}, {"id": 840, "type": "argument_list", "text": "(\"int3403\")", "parent": 838, "children": [841], "start_point": {"row": 220, "column": 16}, "end_point": {"row": 220, "column": 27}}, {"id": 841, "type": "string_literal", "text": "\"int3403\"", "parent": 840, "children": [], "start_point": {"row": 220, "column": 17}, "end_point": {"row": 220, "column": 26}}, {"id": 842, "type": "declaration", "text": "static const struct acpi_device_id int3403_device_ids[] = {\n\t{\"INT3403\", 0},\n\t{\"\", 0},\n};", "parent": null, "children": [843, 846], "start_point": {"row": 221, "column": 0}, "end_point": {"row": 224, "column": 2}}, {"id": 843, "type": "struct_specifier", "text": "struct acpi_device_id", "parent": 842, "children": [844, 845], "start_point": {"row": 221, "column": 13}, "end_point": {"row": 221, "column": 34}}, {"id": 844, "type": "struct", "text": "struct", "parent": 843, "children": [], "start_point": {"row": 221, "column": 13}, "end_point": {"row": 221, "column": 19}}, {"id": 845, "type": "type_identifier", "text": "acpi_device_id", "parent": 843, "children": [], "start_point": {"row": 221, "column": 20}, "end_point": {"row": 221, "column": 34}}, {"id": 846, "type": "init_declarator", "text": "int3403_device_ids[] = {\n\t{\"INT3403\", 0},\n\t{\"\", 0},\n}", "parent": 842, "children": [847, 849, 850], "start_point": {"row": 221, "column": 35}, "end_point": {"row": 224, "column": 1}}, {"id": 847, "type": "array_declarator", "text": "int3403_device_ids[]", "parent": 846, "children": [848], "start_point": {"row": 221, "column": 35}, "end_point": {"row": 221, "column": 55}}, {"id": 848, "type": "identifier", "text": "int3403_device_ids", "parent": 847, "children": [], "start_point": {"row": 221, "column": 35}, "end_point": {"row": 221, "column": 53}}, {"id": 849, "type": "=", "text": "=", "parent": 846, "children": [], "start_point": {"row": 221, "column": 56}, "end_point": {"row": 221, "column": 57}}, {"id": 850, "type": "initializer_list", "text": "{\n\t{\"INT3403\", 0},\n\t{\"\", 0},\n}", "parent": 846, "children": [851, 854], "start_point": {"row": 221, "column": 58}, "end_point": {"row": 224, "column": 1}}, {"id": 851, "type": "initializer_list", "text": "{\"INT3403\", 0}", "parent": 850, "children": [852, 853], "start_point": {"row": 222, "column": 1}, "end_point": {"row": 222, "column": 15}}, {"id": 852, "type": "string_literal", "text": "\"INT3403\"", "parent": 851, "children": [], "start_point": {"row": 222, "column": 2}, "end_point": {"row": 222, "column": 11}}, {"id": 853, "type": "number_literal", "text": "0", "parent": 851, "children": [], "start_point": {"row": 222, "column": 13}, "end_point": {"row": 222, "column": 14}}, {"id": 854, "type": "initializer_list", "text": "{\"\", 0}", "parent": 850, "children": [855, 856], "start_point": {"row": 223, "column": 1}, "end_point": {"row": 223, "column": 8}}, {"id": 855, "type": "string_literal", "text": "\"\"", "parent": 854, "children": [], "start_point": {"row": 223, "column": 2}, "end_point": {"row": 223, "column": 4}}, {"id": 856, "type": "number_literal", "text": "0", "parent": 854, "children": [], "start_point": {"row": 223, "column": 6}, "end_point": {"row": 223, "column": 7}}, {"id": 857, "type": "call_expression", "text": "MODULE_DEVICE_TABLE(acpi, int3403_device_ids)", "parent": null, "children": [858, 859], "start_point": {"row": 225, "column": 0}, "end_point": {"row": 225, "column": 45}}, {"id": 858, "type": "identifier", "text": "MODULE_DEVICE_TABLE", "parent": 857, "children": [], "start_point": {"row": 225, "column": 0}, "end_point": {"row": 225, "column": 19}}, {"id": 859, "type": "argument_list", "text": "(acpi, int3403_device_ids)", "parent": 857, "children": [860, 861], "start_point": {"row": 225, "column": 19}, "end_point": {"row": 225, "column": 45}}, {"id": 860, "type": "identifier", "text": "acpi", "parent": 859, "children": [], "start_point": {"row": 225, "column": 20}, "end_point": {"row": 225, "column": 24}}, {"id": 861, "type": "identifier", "text": "int3403_device_ids", "parent": 859, "children": [], "start_point": {"row": 225, "column": 26}, "end_point": {"row": 225, "column": 44}}, {"id": 862, "type": "declaration", "text": "static struct acpi_driver acpi_int3403_driver = {\n\t.name = \"INT3403\",\n\t.class = ACPI_INT3403_CLASS,\n\t.ids = int3403_device_ids,\n\t.ops = {\n\t\t.add = acpi_int3403_add,\n\t\t.remove = acpi_int3403_remove,\n\t\t.notify = acpi_thermal_notify,\n\t\t},\n};", "parent": null, "children": [863, 866], "start_point": {"row": 227, "column": 0}, "end_point": {"row": 236, "column": 2}}, {"id": 863, "type": "struct_specifier", "text": "struct acpi_driver", "parent": 862, "children": [864, 865], "start_point": {"row": 227, "column": 7}, "end_point": {"row": 227, "column": 25}}, {"id": 864, "type": "struct", "text": "struct", "parent": 863, "children": [], "start_point": {"row": 227, "column": 7}, "end_point": {"row": 227, "column": 13}}, {"id": 865, "type": "type_identifier", "text": "acpi_driver", "parent": 863, "children": [], "start_point": {"row": 227, "column": 14}, "end_point": {"row": 227, "column": 25}}, {"id": 866, "type": "init_declarator", "text": "acpi_int3403_driver = {\n\t.name = \"INT3403\",\n\t.class = ACPI_INT3403_CLASS,\n\t.ids = int3403_device_ids,\n\t.ops = {\n\t\t.add = acpi_int3403_add,\n\t\t.remove = acpi_int3403_remove,\n\t\t.notify = acpi_thermal_notify,\n\t\t},\n}", "parent": 862, "children": [867, 868, 869], "start_point": {"row": 227, "column": 26}, "end_point": {"row": 236, "column": 1}}, {"id": 867, "type": "identifier", "text": "acpi_int3403_driver", "parent": 866, "children": [], "start_point": {"row": 227, "column": 26}, "end_point": {"row": 227, "column": 45}}, {"id": 868, "type": "=", "text": "=", "parent": 866, "children": [], "start_point": {"row": 227, "column": 46}, "end_point": {"row": 227, "column": 47}}, {"id": 869, "type": "initializer_list", "text": "{\n\t.name = \"INT3403\",\n\t.class = ACPI_INT3403_CLASS,\n\t.ids = int3403_device_ids,\n\t.ops = {\n\t\t.add = acpi_int3403_add,\n\t\t.remove = acpi_int3403_remove,\n\t\t.notify = acpi_thermal_notify,\n\t\t},\n}", "parent": 866, "children": [870, 875, 879, 884], "start_point": {"row": 227, "column": 48}, "end_point": {"row": 236, "column": 1}}, {"id": 870, "type": "initializer_pair", "text": ".name = \"INT3403\"", "parent": 869, "children": [871, 873, 874], "start_point": {"row": 228, "column": 1}, "end_point": {"row": 228, "column": 18}}, {"id": 871, "type": "field_designator", "text": ".name", "parent": 870, "children": [872], "start_point": {"row": 228, "column": 1}, "end_point": {"row": 228, "column": 6}}, {"id": 872, "type": "field_identifier", "text": "name", "parent": 871, "children": [], "start_point": {"row": 228, "column": 2}, "end_point": {"row": 228, "column": 6}}, {"id": 873, "type": "=", "text": "=", "parent": 870, "children": [], "start_point": {"row": 228, "column": 7}, "end_point": {"row": 228, "column": 8}}, {"id": 874, "type": "string_literal", "text": "\"INT3403\"", "parent": 870, "children": [], "start_point": {"row": 228, "column": 9}, "end_point": {"row": 228, "column": 18}}, {"id": 875, "type": "initializer_pair", "text": ".class = ACPI_INT3403_CLASS", "parent": 869, "children": [876, 877, 878], "start_point": {"row": 229, "column": 1}, "end_point": {"row": 229, "column": 28}}, {"id": 876, "type": "field_designator", "text": ".class", "parent": 875, "children": [], "start_point": {"row": 229, "column": 1}, "end_point": {"row": 229, "column": 7}}, {"id": 877, "type": "=", "text": "=", "parent": 875, "children": [], "start_point": {"row": 229, "column": 8}, "end_point": {"row": 229, "column": 9}}, {"id": 878, "type": "identifier", "text": "ACPI_INT3403_CLASS", "parent": 875, "children": [], "start_point": {"row": 229, "column": 10}, "end_point": {"row": 229, "column": 28}}, {"id": 879, "type": "initializer_pair", "text": ".ids = int3403_device_ids", "parent": 869, "children": [880, 882, 883], "start_point": {"row": 230, "column": 1}, "end_point": {"row": 230, "column": 26}}, {"id": 880, "type": "field_designator", "text": ".ids", "parent": 879, "children": [881], "start_point": {"row": 230, "column": 1}, "end_point": {"row": 230, "column": 5}}, {"id": 881, "type": "field_identifier", "text": "ids", "parent": 880, "children": [], "start_point": {"row": 230, "column": 2}, "end_point": {"row": 230, "column": 5}}, {"id": 882, "type": "=", "text": "=", "parent": 879, "children": [], "start_point": {"row": 230, "column": 6}, "end_point": {"row": 230, "column": 7}}, {"id": 883, "type": "identifier", "text": "int3403_device_ids", "parent": 879, "children": [], "start_point": {"row": 230, "column": 8}, "end_point": {"row": 230, "column": 26}}, {"id": 884, "type": "initializer_pair", "text": ".ops = {\n\t\t.add = acpi_int3403_add,\n\t\t.remove = acpi_int3403_remove,\n\t\t.notify = acpi_thermal_notify,\n\t\t}", "parent": 869, "children": [885, 887, 888], "start_point": {"row": 231, "column": 1}, "end_point": {"row": 235, "column": 3}}, {"id": 885, "type": "field_designator", "text": ".ops", "parent": 884, "children": [886], "start_point": {"row": 231, "column": 1}, "end_point": {"row": 231, "column": 5}}, {"id": 886, "type": "field_identifier", "text": "ops", "parent": 885, "children": [], "start_point": {"row": 231, "column": 2}, "end_point": {"row": 231, "column": 5}}, {"id": 887, "type": "=", "text": "=", "parent": 884, "children": [], "start_point": {"row": 231, "column": 6}, "end_point": {"row": 231, "column": 7}}, {"id": 888, "type": "initializer_list", "text": "{\n\t\t.add = acpi_int3403_add,\n\t\t.remove = acpi_int3403_remove,\n\t\t.notify = acpi_thermal_notify,\n\t\t}", "parent": 884, "children": [889, 894, 899], "start_point": {"row": 231, "column": 8}, "end_point": {"row": 235, "column": 3}}, {"id": 889, "type": "initializer_pair", "text": ".add = acpi_int3403_add", "parent": 888, "children": [890, 892, 893], "start_point": {"row": 232, "column": 2}, "end_point": {"row": 232, "column": 25}}, {"id": 890, "type": "field_designator", "text": ".add", "parent": 889, "children": [891], "start_point": {"row": 232, "column": 2}, "end_point": {"row": 232, "column": 6}}, {"id": 891, "type": "field_identifier", "text": "add", "parent": 890, "children": [], "start_point": {"row": 232, "column": 3}, "end_point": {"row": 232, "column": 6}}, {"id": 892, "type": "=", "text": "=", "parent": 889, "children": [], "start_point": {"row": 232, "column": 7}, "end_point": {"row": 232, "column": 8}}, {"id": 893, "type": "identifier", "text": "acpi_int3403_add", "parent": 889, "children": [], "start_point": {"row": 232, "column": 9}, "end_point": {"row": 232, "column": 25}}, {"id": 894, "type": "initializer_pair", "text": ".remove = acpi_int3403_remove", "parent": 888, "children": [895, 897, 898], "start_point": {"row": 233, "column": 2}, "end_point": {"row": 233, "column": 31}}, {"id": 895, "type": "field_designator", "text": ".remove", "parent": 894, "children": [896], "start_point": {"row": 233, "column": 2}, "end_point": {"row": 233, "column": 9}}, {"id": 896, "type": "field_identifier", "text": "remove", "parent": 895, "children": [], "start_point": {"row": 233, "column": 3}, "end_point": {"row": 233, "column": 9}}, {"id": 897, "type": "=", "text": "=", "parent": 894, "children": [], "start_point": {"row": 233, "column": 10}, "end_point": {"row": 233, "column": 11}}, {"id": 898, "type": "identifier", "text": "acpi_int3403_remove", "parent": 894, "children": [], "start_point": {"row": 233, "column": 12}, "end_point": {"row": 233, "column": 31}}, {"id": 899, "type": "initializer_pair", "text": ".notify = acpi_thermal_notify", "parent": 888, "children": [900, 902, 903], "start_point": {"row": 234, "column": 2}, "end_point": {"row": 234, "column": 31}}, {"id": 900, "type": "field_designator", "text": ".notify", "parent": 899, "children": [901], "start_point": {"row": 234, "column": 2}, "end_point": {"row": 234, "column": 9}}, {"id": 901, "type": "field_identifier", "text": "notify", "parent": 900, "children": [], "start_point": {"row": 234, "column": 3}, "end_point": {"row": 234, "column": 9}}, {"id": 902, "type": "=", "text": "=", "parent": 899, "children": [], "start_point": {"row": 234, "column": 10}, "end_point": {"row": 234, "column": 11}}, {"id": 903, "type": "identifier", "text": "acpi_thermal_notify", "parent": 899, "children": [], "start_point": {"row": 234, "column": 12}, "end_point": {"row": 234, "column": 31}}, {"id": 904, "type": "call_expression", "text": "module_acpi_driver(acpi_int3403_driver)", "parent": null, "children": [905, 906], "start_point": {"row": 238, "column": 0}, "end_point": {"row": 238, "column": 39}}, {"id": 905, "type": "identifier", "text": "module_acpi_driver", "parent": 904, "children": [], "start_point": {"row": 238, "column": 0}, "end_point": {"row": 238, "column": 18}}, {"id": 906, "type": "argument_list", "text": "(acpi_int3403_driver)", "parent": 904, "children": [907], "start_point": {"row": 238, "column": 18}, "end_point": {"row": 238, "column": 39}}, {"id": 907, "type": "identifier", "text": "acpi_int3403_driver", "parent": 906, "children": [], "start_point": {"row": 238, "column": 19}, "end_point": {"row": 238, "column": 38}}, {"id": 908, "type": "call_expression", "text": "MODULE_AUTHOR(\"<NAME> <<EMAIL>>\")", "parent": null, "children": [909, 910], "start_point": {"row": 240, "column": 0}, "end_point": {"row": 240, "column": 33}}, {"id": 909, "type": "identifier", "text": "MODULE_AUTHOR", "parent": 908, "children": [], "start_point": {"row": 240, "column": 0}, "end_point": {"row": 240, "column": 13}}, {"id": 910, "type": "argument_list", "text": "(\"<NAME> <<EMAIL>>\")", "parent": 908, "children": [911], "start_point": {"row": 240, "column": 13}, "end_point": {"row": 240, "column": 33}}, {"id": 911, "type": "string_literal", "text": "\"<NAME> <<EMAIL>>\"", "parent": 910, "children": [], "start_point": {"row": 240, "column": 14}, "end_point": {"row": 240, "column": 32}}, {"id": 912, "type": "call_expression", "text": "MODULE_LICENSE(\"GPL v2\")", "parent": null, "children": [913, 914], "start_point": {"row": 241, "column": 0}, "end_point": {"row": 241, "column": 24}}, {"id": 913, "type": "identifier", "text": "MODULE_LICENSE", "parent": 912, "children": [], "start_point": {"row": 241, "column": 0}, "end_point": {"row": 241, "column": 14}}, {"id": 914, "type": "argument_list", "text": "(\"GPL v2\")", "parent": 912, "children": [915], "start_point": {"row": 241, "column": 14}, "end_point": {"row": 241, "column": 24}}, {"id": 915, "type": "string_literal", "text": "\"GPL v2\"", "parent": 914, "children": [], "start_point": {"row": 241, "column": 15}, "end_point": {"row": 241, "column": 23}}, {"id": 916, "type": "call_expression", "text": "MODULE_DESCRIPTION(\"ACPI INT3403 thermal driver\")", "parent": null, "children": [917, 918], "start_point": {"row": 242, "column": 0}, "end_point": {"row": 242, "column": 49}}, {"id": 917, "type": "identifier", "text": "MODULE_DESCRIPTION", "parent": 916, "children": [], "start_point": {"row": 242, "column": 0}, "end_point": {"row": 242, "column": 18}}, {"id": 918, "type": "argument_list", "text": "(\"ACPI INT3403 thermal driver\")", "parent": 916, "children": [919], "start_point": {"row": 242, "column": 18}, "end_point": {"row": 242, "column": 49}}, {"id": 919, "type": "string_literal", "text": "\"ACPI INT3403 thermal driver\"", "parent": 918, "children": [], "start_point": {"row": 242, "column": 19}, "end_point": {"row": 242, "column": 48}}]}, "node_categories": {"declarations": {"functions": [30, 41, 73, 75, 149, 151, 227, 229, 286, 288, 316, 318, 480, 482, 555, 557, 804, 806], "variables": [59, 66, 78, 85, 92, 104, 110, 154, 161, 164, 171, 183, 189, 232, 239, 242, 249, 261, 291, 298, 301, 321, 328, 331, 336, 348, 351, 356, 362, 447, 485, 492, 495, 560, 567, 573, 579, 582, 589, 595, 809, 816, 842, 862], "classes": [56, 57, 60, 61, 79, 80, 93, 94, 155, 156, 172, 173, 233, 234, 250, 251, 262, 263, 292, 293, 322, 323, 337, 338, 363, 364, 448, 449, 486, 487, 496, 497, 561, 562, 583, 584, 810, 811, 817, 818, 843, 844, 863, 864], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13, 15, 16], "modules": [], "enums": [302, 303]}, "statements": {"expressions": [101, 116, 119, 125, 128, 129, 134, 138, 142, 180, 195, 198, 204, 207, 208, 213, 217, 221, 258, 270, 275, 279, 280, 309, 345, 371, 375, 379, 380, 385, 386, 389, 396, 399, 403, 409, 410, 417, 422, 423, 433, 436, 439, 440, 503, 504, 511, 516, 517, 523, 533, 536, 543, 546, 547, 602, 603, 607, 613, 616, 622, 625, 626, 631, 635, 636, 641, 647, 650, 651, 654, 655, 656, 661, 662, 666, 670, 678, 681, 687, 690, 691, 700, 703, 707, 710, 711, 714, 715, 716, 717, 719, 726, 727, 729, 733, 739, 740, 747, 751, 754, 761, 768, 769, 772, 778, 781, 786, 789, 794, 797, 826, 830, 833, 838, 857, 904, 908, 912, 916], "assignments": [113, 137, 192, 216, 274, 308, 393, 414, 421, 430, 508, 610, 644, 669, 675, 695, 702, 736, 746, 775, 823], "loops": [], "conditionals": [20, 24, 28, 32, 34, 35, 39, 43, 45, 46, 50, 54, 58, 62, 65, 67, 72, 76, 81, 84, 86, 91, 95, 99, 102, 103, 105, 109, 111, 112, 114, 117, 120, 121, 126, 127, 130, 132, 136, 140, 143, 145, 146, 152, 157, 160, 163, 165, 170, 174, 178, 181, 182, 184, 188, 190, 191, 193, 196, 199, 200, 205, 206, 209, 211, 215, 219, 222, 230, 235, 238, 241, 243, 248, 252, 256, 259, 260, 264, 268, 271, 273, 277, 281, 282, 283, 289, 294, 297, 300, 304, 307, 311, 313, 319, 324, 327, 330, 332, 335, 339, 343, 346, 347, 349, 350, 354, 359, 365, 369, 372, 374, 376, 378, 381, 383, 384, 387, 390, 391, 392, 394, 397, 400, 401, 402, 404, 406, 407, 408, 411, 413, 415, 419, 424, 425, 426, 428, 431, 435, 437, 441, 442, 446, 450, 452, 457, 459, 462, 464, 467, 469, 472, 474, 477, 479, 483, 488, 491, 493, 494, 498, 501, 502, 506, 509, 512, 514, 515, 519, 521, 522, 524, 525, 526, 527, 530, 531, 532, 534, 537, 538, 541, 544, 548, 549, 552, 558, 563, 566, 570, 574, 578, 580, 581, 585, 588, 590, 594, 598, 601, 605, 609, 611, 614, 617, 618, 623, 624, 627, 629, 633, 634, 637, 639, 643, 645, 648, 652, 653, 658, 659, 660, 664, 668, 671, 672, 674, 676, 679, 682, 683, 688, 689, 692, 694, 696, 699, 701, 704, 705, 708, 712, 713, 720, 721, 723, 724, 725, 730, 731, 735, 737, 741, 743, 748, 749, 752, 755, 757, 758, 759, 760, 762, 767, 770, 773, 774, 776, 779, 782, 783, 785, 787, 790, 792, 795, 798, 800, 801, 807, 812, 815, 819, 822, 824, 827, 829, 831, 834, 835, 839, 845, 848, 858, 860, 861, 865, 867, 872, 878, 881, 883, 886, 891, 893, 896, 898, 901, 903, 905, 907, 909, 913, 917], "returns": [133, 147, 212, 225, 284, 314, 445, 507, 520, 606, 630, 640, 665, 732, 784, 802, 836], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 122, 148, 201, 224, 226, 285, 315, 355, 361, 382, 443, 550, 572, 600, 619, 684, 698, 745, 765, 766, 793, 803, 837, 841, 852, 853, 855, 856, 874, 911, 915, 919], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": [456, 461, 466, 471, 476, 871, 876, 880, 885, 890, 895, 900]}}, "cross_language_map": {"function_declarations": [{"node_id": 30, "universal_type": "function", "name": "unknown", "text_snippet": "#define DECI_KELVIN_TO_MILLI_CELSIUS(t, off) (((t) - (off)) * 100)\n"}, {"node_id": 41, "universal_type": "function", "name": "unknown", "text_snippet": "#define MILLI_CELSIUS_TO_DECI_KELVIN(t, off) (((t) / 100) + (off))\n"}, {"node_id": 73, "universal_type": "function", "name": "sys_get_curr_temp", "text_snippet": "static int sys_get_curr_temp(struct thermal_zone_device *tzone,\n\t\t\t\tunsigned long *temp)\n{\n\tstruct a"}, {"node_id": 75, "universal_type": "function", "name": "unknown", "text_snippet": "sys_get_curr_temp(struct thermal_zone_device *tzone,\n\t\t\t\tunsigned long *temp)"}, {"node_id": 149, "universal_type": "function", "name": "sys_get_trip_hyst", "text_snippet": "static int sys_get_trip_hyst(struct thermal_zone_device *tzone,\n\t\tint trip, unsigned long *temp)\n{\n\t"}, {"node_id": 151, "universal_type": "function", "name": "trip,", "text_snippet": "sys_get_trip_hyst(struct thermal_zone_device *tzone,\n\t\tint trip, unsigned long *temp)"}, {"node_id": 227, "universal_type": "function", "name": "sys_get_trip_temp", "text_snippet": "static int sys_get_trip_temp(struct thermal_zone_device *tzone,\n\t\tint trip, unsigned long *temp)\n{\n\t"}, {"node_id": 229, "universal_type": "function", "name": "trip,", "text_snippet": "sys_get_trip_temp(struct thermal_zone_device *tzone,\n\t\tint trip, unsigned long *temp)"}, {"node_id": 286, "universal_type": "function", "name": "sys_get_trip_type", "text_snippet": "static int sys_get_trip_type(struct thermal_zone_device *thermal,\n\t\tint trip, enum thermal_trip_type"}, {"node_id": 288, "universal_type": "function", "name": "trip,", "text_snippet": "sys_get_trip_type(struct thermal_zone_device *thermal,\n\t\tint trip, enum thermal_trip_type *type)"}, {"node_id": 316, "universal_type": "function", "name": "sys_set_trip_temp", "text_snippet": "int sys_set_trip_temp(struct thermal_zone_device *tzone, int trip,\n\t\t\t\t\t\t\tunsigned long temp)\n{\n\tstr"}, {"node_id": 318, "universal_type": "function", "name": "trip,", "text_snippet": "sys_set_trip_temp(struct thermal_zone_device *tzone, int trip,\n\t\t\t\t\t\t\tunsigned long temp)"}, {"node_id": 480, "universal_type": "function", "name": "acpi_thermal_notify", "text_snippet": "static void acpi_thermal_notify(struct acpi_device *device, u32 event)\n{\n\tstruct int3403_sensor *obj"}, {"node_id": 482, "universal_type": "function", "name": "unknown", "text_snippet": "acpi_thermal_notify(struct acpi_device *device, u32 event)"}, {"node_id": 555, "universal_type": "function", "name": "acpi_int3403_add", "text_snippet": "static int acpi_int3403_add(struct acpi_device *device)\n{\n\tint result = 0;\n\tunsigned long long ptyp;"}, {"node_id": 557, "universal_type": "function", "name": "unknown", "text_snippet": "acpi_int3403_add(struct acpi_device *device)"}, {"node_id": 804, "universal_type": "function", "name": "acpi_int3403_remove", "text_snippet": "static int acpi_int3403_remove(struct acpi_device *device)\n{\n\tstruct int3403_sensor *obj;\n\n\tobj = ac"}, {"node_id": 806, "universal_type": "function", "name": "unknown", "text_snippet": "acpi_int3403_remove(struct acpi_device *device)"}], "class_declarations": [{"node_id": 56, "universal_type": "class", "name": "int3403_sensor", "text_snippet": "struct int3403_sensor {\n\tstruct thermal_zone_device *tzone;\n\tunsigned long *thresholds;\n}"}, {"node_id": 57, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 60, "universal_type": "class", "name": "thermal_zone_device", "text_snippet": "struct thermal_zone_device"}, {"node_id": 61, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 79, "universal_type": "class", "name": "thermal_zone_device", "text_snippet": "struct thermal_zone_device"}, {"node_id": 80, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 93, "universal_type": "class", "name": "acpi_device", "text_snippet": "struct acpi_device"}, {"node_id": 94, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 155, "universal_type": "class", "name": "thermal_zone_device", "text_snippet": "struct thermal_zone_device"}, {"node_id": 156, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 172, "universal_type": "class", "name": "acpi_device", "text_snippet": "struct acpi_device"}, {"node_id": 173, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 233, "universal_type": "class", "name": "thermal_zone_device", "text_snippet": "struct thermal_zone_device"}, {"node_id": 234, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 250, "universal_type": "class", "name": "acpi_device", "text_snippet": "struct acpi_device"}, {"node_id": 251, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 262, "universal_type": "class", "name": "int3403_sensor", "text_snippet": "struct int3403_sensor"}, {"node_id": 263, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 292, "universal_type": "class", "name": "thermal_zone_device", "text_snippet": "struct thermal_zone_device"}, {"node_id": 293, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 322, "universal_type": "class", "name": "thermal_zone_device", "text_snippet": "struct thermal_zone_device"}, {"node_id": 323, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 337, "universal_type": "class", "name": "acpi_device", "text_snippet": "struct acpi_device"}, {"node_id": 338, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 363, "universal_type": "class", "name": "int3403_sensor", "text_snippet": "struct int3403_sensor"}, {"node_id": 364, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 448, "universal_type": "class", "name": "thermal_zone_device_ops", "text_snippet": "struct thermal_zone_device_ops"}, {"node_id": 449, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 486, "universal_type": "class", "name": "acpi_device", "text_snippet": "struct acpi_device"}, {"node_id": 487, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 496, "universal_type": "class", "name": "int3403_sensor", "text_snippet": "struct int3403_sensor"}, {"node_id": 497, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 561, "universal_type": "class", "name": "acpi_device", "text_snippet": "struct acpi_device"}, {"node_id": 562, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 583, "universal_type": "class", "name": "int3403_sensor", "text_snippet": "struct int3403_sensor"}, {"node_id": 584, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 810, "universal_type": "class", "name": "acpi_device", "text_snippet": "struct acpi_device"}, {"node_id": 811, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 817, "universal_type": "class", "name": "int3403_sensor", "text_snippet": "struct int3403_sensor"}, {"node_id": 818, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 843, "universal_type": "class", "name": "acpi_device_id", "text_snippet": "struct acpi_device_id"}, {"node_id": 844, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 863, "universal_type": "class", "name": "acpi_driver", "text_snippet": "struct acpi_driver"}, {"node_id": 864, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include <linux/kernel.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <linux/module.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <linux/init.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <linux/types.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <linux/acpi.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <linux/thermal.h>\n"}, {"node_id": 16, "text": "#include"}]}, "original_source_code": "/*\n * ACPI INT3403 thermal driver\n * Copyright (c) 2013, Intel Corporation.\n *\n * This program is free software; you can redistribute it and/or modify it\n * under the terms and conditions of the GNU General Public License,\n * version 2, as published by the Free Software Foundation.\n *\n * This program is distributed in the hope it will be useful, but WITHOUT\n * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\n * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for\n * more details.\n */\n\n#include <linux/kernel.h>\n#include <linux/module.h>\n#include <linux/init.h>\n#include <linux/types.h>\n#include <linux/acpi.h>\n#include <linux/thermal.h>\n\n#define INT3403_TYPE_SENSOR\t\t0x03\n#define INT3403_PERF_CHANGED_EVENT\t0x80\n#define INT3403_THERMAL_EVENT\t\t0x90\n\n#define DECI_KELVIN_TO_MILLI_CELSIUS(t, off) (((t) - (off)) * 100)\n#define KELVIN_OFFSET\t2732\n#define MILLI_CELSIUS_TO_DECI_KELVIN(t, off) (((t) / 100) + (off))\n\n#define ACPI_INT3403_CLASS\t\t\"int3403\"\n#define ACPI_INT3403_FILE_STATE\t\t\"state\"\n\nstruct int3403_sensor {\n\tstruct thermal_zone_device *tzone;\n\tunsigned long *thresholds;\n};\n\nstatic int sys_get_curr_temp(struct thermal_zone_device *tzone,\n\t\t\t\tunsigned long *temp)\n{\n\tstruct acpi_device *device = tzone->devdata;\n\tunsigned long long tmp;\n\tacpi_status status;\n\n\tstatus = acpi_evaluate_integer(device->handle, \"_TMP\", NULL, &tmp);\n\tif (ACPI_FAILURE(status))\n\t\treturn -EIO;\n\n\t*temp = DECI_KELVIN_TO_MILLI_CELSIUS(tmp, KELVIN_OFFSET);\n\n\treturn 0;\n}\n\nstatic int sys_get_trip_hyst(struct thermal_zone_device *tzone,\n\t\tint trip, unsigned long *temp)\n{\n\tstruct acpi_device *device = tzone->devdata;\n\tunsigned long long hyst;\n\tacpi_status status;\n\n\tstatus = acpi_evaluate_integer(device->handle, \"GTSH\", NULL, &hyst);\n\tif (ACPI_FAILURE(status))\n\t\treturn -EIO;\n\n\t/*\n\t * Thermal hysteresis represents a temperature difference.\n\t * Kelvin and Celsius have same degree size. So the\n\t * conversion here between tenths of degree Kelvin unit\n\t * and Milli-Celsius unit is just to multiply 100.\n\t */\n\t*temp = hyst * 100;\n\n\treturn 0;\n}\n\nstatic int sys_get_trip_temp(struct thermal_zone_device *tzone,\n\t\tint trip, unsigned long *temp)\n{\n\tstruct acpi_device *device = tzone->devdata;\n\tstruct int3403_sensor *obj = acpi_driver_data(device);\n\n\t/*\n\t * get_trip_temp is a mandatory callback but\n\t * PATx method doesn't return any value, so return\n\t * cached value, which was last set from user space.\n\t */\n\t*temp = obj->thresholds[trip];\n\n\treturn 0;\n}\n\nstatic int sys_get_trip_type(struct thermal_zone_device *thermal,\n\t\tint trip, enum thermal_trip_type *type)\n{\n\t/* Mandatory callback, may not mean much here */\n\t*type = THERMAL_TRIP_PASSIVE;\n\n\treturn 0;\n}\n\nint sys_set_trip_temp(struct thermal_zone_device *tzone, int trip,\n\t\t\t\t\t\t\tunsigned long temp)\n{\n\tstruct acpi_device *device = tzone->devdata;\n\tacpi_status status;\n\tchar name[10];\n\tint ret = 0;\n\tstruct int3403_sensor *obj = acpi_driver_data(device);\n\n\tsnprintf(name, sizeof(name), \"PAT%d\", trip);\n\tif (acpi_has_method(device->handle, name)) {\n\t\tstatus = acpi_execute_simple_method(device->handle, name,\n\t\t\t\tMILLI_CELSIUS_TO_DECI_KELVIN(temp,\n\t\t\t\t\t\t\tKELVIN_OFFSET));\n\t\tif (ACPI_FAILURE(status))\n\t\t\tret = -EIO;\n\t\telse\n\t\t\tobj->thresholds[trip] = temp;\n\t} else {\n\t\tret = -EIO;\n\t\tdev_err(&device->dev, \"sys_set_trip_temp: method not found\\n\");\n\t}\n\n\treturn ret;\n}\n\nstatic struct thermal_zone_device_ops tzone_ops = {\n\t.get_temp = sys_get_curr_temp,\n\t.get_trip_temp = sys_get_trip_temp,\n\t.get_trip_type = sys_get_trip_type,\n\t.set_trip_temp = sys_set_trip_temp,\n\t.get_trip_hyst = sys_get_trip_hyst,\n};\n\nstatic void acpi_thermal_notify(struct acpi_device *device, u32 event)\n{\n\tstruct int3403_sensor *obj;\n\n\tif (!device)\n\t\treturn;\n\n\tobj = acpi_driver_data(device);\n\tif (!obj)\n\t\treturn;\n\n\tswitch (event) {\n\tcase INT3403_PERF_CHANGED_EVENT:\n\t\tbreak;\n\tcase INT3403_THERMAL_EVENT:\n\t\tthermal_zone_device_update(obj->tzone);\n\t\tbreak;\n\tdefault:\n\t\tdev_err(&device->dev, \"Unsupported event [0x%x]\\n\", event);\n\t\tbreak;\n\t}\n}\n\nstatic int acpi_int3403_add(struct acpi_device *device)\n{\n\tint result = 0;\n\tunsigned long long ptyp;\n\tacpi_status status;\n\tstruct int3403_sensor *obj;\n\tunsigned long long trip_cnt;\n\tint trip_mask = 0;\n\n\tif (!device)\n\t\treturn -EINVAL;\n\n\tstatus = acpi_evaluate_integer(device->handle, \"PTYP\", NULL, &ptyp);\n\tif (ACPI_FAILURE(status))\n\t\treturn -EINVAL;\n\n\tif (ptyp != INT3403_TYPE_SENSOR)\n\t\treturn -EINVAL;\n\n\tobj = devm_kzalloc(&device->dev, sizeof(*obj), GFP_KERNEL);\n\tif (!obj)\n\t\treturn -ENOMEM;\n\n\tdevice->driver_data = obj;\n\n\tstatus = acpi_evaluate_integer(device->handle, \"PATC\", NULL,\n\t\t\t\t\t\t&trip_cnt);\n\tif (ACPI_FAILURE(status))\n\t\ttrip_cnt = 0;\n\n\tif (trip_cnt) {\n\t\t/* We have to cache, thresholds can't be readback */\n\t\tobj->thresholds = devm_kzalloc(&device->dev,\n\t\t\t\t\tsizeof(*obj->thresholds) * trip_cnt,\n\t\t\t\t\tGFP_KERNEL);\n\t\tif (!obj->thresholds)\n\t\t\treturn -ENOMEM;\n\t\ttrip_mask = BIT(trip_cnt) - 1;\n\t}\n\tobj->tzone = thermal_zone_device_register(acpi_device_bid(device),\n\t\t\t\ttrip_cnt, trip_mask, device, &tzone_ops,\n\t\t\t\tNULL, 0, 0);\n\tif (IS_ERR(obj->tzone)) {\n\t\tresult = PTR_ERR(obj->tzone);\n\t\treturn result;\n\t}\n\n\tstrcpy(acpi_device_name(device), \"INT3403\");\n\tstrcpy(acpi_device_class(device), ACPI_INT3403_CLASS);\n\n\treturn 0;\n}\n\nstatic int acpi_int3403_remove(struct acpi_device *device)\n{\n\tstruct int3403_sensor *obj;\n\n\tobj = acpi_driver_data(device);\n\tthermal_zone_device_unregister(obj->tzone);\n\n\treturn 0;\n}\n\nACPI_MODULE_NAME(\"int3403\");\nstatic const struct acpi_device_id int3403_device_ids[] = {\n\t{\"INT3403\", 0},\n\t{\"\", 0},\n};\nMODULE_DEVICE_TABLE(acpi, int3403_device_ids);\n\nstatic struct acpi_driver acpi_int3403_driver = {\n\t.name = \"INT3403\",\n\t.class = ACPI_INT3403_CLASS,\n\t.ids = int3403_device_ids,\n\t.ops = {\n\t\t.add = acpi_int3403_add,\n\t\t.remove = acpi_int3403_remove,\n\t\t.notify = acpi_thermal_notify,\n\t\t},\n};\n\nmodule_acpi_driver(acpi_int3403_driver);\n\nMODULE_AUTHOR(\"<NAME> <<EMAIL>>\");\nMODULE_LICENSE(\"GPL v2\");\nMODULE_DESCRIPTION(\"ACPI INT3403 thermal driver\");\n"}
80,212
c
// // ABUtils.h // ABUtils // // Created by <NAME> on 2/16/14. // Copyright (c) 2014 AB. All rights reserved. // #import <Foundation/Foundation.h> #ifndef _ABUTILS_ #define _ABUTILS_ #import "UIFont+ABUtils.h" #import "UIAlertView+ABUtils.h" #import "UIColor+ABUtils.h" #import "UIView+ABUtils.h" #import "ABCollectionViewModel.h" #import "ABCellInfoDataObject.h" #endif /* _ABUTILS_ */
20.78
18
(translation_unit) "//\n// ABUtils.h\n// ABUtils\n//\n// Created by <NAME> on 2/16/14.\n// Copyright (c) 2014 AB. All rights reserved.\n//\n\n\n#import <Foundation/Foundation.h>\n\n#ifndef _ABUTILS_\n#define _ABUTILS_\n\n#import "UIFont+ABUtils.h"\n#import "UIAlertView+ABUtils.h"\n#import "UIColor+ABUtils.h"\n#import "UIView+ABUtils.h"\n#import "ABCollectionViewModel.h"\n#import "ABCellInfoDataObject.h"\n\n#endif /* _ABUTILS_ */\n" (comment) "//" (comment) "// ABUtils.h" (comment) "// ABUtils" (comment) "//" (comment) "// Created by <NAME> on 2/16/14." (comment) "// Copyright (c) 2014 AB. All rights reserved." (comment) "//" (preproc_call) "#import <Foundation/Foundation.h>\n" (preproc_directive) "#import" (preproc_arg) "<Foundation/Foundation.h>" (preproc_ifdef) "#ifndef _ABUTILS_\n#define _ABUTILS_\n\n#import "UIFont+ABUtils.h"\n#import "UIAlertView+ABUtils.h"\n#import "UIColor+ABUtils.h"\n#import "UIView+ABUtils.h"\n#import "ABCollectionViewModel.h"\n#import "ABCellInfoDataObject.h"\n\n#endif" (#ifndef) "#ifndef" (identifier) "_ABUTILS_" (preproc_def) "#define _ABUTILS_\n" (#define) "#define" (identifier) "_ABUTILS_" (preproc_call) "#import "UIFont+ABUtils.h"\n" (preproc_directive) "#import" (preproc_arg) ""UIFont+ABUtils.h"" (preproc_call) "#import "UIAlertView+ABUtils.h"\n" (preproc_directive) "#import" (preproc_arg) ""UIAlertView+ABUtils.h"" (preproc_call) "#import "UIColor+ABUtils.h"\n" (preproc_directive) "#import" (preproc_arg) ""UIColor+ABUtils.h"" (preproc_call) "#import "UIView+ABUtils.h"\n" (preproc_directive) "#import" (preproc_arg) ""UIView+ABUtils.h"" (preproc_call) "#import "ABCollectionViewModel.h"\n" (preproc_directive) "#import" (preproc_arg) ""ABCollectionViewModel.h"" (preproc_call) "#import "ABCellInfoDataObject.h"\n" (preproc_directive) "#import" (preproc_arg) ""ABCellInfoDataObject.h"" (#endif) "#endif" (comment) "/* _ABUTILS_ */"
37
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 20.78, "nodes": 28, "errors": 0, "source_hash": "fc17b034ef9232951bac0b81872d94fdc74a391ae6d2144fbebfcaa0d7498a51", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Foundation/Foundation.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#import", "parent": 0, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "<Foundation/Foundation.h>", "parent": 0, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 33}}, {"id": 3, "type": "preproc_ifdef", "text": "#ifndef _ABUTILS_\n#define _ABUTILS_\n\n#import \"UIFont+ABUtils.h\"\n#import \"UIAlertView+ABUtils.h\"\n#import \"UIColor+ABUtils.h\"\n#import \"UIView+ABUtils.h\"\n#import \"ABCollectionViewModel.h\"\n#import \"ABCellInfoDataObject.h\"\n\n#endif", "parent": null, "children": [4, 5, 6, 9, 12, 15, 18, 21, 24, 27], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 21, "column": 6}}, {"id": 4, "type": "#ifndef", "text": "#ifndef", "parent": 3, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 7}}, {"id": 5, "type": "identifier", "text": "_ABUTILS_", "parent": 3, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 17}}, {"id": 6, "type": "preproc_def", "text": "#define _ABUTILS_\n", "parent": 3, "children": [7, 8], "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": "_ABUTILS_", "parent": 6, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 17}}, {"id": 9, "type": "preproc_call", "text": "#import \"UIFont+ABUtils.h\"\n", "parent": 3, "children": [10, 11], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 10, "type": "preproc_directive", "text": "#import", "parent": 9, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 7}}, {"id": 11, "type": "preproc_arg", "text": "\"UIFont+ABUtils.h\"", "parent": 9, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 26}}, {"id": 12, "type": "preproc_call", "text": "#import \"UIAlertView+ABUtils.h\"\n", "parent": 3, "children": [13, 14], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 13, "type": "preproc_directive", "text": "#import", "parent": 12, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 7}}, {"id": 14, "type": "preproc_arg", "text": "\"UIAlertView+ABUtils.h\"", "parent": 12, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 31}}, {"id": 15, "type": "preproc_call", "text": "#import \"UIColor+ABUtils.h\"\n", "parent": 3, "children": [16, 17], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 16, "type": "preproc_directive", "text": "#import", "parent": 15, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 7}}, {"id": 17, "type": "preproc_arg", "text": "\"UIColor+ABUtils.h\"", "parent": 15, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 27}}, {"id": 18, "type": "preproc_call", "text": "#import \"UIView+ABUtils.h\"\n", "parent": 3, "children": [19, 20], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 19, "type": "preproc_directive", "text": "#import", "parent": 18, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 7}}, {"id": 20, "type": "preproc_arg", "text": "\"UIView+ABUtils.h\"", "parent": 18, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 26}}, {"id": 21, "type": "preproc_call", "text": "#import \"ABCollectionViewModel.h\"\n", "parent": 3, "children": [22, 23], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 22, "type": "preproc_directive", "text": "#import", "parent": 21, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 7}}, {"id": 23, "type": "preproc_arg", "text": "\"ABCollectionViewModel.h\"", "parent": 21, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 33}}, {"id": 24, "type": "preproc_call", "text": "#import \"ABCellInfoDataObject.h\"\n", "parent": 3, "children": [25, 26], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 25, "type": "preproc_directive", "text": "#import", "parent": 24, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 7}}, {"id": 26, "type": "preproc_arg", "text": "\"ABCellInfoDataObject.h\"", "parent": 24, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 32}}, {"id": 27, "type": "#endif", "text": "#endif", "parent": 3, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 6}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [3, 4, 5, 8, 27], "returns": [], "exceptions": []}, "expressions": {"calls": [0, 9, 12, 15, 18, 21, 24], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// ABUtils.h\n// ABUtils\n//\n// Created by <NAME> on 2/16/14.\n// Copyright (c) 2014 AB. All rights reserved.\n//\n\n\n#import <Foundation/Foundation.h>\n\n#ifndef _ABUTILS_\n#define _ABUTILS_\n\n#import \"UIFont+ABUtils.h\"\n#import \"UIAlertView+ABUtils.h\"\n#import \"UIColor+ABUtils.h\"\n#import \"UIView+ABUtils.h\"\n#import \"ABCollectionViewModel.h\"\n#import \"ABCellInfoDataObject.h\"\n\n#endif /* _ABUTILS_ */\n"}
80,213
c
// // CC98AboutViewController.h // CC98Lite // // Created by S on 15/7/16. // Copyright (c) 2015年 zju. All rights reserved. // #import <UIKit/UIKit.h> #import "CC98BlockDataDelegate.h" @interface CC98AboutViewController : UIViewController <CC98BlockDataDelegate> - (void)displayAboutContent; - (void)displayNoticeContent; @end
24.46
13
(translation_unit) "//\n// CC98AboutViewController.h\n// CC98Lite\n//\n// Created by S on 15/7/16.\n// Copyright (c) 2015年 zju. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "CC98BlockDataDelegate.h"\n\n@interface CC98AboutViewController : UIViewController <CC98BlockDataDelegate>\n\n- (void)displayAboutContent;\n- (void)displayNoticeContent;\n\n@end\n" (comment) "//" (comment) "// CC98AboutViewController.h" (comment) "// CC98Lite" (comment) "//" (comment) "// Created by S on 15/7/16." (comment) "// Copyright (c) 2015年 zju. All rights reserved.\n/" (comment) "\n\n" (preproc_call) "mport <UIKit/UIKit.h>\n#i" (preproc_directive) "mport <" (preproc_arg) "IKit/UIKit.h>\n#" (preproc_call) "mport "CC98BlockDataDelegate.h"\n\n@" (preproc_directive) "mport "" (preproc_arg) "C98BlockDataDelegate.h"\n\n" (ERROR) "nterface CC98AboutViewController : UIViewController <CC98BlockDataDelegate>\n\n" (ERROR) "n" (type_identifier) "terface C" (identifier) "98AboutViewController :" (:) "U" (identifier) "ViewController <" (<) "C" (identifier) "98BlockDataDelegate>\n" (>) "\n" (expression_statement) "(void)displayAboutContent;\n-" (unary_expression) "(void)displayAboutContent;\n" (-) "(" (cast_expression) "oid)displayAboutContent;\n" (() "o" (type_descriptor) "id)d" (primitive_type) "id)d" ()) "i" (identifier) "splayAboutContent;\n" (;) "-" (expression_statement) "(void)displayNoticeContent;\n\n" (unary_expression) "(void)displayNoticeContent;\n" (-) "(" (cast_expression) "oid)displayNoticeContent;\n" (() "o" (type_descriptor) "id)d" (primitive_type) "id)d" ()) "i" (identifier) "splayNoticeContent;\n" (;) "\n" (ERROR) "n" (ERROR) "n" (expression_statement) "d\n" (identifier) "d\n" (;) ""
48
4
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 24.46, "nodes": 27, "errors": 0, "source_hash": "401486e2ae4382368515e7ac8dc59de9f6f94e6b1b3b39a37aa9fff75559784e", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <UIKit/UIKit.h>\n#i", "parent": null, "children": [1, 2], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "mport <", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "IKit/UIKit.h>\n#", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 23}}, {"id": 3, "type": "preproc_call", "text": "mport \"CC98BlockDataDelegate.h\"\n\n@", "parent": null, "children": [4, 5], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 4, "type": "preproc_directive", "text": "mport \"", "parent": 3, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 5, "type": "preproc_arg", "text": "C98BlockDataDelegate.h\"\n\n", "parent": 3, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 33}}, {"id": 6, "type": "ERROR", "text": "nterface CC98AboutViewController : UIViewController <CC98BlockDataDelegate>\n\n", "parent": null, "children": [7, 8, 9, 10, 11, 12, 13], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 77}}, {"id": 7, "type": "ERROR", "text": "n", "parent": 6, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 1}}, {"id": 8, "type": "type_identifier", "text": "terface C", "parent": 6, "children": [], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 10}}, {"id": 9, "type": "identifier", "text": "98AboutViewController :", "parent": 6, "children": [], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 34}}, {"id": 10, "type": "identifier", "text": "ViewController <", "parent": 6, "children": [], "start_point": {"row": 11, "column": 37}, "end_point": {"row": 11, "column": 53}}, {"id": 11, "type": "<", "text": "C", "parent": 6, "children": [], "start_point": {"row": 11, "column": 54}, "end_point": {"row": 11, "column": 55}}, {"id": 12, "type": "identifier", "text": "98BlockDataDelegate>\n", "parent": 6, "children": [], "start_point": {"row": 11, "column": 55}, "end_point": {"row": 11, "column": 76}}, {"id": 13, "type": ">", "text": "\n", "parent": 6, "children": [], "start_point": {"row": 11, "column": 76}, "end_point": {"row": 11, "column": 77}}, {"id": 14, "type": "unary_expression", "text": "(void)displayAboutContent;\n", "parent": null, "children": [15], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 27}}, {"id": 15, "type": "cast_expression", "text": "oid)displayAboutContent;\n", "parent": 14, "children": [16, 18], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 27}}, {"id": 16, "type": "type_descriptor", "text": "id)d", "parent": 15, "children": [17], "start_point": {"row": 13, "column": 3}, "end_point": {"row": 13, "column": 7}}, {"id": 17, "type": "primitive_type", "text": "id)d", "parent": 16, "children": [], "start_point": {"row": 13, "column": 3}, "end_point": {"row": 13, "column": 7}}, {"id": 18, "type": "identifier", "text": "splayAboutContent;\n", "parent": 15, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 27}}, {"id": 19, "type": "unary_expression", "text": "(void)displayNoticeContent;\n", "parent": null, "children": [20], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 28}}, {"id": 20, "type": "cast_expression", "text": "oid)displayNoticeContent;\n", "parent": 19, "children": [21, 23], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 28}}, {"id": 21, "type": "type_descriptor", "text": "id)d", "parent": 20, "children": [22], "start_point": {"row": 14, "column": 3}, "end_point": {"row": 14, "column": 7}}, {"id": 22, "type": "primitive_type", "text": "id)d", "parent": 21, "children": [], "start_point": {"row": 14, "column": 3}, "end_point": {"row": 14, "column": 7}}, {"id": 23, "type": "identifier", "text": "splayNoticeContent;\n", "parent": 20, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 28}}, {"id": 24, "type": "ERROR", "text": "n", "parent": null, "children": [25], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 25, "type": "ERROR", "text": "n", "parent": 24, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 26, "type": "identifier", "text": "d\n", "parent": null, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 4}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [14, 15, 19, 20], "assignments": [], "loops": [], "conditionals": [8, 9, 10, 12, 18, 23, 26], "returns": [], "exceptions": []}, "expressions": {"calls": [0, 3], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// CC98AboutViewController.h\n// CC98Lite\n//\n// Created by S on 15/7/16.\n// Copyright (c) 2015\u5e74 zju. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import \"CC98BlockDataDelegate.h\"\n\n@interface CC98AboutViewController : UIViewController <CC98BlockDataDelegate>\n\n- (void)displayAboutContent;\n- (void)displayNoticeContent;\n\n@end\n"}
80,214
c
/* -*- mode: c; c-basic-offset: 8; -*- * vim: noexpandtab sw=8 ts=8 sts=0: * * dcache.c * * dentry cache handling code * * Copyright (C) 2002, 2004 Oracle. All rights reserved. * * 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 (at your option) 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., 59 Temple Place - Suite 330, * Boston, MA 021110-1307, USA. */ #include <linux/fs.h> #include <linux/types.h> #include <linux/slab.h> #include <linux/namei.h> #define MLOG_MASK_PREFIX ML_DCACHE #include <cluster/masklog.h> #include "ocfs2.h" #include "alloc.h" #include "dcache.h" #include "file.h" #include "inode.h" static int ocfs2_dentry_revalidate(struct dentry *dentry, struct nameidata *nd) { struct inode *inode = dentry->d_inode; int ret = 0; /* if all else fails, just return false */ struct ocfs2_super *osb; mlog_entry("(0x%p, '%.*s')\n", dentry, dentry->d_name.len, dentry->d_name.name); /* Never trust a negative dentry - force a new lookup. */ if (inode == NULL) { mlog(0, "negative dentry: %.*s\n", dentry->d_name.len, dentry->d_name.name); goto bail; } osb = OCFS2_SB(inode->i_sb); BUG_ON(!osb); if (inode != osb->root_inode) { spin_lock(&OCFS2_I(inode)->ip_lock); /* did we or someone else delete this inode? */ if (OCFS2_I(inode)->ip_flags & OCFS2_INODE_DELETED) { spin_unlock(&OCFS2_I(inode)->ip_lock); mlog(0, "inode (%"MLFu64") deleted, returning false\n", OCFS2_I(inode)->ip_blkno); goto bail; } spin_unlock(&OCFS2_I(inode)->ip_lock); if (!inode->i_nlink) { mlog(0, "Inode %"MLFu64" orphaned, returning false " "dir = %d\n", OCFS2_I(inode)->ip_blkno, S_ISDIR(inode->i_mode)); goto bail; } } ret = 1; bail: mlog_exit(ret); return ret; } struct dentry_operations ocfs2_dentry_ops = { .d_revalidate = ocfs2_dentry_revalidate, };
30.46
76
(translation_unit) "/* -*- mode: c; c-basic-offset: 8; -*-\n * vim: noexpandtab sw=8 ts=8 sts=0:\n *\n * dcache.c\n *\n * dentry cache handling code\n *\n * Copyright (C) 2002, 2004 Oracle. All rights reserved.\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public\n * License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but 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\n * License along with this program; if not, write to the\n * Free Software Foundation, Inc., 59 Temple Place - Suite 330,\n * Boston, MA 021110-1307, USA.\n */\n\n#include <linux/fs.h>\n#include <linux/types.h>\n#include <linux/slab.h>\n#include <linux/namei.h>\n\n#define MLOG_MASK_PREFIX ML_DCACHE\n#include <cluster/masklog.h>\n\n#include "ocfs2.h"\n\n#include "alloc.h"\n#include "dcache.h"\n#include "file.h"\n#include "inode.h"\n\nstatic int ocfs2_dentry_revalidate(struct dentry *dentry,\n struct nameidata *nd)\n{\n struct inode *inode = dentry->d_inode;\n int ret = 0; /* if all else fails, just return false */\n struct ocfs2_super *osb;\n\n mlog_entry("(0x%p, '%.*s')\n", dentry,\n dentry->d_name.len, dentry->d_name.name);\n\n /* Never trust a negative dentry - force a new lookup. */\n if (inode == NULL) {\n mlog(0, "negative dentry: %.*s\n", dentry->d_name.len,\n dentry->d_name.name);\n goto bail;\n }\n\n osb = OCFS2_SB(inode->i_sb);\n\n BUG_ON(!osb);\n\n if (inode != osb->root_inode) {\n spin_lock(&OCFS2_I(inode)->ip_lock);\n /* did we or someone else delete this inode? */\n if (OCFS2_I(inode)->ip_flags & OCFS2_INODE_DELETED) {\n spin_unlock(&OCFS2_I(inode)->ip_lock);\n mlog(0, "inode (%"MLFu64") deleted, returning false\n",\n OCFS2_I(inode)->ip_blkno);\n goto bail;\n }\n spin_unlock(&OCFS2_I(inode)->ip_lock);\n\n if (!inode->i_nlink) {\n mlog(0, "Inode %"MLFu64" orphaned, returning false "\n "dir = %d\n", OCFS2_I(inode)->ip_blkno,\n S_ISDIR(inode->i_mode));\n goto bail;\n }\n }\n\n ret = 1;\n\nbail:\n mlog_exit(ret);\n\n return ret;\n}\n\nstruct dentry_operations ocfs2_dentry_ops = {\n .d_revalidate = ocfs2_dentry_revalidate,\n};\n" (comment) "/* -*- mode: c; c-basic-offset: 8; -*-\n * vim: noexpandtab sw=8 ts=8 sts=0:\n *\n * dcache.c\n *\n * dentry cache handling code\n *\n * Copyright (C) 2002, 2004 Oracle. All rights reserved.\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public\n * License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but 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\n * License along with this program; if not, write to the\n * Free Software Foundation, Inc., 59 Temple Place - Suite 330,\n * Boston, MA 021110-1307, USA.\n */" (preproc_include) "#include <linux/fs.h>\n" (#include) "#include" (system_lib_string) "<linux/fs.h>" (preproc_include) "#include <linux/types.h>\n" (#include) "#include" (system_lib_string) "<linux/types.h>" (preproc_include) "#include <linux/slab.h>\n" (#include) "#include" (system_lib_string) "<linux/slab.h>" (preproc_include) "#include <linux/namei.h>\n" (#include) "#include" (system_lib_string) "<linux/namei.h>" (preproc_def) "#define MLOG_MASK_PREFIX ML_DCACHE\n" (#define) "#define" (identifier) "MLOG_MASK_PREFIX" (preproc_arg) "ML_DCACHE" (preproc_include) "#include <cluster/masklog.h>\n" (#include) "#include" (system_lib_string) "<cluster/masklog.h>" (preproc_include) "#include "ocfs2.h"\n" (#include) "#include" (string_literal) ""ocfs2.h"" (") """ (string_content) "ocfs2.h" (") """ (preproc_include) "#include "alloc.h"\n" (#include) "#include" (string_literal) ""alloc.h"" (") """ (string_content) "alloc.h" (") """ (preproc_include) "#include "dcache.h"\n" (#include) "#include" (string_literal) ""dcache.h"" (") """ (string_content) "dcache.h" (") """ (preproc_include) "#include "file.h"\n" (#include) "#include" (string_literal) ""file.h"" (") """ (string_content) "file.h" (") """ (preproc_include) "#include "inode.h"\n" (#include) "#include" (string_literal) ""inode.h"" (") """ (string_content) "inode.h" (") """ (function_definition) "static int ocfs2_dentry_revalidate(struct dentry *dentry,\n struct nameidata *nd)\n{\n struct inode *inode = dentry->d_inode;\n int ret = 0; /* if all else fails, just return false */\n struct ocfs2_super *osb;\n\n mlog_entry("(0x%p, '%.*s')\n", dentry,\n dentry->d_name.len, dentry->d_name.name);\n\n /* Never trust a negative dentry - force a new lookup. */\n if (inode == NULL) {\n mlog(0, "negative dentry: %.*s\n", dentry->d_name.len,\n dentry->d_name.name);\n goto bail;\n }\n\n osb = OCFS2_SB(inode->i_sb);\n\n BUG_ON(!osb);\n\n if (inode != osb->root_inode) {\n spin_lock(&OCFS2_I(inode)->ip_lock);\n /* did we or someone else delete this inode? */\n if (OCFS2_I(inode)->ip_flags & OCFS2_INODE_DELETED) {\n spin_unlock(&OCFS2_I(inode)->ip_lock);\n mlog(0, "inode (%"MLFu64") deleted, returning false\n",\n OCFS2_I(inode)->ip_blkno);\n goto bail;\n }\n spin_unlock(&OCFS2_I(inode)->ip_lock);\n\n if (!inode->i_nlink) {\n mlog(0, "Inode %"MLFu64" orphaned, returning false "\n "dir = %d\n", OCFS2_I(inode)->ip_blkno,\n S_ISDIR(inode->i_mode));\n goto bail;\n }\n }\n\n ret = 1;\n\nbail:\n mlog_exit(ret);\n\n return ret;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "ocfs2_dentry_revalidate(struct dentry *dentry,\n struct nameidata *nd)" (identifier) "ocfs2_dentry_revalidate" (parameter_list) "(struct dentry *dentry,\n struct nameidata *nd)" (() "(" (parameter_declaration) "struct dentry *dentry" (struct_specifier) "struct dentry" (struct) "struct" (type_identifier) "dentry" (pointer_declarator) "*dentry" (*) "*" (identifier) "dentry" (,) "," (parameter_declaration) "struct nameidata *nd" (struct_specifier) "struct nameidata" (struct) "struct" (type_identifier) "nameidata" (pointer_declarator) "*nd" (*) "*" (identifier) "nd" ()) ")" (compound_statement) "{\n struct inode *inode = dentry->d_inode;\n int ret = 0; /* if all else fails, just return false */\n struct ocfs2_super *osb;\n\n mlog_entry("(0x%p, '%.*s')\n", dentry,\n dentry->d_name.len, dentry->d_name.name);\n\n /* Never trust a negative dentry - force a new lookup. */\n if (inode == NULL) {\n mlog(0, "negative dentry: %.*s\n", dentry->d_name.len,\n dentry->d_name.name);\n goto bail;\n }\n\n osb = OCFS2_SB(inode->i_sb);\n\n BUG_ON(!osb);\n\n if (inode != osb->root_inode) {\n spin_lock(&OCFS2_I(inode)->ip_lock);\n /* did we or someone else delete this inode? */\n if (OCFS2_I(inode)->ip_flags & OCFS2_INODE_DELETED) {\n spin_unlock(&OCFS2_I(inode)->ip_lock);\n mlog(0, "inode (%"MLFu64") deleted, returning false\n",\n OCFS2_I(inode)->ip_blkno);\n goto bail;\n }\n spin_unlock(&OCFS2_I(inode)->ip_lock);\n\n if (!inode->i_nlink) {\n mlog(0, "Inode %"MLFu64" orphaned, returning false "\n "dir = %d\n", OCFS2_I(inode)->ip_blkno,\n S_ISDIR(inode->i_mode));\n goto bail;\n }\n }\n\n ret = 1;\n\nbail:\n mlog_exit(ret);\n\n return ret;\n}" ({) "{" (declaration) "struct inode *inode = dentry->d_inode;" (struct_specifier) "struct inode" (struct) "struct" (type_identifier) "inode" (init_declarator) "*inode = dentry->d_inode" (pointer_declarator) "*inode" (*) "*" (identifier) "inode" (=) "=" (field_expression) "dentry->d_inode" (identifier) "dentry" (->) "->" (field_identifier) "d_inode" (;) ";" (declaration) "int ret = 0;" (primitive_type) "int" (init_declarator) "ret = 0" (identifier) "ret" (=) "=" (number_literal) "0" (;) ";" (comment) "/* if all else fails, just return false */" (declaration) "struct ocfs2_super *osb;" (struct_specifier) "struct ocfs2_super" (struct) "struct" (type_identifier) "ocfs2_super" (pointer_declarator) "*osb" (*) "*" (identifier) "osb" (;) ";" (expression_statement) "mlog_entry("(0x%p, '%.*s')\n", dentry,\n dentry->d_name.len, dentry->d_name.name);" (call_expression) "mlog_entry("(0x%p, '%.*s')\n", dentry,\n dentry->d_name.len, dentry->d_name.name)" (identifier) "mlog_entry" (argument_list) "("(0x%p, '%.*s')\n", dentry,\n dentry->d_name.len, dentry->d_name.name)" (() "(" (string_literal) ""(0x%p, '%.*s')\n"" (") """ (string_content) "(0x%p, '%.*s')" (escape_sequence) "\n" (") """ (,) "," (identifier) "dentry" (,) "," (field_expression) "dentry->d_name.len" (field_expression) "dentry->d_name" (identifier) "dentry" (->) "->" (field_identifier) "d_name" (.) "." (field_identifier) "len" (,) "," (field_expression) "dentry->d_name.name" (field_expression) "dentry->d_name" (identifier) "dentry" (->) "->" (field_identifier) "d_name" (.) "." (field_identifier) "name" ()) ")" (;) ";" (comment) "/* Never trust a negative dentry - force a new lookup. */" (if_statement) "if (inode == NULL) {\n mlog(0, "negative dentry: %.*s\n", dentry->d_name.len,\n dentry->d_name.name);\n goto bail;\n }" (if) "if" (parenthesized_expression) "(inode == NULL)" (() "(" (binary_expression) "inode == NULL" (identifier) "inode" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n mlog(0, "negative dentry: %.*s\n", dentry->d_name.len,\n dentry->d_name.name);\n goto bail;\n }" ({) "{" (expression_statement) "mlog(0, "negative dentry: %.*s\n", dentry->d_name.len,\n dentry->d_name.name);" (call_expression) "mlog(0, "negative dentry: %.*s\n", dentry->d_name.len,\n dentry->d_name.name)" (identifier) "mlog" (argument_list) "(0, "negative dentry: %.*s\n", dentry->d_name.len,\n dentry->d_name.name)" (() "(" (number_literal) "0" (,) "," (string_literal) ""negative dentry: %.*s\n"" (") """ (string_content) "negative dentry: %.*s" (escape_sequence) "\n" (") """ (,) "," (field_expression) "dentry->d_name.len" (field_expression) "dentry->d_name" (identifier) "dentry" (->) "->" (field_identifier) "d_name" (.) "." (field_identifier) "len" (,) "," (field_expression) "dentry->d_name.name" (field_expression) "dentry->d_name" (identifier) "dentry" (->) "->" (field_identifier) "d_name" (.) "." (field_identifier) "name" ()) ")" (;) ";" (goto_statement) "goto bail;" (goto) "goto" (statement_identifier) "bail" (;) ";" (}) "}" (expression_statement) "osb = OCFS2_SB(inode->i_sb);" (assignment_expression) "osb = OCFS2_SB(inode->i_sb)" (identifier) "osb" (=) "=" (call_expression) "OCFS2_SB(inode->i_sb)" (identifier) "OCFS2_SB" (argument_list) "(inode->i_sb)" (() "(" (field_expression) "inode->i_sb" (identifier) "inode" (->) "->" (field_identifier) "i_sb" ()) ")" (;) ";" (expression_statement) "BUG_ON(!osb);" (call_expression) "BUG_ON(!osb)" (identifier) "BUG_ON" (argument_list) "(!osb)" (() "(" (unary_expression) "!osb" (!) "!" (identifier) "osb" ()) ")" (;) ";" (if_statement) "if (inode != osb->root_inode) {\n spin_lock(&OCFS2_I(inode)->ip_lock);\n /* did we or someone else delete this inode? */\n if (OCFS2_I(inode)->ip_flags & OCFS2_INODE_DELETED) {\n spin_unlock(&OCFS2_I(inode)->ip_lock);\n mlog(0, "inode (%"MLFu64") deleted, returning false\n",\n OCFS2_I(inode)->ip_blkno);\n goto bail;\n }\n spin_unlock(&OCFS2_I(inode)->ip_lock);\n\n if (!inode->i_nlink) {\n mlog(0, "Inode %"MLFu64" orphaned, returning false "\n "dir = %d\n", OCFS2_I(inode)->ip_blkno,\n S_ISDIR(inode->i_mode));\n goto bail;\n }\n }" (if) "if" (parenthesized_expression) "(inode != osb->root_inode)" (() "(" (binary_expression) "inode != osb->root_inode" (identifier) "inode" (!=) "!=" (field_expression) "osb->root_inode" (identifier) "osb" (->) "->" (field_identifier) "root_inode" ()) ")" (compound_statement) "{\n spin_lock(&OCFS2_I(inode)->ip_lock);\n /* did we or someone else delete this inode? */\n if (OCFS2_I(inode)->ip_flags & OCFS2_INODE_DELETED) {\n spin_unlock(&OCFS2_I(inode)->ip_lock);\n mlog(0, "inode (%"MLFu64") deleted, returning false\n",\n OCFS2_I(inode)->ip_blkno);\n goto bail;\n }\n spin_unlock(&OCFS2_I(inode)->ip_lock);\n\n if (!inode->i_nlink) {\n mlog(0, "Inode %"MLFu64" orphaned, returning false "\n "dir = %d\n", OCFS2_I(inode)->ip_blkno,\n S_ISDIR(inode->i_mode));\n goto bail;\n }\n }" ({) "{" (expression_statement) "spin_lock(&OCFS2_I(inode)->ip_lock);" (call_expression) "spin_lock(&OCFS2_I(inode)->ip_lock)" (identifier) "spin_lock" (argument_list) "(&OCFS2_I(inode)->ip_lock)" (() "(" (pointer_expression) "&OCFS2_I(inode)->ip_lock" (&) "&" (field_expression) "OCFS2_I(inode)->ip_lock" (call_expression) "OCFS2_I(inode)" (identifier) "OCFS2_I" (argument_list) "(inode)" (() "(" (identifier) "inode" ()) ")" (->) "->" (field_identifier) "ip_lock" ()) ")" (;) ";" (comment) "/* did we or someone else delete this inode? */" (if_statement) "if (OCFS2_I(inode)->ip_flags & OCFS2_INODE_DELETED) {\n spin_unlock(&OCFS2_I(inode)->ip_lock);\n mlog(0, "inode (%"MLFu64") deleted, returning false\n",\n OCFS2_I(inode)->ip_blkno);\n goto bail;\n }" (if) "if" (parenthesized_expression) "(OCFS2_I(inode)->ip_flags & OCFS2_INODE_DELETED)" (() "(" (binary_expression) "OCFS2_I(inode)->ip_flags & OCFS2_INODE_DELETED" (field_expression) "OCFS2_I(inode)->ip_flags" (call_expression) "OCFS2_I(inode)" (identifier) "OCFS2_I" (argument_list) "(inode)" (() "(" (identifier) "inode" ()) ")" (->) "->" (field_identifier) "ip_flags" (&) "&" (identifier) "OCFS2_INODE_DELETED" ()) ")" (compound_statement) "{\n spin_unlock(&OCFS2_I(inode)->ip_lock);\n mlog(0, "inode (%"MLFu64") deleted, returning false\n",\n OCFS2_I(inode)->ip_blkno);\n goto bail;\n }" ({) "{" (expression_statement) "spin_unlock(&OCFS2_I(inode)->ip_lock);" (call_expression) "spin_unlock(&OCFS2_I(inode)->ip_lock)" (identifier) "spin_unlock" (argument_list) "(&OCFS2_I(inode)->ip_lock)" (() "(" (pointer_expression) "&OCFS2_I(inode)->ip_lock" (&) "&" (field_expression) "OCFS2_I(inode)->ip_lock" (call_expression) "OCFS2_I(inode)" (identifier) "OCFS2_I" (argument_list) "(inode)" (() "(" (identifier) "inode" ()) ")" (->) "->" (field_identifier) "ip_lock" ()) ")" (;) ";" (expression_statement) "mlog(0, "inode (%"MLFu64") deleted, returning false\n",\n OCFS2_I(inode)->ip_blkno);" (call_expression) "mlog(0, "inode (%"MLFu64") deleted, returning false\n",\n OCFS2_I(inode)->ip_blkno)" (identifier) "mlog" (argument_list) "(0, "inode (%"MLFu64") deleted, returning false\n",\n OCFS2_I(inode)->ip_blkno)" (() "(" (number_literal) "0" (,) "," (concatenated_string) ""inode (%"MLFu64") deleted, returning false\n"" (string_literal) ""inode (%"" (") """ (string_content) "inode (%" (") """ (identifier) "MLFu64" (string_literal) "") deleted, returning false\n"" (") """ (string_content) ") deleted, returning false" (escape_sequence) "\n" (") """ (,) "," (field_expression) "OCFS2_I(inode)->ip_blkno" (call_expression) "OCFS2_I(inode)" (identifier) "OCFS2_I" (argument_list) "(inode)" (() "(" (identifier) "inode" ()) ")" (->) "->" (field_identifier) "ip_blkno" ()) ")" (;) ";" (goto_statement) "goto bail;" (goto) "goto" (statement_identifier) "bail" (;) ";" (}) "}" (expression_statement) "spin_unlock(&OCFS2_I(inode)->ip_lock);" (call_expression) "spin_unlock(&OCFS2_I(inode)->ip_lock)" (identifier) "spin_unlock" (argument_list) "(&OCFS2_I(inode)->ip_lock)" (() "(" (pointer_expression) "&OCFS2_I(inode)->ip_lock" (&) "&" (field_expression) "OCFS2_I(inode)->ip_lock" (call_expression) "OCFS2_I(inode)" (identifier) "OCFS2_I" (argument_list) "(inode)" (() "(" (identifier) "inode" ()) ")" (->) "->" (field_identifier) "ip_lock" ()) ")" (;) ";" (if_statement) "if (!inode->i_nlink) {\n mlog(0, "Inode %"MLFu64" orphaned, returning false "\n "dir = %d\n", OCFS2_I(inode)->ip_blkno,\n S_ISDIR(inode->i_mode));\n goto bail;\n }" (if) "if" (parenthesized_expression) "(!inode->i_nlink)" (() "(" (unary_expression) "!inode->i_nlink" (!) "!" (field_expression) "inode->i_nlink" (identifier) "inode" (->) "->" (field_identifier) "i_nlink" ()) ")" (compound_statement) "{\n mlog(0, "Inode %"MLFu64" orphaned, returning false "\n "dir = %d\n", OCFS2_I(inode)->ip_blkno,\n S_ISDIR(inode->i_mode));\n goto bail;\n }" ({) "{" (expression_statement) "mlog(0, "Inode %"MLFu64" orphaned, returning false "\n "dir = %d\n", OCFS2_I(inode)->ip_blkno,\n S_ISDIR(inode->i_mode));" (call_expression) "mlog(0, "Inode %"MLFu64" orphaned, returning false "\n "dir = %d\n", OCFS2_I(inode)->ip_blkno,\n S_ISDIR(inode->i_mode))" (identifier) "mlog" (argument_list) "(0, "Inode %"MLFu64" orphaned, returning false "\n "dir = %d\n", OCFS2_I(inode)->ip_blkno,\n S_ISDIR(inode->i_mode))" (() "(" (number_literal) "0" (,) "," (concatenated_string) ""Inode %"MLFu64" orphaned, returning false "\n "dir = %d\n"" (string_literal) ""Inode %"" (") """ (string_content) "Inode %" (") """ (identifier) "MLFu64" (string_literal) "" orphaned, returning false "" (") """ (string_content) " orphaned, returning false " (") """ (string_literal) ""dir = %d\n"" (") """ (string_content) "dir = %d" (escape_sequence) "\n" (") """ (,) "," (field_expression) "OCFS2_I(inode)->ip_blkno" (call_expression) "OCFS2_I(inode)" (identifier) "OCFS2_I" (argument_list) "(inode)" (() "(" (identifier) "inode" ()) ")" (->) "->" (field_identifier) "ip_blkno" (,) "," (call_expression) "S_ISDIR(inode->i_mode)" (identifier) "S_ISDIR" (argument_list) "(inode->i_mode)" (() "(" (field_expression) "inode->i_mode" (identifier) "inode" (->) "->" (field_identifier) "i_mode" ()) ")" ()) ")" (;) ";" (goto_statement) "goto bail;" (goto) "goto" (statement_identifier) "bail" (;) ";" (}) "}" (}) "}" (expression_statement) "ret = 1;" (assignment_expression) "ret = 1" (identifier) "ret" (=) "=" (number_literal) "1" (;) ";" (labeled_statement) "bail:\n mlog_exit(ret);" (statement_identifier) "bail" (:) ":" (expression_statement) "mlog_exit(ret);" (call_expression) "mlog_exit(ret)" (identifier) "mlog_exit" (argument_list) "(ret)" (() "(" (identifier) "ret" ()) ")" (;) ";" (return_statement) "return ret;" (return) "return" (identifier) "ret" (;) ";" (}) "}" (declaration) "struct dentry_operations ocfs2_dentry_ops = {\n .d_revalidate = ocfs2_dentry_revalidate,\n};" (struct_specifier) "struct dentry_operations" (struct) "struct" (type_identifier) "dentry_operations" (init_declarator) "ocfs2_dentry_ops = {\n .d_revalidate = ocfs2_dentry_revalidate,\n}" (identifier) "ocfs2_dentry_ops" (=) "=" (initializer_list) "{\n .d_revalidate = ocfs2_dentry_revalidate,\n}" ({) "{" (initializer_pair) ".d_revalidate = ocfs2_dentry_revalidate" (field_designator) ".d_revalidate" (.) "." (field_identifier) "d_revalidate" (=) "=" (identifier) "ocfs2_dentry_revalidate" (,) "," (}) "}" (;) ";"
435
0
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 30.46, "nodes": 258, "errors": 0, "source_hash": "0d4e6809cc9c58bd4daa62472334bd68f3322efce1805faa52b10500d33077c9", "categorized_nodes": 199}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <linux/fs.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<linux/fs.h>", "parent": 0, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 21}}, {"id": 3, "type": "preproc_include", "text": "#include <linux/types.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<linux/types.h>", "parent": 3, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 24}}, {"id": 6, "type": "preproc_include", "text": "#include <linux/slab.h>\n", "parent": null, "children": [7, 8], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<linux/slab.h>", "parent": 6, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 23}}, {"id": 9, "type": "preproc_include", "text": "#include <linux/namei.h>\n", "parent": null, "children": [10, 11], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<linux/namei.h>", "parent": 9, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 24}}, {"id": 12, "type": "preproc_def", "text": "#define MLOG_MASK_PREFIX ML_DCACHE\n", "parent": null, "children": [13, 14, 15], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 31, "column": 0}}, {"id": 13, "type": "#define", "text": "#define", "parent": 12, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 7}}, {"id": 14, "type": "identifier", "text": "MLOG_MASK_PREFIX", "parent": 12, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 24}}, {"id": 15, "type": "preproc_arg", "text": "ML_DCACHE", "parent": 12, "children": [], "start_point": {"row": 30, "column": 25}, "end_point": {"row": 30, "column": 34}}, {"id": 16, "type": "preproc_include", "text": "#include <cluster/masklog.h>\n", "parent": null, "children": [17, 18], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 17, "type": "#include", "text": "#include", "parent": 16, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 8}}, {"id": 18, "type": "system_lib_string", "text": "<cluster/masklog.h>", "parent": 16, "children": [], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 28}}, {"id": 19, "type": "preproc_include", "text": "#include \"ocfs2.h\"\n", "parent": null, "children": [20, 21], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 34, "column": 0}}, {"id": 20, "type": "#include", "text": "#include", "parent": 19, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 8}}, {"id": 21, "type": "string_literal", "text": "\"ocfs2.h\"", "parent": 19, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 18}}, {"id": 22, "type": "preproc_include", "text": "#include \"alloc.h\"\n", "parent": null, "children": [23, 24], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 36, "column": 0}}, {"id": 23, "type": "#include", "text": "#include", "parent": 22, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 8}}, {"id": 24, "type": "string_literal", "text": "\"alloc.h\"", "parent": 22, "children": [], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 18}}, {"id": 25, "type": "preproc_include", "text": "#include \"dcache.h\"\n", "parent": null, "children": [26, 27], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 37, "column": 0}}, {"id": 26, "type": "#include", "text": "#include", "parent": 25, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 8}}, {"id": 27, "type": "string_literal", "text": "\"dcache.h\"", "parent": 25, "children": [], "start_point": {"row": 36, "column": 9}, "end_point": {"row": 36, "column": 19}}, {"id": 28, "type": "preproc_include", "text": "#include \"file.h\"\n", "parent": null, "children": [29, 30], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 0}}, {"id": 29, "type": "#include", "text": "#include", "parent": 28, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 8}}, {"id": 30, "type": "string_literal", "text": "\"file.h\"", "parent": 28, "children": [], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 17}}, {"id": 31, "type": "preproc_include", "text": "#include \"inode.h\"\n", "parent": null, "children": [32, 33], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 39, "column": 0}}, {"id": 32, "type": "#include", "text": "#include", "parent": 31, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 8}}, {"id": 33, "type": "string_literal", "text": "\"inode.h\"", "parent": 31, "children": [], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 18}}, {"id": 34, "type": "function_definition", "text": "static int ocfs2_dentry_revalidate(struct dentry *dentry,\n\t\t\t\t struct nameidata *nd)\n{\n\tstruct inode *inode = dentry->d_inode;\n\tint ret = 0; /* if all else fails, just return false */\n\tstruct ocfs2_super *osb;\n\n\tmlog_entry(\"(0x%p, '%.*s')\\n\", dentry,\n\t\t dentry->d_name.len, dentry->d_name.name);\n\n\t/* Never trust a negative dentry - force a new lookup. */\n\tif (inode == NULL) {\n\t\tmlog(0, \"negative dentry: %.*s\\n\", dentry->d_name.len,\n\t\t dentry->d_name.name);\n\t\tgoto bail;\n\t}\n\n\tosb = OCFS2_SB(inode->i_sb);\n\n\tBUG_ON(!osb);\n\n\tif (inode != osb->root_inode) {\n\t\tspin_lock(&OCFS2_I(inode)->ip_lock);\n\t\t/* did we or someone else delete this inode? */\n\t\tif (OCFS2_I(inode)->ip_flags & OCFS2_INODE_DELETED) {\n\t\t\tspin_unlock(&OCFS2_I(inode)->ip_lock);\n\t\t\tmlog(0, \"inode (%\"MLFu64\") deleted, returning false\\n\",\n\t\t\t OCFS2_I(inode)->ip_blkno);\n\t\t\tgoto bail;\n\t\t}\n\t\tspin_unlock(&OCFS2_I(inode)->ip_lock);\n\n\t\tif (!inode->i_nlink) {\n\t\t\tmlog(0, \"Inode %\"MLFu64\" orphaned, returning false \"\n\t\t\t \"dir = %d\\n\", OCFS2_I(inode)->ip_blkno,\n\t\t\t S_ISDIR(inode->i_mode));\n\t\t\tgoto bail;\n\t\t}\n\t}\n\n\tret = 1;\n\nbail:\n\tmlog_exit(ret);\n\n\treturn ret;\n}", "parent": null, "children": [35, 36], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 86, "column": 1}}, {"id": 35, "type": "primitive_type", "text": "int", "parent": 34, "children": [], "start_point": {"row": 40, "column": 7}, "end_point": {"row": 40, "column": 10}}, {"id": 36, "type": "function_declarator", "text": "ocfs2_dentry_revalidate(struct dentry *dentry,\n\t\t\t\t struct nameidata *nd)", "parent": 34, "children": [37, 38], "start_point": {"row": 40, "column": 11}, "end_point": {"row": 41, "column": 28}}, {"id": 37, "type": "identifier", "text": "ocfs2_dentry_revalidate", "parent": 36, "children": [], "start_point": {"row": 40, "column": 11}, "end_point": {"row": 40, "column": 34}}, {"id": 38, "type": "parameter_list", "text": "(struct dentry *dentry,\n\t\t\t\t struct nameidata *nd)", "parent": 36, "children": [39, 46], "start_point": {"row": 40, "column": 34}, "end_point": {"row": 41, "column": 28}}, {"id": 39, "type": "parameter_declaration", "text": "struct dentry *dentry", "parent": 38, "children": [40, 43], "start_point": {"row": 40, "column": 35}, "end_point": {"row": 40, "column": 56}}, {"id": 40, "type": "struct_specifier", "text": "struct dentry", "parent": 39, "children": [41, 42], "start_point": {"row": 40, "column": 35}, "end_point": {"row": 40, "column": 48}}, {"id": 41, "type": "struct", "text": "struct", "parent": 40, "children": [], "start_point": {"row": 40, "column": 35}, "end_point": {"row": 40, "column": 41}}, {"id": 42, "type": "type_identifier", "text": "dentry", "parent": 40, "children": [], "start_point": {"row": 40, "column": 42}, "end_point": {"row": 40, "column": 48}}, {"id": 43, "type": "pointer_declarator", "text": "*dentry", "parent": 39, "children": [44, 45], "start_point": {"row": 40, "column": 49}, "end_point": {"row": 40, "column": 56}}, {"id": 44, "type": "*", "text": "*", "parent": 43, "children": [], "start_point": {"row": 40, "column": 49}, "end_point": {"row": 40, "column": 50}}, {"id": 45, "type": "identifier", "text": "dentry", "parent": 43, "children": [], "start_point": {"row": 40, "column": 50}, "end_point": {"row": 40, "column": 56}}, {"id": 46, "type": "parameter_declaration", "text": "struct nameidata *nd", "parent": 38, "children": [47, 50], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 41, "column": 27}}, {"id": 47, "type": "struct_specifier", "text": "struct nameidata", "parent": 46, "children": [48, 49], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 41, "column": 23}}, {"id": 48, "type": "struct", "text": "struct", "parent": 47, "children": [], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 41, "column": 13}}, {"id": 49, "type": "type_identifier", "text": "nameidata", "parent": 47, "children": [], "start_point": {"row": 41, "column": 14}, "end_point": {"row": 41, "column": 23}}, {"id": 50, "type": "pointer_declarator", "text": "*nd", "parent": 46, "children": [51, 52], "start_point": {"row": 41, "column": 24}, "end_point": {"row": 41, "column": 27}}, {"id": 51, "type": "*", "text": "*", "parent": 50, "children": [], "start_point": {"row": 41, "column": 24}, "end_point": {"row": 41, "column": 25}}, {"id": 52, "type": "identifier", "text": "nd", "parent": 50, "children": [], "start_point": {"row": 41, "column": 25}, "end_point": {"row": 41, "column": 27}}, {"id": 53, "type": "declaration", "text": "struct inode *inode = dentry->d_inode;", "parent": 34, "children": [54, 57], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 39}}, {"id": 54, "type": "struct_specifier", "text": "struct inode", "parent": 53, "children": [55, 56], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 13}}, {"id": 55, "type": "struct", "text": "struct", "parent": 54, "children": [], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 7}}, {"id": 56, "type": "type_identifier", "text": "inode", "parent": 54, "children": [], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 13}}, {"id": 57, "type": "init_declarator", "text": "*inode = dentry->d_inode", "parent": 53, "children": [58, 61, 62], "start_point": {"row": 43, "column": 14}, "end_point": {"row": 43, "column": 38}}, {"id": 58, "type": "pointer_declarator", "text": "*inode", "parent": 57, "children": [59, 60], "start_point": {"row": 43, "column": 14}, "end_point": {"row": 43, "column": 20}}, {"id": 59, "type": "*", "text": "*", "parent": 58, "children": [], "start_point": {"row": 43, "column": 14}, "end_point": {"row": 43, "column": 15}}, {"id": 60, "type": "identifier", "text": "inode", "parent": 58, "children": [], "start_point": {"row": 43, "column": 15}, "end_point": {"row": 43, "column": 20}}, {"id": 61, "type": "=", "text": "=", "parent": 57, "children": [], "start_point": {"row": 43, "column": 21}, "end_point": {"row": 43, "column": 22}}, {"id": 62, "type": "field_expression", "text": "dentry->d_inode", "parent": 57, "children": [63, 64], "start_point": {"row": 43, "column": 23}, "end_point": {"row": 43, "column": 38}}, {"id": 63, "type": "identifier", "text": "dentry", "parent": 62, "children": [], "start_point": {"row": 43, "column": 23}, "end_point": {"row": 43, "column": 29}}, {"id": 64, "type": "field_identifier", "text": "d_inode", "parent": 62, "children": [], "start_point": {"row": 43, "column": 31}, "end_point": {"row": 43, "column": 38}}, {"id": 65, "type": "declaration", "text": "int ret = 0;", "parent": 34, "children": [66, 67], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 13}}, {"id": 66, "type": "primitive_type", "text": "int", "parent": 65, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 4}}, {"id": 67, "type": "init_declarator", "text": "ret = 0", "parent": 65, "children": [68, 69, 70], "start_point": {"row": 44, "column": 5}, "end_point": {"row": 44, "column": 12}}, {"id": 68, "type": "identifier", "text": "ret", "parent": 67, "children": [], "start_point": {"row": 44, "column": 5}, "end_point": {"row": 44, "column": 8}}, {"id": 69, "type": "=", "text": "=", "parent": 67, "children": [], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 10}}, {"id": 70, "type": "number_literal", "text": "0", "parent": 67, "children": [], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 44, "column": 12}}, {"id": 71, "type": "declaration", "text": "struct ocfs2_super *osb;", "parent": 34, "children": [72, 75], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 25}}, {"id": 72, "type": "struct_specifier", "text": "struct ocfs2_super", "parent": 71, "children": [73, 74], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 19}}, {"id": 73, "type": "struct", "text": "struct", "parent": 72, "children": [], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 7}}, {"id": 74, "type": "type_identifier", "text": "ocfs2_super", "parent": 72, "children": [], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 19}}, {"id": 75, "type": "pointer_declarator", "text": "*osb", "parent": 71, "children": [76, 77], "start_point": {"row": 45, "column": 20}, "end_point": {"row": 45, "column": 24}}, {"id": 76, "type": "*", "text": "*", "parent": 75, "children": [], "start_point": {"row": 45, "column": 20}, "end_point": {"row": 45, "column": 21}}, {"id": 77, "type": "identifier", "text": "osb", "parent": 75, "children": [], "start_point": {"row": 45, "column": 21}, "end_point": {"row": 45, "column": 24}}, {"id": 78, "type": "call_expression", "text": "mlog_entry(\"(0x%p, '%.*s')\\n\", dentry,\n\t\t dentry->d_name.len, dentry->d_name.name)", "parent": 34, "children": [79, 80], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 48, "column": 45}}, {"id": 79, "type": "identifier", "text": "mlog_entry", "parent": 78, "children": [], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 11}}, {"id": 80, "type": "argument_list", "text": "(\"(0x%p, '%.*s')\\n\", dentry,\n\t\t dentry->d_name.len, dentry->d_name.name)", "parent": 78, "children": [81, 83, 84, 89], "start_point": {"row": 47, "column": 11}, "end_point": {"row": 48, "column": 45}}, {"id": 81, "type": "string_literal", "text": "\"(0x%p, '%.*s')\\n\"", "parent": 80, "children": [82], "start_point": {"row": 47, "column": 12}, "end_point": {"row": 47, "column": 30}}, {"id": 82, "type": "escape_sequence", "text": "\\n", "parent": 81, "children": [], "start_point": {"row": 47, "column": 27}, "end_point": {"row": 47, "column": 29}}, {"id": 83, "type": "identifier", "text": "dentry", "parent": 80, "children": [], "start_point": {"row": 47, "column": 32}, "end_point": {"row": 47, "column": 38}}, {"id": 84, "type": "field_expression", "text": "dentry->d_name.len", "parent": 80, "children": [85, 88], "start_point": {"row": 48, "column": 5}, "end_point": {"row": 48, "column": 23}}, {"id": 85, "type": "field_expression", "text": "dentry->d_name", "parent": 84, "children": [86, 87], "start_point": {"row": 48, "column": 5}, "end_point": {"row": 48, "column": 19}}, {"id": 86, "type": "identifier", "text": "dentry", "parent": 85, "children": [], "start_point": {"row": 48, "column": 5}, "end_point": {"row": 48, "column": 11}}, {"id": 87, "type": "field_identifier", "text": "d_name", "parent": 85, "children": [], "start_point": {"row": 48, "column": 13}, "end_point": {"row": 48, "column": 19}}, {"id": 88, "type": "field_identifier", "text": "len", "parent": 84, "children": [], "start_point": {"row": 48, "column": 20}, "end_point": {"row": 48, "column": 23}}, {"id": 89, "type": "field_expression", "text": "dentry->d_name.name", "parent": 80, "children": [90, 93], "start_point": {"row": 48, "column": 25}, "end_point": {"row": 48, "column": 44}}, {"id": 90, "type": "field_expression", "text": "dentry->d_name", "parent": 89, "children": [91, 92], "start_point": {"row": 48, "column": 25}, "end_point": {"row": 48, "column": 39}}, {"id": 91, "type": "identifier", "text": "dentry", "parent": 90, "children": [], "start_point": {"row": 48, "column": 25}, "end_point": {"row": 48, "column": 31}}, {"id": 92, "type": "field_identifier", "text": "d_name", "parent": 90, "children": [], "start_point": {"row": 48, "column": 33}, "end_point": {"row": 48, "column": 39}}, {"id": 93, "type": "field_identifier", "text": "name", "parent": 89, "children": [], "start_point": {"row": 48, "column": 40}, "end_point": {"row": 48, "column": 44}}, {"id": 94, "type": "if_statement", "text": "if (inode == NULL) {\n\t\tmlog(0, \"negative dentry: %.*s\\n\", dentry->d_name.len,\n\t\t dentry->d_name.name);\n\t\tgoto bail;\n\t}", "parent": 34, "children": [95], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 55, "column": 2}}, {"id": 95, "type": "parenthesized_expression", "text": "(inode == NULL)", "parent": 94, "children": [96], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 19}}, {"id": 96, "type": "binary_expression", "text": "inode == NULL", "parent": 95, "children": [97, 98, 99], "start_point": {"row": 51, "column": 5}, "end_point": {"row": 51, "column": 18}}, {"id": 97, "type": "identifier", "text": "inode", "parent": 96, "children": [], "start_point": {"row": 51, "column": 5}, "end_point": {"row": 51, "column": 10}}, {"id": 98, "type": "==", "text": "==", "parent": 96, "children": [], "start_point": {"row": 51, "column": 11}, "end_point": {"row": 51, "column": 13}}, {"id": 99, "type": "null", "text": "NULL", "parent": 96, "children": [100], "start_point": {"row": 51, "column": 14}, "end_point": {"row": 51, "column": 18}}, {"id": 100, "type": "NULL", "text": "NULL", "parent": 99, "children": [], "start_point": {"row": 51, "column": 14}, "end_point": {"row": 51, "column": 18}}, {"id": 101, "type": "call_expression", "text": "mlog(0, \"negative dentry: %.*s\\n\", dentry->d_name.len,\n\t\t dentry->d_name.name)", "parent": 94, "children": [102, 103], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 53, "column": 27}}, {"id": 102, "type": "identifier", "text": "mlog", "parent": 101, "children": [], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 6}}, {"id": 103, "type": "argument_list", "text": "(0, \"negative dentry: %.*s\\n\", dentry->d_name.len,\n\t\t dentry->d_name.name)", "parent": 101, "children": [104, 105, 107, 112], "start_point": {"row": 52, "column": 6}, "end_point": {"row": 53, "column": 27}}, {"id": 104, "type": "number_literal", "text": "0", "parent": 103, "children": [], "start_point": {"row": 52, "column": 7}, "end_point": {"row": 52, "column": 8}}, {"id": 105, "type": "string_literal", "text": "\"negative dentry: %.*s\\n\"", "parent": 103, "children": [106], "start_point": {"row": 52, "column": 10}, "end_point": {"row": 52, "column": 35}}, {"id": 106, "type": "escape_sequence", "text": "\\n", "parent": 105, "children": [], "start_point": {"row": 52, "column": 32}, "end_point": {"row": 52, "column": 34}}, {"id": 107, "type": "field_expression", "text": "dentry->d_name.len", "parent": 103, "children": [108, 111], "start_point": {"row": 52, "column": 37}, "end_point": {"row": 52, "column": 55}}, {"id": 108, "type": "field_expression", "text": "dentry->d_name", "parent": 107, "children": [109, 110], "start_point": {"row": 52, "column": 37}, "end_point": {"row": 52, "column": 51}}, {"id": 109, "type": "identifier", "text": "dentry", "parent": 108, "children": [], "start_point": {"row": 52, "column": 37}, "end_point": {"row": 52, "column": 43}}, {"id": 110, "type": "field_identifier", "text": "d_name", "parent": 108, "children": [], "start_point": {"row": 52, "column": 45}, "end_point": {"row": 52, "column": 51}}, {"id": 111, "type": "field_identifier", "text": "len", "parent": 107, "children": [], "start_point": {"row": 52, "column": 52}, "end_point": {"row": 52, "column": 55}}, {"id": 112, "type": "field_expression", "text": "dentry->d_name.name", "parent": 103, "children": [113, 116], "start_point": {"row": 53, "column": 7}, "end_point": {"row": 53, "column": 26}}, {"id": 113, "type": "field_expression", "text": "dentry->d_name", "parent": 112, "children": [114, 115], "start_point": {"row": 53, "column": 7}, "end_point": {"row": 53, "column": 21}}, {"id": 114, "type": "identifier", "text": "dentry", "parent": 113, "children": [], "start_point": {"row": 53, "column": 7}, "end_point": {"row": 53, "column": 13}}, {"id": 115, "type": "field_identifier", "text": "d_name", "parent": 113, "children": [], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 21}}, {"id": 116, "type": "field_identifier", "text": "name", "parent": 112, "children": [], "start_point": {"row": 53, "column": 22}, "end_point": {"row": 53, "column": 26}}, {"id": 117, "type": "goto_statement", "text": "goto bail;", "parent": 94, "children": [118, 119], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 12}}, {"id": 118, "type": "goto", "text": "goto", "parent": 117, "children": [], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 6}}, {"id": 119, "type": "statement_identifier", "text": "bail", "parent": 117, "children": [], "start_point": {"row": 54, "column": 7}, "end_point": {"row": 54, "column": 11}}, {"id": 120, "type": "assignment_expression", "text": "osb = OCFS2_SB(inode->i_sb)", "parent": 34, "children": [121, 122, 123], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 28}}, {"id": 121, "type": "identifier", "text": "osb", "parent": 120, "children": [], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 4}}, {"id": 122, "type": "=", "text": "=", "parent": 120, "children": [], "start_point": {"row": 57, "column": 5}, "end_point": {"row": 57, "column": 6}}, {"id": 123, "type": "call_expression", "text": "OCFS2_SB(inode->i_sb)", "parent": 120, "children": [124, 125], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 28}}, {"id": 124, "type": "identifier", "text": "OCFS2_SB", "parent": 123, "children": [], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 15}}, {"id": 125, "type": "argument_list", "text": "(inode->i_sb)", "parent": 123, "children": [126], "start_point": {"row": 57, "column": 15}, "end_point": {"row": 57, "column": 28}}, {"id": 126, "type": "field_expression", "text": "inode->i_sb", "parent": 125, "children": [127, 128], "start_point": {"row": 57, "column": 16}, "end_point": {"row": 57, "column": 27}}, {"id": 127, "type": "identifier", "text": "inode", "parent": 126, "children": [], "start_point": {"row": 57, "column": 16}, "end_point": {"row": 57, "column": 21}}, {"id": 128, "type": "field_identifier", "text": "i_sb", "parent": 126, "children": [], "start_point": {"row": 57, "column": 23}, "end_point": {"row": 57, "column": 27}}, {"id": 129, "type": "call_expression", "text": "BUG_ON(!osb)", "parent": 34, "children": [130, 131], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 13}}, {"id": 130, "type": "identifier", "text": "BUG_ON", "parent": 129, "children": [], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 7}}, {"id": 131, "type": "argument_list", "text": "(!osb)", "parent": 129, "children": [132], "start_point": {"row": 59, "column": 7}, "end_point": {"row": 59, "column": 13}}, {"id": 132, "type": "unary_expression", "text": "!osb", "parent": 131, "children": [133, 134], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 12}}, {"id": 133, "type": "!", "text": "!", "parent": 132, "children": [], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 9}}, {"id": 134, "type": "identifier", "text": "osb", "parent": 132, "children": [], "start_point": {"row": 59, "column": 9}, "end_point": {"row": 59, "column": 12}}, {"id": 135, "type": "if_statement", "text": "if (inode != osb->root_inode) {\n\t\tspin_lock(&OCFS2_I(inode)->ip_lock);\n\t\t/* did we or someone else delete this inode? */\n\t\tif (OCFS2_I(inode)->ip_flags & OCFS2_INODE_DELETED) {\n\t\t\tspin_unlock(&OCFS2_I(inode)->ip_lock);\n\t\t\tmlog(0, \"inode (%\"MLFu64\") deleted, returning false\\n\",\n\t\t\t OCFS2_I(inode)->ip_blkno);\n\t\t\tgoto bail;\n\t\t}\n\t\tspin_unlock(&OCFS2_I(inode)->ip_lock);\n\n\t\tif (!inode->i_nlink) {\n\t\t\tmlog(0, \"Inode %\"MLFu64\" orphaned, returning false \"\n\t\t\t \"dir = %d\\n\", OCFS2_I(inode)->ip_blkno,\n\t\t\t S_ISDIR(inode->i_mode));\n\t\t\tgoto bail;\n\t\t}\n\t}", "parent": 34, "children": [136], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 78, "column": 2}}, {"id": 136, "type": "parenthesized_expression", "text": "(inode != osb->root_inode)", "parent": 135, "children": [137], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 30}}, {"id": 137, "type": "binary_expression", "text": "inode != osb->root_inode", "parent": 136, "children": [138, 139, 140], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 29}}, {"id": 138, "type": "identifier", "text": "inode", "parent": 137, "children": [], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 10}}, {"id": 139, "type": "!=", "text": "!=", "parent": 137, "children": [], "start_point": {"row": 61, "column": 11}, "end_point": {"row": 61, "column": 13}}, {"id": 140, "type": "field_expression", "text": "osb->root_inode", "parent": 137, "children": [141, 142], "start_point": {"row": 61, "column": 14}, "end_point": {"row": 61, "column": 29}}, {"id": 141, "type": "identifier", "text": "osb", "parent": 140, "children": [], "start_point": {"row": 61, "column": 14}, "end_point": {"row": 61, "column": 17}}, {"id": 142, "type": "field_identifier", "text": "root_inode", "parent": 140, "children": [], "start_point": {"row": 61, "column": 19}, "end_point": {"row": 61, "column": 29}}, {"id": 143, "type": "call_expression", "text": "spin_lock(&OCFS2_I(inode)->ip_lock)", "parent": 135, "children": [144, 145], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 37}}, {"id": 144, "type": "identifier", "text": "spin_lock", "parent": 143, "children": [], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 11}}, {"id": 145, "type": "argument_list", "text": "(&OCFS2_I(inode)->ip_lock)", "parent": 143, "children": [146], "start_point": {"row": 62, "column": 11}, "end_point": {"row": 62, "column": 37}}, {"id": 146, "type": "pointer_expression", "text": "&OCFS2_I(inode)->ip_lock", "parent": 145, "children": [147], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 62, "column": 36}}, {"id": 147, "type": "field_expression", "text": "OCFS2_I(inode)->ip_lock", "parent": 146, "children": [148, 152], "start_point": {"row": 62, "column": 13}, "end_point": {"row": 62, "column": 36}}, {"id": 148, "type": "call_expression", "text": "OCFS2_I(inode)", "parent": 147, "children": [149, 150], "start_point": {"row": 62, "column": 13}, "end_point": {"row": 62, "column": 27}}, {"id": 149, "type": "identifier", "text": "OCFS2_I", "parent": 148, "children": [], "start_point": {"row": 62, "column": 13}, "end_point": {"row": 62, "column": 20}}, {"id": 150, "type": "argument_list", "text": "(inode)", "parent": 148, "children": [151], "start_point": {"row": 62, "column": 20}, "end_point": {"row": 62, "column": 27}}, {"id": 151, "type": "identifier", "text": "inode", "parent": 150, "children": [], "start_point": {"row": 62, "column": 21}, "end_point": {"row": 62, "column": 26}}, {"id": 152, "type": "field_identifier", "text": "ip_lock", "parent": 147, "children": [], "start_point": {"row": 62, "column": 29}, "end_point": {"row": 62, "column": 36}}, {"id": 153, "type": "if_statement", "text": "if (OCFS2_I(inode)->ip_flags & OCFS2_INODE_DELETED) {\n\t\t\tspin_unlock(&OCFS2_I(inode)->ip_lock);\n\t\t\tmlog(0, \"inode (%\"MLFu64\") deleted, returning false\\n\",\n\t\t\t OCFS2_I(inode)->ip_blkno);\n\t\t\tgoto bail;\n\t\t}", "parent": 135, "children": [154], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 69, "column": 3}}, {"id": 154, "type": "parenthesized_expression", "text": "(OCFS2_I(inode)->ip_flags & OCFS2_INODE_DELETED)", "parent": 153, "children": [155], "start_point": {"row": 64, "column": 5}, "end_point": {"row": 64, "column": 53}}, {"id": 155, "type": "binary_expression", "text": "OCFS2_I(inode)->ip_flags & OCFS2_INODE_DELETED", "parent": 154, "children": [156, 162], "start_point": {"row": 64, "column": 6}, "end_point": {"row": 64, "column": 52}}, {"id": 156, "type": "field_expression", "text": "OCFS2_I(inode)->ip_flags", "parent": 155, "children": [157, 161], "start_point": {"row": 64, "column": 6}, "end_point": {"row": 64, "column": 30}}, {"id": 157, "type": "call_expression", "text": "OCFS2_I(inode)", "parent": 156, "children": [158, 159], "start_point": {"row": 64, "column": 6}, "end_point": {"row": 64, "column": 20}}, {"id": 158, "type": "identifier", "text": "OCFS2_I", "parent": 157, "children": [], "start_point": {"row": 64, "column": 6}, "end_point": {"row": 64, "column": 13}}, {"id": 159, "type": "argument_list", "text": "(inode)", "parent": 157, "children": [160], "start_point": {"row": 64, "column": 13}, "end_point": {"row": 64, "column": 20}}, {"id": 160, "type": "identifier", "text": "inode", "parent": 159, "children": [], "start_point": {"row": 64, "column": 14}, "end_point": {"row": 64, "column": 19}}, {"id": 161, "type": "field_identifier", "text": "ip_flags", "parent": 156, "children": [], "start_point": {"row": 64, "column": 22}, "end_point": {"row": 64, "column": 30}}, {"id": 162, "type": "identifier", "text": "OCFS2_INODE_DELETED", "parent": 155, "children": [], "start_point": {"row": 64, "column": 33}, "end_point": {"row": 64, "column": 52}}, {"id": 163, "type": "call_expression", "text": "spin_unlock(&OCFS2_I(inode)->ip_lock)", "parent": 153, "children": [164, 165], "start_point": {"row": 65, "column": 3}, "end_point": {"row": 65, "column": 40}}, {"id": 164, "type": "identifier", "text": "spin_unlock", "parent": 163, "children": [], "start_point": {"row": 65, "column": 3}, "end_point": {"row": 65, "column": 14}}, {"id": 165, "type": "argument_list", "text": "(&OCFS2_I(inode)->ip_lock)", "parent": 163, "children": [166], "start_point": {"row": 65, "column": 14}, "end_point": {"row": 65, "column": 40}}, {"id": 166, "type": "pointer_expression", "text": "&OCFS2_I(inode)->ip_lock", "parent": 165, "children": [167], "start_point": {"row": 65, "column": 15}, "end_point": {"row": 65, "column": 39}}, {"id": 167, "type": "field_expression", "text": "OCFS2_I(inode)->ip_lock", "parent": 166, "children": [168, 172], "start_point": {"row": 65, "column": 16}, "end_point": {"row": 65, "column": 39}}, {"id": 168, "type": "call_expression", "text": "OCFS2_I(inode)", "parent": 167, "children": [169, 170], "start_point": {"row": 65, "column": 16}, "end_point": {"row": 65, "column": 30}}, {"id": 169, "type": "identifier", "text": "OCFS2_I", "parent": 168, "children": [], "start_point": {"row": 65, "column": 16}, "end_point": {"row": 65, "column": 23}}, {"id": 170, "type": "argument_list", "text": "(inode)", "parent": 168, "children": [171], "start_point": {"row": 65, "column": 23}, "end_point": {"row": 65, "column": 30}}, {"id": 171, "type": "identifier", "text": "inode", "parent": 170, "children": [], "start_point": {"row": 65, "column": 24}, "end_point": {"row": 65, "column": 29}}, {"id": 172, "type": "field_identifier", "text": "ip_lock", "parent": 167, "children": [], "start_point": {"row": 65, "column": 32}, "end_point": {"row": 65, "column": 39}}, {"id": 173, "type": "call_expression", "text": "mlog(0, \"inode (%\"MLFu64\") deleted, returning false\\n\",\n\t\t\t OCFS2_I(inode)->ip_blkno)", "parent": 153, "children": [174, 175], "start_point": {"row": 66, "column": 3}, "end_point": {"row": 67, "column": 33}}, {"id": 174, "type": "identifier", "text": "mlog", "parent": 173, "children": [], "start_point": {"row": 66, "column": 3}, "end_point": {"row": 66, "column": 7}}, {"id": 175, "type": "argument_list", "text": "(0, \"inode (%\"MLFu64\") deleted, returning false\\n\",\n\t\t\t OCFS2_I(inode)->ip_blkno)", "parent": 173, "children": [176, 177, 182], "start_point": {"row": 66, "column": 7}, "end_point": {"row": 67, "column": 33}}, {"id": 176, "type": "number_literal", "text": "0", "parent": 175, "children": [], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 9}}, {"id": 177, "type": "concatenated_string", "text": "\"inode (%\"MLFu64\") deleted, returning false\\n\"", "parent": 175, "children": [178, 179, 180], "start_point": {"row": 66, "column": 11}, "end_point": {"row": 66, "column": 57}}, {"id": 178, "type": "string_literal", "text": "\"inode (%\"", "parent": 177, "children": [], "start_point": {"row": 66, "column": 11}, "end_point": {"row": 66, "column": 21}}, {"id": 179, "type": "identifier", "text": "MLFu64", "parent": 177, "children": [], "start_point": {"row": 66, "column": 21}, "end_point": {"row": 66, "column": 27}}, {"id": 180, "type": "string_literal", "text": "\") deleted, returning false\\n\"", "parent": 177, "children": [181], "start_point": {"row": 66, "column": 27}, "end_point": {"row": 66, "column": 57}}, {"id": 181, "type": "escape_sequence", "text": "\\n", "parent": 180, "children": [], "start_point": {"row": 66, "column": 54}, "end_point": {"row": 66, "column": 56}}, {"id": 182, "type": "field_expression", "text": "OCFS2_I(inode)->ip_blkno", "parent": 175, "children": [183, 187], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 32}}, {"id": 183, "type": "call_expression", "text": "OCFS2_I(inode)", "parent": 182, "children": [184, 185], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 22}}, {"id": 184, "type": "identifier", "text": "OCFS2_I", "parent": 183, "children": [], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 15}}, {"id": 185, "type": "argument_list", "text": "(inode)", "parent": 183, "children": [186], "start_point": {"row": 67, "column": 15}, "end_point": {"row": 67, "column": 22}}, {"id": 186, "type": "identifier", "text": "inode", "parent": 185, "children": [], "start_point": {"row": 67, "column": 16}, "end_point": {"row": 67, "column": 21}}, {"id": 187, "type": "field_identifier", "text": "ip_blkno", "parent": 182, "children": [], "start_point": {"row": 67, "column": 24}, "end_point": {"row": 67, "column": 32}}, {"id": 188, "type": "goto_statement", "text": "goto bail;", "parent": 153, "children": [189, 190], "start_point": {"row": 68, "column": 3}, "end_point": {"row": 68, "column": 13}}, {"id": 189, "type": "goto", "text": "goto", "parent": 188, "children": [], "start_point": {"row": 68, "column": 3}, "end_point": {"row": 68, "column": 7}}, {"id": 190, "type": "statement_identifier", "text": "bail", "parent": 188, "children": [], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 12}}, {"id": 191, "type": "call_expression", "text": "spin_unlock(&OCFS2_I(inode)->ip_lock)", "parent": 135, "children": [192, 193], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 39}}, {"id": 192, "type": "identifier", "text": "spin_unlock", "parent": 191, "children": [], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 13}}, {"id": 193, "type": "argument_list", "text": "(&OCFS2_I(inode)->ip_lock)", "parent": 191, "children": [194], "start_point": {"row": 70, "column": 13}, "end_point": {"row": 70, "column": 39}}, {"id": 194, "type": "pointer_expression", "text": "&OCFS2_I(inode)->ip_lock", "parent": 193, "children": [195], "start_point": {"row": 70, "column": 14}, "end_point": {"row": 70, "column": 38}}, {"id": 195, "type": "field_expression", "text": "OCFS2_I(inode)->ip_lock", "parent": 194, "children": [196, 200], "start_point": {"row": 70, "column": 15}, "end_point": {"row": 70, "column": 38}}, {"id": 196, "type": "call_expression", "text": "OCFS2_I(inode)", "parent": 195, "children": [197, 198], "start_point": {"row": 70, "column": 15}, "end_point": {"row": 70, "column": 29}}, {"id": 197, "type": "identifier", "text": "OCFS2_I", "parent": 196, "children": [], "start_point": {"row": 70, "column": 15}, "end_point": {"row": 70, "column": 22}}, {"id": 198, "type": "argument_list", "text": "(inode)", "parent": 196, "children": [199], "start_point": {"row": 70, "column": 22}, "end_point": {"row": 70, "column": 29}}, {"id": 199, "type": "identifier", "text": "inode", "parent": 198, "children": [], "start_point": {"row": 70, "column": 23}, "end_point": {"row": 70, "column": 28}}, {"id": 200, "type": "field_identifier", "text": "ip_lock", "parent": 195, "children": [], "start_point": {"row": 70, "column": 31}, "end_point": {"row": 70, "column": 38}}, {"id": 201, "type": "if_statement", "text": "if (!inode->i_nlink) {\n\t\t\tmlog(0, \"Inode %\"MLFu64\" orphaned, returning false \"\n\t\t\t \"dir = %d\\n\", OCFS2_I(inode)->ip_blkno,\n\t\t\t S_ISDIR(inode->i_mode));\n\t\t\tgoto bail;\n\t\t}", "parent": 135, "children": [202], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 77, "column": 3}}, {"id": 202, "type": "parenthesized_expression", "text": "(!inode->i_nlink)", "parent": 201, "children": [203], "start_point": {"row": 72, "column": 5}, "end_point": {"row": 72, "column": 22}}, {"id": 203, "type": "unary_expression", "text": "!inode->i_nlink", "parent": 202, "children": [204, 205], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 21}}, {"id": 204, "type": "!", "text": "!", "parent": 203, "children": [], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 7}}, {"id": 205, "type": "field_expression", "text": "inode->i_nlink", "parent": 203, "children": [206, 207], "start_point": {"row": 72, "column": 7}, "end_point": {"row": 72, "column": 21}}, {"id": 206, "type": "identifier", "text": "inode", "parent": 205, "children": [], "start_point": {"row": 72, "column": 7}, "end_point": {"row": 72, "column": 12}}, {"id": 207, "type": "field_identifier", "text": "i_nlink", "parent": 205, "children": [], "start_point": {"row": 72, "column": 14}, "end_point": {"row": 72, "column": 21}}, {"id": 208, "type": "call_expression", "text": "mlog(0, \"Inode %\"MLFu64\" orphaned, returning false \"\n\t\t\t \"dir = %d\\n\", OCFS2_I(inode)->ip_blkno,\n\t\t\t S_ISDIR(inode->i_mode))", "parent": 201, "children": [209, 210], "start_point": {"row": 73, "column": 3}, "end_point": {"row": 75, "column": 31}}, {"id": 209, "type": "identifier", "text": "mlog", "parent": 208, "children": [], "start_point": {"row": 73, "column": 3}, "end_point": {"row": 73, "column": 7}}, {"id": 210, "type": "argument_list", "text": "(0, \"Inode %\"MLFu64\" orphaned, returning false \"\n\t\t\t \"dir = %d\\n\", OCFS2_I(inode)->ip_blkno,\n\t\t\t S_ISDIR(inode->i_mode))", "parent": 208, "children": [211, 212, 218, 224], "start_point": {"row": 73, "column": 7}, "end_point": {"row": 75, "column": 31}}, {"id": 211, "type": "number_literal", "text": "0", "parent": 210, "children": [], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 9}}, {"id": 212, "type": "concatenated_string", "text": "\"Inode %\"MLFu64\" orphaned, returning false \"\n\t\t\t \"dir = %d\\n\"", "parent": 210, "children": [213, 214, 215, 216], "start_point": {"row": 73, "column": 11}, "end_point": {"row": 74, "column": 20}}, {"id": 213, "type": "string_literal", "text": "\"Inode %\"", "parent": 212, "children": [], "start_point": {"row": 73, "column": 11}, "end_point": {"row": 73, "column": 20}}, {"id": 214, "type": "identifier", "text": "MLFu64", "parent": 212, "children": [], "start_point": {"row": 73, "column": 20}, "end_point": {"row": 73, "column": 26}}, {"id": 215, "type": "string_literal", "text": "\" orphaned, returning false \"", "parent": 212, "children": [], "start_point": {"row": 73, "column": 26}, "end_point": {"row": 73, "column": 55}}, {"id": 216, "type": "string_literal", "text": "\"dir = %d\\n\"", "parent": 212, "children": [217], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 20}}, {"id": 217, "type": "escape_sequence", "text": "\\n", "parent": 216, "children": [], "start_point": {"row": 74, "column": 17}, "end_point": {"row": 74, "column": 19}}, {"id": 218, "type": "field_expression", "text": "OCFS2_I(inode)->ip_blkno", "parent": 210, "children": [219, 223], "start_point": {"row": 74, "column": 22}, "end_point": {"row": 74, "column": 46}}, {"id": 219, "type": "call_expression", "text": "OCFS2_I(inode)", "parent": 218, "children": [220, 221], "start_point": {"row": 74, "column": 22}, "end_point": {"row": 74, "column": 36}}, {"id": 220, "type": "identifier", "text": "OCFS2_I", "parent": 219, "children": [], "start_point": {"row": 74, "column": 22}, "end_point": {"row": 74, "column": 29}}, {"id": 221, "type": "argument_list", "text": "(inode)", "parent": 219, "children": [222], "start_point": {"row": 74, "column": 29}, "end_point": {"row": 74, "column": 36}}, {"id": 222, "type": "identifier", "text": "inode", "parent": 221, "children": [], "start_point": {"row": 74, "column": 30}, "end_point": {"row": 74, "column": 35}}, {"id": 223, "type": "field_identifier", "text": "ip_blkno", "parent": 218, "children": [], "start_point": {"row": 74, "column": 38}, "end_point": {"row": 74, "column": 46}}, {"id": 224, "type": "call_expression", "text": "S_ISDIR(inode->i_mode)", "parent": 210, "children": [225, 226], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 30}}, {"id": 225, "type": "identifier", "text": "S_ISDIR", "parent": 224, "children": [], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 15}}, {"id": 226, "type": "argument_list", "text": "(inode->i_mode)", "parent": 224, "children": [227], "start_point": {"row": 75, "column": 15}, "end_point": {"row": 75, "column": 30}}, {"id": 227, "type": "field_expression", "text": "inode->i_mode", "parent": 226, "children": [228, 229], "start_point": {"row": 75, "column": 16}, "end_point": {"row": 75, "column": 29}}, {"id": 228, "type": "identifier", "text": "inode", "parent": 227, "children": [], "start_point": {"row": 75, "column": 16}, "end_point": {"row": 75, "column": 21}}, {"id": 229, "type": "field_identifier", "text": "i_mode", "parent": 227, "children": [], "start_point": {"row": 75, "column": 23}, "end_point": {"row": 75, "column": 29}}, {"id": 230, "type": "goto_statement", "text": "goto bail;", "parent": 201, "children": [231, 232], "start_point": {"row": 76, "column": 3}, "end_point": {"row": 76, "column": 13}}, {"id": 231, "type": "goto", "text": "goto", "parent": 230, "children": [], "start_point": {"row": 76, "column": 3}, "end_point": {"row": 76, "column": 7}}, {"id": 232, "type": "statement_identifier", "text": "bail", "parent": 230, "children": [], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 12}}, {"id": 233, "type": "assignment_expression", "text": "ret = 1", "parent": 34, "children": [234, 235, 236], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 8}}, {"id": 234, "type": "identifier", "text": "ret", "parent": 233, "children": [], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 4}}, {"id": 235, "type": "=", "text": "=", "parent": 233, "children": [], "start_point": {"row": 80, "column": 5}, "end_point": {"row": 80, "column": 6}}, {"id": 236, "type": "number_literal", "text": "1", "parent": 233, "children": [], "start_point": {"row": 80, "column": 7}, "end_point": {"row": 80, "column": 8}}, {"id": 237, "type": "labeled_statement", "text": "bail:\n\tmlog_exit(ret);", "parent": 34, "children": [238], "start_point": {"row": 82, "column": 0}, "end_point": {"row": 83, "column": 16}}, {"id": 238, "type": "statement_identifier", "text": "bail", "parent": 237, "children": [], "start_point": {"row": 82, "column": 0}, "end_point": {"row": 82, "column": 4}}, {"id": 239, "type": "call_expression", "text": "mlog_exit(ret)", "parent": 237, "children": [240, 241], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 15}}, {"id": 240, "type": "identifier", "text": "mlog_exit", "parent": 239, "children": [], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 10}}, {"id": 241, "type": "argument_list", "text": "(ret)", "parent": 239, "children": [242], "start_point": {"row": 83, "column": 10}, "end_point": {"row": 83, "column": 15}}, {"id": 242, "type": "identifier", "text": "ret", "parent": 241, "children": [], "start_point": {"row": 83, "column": 11}, "end_point": {"row": 83, "column": 14}}, {"id": 243, "type": "return_statement", "text": "return ret;", "parent": 34, "children": [244], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 12}}, {"id": 244, "type": "identifier", "text": "ret", "parent": 243, "children": [], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 85, "column": 11}}, {"id": 245, "type": "declaration", "text": "struct dentry_operations ocfs2_dentry_ops = {\n\t.d_revalidate\t\t= ocfs2_dentry_revalidate,\n};", "parent": null, "children": [246, 249], "start_point": {"row": 88, "column": 0}, "end_point": {"row": 90, "column": 2}}, {"id": 246, "type": "struct_specifier", "text": "struct dentry_operations", "parent": 245, "children": [247, 248], "start_point": {"row": 88, "column": 0}, "end_point": {"row": 88, "column": 24}}, {"id": 247, "type": "struct", "text": "struct", "parent": 246, "children": [], "start_point": {"row": 88, "column": 0}, "end_point": {"row": 88, "column": 6}}, {"id": 248, "type": "type_identifier", "text": "dentry_operations", "parent": 246, "children": [], "start_point": {"row": 88, "column": 7}, "end_point": {"row": 88, "column": 24}}, {"id": 249, "type": "init_declarator", "text": "ocfs2_dentry_ops = {\n\t.d_revalidate\t\t= ocfs2_dentry_revalidate,\n}", "parent": 245, "children": [250, 251, 252], "start_point": {"row": 88, "column": 25}, "end_point": {"row": 90, "column": 1}}, {"id": 250, "type": "identifier", "text": "ocfs2_dentry_ops", "parent": 249, "children": [], "start_point": {"row": 88, "column": 25}, "end_point": {"row": 88, "column": 41}}, {"id": 251, "type": "=", "text": "=", "parent": 249, "children": [], "start_point": {"row": 88, "column": 42}, "end_point": {"row": 88, "column": 43}}, {"id": 252, "type": "initializer_list", "text": "{\n\t.d_revalidate\t\t= ocfs2_dentry_revalidate,\n}", "parent": 249, "children": [253], "start_point": {"row": 88, "column": 44}, "end_point": {"row": 90, "column": 1}}, {"id": 253, "type": "initializer_pair", "text": ".d_revalidate\t\t= ocfs2_dentry_revalidate", "parent": 252, "children": [254, 256, 257], "start_point": {"row": 89, "column": 1}, "end_point": {"row": 89, "column": 41}}, {"id": 254, "type": "field_designator", "text": ".d_revalidate", "parent": 253, "children": [255], "start_point": {"row": 89, "column": 1}, "end_point": {"row": 89, "column": 14}}, {"id": 255, "type": "field_identifier", "text": "d_revalidate", "parent": 254, "children": [], "start_point": {"row": 89, "column": 2}, "end_point": {"row": 89, "column": 14}}, {"id": 256, "type": "=", "text": "=", "parent": 253, "children": [], "start_point": {"row": 89, "column": 16}, "end_point": {"row": 89, "column": 17}}, {"id": 257, "type": "identifier", "text": "ocfs2_dentry_revalidate", "parent": 253, "children": [], "start_point": {"row": 89, "column": 18}, "end_point": {"row": 89, "column": 41}}]}, "node_categories": {"declarations": {"functions": [34, 36], "variables": [39, 46, 53, 65, 71, 245], "classes": [40, 41, 47, 48, 54, 55, 72, 73, 246, 247], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 16, 17, 19, 20, 22, 23, 25, 26, 28, 29, 31, 32], "modules": [], "enums": []}, "statements": {"expressions": [62, 78, 84, 85, 89, 90, 95, 96, 101, 107, 108, 112, 113, 123, 126, 129, 132, 136, 137, 140, 143, 146, 147, 148, 154, 155, 156, 157, 163, 166, 167, 168, 173, 182, 183, 191, 194, 195, 196, 202, 203, 205, 208, 218, 219, 224, 227, 239], "assignments": [120, 233], "loops": [], "conditionals": [14, 37, 42, 45, 49, 52, 56, 60, 63, 64, 68, 74, 77, 79, 83, 86, 87, 88, 91, 92, 93, 94, 97, 102, 109, 110, 111, 114, 115, 116, 119, 121, 124, 127, 128, 130, 134, 135, 138, 141, 142, 144, 149, 151, 152, 153, 158, 160, 161, 162, 164, 169, 171, 172, 174, 179, 184, 186, 187, 190, 192, 197, 199, 200, 201, 206, 207, 209, 214, 220, 222, 223, 225, 228, 229, 232, 234, 238, 240, 242, 244, 248, 250, 255, 257], "returns": [243], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 18, 21, 24, 27, 30, 33, 70, 81, 104, 105, 176, 177, 178, 180, 211, 212, 213, 215, 216, 236], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": [254]}}, "cross_language_map": {"function_declarations": [{"node_id": 34, "universal_type": "function", "name": "ocfs2_dentry_revalidate", "text_snippet": "static int ocfs2_dentry_revalidate(struct dentry *dentry,\n\t\t\t\t struct nameidata *nd)\n{\n\tstruct ino"}, {"node_id": 36, "universal_type": "function", "name": "nameidata", "text_snippet": "ocfs2_dentry_revalidate(struct dentry *dentry,\n\t\t\t\t struct nameidata *nd)"}], "class_declarations": [{"node_id": 40, "universal_type": "class", "name": "dentry", "text_snippet": "struct dentry"}, {"node_id": 41, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 47, "universal_type": "class", "name": "nameidata", "text_snippet": "struct nameidata"}, {"node_id": 48, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 54, "universal_type": "class", "name": "inode", "text_snippet": "struct inode"}, {"node_id": 55, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 72, "universal_type": "class", "name": "ocfs2_super", "text_snippet": "struct ocfs2_super"}, {"node_id": 73, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 246, "universal_type": "class", "name": "dentry_operations", "text_snippet": "struct dentry_operations"}, {"node_id": 247, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include <linux/fs.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <linux/types.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <linux/slab.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <linux/namei.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 16, "text": "#include <cluster/masklog.h>\n"}, {"node_id": 17, "text": "#include"}, {"node_id": 19, "text": "#include \"ocfs2.h\"\n"}, {"node_id": 20, "text": "#include"}, {"node_id": 22, "text": "#include \"alloc.h\"\n"}, {"node_id": 23, "text": "#include"}, {"node_id": 25, "text": "#include \"dcache.h\"\n"}, {"node_id": 26, "text": "#include"}, {"node_id": 28, "text": "#include \"file.h\"\n"}, {"node_id": 29, "text": "#include"}, {"node_id": 31, "text": "#include \"inode.h\"\n"}, {"node_id": 32, "text": "#include"}]}, "original_source_code": "/* -*- mode: c; c-basic-offset: 8; -*-\n * vim: noexpandtab sw=8 ts=8 sts=0:\n *\n * dcache.c\n *\n * dentry cache handling code\n *\n * Copyright (C) 2002, 2004 Oracle. All rights reserved.\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public\n * License as published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but 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\n * License along with this program; if not, write to the\n * Free Software Foundation, Inc., 59 Temple Place - Suite 330,\n * Boston, MA 021110-1307, USA.\n */\n\n#include <linux/fs.h>\n#include <linux/types.h>\n#include <linux/slab.h>\n#include <linux/namei.h>\n\n#define MLOG_MASK_PREFIX ML_DCACHE\n#include <cluster/masklog.h>\n\n#include \"ocfs2.h\"\n\n#include \"alloc.h\"\n#include \"dcache.h\"\n#include \"file.h\"\n#include \"inode.h\"\n\nstatic int ocfs2_dentry_revalidate(struct dentry *dentry,\n\t\t\t\t struct nameidata *nd)\n{\n\tstruct inode *inode = dentry->d_inode;\n\tint ret = 0; /* if all else fails, just return false */\n\tstruct ocfs2_super *osb;\n\n\tmlog_entry(\"(0x%p, '%.*s')\\n\", dentry,\n\t\t dentry->d_name.len, dentry->d_name.name);\n\n\t/* Never trust a negative dentry - force a new lookup. */\n\tif (inode == NULL) {\n\t\tmlog(0, \"negative dentry: %.*s\\n\", dentry->d_name.len,\n\t\t dentry->d_name.name);\n\t\tgoto bail;\n\t}\n\n\tosb = OCFS2_SB(inode->i_sb);\n\n\tBUG_ON(!osb);\n\n\tif (inode != osb->root_inode) {\n\t\tspin_lock(&OCFS2_I(inode)->ip_lock);\n\t\t/* did we or someone else delete this inode? */\n\t\tif (OCFS2_I(inode)->ip_flags & OCFS2_INODE_DELETED) {\n\t\t\tspin_unlock(&OCFS2_I(inode)->ip_lock);\n\t\t\tmlog(0, \"inode (%\"MLFu64\") deleted, returning false\\n\",\n\t\t\t OCFS2_I(inode)->ip_blkno);\n\t\t\tgoto bail;\n\t\t}\n\t\tspin_unlock(&OCFS2_I(inode)->ip_lock);\n\n\t\tif (!inode->i_nlink) {\n\t\t\tmlog(0, \"Inode %\"MLFu64\" orphaned, returning false \"\n\t\t\t \"dir = %d\\n\", OCFS2_I(inode)->ip_blkno,\n\t\t\t S_ISDIR(inode->i_mode));\n\t\t\tgoto bail;\n\t\t}\n\t}\n\n\tret = 1;\n\nbail:\n\tmlog_exit(ret);\n\n\treturn ret;\n}\n\nstruct dentry_operations ocfs2_dentry_ops = {\n\t.d_revalidate\t\t= ocfs2_dentry_revalidate,\n};\n"}
80,215
c
/* * If not stated otherwise in this file or this component's Licenses.txt file the * following copyright and licenses apply: * * Copyright 2019 RDK Management * * 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 _HARVESTER_AVRO_H #define _HARVESTER_AVRO_H #include <sys/time.h> #include <wifi_hal.h> #include <pthread.h> struct associateddevicedata { struct timeval timestamp; char* sSidName; char* bssid; char* radioOperatingFrequencyBand; //Possible value 2.4Ghz and 5.0 Ghz ULONG radioChannel; // Possible Value between 1-11 ULONG numAssocDevices; wifi_associated_dev_t* devicedata; struct associateddevicedata *next; }; struct neighboringapdata { struct timeval timestamp; char* radioName; char* radioOperatingFrequencyBand; //Possible value 2.4Ghz and 5.0 Ghz ULONG radioChannel; // Possible Value between 1-11 ULONG numNeibouringAP; wifi_neighbor_ap2_t* napdata; struct neighboringapdata *next; }; struct radiotrafficdata { struct timeval timestamp; char* radioBssid; BOOL enabled; char* radioOperatingFrequencyBand; //Possible value 2.4Ghz and 5.0 Ghz ULONG radioChannel; // Possible Value between 1-11 char* radiOperatingChannelBandwidth; wifi_radioTrafficStats2_t* rtdata; struct radiotrafficdata *next; }; extern void harvester_report_associateddevices(struct associateddevicedata *head, char* ServiceType); extern void harvester_report_neighboringap(struct neighboringapdata *head); extern void harvester_report_radiotraffic(struct radiotrafficdata *head); #endif /* !_HARVESTER_AVRO_H */
32.16
61
(translation_unit) "/*\n * If not stated otherwise in this file or this component's Licenses.txt file the\n * following copyright and licenses apply:\n *\n * Copyright 2019 RDK Management\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#ifndef _HARVESTER_AVRO_H\n#define _HARVESTER_AVRO_H\n\n#include <sys/time.h>\n#include <wifi_hal.h>\n#include <pthread.h>\n\nstruct associateddevicedata\n{\nstruct timeval timestamp;\nchar* sSidName;\nchar* bssid;\nchar* radioOperatingFrequencyBand; //Possible value 2.4Ghz and 5.0 Ghz\nULONG radioChannel; // Possible Value between 1-11\nULONG numAssocDevices;\nwifi_associated_dev_t* devicedata;\n\nstruct associateddevicedata *next;\n};\n\n\nstruct neighboringapdata\n{\nstruct timeval timestamp;\nchar* radioName;\nchar* radioOperatingFrequencyBand; //Possible value 2.4Ghz and 5.0 Ghz\nULONG radioChannel; // Possible Value between 1-11\nULONG numNeibouringAP;\nwifi_neighbor_ap2_t* napdata;\n\nstruct neighboringapdata *next;\n};\n\n\nstruct radiotrafficdata\n{\nstruct timeval timestamp;\nchar* radioBssid;\nBOOL enabled;\nchar* radioOperatingFrequencyBand; //Possible value 2.4Ghz and 5.0 Ghz\nULONG radioChannel; // Possible Value between 1-11\nchar* radiOperatingChannelBandwidth;\nwifi_radioTrafficStats2_t* rtdata;\n\nstruct radiotrafficdata *next;\n};\n\nextern void harvester_report_associateddevices(struct associateddevicedata *head, char* ServiceType);\nextern void harvester_report_neighboringap(struct neighboringapdata *head);\nextern void harvester_report_radiotraffic(struct radiotrafficdata *head);\n\n#endif /* !_HARVESTER_AVRO_H */\n" (comment) "/*\n * If not stated otherwise in this file or this component's Licenses.txt file the\n * following copyright and licenses apply:\n *\n * Copyright 2019 RDK Management\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 _HARVESTER_AVRO_H\n#define _HARVESTER_AVRO_H\n\n#include <sys/time.h>\n#include <wifi_hal.h>\n#include <pthread.h>\n\nstruct associateddevicedata\n{\nstruct timeval timestamp;\nchar* sSidName;\nchar* bssid;\nchar* radioOperatingFrequencyBand; //Possible value 2.4Ghz and 5.0 Ghz\nULONG radioChannel; // Possible Value between 1-11\nULONG numAssocDevices;\nwifi_associated_dev_t* devicedata;\n\nstruct associateddevicedata *next;\n};\n\n\nstruct neighboringapdata\n{\nstruct timeval timestamp;\nchar* radioName;\nchar* radioOperatingFrequencyBand; //Possible value 2.4Ghz and 5.0 Ghz\nULONG radioChannel; // Possible Value between 1-11\nULONG numNeibouringAP;\nwifi_neighbor_ap2_t* napdata;\n\nstruct neighboringapdata *next;\n};\n\n\nstruct radiotrafficdata\n{\nstruct timeval timestamp;\nchar* radioBssid;\nBOOL enabled;\nchar* radioOperatingFrequencyBand; //Possible value 2.4Ghz and 5.0 Ghz\nULONG radioChannel; // Possible Value between 1-11\nchar* radiOperatingChannelBandwidth;\nwifi_radioTrafficStats2_t* rtdata;\n\nstruct radiotrafficdata *next;\n};\n\nextern void harvester_report_associateddevices(struct associateddevicedata *head, char* ServiceType);\nextern void harvester_report_neighboringap(struct neighboringapdata *head);\nextern void harvester_report_radiotraffic(struct radiotrafficdata *head);\n\n#endif" (#ifndef) "#ifndef" (identifier) "_HARVESTER_AVRO_H" (preproc_def) "#define _HARVESTER_AVRO_H\n" (#define) "#define" (identifier) "_HARVESTER_AVRO_H" (preproc_include) "#include <sys/time.h>\n" (#include) "#include" (system_lib_string) "<sys/time.h>" (preproc_include) "#include <wifi_hal.h>\n" (#include) "#include" (system_lib_string) "<wifi_hal.h>" (preproc_include) "#include <pthread.h>\n" (#include) "#include" (system_lib_string) "<pthread.h>" (struct_specifier) "struct associateddevicedata\n{\nstruct timeval timestamp;\nchar* sSidName;\nchar* bssid;\nchar* radioOperatingFrequencyBand; //Possible value 2.4Ghz and 5.0 Ghz\nULONG radioChannel; // Possible Value between 1-11\nULONG numAssocDevices;\nwifi_associated_dev_t* devicedata;\n\nstruct associateddevicedata *next;\n}" (struct) "struct" (type_identifier) "associateddevicedata" (field_declaration_list) "{\nstruct timeval timestamp;\nchar* sSidName;\nchar* bssid;\nchar* radioOperatingFrequencyBand; //Possible value 2.4Ghz and 5.0 Ghz\nULONG radioChannel; // Possible Value between 1-11\nULONG numAssocDevices;\nwifi_associated_dev_t* devicedata;\n\nstruct associateddevicedata *next;\n}" ({) "{" (field_declaration) "struct timeval timestamp;" (struct_specifier) "struct timeval" (struct) "struct" (type_identifier) "timeval" (field_identifier) "timestamp" (;) ";" (field_declaration) "char* sSidName;" (primitive_type) "char" (pointer_declarator) "* sSidName" (*) "*" (field_identifier) "sSidName" (;) ";" (field_declaration) "char* bssid;" (primitive_type) "char" (pointer_declarator) "* bssid" (*) "*" (field_identifier) "bssid" (;) ";" (field_declaration) "char* radioOperatingFrequencyBand;" (primitive_type) "char" (pointer_declarator) "* radioOperatingFrequencyBand" (*) "*" (field_identifier) "radioOperatingFrequencyBand" (;) ";" (comment) "//Possible value 2.4Ghz and 5.0 Ghz" (field_declaration) "ULONG radioChannel;" (type_identifier) "ULONG" (field_identifier) "radioChannel" (;) ";" (comment) "// Possible Value between 1-11" (field_declaration) "ULONG numAssocDevices;" (type_identifier) "ULONG" (field_identifier) "numAssocDevices" (;) ";" (field_declaration) "wifi_associated_dev_t* devicedata;" (type_identifier) "wifi_associated_dev_t" (pointer_declarator) "* devicedata" (*) "*" (field_identifier) "devicedata" (;) ";" (field_declaration) "struct associateddevicedata *next;" (struct_specifier) "struct associateddevicedata" (struct) "struct" (type_identifier) "associateddevicedata" (pointer_declarator) "*next" (*) "*" (field_identifier) "next" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct neighboringapdata\n{\nstruct timeval timestamp;\nchar* radioName;\nchar* radioOperatingFrequencyBand; //Possible value 2.4Ghz and 5.0 Ghz\nULONG radioChannel; // Possible Value between 1-11\nULONG numNeibouringAP;\nwifi_neighbor_ap2_t* napdata;\n\nstruct neighboringapdata *next;\n}" (struct) "struct" (type_identifier) "neighboringapdata" (field_declaration_list) "{\nstruct timeval timestamp;\nchar* radioName;\nchar* radioOperatingFrequencyBand; //Possible value 2.4Ghz and 5.0 Ghz\nULONG radioChannel; // Possible Value between 1-11\nULONG numNeibouringAP;\nwifi_neighbor_ap2_t* napdata;\n\nstruct neighboringapdata *next;\n}" ({) "{" (field_declaration) "struct timeval timestamp;" (struct_specifier) "struct timeval" (struct) "struct" (type_identifier) "timeval" (field_identifier) "timestamp" (;) ";" (field_declaration) "char* radioName;" (primitive_type) "char" (pointer_declarator) "* radioName" (*) "*" (field_identifier) "radioName" (;) ";" (field_declaration) "char* radioOperatingFrequencyBand;" (primitive_type) "char" (pointer_declarator) "* radioOperatingFrequencyBand" (*) "*" (field_identifier) "radioOperatingFrequencyBand" (;) ";" (comment) "//Possible value 2.4Ghz and 5.0 Ghz" (field_declaration) "ULONG radioChannel;" (type_identifier) "ULONG" (field_identifier) "radioChannel" (;) ";" (comment) "// Possible Value between 1-11" (field_declaration) "ULONG numNeibouringAP;" (type_identifier) "ULONG" (field_identifier) "numNeibouringAP" (;) ";" (field_declaration) "wifi_neighbor_ap2_t* napdata;" (type_identifier) "wifi_neighbor_ap2_t" (pointer_declarator) "* napdata" (*) "*" (field_identifier) "napdata" (;) ";" (field_declaration) "struct neighboringapdata *next;" (struct_specifier) "struct neighboringapdata" (struct) "struct" (type_identifier) "neighboringapdata" (pointer_declarator) "*next" (*) "*" (field_identifier) "next" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct radiotrafficdata\n{\nstruct timeval timestamp;\nchar* radioBssid;\nBOOL enabled;\nchar* radioOperatingFrequencyBand; //Possible value 2.4Ghz and 5.0 Ghz\nULONG radioChannel; // Possible Value between 1-11\nchar* radiOperatingChannelBandwidth;\nwifi_radioTrafficStats2_t* rtdata;\n\nstruct radiotrafficdata *next;\n}" (struct) "struct" (type_identifier) "radiotrafficdata" (field_declaration_list) "{\nstruct timeval timestamp;\nchar* radioBssid;\nBOOL enabled;\nchar* radioOperatingFrequencyBand; //Possible value 2.4Ghz and 5.0 Ghz\nULONG radioChannel; // Possible Value between 1-11\nchar* radiOperatingChannelBandwidth;\nwifi_radioTrafficStats2_t* rtdata;\n\nstruct radiotrafficdata *next;\n}" ({) "{" (field_declaration) "struct timeval timestamp;" (struct_specifier) "struct timeval" (struct) "struct" (type_identifier) "timeval" (field_identifier) "timestamp" (;) ";" (field_declaration) "char* radioBssid;" (primitive_type) "char" (pointer_declarator) "* radioBssid" (*) "*" (field_identifier) "radioBssid" (;) ";" (field_declaration) "BOOL enabled;" (type_identifier) "BOOL" (field_identifier) "enabled" (;) ";" (field_declaration) "char* radioOperatingFrequencyBand;" (primitive_type) "char" (pointer_declarator) "* radioOperatingFrequencyBand" (*) "*" (field_identifier) "radioOperatingFrequencyBand" (;) ";" (comment) "//Possible value 2.4Ghz and 5.0 Ghz" (field_declaration) "ULONG radioChannel;" (type_identifier) "ULONG" (field_identifier) "radioChannel" (;) ";" (comment) "// Possible Value between 1-11" (field_declaration) "char* radiOperatingChannelBandwidth;" (primitive_type) "char" (pointer_declarator) "* radiOperatingChannelBandwidth" (*) "*" (field_identifier) "radiOperatingChannelBandwidth" (;) ";" (field_declaration) "wifi_radioTrafficStats2_t* rtdata;" (type_identifier) "wifi_radioTrafficStats2_t" (pointer_declarator) "* rtdata" (*) "*" (field_identifier) "rtdata" (;) ";" (field_declaration) "struct radiotrafficdata *next;" (struct_specifier) "struct radiotrafficdata" (struct) "struct" (type_identifier) "radiotrafficdata" (pointer_declarator) "*next" (*) "*" (field_identifier) "next" (;) ";" (}) "}" (;) ";" (declaration) "extern void harvester_report_associateddevices(struct associateddevicedata *head, char* ServiceType);" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "void" (function_declarator) "harvester_report_associateddevices(struct associateddevicedata *head, char* ServiceType)" (identifier) "harvester_report_associateddevices" (parameter_list) "(struct associateddevicedata *head, char* ServiceType)" (() "(" (parameter_declaration) "struct associateddevicedata *head" (struct_specifier) "struct associateddevicedata" (struct) "struct" (type_identifier) "associateddevicedata" (pointer_declarator) "*head" (*) "*" (identifier) "head" (,) "," (parameter_declaration) "char* ServiceType" (primitive_type) "char" (pointer_declarator) "* ServiceType" (*) "*" (identifier) "ServiceType" ()) ")" (;) ";" (declaration) "extern void harvester_report_neighboringap(struct neighboringapdata *head);" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "void" (function_declarator) "harvester_report_neighboringap(struct neighboringapdata *head)" (identifier) "harvester_report_neighboringap" (parameter_list) "(struct neighboringapdata *head)" (() "(" (parameter_declaration) "struct neighboringapdata *head" (struct_specifier) "struct neighboringapdata" (struct) "struct" (type_identifier) "neighboringapdata" (pointer_declarator) "*head" (*) "*" (identifier) "head" ()) ")" (;) ";" (declaration) "extern void harvester_report_radiotraffic(struct radiotrafficdata *head);" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "void" (function_declarator) "harvester_report_radiotraffic(struct radiotrafficdata *head)" (identifier) "harvester_report_radiotraffic" (parameter_list) "(struct radiotrafficdata *head)" (() "(" (parameter_declaration) "struct radiotrafficdata *head" (struct_specifier) "struct radiotrafficdata" (struct) "struct" (type_identifier) "radiotrafficdata" (pointer_declarator) "*head" (*) "*" (identifier) "head" ()) ")" (;) ";" (#endif) "#endif" (comment) "/* !_HARVESTER_AVRO_H */"
235
0
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 32.16, "nodes": 181, "errors": 0, "source_hash": "8d4a80c6c437064bc4db89fcd0dcb89aa5ec8a98ce761b3b4b7d2300783539c6", "categorized_nodes": 125}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _HARVESTER_AVRO_H\n#define _HARVESTER_AVRO_H\n\n#include <sys/time.h>\n#include <wifi_hal.h>\n#include <pthread.h>\n\nstruct associateddevicedata\n{\nstruct timeval timestamp;\nchar* sSidName;\nchar* bssid;\nchar* radioOperatingFrequencyBand; //Possible value 2.4Ghz and 5.0 Ghz\nULONG radioChannel; // Possible Value between 1-11\nULONG numAssocDevices;\nwifi_associated_dev_t* devicedata;\n\nstruct associateddevicedata *next;\n};\n\n\nstruct neighboringapdata\n{\nstruct timeval timestamp;\nchar* radioName;\nchar* radioOperatingFrequencyBand; //Possible value 2.4Ghz and 5.0 Ghz\nULONG radioChannel; // Possible Value between 1-11\nULONG numNeibouringAP;\nwifi_neighbor_ap2_t* napdata;\n\nstruct neighboringapdata *next;\n};\n\n\nstruct radiotrafficdata\n{\nstruct timeval timestamp;\nchar* radioBssid;\nBOOL enabled;\nchar* radioOperatingFrequencyBand; //Possible value 2.4Ghz and 5.0 Ghz\nULONG radioChannel; // Possible Value between 1-11\nchar* radiOperatingChannelBandwidth;\nwifi_radioTrafficStats2_t* rtdata;\n\nstruct radiotrafficdata *next;\n};\n\nextern void harvester_report_associateddevices(struct associateddevicedata *head, char* ServiceType);\nextern void harvester_report_neighboringap(struct neighboringapdata *head);\nextern void harvester_report_radiotraffic(struct radiotrafficdata *head);\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 56, 92, 133, 152, 166, 180], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 70, "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": "_HARVESTER_AVRO_H", "parent": 0, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 25}}, {"id": 3, "type": "preproc_def", "text": "#define _HARVESTER_AVRO_H\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": "_HARVESTER_AVRO_H", "parent": 3, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 25}}, {"id": 6, "type": "preproc_include", "text": "#include <sys/time.h>\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": "system_lib_string", "text": "<sys/time.h>", "parent": 6, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 21}}, {"id": 9, "type": "preproc_include", "text": "#include <wifi_hal.h>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<wifi_hal.h>", "parent": 9, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 21}}, {"id": 12, "type": "preproc_include", "text": "#include <pthread.h>\n", "parent": 0, "children": [13, 14], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<pthread.h>", "parent": 12, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 20}}, {"id": 15, "type": "struct_specifier", "text": "struct associateddevicedata\n{\nstruct timeval timestamp;\nchar* sSidName;\nchar* bssid;\nchar* radioOperatingFrequencyBand; //Possible value 2.4Ghz and 5.0 Ghz\nULONG radioChannel; // Possible Value between 1-11\nULONG numAssocDevices;\nwifi_associated_dev_t* devicedata;\n\nstruct associateddevicedata *next;\n}", "parent": 0, "children": [16, 17], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 37, "column": 1}}, {"id": 16, "type": "struct", "text": "struct", "parent": 15, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 6}}, {"id": 17, "type": "type_identifier", "text": "associateddevicedata", "parent": 15, "children": [], "start_point": {"row": 26, "column": 7}, "end_point": {"row": 26, "column": 27}}, {"id": 18, "type": "field_declaration", "text": "struct timeval timestamp;", "parent": 15, "children": [19, 22], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 25}}, {"id": 19, "type": "struct_specifier", "text": "struct timeval", "parent": 18, "children": [20, 21], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 14}}, {"id": 20, "type": "struct", "text": "struct", "parent": 19, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 6}}, {"id": 21, "type": "type_identifier", "text": "timeval", "parent": 19, "children": [], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 14}}, {"id": 22, "type": "field_identifier", "text": "timestamp", "parent": 18, "children": [], "start_point": {"row": 28, "column": 15}, "end_point": {"row": 28, "column": 24}}, {"id": 23, "type": "field_declaration", "text": "char* sSidName;", "parent": 15, "children": [24, 25], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 15}}, {"id": 24, "type": "primitive_type", "text": "char", "parent": 23, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 4}}, {"id": 25, "type": "pointer_declarator", "text": "* sSidName", "parent": 23, "children": [26, 27], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 14}}, {"id": 26, "type": "*", "text": "*", "parent": 25, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 5}}, {"id": 27, "type": "field_identifier", "text": "sSidName", "parent": 25, "children": [], "start_point": {"row": 29, "column": 6}, "end_point": {"row": 29, "column": 14}}, {"id": 28, "type": "field_declaration", "text": "char* bssid;", "parent": 15, "children": [29, 30], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 12}}, {"id": 29, "type": "primitive_type", "text": "char", "parent": 28, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 4}}, {"id": 30, "type": "pointer_declarator", "text": "* bssid", "parent": 28, "children": [31, 32], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 11}}, {"id": 31, "type": "*", "text": "*", "parent": 30, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 5}}, {"id": 32, "type": "field_identifier", "text": "bssid", "parent": 30, "children": [], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 11}}, {"id": 33, "type": "field_declaration", "text": "char* radioOperatingFrequencyBand;", "parent": 15, "children": [34, 35], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 34}}, {"id": 34, "type": "primitive_type", "text": "char", "parent": 33, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 4}}, {"id": 35, "type": "pointer_declarator", "text": "* radioOperatingFrequencyBand", "parent": 33, "children": [36, 37], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 33}}, {"id": 36, "type": "*", "text": "*", "parent": 35, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 5}}, {"id": 37, "type": "field_identifier", "text": "radioOperatingFrequencyBand", "parent": 35, "children": [], "start_point": {"row": 31, "column": 6}, "end_point": {"row": 31, "column": 33}}, {"id": 38, "type": "field_declaration", "text": "ULONG radioChannel;", "parent": 15, "children": [39, 40], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 19}}, {"id": 39, "type": "type_identifier", "text": "ULONG", "parent": 38, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 5}}, {"id": 40, "type": "field_identifier", "text": "radioChannel", "parent": 38, "children": [], "start_point": {"row": 32, "column": 6}, "end_point": {"row": 32, "column": 18}}, {"id": 41, "type": "field_declaration", "text": "ULONG numAssocDevices;", "parent": 15, "children": [42, 43], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 22}}, {"id": 42, "type": "type_identifier", "text": "ULONG", "parent": 41, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 5}}, {"id": 43, "type": "field_identifier", "text": "numAssocDevices", "parent": 41, "children": [], "start_point": {"row": 33, "column": 6}, "end_point": {"row": 33, "column": 21}}, {"id": 44, "type": "field_declaration", "text": "wifi_associated_dev_t* devicedata;", "parent": 15, "children": [45, 46], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 34}}, {"id": 45, "type": "type_identifier", "text": "wifi_associated_dev_t", "parent": 44, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 21}}, {"id": 46, "type": "pointer_declarator", "text": "* devicedata", "parent": 44, "children": [47, 48], "start_point": {"row": 34, "column": 21}, "end_point": {"row": 34, "column": 33}}, {"id": 47, "type": "*", "text": "*", "parent": 46, "children": [], "start_point": {"row": 34, "column": 21}, "end_point": {"row": 34, "column": 22}}, {"id": 48, "type": "field_identifier", "text": "devicedata", "parent": 46, "children": [], "start_point": {"row": 34, "column": 23}, "end_point": {"row": 34, "column": 33}}, {"id": 49, "type": "field_declaration", "text": "struct associateddevicedata *next;", "parent": 15, "children": [50, 53], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 34}}, {"id": 50, "type": "struct_specifier", "text": "struct associateddevicedata", "parent": 49, "children": [51, 52], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 27}}, {"id": 51, "type": "struct", "text": "struct", "parent": 50, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 6}}, {"id": 52, "type": "type_identifier", "text": "associateddevicedata", "parent": 50, "children": [], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 27}}, {"id": 53, "type": "pointer_declarator", "text": "*next", "parent": 49, "children": [54, 55], "start_point": {"row": 36, "column": 28}, "end_point": {"row": 36, "column": 33}}, {"id": 54, "type": "*", "text": "*", "parent": 53, "children": [], "start_point": {"row": 36, "column": 28}, "end_point": {"row": 36, "column": 29}}, {"id": 55, "type": "field_identifier", "text": "next", "parent": 53, "children": [], "start_point": {"row": 36, "column": 29}, "end_point": {"row": 36, "column": 33}}, {"id": 56, "type": "struct_specifier", "text": "struct neighboringapdata\n{\nstruct timeval timestamp;\nchar* radioName;\nchar* radioOperatingFrequencyBand; //Possible value 2.4Ghz and 5.0 Ghz\nULONG radioChannel; // Possible Value between 1-11\nULONG numNeibouringAP;\nwifi_neighbor_ap2_t* napdata;\n\nstruct neighboringapdata *next;\n}", "parent": 0, "children": [57, 58], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 50, "column": 1}}, {"id": 57, "type": "struct", "text": "struct", "parent": 56, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 6}}, {"id": 58, "type": "type_identifier", "text": "neighboringapdata", "parent": 56, "children": [], "start_point": {"row": 40, "column": 7}, "end_point": {"row": 40, "column": 24}}, {"id": 59, "type": "field_declaration", "text": "struct timeval timestamp;", "parent": 56, "children": [60, 63], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 25}}, {"id": 60, "type": "struct_specifier", "text": "struct timeval", "parent": 59, "children": [61, 62], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 14}}, {"id": 61, "type": "struct", "text": "struct", "parent": 60, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 6}}, {"id": 62, "type": "type_identifier", "text": "timeval", "parent": 60, "children": [], "start_point": {"row": 42, "column": 7}, "end_point": {"row": 42, "column": 14}}, {"id": 63, "type": "field_identifier", "text": "timestamp", "parent": 59, "children": [], "start_point": {"row": 42, "column": 15}, "end_point": {"row": 42, "column": 24}}, {"id": 64, "type": "field_declaration", "text": "char* radioName;", "parent": 56, "children": [65, 66], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 16}}, {"id": 65, "type": "primitive_type", "text": "char", "parent": 64, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 4}}, {"id": 66, "type": "pointer_declarator", "text": "* radioName", "parent": 64, "children": [67, 68], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 15}}, {"id": 67, "type": "*", "text": "*", "parent": 66, "children": [], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 5}}, {"id": 68, "type": "field_identifier", "text": "radioName", "parent": 66, "children": [], "start_point": {"row": 43, "column": 6}, "end_point": {"row": 43, "column": 15}}, {"id": 69, "type": "field_declaration", "text": "char* radioOperatingFrequencyBand;", "parent": 56, "children": [70, 71], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 34}}, {"id": 70, "type": "primitive_type", "text": "char", "parent": 69, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 4}}, {"id": 71, "type": "pointer_declarator", "text": "* radioOperatingFrequencyBand", "parent": 69, "children": [72, 73], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 33}}, {"id": 72, "type": "*", "text": "*", "parent": 71, "children": [], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 5}}, {"id": 73, "type": "field_identifier", "text": "radioOperatingFrequencyBand", "parent": 71, "children": [], "start_point": {"row": 44, "column": 6}, "end_point": {"row": 44, "column": 33}}, {"id": 74, "type": "field_declaration", "text": "ULONG radioChannel;", "parent": 56, "children": [75, 76], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 19}}, {"id": 75, "type": "type_identifier", "text": "ULONG", "parent": 74, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 5}}, {"id": 76, "type": "field_identifier", "text": "radioChannel", "parent": 74, "children": [], "start_point": {"row": 45, "column": 6}, "end_point": {"row": 45, "column": 18}}, {"id": 77, "type": "field_declaration", "text": "ULONG numNeibouringAP;", "parent": 56, "children": [78, 79], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 22}}, {"id": 78, "type": "type_identifier", "text": "ULONG", "parent": 77, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 5}}, {"id": 79, "type": "field_identifier", "text": "numNeibouringAP", "parent": 77, "children": [], "start_point": {"row": 46, "column": 6}, "end_point": {"row": 46, "column": 21}}, {"id": 80, "type": "field_declaration", "text": "wifi_neighbor_ap2_t* napdata;", "parent": 56, "children": [81, 82], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 29}}, {"id": 81, "type": "type_identifier", "text": "wifi_neighbor_ap2_t", "parent": 80, "children": [], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 19}}, {"id": 82, "type": "pointer_declarator", "text": "* napdata", "parent": 80, "children": [83, 84], "start_point": {"row": 47, "column": 19}, "end_point": {"row": 47, "column": 28}}, {"id": 83, "type": "*", "text": "*", "parent": 82, "children": [], "start_point": {"row": 47, "column": 19}, "end_point": {"row": 47, "column": 20}}, {"id": 84, "type": "field_identifier", "text": "napdata", "parent": 82, "children": [], "start_point": {"row": 47, "column": 21}, "end_point": {"row": 47, "column": 28}}, {"id": 85, "type": "field_declaration", "text": "struct neighboringapdata *next;", "parent": 56, "children": [86, 89], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 31}}, {"id": 86, "type": "struct_specifier", "text": "struct neighboringapdata", "parent": 85, "children": [87, 88], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 24}}, {"id": 87, "type": "struct", "text": "struct", "parent": 86, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 6}}, {"id": 88, "type": "type_identifier", "text": "neighboringapdata", "parent": 86, "children": [], "start_point": {"row": 49, "column": 7}, "end_point": {"row": 49, "column": 24}}, {"id": 89, "type": "pointer_declarator", "text": "*next", "parent": 85, "children": [90, 91], "start_point": {"row": 49, "column": 25}, "end_point": {"row": 49, "column": 30}}, {"id": 90, "type": "*", "text": "*", "parent": 89, "children": [], "start_point": {"row": 49, "column": 25}, "end_point": {"row": 49, "column": 26}}, {"id": 91, "type": "field_identifier", "text": "next", "parent": 89, "children": [], "start_point": {"row": 49, "column": 26}, "end_point": {"row": 49, "column": 30}}, {"id": 92, "type": "struct_specifier", "text": "struct radiotrafficdata\n{\nstruct timeval timestamp;\nchar* radioBssid;\nBOOL enabled;\nchar* radioOperatingFrequencyBand; //Possible value 2.4Ghz and 5.0 Ghz\nULONG radioChannel; // Possible Value between 1-11\nchar* radiOperatingChannelBandwidth;\nwifi_radioTrafficStats2_t* rtdata;\n\nstruct radiotrafficdata *next;\n}", "parent": 0, "children": [93, 94], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 64, "column": 1}}, {"id": 93, "type": "struct", "text": "struct", "parent": 92, "children": [], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 6}}, {"id": 94, "type": "type_identifier", "text": "radiotrafficdata", "parent": 92, "children": [], "start_point": {"row": 53, "column": 7}, "end_point": {"row": 53, "column": 23}}, {"id": 95, "type": "field_declaration", "text": "struct timeval timestamp;", "parent": 92, "children": [96, 99], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 25}}, {"id": 96, "type": "struct_specifier", "text": "struct timeval", "parent": 95, "children": [97, 98], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 14}}, {"id": 97, "type": "struct", "text": "struct", "parent": 96, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 6}}, {"id": 98, "type": "type_identifier", "text": "timeval", "parent": 96, "children": [], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 55, "column": 14}}, {"id": 99, "type": "field_identifier", "text": "timestamp", "parent": 95, "children": [], "start_point": {"row": 55, "column": 15}, "end_point": {"row": 55, "column": 24}}, {"id": 100, "type": "field_declaration", "text": "char* radioBssid;", "parent": 92, "children": [101, 102], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 17}}, {"id": 101, "type": "primitive_type", "text": "char", "parent": 100, "children": [], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 4}}, {"id": 102, "type": "pointer_declarator", "text": "* radioBssid", "parent": 100, "children": [103, 104], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 16}}, {"id": 103, "type": "*", "text": "*", "parent": 102, "children": [], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 5}}, {"id": 104, "type": "field_identifier", "text": "radioBssid", "parent": 102, "children": [], "start_point": {"row": 56, "column": 6}, "end_point": {"row": 56, "column": 16}}, {"id": 105, "type": "field_declaration", "text": "BOOL enabled;", "parent": 92, "children": [106, 107], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 14}}, {"id": 106, "type": "type_identifier", "text": "BOOL", "parent": 105, "children": [], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 4}}, {"id": 107, "type": "field_identifier", "text": "enabled", "parent": 105, "children": [], "start_point": {"row": 57, "column": 6}, "end_point": {"row": 57, "column": 13}}, {"id": 108, "type": "field_declaration", "text": "char* radioOperatingFrequencyBand;", "parent": 92, "children": [109, 110], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 34}}, {"id": 109, "type": "primitive_type", "text": "char", "parent": 108, "children": [], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 4}}, {"id": 110, "type": "pointer_declarator", "text": "* radioOperatingFrequencyBand", "parent": 108, "children": [111, 112], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 33}}, {"id": 111, "type": "*", "text": "*", "parent": 110, "children": [], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 5}}, {"id": 112, "type": "field_identifier", "text": "radioOperatingFrequencyBand", "parent": 110, "children": [], "start_point": {"row": 58, "column": 6}, "end_point": {"row": 58, "column": 33}}, {"id": 113, "type": "field_declaration", "text": "ULONG radioChannel;", "parent": 92, "children": [114, 115], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 19}}, {"id": 114, "type": "type_identifier", "text": "ULONG", "parent": 113, "children": [], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 5}}, {"id": 115, "type": "field_identifier", "text": "radioChannel", "parent": 113, "children": [], "start_point": {"row": 59, "column": 6}, "end_point": {"row": 59, "column": 18}}, {"id": 116, "type": "field_declaration", "text": "char* radiOperatingChannelBandwidth;", "parent": 92, "children": [117, 118], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 36}}, {"id": 117, "type": "primitive_type", "text": "char", "parent": 116, "children": [], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 4}}, {"id": 118, "type": "pointer_declarator", "text": "* radiOperatingChannelBandwidth", "parent": 116, "children": [119, 120], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 35}}, {"id": 119, "type": "*", "text": "*", "parent": 118, "children": [], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 5}}, {"id": 120, "type": "field_identifier", "text": "radiOperatingChannelBandwidth", "parent": 118, "children": [], "start_point": {"row": 60, "column": 6}, "end_point": {"row": 60, "column": 35}}, {"id": 121, "type": "field_declaration", "text": "wifi_radioTrafficStats2_t* rtdata;", "parent": 92, "children": [122, 123], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 34}}, {"id": 122, "type": "type_identifier", "text": "wifi_radioTrafficStats2_t", "parent": 121, "children": [], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 25}}, {"id": 123, "type": "pointer_declarator", "text": "* rtdata", "parent": 121, "children": [124, 125], "start_point": {"row": 61, "column": 25}, "end_point": {"row": 61, "column": 33}}, {"id": 124, "type": "*", "text": "*", "parent": 123, "children": [], "start_point": {"row": 61, "column": 25}, "end_point": {"row": 61, "column": 26}}, {"id": 125, "type": "field_identifier", "text": "rtdata", "parent": 123, "children": [], "start_point": {"row": 61, "column": 27}, "end_point": {"row": 61, "column": 33}}, {"id": 126, "type": "field_declaration", "text": "struct radiotrafficdata *next;", "parent": 92, "children": [127, 130], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 30}}, {"id": 127, "type": "struct_specifier", "text": "struct radiotrafficdata", "parent": 126, "children": [128, 129], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 23}}, {"id": 128, "type": "struct", "text": "struct", "parent": 127, "children": [], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 6}}, {"id": 129, "type": "type_identifier", "text": "radiotrafficdata", "parent": 127, "children": [], "start_point": {"row": 63, "column": 7}, "end_point": {"row": 63, "column": 23}}, {"id": 130, "type": "pointer_declarator", "text": "*next", "parent": 126, "children": [131, 132], "start_point": {"row": 63, "column": 24}, "end_point": {"row": 63, "column": 29}}, {"id": 131, "type": "*", "text": "*", "parent": 130, "children": [], "start_point": {"row": 63, "column": 24}, "end_point": {"row": 63, "column": 25}}, {"id": 132, "type": "field_identifier", "text": "next", "parent": 130, "children": [], "start_point": {"row": 63, "column": 25}, "end_point": {"row": 63, "column": 29}}, {"id": 133, "type": "declaration", "text": "extern void harvester_report_associateddevices(struct associateddevicedata *head, char* ServiceType);", "parent": 0, "children": [134, 136, 137], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 101}}, {"id": 134, "type": "storage_class_specifier", "text": "extern", "parent": 133, "children": [135], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 6}}, {"id": 135, "type": "extern", "text": "extern", "parent": 134, "children": [], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 6}}, {"id": 136, "type": "primitive_type", "text": "void", "parent": 133, "children": [], "start_point": {"row": 66, "column": 7}, "end_point": {"row": 66, "column": 11}}, {"id": 137, "type": "function_declarator", "text": "harvester_report_associateddevices(struct associateddevicedata *head, char* ServiceType)", "parent": 133, "children": [138, 139], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 100}}, {"id": 138, "type": "identifier", "text": "harvester_report_associateddevices", "parent": 137, "children": [], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 46}}, {"id": 139, "type": "parameter_list", "text": "(struct associateddevicedata *head, char* ServiceType)", "parent": 137, "children": [140, 147], "start_point": {"row": 66, "column": 46}, "end_point": {"row": 66, "column": 100}}, {"id": 140, "type": "parameter_declaration", "text": "struct associateddevicedata *head", "parent": 139, "children": [141, 144], "start_point": {"row": 66, "column": 47}, "end_point": {"row": 66, "column": 80}}, {"id": 141, "type": "struct_specifier", "text": "struct associateddevicedata", "parent": 140, "children": [142, 143], "start_point": {"row": 66, "column": 47}, "end_point": {"row": 66, "column": 74}}, {"id": 142, "type": "struct", "text": "struct", "parent": 141, "children": [], "start_point": {"row": 66, "column": 47}, "end_point": {"row": 66, "column": 53}}, {"id": 143, "type": "type_identifier", "text": "associateddevicedata", "parent": 141, "children": [], "start_point": {"row": 66, "column": 54}, "end_point": {"row": 66, "column": 74}}, {"id": 144, "type": "pointer_declarator", "text": "*head", "parent": 140, "children": [145, 146], "start_point": {"row": 66, "column": 75}, "end_point": {"row": 66, "column": 80}}, {"id": 145, "type": "*", "text": "*", "parent": 144, "children": [], "start_point": {"row": 66, "column": 75}, "end_point": {"row": 66, "column": 76}}, {"id": 146, "type": "identifier", "text": "head", "parent": 144, "children": [], "start_point": {"row": 66, "column": 76}, "end_point": {"row": 66, "column": 80}}, {"id": 147, "type": "parameter_declaration", "text": "char* ServiceType", "parent": 139, "children": [148, 149], "start_point": {"row": 66, "column": 82}, "end_point": {"row": 66, "column": 99}}, {"id": 148, "type": "primitive_type", "text": "char", "parent": 147, "children": [], "start_point": {"row": 66, "column": 82}, "end_point": {"row": 66, "column": 86}}, {"id": 149, "type": "pointer_declarator", "text": "* ServiceType", "parent": 147, "children": [150, 151], "start_point": {"row": 66, "column": 86}, "end_point": {"row": 66, "column": 99}}, {"id": 150, "type": "*", "text": "*", "parent": 149, "children": [], "start_point": {"row": 66, "column": 86}, "end_point": {"row": 66, "column": 87}}, {"id": 151, "type": "identifier", "text": "ServiceType", "parent": 149, "children": [], "start_point": {"row": 66, "column": 88}, "end_point": {"row": 66, "column": 99}}, {"id": 152, "type": "declaration", "text": "extern void harvester_report_neighboringap(struct neighboringapdata *head);", "parent": 0, "children": [153, 155, 156], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 75}}, {"id": 153, "type": "storage_class_specifier", "text": "extern", "parent": 152, "children": [154], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 6}}, {"id": 154, "type": "extern", "text": "extern", "parent": 153, "children": [], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 6}}, {"id": 155, "type": "primitive_type", "text": "void", "parent": 152, "children": [], "start_point": {"row": 67, "column": 7}, "end_point": {"row": 67, "column": 11}}, {"id": 156, "type": "function_declarator", "text": "harvester_report_neighboringap(struct neighboringapdata *head)", "parent": 152, "children": [157, 158], "start_point": {"row": 67, "column": 12}, "end_point": {"row": 67, "column": 74}}, {"id": 157, "type": "identifier", "text": "harvester_report_neighboringap", "parent": 156, "children": [], "start_point": {"row": 67, "column": 12}, "end_point": {"row": 67, "column": 42}}, {"id": 158, "type": "parameter_list", "text": "(struct neighboringapdata *head)", "parent": 156, "children": [159], "start_point": {"row": 67, "column": 42}, "end_point": {"row": 67, "column": 74}}, {"id": 159, "type": "parameter_declaration", "text": "struct neighboringapdata *head", "parent": 158, "children": [160, 163], "start_point": {"row": 67, "column": 43}, "end_point": {"row": 67, "column": 73}}, {"id": 160, "type": "struct_specifier", "text": "struct neighboringapdata", "parent": 159, "children": [161, 162], "start_point": {"row": 67, "column": 43}, "end_point": {"row": 67, "column": 67}}, {"id": 161, "type": "struct", "text": "struct", "parent": 160, "children": [], "start_point": {"row": 67, "column": 43}, "end_point": {"row": 67, "column": 49}}, {"id": 162, "type": "type_identifier", "text": "neighboringapdata", "parent": 160, "children": [], "start_point": {"row": 67, "column": 50}, "end_point": {"row": 67, "column": 67}}, {"id": 163, "type": "pointer_declarator", "text": "*head", "parent": 159, "children": [164, 165], "start_point": {"row": 67, "column": 68}, "end_point": {"row": 67, "column": 73}}, {"id": 164, "type": "*", "text": "*", "parent": 163, "children": [], "start_point": {"row": 67, "column": 68}, "end_point": {"row": 67, "column": 69}}, {"id": 165, "type": "identifier", "text": "head", "parent": 163, "children": [], "start_point": {"row": 67, "column": 69}, "end_point": {"row": 67, "column": 73}}, {"id": 166, "type": "declaration", "text": "extern void harvester_report_radiotraffic(struct radiotrafficdata *head);", "parent": 0, "children": [167, 169, 170], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 73}}, {"id": 167, "type": "storage_class_specifier", "text": "extern", "parent": 166, "children": [168], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 6}}, {"id": 168, "type": "extern", "text": "extern", "parent": 167, "children": [], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 6}}, {"id": 169, "type": "primitive_type", "text": "void", "parent": 166, "children": [], "start_point": {"row": 68, "column": 7}, "end_point": {"row": 68, "column": 11}}, {"id": 170, "type": "function_declarator", "text": "harvester_report_radiotraffic(struct radiotrafficdata *head)", "parent": 166, "children": [171, 172], "start_point": {"row": 68, "column": 12}, "end_point": {"row": 68, "column": 72}}, {"id": 171, "type": "identifier", "text": "harvester_report_radiotraffic", "parent": 170, "children": [], "start_point": {"row": 68, "column": 12}, "end_point": {"row": 68, "column": 41}}, {"id": 172, "type": "parameter_list", "text": "(struct radiotrafficdata *head)", "parent": 170, "children": [173], "start_point": {"row": 68, "column": 41}, "end_point": {"row": 68, "column": 72}}, {"id": 173, "type": "parameter_declaration", "text": "struct radiotrafficdata *head", "parent": 172, "children": [174, 177], "start_point": {"row": 68, "column": 42}, "end_point": {"row": 68, "column": 71}}, {"id": 174, "type": "struct_specifier", "text": "struct radiotrafficdata", "parent": 173, "children": [175, 176], "start_point": {"row": 68, "column": 42}, "end_point": {"row": 68, "column": 65}}, {"id": 175, "type": "struct", "text": "struct", "parent": 174, "children": [], "start_point": {"row": 68, "column": 42}, "end_point": {"row": 68, "column": 48}}, {"id": 176, "type": "type_identifier", "text": "radiotrafficdata", "parent": 174, "children": [], "start_point": {"row": 68, "column": 49}, "end_point": {"row": 68, "column": 65}}, {"id": 177, "type": "pointer_declarator", "text": "*head", "parent": 173, "children": [178, 179], "start_point": {"row": 68, "column": 66}, "end_point": {"row": 68, "column": 71}}, {"id": 178, "type": "*", "text": "*", "parent": 177, "children": [], "start_point": {"row": 68, "column": 66}, "end_point": {"row": 68, "column": 67}}, {"id": 179, "type": "identifier", "text": "head", "parent": 177, "children": [], "start_point": {"row": 68, "column": 67}, "end_point": {"row": 68, "column": 71}}, {"id": 180, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 70, "column": 6}}]}, "node_categories": {"declarations": {"functions": [137, 156, 170], "variables": [18, 23, 28, 33, 38, 41, 44, 49, 59, 64, 69, 74, 77, 80, 85, 95, 100, 105, 108, 113, 116, 121, 126, 133, 140, 147, 152, 159, 166, 173], "classes": [15, 16, 19, 20, 50, 51, 56, 57, 60, 61, 86, 87, 92, 93, 96, 97, 127, 128, 134, 141, 142, 153, 160, 161, 167, 174, 175], "imports": [6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 17, 21, 22, 27, 32, 37, 39, 40, 42, 43, 45, 48, 52, 55, 58, 62, 63, 68, 73, 75, 76, 78, 79, 81, 84, 88, 91, 94, 98, 99, 104, 106, 107, 112, 114, 115, 120, 122, 125, 129, 132, 138, 143, 146, 151, 157, 162, 165, 171, 176, 179, 180], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 137, "universal_type": "function", "name": "unknown", "text_snippet": "harvester_report_associateddevices(struct associateddevicedata *head, char* ServiceType)"}, {"node_id": 156, "universal_type": "function", "name": "unknown", "text_snippet": "harvester_report_neighboringap(struct neighboringapdata *head)"}, {"node_id": 170, "universal_type": "function", "name": "unknown", "text_snippet": "harvester_report_radiotraffic(struct radiotrafficdata *head)"}], "class_declarations": [{"node_id": 15, "universal_type": "class", "name": "associateddevicedata", "text_snippet": "struct associateddevicedata\n{\nstruct timeval timestamp;\nchar* sSidName;\nchar* bssid;\nchar* radioOper"}, {"node_id": 16, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 19, "universal_type": "class", "name": "timeval", "text_snippet": "struct timeval"}, {"node_id": 20, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 50, "universal_type": "class", "name": "associateddevicedata", "text_snippet": "struct associateddevicedata"}, {"node_id": 51, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 56, "universal_type": "class", "name": "neighboringapdata", "text_snippet": "struct neighboringapdata\n{\nstruct timeval timestamp;\nchar* radioName;\nchar* radioOperatingFrequencyB"}, {"node_id": 57, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 60, "universal_type": "class", "name": "timeval", "text_snippet": "struct timeval"}, {"node_id": 61, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 86, "universal_type": "class", "name": "neighboringapdata", "text_snippet": "struct neighboringapdata"}, {"node_id": 87, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 92, "universal_type": "class", "name": "radiotrafficdata", "text_snippet": "struct radiotrafficdata\n{\nstruct timeval timestamp;\nchar* radioBssid;\nBOOL enabled;\nchar* radioOper"}, {"node_id": 93, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 96, "universal_type": "class", "name": "timeval", "text_snippet": "struct timeval"}, {"node_id": 97, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 127, "universal_type": "class", "name": "radiotrafficdata", "text_snippet": "struct radiotrafficdata"}, {"node_id": 128, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 134, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 141, "universal_type": "class", "name": "associateddevicedata", "text_snippet": "struct associateddevicedata"}, {"node_id": 142, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 153, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 160, "universal_type": "class", "name": "neighboringapdata", "text_snippet": "struct neighboringapdata"}, {"node_id": 161, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 167, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 174, "universal_type": "class", "name": "radiotrafficdata", "text_snippet": "struct radiotrafficdata"}, {"node_id": 175, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "#include <sys/time.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <wifi_hal.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <pthread.h>\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "/*\n * If not stated otherwise in this file or this component's Licenses.txt file the\n * following copyright and licenses apply:\n *\n * Copyright 2019 RDK Management\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#ifndef _HARVESTER_AVRO_H\n#define _HARVESTER_AVRO_H\n\n#include <sys/time.h>\n#include <wifi_hal.h>\n#include <pthread.h>\n\nstruct associateddevicedata\n{\nstruct timeval timestamp;\nchar* sSidName;\nchar* bssid;\nchar* radioOperatingFrequencyBand; //Possible value 2.4Ghz and 5.0 Ghz\nULONG radioChannel; // Possible Value between 1-11\nULONG numAssocDevices;\nwifi_associated_dev_t* devicedata;\n\nstruct associateddevicedata *next;\n};\n\n\nstruct neighboringapdata\n{\nstruct timeval timestamp;\nchar* radioName;\nchar* radioOperatingFrequencyBand; //Possible value 2.4Ghz and 5.0 Ghz\nULONG radioChannel; // Possible Value between 1-11\nULONG numNeibouringAP;\nwifi_neighbor_ap2_t* napdata;\n\nstruct neighboringapdata *next;\n};\n\n\nstruct radiotrafficdata\n{\nstruct timeval timestamp;\nchar* radioBssid;\nBOOL enabled;\nchar* radioOperatingFrequencyBand; //Possible value 2.4Ghz and 5.0 Ghz\nULONG radioChannel; // Possible Value between 1-11\nchar* radiOperatingChannelBandwidth;\nwifi_radioTrafficStats2_t* rtdata;\n\nstruct radiotrafficdata *next;\n};\n\nextern void harvester_report_associateddevices(struct associateddevicedata *head, char* ServiceType);\nextern void harvester_report_neighboringap(struct neighboringapdata *head);\nextern void harvester_report_radiotraffic(struct radiotrafficdata *head);\n\n#endif /* !_HARVESTER_AVRO_H */\n"}
80,216
c
// // CardView.h // YFLDragCardViewProject // // Created by Cherish on 2018/9/18. // Copyright © 2018年 Cherish. All rights reserved. // #import "YFLDragCardView.h" @interface CardView : YFLDragCardView - (void)setAnimationwithDriection:(ContainerDragDirection)direction; - (void)setImage:(NSString*)imageName title:(NSString*)title; @end
27.5
12
(translation_unit) "//\n// CardView.h\n// YFLDragCardViewProject\n//\n// Created by Cherish on 2018/9/18.\n// Copyright © 2018年 Cherish. All rights reserved.\n//\n\n#import "YFLDragCardView.h"\n\n@interface CardView : YFLDragCardView\n\n- (void)setAnimationwithDriection:(ContainerDragDirection)direction;\n\n- (void)setImage:(NSString*)imageName title:(NSString*)title;\n\n@end\n" (comment) "//" (comment) "// CardView.h" (comment) "// YFLDragCardViewProject" (comment) "//" (comment) "// Created by Cherish on 2018/9/18." (comment) "// Copyright © 2018年 Cherish. All rights reserved.\n//" (comment) "\n#" (preproc_call) "port "YFLDragCardView.h"\n\n@i" (preproc_directive) "port "Y" (preproc_arg) "LDragCardView.h"\n\n@" (ERROR) "t" (ERROR) "t" (declaration) "erface CardView : YFLDragCardView\n\n- (void)setAnimationwithDriection:(ContainerDragDirection)direction;\n\n-" (type_identifier) "erface Ca" (ERROR) "dView : YFLDragCardView\n\n- (void)setAnimationwithDriection:(ContainerDragDirection)dir" (identifier) "dView : " (:) "F" (function_declarator) "DragCardView\n\n- (void)setAnimationwithDriection:(ContainerDragDirection)di" (identifier) "DragCardView\n\n-" (ERROR) "v" (-) "v" (parameter_list) "id)set" (() "i" (parameter_declaration) "d)se" (primitive_type) "d)se" ()) "t" (identifier) "AnimationwithDriection:(C" (ERROR) "on" (:) "o" (() "n" (identifier) "tainerDragDirection)di" ()) "r" (identifier) "ection;\n\n" (;) "-" (ERROR) "void)setImage:(NSString*)imageName title:(NSString*)title;\n\n@end\n" (binary_expression) "void)setImage:(NSString*)imageName title:(NSString*)title;\n\n" (binary_expression) "void)setImage:(NSString*)imageName ti" (unary_expression) "void)setImage:(N" (-) "v" (cast_expression) "id)setImage:(N" (() "i" (type_descriptor) "d)se" (primitive_type) "d)se" ()) "t" (identifier) "Image:(N" (ERROR) "SString*)i" (:) "S" (() "S" (identifier) "tring*)i" (*) "m" (ERROR) "a" ()) "a" (identifier) "geName ti" (ERROR) "le:(NSString*)t" (identifier) "le:(N" (:) "S" (() "S" (identifier) "tring*)t" (*) "i" (ERROR) "t" ()) "t" (identifier) "le;\n\n" (;) "@" (ERROR) "d" (identifier) "\n"
66
11
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 27.5, "nodes": 42, "errors": 0, "source_hash": "8ea1e929c9d35132b64991fb72356a6d7d2ddf63b11da816cfc7fcf3370288d3", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"YFLDragCardView.h\"\n\n@i", "parent": null, "children": [1, 2], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "port \"Y", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "LDragCardView.h\"\n\n@", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 27}}, {"id": 3, "type": "ERROR", "text": "t", "parent": null, "children": [4], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 4, "type": "ERROR", "text": "t", "parent": 3, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 5, "type": "declaration", "text": "erface CardView : YFLDragCardView\n\n- (void)setAnimationwithDriection:(ContainerDragDirection)direction;\n\n-", "parent": null, "children": [6, 7, 19], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 12, "column": 68}}, {"id": 6, "type": "type_identifier", "text": "erface Ca", "parent": 5, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 10}}, {"id": 7, "type": "ERROR", "text": "dView : YFLDragCardView\n\n- (void)setAnimationwithDriection:(ContainerDragDirection)dir", "parent": 5, "children": [8, 9], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 12, "column": 58}}, {"id": 8, "type": "identifier", "text": "dView : ", "parent": 7, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 19}}, {"id": 9, "type": "function_declarator", "text": "DragCardView\n\n- (void)setAnimationwithDriection:(ContainerDragDirection)di", "parent": 7, "children": [10, 11, 13, 16, 17, 18], "start_point": {"row": 10, "column": 22}, "end_point": {"row": 12, "column": 57}}, {"id": 10, "type": "identifier", "text": "DragCardView\n\n-", "parent": 9, "children": [], "start_point": {"row": 10, "column": 22}, "end_point": {"row": 10, "column": 37}}, {"id": 11, "type": "ERROR", "text": "v", "parent": 9, "children": [12], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 12, "type": "-", "text": "v", "parent": 11, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 13, "type": "parameter_list", "text": "id)set", "parent": 9, "children": [14], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 8}}, {"id": 14, "type": "parameter_declaration", "text": "d)se", "parent": 13, "children": [15], "start_point": {"row": 12, "column": 3}, "end_point": {"row": 12, "column": 7}}, {"id": 15, "type": "primitive_type", "text": "d)se", "parent": 14, "children": [], "start_point": {"row": 12, "column": 3}, "end_point": {"row": 12, "column": 7}}, {"id": 16, "type": "identifier", "text": "AnimationwithDriection:(C", "parent": 9, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 33}}, {"id": 17, "type": "ERROR", "text": "on", "parent": 9, "children": [], "start_point": {"row": 12, "column": 33}, "end_point": {"row": 12, "column": 35}}, {"id": 18, "type": "identifier", "text": "tainerDragDirection)di", "parent": 9, "children": [], "start_point": {"row": 12, "column": 35}, "end_point": {"row": 12, "column": 57}}, {"id": 19, "type": "identifier", "text": "ection;\n\n", "parent": 5, "children": [], "start_point": {"row": 12, "column": 58}, "end_point": {"row": 12, "column": 67}}, {"id": 20, "type": "ERROR", "text": "void)setImage:(NSString*)imageName title:(NSString*)title;\n\n@end\n", "parent": null, "children": [21, 40, 41], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 16, "column": 4}}, {"id": 21, "type": "binary_expression", "text": "void)setImage:(NSString*)imageName title:(NSString*)title;\n\n", "parent": 20, "children": [22, 34, 37, 38, 39], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 60}}, {"id": 22, "type": "binary_expression", "text": "void)setImage:(NSString*)imageName ti", "parent": 21, "children": [23, 29, 31, 32, 33], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 37}}, {"id": 23, "type": "unary_expression", "text": "void)setImage:(N", "parent": 22, "children": [24, 25], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 16}}, {"id": 24, "type": "-", "text": "v", "parent": 23, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 25, "type": "cast_expression", "text": "id)setImage:(N", "parent": 23, "children": [26, 28], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 16}}, {"id": 26, "type": "type_descriptor", "text": "d)se", "parent": 25, "children": [27], "start_point": {"row": 14, "column": 3}, "end_point": {"row": 14, "column": 7}}, {"id": 27, "type": "primitive_type", "text": "d)se", "parent": 26, "children": [], "start_point": {"row": 14, "column": 3}, "end_point": {"row": 14, "column": 7}}, {"id": 28, "type": "identifier", "text": "Image:(N", "parent": 25, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 16}}, {"id": 29, "type": "ERROR", "text": "SString*)i", "parent": 22, "children": [30], "start_point": {"row": 14, "column": 16}, "end_point": {"row": 14, "column": 26}}, {"id": 30, "type": "identifier", "text": "tring*)i", "parent": 29, "children": [], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 26}}, {"id": 31, "type": "*", "text": "m", "parent": 22, "children": [], "start_point": {"row": 14, "column": 26}, "end_point": {"row": 14, "column": 27}}, {"id": 32, "type": "ERROR", "text": "a", "parent": 22, "children": [], "start_point": {"row": 14, "column": 27}, "end_point": {"row": 14, "column": 28}}, {"id": 33, "type": "identifier", "text": "geName ti", "parent": 22, "children": [], "start_point": {"row": 14, "column": 28}, "end_point": {"row": 14, "column": 37}}, {"id": 34, "type": "ERROR", "text": "le:(NSString*)t", "parent": 21, "children": [35, 36], "start_point": {"row": 14, "column": 38}, "end_point": {"row": 14, "column": 53}}, {"id": 35, "type": "identifier", "text": "le:(N", "parent": 34, "children": [], "start_point": {"row": 14, "column": 38}, "end_point": {"row": 14, "column": 43}}, {"id": 36, "type": "identifier", "text": "tring*)t", "parent": 34, "children": [], "start_point": {"row": 14, "column": 45}, "end_point": {"row": 14, "column": 53}}, {"id": 37, "type": "*", "text": "i", "parent": 21, "children": [], "start_point": {"row": 14, "column": 53}, "end_point": {"row": 14, "column": 54}}, {"id": 38, "type": "ERROR", "text": "t", "parent": 21, "children": [], "start_point": {"row": 14, "column": 54}, "end_point": {"row": 14, "column": 55}}, {"id": 39, "type": "identifier", "text": "le;\n\n", "parent": 21, "children": [], "start_point": {"row": 14, "column": 55}, "end_point": {"row": 14, "column": 60}}, {"id": 40, "type": "ERROR", "text": "d", "parent": 20, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 41, "type": "identifier", "text": "\n", "parent": 20, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 4}}]}, "node_categories": {"declarations": {"functions": [9], "variables": [5, 14], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [21, 22, 23, 25], "assignments": [], "loops": [], "conditionals": [6, 8, 10, 16, 18, 19, 28, 30, 33, 35, 36, 39, 41], "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": "unknown", "text_snippet": "DragCardView\n\n- (void)setAnimationwithDriection:(ContainerDragDirection)di"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// CardView.h\n// YFLDragCardViewProject\n//\n// Created by Cherish on 2018/9/18.\n// Copyright \u00a9 2018\u5e74 Cherish. All rights reserved.\n//\n\n#import \"YFLDragCardView.h\"\n\n@interface CardView : YFLDragCardView\n\n- (void)setAnimationwithDriection:(ContainerDragDirection)direction;\n\n- (void)setImage:(NSString*)imageName title:(NSString*)title;\n\n@end\n"}
80,217
c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> main() { int domain, type, protocol; int socketfd; int novo_socketfd; struct sockaddr_in end_local; struct sockaddr_in end_remoto; int tam_end_local; int tam_end_remoto; bzero(&end_remoto, sizeof(end_remoto)); bzero(&tam_end_remoto, sizeof(tam_end_remoto)); int resultado_do_fork; domain = AF_INET; type = SOCK_STREAM; protocol = 0; /********************* Abre o socket ***************8*/ socketfd = socket(domain,type,protocol); if(socketfd == -1) { perror("Erro no socket\n"); exit(1); } /***************** Associa o socket a uma porta local ***/ end_local.sin_family = AF_INET; end_local.sin_port = htons(30000); end_local.sin_addr.s_addr = INADDR_ANY; tam_end_local = sizeof(end_local); if(bind(socketfd, (struct sockaddr *)&end_local, tam_end_local) == -1) { perror("Erro no bind\n"); exit(1); } /************ Espera por um pedido de conexao **********/ listen(socketfd, 50); /*********** Aceita as conexao *************/ while(1) { novo_socketfd = accept(socketfd, (struct sockaddr *) &end_remoto, &tam_end_remoto); resultado_do_fork = fork(); if(resultado_do_fork == 0) //filho { close(socketfd); funcao_do_servidor(novo_socketfd); exit(0); } else close(novo_socketfd); } } funcao_do_servidor(int fd) { int num1=0, num2=0; int tam=0; tam = recv(fd, &num1, sizeof(num1), 0); tam = recv(fd, &num2, sizeof(num2), 0); printf("Recebi: %i e %i\nBytes: %i\n",num1, num2,tam); tam = num1 + num2; send(fd, &tam, sizeof(tam), 0); }
22.67
70
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <sys/types.h>\n#include <sys/socket.h>\n#include <netinet/in.h>\n#include <arpa/inet.h>\n\nmain()\n{\n int domain, type, protocol;\n int socketfd;\n int novo_socketfd;\n\n struct sockaddr_in end_local;\n struct sockaddr_in end_remoto;\n int tam_end_local;\n int tam_end_remoto;\n bzero(&end_remoto, sizeof(end_remoto));\n bzero(&tam_end_remoto, sizeof(tam_end_remoto));\n\n int resultado_do_fork;\n \n domain = AF_INET;\n type = SOCK_STREAM;\n protocol = 0;\n\n /********************* Abre o socket ***************8*/\n socketfd = socket(domain,type,protocol);\n if(socketfd == -1)\n { perror("Erro no socket\n");\n exit(1);\n\n }\n\n\n /***************** Associa o socket a uma porta local ***/\n end_local.sin_family = AF_INET;\n end_local.sin_port = htons(30000);\n end_local.sin_addr.s_addr = INADDR_ANY;\n tam_end_local = sizeof(end_local);\n if(bind(socketfd, (struct sockaddr *)&end_local, tam_end_local) == -1)\n { perror("Erro no bind\n");\n exit(1);\n \n }\n\n\n /************ Espera por um pedido de conexao **********/\n listen(socketfd, 50);\n\n\n\n /*********** Aceita as conexao *************/\n while(1)\n {\n novo_socketfd = accept(socketfd, (struct sockaddr *) &end_remoto, &tam_end_remoto);\n resultado_do_fork = fork();\n if(resultado_do_fork == 0) //filho\n {\n close(socketfd);\n funcao_do_servidor(novo_socketfd);\n exit(0);\n }\n else\n close(novo_socketfd);\n }\n\n}\n\n\nfuncao_do_servidor(int fd)\n{\n int num1=0, num2=0;\n int tam=0;\n\n tam = recv(fd, &num1, sizeof(num1), 0);\n tam = recv(fd, &num2, sizeof(num2), 0);\n printf("Recebi: %i e %i\nBytes: %i\n",num1, num2,tam);\n tam = num1 + num2;\n send(fd, &tam, sizeof(tam), 0);\n\n}\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 <string.h>\n" (#include) "#include" (system_lib_string) "<string.h>" (preproc_include) "#include <sys/types.h>\n" (#include) "#include" (system_lib_string) "<sys/types.h>" (preproc_include) "#include <sys/socket.h>\n" (#include) "#include" (system_lib_string) "<sys/socket.h>" (preproc_include) "#include <netinet/in.h>\n" (#include) "#include" (system_lib_string) "<netinet/in.h>" (preproc_include) "#include <arpa/inet.h>\n" (#include) "#include" (system_lib_string) "<arpa/inet.h>" (expression_statement) "main()" (call_expression) "main()" (identifier) "main" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{\n int domain, type, protocol;\n int socketfd;\n int novo_socketfd;\n\n struct sockaddr_in end_local;\n struct sockaddr_in end_remoto;\n int tam_end_local;\n int tam_end_remoto;\n bzero(&end_remoto, sizeof(end_remoto));\n bzero(&tam_end_remoto, sizeof(tam_end_remoto));\n\n int resultado_do_fork;\n \n domain = AF_INET;\n type = SOCK_STREAM;\n protocol = 0;\n\n /********************* Abre o socket ***************8*/\n socketfd = socket(domain,type,protocol);\n if(socketfd == -1)\n { perror("Erro no socket\n");\n exit(1);\n\n }\n\n\n /***************** Associa o socket a uma porta local ***/\n end_local.sin_family = AF_INET;\n end_local.sin_port = htons(30000);\n end_local.sin_addr.s_addr = INADDR_ANY;\n tam_end_local = sizeof(end_local);\n if(bind(socketfd, (struct sockaddr *)&end_local, tam_end_local) == -1)\n { perror("Erro no bind\n");\n exit(1);\n \n }\n\n\n /************ Espera por um pedido de conexao **********/\n listen(socketfd, 50);\n\n\n\n /*********** Aceita as conexao *************/\n while(1)\n {\n novo_socketfd = accept(socketfd, (struct sockaddr *) &end_remoto, &tam_end_remoto);\n resultado_do_fork = fork();\n if(resultado_do_fork == 0) //filho\n {\n close(socketfd);\n funcao_do_servidor(novo_socketfd);\n exit(0);\n }\n else\n close(novo_socketfd);\n }\n\n}" ({) "{" (declaration) "int domain, type, protocol;" (primitive_type) "int" (identifier) "domain" (,) "," (identifier) "type" (,) "," (identifier) "protocol" (;) ";" (declaration) "int socketfd;" (primitive_type) "int" (identifier) "socketfd" (;) ";" (declaration) "int novo_socketfd;" (primitive_type) "int" (identifier) "novo_socketfd" (;) ";" (declaration) "struct sockaddr_in end_local;" (struct_specifier) "struct sockaddr_in" (struct) "struct" (type_identifier) "sockaddr_in" (identifier) "end_local" (;) ";" (declaration) "struct sockaddr_in end_remoto;" (struct_specifier) "struct sockaddr_in" (struct) "struct" (type_identifier) "sockaddr_in" (identifier) "end_remoto" (;) ";" (declaration) "int tam_end_local;" (primitive_type) "int" (identifier) "tam_end_local" (;) ";" (declaration) "int tam_end_remoto;" (primitive_type) "int" (identifier) "tam_end_remoto" (;) ";" (expression_statement) "bzero(&end_remoto, sizeof(end_remoto));" (call_expression) "bzero(&end_remoto, sizeof(end_remoto))" (identifier) "bzero" (argument_list) "(&end_remoto, sizeof(end_remoto))" (() "(" (pointer_expression) "&end_remoto" (&) "&" (identifier) "end_remoto" (,) "," (sizeof_expression) "sizeof(end_remoto)" (sizeof) "sizeof" (parenthesized_expression) "(end_remoto)" (() "(" (identifier) "end_remoto" ()) ")" ()) ")" (;) ";" (expression_statement) "bzero(&tam_end_remoto, sizeof(tam_end_remoto));" (call_expression) "bzero(&tam_end_remoto, sizeof(tam_end_remoto))" (identifier) "bzero" (argument_list) "(&tam_end_remoto, sizeof(tam_end_remoto))" (() "(" (pointer_expression) "&tam_end_remoto" (&) "&" (identifier) "tam_end_remoto" (,) "," (sizeof_expression) "sizeof(tam_end_remoto)" (sizeof) "sizeof" (parenthesized_expression) "(tam_end_remoto)" (() "(" (identifier) "tam_end_remoto" ()) ")" ()) ")" (;) ";" (declaration) "int resultado_do_fork;" (primitive_type) "int" (identifier) "resultado_do_fork" (;) ";" (expression_statement) "domain = AF_INET;" (assignment_expression) "domain = AF_INET" (identifier) "domain" (=) "=" (identifier) "AF_INET" (;) ";" (expression_statement) "type = SOCK_STREAM;" (assignment_expression) "type = SOCK_STREAM" (identifier) "type" (=) "=" (identifier) "SOCK_STREAM" (;) ";" (expression_statement) "protocol = 0;" (assignment_expression) "protocol = 0" (identifier) "protocol" (=) "=" (number_literal) "0" (;) ";" (comment) "/********************* Abre o socket ***************8*/" (expression_statement) "socketfd = socket(domain,type,protocol);" (assignment_expression) "socketfd = socket(domain,type,protocol)" (identifier) "socketfd" (=) "=" (call_expression) "socket(domain,type,protocol)" (identifier) "socket" (argument_list) "(domain,type,protocol)" (() "(" (identifier) "domain" (,) "," (identifier) "type" (,) "," (identifier) "protocol" ()) ")" (;) ";" (if_statement) "if(socketfd == -1)\n { perror("Erro no socket\n");\n exit(1);\n\n }" (if) "if" (parenthesized_expression) "(socketfd == -1)" (() "(" (binary_expression) "socketfd == -1" (identifier) "socketfd" (==) "==" (number_literal) "-1" ()) ")" (compound_statement) "{ perror("Erro no socket\n");\n exit(1);\n\n }" ({) "{" (expression_statement) "perror("Erro no socket\n");" (call_expression) "perror("Erro no socket\n")" (identifier) "perror" (argument_list) "("Erro no socket\n")" (() "(" (string_literal) ""Erro no socket\n"" (") """ (string_content) "Erro no socket" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "exit(1);" (call_expression) "exit(1)" (identifier) "exit" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (comment) "/***************** Associa o socket a uma porta local ***/" (expression_statement) "end_local.sin_family = AF_INET;" (assignment_expression) "end_local.sin_family = AF_INET" (field_expression) "end_local.sin_family" (identifier) "end_local" (.) "." (field_identifier) "sin_family" (=) "=" (identifier) "AF_INET" (;) ";" (expression_statement) "end_local.sin_port = htons(30000);" (assignment_expression) "end_local.sin_port = htons(30000)" (field_expression) "end_local.sin_port" (identifier) "end_local" (.) "." (field_identifier) "sin_port" (=) "=" (call_expression) "htons(30000)" (identifier) "htons" (argument_list) "(30000)" (() "(" (number_literal) "30000" ()) ")" (;) ";" (expression_statement) "end_local.sin_addr.s_addr = INADDR_ANY;" (assignment_expression) "end_local.sin_addr.s_addr = INADDR_ANY" (field_expression) "end_local.sin_addr.s_addr" (field_expression) "end_local.sin_addr" (identifier) "end_local" (.) "." (field_identifier) "sin_addr" (.) "." (field_identifier) "s_addr" (=) "=" (identifier) "INADDR_ANY" (;) ";" (expression_statement) "tam_end_local = sizeof(end_local);" (assignment_expression) "tam_end_local = sizeof(end_local)" (identifier) "tam_end_local" (=) "=" (sizeof_expression) "sizeof(end_local)" (sizeof) "sizeof" (parenthesized_expression) "(end_local)" (() "(" (identifier) "end_local" ()) ")" (;) ";" (if_statement) "if(bind(socketfd, (struct sockaddr *)&end_local, tam_end_local) == -1)\n { perror("Erro no bind\n");\n exit(1);\n \n }" (if) "if" (parenthesized_expression) "(bind(socketfd, (struct sockaddr *)&end_local, tam_end_local) == -1)" (() "(" (binary_expression) "bind(socketfd, (struct sockaddr *)&end_local, tam_end_local) == -1" (call_expression) "bind(socketfd, (struct sockaddr *)&end_local, tam_end_local)" (identifier) "bind" (argument_list) "(socketfd, (struct sockaddr *)&end_local, tam_end_local)" (() "(" (identifier) "socketfd" (,) "," (cast_expression) "(struct sockaddr *)&end_local" (() "(" (type_descriptor) "struct sockaddr *" (struct_specifier) "struct sockaddr" (struct) "struct" (type_identifier) "sockaddr" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (pointer_expression) "&end_local" (&) "&" (identifier) "end_local" (,) "," (identifier) "tam_end_local" ()) ")" (==) "==" (number_literal) "-1" ()) ")" (compound_statement) "{ perror("Erro no bind\n");\n exit(1);\n \n }" ({) "{" (expression_statement) "perror("Erro no bind\n");" (call_expression) "perror("Erro no bind\n")" (identifier) "perror" (argument_list) "("Erro no bind\n")" (() "(" (string_literal) ""Erro no bind\n"" (") """ (string_content) "Erro no bind" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "exit(1);" (call_expression) "exit(1)" (identifier) "exit" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (comment) "/************ Espera por um pedido de conexao **********/" (expression_statement) "listen(socketfd, 50);" (call_expression) "listen(socketfd, 50)" (identifier) "listen" (argument_list) "(socketfd, 50)" (() "(" (identifier) "socketfd" (,) "," (number_literal) "50" ()) ")" (;) ";" (comment) "/*********** Aceita as conexao *************/" (while_statement) "while(1)\n {\n novo_socketfd = accept(socketfd, (struct sockaddr *) &end_remoto, &tam_end_remoto);\n resultado_do_fork = fork();\n if(resultado_do_fork == 0) //filho\n {\n close(socketfd);\n funcao_do_servidor(novo_socketfd);\n exit(0);\n }\n else\n close(novo_socketfd);\n }" (while) "while" (parenthesized_expression) "(1)" (() "(" (number_literal) "1" ()) ")" (compound_statement) "{\n novo_socketfd = accept(socketfd, (struct sockaddr *) &end_remoto, &tam_end_remoto);\n resultado_do_fork = fork();\n if(resultado_do_fork == 0) //filho\n {\n close(socketfd);\n funcao_do_servidor(novo_socketfd);\n exit(0);\n }\n else\n close(novo_socketfd);\n }" ({) "{" (expression_statement) "novo_socketfd = accept(socketfd, (struct sockaddr *) &end_remoto, &tam_end_remoto);" (assignment_expression) "novo_socketfd = accept(socketfd, (struct sockaddr *) &end_remoto, &tam_end_remoto)" (identifier) "novo_socketfd" (=) "=" (call_expression) "accept(socketfd, (struct sockaddr *) &end_remoto, &tam_end_remoto)" (identifier) "accept" (argument_list) "(socketfd, (struct sockaddr *) &end_remoto, &tam_end_remoto)" (() "(" (identifier) "socketfd" (,) "," (cast_expression) "(struct sockaddr *) &end_remoto" (() "(" (type_descriptor) "struct sockaddr *" (struct_specifier) "struct sockaddr" (struct) "struct" (type_identifier) "sockaddr" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (pointer_expression) "&end_remoto" (&) "&" (identifier) "end_remoto" (,) "," (pointer_expression) "&tam_end_remoto" (&) "&" (identifier) "tam_end_remoto" ()) ")" (;) ";" (expression_statement) "resultado_do_fork = fork();" (assignment_expression) "resultado_do_fork = fork()" (identifier) "resultado_do_fork" (=) "=" (call_expression) "fork()" (identifier) "fork" (argument_list) "()" (() "(" ()) ")" (;) ";" (if_statement) "if(resultado_do_fork == 0) //filho\n {\n close(socketfd);\n funcao_do_servidor(novo_socketfd);\n exit(0);\n }\n else\n close(novo_socketfd);" (if) "if" (parenthesized_expression) "(resultado_do_fork == 0)" (() "(" (binary_expression) "resultado_do_fork == 0" (identifier) "resultado_do_fork" (==) "==" (number_literal) "0" ()) ")" (comment) "//filho" (compound_statement) "{\n close(socketfd);\n funcao_do_servidor(novo_socketfd);\n exit(0);\n }" ({) "{" (expression_statement) "close(socketfd);" (call_expression) "close(socketfd)" (identifier) "close" (argument_list) "(socketfd)" (() "(" (identifier) "socketfd" ()) ")" (;) ";" (expression_statement) "funcao_do_servidor(novo_socketfd);" (call_expression) "funcao_do_servidor(novo_socketfd)" (identifier) "funcao_do_servidor" (argument_list) "(novo_socketfd)" (() "(" (identifier) "novo_socketfd" ()) ")" (;) ";" (expression_statement) "exit(0);" (call_expression) "exit(0)" (identifier) "exit" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (;) ";" (}) "}" (else_clause) "else\n close(novo_socketfd);" (else) "else" (expression_statement) "close(novo_socketfd);" (call_expression) "close(novo_socketfd)" (identifier) "close" (argument_list) "(novo_socketfd)" (() "(" (identifier) "novo_socketfd" ()) ")" (;) ";" (}) "}" (}) "}" (macro_type_specifier) "funcao_do_servidor(int fd)" (identifier) "funcao_do_servidor" (() "(" (type_descriptor) "int" (primitive_type) "int" (ERROR) "fd" (identifier) "fd" ()) ")" (;) "" (compound_statement) "{\n int num1=0, num2=0;\n int tam=0;\n\n tam = recv(fd, &num1, sizeof(num1), 0);\n tam = recv(fd, &num2, sizeof(num2), 0);\n printf("Recebi: %i e %i\nBytes: %i\n",num1, num2,tam);\n tam = num1 + num2;\n send(fd, &tam, sizeof(tam), 0);\n\n}" ({) "{" (declaration) "int num1=0, num2=0;" (primitive_type) "int" (init_declarator) "num1=0" (identifier) "num1" (=) "=" (number_literal) "0" (,) "," (init_declarator) "num2=0" (identifier) "num2" (=) "=" (number_literal) "0" (;) ";" (declaration) "int tam=0;" (primitive_type) "int" (init_declarator) "tam=0" (identifier) "tam" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "tam = recv(fd, &num1, sizeof(num1), 0);" (assignment_expression) "tam = recv(fd, &num1, sizeof(num1), 0)" (identifier) "tam" (=) "=" (call_expression) "recv(fd, &num1, sizeof(num1), 0)" (identifier) "recv" (argument_list) "(fd, &num1, sizeof(num1), 0)" (() "(" (identifier) "fd" (,) "," (pointer_expression) "&num1" (&) "&" (identifier) "num1" (,) "," (sizeof_expression) "sizeof(num1)" (sizeof) "sizeof" (parenthesized_expression) "(num1)" (() "(" (identifier) "num1" ()) ")" (,) "," (number_literal) "0" ()) ")" (;) ";" (expression_statement) "tam = recv(fd, &num2, sizeof(num2), 0);" (assignment_expression) "tam = recv(fd, &num2, sizeof(num2), 0)" (identifier) "tam" (=) "=" (call_expression) "recv(fd, &num2, sizeof(num2), 0)" (identifier) "recv" (argument_list) "(fd, &num2, sizeof(num2), 0)" (() "(" (identifier) "fd" (,) "," (pointer_expression) "&num2" (&) "&" (identifier) "num2" (,) "," (sizeof_expression) "sizeof(num2)" (sizeof) "sizeof" (parenthesized_expression) "(num2)" (() "(" (identifier) "num2" ()) ")" (,) "," (number_literal) "0" ()) ")" (;) ";" (expression_statement) "printf("Recebi: %i e %i\nBytes: %i\n",num1, num2,tam);" (call_expression) "printf("Recebi: %i e %i\nBytes: %i\n",num1, num2,tam)" (identifier) "printf" (argument_list) "("Recebi: %i e %i\nBytes: %i\n",num1, num2,tam)" (() "(" (string_literal) ""Recebi: %i e %i\nBytes: %i\n"" (") """ (string_content) "Recebi: %i e %i" (escape_sequence) "\n" (string_content) "Bytes: %i" (escape_sequence) "\n" (") """ (,) "," (identifier) "num1" (,) "," (identifier) "num2" (,) "," (identifier) "tam" ()) ")" (;) ";" (expression_statement) "tam = num1 + num2;" (assignment_expression) "tam = num1 + num2" (identifier) "tam" (=) "=" (binary_expression) "num1 + num2" (identifier) "num1" (+) "+" (identifier) "num2" (;) ";" (expression_statement) "send(fd, &tam, sizeof(tam), 0);" (call_expression) "send(fd, &tam, sizeof(tam), 0)" (identifier) "send" (argument_list) "(fd, &tam, sizeof(tam), 0)" (() "(" (identifier) "fd" (,) "," (pointer_expression) "&tam" (&) "&" (identifier) "tam" (,) "," (sizeof_expression) "sizeof(tam)" (sizeof) "sizeof" (parenthesized_expression) "(tam)" (() "(" (identifier) "tam" ()) ")" (,) "," (number_literal) "0" ()) ")" (;) ";" (}) "}"
506
1
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 22.67, "nodes": 292, "errors": 0, "source_hash": "1667987ea3dffa8dc91f90dad2b24f45731ff00e69dfb0fe0f009c6a6dbf777b", "categorized_nodes": 226}, "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 <string.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": "<string.h>", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 19}}, {"id": 9, "type": "preproc_include", "text": "#include <sys/types.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": "<sys/types.h>", "parent": 9, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 22}}, {"id": 12, "type": "preproc_include", "text": "#include <sys/socket.h>\n", "parent": null, "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": "<sys/socket.h>", "parent": 12, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 23}}, {"id": 15, "type": "preproc_include", "text": "#include <netinet/in.h>\n", "parent": null, "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": "<netinet/in.h>", "parent": 15, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 23}}, {"id": 18, "type": "preproc_include", "text": "#include <arpa/inet.h>\n", "parent": null, "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": "system_lib_string", "text": "<arpa/inet.h>", "parent": 18, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 22}}, {"id": 21, "type": "call_expression", "text": "main()", "parent": null, "children": [22, 23], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 6}}, {"id": 22, "type": "identifier", "text": "main", "parent": 21, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 4}}, {"id": 23, "type": "argument_list", "text": "()", "parent": 21, "children": [], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 6}}, {"id": 24, "type": "declaration", "text": "int domain, type, protocol;", "parent": null, "children": [25, 26, 27, 28], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 28}}, {"id": 25, "type": "primitive_type", "text": "int", "parent": 24, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 4}}, {"id": 26, "type": "identifier", "text": "domain", "parent": 24, "children": [], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 11}}, {"id": 27, "type": "identifier", "text": "type", "parent": 24, "children": [], "start_point": {"row": 10, "column": 13}, "end_point": {"row": 10, "column": 17}}, {"id": 28, "type": "identifier", "text": "protocol", "parent": 24, "children": [], "start_point": {"row": 10, "column": 19}, "end_point": {"row": 10, "column": 27}}, {"id": 29, "type": "declaration", "text": "int socketfd;", "parent": null, "children": [30, 31], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 14}}, {"id": 30, "type": "primitive_type", "text": "int", "parent": 29, "children": [], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 4}}, {"id": 31, "type": "identifier", "text": "socketfd", "parent": 29, "children": [], "start_point": {"row": 11, "column": 5}, "end_point": {"row": 11, "column": 13}}, {"id": 32, "type": "declaration", "text": "int novo_socketfd;", "parent": null, "children": [33, 34], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 19}}, {"id": 33, "type": "primitive_type", "text": "int", "parent": 32, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 4}}, {"id": 34, "type": "identifier", "text": "novo_socketfd", "parent": 32, "children": [], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 18}}, {"id": 35, "type": "declaration", "text": "struct sockaddr_in end_local;", "parent": null, "children": [36, 39], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 30}}, {"id": 36, "type": "struct_specifier", "text": "struct sockaddr_in", "parent": 35, "children": [37, 38], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 19}}, {"id": 37, "type": "struct", "text": "struct", "parent": 36, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 7}}, {"id": 38, "type": "type_identifier", "text": "sockaddr_in", "parent": 36, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 19}}, {"id": 39, "type": "identifier", "text": "end_local", "parent": 35, "children": [], "start_point": {"row": 14, "column": 20}, "end_point": {"row": 14, "column": 29}}, {"id": 40, "type": "declaration", "text": "struct sockaddr_in end_remoto;", "parent": null, "children": [41, 44], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 31}}, {"id": 41, "type": "struct_specifier", "text": "struct sockaddr_in", "parent": 40, "children": [42, 43], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 19}}, {"id": 42, "type": "struct", "text": "struct", "parent": 41, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 7}}, {"id": 43, "type": "type_identifier", "text": "sockaddr_in", "parent": 41, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 19}}, {"id": 44, "type": "identifier", "text": "end_remoto", "parent": 40, "children": [], "start_point": {"row": 15, "column": 20}, "end_point": {"row": 15, "column": 30}}, {"id": 45, "type": "declaration", "text": "int tam_end_local;", "parent": null, "children": [46, 47], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 19}}, {"id": 46, "type": "primitive_type", "text": "int", "parent": 45, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 4}}, {"id": 47, "type": "identifier", "text": "tam_end_local", "parent": 45, "children": [], "start_point": {"row": 16, "column": 5}, "end_point": {"row": 16, "column": 18}}, {"id": 48, "type": "declaration", "text": "int tam_end_remoto;", "parent": null, "children": [49, 50], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 20}}, {"id": 49, "type": "primitive_type", "text": "int", "parent": 48, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 4}}, {"id": 50, "type": "identifier", "text": "tam_end_remoto", "parent": 48, "children": [], "start_point": {"row": 17, "column": 5}, "end_point": {"row": 17, "column": 19}}, {"id": 51, "type": "call_expression", "text": "bzero(&end_remoto, sizeof(end_remoto))", "parent": null, "children": [52, 53], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 39}}, {"id": 52, "type": "identifier", "text": "bzero", "parent": 51, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 6}}, {"id": 53, "type": "argument_list", "text": "(&end_remoto, sizeof(end_remoto))", "parent": 51, "children": [54, 56], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 39}}, {"id": 54, "type": "pointer_expression", "text": "&end_remoto", "parent": 53, "children": [55], "start_point": {"row": 18, "column": 7}, "end_point": {"row": 18, "column": 18}}, {"id": 55, "type": "identifier", "text": "end_remoto", "parent": 54, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 18}}, {"id": 56, "type": "sizeof_expression", "text": "sizeof(end_remoto)", "parent": 53, "children": [57], "start_point": {"row": 18, "column": 20}, "end_point": {"row": 18, "column": 38}}, {"id": 57, "type": "parenthesized_expression", "text": "(end_remoto)", "parent": 56, "children": [58], "start_point": {"row": 18, "column": 26}, "end_point": {"row": 18, "column": 38}}, {"id": 58, "type": "identifier", "text": "end_remoto", "parent": 57, "children": [], "start_point": {"row": 18, "column": 27}, "end_point": {"row": 18, "column": 37}}, {"id": 59, "type": "call_expression", "text": "bzero(&tam_end_remoto, sizeof(tam_end_remoto))", "parent": null, "children": [60, 61], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 47}}, {"id": 60, "type": "identifier", "text": "bzero", "parent": 59, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 6}}, {"id": 61, "type": "argument_list", "text": "(&tam_end_remoto, sizeof(tam_end_remoto))", "parent": 59, "children": [62, 64], "start_point": {"row": 19, "column": 6}, "end_point": {"row": 19, "column": 47}}, {"id": 62, "type": "pointer_expression", "text": "&tam_end_remoto", "parent": 61, "children": [63], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 22}}, {"id": 63, "type": "identifier", "text": "tam_end_remoto", "parent": 62, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 22}}, {"id": 64, "type": "sizeof_expression", "text": "sizeof(tam_end_remoto)", "parent": 61, "children": [65], "start_point": {"row": 19, "column": 24}, "end_point": {"row": 19, "column": 46}}, {"id": 65, "type": "parenthesized_expression", "text": "(tam_end_remoto)", "parent": 64, "children": [66], "start_point": {"row": 19, "column": 30}, "end_point": {"row": 19, "column": 46}}, {"id": 66, "type": "identifier", "text": "tam_end_remoto", "parent": 65, "children": [], "start_point": {"row": 19, "column": 31}, "end_point": {"row": 19, "column": 45}}, {"id": 67, "type": "declaration", "text": "int resultado_do_fork;", "parent": null, "children": [68, 69], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 23}}, {"id": 68, "type": "primitive_type", "text": "int", "parent": 67, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 4}}, {"id": 69, "type": "identifier", "text": "resultado_do_fork", "parent": 67, "children": [], "start_point": {"row": 21, "column": 5}, "end_point": {"row": 21, "column": 22}}, {"id": 70, "type": "assignment_expression", "text": "domain = AF_INET", "parent": null, "children": [71, 72, 73], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 17}}, {"id": 71, "type": "identifier", "text": "domain", "parent": 70, "children": [], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 7}}, {"id": 72, "type": "=", "text": "=", "parent": 70, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 9}}, {"id": 73, "type": "identifier", "text": "AF_INET", "parent": 70, "children": [], "start_point": {"row": 23, "column": 10}, "end_point": {"row": 23, "column": 17}}, {"id": 74, "type": "assignment_expression", "text": "type = SOCK_STREAM", "parent": null, "children": [75, 76, 77], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 19}}, {"id": 75, "type": "identifier", "text": "type", "parent": 74, "children": [], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 5}}, {"id": 76, "type": "=", "text": "=", "parent": 74, "children": [], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 7}}, {"id": 77, "type": "identifier", "text": "SOCK_STREAM", "parent": 74, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 19}}, {"id": 78, "type": "assignment_expression", "text": "protocol = 0", "parent": null, "children": [79, 80, 81], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 13}}, {"id": 79, "type": "identifier", "text": "protocol", "parent": 78, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 9}}, {"id": 80, "type": "=", "text": "=", "parent": 78, "children": [], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 11}}, {"id": 81, "type": "number_literal", "text": "0", "parent": 78, "children": [], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 13}}, {"id": 82, "type": "assignment_expression", "text": "socketfd = socket(domain,type,protocol)", "parent": null, "children": [83, 84, 85], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 40}}, {"id": 83, "type": "identifier", "text": "socketfd", "parent": 82, "children": [], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 9}}, {"id": 84, "type": "=", "text": "=", "parent": 82, "children": [], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 11}}, {"id": 85, "type": "call_expression", "text": "socket(domain,type,protocol)", "parent": 82, "children": [86, 87], "start_point": {"row": 28, "column": 12}, "end_point": {"row": 28, "column": 40}}, {"id": 86, "type": "identifier", "text": "socket", "parent": 85, "children": [], "start_point": {"row": 28, "column": 12}, "end_point": {"row": 28, "column": 18}}, {"id": 87, "type": "argument_list", "text": "(domain,type,protocol)", "parent": 85, "children": [88, 89, 90], "start_point": {"row": 28, "column": 18}, "end_point": {"row": 28, "column": 40}}, {"id": 88, "type": "identifier", "text": "domain", "parent": 87, "children": [], "start_point": {"row": 28, "column": 19}, "end_point": {"row": 28, "column": 25}}, {"id": 89, "type": "identifier", "text": "type", "parent": 87, "children": [], "start_point": {"row": 28, "column": 26}, "end_point": {"row": 28, "column": 30}}, {"id": 90, "type": "identifier", "text": "protocol", "parent": 87, "children": [], "start_point": {"row": 28, "column": 31}, "end_point": {"row": 28, "column": 39}}, {"id": 91, "type": "if_statement", "text": "if(socketfd == -1)\n\t{\tperror(\"Erro no socket\\n\");\n\t\texit(1);\n\n\t}", "parent": null, "children": [92], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 33, "column": 2}}, {"id": 92, "type": "parenthesized_expression", "text": "(socketfd == -1)", "parent": 91, "children": [93], "start_point": {"row": 29, "column": 3}, "end_point": {"row": 29, "column": 19}}, {"id": 93, "type": "binary_expression", "text": "socketfd == -1", "parent": 92, "children": [94, 95, 96], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 18}}, {"id": 94, "type": "identifier", "text": "socketfd", "parent": 93, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 12}}, {"id": 95, "type": "==", "text": "==", "parent": 93, "children": [], "start_point": {"row": 29, "column": 13}, "end_point": {"row": 29, "column": 15}}, {"id": 96, "type": "number_literal", "text": "-1", "parent": 93, "children": [], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 29, "column": 18}}, {"id": 97, "type": "call_expression", "text": "perror(\"Erro no socket\\n\")", "parent": 91, "children": [98, 99], "start_point": {"row": 30, "column": 3}, "end_point": {"row": 30, "column": 29}}, {"id": 98, "type": "identifier", "text": "perror", "parent": 97, "children": [], "start_point": {"row": 30, "column": 3}, "end_point": {"row": 30, "column": 9}}, {"id": 99, "type": "argument_list", "text": "(\"Erro no socket\\n\")", "parent": 97, "children": [100], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 29}}, {"id": 100, "type": "string_literal", "text": "\"Erro no socket\\n\"", "parent": 99, "children": [101], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 28}}, {"id": 101, "type": "escape_sequence", "text": "\\n", "parent": 100, "children": [], "start_point": {"row": 30, "column": 25}, "end_point": {"row": 30, "column": 27}}, {"id": 102, "type": "call_expression", "text": "exit(1)", "parent": 91, "children": [103, 104], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 9}}, {"id": 103, "type": "identifier", "text": "exit", "parent": 102, "children": [], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 6}}, {"id": 104, "type": "argument_list", "text": "(1)", "parent": 102, "children": [105], "start_point": {"row": 31, "column": 6}, "end_point": {"row": 31, "column": 9}}, {"id": 105, "type": "number_literal", "text": "1", "parent": 104, "children": [], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 8}}, {"id": 106, "type": "assignment_expression", "text": "end_local.sin_family = AF_INET", "parent": null, "children": [107, 110, 111], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 31}}, {"id": 107, "type": "field_expression", "text": "end_local.sin_family", "parent": 106, "children": [108, 109], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 21}}, {"id": 108, "type": "identifier", "text": "end_local", "parent": 107, "children": [], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 10}}, {"id": 109, "type": "field_identifier", "text": "sin_family", "parent": 107, "children": [], "start_point": {"row": 37, "column": 11}, "end_point": {"row": 37, "column": 21}}, {"id": 110, "type": "=", "text": "=", "parent": 106, "children": [], "start_point": {"row": 37, "column": 22}, "end_point": {"row": 37, "column": 23}}, {"id": 111, "type": "identifier", "text": "AF_INET", "parent": 106, "children": [], "start_point": {"row": 37, "column": 24}, "end_point": {"row": 37, "column": 31}}, {"id": 112, "type": "assignment_expression", "text": "end_local.sin_port = htons(30000)", "parent": null, "children": [113, 116, 117], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 34}}, {"id": 113, "type": "field_expression", "text": "end_local.sin_port", "parent": 112, "children": [114, 115], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 19}}, {"id": 114, "type": "identifier", "text": "end_local", "parent": 113, "children": [], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 10}}, {"id": 115, "type": "field_identifier", "text": "sin_port", "parent": 113, "children": [], "start_point": {"row": 38, "column": 11}, "end_point": {"row": 38, "column": 19}}, {"id": 116, "type": "=", "text": "=", "parent": 112, "children": [], "start_point": {"row": 38, "column": 20}, "end_point": {"row": 38, "column": 21}}, {"id": 117, "type": "call_expression", "text": "htons(30000)", "parent": 112, "children": [118, 119], "start_point": {"row": 38, "column": 22}, "end_point": {"row": 38, "column": 34}}, {"id": 118, "type": "identifier", "text": "htons", "parent": 117, "children": [], "start_point": {"row": 38, "column": 22}, "end_point": {"row": 38, "column": 27}}, {"id": 119, "type": "argument_list", "text": "(30000)", "parent": 117, "children": [120], "start_point": {"row": 38, "column": 27}, "end_point": {"row": 38, "column": 34}}, {"id": 120, "type": "number_literal", "text": "30000", "parent": 119, "children": [], "start_point": {"row": 38, "column": 28}, "end_point": {"row": 38, "column": 33}}, {"id": 121, "type": "assignment_expression", "text": "end_local.sin_addr.s_addr = INADDR_ANY", "parent": null, "children": [122, 127, 128], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 39}}, {"id": 122, "type": "field_expression", "text": "end_local.sin_addr.s_addr", "parent": 121, "children": [123, 126], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 26}}, {"id": 123, "type": "field_expression", "text": "end_local.sin_addr", "parent": 122, "children": [124, 125], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 19}}, {"id": 124, "type": "identifier", "text": "end_local", "parent": 123, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 10}}, {"id": 125, "type": "field_identifier", "text": "sin_addr", "parent": 123, "children": [], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 19}}, {"id": 126, "type": "field_identifier", "text": "s_addr", "parent": 122, "children": [], "start_point": {"row": 39, "column": 20}, "end_point": {"row": 39, "column": 26}}, {"id": 127, "type": "=", "text": "=", "parent": 121, "children": [], "start_point": {"row": 39, "column": 27}, "end_point": {"row": 39, "column": 28}}, {"id": 128, "type": "identifier", "text": "INADDR_ANY", "parent": 121, "children": [], "start_point": {"row": 39, "column": 29}, "end_point": {"row": 39, "column": 39}}, {"id": 129, "type": "assignment_expression", "text": "tam_end_local = sizeof(end_local)", "parent": null, "children": [130, 131, 132], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 34}}, {"id": 130, "type": "identifier", "text": "tam_end_local", "parent": 129, "children": [], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 14}}, {"id": 131, "type": "=", "text": "=", "parent": 129, "children": [], "start_point": {"row": 40, "column": 15}, "end_point": {"row": 40, "column": 16}}, {"id": 132, "type": "sizeof_expression", "text": "sizeof(end_local)", "parent": 129, "children": [133], "start_point": {"row": 40, "column": 17}, "end_point": {"row": 40, "column": 34}}, {"id": 133, "type": "parenthesized_expression", "text": "(end_local)", "parent": 132, "children": [134], "start_point": {"row": 40, "column": 23}, "end_point": {"row": 40, "column": 34}}, {"id": 134, "type": "identifier", "text": "end_local", "parent": 133, "children": [], "start_point": {"row": 40, "column": 24}, "end_point": {"row": 40, "column": 33}}, {"id": 135, "type": "if_statement", "text": "if(bind(socketfd, (struct sockaddr *)&end_local, tam_end_local) == -1)\n\t{\tperror(\"Erro no bind\\n\");\n\t\texit(1);\n\t\n\t}", "parent": null, "children": [136], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 45, "column": 2}}, {"id": 136, "type": "parenthesized_expression", "text": "(bind(socketfd, (struct sockaddr *)&end_local, tam_end_local) == -1)", "parent": 135, "children": [137], "start_point": {"row": 41, "column": 3}, "end_point": {"row": 41, "column": 71}}, {"id": 137, "type": "binary_expression", "text": "bind(socketfd, (struct sockaddr *)&end_local, tam_end_local) == -1", "parent": 136, "children": [138, 152, 153], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 70}}, {"id": 138, "type": "call_expression", "text": "bind(socketfd, (struct sockaddr *)&end_local, tam_end_local)", "parent": 137, "children": [139, 140], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 64}}, {"id": 139, "type": "identifier", "text": "bind", "parent": 138, "children": [], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 8}}, {"id": 140, "type": "argument_list", "text": "(socketfd, (struct sockaddr *)&end_local, tam_end_local)", "parent": 138, "children": [141, 142, 151], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 64}}, {"id": 141, "type": "identifier", "text": "socketfd", "parent": 140, "children": [], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 17}}, {"id": 142, "type": "cast_expression", "text": "(struct sockaddr *)&end_local", "parent": 140, "children": [143, 149], "start_point": {"row": 41, "column": 19}, "end_point": {"row": 41, "column": 48}}, {"id": 143, "type": "type_descriptor", "text": "struct sockaddr *", "parent": 142, "children": [144, 147], "start_point": {"row": 41, "column": 20}, "end_point": {"row": 41, "column": 37}}, {"id": 144, "type": "struct_specifier", "text": "struct sockaddr", "parent": 143, "children": [145, 146], "start_point": {"row": 41, "column": 20}, "end_point": {"row": 41, "column": 35}}, {"id": 145, "type": "struct", "text": "struct", "parent": 144, "children": [], "start_point": {"row": 41, "column": 20}, "end_point": {"row": 41, "column": 26}}, {"id": 146, "type": "type_identifier", "text": "sockaddr", "parent": 144, "children": [], "start_point": {"row": 41, "column": 27}, "end_point": {"row": 41, "column": 35}}, {"id": 147, "type": "abstract_pointer_declarator", "text": "*", "parent": 143, "children": [148], "start_point": {"row": 41, "column": 36}, "end_point": {"row": 41, "column": 37}}, {"id": 148, "type": "*", "text": "*", "parent": 147, "children": [], "start_point": {"row": 41, "column": 36}, "end_point": {"row": 41, "column": 37}}, {"id": 149, "type": "pointer_expression", "text": "&end_local", "parent": 142, "children": [150], "start_point": {"row": 41, "column": 38}, "end_point": {"row": 41, "column": 48}}, {"id": 150, "type": "identifier", "text": "end_local", "parent": 149, "children": [], "start_point": {"row": 41, "column": 39}, "end_point": {"row": 41, "column": 48}}, {"id": 151, "type": "identifier", "text": "tam_end_local", "parent": 140, "children": [], "start_point": {"row": 41, "column": 50}, "end_point": {"row": 41, "column": 63}}, {"id": 152, "type": "==", "text": "==", "parent": 137, "children": [], "start_point": {"row": 41, "column": 65}, "end_point": {"row": 41, "column": 67}}, {"id": 153, "type": "number_literal", "text": "-1", "parent": 137, "children": [], "start_point": {"row": 41, "column": 68}, "end_point": {"row": 41, "column": 70}}, {"id": 154, "type": "call_expression", "text": "perror(\"Erro no bind\\n\")", "parent": 135, "children": [155, 156], "start_point": {"row": 42, "column": 3}, "end_point": {"row": 42, "column": 27}}, {"id": 155, "type": "identifier", "text": "perror", "parent": 154, "children": [], "start_point": {"row": 42, "column": 3}, "end_point": {"row": 42, "column": 9}}, {"id": 156, "type": "argument_list", "text": "(\"Erro no bind\\n\")", "parent": 154, "children": [157], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 42, "column": 27}}, {"id": 157, "type": "string_literal", "text": "\"Erro no bind\\n\"", "parent": 156, "children": [158], "start_point": {"row": 42, "column": 10}, "end_point": {"row": 42, "column": 26}}, {"id": 158, "type": "escape_sequence", "text": "\\n", "parent": 157, "children": [], "start_point": {"row": 42, "column": 23}, "end_point": {"row": 42, "column": 25}}, {"id": 159, "type": "call_expression", "text": "exit(1)", "parent": 135, "children": [160, 161], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 9}}, {"id": 160, "type": "identifier", "text": "exit", "parent": 159, "children": [], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 6}}, {"id": 161, "type": "argument_list", "text": "(1)", "parent": 159, "children": [162], "start_point": {"row": 43, "column": 6}, "end_point": {"row": 43, "column": 9}}, {"id": 162, "type": "number_literal", "text": "1", "parent": 161, "children": [], "start_point": {"row": 43, "column": 7}, "end_point": {"row": 43, "column": 8}}, {"id": 163, "type": "call_expression", "text": "listen(socketfd, 50)", "parent": null, "children": [164, 165], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 21}}, {"id": 164, "type": "identifier", "text": "listen", "parent": 163, "children": [], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 7}}, {"id": 165, "type": "argument_list", "text": "(socketfd, 50)", "parent": 163, "children": [166, 167], "start_point": {"row": 49, "column": 7}, "end_point": {"row": 49, "column": 21}}, {"id": 166, "type": "identifier", "text": "socketfd", "parent": 165, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 16}}, {"id": 167, "type": "number_literal", "text": "50", "parent": 165, "children": [], "start_point": {"row": 49, "column": 18}, "end_point": {"row": 49, "column": 20}}, {"id": 168, "type": "while_statement", "text": "while(1)\n\t{\n\t\tnovo_socketfd = accept(socketfd, (struct sockaddr *) &end_remoto, &tam_end_remoto);\n\t\tresultado_do_fork = fork();\n\t\tif(resultado_do_fork == 0) //filho\n\t\t{\n\t\t\tclose(socketfd);\n\t\t\tfuncao_do_servidor(novo_socketfd);\n\t\t\texit(0);\n\t\t}\n\t\telse\n\t\t\tclose(novo_socketfd);\n\t}", "parent": null, "children": [169], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 66, "column": 2}}, {"id": 169, "type": "parenthesized_expression", "text": "(1)", "parent": 168, "children": [170], "start_point": {"row": 54, "column": 6}, "end_point": {"row": 54, "column": 9}}, {"id": 170, "type": "number_literal", "text": "1", "parent": 169, "children": [], "start_point": {"row": 54, "column": 7}, "end_point": {"row": 54, "column": 8}}, {"id": 171, "type": "assignment_expression", "text": "novo_socketfd = accept(socketfd, (struct sockaddr *) &end_remoto, &tam_end_remoto)", "parent": 168, "children": [172, 173, 174], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 84}}, {"id": 172, "type": "identifier", "text": "novo_socketfd", "parent": 171, "children": [], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 15}}, {"id": 173, "type": "=", "text": "=", "parent": 171, "children": [], "start_point": {"row": 56, "column": 16}, "end_point": {"row": 56, "column": 17}}, {"id": 174, "type": "call_expression", "text": "accept(socketfd, (struct sockaddr *) &end_remoto, &tam_end_remoto)", "parent": 171, "children": [175, 176], "start_point": {"row": 56, "column": 18}, "end_point": {"row": 56, "column": 84}}, {"id": 175, "type": "identifier", "text": "accept", "parent": 174, "children": [], "start_point": {"row": 56, "column": 18}, "end_point": {"row": 56, "column": 24}}, {"id": 176, "type": "argument_list", "text": "(socketfd, (struct sockaddr *) &end_remoto, &tam_end_remoto)", "parent": 174, "children": [177, 178, 187], "start_point": {"row": 56, "column": 24}, "end_point": {"row": 56, "column": 84}}, {"id": 177, "type": "identifier", "text": "socketfd", "parent": 176, "children": [], "start_point": {"row": 56, "column": 25}, "end_point": {"row": 56, "column": 33}}, {"id": 178, "type": "cast_expression", "text": "(struct sockaddr *) &end_remoto", "parent": 176, "children": [179, 185], "start_point": {"row": 56, "column": 35}, "end_point": {"row": 56, "column": 66}}, {"id": 179, "type": "type_descriptor", "text": "struct sockaddr *", "parent": 178, "children": [180, 183], "start_point": {"row": 56, "column": 36}, "end_point": {"row": 56, "column": 53}}, {"id": 180, "type": "struct_specifier", "text": "struct sockaddr", "parent": 179, "children": [181, 182], "start_point": {"row": 56, "column": 36}, "end_point": {"row": 56, "column": 51}}, {"id": 181, "type": "struct", "text": "struct", "parent": 180, "children": [], "start_point": {"row": 56, "column": 36}, "end_point": {"row": 56, "column": 42}}, {"id": 182, "type": "type_identifier", "text": "sockaddr", "parent": 180, "children": [], "start_point": {"row": 56, "column": 43}, "end_point": {"row": 56, "column": 51}}, {"id": 183, "type": "abstract_pointer_declarator", "text": "*", "parent": 179, "children": [184], "start_point": {"row": 56, "column": 52}, "end_point": {"row": 56, "column": 53}}, {"id": 184, "type": "*", "text": "*", "parent": 183, "children": [], "start_point": {"row": 56, "column": 52}, "end_point": {"row": 56, "column": 53}}, {"id": 185, "type": "pointer_expression", "text": "&end_remoto", "parent": 178, "children": [186], "start_point": {"row": 56, "column": 55}, "end_point": {"row": 56, "column": 66}}, {"id": 186, "type": "identifier", "text": "end_remoto", "parent": 185, "children": [], "start_point": {"row": 56, "column": 56}, "end_point": {"row": 56, "column": 66}}, {"id": 187, "type": "pointer_expression", "text": "&tam_end_remoto", "parent": 176, "children": [188], "start_point": {"row": 56, "column": 68}, "end_point": {"row": 56, "column": 83}}, {"id": 188, "type": "identifier", "text": "tam_end_remoto", "parent": 187, "children": [], "start_point": {"row": 56, "column": 69}, "end_point": {"row": 56, "column": 83}}, {"id": 189, "type": "assignment_expression", "text": "resultado_do_fork = fork()", "parent": 168, "children": [190, 191, 192], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 28}}, {"id": 190, "type": "identifier", "text": "resultado_do_fork", "parent": 189, "children": [], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 19}}, {"id": 191, "type": "=", "text": "=", "parent": 189, "children": [], "start_point": {"row": 57, "column": 20}, "end_point": {"row": 57, "column": 21}}, {"id": 192, "type": "call_expression", "text": "fork()", "parent": 189, "children": [193, 194], "start_point": {"row": 57, "column": 22}, "end_point": {"row": 57, "column": 28}}, {"id": 193, "type": "identifier", "text": "fork", "parent": 192, "children": [], "start_point": {"row": 57, "column": 22}, "end_point": {"row": 57, "column": 26}}, {"id": 194, "type": "argument_list", "text": "()", "parent": 192, "children": [], "start_point": {"row": 57, "column": 26}, "end_point": {"row": 57, "column": 28}}, {"id": 195, "type": "if_statement", "text": "if(resultado_do_fork == 0) //filho\n\t\t{\n\t\t\tclose(socketfd);\n\t\t\tfuncao_do_servidor(novo_socketfd);\n\t\t\texit(0);\n\t\t}\n\t\telse\n\t\t\tclose(novo_socketfd);", "parent": 168, "children": [196, 213], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 65, "column": 24}}, {"id": 196, "type": "parenthesized_expression", "text": "(resultado_do_fork == 0)", "parent": 195, "children": [197], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 28}}, {"id": 197, "type": "binary_expression", "text": "resultado_do_fork == 0", "parent": 196, "children": [198, 199, 200], "start_point": {"row": 58, "column": 5}, "end_point": {"row": 58, "column": 27}}, {"id": 198, "type": "identifier", "text": "resultado_do_fork", "parent": 197, "children": [], "start_point": {"row": 58, "column": 5}, "end_point": {"row": 58, "column": 22}}, {"id": 199, "type": "==", "text": "==", "parent": 197, "children": [], "start_point": {"row": 58, "column": 23}, "end_point": {"row": 58, "column": 25}}, {"id": 200, "type": "number_literal", "text": "0", "parent": 197, "children": [], "start_point": {"row": 58, "column": 26}, "end_point": {"row": 58, "column": 27}}, {"id": 201, "type": "call_expression", "text": "close(socketfd)", "parent": 195, "children": [202, 203], "start_point": {"row": 60, "column": 3}, "end_point": {"row": 60, "column": 18}}, {"id": 202, "type": "identifier", "text": "close", "parent": 201, "children": [], "start_point": {"row": 60, "column": 3}, "end_point": {"row": 60, "column": 8}}, {"id": 203, "type": "argument_list", "text": "(socketfd)", "parent": 201, "children": [204], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 18}}, {"id": 204, "type": "identifier", "text": "socketfd", "parent": 203, "children": [], "start_point": {"row": 60, "column": 9}, "end_point": {"row": 60, "column": 17}}, {"id": 205, "type": "call_expression", "text": "funcao_do_servidor(novo_socketfd)", "parent": 195, "children": [206, 207], "start_point": {"row": 61, "column": 3}, "end_point": {"row": 61, "column": 36}}, {"id": 206, "type": "identifier", "text": "funcao_do_servidor", "parent": 205, "children": [], "start_point": {"row": 61, "column": 3}, "end_point": {"row": 61, "column": 21}}, {"id": 207, "type": "argument_list", "text": "(novo_socketfd)", "parent": 205, "children": [208], "start_point": {"row": 61, "column": 21}, "end_point": {"row": 61, "column": 36}}, {"id": 208, "type": "identifier", "text": "novo_socketfd", "parent": 207, "children": [], "start_point": {"row": 61, "column": 22}, "end_point": {"row": 61, "column": 35}}, {"id": 209, "type": "call_expression", "text": "exit(0)", "parent": 195, "children": [210, 211], "start_point": {"row": 62, "column": 3}, "end_point": {"row": 62, "column": 10}}, {"id": 210, "type": "identifier", "text": "exit", "parent": 209, "children": [], "start_point": {"row": 62, "column": 3}, "end_point": {"row": 62, "column": 7}}, {"id": 211, "type": "argument_list", "text": "(0)", "parent": 209, "children": [212], "start_point": {"row": 62, "column": 7}, "end_point": {"row": 62, "column": 10}}, {"id": 212, "type": "number_literal", "text": "0", "parent": 211, "children": [], "start_point": {"row": 62, "column": 8}, "end_point": {"row": 62, "column": 9}}, {"id": 213, "type": "else_clause", "text": "else\n\t\t\tclose(novo_socketfd);", "parent": 195, "children": [], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 65, "column": 24}}, {"id": 214, "type": "call_expression", "text": "close(novo_socketfd)", "parent": 213, "children": [215, 216], "start_point": {"row": 65, "column": 3}, "end_point": {"row": 65, "column": 23}}, {"id": 215, "type": "identifier", "text": "close", "parent": 214, "children": [], "start_point": {"row": 65, "column": 3}, "end_point": {"row": 65, "column": 8}}, {"id": 216, "type": "argument_list", "text": "(novo_socketfd)", "parent": 214, "children": [217], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 23}}, {"id": 217, "type": "identifier", "text": "novo_socketfd", "parent": 216, "children": [], "start_point": {"row": 65, "column": 9}, "end_point": {"row": 65, "column": 22}}, {"id": 218, "type": "macro_type_specifier", "text": "funcao_do_servidor(int fd)", "parent": null, "children": [219, 220, 222], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 71, "column": 26}}, {"id": 219, "type": "identifier", "text": "funcao_do_servidor", "parent": 218, "children": [], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 71, "column": 18}}, {"id": 220, "type": "type_descriptor", "text": "int", "parent": 218, "children": [221], "start_point": {"row": 71, "column": 19}, "end_point": {"row": 71, "column": 22}}, {"id": 221, "type": "primitive_type", "text": "int", "parent": 220, "children": [], "start_point": {"row": 71, "column": 19}, "end_point": {"row": 71, "column": 22}}, {"id": 222, "type": "ERROR", "text": "fd", "parent": 218, "children": [223], "start_point": {"row": 71, "column": 23}, "end_point": {"row": 71, "column": 25}}, {"id": 223, "type": "identifier", "text": "fd", "parent": 222, "children": [], "start_point": {"row": 71, "column": 23}, "end_point": {"row": 71, "column": 25}}, {"id": 224, "type": "declaration", "text": "int num1=0, num2=0;", "parent": null, "children": [225, 226, 230], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 20}}, {"id": 225, "type": "primitive_type", "text": "int", "parent": 224, "children": [], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 4}}, {"id": 226, "type": "init_declarator", "text": "num1=0", "parent": 224, "children": [227, 228, 229], "start_point": {"row": 73, "column": 5}, "end_point": {"row": 73, "column": 11}}, {"id": 227, "type": "identifier", "text": "num1", "parent": 226, "children": [], "start_point": {"row": 73, "column": 5}, "end_point": {"row": 73, "column": 9}}, {"id": 228, "type": "=", "text": "=", "parent": 226, "children": [], "start_point": {"row": 73, "column": 9}, "end_point": {"row": 73, "column": 10}}, {"id": 229, "type": "number_literal", "text": "0", "parent": 226, "children": [], "start_point": {"row": 73, "column": 10}, "end_point": {"row": 73, "column": 11}}, {"id": 230, "type": "init_declarator", "text": "num2=0", "parent": 224, "children": [231, 232, 233], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 19}}, {"id": 231, "type": "identifier", "text": "num2", "parent": 230, "children": [], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 17}}, {"id": 232, "type": "=", "text": "=", "parent": 230, "children": [], "start_point": {"row": 73, "column": 17}, "end_point": {"row": 73, "column": 18}}, {"id": 233, "type": "number_literal", "text": "0", "parent": 230, "children": [], "start_point": {"row": 73, "column": 18}, "end_point": {"row": 73, "column": 19}}, {"id": 234, "type": "declaration", "text": "int tam=0;", "parent": null, "children": [235, 236], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 11}}, {"id": 235, "type": "primitive_type", "text": "int", "parent": 234, "children": [], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 4}}, {"id": 236, "type": "init_declarator", "text": "tam=0", "parent": 234, "children": [237, 238, 239], "start_point": {"row": 74, "column": 5}, "end_point": {"row": 74, "column": 10}}, {"id": 237, "type": "identifier", "text": "tam", "parent": 236, "children": [], "start_point": {"row": 74, "column": 5}, "end_point": {"row": 74, "column": 8}}, {"id": 238, "type": "=", "text": "=", "parent": 236, "children": [], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 9}}, {"id": 239, "type": "number_literal", "text": "0", "parent": 236, "children": [], "start_point": {"row": 74, "column": 9}, "end_point": {"row": 74, "column": 10}}, {"id": 240, "type": "assignment_expression", "text": "tam = recv(fd, &num1, sizeof(num1), 0)", "parent": null, "children": [241, 242, 243], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 39}}, {"id": 241, "type": "identifier", "text": "tam", "parent": 240, "children": [], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 4}}, {"id": 242, "type": "=", "text": "=", "parent": 240, "children": [], "start_point": {"row": 76, "column": 5}, "end_point": {"row": 76, "column": 6}}, {"id": 243, "type": "call_expression", "text": "recv(fd, &num1, sizeof(num1), 0)", "parent": 240, "children": [244, 245], "start_point": {"row": 76, "column": 7}, "end_point": {"row": 76, "column": 39}}, {"id": 244, "type": "identifier", "text": "recv", "parent": 243, "children": [], "start_point": {"row": 76, "column": 7}, "end_point": {"row": 76, "column": 11}}, {"id": 245, "type": "argument_list", "text": "(fd, &num1, sizeof(num1), 0)", "parent": 243, "children": [246, 247, 249, 252], "start_point": {"row": 76, "column": 11}, "end_point": {"row": 76, "column": 39}}, {"id": 246, "type": "identifier", "text": "fd", "parent": 245, "children": [], "start_point": {"row": 76, "column": 12}, "end_point": {"row": 76, "column": 14}}, {"id": 247, "type": "pointer_expression", "text": "&num1", "parent": 245, "children": [248], "start_point": {"row": 76, "column": 16}, "end_point": {"row": 76, "column": 21}}, {"id": 248, "type": "identifier", "text": "num1", "parent": 247, "children": [], "start_point": {"row": 76, "column": 17}, "end_point": {"row": 76, "column": 21}}, {"id": 249, "type": "sizeof_expression", "text": "sizeof(num1)", "parent": 245, "children": [250], "start_point": {"row": 76, "column": 23}, "end_point": {"row": 76, "column": 35}}, {"id": 250, "type": "parenthesized_expression", "text": "(num1)", "parent": 249, "children": [251], "start_point": {"row": 76, "column": 29}, "end_point": {"row": 76, "column": 35}}, {"id": 251, "type": "identifier", "text": "num1", "parent": 250, "children": [], "start_point": {"row": 76, "column": 30}, "end_point": {"row": 76, "column": 34}}, {"id": 252, "type": "number_literal", "text": "0", "parent": 245, "children": [], "start_point": {"row": 76, "column": 37}, "end_point": {"row": 76, "column": 38}}, {"id": 253, "type": "assignment_expression", "text": "tam = recv(fd, &num2, sizeof(num2), 0)", "parent": null, "children": [254, 255, 256], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 39}}, {"id": 254, "type": "identifier", "text": "tam", "parent": 253, "children": [], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 4}}, {"id": 255, "type": "=", "text": "=", "parent": 253, "children": [], "start_point": {"row": 77, "column": 5}, "end_point": {"row": 77, "column": 6}}, {"id": 256, "type": "call_expression", "text": "recv(fd, &num2, sizeof(num2), 0)", "parent": 253, "children": [257, 258], "start_point": {"row": 77, "column": 7}, "end_point": {"row": 77, "column": 39}}, {"id": 257, "type": "identifier", "text": "recv", "parent": 256, "children": [], "start_point": {"row": 77, "column": 7}, "end_point": {"row": 77, "column": 11}}, {"id": 258, "type": "argument_list", "text": "(fd, &num2, sizeof(num2), 0)", "parent": 256, "children": [259, 260, 262, 265], "start_point": {"row": 77, "column": 11}, "end_point": {"row": 77, "column": 39}}, {"id": 259, "type": "identifier", "text": "fd", "parent": 258, "children": [], "start_point": {"row": 77, "column": 12}, "end_point": {"row": 77, "column": 14}}, {"id": 260, "type": "pointer_expression", "text": "&num2", "parent": 258, "children": [261], "start_point": {"row": 77, "column": 16}, "end_point": {"row": 77, "column": 21}}, {"id": 261, "type": "identifier", "text": "num2", "parent": 260, "children": [], "start_point": {"row": 77, "column": 17}, "end_point": {"row": 77, "column": 21}}, {"id": 262, "type": "sizeof_expression", "text": "sizeof(num2)", "parent": 258, "children": [263], "start_point": {"row": 77, "column": 23}, "end_point": {"row": 77, "column": 35}}, {"id": 263, "type": "parenthesized_expression", "text": "(num2)", "parent": 262, "children": [264], "start_point": {"row": 77, "column": 29}, "end_point": {"row": 77, "column": 35}}, {"id": 264, "type": "identifier", "text": "num2", "parent": 263, "children": [], "start_point": {"row": 77, "column": 30}, "end_point": {"row": 77, "column": 34}}, {"id": 265, "type": "number_literal", "text": "0", "parent": 258, "children": [], "start_point": {"row": 77, "column": 37}, "end_point": {"row": 77, "column": 38}}, {"id": 266, "type": "call_expression", "text": "printf(\"Recebi: %i e %i\\nBytes: %i\\n\",num1, num2,tam)", "parent": null, "children": [267, 268], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 54}}, {"id": 267, "type": "identifier", "text": "printf", "parent": 266, "children": [], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 7}}, {"id": 268, "type": "argument_list", "text": "(\"Recebi: %i e %i\\nBytes: %i\\n\",num1, num2,tam)", "parent": 266, "children": [269, 272, 273, 274], "start_point": {"row": 78, "column": 7}, "end_point": {"row": 78, "column": 54}}, {"id": 269, "type": "string_literal", "text": "\"Recebi: %i e %i\\nBytes: %i\\n\"", "parent": 268, "children": [270, 271], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 78, "column": 38}}, {"id": 270, "type": "escape_sequence", "text": "\\n", "parent": 269, "children": [], "start_point": {"row": 78, "column": 24}, "end_point": {"row": 78, "column": 26}}, {"id": 271, "type": "escape_sequence", "text": "\\n", "parent": 269, "children": [], "start_point": {"row": 78, "column": 35}, "end_point": {"row": 78, "column": 37}}, {"id": 272, "type": "identifier", "text": "num1", "parent": 268, "children": [], "start_point": {"row": 78, "column": 39}, "end_point": {"row": 78, "column": 43}}, {"id": 273, "type": "identifier", "text": "num2", "parent": 268, "children": [], "start_point": {"row": 78, "column": 45}, "end_point": {"row": 78, "column": 49}}, {"id": 274, "type": "identifier", "text": "tam", "parent": 268, "children": [], "start_point": {"row": 78, "column": 50}, "end_point": {"row": 78, "column": 53}}, {"id": 275, "type": "assignment_expression", "text": "tam = num1 + num2", "parent": null, "children": [276, 277, 278], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 18}}, {"id": 276, "type": "identifier", "text": "tam", "parent": 275, "children": [], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 4}}, {"id": 277, "type": "=", "text": "=", "parent": 275, "children": [], "start_point": {"row": 79, "column": 5}, "end_point": {"row": 79, "column": 6}}, {"id": 278, "type": "binary_expression", "text": "num1 + num2", "parent": 275, "children": [279, 280, 281], "start_point": {"row": 79, "column": 7}, "end_point": {"row": 79, "column": 18}}, {"id": 279, "type": "identifier", "text": "num1", "parent": 278, "children": [], "start_point": {"row": 79, "column": 7}, "end_point": {"row": 79, "column": 11}}, {"id": 280, "type": "+", "text": "+", "parent": 278, "children": [], "start_point": {"row": 79, "column": 12}, "end_point": {"row": 79, "column": 13}}, {"id": 281, "type": "identifier", "text": "num2", "parent": 278, "children": [], "start_point": {"row": 79, "column": 14}, "end_point": {"row": 79, "column": 18}}, {"id": 282, "type": "call_expression", "text": "send(fd, &tam, sizeof(tam), 0)", "parent": null, "children": [283, 284], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 31}}, {"id": 283, "type": "identifier", "text": "send", "parent": 282, "children": [], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 5}}, {"id": 284, "type": "argument_list", "text": "(fd, &tam, sizeof(tam), 0)", "parent": 282, "children": [285, 286, 288, 291], "start_point": {"row": 80, "column": 5}, "end_point": {"row": 80, "column": 31}}, {"id": 285, "type": "identifier", "text": "fd", "parent": 284, "children": [], "start_point": {"row": 80, "column": 6}, "end_point": {"row": 80, "column": 8}}, {"id": 286, "type": "pointer_expression", "text": "&tam", "parent": 284, "children": [287], "start_point": {"row": 80, "column": 10}, "end_point": {"row": 80, "column": 14}}, {"id": 287, "type": "identifier", "text": "tam", "parent": 286, "children": [], "start_point": {"row": 80, "column": 11}, "end_point": {"row": 80, "column": 14}}, {"id": 288, "type": "sizeof_expression", "text": "sizeof(tam)", "parent": 284, "children": [289], "start_point": {"row": 80, "column": 16}, "end_point": {"row": 80, "column": 27}}, {"id": 289, "type": "parenthesized_expression", "text": "(tam)", "parent": 288, "children": [290], "start_point": {"row": 80, "column": 22}, "end_point": {"row": 80, "column": 27}}, {"id": 290, "type": "identifier", "text": "tam", "parent": 289, "children": [], "start_point": {"row": 80, "column": 23}, "end_point": {"row": 80, "column": 26}}, {"id": 291, "type": "number_literal", "text": "0", "parent": 284, "children": [], "start_point": {"row": 80, "column": 29}, "end_point": {"row": 80, "column": 30}}]}, "node_categories": {"declarations": {"functions": [], "variables": [24, 29, 32, 35, 40, 45, 48, 67, 224, 234], "classes": [36, 37, 41, 42, 144, 145, 180, 181], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13, 15, 16, 18, 19], "modules": [], "enums": []}, "statements": {"expressions": [21, 51, 54, 56, 57, 59, 62, 64, 65, 85, 92, 93, 97, 102, 107, 113, 117, 122, 123, 132, 133, 136, 137, 138, 142, 149, 154, 159, 163, 169, 174, 178, 185, 187, 192, 196, 197, 201, 205, 209, 214, 243, 247, 249, 250, 256, 260, 262, 263, 266, 278, 282, 286, 288, 289], "assignments": [70, 74, 78, 82, 106, 112, 121, 129, 171, 189, 240, 253, 275], "loops": [168], "conditionals": [22, 26, 27, 28, 31, 34, 38, 39, 43, 44, 47, 50, 52, 55, 58, 60, 63, 66, 69, 71, 73, 75, 77, 79, 83, 86, 88, 89, 90, 91, 94, 98, 103, 108, 109, 111, 114, 115, 118, 124, 125, 126, 128, 130, 134, 135, 139, 141, 146, 150, 151, 155, 160, 164, 166, 172, 175, 177, 182, 186, 188, 190, 193, 195, 198, 202, 204, 206, 208, 210, 215, 217, 218, 219, 223, 227, 231, 237, 241, 244, 246, 248, 251, 254, 257, 259, 261, 264, 267, 272, 273, 274, 276, 279, 281, 283, 285, 287, 290], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 20, 81, 96, 100, 105, 120, 153, 157, 162, 167, 170, 200, 212, 229, 233, 239, 252, 265, 269, 291], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [{"node_id": 36, "universal_type": "class", "name": "sockaddr_in", "text_snippet": "struct sockaddr_in"}, {"node_id": 37, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 41, "universal_type": "class", "name": "sockaddr_in", "text_snippet": "struct sockaddr_in"}, {"node_id": 42, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 144, "universal_type": "class", "name": "sockaddr", "text_snippet": "struct sockaddr"}, {"node_id": 145, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 180, "universal_type": "class", "name": "sockaddr", "text_snippet": "struct sockaddr"}, {"node_id": 181, "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"}, {"node_id": 6, "text": "#include <string.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <sys/types.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <sys/socket.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <netinet/in.h>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <arpa/inet.h>\n"}, {"node_id": 19, "text": "#include"}]}, "original_source_code": "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <sys/types.h>\n#include <sys/socket.h>\n#include <netinet/in.h>\n#include <arpa/inet.h>\n\nmain()\n{\n\tint domain, type, protocol;\n\tint socketfd;\n\tint novo_socketfd;\n\n\tstruct sockaddr_in end_local;\n\tstruct sockaddr_in end_remoto;\n\tint tam_end_local;\n\tint tam_end_remoto;\n\tbzero(&end_remoto, sizeof(end_remoto));\n\tbzero(&tam_end_remoto, sizeof(tam_end_remoto));\n\n\tint resultado_do_fork;\n\t\n\tdomain = AF_INET;\n\ttype = SOCK_STREAM;\n\tprotocol = 0;\n\n\t/********************* Abre o socket ***************8*/\n\tsocketfd = socket(domain,type,protocol);\n\tif(socketfd == -1)\n\t{\tperror(\"Erro no socket\\n\");\n\t\texit(1);\n\n\t}\n\n\n\t/***************** Associa o socket a uma porta local ***/\n\tend_local.sin_family = AF_INET;\n\tend_local.sin_port = htons(30000);\n\tend_local.sin_addr.s_addr = INADDR_ANY;\n\ttam_end_local = sizeof(end_local);\n\tif(bind(socketfd, (struct sockaddr *)&end_local, tam_end_local) == -1)\n\t{\tperror(\"Erro no bind\\n\");\n\t\texit(1);\n\t\n\t}\n\n\n\t/************ Espera por um pedido de conexao **********/\n\tlisten(socketfd, 50);\n\n\n\n\t/*********** Aceita as conexao *************/\n\twhile(1)\n\t{\n\t\tnovo_socketfd = accept(socketfd, (struct sockaddr *) &end_remoto, &tam_end_remoto);\n\t\tresultado_do_fork = fork();\n\t\tif(resultado_do_fork == 0) //filho\n\t\t{\n\t\t\tclose(socketfd);\n\t\t\tfuncao_do_servidor(novo_socketfd);\n\t\t\texit(0);\n\t\t}\n\t\telse\n\t\t\tclose(novo_socketfd);\n\t}\n\n}\n\n\nfuncao_do_servidor(int fd)\n{\n\tint num1=0, num2=0;\n\tint tam=0;\n\n\ttam = recv(fd, &num1, sizeof(num1), 0);\n\ttam = recv(fd, &num2, sizeof(num2), 0);\n\tprintf(\"Recebi: %i e %i\\nBytes: %i\\n\",num1, num2,tam);\n\ttam = num1 + num2;\n\tsend(fd, &tam, sizeof(tam), 0);\n\n}\n\n"}
80,218
c
#ifndef COOKIEPRASETOOLSPRIVATE_H #define COOKIEPRASETOOLSPRIVATE_H #include <QObject> #include <QString> #include <QNetworkCookie> class CookiePraseToolsPrivate { public: CookiePraseToolsPrivate(); static QString escape(const QString& unescaped); static QString unescape(const QString& escaped); static QList<QNetworkCookie> parseHtmlCookies(const QString& rawStr); static QString getHtmlCookieStr( const QNetworkCookie& cookie ); }; #endif // COOKIEPRASETOOLSPRIVATE_H
31.73
15
(translation_unit) "#ifndef COOKIEPRASETOOLSPRIVATE_H\n#define COOKIEPRASETOOLSPRIVATE_H\n#include <QObject>\n#include <QString>\n#include <QNetworkCookie>\n\nclass CookiePraseToolsPrivate\n{\npublic:\n CookiePraseToolsPrivate();\n static QString escape(const QString& unescaped);\n static QString unescape(const QString& escaped);\n static QList<QNetworkCookie> parseHtmlCookies(const QString& rawStr);\n static QString getHtmlCookieStr( const QNetworkCookie& cookie );\n};\n\n#endif // COOKIEPRASETOOLSPRIVATE_H\n" (preproc_ifdef) "#ifndef COOKIEPRASETOOLSPRIVATE_H\n#define COOKIEPRASETOOLSPRIVATE_H\n#include <QObject>\n#include <QString>\n#include <QNetworkCookie>\n\nclass CookiePraseToolsPrivate\n{\npublic:\n CookiePraseToolsPrivate();\n static QString escape(const QString& unescaped);\n static QString unescape(const QString& escaped);\n static QList<QNetworkCookie> parseHtmlCookies(const QString& rawStr);\n static QString getHtmlCookieStr( const QNetworkCookie& cookie );\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "COOKIEPRASETOOLSPRIVATE_H" (preproc_def) "#define COOKIEPRASETOOLSPRIVATE_H\n" (#define) "#define" (identifier) "COOKIEPRASETOOLSPRIVATE_H" (preproc_include) "#include <QObject>\n" (#include) "#include" (system_lib_string) "<QObject>" (preproc_include) "#include <QString>\n" (#include) "#include" (system_lib_string) "<QString>" (preproc_include) "#include <QNetworkCookie>\n" (#include) "#include" (system_lib_string) "<QNetworkCookie>" (function_definition) "class CookiePraseToolsPrivate\n{\npublic:\n CookiePraseToolsPrivate();\n static QString escape(const QString& unescaped);\n static QString unescape(const QString& escaped);\n static QList<QNetworkCookie> parseHtmlCookies(const QString& rawStr);\n static QString getHtmlCookieStr( const QNetworkCookie& cookie );\n}" (type_identifier) "class" (identifier) "CookiePraseToolsPrivate" (compound_statement) "{\npublic:\n CookiePraseToolsPrivate();\n static QString escape(const QString& unescaped);\n static QString unescape(const QString& escaped);\n static QList<QNetworkCookie> parseHtmlCookies(const QString& rawStr);\n static QString getHtmlCookieStr( const QNetworkCookie& cookie );\n}" ({) "{" (labeled_statement) "public:\n CookiePraseToolsPrivate();" (statement_identifier) "public" (:) ":" (expression_statement) "CookiePraseToolsPrivate();" (call_expression) "CookiePraseToolsPrivate()" (identifier) "CookiePraseToolsPrivate" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "static QString escape(const QString& unescaped);" (storage_class_specifier) "static" (static) "static" (type_identifier) "QString" (function_declarator) "escape(const QString& unescaped)" (identifier) "escape" (parameter_list) "(const QString& unescaped)" (() "(" (parameter_declaration) "const QString& unescaped" (type_qualifier) "const" (const) "const" (type_identifier) "QString" (ERROR) "&" (&) "&" (identifier) "unescaped" ()) ")" (;) ";" (declaration) "static QString unescape(const QString& escaped);" (storage_class_specifier) "static" (static) "static" (type_identifier) "QString" (function_declarator) "unescape(const QString& escaped)" (identifier) "unescape" (parameter_list) "(const QString& escaped)" (() "(" (parameter_declaration) "const QString& escaped" (type_qualifier) "const" (const) "const" (type_identifier) "QString" (ERROR) "&" (&) "&" (identifier) "escaped" ()) ")" (;) ";" (declaration) "static QList<QNetworkCookie> parseHtmlCookies(const QString& rawStr);" (storage_class_specifier) "static" (static) "static" (type_identifier) "QList" (ERROR) "<QNetworkCookie>" (<) "<" (identifier) "QNetworkCookie" (>) ">" (function_declarator) "parseHtmlCookies(const QString& rawStr)" (identifier) "parseHtmlCookies" (parameter_list) "(const QString& rawStr)" (() "(" (parameter_declaration) "const QString& rawStr" (type_qualifier) "const" (const) "const" (type_identifier) "QString" (ERROR) "&" (&) "&" (identifier) "rawStr" ()) ")" (;) ";" (declaration) "static QString getHtmlCookieStr( const QNetworkCookie& cookie );" (storage_class_specifier) "static" (static) "static" (type_identifier) "QString" (function_declarator) "getHtmlCookieStr( const QNetworkCookie& cookie )" (identifier) "getHtmlCookieStr" (parameter_list) "( const QNetworkCookie& cookie )" (() "(" (parameter_declaration) "const QNetworkCookie& cookie" (type_qualifier) "const" (const) "const" (type_identifier) "QNetworkCookie" (ERROR) "&" (&) "&" (identifier) "cookie" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif" (comment) "// COOKIEPRASETOOLSPRIVATE_H"
108
5
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 31.73, "nodes": 58, "errors": 0, "source_hash": "27699b4ac2416891555b9697db70230b89c6add3c2e11534d0c2446d0557d152", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef COOKIEPRASETOOLSPRIVATE_H\n#define COOKIEPRASETOOLSPRIVATE_H\n#include <QObject>\n#include <QString>\n#include <QNetworkCookie>\n\nclass CookiePraseToolsPrivate\n{\npublic:\n CookiePraseToolsPrivate();\n static QString escape(const QString& unescaped);\n static QString unescape(const QString& escaped);\n static QList<QNetworkCookie> parseHtmlCookies(const QString& rawStr);\n static QString getHtmlCookieStr( const QNetworkCookie& cookie );\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 57], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 16, "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": "COOKIEPRASETOOLSPRIVATE_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 33}}, {"id": 3, "type": "preproc_def", "text": "#define COOKIEPRASETOOLSPRIVATE_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": "COOKIEPRASETOOLSPRIVATE_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 33}}, {"id": 6, "type": "preproc_include", "text": "#include <QObject>\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": "<QObject>", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 18}}, {"id": 9, "type": "preproc_include", "text": "#include <QString>\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": "<QString>", "parent": 9, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 18}}, {"id": 12, "type": "preproc_include", "text": "#include <QNetworkCookie>\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": "<QNetworkCookie>", "parent": 12, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 25}}, {"id": 15, "type": "function_definition", "text": "class CookiePraseToolsPrivate\n{\npublic:\n CookiePraseToolsPrivate();\n static QString escape(const QString& unescaped);\n static QString unescape(const QString& escaped);\n static QList<QNetworkCookie> parseHtmlCookies(const QString& rawStr);\n static QString getHtmlCookieStr( const QNetworkCookie& cookie );\n}", "parent": 0, "children": [16], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 16, "type": "identifier", "text": "CookiePraseToolsPrivate", "parent": 15, "children": [], "start_point": {"row": 6, "column": 6}, "end_point": {"row": 6, "column": 29}}, {"id": 17, "type": "labeled_statement", "text": "public:\n CookiePraseToolsPrivate();", "parent": 15, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 30}}, {"id": 18, "type": "call_expression", "text": "CookiePraseToolsPrivate()", "parent": 17, "children": [19, 20], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 29}}, {"id": 19, "type": "identifier", "text": "CookiePraseToolsPrivate", "parent": 18, "children": [], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 27}}, {"id": 20, "type": "argument_list", "text": "()", "parent": 18, "children": [], "start_point": {"row": 9, "column": 27}, "end_point": {"row": 9, "column": 29}}, {"id": 21, "type": "declaration", "text": "static QString escape(const QString& unescaped);", "parent": 15, "children": [22, 23], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 52}}, {"id": 22, "type": "type_identifier", "text": "QString", "parent": 21, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 18}}, {"id": 23, "type": "function_declarator", "text": "escape(const QString& unescaped)", "parent": 21, "children": [24, 25], "start_point": {"row": 10, "column": 19}, "end_point": {"row": 10, "column": 51}}, {"id": 24, "type": "identifier", "text": "escape", "parent": 23, "children": [], "start_point": {"row": 10, "column": 19}, "end_point": {"row": 10, "column": 25}}, {"id": 25, "type": "parameter_list", "text": "(const QString& unescaped)", "parent": 23, "children": [26], "start_point": {"row": 10, "column": 25}, "end_point": {"row": 10, "column": 51}}, {"id": 26, "type": "parameter_declaration", "text": "const QString& unescaped", "parent": 25, "children": [27, 28], "start_point": {"row": 10, "column": 26}, "end_point": {"row": 10, "column": 50}}, {"id": 27, "type": "type_identifier", "text": "QString", "parent": 26, "children": [], "start_point": {"row": 10, "column": 32}, "end_point": {"row": 10, "column": 39}}, {"id": 28, "type": "identifier", "text": "unescaped", "parent": 26, "children": [], "start_point": {"row": 10, "column": 41}, "end_point": {"row": 10, "column": 50}}, {"id": 29, "type": "declaration", "text": "static QString unescape(const QString& escaped);", "parent": 15, "children": [30, 31], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 52}}, {"id": 30, "type": "type_identifier", "text": "QString", "parent": 29, "children": [], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 18}}, {"id": 31, "type": "function_declarator", "text": "unescape(const QString& escaped)", "parent": 29, "children": [32, 33], "start_point": {"row": 11, "column": 19}, "end_point": {"row": 11, "column": 51}}, {"id": 32, "type": "identifier", "text": "unescape", "parent": 31, "children": [], "start_point": {"row": 11, "column": 19}, "end_point": {"row": 11, "column": 27}}, {"id": 33, "type": "parameter_list", "text": "(const QString& escaped)", "parent": 31, "children": [34], "start_point": {"row": 11, "column": 27}, "end_point": {"row": 11, "column": 51}}, {"id": 34, "type": "parameter_declaration", "text": "const QString& escaped", "parent": 33, "children": [35, 36], "start_point": {"row": 11, "column": 28}, "end_point": {"row": 11, "column": 50}}, {"id": 35, "type": "type_identifier", "text": "QString", "parent": 34, "children": [], "start_point": {"row": 11, "column": 34}, "end_point": {"row": 11, "column": 41}}, {"id": 36, "type": "identifier", "text": "escaped", "parent": 34, "children": [], "start_point": {"row": 11, "column": 43}, "end_point": {"row": 11, "column": 50}}, {"id": 37, "type": "declaration", "text": "static QList<QNetworkCookie> parseHtmlCookies(const QString& rawStr);", "parent": 15, "children": [38, 39, 43], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 73}}, {"id": 38, "type": "type_identifier", "text": "QList", "parent": 37, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 16}}, {"id": 39, "type": "ERROR", "text": "<QNetworkCookie>", "parent": 37, "children": [40, 41, 42], "start_point": {"row": 12, "column": 16}, "end_point": {"row": 12, "column": 32}}, {"id": 40, "type": "<", "text": "<", "parent": 39, "children": [], "start_point": {"row": 12, "column": 16}, "end_point": {"row": 12, "column": 17}}, {"id": 41, "type": "identifier", "text": "QNetworkCookie", "parent": 39, "children": [], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 12, "column": 31}}, {"id": 42, "type": ">", "text": ">", "parent": 39, "children": [], "start_point": {"row": 12, "column": 31}, "end_point": {"row": 12, "column": 32}}, {"id": 43, "type": "function_declarator", "text": "parseHtmlCookies(const QString& rawStr)", "parent": 37, "children": [44, 45], "start_point": {"row": 12, "column": 33}, "end_point": {"row": 12, "column": 72}}, {"id": 44, "type": "identifier", "text": "parseHtmlCookies", "parent": 43, "children": [], "start_point": {"row": 12, "column": 33}, "end_point": {"row": 12, "column": 49}}, {"id": 45, "type": "parameter_list", "text": "(const QString& rawStr)", "parent": 43, "children": [46], "start_point": {"row": 12, "column": 49}, "end_point": {"row": 12, "column": 72}}, {"id": 46, "type": "parameter_declaration", "text": "const QString& rawStr", "parent": 45, "children": [47, 48], "start_point": {"row": 12, "column": 50}, "end_point": {"row": 12, "column": 71}}, {"id": 47, "type": "type_identifier", "text": "QString", "parent": 46, "children": [], "start_point": {"row": 12, "column": 56}, "end_point": {"row": 12, "column": 63}}, {"id": 48, "type": "identifier", "text": "rawStr", "parent": 46, "children": [], "start_point": {"row": 12, "column": 65}, "end_point": {"row": 12, "column": 71}}, {"id": 49, "type": "declaration", "text": "static QString getHtmlCookieStr( const QNetworkCookie& cookie );", "parent": 15, "children": [50, 51], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 68}}, {"id": 50, "type": "type_identifier", "text": "QString", "parent": 49, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 18}}, {"id": 51, "type": "function_declarator", "text": "getHtmlCookieStr( const QNetworkCookie& cookie )", "parent": 49, "children": [52, 53], "start_point": {"row": 13, "column": 19}, "end_point": {"row": 13, "column": 67}}, {"id": 52, "type": "identifier", "text": "getHtmlCookieStr", "parent": 51, "children": [], "start_point": {"row": 13, "column": 19}, "end_point": {"row": 13, "column": 35}}, {"id": 53, "type": "parameter_list", "text": "( const QNetworkCookie& cookie )", "parent": 51, "children": [54], "start_point": {"row": 13, "column": 35}, "end_point": {"row": 13, "column": 67}}, {"id": 54, "type": "parameter_declaration", "text": "const QNetworkCookie& cookie", "parent": 53, "children": [55, 56], "start_point": {"row": 13, "column": 37}, "end_point": {"row": 13, "column": 65}}, {"id": 55, "type": "type_identifier", "text": "QNetworkCookie", "parent": 54, "children": [], "start_point": {"row": 13, "column": 43}, "end_point": {"row": 13, "column": 57}}, {"id": 56, "type": "identifier", "text": "cookie", "parent": 54, "children": [], "start_point": {"row": 13, "column": 59}, "end_point": {"row": 13, "column": 65}}, {"id": 57, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 6}}]}, "node_categories": {"declarations": {"functions": [15, 23, 31, 43, 51], "variables": [21, 26, 29, 34, 37, 46, 49, 54], "classes": [], "imports": [6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [18], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 16, 19, 22, 24, 27, 28, 30, 32, 35, 36, 38, 41, 44, 47, 48, 50, 52, 55, 56, 57], "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": "CookiePraseToolsPrivate", "text_snippet": "class CookiePraseToolsPrivate\n{\npublic:\n CookiePraseToolsPrivate();\n static QString escape(con"}, {"node_id": 23, "universal_type": "function", "name": "unknown", "text_snippet": "escape(const QString& unescaped)"}, {"node_id": 31, "universal_type": "function", "name": "unknown", "text_snippet": "unescape(const QString& escaped)"}, {"node_id": 43, "universal_type": "function", "name": "unknown", "text_snippet": "parseHtmlCookies(const QString& rawStr)"}, {"node_id": 51, "universal_type": "function", "name": "unknown", "text_snippet": "getHtmlCookieStr( const QNetworkCookie& cookie )"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <QObject>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <QString>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <QNetworkCookie>\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "#ifndef COOKIEPRASETOOLSPRIVATE_H\n#define COOKIEPRASETOOLSPRIVATE_H\n#include <QObject>\n#include <QString>\n#include <QNetworkCookie>\n\nclass CookiePraseToolsPrivate\n{\npublic:\n CookiePraseToolsPrivate();\n static QString escape(const QString& unescaped);\n static QString unescape(const QString& escaped);\n static QList<QNetworkCookie> parseHtmlCookies(const QString& rawStr);\n static QString getHtmlCookieStr( const QNetworkCookie& cookie );\n};\n\n#endif // COOKIEPRASETOOLSPRIVATE_H\n"}
80,219
c
// // JXTAlertViewController.h // JXTAlertView // // Created by JXT on 16/3/7. // Copyright © 2016年 JXT. All rights reserved. // // // *** // * GitHub:https://github.com/kukumaluCN/JXT_iOS_Demos // * 博客:http://www.jianshu.com/users/c8f8558a4b1d/latest_articles // * 邮箱:<EMAIL> // *** #import <UIKit/UIKit.h> #import "VerifyNumberView.h" typedef void(^ClickBlock)(NSString * inputText); typedef void(^CancelBlock)(); @interface JXTAlertViewController : UIViewController <UITextFieldDelegate> - (instancetype)initWithConfirmAction:(ClickBlock)confirmBlock andCancelAction:(CancelBlock)cancelBlcok; @end
28.38
21
(translation_unit) "//\n// JXTAlertViewController.h\n// JXTAlertView\n//\n// Created by JXT on 16/3/7.\n// Copyright © 2016年 JXT. All rights reserved.\n//\n//\n// ***\n// * GitHub:https://github.com/kukumaluCN/JXT_iOS_Demos\n// * 博客:http://www.jianshu.com/users/c8f8558a4b1d/latest_articles\n// * 邮箱:<EMAIL>\n// ***\n\n\n#import <UIKit/UIKit.h>\n\n#import "VerifyNumberView.h"\n\ntypedef void(^ClickBlock)(NSString * inputText);\ntypedef void(^CancelBlock)();\n\n@interface JXTAlertViewController : UIViewController <UITextFieldDelegate>\n\n- (instancetype)initWithConfirmAction:(ClickBlock)confirmBlock andCancelAction:(CancelBlock)cancelBlcok;\n\n@end\n" (comment) "//" (comment) "// JXTAlertViewController.h" (comment) "// JXTAlertView" (comment) "//" (comment) "// Created by JXT on 16/3/7." (comment) "// Copyright © 2016年 JXT. All rights reserved.\n//" (comment) "//" (comment) "//" (comment) " ***\n//" (comment) " * GitHub:https://github.com/kukumaluCN/JXT_iOS_Demos\n//" (comment) " * 博客:http://www.jianshu.com/users/c8f8558a4b1d/latest_articles\n// * " (comment) " 邮箱:<EMAIL>\n// ***\n\n\n" (comment) "import " (preproc_call) "Kit/UIKit.h>\n\n#import "V" (preproc_directive) "Kit/UIK" (preproc_arg) "t.h>\n\n#import "" (preproc_call) "rifyNumberView.h"\n\ntypedef vo" (preproc_directive) "rifyNum" (preproc_arg) "erView.h"\n\ntypedef v" (type_definition) "d(^ClickBlock)(NSString * inputText);\ntypedef vo" (typedef) "d(^Clic" (primitive_type) "Bloc" (function_declarator) "k)(NSString * inputText);\ntypedef v" (parenthesized_declarator) "k)(NSString *" (() "k" (ERROR) ")" (^) ")" (type_identifier) "(NSString " ()) "*" (parameter_list) " inputText);\ntypedef v" (() " " (parameter_declaration) "inputText);\ntypedef " (type_identifier) "inputTex" (pointer_declarator) ");\ntypedef " (*) ")" (identifier) "\ntypedef " ()) "v" (;) "o" (type_definition) "d(^CancelBlock)();\n\n@interfac" (typedef) "d(^Canc" (primitive_type) "lBlo" (function_declarator) "ck)();\n\n@interfa" (parenthesized_declarator) "ck)();\n\n@inter" (() "c" (ERROR) "k" (^) "k" (type_identifier) ")();\n\n@inte" ()) "r" (parameter_list) "fa" (() "f" ()) "a" (;) "c" (ERROR) "JXTAlertViewController : UIViewController <UITextFieldDelegate>\n\n- (instancetype)initWithConfirmAction:(ClickBlock)" (ERROR) "J" (type_identifier) "XTAlertVi" (identifier) "wController : UIViewCo" (:) "t" (identifier) "oller <UITextFie" (<) "d" (identifier) "Delegate>\n\n- (insta" (>) "n" (unary_expression) "type)initWithConfirmAction:(ClickBloc" (-) "t" (cast_expression) "pe)initWithConfirmAction:(ClickBloc" (() "p" (type_descriptor) "e)initWithCo" (type_identifier) "e)initWithCo" ()) "n" (identifier) "firmAction:(ClickBloc" (:) "k" (() ")" (declaration) "confirmBlock andCancelA" (type_identifier) "confirmBlo" (ERROR) "c" ()) "c" (identifier) "k andCancelA" (;) "" (labeled_statement) "tion:(CancelBlock)cancelBlcok;\n\n@end\n" (statement_identifier) "tion:(CancelBlo" (:) "c" (expression_statement) "k)cancelBlcok;\n\n@end\n" (cast_expression) "k)cancelBlcok;\n\n@end\n" (() "k" (type_descriptor) ")cancelBlco" (type_identifier) ")cancelBlco" ()) "k" (identifier) ";\n\n@end\n" (;) "" (ERROR) "" (ERROR) "" (expression_statement) "" (identifier) "" (;) ""
94
7
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 28.38, "nodes": 53, "errors": 0, "source_hash": "27a803dbf5cd325c8ab27b2629d15a2e0a12ed273b7243b44f1ec2843584616c", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Kit/UIKit.h>\n\n#import \"V", "parent": null, "children": [1, 2], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "Kit/UIK", "parent": 0, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "t.h>\n\n#import \"", "parent": 0, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 23}}, {"id": 3, "type": "preproc_call", "text": "rifyNumberView.h\"\n\ntypedef vo", "parent": null, "children": [4, 5], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 4, "type": "preproc_directive", "text": "rifyNum", "parent": 3, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 7}}, {"id": 5, "type": "preproc_arg", "text": "erView.h\"\n\ntypedef v", "parent": 3, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 28}}, {"id": 6, "type": "type_definition", "text": "d(^ClickBlock)(NSString * inputText);\ntypedef vo", "parent": null, "children": [7, 8, 9], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 48}}, {"id": 7, "type": "typedef", "text": "d(^Clic", "parent": 6, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 7}}, {"id": 8, "type": "primitive_type", "text": "Bloc", "parent": 6, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 12}}, {"id": 9, "type": "function_declarator", "text": "k)(NSString * inputText);\ntypedef v", "parent": 6, "children": [10, 12], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 47}}, {"id": 10, "type": "parenthesized_declarator", "text": "k)(NSString *", "parent": 9, "children": [11], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 25}}, {"id": 11, "type": "type_identifier", "text": "(NSString ", "parent": 10, "children": [], "start_point": {"row": 19, "column": 14}, "end_point": {"row": 19, "column": 24}}, {"id": 12, "type": "parameter_list", "text": " inputText);\ntypedef v", "parent": 9, "children": [13], "start_point": {"row": 19, "column": 25}, "end_point": {"row": 19, "column": 47}}, {"id": 13, "type": "parameter_declaration", "text": "inputText);\ntypedef ", "parent": 12, "children": [14, 15], "start_point": {"row": 19, "column": 26}, "end_point": {"row": 19, "column": 46}}, {"id": 14, "type": "type_identifier", "text": "inputTex", "parent": 13, "children": [], "start_point": {"row": 19, "column": 26}, "end_point": {"row": 19, "column": 34}}, {"id": 15, "type": "pointer_declarator", "text": ");\ntypedef ", "parent": 13, "children": [16], "start_point": {"row": 19, "column": 35}, "end_point": {"row": 19, "column": 46}}, {"id": 16, "type": "identifier", "text": "\ntypedef ", "parent": 15, "children": [], "start_point": {"row": 19, "column": 37}, "end_point": {"row": 19, "column": 46}}, {"id": 17, "type": "type_definition", "text": "d(^CancelBlock)();\n\n@interfac", "parent": null, "children": [18, 19, 20], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 29}}, {"id": 18, "type": "typedef", "text": "d(^Canc", "parent": 17, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 7}}, {"id": 19, "type": "primitive_type", "text": "lBlo", "parent": 17, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 12}}, {"id": 20, "type": "function_declarator", "text": "ck)();\n\n@interfa", "parent": 17, "children": [21, 25], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 28}}, {"id": 21, "type": "parenthesized_declarator", "text": "ck)();\n\n@inter", "parent": 20, "children": [22, 24], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 26}}, {"id": 22, "type": "ERROR", "text": "k", "parent": 21, "children": [23], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 14}}, {"id": 23, "type": "^", "text": "k", "parent": 22, "children": [], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 14}}, {"id": 24, "type": "type_identifier", "text": ")();\n\n@inte", "parent": 21, "children": [], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 25}}, {"id": 25, "type": "parameter_list", "text": "fa", "parent": 20, "children": [], "start_point": {"row": 20, "column": 26}, "end_point": {"row": 20, "column": 28}}, {"id": 26, "type": "ERROR", "text": "JXTAlertViewController : UIViewController <UITextFieldDelegate>\n\n- (instancetype)initWithConfirmAction:(ClickBlock)", "parent": null, "children": [27, 28, 29, 30, 31, 32, 33, 34], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 24, "column": 39}}, {"id": 27, "type": "ERROR", "text": "J", "parent": 26, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 1}}, {"id": 28, "type": "type_identifier", "text": "XTAlertVi", "parent": 26, "children": [], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 10}}, {"id": 29, "type": "identifier", "text": "wController : UIViewCo", "parent": 26, "children": [], "start_point": {"row": 22, "column": 11}, "end_point": {"row": 22, "column": 33}}, {"id": 30, "type": "identifier", "text": "oller <UITextFie", "parent": 26, "children": [], "start_point": {"row": 22, "column": 36}, "end_point": {"row": 22, "column": 52}}, {"id": 31, "type": "<", "text": "d", "parent": 26, "children": [], "start_point": {"row": 22, "column": 53}, "end_point": {"row": 22, "column": 54}}, {"id": 32, "type": "identifier", "text": "Delegate>\n\n- (insta", "parent": 26, "children": [], "start_point": {"row": 22, "column": 54}, "end_point": {"row": 22, "column": 73}}, {"id": 33, "type": ">", "text": "n", "parent": 26, "children": [], "start_point": {"row": 22, "column": 73}, "end_point": {"row": 22, "column": 74}}, {"id": 34, "type": "unary_expression", "text": "type)initWithConfirmAction:(ClickBloc", "parent": 26, "children": [35, 36], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 37}}, {"id": 35, "type": "-", "text": "t", "parent": 34, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 36, "type": "cast_expression", "text": "pe)initWithConfirmAction:(ClickBloc", "parent": 34, "children": [37, 39], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 37}}, {"id": 37, "type": "type_descriptor", "text": "e)initWithCo", "parent": 36, "children": [38], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 15}}, {"id": 38, "type": "type_identifier", "text": "e)initWithCo", "parent": 37, "children": [], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 15}}, {"id": 39, "type": "identifier", "text": "firmAction:(ClickBloc", "parent": 36, "children": [], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 37}}, {"id": 40, "type": "declaration", "text": "confirmBlock andCancelA", "parent": null, "children": [41, 42, 43], "start_point": {"row": 24, "column": 39}, "end_point": {"row": 24, "column": 62}}, {"id": 41, "type": "type_identifier", "text": "confirmBlo", "parent": 40, "children": [], "start_point": {"row": 24, "column": 39}, "end_point": {"row": 24, "column": 49}}, {"id": 42, "type": "ERROR", "text": "c", "parent": 40, "children": [], "start_point": {"row": 24, "column": 49}, "end_point": {"row": 24, "column": 50}}, {"id": 43, "type": "identifier", "text": "k andCancelA", "parent": 40, "children": [], "start_point": {"row": 24, "column": 50}, "end_point": {"row": 24, "column": 62}}, {"id": 44, "type": "labeled_statement", "text": "tion:(CancelBlock)cancelBlcok;\n\n@end\n", "parent": null, "children": [45], "start_point": {"row": 24, "column": 63}, "end_point": {"row": 24, "column": 104}}, {"id": 45, "type": "statement_identifier", "text": "tion:(CancelBlo", "parent": 44, "children": [], "start_point": {"row": 24, "column": 63}, "end_point": {"row": 24, "column": 78}}, {"id": 46, "type": "cast_expression", "text": "k)cancelBlcok;\n\n@end\n", "parent": 44, "children": [47, 49], "start_point": {"row": 24, "column": 79}, "end_point": {"row": 24, "column": 103}}, {"id": 47, "type": "type_descriptor", "text": ")cancelBlco", "parent": 46, "children": [48], "start_point": {"row": 24, "column": 80}, "end_point": {"row": 24, "column": 91}}, {"id": 48, "type": "type_identifier", "text": ")cancelBlco", "parent": 47, "children": [], "start_point": {"row": 24, "column": 80}, "end_point": {"row": 24, "column": 91}}, {"id": 49, "type": "identifier", "text": ";\n\n@end\n", "parent": 46, "children": [], "start_point": {"row": 24, "column": 92}, "end_point": {"row": 24, "column": 103}}, {"id": 50, "type": "ERROR", "text": "", "parent": null, "children": [51], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 51, "type": "ERROR", "text": "", "parent": 50, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 52, "type": "identifier", "text": "", "parent": null, "children": [], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 4}}]}, "node_categories": {"declarations": {"functions": [9, 20], "variables": [6, 13, 17, 40], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [34, 36, 46], "assignments": [], "loops": [], "conditionals": [11, 14, 16, 24, 28, 29, 30, 32, 38, 39, 41, 43, 45, 48, 49, 52], "returns": [], "exceptions": []}, "expressions": {"calls": [0, 3], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "unknown", "text_snippet": "k)(NSString * inputText);\ntypedef v"}, {"node_id": 20, "universal_type": "function", "name": "unknown", "text_snippet": "ck)();\n\n@interfa"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// JXTAlertViewController.h\n// JXTAlertView\n//\n// Created by JXT on 16/3/7.\n// Copyright \u00a9 2016\u5e74 JXT. All rights reserved.\n//\n//\n// ***\n// * GitHub:https://github.com/kukumaluCN/JXT_iOS_Demos\n// * \u535a\u5ba2:http://www.jianshu.com/users/c8f8558a4b1d/latest_articles\n// * \u90ae\u7bb1:<EMAIL>\n// ***\n\n\n#import <UIKit/UIKit.h>\n\n#import \"VerifyNumberView.h\"\n\ntypedef void(^ClickBlock)(NSString * inputText);\ntypedef void(^CancelBlock)();\n\n@interface JXTAlertViewController : UIViewController <UITextFieldDelegate>\n\n- (instancetype)initWithConfirmAction:(ClickBlock)confirmBlock andCancelAction:(CancelBlock)cancelBlcok;\n\n@end\n"}
80,220
c
/* * mpower.c * * Created on: 19 feb. 2019 * Author: <NAME> */ #include "declareFunctions.h" /* * This is the almost the same as powe, power on every element, but the difference is that this function * does not take power on each element, it does A^n * A will be size row x row. It must be square!!! * A^n and n will be an integer */ void mpower(double* A, int row, int n) { double T[row * row]; double T2[row * row]; zeros(T, row, row); zeros(T2, row, row); for (int i = 0; i <= n; i++) { if (i == 0) { eye(T, row, row); // Identity matrix will return } else if (i == 1) { copy(A, T, row, row); // A - > T } else if (i == 2) { mul(A, A, false, T, row, row, row); // T= A*A; } else { mul(A, T, false, T2, row, row, row); // T2 = A*T copy(T2, T, row, row); // T2 -> T } } copy(T, A, row, row); // T -> A and then return }
26.16
32
(translation_unit) "/*\n * mpower.c\n *\n * Created on: 19 feb. 2019\n * Author: <NAME>\n */\n\n#include "declareFunctions.h"\n\n/*\n * This is the almost the same as powe, power on every element, but the difference is that this function\n * does not take power on each element, it does A^n\n * A will be size row x row. It must be square!!!\n * A^n and n will be an integer\n */\n\nvoid mpower(double* A, int row, int n) {\n double T[row * row];\n double T2[row * row];\n zeros(T, row, row);\n zeros(T2, row, row);\n\n for (int i = 0; i <= n; i++) {\n if (i == 0) {\n eye(T, row, row); // Identity matrix will return\n } else if (i == 1) {\n copy(A, T, row, row); // A - > T\n } else if (i == 2) {\n mul(A, A, false, T, row, row, row); // T= A*A;\n } else {\n mul(A, T, false, T2, row, row, row); // T2 = A*T\n copy(T2, T, row, row); // T2 -> T\n }\n }\n copy(T, A, row, row); // T -> A and then return\n\n}\n" (comment) "/*\n * mpower.c\n *\n * Created on: 19 feb. 2019\n * Author: <NAME>\n */" (preproc_include) "#include "declareFunctions.h"\n" (#include) "#include" (string_literal) ""declareFunctions.h"" (") """ (string_content) "declareFunctions.h" (") """ (comment) "/*\n * This is the almost the same as powe, power on every element, but the difference is that this function\n * does not take power on each element, it does A^n\n * A will be size row x row. It must be square!!!\n * A^n and n will be an integer\n */" (function_definition) "void mpower(double* A, int row, int n) {\n double T[row * row];\n double T2[row * row];\n zeros(T, row, row);\n zeros(T2, row, row);\n\n for (int i = 0; i <= n; i++) {\n if (i == 0) {\n eye(T, row, row); // Identity matrix will return\n } else if (i == 1) {\n copy(A, T, row, row); // A - > T\n } else if (i == 2) {\n mul(A, A, false, T, row, row, row); // T= A*A;\n } else {\n mul(A, T, false, T2, row, row, row); // T2 = A*T\n copy(T2, T, row, row); // T2 -> T\n }\n }\n copy(T, A, row, row); // T -> A and then return\n\n}" (primitive_type) "void" (function_declarator) "mpower(double* A, int row, int n)" (identifier) "mpower" (parameter_list) "(double* A, int row, int n)" (() "(" (parameter_declaration) "double* A" (primitive_type) "double" (pointer_declarator) "* A" (*) "*" (identifier) "A" (,) "," (parameter_declaration) "int row" (primitive_type) "int" (identifier) "row" (,) "," (parameter_declaration) "int n" (primitive_type) "int" (identifier) "n" ()) ")" (compound_statement) "{\n double T[row * row];\n double T2[row * row];\n zeros(T, row, row);\n zeros(T2, row, row);\n\n for (int i = 0; i <= n; i++) {\n if (i == 0) {\n eye(T, row, row); // Identity matrix will return\n } else if (i == 1) {\n copy(A, T, row, row); // A - > T\n } else if (i == 2) {\n mul(A, A, false, T, row, row, row); // T= A*A;\n } else {\n mul(A, T, false, T2, row, row, row); // T2 = A*T\n copy(T2, T, row, row); // T2 -> T\n }\n }\n copy(T, A, row, row); // T -> A and then return\n\n}" ({) "{" (declaration) "double T[row * row];" (primitive_type) "double" (array_declarator) "T[row * row]" (identifier) "T" ([) "[" (binary_expression) "row * row" (identifier) "row" (*) "*" (identifier) "row" (]) "]" (;) ";" (declaration) "double T2[row * row];" (primitive_type) "double" (array_declarator) "T2[row * row]" (identifier) "T2" ([) "[" (binary_expression) "row * row" (identifier) "row" (*) "*" (identifier) "row" (]) "]" (;) ";" (expression_statement) "zeros(T, row, row);" (call_expression) "zeros(T, row, row)" (identifier) "zeros" (argument_list) "(T, row, row)" (() "(" (identifier) "T" (,) "," (identifier) "row" (,) "," (identifier) "row" ()) ")" (;) ";" (expression_statement) "zeros(T2, row, row);" (call_expression) "zeros(T2, row, row)" (identifier) "zeros" (argument_list) "(T2, row, row)" (() "(" (identifier) "T2" (,) "," (identifier) "row" (,) "," (identifier) "row" ()) ")" (;) ";" (for_statement) "for (int i = 0; i <= n; i++) {\n if (i == 0) {\n eye(T, row, row); // Identity matrix will return\n } else if (i == 1) {\n copy(A, T, row, row); // A - > T\n } else if (i == 2) {\n mul(A, A, false, T, row, row, row); // T= A*A;\n } else {\n mul(A, T, false, T2, row, row, row); // T2 = A*T\n copy(T2, T, row, row); // T2 -> T\n }\n }" (for) "for" (() "(" (declaration) "int i = 0;" (primitive_type) "int" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i <= n" (identifier) "i" (<=) "<=" (identifier) "n" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n if (i == 0) {\n eye(T, row, row); // Identity matrix will return\n } else if (i == 1) {\n copy(A, T, row, row); // A - > T\n } else if (i == 2) {\n mul(A, A, false, T, row, row, row); // T= A*A;\n } else {\n mul(A, T, false, T2, row, row, row); // T2 = A*T\n copy(T2, T, row, row); // T2 -> T\n }\n }" ({) "{" (if_statement) "if (i == 0) {\n eye(T, row, row); // Identity matrix will return\n } else if (i == 1) {\n copy(A, T, row, row); // A - > T\n } else if (i == 2) {\n mul(A, A, false, T, row, row, row); // T= A*A;\n } else {\n mul(A, T, false, T2, row, row, row); // T2 = A*T\n copy(T2, T, row, row); // T2 -> T\n }" (if) "if" (parenthesized_expression) "(i == 0)" (() "(" (binary_expression) "i == 0" (identifier) "i" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n eye(T, row, row); // Identity matrix will return\n }" ({) "{" (expression_statement) "eye(T, row, row);" (call_expression) "eye(T, row, row)" (identifier) "eye" (argument_list) "(T, row, row)" (() "(" (identifier) "T" (,) "," (identifier) "row" (,) "," (identifier) "row" ()) ")" (;) ";" (comment) "// Identity matrix will return" (}) "}" (else_clause) "else if (i == 1) {\n copy(A, T, row, row); // A - > T\n } else if (i == 2) {\n mul(A, A, false, T, row, row, row); // T= A*A;\n } else {\n mul(A, T, false, T2, row, row, row); // T2 = A*T\n copy(T2, T, row, row); // T2 -> T\n }" (else) "else" (if_statement) "if (i == 1) {\n copy(A, T, row, row); // A - > T\n } else if (i == 2) {\n mul(A, A, false, T, row, row, row); // T= A*A;\n } else {\n mul(A, T, false, T2, row, row, row); // T2 = A*T\n copy(T2, T, row, row); // T2 -> T\n }" (if) "if" (parenthesized_expression) "(i == 1)" (() "(" (binary_expression) "i == 1" (identifier) "i" (==) "==" (number_literal) "1" ()) ")" (compound_statement) "{\n copy(A, T, row, row); // A - > T\n }" ({) "{" (expression_statement) "copy(A, T, row, row);" (call_expression) "copy(A, T, row, row)" (identifier) "copy" (argument_list) "(A, T, row, row)" (() "(" (identifier) "A" (,) "," (identifier) "T" (,) "," (identifier) "row" (,) "," (identifier) "row" ()) ")" (;) ";" (comment) "// A - > T" (}) "}" (else_clause) "else if (i == 2) {\n mul(A, A, false, T, row, row, row); // T= A*A;\n } else {\n mul(A, T, false, T2, row, row, row); // T2 = A*T\n copy(T2, T, row, row); // T2 -> T\n }" (else) "else" (if_statement) "if (i == 2) {\n mul(A, A, false, T, row, row, row); // T= A*A;\n } else {\n mul(A, T, false, T2, row, row, row); // T2 = A*T\n copy(T2, T, row, row); // T2 -> T\n }" (if) "if" (parenthesized_expression) "(i == 2)" (() "(" (binary_expression) "i == 2" (identifier) "i" (==) "==" (number_literal) "2" ()) ")" (compound_statement) "{\n mul(A, A, false, T, row, row, row); // T= A*A;\n }" ({) "{" (expression_statement) "mul(A, A, false, T, row, row, row);" (call_expression) "mul(A, A, false, T, row, row, row)" (identifier) "mul" (argument_list) "(A, A, false, T, row, row, row)" (() "(" (identifier) "A" (,) "," (identifier) "A" (,) "," (false) "false" (,) "," (identifier) "T" (,) "," (identifier) "row" (,) "," (identifier) "row" (,) "," (identifier) "row" ()) ")" (;) ";" (comment) "// T= A*A;" (}) "}" (else_clause) "else {\n mul(A, T, false, T2, row, row, row); // T2 = A*T\n copy(T2, T, row, row); // T2 -> T\n }" (else) "else" (compound_statement) "{\n mul(A, T, false, T2, row, row, row); // T2 = A*T\n copy(T2, T, row, row); // T2 -> T\n }" ({) "{" (expression_statement) "mul(A, T, false, T2, row, row, row);" (call_expression) "mul(A, T, false, T2, row, row, row)" (identifier) "mul" (argument_list) "(A, T, false, T2, row, row, row)" (() "(" (identifier) "A" (,) "," (identifier) "T" (,) "," (false) "false" (,) "," (identifier) "T2" (,) "," (identifier) "row" (,) "," (identifier) "row" (,) "," (identifier) "row" ()) ")" (;) ";" (comment) "// T2 = A*T" (expression_statement) "copy(T2, T, row, row);" (call_expression) "copy(T2, T, row, row)" (identifier) "copy" (argument_list) "(T2, T, row, row)" (() "(" (identifier) "T2" (,) "," (identifier) "T" (,) "," (identifier) "row" (,) "," (identifier) "row" ()) ")" (;) ";" (comment) "// T2 -> T" (}) "}" (}) "}" (expression_statement) "copy(T, A, row, row);" (call_expression) "copy(T, A, row, row)" (identifier) "copy" (argument_list) "(T, A, row, row)" (() "(" (identifier) "T" (,) "," (identifier) "A" (,) "," (identifier) "row" (,) "," (identifier) "row" ()) ")" (;) ";" (comment) "// T -> A and then return" (}) "}"
245
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 26.16, "nodes": 129, "errors": 0, "source_hash": "86f7cd53b47fc42d2de382548fcd91a39722d1ac858e99edce73ff4948996d41", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"declareFunctions.h\"\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": "string_literal", "text": "\"declareFunctions.h\"", "parent": 0, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 29}}, {"id": 3, "type": "function_definition", "text": "void mpower(double* A, int row, int n) {\n\tdouble T[row * row];\n\tdouble T2[row * row];\n\tzeros(T, row, row);\n\tzeros(T2, row, row);\n\n\tfor (int i = 0; i <= n; i++) {\n\t\tif (i == 0) {\n\t\t\teye(T, row, row); // Identity matrix will return\n\t\t} else if (i == 1) {\n\t\t\tcopy(A, T, row, row); // A - > T\n\t\t} else if (i == 2) {\n\t\t\tmul(A, A, false, T, row, row, row); // T= A*A;\n\t\t} else {\n\t\t\tmul(A, T, false, T2, row, row, row); // T2 = A*T\n\t\t\tcopy(T2, T, row, row); // T2 -> T\n\t\t}\n\t}\n\tcopy(T, A, row, row); // T -> A and then return\n\n}", "parent": null, "children": [4, 5], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 36, "column": 1}}, {"id": 4, "type": "primitive_type", "text": "void", "parent": 3, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 4}}, {"id": 5, "type": "function_declarator", "text": "mpower(double* A, int row, int n)", "parent": 3, "children": [6, 7], "start_point": {"row": 16, "column": 5}, "end_point": {"row": 16, "column": 38}}, {"id": 6, "type": "identifier", "text": "mpower", "parent": 5, "children": [], "start_point": {"row": 16, "column": 5}, "end_point": {"row": 16, "column": 11}}, {"id": 7, "type": "parameter_list", "text": "(double* A, int row, int n)", "parent": 5, "children": [8, 13, 16], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 38}}, {"id": 8, "type": "parameter_declaration", "text": "double* A", "parent": 7, "children": [9, 10], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 16, "column": 21}}, {"id": 9, "type": "primitive_type", "text": "double", "parent": 8, "children": [], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 16, "column": 18}}, {"id": 10, "type": "pointer_declarator", "text": "* A", "parent": 8, "children": [11, 12], "start_point": {"row": 16, "column": 18}, "end_point": {"row": 16, "column": 21}}, {"id": 11, "type": "*", "text": "*", "parent": 10, "children": [], "start_point": {"row": 16, "column": 18}, "end_point": {"row": 16, "column": 19}}, {"id": 12, "type": "identifier", "text": "A", "parent": 10, "children": [], "start_point": {"row": 16, "column": 20}, "end_point": {"row": 16, "column": 21}}, {"id": 13, "type": "parameter_declaration", "text": "int row", "parent": 7, "children": [14, 15], "start_point": {"row": 16, "column": 23}, "end_point": {"row": 16, "column": 30}}, {"id": 14, "type": "primitive_type", "text": "int", "parent": 13, "children": [], "start_point": {"row": 16, "column": 23}, "end_point": {"row": 16, "column": 26}}, {"id": 15, "type": "identifier", "text": "row", "parent": 13, "children": [], "start_point": {"row": 16, "column": 27}, "end_point": {"row": 16, "column": 30}}, {"id": 16, "type": "parameter_declaration", "text": "int n", "parent": 7, "children": [17, 18], "start_point": {"row": 16, "column": 32}, "end_point": {"row": 16, "column": 37}}, {"id": 17, "type": "primitive_type", "text": "int", "parent": 16, "children": [], "start_point": {"row": 16, "column": 32}, "end_point": {"row": 16, "column": 35}}, {"id": 18, "type": "identifier", "text": "n", "parent": 16, "children": [], "start_point": {"row": 16, "column": 36}, "end_point": {"row": 16, "column": 37}}, {"id": 19, "type": "declaration", "text": "double T[row * row];", "parent": 3, "children": [20, 21], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 21}}, {"id": 20, "type": "primitive_type", "text": "double", "parent": 19, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 7}}, {"id": 21, "type": "array_declarator", "text": "T[row * row]", "parent": 19, "children": [22, 23], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 20}}, {"id": 22, "type": "identifier", "text": "T", "parent": 21, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 9}}, {"id": 23, "type": "binary_expression", "text": "row * row", "parent": 21, "children": [24, 25, 26], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 19}}, {"id": 24, "type": "identifier", "text": "row", "parent": 23, "children": [], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 13}}, {"id": 25, "type": "*", "text": "*", "parent": 23, "children": [], "start_point": {"row": 17, "column": 14}, "end_point": {"row": 17, "column": 15}}, {"id": 26, "type": "identifier", "text": "row", "parent": 23, "children": [], "start_point": {"row": 17, "column": 16}, "end_point": {"row": 17, "column": 19}}, {"id": 27, "type": "declaration", "text": "double T2[row * row];", "parent": 3, "children": [28, 29], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 22}}, {"id": 28, "type": "primitive_type", "text": "double", "parent": 27, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 7}}, {"id": 29, "type": "array_declarator", "text": "T2[row * row]", "parent": 27, "children": [30, 31], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 21}}, {"id": 30, "type": "identifier", "text": "T2", "parent": 29, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 10}}, {"id": 31, "type": "binary_expression", "text": "row * row", "parent": 29, "children": [32, 33, 34], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 20}}, {"id": 32, "type": "identifier", "text": "row", "parent": 31, "children": [], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 14}}, {"id": 33, "type": "*", "text": "*", "parent": 31, "children": [], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 16}}, {"id": 34, "type": "identifier", "text": "row", "parent": 31, "children": [], "start_point": {"row": 18, "column": 17}, "end_point": {"row": 18, "column": 20}}, {"id": 35, "type": "call_expression", "text": "zeros(T, row, row)", "parent": 3, "children": [36, 37], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 19}}, {"id": 36, "type": "identifier", "text": "zeros", "parent": 35, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 6}}, {"id": 37, "type": "argument_list", "text": "(T, row, row)", "parent": 35, "children": [38, 39, 40], "start_point": {"row": 19, "column": 6}, "end_point": {"row": 19, "column": 19}}, {"id": 38, "type": "identifier", "text": "T", "parent": 37, "children": [], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 8}}, {"id": 39, "type": "identifier", "text": "row", "parent": 37, "children": [], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 13}}, {"id": 40, "type": "identifier", "text": "row", "parent": 37, "children": [], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 18}}, {"id": 41, "type": "call_expression", "text": "zeros(T2, row, row)", "parent": 3, "children": [42, 43], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 20}}, {"id": 42, "type": "identifier", "text": "zeros", "parent": 41, "children": [], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 6}}, {"id": 43, "type": "argument_list", "text": "(T2, row, row)", "parent": 41, "children": [44, 45, 46], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 20}}, {"id": 44, "type": "identifier", "text": "T2", "parent": 43, "children": [], "start_point": {"row": 20, "column": 7}, "end_point": {"row": 20, "column": 9}}, {"id": 45, "type": "identifier", "text": "row", "parent": 43, "children": [], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 14}}, {"id": 46, "type": "identifier", "text": "row", "parent": 43, "children": [], "start_point": {"row": 20, "column": 16}, "end_point": {"row": 20, "column": 19}}, {"id": 47, "type": "for_statement", "text": "for (int i = 0; i <= n; i++) {\n\t\tif (i == 0) {\n\t\t\teye(T, row, row); // Identity matrix will return\n\t\t} else if (i == 1) {\n\t\t\tcopy(A, T, row, row); // A - > T\n\t\t} else if (i == 2) {\n\t\t\tmul(A, A, false, T, row, row, row); // T= A*A;\n\t\t} else {\n\t\t\tmul(A, T, false, T2, row, row, row); // T2 = A*T\n\t\t\tcopy(T2, T, row, row); // T2 -> T\n\t\t}\n\t}", "parent": 3, "children": [48, 54, 58], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 33, "column": 2}}, {"id": 48, "type": "declaration", "text": "int i = 0;", "parent": 47, "children": [49, 50], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 16}}, {"id": 49, "type": "primitive_type", "text": "int", "parent": 48, "children": [], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 9}}, {"id": 50, "type": "init_declarator", "text": "i = 0", "parent": 48, "children": [51, 52, 53], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 15}}, {"id": 51, "type": "identifier", "text": "i", "parent": 50, "children": [], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 11}}, {"id": 52, "type": "=", "text": "=", "parent": 50, "children": [], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 13}}, {"id": 53, "type": "number_literal", "text": "0", "parent": 50, "children": [], "start_point": {"row": 22, "column": 14}, "end_point": {"row": 22, "column": 15}}, {"id": 54, "type": "binary_expression", "text": "i <= n", "parent": 47, "children": [55, 56, 57], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 23}}, {"id": 55, "type": "identifier", "text": "i", "parent": 54, "children": [], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 18}}, {"id": 56, "type": "<=", "text": "<=", "parent": 54, "children": [], "start_point": {"row": 22, "column": 19}, "end_point": {"row": 22, "column": 21}}, {"id": 57, "type": "identifier", "text": "n", "parent": 54, "children": [], "start_point": {"row": 22, "column": 22}, "end_point": {"row": 22, "column": 23}}, {"id": 58, "type": "update_expression", "text": "i++", "parent": 47, "children": [59, 60], "start_point": {"row": 22, "column": 25}, "end_point": {"row": 22, "column": 28}}, {"id": 59, "type": "identifier", "text": "i", "parent": 58, "children": [], "start_point": {"row": 22, "column": 25}, "end_point": {"row": 22, "column": 26}}, {"id": 60, "type": "++", "text": "++", "parent": 58, "children": [], "start_point": {"row": 22, "column": 26}, "end_point": {"row": 22, "column": 28}}, {"id": 61, "type": "if_statement", "text": "if (i == 0) {\n\t\t\teye(T, row, row); // Identity matrix will return\n\t\t} else if (i == 1) {\n\t\t\tcopy(A, T, row, row); // A - > T\n\t\t} else if (i == 2) {\n\t\t\tmul(A, A, false, T, row, row, row); // T= A*A;\n\t\t} else {\n\t\t\tmul(A, T, false, T2, row, row, row); // T2 = A*T\n\t\t\tcopy(T2, T, row, row); // T2 -> T\n\t\t}", "parent": 47, "children": [62, 73], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 32, "column": 3}}, {"id": 62, "type": "parenthesized_expression", "text": "(i == 0)", "parent": 61, "children": [63], "start_point": {"row": 23, "column": 5}, "end_point": {"row": 23, "column": 13}}, {"id": 63, "type": "binary_expression", "text": "i == 0", "parent": 62, "children": [64, 65, 66], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 12}}, {"id": 64, "type": "identifier", "text": "i", "parent": 63, "children": [], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 7}}, {"id": 65, "type": "==", "text": "==", "parent": 63, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 10}}, {"id": 66, "type": "number_literal", "text": "0", "parent": 63, "children": [], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 12}}, {"id": 67, "type": "call_expression", "text": "eye(T, row, row)", "parent": 61, "children": [68, 69], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 19}}, {"id": 68, "type": "identifier", "text": "eye", "parent": 67, "children": [], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 6}}, {"id": 69, "type": "argument_list", "text": "(T, row, row)", "parent": 67, "children": [70, 71, 72], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 19}}, {"id": 70, "type": "identifier", "text": "T", "parent": 69, "children": [], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 8}}, {"id": 71, "type": "identifier", "text": "row", "parent": 69, "children": [], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 13}}, {"id": 72, "type": "identifier", "text": "row", "parent": 69, "children": [], "start_point": {"row": 24, "column": 15}, "end_point": {"row": 24, "column": 18}}, {"id": 73, "type": "else_clause", "text": "else if (i == 1) {\n\t\t\tcopy(A, T, row, row); // A - > T\n\t\t} else if (i == 2) {\n\t\t\tmul(A, A, false, T, row, row, row); // T= A*A;\n\t\t} else {\n\t\t\tmul(A, T, false, T2, row, row, row); // T2 = A*T\n\t\t\tcopy(T2, T, row, row); // T2 -> T\n\t\t}", "parent": 61, "children": [74], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 32, "column": 3}}, {"id": 74, "type": "if_statement", "text": "if (i == 1) {\n\t\t\tcopy(A, T, row, row); // A - > T\n\t\t} else if (i == 2) {\n\t\t\tmul(A, A, false, T, row, row, row); // T= A*A;\n\t\t} else {\n\t\t\tmul(A, T, false, T2, row, row, row); // T2 = A*T\n\t\t\tcopy(T2, T, row, row); // T2 -> T\n\t\t}", "parent": 73, "children": [75, 87], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 32, "column": 3}}, {"id": 75, "type": "parenthesized_expression", "text": "(i == 1)", "parent": 74, "children": [76], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 20}}, {"id": 76, "type": "binary_expression", "text": "i == 1", "parent": 75, "children": [77, 78, 79], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 19}}, {"id": 77, "type": "identifier", "text": "i", "parent": 76, "children": [], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 14}}, {"id": 78, "type": "==", "text": "==", "parent": 76, "children": [], "start_point": {"row": 25, "column": 15}, "end_point": {"row": 25, "column": 17}}, {"id": 79, "type": "number_literal", "text": "1", "parent": 76, "children": [], "start_point": {"row": 25, "column": 18}, "end_point": {"row": 25, "column": 19}}, {"id": 80, "type": "call_expression", "text": "copy(A, T, row, row)", "parent": 74, "children": [81, 82], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 26, "column": 23}}, {"id": 81, "type": "identifier", "text": "copy", "parent": 80, "children": [], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 26, "column": 7}}, {"id": 82, "type": "argument_list", "text": "(A, T, row, row)", "parent": 80, "children": [83, 84, 85, 86], "start_point": {"row": 26, "column": 7}, "end_point": {"row": 26, "column": 23}}, {"id": 83, "type": "identifier", "text": "A", "parent": 82, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 9}}, {"id": 84, "type": "identifier", "text": "T", "parent": 82, "children": [], "start_point": {"row": 26, "column": 11}, "end_point": {"row": 26, "column": 12}}, {"id": 85, "type": "identifier", "text": "row", "parent": 82, "children": [], "start_point": {"row": 26, "column": 14}, "end_point": {"row": 26, "column": 17}}, {"id": 86, "type": "identifier", "text": "row", "parent": 82, "children": [], "start_point": {"row": 26, "column": 19}, "end_point": {"row": 26, "column": 22}}, {"id": 87, "type": "else_clause", "text": "else if (i == 2) {\n\t\t\tmul(A, A, false, T, row, row, row); // T= A*A;\n\t\t} else {\n\t\t\tmul(A, T, false, T2, row, row, row); // T2 = A*T\n\t\t\tcopy(T2, T, row, row); // T2 -> T\n\t\t}", "parent": 74, "children": [88], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 32, "column": 3}}, {"id": 88, "type": "if_statement", "text": "if (i == 2) {\n\t\t\tmul(A, A, false, T, row, row, row); // T= A*A;\n\t\t} else {\n\t\t\tmul(A, T, false, T2, row, row, row); // T2 = A*T\n\t\t\tcopy(T2, T, row, row); // T2 -> T\n\t\t}", "parent": 87, "children": [89, 104], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 32, "column": 3}}, {"id": 89, "type": "parenthesized_expression", "text": "(i == 2)", "parent": 88, "children": [90], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 27, "column": 20}}, {"id": 90, "type": "binary_expression", "text": "i == 2", "parent": 89, "children": [91, 92, 93], "start_point": {"row": 27, "column": 13}, "end_point": {"row": 27, "column": 19}}, {"id": 91, "type": "identifier", "text": "i", "parent": 90, "children": [], "start_point": {"row": 27, "column": 13}, "end_point": {"row": 27, "column": 14}}, {"id": 92, "type": "==", "text": "==", "parent": 90, "children": [], "start_point": {"row": 27, "column": 15}, "end_point": {"row": 27, "column": 17}}, {"id": 93, "type": "number_literal", "text": "2", "parent": 90, "children": [], "start_point": {"row": 27, "column": 18}, "end_point": {"row": 27, "column": 19}}, {"id": 94, "type": "call_expression", "text": "mul(A, A, false, T, row, row, row)", "parent": 88, "children": [95, 96], "start_point": {"row": 28, "column": 3}, "end_point": {"row": 28, "column": 37}}, {"id": 95, "type": "identifier", "text": "mul", "parent": 94, "children": [], "start_point": {"row": 28, "column": 3}, "end_point": {"row": 28, "column": 6}}, {"id": 96, "type": "argument_list", "text": "(A, A, false, T, row, row, row)", "parent": 94, "children": [97, 98, 99, 100, 101, 102, 103], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 37}}, {"id": 97, "type": "identifier", "text": "A", "parent": 96, "children": [], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 8}}, {"id": 98, "type": "identifier", "text": "A", "parent": 96, "children": [], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 11}}, {"id": 99, "type": "false", "text": "false", "parent": 96, "children": [], "start_point": {"row": 28, "column": 13}, "end_point": {"row": 28, "column": 18}}, {"id": 100, "type": "identifier", "text": "T", "parent": 96, "children": [], "start_point": {"row": 28, "column": 20}, "end_point": {"row": 28, "column": 21}}, {"id": 101, "type": "identifier", "text": "row", "parent": 96, "children": [], "start_point": {"row": 28, "column": 23}, "end_point": {"row": 28, "column": 26}}, {"id": 102, "type": "identifier", "text": "row", "parent": 96, "children": [], "start_point": {"row": 28, "column": 28}, "end_point": {"row": 28, "column": 31}}, {"id": 103, "type": "identifier", "text": "row", "parent": 96, "children": [], "start_point": {"row": 28, "column": 33}, "end_point": {"row": 28, "column": 36}}, {"id": 104, "type": "else_clause", "text": "else {\n\t\t\tmul(A, T, false, T2, row, row, row); // T2 = A*T\n\t\t\tcopy(T2, T, row, row); // T2 -> T\n\t\t}", "parent": 88, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 32, "column": 3}}, {"id": 105, "type": "call_expression", "text": "mul(A, T, false, T2, row, row, row)", "parent": 104, "children": [106, 107], "start_point": {"row": 30, "column": 3}, "end_point": {"row": 30, "column": 38}}, {"id": 106, "type": "identifier", "text": "mul", "parent": 105, "children": [], "start_point": {"row": 30, "column": 3}, "end_point": {"row": 30, "column": 6}}, {"id": 107, "type": "argument_list", "text": "(A, T, false, T2, row, row, row)", "parent": 105, "children": [108, 109, 110, 111, 112, 113, 114], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 38}}, {"id": 108, "type": "identifier", "text": "A", "parent": 107, "children": [], "start_point": {"row": 30, "column": 7}, "end_point": {"row": 30, "column": 8}}, {"id": 109, "type": "identifier", "text": "T", "parent": 107, "children": [], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 11}}, {"id": 110, "type": "false", "text": "false", "parent": 107, "children": [], "start_point": {"row": 30, "column": 13}, "end_point": {"row": 30, "column": 18}}, {"id": 111, "type": "identifier", "text": "T2", "parent": 107, "children": [], "start_point": {"row": 30, "column": 20}, "end_point": {"row": 30, "column": 22}}, {"id": 112, "type": "identifier", "text": "row", "parent": 107, "children": [], "start_point": {"row": 30, "column": 24}, "end_point": {"row": 30, "column": 27}}, {"id": 113, "type": "identifier", "text": "row", "parent": 107, "children": [], "start_point": {"row": 30, "column": 29}, "end_point": {"row": 30, "column": 32}}, {"id": 114, "type": "identifier", "text": "row", "parent": 107, "children": [], "start_point": {"row": 30, "column": 34}, "end_point": {"row": 30, "column": 37}}, {"id": 115, "type": "call_expression", "text": "copy(T2, T, row, row)", "parent": 104, "children": [116, 117], "start_point": {"row": 31, "column": 3}, "end_point": {"row": 31, "column": 24}}, {"id": 116, "type": "identifier", "text": "copy", "parent": 115, "children": [], "start_point": {"row": 31, "column": 3}, "end_point": {"row": 31, "column": 7}}, {"id": 117, "type": "argument_list", "text": "(T2, T, row, row)", "parent": 115, "children": [118, 119, 120, 121], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 24}}, {"id": 118, "type": "identifier", "text": "T2", "parent": 117, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 10}}, {"id": 119, "type": "identifier", "text": "T", "parent": 117, "children": [], "start_point": {"row": 31, "column": 12}, "end_point": {"row": 31, "column": 13}}, {"id": 120, "type": "identifier", "text": "row", "parent": 117, "children": [], "start_point": {"row": 31, "column": 15}, "end_point": {"row": 31, "column": 18}}, {"id": 121, "type": "identifier", "text": "row", "parent": 117, "children": [], "start_point": {"row": 31, "column": 20}, "end_point": {"row": 31, "column": 23}}, {"id": 122, "type": "call_expression", "text": "copy(T, A, row, row)", "parent": 3, "children": [123, 124], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 21}}, {"id": 123, "type": "identifier", "text": "copy", "parent": 122, "children": [], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 5}}, {"id": 124, "type": "argument_list", "text": "(T, A, row, row)", "parent": 122, "children": [125, 126, 127, 128], "start_point": {"row": 34, "column": 5}, "end_point": {"row": 34, "column": 21}}, {"id": 125, "type": "identifier", "text": "T", "parent": 124, "children": [], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 7}}, {"id": 126, "type": "identifier", "text": "A", "parent": 124, "children": [], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 10}}, {"id": 127, "type": "identifier", "text": "row", "parent": 124, "children": [], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 15}}, {"id": 128, "type": "identifier", "text": "row", "parent": 124, "children": [], "start_point": {"row": 34, "column": 17}, "end_point": {"row": 34, "column": 20}}]}, "node_categories": {"declarations": {"functions": [3, 5], "variables": [8, 13, 16, 19, 27, 48], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [23, 31, 35, 41, 54, 58, 62, 63, 67, 75, 76, 80, 89, 90, 94, 105, 115, 122], "assignments": [], "loops": [47], "conditionals": [6, 12, 15, 18, 22, 24, 26, 30, 32, 34, 36, 38, 39, 40, 42, 44, 45, 46, 51, 55, 57, 59, 61, 64, 68, 70, 71, 72, 74, 77, 81, 83, 84, 85, 86, 88, 91, 95, 97, 98, 100, 101, 102, 103, 106, 108, 109, 111, 112, 113, 114, 116, 118, 119, 120, 121, 123, 125, 126, 127, 128], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 53, 66, 79, 93], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "mpower", "text_snippet": "void mpower(double* A, int row, int n) {\n\tdouble T[row * row];\n\tdouble T2[row * row];\n\tzeros(T, row,"}, {"node_id": 5, "universal_type": "function", "name": "row,", "text_snippet": "mpower(double* A, int row, int n)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"declareFunctions.h\"\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "/*\n * mpower.c\n *\n * Created on: 19 feb. 2019\n * Author: <NAME>\n */\n\n#include \"declareFunctions.h\"\n\n/*\n * This is the almost the same as powe, power on every element, but the difference is that this function\n * does not take power on each element, it does A^n\n * A will be size row x row. It must be square!!!\n * A^n and n will be an integer\n */\n\nvoid mpower(double* A, int row, int n) {\n\tdouble T[row * row];\n\tdouble T2[row * row];\n\tzeros(T, row, row);\n\tzeros(T2, row, row);\n\n\tfor (int i = 0; i <= n; i++) {\n\t\tif (i == 0) {\n\t\t\teye(T, row, row); // Identity matrix will return\n\t\t} else if (i == 1) {\n\t\t\tcopy(A, T, row, row); // A - > T\n\t\t} else if (i == 2) {\n\t\t\tmul(A, A, false, T, row, row, row); // T= A*A;\n\t\t} else {\n\t\t\tmul(A, T, false, T2, row, row, row); // T2 = A*T\n\t\t\tcopy(T2, T, row, row); // T2 -> T\n\t\t}\n\t}\n\tcopy(T, A, row, row); // T -> A and then return\n\n}\n"}
80,221
c
// // HomeViewController.h // ZKTimerServiceDemo // // Created by bestdew on 2019/3/4. // Copyright © 2019 bestdew. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface HomeViewController : UIViewController @end NS_ASSUME_NONNULL_END
21.33
12
(translation_unit) "//\n// HomeViewController.h\n// ZKTimerServiceDemo\n//\n// Created by bestdew on 2019/3/4.\n// Copyright © 2019 bestdew. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface HomeViewController : UIViewController\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment) "//" (comment) "// HomeViewController.h" (comment) "// ZKTimerServiceDemo" (comment) "//" (comment) "// Created by bestdew on 2019/3/4." (comment) "// Copyright © 2019 bestdew. All rights reserved.\n" (comment) "/\n" (preproc_call) "import <UIKit/UIKit.h>\n\n" (preproc_directive) "import " (preproc_arg) "UIKit/UIKit.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) "omeViewController : UIViewController\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (statement_identifier) "omeViewController " (:) " " (declaration) "IViewController\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (type_identifier) "IViewController\n" (ERROR) "end\n" (ERROR) "e" (identifier) "nd\n" (identifier) "S_ASSUME_NONNULL_END\n" (;) ""
27
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 21.33, "nodes": 14, "errors": 0, "source_hash": "760761d5ececeeb51867efa8eda26a1d47197fce8ad74f3fa2f87fba8e80c11b", "categorized_nodes": 9}, "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": "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": "omeViewController : UIViewController\n\n@end\n\nNS_ASSUME_NONNULL_END\n", "parent": null, "children": [8, 9], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 16, "column": 21}}, {"id": 8, "type": "statement_identifier", "text": "omeViewController ", "parent": 7, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 29}}, {"id": 9, "type": "declaration", "text": "IViewController\n\n@end\n\nNS_ASSUME_NONNULL_END\n", "parent": 7, "children": [10, 13], "start_point": {"row": 12, "column": 32}, "end_point": {"row": 16, "column": 21}}, {"id": 10, "type": "type_identifier", "text": "IViewController\n", "parent": 9, "children": [], "start_point": {"row": 12, "column": 32}, "end_point": {"row": 12, "column": 48}}, {"id": 11, "type": "ERROR", "text": "e", "parent": 9, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 12, "type": "identifier", "text": "nd\n", "parent": 9, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 4}}, {"id": 13, "type": "identifier", "text": "S_ASSUME_NONNULL_END\n", "parent": 9, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 21}}]}, "node_categories": {"declarations": {"functions": [], "variables": [2, 9], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [3, 6, 8, 10, 12, 13], "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// HomeViewController.h\n// ZKTimerServiceDemo\n//\n// Created by bestdew on 2019/3/4.\n// Copyright \u00a9 2019 bestdew. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface HomeViewController : UIViewController\n\n@end\n\nNS_ASSUME_NONNULL_END\n"}
80,222
c
/* * Generated by class-dump 3.3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by <NAME>. */ #import "NSObject.h" #import "DVTInvalidation-Protocol.h" @class DVTStackBacktrace; @interface _IDESourceControlInfoConflictDetectorCancellationToken : NSObject <DVTInvalidation> { DVTStackBacktrace *_invalidationBacktrace; BOOL _isInvalidated; } - (void)invalidate; @property(readonly) DVTStackBacktrace *invalidationBacktrace; // @synthesize invalidationBacktrace=_invalidationBacktrace; @property(readonly, getter=isValid) BOOL valid; @end
33.47
17
(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 "NSObject.h"\n\n#import "DVTInvalidation-Protocol.h"\n\n@class DVTStackBacktrace;\n\n@interface _IDESourceControlInfoConflictDetectorCancellationToken : NSObject <DVTInvalidation>\n{\n DVTStackBacktrace *_invalidationBacktrace;\n BOOL _isInvalidated;\n}\n\n- (void)invalidate;\n@property(readonly) DVTStackBacktrace *invalidationBacktrace; // @synthesize invalidationBacktrace=_invalidationBacktrace;\n@property(readonly, getter=isValid) BOOL valid;\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 "NSObject.h"\n" (preproc_directive) "#import" (preproc_arg) ""NSObject.h"" (preproc_call) "#import "DVTInvalidation-Protocol.h"\n" (preproc_directive) "#import" (preproc_arg) ""DVTInvalidation-Protocol.h"" (ERROR) "@" (ERROR) "@" (declaration) "class DVTStackBacktrace;" (type_identifier) "class" (identifier) "DVTStackBacktrace" (;) ";" (ERROR) "@" (ERROR) "@" (function_definition) "interface _IDESourceControlInfoConflictDetectorCancellationToken : NSObject <DVTInvalidation>\n{\n DVTStackBacktrace *_invalidationBacktrace;\n BOOL _isInvalidated;\n}" (type_identifier) "interface" (identifier) "_IDESourceControlInfoConflictDetectorCancellationToken" (ERROR) ": NSObject <DVTInvalidation>" (:) ":" (identifier) "NSObject" (<) "<" (identifier) "DVTInvalidation" (>) ">" (compound_statement) "{\n DVTStackBacktrace *_invalidationBacktrace;\n BOOL _isInvalidated;\n}" ({) "{" (declaration) "DVTStackBacktrace *_invalidationBacktrace;" (type_identifier) "DVTStackBacktrace" (pointer_declarator) "*_invalidationBacktrace" (*) "*" (identifier) "_invalidationBacktrace" (;) ";" (declaration) "BOOL _isInvalidated;" (type_identifier) "BOOL" (identifier) "_isInvalidated" (;) ";" (}) "}" (expression_statement) "- (void)invalidate;" (unary_expression) "- (void)invalidate" (-) "-" (cast_expression) "(void)invalidate" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "invalidate" (;) ";" (ERROR) "@" (ERROR) "@" (declaration) "property(readonly) DVTStackBacktrace" (macro_type_specifier) "property(readonly)" (identifier) "property" (() "(" (type_descriptor) "readonly" (type_identifier) "readonly" ()) ")" (identifier) "DVTStackBacktrace" (;) "" (expression_statement) "*invalidationBacktrace;" (pointer_expression) "*invalidationBacktrace" (*) "*" (identifier) "invalidationBacktrace" (;) ";" (comment) "// @synthesize invalidationBacktrace=_invalidationBacktrace;" (ERROR) "@property(readonly, getter=isValid) BOOL" (ERROR) "@" (call_expression) "property(readonly, getter=isValid)" (identifier) "property" (argument_list) "(readonly, getter=isValid)" (() "(" (identifier) "readonly" (,) "," (assignment_expression) "getter=isValid" (identifier) "getter" (=) "=" (identifier) "isValid" ()) ")" (identifier) "BOOL" (expression_statement) "valid;" (identifier) "valid" (;) ";" (ERROR) "@" (ERROR) "@" (expression_statement) "end" (identifier) "end" (;) ""
87
11
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 33.47, "nodes": 59, "errors": 0, "source_hash": "dccbefb702919bfda0889dcccdd633fc5d70fe7f3d2eac8737db8808d71fa0d5", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"NSObject.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": "\"NSObject.h\"", "parent": 0, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 20}}, {"id": 3, "type": "preproc_call", "text": "#import \"DVTInvalidation-Protocol.h\"\n", "parent": null, "children": [4, 5], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 4, "type": "preproc_directive", "text": "#import", "parent": 3, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 5, "type": "preproc_arg", "text": "\"DVTInvalidation-Protocol.h\"", "parent": 3, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 36}}, {"id": 6, "type": "ERROR", "text": "@", "parent": null, "children": [7], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 7, "type": "ERROR", "text": "@", "parent": 6, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 8, "type": "declaration", "text": "class DVTStackBacktrace;", "parent": null, "children": [9], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 25}}, {"id": 9, "type": "identifier", "text": "DVTStackBacktrace", "parent": 8, "children": [], "start_point": {"row": 10, "column": 7}, "end_point": {"row": 10, "column": 24}}, {"id": 10, "type": "ERROR", "text": "@", "parent": null, "children": [11], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 11, "type": "ERROR", "text": "@", "parent": 10, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 12, "type": "function_definition", "text": "interface _IDESourceControlInfoConflictDetectorCancellationToken : NSObject <DVTInvalidation>\n{\n DVTStackBacktrace *_invalidationBacktrace;\n BOOL _isInvalidated;\n}", "parent": null, "children": [13, 14, 15], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 16, "column": 1}}, {"id": 13, "type": "type_identifier", "text": "interface", "parent": 12, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 10}}, {"id": 14, "type": "identifier", "text": "_IDESourceControlInfoConflictDetectorCancellationToken", "parent": 12, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 65}}, {"id": 15, "type": "ERROR", "text": ": NSObject <DVTInvalidation>", "parent": 12, "children": [16, 17, 18, 19], "start_point": {"row": 12, "column": 66}, "end_point": {"row": 12, "column": 94}}, {"id": 16, "type": "identifier", "text": "NSObject", "parent": 15, "children": [], "start_point": {"row": 12, "column": 68}, "end_point": {"row": 12, "column": 76}}, {"id": 17, "type": "<", "text": "<", "parent": 15, "children": [], "start_point": {"row": 12, "column": 77}, "end_point": {"row": 12, "column": 78}}, {"id": 18, "type": "identifier", "text": "DVTInvalidation", "parent": 15, "children": [], "start_point": {"row": 12, "column": 78}, "end_point": {"row": 12, "column": 93}}, {"id": 19, "type": ">", "text": ">", "parent": 15, "children": [], "start_point": {"row": 12, "column": 93}, "end_point": {"row": 12, "column": 94}}, {"id": 20, "type": "declaration", "text": "DVTStackBacktrace *_invalidationBacktrace;", "parent": 12, "children": [21, 22], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 46}}, {"id": 21, "type": "type_identifier", "text": "DVTStackBacktrace", "parent": 20, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 21}}, {"id": 22, "type": "pointer_declarator", "text": "*_invalidationBacktrace", "parent": 20, "children": [23, 24], "start_point": {"row": 14, "column": 22}, "end_point": {"row": 14, "column": 45}}, {"id": 23, "type": "*", "text": "*", "parent": 22, "children": [], "start_point": {"row": 14, "column": 22}, "end_point": {"row": 14, "column": 23}}, {"id": 24, "type": "identifier", "text": "_invalidationBacktrace", "parent": 22, "children": [], "start_point": {"row": 14, "column": 23}, "end_point": {"row": 14, "column": 45}}, {"id": 25, "type": "declaration", "text": "BOOL _isInvalidated;", "parent": 12, "children": [26, 27], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 24}}, {"id": 26, "type": "type_identifier", "text": "BOOL", "parent": 25, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 8}}, {"id": 27, "type": "identifier", "text": "_isInvalidated", "parent": 25, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 23}}, {"id": 28, "type": "unary_expression", "text": "- (void)invalidate", "parent": null, "children": [29, 30], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 18}}, {"id": 29, "type": "-", "text": "-", "parent": 28, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 30, "type": "cast_expression", "text": "(void)invalidate", "parent": 28, "children": [31, 33], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 18}}, {"id": 31, "type": "type_descriptor", "text": "void", "parent": 30, "children": [32], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 7}}, {"id": 32, "type": "primitive_type", "text": "void", "parent": 31, "children": [], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 7}}, {"id": 33, "type": "identifier", "text": "invalidate", "parent": 30, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 18}}, {"id": 34, "type": "ERROR", "text": "@", "parent": null, "children": [35], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 35, "type": "ERROR", "text": "@", "parent": 34, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 36, "type": "declaration", "text": "property(readonly) DVTStackBacktrace", "parent": null, "children": [37, 41], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 37}}, {"id": 37, "type": "macro_type_specifier", "text": "property(readonly)", "parent": 36, "children": [38, 39], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 19}}, {"id": 38, "type": "identifier", "text": "property", "parent": 37, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 9}}, {"id": 39, "type": "type_descriptor", "text": "readonly", "parent": 37, "children": [40], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 18}}, {"id": 40, "type": "type_identifier", "text": "readonly", "parent": 39, "children": [], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 18}}, {"id": 41, "type": "identifier", "text": "DVTStackBacktrace", "parent": 36, "children": [], "start_point": {"row": 19, "column": 20}, "end_point": {"row": 19, "column": 37}}, {"id": 42, "type": "pointer_expression", "text": "*invalidationBacktrace", "parent": null, "children": [43, 44], "start_point": {"row": 19, "column": 38}, "end_point": {"row": 19, "column": 60}}, {"id": 43, "type": "*", "text": "*", "parent": 42, "children": [], "start_point": {"row": 19, "column": 38}, "end_point": {"row": 19, "column": 39}}, {"id": 44, "type": "identifier", "text": "invalidationBacktrace", "parent": 42, "children": [], "start_point": {"row": 19, "column": 39}, "end_point": {"row": 19, "column": 60}}, {"id": 45, "type": "ERROR", "text": "@property(readonly, getter=isValid) BOOL", "parent": null, "children": [46, 47, 55], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 40}}, {"id": 46, "type": "ERROR", "text": "@", "parent": 45, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 47, "type": "call_expression", "text": "property(readonly, getter=isValid)", "parent": 45, "children": [48, 49], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 35}}, {"id": 48, "type": "identifier", "text": "property", "parent": 47, "children": [], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 9}}, {"id": 49, "type": "argument_list", "text": "(readonly, getter=isValid)", "parent": 47, "children": [50, 51], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 35}}, {"id": 50, "type": "identifier", "text": "readonly", "parent": 49, "children": [], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 18}}, {"id": 51, "type": "assignment_expression", "text": "getter=isValid", "parent": 49, "children": [52, 53, 54], "start_point": {"row": 20, "column": 20}, "end_point": {"row": 20, "column": 34}}, {"id": 52, "type": "identifier", "text": "getter", "parent": 51, "children": [], "start_point": {"row": 20, "column": 20}, "end_point": {"row": 20, "column": 26}}, {"id": 53, "type": "=", "text": "=", "parent": 51, "children": [], "start_point": {"row": 20, "column": 26}, "end_point": {"row": 20, "column": 27}}, {"id": 54, "type": "identifier", "text": "isValid", "parent": 51, "children": [], "start_point": {"row": 20, "column": 27}, "end_point": {"row": 20, "column": 34}}, {"id": 55, "type": "identifier", "text": "BOOL", "parent": 45, "children": [], "start_point": {"row": 20, "column": 36}, "end_point": {"row": 20, "column": 40}}, {"id": 56, "type": "identifier", "text": "valid", "parent": null, "children": [], "start_point": {"row": 20, "column": 41}, "end_point": {"row": 20, "column": 46}}, {"id": 57, "type": "ERROR", "text": "@", "parent": null, "children": [58], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 1}}, {"id": 58, "type": "ERROR", "text": "@", "parent": 57, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 1}}]}, "node_categories": {"declarations": {"functions": [12], "variables": [8, 20, 25, 36], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [28, 30, 42, 47], "assignments": [51], "loops": [], "conditionals": [9, 13, 14, 16, 18, 21, 24, 26, 27, 33, 37, 38, 40, 41, 44, 48, 50, 52, 54, 55, 56], "returns": [], "exceptions": []}, "expressions": {"calls": [0, 3], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 12, "universal_type": "function", "name": "_IDESourceControlInfoConflictDetectorCancellationToken", "text_snippet": "interface _IDESourceControlInfoConflictDetectorCancellationToken : NSObject <DVTInvalidation>\n{\n "}], "class_declarations": [], "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 \"NSObject.h\"\n\n#import \"DVTInvalidation-Protocol.h\"\n\n@class DVTStackBacktrace;\n\n@interface _IDESourceControlInfoConflictDetectorCancellationToken : NSObject <DVTInvalidation>\n{\n DVTStackBacktrace *_invalidationBacktrace;\n BOOL _isInvalidated;\n}\n\n- (void)invalidate;\n@property(readonly) DVTStackBacktrace *invalidationBacktrace; // @synthesize invalidationBacktrace=_invalidationBacktrace;\n@property(readonly, getter=isValid) BOOL valid;\n\n@end\n\n"}
80,223
c
#ifndef __LIST_H_ #define __LIST_H_ #include <pthread.h> typedef struct list_elem { struct list_elem *prev; struct list_elem *next; void *info; } list_elem; typedef struct thread_info_list { list_elem *head; list_elem *tail; pthread_mutex_t lock; } thread_info_list; /* Compute the size of a list (O(n) time). */ int list_size(thread_info_list *list); /* Insert an element at the head of a list.*/ int list_insert_head(thread_info_list *list, list_elem *new); /* Insert an element at the tail of a list.*/ int list_insert_tail(thread_info_list *list, list_elem *new); /* Removes an element from a list (assuming it's in the list). */ int list_remove(thread_info_list *list, list_elem *new); void print_list(thread_info_list *list); #endif /* __LIST_H_ */
29.42
26
(translation_unit) "#ifndef __LIST_H_ \n#define __LIST_H_ \n \n#include <pthread.h> \n \ntypedef struct list_elem { \n struct list_elem *prev; \n struct list_elem *next; \n void *info; \n} list_elem; \n \ntypedef struct thread_info_list { \n list_elem *head; \n list_elem *tail; \n pthread_mutex_t lock; \n} thread_info_list; \n/* Compute the size of a list (O(n) time). */ \nint list_size(thread_info_list *list); \n/* Insert an element at the head of a list.*/ \nint list_insert_head(thread_info_list *list, list_elem *new); \n/* Insert an element at the tail of a list.*/ \nint list_insert_tail(thread_info_list *list, list_elem *new); \n/* Removes an element from a list (assuming it's in the list). */ \nint list_remove(thread_info_list *list, list_elem *new); \nvoid print_list(thread_info_list *list); \n#endif /* __LIST_H_ */ \n \n" (preproc_ifdef) "#ifndef __LIST_H_ \n#define __LIST_H_ \n \n#include <pthread.h> \n \ntypedef struct list_elem { \n struct list_elem *prev; \n struct list_elem *next; \n void *info; \n} list_elem; \n \ntypedef struct thread_info_list { \n list_elem *head; \n list_elem *tail; \n pthread_mutex_t lock; \n} thread_info_list; \n/* Compute the size of a list (O(n) time). */ \nint list_size(thread_info_list *list); \n/* Insert an element at the head of a list.*/ \nint list_insert_head(thread_info_list *list, list_elem *new); \n/* Insert an element at the tail of a list.*/ \nint list_insert_tail(thread_info_list *list, list_elem *new); \n/* Removes an element from a list (assuming it's in the list). */ \nint list_remove(thread_info_list *list, list_elem *new); \nvoid print_list(thread_info_list *list); \n#endif" (#ifndef) "#ifndef" (identifier) "__LIST_H_" (preproc_def) "#define __LIST_H_ \n" (#define) "#define" (identifier) "__LIST_H_" (preproc_include) "#include <pthread.h> \n" (#include) "#include" (system_lib_string) "<pthread.h>" (type_definition) "typedef struct list_elem { \n struct list_elem *prev; \n struct list_elem *next; \n void *info; \n} list_elem;" (typedef) "typedef" (struct_specifier) "struct list_elem { \n struct list_elem *prev; \n struct list_elem *next; \n void *info; \n}" (struct) "struct" (type_identifier) "list_elem" (field_declaration_list) "{ \n struct list_elem *prev; \n struct list_elem *next; \n void *info; \n}" ({) "{" (field_declaration) "struct list_elem *prev;" (struct_specifier) "struct list_elem" (struct) "struct" (type_identifier) "list_elem" (pointer_declarator) "*prev" (*) "*" (field_identifier) "prev" (;) ";" (field_declaration) "struct list_elem *next;" (struct_specifier) "struct list_elem" (struct) "struct" (type_identifier) "list_elem" (pointer_declarator) "*next" (*) "*" (field_identifier) "next" (;) ";" (field_declaration) "void *info;" (primitive_type) "void" (pointer_declarator) "*info" (*) "*" (field_identifier) "info" (;) ";" (}) "}" (type_identifier) "list_elem" (;) ";" (type_definition) "typedef struct thread_info_list { \n list_elem *head; \n list_elem *tail; \n pthread_mutex_t lock; \n} thread_info_list;" (typedef) "typedef" (struct_specifier) "struct thread_info_list { \n list_elem *head; \n list_elem *tail; \n pthread_mutex_t lock; \n}" (struct) "struct" (type_identifier) "thread_info_list" (field_declaration_list) "{ \n list_elem *head; \n list_elem *tail; \n pthread_mutex_t lock; \n}" ({) "{" (field_declaration) "list_elem *head;" (type_identifier) "list_elem" (pointer_declarator) "*head" (*) "*" (field_identifier) "head" (;) ";" (field_declaration) "list_elem *tail;" (type_identifier) "list_elem" (pointer_declarator) "*tail" (*) "*" (field_identifier) "tail" (;) ";" (field_declaration) "pthread_mutex_t lock;" (type_identifier) "pthread_mutex_t" (field_identifier) "lock" (;) ";" (}) "}" (type_identifier) "thread_info_list" (;) ";" (comment) "/* Compute the size of a list (O(n) time). */" (declaration) "int list_size(thread_info_list *list);" (primitive_type) "int" (function_declarator) "list_size(thread_info_list *list)" (identifier) "list_size" (parameter_list) "(thread_info_list *list)" (() "(" (parameter_declaration) "thread_info_list *list" (type_identifier) "thread_info_list" (pointer_declarator) "*list" (*) "*" (identifier) "list" ()) ")" (;) ";" (comment) "/* Insert an element at the head of a list.*/" (declaration) "int list_insert_head(thread_info_list *list, list_elem *new);" (primitive_type) "int" (function_declarator) "list_insert_head(thread_info_list *list, list_elem *new)" (identifier) "list_insert_head" (parameter_list) "(thread_info_list *list, list_elem *new)" (() "(" (parameter_declaration) "thread_info_list *list" (type_identifier) "thread_info_list" (pointer_declarator) "*list" (*) "*" (identifier) "list" (,) "," (parameter_declaration) "list_elem *new" (type_identifier) "list_elem" (pointer_declarator) "*new" (*) "*" (identifier) "new" ()) ")" (;) ";" (comment) "/* Insert an element at the tail of a list.*/" (declaration) "int list_insert_tail(thread_info_list *list, list_elem *new);" (primitive_type) "int" (function_declarator) "list_insert_tail(thread_info_list *list, list_elem *new)" (identifier) "list_insert_tail" (parameter_list) "(thread_info_list *list, list_elem *new)" (() "(" (parameter_declaration) "thread_info_list *list" (type_identifier) "thread_info_list" (pointer_declarator) "*list" (*) "*" (identifier) "list" (,) "," (parameter_declaration) "list_elem *new" (type_identifier) "list_elem" (pointer_declarator) "*new" (*) "*" (identifier) "new" ()) ")" (;) ";" (comment) "/* Removes an element from a list (assuming it's in the list). */" (declaration) "int list_remove(thread_info_list *list, list_elem *new);" (primitive_type) "int" (function_declarator) "list_remove(thread_info_list *list, list_elem *new)" (identifier) "list_remove" (parameter_list) "(thread_info_list *list, list_elem *new)" (() "(" (parameter_declaration) "thread_info_list *list" (type_identifier) "thread_info_list" (pointer_declarator) "*list" (*) "*" (identifier) "list" (,) "," (parameter_declaration) "list_elem *new" (type_identifier) "list_elem" (pointer_declarator) "*new" (*) "*" (identifier) "new" ()) ")" (;) ";" (declaration) "void print_list(thread_info_list *list);" (primitive_type) "void" (function_declarator) "print_list(thread_info_list *list)" (identifier) "print_list" (parameter_list) "(thread_info_list *list)" (() "(" (parameter_declaration) "thread_info_list *list" (type_identifier) "thread_info_list" (pointer_declarator) "*list" (*) "*" (identifier) "list" ()) ")" (;) ";" (#endif) "#endif" (comment) "/* __LIST_H_ */"
157
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 29.42, "nodes": 116, "errors": 0, "source_hash": "cea641e9c427cdb419f010c53552fd291423c1546bae0b00798fb0581b396a32", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __LIST_H_\r\n#define __LIST_H_\r\n\r\n#include <pthread.h>\r\n\r\ntypedef struct list_elem {\r\n\tstruct list_elem\t*prev;\r\n\tstruct list_elem\t*next;\r\n\tvoid\t\t\t*info;\r\n} list_elem;\r\n\r\ntypedef struct thread_info_list {\r\n\tlist_elem\t*head;\r\n\tlist_elem\t*tail;\r\n\tpthread_mutex_t\tlock;\r\n} thread_info_list;\r\n/* Compute the size of a list (O(n) time). */\r\nint list_size(thread_info_list *list);\r\n/* Insert an element at the head of a list.*/\r\nint list_insert_head(thread_info_list *list, list_elem *new);\r\n/* Insert an element at the tail of a list.*/\r\nint list_insert_tail(thread_info_list *list, list_elem *new);\r\n/* Removes an element from a list (assuming it's in the list). */\r\nint list_remove(thread_info_list *list, list_elem *new);\r\nvoid print_list(thread_info_list *list);\r\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 34, 53, 63, 77, 91, 105, 115], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 25, "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": "__LIST_H_", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 17}}, {"id": 3, "type": "preproc_def", "text": "#define __LIST_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": "__LIST_H_", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 17}}, {"id": 6, "type": "preproc_include", "text": "#include <pthread.h>\r\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": "<pthread.h>", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 20}}, {"id": 9, "type": "type_definition", "text": "typedef struct list_elem {\r\n\tstruct list_elem\t*prev;\r\n\tstruct list_elem\t*next;\r\n\tvoid\t\t\t*info;\r\n} list_elem;", "parent": 0, "children": [10, 11, 33], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 9, "column": 12}}, {"id": 10, "type": "typedef", "text": "typedef", "parent": 9, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 11, "type": "struct_specifier", "text": "struct list_elem {\r\n\tstruct list_elem\t*prev;\r\n\tstruct list_elem\t*next;\r\n\tvoid\t\t\t*info;\r\n}", "parent": 9, "children": [12, 13], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 9, "column": 1}}, {"id": 12, "type": "struct", "text": "struct", "parent": 11, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 14}}, {"id": 13, "type": "type_identifier", "text": "list_elem", "parent": 11, "children": [], "start_point": {"row": 5, "column": 15}, "end_point": {"row": 5, "column": 24}}, {"id": 14, "type": "field_declaration", "text": "struct list_elem\t*prev;", "parent": 11, "children": [15, 18], "start_point": {"row": 6, "column": 1}, "end_point": {"row": 6, "column": 24}}, {"id": 15, "type": "struct_specifier", "text": "struct list_elem", "parent": 14, "children": [16, 17], "start_point": {"row": 6, "column": 1}, "end_point": {"row": 6, "column": 17}}, {"id": 16, "type": "struct", "text": "struct", "parent": 15, "children": [], "start_point": {"row": 6, "column": 1}, "end_point": {"row": 6, "column": 7}}, {"id": 17, "type": "type_identifier", "text": "list_elem", "parent": 15, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 17}}, {"id": 18, "type": "pointer_declarator", "text": "*prev", "parent": 14, "children": [19, 20], "start_point": {"row": 6, "column": 18}, "end_point": {"row": 6, "column": 23}}, {"id": 19, "type": "*", "text": "*", "parent": 18, "children": [], "start_point": {"row": 6, "column": 18}, "end_point": {"row": 6, "column": 19}}, {"id": 20, "type": "field_identifier", "text": "prev", "parent": 18, "children": [], "start_point": {"row": 6, "column": 19}, "end_point": {"row": 6, "column": 23}}, {"id": 21, "type": "field_declaration", "text": "struct list_elem\t*next;", "parent": 11, "children": [22, 25], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 24}}, {"id": 22, "type": "struct_specifier", "text": "struct list_elem", "parent": 21, "children": [23, 24], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 17}}, {"id": 23, "type": "struct", "text": "struct", "parent": 22, "children": [], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 7}}, {"id": 24, "type": "type_identifier", "text": "list_elem", "parent": 22, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 17}}, {"id": 25, "type": "pointer_declarator", "text": "*next", "parent": 21, "children": [26, 27], "start_point": {"row": 7, "column": 18}, "end_point": {"row": 7, "column": 23}}, {"id": 26, "type": "*", "text": "*", "parent": 25, "children": [], "start_point": {"row": 7, "column": 18}, "end_point": {"row": 7, "column": 19}}, {"id": 27, "type": "field_identifier", "text": "next", "parent": 25, "children": [], "start_point": {"row": 7, "column": 19}, "end_point": {"row": 7, "column": 23}}, {"id": 28, "type": "field_declaration", "text": "void\t\t\t*info;", "parent": 11, "children": [29, 30], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 14}}, {"id": 29, "type": "primitive_type", "text": "void", "parent": 28, "children": [], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 5}}, {"id": 30, "type": "pointer_declarator", "text": "*info", "parent": 28, "children": [31, 32], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 13}}, {"id": 31, "type": "*", "text": "*", "parent": 30, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 9}}, {"id": 32, "type": "field_identifier", "text": "info", "parent": 30, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 13}}, {"id": 33, "type": "type_identifier", "text": "list_elem", "parent": 9, "children": [], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 9, "column": 11}}, {"id": 34, "type": "type_definition", "text": "typedef struct thread_info_list {\r\n\tlist_elem\t*head;\r\n\tlist_elem\t*tail;\r\n\tpthread_mutex_t\tlock;\r\n} thread_info_list;", "parent": 0, "children": [35, 36, 52], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 15, "column": 19}}, {"id": 35, "type": "typedef", "text": "typedef", "parent": 34, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 7}}, {"id": 36, "type": "struct_specifier", "text": "struct thread_info_list {\r\n\tlist_elem\t*head;\r\n\tlist_elem\t*tail;\r\n\tpthread_mutex_t\tlock;\r\n}", "parent": 34, "children": [37, 38], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 15, "column": 1}}, {"id": 37, "type": "struct", "text": "struct", "parent": 36, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 14}}, {"id": 38, "type": "type_identifier", "text": "thread_info_list", "parent": 36, "children": [], "start_point": {"row": 11, "column": 15}, "end_point": {"row": 11, "column": 31}}, {"id": 39, "type": "field_declaration", "text": "list_elem\t*head;", "parent": 36, "children": [40, 41], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 17}}, {"id": 40, "type": "type_identifier", "text": "list_elem", "parent": 39, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 10}}, {"id": 41, "type": "pointer_declarator", "text": "*head", "parent": 39, "children": [42, 43], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 16}}, {"id": 42, "type": "*", "text": "*", "parent": 41, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 12}}, {"id": 43, "type": "field_identifier", "text": "head", "parent": 41, "children": [], "start_point": {"row": 12, "column": 12}, "end_point": {"row": 12, "column": 16}}, {"id": 44, "type": "field_declaration", "text": "list_elem\t*tail;", "parent": 36, "children": [45, 46], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 17}}, {"id": 45, "type": "type_identifier", "text": "list_elem", "parent": 44, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 10}}, {"id": 46, "type": "pointer_declarator", "text": "*tail", "parent": 44, "children": [47, 48], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 16}}, {"id": 47, "type": "*", "text": "*", "parent": 46, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 12}}, {"id": 48, "type": "field_identifier", "text": "tail", "parent": 46, "children": [], "start_point": {"row": 13, "column": 12}, "end_point": {"row": 13, "column": 16}}, {"id": 49, "type": "field_declaration", "text": "pthread_mutex_t\tlock;", "parent": 36, "children": [50, 51], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 22}}, {"id": 50, "type": "type_identifier", "text": "pthread_mutex_t", "parent": 49, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 16}}, {"id": 51, "type": "field_identifier", "text": "lock", "parent": 49, "children": [], "start_point": {"row": 14, "column": 17}, "end_point": {"row": 14, "column": 21}}, {"id": 52, "type": "type_identifier", "text": "thread_info_list", "parent": 34, "children": [], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 18}}, {"id": 53, "type": "declaration", "text": "int list_size(thread_info_list *list);", "parent": 0, "children": [54, 55], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 38}}, {"id": 54, "type": "primitive_type", "text": "int", "parent": 53, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 3}}, {"id": 55, "type": "function_declarator", "text": "list_size(thread_info_list *list)", "parent": 53, "children": [56, 57], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 37}}, {"id": 56, "type": "identifier", "text": "list_size", "parent": 55, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 13}}, {"id": 57, "type": "parameter_list", "text": "(thread_info_list *list)", "parent": 55, "children": [58], "start_point": {"row": 17, "column": 13}, "end_point": {"row": 17, "column": 37}}, {"id": 58, "type": "parameter_declaration", "text": "thread_info_list *list", "parent": 57, "children": [59, 60], "start_point": {"row": 17, "column": 14}, "end_point": {"row": 17, "column": 36}}, {"id": 59, "type": "type_identifier", "text": "thread_info_list", "parent": 58, "children": [], "start_point": {"row": 17, "column": 14}, "end_point": {"row": 17, "column": 30}}, {"id": 60, "type": "pointer_declarator", "text": "*list", "parent": 58, "children": [61, 62], "start_point": {"row": 17, "column": 31}, "end_point": {"row": 17, "column": 36}}, {"id": 61, "type": "*", "text": "*", "parent": 60, "children": [], "start_point": {"row": 17, "column": 31}, "end_point": {"row": 17, "column": 32}}, {"id": 62, "type": "identifier", "text": "list", "parent": 60, "children": [], "start_point": {"row": 17, "column": 32}, "end_point": {"row": 17, "column": 36}}, {"id": 63, "type": "declaration", "text": "int list_insert_head(thread_info_list *list, list_elem *new);", "parent": 0, "children": [64, 65], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 61}}, {"id": 64, "type": "primitive_type", "text": "int", "parent": 63, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 3}}, {"id": 65, "type": "function_declarator", "text": "list_insert_head(thread_info_list *list, list_elem *new)", "parent": 63, "children": [66, 67], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 60}}, {"id": 66, "type": "identifier", "text": "list_insert_head", "parent": 65, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 20}}, {"id": 67, "type": "parameter_list", "text": "(thread_info_list *list, list_elem *new)", "parent": 65, "children": [68, 73], "start_point": {"row": 19, "column": 20}, "end_point": {"row": 19, "column": 60}}, {"id": 68, "type": "parameter_declaration", "text": "thread_info_list *list", "parent": 67, "children": [69, 70], "start_point": {"row": 19, "column": 21}, "end_point": {"row": 19, "column": 43}}, {"id": 69, "type": "type_identifier", "text": "thread_info_list", "parent": 68, "children": [], "start_point": {"row": 19, "column": 21}, "end_point": {"row": 19, "column": 37}}, {"id": 70, "type": "pointer_declarator", "text": "*list", "parent": 68, "children": [71, 72], "start_point": {"row": 19, "column": 38}, "end_point": {"row": 19, "column": 43}}, {"id": 71, "type": "*", "text": "*", "parent": 70, "children": [], "start_point": {"row": 19, "column": 38}, "end_point": {"row": 19, "column": 39}}, {"id": 72, "type": "identifier", "text": "list", "parent": 70, "children": [], "start_point": {"row": 19, "column": 39}, "end_point": {"row": 19, "column": 43}}, {"id": 73, "type": "parameter_declaration", "text": "list_elem *new", "parent": 67, "children": [74, 75], "start_point": {"row": 19, "column": 45}, "end_point": {"row": 19, "column": 59}}, {"id": 74, "type": "type_identifier", "text": "list_elem", "parent": 73, "children": [], "start_point": {"row": 19, "column": 45}, "end_point": {"row": 19, "column": 54}}, {"id": 75, "type": "pointer_declarator", "text": "*new", "parent": 73, "children": [76], "start_point": {"row": 19, "column": 55}, "end_point": {"row": 19, "column": 59}}, {"id": 76, "type": "*", "text": "*", "parent": 75, "children": [], "start_point": {"row": 19, "column": 55}, "end_point": {"row": 19, "column": 56}}, {"id": 77, "type": "declaration", "text": "int list_insert_tail(thread_info_list *list, list_elem *new);", "parent": 0, "children": [78, 79], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 61}}, {"id": 78, "type": "primitive_type", "text": "int", "parent": 77, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 3}}, {"id": 79, "type": "function_declarator", "text": "list_insert_tail(thread_info_list *list, list_elem *new)", "parent": 77, "children": [80, 81], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 60}}, {"id": 80, "type": "identifier", "text": "list_insert_tail", "parent": 79, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 20}}, {"id": 81, "type": "parameter_list", "text": "(thread_info_list *list, list_elem *new)", "parent": 79, "children": [82, 87], "start_point": {"row": 21, "column": 20}, "end_point": {"row": 21, "column": 60}}, {"id": 82, "type": "parameter_declaration", "text": "thread_info_list *list", "parent": 81, "children": [83, 84], "start_point": {"row": 21, "column": 21}, "end_point": {"row": 21, "column": 43}}, {"id": 83, "type": "type_identifier", "text": "thread_info_list", "parent": 82, "children": [], "start_point": {"row": 21, "column": 21}, "end_point": {"row": 21, "column": 37}}, {"id": 84, "type": "pointer_declarator", "text": "*list", "parent": 82, "children": [85, 86], "start_point": {"row": 21, "column": 38}, "end_point": {"row": 21, "column": 43}}, {"id": 85, "type": "*", "text": "*", "parent": 84, "children": [], "start_point": {"row": 21, "column": 38}, "end_point": {"row": 21, "column": 39}}, {"id": 86, "type": "identifier", "text": "list", "parent": 84, "children": [], "start_point": {"row": 21, "column": 39}, "end_point": {"row": 21, "column": 43}}, {"id": 87, "type": "parameter_declaration", "text": "list_elem *new", "parent": 81, "children": [88, 89], "start_point": {"row": 21, "column": 45}, "end_point": {"row": 21, "column": 59}}, {"id": 88, "type": "type_identifier", "text": "list_elem", "parent": 87, "children": [], "start_point": {"row": 21, "column": 45}, "end_point": {"row": 21, "column": 54}}, {"id": 89, "type": "pointer_declarator", "text": "*new", "parent": 87, "children": [90], "start_point": {"row": 21, "column": 55}, "end_point": {"row": 21, "column": 59}}, {"id": 90, "type": "*", "text": "*", "parent": 89, "children": [], "start_point": {"row": 21, "column": 55}, "end_point": {"row": 21, "column": 56}}, {"id": 91, "type": "declaration", "text": "int list_remove(thread_info_list *list, list_elem *new);", "parent": 0, "children": [92, 93], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 56}}, {"id": 92, "type": "primitive_type", "text": "int", "parent": 91, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 3}}, {"id": 93, "type": "function_declarator", "text": "list_remove(thread_info_list *list, list_elem *new)", "parent": 91, "children": [94, 95], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 55}}, {"id": 94, "type": "identifier", "text": "list_remove", "parent": 93, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 15}}, {"id": 95, "type": "parameter_list", "text": "(thread_info_list *list, list_elem *new)", "parent": 93, "children": [96, 101], "start_point": {"row": 23, "column": 15}, "end_point": {"row": 23, "column": 55}}, {"id": 96, "type": "parameter_declaration", "text": "thread_info_list *list", "parent": 95, "children": [97, 98], "start_point": {"row": 23, "column": 16}, "end_point": {"row": 23, "column": 38}}, {"id": 97, "type": "type_identifier", "text": "thread_info_list", "parent": 96, "children": [], "start_point": {"row": 23, "column": 16}, "end_point": {"row": 23, "column": 32}}, {"id": 98, "type": "pointer_declarator", "text": "*list", "parent": 96, "children": [99, 100], "start_point": {"row": 23, "column": 33}, "end_point": {"row": 23, "column": 38}}, {"id": 99, "type": "*", "text": "*", "parent": 98, "children": [], "start_point": {"row": 23, "column": 33}, "end_point": {"row": 23, "column": 34}}, {"id": 100, "type": "identifier", "text": "list", "parent": 98, "children": [], "start_point": {"row": 23, "column": 34}, "end_point": {"row": 23, "column": 38}}, {"id": 101, "type": "parameter_declaration", "text": "list_elem *new", "parent": 95, "children": [102, 103], "start_point": {"row": 23, "column": 40}, "end_point": {"row": 23, "column": 54}}, {"id": 102, "type": "type_identifier", "text": "list_elem", "parent": 101, "children": [], "start_point": {"row": 23, "column": 40}, "end_point": {"row": 23, "column": 49}}, {"id": 103, "type": "pointer_declarator", "text": "*new", "parent": 101, "children": [104], "start_point": {"row": 23, "column": 50}, "end_point": {"row": 23, "column": 54}}, {"id": 104, "type": "*", "text": "*", "parent": 103, "children": [], "start_point": {"row": 23, "column": 50}, "end_point": {"row": 23, "column": 51}}, {"id": 105, "type": "declaration", "text": "void print_list(thread_info_list *list);", "parent": 0, "children": [106, 107], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 40}}, {"id": 106, "type": "primitive_type", "text": "void", "parent": 105, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 4}}, {"id": 107, "type": "function_declarator", "text": "print_list(thread_info_list *list)", "parent": 105, "children": [108, 109], "start_point": {"row": 24, "column": 5}, "end_point": {"row": 24, "column": 39}}, {"id": 108, "type": "identifier", "text": "print_list", "parent": 107, "children": [], "start_point": {"row": 24, "column": 5}, "end_point": {"row": 24, "column": 15}}, {"id": 109, "type": "parameter_list", "text": "(thread_info_list *list)", "parent": 107, "children": [110], "start_point": {"row": 24, "column": 15}, "end_point": {"row": 24, "column": 39}}, {"id": 110, "type": "parameter_declaration", "text": "thread_info_list *list", "parent": 109, "children": [111, 112], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 38}}, {"id": 111, "type": "type_identifier", "text": "thread_info_list", "parent": 110, "children": [], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 32}}, {"id": 112, "type": "pointer_declarator", "text": "*list", "parent": 110, "children": [113, 114], "start_point": {"row": 24, "column": 33}, "end_point": {"row": 24, "column": 38}}, {"id": 113, "type": "*", "text": "*", "parent": 112, "children": [], "start_point": {"row": 24, "column": 33}, "end_point": {"row": 24, "column": 34}}, {"id": 114, "type": "identifier", "text": "list", "parent": 112, "children": [], "start_point": {"row": 24, "column": 34}, "end_point": {"row": 24, "column": 38}}, {"id": 115, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 6}}]}, "node_categories": {"declarations": {"functions": [55, 65, 79, 93, 107], "variables": [9, 14, 21, 28, 34, 39, 44, 49, 53, 58, 63, 68, 73, 77, 82, 87, 91, 96, 101, 105, 110], "classes": [11, 12, 15, 16, 22, 23, 36, 37], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 13, 17, 20, 24, 27, 32, 33, 38, 40, 43, 45, 48, 50, 51, 52, 56, 59, 62, 66, 69, 72, 74, 80, 83, 86, 88, 94, 97, 100, 102, 108, 111, 114, 115], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 55, "universal_type": "function", "name": "unknown", "text_snippet": "list_size(thread_info_list *list)"}, {"node_id": 65, "universal_type": "function", "name": "unknown", "text_snippet": "list_insert_head(thread_info_list *list, list_elem *new)"}, {"node_id": 79, "universal_type": "function", "name": "unknown", "text_snippet": "list_insert_tail(thread_info_list *list, list_elem *new)"}, {"node_id": 93, "universal_type": "function", "name": "unknown", "text_snippet": "list_remove(thread_info_list *list, list_elem *new)"}, {"node_id": 107, "universal_type": "function", "name": "unknown", "text_snippet": "print_list(thread_info_list *list)"}], "class_declarations": [{"node_id": 11, "universal_type": "class", "name": "list_elem", "text_snippet": "struct list_elem {\r\n\tstruct list_elem\t*prev;\r\n\tstruct list_elem\t*next;\r\n\tvoid\t\t\t*info;\r\n}"}, {"node_id": 12, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 15, "universal_type": "class", "name": "list_elem", "text_snippet": "struct list_elem"}, {"node_id": 16, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 22, "universal_type": "class", "name": "list_elem", "text_snippet": "struct list_elem"}, {"node_id": 23, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 36, "universal_type": "class", "name": "thread_info_list", "text_snippet": "struct thread_info_list {\r\n\tlist_elem\t*head;\r\n\tlist_elem\t*tail;\r\n\tpthread_mutex_t\tlock;\r\n}"}, {"node_id": 37, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "#include <pthread.h>\r\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#ifndef __LIST_H_\r\n#define __LIST_H_\r\n\r\n#include <pthread.h>\r\n\r\ntypedef struct list_elem {\r\n\tstruct list_elem\t*prev;\r\n\tstruct list_elem\t*next;\r\n\tvoid\t\t\t*info;\r\n} list_elem;\r\n\r\ntypedef struct thread_info_list {\r\n\tlist_elem\t*head;\r\n\tlist_elem\t*tail;\r\n\tpthread_mutex_t\tlock;\r\n} thread_info_list;\r\n/* Compute the size of a list (O(n) time). */\r\nint list_size(thread_info_list *list);\r\n/* Insert an element at the head of a list.*/\r\nint list_insert_head(thread_info_list *list, list_elem *new);\r\n/* Insert an element at the tail of a list.*/\r\nint list_insert_tail(thread_info_list *list, list_elem *new);\r\n/* Removes an element from a list (assuming it's in the list). */\r\nint list_remove(thread_info_list *list, list_elem *new);\r\nvoid print_list(thread_info_list *list);\r\n#endif /* __LIST_H_ */\r\n\r\n"}
80,224
c
/* * Copyright (c) 2014 Samsung Electronics Co., Ltd 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. */ /** * @file src/storage/BucketDeserializer.h * @author <NAME> <<EMAIL>> * @version 1.0 * @brief Headers for Cynara::BucketDeserializer */ #ifndef SRC_STORAGE_BUCKETDESERIALIZER_H_ #define SRC_STORAGE_BUCKETDESERIALIZER_H_ #include <fstream> #include <memory> #include <string> #include <types/PolicyCollection.h> #include <types/PolicyKey.h> namespace Cynara { class BucketDeserializer { public: BucketDeserializer(std::shared_ptr<std::istream> inStream) : m_inStream(inStream) { } PolicyCollection loadPolicies(void); static PolicyKey parseKey(const std::string &line, std::size_t &beginToken); private: std::shared_ptr<std::istream> m_inStream; }; } /* namespace Cynara */ #endif /* SRC_STORAGE_BUCKETDESERIALIZER_H_ */
34.8
40
(translation_unit) "/*\n * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved\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 * @file src/storage/BucketDeserializer.h\n * @author <NAME> <<EMAIL>>\n * @version 1.0\n * @brief Headers for Cynara::BucketDeserializer\n */\n#ifndef SRC_STORAGE_BUCKETDESERIALIZER_H_\n#define SRC_STORAGE_BUCKETDESERIALIZER_H_\n\n#include <fstream>\n#include <memory>\n#include <string>\n\n#include <types/PolicyCollection.h>\n#include <types/PolicyKey.h>\n\nnamespace Cynara {\n\nclass BucketDeserializer {\n\npublic:\n BucketDeserializer(std::shared_ptr<std::istream> inStream) : m_inStream(inStream) {\n }\n\n PolicyCollection loadPolicies(void);\n static PolicyKey parseKey(const std::string &line, std::size_t &beginToken);\n\nprivate:\n std::shared_ptr<std::istream> m_inStream;\n};\n\n} /* namespace Cynara */\n\n#endif /* SRC_STORAGE_BUCKETDESERIALIZER_H_ */\n" (comment) "/*\n * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved\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 */" (comment) "/**\n * @file src/storage/BucketDeserializer.h\n * @author <NAME> <<EMAIL>>\n * @version 1.0\n * @brief Headers for Cynara::BucketDeserializer\n */" (preproc_ifdef) "#ifndef SRC_STORAGE_BUCKETDESERIALIZER_H_\n#define SRC_STORAGE_BUCKETDESERIALIZER_H_\n\n#include <fstream>\n#include <memory>\n#include <string>\n\n#include <types/PolicyCollection.h>\n#include <types/PolicyKey.h>\n\nnamespace Cynara {\n\nclass BucketDeserializer {\n\npublic:\n BucketDeserializer(std::shared_ptr<std::istream> inStream) : m_inStream(inStream) {\n }\n\n PolicyCollection loadPolicies(void);\n static PolicyKey parseKey(const std::string &line, std::size_t &beginToken);\n\nprivate:\n std::shared_ptr<std::istream> m_inStream;\n};\n\n} /* namespace Cynara */\n\n#endif" (#ifndef) "#ifndef" (identifier) "SRC_STORAGE_BUCKETDESERIALIZER_H_" (preproc_def) "#define SRC_STORAGE_BUCKETDESERIALIZER_H_\n" (#define) "#define" (identifier) "SRC_STORAGE_BUCKETDESERIALIZER_H_" (preproc_include) "#include <fstream>\n" (#include) "#include" (system_lib_string) "<fstream>" (preproc_include) "#include <memory>\n" (#include) "#include" (system_lib_string) "<memory>" (preproc_include) "#include <string>\n" (#include) "#include" (system_lib_string) "<string>" (preproc_include) "#include <types/PolicyCollection.h>\n" (#include) "#include" (system_lib_string) "<types/PolicyCollection.h>" (preproc_include) "#include <types/PolicyKey.h>\n" (#include) "#include" (system_lib_string) "<types/PolicyKey.h>" (function_definition) "namespace Cynara {\n\nclass BucketDeserializer {\n\npublic:\n BucketDeserializer(std::shared_ptr<std::istream> inStream) : m_inStream(inStream) {\n }\n\n PolicyCollection loadPolicies(void);\n static PolicyKey parseKey(const std::string &line, std::size_t &beginToken);\n\nprivate:\n std::shared_ptr<std::istream> m_inStream;\n};\n\n}" (type_identifier) "namespace" (identifier) "Cynara" (compound_statement) "{\n\nclass BucketDeserializer {\n\npublic:\n BucketDeserializer(std::shared_ptr<std::istream> inStream) : m_inStream(inStream) {\n }\n\n PolicyCollection loadPolicies(void);\n static PolicyKey parseKey(const std::string &line, std::size_t &beginToken);\n\nprivate:\n std::shared_ptr<std::istream> m_inStream;\n};\n\n}" ({) "{" (function_definition) "class BucketDeserializer {\n\npublic:\n BucketDeserializer(std::shared_ptr<std::istream> inStream) : m_inStream(inStream) {\n }\n\n PolicyCollection loadPolicies(void);\n static PolicyKey parseKey(const std::string &line, std::size_t &beginToken);\n\nprivate:\n std::shared_ptr<std::istream> m_inStream;\n}" (type_identifier) "class" (identifier) "BucketDeserializer" (compound_statement) "{\n\npublic:\n BucketDeserializer(std::shared_ptr<std::istream> inStream) : m_inStream(inStream) {\n }\n\n PolicyCollection loadPolicies(void);\n static PolicyKey parseKey(const std::string &line, std::size_t &beginToken);\n\nprivate:\n std::shared_ptr<std::istream> m_inStream;\n}" ({) "{" (labeled_statement) "public:\n BucketDeserializer(std::shared_ptr<std::istream> inStream) : m_inStream(inStream) {\n }" (statement_identifier) "public" (:) ":" (labeled_statement) "BucketDeserializer(std::shared_ptr<std::istream> inStream) : m_inStream(inStream) {\n }" (statement_identifier) "BucketDeserializer" (ERROR) "(std::shared_ptr<std::istream> inStream)" (() "(" (type_descriptor) "std" (type_identifier) "std" (:) ":" (:) ":" (binary_expression) "shared_ptr<std" (identifier) "shared_ptr" (<) "<" (identifier) "std" (:) ":" (:) ":" (binary_expression) "istream> inStream" (identifier) "istream" (>) ">" (identifier) "inStream" ()) ")" (:) ":" (ERROR) "m_inStream(inStream)" (macro_type_specifier) "m_inStream(inStream)" (identifier) "m_inStream" (() "(" (type_descriptor) "inStream" (type_identifier) "inStream" ()) ")" (compound_statement) "{\n }" ({) "{" (}) "}" (declaration) "PolicyCollection loadPolicies(void);" (type_identifier) "PolicyCollection" (function_declarator) "loadPolicies(void)" (identifier) "loadPolicies" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "static PolicyKey parseKey(const std::string &line, std::size_t &beginToken);" (storage_class_specifier) "static" (static) "static" (type_identifier) "PolicyKey" (function_declarator) "parseKey(const std::string &line, std::size_t &beginToken)" (identifier) "parseKey" (parameter_list) "(const std::string &line, std::size_t &beginToken)" (() "(" (parameter_declaration) "const std::string &line" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string &" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "line" (,) "," (ERROR) "std::" (type_identifier) "std" (:) ":" (:) ":" (parameter_declaration) "size_t &beginToken" (primitive_type) "size_t" (ERROR) "&" (&) "&" (identifier) "beginToken" ()) ")" (;) ";" (labeled_statement) "private:\n std::shared_ptr<std::istream> m_inStream;" (statement_identifier) "private" (:) ":" (labeled_statement) "std::shared_ptr<std::istream> m_inStream;" (statement_identifier) "std" (ERROR) "::shared_ptr<std:" (:) ":" (:) ":" (binary_expression) "shared_ptr<std" (identifier) "shared_ptr" (<) "<" (identifier) "std" (:) ":" (:) ":" (expression_statement) "istream> m_inStream;" (binary_expression) "istream> m_inStream" (identifier) "istream" (>) ">" (identifier) "m_inStream" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (comment) "/* namespace Cynara */" (#endif) "#endif" (comment) "/* SRC_STORAGE_BUCKETDESERIALIZER_H_ */"
134
6
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 34.8, "nodes": 80, "errors": 0, "source_hash": "6c5ea998a9d391128621db931037c559bd969c276ad5d89de29c6c3d7e93c30e", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef SRC_STORAGE_BUCKETDESERIALIZER_H_\n#define SRC_STORAGE_BUCKETDESERIALIZER_H_\n\n#include <fstream>\n#include <memory>\n#include <string>\n\n#include <types/PolicyCollection.h>\n#include <types/PolicyKey.h>\n\nnamespace Cynara {\n\nclass BucketDeserializer {\n\npublic:\n BucketDeserializer(std::shared_ptr<std::istream> inStream) : m_inStream(inStream) {\n }\n\n PolicyCollection loadPolicies(void);\n static PolicyKey parseKey(const std::string &line, std::size_t &beginToken);\n\nprivate:\n std::shared_ptr<std::istream> m_inStream;\n};\n\n} /* namespace Cynara */\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 79], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 48, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 7}}, {"id": 2, "type": "identifier", "text": "SRC_STORAGE_BUCKETDESERIALIZER_H_", "parent": 0, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 41}}, {"id": 3, "type": "preproc_def", "text": "#define SRC_STORAGE_BUCKETDESERIALIZER_H_\n", "parent": 0, "children": [4, 5], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 7}}, {"id": 5, "type": "identifier", "text": "SRC_STORAGE_BUCKETDESERIALIZER_H_", "parent": 3, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 41}}, {"id": 6, "type": "preproc_include", "text": "#include <fstream>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<fstream>", "parent": 6, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 18}}, {"id": 9, "type": "preproc_include", "text": "#include <memory>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<memory>", "parent": 9, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 17}}, {"id": 12, "type": "preproc_include", "text": "#include <string>\n", "parent": 0, "children": [13, 14], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<string>", "parent": 12, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 17}}, {"id": 15, "type": "preproc_include", "text": "#include <types/PolicyCollection.h>\n", "parent": 0, "children": [16, 17], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<types/PolicyCollection.h>", "parent": 15, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 35}}, {"id": 18, "type": "preproc_include", "text": "#include <types/PolicyKey.h>\n", "parent": 0, "children": [19, 20], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 8}}, {"id": 20, "type": "system_lib_string", "text": "<types/PolicyKey.h>", "parent": 18, "children": [], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 28}}, {"id": 21, "type": "function_definition", "text": "namespace Cynara {\n\nclass BucketDeserializer {\n\npublic:\n BucketDeserializer(std::shared_ptr<std::istream> inStream) : m_inStream(inStream) {\n }\n\n PolicyCollection loadPolicies(void);\n static PolicyKey parseKey(const std::string &line, std::size_t &beginToken);\n\nprivate:\n std::shared_ptr<std::istream> m_inStream;\n};\n\n}", "parent": 0, "children": [22, 23], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 46, "column": 1}}, {"id": 22, "type": "type_identifier", "text": "namespace", "parent": 21, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 9}}, {"id": 23, "type": "identifier", "text": "Cynara", "parent": 21, "children": [], "start_point": {"row": 31, "column": 10}, "end_point": {"row": 31, "column": 16}}, {"id": 24, "type": "function_definition", "text": "class BucketDeserializer {\n\npublic:\n BucketDeserializer(std::shared_ptr<std::istream> inStream) : m_inStream(inStream) {\n }\n\n PolicyCollection loadPolicies(void);\n static PolicyKey parseKey(const std::string &line, std::size_t &beginToken);\n\nprivate:\n std::shared_ptr<std::istream> m_inStream;\n}", "parent": 21, "children": [25], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 44, "column": 1}}, {"id": 25, "type": "identifier", "text": "BucketDeserializer", "parent": 24, "children": [], "start_point": {"row": 33, "column": 6}, "end_point": {"row": 33, "column": 24}}, {"id": 26, "type": "labeled_statement", "text": "public:\n BucketDeserializer(std::shared_ptr<std::istream> inStream) : m_inStream(inStream) {\n }", "parent": 24, "children": [27], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 37, "column": 5}}, {"id": 27, "type": "labeled_statement", "text": "BucketDeserializer(std::shared_ptr<std::istream> inStream) : m_inStream(inStream) {\n }", "parent": 26, "children": [28, 29, 40], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 37, "column": 5}}, {"id": 28, "type": "statement_identifier", "text": "BucketDeserializer", "parent": 27, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 22}}, {"id": 29, "type": "ERROR", "text": "(std::shared_ptr<std::istream> inStream)", "parent": 27, "children": [30, 32, 36], "start_point": {"row": 36, "column": 22}, "end_point": {"row": 36, "column": 62}}, {"id": 30, "type": "type_descriptor", "text": "std", "parent": 29, "children": [31], "start_point": {"row": 36, "column": 23}, "end_point": {"row": 36, "column": 26}}, {"id": 31, "type": "type_identifier", "text": "std", "parent": 30, "children": [], "start_point": {"row": 36, "column": 23}, "end_point": {"row": 36, "column": 26}}, {"id": 32, "type": "binary_expression", "text": "shared_ptr<std", "parent": 29, "children": [33, 34, 35], "start_point": {"row": 36, "column": 28}, "end_point": {"row": 36, "column": 42}}, {"id": 33, "type": "identifier", "text": "shared_ptr", "parent": 32, "children": [], "start_point": {"row": 36, "column": 28}, "end_point": {"row": 36, "column": 38}}, {"id": 34, "type": "<", "text": "<", "parent": 32, "children": [], "start_point": {"row": 36, "column": 38}, "end_point": {"row": 36, "column": 39}}, {"id": 35, "type": "identifier", "text": "std", "parent": 32, "children": [], "start_point": {"row": 36, "column": 39}, "end_point": {"row": 36, "column": 42}}, {"id": 36, "type": "binary_expression", "text": "istream> inStream", "parent": 29, "children": [37, 38, 39], "start_point": {"row": 36, "column": 44}, "end_point": {"row": 36, "column": 61}}, {"id": 37, "type": "identifier", "text": "istream", "parent": 36, "children": [], "start_point": {"row": 36, "column": 44}, "end_point": {"row": 36, "column": 51}}, {"id": 38, "type": ">", "text": ">", "parent": 36, "children": [], "start_point": {"row": 36, "column": 51}, "end_point": {"row": 36, "column": 52}}, {"id": 39, "type": "identifier", "text": "inStream", "parent": 36, "children": [], "start_point": {"row": 36, "column": 53}, "end_point": {"row": 36, "column": 61}}, {"id": 40, "type": "ERROR", "text": "m_inStream(inStream)", "parent": 27, "children": [41], "start_point": {"row": 36, "column": 65}, "end_point": {"row": 36, "column": 85}}, {"id": 41, "type": "macro_type_specifier", "text": "m_inStream(inStream)", "parent": 40, "children": [42, 43], "start_point": {"row": 36, "column": 65}, "end_point": {"row": 36, "column": 85}}, {"id": 42, "type": "identifier", "text": "m_inStream", "parent": 41, "children": [], "start_point": {"row": 36, "column": 65}, "end_point": {"row": 36, "column": 75}}, {"id": 43, "type": "type_descriptor", "text": "inStream", "parent": 41, "children": [44], "start_point": {"row": 36, "column": 76}, "end_point": {"row": 36, "column": 84}}, {"id": 44, "type": "type_identifier", "text": "inStream", "parent": 43, "children": [], "start_point": {"row": 36, "column": 76}, "end_point": {"row": 36, "column": 84}}, {"id": 45, "type": "declaration", "text": "PolicyCollection loadPolicies(void);", "parent": 24, "children": [46, 47], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 40}}, {"id": 46, "type": "type_identifier", "text": "PolicyCollection", "parent": 45, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 20}}, {"id": 47, "type": "function_declarator", "text": "loadPolicies(void)", "parent": 45, "children": [48, 49], "start_point": {"row": 39, "column": 21}, "end_point": {"row": 39, "column": 39}}, {"id": 48, "type": "identifier", "text": "loadPolicies", "parent": 47, "children": [], "start_point": {"row": 39, "column": 21}, "end_point": {"row": 39, "column": 33}}, {"id": 49, "type": "parameter_list", "text": "(void)", "parent": 47, "children": [50], "start_point": {"row": 39, "column": 33}, "end_point": {"row": 39, "column": 39}}, {"id": 50, "type": "parameter_declaration", "text": "void", "parent": 49, "children": [51], "start_point": {"row": 39, "column": 34}, "end_point": {"row": 39, "column": 38}}, {"id": 51, "type": "primitive_type", "text": "void", "parent": 50, "children": [], "start_point": {"row": 39, "column": 34}, "end_point": {"row": 39, "column": 38}}, {"id": 52, "type": "declaration", "text": "static PolicyKey parseKey(const std::string &line, std::size_t &beginToken);", "parent": 24, "children": [53, 54], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 80}}, {"id": 53, "type": "type_identifier", "text": "PolicyKey", "parent": 52, "children": [], "start_point": {"row": 40, "column": 11}, "end_point": {"row": 40, "column": 20}}, {"id": 54, "type": "function_declarator", "text": "parseKey(const std::string &line, std::size_t &beginToken)", "parent": 52, "children": [55, 56], "start_point": {"row": 40, "column": 21}, "end_point": {"row": 40, "column": 79}}, {"id": 55, "type": "identifier", "text": "parseKey", "parent": 54, "children": [], "start_point": {"row": 40, "column": 21}, "end_point": {"row": 40, "column": 29}}, {"id": 56, "type": "parameter_list", "text": "(const std::string &line, std::size_t &beginToken)", "parent": 54, "children": [57, 62, 64], "start_point": {"row": 40, "column": 29}, "end_point": {"row": 40, "column": 79}}, {"id": 57, "type": "parameter_declaration", "text": "const std::string &line", "parent": 56, "children": [58, 59, 61], "start_point": {"row": 40, "column": 30}, "end_point": {"row": 40, "column": 53}}, {"id": 58, "type": "type_identifier", "text": "std", "parent": 57, "children": [], "start_point": {"row": 40, "column": 36}, "end_point": {"row": 40, "column": 39}}, {"id": 59, "type": "ERROR", "text": "::string &", "parent": 57, "children": [60], "start_point": {"row": 40, "column": 39}, "end_point": {"row": 40, "column": 49}}, {"id": 60, "type": "identifier", "text": "string", "parent": 59, "children": [], "start_point": {"row": 40, "column": 41}, "end_point": {"row": 40, "column": 47}}, {"id": 61, "type": "identifier", "text": "line", "parent": 57, "children": [], "start_point": {"row": 40, "column": 49}, "end_point": {"row": 40, "column": 53}}, {"id": 62, "type": "ERROR", "text": "std::", "parent": 56, "children": [63], "start_point": {"row": 40, "column": 55}, "end_point": {"row": 40, "column": 60}}, {"id": 63, "type": "type_identifier", "text": "std", "parent": 62, "children": [], "start_point": {"row": 40, "column": 55}, "end_point": {"row": 40, "column": 58}}, {"id": 64, "type": "parameter_declaration", "text": "size_t &beginToken", "parent": 56, "children": [65, 66], "start_point": {"row": 40, "column": 60}, "end_point": {"row": 40, "column": 78}}, {"id": 65, "type": "primitive_type", "text": "size_t", "parent": 64, "children": [], "start_point": {"row": 40, "column": 60}, "end_point": {"row": 40, "column": 66}}, {"id": 66, "type": "identifier", "text": "beginToken", "parent": 64, "children": [], "start_point": {"row": 40, "column": 68}, "end_point": {"row": 40, "column": 78}}, {"id": 67, "type": "labeled_statement", "text": "private:\n std::shared_ptr<std::istream> m_inStream;", "parent": 24, "children": [68], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 43, "column": 45}}, {"id": 68, "type": "labeled_statement", "text": "std::shared_ptr<std::istream> m_inStream;", "parent": 67, "children": [69, 70], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 45}}, {"id": 69, "type": "statement_identifier", "text": "std", "parent": 68, "children": [], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 7}}, {"id": 70, "type": "ERROR", "text": "::shared_ptr<std:", "parent": 68, "children": [71], "start_point": {"row": 43, "column": 7}, "end_point": {"row": 43, "column": 24}}, {"id": 71, "type": "binary_expression", "text": "shared_ptr<std", "parent": 70, "children": [72, 73, 74], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 23}}, {"id": 72, "type": "identifier", "text": "shared_ptr", "parent": 71, "children": [], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 19}}, {"id": 73, "type": "<", "text": "<", "parent": 71, "children": [], "start_point": {"row": 43, "column": 19}, "end_point": {"row": 43, "column": 20}}, {"id": 74, "type": "identifier", "text": "std", "parent": 71, "children": [], "start_point": {"row": 43, "column": 20}, "end_point": {"row": 43, "column": 23}}, {"id": 75, "type": "binary_expression", "text": "istream> m_inStream", "parent": 68, "children": [76, 77, 78], "start_point": {"row": 43, "column": 25}, "end_point": {"row": 43, "column": 44}}, {"id": 76, "type": "identifier", "text": "istream", "parent": 75, "children": [], "start_point": {"row": 43, "column": 25}, "end_point": {"row": 43, "column": 32}}, {"id": 77, "type": ">", "text": ">", "parent": 75, "children": [], "start_point": {"row": 43, "column": 32}, "end_point": {"row": 43, "column": 33}}, {"id": 78, "type": "identifier", "text": "m_inStream", "parent": 75, "children": [], "start_point": {"row": 43, "column": 34}, "end_point": {"row": 43, "column": 44}}, {"id": 79, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 6}}]}, "node_categories": {"declarations": {"functions": [21, 24, 47, 54], "variables": [45, 50, 52, 57, 64], "classes": [], "imports": [6, 7, 9, 10, 12, 13, 15, 16, 18, 19], "modules": [], "enums": []}, "statements": {"expressions": [32, 36, 71, 75], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 22, 23, 25, 28, 31, 33, 35, 37, 39, 41, 42, 44, 46, 48, 53, 55, 58, 60, 61, 63, 66, 69, 72, 74, 76, 78, 79], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 20], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 21, "universal_type": "function", "name": "BucketDeserializer", "text_snippet": "namespace Cynara {\n\nclass BucketDeserializer {\n\npublic:\n BucketDeserializer(std::shared_ptr<std::"}, {"node_id": 24, "universal_type": "function", "name": "BucketDeserializer", "text_snippet": "class BucketDeserializer {\n\npublic:\n BucketDeserializer(std::shared_ptr<std::istream> inStream) :"}, {"node_id": 47, "universal_type": "function", "name": "unknown", "text_snippet": "loadPolicies(void)"}, {"node_id": 54, "universal_type": "function", "name": "unknown", "text_snippet": "parseKey(const std::string &line, std::size_t &beginToken)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <fstream>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <memory>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <string>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <types/PolicyCollection.h>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <types/PolicyKey.h>\n"}, {"node_id": 19, "text": "#include"}]}, "original_source_code": "/*\n * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved\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 * @file src/storage/BucketDeserializer.h\n * @author <NAME> <<EMAIL>>\n * @version 1.0\n * @brief Headers for Cynara::BucketDeserializer\n */\n#ifndef SRC_STORAGE_BUCKETDESERIALIZER_H_\n#define SRC_STORAGE_BUCKETDESERIALIZER_H_\n\n#include <fstream>\n#include <memory>\n#include <string>\n\n#include <types/PolicyCollection.h>\n#include <types/PolicyKey.h>\n\nnamespace Cynara {\n\nclass BucketDeserializer {\n\npublic:\n BucketDeserializer(std::shared_ptr<std::istream> inStream) : m_inStream(inStream) {\n }\n\n PolicyCollection loadPolicies(void);\n static PolicyKey parseKey(const std::string &line, std::size_t &beginToken);\n\nprivate:\n std::shared_ptr<std::istream> m_inStream;\n};\n\n} /* namespace Cynara */\n\n#endif /* SRC_STORAGE_BUCKETDESERIALIZER_H_ */\n"}
80,225
c
// // PlayView.h // TestDemo // // Created by Multak on 2018/6/13. // Copyright © 2018年 Multak. All rights reserved. // //#import <UIKit/UIKit.h> #import <GLKit/GLKit.h> typedef NS_ENUM(NSUInteger, PlayViewState) { PlayViewStateSmall, PlayViewStateAnimating, PlayViewStateFullscreen, }; @interface ViewPlayController : GLKViewController - (void)showWithsuperRect:(CGRect)supViewRect; + (instancetype)playView; @end
22.94
18
(translation_unit) "//\n// PlayView.h\n// TestDemo\n//\n// Created by Multak on 2018/6/13.\n// Copyright © 2018年 Multak. All rights reserved.\n//\n\n//#import <UIKit/UIKit.h>\n#import <GLKit/GLKit.h>\n\ntypedef NS_ENUM(NSUInteger, PlayViewState) {\n PlayViewStateSmall,\n PlayViewStateAnimating,\n PlayViewStateFullscreen,\n};\n\n@interface ViewPlayController : GLKViewController\n\n- (void)showWithsuperRect:(CGRect)supViewRect;\n+ (instancetype)playView;\n\n@end\n" (comment) "//" (comment) "// PlayView.h" (comment) "// TestDemo" (comment) "//" (comment) "// Created by Multak on 2018/6/13." (comment) "// Copyright © 2018年 Multak. All rights reserved.\n//" (comment) "\n/" (comment) "import <UIKit/UIKit.h>\n#i" (preproc_call) "port <GLKit/GLKit.h>\n\nty" (preproc_directive) "port <G" (preproc_arg) "Kit/GLKit.h>\n\nt" (type_definition) "edef NS_ENUM(NSUInteger, PlayViewState) {\n PlayViewStateSmall,\n PlayViewStateAnimating,\n PlayViewStateFullscreen,\n};\n\n@interface Vi" (typedef) "edef NS" (macro_type_specifier) "ENUM(NSUInteger, PlayViewState) {\n" (identifier) "ENUM(NS" (() "U" (ERROR) "Integer, Pl" (type_descriptor) "Integer, P" (type_identifier) "Integer, P" (,) "l" (type_descriptor) "yViewState) {" (type_identifier) "yViewState) {" ()) "\n" (ERROR) " " ({) " " (type_identifier) "yViewStateSmall,\n " (,) " " (type_identifier) "yViewStateAnimating,\n " (,) " " (type_identifier) "yViewStateFullscreen,\n}" (,) ";" (ERROR) "\n@int" (}) "\n" (;) "@" (ERROR) "t" (type_identifier) "erface Vi" (;) "" (labeled_statement) "wPlayController : GLKViewController\n\n- (void)showWithsuperRect:(CGRect)supViewRect;\n+ " (statement_identifier) "wPlayController : " (ERROR) "LKViewController\n\n- (void)showWithsuperRect:(C" (:) "L" (binary_expression) "ViewController\n\n- (void)showWithsuperRect:(C" (identifier) "ViewController\n\n-" (-) "v" (cast_expression) "id)showWithsuperRect:(C" (() "i" (type_descriptor) "d)sh" (primitive_type) "d)sh" ()) "o" (identifier) "wWithsuperRect:(C" (:) "G" (expression_statement) "Rect)supViewRect;\n+ " (cast_expression) "Rect)supViewRect;\n+" (() "R" (type_descriptor) "ect)su" (type_identifier) "ect)su" ()) "p" (identifier) "ViewRect;\n+" (;) " " (expression_statement) "instancetype)playView;\n\n@" (unary_expression) "instancetype)playView;\n\n" (+) "i" (cast_expression) "stancetype)playView;\n\n" (() "s" (type_descriptor) "tancetype)pl" (type_identifier) "tancetype)pl" ()) "a" (identifier) "yView;\n\n" (;) "@" (ERROR) "d" (ERROR) "d" (expression_statement) "\n" (identifier) "\n" (;) ""
75
7
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 22.94, "nodes": 42, "errors": 0, "source_hash": "92955f5d7ec029f46170309350be55b0d1f9b2ce50034f7b13bbd81041533700", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <GLKit/GLKit.h>\n\nty", "parent": null, "children": [1, 2], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "port <G", "parent": 0, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "Kit/GLKit.h>\n\nt", "parent": 0, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 23}}, {"id": 3, "type": "type_definition", "text": "edef NS_ENUM(NSUInteger, PlayViewState) {\n PlayViewStateSmall,\n PlayViewStateAnimating,\n PlayViewStateFullscreen,\n};\n\n@interface Vi", "parent": null, "children": [4, 5, 12, 13, 14, 15, 16, 18], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 17, "column": 10}}, {"id": 4, "type": "typedef", "text": "edef NS", "parent": 3, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 7}}, {"id": 5, "type": "macro_type_specifier", "text": "ENUM(NSUInteger, PlayViewState) {\n", "parent": 3, "children": [6, 7, 10], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 42}}, {"id": 6, "type": "identifier", "text": "ENUM(NS", "parent": 5, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 15}}, {"id": 7, "type": "ERROR", "text": "Integer, Pl", "parent": 5, "children": [8], "start_point": {"row": 11, "column": 16}, "end_point": {"row": 11, "column": 27}}, {"id": 8, "type": "type_descriptor", "text": "Integer, P", "parent": 7, "children": [9], "start_point": {"row": 11, "column": 16}, "end_point": {"row": 11, "column": 26}}, {"id": 9, "type": "type_identifier", "text": "Integer, P", "parent": 8, "children": [], "start_point": {"row": 11, "column": 16}, "end_point": {"row": 11, "column": 26}}, {"id": 10, "type": "type_descriptor", "text": "yViewState) {", "parent": 5, "children": [11], "start_point": {"row": 11, "column": 28}, "end_point": {"row": 11, "column": 41}}, {"id": 11, "type": "type_identifier", "text": "yViewState) {", "parent": 10, "children": [], "start_point": {"row": 11, "column": 28}, "end_point": {"row": 11, "column": 41}}, {"id": 12, "type": "ERROR", "text": " ", "parent": 3, "children": [], "start_point": {"row": 11, "column": 43}, "end_point": {"row": 11, "column": 44}}, {"id": 13, "type": "type_identifier", "text": "yViewStateSmall,\n ", "parent": 3, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 22}}, {"id": 14, "type": "type_identifier", "text": "yViewStateAnimating,\n ", "parent": 3, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 26}}, {"id": 15, "type": "type_identifier", "text": "yViewStateFullscreen,\n}", "parent": 3, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 27}}, {"id": 16, "type": "ERROR", "text": "\n@int", "parent": 3, "children": [17], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 17, "type": "ERROR", "text": "t", "parent": 16, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 18, "type": "type_identifier", "text": "erface Vi", "parent": 3, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 10}}, {"id": 19, "type": "labeled_statement", "text": "wPlayController : GLKViewController\n\n- (void)showWithsuperRect:(CGRect)supViewRect;\n+ ", "parent": null, "children": [20, 21], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 19, "column": 46}}, {"id": 20, "type": "statement_identifier", "text": "wPlayController : ", "parent": 19, "children": [], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 29}}, {"id": 21, "type": "ERROR", "text": "LKViewController\n\n- (void)showWithsuperRect:(C", "parent": 19, "children": [22], "start_point": {"row": 17, "column": 30}, "end_point": {"row": 19, "column": 25}}, {"id": 22, "type": "binary_expression", "text": "ViewController\n\n- (void)showWithsuperRect:(C", "parent": 21, "children": [23, 24, 25], "start_point": {"row": 17, "column": 32}, "end_point": {"row": 19, "column": 25}}, {"id": 23, "type": "identifier", "text": "ViewController\n\n-", "parent": 22, "children": [], "start_point": {"row": 17, "column": 32}, "end_point": {"row": 17, "column": 49}}, {"id": 24, "type": "-", "text": "v", "parent": 22, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 25, "type": "cast_expression", "text": "id)showWithsuperRect:(C", "parent": 22, "children": [26, 28], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 25}}, {"id": 26, "type": "type_descriptor", "text": "d)sh", "parent": 25, "children": [27], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 7}}, {"id": 27, "type": "primitive_type", "text": "d)sh", "parent": 26, "children": [], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 7}}, {"id": 28, "type": "identifier", "text": "wWithsuperRect:(C", "parent": 25, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 25}}, {"id": 29, "type": "cast_expression", "text": "Rect)supViewRect;\n+", "parent": 19, "children": [30, 32], "start_point": {"row": 19, "column": 26}, "end_point": {"row": 19, "column": 45}}, {"id": 30, "type": "type_descriptor", "text": "ect)su", "parent": 29, "children": [31], "start_point": {"row": 19, "column": 27}, "end_point": {"row": 19, "column": 33}}, {"id": 31, "type": "type_identifier", "text": "ect)su", "parent": 30, "children": [], "start_point": {"row": 19, "column": 27}, "end_point": {"row": 19, "column": 33}}, {"id": 32, "type": "identifier", "text": "ViewRect;\n+", "parent": 29, "children": [], "start_point": {"row": 19, "column": 34}, "end_point": {"row": 19, "column": 45}}, {"id": 33, "type": "unary_expression", "text": "instancetype)playView;\n\n", "parent": null, "children": [34, 35], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 24}}, {"id": 34, "type": "+", "text": "i", "parent": 33, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 35, "type": "cast_expression", "text": "stancetype)playView;\n\n", "parent": 33, "children": [36, 38], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 24}}, {"id": 36, "type": "type_descriptor", "text": "tancetype)pl", "parent": 35, "children": [37], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 15}}, {"id": 37, "type": "type_identifier", "text": "tancetype)pl", "parent": 36, "children": [], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 15}}, {"id": 38, "type": "identifier", "text": "yView;\n\n", "parent": 35, "children": [], "start_point": {"row": 20, "column": 16}, "end_point": {"row": 20, "column": 24}}, {"id": 39, "type": "ERROR", "text": "d", "parent": null, "children": [40], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 1}}, {"id": 40, "type": "ERROR", "text": "d", "parent": 39, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 1}}, {"id": 41, "type": "identifier", "text": "\n", "parent": null, "children": [], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 4}}]}, "node_categories": {"declarations": {"functions": [], "variables": [3], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [22, 25, 29, 33, 35], "assignments": [], "loops": [], "conditionals": [5, 6, 9, 11, 13, 14, 15, 18, 20, 23, 28, 31, 32, 37, 38, 41], "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// PlayView.h\n// TestDemo\n//\n// Created by Multak on 2018/6/13.\n// Copyright \u00a9 2018\u5e74 Multak. All rights reserved.\n//\n\n//#import <UIKit/UIKit.h>\n#import <GLKit/GLKit.h>\n\ntypedef NS_ENUM(NSUInteger, PlayViewState) {\n PlayViewStateSmall,\n PlayViewStateAnimating,\n PlayViewStateFullscreen,\n};\n\n@interface ViewPlayController : GLKViewController\n\n- (void)showWithsuperRect:(CGRect)supViewRect;\n+ (instancetype)playView;\n\n@end\n"}
80,226
c
// // Created by <NAME> on 6/24/18. // #ifndef LJUS_ENCRYPTCOOKIES_H #define LJUS_ENCRYPTCOOKIES_H #include <vector> #include <string> #include <cookie/CookieJar.h> #include <http/utils/Request.h> #include <http/utils/Response.h> using namespace std; namespace Ljus { class EncryptCookies { public: explicit EncryptCookies(vector<string> except); void disableFor(string disable); Request decrypt(Ljus::Request req); Ljus::Cookie duplicate(Ljus::Cookie cookie, string value); Response encrypt(Ljus::Response res); Request before(Ljus::Request req); Response after(Ljus::Response res); private: bool isDisabled(string cookie); vector<string> exceptions; Ljus::Cookie decryptCookie(Ljus::Cookie cookie); Ljus::Cookie encryptCookie(Ljus::Cookie cookie); }; } #endif //LJUS_ENCRYPTCOOKIES_H
28.7
30
(translation_unit) "//\n// Created by <NAME> on 6/24/18.\n//\n\n#ifndef LJUS_ENCRYPTCOOKIES_H\n#define LJUS_ENCRYPTCOOKIES_H\n\n#include <vector>\n#include <string>\n#include <cookie/CookieJar.h>\n#include <http/utils/Request.h>\n#include <http/utils/Response.h>\n\nusing namespace std;\n\nnamespace Ljus {\n class EncryptCookies {\n\n public:\n explicit EncryptCookies(vector<string> except);\n\n void disableFor(string disable);\n\n Request decrypt(Ljus::Request req);\n\n Ljus::Cookie duplicate(Ljus::Cookie cookie, string value);\n\n Response encrypt(Ljus::Response res);\n\n Request before(Ljus::Request req);\n\n Response after(Ljus::Response res);\n\n private:\n bool isDisabled(string cookie);\n\n vector<string> exceptions;\n\n Ljus::Cookie decryptCookie(Ljus::Cookie cookie);\n\n Ljus::Cookie encryptCookie(Ljus::Cookie cookie);\n\n };\n}\n\n\n#endif //LJUS_ENCRYPTCOOKIES_H\n" (comment) "//" (comment) "// Created by <NAME> on 6/24/18." (comment) "//" (preproc_ifdef) "#ifndef LJUS_ENCRYPTCOOKIES_H\n#define LJUS_ENCRYPTCOOKIES_H\n\n#include <vector>\n#include <string>\n#include <cookie/CookieJar.h>\n#include <http/utils/Request.h>\n#include <http/utils/Response.h>\n\nusing namespace std;\n\nnamespace Ljus {\n class EncryptCookies {\n\n public:\n explicit EncryptCookies(vector<string> except);\n\n void disableFor(string disable);\n\n Request decrypt(Ljus::Request req);\n\n Ljus::Cookie duplicate(Ljus::Cookie cookie, string value);\n\n Response encrypt(Ljus::Response res);\n\n Request before(Ljus::Request req);\n\n Response after(Ljus::Response res);\n\n private:\n bool isDisabled(string cookie);\n\n vector<string> exceptions;\n\n Ljus::Cookie decryptCookie(Ljus::Cookie cookie);\n\n Ljus::Cookie encryptCookie(Ljus::Cookie cookie);\n\n };\n}\n\n\n#endif" (#ifndef) "#ifndef" (identifier) "LJUS_ENCRYPTCOOKIES_H" (preproc_def) "#define LJUS_ENCRYPTCOOKIES_H\n" (#define) "#define" (identifier) "LJUS_ENCRYPTCOOKIES_H" (preproc_include) "#include <vector>\n" (#include) "#include" (system_lib_string) "<vector>" (preproc_include) "#include <string>\n" (#include) "#include" (system_lib_string) "<string>" (preproc_include) "#include <cookie/CookieJar.h>\n" (#include) "#include" (system_lib_string) "<cookie/CookieJar.h>" (preproc_include) "#include <http/utils/Request.h>\n" (#include) "#include" (system_lib_string) "<http/utils/Request.h>" (preproc_include) "#include <http/utils/Response.h>\n" (#include) "#include" (system_lib_string) "<http/utils/Response.h>" (declaration) "using namespace std;" (type_identifier) "using" (identifier) "namespace" (ERROR) "std" (identifier) "std" (;) ";" (function_definition) "namespace Ljus {\n class EncryptCookies {\n\n public:\n explicit EncryptCookies(vector<string> except);\n\n void disableFor(string disable);\n\n Request decrypt(Ljus::Request req);\n\n Ljus::Cookie duplicate(Ljus::Cookie cookie, string value);\n\n Response encrypt(Ljus::Response res);\n\n Request before(Ljus::Request req);\n\n Response after(Ljus::Response res);\n\n private:\n bool isDisabled(string cookie);\n\n vector<string> exceptions;\n\n Ljus::Cookie decryptCookie(Ljus::Cookie cookie);\n\n Ljus::Cookie encryptCookie(Ljus::Cookie cookie);\n\n };\n}" (type_identifier) "namespace" (identifier) "Ljus" (compound_statement) "{\n class EncryptCookies {\n\n public:\n explicit EncryptCookies(vector<string> except);\n\n void disableFor(string disable);\n\n Request decrypt(Ljus::Request req);\n\n Ljus::Cookie duplicate(Ljus::Cookie cookie, string value);\n\n Response encrypt(Ljus::Response res);\n\n Request before(Ljus::Request req);\n\n Response after(Ljus::Response res);\n\n private:\n bool isDisabled(string cookie);\n\n vector<string> exceptions;\n\n Ljus::Cookie decryptCookie(Ljus::Cookie cookie);\n\n Ljus::Cookie encryptCookie(Ljus::Cookie cookie);\n\n };\n}" ({) "{" (function_definition) "class EncryptCookies {\n\n public:\n explicit EncryptCookies(vector<string> except);\n\n void disableFor(string disable);\n\n Request decrypt(Ljus::Request req);\n\n Ljus::Cookie duplicate(Ljus::Cookie cookie, string value);\n\n Response encrypt(Ljus::Response res);\n\n Request before(Ljus::Request req);\n\n Response after(Ljus::Response res);\n\n private:\n bool isDisabled(string cookie);\n\n vector<string> exceptions;\n\n Ljus::Cookie decryptCookie(Ljus::Cookie cookie);\n\n Ljus::Cookie encryptCookie(Ljus::Cookie cookie);\n\n }" (type_identifier) "class" (identifier) "EncryptCookies" (compound_statement) "{\n\n public:\n explicit EncryptCookies(vector<string> except);\n\n void disableFor(string disable);\n\n Request decrypt(Ljus::Request req);\n\n Ljus::Cookie duplicate(Ljus::Cookie cookie, string value);\n\n Response encrypt(Ljus::Response res);\n\n Request before(Ljus::Request req);\n\n Response after(Ljus::Response res);\n\n private:\n bool isDisabled(string cookie);\n\n vector<string> exceptions;\n\n Ljus::Cookie decryptCookie(Ljus::Cookie cookie);\n\n Ljus::Cookie encryptCookie(Ljus::Cookie cookie);\n\n }" ({) "{" (expression_statement) "public:\n explicit EncryptCookies(vector<string> except);" (binary_expression) "public:\n explicit EncryptCookies(vector<string> except" (binary_expression) "public:\n explicit EncryptCookies(vector<string" (identifier) "public" (ERROR) ":\n explicit EncryptCookies(vector" (:) ":" (type_identifier) "explicit" (identifier) "EncryptCookies" (() "(" (identifier) "vector" (<) "<" (identifier) "string" (>) ">" (identifier) "except" (ERROR) ")" ()) ")" (;) ";" (declaration) "void disableFor(string disable);" (primitive_type) "void" (function_declarator) "disableFor(string disable)" (identifier) "disableFor" (parameter_list) "(string disable)" (() "(" (parameter_declaration) "string disable" (type_identifier) "string" (identifier) "disable" ()) ")" (;) ";" (declaration) "Request decrypt(Ljus::Request req);" (type_identifier) "Request" (function_declarator) "decrypt(Ljus::Request req)" (identifier) "decrypt" (parameter_list) "(Ljus::Request req)" (() "(" (parameter_declaration) "Ljus::Request req" (type_identifier) "Ljus" (ERROR) "::Request" (:) ":" (:) ":" (identifier) "Request" (identifier) "req" ()) ")" (;) ";" (labeled_statement) "Ljus::Cookie duplicate(Ljus::Cookie cookie, string value);" (statement_identifier) "Ljus" (ERROR) "::Cookie duplicate(Ljus:" (:) ":" (:) ":" (type_identifier) "Cookie" (identifier) "duplicate" (() "(" (type_identifier) "Ljus" (:) ":" (:) ":" (declaration) "Cookie cookie, string value);" (type_identifier) "Cookie" (identifier) "cookie" (,) "," (identifier) "string" (ERROR) "value)" (identifier) "value" ()) ")" (;) ";" (declaration) "Response encrypt(Ljus::Response res);" (type_identifier) "Response" (function_declarator) "encrypt(Ljus::Response res)" (identifier) "encrypt" (parameter_list) "(Ljus::Response res)" (() "(" (parameter_declaration) "Ljus::Response res" (type_identifier) "Ljus" (ERROR) "::Response" (:) ":" (:) ":" (identifier) "Response" (identifier) "res" ()) ")" (;) ";" (declaration) "Request before(Ljus::Request req);" (type_identifier) "Request" (function_declarator) "before(Ljus::Request req)" (identifier) "before" (parameter_list) "(Ljus::Request req)" (() "(" (parameter_declaration) "Ljus::Request req" (type_identifier) "Ljus" (ERROR) "::Request" (:) ":" (:) ":" (identifier) "Request" (identifier) "req" ()) ")" (;) ";" (declaration) "Response after(Ljus::Response res);" (type_identifier) "Response" (function_declarator) "after(Ljus::Response res)" (identifier) "after" (parameter_list) "(Ljus::Response res)" (() "(" (parameter_declaration) "Ljus::Response res" (type_identifier) "Ljus" (ERROR) "::Response" (:) ":" (:) ":" (identifier) "Response" (identifier) "res" ()) ")" (;) ";" (labeled_statement) "private:\n bool isDisabled(string cookie);" (statement_identifier) "private" (:) ":" (declaration) "bool isDisabled(string cookie);" (primitive_type) "bool" (function_declarator) "isDisabled(string cookie)" (identifier) "isDisabled" (parameter_list) "(string cookie)" (() "(" (parameter_declaration) "string cookie" (type_identifier) "string" (identifier) "cookie" ()) ")" (;) ";" (expression_statement) "vector<string> exceptions;" (binary_expression) "vector<string> exceptions" (binary_expression) "vector<string" (identifier) "vector" (<) "<" (identifier) "string" (>) ">" (identifier) "exceptions" (;) ";" (labeled_statement) "Ljus::Cookie decryptCookie(Ljus::Cookie cookie);" (statement_identifier) "Ljus" (ERROR) "::Cookie decryptCookie(Ljus:" (:) ":" (:) ":" (type_identifier) "Cookie" (identifier) "decryptCookie" (() "(" (type_identifier) "Ljus" (:) ":" (:) ":" (declaration) "Cookie cookie);" (type_identifier) "Cookie" (identifier) "cookie" (ERROR) ")" ()) ")" (;) ";" (labeled_statement) "Ljus::Cookie encryptCookie(Ljus::Cookie cookie);" (statement_identifier) "Ljus" (ERROR) "::Cookie encryptCookie(Ljus:" (:) ":" (:) ":" (type_identifier) "Cookie" (identifier) "encryptCookie" (() "(" (type_identifier) "Ljus" (:) ":" (:) ":" (declaration) "Cookie cookie);" (type_identifier) "Cookie" (identifier) "cookie" (ERROR) ")" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (#endif) "#endif" (comment) "//LJUS_ENCRYPTCOOKIES_H"
212
13
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 28.7, "nodes": 136, "errors": 0, "source_hash": "628f1cd4516ac955616e685d88e7ad5f44b6504c5e9ac5d7877ca9bd3338d160", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef LJUS_ENCRYPTCOOKIES_H\n#define LJUS_ENCRYPTCOOKIES_H\n\n#include <vector>\n#include <string>\n#include <cookie/CookieJar.h>\n#include <http/utils/Request.h>\n#include <http/utils/Response.h>\n\nusing namespace std;\n\nnamespace Ljus {\n class EncryptCookies {\n\n public:\n explicit EncryptCookies(vector<string> except);\n\n void disableFor(string disable);\n\n Request decrypt(Ljus::Request req);\n\n Ljus::Cookie duplicate(Ljus::Cookie cookie, string value);\n\n Response encrypt(Ljus::Response res);\n\n Request before(Ljus::Request req);\n\n Response after(Ljus::Response res);\n\n private:\n bool isDisabled(string cookie);\n\n vector<string> exceptions;\n\n Ljus::Cookie decryptCookie(Ljus::Cookie cookie);\n\n Ljus::Cookie encryptCookie(Ljus::Cookie cookie);\n\n };\n}\n\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 26, 135], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 46, "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": "LJUS_ENCRYPTCOOKIES_H", "parent": 0, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 29}}, {"id": 3, "type": "preproc_def", "text": "#define LJUS_ENCRYPTCOOKIES_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": "LJUS_ENCRYPTCOOKIES_H", "parent": 3, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 29}}, {"id": 6, "type": "preproc_include", "text": "#include <vector>\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": "<vector>", "parent": 6, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 17}}, {"id": 9, "type": "preproc_include", "text": "#include <string>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<string>", "parent": 9, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 17}}, {"id": 12, "type": "preproc_include", "text": "#include <cookie/CookieJar.h>\n", "parent": 0, "children": [13, 14], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<cookie/CookieJar.h>", "parent": 12, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 29}}, {"id": 15, "type": "preproc_include", "text": "#include <http/utils/Request.h>\n", "parent": 0, "children": [16, 17], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<http/utils/Request.h>", "parent": 15, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 31}}, {"id": 18, "type": "preproc_include", "text": "#include <http/utils/Response.h>\n", "parent": 0, "children": [19, 20], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 20, "type": "system_lib_string", "text": "<http/utils/Response.h>", "parent": 18, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 32}}, {"id": 21, "type": "declaration", "text": "using namespace std;", "parent": 0, "children": [22, 23, 24], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 20}}, {"id": 22, "type": "type_identifier", "text": "using", "parent": 21, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 5}}, {"id": 23, "type": "identifier", "text": "namespace", "parent": 21, "children": [], "start_point": {"row": 13, "column": 6}, "end_point": {"row": 13, "column": 15}}, {"id": 24, "type": "ERROR", "text": "std", "parent": 21, "children": [25], "start_point": {"row": 13, "column": 16}, "end_point": {"row": 13, "column": 19}}, {"id": 25, "type": "identifier", "text": "std", "parent": 24, "children": [], "start_point": {"row": 13, "column": 16}, "end_point": {"row": 13, "column": 19}}, {"id": 26, "type": "function_definition", "text": "namespace Ljus {\n class EncryptCookies {\n\n public:\n explicit EncryptCookies(vector<string> except);\n\n void disableFor(string disable);\n\n Request decrypt(Ljus::Request req);\n\n Ljus::Cookie duplicate(Ljus::Cookie cookie, string value);\n\n Response encrypt(Ljus::Response res);\n\n Request before(Ljus::Request req);\n\n Response after(Ljus::Response res);\n\n private:\n bool isDisabled(string cookie);\n\n vector<string> exceptions;\n\n Ljus::Cookie decryptCookie(Ljus::Cookie cookie);\n\n Ljus::Cookie encryptCookie(Ljus::Cookie cookie);\n\n };\n}", "parent": 0, "children": [27, 28], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 43, "column": 1}}, {"id": 27, "type": "type_identifier", "text": "namespace", "parent": 26, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 9}}, {"id": 28, "type": "identifier", "text": "Ljus", "parent": 26, "children": [], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 14}}, {"id": 29, "type": "function_definition", "text": "class EncryptCookies {\n\n public:\n explicit EncryptCookies(vector<string> except);\n\n void disableFor(string disable);\n\n Request decrypt(Ljus::Request req);\n\n Ljus::Cookie duplicate(Ljus::Cookie cookie, string value);\n\n Response encrypt(Ljus::Response res);\n\n Request before(Ljus::Request req);\n\n Response after(Ljus::Response res);\n\n private:\n bool isDisabled(string cookie);\n\n vector<string> exceptions;\n\n Ljus::Cookie decryptCookie(Ljus::Cookie cookie);\n\n Ljus::Cookie encryptCookie(Ljus::Cookie cookie);\n\n }", "parent": 26, "children": [30], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 42, "column": 5}}, {"id": 30, "type": "identifier", "text": "EncryptCookies", "parent": 29, "children": [], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 24}}, {"id": 31, "type": "binary_expression", "text": "public:\n explicit EncryptCookies(vector<string> except", "parent": 29, "children": [32, 39, 40], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 19, "column": 53}}, {"id": 32, "type": "binary_expression", "text": "public:\n explicit EncryptCookies(vector<string", "parent": 31, "children": [33, 37, 38], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 19, "column": 45}}, {"id": 33, "type": "ERROR", "text": ":\n explicit EncryptCookies(vector", "parent": 32, "children": [34, 35, 36], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 19, "column": 38}}, {"id": 34, "type": "type_identifier", "text": "explicit", "parent": 33, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 16}}, {"id": 35, "type": "identifier", "text": "EncryptCookies", "parent": 33, "children": [], "start_point": {"row": 19, "column": 17}, "end_point": {"row": 19, "column": 31}}, {"id": 36, "type": "identifier", "text": "vector", "parent": 33, "children": [], "start_point": {"row": 19, "column": 32}, "end_point": {"row": 19, "column": 38}}, {"id": 37, "type": "<", "text": "<", "parent": 32, "children": [], "start_point": {"row": 19, "column": 38}, "end_point": {"row": 19, "column": 39}}, {"id": 38, "type": "identifier", "text": "string", "parent": 32, "children": [], "start_point": {"row": 19, "column": 39}, "end_point": {"row": 19, "column": 45}}, {"id": 39, "type": ">", "text": ">", "parent": 31, "children": [], "start_point": {"row": 19, "column": 45}, "end_point": {"row": 19, "column": 46}}, {"id": 40, "type": "identifier", "text": "except", "parent": 31, "children": [], "start_point": {"row": 19, "column": 47}, "end_point": {"row": 19, "column": 53}}, {"id": 41, "type": "declaration", "text": "void disableFor(string disable);", "parent": 29, "children": [42, 43], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 40}}, {"id": 42, "type": "primitive_type", "text": "void", "parent": 41, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 12}}, {"id": 43, "type": "function_declarator", "text": "disableFor(string disable)", "parent": 41, "children": [44, 45], "start_point": {"row": 21, "column": 13}, "end_point": {"row": 21, "column": 39}}, {"id": 44, "type": "identifier", "text": "disableFor", "parent": 43, "children": [], "start_point": {"row": 21, "column": 13}, "end_point": {"row": 21, "column": 23}}, {"id": 45, "type": "parameter_list", "text": "(string disable)", "parent": 43, "children": [46], "start_point": {"row": 21, "column": 23}, "end_point": {"row": 21, "column": 39}}, {"id": 46, "type": "parameter_declaration", "text": "string disable", "parent": 45, "children": [47, 48], "start_point": {"row": 21, "column": 24}, "end_point": {"row": 21, "column": 38}}, {"id": 47, "type": "type_identifier", "text": "string", "parent": 46, "children": [], "start_point": {"row": 21, "column": 24}, "end_point": {"row": 21, "column": 30}}, {"id": 48, "type": "identifier", "text": "disable", "parent": 46, "children": [], "start_point": {"row": 21, "column": 31}, "end_point": {"row": 21, "column": 38}}, {"id": 49, "type": "declaration", "text": "Request decrypt(Ljus::Request req);", "parent": 29, "children": [50, 51], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 43}}, {"id": 50, "type": "type_identifier", "text": "Request", "parent": 49, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 15}}, {"id": 51, "type": "function_declarator", "text": "decrypt(Ljus::Request req)", "parent": 49, "children": [52, 53], "start_point": {"row": 23, "column": 16}, "end_point": {"row": 23, "column": 42}}, {"id": 52, "type": "identifier", "text": "decrypt", "parent": 51, "children": [], "start_point": {"row": 23, "column": 16}, "end_point": {"row": 23, "column": 23}}, {"id": 53, "type": "parameter_list", "text": "(Ljus::Request req)", "parent": 51, "children": [54], "start_point": {"row": 23, "column": 23}, "end_point": {"row": 23, "column": 42}}, {"id": 54, "type": "parameter_declaration", "text": "Ljus::Request req", "parent": 53, "children": [55, 56, 58], "start_point": {"row": 23, "column": 24}, "end_point": {"row": 23, "column": 41}}, {"id": 55, "type": "type_identifier", "text": "Ljus", "parent": 54, "children": [], "start_point": {"row": 23, "column": 24}, "end_point": {"row": 23, "column": 28}}, {"id": 56, "type": "ERROR", "text": "::Request", "parent": 54, "children": [57], "start_point": {"row": 23, "column": 28}, "end_point": {"row": 23, "column": 37}}, {"id": 57, "type": "identifier", "text": "Request", "parent": 56, "children": [], "start_point": {"row": 23, "column": 30}, "end_point": {"row": 23, "column": 37}}, {"id": 58, "type": "identifier", "text": "req", "parent": 54, "children": [], "start_point": {"row": 23, "column": 38}, "end_point": {"row": 23, "column": 41}}, {"id": 59, "type": "labeled_statement", "text": "Ljus::Cookie duplicate(Ljus::Cookie cookie, string value);", "parent": 29, "children": [60, 61, 65], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 66}}, {"id": 60, "type": "statement_identifier", "text": "Ljus", "parent": 59, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 12}}, {"id": 61, "type": "ERROR", "text": "::Cookie duplicate(Ljus:", "parent": 59, "children": [62, 63, 64], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 36}}, {"id": 62, "type": "type_identifier", "text": "Cookie", "parent": 61, "children": [], "start_point": {"row": 25, "column": 14}, "end_point": {"row": 25, "column": 20}}, {"id": 63, "type": "identifier", "text": "duplicate", "parent": 61, "children": [], "start_point": {"row": 25, "column": 21}, "end_point": {"row": 25, "column": 30}}, {"id": 64, "type": "type_identifier", "text": "Ljus", "parent": 61, "children": [], "start_point": {"row": 25, "column": 31}, "end_point": {"row": 25, "column": 35}}, {"id": 65, "type": "declaration", "text": "Cookie cookie, string value);", "parent": 59, "children": [66, 67, 68, 69], "start_point": {"row": 25, "column": 37}, "end_point": {"row": 25, "column": 66}}, {"id": 66, "type": "type_identifier", "text": "Cookie", "parent": 65, "children": [], "start_point": {"row": 25, "column": 37}, "end_point": {"row": 25, "column": 43}}, {"id": 67, "type": "identifier", "text": "cookie", "parent": 65, "children": [], "start_point": {"row": 25, "column": 44}, "end_point": {"row": 25, "column": 50}}, {"id": 68, "type": "identifier", "text": "string", "parent": 65, "children": [], "start_point": {"row": 25, "column": 52}, "end_point": {"row": 25, "column": 58}}, {"id": 69, "type": "ERROR", "text": "value)", "parent": 65, "children": [70], "start_point": {"row": 25, "column": 59}, "end_point": {"row": 25, "column": 65}}, {"id": 70, "type": "identifier", "text": "value", "parent": 69, "children": [], "start_point": {"row": 25, "column": 59}, "end_point": {"row": 25, "column": 64}}, {"id": 71, "type": "declaration", "text": "Response encrypt(Ljus::Response res);", "parent": 29, "children": [72, 73], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 45}}, {"id": 72, "type": "type_identifier", "text": "Response", "parent": 71, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 16}}, {"id": 73, "type": "function_declarator", "text": "encrypt(Ljus::Response res)", "parent": 71, "children": [74, 75], "start_point": {"row": 27, "column": 17}, "end_point": {"row": 27, "column": 44}}, {"id": 74, "type": "identifier", "text": "encrypt", "parent": 73, "children": [], "start_point": {"row": 27, "column": 17}, "end_point": {"row": 27, "column": 24}}, {"id": 75, "type": "parameter_list", "text": "(Ljus::Response res)", "parent": 73, "children": [76], "start_point": {"row": 27, "column": 24}, "end_point": {"row": 27, "column": 44}}, {"id": 76, "type": "parameter_declaration", "text": "Ljus::Response res", "parent": 75, "children": [77, 78, 80], "start_point": {"row": 27, "column": 25}, "end_point": {"row": 27, "column": 43}}, {"id": 77, "type": "type_identifier", "text": "Ljus", "parent": 76, "children": [], "start_point": {"row": 27, "column": 25}, "end_point": {"row": 27, "column": 29}}, {"id": 78, "type": "ERROR", "text": "::Response", "parent": 76, "children": [79], "start_point": {"row": 27, "column": 29}, "end_point": {"row": 27, "column": 39}}, {"id": 79, "type": "identifier", "text": "Response", "parent": 78, "children": [], "start_point": {"row": 27, "column": 31}, "end_point": {"row": 27, "column": 39}}, {"id": 80, "type": "identifier", "text": "res", "parent": 76, "children": [], "start_point": {"row": 27, "column": 40}, "end_point": {"row": 27, "column": 43}}, {"id": 81, "type": "declaration", "text": "Request before(Ljus::Request req);", "parent": 29, "children": [82, 83], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 42}}, {"id": 82, "type": "type_identifier", "text": "Request", "parent": 81, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 15}}, {"id": 83, "type": "function_declarator", "text": "before(Ljus::Request req)", "parent": 81, "children": [84, 85], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 29, "column": 41}}, {"id": 84, "type": "identifier", "text": "before", "parent": 83, "children": [], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 29, "column": 22}}, {"id": 85, "type": "parameter_list", "text": "(Ljus::Request req)", "parent": 83, "children": [86], "start_point": {"row": 29, "column": 22}, "end_point": {"row": 29, "column": 41}}, {"id": 86, "type": "parameter_declaration", "text": "Ljus::Request req", "parent": 85, "children": [87, 88, 90], "start_point": {"row": 29, "column": 23}, "end_point": {"row": 29, "column": 40}}, {"id": 87, "type": "type_identifier", "text": "Ljus", "parent": 86, "children": [], "start_point": {"row": 29, "column": 23}, "end_point": {"row": 29, "column": 27}}, {"id": 88, "type": "ERROR", "text": "::Request", "parent": 86, "children": [89], "start_point": {"row": 29, "column": 27}, "end_point": {"row": 29, "column": 36}}, {"id": 89, "type": "identifier", "text": "Request", "parent": 88, "children": [], "start_point": {"row": 29, "column": 29}, "end_point": {"row": 29, "column": 36}}, {"id": 90, "type": "identifier", "text": "req", "parent": 86, "children": [], "start_point": {"row": 29, "column": 37}, "end_point": {"row": 29, "column": 40}}, {"id": 91, "type": "declaration", "text": "Response after(Ljus::Response res);", "parent": 29, "children": [92, 93], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 43}}, {"id": 92, "type": "type_identifier", "text": "Response", "parent": 91, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 16}}, {"id": 93, "type": "function_declarator", "text": "after(Ljus::Response res)", "parent": 91, "children": [94, 95], "start_point": {"row": 31, "column": 17}, "end_point": {"row": 31, "column": 42}}, {"id": 94, "type": "identifier", "text": "after", "parent": 93, "children": [], "start_point": {"row": 31, "column": 17}, "end_point": {"row": 31, "column": 22}}, {"id": 95, "type": "parameter_list", "text": "(Ljus::Response res)", "parent": 93, "children": [96], "start_point": {"row": 31, "column": 22}, "end_point": {"row": 31, "column": 42}}, {"id": 96, "type": "parameter_declaration", "text": "Ljus::Response res", "parent": 95, "children": [97, 98, 100], "start_point": {"row": 31, "column": 23}, "end_point": {"row": 31, "column": 41}}, {"id": 97, "type": "type_identifier", "text": "Ljus", "parent": 96, "children": [], "start_point": {"row": 31, "column": 23}, "end_point": {"row": 31, "column": 27}}, {"id": 98, "type": "ERROR", "text": "::Response", "parent": 96, "children": [99], "start_point": {"row": 31, "column": 27}, "end_point": {"row": 31, "column": 37}}, {"id": 99, "type": "identifier", "text": "Response", "parent": 98, "children": [], "start_point": {"row": 31, "column": 29}, "end_point": {"row": 31, "column": 37}}, {"id": 100, "type": "identifier", "text": "res", "parent": 96, "children": [], "start_point": {"row": 31, "column": 38}, "end_point": {"row": 31, "column": 41}}, {"id": 101, "type": "labeled_statement", "text": "private:\n bool isDisabled(string cookie);", "parent": 29, "children": [102], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 34, "column": 39}}, {"id": 102, "type": "declaration", "text": "bool isDisabled(string cookie);", "parent": 101, "children": [103, 104], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 39}}, {"id": 103, "type": "primitive_type", "text": "bool", "parent": 102, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 12}}, {"id": 104, "type": "function_declarator", "text": "isDisabled(string cookie)", "parent": 102, "children": [105, 106], "start_point": {"row": 34, "column": 13}, "end_point": {"row": 34, "column": 38}}, {"id": 105, "type": "identifier", "text": "isDisabled", "parent": 104, "children": [], "start_point": {"row": 34, "column": 13}, "end_point": {"row": 34, "column": 23}}, {"id": 106, "type": "parameter_list", "text": "(string cookie)", "parent": 104, "children": [107], "start_point": {"row": 34, "column": 23}, "end_point": {"row": 34, "column": 38}}, {"id": 107, "type": "parameter_declaration", "text": "string cookie", "parent": 106, "children": [108, 109], "start_point": {"row": 34, "column": 24}, "end_point": {"row": 34, "column": 37}}, {"id": 108, "type": "type_identifier", "text": "string", "parent": 107, "children": [], "start_point": {"row": 34, "column": 24}, "end_point": {"row": 34, "column": 30}}, {"id": 109, "type": "identifier", "text": "cookie", "parent": 107, "children": [], "start_point": {"row": 34, "column": 31}, "end_point": {"row": 34, "column": 37}}, {"id": 110, "type": "binary_expression", "text": "vector<string> exceptions", "parent": 29, "children": [111, 115, 116], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 33}}, {"id": 111, "type": "binary_expression", "text": "vector<string", "parent": 110, "children": [112, 113, 114], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 21}}, {"id": 112, "type": "identifier", "text": "vector", "parent": 111, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 14}}, {"id": 113, "type": "<", "text": "<", "parent": 111, "children": [], "start_point": {"row": 36, "column": 14}, "end_point": {"row": 36, "column": 15}}, {"id": 114, "type": "identifier", "text": "string", "parent": 111, "children": [], "start_point": {"row": 36, "column": 15}, "end_point": {"row": 36, "column": 21}}, {"id": 115, "type": ">", "text": ">", "parent": 110, "children": [], "start_point": {"row": 36, "column": 21}, "end_point": {"row": 36, "column": 22}}, {"id": 116, "type": "identifier", "text": "exceptions", "parent": 110, "children": [], "start_point": {"row": 36, "column": 23}, "end_point": {"row": 36, "column": 33}}, {"id": 117, "type": "labeled_statement", "text": "Ljus::Cookie decryptCookie(Ljus::Cookie cookie);", "parent": 29, "children": [118, 119, 123], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 56}}, {"id": 118, "type": "statement_identifier", "text": "Ljus", "parent": 117, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 12}}, {"id": 119, "type": "ERROR", "text": "::Cookie decryptCookie(Ljus:", "parent": 117, "children": [120, 121, 122], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 40}}, {"id": 120, "type": "type_identifier", "text": "Cookie", "parent": 119, "children": [], "start_point": {"row": 38, "column": 14}, "end_point": {"row": 38, "column": 20}}, {"id": 121, "type": "identifier", "text": "decryptCookie", "parent": 119, "children": [], "start_point": {"row": 38, "column": 21}, "end_point": {"row": 38, "column": 34}}, {"id": 122, "type": "type_identifier", "text": "Ljus", "parent": 119, "children": [], "start_point": {"row": 38, "column": 35}, "end_point": {"row": 38, "column": 39}}, {"id": 123, "type": "declaration", "text": "Cookie cookie);", "parent": 117, "children": [124, 125], "start_point": {"row": 38, "column": 41}, "end_point": {"row": 38, "column": 56}}, {"id": 124, "type": "type_identifier", "text": "Cookie", "parent": 123, "children": [], "start_point": {"row": 38, "column": 41}, "end_point": {"row": 38, "column": 47}}, {"id": 125, "type": "identifier", "text": "cookie", "parent": 123, "children": [], "start_point": {"row": 38, "column": 48}, "end_point": {"row": 38, "column": 54}}, {"id": 126, "type": "labeled_statement", "text": "Ljus::Cookie encryptCookie(Ljus::Cookie cookie);", "parent": 29, "children": [127, 128, 132], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 56}}, {"id": 127, "type": "statement_identifier", "text": "Ljus", "parent": 126, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 12}}, {"id": 128, "type": "ERROR", "text": "::Cookie encryptCookie(Ljus:", "parent": 126, "children": [129, 130, 131], "start_point": {"row": 40, "column": 12}, "end_point": {"row": 40, "column": 40}}, {"id": 129, "type": "type_identifier", "text": "Cookie", "parent": 128, "children": [], "start_point": {"row": 40, "column": 14}, "end_point": {"row": 40, "column": 20}}, {"id": 130, "type": "identifier", "text": "encryptCookie", "parent": 128, "children": [], "start_point": {"row": 40, "column": 21}, "end_point": {"row": 40, "column": 34}}, {"id": 131, "type": "type_identifier", "text": "Ljus", "parent": 128, "children": [], "start_point": {"row": 40, "column": 35}, "end_point": {"row": 40, "column": 39}}, {"id": 132, "type": "declaration", "text": "Cookie cookie);", "parent": 126, "children": [133, 134], "start_point": {"row": 40, "column": 41}, "end_point": {"row": 40, "column": 56}}, {"id": 133, "type": "type_identifier", "text": "Cookie", "parent": 132, "children": [], "start_point": {"row": 40, "column": 41}, "end_point": {"row": 40, "column": 47}}, {"id": 134, "type": "identifier", "text": "cookie", "parent": 132, "children": [], "start_point": {"row": 40, "column": 48}, "end_point": {"row": 40, "column": 54}}, {"id": 135, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 6}}]}, "node_categories": {"declarations": {"functions": [26, 29, 43, 51, 73, 83, 93, 104], "variables": [21, 41, 46, 49, 54, 65, 71, 76, 81, 86, 91, 96, 102, 107, 123, 132], "classes": [], "imports": [6, 7, 9, 10, 12, 13, 15, 16, 18, 19], "modules": [], "enums": []}, "statements": {"expressions": [31, 32, 110, 111], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 22, 23, 25, 27, 28, 30, 34, 35, 36, 38, 40, 44, 47, 48, 50, 52, 55, 57, 58, 60, 62, 63, 64, 66, 67, 68, 70, 72, 74, 77, 79, 80, 82, 84, 87, 89, 90, 92, 94, 97, 99, 100, 105, 108, 109, 112, 114, 116, 118, 120, 121, 122, 124, 125, 127, 129, 130, 131, 133, 134, 135], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 20], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 26, "universal_type": "function", "name": "EncryptCookies", "text_snippet": "namespace Ljus {\n class EncryptCookies {\n\n public:\n explicit EncryptCookies(vector<stri"}, {"node_id": 29, "universal_type": "function", "name": "EncryptCookies", "text_snippet": "class EncryptCookies {\n\n public:\n explicit EncryptCookies(vector<string> except);\n\n "}, {"node_id": 43, "universal_type": "function", "name": "unknown", "text_snippet": "disableFor(string disable)"}, {"node_id": 51, "universal_type": "function", "name": "unknown", "text_snippet": "decrypt(Ljus::Request req)"}, {"node_id": 73, "universal_type": "function", "name": "unknown", "text_snippet": "encrypt(Ljus::Response res)"}, {"node_id": 83, "universal_type": "function", "name": "unknown", "text_snippet": "before(Ljus::Request req)"}, {"node_id": 93, "universal_type": "function", "name": "unknown", "text_snippet": "after(Ljus::Response res)"}, {"node_id": 104, "universal_type": "function", "name": "unknown", "text_snippet": "isDisabled(string cookie)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <vector>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <string>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <cookie/CookieJar.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <http/utils/Request.h>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <http/utils/Response.h>\n"}, {"node_id": 19, "text": "#include"}]}, "original_source_code": "//\n// Created by <NAME> on 6/24/18.\n//\n\n#ifndef LJUS_ENCRYPTCOOKIES_H\n#define LJUS_ENCRYPTCOOKIES_H\n\n#include <vector>\n#include <string>\n#include <cookie/CookieJar.h>\n#include <http/utils/Request.h>\n#include <http/utils/Response.h>\n\nusing namespace std;\n\nnamespace Ljus {\n class EncryptCookies {\n\n public:\n explicit EncryptCookies(vector<string> except);\n\n void disableFor(string disable);\n\n Request decrypt(Ljus::Request req);\n\n Ljus::Cookie duplicate(Ljus::Cookie cookie, string value);\n\n Response encrypt(Ljus::Response res);\n\n Request before(Ljus::Request req);\n\n Response after(Ljus::Response res);\n\n private:\n bool isDisabled(string cookie);\n\n vector<string> exceptions;\n\n Ljus::Cookie decryptCookie(Ljus::Cookie cookie);\n\n Ljus::Cookie encryptCookie(Ljus::Cookie cookie);\n\n };\n}\n\n\n#endif //LJUS_ENCRYPTCOOKIES_H\n"}
80,227
c
/** * @file property_definition.h * @date 08/21/2020 04:34:28 PM CST * @brief "" * * Copyright (C) 2020 NIIC EDA * All rights reserved. * * This software may be modified and distributed under the terms * of the BSD license. See the LICENSE file for details. */ #ifndef EDI_DB_UTIL_PROPERTYDEFINITION_H_ #define EDI_DB_UTIL_PROPERTYDEFINITION_H_ #include "db/core/object.h" #include "util/util.h" #include "db/tech/type_def.h" #include "util/io_manager.h" namespace open_edi { namespace db { struct IntRange { int min; int max; }; struct RealRange { double min; double max; }; /** * @class PropertyDefinition * @brief for PROPERTYDEFINITIONS * [PROPERTYDEFINITIONS * [objectType propName propType [RANGE min max] [value | "stringValue"] ;] ... * END PROPERTYDEFINITIONS] * */ class PropertyDefinition : public Object { public: using BaseType = Object; /// @brief default constructor PropertyDefinition(); /// @brief constructor PropertyDefinition(Object* owner, UInt32 id); /// @brief destructor ~PropertyDefinition(); /// @brief copy constructor PropertyDefinition(PropertyDefinition const &rhs); /// @brief move constructor PropertyDefinition(PropertyDefinition &&rhs) noexcept; /// @brief copy assignment PropertyDefinition &operator=(PropertyDefinition const &rhs); /// @brief move constructor PropertyDefinition &operator=(PropertyDefinition &&rhs) noexcept; /// @brief clone current object for extensibility. /// Users need to manage the pointer to avoid memory leakage. /// @return the pointer to the new object PropertyDefinition *clone() const; /// @brief summarize memory usage of the object in bytes UInt32 memory() const; //ACCESS //Get PropertyType getPropType() const; PropertyOrigin getPropOriginType() const; PropertySaveStatus getPropSaveType() const; const std::string & getPropName() const; PropDataType getDataType() const; ObjectType getObjType() const; bool getHasRange() const; bool getHasValue() const; int getIntRangeMin() const; int getIntRangeMax() const; double getRealRangeMin() const; double getRealRangeMax() const; int getIntValue() const; double getRealValue() const; std::string getStringValue() const; //Set void setPropType(PropertyType v); void setPropOriginType(PropertyOrigin v); void setPropSaveType(PropertySaveStatus v); void setObjType(ObjectType v); void setPropName(const std::string & v); void setDataType(PropDataType v); void setHasRange(bool v); void setIntRangeMin(int v); void setIntRangeMax(int v); void setRealRangeMin(double v); void setRealRangeMax(double v); //TODO: check range... void setIntValue(int v); void setRealValue(double v); void setStringValue(const std::string & v); //Print void printLEF(IOManager &io_manager) const; void printDEF(IOManager &io_manager) const; protected: /// @brief copy object void copy(PropertyDefinition const &rhs); /// @brief move object void move(PropertyDefinition &&rhs); /// @brief overload output stream friend OStreamBase &operator<<(OStreamBase &os, PropertyDefinition const &rhs); /// @brief overload input stream //friend IStreamBase &operator>>(IStreamBase &is, PropertyDefinition &rhs) {} private: //DATA SymbolIndex name_index_; PropertyType prop_type_; PropertyOrigin origin_type_; PropertySaveStatus save_type_; PropDataType data_type_; ObjectType obj_type_; bool has_range_; bool has_value_; union { IntRange int_range_; RealRange real_range_; } range_u_; union { SymbolIndex string_value_; int int_value_; double real_value_; } value_u_; }; } // namespace db } // namespace open_edi #endif
29.87
126
(translation_unit) "/** \n * @file property_definition.h\n * @date 08/21/2020 04:34:28 PM CST\n * @brief ""\n *\n * Copyright (C) 2020 NIIC EDA\n * All rights reserved.\n *\n * This software may be modified and distributed under the terms\n * of the BSD license. See the LICENSE file for details.\n */\n\n#ifndef EDI_DB_UTIL_PROPERTYDEFINITION_H_\n#define EDI_DB_UTIL_PROPERTYDEFINITION_H_\n\n#include "db/core/object.h"\n#include "util/util.h"\n#include "db/tech/type_def.h"\n#include "util/io_manager.h"\n\nnamespace open_edi {\nnamespace db {\n\nstruct IntRange {\n int min;\n int max;\n};\n\nstruct RealRange {\n double min;\n double max;\n};\n\n/**\n * @class PropertyDefinition\n * @brief for PROPERTYDEFINITIONS\n * [PROPERTYDEFINITIONS \n * [objectType propName propType [RANGE min max] [value | "stringValue"] ;] ... \n * END PROPERTYDEFINITIONS] \n * */\nclass PropertyDefinition : public Object {\n public:\n using BaseType = Object;\n\n /// @brief default constructor\n PropertyDefinition();\n\n /// @brief constructor\n PropertyDefinition(Object* owner, UInt32 id);\n\n /// @brief destructor\n ~PropertyDefinition();\n\n /// @brief copy constructor\n PropertyDefinition(PropertyDefinition const &rhs);\n\n /// @brief move constructor\n PropertyDefinition(PropertyDefinition &&rhs) noexcept;\n\n /// @brief copy assignment\n PropertyDefinition &operator=(PropertyDefinition const &rhs);\n\n /// @brief move constructor\n PropertyDefinition &operator=(PropertyDefinition &&rhs) noexcept;\n /// @brief clone current object for extensibility.\n /// Users need to manage the pointer to avoid memory leakage.\n /// @return the pointer to the new object\n PropertyDefinition *clone() const;\n\n /// @brief summarize memory usage of the object in bytes\n UInt32 memory() const;\n\n //ACCESS\n //Get\n PropertyType getPropType() const;\n PropertyOrigin getPropOriginType() const;\n PropertySaveStatus getPropSaveType() const;\n const std::string & getPropName() const;\n PropDataType getDataType() const;\n ObjectType getObjType() const;\n bool getHasRange() const;\n bool getHasValue() const;\n int getIntRangeMin() const;\n int getIntRangeMax() const;\n double getRealRangeMin() const;\n double getRealRangeMax() const;\n int getIntValue() const;\n double getRealValue() const;\n std::string getStringValue() const;\n //Set\n void setPropType(PropertyType v);\n void setPropOriginType(PropertyOrigin v);\n void setPropSaveType(PropertySaveStatus v);\n void setObjType(ObjectType v);\n void setPropName(const std::string & v);\n void setDataType(PropDataType v);\n void setHasRange(bool v);\n void setIntRangeMin(int v);\n void setIntRangeMax(int v);\n void setRealRangeMin(double v);\n void setRealRangeMax(double v);\n //TODO: check range...\n void setIntValue(int v);\n void setRealValue(double v);\n void setStringValue(const std::string & v);\n //Print\n void printLEF(IOManager &io_manager) const;\n void printDEF(IOManager &io_manager) const;\n\n protected:\n /// @brief copy object\n void copy(PropertyDefinition const &rhs);\n /// @brief move object\n void move(PropertyDefinition &&rhs);\n /// @brief overload output stream\n friend OStreamBase &operator<<(OStreamBase &os, PropertyDefinition const &rhs);\n /// @brief overload input stream\n //friend IStreamBase &operator>>(IStreamBase &is, PropertyDefinition &rhs) {}\n\n private:\n //DATA\n SymbolIndex name_index_;\n PropertyType prop_type_;\n PropertyOrigin origin_type_;\n PropertySaveStatus save_type_;\n PropDataType data_type_;\n ObjectType obj_type_;\n bool has_range_;\n bool has_value_;\n union {\n IntRange int_range_;\n RealRange real_range_;\n } range_u_;\n union {\n SymbolIndex string_value_;\n int int_value_;\n double real_value_;\n } value_u_;\n};\n\n\n} // namespace db \n} // namespace open_edi\n\n#endif\n\n\n" (comment) "/** \n * @file property_definition.h\n * @date 08/21/2020 04:34:28 PM CST\n * @brief ""\n *\n * Copyright (C) 2020 NIIC EDA\n * All rights reserved.\n *\n * This software may be modified and distributed under the terms\n * of the BSD license. See the LICENSE file for details.\n */" (preproc_ifdef) "#ifndef EDI_DB_UTIL_PROPERTYDEFINITION_H_\n#define EDI_DB_UTIL_PROPERTYDEFINITION_H_\n\n#include "db/core/object.h"\n#include "util/util.h"\n#include "db/tech/type_def.h"\n#include "util/io_manager.h"\n\nnamespace open_edi {\nnamespace db {\n\nstruct IntRange {\n int min;\n int max;\n};\n\nstruct RealRange {\n double min;\n double max;\n};\n\n/**\n * @class PropertyDefinition\n * @brief for PROPERTYDEFINITIONS\n * [PROPERTYDEFINITIONS \n * [objectType propName propType [RANGE min max] [value | "stringValue"] ;] ... \n * END PROPERTYDEFINITIONS] \n * */\nclass PropertyDefinition : public Object {\n public:\n using BaseType = Object;\n\n /// @brief default constructor\n PropertyDefinition();\n\n /// @brief constructor\n PropertyDefinition(Object* owner, UInt32 id);\n\n /// @brief destructor\n ~PropertyDefinition();\n\n /// @brief copy constructor\n PropertyDefinition(PropertyDefinition const &rhs);\n\n /// @brief move constructor\n PropertyDefinition(PropertyDefinition &&rhs) noexcept;\n\n /// @brief copy assignment\n PropertyDefinition &operator=(PropertyDefinition const &rhs);\n\n /// @brief move constructor\n PropertyDefinition &operator=(PropertyDefinition &&rhs) noexcept;\n /// @brief clone current object for extensibility.\n /// Users need to manage the pointer to avoid memory leakage.\n /// @return the pointer to the new object\n PropertyDefinition *clone() const;\n\n /// @brief summarize memory usage of the object in bytes\n UInt32 memory() const;\n\n //ACCESS\n //Get\n PropertyType getPropType() const;\n PropertyOrigin getPropOriginType() const;\n PropertySaveStatus getPropSaveType() const;\n const std::string & getPropName() const;\n PropDataType getDataType() const;\n ObjectType getObjType() const;\n bool getHasRange() const;\n bool getHasValue() const;\n int getIntRangeMin() const;\n int getIntRangeMax() const;\n double getRealRangeMin() const;\n double getRealRangeMax() const;\n int getIntValue() const;\n double getRealValue() const;\n std::string getStringValue() const;\n //Set\n void setPropType(PropertyType v);\n void setPropOriginType(PropertyOrigin v);\n void setPropSaveType(PropertySaveStatus v);\n void setObjType(ObjectType v);\n void setPropName(const std::string & v);\n void setDataType(PropDataType v);\n void setHasRange(bool v);\n void setIntRangeMin(int v);\n void setIntRangeMax(int v);\n void setRealRangeMin(double v);\n void setRealRangeMax(double v);\n //TODO: check range...\n void setIntValue(int v);\n void setRealValue(double v);\n void setStringValue(const std::string & v);\n //Print\n void printLEF(IOManager &io_manager) const;\n void printDEF(IOManager &io_manager) const;\n\n protected:\n /// @brief copy object\n void copy(PropertyDefinition const &rhs);\n /// @brief move object\n void move(PropertyDefinition &&rhs);\n /// @brief overload output stream\n friend OStreamBase &operator<<(OStreamBase &os, PropertyDefinition const &rhs);\n /// @brief overload input stream\n //friend IStreamBase &operator>>(IStreamBase &is, PropertyDefinition &rhs) {}\n\n private:\n //DATA\n SymbolIndex name_index_;\n PropertyType prop_type_;\n PropertyOrigin origin_type_;\n PropertySaveStatus save_type_;\n PropDataType data_type_;\n ObjectType obj_type_;\n bool has_range_;\n bool has_value_;\n union {\n IntRange int_range_;\n RealRange real_range_;\n } range_u_;\n union {\n SymbolIndex string_value_;\n int int_value_;\n double real_value_;\n } value_u_;\n};\n\n\n} // namespace db \n} // namespace open_edi\n\n#endif" (#ifndef) "#ifndef" (identifier) "EDI_DB_UTIL_PROPERTYDEFINITION_H_" (preproc_def) "#define EDI_DB_UTIL_PROPERTYDEFINITION_H_\n" (#define) "#define" (identifier) "EDI_DB_UTIL_PROPERTYDEFINITION_H_" (preproc_include) "#include "db/core/object.h"\n" (#include) "#include" (string_literal) ""db/core/object.h"" (") """ (string_content) "db/core/object.h" (") """ (preproc_include) "#include "util/util.h"\n" (#include) "#include" (string_literal) ""util/util.h"" (") """ (string_content) "util/util.h" (") """ (preproc_include) "#include "db/tech/type_def.h"\n" (#include) "#include" (string_literal) ""db/tech/type_def.h"" (") """ (string_content) "db/tech/type_def.h" (") """ (preproc_include) "#include "util/io_manager.h"\n" (#include) "#include" (string_literal) ""util/io_manager.h"" (") """ (string_content) "util/io_manager.h" (") """ (function_definition) "namespace open_edi {\nnamespace db {\n\nstruct IntRange {\n int min;\n int max;\n};\n\nstruct RealRange {\n double min;\n double max;\n};\n\n/**\n * @class PropertyDefinition\n * @brief for PROPERTYDEFINITIONS\n * [PROPERTYDEFINITIONS \n * [objectType propName propType [RANGE min max] [value | "stringValue"] ;] ... \n * END PROPERTYDEFINITIONS] \n * */\nclass PropertyDefinition : public Object {\n public:\n using BaseType = Object;\n\n /// @brief default constructor\n PropertyDefinition();\n\n /// @brief constructor\n PropertyDefinition(Object* owner, UInt32 id);\n\n /// @brief destructor\n ~PropertyDefinition();\n\n /// @brief copy constructor\n PropertyDefinition(PropertyDefinition const &rhs);\n\n /// @brief move constructor\n PropertyDefinition(PropertyDefinition &&rhs) noexcept;\n\n /// @brief copy assignment\n PropertyDefinition &operator=(PropertyDefinition const &rhs);\n\n /// @brief move constructor\n PropertyDefinition &operator=(PropertyDefinition &&rhs) noexcept;\n /// @brief clone current object for extensibility.\n /// Users need to manage the pointer to avoid memory leakage.\n /// @return the pointer to the new object\n PropertyDefinition *clone() const;\n\n /// @brief summarize memory usage of the object in bytes\n UInt32 memory() const;\n\n //ACCESS\n //Get\n PropertyType getPropType() const;\n PropertyOrigin getPropOriginType() const;\n PropertySaveStatus getPropSaveType() const;\n const std::string & getPropName() const;\n PropDataType getDataType() const;\n ObjectType getObjType() const;\n bool getHasRange() const;\n bool getHasValue() const;\n int getIntRangeMin() const;\n int getIntRangeMax() const;\n double getRealRangeMin() const;\n double getRealRangeMax() const;\n int getIntValue() const;\n double getRealValue() const;\n std::string getStringValue() const;\n //Set\n void setPropType(PropertyType v);\n void setPropOriginType(PropertyOrigin v);\n void setPropSaveType(PropertySaveStatus v);\n void setObjType(ObjectType v);\n void setPropName(const std::string & v);\n void setDataType(PropDataType v);\n void setHasRange(bool v);\n void setIntRangeMin(int v);\n void setIntRangeMax(int v);\n void setRealRangeMin(double v);\n void setRealRangeMax(double v);\n //TODO: check range...\n void setIntValue(int v);\n void setRealValue(double v);\n void setStringValue(const std::string & v);\n //Print\n void printLEF(IOManager &io_manager) const;\n void printDEF(IOManager &io_manager) const;\n\n protected:\n /// @brief copy object\n void copy(PropertyDefinition const &rhs);\n /// @brief move object\n void move(PropertyDefinition &&rhs);\n /// @brief overload output stream\n friend OStreamBase &operator<<(OStreamBase &os, PropertyDefinition const &rhs);\n /// @brief overload input stream\n //friend IStreamBase &operator>>(IStreamBase &is, PropertyDefinition &rhs) {}\n\n private:\n //DATA\n SymbolIndex name_index_;\n PropertyType prop_type_;\n PropertyOrigin origin_type_;\n PropertySaveStatus save_type_;\n PropDataType data_type_;\n ObjectType obj_type_;\n bool has_range_;\n bool has_value_;\n union {\n IntRange int_range_;\n RealRange real_range_;\n } range_u_;\n union {\n SymbolIndex string_value_;\n int int_value_;\n double real_value_;\n } value_u_;\n};\n\n\n} // namespace db \n}" (type_identifier) "namespace" (identifier) "open_edi" (compound_statement) "{\nnamespace db {\n\nstruct IntRange {\n int min;\n int max;\n};\n\nstruct RealRange {\n double min;\n double max;\n};\n\n/**\n * @class PropertyDefinition\n * @brief for PROPERTYDEFINITIONS\n * [PROPERTYDEFINITIONS \n * [objectType propName propType [RANGE min max] [value | "stringValue"] ;] ... \n * END PROPERTYDEFINITIONS] \n * */\nclass PropertyDefinition : public Object {\n public:\n using BaseType = Object;\n\n /// @brief default constructor\n PropertyDefinition();\n\n /// @brief constructor\n PropertyDefinition(Object* owner, UInt32 id);\n\n /// @brief destructor\n ~PropertyDefinition();\n\n /// @brief copy constructor\n PropertyDefinition(PropertyDefinition const &rhs);\n\n /// @brief move constructor\n PropertyDefinition(PropertyDefinition &&rhs) noexcept;\n\n /// @brief copy assignment\n PropertyDefinition &operator=(PropertyDefinition const &rhs);\n\n /// @brief move constructor\n PropertyDefinition &operator=(PropertyDefinition &&rhs) noexcept;\n /// @brief clone current object for extensibility.\n /// Users need to manage the pointer to avoid memory leakage.\n /// @return the pointer to the new object\n PropertyDefinition *clone() const;\n\n /// @brief summarize memory usage of the object in bytes\n UInt32 memory() const;\n\n //ACCESS\n //Get\n PropertyType getPropType() const;\n PropertyOrigin getPropOriginType() const;\n PropertySaveStatus getPropSaveType() const;\n const std::string & getPropName() const;\n PropDataType getDataType() const;\n ObjectType getObjType() const;\n bool getHasRange() const;\n bool getHasValue() const;\n int getIntRangeMin() const;\n int getIntRangeMax() const;\n double getRealRangeMin() const;\n double getRealRangeMax() const;\n int getIntValue() const;\n double getRealValue() const;\n std::string getStringValue() const;\n //Set\n void setPropType(PropertyType v);\n void setPropOriginType(PropertyOrigin v);\n void setPropSaveType(PropertySaveStatus v);\n void setObjType(ObjectType v);\n void setPropName(const std::string & v);\n void setDataType(PropDataType v);\n void setHasRange(bool v);\n void setIntRangeMin(int v);\n void setIntRangeMax(int v);\n void setRealRangeMin(double v);\n void setRealRangeMax(double v);\n //TODO: check range...\n void setIntValue(int v);\n void setRealValue(double v);\n void setStringValue(const std::string & v);\n //Print\n void printLEF(IOManager &io_manager) const;\n void printDEF(IOManager &io_manager) const;\n\n protected:\n /// @brief copy object\n void copy(PropertyDefinition const &rhs);\n /// @brief move object\n void move(PropertyDefinition &&rhs);\n /// @brief overload output stream\n friend OStreamBase &operator<<(OStreamBase &os, PropertyDefinition const &rhs);\n /// @brief overload input stream\n //friend IStreamBase &operator>>(IStreamBase &is, PropertyDefinition &rhs) {}\n\n private:\n //DATA\n SymbolIndex name_index_;\n PropertyType prop_type_;\n PropertyOrigin origin_type_;\n PropertySaveStatus save_type_;\n PropDataType data_type_;\n ObjectType obj_type_;\n bool has_range_;\n bool has_value_;\n union {\n IntRange int_range_;\n RealRange real_range_;\n } range_u_;\n union {\n SymbolIndex string_value_;\n int int_value_;\n double real_value_;\n } value_u_;\n};\n\n\n} // namespace db \n}" ({) "{" (function_definition) "namespace db {\n\nstruct IntRange {\n int min;\n int max;\n};\n\nstruct RealRange {\n double min;\n double max;\n};\n\n/**\n * @class PropertyDefinition\n * @brief for PROPERTYDEFINITIONS\n * [PROPERTYDEFINITIONS \n * [objectType propName propType [RANGE min max] [value | "stringValue"] ;] ... \n * END PROPERTYDEFINITIONS] \n * */\nclass PropertyDefinition : public Object {\n public:\n using BaseType = Object;\n\n /// @brief default constructor\n PropertyDefinition();\n\n /// @brief constructor\n PropertyDefinition(Object* owner, UInt32 id);\n\n /// @brief destructor\n ~PropertyDefinition();\n\n /// @brief copy constructor\n PropertyDefinition(PropertyDefinition const &rhs);\n\n /// @brief move constructor\n PropertyDefinition(PropertyDefinition &&rhs) noexcept;\n\n /// @brief copy assignment\n PropertyDefinition &operator=(PropertyDefinition const &rhs);\n\n /// @brief move constructor\n PropertyDefinition &operator=(PropertyDefinition &&rhs) noexcept;\n /// @brief clone current object for extensibility.\n /// Users need to manage the pointer to avoid memory leakage.\n /// @return the pointer to the new object\n PropertyDefinition *clone() const;\n\n /// @brief summarize memory usage of the object in bytes\n UInt32 memory() const;\n\n //ACCESS\n //Get\n PropertyType getPropType() const;\n PropertyOrigin getPropOriginType() const;\n PropertySaveStatus getPropSaveType() const;\n const std::string & getPropName() const;\n PropDataType getDataType() const;\n ObjectType getObjType() const;\n bool getHasRange() const;\n bool getHasValue() const;\n int getIntRangeMin() const;\n int getIntRangeMax() const;\n double getRealRangeMin() const;\n double getRealRangeMax() const;\n int getIntValue() const;\n double getRealValue() const;\n std::string getStringValue() const;\n //Set\n void setPropType(PropertyType v);\n void setPropOriginType(PropertyOrigin v);\n void setPropSaveType(PropertySaveStatus v);\n void setObjType(ObjectType v);\n void setPropName(const std::string & v);\n void setDataType(PropDataType v);\n void setHasRange(bool v);\n void setIntRangeMin(int v);\n void setIntRangeMax(int v);\n void setRealRangeMin(double v);\n void setRealRangeMax(double v);\n //TODO: check range...\n void setIntValue(int v);\n void setRealValue(double v);\n void setStringValue(const std::string & v);\n //Print\n void printLEF(IOManager &io_manager) const;\n void printDEF(IOManager &io_manager) const;\n\n protected:\n /// @brief copy object\n void copy(PropertyDefinition const &rhs);\n /// @brief move object\n void move(PropertyDefinition &&rhs);\n /// @brief overload output stream\n friend OStreamBase &operator<<(OStreamBase &os, PropertyDefinition const &rhs);\n /// @brief overload input stream\n //friend IStreamBase &operator>>(IStreamBase &is, PropertyDefinition &rhs) {}\n\n private:\n //DATA\n SymbolIndex name_index_;\n PropertyType prop_type_;\n PropertyOrigin origin_type_;\n PropertySaveStatus save_type_;\n PropDataType data_type_;\n ObjectType obj_type_;\n bool has_range_;\n bool has_value_;\n union {\n IntRange int_range_;\n RealRange real_range_;\n } range_u_;\n union {\n SymbolIndex string_value_;\n int int_value_;\n double real_value_;\n } value_u_;\n};\n\n\n}" (type_identifier) "namespace" (identifier) "db" (compound_statement) "{\n\nstruct IntRange {\n int min;\n int max;\n};\n\nstruct RealRange {\n double min;\n double max;\n};\n\n/**\n * @class PropertyDefinition\n * @brief for PROPERTYDEFINITIONS\n * [PROPERTYDEFINITIONS \n * [objectType propName propType [RANGE min max] [value | "stringValue"] ;] ... \n * END PROPERTYDEFINITIONS] \n * */\nclass PropertyDefinition : public Object {\n public:\n using BaseType = Object;\n\n /// @brief default constructor\n PropertyDefinition();\n\n /// @brief constructor\n PropertyDefinition(Object* owner, UInt32 id);\n\n /// @brief destructor\n ~PropertyDefinition();\n\n /// @brief copy constructor\n PropertyDefinition(PropertyDefinition const &rhs);\n\n /// @brief move constructor\n PropertyDefinition(PropertyDefinition &&rhs) noexcept;\n\n /// @brief copy assignment\n PropertyDefinition &operator=(PropertyDefinition const &rhs);\n\n /// @brief move constructor\n PropertyDefinition &operator=(PropertyDefinition &&rhs) noexcept;\n /// @brief clone current object for extensibility.\n /// Users need to manage the pointer to avoid memory leakage.\n /// @return the pointer to the new object\n PropertyDefinition *clone() const;\n\n /// @brief summarize memory usage of the object in bytes\n UInt32 memory() const;\n\n //ACCESS\n //Get\n PropertyType getPropType() const;\n PropertyOrigin getPropOriginType() const;\n PropertySaveStatus getPropSaveType() const;\n const std::string & getPropName() const;\n PropDataType getDataType() const;\n ObjectType getObjType() const;\n bool getHasRange() const;\n bool getHasValue() const;\n int getIntRangeMin() const;\n int getIntRangeMax() const;\n double getRealRangeMin() const;\n double getRealRangeMax() const;\n int getIntValue() const;\n double getRealValue() const;\n std::string getStringValue() const;\n //Set\n void setPropType(PropertyType v);\n void setPropOriginType(PropertyOrigin v);\n void setPropSaveType(PropertySaveStatus v);\n void setObjType(ObjectType v);\n void setPropName(const std::string & v);\n void setDataType(PropDataType v);\n void setHasRange(bool v);\n void setIntRangeMin(int v);\n void setIntRangeMax(int v);\n void setRealRangeMin(double v);\n void setRealRangeMax(double v);\n //TODO: check range...\n void setIntValue(int v);\n void setRealValue(double v);\n void setStringValue(const std::string & v);\n //Print\n void printLEF(IOManager &io_manager) const;\n void printDEF(IOManager &io_manager) const;\n\n protected:\n /// @brief copy object\n void copy(PropertyDefinition const &rhs);\n /// @brief move object\n void move(PropertyDefinition &&rhs);\n /// @brief overload output stream\n friend OStreamBase &operator<<(OStreamBase &os, PropertyDefinition const &rhs);\n /// @brief overload input stream\n //friend IStreamBase &operator>>(IStreamBase &is, PropertyDefinition &rhs) {}\n\n private:\n //DATA\n SymbolIndex name_index_;\n PropertyType prop_type_;\n PropertyOrigin origin_type_;\n PropertySaveStatus save_type_;\n PropDataType data_type_;\n ObjectType obj_type_;\n bool has_range_;\n bool has_value_;\n union {\n IntRange int_range_;\n RealRange real_range_;\n } range_u_;\n union {\n SymbolIndex string_value_;\n int int_value_;\n double real_value_;\n } value_u_;\n};\n\n\n}" ({) "{" (struct_specifier) "struct IntRange {\n int min;\n int max;\n}" (struct) "struct" (type_identifier) "IntRange" (field_declaration_list) "{\n int min;\n int max;\n}" ({) "{" (field_declaration) "int min;" (primitive_type) "int" (field_identifier) "min" (;) ";" (field_declaration) "int max;" (primitive_type) "int" (field_identifier) "max" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct RealRange {\n double min;\n double max;\n}" (struct) "struct" (type_identifier) "RealRange" (field_declaration_list) "{\n double min;\n double max;\n}" ({) "{" (field_declaration) "double min;" (primitive_type) "double" (field_identifier) "min" (;) ";" (field_declaration) "double max;" (primitive_type) "double" (field_identifier) "max" (;) ";" (}) "}" (;) ";" (comment) "/**\n * @class PropertyDefinition\n * @brief for PROPERTYDEFINITIONS\n * [PROPERTYDEFINITIONS \n * [objectType propName propType [RANGE min max] [value | "stringValue"] ;] ... \n * END PROPERTYDEFINITIONS] \n * */" (function_definition) "class PropertyDefinition : public Object {\n public:\n using BaseType = Object;\n\n /// @brief default constructor\n PropertyDefinition();\n\n /// @brief constructor\n PropertyDefinition(Object* owner, UInt32 id);\n\n /// @brief destructor\n ~PropertyDefinition();\n\n /// @brief copy constructor\n PropertyDefinition(PropertyDefinition const &rhs);\n\n /// @brief move constructor\n PropertyDefinition(PropertyDefinition &&rhs) noexcept;\n\n /// @brief copy assignment\n PropertyDefinition &operator=(PropertyDefinition const &rhs);\n\n /// @brief move constructor\n PropertyDefinition &operator=(PropertyDefinition &&rhs) noexcept;\n /// @brief clone current object for extensibility.\n /// Users need to manage the pointer to avoid memory leakage.\n /// @return the pointer to the new object\n PropertyDefinition *clone() const;\n\n /// @brief summarize memory usage of the object in bytes\n UInt32 memory() const;\n\n //ACCESS\n //Get\n PropertyType getPropType() const;\n PropertyOrigin getPropOriginType() const;\n PropertySaveStatus getPropSaveType() const;\n const std::string & getPropName() const;\n PropDataType getDataType() const;\n ObjectType getObjType() const;\n bool getHasRange() const;\n bool getHasValue() const;\n int getIntRangeMin() const;\n int getIntRangeMax() const;\n double getRealRangeMin() const;\n double getRealRangeMax() const;\n int getIntValue() const;\n double getRealValue() const;\n std::string getStringValue() const;\n //Set\n void setPropType(PropertyType v);\n void setPropOriginType(PropertyOrigin v);\n void setPropSaveType(PropertySaveStatus v);\n void setObjType(ObjectType v);\n void setPropName(const std::string & v);\n void setDataType(PropDataType v);\n void setHasRange(bool v);\n void setIntRangeMin(int v);\n void setIntRangeMax(int v);\n void setRealRangeMin(double v);\n void setRealRangeMax(double v);\n //TODO: check range...\n void setIntValue(int v);\n void setRealValue(double v);\n void setStringValue(const std::string & v);\n //Print\n void printLEF(IOManager &io_manager) const;\n void printDEF(IOManager &io_manager) const;\n\n protected:\n /// @brief copy object\n void copy(PropertyDefinition const &rhs);\n /// @brief move object\n void move(PropertyDefinition &&rhs);\n /// @brief overload output stream\n friend OStreamBase &operator<<(OStreamBase &os, PropertyDefinition const &rhs);\n /// @brief overload input stream\n //friend IStreamBase &operator>>(IStreamBase &is, PropertyDefinition &rhs) {}\n\n private:\n //DATA\n SymbolIndex name_index_;\n PropertyType prop_type_;\n PropertyOrigin origin_type_;\n PropertySaveStatus save_type_;\n PropDataType data_type_;\n ObjectType obj_type_;\n bool has_range_;\n bool has_value_;\n union {\n IntRange int_range_;\n RealRange real_range_;\n } range_u_;\n union {\n SymbolIndex string_value_;\n int int_value_;\n double real_value_;\n } value_u_;\n}" (type_identifier) "class" (identifier) "PropertyDefinition" (ERROR) ": public Object" (:) ":" (identifier) "public" (identifier) "Object" (compound_statement) "{\n public:\n using BaseType = Object;\n\n /// @brief default constructor\n PropertyDefinition();\n\n /// @brief constructor\n PropertyDefinition(Object* owner, UInt32 id);\n\n /// @brief destructor\n ~PropertyDefinition();\n\n /// @brief copy constructor\n PropertyDefinition(PropertyDefinition const &rhs);\n\n /// @brief move constructor\n PropertyDefinition(PropertyDefinition &&rhs) noexcept;\n\n /// @brief copy assignment\n PropertyDefinition &operator=(PropertyDefinition const &rhs);\n\n /// @brief move constructor\n PropertyDefinition &operator=(PropertyDefinition &&rhs) noexcept;\n /// @brief clone current object for extensibility.\n /// Users need to manage the pointer to avoid memory leakage.\n /// @return the pointer to the new object\n PropertyDefinition *clone() const;\n\n /// @brief summarize memory usage of the object in bytes\n UInt32 memory() const;\n\n //ACCESS\n //Get\n PropertyType getPropType() const;\n PropertyOrigin getPropOriginType() const;\n PropertySaveStatus getPropSaveType() const;\n const std::string & getPropName() const;\n PropDataType getDataType() const;\n ObjectType getObjType() const;\n bool getHasRange() const;\n bool getHasValue() const;\n int getIntRangeMin() const;\n int getIntRangeMax() const;\n double getRealRangeMin() const;\n double getRealRangeMax() const;\n int getIntValue() const;\n double getRealValue() const;\n std::string getStringValue() const;\n //Set\n void setPropType(PropertyType v);\n void setPropOriginType(PropertyOrigin v);\n void setPropSaveType(PropertySaveStatus v);\n void setObjType(ObjectType v);\n void setPropName(const std::string & v);\n void setDataType(PropDataType v);\n void setHasRange(bool v);\n void setIntRangeMin(int v);\n void setIntRangeMax(int v);\n void setRealRangeMin(double v);\n void setRealRangeMax(double v);\n //TODO: check range...\n void setIntValue(int v);\n void setRealValue(double v);\n void setStringValue(const std::string & v);\n //Print\n void printLEF(IOManager &io_manager) const;\n void printDEF(IOManager &io_manager) const;\n\n protected:\n /// @brief copy object\n void copy(PropertyDefinition const &rhs);\n /// @brief move object\n void move(PropertyDefinition &&rhs);\n /// @brief overload output stream\n friend OStreamBase &operator<<(OStreamBase &os, PropertyDefinition const &rhs);\n /// @brief overload input stream\n //friend IStreamBase &operator>>(IStreamBase &is, PropertyDefinition &rhs) {}\n\n private:\n //DATA\n SymbolIndex name_index_;\n PropertyType prop_type_;\n PropertyOrigin origin_type_;\n PropertySaveStatus save_type_;\n PropDataType data_type_;\n ObjectType obj_type_;\n bool has_range_;\n bool has_value_;\n union {\n IntRange int_range_;\n RealRange real_range_;\n } range_u_;\n union {\n SymbolIndex string_value_;\n int int_value_;\n double real_value_;\n } value_u_;\n}" ({) "{" (labeled_statement) "public:\n using BaseType = Object;" (statement_identifier) "public" (:) ":" (declaration) "using BaseType = Object;" (type_identifier) "using" (init_declarator) "BaseType = Object" (identifier) "BaseType" (=) "=" (identifier) "Object" (;) ";" (comment) "/// @brief default constructor" (expression_statement) "PropertyDefinition();" (call_expression) "PropertyDefinition()" (identifier) "PropertyDefinition" (argument_list) "()" (() "(" ()) ")" (;) ";" (comment) "/// @brief constructor" (expression_statement) "PropertyDefinition(Object* owner, UInt32 id);" (call_expression) "PropertyDefinition(Object* owner, UInt32 id)" (identifier) "PropertyDefinition" (argument_list) "(Object* owner, UInt32 id)" (() "(" (binary_expression) "Object* owner" (identifier) "Object" (*) "*" (identifier) "owner" (,) "," (identifier) "UInt32" (ERROR) "id" (identifier) "id" ()) ")" (;) ";" (comment) "/// @brief destructor" (expression_statement) "~PropertyDefinition();" (unary_expression) "~PropertyDefinition()" (~) "~" (call_expression) "PropertyDefinition()" (identifier) "PropertyDefinition" (argument_list) "()" (() "(" ()) ")" (;) ";" (comment) "/// @brief copy constructor" (macro_type_specifier) "PropertyDefinition(PropertyDefinition const &rhs)" (identifier) "PropertyDefinition" (() "(" (type_descriptor) "PropertyDefinition const" (type_identifier) "PropertyDefinition" (type_qualifier) "const" (const) "const" (ERROR) "&rhs" (&) "&" (identifier) "rhs" ()) ")" (;) ";" (comment) "/// @brief move constructor" (expression_statement) "PropertyDefinition(PropertyDefinition &&rhs) noexcept;" (call_expression) "PropertyDefinition(PropertyDefinition &&rhs)" (identifier) "PropertyDefinition" (argument_list) "(PropertyDefinition &&rhs)" (() "(" (binary_expression) "PropertyDefinition &&rhs" (identifier) "PropertyDefinition" (&&) "&&" (identifier) "rhs" ()) ")" (ERROR) "noexcept" (identifier) "noexcept" (;) ";" (comment) "/// @brief copy assignment" (expression_statement) "PropertyDefinition &operator=(PropertyDefinition const &rhs);" (binary_expression) "PropertyDefinition &operator=(PropertyDefinition const &rhs)" (identifier) "PropertyDefinition" (&) "&" (assignment_expression) "operator=(PropertyDefinition const &rhs)" (identifier) "operator" (=) "=" (parenthesized_expression) "(PropertyDefinition const &rhs)" (() "(" (ERROR) "PropertyDefinition const" (type_descriptor) "PropertyDefinition const" (type_identifier) "PropertyDefinition" (type_qualifier) "const" (const) "const" (pointer_expression) "&rhs" (&) "&" (identifier) "rhs" ()) ")" (;) ";" (comment) "/// @brief move constructor" (expression_statement) "PropertyDefinition &operator=(PropertyDefinition &&rhs) noexcept;" (binary_expression) "PropertyDefinition &operator=(PropertyDefinition &&rhs)" (identifier) "PropertyDefinition" (&) "&" (assignment_expression) "operator=(PropertyDefinition &&rhs)" (identifier) "operator" (=) "=" (parenthesized_expression) "(PropertyDefinition &&rhs)" (() "(" (binary_expression) "PropertyDefinition &&rhs" (identifier) "PropertyDefinition" (&&) "&&" (identifier) "rhs" ()) ")" (ERROR) "noexcept" (identifier) "noexcept" (;) ";" (comment) "/// @brief clone current object for extensibility." (comment) "/// Users need to manage the pointer to avoid memory leakage." (comment) "/// @return the pointer to the new object" (declaration) "PropertyDefinition *clone() const;" (type_identifier) "PropertyDefinition" (pointer_declarator) "*clone() const" (*) "*" (function_declarator) "clone() const" (identifier) "clone" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (comment) "/// @brief summarize memory usage of the object in bytes" (ERROR) "UInt32 memory() const;\n\n //ACCESS\n //Get\n PropertyType getPropType() const;\n PropertyOrigin getPropOriginType() const;\n PropertySaveStatus getPropSaveType() const;\n const std::string & getPropName() const;\n PropDataType getDataType() const;\n ObjectType getObjType() const;\n bool getHasRange() const;\n bool getHasValue() const;\n int getIntRangeMin() const;\n int getIntRangeMax() const;\n double getRealRangeMin() const;\n double getRealRangeMax() const;\n int getIntValue() const;\n double getRealValue() const;\n std::string getStringValue() const;\n //Set\n void setPropType(PropertyType v);\n void setPropOriginType(PropertyOrigin v);\n void setPropSaveType(PropertySaveStatus v);\n void setObjType(ObjectType v);\n void setPropName(const std::string & v);\n void setDataType(PropDataType v);\n void setHasRange(bool v);\n void setIntRangeMin(int v);\n void setIntRangeMax(int v);\n void setRealRangeMin(double v);\n void setRealRangeMax(double v);\n //TODO: check range...\n void setIntValue(int v);\n void setRealValue(double v);\n void setStringValue(const std::string & v);\n //Print\n void printLEF(IOManager &io_manager) const;\n void printDEF(IOManager &io_manager) const;\n\n protected:\n /// @brief copy object\n void copy(PropertyDefinition const &rhs);\n /// @brief move object\n void move(PropertyDefinition &&rhs);\n /// @brief overload output stream\n friend OStreamBase &operator<<(OStreamBase &os, PropertyDefinition const &rhs);\n /// @brief overload input stream\n //friend IStreamBase &operator>>(IStreamBase &is, PropertyDefinition &rhs) {}\n\n private:\n //DATA\n SymbolIndex name_index_;\n PropertyType prop_type_;\n PropertyOrigin origin_type_;\n PropertySaveStatus save_type_;\n PropDataType data_type_;\n ObjectType obj_type_;\n bool has_range_;\n bool has_value_;\n union {\n IntRange int_range_;\n RealRange real_range_;\n } range_u_;\n union {\n SymbolIndex string_value_;\n int int_value_;\n double real_value_;\n } value_u_;" (type_identifier) "UInt32" (function_declarator) "memory()" (identifier) "memory" (parameter_list) "()" (() "(" ()) ")" (declaration) "const;\n\n //ACCESS\n //Get\n PropertyType getPropType() const;\n PropertyOrigin getPropOriginType() const;\n PropertySaveStatus getPropSaveType() const;\n const std::string & getPropName() const;\n PropDataType getDataType() const;\n ObjectType getObjType() const;\n bool getHasRange() const;\n bool getHasValue() const;\n int getIntRangeMin() const;\n int getIntRangeMax() const;\n double getRealRangeMin() const;\n double getRealRangeMax() const;\n int getIntValue() const;\n double getRealValue() const;\n std::string getStringValue() const;\n //Set\n void setPropType(PropertyType v);" (type_qualifier) "const" (const) "const" (ERROR) ";" (;) ";" (comment) "//ACCESS" (comment) "//Get" (type_identifier) "PropertyType" (ERROR) "getPropType() const;\n PropertyOrigin getPropOriginType() const;\n PropertySaveStatus getPropSaveType() const;\n const std::string & getPropName() const;\n PropDataType getDataType() const;\n ObjectType getObjType() const;\n bool getHasRange() const;\n bool getHasValue() const;\n int getIntRangeMin() const;\n int getIntRangeMax() const;\n double getRealRangeMin() const;\n double getRealRangeMax() const;\n int getIntValue() const;\n double getRealValue() const;\n std::string getStringValue() const;\n //Set\n void" (function_declarator) "getPropType() const" (identifier) "getPropType" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (identifier) "PropertyOrigin" (function_declarator) "getPropOriginType() const" (identifier) "getPropOriginType" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (identifier) "PropertySaveStatus" (function_declarator) "getPropSaveType() const" (identifier) "getPropSaveType" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (const) "const" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (&) "&" (function_declarator) "getPropName() const" (identifier) "getPropName" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (identifier) "PropDataType" (function_declarator) "getDataType() const" (identifier) "getDataType" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (identifier) "ObjectType" (function_declarator) "getObjType() const" (identifier) "getObjType" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (primitive_type) "bool" (function_declarator) "getHasRange() const" (identifier) "getHasRange" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (primitive_type) "bool" (function_declarator) "getHasValue() const" (identifier) "getHasValue" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (primitive_type) "int" (function_declarator) "getIntRangeMin() const" (identifier) "getIntRangeMin" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (primitive_type) "int" (function_declarator) "getIntRangeMax() const" (identifier) "getIntRangeMax" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (primitive_type) "double" (function_declarator) "getRealRangeMin() const" (identifier) "getRealRangeMin" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (primitive_type) "double" (function_declarator) "getRealRangeMax() const" (identifier) "getRealRangeMax" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (primitive_type) "int" (function_declarator) "getIntValue() const" (identifier) "getIntValue" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (primitive_type) "double" (function_declarator) "getRealValue() const" (identifier) "getRealValue" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (function_declarator) "getStringValue() const" (identifier) "getStringValue" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (comment) "//Set" (primitive_type) "void" (function_declarator) "setPropType(PropertyType v)" (identifier) "setPropType" (parameter_list) "(PropertyType v)" (() "(" (parameter_declaration) "PropertyType v" (type_identifier) "PropertyType" (identifier) "v" ()) ")" (;) ";" (declaration) "void setPropOriginType(PropertyOrigin v);" (primitive_type) "void" (function_declarator) "setPropOriginType(PropertyOrigin v)" (identifier) "setPropOriginType" (parameter_list) "(PropertyOrigin v)" (() "(" (parameter_declaration) "PropertyOrigin v" (type_identifier) "PropertyOrigin" (identifier) "v" ()) ")" (;) ";" (declaration) "void setPropSaveType(PropertySaveStatus v);" (primitive_type) "void" (function_declarator) "setPropSaveType(PropertySaveStatus v)" (identifier) "setPropSaveType" (parameter_list) "(PropertySaveStatus v)" (() "(" (parameter_declaration) "PropertySaveStatus v" (type_identifier) "PropertySaveStatus" (identifier) "v" ()) ")" (;) ";" (declaration) "void setObjType(ObjectType v);" (primitive_type) "void" (function_declarator) "setObjType(ObjectType v)" (identifier) "setObjType" (parameter_list) "(ObjectType v)" (() "(" (parameter_declaration) "ObjectType v" (type_identifier) "ObjectType" (identifier) "v" ()) ")" (;) ";" (declaration) "void setPropName(const std::string & v);" (primitive_type) "void" (function_declarator) "setPropName(const std::string & v)" (identifier) "setPropName" (parameter_list) "(const std::string & v)" (() "(" (parameter_declaration) "const std::string & v" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string &" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "v" ()) ")" (;) ";" (declaration) "void setDataType(PropDataType v);" (primitive_type) "void" (function_declarator) "setDataType(PropDataType v)" (identifier) "setDataType" (parameter_list) "(PropDataType v)" (() "(" (parameter_declaration) "PropDataType v" (type_identifier) "PropDataType" (identifier) "v" ()) ")" (;) ";" (declaration) "void setHasRange(bool v);" (primitive_type) "void" (function_declarator) "setHasRange(bool v)" (identifier) "setHasRange" (parameter_list) "(bool v)" (() "(" (parameter_declaration) "bool v" (primitive_type) "bool" (identifier) "v" ()) ")" (;) ";" (declaration) "void setIntRangeMin(int v);" (primitive_type) "void" (function_declarator) "setIntRangeMin(int v)" (identifier) "setIntRangeMin" (parameter_list) "(int v)" (() "(" (parameter_declaration) "int v" (primitive_type) "int" (identifier) "v" ()) ")" (;) ";" (declaration) "void setIntRangeMax(int v);" (primitive_type) "void" (function_declarator) "setIntRangeMax(int v)" (identifier) "setIntRangeMax" (parameter_list) "(int v)" (() "(" (parameter_declaration) "int v" (primitive_type) "int" (identifier) "v" ()) ")" (;) ";" (declaration) "void setRealRangeMin(double v);" (primitive_type) "void" (function_declarator) "setRealRangeMin(double v)" (identifier) "setRealRangeMin" (parameter_list) "(double v)" (() "(" (parameter_declaration) "double v" (primitive_type) "double" (identifier) "v" ()) ")" (;) ";" (declaration) "void setRealRangeMax(double v);" (primitive_type) "void" (function_declarator) "setRealRangeMax(double v)" (identifier) "setRealRangeMax" (parameter_list) "(double v)" (() "(" (parameter_declaration) "double v" (primitive_type) "double" (identifier) "v" ()) ")" (;) ";" (comment) "//TODO: check range..." (declaration) "void setIntValue(int v);" (primitive_type) "void" (function_declarator) "setIntValue(int v)" (identifier) "setIntValue" (parameter_list) "(int v)" (() "(" (parameter_declaration) "int v" (primitive_type) "int" (identifier) "v" ()) ")" (;) ";" (declaration) "void setRealValue(double v);" (primitive_type) "void" (function_declarator) "setRealValue(double v)" (identifier) "setRealValue" (parameter_list) "(double v)" (() "(" (parameter_declaration) "double v" (primitive_type) "double" (identifier) "v" ()) ")" (;) ";" (declaration) "void setStringValue(const std::string & v);" (primitive_type) "void" (function_declarator) "setStringValue(const std::string & v)" (identifier) "setStringValue" (parameter_list) "(const std::string & v)" (() "(" (parameter_declaration) "const std::string & v" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string &" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "v" ()) ")" (;) ";" (comment) "//Print" (ERROR) "void printLEF(IOManager &io_manager) const;\n void printDEF(IOManager &io_manager) const;\n\n protected:" (primitive_type) "void" (function_declarator) "printLEF(IOManager &io_manager) const" (identifier) "printLEF" (parameter_list) "(IOManager &io_manager)" (() "(" (parameter_declaration) "IOManager &io_manager" (type_identifier) "IOManager" (ERROR) "&" (&) "&" (identifier) "io_manager" ()) ")" (identifier) "const" (;) ";" (primitive_type) "void" (ERROR) "printDEF(IOManager &io_manager) const;" (function_declarator) "printDEF(IOManager &io_manager) const" (identifier) "printDEF" (parameter_list) "(IOManager &io_manager)" (() "(" (parameter_declaration) "IOManager &io_manager" (type_identifier) "IOManager" (ERROR) "&" (&) "&" (identifier) "io_manager" ()) ")" (identifier) "const" (;) ";" (identifier) "protected" (:) ":" (comment) "/// @brief copy object" (declaration) "void copy(PropertyDefinition const &rhs);" (primitive_type) "void" (function_declarator) "copy(PropertyDefinition const &rhs)" (identifier) "copy" (parameter_list) "(PropertyDefinition const &rhs)" (() "(" (parameter_declaration) "PropertyDefinition const &rhs" (type_identifier) "PropertyDefinition" (type_qualifier) "const" (const) "const" (ERROR) "&" (&) "&" (identifier) "rhs" ()) ")" (;) ";" (comment) "/// @brief move object" (declaration) "void move(PropertyDefinition &&rhs);" (primitive_type) "void" (function_declarator) "move(PropertyDefinition &&rhs)" (identifier) "move" (parameter_list) "(PropertyDefinition &&rhs)" (() "(" (parameter_declaration) "PropertyDefinition &&rhs" (type_identifier) "PropertyDefinition" (ERROR) "&&" (&&) "&&" (identifier) "rhs" ()) ")" (;) ";" (comment) "/// @brief overload output stream" (declaration) "friend OStreamBase &operator<<(OStreamBase &os, PropertyDefinition const &rhs);" (type_identifier) "friend" (identifier) "OStreamBase" (ERROR) "&operator<<(OStreamBase &os" (&) "&" (identifier) "operator" (<<) "<<" (() "(" (identifier) "OStreamBase" (&) "&" (identifier) "os" (,) "," (identifier) "PropertyDefinition" (ERROR) "const &rhs)" (identifier) "const" (&) "&" (identifier) "rhs" ()) ")" (;) ";" (comment) "/// @brief overload input stream" (comment) "//friend IStreamBase &operator>>(IStreamBase &is, PropertyDefinition &rhs) {}" (declaration) "private:\n //DATA\n SymbolIndex name_index_;" (type_identifier) "private" (ERROR) ":" (:) ":" (comment) "//DATA" (ERROR) "SymbolIndex" (identifier) "SymbolIndex" (identifier) "name_index_" (;) ";" (declaration) "PropertyType prop_type_;" (type_identifier) "PropertyType" (identifier) "prop_type_" (;) ";" (declaration) "PropertyOrigin origin_type_;" (type_identifier) "PropertyOrigin" (identifier) "origin_type_" (;) ";" (declaration) "PropertySaveStatus save_type_;" (type_identifier) "PropertySaveStatus" (identifier) "save_type_" (;) ";" (declaration) "PropDataType data_type_;" (type_identifier) "PropDataType" (identifier) "data_type_" (;) ";" (declaration) "ObjectType obj_type_;" (type_identifier) "ObjectType" (identifier) "obj_type_" (;) ";" (declaration) "bool has_range_;" (primitive_type) "bool" (identifier) "has_range_" (;) ";" (declaration) "bool has_value_;" (primitive_type) "bool" (identifier) "has_value_" (;) ";" (declaration) "union {\n IntRange int_range_;\n RealRange real_range_;\n } range_u_;" (union_specifier) "union {\n IntRange int_range_;\n RealRange real_range_;\n }" (union) "union" (field_declaration_list) "{\n IntRange int_range_;\n RealRange real_range_;\n }" ({) "{" (field_declaration) "IntRange int_range_;" (type_identifier) "IntRange" (field_identifier) "int_range_" (;) ";" (field_declaration) "RealRange real_range_;" (type_identifier) "RealRange" (field_identifier) "real_range_" (;) ";" (}) "}" (identifier) "range_u_" (;) ";" (declaration) "union {\n SymbolIndex string_value_;\n int int_value_;\n double real_value_;\n } value_u_;" (union_specifier) "union {\n SymbolIndex string_value_;\n int int_value_;\n double real_value_;\n }" (union) "union" (field_declaration_list) "{\n SymbolIndex string_value_;\n int int_value_;\n double real_value_;\n }" ({) "{" (field_declaration) "SymbolIndex string_value_;" (type_identifier) "SymbolIndex" (field_identifier) "string_value_" (;) ";" (field_declaration) "int int_value_;" (primitive_type) "int" (field_identifier) "int_value_" (;) ";" (field_declaration) "double real_value_;" (primitive_type) "double" (field_identifier) "real_value_" (;) ";" (}) "}" (identifier) "value_u_" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (comment) "// namespace db " (}) "}" (comment) "// namespace open_edi" (#endif) "#endif"
682
21
{"language": "c", "success": true, "metadata": {"lines": 126, "avg_line_length": 29.87, "nodes": 394, "errors": 0, "source_hash": "a3410d1a465b789a70242ba24f3866b9ab80ce0db77519dce9de8616b999536a", "categorized_nodes": 281}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef EDI_DB_UTIL_PROPERTYDEFINITION_H_\n#define EDI_DB_UTIL_PROPERTYDEFINITION_H_\n\n#include \"db/core/object.h\"\n#include \"util/util.h\"\n#include \"db/tech/type_def.h\"\n#include \"util/io_manager.h\"\n\nnamespace open_edi {\nnamespace db {\n\nstruct IntRange {\n int min;\n int max;\n};\n\nstruct RealRange {\n double min;\n double max;\n};\n\n/**\n * @class PropertyDefinition\n * @brief for PROPERTYDEFINITIONS\n * [PROPERTYDEFINITIONS \n * [objectType propName propType [RANGE min max] [value | \"stringValue\"] ;] ... \n * END PROPERTYDEFINITIONS] \n * */\nclass PropertyDefinition : public Object {\n public:\n using BaseType = Object;\n\n /// @brief default constructor\n PropertyDefinition();\n\n /// @brief constructor\n PropertyDefinition(Object* owner, UInt32 id);\n\n /// @brief destructor\n ~PropertyDefinition();\n\n /// @brief copy constructor\n PropertyDefinition(PropertyDefinition const &rhs);\n\n /// @brief move constructor\n PropertyDefinition(PropertyDefinition &&rhs) noexcept;\n\n /// @brief copy assignment\n PropertyDefinition &operator=(PropertyDefinition const &rhs);\n\n /// @brief move constructor\n PropertyDefinition &operator=(PropertyDefinition &&rhs) noexcept;\n /// @brief clone current object for extensibility.\n /// Users need to manage the pointer to avoid memory leakage.\n /// @return the pointer to the new object\n PropertyDefinition *clone() const;\n\n /// @brief summarize memory usage of the object in bytes\n UInt32 memory() const;\n\n //ACCESS\n //Get\n PropertyType getPropType() const;\n PropertyOrigin getPropOriginType() const;\n PropertySaveStatus getPropSaveType() const;\n const std::string & getPropName() const;\n PropDataType getDataType() const;\n ObjectType getObjType() const;\n bool getHasRange() const;\n bool getHasValue() const;\n int getIntRangeMin() const;\n int getIntRangeMax() const;\n double getRealRangeMin() const;\n double getRealRangeMax() const;\n int getIntValue() const;\n double getRealValue() const;\n std::string getStringValue() const;\n //Set\n void setPropType(PropertyType v);\n void setPropOriginType(PropertyOrigin v);\n void setPropSaveType(PropertySaveStatus v);\n void setObjType(ObjectType v);\n void setPropName(const std::string & v);\n void setDataType(PropDataType v);\n void setHasRange(bool v);\n void setIntRangeMin(int v);\n void setIntRangeMax(int v);\n void setRealRangeMin(double v);\n void setRealRangeMax(double v);\n //TODO: check range...\n void setIntValue(int v);\n void setRealValue(double v);\n void setStringValue(const std::string & v);\n //Print\n void printLEF(IOManager &io_manager) const;\n void printDEF(IOManager &io_manager) const;\n\n protected:\n /// @brief copy object\n void copy(PropertyDefinition const &rhs);\n /// @brief move object\n void move(PropertyDefinition &&rhs);\n /// @brief overload output stream\n friend OStreamBase &operator<<(OStreamBase &os, PropertyDefinition const &rhs);\n /// @brief overload input stream\n //friend IStreamBase &operator>>(IStreamBase &is, PropertyDefinition &rhs) {}\n\n private:\n //DATA\n SymbolIndex name_index_;\n PropertyType prop_type_;\n PropertyOrigin origin_type_;\n PropertySaveStatus save_type_;\n PropDataType data_type_;\n ObjectType obj_type_;\n bool has_range_;\n bool has_value_;\n union {\n IntRange int_range_;\n RealRange real_range_;\n } range_u_;\n union {\n SymbolIndex string_value_;\n int int_value_;\n double real_value_;\n } value_u_;\n};\n\n\n} // namespace db \n} // namespace open_edi\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 393], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 144, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 7}}, {"id": 2, "type": "identifier", "text": "EDI_DB_UTIL_PROPERTYDEFINITION_H_", "parent": 0, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 41}}, {"id": 3, "type": "preproc_def", "text": "#define EDI_DB_UTIL_PROPERTYDEFINITION_H_\n", "parent": 0, "children": [4, 5], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 7}}, {"id": 5, "type": "identifier", "text": "EDI_DB_UTIL_PROPERTYDEFINITION_H_", "parent": 3, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 41}}, {"id": 6, "type": "preproc_include", "text": "#include \"db/core/object.h\"\n", "parent": 0, "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": "\"db/core/object.h\"", "parent": 6, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 27}}, {"id": 9, "type": "preproc_include", "text": "#include \"util/util.h\"\n", "parent": 0, "children": [10, 11], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"util/util.h\"", "parent": 9, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 22}}, {"id": 12, "type": "preproc_include", "text": "#include \"db/tech/type_def.h\"\n", "parent": 0, "children": [13, 14], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"db/tech/type_def.h\"", "parent": 12, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 29}}, {"id": 15, "type": "preproc_include", "text": "#include \"util/io_manager.h\"\n", "parent": 0, "children": [16, 17], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 8}}, {"id": 17, "type": "string_literal", "text": "\"util/io_manager.h\"", "parent": 15, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 28}}, {"id": 18, "type": "function_definition", "text": "namespace open_edi {\nnamespace db {\n\nstruct IntRange {\n int min;\n int max;\n};\n\nstruct RealRange {\n double min;\n double max;\n};\n\n/**\n * @class PropertyDefinition\n * @brief for PROPERTYDEFINITIONS\n * [PROPERTYDEFINITIONS \n * [objectType propName propType [RANGE min max] [value | \"stringValue\"] ;] ... \n * END PROPERTYDEFINITIONS] \n * */\nclass PropertyDefinition : public Object {\n public:\n using BaseType = Object;\n\n /// @brief default constructor\n PropertyDefinition();\n\n /// @brief constructor\n PropertyDefinition(Object* owner, UInt32 id);\n\n /// @brief destructor\n ~PropertyDefinition();\n\n /// @brief copy constructor\n PropertyDefinition(PropertyDefinition const &rhs);\n\n /// @brief move constructor\n PropertyDefinition(PropertyDefinition &&rhs) noexcept;\n\n /// @brief copy assignment\n PropertyDefinition &operator=(PropertyDefinition const &rhs);\n\n /// @brief move constructor\n PropertyDefinition &operator=(PropertyDefinition &&rhs) noexcept;\n /// @brief clone current object for extensibility.\n /// Users need to manage the pointer to avoid memory leakage.\n /// @return the pointer to the new object\n PropertyDefinition *clone() const;\n\n /// @brief summarize memory usage of the object in bytes\n UInt32 memory() const;\n\n //ACCESS\n //Get\n PropertyType getPropType() const;\n PropertyOrigin getPropOriginType() const;\n PropertySaveStatus getPropSaveType() const;\n const std::string & getPropName() const;\n PropDataType getDataType() const;\n ObjectType getObjType() const;\n bool getHasRange() const;\n bool getHasValue() const;\n int getIntRangeMin() const;\n int getIntRangeMax() const;\n double getRealRangeMin() const;\n double getRealRangeMax() const;\n int getIntValue() const;\n double getRealValue() const;\n std::string getStringValue() const;\n //Set\n void setPropType(PropertyType v);\n void setPropOriginType(PropertyOrigin v);\n void setPropSaveType(PropertySaveStatus v);\n void setObjType(ObjectType v);\n void setPropName(const std::string & v);\n void setDataType(PropDataType v);\n void setHasRange(bool v);\n void setIntRangeMin(int v);\n void setIntRangeMax(int v);\n void setRealRangeMin(double v);\n void setRealRangeMax(double v);\n //TODO: check range...\n void setIntValue(int v);\n void setRealValue(double v);\n void setStringValue(const std::string & v);\n //Print\n void printLEF(IOManager &io_manager) const;\n void printDEF(IOManager &io_manager) const;\n\n protected:\n /// @brief copy object\n void copy(PropertyDefinition const &rhs);\n /// @brief move object\n void move(PropertyDefinition &&rhs);\n /// @brief overload output stream\n friend OStreamBase &operator<<(OStreamBase &os, PropertyDefinition const &rhs);\n /// @brief overload input stream\n //friend IStreamBase &operator>>(IStreamBase &is, PropertyDefinition &rhs) {}\n\n private:\n //DATA\n SymbolIndex name_index_;\n PropertyType prop_type_;\n PropertyOrigin origin_type_;\n PropertySaveStatus save_type_;\n PropDataType data_type_;\n ObjectType obj_type_;\n bool has_range_;\n bool has_value_;\n union {\n IntRange int_range_;\n RealRange real_range_;\n } range_u_;\n union {\n SymbolIndex string_value_;\n int int_value_;\n double real_value_;\n } value_u_;\n};\n\n\n} // namespace db \n}", "parent": 0, "children": [19, 20], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 142, "column": 1}}, {"id": 19, "type": "type_identifier", "text": "namespace", "parent": 18, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 9}}, {"id": 20, "type": "identifier", "text": "open_edi", "parent": 18, "children": [], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 18}}, {"id": 21, "type": "function_definition", "text": "namespace db {\n\nstruct IntRange {\n int min;\n int max;\n};\n\nstruct RealRange {\n double min;\n double max;\n};\n\n/**\n * @class PropertyDefinition\n * @brief for PROPERTYDEFINITIONS\n * [PROPERTYDEFINITIONS \n * [objectType propName propType [RANGE min max] [value | \"stringValue\"] ;] ... \n * END PROPERTYDEFINITIONS] \n * */\nclass PropertyDefinition : public Object {\n public:\n using BaseType = Object;\n\n /// @brief default constructor\n PropertyDefinition();\n\n /// @brief constructor\n PropertyDefinition(Object* owner, UInt32 id);\n\n /// @brief destructor\n ~PropertyDefinition();\n\n /// @brief copy constructor\n PropertyDefinition(PropertyDefinition const &rhs);\n\n /// @brief move constructor\n PropertyDefinition(PropertyDefinition &&rhs) noexcept;\n\n /// @brief copy assignment\n PropertyDefinition &operator=(PropertyDefinition const &rhs);\n\n /// @brief move constructor\n PropertyDefinition &operator=(PropertyDefinition &&rhs) noexcept;\n /// @brief clone current object for extensibility.\n /// Users need to manage the pointer to avoid memory leakage.\n /// @return the pointer to the new object\n PropertyDefinition *clone() const;\n\n /// @brief summarize memory usage of the object in bytes\n UInt32 memory() const;\n\n //ACCESS\n //Get\n PropertyType getPropType() const;\n PropertyOrigin getPropOriginType() const;\n PropertySaveStatus getPropSaveType() const;\n const std::string & getPropName() const;\n PropDataType getDataType() const;\n ObjectType getObjType() const;\n bool getHasRange() const;\n bool getHasValue() const;\n int getIntRangeMin() const;\n int getIntRangeMax() const;\n double getRealRangeMin() const;\n double getRealRangeMax() const;\n int getIntValue() const;\n double getRealValue() const;\n std::string getStringValue() const;\n //Set\n void setPropType(PropertyType v);\n void setPropOriginType(PropertyOrigin v);\n void setPropSaveType(PropertySaveStatus v);\n void setObjType(ObjectType v);\n void setPropName(const std::string & v);\n void setDataType(PropDataType v);\n void setHasRange(bool v);\n void setIntRangeMin(int v);\n void setIntRangeMax(int v);\n void setRealRangeMin(double v);\n void setRealRangeMax(double v);\n //TODO: check range...\n void setIntValue(int v);\n void setRealValue(double v);\n void setStringValue(const std::string & v);\n //Print\n void printLEF(IOManager &io_manager) const;\n void printDEF(IOManager &io_manager) const;\n\n protected:\n /// @brief copy object\n void copy(PropertyDefinition const &rhs);\n /// @brief move object\n void move(PropertyDefinition &&rhs);\n /// @brief overload output stream\n friend OStreamBase &operator<<(OStreamBase &os, PropertyDefinition const &rhs);\n /// @brief overload input stream\n //friend IStreamBase &operator>>(IStreamBase &is, PropertyDefinition &rhs) {}\n\n private:\n //DATA\n SymbolIndex name_index_;\n PropertyType prop_type_;\n PropertyOrigin origin_type_;\n PropertySaveStatus save_type_;\n PropDataType data_type_;\n ObjectType obj_type_;\n bool has_range_;\n bool has_value_;\n union {\n IntRange int_range_;\n RealRange real_range_;\n } range_u_;\n union {\n SymbolIndex string_value_;\n int int_value_;\n double real_value_;\n } value_u_;\n};\n\n\n}", "parent": 18, "children": [22, 23], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 141, "column": 1}}, {"id": 22, "type": "type_identifier", "text": "namespace", "parent": 21, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 9}}, {"id": 23, "type": "identifier", "text": "db", "parent": 21, "children": [], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 12}}, {"id": 24, "type": "struct_specifier", "text": "struct IntRange {\n int min;\n int max;\n}", "parent": 21, "children": [25, 26], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 25, "type": "struct", "text": "struct", "parent": 24, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 6}}, {"id": 26, "type": "type_identifier", "text": "IntRange", "parent": 24, "children": [], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 15}}, {"id": 27, "type": "field_declaration", "text": "int min;", "parent": 24, "children": [28, 29], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 10}}, {"id": 28, "type": "primitive_type", "text": "int", "parent": 27, "children": [], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 5}}, {"id": 29, "type": "field_identifier", "text": "min", "parent": 27, "children": [], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 9}}, {"id": 30, "type": "field_declaration", "text": "int max;", "parent": 24, "children": [31, 32], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 10}}, {"id": 31, "type": "primitive_type", "text": "int", "parent": 30, "children": [], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 5}}, {"id": 32, "type": "field_identifier", "text": "max", "parent": 30, "children": [], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 9}}, {"id": 33, "type": "struct_specifier", "text": "struct RealRange {\n double min;\n double max;\n}", "parent": 21, "children": [34, 35], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 31, "column": 1}}, {"id": 34, "type": "struct", "text": "struct", "parent": 33, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 6}}, {"id": 35, "type": "type_identifier", "text": "RealRange", "parent": 33, "children": [], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 16}}, {"id": 36, "type": "field_declaration", "text": "double min;", "parent": 33, "children": [37, 38], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 13}}, {"id": 37, "type": "primitive_type", "text": "double", "parent": 36, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 8}}, {"id": 38, "type": "field_identifier", "text": "min", "parent": 36, "children": [], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 12}}, {"id": 39, "type": "field_declaration", "text": "double max;", "parent": 33, "children": [40, 41], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 13}}, {"id": 40, "type": "primitive_type", "text": "double", "parent": 39, "children": [], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 8}}, {"id": 41, "type": "field_identifier", "text": "max", "parent": 39, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 12}}, {"id": 42, "type": "function_definition", "text": "class PropertyDefinition : public Object {\n public:\n using BaseType = Object;\n\n /// @brief default constructor\n PropertyDefinition();\n\n /// @brief constructor\n PropertyDefinition(Object* owner, UInt32 id);\n\n /// @brief destructor\n ~PropertyDefinition();\n\n /// @brief copy constructor\n PropertyDefinition(PropertyDefinition const &rhs);\n\n /// @brief move constructor\n PropertyDefinition(PropertyDefinition &&rhs) noexcept;\n\n /// @brief copy assignment\n PropertyDefinition &operator=(PropertyDefinition const &rhs);\n\n /// @brief move constructor\n PropertyDefinition &operator=(PropertyDefinition &&rhs) noexcept;\n /// @brief clone current object for extensibility.\n /// Users need to manage the pointer to avoid memory leakage.\n /// @return the pointer to the new object\n PropertyDefinition *clone() const;\n\n /// @brief summarize memory usage of the object in bytes\n UInt32 memory() const;\n\n //ACCESS\n //Get\n PropertyType getPropType() const;\n PropertyOrigin getPropOriginType() const;\n PropertySaveStatus getPropSaveType() const;\n const std::string & getPropName() const;\n PropDataType getDataType() const;\n ObjectType getObjType() const;\n bool getHasRange() const;\n bool getHasValue() const;\n int getIntRangeMin() const;\n int getIntRangeMax() const;\n double getRealRangeMin() const;\n double getRealRangeMax() const;\n int getIntValue() const;\n double getRealValue() const;\n std::string getStringValue() const;\n //Set\n void setPropType(PropertyType v);\n void setPropOriginType(PropertyOrigin v);\n void setPropSaveType(PropertySaveStatus v);\n void setObjType(ObjectType v);\n void setPropName(const std::string & v);\n void setDataType(PropDataType v);\n void setHasRange(bool v);\n void setIntRangeMin(int v);\n void setIntRangeMax(int v);\n void setRealRangeMin(double v);\n void setRealRangeMax(double v);\n //TODO: check range...\n void setIntValue(int v);\n void setRealValue(double v);\n void setStringValue(const std::string & v);\n //Print\n void printLEF(IOManager &io_manager) const;\n void printDEF(IOManager &io_manager) const;\n\n protected:\n /// @brief copy object\n void copy(PropertyDefinition const &rhs);\n /// @brief move object\n void move(PropertyDefinition &&rhs);\n /// @brief overload output stream\n friend OStreamBase &operator<<(OStreamBase &os, PropertyDefinition const &rhs);\n /// @brief overload input stream\n //friend IStreamBase &operator>>(IStreamBase &is, PropertyDefinition &rhs) {}\n\n private:\n //DATA\n SymbolIndex name_index_;\n PropertyType prop_type_;\n PropertyOrigin origin_type_;\n PropertySaveStatus save_type_;\n PropDataType data_type_;\n ObjectType obj_type_;\n bool has_range_;\n bool has_value_;\n union {\n IntRange int_range_;\n RealRange real_range_;\n } range_u_;\n union {\n SymbolIndex string_value_;\n int int_value_;\n double real_value_;\n } value_u_;\n}", "parent": 21, "children": [43, 44], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 138, "column": 1}}, {"id": 43, "type": "identifier", "text": "PropertyDefinition", "parent": 42, "children": [], "start_point": {"row": 40, "column": 6}, "end_point": {"row": 40, "column": 24}}, {"id": 44, "type": "ERROR", "text": ": public Object", "parent": 42, "children": [45], "start_point": {"row": 40, "column": 25}, "end_point": {"row": 40, "column": 40}}, {"id": 45, "type": "identifier", "text": "Object", "parent": 44, "children": [], "start_point": {"row": 40, "column": 34}, "end_point": {"row": 40, "column": 40}}, {"id": 46, "type": "labeled_statement", "text": "public:\n using BaseType = Object;", "parent": 42, "children": [47], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 42, "column": 28}}, {"id": 47, "type": "declaration", "text": "using BaseType = Object;", "parent": 46, "children": [48, 49], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 28}}, {"id": 48, "type": "type_identifier", "text": "using", "parent": 47, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 9}}, {"id": 49, "type": "init_declarator", "text": "BaseType = Object", "parent": 47, "children": [50, 51, 52], "start_point": {"row": 42, "column": 10}, "end_point": {"row": 42, "column": 27}}, {"id": 50, "type": "identifier", "text": "BaseType", "parent": 49, "children": [], "start_point": {"row": 42, "column": 10}, "end_point": {"row": 42, "column": 18}}, {"id": 51, "type": "=", "text": "=", "parent": 49, "children": [], "start_point": {"row": 42, "column": 19}, "end_point": {"row": 42, "column": 20}}, {"id": 52, "type": "identifier", "text": "Object", "parent": 49, "children": [], "start_point": {"row": 42, "column": 21}, "end_point": {"row": 42, "column": 27}}, {"id": 53, "type": "call_expression", "text": "PropertyDefinition()", "parent": 42, "children": [54, 55], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 24}}, {"id": 54, "type": "identifier", "text": "PropertyDefinition", "parent": 53, "children": [], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 22}}, {"id": 55, "type": "argument_list", "text": "()", "parent": 53, "children": [], "start_point": {"row": 45, "column": 22}, "end_point": {"row": 45, "column": 24}}, {"id": 56, "type": "call_expression", "text": "PropertyDefinition(Object* owner, UInt32 id)", "parent": 42, "children": [57, 58], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 48}}, {"id": 57, "type": "identifier", "text": "PropertyDefinition", "parent": 56, "children": [], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 22}}, {"id": 58, "type": "argument_list", "text": "(Object* owner, UInt32 id)", "parent": 56, "children": [59, 63, 64], "start_point": {"row": 48, "column": 22}, "end_point": {"row": 48, "column": 48}}, {"id": 59, "type": "binary_expression", "text": "Object* owner", "parent": 58, "children": [60, 61, 62], "start_point": {"row": 48, "column": 23}, "end_point": {"row": 48, "column": 36}}, {"id": 60, "type": "identifier", "text": "Object", "parent": 59, "children": [], "start_point": {"row": 48, "column": 23}, "end_point": {"row": 48, "column": 29}}, {"id": 61, "type": "*", "text": "*", "parent": 59, "children": [], "start_point": {"row": 48, "column": 29}, "end_point": {"row": 48, "column": 30}}, {"id": 62, "type": "identifier", "text": "owner", "parent": 59, "children": [], "start_point": {"row": 48, "column": 31}, "end_point": {"row": 48, "column": 36}}, {"id": 63, "type": "identifier", "text": "UInt32", "parent": 58, "children": [], "start_point": {"row": 48, "column": 38}, "end_point": {"row": 48, "column": 44}}, {"id": 64, "type": "ERROR", "text": "id", "parent": 58, "children": [65], "start_point": {"row": 48, "column": 45}, "end_point": {"row": 48, "column": 47}}, {"id": 65, "type": "identifier", "text": "id", "parent": 64, "children": [], "start_point": {"row": 48, "column": 45}, "end_point": {"row": 48, "column": 47}}, {"id": 66, "type": "unary_expression", "text": "~PropertyDefinition()", "parent": 42, "children": [67, 68], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 25}}, {"id": 67, "type": "~", "text": "~", "parent": 66, "children": [], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 5}}, {"id": 68, "type": "call_expression", "text": "PropertyDefinition()", "parent": 66, "children": [69, 70], "start_point": {"row": 51, "column": 5}, "end_point": {"row": 51, "column": 25}}, {"id": 69, "type": "identifier", "text": "PropertyDefinition", "parent": 68, "children": [], "start_point": {"row": 51, "column": 5}, "end_point": {"row": 51, "column": 23}}, {"id": 70, "type": "argument_list", "text": "()", "parent": 68, "children": [], "start_point": {"row": 51, "column": 23}, "end_point": {"row": 51, "column": 25}}, {"id": 71, "type": "macro_type_specifier", "text": "PropertyDefinition(PropertyDefinition const &rhs)", "parent": 42, "children": [72, 73, 75], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 53}}, {"id": 72, "type": "identifier", "text": "PropertyDefinition", "parent": 71, "children": [], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 22}}, {"id": 73, "type": "type_descriptor", "text": "PropertyDefinition const", "parent": 71, "children": [74], "start_point": {"row": 54, "column": 23}, "end_point": {"row": 54, "column": 47}}, {"id": 74, "type": "type_identifier", "text": "PropertyDefinition", "parent": 73, "children": [], "start_point": {"row": 54, "column": 23}, "end_point": {"row": 54, "column": 41}}, {"id": 75, "type": "ERROR", "text": "&rhs", "parent": 71, "children": [76], "start_point": {"row": 54, "column": 48}, "end_point": {"row": 54, "column": 52}}, {"id": 76, "type": "identifier", "text": "rhs", "parent": 75, "children": [], "start_point": {"row": 54, "column": 49}, "end_point": {"row": 54, "column": 52}}, {"id": 77, "type": "call_expression", "text": "PropertyDefinition(PropertyDefinition &&rhs)", "parent": 42, "children": [78, 79], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 48}}, {"id": 78, "type": "identifier", "text": "PropertyDefinition", "parent": 77, "children": [], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 22}}, {"id": 79, "type": "argument_list", "text": "(PropertyDefinition &&rhs)", "parent": 77, "children": [80], "start_point": {"row": 57, "column": 22}, "end_point": {"row": 57, "column": 48}}, {"id": 80, "type": "binary_expression", "text": "PropertyDefinition &&rhs", "parent": 79, "children": [81, 82, 83], "start_point": {"row": 57, "column": 23}, "end_point": {"row": 57, "column": 47}}, {"id": 81, "type": "identifier", "text": "PropertyDefinition", "parent": 80, "children": [], "start_point": {"row": 57, "column": 23}, "end_point": {"row": 57, "column": 41}}, {"id": 82, "type": "&&", "text": "&&", "parent": 80, "children": [], "start_point": {"row": 57, "column": 42}, "end_point": {"row": 57, "column": 44}}, {"id": 83, "type": "identifier", "text": "rhs", "parent": 80, "children": [], "start_point": {"row": 57, "column": 44}, "end_point": {"row": 57, "column": 47}}, {"id": 84, "type": "ERROR", "text": "noexcept", "parent": 42, "children": [85], "start_point": {"row": 57, "column": 49}, "end_point": {"row": 57, "column": 57}}, {"id": 85, "type": "identifier", "text": "noexcept", "parent": 84, "children": [], "start_point": {"row": 57, "column": 49}, "end_point": {"row": 57, "column": 57}}, {"id": 86, "type": "binary_expression", "text": "PropertyDefinition &operator=(PropertyDefinition const &rhs)", "parent": 42, "children": [87, 88], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 64}}, {"id": 87, "type": "identifier", "text": "PropertyDefinition", "parent": 86, "children": [], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 22}}, {"id": 88, "type": "assignment_expression", "text": "operator=(PropertyDefinition const &rhs)", "parent": 86, "children": [89, 90, 91], "start_point": {"row": 60, "column": 24}, "end_point": {"row": 60, "column": 64}}, {"id": 89, "type": "identifier", "text": "operator", "parent": 88, "children": [], "start_point": {"row": 60, "column": 24}, "end_point": {"row": 60, "column": 32}}, {"id": 90, "type": "=", "text": "=", "parent": 88, "children": [], "start_point": {"row": 60, "column": 32}, "end_point": {"row": 60, "column": 33}}, {"id": 91, "type": "parenthesized_expression", "text": "(PropertyDefinition const &rhs)", "parent": 88, "children": [92, 95], "start_point": {"row": 60, "column": 33}, "end_point": {"row": 60, "column": 64}}, {"id": 92, "type": "ERROR", "text": "PropertyDefinition const", "parent": 91, "children": [93], "start_point": {"row": 60, "column": 34}, "end_point": {"row": 60, "column": 58}}, {"id": 93, "type": "type_descriptor", "text": "PropertyDefinition const", "parent": 92, "children": [94], "start_point": {"row": 60, "column": 34}, "end_point": {"row": 60, "column": 58}}, {"id": 94, "type": "type_identifier", "text": "PropertyDefinition", "parent": 93, "children": [], "start_point": {"row": 60, "column": 34}, "end_point": {"row": 60, "column": 52}}, {"id": 95, "type": "pointer_expression", "text": "&rhs", "parent": 91, "children": [96], "start_point": {"row": 60, "column": 59}, "end_point": {"row": 60, "column": 63}}, {"id": 96, "type": "identifier", "text": "rhs", "parent": 95, "children": [], "start_point": {"row": 60, "column": 60}, "end_point": {"row": 60, "column": 63}}, {"id": 97, "type": "binary_expression", "text": "PropertyDefinition &operator=(PropertyDefinition &&rhs)", "parent": 42, "children": [98, 99], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 59}}, {"id": 98, "type": "identifier", "text": "PropertyDefinition", "parent": 97, "children": [], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 22}}, {"id": 99, "type": "assignment_expression", "text": "operator=(PropertyDefinition &&rhs)", "parent": 97, "children": [100, 101, 102], "start_point": {"row": 63, "column": 24}, "end_point": {"row": 63, "column": 59}}, {"id": 100, "type": "identifier", "text": "operator", "parent": 99, "children": [], "start_point": {"row": 63, "column": 24}, "end_point": {"row": 63, "column": 32}}, {"id": 101, "type": "=", "text": "=", "parent": 99, "children": [], "start_point": {"row": 63, "column": 32}, "end_point": {"row": 63, "column": 33}}, {"id": 102, "type": "parenthesized_expression", "text": "(PropertyDefinition &&rhs)", "parent": 99, "children": [103], "start_point": {"row": 63, "column": 33}, "end_point": {"row": 63, "column": 59}}, {"id": 103, "type": "binary_expression", "text": "PropertyDefinition &&rhs", "parent": 102, "children": [104, 105, 106], "start_point": {"row": 63, "column": 34}, "end_point": {"row": 63, "column": 58}}, {"id": 104, "type": "identifier", "text": "PropertyDefinition", "parent": 103, "children": [], "start_point": {"row": 63, "column": 34}, "end_point": {"row": 63, "column": 52}}, {"id": 105, "type": "&&", "text": "&&", "parent": 103, "children": [], "start_point": {"row": 63, "column": 53}, "end_point": {"row": 63, "column": 55}}, {"id": 106, "type": "identifier", "text": "rhs", "parent": 103, "children": [], "start_point": {"row": 63, "column": 55}, "end_point": {"row": 63, "column": 58}}, {"id": 107, "type": "ERROR", "text": "noexcept", "parent": 42, "children": [108], "start_point": {"row": 63, "column": 60}, "end_point": {"row": 63, "column": 68}}, {"id": 108, "type": "identifier", "text": "noexcept", "parent": 107, "children": [], "start_point": {"row": 63, "column": 60}, "end_point": {"row": 63, "column": 68}}, {"id": 109, "type": "declaration", "text": "PropertyDefinition *clone() const;", "parent": 42, "children": [110, 111], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 38}}, {"id": 110, "type": "type_identifier", "text": "PropertyDefinition", "parent": 109, "children": [], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 22}}, {"id": 111, "type": "pointer_declarator", "text": "*clone() const", "parent": 109, "children": [112, 113], "start_point": {"row": 67, "column": 23}, "end_point": {"row": 67, "column": 37}}, {"id": 112, "type": "*", "text": "*", "parent": 111, "children": [], "start_point": {"row": 67, "column": 23}, "end_point": {"row": 67, "column": 24}}, {"id": 113, "type": "function_declarator", "text": "clone() const", "parent": 111, "children": [114, 115], "start_point": {"row": 67, "column": 24}, "end_point": {"row": 67, "column": 37}}, {"id": 114, "type": "identifier", "text": "clone", "parent": 113, "children": [], "start_point": {"row": 67, "column": 24}, "end_point": {"row": 67, "column": 29}}, {"id": 115, "type": "parameter_list", "text": "()", "parent": 113, "children": [], "start_point": {"row": 67, "column": 29}, "end_point": {"row": 67, "column": 31}}, {"id": 116, "type": "ERROR", "text": "UInt32 memory() const;\n\n //ACCESS\n //Get\n PropertyType getPropType() const;\n PropertyOrigin getPropOriginType() const;\n PropertySaveStatus getPropSaveType() const;\n const std::string & getPropName() const;\n PropDataType getDataType() const;\n ObjectType getObjType() const;\n bool getHasRange() const;\n bool getHasValue() const;\n int getIntRangeMin() const;\n int getIntRangeMax() const;\n double getRealRangeMin() const;\n double getRealRangeMax() const;\n int getIntValue() const;\n double getRealValue() const;\n std::string getStringValue() const;\n //Set\n void setPropType(PropertyType v);\n void setPropOriginType(PropertyOrigin v);\n void setPropSaveType(PropertySaveStatus v);\n void setObjType(ObjectType v);\n void setPropName(const std::string & v);\n void setDataType(PropDataType v);\n void setHasRange(bool v);\n void setIntRangeMin(int v);\n void setIntRangeMax(int v);\n void setRealRangeMin(double v);\n void setRealRangeMax(double v);\n //TODO: check range...\n void setIntValue(int v);\n void setRealValue(double v);\n void setStringValue(const std::string & v);\n //Print\n void printLEF(IOManager &io_manager) const;\n void printDEF(IOManager &io_manager) const;\n\n protected:\n /// @brief copy object\n void copy(PropertyDefinition const &rhs);\n /// @brief move object\n void move(PropertyDefinition &&rhs);\n /// @brief overload output stream\n friend OStreamBase &operator<<(OStreamBase &os, PropertyDefinition const &rhs);\n /// @brief overload input stream\n //friend IStreamBase &operator>>(IStreamBase &is, PropertyDefinition &rhs) {}\n\n private:\n //DATA\n SymbolIndex name_index_;\n PropertyType prop_type_;\n PropertyOrigin origin_type_;\n PropertySaveStatus save_type_;\n PropDataType data_type_;\n ObjectType obj_type_;\n bool has_range_;\n bool has_value_;\n union {\n IntRange int_range_;\n RealRange real_range_;\n } range_u_;\n union {\n SymbolIndex string_value_;\n int int_value_;\n double real_value_;\n } value_u_;", "parent": 42, "children": [117, 118, 121, 192, 200, 208, 216, 226, 234, 242, 250, 258, 266, 274, 282, 290, 300, 316, 324, 334, 345, 349, 352, 355, 358, 361, 364, 367, 370, 380], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 137, "column": 15}}, {"id": 117, "type": "type_identifier", "text": "UInt32", "parent": 116, "children": [], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 10}}, {"id": 118, "type": "function_declarator", "text": "memory()", "parent": 116, "children": [119, 120], "start_point": {"row": 70, "column": 11}, "end_point": {"row": 70, "column": 19}}, {"id": 119, "type": "identifier", "text": "memory", "parent": 118, "children": [], "start_point": {"row": 70, "column": 11}, "end_point": {"row": 70, "column": 17}}, {"id": 120, "type": "parameter_list", "text": "()", "parent": 118, "children": [], "start_point": {"row": 70, "column": 17}, "end_point": {"row": 70, "column": 19}}, {"id": 121, "type": "declaration", "text": "const;\n\n //ACCESS\n //Get\n PropertyType getPropType() const;\n PropertyOrigin getPropOriginType() const;\n PropertySaveStatus getPropSaveType() const;\n const std::string & getPropName() const;\n PropDataType getDataType() const;\n ObjectType getObjType() const;\n bool getHasRange() const;\n bool getHasValue() const;\n int getIntRangeMin() const;\n int getIntRangeMax() const;\n double getRealRangeMin() const;\n double getRealRangeMax() const;\n int getIntValue() const;\n double getRealValue() const;\n std::string getStringValue() const;\n //Set\n void setPropType(PropertyType v);", "parent": 116, "children": [122, 123, 186], "start_point": {"row": 70, "column": 20}, "end_point": {"row": 90, "column": 37}}, {"id": 122, "type": "type_identifier", "text": "PropertyType", "parent": 121, "children": [], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 16}}, {"id": 123, "type": "ERROR", "text": "getPropType() const;\n PropertyOrigin getPropOriginType() const;\n PropertySaveStatus getPropSaveType() const;\n const std::string & getPropName() const;\n PropDataType getDataType() const;\n ObjectType getObjType() const;\n bool getHasRange() const;\n bool getHasValue() const;\n int getIntRangeMin() const;\n int getIntRangeMax() const;\n double getRealRangeMin() const;\n double getRealRangeMax() const;\n int getIntValue() const;\n double getRealValue() const;\n std::string getStringValue() const;\n //Set\n void", "parent": 121, "children": [124, 127, 128, 131, 132, 135, 136, 137, 140, 141, 144, 145, 148, 149, 152, 153, 156, 157, 160, 161, 164, 165, 168, 169, 172, 173, 176, 177, 180, 181, 182, 185], "start_point": {"row": 74, "column": 17}, "end_point": {"row": 90, "column": 8}}, {"id": 124, "type": "function_declarator", "text": "getPropType() const", "parent": 123, "children": [125, 126], "start_point": {"row": 74, "column": 17}, "end_point": {"row": 74, "column": 36}}, {"id": 125, "type": "identifier", "text": "getPropType", "parent": 124, "children": [], "start_point": {"row": 74, "column": 17}, "end_point": {"row": 74, "column": 28}}, {"id": 126, "type": "parameter_list", "text": "()", "parent": 124, "children": [], "start_point": {"row": 74, "column": 28}, "end_point": {"row": 74, "column": 30}}, {"id": 127, "type": "identifier", "text": "PropertyOrigin", "parent": 123, "children": [], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 18}}, {"id": 128, "type": "function_declarator", "text": "getPropOriginType() const", "parent": 123, "children": [129, 130], "start_point": {"row": 75, "column": 19}, "end_point": {"row": 75, "column": 44}}, {"id": 129, "type": "identifier", "text": "getPropOriginType", "parent": 128, "children": [], "start_point": {"row": 75, "column": 19}, "end_point": {"row": 75, "column": 36}}, {"id": 130, "type": "parameter_list", "text": "()", "parent": 128, "children": [], "start_point": {"row": 75, "column": 36}, "end_point": {"row": 75, "column": 38}}, {"id": 131, "type": "identifier", "text": "PropertySaveStatus", "parent": 123, "children": [], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 22}}, {"id": 132, "type": "function_declarator", "text": "getPropSaveType() const", "parent": 123, "children": [133, 134], "start_point": {"row": 76, "column": 23}, "end_point": {"row": 76, "column": 46}}, {"id": 133, "type": "identifier", "text": "getPropSaveType", "parent": 132, "children": [], "start_point": {"row": 76, "column": 23}, "end_point": {"row": 76, "column": 38}}, {"id": 134, "type": "parameter_list", "text": "()", "parent": 132, "children": [], "start_point": {"row": 76, "column": 38}, "end_point": {"row": 76, "column": 40}}, {"id": 135, "type": "identifier", "text": "std", "parent": 123, "children": [], "start_point": {"row": 77, "column": 10}, "end_point": {"row": 77, "column": 13}}, {"id": 136, "type": "identifier", "text": "string", "parent": 123, "children": [], "start_point": {"row": 77, "column": 15}, "end_point": {"row": 77, "column": 21}}, {"id": 137, "type": "function_declarator", "text": "getPropName() const", "parent": 123, "children": [138, 139], "start_point": {"row": 77, "column": 24}, "end_point": {"row": 77, "column": 43}}, {"id": 138, "type": "identifier", "text": "getPropName", "parent": 137, "children": [], "start_point": {"row": 77, "column": 24}, "end_point": {"row": 77, "column": 35}}, {"id": 139, "type": "parameter_list", "text": "()", "parent": 137, "children": [], "start_point": {"row": 77, "column": 35}, "end_point": {"row": 77, "column": 37}}, {"id": 140, "type": "identifier", "text": "PropDataType", "parent": 123, "children": [], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 16}}, {"id": 141, "type": "function_declarator", "text": "getDataType() const", "parent": 123, "children": [142, 143], "start_point": {"row": 78, "column": 17}, "end_point": {"row": 78, "column": 36}}, {"id": 142, "type": "identifier", "text": "getDataType", "parent": 141, "children": [], "start_point": {"row": 78, "column": 17}, "end_point": {"row": 78, "column": 28}}, {"id": 143, "type": "parameter_list", "text": "()", "parent": 141, "children": [], "start_point": {"row": 78, "column": 28}, "end_point": {"row": 78, "column": 30}}, {"id": 144, "type": "identifier", "text": "ObjectType", "parent": 123, "children": [], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 14}}, {"id": 145, "type": "function_declarator", "text": "getObjType() const", "parent": 123, "children": [146, 147], "start_point": {"row": 79, "column": 15}, "end_point": {"row": 79, "column": 33}}, {"id": 146, "type": "identifier", "text": "getObjType", "parent": 145, "children": [], "start_point": {"row": 79, "column": 15}, "end_point": {"row": 79, "column": 25}}, {"id": 147, "type": "parameter_list", "text": "()", "parent": 145, "children": [], "start_point": {"row": 79, "column": 25}, "end_point": {"row": 79, "column": 27}}, {"id": 148, "type": "primitive_type", "text": "bool", "parent": 123, "children": [], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 8}}, {"id": 149, "type": "function_declarator", "text": "getHasRange() const", "parent": 123, "children": [150, 151], "start_point": {"row": 80, "column": 9}, "end_point": {"row": 80, "column": 28}}, {"id": 150, "type": "identifier", "text": "getHasRange", "parent": 149, "children": [], "start_point": {"row": 80, "column": 9}, "end_point": {"row": 80, "column": 20}}, {"id": 151, "type": "parameter_list", "text": "()", "parent": 149, "children": [], "start_point": {"row": 80, "column": 20}, "end_point": {"row": 80, "column": 22}}, {"id": 152, "type": "primitive_type", "text": "bool", "parent": 123, "children": [], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 8}}, {"id": 153, "type": "function_declarator", "text": "getHasValue() const", "parent": 123, "children": [154, 155], "start_point": {"row": 81, "column": 9}, "end_point": {"row": 81, "column": 28}}, {"id": 154, "type": "identifier", "text": "getHasValue", "parent": 153, "children": [], "start_point": {"row": 81, "column": 9}, "end_point": {"row": 81, "column": 20}}, {"id": 155, "type": "parameter_list", "text": "()", "parent": 153, "children": [], "start_point": {"row": 81, "column": 20}, "end_point": {"row": 81, "column": 22}}, {"id": 156, "type": "primitive_type", "text": "int", "parent": 123, "children": [], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 7}}, {"id": 157, "type": "function_declarator", "text": "getIntRangeMin() const", "parent": 123, "children": [158, 159], "start_point": {"row": 82, "column": 8}, "end_point": {"row": 82, "column": 30}}, {"id": 158, "type": "identifier", "text": "getIntRangeMin", "parent": 157, "children": [], "start_point": {"row": 82, "column": 8}, "end_point": {"row": 82, "column": 22}}, {"id": 159, "type": "parameter_list", "text": "()", "parent": 157, "children": [], "start_point": {"row": 82, "column": 22}, "end_point": {"row": 82, "column": 24}}, {"id": 160, "type": "primitive_type", "text": "int", "parent": 123, "children": [], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 7}}, {"id": 161, "type": "function_declarator", "text": "getIntRangeMax() const", "parent": 123, "children": [162, 163], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 83, "column": 30}}, {"id": 162, "type": "identifier", "text": "getIntRangeMax", "parent": 161, "children": [], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 83, "column": 22}}, {"id": 163, "type": "parameter_list", "text": "()", "parent": 161, "children": [], "start_point": {"row": 83, "column": 22}, "end_point": {"row": 83, "column": 24}}, {"id": 164, "type": "primitive_type", "text": "double", "parent": 123, "children": [], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 10}}, {"id": 165, "type": "function_declarator", "text": "getRealRangeMin() const", "parent": 123, "children": [166, 167], "start_point": {"row": 84, "column": 11}, "end_point": {"row": 84, "column": 34}}, {"id": 166, "type": "identifier", "text": "getRealRangeMin", "parent": 165, "children": [], "start_point": {"row": 84, "column": 11}, "end_point": {"row": 84, "column": 26}}, {"id": 167, "type": "parameter_list", "text": "()", "parent": 165, "children": [], "start_point": {"row": 84, "column": 26}, "end_point": {"row": 84, "column": 28}}, {"id": 168, "type": "primitive_type", "text": "double", "parent": 123, "children": [], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 10}}, {"id": 169, "type": "function_declarator", "text": "getRealRangeMax() const", "parent": 123, "children": [170, 171], "start_point": {"row": 85, "column": 11}, "end_point": {"row": 85, "column": 34}}, {"id": 170, "type": "identifier", "text": "getRealRangeMax", "parent": 169, "children": [], "start_point": {"row": 85, "column": 11}, "end_point": {"row": 85, "column": 26}}, {"id": 171, "type": "parameter_list", "text": "()", "parent": 169, "children": [], "start_point": {"row": 85, "column": 26}, "end_point": {"row": 85, "column": 28}}, {"id": 172, "type": "primitive_type", "text": "int", "parent": 123, "children": [], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 7}}, {"id": 173, "type": "function_declarator", "text": "getIntValue() const", "parent": 123, "children": [174, 175], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 27}}, {"id": 174, "type": "identifier", "text": "getIntValue", "parent": 173, "children": [], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 19}}, {"id": 175, "type": "parameter_list", "text": "()", "parent": 173, "children": [], "start_point": {"row": 86, "column": 19}, "end_point": {"row": 86, "column": 21}}, {"id": 176, "type": "primitive_type", "text": "double", "parent": 123, "children": [], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 10}}, {"id": 177, "type": "function_declarator", "text": "getRealValue() const", "parent": 123, "children": [178, 179], "start_point": {"row": 87, "column": 11}, "end_point": {"row": 87, "column": 31}}, {"id": 178, "type": "identifier", "text": "getRealValue", "parent": 177, "children": [], "start_point": {"row": 87, "column": 11}, "end_point": {"row": 87, "column": 23}}, {"id": 179, "type": "parameter_list", "text": "()", "parent": 177, "children": [], "start_point": {"row": 87, "column": 23}, "end_point": {"row": 87, "column": 25}}, {"id": 180, "type": "identifier", "text": "std", "parent": 123, "children": [], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 7}}, {"id": 181, "type": "identifier", "text": "string", "parent": 123, "children": [], "start_point": {"row": 88, "column": 9}, "end_point": {"row": 88, "column": 15}}, {"id": 182, "type": "function_declarator", "text": "getStringValue() const", "parent": 123, "children": [183, 184], "start_point": {"row": 88, "column": 16}, "end_point": {"row": 88, "column": 38}}, {"id": 183, "type": "identifier", "text": "getStringValue", "parent": 182, "children": [], "start_point": {"row": 88, "column": 16}, "end_point": {"row": 88, "column": 30}}, {"id": 184, "type": "parameter_list", "text": "()", "parent": 182, "children": [], "start_point": {"row": 88, "column": 30}, "end_point": {"row": 88, "column": 32}}, {"id": 185, "type": "primitive_type", "text": "void", "parent": 123, "children": [], "start_point": {"row": 90, "column": 4}, "end_point": {"row": 90, "column": 8}}, {"id": 186, "type": "function_declarator", "text": "setPropType(PropertyType v)", "parent": 121, "children": [187, 188], "start_point": {"row": 90, "column": 9}, "end_point": {"row": 90, "column": 36}}, {"id": 187, "type": "identifier", "text": "setPropType", "parent": 186, "children": [], "start_point": {"row": 90, "column": 9}, "end_point": {"row": 90, "column": 20}}, {"id": 188, "type": "parameter_list", "text": "(PropertyType v)", "parent": 186, "children": [189], "start_point": {"row": 90, "column": 20}, "end_point": {"row": 90, "column": 36}}, {"id": 189, "type": "parameter_declaration", "text": "PropertyType v", "parent": 188, "children": [190, 191], "start_point": {"row": 90, "column": 21}, "end_point": {"row": 90, "column": 35}}, {"id": 190, "type": "type_identifier", "text": "PropertyType", "parent": 189, "children": [], "start_point": {"row": 90, "column": 21}, "end_point": {"row": 90, "column": 33}}, {"id": 191, "type": "identifier", "text": "v", "parent": 189, "children": [], "start_point": {"row": 90, "column": 34}, "end_point": {"row": 90, "column": 35}}, {"id": 192, "type": "declaration", "text": "void setPropOriginType(PropertyOrigin v);", "parent": 116, "children": [193, 194], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 91, "column": 45}}, {"id": 193, "type": "primitive_type", "text": "void", "parent": 192, "children": [], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 91, "column": 8}}, {"id": 194, "type": "function_declarator", "text": "setPropOriginType(PropertyOrigin v)", "parent": 192, "children": [195, 196], "start_point": {"row": 91, "column": 9}, "end_point": {"row": 91, "column": 44}}, {"id": 195, "type": "identifier", "text": "setPropOriginType", "parent": 194, "children": [], "start_point": {"row": 91, "column": 9}, "end_point": {"row": 91, "column": 26}}, {"id": 196, "type": "parameter_list", "text": "(PropertyOrigin v)", "parent": 194, "children": [197], "start_point": {"row": 91, "column": 26}, "end_point": {"row": 91, "column": 44}}, {"id": 197, "type": "parameter_declaration", "text": "PropertyOrigin v", "parent": 196, "children": [198, 199], "start_point": {"row": 91, "column": 27}, "end_point": {"row": 91, "column": 43}}, {"id": 198, "type": "type_identifier", "text": "PropertyOrigin", "parent": 197, "children": [], "start_point": {"row": 91, "column": 27}, "end_point": {"row": 91, "column": 41}}, {"id": 199, "type": "identifier", "text": "v", "parent": 197, "children": [], "start_point": {"row": 91, "column": 42}, "end_point": {"row": 91, "column": 43}}, {"id": 200, "type": "declaration", "text": "void setPropSaveType(PropertySaveStatus v);", "parent": 116, "children": [201, 202], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 47}}, {"id": 201, "type": "primitive_type", "text": "void", "parent": 200, "children": [], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 8}}, {"id": 202, "type": "function_declarator", "text": "setPropSaveType(PropertySaveStatus v)", "parent": 200, "children": [203, 204], "start_point": {"row": 92, "column": 9}, "end_point": {"row": 92, "column": 46}}, {"id": 203, "type": "identifier", "text": "setPropSaveType", "parent": 202, "children": [], "start_point": {"row": 92, "column": 9}, "end_point": {"row": 92, "column": 24}}, {"id": 204, "type": "parameter_list", "text": "(PropertySaveStatus v)", "parent": 202, "children": [205], "start_point": {"row": 92, "column": 24}, "end_point": {"row": 92, "column": 46}}, {"id": 205, "type": "parameter_declaration", "text": "PropertySaveStatus v", "parent": 204, "children": [206, 207], "start_point": {"row": 92, "column": 25}, "end_point": {"row": 92, "column": 45}}, {"id": 206, "type": "type_identifier", "text": "PropertySaveStatus", "parent": 205, "children": [], "start_point": {"row": 92, "column": 25}, "end_point": {"row": 92, "column": 43}}, {"id": 207, "type": "identifier", "text": "v", "parent": 205, "children": [], "start_point": {"row": 92, "column": 44}, "end_point": {"row": 92, "column": 45}}, {"id": 208, "type": "declaration", "text": "void setObjType(ObjectType v);", "parent": 116, "children": [209, 210], "start_point": {"row": 93, "column": 4}, "end_point": {"row": 93, "column": 34}}, {"id": 209, "type": "primitive_type", "text": "void", "parent": 208, "children": [], "start_point": {"row": 93, "column": 4}, "end_point": {"row": 93, "column": 8}}, {"id": 210, "type": "function_declarator", "text": "setObjType(ObjectType v)", "parent": 208, "children": [211, 212], "start_point": {"row": 93, "column": 9}, "end_point": {"row": 93, "column": 33}}, {"id": 211, "type": "identifier", "text": "setObjType", "parent": 210, "children": [], "start_point": {"row": 93, "column": 9}, "end_point": {"row": 93, "column": 19}}, {"id": 212, "type": "parameter_list", "text": "(ObjectType v)", "parent": 210, "children": [213], "start_point": {"row": 93, "column": 19}, "end_point": {"row": 93, "column": 33}}, {"id": 213, "type": "parameter_declaration", "text": "ObjectType v", "parent": 212, "children": [214, 215], "start_point": {"row": 93, "column": 20}, "end_point": {"row": 93, "column": 32}}, {"id": 214, "type": "type_identifier", "text": "ObjectType", "parent": 213, "children": [], "start_point": {"row": 93, "column": 20}, "end_point": {"row": 93, "column": 30}}, {"id": 215, "type": "identifier", "text": "v", "parent": 213, "children": [], "start_point": {"row": 93, "column": 31}, "end_point": {"row": 93, "column": 32}}, {"id": 216, "type": "declaration", "text": "void setPropName(const std::string & v);", "parent": 116, "children": [217, 218], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 44}}, {"id": 217, "type": "primitive_type", "text": "void", "parent": 216, "children": [], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 8}}, {"id": 218, "type": "function_declarator", "text": "setPropName(const std::string & v)", "parent": 216, "children": [219, 220], "start_point": {"row": 94, "column": 9}, "end_point": {"row": 94, "column": 43}}, {"id": 219, "type": "identifier", "text": "setPropName", "parent": 218, "children": [], "start_point": {"row": 94, "column": 9}, "end_point": {"row": 94, "column": 20}}, {"id": 220, "type": "parameter_list", "text": "(const std::string & v)", "parent": 218, "children": [221], "start_point": {"row": 94, "column": 20}, "end_point": {"row": 94, "column": 43}}, {"id": 221, "type": "parameter_declaration", "text": "const std::string & v", "parent": 220, "children": [222, 223, 225], "start_point": {"row": 94, "column": 21}, "end_point": {"row": 94, "column": 42}}, {"id": 222, "type": "type_identifier", "text": "std", "parent": 221, "children": [], "start_point": {"row": 94, "column": 27}, "end_point": {"row": 94, "column": 30}}, {"id": 223, "type": "ERROR", "text": "::string &", "parent": 221, "children": [224], "start_point": {"row": 94, "column": 30}, "end_point": {"row": 94, "column": 40}}, {"id": 224, "type": "identifier", "text": "string", "parent": 223, "children": [], "start_point": {"row": 94, "column": 32}, "end_point": {"row": 94, "column": 38}}, {"id": 225, "type": "identifier", "text": "v", "parent": 221, "children": [], "start_point": {"row": 94, "column": 41}, "end_point": {"row": 94, "column": 42}}, {"id": 226, "type": "declaration", "text": "void setDataType(PropDataType v);", "parent": 116, "children": [227, 228], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 37}}, {"id": 227, "type": "primitive_type", "text": "void", "parent": 226, "children": [], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 8}}, {"id": 228, "type": "function_declarator", "text": "setDataType(PropDataType v)", "parent": 226, "children": [229, 230], "start_point": {"row": 95, "column": 9}, "end_point": {"row": 95, "column": 36}}, {"id": 229, "type": "identifier", "text": "setDataType", "parent": 228, "children": [], "start_point": {"row": 95, "column": 9}, "end_point": {"row": 95, "column": 20}}, {"id": 230, "type": "parameter_list", "text": "(PropDataType v)", "parent": 228, "children": [231], "start_point": {"row": 95, "column": 20}, "end_point": {"row": 95, "column": 36}}, {"id": 231, "type": "parameter_declaration", "text": "PropDataType v", "parent": 230, "children": [232, 233], "start_point": {"row": 95, "column": 21}, "end_point": {"row": 95, "column": 35}}, {"id": 232, "type": "type_identifier", "text": "PropDataType", "parent": 231, "children": [], "start_point": {"row": 95, "column": 21}, "end_point": {"row": 95, "column": 33}}, {"id": 233, "type": "identifier", "text": "v", "parent": 231, "children": [], "start_point": {"row": 95, "column": 34}, "end_point": {"row": 95, "column": 35}}, {"id": 234, "type": "declaration", "text": "void setHasRange(bool v);", "parent": 116, "children": [235, 236], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 29}}, {"id": 235, "type": "primitive_type", "text": "void", "parent": 234, "children": [], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 8}}, {"id": 236, "type": "function_declarator", "text": "setHasRange(bool v)", "parent": 234, "children": [237, 238], "start_point": {"row": 96, "column": 9}, "end_point": {"row": 96, "column": 28}}, {"id": 237, "type": "identifier", "text": "setHasRange", "parent": 236, "children": [], "start_point": {"row": 96, "column": 9}, "end_point": {"row": 96, "column": 20}}, {"id": 238, "type": "parameter_list", "text": "(bool v)", "parent": 236, "children": [239], "start_point": {"row": 96, "column": 20}, "end_point": {"row": 96, "column": 28}}, {"id": 239, "type": "parameter_declaration", "text": "bool v", "parent": 238, "children": [240, 241], "start_point": {"row": 96, "column": 21}, "end_point": {"row": 96, "column": 27}}, {"id": 240, "type": "primitive_type", "text": "bool", "parent": 239, "children": [], "start_point": {"row": 96, "column": 21}, "end_point": {"row": 96, "column": 25}}, {"id": 241, "type": "identifier", "text": "v", "parent": 239, "children": [], "start_point": {"row": 96, "column": 26}, "end_point": {"row": 96, "column": 27}}, {"id": 242, "type": "declaration", "text": "void setIntRangeMin(int v);", "parent": 116, "children": [243, 244], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 31}}, {"id": 243, "type": "primitive_type", "text": "void", "parent": 242, "children": [], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 8}}, {"id": 244, "type": "function_declarator", "text": "setIntRangeMin(int v)", "parent": 242, "children": [245, 246], "start_point": {"row": 97, "column": 9}, "end_point": {"row": 97, "column": 30}}, {"id": 245, "type": "identifier", "text": "setIntRangeMin", "parent": 244, "children": [], "start_point": {"row": 97, "column": 9}, "end_point": {"row": 97, "column": 23}}, {"id": 246, "type": "parameter_list", "text": "(int v)", "parent": 244, "children": [247], "start_point": {"row": 97, "column": 23}, "end_point": {"row": 97, "column": 30}}, {"id": 247, "type": "parameter_declaration", "text": "int v", "parent": 246, "children": [248, 249], "start_point": {"row": 97, "column": 24}, "end_point": {"row": 97, "column": 29}}, {"id": 248, "type": "primitive_type", "text": "int", "parent": 247, "children": [], "start_point": {"row": 97, "column": 24}, "end_point": {"row": 97, "column": 27}}, {"id": 249, "type": "identifier", "text": "v", "parent": 247, "children": [], "start_point": {"row": 97, "column": 28}, "end_point": {"row": 97, "column": 29}}, {"id": 250, "type": "declaration", "text": "void setIntRangeMax(int v);", "parent": 116, "children": [251, 252], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 31}}, {"id": 251, "type": "primitive_type", "text": "void", "parent": 250, "children": [], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 8}}, {"id": 252, "type": "function_declarator", "text": "setIntRangeMax(int v)", "parent": 250, "children": [253, 254], "start_point": {"row": 98, "column": 9}, "end_point": {"row": 98, "column": 30}}, {"id": 253, "type": "identifier", "text": "setIntRangeMax", "parent": 252, "children": [], "start_point": {"row": 98, "column": 9}, "end_point": {"row": 98, "column": 23}}, {"id": 254, "type": "parameter_list", "text": "(int v)", "parent": 252, "children": [255], "start_point": {"row": 98, "column": 23}, "end_point": {"row": 98, "column": 30}}, {"id": 255, "type": "parameter_declaration", "text": "int v", "parent": 254, "children": [256, 257], "start_point": {"row": 98, "column": 24}, "end_point": {"row": 98, "column": 29}}, {"id": 256, "type": "primitive_type", "text": "int", "parent": 255, "children": [], "start_point": {"row": 98, "column": 24}, "end_point": {"row": 98, "column": 27}}, {"id": 257, "type": "identifier", "text": "v", "parent": 255, "children": [], "start_point": {"row": 98, "column": 28}, "end_point": {"row": 98, "column": 29}}, {"id": 258, "type": "declaration", "text": "void setRealRangeMin(double v);", "parent": 116, "children": [259, 260], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 35}}, {"id": 259, "type": "primitive_type", "text": "void", "parent": 258, "children": [], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 8}}, {"id": 260, "type": "function_declarator", "text": "setRealRangeMin(double v)", "parent": 258, "children": [261, 262], "start_point": {"row": 99, "column": 9}, "end_point": {"row": 99, "column": 34}}, {"id": 261, "type": "identifier", "text": "setRealRangeMin", "parent": 260, "children": [], "start_point": {"row": 99, "column": 9}, "end_point": {"row": 99, "column": 24}}, {"id": 262, "type": "parameter_list", "text": "(double v)", "parent": 260, "children": [263], "start_point": {"row": 99, "column": 24}, "end_point": {"row": 99, "column": 34}}, {"id": 263, "type": "parameter_declaration", "text": "double v", "parent": 262, "children": [264, 265], "start_point": {"row": 99, "column": 25}, "end_point": {"row": 99, "column": 33}}, {"id": 264, "type": "primitive_type", "text": "double", "parent": 263, "children": [], "start_point": {"row": 99, "column": 25}, "end_point": {"row": 99, "column": 31}}, {"id": 265, "type": "identifier", "text": "v", "parent": 263, "children": [], "start_point": {"row": 99, "column": 32}, "end_point": {"row": 99, "column": 33}}, {"id": 266, "type": "declaration", "text": "void setRealRangeMax(double v);", "parent": 116, "children": [267, 268], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 35}}, {"id": 267, "type": "primitive_type", "text": "void", "parent": 266, "children": [], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 8}}, {"id": 268, "type": "function_declarator", "text": "setRealRangeMax(double v)", "parent": 266, "children": [269, 270], "start_point": {"row": 100, "column": 9}, "end_point": {"row": 100, "column": 34}}, {"id": 269, "type": "identifier", "text": "setRealRangeMax", "parent": 268, "children": [], "start_point": {"row": 100, "column": 9}, "end_point": {"row": 100, "column": 24}}, {"id": 270, "type": "parameter_list", "text": "(double v)", "parent": 268, "children": [271], "start_point": {"row": 100, "column": 24}, "end_point": {"row": 100, "column": 34}}, {"id": 271, "type": "parameter_declaration", "text": "double v", "parent": 270, "children": [272, 273], "start_point": {"row": 100, "column": 25}, "end_point": {"row": 100, "column": 33}}, {"id": 272, "type": "primitive_type", "text": "double", "parent": 271, "children": [], "start_point": {"row": 100, "column": 25}, "end_point": {"row": 100, "column": 31}}, {"id": 273, "type": "identifier", "text": "v", "parent": 271, "children": [], "start_point": {"row": 100, "column": 32}, "end_point": {"row": 100, "column": 33}}, {"id": 274, "type": "declaration", "text": "void setIntValue(int v);", "parent": 116, "children": [275, 276], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 28}}, {"id": 275, "type": "primitive_type", "text": "void", "parent": 274, "children": [], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 8}}, {"id": 276, "type": "function_declarator", "text": "setIntValue(int v)", "parent": 274, "children": [277, 278], "start_point": {"row": 102, "column": 9}, "end_point": {"row": 102, "column": 27}}, {"id": 277, "type": "identifier", "text": "setIntValue", "parent": 276, "children": [], "start_point": {"row": 102, "column": 9}, "end_point": {"row": 102, "column": 20}}, {"id": 278, "type": "parameter_list", "text": "(int v)", "parent": 276, "children": [279], "start_point": {"row": 102, "column": 20}, "end_point": {"row": 102, "column": 27}}, {"id": 279, "type": "parameter_declaration", "text": "int v", "parent": 278, "children": [280, 281], "start_point": {"row": 102, "column": 21}, "end_point": {"row": 102, "column": 26}}, {"id": 280, "type": "primitive_type", "text": "int", "parent": 279, "children": [], "start_point": {"row": 102, "column": 21}, "end_point": {"row": 102, "column": 24}}, {"id": 281, "type": "identifier", "text": "v", "parent": 279, "children": [], "start_point": {"row": 102, "column": 25}, "end_point": {"row": 102, "column": 26}}, {"id": 282, "type": "declaration", "text": "void setRealValue(double v);", "parent": 116, "children": [283, 284], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 103, "column": 32}}, {"id": 283, "type": "primitive_type", "text": "void", "parent": 282, "children": [], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 103, "column": 8}}, {"id": 284, "type": "function_declarator", "text": "setRealValue(double v)", "parent": 282, "children": [285, 286], "start_point": {"row": 103, "column": 9}, "end_point": {"row": 103, "column": 31}}, {"id": 285, "type": "identifier", "text": "setRealValue", "parent": 284, "children": [], "start_point": {"row": 103, "column": 9}, "end_point": {"row": 103, "column": 21}}, {"id": 286, "type": "parameter_list", "text": "(double v)", "parent": 284, "children": [287], "start_point": {"row": 103, "column": 21}, "end_point": {"row": 103, "column": 31}}, {"id": 287, "type": "parameter_declaration", "text": "double v", "parent": 286, "children": [288, 289], "start_point": {"row": 103, "column": 22}, "end_point": {"row": 103, "column": 30}}, {"id": 288, "type": "primitive_type", "text": "double", "parent": 287, "children": [], "start_point": {"row": 103, "column": 22}, "end_point": {"row": 103, "column": 28}}, {"id": 289, "type": "identifier", "text": "v", "parent": 287, "children": [], "start_point": {"row": 103, "column": 29}, "end_point": {"row": 103, "column": 30}}, {"id": 290, "type": "declaration", "text": "void setStringValue(const std::string & v);", "parent": 116, "children": [291, 292], "start_point": {"row": 104, "column": 4}, "end_point": {"row": 104, "column": 47}}, {"id": 291, "type": "primitive_type", "text": "void", "parent": 290, "children": [], "start_point": {"row": 104, "column": 4}, "end_point": {"row": 104, "column": 8}}, {"id": 292, "type": "function_declarator", "text": "setStringValue(const std::string & v)", "parent": 290, "children": [293, 294], "start_point": {"row": 104, "column": 9}, "end_point": {"row": 104, "column": 46}}, {"id": 293, "type": "identifier", "text": "setStringValue", "parent": 292, "children": [], "start_point": {"row": 104, "column": 9}, "end_point": {"row": 104, "column": 23}}, {"id": 294, "type": "parameter_list", "text": "(const std::string & v)", "parent": 292, "children": [295], "start_point": {"row": 104, "column": 23}, "end_point": {"row": 104, "column": 46}}, {"id": 295, "type": "parameter_declaration", "text": "const std::string & v", "parent": 294, "children": [296, 297, 299], "start_point": {"row": 104, "column": 24}, "end_point": {"row": 104, "column": 45}}, {"id": 296, "type": "type_identifier", "text": "std", "parent": 295, "children": [], "start_point": {"row": 104, "column": 30}, "end_point": {"row": 104, "column": 33}}, {"id": 297, "type": "ERROR", "text": "::string &", "parent": 295, "children": [298], "start_point": {"row": 104, "column": 33}, "end_point": {"row": 104, "column": 43}}, {"id": 298, "type": "identifier", "text": "string", "parent": 297, "children": [], "start_point": {"row": 104, "column": 35}, "end_point": {"row": 104, "column": 41}}, {"id": 299, "type": "identifier", "text": "v", "parent": 295, "children": [], "start_point": {"row": 104, "column": 44}, "end_point": {"row": 104, "column": 45}}, {"id": 300, "type": "ERROR", "text": "void printLEF(IOManager &io_manager) const;\n void printDEF(IOManager &io_manager) const;\n\n protected:", "parent": 116, "children": [301, 302, 308, 309], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 109, "column": 12}}, {"id": 301, "type": "primitive_type", "text": "void", "parent": 300, "children": [], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 106, "column": 8}}, {"id": 302, "type": "function_declarator", "text": "printLEF(IOManager &io_manager) const", "parent": 300, "children": [303, 304], "start_point": {"row": 106, "column": 9}, "end_point": {"row": 106, "column": 46}}, {"id": 303, "type": "identifier", "text": "printLEF", "parent": 302, "children": [], "start_point": {"row": 106, "column": 9}, "end_point": {"row": 106, "column": 17}}, {"id": 304, "type": "parameter_list", "text": "(IOManager &io_manager)", "parent": 302, "children": [305], "start_point": {"row": 106, "column": 17}, "end_point": {"row": 106, "column": 40}}, {"id": 305, "type": "parameter_declaration", "text": "IOManager &io_manager", "parent": 304, "children": [306, 307], "start_point": {"row": 106, "column": 18}, "end_point": {"row": 106, "column": 39}}, {"id": 306, "type": "type_identifier", "text": "IOManager", "parent": 305, "children": [], "start_point": {"row": 106, "column": 18}, "end_point": {"row": 106, "column": 27}}, {"id": 307, "type": "identifier", "text": "io_manager", "parent": 305, "children": [], "start_point": {"row": 106, "column": 29}, "end_point": {"row": 106, "column": 39}}, {"id": 308, "type": "primitive_type", "text": "void", "parent": 300, "children": [], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 8}}, {"id": 309, "type": "ERROR", "text": "printDEF(IOManager &io_manager) const;", "parent": 300, "children": [310], "start_point": {"row": 107, "column": 9}, "end_point": {"row": 107, "column": 47}}, {"id": 310, "type": "function_declarator", "text": "printDEF(IOManager &io_manager) const", "parent": 309, "children": [311, 312], "start_point": {"row": 107, "column": 9}, "end_point": {"row": 107, "column": 46}}, {"id": 311, "type": "identifier", "text": "printDEF", "parent": 310, "children": [], "start_point": {"row": 107, "column": 9}, "end_point": {"row": 107, "column": 17}}, {"id": 312, "type": "parameter_list", "text": "(IOManager &io_manager)", "parent": 310, "children": [313], "start_point": {"row": 107, "column": 17}, "end_point": {"row": 107, "column": 40}}, {"id": 313, "type": "parameter_declaration", "text": "IOManager &io_manager", "parent": 312, "children": [314, 315], "start_point": {"row": 107, "column": 18}, "end_point": {"row": 107, "column": 39}}, {"id": 314, "type": "type_identifier", "text": "IOManager", "parent": 313, "children": [], "start_point": {"row": 107, "column": 18}, "end_point": {"row": 107, "column": 27}}, {"id": 315, "type": "identifier", "text": "io_manager", "parent": 313, "children": [], "start_point": {"row": 107, "column": 29}, "end_point": {"row": 107, "column": 39}}, {"id": 316, "type": "declaration", "text": "void copy(PropertyDefinition const &rhs);", "parent": 116, "children": [317, 318], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 111, "column": 45}}, {"id": 317, "type": "primitive_type", "text": "void", "parent": 316, "children": [], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 111, "column": 8}}, {"id": 318, "type": "function_declarator", "text": "copy(PropertyDefinition const &rhs)", "parent": 316, "children": [319, 320], "start_point": {"row": 111, "column": 9}, "end_point": {"row": 111, "column": 44}}, {"id": 319, "type": "identifier", "text": "copy", "parent": 318, "children": [], "start_point": {"row": 111, "column": 9}, "end_point": {"row": 111, "column": 13}}, {"id": 320, "type": "parameter_list", "text": "(PropertyDefinition const &rhs)", "parent": 318, "children": [321], "start_point": {"row": 111, "column": 13}, "end_point": {"row": 111, "column": 44}}, {"id": 321, "type": "parameter_declaration", "text": "PropertyDefinition const &rhs", "parent": 320, "children": [322, 323], "start_point": {"row": 111, "column": 14}, "end_point": {"row": 111, "column": 43}}, {"id": 322, "type": "type_identifier", "text": "PropertyDefinition", "parent": 321, "children": [], "start_point": {"row": 111, "column": 14}, "end_point": {"row": 111, "column": 32}}, {"id": 323, "type": "identifier", "text": "rhs", "parent": 321, "children": [], "start_point": {"row": 111, "column": 40}, "end_point": {"row": 111, "column": 43}}, {"id": 324, "type": "declaration", "text": "void move(PropertyDefinition &&rhs);", "parent": 116, "children": [325, 326], "start_point": {"row": 113, "column": 4}, "end_point": {"row": 113, "column": 40}}, {"id": 325, "type": "primitive_type", "text": "void", "parent": 324, "children": [], "start_point": {"row": 113, "column": 4}, "end_point": {"row": 113, "column": 8}}, {"id": 326, "type": "function_declarator", "text": "move(PropertyDefinition &&rhs)", "parent": 324, "children": [327, 328], "start_point": {"row": 113, "column": 9}, "end_point": {"row": 113, "column": 39}}, {"id": 327, "type": "identifier", "text": "move", "parent": 326, "children": [], "start_point": {"row": 113, "column": 9}, "end_point": {"row": 113, "column": 13}}, {"id": 328, "type": "parameter_list", "text": "(PropertyDefinition &&rhs)", "parent": 326, "children": [329], "start_point": {"row": 113, "column": 13}, "end_point": {"row": 113, "column": 39}}, {"id": 329, "type": "parameter_declaration", "text": "PropertyDefinition &&rhs", "parent": 328, "children": [330, 331, 333], "start_point": {"row": 113, "column": 14}, "end_point": {"row": 113, "column": 38}}, {"id": 330, "type": "type_identifier", "text": "PropertyDefinition", "parent": 329, "children": [], "start_point": {"row": 113, "column": 14}, "end_point": {"row": 113, "column": 32}}, {"id": 331, "type": "ERROR", "text": "&&", "parent": 329, "children": [332], "start_point": {"row": 113, "column": 33}, "end_point": {"row": 113, "column": 35}}, {"id": 332, "type": "&&", "text": "&&", "parent": 331, "children": [], "start_point": {"row": 113, "column": 33}, "end_point": {"row": 113, "column": 35}}, {"id": 333, "type": "identifier", "text": "rhs", "parent": 329, "children": [], "start_point": {"row": 113, "column": 35}, "end_point": {"row": 113, "column": 38}}, {"id": 334, "type": "declaration", "text": "friend OStreamBase &operator<<(OStreamBase &os, PropertyDefinition const &rhs);", "parent": 116, "children": [335, 336, 337, 342, 343], "start_point": {"row": 115, "column": 4}, "end_point": {"row": 115, "column": 83}}, {"id": 335, "type": "type_identifier", "text": "friend", "parent": 334, "children": [], "start_point": {"row": 115, "column": 4}, "end_point": {"row": 115, "column": 10}}, {"id": 336, "type": "identifier", "text": "OStreamBase", "parent": 334, "children": [], "start_point": {"row": 115, "column": 11}, "end_point": {"row": 115, "column": 22}}, {"id": 337, "type": "ERROR", "text": "&operator<<(OStreamBase &os", "parent": 334, "children": [338, 339, 340, 341], "start_point": {"row": 115, "column": 23}, "end_point": {"row": 115, "column": 50}}, {"id": 338, "type": "identifier", "text": "operator", "parent": 337, "children": [], "start_point": {"row": 115, "column": 24}, "end_point": {"row": 115, "column": 32}}, {"id": 339, "type": "<<", "text": "<<", "parent": 337, "children": [], "start_point": {"row": 115, "column": 32}, "end_point": {"row": 115, "column": 34}}, {"id": 340, "type": "identifier", "text": "OStreamBase", "parent": 337, "children": [], "start_point": {"row": 115, "column": 35}, "end_point": {"row": 115, "column": 46}}, {"id": 341, "type": "identifier", "text": "os", "parent": 337, "children": [], "start_point": {"row": 115, "column": 48}, "end_point": {"row": 115, "column": 50}}, {"id": 342, "type": "identifier", "text": "PropertyDefinition", "parent": 334, "children": [], "start_point": {"row": 115, "column": 52}, "end_point": {"row": 115, "column": 70}}, {"id": 343, "type": "ERROR", "text": "const &rhs)", "parent": 334, "children": [344], "start_point": {"row": 115, "column": 71}, "end_point": {"row": 115, "column": 82}}, {"id": 344, "type": "identifier", "text": "rhs", "parent": 343, "children": [], "start_point": {"row": 115, "column": 78}, "end_point": {"row": 115, "column": 81}}, {"id": 345, "type": "declaration", "text": "private:\n //DATA\n SymbolIndex name_index_;", "parent": 116, "children": [346, 348], "start_point": {"row": 119, "column": 2}, "end_point": {"row": 121, "column": 29}}, {"id": 346, "type": "ERROR", "text": "SymbolIndex", "parent": 345, "children": [347], "start_point": {"row": 121, "column": 4}, "end_point": {"row": 121, "column": 15}}, {"id": 347, "type": "identifier", "text": "SymbolIndex", "parent": 346, "children": [], "start_point": {"row": 121, "column": 4}, "end_point": {"row": 121, "column": 15}}, {"id": 348, "type": "identifier", "text": "name_index_", "parent": 345, "children": [], "start_point": {"row": 121, "column": 17}, "end_point": {"row": 121, "column": 28}}, {"id": 349, "type": "declaration", "text": "PropertyType prop_type_;", "parent": 116, "children": [350, 351], "start_point": {"row": 122, "column": 4}, "end_point": {"row": 122, "column": 28}}, {"id": 350, "type": "type_identifier", "text": "PropertyType", "parent": 349, "children": [], "start_point": {"row": 122, "column": 4}, "end_point": {"row": 122, "column": 16}}, {"id": 351, "type": "identifier", "text": "prop_type_", "parent": 349, "children": [], "start_point": {"row": 122, "column": 17}, "end_point": {"row": 122, "column": 27}}, {"id": 352, "type": "declaration", "text": "PropertyOrigin origin_type_;", "parent": 116, "children": [353, 354], "start_point": {"row": 123, "column": 4}, "end_point": {"row": 123, "column": 32}}, {"id": 353, "type": "type_identifier", "text": "PropertyOrigin", "parent": 352, "children": [], "start_point": {"row": 123, "column": 4}, "end_point": {"row": 123, "column": 18}}, {"id": 354, "type": "identifier", "text": "origin_type_", "parent": 352, "children": [], "start_point": {"row": 123, "column": 19}, "end_point": {"row": 123, "column": 31}}, {"id": 355, "type": "declaration", "text": "PropertySaveStatus save_type_;", "parent": 116, "children": [356, 357], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 124, "column": 34}}, {"id": 356, "type": "type_identifier", "text": "PropertySaveStatus", "parent": 355, "children": [], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 124, "column": 22}}, {"id": 357, "type": "identifier", "text": "save_type_", "parent": 355, "children": [], "start_point": {"row": 124, "column": 23}, "end_point": {"row": 124, "column": 33}}, {"id": 358, "type": "declaration", "text": "PropDataType data_type_;", "parent": 116, "children": [359, 360], "start_point": {"row": 125, "column": 4}, "end_point": {"row": 125, "column": 28}}, {"id": 359, "type": "type_identifier", "text": "PropDataType", "parent": 358, "children": [], "start_point": {"row": 125, "column": 4}, "end_point": {"row": 125, "column": 16}}, {"id": 360, "type": "identifier", "text": "data_type_", "parent": 358, "children": [], "start_point": {"row": 125, "column": 17}, "end_point": {"row": 125, "column": 27}}, {"id": 361, "type": "declaration", "text": "ObjectType obj_type_;", "parent": 116, "children": [362, 363], "start_point": {"row": 126, "column": 4}, "end_point": {"row": 126, "column": 25}}, {"id": 362, "type": "type_identifier", "text": "ObjectType", "parent": 361, "children": [], "start_point": {"row": 126, "column": 4}, "end_point": {"row": 126, "column": 14}}, {"id": 363, "type": "identifier", "text": "obj_type_", "parent": 361, "children": [], "start_point": {"row": 126, "column": 15}, "end_point": {"row": 126, "column": 24}}, {"id": 364, "type": "declaration", "text": "bool has_range_;", "parent": 116, "children": [365, 366], "start_point": {"row": 127, "column": 4}, "end_point": {"row": 127, "column": 20}}, {"id": 365, "type": "primitive_type", "text": "bool", "parent": 364, "children": [], "start_point": {"row": 127, "column": 4}, "end_point": {"row": 127, "column": 8}}, {"id": 366, "type": "identifier", "text": "has_range_", "parent": 364, "children": [], "start_point": {"row": 127, "column": 9}, "end_point": {"row": 127, "column": 19}}, {"id": 367, "type": "declaration", "text": "bool has_value_;", "parent": 116, "children": [368, 369], "start_point": {"row": 128, "column": 4}, "end_point": {"row": 128, "column": 20}}, {"id": 368, "type": "primitive_type", "text": "bool", "parent": 367, "children": [], "start_point": {"row": 128, "column": 4}, "end_point": {"row": 128, "column": 8}}, {"id": 369, "type": "identifier", "text": "has_value_", "parent": 367, "children": [], "start_point": {"row": 128, "column": 9}, "end_point": {"row": 128, "column": 19}}, {"id": 370, "type": "declaration", "text": "union {\n IntRange int_range_;\n RealRange real_range_;\n } range_u_;", "parent": 116, "children": [371, 379], "start_point": {"row": 129, "column": 4}, "end_point": {"row": 132, "column": 15}}, {"id": 371, "type": "union_specifier", "text": "union {\n IntRange int_range_;\n RealRange real_range_;\n }", "parent": 370, "children": [372], "start_point": {"row": 129, "column": 4}, "end_point": {"row": 132, "column": 5}}, {"id": 372, "type": "union", "text": "union", "parent": 371, "children": [], "start_point": {"row": 129, "column": 4}, "end_point": {"row": 129, "column": 9}}, {"id": 373, "type": "field_declaration", "text": "IntRange int_range_;", "parent": 371, "children": [374, 375], "start_point": {"row": 130, "column": 6}, "end_point": {"row": 130, "column": 26}}, {"id": 374, "type": "type_identifier", "text": "IntRange", "parent": 373, "children": [], "start_point": {"row": 130, "column": 6}, "end_point": {"row": 130, "column": 14}}, {"id": 375, "type": "field_identifier", "text": "int_range_", "parent": 373, "children": [], "start_point": {"row": 130, "column": 15}, "end_point": {"row": 130, "column": 25}}, {"id": 376, "type": "field_declaration", "text": "RealRange real_range_;", "parent": 371, "children": [377, 378], "start_point": {"row": 131, "column": 6}, "end_point": {"row": 131, "column": 28}}, {"id": 377, "type": "type_identifier", "text": "RealRange", "parent": 376, "children": [], "start_point": {"row": 131, "column": 6}, "end_point": {"row": 131, "column": 15}}, {"id": 378, "type": "field_identifier", "text": "real_range_", "parent": 376, "children": [], "start_point": {"row": 131, "column": 16}, "end_point": {"row": 131, "column": 27}}, {"id": 379, "type": "identifier", "text": "range_u_", "parent": 370, "children": [], "start_point": {"row": 132, "column": 6}, "end_point": {"row": 132, "column": 14}}, {"id": 380, "type": "declaration", "text": "union {\n SymbolIndex string_value_;\n int int_value_;\n double real_value_;\n } value_u_;", "parent": 116, "children": [381, 392], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 137, "column": 15}}, {"id": 381, "type": "union_specifier", "text": "union {\n SymbolIndex string_value_;\n int int_value_;\n double real_value_;\n }", "parent": 380, "children": [382], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 137, "column": 5}}, {"id": 382, "type": "union", "text": "union", "parent": 381, "children": [], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 133, "column": 9}}, {"id": 383, "type": "field_declaration", "text": "SymbolIndex string_value_;", "parent": 381, "children": [384, 385], "start_point": {"row": 134, "column": 6}, "end_point": {"row": 134, "column": 32}}, {"id": 384, "type": "type_identifier", "text": "SymbolIndex", "parent": 383, "children": [], "start_point": {"row": 134, "column": 6}, "end_point": {"row": 134, "column": 17}}, {"id": 385, "type": "field_identifier", "text": "string_value_", "parent": 383, "children": [], "start_point": {"row": 134, "column": 18}, "end_point": {"row": 134, "column": 31}}, {"id": 386, "type": "field_declaration", "text": "int int_value_;", "parent": 381, "children": [387, 388], "start_point": {"row": 135, "column": 6}, "end_point": {"row": 135, "column": 21}}, {"id": 387, "type": "primitive_type", "text": "int", "parent": 386, "children": [], "start_point": {"row": 135, "column": 6}, "end_point": {"row": 135, "column": 9}}, {"id": 388, "type": "field_identifier", "text": "int_value_", "parent": 386, "children": [], "start_point": {"row": 135, "column": 10}, "end_point": {"row": 135, "column": 20}}, {"id": 389, "type": "field_declaration", "text": "double real_value_;", "parent": 381, "children": [390, 391], "start_point": {"row": 136, "column": 6}, "end_point": {"row": 136, "column": 25}}, {"id": 390, "type": "primitive_type", "text": "double", "parent": 389, "children": [], "start_point": {"row": 136, "column": 6}, "end_point": {"row": 136, "column": 12}}, {"id": 391, "type": "field_identifier", "text": "real_value_", "parent": 389, "children": [], "start_point": {"row": 136, "column": 13}, "end_point": {"row": 136, "column": 24}}, {"id": 392, "type": "identifier", "text": "value_u_", "parent": 380, "children": [], "start_point": {"row": 137, "column": 6}, "end_point": {"row": 137, "column": 14}}, {"id": 393, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 144, "column": 0}, "end_point": {"row": 144, "column": 6}}]}, "node_categories": {"declarations": {"functions": [18, 21, 42, 113, 118, 124, 128, 132, 137, 141, 145, 149, 153, 157, 161, 165, 169, 173, 177, 182, 186, 194, 202, 210, 218, 228, 236, 244, 252, 260, 268, 276, 284, 292, 302, 310, 318, 326], "variables": [27, 30, 36, 39, 47, 109, 121, 189, 192, 197, 200, 205, 208, 213, 216, 221, 226, 231, 234, 239, 242, 247, 250, 255, 258, 263, 266, 271, 274, 279, 282, 287, 290, 295, 305, 313, 316, 321, 324, 329, 334, 345, 349, 352, 355, 358, 361, 364, 367, 370, 373, 376, 380, 383, 386, 389], "classes": [24, 25, 33, 34, 371, 372, 381, 382], "imports": [6, 7, 9, 10, 12, 13, 15, 16], "modules": [], "enums": []}, "statements": {"expressions": [53, 56, 59, 66, 68, 77, 80, 86, 91, 95, 97, 102, 103], "assignments": [88, 99], "loops": [], "conditionals": [0, 1, 2, 5, 19, 20, 22, 23, 26, 29, 32, 35, 38, 41, 43, 45, 48, 50, 52, 54, 57, 60, 62, 63, 65, 69, 71, 72, 74, 76, 78, 81, 83, 85, 87, 89, 94, 96, 98, 100, 104, 106, 108, 110, 114, 117, 119, 122, 125, 127, 129, 131, 133, 135, 136, 138, 140, 142, 144, 146, 150, 154, 158, 162, 166, 170, 174, 178, 180, 181, 183, 187, 190, 191, 195, 198, 199, 203, 206, 207, 211, 214, 215, 219, 222, 224, 225, 229, 232, 233, 237, 241, 245, 249, 253, 257, 261, 265, 269, 273, 277, 281, 285, 289, 293, 296, 298, 299, 303, 306, 307, 311, 314, 315, 319, 322, 323, 327, 330, 333, 335, 336, 338, 340, 341, 342, 344, 347, 348, 350, 351, 353, 354, 356, 357, 359, 360, 362, 363, 366, 369, 374, 375, 377, 378, 379, 384, 385, 388, 391, 392, 393], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 18, "universal_type": "function", "name": "IntRange", "text_snippet": "namespace open_edi {\nnamespace db {\n\nstruct IntRange {\n int min;\n int max;\n};\n\nstruct RealRange {\n"}, {"node_id": 21, "universal_type": "function", "name": "IntRange", "text_snippet": "namespace db {\n\nstruct IntRange {\n int min;\n int max;\n};\n\nstruct RealRange {\n double min;\n doubl"}, {"node_id": 42, "universal_type": "function", "name": "PropertyDefinition", "text_snippet": "class PropertyDefinition : public Object {\n public:\n using BaseType = Object;\n\n /// @brief de"}, {"node_id": 113, "universal_type": "function", "name": "unknown", "text_snippet": "clone() const"}, {"node_id": 118, "universal_type": "function", "name": "unknown", "text_snippet": "memory()"}, {"node_id": 124, "universal_type": "function", "name": "unknown", "text_snippet": "getPropType() const"}, {"node_id": 128, "universal_type": "function", "name": "unknown", "text_snippet": "getPropOriginType() const"}, {"node_id": 132, "universal_type": "function", "name": "unknown", "text_snippet": "getPropSaveType() const"}, {"node_id": 137, "universal_type": "function", "name": "unknown", "text_snippet": "getPropName() const"}, {"node_id": 141, "universal_type": "function", "name": "unknown", "text_snippet": "getDataType() const"}, {"node_id": 145, "universal_type": "function", "name": "unknown", "text_snippet": "getObjType() const"}, {"node_id": 149, "universal_type": "function", "name": "unknown", "text_snippet": "getHasRange() const"}, {"node_id": 153, "universal_type": "function", "name": "unknown", "text_snippet": "getHasValue() const"}, {"node_id": 157, "universal_type": "function", "name": "unknown", "text_snippet": "getIntRangeMin() const"}, {"node_id": 161, "universal_type": "function", "name": "unknown", "text_snippet": "getIntRangeMax() const"}, {"node_id": 165, "universal_type": "function", "name": "unknown", "text_snippet": "getRealRangeMin() const"}, {"node_id": 169, "universal_type": "function", "name": "unknown", "text_snippet": "getRealRangeMax() const"}, {"node_id": 173, "universal_type": "function", "name": "unknown", "text_snippet": "getIntValue() const"}, {"node_id": 177, "universal_type": "function", "name": "unknown", "text_snippet": "getRealValue() const"}, {"node_id": 182, "universal_type": "function", "name": "unknown", "text_snippet": "getStringValue() const"}, {"node_id": 186, "universal_type": "function", "name": "unknown", "text_snippet": "setPropType(PropertyType v)"}, {"node_id": 194, "universal_type": "function", "name": "unknown", "text_snippet": "setPropOriginType(PropertyOrigin v)"}, {"node_id": 202, "universal_type": "function", "name": "unknown", "text_snippet": "setPropSaveType(PropertySaveStatus v)"}, {"node_id": 210, "universal_type": "function", "name": "unknown", "text_snippet": "setObjType(ObjectType v)"}, {"node_id": 218, "universal_type": "function", "name": "unknown", "text_snippet": "setPropName(const std::string & v)"}, {"node_id": 228, "universal_type": "function", "name": "unknown", "text_snippet": "setDataType(PropDataType v)"}, {"node_id": 236, "universal_type": "function", "name": "unknown", "text_snippet": "setHasRange(bool v)"}, {"node_id": 244, "universal_type": "function", "name": "unknown", "text_snippet": "setIntRangeMin(int v)"}, {"node_id": 252, "universal_type": "function", "name": "unknown", "text_snippet": "setIntRangeMax(int v)"}, {"node_id": 260, "universal_type": "function", "name": "unknown", "text_snippet": "setRealRangeMin(double v)"}, {"node_id": 268, "universal_type": "function", "name": "unknown", "text_snippet": "setRealRangeMax(double v)"}, {"node_id": 276, "universal_type": "function", "name": "unknown", "text_snippet": "setIntValue(int v)"}, {"node_id": 284, "universal_type": "function", "name": "unknown", "text_snippet": "setRealValue(double v)"}, {"node_id": 292, "universal_type": "function", "name": "unknown", "text_snippet": "setStringValue(const std::string & v)"}, {"node_id": 302, "universal_type": "function", "name": "unknown", "text_snippet": "printLEF(IOManager &io_manager) const"}, {"node_id": 310, "universal_type": "function", "name": "unknown", "text_snippet": "printDEF(IOManager &io_manager) const"}, {"node_id": 318, "universal_type": "function", "name": "unknown", "text_snippet": "copy(PropertyDefinition const &rhs)"}, {"node_id": 326, "universal_type": "function", "name": "unknown", "text_snippet": "move(PropertyDefinition &&rhs)"}], "class_declarations": [{"node_id": 24, "universal_type": "class", "name": "IntRange", "text_snippet": "struct IntRange {\n int min;\n int max;\n}"}, {"node_id": 25, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 33, "universal_type": "class", "name": "RealRange", "text_snippet": "struct RealRange {\n double min;\n double max;\n}"}, {"node_id": 34, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 371, "universal_type": "class", "name": "{", "text_snippet": "union {\n IntRange int_range_;\n RealRange real_range_;\n }"}, {"node_id": 372, "universal_type": "class", "name": "unknown", "text_snippet": "union"}, {"node_id": 381, "universal_type": "class", "name": "{", "text_snippet": "union {\n SymbolIndex string_value_;\n int int_value_;\n double real_value_;\n }"}, {"node_id": 382, "universal_type": "class", "name": "unknown", "text_snippet": "union"}], "import_statements": [{"node_id": 6, "text": "#include \"db/core/object.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"util/util.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"db/tech/type_def.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"util/io_manager.h\"\n"}, {"node_id": 16, "text": "#include"}]}, "original_source_code": "/** \n * @file property_definition.h\n * @date 08/21/2020 04:34:28 PM CST\n * @brief \"\"\n *\n * Copyright (C) 2020 NIIC EDA\n * All rights reserved.\n *\n * This software may be modified and distributed under the terms\n * of the BSD license. See the LICENSE file for details.\n */\n\n#ifndef EDI_DB_UTIL_PROPERTYDEFINITION_H_\n#define EDI_DB_UTIL_PROPERTYDEFINITION_H_\n\n#include \"db/core/object.h\"\n#include \"util/util.h\"\n#include \"db/tech/type_def.h\"\n#include \"util/io_manager.h\"\n\nnamespace open_edi {\nnamespace db {\n\nstruct IntRange {\n int min;\n int max;\n};\n\nstruct RealRange {\n double min;\n double max;\n};\n\n/**\n * @class PropertyDefinition\n * @brief for PROPERTYDEFINITIONS\n * [PROPERTYDEFINITIONS \n * [objectType propName propType [RANGE min max] [value | \"stringValue\"] ;] ... \n * END PROPERTYDEFINITIONS] \n * */\nclass PropertyDefinition : public Object {\n public:\n using BaseType = Object;\n\n /// @brief default constructor\n PropertyDefinition();\n\n /// @brief constructor\n PropertyDefinition(Object* owner, UInt32 id);\n\n /// @brief destructor\n ~PropertyDefinition();\n\n /// @brief copy constructor\n PropertyDefinition(PropertyDefinition const &rhs);\n\n /// @brief move constructor\n PropertyDefinition(PropertyDefinition &&rhs) noexcept;\n\n /// @brief copy assignment\n PropertyDefinition &operator=(PropertyDefinition const &rhs);\n\n /// @brief move constructor\n PropertyDefinition &operator=(PropertyDefinition &&rhs) noexcept;\n /// @brief clone current object for extensibility.\n /// Users need to manage the pointer to avoid memory leakage.\n /// @return the pointer to the new object\n PropertyDefinition *clone() const;\n\n /// @brief summarize memory usage of the object in bytes\n UInt32 memory() const;\n\n //ACCESS\n //Get\n PropertyType getPropType() const;\n PropertyOrigin getPropOriginType() const;\n PropertySaveStatus getPropSaveType() const;\n const std::string & getPropName() const;\n PropDataType getDataType() const;\n ObjectType getObjType() const;\n bool getHasRange() const;\n bool getHasValue() const;\n int getIntRangeMin() const;\n int getIntRangeMax() const;\n double getRealRangeMin() const;\n double getRealRangeMax() const;\n int getIntValue() const;\n double getRealValue() const;\n std::string getStringValue() const;\n //Set\n void setPropType(PropertyType v);\n void setPropOriginType(PropertyOrigin v);\n void setPropSaveType(PropertySaveStatus v);\n void setObjType(ObjectType v);\n void setPropName(const std::string & v);\n void setDataType(PropDataType v);\n void setHasRange(bool v);\n void setIntRangeMin(int v);\n void setIntRangeMax(int v);\n void setRealRangeMin(double v);\n void setRealRangeMax(double v);\n //TODO: check range...\n void setIntValue(int v);\n void setRealValue(double v);\n void setStringValue(const std::string & v);\n //Print\n void printLEF(IOManager &io_manager) const;\n void printDEF(IOManager &io_manager) const;\n\n protected:\n /// @brief copy object\n void copy(PropertyDefinition const &rhs);\n /// @brief move object\n void move(PropertyDefinition &&rhs);\n /// @brief overload output stream\n friend OStreamBase &operator<<(OStreamBase &os, PropertyDefinition const &rhs);\n /// @brief overload input stream\n //friend IStreamBase &operator>>(IStreamBase &is, PropertyDefinition &rhs) {}\n\n private:\n //DATA\n SymbolIndex name_index_;\n PropertyType prop_type_;\n PropertyOrigin origin_type_;\n PropertySaveStatus save_type_;\n PropDataType data_type_;\n ObjectType obj_type_;\n bool has_range_;\n bool has_value_;\n union {\n IntRange int_range_;\n RealRange real_range_;\n } range_u_;\n union {\n SymbolIndex string_value_;\n int int_value_;\n double real_value_;\n } value_u_;\n};\n\n\n} // namespace db \n} // namespace open_edi\n\n#endif\n\n\n"}
80,228
c
/* * Copyright 2017 The Native Object Protocols Authors * * 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 LIBNOP_INCLUDE_NOP_UTILITY_SIP_HASH_H_ #define LIBNOP_INCLUDE_NOP_UTILITY_SIP_HASH_H_ #include <array> #include <cstdint> #include <nop/utility/compiler.h> // A direct port of the SipHash C reference implementation. // // https://131002.net/siphash/siphash24.c // // This version supports compile-time constexpr hash computation when provided // with a byte container that supports constexpr size() and operator[] methods. // namespace nop { // A simple byte container/wrapper with constexpr size() and operator[] methods. template <typename T> class BlockReader { public: static_assert(sizeof(T) == 1, "sizeof(T) != 1"); using ValueType = T; template <std::size_t Size> constexpr BlockReader(const ValueType (&value)[Size]) : data_{value}, size_{Size} {} constexpr BlockReader(const ValueType* data, std::size_t size) : data_{data}, size_{size} {} BlockReader(const BlockReader&) = default; BlockReader& operator=(const BlockReader&) = default; constexpr std::size_t size() const { return size_; } constexpr ValueType operator[](const std::size_t index) const { return data_[index]; } private: const ValueType* data_; std::size_t size_; }; // Captures a hash value as a compile-time type. template <std::uint64_t Hash_> struct HashValue { enum : std::uint64_t { Value = Hash_ }; }; struct SipHash { template <typename T, std::size_t Size> static constexpr std::uint64_t Compute(const T (&buffer)[Size], std::uint64_t k0, std::uint64_t k1) { return Compute(BlockReader<T>(buffer), k0, k1); } template <typename BufferType> static constexpr std::uint64_t Compute(const BufferType buffer, std::uint64_t k0, std::uint64_t k1) { const std::size_t kBlockSize = sizeof(std::uint64_t); const std::size_t kLength = buffer.size(); const std::size_t kLeftOver = kLength % kBlockSize; const std::size_t kEndOffset = kLength - kLeftOver; std::uint64_t v[4] = {0x736f6d6570736575ULL, 0x646f72616e646f6dULL, 0x6c7967656e657261ULL, 0x7465646279746573ULL}; std::uint64_t b = static_cast<std::uint64_t>(kLength) << 56; v[3] ^= k1; v[2] ^= k0; v[1] ^= k1; v[0] ^= k0; for (std::size_t offset = 0; offset < kEndOffset; offset += kBlockSize) { std::uint64_t m = ReadBlock(buffer, offset); v[3] ^= m; Round(v); Round(v); v[0] ^= m; } switch (kLeftOver) { case 7: b |= static_cast<std::uint64_t>(buffer[kEndOffset + 6]) << 48; NOP_FALLTHROUGH; case 6: b |= static_cast<std::uint64_t>(buffer[kEndOffset + 5]) << 40; NOP_FALLTHROUGH; case 5: b |= static_cast<std::uint64_t>(buffer[kEndOffset + 4]) << 32; NOP_FALLTHROUGH; case 4: b |= static_cast<std::uint64_t>(buffer[kEndOffset + 3]) << 24; NOP_FALLTHROUGH; case 3: b |= static_cast<std::uint64_t>(buffer[kEndOffset + 2]) << 16; NOP_FALLTHROUGH; case 2: b |= static_cast<std::uint64_t>(buffer[kEndOffset + 1]) << 8; NOP_FALLTHROUGH; case 1: b |= static_cast<std::uint64_t>(buffer[kEndOffset + 0]) << 0; NOP_FALLTHROUGH; case 0: break; } v[3] ^= b; Round(v); Round(v); v[0] ^= b; v[2] ^= 0xff; Round(v); Round(v); Round(v); Round(v); b = v[0] ^ v[1] ^ v[2] ^ v[3]; return b; } private: template <typename BufferType> static constexpr std::uint64_t ReadBlock(const BufferType buffer, const std::size_t offset) { const std::uint64_t v0 = buffer[offset + 0]; const std::uint64_t v1 = buffer[offset + 1]; const std::uint64_t v2 = buffer[offset + 2]; const std::uint64_t v3 = buffer[offset + 3]; const std::uint64_t v4 = buffer[offset + 4]; const std::uint64_t v5 = buffer[offset + 5]; const std::uint64_t v6 = buffer[offset + 6]; const std::uint64_t v7 = buffer[offset + 7]; return ((v7 << 56) | (v6 << 48) | (v5 << 40) | (v4 << 32) | (v3 << 24) | (v2 << 16) | (v1 << 8) | (v0 << 0)); } static constexpr std::uint64_t RotateLeft(const std::uint64_t x, const std::uint64_t b) { return (x << b) | (x >> (64 - b)); } static constexpr void Round(std::uint64_t (&v)[4]) { v[0] += v[1]; v[1] = RotateLeft(v[1], 13); v[1] ^= v[0]; v[0] = RotateLeft(v[0], 32); v[2] += v[3]; v[3] = RotateLeft(v[3], 16); v[3] ^= v[2]; v[0] += v[3]; v[3] = RotateLeft(v[3], 21); v[3] ^= v[0]; v[2] += v[1]; v[1] = RotateLeft(v[1], 17); v[1] ^= v[2]; v[2] = RotateLeft(v[2], 32); } }; } // namespace nop #endif // LIBNOP_INCLUDE_NOP_UTILITY_SIP_HASH_H_
33.97
156
(translation_unit) "/*\n * Copyright 2017 The Native Object Protocols Authors\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#ifndef LIBNOP_INCLUDE_NOP_UTILITY_SIP_HASH_H_\n#define LIBNOP_INCLUDE_NOP_UTILITY_SIP_HASH_H_\n\n#include <array>\n#include <cstdint>\n\n#include <nop/utility/compiler.h>\n\n// A direct port of the SipHash C reference implementation.\n//\n// https://131002.net/siphash/siphash24.c\n//\n// This version supports compile-time constexpr hash computation when provided\n// with a byte container that supports constexpr size() and operator[] methods.\n//\n\nnamespace nop {\n\n// A simple byte container/wrapper with constexpr size() and operator[] methods.\ntemplate <typename T>\nclass BlockReader {\n public:\n static_assert(sizeof(T) == 1, "sizeof(T) != 1");\n using ValueType = T;\n\n template <std::size_t Size>\n constexpr BlockReader(const ValueType (&value)[Size])\n : data_{value}, size_{Size} {}\n constexpr BlockReader(const ValueType* data, std::size_t size)\n : data_{data}, size_{size} {}\n\n BlockReader(const BlockReader&) = default;\n BlockReader& operator=(const BlockReader&) = default;\n\n constexpr std::size_t size() const { return size_; }\n constexpr ValueType operator[](const std::size_t index) const {\n return data_[index];\n }\n\n private:\n const ValueType* data_;\n std::size_t size_;\n};\n\n// Captures a hash value as a compile-time type.\ntemplate <std::uint64_t Hash_>\nstruct HashValue {\n enum : std::uint64_t { Value = Hash_ };\n};\n\nstruct SipHash {\n template <typename T, std::size_t Size>\n static constexpr std::uint64_t Compute(const T (&buffer)[Size],\n std::uint64_t k0, std::uint64_t k1) {\n return Compute(BlockReader<T>(buffer), k0, k1);\n }\n\n template <typename BufferType>\n static constexpr std::uint64_t Compute(const BufferType buffer,\n std::uint64_t k0, std::uint64_t k1) {\n const std::size_t kBlockSize = sizeof(std::uint64_t);\n const std::size_t kLength = buffer.size();\n const std::size_t kLeftOver = kLength % kBlockSize;\n const std::size_t kEndOffset = kLength - kLeftOver;\n\n std::uint64_t v[4] = {0x736f6d6570736575ULL, 0x646f72616e646f6dULL,\n 0x6c7967656e657261ULL, 0x7465646279746573ULL};\n\n std::uint64_t b = static_cast<std::uint64_t>(kLength) << 56;\n\n v[3] ^= k1;\n v[2] ^= k0;\n v[1] ^= k1;\n v[0] ^= k0;\n\n for (std::size_t offset = 0; offset < kEndOffset; offset += kBlockSize) {\n std::uint64_t m = ReadBlock(buffer, offset);\n v[3] ^= m;\n Round(v);\n Round(v);\n v[0] ^= m;\n }\n\n switch (kLeftOver) {\n case 7:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 6]) << 48;\n NOP_FALLTHROUGH;\n case 6:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 5]) << 40;\n NOP_FALLTHROUGH;\n case 5:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 4]) << 32;\n NOP_FALLTHROUGH;\n case 4:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 3]) << 24;\n NOP_FALLTHROUGH;\n case 3:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 2]) << 16;\n NOP_FALLTHROUGH;\n case 2:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 1]) << 8;\n NOP_FALLTHROUGH;\n case 1:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 0]) << 0;\n NOP_FALLTHROUGH;\n case 0:\n break;\n }\n\n v[3] ^= b;\n Round(v);\n Round(v);\n v[0] ^= b;\n\n v[2] ^= 0xff;\n Round(v);\n Round(v);\n Round(v);\n Round(v);\n b = v[0] ^ v[1] ^ v[2] ^ v[3];\n\n return b;\n }\n\n private:\n template <typename BufferType>\n static constexpr std::uint64_t ReadBlock(const BufferType buffer,\n const std::size_t offset) {\n const std::uint64_t v0 = buffer[offset + 0];\n const std::uint64_t v1 = buffer[offset + 1];\n const std::uint64_t v2 = buffer[offset + 2];\n const std::uint64_t v3 = buffer[offset + 3];\n const std::uint64_t v4 = buffer[offset + 4];\n const std::uint64_t v5 = buffer[offset + 5];\n const std::uint64_t v6 = buffer[offset + 6];\n const std::uint64_t v7 = buffer[offset + 7];\n\n return ((v7 << 56) | (v6 << 48) | (v5 << 40) | (v4 << 32) | (v3 << 24) |\n (v2 << 16) | (v1 << 8) | (v0 << 0));\n }\n\n static constexpr std::uint64_t RotateLeft(const std::uint64_t x,\n const std::uint64_t b) {\n return (x << b) | (x >> (64 - b));\n }\n\n static constexpr void Round(std::uint64_t (&v)[4]) {\n v[0] += v[1];\n v[1] = RotateLeft(v[1], 13);\n v[1] ^= v[0];\n v[0] = RotateLeft(v[0], 32);\n v[2] += v[3];\n v[3] = RotateLeft(v[3], 16);\n v[3] ^= v[2];\n v[0] += v[3];\n v[3] = RotateLeft(v[3], 21);\n v[3] ^= v[0];\n v[2] += v[1];\n v[1] = RotateLeft(v[1], 17);\n v[1] ^= v[2];\n v[2] = RotateLeft(v[2], 32);\n }\n};\n\n} // namespace nop\n\n#endif // LIBNOP_INCLUDE_NOP_UTILITY_SIP_HASH_H_\n" (comment) "/*\n * Copyright 2017 The Native Object Protocols Authors\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 */" (ERROR) "#ifndef LIBNOP_INCLUDE_NOP_UTILITY_SIP_HASH_H_\n#define LIBNOP_INCLUDE_NOP_UTILITY_SIP_HASH_H_\n\n#include <array>\n#include <cstdint>\n\n#include <nop/utility/compiler.h>\n\n// A direct port of the SipHash C reference implementation.\n//\n// https://131002.net/siphash/siphash24.c\n//\n// This version supports compile-time constexpr hash computation when provided\n// with a byte container that supports constexpr size() and operator[] methods.\n//\n\nnamespace nop {\n\n// A simple byte container/wrapper with constexpr size() and operator[] methods.\ntemplate <typename T>\nclass BlockReader {\n public:\n static_assert(sizeof(T) == 1, "sizeof(T) != 1");\n using ValueType = T;\n\n template <std::size_t Size>\n constexpr BlockReader(const ValueType (&value)[Size])\n : data_{value}, size_{Size} {}\n constexpr BlockReader(const ValueType* data, std::size_t size)\n : data_{data}, size_{size} {}\n\n BlockReader(const BlockReader&) = default;\n BlockReader& operator=(const BlockReader&) = default;\n\n constexpr std::size_t size() const { return size_; }\n constexpr ValueType operator[](const std::size_t index) const {\n return data_[index];\n }\n\n private:\n const ValueType* data_;\n std::size_t size_;\n};\n\n// Captures a hash value as a compile-time type.\ntemplate <std::uint64_t Hash_>\nstruct HashValue {\n enum : std::uint64_t { Value = Hash_ };\n};\n\nstruct SipHash {\n template <typename T, std::size_t Size>\n static constexpr std::uint64_t Compute(const T (&buffer)[Size],\n std::uint64_t k0, std::uint64_t k1) {\n return Compute(BlockReader<T>(buffer), k0, k1);\n }\n\n template <typename BufferType>\n static constexpr std::uint64_t Compute(const BufferType buffer,\n std::uint64_t k0, std::uint64_t k1) {\n const std::size_t kBlockSize = sizeof(std::uint64_t);\n const std::size_t kLength = buffer.size();\n const std::size_t kLeftOver = kLength % kBlockSize;\n const std::size_t kEndOffset = kLength - kLeftOver;\n\n std::uint64_t v[4] = {0x736f6d6570736575ULL, 0x646f72616e646f6dULL,\n 0x6c7967656e657261ULL, 0x7465646279746573ULL};\n\n std::uint64_t b = static_cast<std::uint64_t>(kLength) << 56;\n\n v[3] ^= k1;\n v[2] ^= k0;\n v[1] ^= k1;\n v[0] ^= k0;\n\n for (std::size_t offset = 0; offset < kEndOffset; offset += kBlockSize) {\n std::uint64_t m = ReadBlock(buffer, offset);\n v[3] ^= m;\n Round(v);\n Round(v);\n v[0] ^= m;\n }\n\n switch (kLeftOver) {\n case 7:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 6]) << 48;\n NOP_FALLTHROUGH;\n case 6:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 5]) << 40;\n NOP_FALLTHROUGH;\n case 5:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 4]) << 32;\n NOP_FALLTHROUGH;\n case 4:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 3]) << 24;\n NOP_FALLTHROUGH;\n case 3:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 2]) << 16;\n NOP_FALLTHROUGH;\n case 2:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 1]) << 8;\n NOP_FALLTHROUGH;\n case 1:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 0]) << 0;\n NOP_FALLTHROUGH;\n case 0:\n break;\n }\n\n v[3] ^= b;\n Round(v);\n Round(v);\n v[0] ^= b;\n\n v[2] ^= 0xff;\n Round(v);\n Round(v);\n Round(v);\n Round(v);\n b = v[0] ^ v[1] ^ v[2] ^ v[3];\n\n return b;\n }\n\n private:\n template <typename BufferType>\n static constexpr std::uint64_t ReadBlock(const BufferType buffer,\n const std::size_t offset) {\n const std::uint64_t v0 = buffer[offset + 0];\n const std::uint64_t v1 = buffer[offset + 1];\n const std::uint64_t v2 = buffer[offset + 2];\n const std::uint64_t v3 = buffer[offset + 3];\n const std::uint64_t v4 = buffer[offset + 4];\n const std::uint64_t v5 = buffer[offset + 5];\n const std::uint64_t v6 = buffer[offset + 6];\n const std::uint64_t v7 = buffer[offset + 7];\n\n return ((v7 << 56) | (v6 << 48) | (v5 << 40) | (v4 << 32) | (v3 << 24) |\n (v2 << 16) | (v1 << 8) | (v0 << 0));\n }\n\n static constexpr std::uint64_t RotateLeft(const std::uint64_t x,\n const std::uint64_t b) {\n return (x << b) | (x >> (64 - b));\n }\n\n static constexpr void Round(std::uint64_t (&v)[4]) {\n v[0] += v[1];\n v[1] = RotateLeft(v[1], 13);\n v[1] ^= v[0];\n v[0] = RotateLeft(v[0], 32);\n v[2] += v[3];\n v[3] = RotateLeft(v[3], 16);\n v[3] ^= v[2];\n v[0] += v[3];\n v[3] = RotateLeft(v[3], 21);\n v[3] ^= v[0];\n v[2] += v[1];\n v[1] = RotateLeft(v[1], 17);\n v[1] ^= v[2];\n v[2] = RotateLeft(v[2], 32);\n }\n};\n\n} // namespace nop\n\n#endif // LIBNOP_INCLUDE_NOP_UTILITY_SIP_HASH_H_\n" (#ifndef) "#ifndef" (identifier) "LIBNOP_INCLUDE_NOP_UTILITY_SIP_HASH_H_" (preproc_def) "#define LIBNOP_INCLUDE_NOP_UTILITY_SIP_HASH_H_\n" (#define) "#define" (identifier) "LIBNOP_INCLUDE_NOP_UTILITY_SIP_HASH_H_" (preproc_include) "#include <array>\n" (#include) "#include" (system_lib_string) "<array>" (preproc_include) "#include <cstdint>\n" (#include) "#include" (system_lib_string) "<cstdint>" (preproc_include) "#include <nop/utility/compiler.h>\n" (#include) "#include" (system_lib_string) "<nop/utility/compiler.h>" (comment) "// A direct port of the SipHash C reference implementation." (comment) "//" (comment) "// https://131002.net/siphash/siphash24.c" (comment) "//" (comment) "// This version supports compile-time constexpr hash computation when provided" (comment) "// with a byte container that supports constexpr size() and operator[] methods." (comment) "//" (type_identifier) "namespace" (identifier) "nop" ({) "{" (comment) "// A simple byte container/wrapper with constexpr size() and operator[] methods." (ERROR) "template <typename T>\nclass BlockReader" (binary_expression) "template <typename T>\nclass" (binary_expression) "template <typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "T" (identifier) "T" (>) ">" (identifier) "class" (identifier) "BlockReader" (compound_statement) "{\n public:\n static_assert(sizeof(T) == 1, "sizeof(T) != 1");\n using ValueType = T;\n\n template <std::size_t Size>\n constexpr BlockReader(const ValueType (&value)[Size])\n : data_{value}, size_{Size} {}\n constexpr BlockReader(const ValueType* data, std::size_t size)\n : data_{data}, size_{size} {}\n\n BlockReader(const BlockReader&) = default;\n BlockReader& operator=(const BlockReader&) = default;\n\n constexpr std::size_t size() const { return size_; }\n constexpr ValueType operator[](const std::size_t index) const {\n return data_[index];\n }\n\n private:\n const ValueType* data_;\n std::size_t size_;\n};\n\n// Captures a hash value as a compile-time type.\ntemplate <std::uint64_t Hash_>\nstruct HashValue {\n enum : std::uint64_t { Value = Hash_ };\n};\n\nstruct SipHash {\n template <typename T, std::size_t Size>\n static constexpr std::uint64_t Compute(const T (&buffer)[Size],\n std::uint64_t k0, std::uint64_t k1) {\n return Compute(BlockReader<T>(buffer), k0, k1);\n }\n\n template <typename BufferType>\n static constexpr std::uint64_t Compute(const BufferType buffer,\n std::uint64_t k0, std::uint64_t k1) {\n const std::size_t kBlockSize = sizeof(std::uint64_t);\n const std::size_t kLength = buffer.size();\n const std::size_t kLeftOver = kLength % kBlockSize;\n const std::size_t kEndOffset = kLength - kLeftOver;\n\n std::uint64_t v[4] = {0x736f6d6570736575ULL, 0x646f72616e646f6dULL,\n 0x6c7967656e657261ULL, 0x7465646279746573ULL};\n\n std::uint64_t b = static_cast<std::uint64_t>(kLength) << 56;\n\n v[3] ^= k1;\n v[2] ^= k0;\n v[1] ^= k1;\n v[0] ^= k0;\n\n for (std::size_t offset = 0; offset < kEndOffset; offset += kBlockSize) {\n std::uint64_t m = ReadBlock(buffer, offset);\n v[3] ^= m;\n Round(v);\n Round(v);\n v[0] ^= m;\n }\n\n switch (kLeftOver) {\n case 7:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 6]) << 48;\n NOP_FALLTHROUGH;\n case 6:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 5]) << 40;\n NOP_FALLTHROUGH;\n case 5:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 4]) << 32;\n NOP_FALLTHROUGH;\n case 4:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 3]) << 24;\n NOP_FALLTHROUGH;\n case 3:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 2]) << 16;\n NOP_FALLTHROUGH;\n case 2:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 1]) << 8;\n NOP_FALLTHROUGH;\n case 1:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 0]) << 0;\n NOP_FALLTHROUGH;\n case 0:\n break;\n }\n\n v[3] ^= b;\n Round(v);\n Round(v);\n v[0] ^= b;\n\n v[2] ^= 0xff;\n Round(v);\n Round(v);\n Round(v);\n Round(v);\n b = v[0] ^ v[1] ^ v[2] ^ v[3];\n\n return b;\n }\n\n private:\n template <typename BufferType>\n static constexpr std::uint64_t ReadBlock(const BufferType buffer,\n const std::size_t offset) {\n const std::uint64_t v0 = buffer[offset + 0];\n const std::uint64_t v1 = buffer[offset + 1];\n const std::uint64_t v2 = buffer[offset + 2];\n const std::uint64_t v3 = buffer[offset + 3];\n const std::uint64_t v4 = buffer[offset + 4];\n const std::uint64_t v5 = buffer[offset + 5];\n const std::uint64_t v6 = buffer[offset + 6];\n const std::uint64_t v7 = buffer[offset + 7];\n\n return ((v7 << 56) | (v6 << 48) | (v5 << 40) | (v4 << 32) | (v3 << 24) |\n (v2 << 16) | (v1 << 8) | (v0 << 0));\n }\n\n static constexpr std::uint64_t RotateLeft(const std::uint64_t x,\n const std::uint64_t b) {\n return (x << b) | (x >> (64 - b));\n }\n\n static constexpr void Round(std::uint64_t (&v)[4]) {\n v[0] += v[1];\n v[1] = RotateLeft(v[1], 13);\n v[1] ^= v[0];\n v[0] = RotateLeft(v[0], 32);\n v[2] += v[3];\n v[3] = RotateLeft(v[3], 16);\n v[3] ^= v[2];\n v[0] += v[3];\n v[3] = RotateLeft(v[3], 21);\n v[3] ^= v[0];\n v[2] += v[1];\n v[1] = RotateLeft(v[1], 17);\n v[1] ^= v[2];\n v[2] = RotateLeft(v[2], 32);\n }\n};\n\n}" ({) "{" (labeled_statement) "public:\n static_assert(sizeof(T) == 1, "sizeof(T) != 1");" (statement_identifier) "public" (:) ":" (expression_statement) "static_assert(sizeof(T) == 1, "sizeof(T) != 1");" (call_expression) "static_assert(sizeof(T) == 1, "sizeof(T) != 1")" (identifier) "static_assert" (argument_list) "(sizeof(T) == 1, "sizeof(T) != 1")" (() "(" (binary_expression) "sizeof(T) == 1" (sizeof_expression) "sizeof(T)" (sizeof) "sizeof" (parenthesized_expression) "(T)" (() "(" (identifier) "T" ()) ")" (==) "==" (number_literal) "1" (,) "," (string_literal) ""sizeof(T) != 1"" (") """ (string_content) "sizeof(T) != 1" (") """ ()) ")" (;) ";" (declaration) "using ValueType = T;" (type_identifier) "using" (init_declarator) "ValueType = T" (identifier) "ValueType" (=) "=" (identifier) "T" (;) ";" (ERROR) "template <std::size_t Size>" (binary_expression) "template <std" (identifier) "template" (<) "<" (identifier) "std" (:) ":" (:) ":" (primitive_type) "size_t" (identifier) "Size" (>) ">" (function_definition) "constexpr BlockReader(const ValueType (&value)[Size])\n : data_{value}, size_{Size} {}\n constexpr BlockReader(const ValueType* data, std::size_t size)\n : data_{data}, size_{size} {}\n\n BlockReader(const BlockReader&) = default;\n BlockReader& operator=(const BlockReader&) = default;\n\n constexpr std::size_t size() const { return size_; }\n constexpr ValueType operator[](const std::size_t index) const {\n return data_[index];\n }\n\n private:\n const ValueType* data_;\n std::size_t size_;\n};\n\n// Captures a hash value as a compile-time type.\ntemplate <std::uint64_t Hash_>\nstruct HashValue {\n enum : std::uint64_t { Value = Hash_ };\n};\n\nstruct SipHash {\n template <typename T, std::size_t Size>\n static constexpr std::uint64_t Compute(const T (&buffer)[Size],\n std::uint64_t k0, std::uint64_t k1) {\n return Compute(BlockReader<T>(buffer), k0, k1);\n }\n\n template <typename BufferType>\n static constexpr std::uint64_t Compute(const BufferType buffer,\n std::uint64_t k0, std::uint64_t k1) {\n const std::size_t kBlockSize = sizeof(std::uint64_t);\n const std::size_t kLength = buffer.size();\n const std::size_t kLeftOver = kLength % kBlockSize;\n const std::size_t kEndOffset = kLength - kLeftOver;\n\n std::uint64_t v[4] = {0x736f6d6570736575ULL, 0x646f72616e646f6dULL,\n 0x6c7967656e657261ULL, 0x7465646279746573ULL};\n\n std::uint64_t b = static_cast<std::uint64_t>(kLength) << 56;\n\n v[3] ^= k1;\n v[2] ^= k0;\n v[1] ^= k1;\n v[0] ^= k0;\n\n for (std::size_t offset = 0; offset < kEndOffset; offset += kBlockSize) {\n std::uint64_t m = ReadBlock(buffer, offset);\n v[3] ^= m;\n Round(v);\n Round(v);\n v[0] ^= m;\n }\n\n switch (kLeftOver) {\n case 7:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 6]) << 48;\n NOP_FALLTHROUGH;\n case 6:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 5]) << 40;\n NOP_FALLTHROUGH;\n case 5:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 4]) << 32;\n NOP_FALLTHROUGH;\n case 4:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 3]) << 24;\n NOP_FALLTHROUGH;\n case 3:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 2]) << 16;\n NOP_FALLTHROUGH;\n case 2:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 1]) << 8;\n NOP_FALLTHROUGH;\n case 1:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 0]) << 0;\n NOP_FALLTHROUGH;\n case 0:\n break;\n }\n\n v[3] ^= b;\n Round(v);\n Round(v);\n v[0] ^= b;\n\n v[2] ^= 0xff;\n Round(v);\n Round(v);\n Round(v);\n Round(v);\n b = v[0] ^ v[1] ^ v[2] ^ v[3];\n\n return b;\n }\n\n private:\n template <typename BufferType>\n static constexpr std::uint64_t ReadBlock(const BufferType buffer,\n const std::size_t offset) {\n const std::uint64_t v0 = buffer[offset + 0];\n const std::uint64_t v1 = buffer[offset + 1];\n const std::uint64_t v2 = buffer[offset + 2];\n const std::uint64_t v3 = buffer[offset + 3];\n const std::uint64_t v4 = buffer[offset + 4];\n const std::uint64_t v5 = buffer[offset + 5];\n const std::uint64_t v6 = buffer[offset + 6];\n const std::uint64_t v7 = buffer[offset + 7];\n\n return ((v7 << 56) | (v6 << 48) | (v5 << 40) | (v4 << 32) | (v3 << 24) |\n (v2 << 16) | (v1 << 8) | (v0 << 0));\n }\n\n static constexpr std::uint64_t RotateLeft(const std::uint64_t x,\n const std::uint64_t b) {\n return (x << b) | (x >> (64 - b));\n }\n\n static constexpr void Round(std::uint64_t (&v)[4]) {\n v[0] += v[1];\n v[1] = RotateLeft(v[1], 13);\n v[1] ^= v[0];\n v[0] = RotateLeft(v[0], 32);\n v[2] += v[3];\n v[3] = RotateLeft(v[3], 16);\n v[3] ^= v[2];\n v[0] += v[3];\n v[3] = RotateLeft(v[3], 21);\n v[3] ^= v[0];\n v[2] += v[1];\n v[1] = RotateLeft(v[1], 17);\n v[1] ^= v[2];\n v[2] = RotateLeft(v[2], 32);\n }\n}" (type_qualifier) "constexpr" (constexpr) "constexpr" (macro_type_specifier) "BlockReader(const ValueType (&value)[Size])" (identifier) "BlockReader" (() "(" (type_descriptor) "const ValueType (&value)[Size]" (type_qualifier) "const" (const) "const" (macro_type_specifier) "ValueType (&value)" (identifier) "ValueType" (() "(" (ERROR) "&" (&) "&" (type_descriptor) "value" (type_identifier) "value" ()) ")" (abstract_array_declarator) "[Size]" ([) "[" (identifier) "Size" (]) "]" ()) ")" (ERROR) ":" (:) ":" (identifier) "data_" (compound_statement) "{value}, size_{Size} {}\n constexpr BlockReader(const ValueType* data, std::size_t size)\n : data_{data}, size_{size} {}\n\n BlockReader(const BlockReader&) = default;\n BlockReader& operator=(const BlockReader&) = default;\n\n constexpr std::size_t size() const { return size_; }\n constexpr ValueType operator[](const std::size_t index) const {\n return data_[index];\n }\n\n private:\n const ValueType* data_;\n std::size_t size_;\n};\n\n// Captures a hash value as a compile-time type.\ntemplate <std::uint64_t Hash_>\nstruct HashValue {\n enum : std::uint64_t { Value = Hash_ };\n};\n\nstruct SipHash {\n template <typename T, std::size_t Size>\n static constexpr std::uint64_t Compute(const T (&buffer)[Size],\n std::uint64_t k0, std::uint64_t k1) {\n return Compute(BlockReader<T>(buffer), k0, k1);\n }\n\n template <typename BufferType>\n static constexpr std::uint64_t Compute(const BufferType buffer,\n std::uint64_t k0, std::uint64_t k1) {\n const std::size_t kBlockSize = sizeof(std::uint64_t);\n const std::size_t kLength = buffer.size();\n const std::size_t kLeftOver = kLength % kBlockSize;\n const std::size_t kEndOffset = kLength - kLeftOver;\n\n std::uint64_t v[4] = {0x736f6d6570736575ULL, 0x646f72616e646f6dULL,\n 0x6c7967656e657261ULL, 0x7465646279746573ULL};\n\n std::uint64_t b = static_cast<std::uint64_t>(kLength) << 56;\n\n v[3] ^= k1;\n v[2] ^= k0;\n v[1] ^= k1;\n v[0] ^= k0;\n\n for (std::size_t offset = 0; offset < kEndOffset; offset += kBlockSize) {\n std::uint64_t m = ReadBlock(buffer, offset);\n v[3] ^= m;\n Round(v);\n Round(v);\n v[0] ^= m;\n }\n\n switch (kLeftOver) {\n case 7:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 6]) << 48;\n NOP_FALLTHROUGH;\n case 6:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 5]) << 40;\n NOP_FALLTHROUGH;\n case 5:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 4]) << 32;\n NOP_FALLTHROUGH;\n case 4:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 3]) << 24;\n NOP_FALLTHROUGH;\n case 3:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 2]) << 16;\n NOP_FALLTHROUGH;\n case 2:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 1]) << 8;\n NOP_FALLTHROUGH;\n case 1:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 0]) << 0;\n NOP_FALLTHROUGH;\n case 0:\n break;\n }\n\n v[3] ^= b;\n Round(v);\n Round(v);\n v[0] ^= b;\n\n v[2] ^= 0xff;\n Round(v);\n Round(v);\n Round(v);\n Round(v);\n b = v[0] ^ v[1] ^ v[2] ^ v[3];\n\n return b;\n }\n\n private:\n template <typename BufferType>\n static constexpr std::uint64_t ReadBlock(const BufferType buffer,\n const std::size_t offset) {\n const std::uint64_t v0 = buffer[offset + 0];\n const std::uint64_t v1 = buffer[offset + 1];\n const std::uint64_t v2 = buffer[offset + 2];\n const std::uint64_t v3 = buffer[offset + 3];\n const std::uint64_t v4 = buffer[offset + 4];\n const std::uint64_t v5 = buffer[offset + 5];\n const std::uint64_t v6 = buffer[offset + 6];\n const std::uint64_t v7 = buffer[offset + 7];\n\n return ((v7 << 56) | (v6 << 48) | (v5 << 40) | (v4 << 32) | (v3 << 24) |\n (v2 << 16) | (v1 << 8) | (v0 << 0));\n }\n\n static constexpr std::uint64_t RotateLeft(const std::uint64_t x,\n const std::uint64_t b) {\n return (x << b) | (x >> (64 - b));\n }\n\n static constexpr void Round(std::uint64_t (&v)[4]) {\n v[0] += v[1];\n v[1] = RotateLeft(v[1], 13);\n v[1] ^= v[0];\n v[0] = RotateLeft(v[0], 32);\n v[2] += v[3];\n v[3] = RotateLeft(v[3], 16);\n v[3] ^= v[2];\n v[0] += v[3];\n v[3] = RotateLeft(v[3], 21);\n v[3] ^= v[0];\n v[2] += v[1];\n v[1] = RotateLeft(v[1], 17);\n v[1] ^= v[2];\n v[2] = RotateLeft(v[2], 32);\n }\n}" ({) "{" (expression_statement) "value}, size_" (comma_expression) "value}, size_" (identifier) "value" (ERROR) "}" (}) "}" (,) "," (identifier) "size_" (;) "" (compound_statement) "{Size}" ({) "{" (ERROR) "Size" (identifier) "Size" (}) "}" (compound_statement) "{}" ({) "{" (}) "}" (declaration) "constexpr BlockReader(const ValueType* data, std::size_t size)\n : data_{data}, size_{size} {}\n\n BlockReader(const BlockReader&) = default;" (type_qualifier) "constexpr" (constexpr) "constexpr" (macro_type_specifier) "BlockReader(const ValueType*" (identifier) "BlockReader" (() "(" (type_descriptor) "const ValueType*" (type_qualifier) "const" (const) "const" (type_identifier) "ValueType" (abstract_pointer_declarator) "*" (*) "*" ()) "" (identifier) "data" (,) "," (ERROR) "std::size_t size)\n : data_{" (identifier) "std" (:) ":" (:) ":" (primitive_type) "size_t" (identifier) "size" ()) ")" (:) ":" (identifier) "data_" ({) "{" (identifier) "data" (ERROR) "}" (}) "}" (,) "," (ERROR) "size_{size} {}" (identifier) "size_" ({) "{" (identifier) "size" (}) "}" ({) "{" (}) "}" (init_declarator) "BlockReader(const BlockReader&) = default" (function_declarator) "BlockReader(const BlockReader&)" (identifier) "BlockReader" (parameter_list) "(const BlockReader&)" (() "(" (parameter_declaration) "const BlockReader" (type_qualifier) "const" (const) "const" (type_identifier) "BlockReader" (ERROR) "&" (&) "&" ()) ")" (=) "=" (identifier) "default" (;) ";" (expression_statement) "BlockReader& operator=(const BlockReader&) = default;" (binary_expression) "BlockReader& operator=(const BlockReader&) = default" (identifier) "BlockReader" (&) "&" (assignment_expression) "operator=(const BlockReader&) = default" (identifier) "operator" (ERROR) "=(const BlockReader&)" (=) "=" (() "(" (type_descriptor) "const BlockReader" (type_qualifier) "const" (const) "const" (type_identifier) "BlockReader" (ERROR) "&" (&) "&" ()) ")" (=) "=" (identifier) "default" (;) ";" (function_definition) "constexpr std::size_t size() const { return size_; }\n constexpr ValueType operator[](const std::size_t index) const {\n return data_[index];\n }\n\n private:\n const ValueType* data_;\n std::size_t size_;\n};\n\n// Captures a hash value as a compile-time type.\ntemplate <std::uint64_t Hash_>\nstruct HashValue {\n enum : std::uint64_t { Value = Hash_ };\n};\n\nstruct SipHash {\n template <typename T, std::size_t Size>\n static constexpr std::uint64_t Compute(const T (&buffer)[Size],\n std::uint64_t k0, std::uint64_t k1) {\n return Compute(BlockReader<T>(buffer), k0, k1);\n }\n\n template <typename BufferType>\n static constexpr std::uint64_t Compute(const BufferType buffer,\n std::uint64_t k0, std::uint64_t k1) {\n const std::size_t kBlockSize = sizeof(std::uint64_t);\n const std::size_t kLength = buffer.size();\n const std::size_t kLeftOver = kLength % kBlockSize;\n const std::size_t kEndOffset = kLength - kLeftOver;\n\n std::uint64_t v[4] = {0x736f6d6570736575ULL, 0x646f72616e646f6dULL,\n 0x6c7967656e657261ULL, 0x7465646279746573ULL};\n\n std::uint64_t b = static_cast<std::uint64_t>(kLength) << 56;\n\n v[3] ^= k1;\n v[2] ^= k0;\n v[1] ^= k1;\n v[0] ^= k0;\n\n for (std::size_t offset = 0; offset < kEndOffset; offset += kBlockSize) {\n std::uint64_t m = ReadBlock(buffer, offset);\n v[3] ^= m;\n Round(v);\n Round(v);\n v[0] ^= m;\n }\n\n switch (kLeftOver) {\n case 7:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 6]) << 48;\n NOP_FALLTHROUGH;\n case 6:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 5]) << 40;\n NOP_FALLTHROUGH;\n case 5:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 4]) << 32;\n NOP_FALLTHROUGH;\n case 4:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 3]) << 24;\n NOP_FALLTHROUGH;\n case 3:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 2]) << 16;\n NOP_FALLTHROUGH;\n case 2:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 1]) << 8;\n NOP_FALLTHROUGH;\n case 1:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 0]) << 0;\n NOP_FALLTHROUGH;\n case 0:\n break;\n }\n\n v[3] ^= b;\n Round(v);\n Round(v);\n v[0] ^= b;\n\n v[2] ^= 0xff;\n Round(v);\n Round(v);\n Round(v);\n Round(v);\n b = v[0] ^ v[1] ^ v[2] ^ v[3];\n\n return b;\n }" (type_qualifier) "constexpr" (constexpr) "constexpr" (ERROR) "std::" (type_identifier) "std" (:) ":" (:) ":" (primitive_type) "size_t" (function_declarator) "size()" (identifier) "size" (parameter_list) "()" (() "(" ()) ")" (ERROR) "const { return size_; }" (type_qualifier) "const" (const) "const" (ERROR) "{ return" ({) "{" (return) "return" (type_identifier) "size_" (;) ";" (}) "}" (declaration) "constexpr ValueType operator[](const std::size_t index) const {\n return data_[index];" (type_qualifier) "constexpr" (constexpr) "constexpr" (type_identifier) "ValueType" (array_declarator) "operator[](const std::size_t index) const {\n return data_[index]" (function_declarator) "operator[](const std::size_t index) const" (array_declarator) "operator[]" (identifier) "operator" ([) "[" (]) "]" (parameter_list) "(const std::size_t index)" (() "(" (parameter_declaration) "const std::size_t index" (type_qualifier) "const" (const) "const" (ERROR) "std::" (type_identifier) "std" (:) ":" (:) ":" (primitive_type) "size_t" (identifier) "index" ()) ")" (identifier) "const" (ERROR) "{\n return data_" ({) "{" (return) "return" (identifier) "data_" ([) "[" (identifier) "index" (]) "]" (;) ";" (ERROR) "}" (}) "}" (declaration) "private:\n const ValueType* data_;" (type_identifier) "private" (ERROR) ":" (:) ":" (type_qualifier) "const" (const) "const" (ERROR) "ValueType" (identifier) "ValueType" (pointer_declarator) "* data_" (*) "*" (identifier) "data_" (;) ";" (ERROR) "std::" (type_identifier) "std" (:) ":" (:) ":" (declaration) "size_t size_;" (primitive_type) "size_t" (identifier) "size_" (;) ";" (ERROR) "};" (}) "}" (;) ";" (comment) "// Captures a hash value as a compile-time type." (declaration) "template <std::uint64_t Hash_>\nstruct HashValue {\n enum : std::uint64_t { Value = Hash_ };" (type_identifier) "template" (ERROR) "<std::uint64_t Hash_>\nstruct HashValue {\n enum : std::uint64_t {" (<) "<" (identifier) "std" (:) ":" (:) ":" (primitive_type) "uint64_t" (identifier) "Hash_" (>) ">" (struct) "struct" (identifier) "HashValue" ({) "{" (enum) "enum" (:) ":" (identifier) "std" (:) ":" (:) ":" (primitive_type) "uint64_t" ({) "{" (init_declarator) "Value = Hash_" (identifier) "Value" (=) "=" (identifier) "Hash_" (ERROR) "}" (}) "}" (;) ";" (ERROR) "};\n\nstruct SipHash {\n template <typename T, std::size_t Size>\n static constexpr std::uint64_t Compute(const T (&buffer)[Size],\n std::uint64_t k0, std::uint64_t k1) {\n return Compute(BlockReader<T>(buffer), k0, k1);\n }\n\n template <typename BufferType>\n static constexpr std::uint64_t Compute(const BufferType buffer,\n std::uint64_t k0, std::uint64_t k1)" (}) "}" (;) ";" (struct_specifier) "struct SipHash {\n template <typename T, std::size_t Size>\n static constexpr std::uint64_t Compute(const T (&buffer)[Size],\n std::uint64_t k0, std::uint64_t k1) {\n return Compute(BlockReader<T>(buffer), k0, k1);\n }" (struct) "struct" (type_identifier) "SipHash" (field_declaration_list) "{\n template <typename T, std::size_t Size>\n static constexpr std::uint64_t Compute(const T (&buffer)[Size],\n std::uint64_t k0, std::uint64_t k1) {\n return Compute(BlockReader<T>(buffer), k0, k1);\n }" ({) "{" (field_declaration) "template <typename T, std::size_t Size>\n static" (type_identifier) "template" (ERROR) "<typename" (<) "<" (field_identifier) "typename" (field_identifier) "T" (,) "," (field_identifier) "std" (ERROR) ":" (:) ":" (bitfield_clause) ":size_t Size>\n static" (:) ":" (binary_expression) "size_t Size>\n static" (identifier) "size_t" (ERROR) "Size" (identifier) "Size" (>) ">" (identifier) "static" (;) "" (field_declaration) "constexpr std::uint64_t Compute(const T (&buffer)[Size],\n std::uint64_t k0, std::uint64_t k1) {\n return Compute(BlockReader<T>(buffer), k0, k1);" (type_qualifier) "constexpr" (constexpr) "constexpr" (ERROR) "std::" (type_identifier) "std" (:) ":" (:) ":" (primitive_type) "uint64_t" (ERROR) "Compute(const T (&buffer)[Size],\n std::uint64_t k0, std::uint64_t k1) {\n return" (function_declarator) "Compute(const T (&buffer)[Size],\n std::uint64_t k0, std::uint64_t k1)" (field_identifier) "Compute" (parameter_list) "(const T (&buffer)[Size],\n std::uint64_t k0, std::uint64_t k1)" (() "(" (parameter_declaration) "const T (&buffer)[Size]" (type_qualifier) "const" (const) "const" (macro_type_specifier) "T (&buffer)" (identifier) "T" (() "(" (ERROR) "&" (&) "&" (type_descriptor) "buffer" (type_identifier) "buffer" ()) ")" (abstract_array_declarator) "[Size]" ([) "[" (identifier) "Size" (]) "]" (,) "," (ERROR) "std::" (type_identifier) "std" (:) ":" (:) ":" (parameter_declaration) "uint64_t k0" (primitive_type) "uint64_t" (identifier) "k0" (,) "," (ERROR) "std::" (type_identifier) "std" (:) ":" (:) ":" (parameter_declaration) "uint64_t k1" (primitive_type) "uint64_t" (identifier) "k1" ()) ")" ({) "{" (return) "return" (function_declarator) "Compute(BlockReader<T>(buffer)" (field_identifier) "Compute" (parameter_list) "(BlockReader<T>(buffer)" (() "(" (parameter_declaration) "BlockReader<T>(buffer" (type_identifier) "BlockReader" (ERROR) "<T>(" (<) "<" (identifier) "T" (>) ">" (() "(" (identifier) "buffer" ()) ")" (,) "," (field_identifier) "k0" (,) "," (field_identifier) "k1" (ERROR) ")" ()) ")" (;) ";" (}) "}" (ERROR) "template <typename" (identifier) "template" (<) "<" (identifier) "typename" (identifier) "BufferType" (>) ">" (storage_class_specifier) "static" (static) "static" (type_qualifier) "constexpr" (constexpr) "constexpr" (ERROR) "std::" (type_identifier) "std" (:) ":" (:) ":" (primitive_type) "uint64_t" (function_declarator) "Compute(const BufferType buffer,\n std::uint64_t k0, std::uint64_t k1)" (identifier) "Compute" (parameter_list) "(const BufferType buffer,\n std::uint64_t k0, std::uint64_t k1)" (() "(" (parameter_declaration) "const BufferType buffer" (type_qualifier) "const" (const) "const" (type_identifier) "BufferType" (identifier) "buffer" (,) "," (ERROR) "std::" (type_identifier) "std" (:) ":" (:) ":" (parameter_declaration) "uint64_t k0" (primitive_type) "uint64_t" (identifier) "k0" (,) "," (ERROR) "std::" (type_identifier) "std" (:) ":" (:) ":" (parameter_declaration) "uint64_t k1" (primitive_type) "uint64_t" (identifier) "k1" ()) ")" (compound_statement) "{\n const std::size_t kBlockSize = sizeof(std::uint64_t);\n const std::size_t kLength = buffer.size();\n const std::size_t kLeftOver = kLength % kBlockSize;\n const std::size_t kEndOffset = kLength - kLeftOver;\n\n std::uint64_t v[4] = {0x736f6d6570736575ULL, 0x646f72616e646f6dULL,\n 0x6c7967656e657261ULL, 0x7465646279746573ULL};\n\n std::uint64_t b = static_cast<std::uint64_t>(kLength) << 56;\n\n v[3] ^= k1;\n v[2] ^= k0;\n v[1] ^= k1;\n v[0] ^= k0;\n\n for (std::size_t offset = 0; offset < kEndOffset; offset += kBlockSize) {\n std::uint64_t m = ReadBlock(buffer, offset);\n v[3] ^= m;\n Round(v);\n Round(v);\n v[0] ^= m;\n }\n\n switch (kLeftOver) {\n case 7:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 6]) << 48;\n NOP_FALLTHROUGH;\n case 6:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 5]) << 40;\n NOP_FALLTHROUGH;\n case 5:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 4]) << 32;\n NOP_FALLTHROUGH;\n case 4:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 3]) << 24;\n NOP_FALLTHROUGH;\n case 3:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 2]) << 16;\n NOP_FALLTHROUGH;\n case 2:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 1]) << 8;\n NOP_FALLTHROUGH;\n case 1:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 0]) << 0;\n NOP_FALLTHROUGH;\n case 0:\n break;\n }\n\n v[3] ^= b;\n Round(v);\n Round(v);\n v[0] ^= b;\n\n v[2] ^= 0xff;\n Round(v);\n Round(v);\n Round(v);\n Round(v);\n b = v[0] ^ v[1] ^ v[2] ^ v[3];\n\n return b;\n }" ({) "{" (declaration) "const std::size_t kBlockSize = sizeof(std::uint64_t);" (type_qualifier) "const" (const) "const" (ERROR) "std::" (type_identifier) "std" (:) ":" (:) ":" (primitive_type) "size_t" (init_declarator) "kBlockSize = sizeof(std::uint64_t)" (identifier) "kBlockSize" (=) "=" (sizeof_expression) "sizeof(std::uint64_t)" (sizeof) "sizeof" (() "(" (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (type_descriptor) "uint64_t" (primitive_type) "uint64_t" ()) ")" (;) ";" (declaration) "const std::size_t kLength = buffer.size();" (type_qualifier) "const" (const) "const" (ERROR) "std::" (type_identifier) "std" (:) ":" (:) ":" (primitive_type) "size_t" (init_declarator) "kLength = buffer.size()" (identifier) "kLength" (=) "=" (call_expression) "buffer.size()" (field_expression) "buffer.size" (identifier) "buffer" (.) "." (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "const std::size_t kLeftOver = kLength % kBlockSize;" (type_qualifier) "const" (const) "const" (ERROR) "std::" (type_identifier) "std" (:) ":" (:) ":" (primitive_type) "size_t" (init_declarator) "kLeftOver = kLength % kBlockSize" (identifier) "kLeftOver" (=) "=" (binary_expression) "kLength % kBlockSize" (identifier) "kLength" (%) "%" (identifier) "kBlockSize" (;) ";" (declaration) "const std::size_t kEndOffset = kLength - kLeftOver;" (type_qualifier) "const" (const) "const" (ERROR) "std::" (type_identifier) "std" (:) ":" (:) ":" (primitive_type) "size_t" (init_declarator) "kEndOffset = kLength - kLeftOver" (identifier) "kEndOffset" (=) "=" (binary_expression) "kLength - kLeftOver" (identifier) "kLength" (-) "-" (identifier) "kLeftOver" (;) ";" (labeled_statement) "std::uint64_t v[4] = {0x736f6d6570736575ULL, 0x646f72616e646f6dULL,\n 0x6c7967656e657261ULL, 0x7465646279746573ULL};" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (declaration) "uint64_t v[4] = {0x736f6d6570736575ULL, 0x646f72616e646f6dULL,\n 0x6c7967656e657261ULL, 0x7465646279746573ULL};" (primitive_type) "uint64_t" (init_declarator) "v[4] = {0x736f6d6570736575ULL, 0x646f72616e646f6dULL,\n 0x6c7967656e657261ULL, 0x7465646279746573ULL}" (array_declarator) "v[4]" (identifier) "v" ([) "[" (number_literal) "4" (]) "]" (=) "=" (initializer_list) "{0x736f6d6570736575ULL, 0x646f72616e646f6dULL,\n 0x6c7967656e657261ULL, 0x7465646279746573ULL}" ({) "{" (number_literal) "0x736f6d6570736575ULL" (,) "," (number_literal) "0x646f72616e646f6dULL" (,) "," (number_literal) "0x6c7967656e657261ULL" (,) "," (number_literal) "0x7465646279746573ULL" (}) "}" (;) ";" (expression_statement) "std::uint64_t b = static_cast<std::uint64_t>(kLength) << 56;" (binary_expression) "std::uint64_t b = static_cast<std::uint64_t>(kLength) << 56" (identifier) "std" (ERROR) "::uint64_t b = static_cast<std::uint64_t" (:) ":" (:) ":" (primitive_type) "uint64_t" (init_declarator) "b = static_cast<std" (identifier) "b" (=) "=" (binary_expression) "static_cast<std" (identifier) "static_cast" (<) "<" (identifier) "std" (:) ":" (:) ":" (primitive_type) "uint64_t" (>) ">" (binary_expression) "(kLength) << 56" (parenthesized_expression) "(kLength)" (() "(" (identifier) "kLength" ()) ")" (<<) "<<" (number_literal) "56" (;) ";" (expression_statement) "v[3] ^= k1;" (assignment_expression) "v[3] ^= k1" (subscript_expression) "v[3]" (identifier) "v" ([) "[" (number_literal) "3" (]) "]" (^=) "^=" (identifier) "k1" (;) ";" (expression_statement) "v[2] ^= k0;" (assignment_expression) "v[2] ^= k0" (subscript_expression) "v[2]" (identifier) "v" ([) "[" (number_literal) "2" (]) "]" (^=) "^=" (identifier) "k0" (;) ";" (expression_statement) "v[1] ^= k1;" (assignment_expression) "v[1] ^= k1" (subscript_expression) "v[1]" (identifier) "v" ([) "[" (number_literal) "1" (]) "]" (^=) "^=" (identifier) "k1" (;) ";" (expression_statement) "v[0] ^= k0;" (assignment_expression) "v[0] ^= k0" (subscript_expression) "v[0]" (identifier) "v" ([) "[" (number_literal) "0" (]) "]" (^=) "^=" (identifier) "k0" (;) ";" (for_statement) "for (std::size_t offset = 0; offset < kEndOffset; offset += kBlockSize) {\n std::uint64_t m = ReadBlock(buffer, offset);\n v[3] ^= m;\n Round(v);\n Round(v);\n v[0] ^= m;\n }" (for) "for" (() "(" (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (declaration) "size_t offset = 0;" (primitive_type) "size_t" (init_declarator) "offset = 0" (identifier) "offset" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "offset < kEndOffset" (identifier) "offset" (<) "<" (identifier) "kEndOffset" (;) ";" (assignment_expression) "offset += kBlockSize" (identifier) "offset" (+=) "+=" (identifier) "kBlockSize" ()) ")" (compound_statement) "{\n std::uint64_t m = ReadBlock(buffer, offset);\n v[3] ^= m;\n Round(v);\n Round(v);\n v[0] ^= m;\n }" ({) "{" (labeled_statement) "std::uint64_t m = ReadBlock(buffer, offset);" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (declaration) "uint64_t m = ReadBlock(buffer, offset);" (primitive_type) "uint64_t" (init_declarator) "m = ReadBlock(buffer, offset)" (identifier) "m" (=) "=" (call_expression) "ReadBlock(buffer, offset)" (identifier) "ReadBlock" (argument_list) "(buffer, offset)" (() "(" (identifier) "buffer" (,) "," (identifier) "offset" ()) ")" (;) ";" (expression_statement) "v[3] ^= m;" (assignment_expression) "v[3] ^= m" (subscript_expression) "v[3]" (identifier) "v" ([) "[" (number_literal) "3" (]) "]" (^=) "^=" (identifier) "m" (;) ";" (expression_statement) "Round(v);" (call_expression) "Round(v)" (identifier) "Round" (argument_list) "(v)" (() "(" (identifier) "v" ()) ")" (;) ";" (expression_statement) "Round(v);" (call_expression) "Round(v)" (identifier) "Round" (argument_list) "(v)" (() "(" (identifier) "v" ()) ")" (;) ";" (expression_statement) "v[0] ^= m;" (assignment_expression) "v[0] ^= m" (subscript_expression) "v[0]" (identifier) "v" ([) "[" (number_literal) "0" (]) "]" (^=) "^=" (identifier) "m" (;) ";" (}) "}" (switch_statement) "switch (kLeftOver) {\n case 7:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 6]) << 48;\n NOP_FALLTHROUGH;\n case 6:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 5]) << 40;\n NOP_FALLTHROUGH;\n case 5:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 4]) << 32;\n NOP_FALLTHROUGH;\n case 4:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 3]) << 24;\n NOP_FALLTHROUGH;\n case 3:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 2]) << 16;\n NOP_FALLTHROUGH;\n case 2:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 1]) << 8;\n NOP_FALLTHROUGH;\n case 1:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 0]) << 0;\n NOP_FALLTHROUGH;\n case 0:\n break;\n }" (switch) "switch" (parenthesized_expression) "(kLeftOver)" (() "(" (identifier) "kLeftOver" ()) ")" (compound_statement) "{\n case 7:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 6]) << 48;\n NOP_FALLTHROUGH;\n case 6:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 5]) << 40;\n NOP_FALLTHROUGH;\n case 5:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 4]) << 32;\n NOP_FALLTHROUGH;\n case 4:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 3]) << 24;\n NOP_FALLTHROUGH;\n case 3:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 2]) << 16;\n NOP_FALLTHROUGH;\n case 2:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 1]) << 8;\n NOP_FALLTHROUGH;\n case 1:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 0]) << 0;\n NOP_FALLTHROUGH;\n case 0:\n break;\n }" ({) "{" (case_statement) "case 7:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 6]) << 48;\n NOP_FALLTHROUGH;" (case) "case" (number_literal) "7" (:) ":" (expression_statement) "b |= static_cast<std::uint64_t>(buffer[kEndOffset + 6]) << 48;" (binary_expression) "b |= static_cast<std::uint64_t>(buffer[kEndOffset + 6]) << 48" (assignment_expression) "b |= static_cast<std" (identifier) "b" (|=) "|=" (binary_expression) "static_cast<std" (identifier) "static_cast" (<) "<" (identifier) "std" (ERROR) "::uint64_t" (:) ":" (:) ":" (primitive_type) "uint64_t" (>) ">" (binary_expression) "(buffer[kEndOffset + 6]) << 48" (parenthesized_expression) "(buffer[kEndOffset + 6])" (() "(" (subscript_expression) "buffer[kEndOffset + 6]" (identifier) "buffer" ([) "[" (binary_expression) "kEndOffset + 6" (identifier) "kEndOffset" (+) "+" (number_literal) "6" (]) "]" ()) ")" (<<) "<<" (number_literal) "48" (;) ";" (expression_statement) "NOP_FALLTHROUGH;" (identifier) "NOP_FALLTHROUGH" (;) ";" (case_statement) "case 6:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 5]) << 40;\n NOP_FALLTHROUGH;" (case) "case" (number_literal) "6" (:) ":" (expression_statement) "b |= static_cast<std::uint64_t>(buffer[kEndOffset + 5]) << 40;" (binary_expression) "b |= static_cast<std::uint64_t>(buffer[kEndOffset + 5]) << 40" (assignment_expression) "b |= static_cast<std" (identifier) "b" (|=) "|=" (binary_expression) "static_cast<std" (identifier) "static_cast" (<) "<" (identifier) "std" (ERROR) "::uint64_t" (:) ":" (:) ":" (primitive_type) "uint64_t" (>) ">" (binary_expression) "(buffer[kEndOffset + 5]) << 40" (parenthesized_expression) "(buffer[kEndOffset + 5])" (() "(" (subscript_expression) "buffer[kEndOffset + 5]" (identifier) "buffer" ([) "[" (binary_expression) "kEndOffset + 5" (identifier) "kEndOffset" (+) "+" (number_literal) "5" (]) "]" ()) ")" (<<) "<<" (number_literal) "40" (;) ";" (expression_statement) "NOP_FALLTHROUGH;" (identifier) "NOP_FALLTHROUGH" (;) ";" (case_statement) "case 5:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 4]) << 32;\n NOP_FALLTHROUGH;" (case) "case" (number_literal) "5" (:) ":" (expression_statement) "b |= static_cast<std::uint64_t>(buffer[kEndOffset + 4]) << 32;" (binary_expression) "b |= static_cast<std::uint64_t>(buffer[kEndOffset + 4]) << 32" (assignment_expression) "b |= static_cast<std" (identifier) "b" (|=) "|=" (binary_expression) "static_cast<std" (identifier) "static_cast" (<) "<" (identifier) "std" (ERROR) "::uint64_t" (:) ":" (:) ":" (primitive_type) "uint64_t" (>) ">" (binary_expression) "(buffer[kEndOffset + 4]) << 32" (parenthesized_expression) "(buffer[kEndOffset + 4])" (() "(" (subscript_expression) "buffer[kEndOffset + 4]" (identifier) "buffer" ([) "[" (binary_expression) "kEndOffset + 4" (identifier) "kEndOffset" (+) "+" (number_literal) "4" (]) "]" ()) ")" (<<) "<<" (number_literal) "32" (;) ";" (expression_statement) "NOP_FALLTHROUGH;" (identifier) "NOP_FALLTHROUGH" (;) ";" (case_statement) "case 4:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 3]) << 24;\n NOP_FALLTHROUGH;" (case) "case" (number_literal) "4" (:) ":" (expression_statement) "b |= static_cast<std::uint64_t>(buffer[kEndOffset + 3]) << 24;" (binary_expression) "b |= static_cast<std::uint64_t>(buffer[kEndOffset + 3]) << 24" (assignment_expression) "b |= static_cast<std" (identifier) "b" (|=) "|=" (binary_expression) "static_cast<std" (identifier) "static_cast" (<) "<" (identifier) "std" (ERROR) "::uint64_t" (:) ":" (:) ":" (primitive_type) "uint64_t" (>) ">" (binary_expression) "(buffer[kEndOffset + 3]) << 24" (parenthesized_expression) "(buffer[kEndOffset + 3])" (() "(" (subscript_expression) "buffer[kEndOffset + 3]" (identifier) "buffer" ([) "[" (binary_expression) "kEndOffset + 3" (identifier) "kEndOffset" (+) "+" (number_literal) "3" (]) "]" ()) ")" (<<) "<<" (number_literal) "24" (;) ";" (expression_statement) "NOP_FALLTHROUGH;" (identifier) "NOP_FALLTHROUGH" (;) ";" (case_statement) "case 3:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 2]) << 16;\n NOP_FALLTHROUGH;" (case) "case" (number_literal) "3" (:) ":" (expression_statement) "b |= static_cast<std::uint64_t>(buffer[kEndOffset + 2]) << 16;" (binary_expression) "b |= static_cast<std::uint64_t>(buffer[kEndOffset + 2]) << 16" (assignment_expression) "b |= static_cast<std" (identifier) "b" (|=) "|=" (binary_expression) "static_cast<std" (identifier) "static_cast" (<) "<" (identifier) "std" (ERROR) "::uint64_t" (:) ":" (:) ":" (primitive_type) "uint64_t" (>) ">" (binary_expression) "(buffer[kEndOffset + 2]) << 16" (parenthesized_expression) "(buffer[kEndOffset + 2])" (() "(" (subscript_expression) "buffer[kEndOffset + 2]" (identifier) "buffer" ([) "[" (binary_expression) "kEndOffset + 2" (identifier) "kEndOffset" (+) "+" (number_literal) "2" (]) "]" ()) ")" (<<) "<<" (number_literal) "16" (;) ";" (expression_statement) "NOP_FALLTHROUGH;" (identifier) "NOP_FALLTHROUGH" (;) ";" (case_statement) "case 2:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 1]) << 8;\n NOP_FALLTHROUGH;" (case) "case" (number_literal) "2" (:) ":" (expression_statement) "b |= static_cast<std::uint64_t>(buffer[kEndOffset + 1]) << 8;" (binary_expression) "b |= static_cast<std::uint64_t>(buffer[kEndOffset + 1]) << 8" (assignment_expression) "b |= static_cast<std" (identifier) "b" (|=) "|=" (binary_expression) "static_cast<std" (identifier) "static_cast" (<) "<" (identifier) "std" (ERROR) "::uint64_t" (:) ":" (:) ":" (primitive_type) "uint64_t" (>) ">" (binary_expression) "(buffer[kEndOffset + 1]) << 8" (parenthesized_expression) "(buffer[kEndOffset + 1])" (() "(" (subscript_expression) "buffer[kEndOffset + 1]" (identifier) "buffer" ([) "[" (binary_expression) "kEndOffset + 1" (identifier) "kEndOffset" (+) "+" (number_literal) "1" (]) "]" ()) ")" (<<) "<<" (number_literal) "8" (;) ";" (expression_statement) "NOP_FALLTHROUGH;" (identifier) "NOP_FALLTHROUGH" (;) ";" (case_statement) "case 1:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 0]) << 0;\n NOP_FALLTHROUGH;" (case) "case" (number_literal) "1" (:) ":" (expression_statement) "b |= static_cast<std::uint64_t>(buffer[kEndOffset + 0]) << 0;" (binary_expression) "b |= static_cast<std::uint64_t>(buffer[kEndOffset + 0]) << 0" (assignment_expression) "b |= static_cast<std" (identifier) "b" (|=) "|=" (binary_expression) "static_cast<std" (identifier) "static_cast" (<) "<" (identifier) "std" (ERROR) "::uint64_t" (:) ":" (:) ":" (primitive_type) "uint64_t" (>) ">" (binary_expression) "(buffer[kEndOffset + 0]) << 0" (parenthesized_expression) "(buffer[kEndOffset + 0])" (() "(" (subscript_expression) "buffer[kEndOffset + 0]" (identifier) "buffer" ([) "[" (binary_expression) "kEndOffset + 0" (identifier) "kEndOffset" (+) "+" (number_literal) "0" (]) "]" ()) ")" (<<) "<<" (number_literal) "0" (;) ";" (expression_statement) "NOP_FALLTHROUGH;" (identifier) "NOP_FALLTHROUGH" (;) ";" (case_statement) "case 0:\n break;" (case) "case" (number_literal) "0" (:) ":" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (expression_statement) "v[3] ^= b;" (assignment_expression) "v[3] ^= b" (subscript_expression) "v[3]" (identifier) "v" ([) "[" (number_literal) "3" (]) "]" (^=) "^=" (identifier) "b" (;) ";" (expression_statement) "Round(v);" (call_expression) "Round(v)" (identifier) "Round" (argument_list) "(v)" (() "(" (identifier) "v" ()) ")" (;) ";" (expression_statement) "Round(v);" (call_expression) "Round(v)" (identifier) "Round" (argument_list) "(v)" (() "(" (identifier) "v" ()) ")" (;) ";" (expression_statement) "v[0] ^= b;" (assignment_expression) "v[0] ^= b" (subscript_expression) "v[0]" (identifier) "v" ([) "[" (number_literal) "0" (]) "]" (^=) "^=" (identifier) "b" (;) ";" (expression_statement) "v[2] ^= 0xff;" (assignment_expression) "v[2] ^= 0xff" (subscript_expression) "v[2]" (identifier) "v" ([) "[" (number_literal) "2" (]) "]" (^=) "^=" (number_literal) "0xff" (;) ";" (expression_statement) "Round(v);" (call_expression) "Round(v)" (identifier) "Round" (argument_list) "(v)" (() "(" (identifier) "v" ()) ")" (;) ";" (expression_statement) "Round(v);" (call_expression) "Round(v)" (identifier) "Round" (argument_list) "(v)" (() "(" (identifier) "v" ()) ")" (;) ";" (expression_statement) "Round(v);" (call_expression) "Round(v)" (identifier) "Round" (argument_list) "(v)" (() "(" (identifier) "v" ()) ")" (;) ";" (expression_statement) "Round(v);" (call_expression) "Round(v)" (identifier) "Round" (argument_list) "(v)" (() "(" (identifier) "v" ()) ")" (;) ";" (expression_statement) "b = v[0] ^ v[1] ^ v[2] ^ v[3];" (assignment_expression) "b = v[0] ^ v[1] ^ v[2] ^ v[3]" (identifier) "b" (=) "=" (binary_expression) "v[0] ^ v[1] ^ v[2] ^ v[3]" (binary_expression) "v[0] ^ v[1] ^ v[2]" (binary_expression) "v[0] ^ v[1]" (subscript_expression) "v[0]" (identifier) "v" ([) "[" (number_literal) "0" (]) "]" (^) "^" (subscript_expression) "v[1]" (identifier) "v" ([) "[" (number_literal) "1" (]) "]" (^) "^" (subscript_expression) "v[2]" (identifier) "v" ([) "[" (number_literal) "2" (]) "]" (^) "^" (subscript_expression) "v[3]" (identifier) "v" ([) "[" (number_literal) "3" (]) "]" (;) ";" (return_statement) "return b;" (return) "return" (identifier) "b" (;) ";" (}) "}" (labeled_statement) "private:\n template <typename BufferType>\n static" (statement_identifier) "private" (:) ":" (expression_statement) "template <typename BufferType>\n static" (binary_expression) "template <typename BufferType>\n static" (binary_expression) "template <typename BufferType" (identifier) "template" (<) "<" (ERROR) "typename" (identifier) "typename" (identifier) "BufferType" (>) ">" (identifier) "static" (;) "" (function_definition) "constexpr std::uint64_t ReadBlock(const BufferType buffer,\n const std::size_t offset) {\n const std::uint64_t v0 = buffer[offset + 0];\n const std::uint64_t v1 = buffer[offset + 1];\n const std::uint64_t v2 = buffer[offset + 2];\n const std::uint64_t v3 = buffer[offset + 3];\n const std::uint64_t v4 = buffer[offset + 4];\n const std::uint64_t v5 = buffer[offset + 5];\n const std::uint64_t v6 = buffer[offset + 6];\n const std::uint64_t v7 = buffer[offset + 7];\n\n return ((v7 << 56) | (v6 << 48) | (v5 << 40) | (v4 << 32) | (v3 << 24) |\n (v2 << 16) | (v1 << 8) | (v0 << 0));\n }" (type_qualifier) "constexpr" (constexpr) "constexpr" (ERROR) "std::" (type_identifier) "std" (:) ":" (:) ":" (primitive_type) "uint64_t" (function_declarator) "ReadBlock(const BufferType buffer,\n const std::size_t offset)" (identifier) "ReadBlock" (parameter_list) "(const BufferType buffer,\n const std::size_t offset)" (() "(" (parameter_declaration) "const BufferType buffer" (type_qualifier) "const" (const) "const" (type_identifier) "BufferType" (identifier) "buffer" (,) "," (parameter_declaration) "const std::size_t offset" (type_qualifier) "const" (const) "const" (ERROR) "std::" (type_identifier) "std" (:) ":" (:) ":" (primitive_type) "size_t" (identifier) "offset" ()) ")" (compound_statement) "{\n const std::uint64_t v0 = buffer[offset + 0];\n const std::uint64_t v1 = buffer[offset + 1];\n const std::uint64_t v2 = buffer[offset + 2];\n const std::uint64_t v3 = buffer[offset + 3];\n const std::uint64_t v4 = buffer[offset + 4];\n const std::uint64_t v5 = buffer[offset + 5];\n const std::uint64_t v6 = buffer[offset + 6];\n const std::uint64_t v7 = buffer[offset + 7];\n\n return ((v7 << 56) | (v6 << 48) | (v5 << 40) | (v4 << 32) | (v3 << 24) |\n (v2 << 16) | (v1 << 8) | (v0 << 0));\n }" ({) "{" (declaration) "const std::uint64_t v0 = buffer[offset + 0];" (type_qualifier) "const" (const) "const" (ERROR) "std::" (type_identifier) "std" (:) ":" (:) ":" (primitive_type) "uint64_t" (init_declarator) "v0 = buffer[offset + 0]" (identifier) "v0" (=) "=" (subscript_expression) "buffer[offset + 0]" (identifier) "buffer" ([) "[" (binary_expression) "offset + 0" (identifier) "offset" (+) "+" (number_literal) "0" (]) "]" (;) ";" (declaration) "const std::uint64_t v1 = buffer[offset + 1];" (type_qualifier) "const" (const) "const" (ERROR) "std::" (type_identifier) "std" (:) ":" (:) ":" (primitive_type) "uint64_t" (init_declarator) "v1 = buffer[offset + 1]" (identifier) "v1" (=) "=" (subscript_expression) "buffer[offset + 1]" (identifier) "buffer" ([) "[" (binary_expression) "offset + 1" (identifier) "offset" (+) "+" (number_literal) "1" (]) "]" (;) ";" (declaration) "const std::uint64_t v2 = buffer[offset + 2];" (type_qualifier) "const" (const) "const" (ERROR) "std::" (type_identifier) "std" (:) ":" (:) ":" (primitive_type) "uint64_t" (init_declarator) "v2 = buffer[offset + 2]" (identifier) "v2" (=) "=" (subscript_expression) "buffer[offset + 2]" (identifier) "buffer" ([) "[" (binary_expression) "offset + 2" (identifier) "offset" (+) "+" (number_literal) "2" (]) "]" (;) ";" (declaration) "const std::uint64_t v3 = buffer[offset + 3];" (type_qualifier) "const" (const) "const" (ERROR) "std::" (type_identifier) "std" (:) ":" (:) ":" (primitive_type) "uint64_t" (init_declarator) "v3 = buffer[offset + 3]" (identifier) "v3" (=) "=" (subscript_expression) "buffer[offset + 3]" (identifier) "buffer" ([) "[" (binary_expression) "offset + 3" (identifier) "offset" (+) "+" (number_literal) "3" (]) "]" (;) ";" (declaration) "const std::uint64_t v4 = buffer[offset + 4];" (type_qualifier) "const" (const) "const" (ERROR) "std::" (type_identifier) "std" (:) ":" (:) ":" (primitive_type) "uint64_t" (init_declarator) "v4 = buffer[offset + 4]" (identifier) "v4" (=) "=" (subscript_expression) "buffer[offset + 4]" (identifier) "buffer" ([) "[" (binary_expression) "offset + 4" (identifier) "offset" (+) "+" (number_literal) "4" (]) "]" (;) ";" (declaration) "const std::uint64_t v5 = buffer[offset + 5];" (type_qualifier) "const" (const) "const" (ERROR) "std::" (type_identifier) "std" (:) ":" (:) ":" (primitive_type) "uint64_t" (init_declarator) "v5 = buffer[offset + 5]" (identifier) "v5" (=) "=" (subscript_expression) "buffer[offset + 5]" (identifier) "buffer" ([) "[" (binary_expression) "offset + 5" (identifier) "offset" (+) "+" (number_literal) "5" (]) "]" (;) ";" (declaration) "const std::uint64_t v6 = buffer[offset + 6];" (type_qualifier) "const" (const) "const" (ERROR) "std::" (type_identifier) "std" (:) ":" (:) ":" (primitive_type) "uint64_t" (init_declarator) "v6 = buffer[offset + 6]" (identifier) "v6" (=) "=" (subscript_expression) "buffer[offset + 6]" (identifier) "buffer" ([) "[" (binary_expression) "offset + 6" (identifier) "offset" (+) "+" (number_literal) "6" (]) "]" (;) ";" (declaration) "const std::uint64_t v7 = buffer[offset + 7];" (type_qualifier) "const" (const) "const" (ERROR) "std::" (type_identifier) "std" (:) ":" (:) ":" (primitive_type) "uint64_t" (init_declarator) "v7 = buffer[offset + 7]" (identifier) "v7" (=) "=" (subscript_expression) "buffer[offset + 7]" (identifier) "buffer" ([) "[" (binary_expression) "offset + 7" (identifier) "offset" (+) "+" (number_literal) "7" (]) "]" (;) ";" (return_statement) "return ((v7 << 56) | (v6 << 48) | (v5 << 40) | (v4 << 32) | (v3 << 24) |\n (v2 << 16) | (v1 << 8) | (v0 << 0));" (return) "return" (parenthesized_expression) "((v7 << 56) | (v6 << 48) | (v5 << 40) | (v4 << 32) | (v3 << 24) |\n (v2 << 16) | (v1 << 8) | (v0 << 0))" (() "(" (binary_expression) "(v7 << 56) | (v6 << 48) | (v5 << 40) | (v4 << 32) | (v3 << 24) |\n (v2 << 16) | (v1 << 8) | (v0 << 0)" (binary_expression) "(v7 << 56) | (v6 << 48) | (v5 << 40) | (v4 << 32) | (v3 << 24) |\n (v2 << 16) | (v1 << 8)" (binary_expression) "(v7 << 56) | (v6 << 48) | (v5 << 40) | (v4 << 32) | (v3 << 24) |\n (v2 << 16)" (binary_expression) "(v7 << 56) | (v6 << 48) | (v5 << 40) | (v4 << 32) | (v3 << 24)" (binary_expression) "(v7 << 56) | (v6 << 48) | (v5 << 40) | (v4 << 32)" (binary_expression) "(v7 << 56) | (v6 << 48) | (v5 << 40)" (binary_expression) "(v7 << 56) | (v6 << 48)" (parenthesized_expression) "(v7 << 56)" (() "(" (binary_expression) "v7 << 56" (identifier) "v7" (<<) "<<" (number_literal) "56" ()) ")" (|) "|" (parenthesized_expression) "(v6 << 48)" (() "(" (binary_expression) "v6 << 48" (identifier) "v6" (<<) "<<" (number_literal) "48" ()) ")" (|) "|" (parenthesized_expression) "(v5 << 40)" (() "(" (binary_expression) "v5 << 40" (identifier) "v5" (<<) "<<" (number_literal) "40" ()) ")" (|) "|" (parenthesized_expression) "(v4 << 32)" (() "(" (binary_expression) "v4 << 32" (identifier) "v4" (<<) "<<" (number_literal) "32" ()) ")" (|) "|" (parenthesized_expression) "(v3 << 24)" (() "(" (binary_expression) "v3 << 24" (identifier) "v3" (<<) "<<" (number_literal) "24" ()) ")" (|) "|" (parenthesized_expression) "(v2 << 16)" (() "(" (binary_expression) "v2 << 16" (identifier) "v2" (<<) "<<" (number_literal) "16" ()) ")" (|) "|" (parenthesized_expression) "(v1 << 8)" (() "(" (binary_expression) "v1 << 8" (identifier) "v1" (<<) "<<" (number_literal) "8" ()) ")" (|) "|" (parenthesized_expression) "(v0 << 0)" (() "(" (binary_expression) "v0 << 0" (identifier) "v0" (<<) "<<" (number_literal) "0" ()) ")" ()) ")" (;) ";" (}) "}" (function_definition) "static constexpr std::uint64_t RotateLeft(const std::uint64_t x,\n const std::uint64_t b) {\n return (x << b) | (x >> (64 - b));\n }" (storage_class_specifier) "static" (static) "static" (type_qualifier) "constexpr" (constexpr) "constexpr" (ERROR) "std::" (type_identifier) "std" (:) ":" (:) ":" (primitive_type) "uint64_t" (function_declarator) "RotateLeft(const std::uint64_t x,\n const std::uint64_t b)" (identifier) "RotateLeft" (parameter_list) "(const std::uint64_t x,\n const std::uint64_t b)" (() "(" (parameter_declaration) "const std::uint64_t x" (type_qualifier) "const" (const) "const" (ERROR) "std::" (type_identifier) "std" (:) ":" (:) ":" (primitive_type) "uint64_t" (identifier) "x" (,) "," (parameter_declaration) "const std::uint64_t b" (type_qualifier) "const" (const) "const" (ERROR) "std::" (type_identifier) "std" (:) ":" (:) ":" (primitive_type) "uint64_t" (identifier) "b" ()) ")" (compound_statement) "{\n return (x << b) | (x >> (64 - b));\n }" ({) "{" (return_statement) "return (x << b) | (x >> (64 - b));" (return) "return" (binary_expression) "(x << b) | (x >> (64 - b))" (parenthesized_expression) "(x << b)" (() "(" (binary_expression) "x << b" (identifier) "x" (<<) "<<" (identifier) "b" ()) ")" (|) "|" (parenthesized_expression) "(x >> (64 - b))" (() "(" (binary_expression) "x >> (64 - b)" (identifier) "x" (>>) ">>" (parenthesized_expression) "(64 - b)" (() "(" (binary_expression) "64 - b" (number_literal) "64" (-) "-" (identifier) "b" ()) ")" ()) ")" (;) ";" (}) "}" (function_definition) "static constexpr void Round(std::uint64_t (&v)[4]) {\n v[0] += v[1];\n v[1] = RotateLeft(v[1], 13);\n v[1] ^= v[0];\n v[0] = RotateLeft(v[0], 32);\n v[2] += v[3];\n v[3] = RotateLeft(v[3], 16);\n v[3] ^= v[2];\n v[0] += v[3];\n v[3] = RotateLeft(v[3], 21);\n v[3] ^= v[0];\n v[2] += v[1];\n v[1] = RotateLeft(v[1], 17);\n v[1] ^= v[2];\n v[2] = RotateLeft(v[2], 32);\n }" (storage_class_specifier) "static" (static) "static" (type_qualifier) "constexpr" (constexpr) "constexpr" (primitive_type) "void" (function_declarator) "Round(std::uint64_t (&v)[4])" (identifier) "Round" (parameter_list) "(std::uint64_t (&v)[4])" (() "(" (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (parameter_declaration) "uint64_t (&v)[4]" (primitive_type) "uint64_t" (abstract_array_declarator) "(&v)[4]" (abstract_function_declarator) "(&v)" (parameter_list) "(&v)" (() "(" (ERROR) "&" (&) "&" (parameter_declaration) "v" (type_identifier) "v" ()) ")" ([) "[" (number_literal) "4" (]) "]" ()) ")" (compound_statement) "{\n v[0] += v[1];\n v[1] = RotateLeft(v[1], 13);\n v[1] ^= v[0];\n v[0] = RotateLeft(v[0], 32);\n v[2] += v[3];\n v[3] = RotateLeft(v[3], 16);\n v[3] ^= v[2];\n v[0] += v[3];\n v[3] = RotateLeft(v[3], 21);\n v[3] ^= v[0];\n v[2] += v[1];\n v[1] = RotateLeft(v[1], 17);\n v[1] ^= v[2];\n v[2] = RotateLeft(v[2], 32);\n }" ({) "{" (expression_statement) "v[0] += v[1];" (assignment_expression) "v[0] += v[1]" (subscript_expression) "v[0]" (identifier) "v" ([) "[" (number_literal) "0" (]) "]" (+=) "+=" (subscript_expression) "v[1]" (identifier) "v" ([) "[" (number_literal) "1" (]) "]" (;) ";" (expression_statement) "v[1] = RotateLeft(v[1], 13);" (assignment_expression) "v[1] = RotateLeft(v[1], 13)" (subscript_expression) "v[1]" (identifier) "v" ([) "[" (number_literal) "1" (]) "]" (=) "=" (call_expression) "RotateLeft(v[1], 13)" (identifier) "RotateLeft" (argument_list) "(v[1], 13)" (() "(" (subscript_expression) "v[1]" (identifier) "v" ([) "[" (number_literal) "1" (]) "]" (,) "," (number_literal) "13" ()) ")" (;) ";" (expression_statement) "v[1] ^= v[0];" (assignment_expression) "v[1] ^= v[0]" (subscript_expression) "v[1]" (identifier) "v" ([) "[" (number_literal) "1" (]) "]" (^=) "^=" (subscript_expression) "v[0]" (identifier) "v" ([) "[" (number_literal) "0" (]) "]" (;) ";" (expression_statement) "v[0] = RotateLeft(v[0], 32);" (assignment_expression) "v[0] = RotateLeft(v[0], 32)" (subscript_expression) "v[0]" (identifier) "v" ([) "[" (number_literal) "0" (]) "]" (=) "=" (call_expression) "RotateLeft(v[0], 32)" (identifier) "RotateLeft" (argument_list) "(v[0], 32)" (() "(" (subscript_expression) "v[0]" (identifier) "v" ([) "[" (number_literal) "0" (]) "]" (,) "," (number_literal) "32" ()) ")" (;) ";" (expression_statement) "v[2] += v[3];" (assignment_expression) "v[2] += v[3]" (subscript_expression) "v[2]" (identifier) "v" ([) "[" (number_literal) "2" (]) "]" (+=) "+=" (subscript_expression) "v[3]" (identifier) "v" ([) "[" (number_literal) "3" (]) "]" (;) ";" (expression_statement) "v[3] = RotateLeft(v[3], 16);" (assignment_expression) "v[3] = RotateLeft(v[3], 16)" (subscript_expression) "v[3]" (identifier) "v" ([) "[" (number_literal) "3" (]) "]" (=) "=" (call_expression) "RotateLeft(v[3], 16)" (identifier) "RotateLeft" (argument_list) "(v[3], 16)" (() "(" (subscript_expression) "v[3]" (identifier) "v" ([) "[" (number_literal) "3" (]) "]" (,) "," (number_literal) "16" ()) ")" (;) ";" (expression_statement) "v[3] ^= v[2];" (assignment_expression) "v[3] ^= v[2]" (subscript_expression) "v[3]" (identifier) "v" ([) "[" (number_literal) "3" (]) "]" (^=) "^=" (subscript_expression) "v[2]" (identifier) "v" ([) "[" (number_literal) "2" (]) "]" (;) ";" (expression_statement) "v[0] += v[3];" (assignment_expression) "v[0] += v[3]" (subscript_expression) "v[0]" (identifier) "v" ([) "[" (number_literal) "0" (]) "]" (+=) "+=" (subscript_expression) "v[3]" (identifier) "v" ([) "[" (number_literal) "3" (]) "]" (;) ";" (expression_statement) "v[3] = RotateLeft(v[3], 21);" (assignment_expression) "v[3] = RotateLeft(v[3], 21)" (subscript_expression) "v[3]" (identifier) "v" ([) "[" (number_literal) "3" (]) "]" (=) "=" (call_expression) "RotateLeft(v[3], 21)" (identifier) "RotateLeft" (argument_list) "(v[3], 21)" (() "(" (subscript_expression) "v[3]" (identifier) "v" ([) "[" (number_literal) "3" (]) "]" (,) "," (number_literal) "21" ()) ")" (;) ";" (expression_statement) "v[3] ^= v[0];" (assignment_expression) "v[3] ^= v[0]" (subscript_expression) "v[3]" (identifier) "v" ([) "[" (number_literal) "3" (]) "]" (^=) "^=" (subscript_expression) "v[0]" (identifier) "v" ([) "[" (number_literal) "0" (]) "]" (;) ";" (expression_statement) "v[2] += v[1];" (assignment_expression) "v[2] += v[1]" (subscript_expression) "v[2]" (identifier) "v" ([) "[" (number_literal) "2" (]) "]" (+=) "+=" (subscript_expression) "v[1]" (identifier) "v" ([) "[" (number_literal) "1" (]) "]" (;) ";" (expression_statement) "v[1] = RotateLeft(v[1], 17);" (assignment_expression) "v[1] = RotateLeft(v[1], 17)" (subscript_expression) "v[1]" (identifier) "v" ([) "[" (number_literal) "1" (]) "]" (=) "=" (call_expression) "RotateLeft(v[1], 17)" (identifier) "RotateLeft" (argument_list) "(v[1], 17)" (() "(" (subscript_expression) "v[1]" (identifier) "v" ([) "[" (number_literal) "1" (]) "]" (,) "," (number_literal) "17" ()) ")" (;) ";" (expression_statement) "v[1] ^= v[2];" (assignment_expression) "v[1] ^= v[2]" (subscript_expression) "v[1]" (identifier) "v" ([) "[" (number_literal) "1" (]) "]" (^=) "^=" (subscript_expression) "v[2]" (identifier) "v" ([) "[" (number_literal) "2" (]) "]" (;) ";" (expression_statement) "v[2] = RotateLeft(v[2], 32);" (assignment_expression) "v[2] = RotateLeft(v[2], 32)" (subscript_expression) "v[2]" (identifier) "v" ([) "[" (number_literal) "2" (]) "]" (=) "=" (call_expression) "RotateLeft(v[2], 32)" (identifier) "RotateLeft" (argument_list) "(v[2], 32)" (() "(" (subscript_expression) "v[2]" (identifier) "v" ([) "[" (number_literal) "2" (]) "]" (,) "," (number_literal) "32" ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (comment) "// namespace nop" (preproc_call) "#endif // LIBNOP_INCLUDE_NOP_UTILITY_SIP_HASH_H_\n" (preproc_directive) "#endif" (comment) "// LIBNOP_INCLUDE_NOP_UTILITY_SIP_HASH_H_"
1,689
73
{"language": "c", "success": true, "metadata": {"lines": 156, "avg_line_length": 33.97, "nodes": 1017, "errors": 0, "source_hash": "543691b6ca0c9203670cb138e7ba75923cd79897abd16788ee25ba31637523d4", "categorized_nodes": 709}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef LIBNOP_INCLUDE_NOP_UTILITY_SIP_HASH_H_\n#define LIBNOP_INCLUDE_NOP_UTILITY_SIP_HASH_H_\n\n#include <array>\n#include <cstdint>\n\n#include <nop/utility/compiler.h>\n\n// A direct port of the SipHash C reference implementation.\n//\n// https://131002.net/siphash/siphash24.c\n//\n// This version supports compile-time constexpr hash computation when provided\n// with a byte container that supports constexpr size() and operator[] methods.\n//\n\nnamespace nop {\n\n// A simple byte container/wrapper with constexpr size() and operator[] methods.\ntemplate <typename T>\nclass BlockReader {\n public:\n static_assert(sizeof(T) == 1, \"sizeof(T) != 1\");\n using ValueType = T;\n\n template <std::size_t Size>\n constexpr BlockReader(const ValueType (&value)[Size])\n : data_{value}, size_{Size} {}\n constexpr BlockReader(const ValueType* data, std::size_t size)\n : data_{data}, size_{size} {}\n\n BlockReader(const BlockReader&) = default;\n BlockReader& operator=(const BlockReader&) = default;\n\n constexpr std::size_t size() const { return size_; }\n constexpr ValueType operator[](const std::size_t index) const {\n return data_[index];\n }\n\n private:\n const ValueType* data_;\n std::size_t size_;\n};\n\n// Captures a hash value as a compile-time type.\ntemplate <std::uint64_t Hash_>\nstruct HashValue {\n enum : std::uint64_t { Value = Hash_ };\n};\n\nstruct SipHash {\n template <typename T, std::size_t Size>\n static constexpr std::uint64_t Compute(const T (&buffer)[Size],\n std::uint64_t k0, std::uint64_t k1) {\n return Compute(BlockReader<T>(buffer), k0, k1);\n }\n\n template <typename BufferType>\n static constexpr std::uint64_t Compute(const BufferType buffer,\n std::uint64_t k0, std::uint64_t k1) {\n const std::size_t kBlockSize = sizeof(std::uint64_t);\n const std::size_t kLength = buffer.size();\n const std::size_t kLeftOver = kLength % kBlockSize;\n const std::size_t kEndOffset = kLength - kLeftOver;\n\n std::uint64_t v[4] = {0x736f6d6570736575ULL, 0x646f72616e646f6dULL,\n 0x6c7967656e657261ULL, 0x7465646279746573ULL};\n\n std::uint64_t b = static_cast<std::uint64_t>(kLength) << 56;\n\n v[3] ^= k1;\n v[2] ^= k0;\n v[1] ^= k1;\n v[0] ^= k0;\n\n for (std::size_t offset = 0; offset < kEndOffset; offset += kBlockSize) {\n std::uint64_t m = ReadBlock(buffer, offset);\n v[3] ^= m;\n Round(v);\n Round(v);\n v[0] ^= m;\n }\n\n switch (kLeftOver) {\n case 7:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 6]) << 48;\n NOP_FALLTHROUGH;\n case 6:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 5]) << 40;\n NOP_FALLTHROUGH;\n case 5:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 4]) << 32;\n NOP_FALLTHROUGH;\n case 4:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 3]) << 24;\n NOP_FALLTHROUGH;\n case 3:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 2]) << 16;\n NOP_FALLTHROUGH;\n case 2:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 1]) << 8;\n NOP_FALLTHROUGH;\n case 1:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 0]) << 0;\n NOP_FALLTHROUGH;\n case 0:\n break;\n }\n\n v[3] ^= b;\n Round(v);\n Round(v);\n v[0] ^= b;\n\n v[2] ^= 0xff;\n Round(v);\n Round(v);\n Round(v);\n Round(v);\n b = v[0] ^ v[1] ^ v[2] ^ v[3];\n\n return b;\n }\n\n private:\n template <typename BufferType>\n static constexpr std::uint64_t ReadBlock(const BufferType buffer,\n const std::size_t offset) {\n const std::uint64_t v0 = buffer[offset + 0];\n const std::uint64_t v1 = buffer[offset + 1];\n const std::uint64_t v2 = buffer[offset + 2];\n const std::uint64_t v3 = buffer[offset + 3];\n const std::uint64_t v4 = buffer[offset + 4];\n const std::uint64_t v5 = buffer[offset + 5];\n const std::uint64_t v6 = buffer[offset + 6];\n const std::uint64_t v7 = buffer[offset + 7];\n\n return ((v7 << 56) | (v6 << 48) | (v5 << 40) | (v4 << 32) | (v3 << 24) |\n (v2 << 16) | (v1 << 8) | (v0 << 0));\n }\n\n static constexpr std::uint64_t RotateLeft(const std::uint64_t x,\n const std::uint64_t b) {\n return (x << b) | (x >> (64 - b));\n }\n\n static constexpr void Round(std::uint64_t (&v)[4]) {\n v[0] += v[1];\n v[1] = RotateLeft(v[1], 13);\n v[1] ^= v[0];\n v[0] = RotateLeft(v[0], 32);\n v[2] += v[3];\n v[3] = RotateLeft(v[3], 16);\n v[3] ^= v[2];\n v[0] += v[3];\n v[3] = RotateLeft(v[3], 21);\n v[3] ^= v[0];\n v[2] += v[1];\n v[1] = RotateLeft(v[1], 17);\n v[1] ^= v[2];\n v[2] = RotateLeft(v[2], 32);\n }\n};\n\n} // namespace nop\n\n#endif // LIBNOP_INCLUDE_NOP_UTILITY_SIP_HASH_H_\n", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 16, 17, 1015], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 183, "column": 0}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 7}}, {"id": 2, "type": "identifier", "text": "LIBNOP_INCLUDE_NOP_UTILITY_SIP_HASH_H_", "parent": 0, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 46}}, {"id": 3, "type": "preproc_def", "text": "#define LIBNOP_INCLUDE_NOP_UTILITY_SIP_HASH_H_\n", "parent": 0, "children": [4, 5], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 7}}, {"id": 5, "type": "identifier", "text": "LIBNOP_INCLUDE_NOP_UTILITY_SIP_HASH_H_", "parent": 3, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 46}}, {"id": 6, "type": "preproc_include", "text": "#include <array>\n", "parent": 0, "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": "system_lib_string", "text": "<array>", "parent": 6, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 16}}, {"id": 9, "type": "preproc_include", "text": "#include <cstdint>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<cstdint>", "parent": 9, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 18}}, {"id": 12, "type": "preproc_include", "text": "#include <nop/utility/compiler.h>\n", "parent": 0, "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": "<nop/utility/compiler.h>", "parent": 12, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 33}}, {"id": 15, "type": "type_identifier", "text": "namespace", "parent": 0, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 9}}, {"id": 16, "type": "identifier", "text": "nop", "parent": 0, "children": [], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 13}}, {"id": 17, "type": "ERROR", "text": "template <typename T>\nclass BlockReader", "parent": 0, "children": [18, 26], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 36, "column": 17}}, {"id": 18, "type": "binary_expression", "text": "template <typename T>\nclass", "parent": 17, "children": [19, 23, 25], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 36, "column": 5}}, {"id": 19, "type": "binary_expression", "text": "template <typename", "parent": 18, "children": [20, 21, 22], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 18}}, {"id": 20, "type": "identifier", "text": "template", "parent": 19, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 8}}, {"id": 21, "type": "<", "text": "<", "parent": 19, "children": [], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 10}}, {"id": 22, "type": "identifier", "text": "typename", "parent": 19, "children": [], "start_point": {"row": 35, "column": 10}, "end_point": {"row": 35, "column": 18}}, {"id": 23, "type": "ERROR", "text": "T", "parent": 18, "children": [24], "start_point": {"row": 35, "column": 19}, "end_point": {"row": 35, "column": 20}}, {"id": 24, "type": "identifier", "text": "T", "parent": 23, "children": [], "start_point": {"row": 35, "column": 19}, "end_point": {"row": 35, "column": 20}}, {"id": 25, "type": ">", "text": ">", "parent": 18, "children": [], "start_point": {"row": 35, "column": 20}, "end_point": {"row": 35, "column": 21}}, {"id": 26, "type": "identifier", "text": "BlockReader", "parent": 17, "children": [], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 17}}, {"id": 27, "type": "labeled_statement", "text": "public:\n static_assert(sizeof(T) == 1, \"sizeof(T) != 1\");", "parent": 0, "children": [], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 38, "column": 50}}, {"id": 28, "type": "call_expression", "text": "static_assert(sizeof(T) == 1, \"sizeof(T) != 1\")", "parent": 27, "children": [29, 30], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 49}}, {"id": 29, "type": "identifier", "text": "static_assert", "parent": 28, "children": [], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 15}}, {"id": 30, "type": "argument_list", "text": "(sizeof(T) == 1, \"sizeof(T) != 1\")", "parent": 28, "children": [31, 37], "start_point": {"row": 38, "column": 15}, "end_point": {"row": 38, "column": 49}}, {"id": 31, "type": "binary_expression", "text": "sizeof(T) == 1", "parent": 30, "children": [32, 35, 36], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 38, "column": 30}}, {"id": 32, "type": "sizeof_expression", "text": "sizeof(T)", "parent": 31, "children": [33], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 38, "column": 25}}, {"id": 33, "type": "parenthesized_expression", "text": "(T)", "parent": 32, "children": [34], "start_point": {"row": 38, "column": 22}, "end_point": {"row": 38, "column": 25}}, {"id": 34, "type": "identifier", "text": "T", "parent": 33, "children": [], "start_point": {"row": 38, "column": 23}, "end_point": {"row": 38, "column": 24}}, {"id": 35, "type": "==", "text": "==", "parent": 31, "children": [], "start_point": {"row": 38, "column": 26}, "end_point": {"row": 38, "column": 28}}, {"id": 36, "type": "number_literal", "text": "1", "parent": 31, "children": [], "start_point": {"row": 38, "column": 29}, "end_point": {"row": 38, "column": 30}}, {"id": 37, "type": "string_literal", "text": "\"sizeof(T) != 1\"", "parent": 30, "children": [], "start_point": {"row": 38, "column": 32}, "end_point": {"row": 38, "column": 48}}, {"id": 38, "type": "declaration", "text": "using ValueType = T;", "parent": 0, "children": [39, 40], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 22}}, {"id": 39, "type": "type_identifier", "text": "using", "parent": 38, "children": [], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 7}}, {"id": 40, "type": "init_declarator", "text": "ValueType = T", "parent": 38, "children": [41, 42, 43], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 21}}, {"id": 41, "type": "identifier", "text": "ValueType", "parent": 40, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 17}}, {"id": 42, "type": "=", "text": "=", "parent": 40, "children": [], "start_point": {"row": 39, "column": 18}, "end_point": {"row": 39, "column": 19}}, {"id": 43, "type": "identifier", "text": "T", "parent": 40, "children": [], "start_point": {"row": 39, "column": 20}, "end_point": {"row": 39, "column": 21}}, {"id": 44, "type": "ERROR", "text": "template <std::size_t Size>", "parent": 0, "children": [45, 49, 50, 51], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 29}}, {"id": 45, "type": "binary_expression", "text": "template <std", "parent": 44, "children": [46, 47, 48], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 15}}, {"id": 46, "type": "identifier", "text": "template", "parent": 45, "children": [], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 10}}, {"id": 47, "type": "<", "text": "<", "parent": 45, "children": [], "start_point": {"row": 41, "column": 11}, "end_point": {"row": 41, "column": 12}}, {"id": 48, "type": "identifier", "text": "std", "parent": 45, "children": [], "start_point": {"row": 41, "column": 12}, "end_point": {"row": 41, "column": 15}}, {"id": 49, "type": "primitive_type", "text": "size_t", "parent": 44, "children": [], "start_point": {"row": 41, "column": 17}, "end_point": {"row": 41, "column": 23}}, {"id": 50, "type": "identifier", "text": "Size", "parent": 44, "children": [], "start_point": {"row": 41, "column": 24}, "end_point": {"row": 41, "column": 28}}, {"id": 51, "type": ">", "text": ">", "parent": 44, "children": [], "start_point": {"row": 41, "column": 28}, "end_point": {"row": 41, "column": 29}}, {"id": 52, "type": "function_definition", "text": "constexpr BlockReader(const ValueType (&value)[Size])\n : data_{value}, size_{Size} {}\n constexpr BlockReader(const ValueType* data, std::size_t size)\n : data_{data}, size_{size} {}\n\n BlockReader(const BlockReader&) = default;\n BlockReader& operator=(const BlockReader&) = default;\n\n constexpr std::size_t size() const { return size_; }\n constexpr ValueType operator[](const std::size_t index) const {\n return data_[index];\n }\n\n private:\n const ValueType* data_;\n std::size_t size_;\n};\n\n// Captures a hash value as a compile-time type.\ntemplate <std::uint64_t Hash_>\nstruct HashValue {\n enum : std::uint64_t { Value = Hash_ };\n};\n\nstruct SipHash {\n template <typename T, std::size_t Size>\n static constexpr std::uint64_t Compute(const T (&buffer)[Size],\n std::uint64_t k0, std::uint64_t k1) {\n return Compute(BlockReader<T>(buffer), k0, k1);\n }\n\n template <typename BufferType>\n static constexpr std::uint64_t Compute(const BufferType buffer,\n std::uint64_t k0, std::uint64_t k1) {\n const std::size_t kBlockSize = sizeof(std::uint64_t);\n const std::size_t kLength = buffer.size();\n const std::size_t kLeftOver = kLength % kBlockSize;\n const std::size_t kEndOffset = kLength - kLeftOver;\n\n std::uint64_t v[4] = {0x736f6d6570736575ULL, 0x646f72616e646f6dULL,\n 0x6c7967656e657261ULL, 0x7465646279746573ULL};\n\n std::uint64_t b = static_cast<std::uint64_t>(kLength) << 56;\n\n v[3] ^= k1;\n v[2] ^= k0;\n v[1] ^= k1;\n v[0] ^= k0;\n\n for (std::size_t offset = 0; offset < kEndOffset; offset += kBlockSize) {\n std::uint64_t m = ReadBlock(buffer, offset);\n v[3] ^= m;\n Round(v);\n Round(v);\n v[0] ^= m;\n }\n\n switch (kLeftOver) {\n case 7:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 6]) << 48;\n NOP_FALLTHROUGH;\n case 6:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 5]) << 40;\n NOP_FALLTHROUGH;\n case 5:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 4]) << 32;\n NOP_FALLTHROUGH;\n case 4:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 3]) << 24;\n NOP_FALLTHROUGH;\n case 3:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 2]) << 16;\n NOP_FALLTHROUGH;\n case 2:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 1]) << 8;\n NOP_FALLTHROUGH;\n case 1:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 0]) << 0;\n NOP_FALLTHROUGH;\n case 0:\n break;\n }\n\n v[3] ^= b;\n Round(v);\n Round(v);\n v[0] ^= b;\n\n v[2] ^= 0xff;\n Round(v);\n Round(v);\n Round(v);\n Round(v);\n b = v[0] ^ v[1] ^ v[2] ^ v[3];\n\n return b;\n }\n\n private:\n template <typename BufferType>\n static constexpr std::uint64_t ReadBlock(const BufferType buffer,\n const std::size_t offset) {\n const std::uint64_t v0 = buffer[offset + 0];\n const std::uint64_t v1 = buffer[offset + 1];\n const std::uint64_t v2 = buffer[offset + 2];\n const std::uint64_t v3 = buffer[offset + 3];\n const std::uint64_t v4 = buffer[offset + 4];\n const std::uint64_t v5 = buffer[offset + 5];\n const std::uint64_t v6 = buffer[offset + 6];\n const std::uint64_t v7 = buffer[offset + 7];\n\n return ((v7 << 56) | (v6 << 48) | (v5 << 40) | (v4 << 32) | (v3 << 24) |\n (v2 << 16) | (v1 << 8) | (v0 << 0));\n }\n\n static constexpr std::uint64_t RotateLeft(const std::uint64_t x,\n const std::uint64_t b) {\n return (x << b) | (x >> (64 - b));\n }\n\n static constexpr void Round(std::uint64_t (&v)[4]) {\n v[0] += v[1];\n v[1] = RotateLeft(v[1], 13);\n v[1] ^= v[0];\n v[0] = RotateLeft(v[0], 32);\n v[2] += v[3];\n v[3] = RotateLeft(v[3], 16);\n v[3] ^= v[2];\n v[0] += v[3];\n v[3] = RotateLeft(v[3], 21);\n v[3] ^= v[0];\n v[2] += v[1];\n v[1] = RotateLeft(v[1], 17);\n v[1] ^= v[2];\n v[2] = RotateLeft(v[2], 32);\n }\n}", "parent": 0, "children": [53, 55, 64], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 178, "column": 1}}, {"id": 53, "type": "type_qualifier", "text": "constexpr", "parent": 52, "children": [54], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 11}}, {"id": 54, "type": "constexpr", "text": "constexpr", "parent": 53, "children": [], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 11}}, {"id": 55, "type": "macro_type_specifier", "text": "BlockReader(const ValueType (&value)[Size])", "parent": 52, "children": [56, 57], "start_point": {"row": 42, "column": 12}, "end_point": {"row": 42, "column": 55}}, {"id": 56, "type": "identifier", "text": "BlockReader", "parent": 55, "children": [], "start_point": {"row": 42, "column": 12}, "end_point": {"row": 42, "column": 23}}, {"id": 57, "type": "type_descriptor", "text": "const ValueType (&value)[Size]", "parent": 55, "children": [58, 62], "start_point": {"row": 42, "column": 24}, "end_point": {"row": 42, "column": 54}}, {"id": 58, "type": "macro_type_specifier", "text": "ValueType (&value)", "parent": 57, "children": [59, 60], "start_point": {"row": 42, "column": 30}, "end_point": {"row": 42, "column": 48}}, {"id": 59, "type": "identifier", "text": "ValueType", "parent": 58, "children": [], "start_point": {"row": 42, "column": 30}, "end_point": {"row": 42, "column": 39}}, {"id": 60, "type": "type_descriptor", "text": "value", "parent": 58, "children": [61], "start_point": {"row": 42, "column": 42}, "end_point": {"row": 42, "column": 47}}, {"id": 61, "type": "type_identifier", "text": "value", "parent": 60, "children": [], "start_point": {"row": 42, "column": 42}, "end_point": {"row": 42, "column": 47}}, {"id": 62, "type": "abstract_array_declarator", "text": "[Size]", "parent": 57, "children": [63], "start_point": {"row": 42, "column": 48}, "end_point": {"row": 42, "column": 54}}, {"id": 63, "type": "identifier", "text": "Size", "parent": 62, "children": [], "start_point": {"row": 42, "column": 49}, "end_point": {"row": 42, "column": 53}}, {"id": 64, "type": "identifier", "text": "data_", "parent": 52, "children": [], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 13}}, {"id": 65, "type": "comma_expression", "text": "value}, size_", "parent": 52, "children": [66, 67], "start_point": {"row": 43, "column": 14}, "end_point": {"row": 43, "column": 27}}, {"id": 66, "type": "identifier", "text": "value", "parent": 65, "children": [], "start_point": {"row": 43, "column": 14}, "end_point": {"row": 43, "column": 19}}, {"id": 67, "type": "identifier", "text": "size_", "parent": 65, "children": [], "start_point": {"row": 43, "column": 22}, "end_point": {"row": 43, "column": 27}}, {"id": 68, "type": "ERROR", "text": "Size", "parent": 52, "children": [69], "start_point": {"row": 43, "column": 28}, "end_point": {"row": 43, "column": 32}}, {"id": 69, "type": "identifier", "text": "Size", "parent": 68, "children": [], "start_point": {"row": 43, "column": 28}, "end_point": {"row": 43, "column": 32}}, {"id": 70, "type": "declaration", "text": "constexpr BlockReader(const ValueType* data, std::size_t size)\n : data_{data}, size_{size} {}\n\n BlockReader(const BlockReader&) = default;", "parent": 52, "children": [71, 73, 79, 80, 85, 86, 89], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 47, "column": 44}}, {"id": 71, "type": "type_qualifier", "text": "constexpr", "parent": 70, "children": [72], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 11}}, {"id": 72, "type": "constexpr", "text": "constexpr", "parent": 71, "children": [], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 11}}, {"id": 73, "type": "macro_type_specifier", "text": "BlockReader(const ValueType*", "parent": 70, "children": [74, 75], "start_point": {"row": 44, "column": 12}, "end_point": {"row": 44, "column": 40}}, {"id": 74, "type": "identifier", "text": "BlockReader", "parent": 73, "children": [], "start_point": {"row": 44, "column": 12}, "end_point": {"row": 44, "column": 23}}, {"id": 75, "type": "type_descriptor", "text": "const ValueType*", "parent": 73, "children": [76, 77], "start_point": {"row": 44, "column": 24}, "end_point": {"row": 44, "column": 40}}, {"id": 76, "type": "type_identifier", "text": "ValueType", "parent": 75, "children": [], "start_point": {"row": 44, "column": 30}, "end_point": {"row": 44, "column": 39}}, {"id": 77, "type": "abstract_pointer_declarator", "text": "*", "parent": 75, "children": [78], "start_point": {"row": 44, "column": 39}, "end_point": {"row": 44, "column": 40}}, {"id": 78, "type": "*", "text": "*", "parent": 77, "children": [], "start_point": {"row": 44, "column": 39}, "end_point": {"row": 44, "column": 40}}, {"id": 79, "type": "identifier", "text": "data", "parent": 70, "children": [], "start_point": {"row": 44, "column": 41}, "end_point": {"row": 44, "column": 45}}, {"id": 80, "type": "ERROR", "text": "std::size_t size)\n : data_{", "parent": 70, "children": [81, 82, 83, 84], "start_point": {"row": 44, "column": 47}, "end_point": {"row": 45, "column": 14}}, {"id": 81, "type": "identifier", "text": "std", "parent": 80, "children": [], "start_point": {"row": 44, "column": 47}, "end_point": {"row": 44, "column": 50}}, {"id": 82, "type": "primitive_type", "text": "size_t", "parent": 80, "children": [], "start_point": {"row": 44, "column": 52}, "end_point": {"row": 44, "column": 58}}, {"id": 83, "type": "identifier", "text": "size", "parent": 80, "children": [], "start_point": {"row": 44, "column": 59}, "end_point": {"row": 44, "column": 63}}, {"id": 84, "type": "identifier", "text": "data_", "parent": 80, "children": [], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 13}}, {"id": 85, "type": "identifier", "text": "data", "parent": 70, "children": [], "start_point": {"row": 45, "column": 14}, "end_point": {"row": 45, "column": 18}}, {"id": 86, "type": "ERROR", "text": "size_{size} {}", "parent": 70, "children": [87, 88], "start_point": {"row": 45, "column": 21}, "end_point": {"row": 45, "column": 35}}, {"id": 87, "type": "identifier", "text": "size_", "parent": 86, "children": [], "start_point": {"row": 45, "column": 21}, "end_point": {"row": 45, "column": 26}}, {"id": 88, "type": "identifier", "text": "size", "parent": 86, "children": [], "start_point": {"row": 45, "column": 27}, "end_point": {"row": 45, "column": 31}}, {"id": 89, "type": "init_declarator", "text": "BlockReader(const BlockReader&) = default", "parent": 70, "children": [90, 95, 96], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 43}}, {"id": 90, "type": "function_declarator", "text": "BlockReader(const BlockReader&)", "parent": 89, "children": [91, 92], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 33}}, {"id": 91, "type": "identifier", "text": "BlockReader", "parent": 90, "children": [], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 13}}, {"id": 92, "type": "parameter_list", "text": "(const BlockReader&)", "parent": 90, "children": [93], "start_point": {"row": 47, "column": 13}, "end_point": {"row": 47, "column": 33}}, {"id": 93, "type": "parameter_declaration", "text": "const BlockReader", "parent": 92, "children": [94], "start_point": {"row": 47, "column": 14}, "end_point": {"row": 47, "column": 31}}, {"id": 94, "type": "type_identifier", "text": "BlockReader", "parent": 93, "children": [], "start_point": {"row": 47, "column": 20}, "end_point": {"row": 47, "column": 31}}, {"id": 95, "type": "=", "text": "=", "parent": 89, "children": [], "start_point": {"row": 47, "column": 34}, "end_point": {"row": 47, "column": 35}}, {"id": 96, "type": "identifier", "text": "default", "parent": 89, "children": [], "start_point": {"row": 47, "column": 36}, "end_point": {"row": 47, "column": 43}}, {"id": 97, "type": "binary_expression", "text": "BlockReader& operator=(const BlockReader&) = default", "parent": 52, "children": [98, 99], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 54}}, {"id": 98, "type": "identifier", "text": "BlockReader", "parent": 97, "children": [], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 13}}, {"id": 99, "type": "assignment_expression", "text": "operator=(const BlockReader&) = default", "parent": 97, "children": [100, 101, 105, 106], "start_point": {"row": 48, "column": 15}, "end_point": {"row": 48, "column": 54}}, {"id": 100, "type": "identifier", "text": "operator", "parent": 99, "children": [], "start_point": {"row": 48, "column": 15}, "end_point": {"row": 48, "column": 23}}, {"id": 101, "type": "ERROR", "text": "=(const BlockReader&)", "parent": 99, "children": [102, 103], "start_point": {"row": 48, "column": 23}, "end_point": {"row": 48, "column": 44}}, {"id": 102, "type": "=", "text": "=", "parent": 101, "children": [], "start_point": {"row": 48, "column": 23}, "end_point": {"row": 48, "column": 24}}, {"id": 103, "type": "type_descriptor", "text": "const BlockReader", "parent": 101, "children": [104], "start_point": {"row": 48, "column": 25}, "end_point": {"row": 48, "column": 42}}, {"id": 104, "type": "type_identifier", "text": "BlockReader", "parent": 103, "children": [], "start_point": {"row": 48, "column": 31}, "end_point": {"row": 48, "column": 42}}, {"id": 105, "type": "=", "text": "=", "parent": 99, "children": [], "start_point": {"row": 48, "column": 45}, "end_point": {"row": 48, "column": 46}}, {"id": 106, "type": "identifier", "text": "default", "parent": 99, "children": [], "start_point": {"row": 48, "column": 47}, "end_point": {"row": 48, "column": 54}}, {"id": 107, "type": "function_definition", "text": "constexpr std::size_t size() const { return size_; }\n constexpr ValueType operator[](const std::size_t index) const {\n return data_[index];\n }\n\n private:\n const ValueType* data_;\n std::size_t size_;\n};\n\n// Captures a hash value as a compile-time type.\ntemplate <std::uint64_t Hash_>\nstruct HashValue {\n enum : std::uint64_t { Value = Hash_ };\n};\n\nstruct SipHash {\n template <typename T, std::size_t Size>\n static constexpr std::uint64_t Compute(const T (&buffer)[Size],\n std::uint64_t k0, std::uint64_t k1) {\n return Compute(BlockReader<T>(buffer), k0, k1);\n }\n\n template <typename BufferType>\n static constexpr std::uint64_t Compute(const BufferType buffer,\n std::uint64_t k0, std::uint64_t k1) {\n const std::size_t kBlockSize = sizeof(std::uint64_t);\n const std::size_t kLength = buffer.size();\n const std::size_t kLeftOver = kLength % kBlockSize;\n const std::size_t kEndOffset = kLength - kLeftOver;\n\n std::uint64_t v[4] = {0x736f6d6570736575ULL, 0x646f72616e646f6dULL,\n 0x6c7967656e657261ULL, 0x7465646279746573ULL};\n\n std::uint64_t b = static_cast<std::uint64_t>(kLength) << 56;\n\n v[3] ^= k1;\n v[2] ^= k0;\n v[1] ^= k1;\n v[0] ^= k0;\n\n for (std::size_t offset = 0; offset < kEndOffset; offset += kBlockSize) {\n std::uint64_t m = ReadBlock(buffer, offset);\n v[3] ^= m;\n Round(v);\n Round(v);\n v[0] ^= m;\n }\n\n switch (kLeftOver) {\n case 7:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 6]) << 48;\n NOP_FALLTHROUGH;\n case 6:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 5]) << 40;\n NOP_FALLTHROUGH;\n case 5:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 4]) << 32;\n NOP_FALLTHROUGH;\n case 4:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 3]) << 24;\n NOP_FALLTHROUGH;\n case 3:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 2]) << 16;\n NOP_FALLTHROUGH;\n case 2:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 1]) << 8;\n NOP_FALLTHROUGH;\n case 1:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 0]) << 0;\n NOP_FALLTHROUGH;\n case 0:\n break;\n }\n\n v[3] ^= b;\n Round(v);\n Round(v);\n v[0] ^= b;\n\n v[2] ^= 0xff;\n Round(v);\n Round(v);\n Round(v);\n Round(v);\n b = v[0] ^ v[1] ^ v[2] ^ v[3];\n\n return b;\n }", "parent": 52, "children": [108, 110, 112, 113, 116, 119, 136, 142, 144, 147, 148, 165], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 138, "column": 3}}, {"id": 108, "type": "type_qualifier", "text": "constexpr", "parent": 107, "children": [109], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 11}}, {"id": 109, "type": "constexpr", "text": "constexpr", "parent": 108, "children": [], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 11}}, {"id": 110, "type": "ERROR", "text": "std::", "parent": 107, "children": [111], "start_point": {"row": 50, "column": 12}, "end_point": {"row": 50, "column": 17}}, {"id": 111, "type": "type_identifier", "text": "std", "parent": 110, "children": [], "start_point": {"row": 50, "column": 12}, "end_point": {"row": 50, "column": 15}}, {"id": 112, "type": "primitive_type", "text": "size_t", "parent": 107, "children": [], "start_point": {"row": 50, "column": 17}, "end_point": {"row": 50, "column": 23}}, {"id": 113, "type": "function_declarator", "text": "size()", "parent": 107, "children": [114, 115], "start_point": {"row": 50, "column": 24}, "end_point": {"row": 50, "column": 30}}, {"id": 114, "type": "identifier", "text": "size", "parent": 113, "children": [], "start_point": {"row": 50, "column": 24}, "end_point": {"row": 50, "column": 28}}, {"id": 115, "type": "parameter_list", "text": "()", "parent": 113, "children": [], "start_point": {"row": 50, "column": 28}, "end_point": {"row": 50, "column": 30}}, {"id": 116, "type": "ERROR", "text": "const { return size_; }", "parent": 107, "children": [117, 118], "start_point": {"row": 50, "column": 31}, "end_point": {"row": 50, "column": 54}}, {"id": 117, "type": "ERROR", "text": "{ return", "parent": 116, "children": [], "start_point": {"row": 50, "column": 37}, "end_point": {"row": 50, "column": 45}}, {"id": 118, "type": "type_identifier", "text": "size_", "parent": 116, "children": [], "start_point": {"row": 50, "column": 46}, "end_point": {"row": 50, "column": 51}}, {"id": 119, "type": "declaration", "text": "constexpr ValueType operator[](const std::size_t index) const {\n return data_[index];", "parent": 107, "children": [120, 122, 123], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 52, "column": 24}}, {"id": 120, "type": "type_qualifier", "text": "constexpr", "parent": 119, "children": [121], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 11}}, {"id": 121, "type": "constexpr", "text": "constexpr", "parent": 120, "children": [], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 11}}, {"id": 122, "type": "type_identifier", "text": "ValueType", "parent": 119, "children": [], "start_point": {"row": 51, "column": 12}, "end_point": {"row": 51, "column": 21}}, {"id": 123, "type": "array_declarator", "text": "operator[](const std::size_t index) const {\n return data_[index]", "parent": 119, "children": [124, 133, 135], "start_point": {"row": 51, "column": 22}, "end_point": {"row": 52, "column": 23}}, {"id": 124, "type": "function_declarator", "text": "operator[](const std::size_t index) const", "parent": 123, "children": [125, 127], "start_point": {"row": 51, "column": 22}, "end_point": {"row": 51, "column": 63}}, {"id": 125, "type": "array_declarator", "text": "operator[]", "parent": 124, "children": [126], "start_point": {"row": 51, "column": 22}, "end_point": {"row": 51, "column": 32}}, {"id": 126, "type": "identifier", "text": "operator", "parent": 125, "children": [], "start_point": {"row": 51, "column": 22}, "end_point": {"row": 51, "column": 30}}, {"id": 127, "type": "parameter_list", "text": "(const std::size_t index)", "parent": 124, "children": [128], "start_point": {"row": 51, "column": 32}, "end_point": {"row": 51, "column": 57}}, {"id": 128, "type": "parameter_declaration", "text": "const std::size_t index", "parent": 127, "children": [129, 131, 132], "start_point": {"row": 51, "column": 33}, "end_point": {"row": 51, "column": 56}}, {"id": 129, "type": "ERROR", "text": "std::", "parent": 128, "children": [130], "start_point": {"row": 51, "column": 39}, "end_point": {"row": 51, "column": 44}}, {"id": 130, "type": "type_identifier", "text": "std", "parent": 129, "children": [], "start_point": {"row": 51, "column": 39}, "end_point": {"row": 51, "column": 42}}, {"id": 131, "type": "primitive_type", "text": "size_t", "parent": 128, "children": [], "start_point": {"row": 51, "column": 44}, "end_point": {"row": 51, "column": 50}}, {"id": 132, "type": "identifier", "text": "index", "parent": 128, "children": [], "start_point": {"row": 51, "column": 51}, "end_point": {"row": 51, "column": 56}}, {"id": 133, "type": "ERROR", "text": "{\n return data_", "parent": 123, "children": [134], "start_point": {"row": 51, "column": 64}, "end_point": {"row": 52, "column": 16}}, {"id": 134, "type": "identifier", "text": "data_", "parent": 133, "children": [], "start_point": {"row": 52, "column": 11}, "end_point": {"row": 52, "column": 16}}, {"id": 135, "type": "identifier", "text": "index", "parent": 123, "children": [], "start_point": {"row": 52, "column": 17}, "end_point": {"row": 52, "column": 22}}, {"id": 136, "type": "declaration", "text": "private:\n const ValueType* data_;", "parent": 107, "children": [137, 139], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 56, "column": 25}}, {"id": 137, "type": "ERROR", "text": "ValueType", "parent": 136, "children": [138], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 17}}, {"id": 138, "type": "identifier", "text": "ValueType", "parent": 137, "children": [], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 17}}, {"id": 139, "type": "pointer_declarator", "text": "* data_", "parent": 136, "children": [140, 141], "start_point": {"row": 56, "column": 17}, "end_point": {"row": 56, "column": 24}}, {"id": 140, "type": "*", "text": "*", "parent": 139, "children": [], "start_point": {"row": 56, "column": 17}, "end_point": {"row": 56, "column": 18}}, {"id": 141, "type": "identifier", "text": "data_", "parent": 139, "children": [], "start_point": {"row": 56, "column": 19}, "end_point": {"row": 56, "column": 24}}, {"id": 142, "type": "ERROR", "text": "std::", "parent": 107, "children": [143], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 7}}, {"id": 143, "type": "type_identifier", "text": "std", "parent": 142, "children": [], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 5}}, {"id": 144, "type": "declaration", "text": "size_t size_;", "parent": 107, "children": [145, 146], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 20}}, {"id": 145, "type": "primitive_type", "text": "size_t", "parent": 144, "children": [], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 13}}, {"id": 146, "type": "identifier", "text": "size_", "parent": 144, "children": [], "start_point": {"row": 57, "column": 14}, "end_point": {"row": 57, "column": 19}}, {"id": 147, "type": "ERROR", "text": "};", "parent": 107, "children": [], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 2}}, {"id": 148, "type": "declaration", "text": "template <std::uint64_t Hash_>\nstruct HashValue {\n enum : std::uint64_t { Value = Hash_ };", "parent": 107, "children": [149, 150, 161], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 63, "column": 41}}, {"id": 149, "type": "type_identifier", "text": "template", "parent": 148, "children": [], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 8}}, {"id": 150, "type": "ERROR", "text": "<std::uint64_t Hash_>\nstruct HashValue {\n enum : std::uint64_t {", "parent": 148, "children": [151, 152, 153, 154, 155, 156, 157, 158, 159, 160], "start_point": {"row": 61, "column": 9}, "end_point": {"row": 63, "column": 24}}, {"id": 151, "type": "<", "text": "<", "parent": 150, "children": [], "start_point": {"row": 61, "column": 9}, "end_point": {"row": 61, "column": 10}}, {"id": 152, "type": "identifier", "text": "std", "parent": 150, "children": [], "start_point": {"row": 61, "column": 10}, "end_point": {"row": 61, "column": 13}}, {"id": 153, "type": "primitive_type", "text": "uint64_t", "parent": 150, "children": [], "start_point": {"row": 61, "column": 15}, "end_point": {"row": 61, "column": 23}}, {"id": 154, "type": "identifier", "text": "Hash_", "parent": 150, "children": [], "start_point": {"row": 61, "column": 24}, "end_point": {"row": 61, "column": 29}}, {"id": 155, "type": ">", "text": ">", "parent": 150, "children": [], "start_point": {"row": 61, "column": 29}, "end_point": {"row": 61, "column": 30}}, {"id": 156, "type": "struct", "text": "struct", "parent": 150, "children": [], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 62, "column": 6}}, {"id": 157, "type": "identifier", "text": "HashValue", "parent": 150, "children": [], "start_point": {"row": 62, "column": 7}, "end_point": {"row": 62, "column": 16}}, {"id": 158, "type": "enum", "text": "enum", "parent": 150, "children": [], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 6}}, {"id": 159, "type": "identifier", "text": "std", "parent": 150, "children": [], "start_point": {"row": 63, "column": 9}, "end_point": {"row": 63, "column": 12}}, {"id": 160, "type": "primitive_type", "text": "uint64_t", "parent": 150, "children": [], "start_point": {"row": 63, "column": 14}, "end_point": {"row": 63, "column": 22}}, {"id": 161, "type": "init_declarator", "text": "Value = Hash_", "parent": 148, "children": [162, 163, 164], "start_point": {"row": 63, "column": 25}, "end_point": {"row": 63, "column": 38}}, {"id": 162, "type": "identifier", "text": "Value", "parent": 161, "children": [], "start_point": {"row": 63, "column": 25}, "end_point": {"row": 63, "column": 30}}, {"id": 163, "type": "=", "text": "=", "parent": 161, "children": [], "start_point": {"row": 63, "column": 31}, "end_point": {"row": 63, "column": 32}}, {"id": 164, "type": "identifier", "text": "Hash_", "parent": 161, "children": [], "start_point": {"row": 63, "column": 33}, "end_point": {"row": 63, "column": 38}}, {"id": 165, "type": "ERROR", "text": "};\n\nstruct SipHash {\n template <typename T, std::size_t Size>\n static constexpr std::uint64_t Compute(const T (&buffer)[Size],\n std::uint64_t k0, std::uint64_t k1) {\n return Compute(BlockReader<T>(buffer), k0, k1);\n }\n\n template <typename BufferType>\n static constexpr std::uint64_t Compute(const BufferType buffer,\n std::uint64_t k0, std::uint64_t k1)", "parent": 107, "children": [166, 221, 225, 226, 227, 229, 231, 232], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 75, "column": 76}}, {"id": 166, "type": "struct_specifier", "text": "struct SipHash {\n template <typename T, std::size_t Size>\n static constexpr std::uint64_t Compute(const T (&buffer)[Size],\n std::uint64_t k0, std::uint64_t k1) {\n return Compute(BlockReader<T>(buffer), k0, k1);\n }", "parent": 165, "children": [167, 168], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 71, "column": 3}}, {"id": 167, "type": "struct", "text": "struct", "parent": 166, "children": [], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 6}}, {"id": 168, "type": "type_identifier", "text": "SipHash", "parent": 166, "children": [], "start_point": {"row": 66, "column": 7}, "end_point": {"row": 66, "column": 14}}, {"id": 169, "type": "field_declaration", "text": "template <typename T, std::size_t Size>\n static", "parent": 166, "children": [170, 171, 174, 175, 176], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 68, "column": 8}}, {"id": 170, "type": "type_identifier", "text": "template", "parent": 169, "children": [], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 10}}, {"id": 171, "type": "ERROR", "text": "<typename", "parent": 169, "children": [172, 173], "start_point": {"row": 67, "column": 11}, "end_point": {"row": 67, "column": 20}}, {"id": 172, "type": "<", "text": "<", "parent": 171, "children": [], "start_point": {"row": 67, "column": 11}, "end_point": {"row": 67, "column": 12}}, {"id": 173, "type": "field_identifier", "text": "typename", "parent": 171, "children": [], "start_point": {"row": 67, "column": 12}, "end_point": {"row": 67, "column": 20}}, {"id": 174, "type": "field_identifier", "text": "T", "parent": 169, "children": [], "start_point": {"row": 67, "column": 21}, "end_point": {"row": 67, "column": 22}}, {"id": 175, "type": "field_identifier", "text": "std", "parent": 169, "children": [], "start_point": {"row": 67, "column": 24}, "end_point": {"row": 67, "column": 27}}, {"id": 176, "type": "bitfield_clause", "text": ":size_t Size>\n static", "parent": 169, "children": [177], "start_point": {"row": 67, "column": 28}, "end_point": {"row": 68, "column": 8}}, {"id": 177, "type": "binary_expression", "text": "size_t Size>\n static", "parent": 176, "children": [178, 179, 181], "start_point": {"row": 67, "column": 29}, "end_point": {"row": 68, "column": 8}}, {"id": 178, "type": "identifier", "text": "size_t", "parent": 177, "children": [], "start_point": {"row": 67, "column": 29}, "end_point": {"row": 67, "column": 35}}, {"id": 179, "type": "ERROR", "text": "Size", "parent": 177, "children": [180], "start_point": {"row": 67, "column": 36}, "end_point": {"row": 67, "column": 40}}, {"id": 180, "type": "identifier", "text": "Size", "parent": 179, "children": [], "start_point": {"row": 67, "column": 36}, "end_point": {"row": 67, "column": 40}}, {"id": 181, "type": ">", "text": ">", "parent": 177, "children": [], "start_point": {"row": 67, "column": 40}, "end_point": {"row": 67, "column": 41}}, {"id": 182, "type": "field_declaration", "text": "constexpr std::uint64_t Compute(const T (&buffer)[Size],\n std::uint64_t k0, std::uint64_t k1) {\n return Compute(BlockReader<T>(buffer), k0, k1);", "parent": 166, "children": [183, 185, 187, 188, 209, 219, 220], "start_point": {"row": 68, "column": 9}, "end_point": {"row": 70, "column": 51}}, {"id": 183, "type": "type_qualifier", "text": "constexpr", "parent": 182, "children": [184], "start_point": {"row": 68, "column": 9}, "end_point": {"row": 68, "column": 18}}, {"id": 184, "type": "constexpr", "text": "constexpr", "parent": 183, "children": [], "start_point": {"row": 68, "column": 9}, "end_point": {"row": 68, "column": 18}}, {"id": 185, "type": "ERROR", "text": "std::", "parent": 182, "children": [186], "start_point": {"row": 68, "column": 19}, "end_point": {"row": 68, "column": 24}}, {"id": 186, "type": "type_identifier", "text": "std", "parent": 185, "children": [], "start_point": {"row": 68, "column": 19}, "end_point": {"row": 68, "column": 22}}, {"id": 187, "type": "primitive_type", "text": "uint64_t", "parent": 182, "children": [], "start_point": {"row": 68, "column": 24}, "end_point": {"row": 68, "column": 32}}, {"id": 188, "type": "ERROR", "text": "Compute(const T (&buffer)[Size],\n std::uint64_t k0, std::uint64_t k1) {\n return", "parent": 182, "children": [189], "start_point": {"row": 68, "column": 33}, "end_point": {"row": 70, "column": 10}}, {"id": 189, "type": "function_declarator", "text": "Compute(const T (&buffer)[Size],\n std::uint64_t k0, std::uint64_t k1)", "parent": 188, "children": [190, 191], "start_point": {"row": 68, "column": 33}, "end_point": {"row": 69, "column": 76}}, {"id": 190, "type": "field_identifier", "text": "Compute", "parent": 189, "children": [], "start_point": {"row": 68, "column": 33}, "end_point": {"row": 68, "column": 40}}, {"id": 191, "type": "parameter_list", "text": "(const T (&buffer)[Size],\n std::uint64_t k0, std::uint64_t k1)", "parent": 189, "children": [192, 199, 201, 204, 206], "start_point": {"row": 68, "column": 40}, "end_point": {"row": 69, "column": 76}}, {"id": 192, "type": "parameter_declaration", "text": "const T (&buffer)[Size]", "parent": 191, "children": [193, 197], "start_point": {"row": 68, "column": 41}, "end_point": {"row": 68, "column": 64}}, {"id": 193, "type": "macro_type_specifier", "text": "T (&buffer)", "parent": 192, "children": [194, 195], "start_point": {"row": 68, "column": 47}, "end_point": {"row": 68, "column": 58}}, {"id": 194, "type": "identifier", "text": "T", "parent": 193, "children": [], "start_point": {"row": 68, "column": 47}, "end_point": {"row": 68, "column": 48}}, {"id": 195, "type": "type_descriptor", "text": "buffer", "parent": 193, "children": [196], "start_point": {"row": 68, "column": 51}, "end_point": {"row": 68, "column": 57}}, {"id": 196, "type": "type_identifier", "text": "buffer", "parent": 195, "children": [], "start_point": {"row": 68, "column": 51}, "end_point": {"row": 68, "column": 57}}, {"id": 197, "type": "abstract_array_declarator", "text": "[Size]", "parent": 192, "children": [198], "start_point": {"row": 68, "column": 58}, "end_point": {"row": 68, "column": 64}}, {"id": 198, "type": "identifier", "text": "Size", "parent": 197, "children": [], "start_point": {"row": 68, "column": 59}, "end_point": {"row": 68, "column": 63}}, {"id": 199, "type": "ERROR", "text": "std::", "parent": 191, "children": [200], "start_point": {"row": 69, "column": 41}, "end_point": {"row": 69, "column": 46}}, {"id": 200, "type": "type_identifier", "text": "std", "parent": 199, "children": [], "start_point": {"row": 69, "column": 41}, "end_point": {"row": 69, "column": 44}}, {"id": 201, "type": "parameter_declaration", "text": "uint64_t k0", "parent": 191, "children": [202, 203], "start_point": {"row": 69, "column": 46}, "end_point": {"row": 69, "column": 57}}, {"id": 202, "type": "primitive_type", "text": "uint64_t", "parent": 201, "children": [], "start_point": {"row": 69, "column": 46}, "end_point": {"row": 69, "column": 54}}, {"id": 203, "type": "identifier", "text": "k0", "parent": 201, "children": [], "start_point": {"row": 69, "column": 55}, "end_point": {"row": 69, "column": 57}}, {"id": 204, "type": "ERROR", "text": "std::", "parent": 191, "children": [205], "start_point": {"row": 69, "column": 59}, "end_point": {"row": 69, "column": 64}}, {"id": 205, "type": "type_identifier", "text": "std", "parent": 204, "children": [], "start_point": {"row": 69, "column": 59}, "end_point": {"row": 69, "column": 62}}, {"id": 206, "type": "parameter_declaration", "text": "uint64_t k1", "parent": 191, "children": [207, 208], "start_point": {"row": 69, "column": 64}, "end_point": {"row": 69, "column": 75}}, {"id": 207, "type": "primitive_type", "text": "uint64_t", "parent": 206, "children": [], "start_point": {"row": 69, "column": 64}, "end_point": {"row": 69, "column": 72}}, {"id": 208, "type": "identifier", "text": "k1", "parent": 206, "children": [], "start_point": {"row": 69, "column": 73}, "end_point": {"row": 69, "column": 75}}, {"id": 209, "type": "function_declarator", "text": "Compute(BlockReader<T>(buffer)", "parent": 182, "children": [210, 211], "start_point": {"row": 70, "column": 11}, "end_point": {"row": 70, "column": 41}}, {"id": 210, "type": "field_identifier", "text": "Compute", "parent": 209, "children": [], "start_point": {"row": 70, "column": 11}, "end_point": {"row": 70, "column": 18}}, {"id": 211, "type": "parameter_list", "text": "(BlockReader<T>(buffer)", "parent": 209, "children": [212], "start_point": {"row": 70, "column": 18}, "end_point": {"row": 70, "column": 41}}, {"id": 212, "type": "parameter_declaration", "text": "BlockReader<T>(buffer", "parent": 211, "children": [213, 214, 218], "start_point": {"row": 70, "column": 19}, "end_point": {"row": 70, "column": 40}}, {"id": 213, "type": "type_identifier", "text": "BlockReader", "parent": 212, "children": [], "start_point": {"row": 70, "column": 19}, "end_point": {"row": 70, "column": 30}}, {"id": 214, "type": "ERROR", "text": "<T>(", "parent": 212, "children": [215, 216, 217], "start_point": {"row": 70, "column": 30}, "end_point": {"row": 70, "column": 34}}, {"id": 215, "type": "<", "text": "<", "parent": 214, "children": [], "start_point": {"row": 70, "column": 30}, "end_point": {"row": 70, "column": 31}}, {"id": 216, "type": "identifier", "text": "T", "parent": 214, "children": [], "start_point": {"row": 70, "column": 31}, "end_point": {"row": 70, "column": 32}}, {"id": 217, "type": ">", "text": ">", "parent": 214, "children": [], "start_point": {"row": 70, "column": 32}, "end_point": {"row": 70, "column": 33}}, {"id": 218, "type": "identifier", "text": "buffer", "parent": 212, "children": [], "start_point": {"row": 70, "column": 34}, "end_point": {"row": 70, "column": 40}}, {"id": 219, "type": "field_identifier", "text": "k0", "parent": 182, "children": [], "start_point": {"row": 70, "column": 43}, "end_point": {"row": 70, "column": 45}}, {"id": 220, "type": "field_identifier", "text": "k1", "parent": 182, "children": [], "start_point": {"row": 70, "column": 47}, "end_point": {"row": 70, "column": 49}}, {"id": 221, "type": "ERROR", "text": "template <typename", "parent": 165, "children": [222, 223, 224], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 20}}, {"id": 222, "type": "identifier", "text": "template", "parent": 221, "children": [], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 10}}, {"id": 223, "type": "<", "text": "<", "parent": 221, "children": [], "start_point": {"row": 73, "column": 11}, "end_point": {"row": 73, "column": 12}}, {"id": 224, "type": "identifier", "text": "typename", "parent": 221, "children": [], "start_point": {"row": 73, "column": 12}, "end_point": {"row": 73, "column": 20}}, {"id": 225, "type": "identifier", "text": "BufferType", "parent": 165, "children": [], "start_point": {"row": 73, "column": 21}, "end_point": {"row": 73, "column": 31}}, {"id": 226, "type": ">", "text": ">", "parent": 165, "children": [], "start_point": {"row": 73, "column": 31}, "end_point": {"row": 73, "column": 32}}, {"id": 227, "type": "type_qualifier", "text": "constexpr", "parent": 165, "children": [228], "start_point": {"row": 74, "column": 9}, "end_point": {"row": 74, "column": 18}}, {"id": 228, "type": "constexpr", "text": "constexpr", "parent": 227, "children": [], "start_point": {"row": 74, "column": 9}, "end_point": {"row": 74, "column": 18}}, {"id": 229, "type": "ERROR", "text": "std::", "parent": 165, "children": [230], "start_point": {"row": 74, "column": 19}, "end_point": {"row": 74, "column": 24}}, {"id": 230, "type": "type_identifier", "text": "std", "parent": 229, "children": [], "start_point": {"row": 74, "column": 19}, "end_point": {"row": 74, "column": 22}}, {"id": 231, "type": "primitive_type", "text": "uint64_t", "parent": 165, "children": [], "start_point": {"row": 74, "column": 24}, "end_point": {"row": 74, "column": 32}}, {"id": 232, "type": "function_declarator", "text": "Compute(const BufferType buffer,\n std::uint64_t k0, std::uint64_t k1)", "parent": 165, "children": [233, 234], "start_point": {"row": 74, "column": 33}, "end_point": {"row": 75, "column": 76}}, {"id": 233, "type": "identifier", "text": "Compute", "parent": 232, "children": [], "start_point": {"row": 74, "column": 33}, "end_point": {"row": 74, "column": 40}}, {"id": 234, "type": "parameter_list", "text": "(const BufferType buffer,\n std::uint64_t k0, std::uint64_t k1)", "parent": 232, "children": [235, 238, 240, 243, 245], "start_point": {"row": 74, "column": 40}, "end_point": {"row": 75, "column": 76}}, {"id": 235, "type": "parameter_declaration", "text": "const BufferType buffer", "parent": 234, "children": [236, 237], "start_point": {"row": 74, "column": 41}, "end_point": {"row": 74, "column": 64}}, {"id": 236, "type": "type_identifier", "text": "BufferType", "parent": 235, "children": [], "start_point": {"row": 74, "column": 47}, "end_point": {"row": 74, "column": 57}}, {"id": 237, "type": "identifier", "text": "buffer", "parent": 235, "children": [], "start_point": {"row": 74, "column": 58}, "end_point": {"row": 74, "column": 64}}, {"id": 238, "type": "ERROR", "text": "std::", "parent": 234, "children": [239], "start_point": {"row": 75, "column": 41}, "end_point": {"row": 75, "column": 46}}, {"id": 239, "type": "type_identifier", "text": "std", "parent": 238, "children": [], "start_point": {"row": 75, "column": 41}, "end_point": {"row": 75, "column": 44}}, {"id": 240, "type": "parameter_declaration", "text": "uint64_t k0", "parent": 234, "children": [241, 242], "start_point": {"row": 75, "column": 46}, "end_point": {"row": 75, "column": 57}}, {"id": 241, "type": "primitive_type", "text": "uint64_t", "parent": 240, "children": [], "start_point": {"row": 75, "column": 46}, "end_point": {"row": 75, "column": 54}}, {"id": 242, "type": "identifier", "text": "k0", "parent": 240, "children": [], "start_point": {"row": 75, "column": 55}, "end_point": {"row": 75, "column": 57}}, {"id": 243, "type": "ERROR", "text": "std::", "parent": 234, "children": [244], "start_point": {"row": 75, "column": 59}, "end_point": {"row": 75, "column": 64}}, {"id": 244, "type": "type_identifier", "text": "std", "parent": 243, "children": [], "start_point": {"row": 75, "column": 59}, "end_point": {"row": 75, "column": 62}}, {"id": 245, "type": "parameter_declaration", "text": "uint64_t k1", "parent": 234, "children": [246, 247], "start_point": {"row": 75, "column": 64}, "end_point": {"row": 75, "column": 75}}, {"id": 246, "type": "primitive_type", "text": "uint64_t", "parent": 245, "children": [], "start_point": {"row": 75, "column": 64}, "end_point": {"row": 75, "column": 72}}, {"id": 247, "type": "identifier", "text": "k1", "parent": 245, "children": [], "start_point": {"row": 75, "column": 73}, "end_point": {"row": 75, "column": 75}}, {"id": 248, "type": "declaration", "text": "const std::size_t kBlockSize = sizeof(std::uint64_t);", "parent": 107, "children": [249, 251, 252], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 57}}, {"id": 249, "type": "ERROR", "text": "std::", "parent": 248, "children": [250], "start_point": {"row": 76, "column": 10}, "end_point": {"row": 76, "column": 15}}, {"id": 250, "type": "type_identifier", "text": "std", "parent": 249, "children": [], "start_point": {"row": 76, "column": 10}, "end_point": {"row": 76, "column": 13}}, {"id": 251, "type": "primitive_type", "text": "size_t", "parent": 248, "children": [], "start_point": {"row": 76, "column": 15}, "end_point": {"row": 76, "column": 21}}, {"id": 252, "type": "init_declarator", "text": "kBlockSize = sizeof(std::uint64_t)", "parent": 248, "children": [253, 254, 255], "start_point": {"row": 76, "column": 22}, "end_point": {"row": 76, "column": 56}}, {"id": 253, "type": "identifier", "text": "kBlockSize", "parent": 252, "children": [], "start_point": {"row": 76, "column": 22}, "end_point": {"row": 76, "column": 32}}, {"id": 254, "type": "=", "text": "=", "parent": 252, "children": [], "start_point": {"row": 76, "column": 33}, "end_point": {"row": 76, "column": 34}}, {"id": 255, "type": "sizeof_expression", "text": "sizeof(std::uint64_t)", "parent": 252, "children": [256, 258], "start_point": {"row": 76, "column": 35}, "end_point": {"row": 76, "column": 56}}, {"id": 256, "type": "ERROR", "text": "std::", "parent": 255, "children": [257], "start_point": {"row": 76, "column": 42}, "end_point": {"row": 76, "column": 47}}, {"id": 257, "type": "identifier", "text": "std", "parent": 256, "children": [], "start_point": {"row": 76, "column": 42}, "end_point": {"row": 76, "column": 45}}, {"id": 258, "type": "type_descriptor", "text": "uint64_t", "parent": 255, "children": [259], "start_point": {"row": 76, "column": 47}, "end_point": {"row": 76, "column": 55}}, {"id": 259, "type": "primitive_type", "text": "uint64_t", "parent": 258, "children": [], "start_point": {"row": 76, "column": 47}, "end_point": {"row": 76, "column": 55}}, {"id": 260, "type": "declaration", "text": "const std::size_t kLength = buffer.size();", "parent": 107, "children": [261, 263, 264], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 46}}, {"id": 261, "type": "ERROR", "text": "std::", "parent": 260, "children": [262], "start_point": {"row": 77, "column": 10}, "end_point": {"row": 77, "column": 15}}, {"id": 262, "type": "type_identifier", "text": "std", "parent": 261, "children": [], "start_point": {"row": 77, "column": 10}, "end_point": {"row": 77, "column": 13}}, {"id": 263, "type": "primitive_type", "text": "size_t", "parent": 260, "children": [], "start_point": {"row": 77, "column": 15}, "end_point": {"row": 77, "column": 21}}, {"id": 264, "type": "init_declarator", "text": "kLength = buffer.size()", "parent": 260, "children": [265, 266, 267], "start_point": {"row": 77, "column": 22}, "end_point": {"row": 77, "column": 45}}, {"id": 265, "type": "identifier", "text": "kLength", "parent": 264, "children": [], "start_point": {"row": 77, "column": 22}, "end_point": {"row": 77, "column": 29}}, {"id": 266, "type": "=", "text": "=", "parent": 264, "children": [], "start_point": {"row": 77, "column": 30}, "end_point": {"row": 77, "column": 31}}, {"id": 267, "type": "call_expression", "text": "buffer.size()", "parent": 264, "children": [268, 271], "start_point": {"row": 77, "column": 32}, "end_point": {"row": 77, "column": 45}}, {"id": 268, "type": "field_expression", "text": "buffer.size", "parent": 267, "children": [269, 270], "start_point": {"row": 77, "column": 32}, "end_point": {"row": 77, "column": 43}}, {"id": 269, "type": "identifier", "text": "buffer", "parent": 268, "children": [], "start_point": {"row": 77, "column": 32}, "end_point": {"row": 77, "column": 38}}, {"id": 270, "type": "field_identifier", "text": "size", "parent": 268, "children": [], "start_point": {"row": 77, "column": 39}, "end_point": {"row": 77, "column": 43}}, {"id": 271, "type": "argument_list", "text": "()", "parent": 267, "children": [], "start_point": {"row": 77, "column": 43}, "end_point": {"row": 77, "column": 45}}, {"id": 272, "type": "declaration", "text": "const std::size_t kLeftOver = kLength % kBlockSize;", "parent": 107, "children": [273, 275, 276], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 55}}, {"id": 273, "type": "ERROR", "text": "std::", "parent": 272, "children": [274], "start_point": {"row": 78, "column": 10}, "end_point": {"row": 78, "column": 15}}, {"id": 274, "type": "type_identifier", "text": "std", "parent": 273, "children": [], "start_point": {"row": 78, "column": 10}, "end_point": {"row": 78, "column": 13}}, {"id": 275, "type": "primitive_type", "text": "size_t", "parent": 272, "children": [], "start_point": {"row": 78, "column": 15}, "end_point": {"row": 78, "column": 21}}, {"id": 276, "type": "init_declarator", "text": "kLeftOver = kLength % kBlockSize", "parent": 272, "children": [277, 278, 279], "start_point": {"row": 78, "column": 22}, "end_point": {"row": 78, "column": 54}}, {"id": 277, "type": "identifier", "text": "kLeftOver", "parent": 276, "children": [], "start_point": {"row": 78, "column": 22}, "end_point": {"row": 78, "column": 31}}, {"id": 278, "type": "=", "text": "=", "parent": 276, "children": [], "start_point": {"row": 78, "column": 32}, "end_point": {"row": 78, "column": 33}}, {"id": 279, "type": "binary_expression", "text": "kLength % kBlockSize", "parent": 276, "children": [280, 281, 282], "start_point": {"row": 78, "column": 34}, "end_point": {"row": 78, "column": 54}}, {"id": 280, "type": "identifier", "text": "kLength", "parent": 279, "children": [], "start_point": {"row": 78, "column": 34}, "end_point": {"row": 78, "column": 41}}, {"id": 281, "type": "%", "text": "%", "parent": 279, "children": [], "start_point": {"row": 78, "column": 42}, "end_point": {"row": 78, "column": 43}}, {"id": 282, "type": "identifier", "text": "kBlockSize", "parent": 279, "children": [], "start_point": {"row": 78, "column": 44}, "end_point": {"row": 78, "column": 54}}, {"id": 283, "type": "declaration", "text": "const std::size_t kEndOffset = kLength - kLeftOver;", "parent": 107, "children": [284, 286, 287], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 55}}, {"id": 284, "type": "ERROR", "text": "std::", "parent": 283, "children": [285], "start_point": {"row": 79, "column": 10}, "end_point": {"row": 79, "column": 15}}, {"id": 285, "type": "type_identifier", "text": "std", "parent": 284, "children": [], "start_point": {"row": 79, "column": 10}, "end_point": {"row": 79, "column": 13}}, {"id": 286, "type": "primitive_type", "text": "size_t", "parent": 283, "children": [], "start_point": {"row": 79, "column": 15}, "end_point": {"row": 79, "column": 21}}, {"id": 287, "type": "init_declarator", "text": "kEndOffset = kLength - kLeftOver", "parent": 283, "children": [288, 289, 290], "start_point": {"row": 79, "column": 22}, "end_point": {"row": 79, "column": 54}}, {"id": 288, "type": "identifier", "text": "kEndOffset", "parent": 287, "children": [], "start_point": {"row": 79, "column": 22}, "end_point": {"row": 79, "column": 32}}, {"id": 289, "type": "=", "text": "=", "parent": 287, "children": [], "start_point": {"row": 79, "column": 33}, "end_point": {"row": 79, "column": 34}}, {"id": 290, "type": "binary_expression", "text": "kLength - kLeftOver", "parent": 287, "children": [291, 292, 293], "start_point": {"row": 79, "column": 35}, "end_point": {"row": 79, "column": 54}}, {"id": 291, "type": "identifier", "text": "kLength", "parent": 290, "children": [], "start_point": {"row": 79, "column": 35}, "end_point": {"row": 79, "column": 42}}, {"id": 292, "type": "-", "text": "-", "parent": 290, "children": [], "start_point": {"row": 79, "column": 43}, "end_point": {"row": 79, "column": 44}}, {"id": 293, "type": "identifier", "text": "kLeftOver", "parent": 290, "children": [], "start_point": {"row": 79, "column": 45}, "end_point": {"row": 79, "column": 54}}, {"id": 294, "type": "labeled_statement", "text": "std::uint64_t v[4] = {0x736f6d6570736575ULL, 0x646f72616e646f6dULL,\n 0x6c7967656e657261ULL, 0x7465646279746573ULL};", "parent": 107, "children": [295, 296], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 82, "column": 72}}, {"id": 295, "type": "statement_identifier", "text": "std", "parent": 294, "children": [], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 7}}, {"id": 296, "type": "declaration", "text": "uint64_t v[4] = {0x736f6d6570736575ULL, 0x646f72616e646f6dULL,\n 0x6c7967656e657261ULL, 0x7465646279746573ULL};", "parent": 294, "children": [297, 298], "start_point": {"row": 81, "column": 9}, "end_point": {"row": 82, "column": 72}}, {"id": 297, "type": "primitive_type", "text": "uint64_t", "parent": 296, "children": [], "start_point": {"row": 81, "column": 9}, "end_point": {"row": 81, "column": 17}}, {"id": 298, "type": "init_declarator", "text": "v[4] = {0x736f6d6570736575ULL, 0x646f72616e646f6dULL,\n 0x6c7967656e657261ULL, 0x7465646279746573ULL}", "parent": 296, "children": [299, 302, 303], "start_point": {"row": 81, "column": 18}, "end_point": {"row": 82, "column": 71}}, {"id": 299, "type": "array_declarator", "text": "v[4]", "parent": 298, "children": [300, 301], "start_point": {"row": 81, "column": 18}, "end_point": {"row": 81, "column": 22}}, {"id": 300, "type": "identifier", "text": "v", "parent": 299, "children": [], "start_point": {"row": 81, "column": 18}, "end_point": {"row": 81, "column": 19}}, {"id": 301, "type": "number_literal", "text": "4", "parent": 299, "children": [], "start_point": {"row": 81, "column": 20}, "end_point": {"row": 81, "column": 21}}, {"id": 302, "type": "=", "text": "=", "parent": 298, "children": [], "start_point": {"row": 81, "column": 23}, "end_point": {"row": 81, "column": 24}}, {"id": 303, "type": "initializer_list", "text": "{0x736f6d6570736575ULL, 0x646f72616e646f6dULL,\n 0x6c7967656e657261ULL, 0x7465646279746573ULL}", "parent": 298, "children": [304, 305, 306, 307], "start_point": {"row": 81, "column": 25}, "end_point": {"row": 82, "column": 71}}, {"id": 304, "type": "number_literal", "text": "0x736f6d6570736575ULL", "parent": 303, "children": [], "start_point": {"row": 81, "column": 26}, "end_point": {"row": 81, "column": 47}}, {"id": 305, "type": "number_literal", "text": "0x646f72616e646f6dULL", "parent": 303, "children": [], "start_point": {"row": 81, "column": 49}, "end_point": {"row": 81, "column": 70}}, {"id": 306, "type": "number_literal", "text": "0x6c7967656e657261ULL", "parent": 303, "children": [], "start_point": {"row": 82, "column": 26}, "end_point": {"row": 82, "column": 47}}, {"id": 307, "type": "number_literal", "text": "0x7465646279746573ULL", "parent": 303, "children": [], "start_point": {"row": 82, "column": 49}, "end_point": {"row": 82, "column": 70}}, {"id": 308, "type": "binary_expression", "text": "std::uint64_t b = static_cast<std::uint64_t>(kLength) << 56", "parent": 107, "children": [309, 310, 320, 321], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 63}}, {"id": 309, "type": "identifier", "text": "std", "parent": 308, "children": [], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 7}}, {"id": 310, "type": "ERROR", "text": "::uint64_t b = static_cast<std::uint64_t", "parent": 308, "children": [311, 312, 319], "start_point": {"row": 84, "column": 7}, "end_point": {"row": 84, "column": 47}}, {"id": 311, "type": "primitive_type", "text": "uint64_t", "parent": 310, "children": [], "start_point": {"row": 84, "column": 9}, "end_point": {"row": 84, "column": 17}}, {"id": 312, "type": "init_declarator", "text": "b = static_cast<std", "parent": 310, "children": [313, 314, 315], "start_point": {"row": 84, "column": 18}, "end_point": {"row": 84, "column": 37}}, {"id": 313, "type": "identifier", "text": "b", "parent": 312, "children": [], "start_point": {"row": 84, "column": 18}, "end_point": {"row": 84, "column": 19}}, {"id": 314, "type": "=", "text": "=", "parent": 312, "children": [], "start_point": {"row": 84, "column": 20}, "end_point": {"row": 84, "column": 21}}, {"id": 315, "type": "binary_expression", "text": "static_cast<std", "parent": 312, "children": [316, 317, 318], "start_point": {"row": 84, "column": 22}, "end_point": {"row": 84, "column": 37}}, {"id": 316, "type": "identifier", "text": "static_cast", "parent": 315, "children": [], "start_point": {"row": 84, "column": 22}, "end_point": {"row": 84, "column": 33}}, {"id": 317, "type": "<", "text": "<", "parent": 315, "children": [], "start_point": {"row": 84, "column": 33}, "end_point": {"row": 84, "column": 34}}, {"id": 318, "type": "identifier", "text": "std", "parent": 315, "children": [], "start_point": {"row": 84, "column": 34}, "end_point": {"row": 84, "column": 37}}, {"id": 319, "type": "primitive_type", "text": "uint64_t", "parent": 310, "children": [], "start_point": {"row": 84, "column": 39}, "end_point": {"row": 84, "column": 47}}, {"id": 320, "type": ">", "text": ">", "parent": 308, "children": [], "start_point": {"row": 84, "column": 47}, "end_point": {"row": 84, "column": 48}}, {"id": 321, "type": "binary_expression", "text": "(kLength) << 56", "parent": 308, "children": [322, 324, 325], "start_point": {"row": 84, "column": 48}, "end_point": {"row": 84, "column": 63}}, {"id": 322, "type": "parenthesized_expression", "text": "(kLength)", "parent": 321, "children": [323], "start_point": {"row": 84, "column": 48}, "end_point": {"row": 84, "column": 57}}, {"id": 323, "type": "identifier", "text": "kLength", "parent": 322, "children": [], "start_point": {"row": 84, "column": 49}, "end_point": {"row": 84, "column": 56}}, {"id": 324, "type": "<<", "text": "<<", "parent": 321, "children": [], "start_point": {"row": 84, "column": 58}, "end_point": {"row": 84, "column": 60}}, {"id": 325, "type": "number_literal", "text": "56", "parent": 321, "children": [], "start_point": {"row": 84, "column": 61}, "end_point": {"row": 84, "column": 63}}, {"id": 326, "type": "assignment_expression", "text": "v[3] ^= k1", "parent": 107, "children": [327, 330, 331], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 14}}, {"id": 327, "type": "subscript_expression", "text": "v[3]", "parent": 326, "children": [328, 329], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 8}}, {"id": 328, "type": "identifier", "text": "v", "parent": 327, "children": [], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 5}}, {"id": 329, "type": "number_literal", "text": "3", "parent": 327, "children": [], "start_point": {"row": 86, "column": 6}, "end_point": {"row": 86, "column": 7}}, {"id": 330, "type": "^=", "text": "^=", "parent": 326, "children": [], "start_point": {"row": 86, "column": 9}, "end_point": {"row": 86, "column": 11}}, {"id": 331, "type": "identifier", "text": "k1", "parent": 326, "children": [], "start_point": {"row": 86, "column": 12}, "end_point": {"row": 86, "column": 14}}, {"id": 332, "type": "assignment_expression", "text": "v[2] ^= k0", "parent": 107, "children": [333, 336, 337], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 14}}, {"id": 333, "type": "subscript_expression", "text": "v[2]", "parent": 332, "children": [334, 335], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 8}}, {"id": 334, "type": "identifier", "text": "v", "parent": 333, "children": [], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 5}}, {"id": 335, "type": "number_literal", "text": "2", "parent": 333, "children": [], "start_point": {"row": 87, "column": 6}, "end_point": {"row": 87, "column": 7}}, {"id": 336, "type": "^=", "text": "^=", "parent": 332, "children": [], "start_point": {"row": 87, "column": 9}, "end_point": {"row": 87, "column": 11}}, {"id": 337, "type": "identifier", "text": "k0", "parent": 332, "children": [], "start_point": {"row": 87, "column": 12}, "end_point": {"row": 87, "column": 14}}, {"id": 338, "type": "assignment_expression", "text": "v[1] ^= k1", "parent": 107, "children": [339, 342, 343], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 14}}, {"id": 339, "type": "subscript_expression", "text": "v[1]", "parent": 338, "children": [340, 341], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 8}}, {"id": 340, "type": "identifier", "text": "v", "parent": 339, "children": [], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 5}}, {"id": 341, "type": "number_literal", "text": "1", "parent": 339, "children": [], "start_point": {"row": 88, "column": 6}, "end_point": {"row": 88, "column": 7}}, {"id": 342, "type": "^=", "text": "^=", "parent": 338, "children": [], "start_point": {"row": 88, "column": 9}, "end_point": {"row": 88, "column": 11}}, {"id": 343, "type": "identifier", "text": "k1", "parent": 338, "children": [], "start_point": {"row": 88, "column": 12}, "end_point": {"row": 88, "column": 14}}, {"id": 344, "type": "assignment_expression", "text": "v[0] ^= k0", "parent": 107, "children": [345, 348, 349], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 14}}, {"id": 345, "type": "subscript_expression", "text": "v[0]", "parent": 344, "children": [346, 347], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 8}}, {"id": 346, "type": "identifier", "text": "v", "parent": 345, "children": [], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 5}}, {"id": 347, "type": "number_literal", "text": "0", "parent": 345, "children": [], "start_point": {"row": 89, "column": 6}, "end_point": {"row": 89, "column": 7}}, {"id": 348, "type": "^=", "text": "^=", "parent": 344, "children": [], "start_point": {"row": 89, "column": 9}, "end_point": {"row": 89, "column": 11}}, {"id": 349, "type": "identifier", "text": "k0", "parent": 344, "children": [], "start_point": {"row": 89, "column": 12}, "end_point": {"row": 89, "column": 14}}, {"id": 350, "type": "for_statement", "text": "for (std::size_t offset = 0; offset < kEndOffset; offset += kBlockSize) {\n std::uint64_t m = ReadBlock(buffer, offset);\n v[3] ^= m;\n Round(v);\n Round(v);\n v[0] ^= m;\n }", "parent": 107, "children": [351, 353, 359, 363], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 97, "column": 5}}, {"id": 351, "type": "ERROR", "text": "std::", "parent": 350, "children": [352], "start_point": {"row": 91, "column": 9}, "end_point": {"row": 91, "column": 14}}, {"id": 352, "type": "identifier", "text": "std", "parent": 351, "children": [], "start_point": {"row": 91, "column": 9}, "end_point": {"row": 91, "column": 12}}, {"id": 353, "type": "declaration", "text": "size_t offset = 0;", "parent": 350, "children": [354, 355], "start_point": {"row": 91, "column": 14}, "end_point": {"row": 91, "column": 32}}, {"id": 354, "type": "primitive_type", "text": "size_t", "parent": 353, "children": [], "start_point": {"row": 91, "column": 14}, "end_point": {"row": 91, "column": 20}}, {"id": 355, "type": "init_declarator", "text": "offset = 0", "parent": 353, "children": [356, 357, 358], "start_point": {"row": 91, "column": 21}, "end_point": {"row": 91, "column": 31}}, {"id": 356, "type": "identifier", "text": "offset", "parent": 355, "children": [], "start_point": {"row": 91, "column": 21}, "end_point": {"row": 91, "column": 27}}, {"id": 357, "type": "=", "text": "=", "parent": 355, "children": [], "start_point": {"row": 91, "column": 28}, "end_point": {"row": 91, "column": 29}}, {"id": 358, "type": "number_literal", "text": "0", "parent": 355, "children": [], "start_point": {"row": 91, "column": 30}, "end_point": {"row": 91, "column": 31}}, {"id": 359, "type": "binary_expression", "text": "offset < kEndOffset", "parent": 350, "children": [360, 361, 362], "start_point": {"row": 91, "column": 33}, "end_point": {"row": 91, "column": 52}}, {"id": 360, "type": "identifier", "text": "offset", "parent": 359, "children": [], "start_point": {"row": 91, "column": 33}, "end_point": {"row": 91, "column": 39}}, {"id": 361, "type": "<", "text": "<", "parent": 359, "children": [], "start_point": {"row": 91, "column": 40}, "end_point": {"row": 91, "column": 41}}, {"id": 362, "type": "identifier", "text": "kEndOffset", "parent": 359, "children": [], "start_point": {"row": 91, "column": 42}, "end_point": {"row": 91, "column": 52}}, {"id": 363, "type": "assignment_expression", "text": "offset += kBlockSize", "parent": 350, "children": [364, 365, 366], "start_point": {"row": 91, "column": 54}, "end_point": {"row": 91, "column": 74}}, {"id": 364, "type": "identifier", "text": "offset", "parent": 363, "children": [], "start_point": {"row": 91, "column": 54}, "end_point": {"row": 91, "column": 60}}, {"id": 365, "type": "+=", "text": "+=", "parent": 363, "children": [], "start_point": {"row": 91, "column": 61}, "end_point": {"row": 91, "column": 63}}, {"id": 366, "type": "identifier", "text": "kBlockSize", "parent": 363, "children": [], "start_point": {"row": 91, "column": 64}, "end_point": {"row": 91, "column": 74}}, {"id": 367, "type": "labeled_statement", "text": "std::uint64_t m = ReadBlock(buffer, offset);", "parent": 350, "children": [368, 369], "start_point": {"row": 92, "column": 6}, "end_point": {"row": 92, "column": 50}}, {"id": 368, "type": "statement_identifier", "text": "std", "parent": 367, "children": [], "start_point": {"row": 92, "column": 6}, "end_point": {"row": 92, "column": 9}}, {"id": 369, "type": "declaration", "text": "uint64_t m = ReadBlock(buffer, offset);", "parent": 367, "children": [370, 371], "start_point": {"row": 92, "column": 11}, "end_point": {"row": 92, "column": 50}}, {"id": 370, "type": "primitive_type", "text": "uint64_t", "parent": 369, "children": [], "start_point": {"row": 92, "column": 11}, "end_point": {"row": 92, "column": 19}}, {"id": 371, "type": "init_declarator", "text": "m = ReadBlock(buffer, offset)", "parent": 369, "children": [372, 373, 374], "start_point": {"row": 92, "column": 20}, "end_point": {"row": 92, "column": 49}}, {"id": 372, "type": "identifier", "text": "m", "parent": 371, "children": [], "start_point": {"row": 92, "column": 20}, "end_point": {"row": 92, "column": 21}}, {"id": 373, "type": "=", "text": "=", "parent": 371, "children": [], "start_point": {"row": 92, "column": 22}, "end_point": {"row": 92, "column": 23}}, {"id": 374, "type": "call_expression", "text": "ReadBlock(buffer, offset)", "parent": 371, "children": [375, 376], "start_point": {"row": 92, "column": 24}, "end_point": {"row": 92, "column": 49}}, {"id": 375, "type": "identifier", "text": "ReadBlock", "parent": 374, "children": [], "start_point": {"row": 92, "column": 24}, "end_point": {"row": 92, "column": 33}}, {"id": 376, "type": "argument_list", "text": "(buffer, offset)", "parent": 374, "children": [377, 378], "start_point": {"row": 92, "column": 33}, "end_point": {"row": 92, "column": 49}}, {"id": 377, "type": "identifier", "text": "buffer", "parent": 376, "children": [], "start_point": {"row": 92, "column": 34}, "end_point": {"row": 92, "column": 40}}, {"id": 378, "type": "identifier", "text": "offset", "parent": 376, "children": [], "start_point": {"row": 92, "column": 42}, "end_point": {"row": 92, "column": 48}}, {"id": 379, "type": "assignment_expression", "text": "v[3] ^= m", "parent": 350, "children": [380, 383, 384], "start_point": {"row": 93, "column": 6}, "end_point": {"row": 93, "column": 15}}, {"id": 380, "type": "subscript_expression", "text": "v[3]", "parent": 379, "children": [381, 382], "start_point": {"row": 93, "column": 6}, "end_point": {"row": 93, "column": 10}}, {"id": 381, "type": "identifier", "text": "v", "parent": 380, "children": [], "start_point": {"row": 93, "column": 6}, "end_point": {"row": 93, "column": 7}}, {"id": 382, "type": "number_literal", "text": "3", "parent": 380, "children": [], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 93, "column": 9}}, {"id": 383, "type": "^=", "text": "^=", "parent": 379, "children": [], "start_point": {"row": 93, "column": 11}, "end_point": {"row": 93, "column": 13}}, {"id": 384, "type": "identifier", "text": "m", "parent": 379, "children": [], "start_point": {"row": 93, "column": 14}, "end_point": {"row": 93, "column": 15}}, {"id": 385, "type": "call_expression", "text": "Round(v)", "parent": 350, "children": [386, 387], "start_point": {"row": 94, "column": 6}, "end_point": {"row": 94, "column": 14}}, {"id": 386, "type": "identifier", "text": "Round", "parent": 385, "children": [], "start_point": {"row": 94, "column": 6}, "end_point": {"row": 94, "column": 11}}, {"id": 387, "type": "argument_list", "text": "(v)", "parent": 385, "children": [388], "start_point": {"row": 94, "column": 11}, "end_point": {"row": 94, "column": 14}}, {"id": 388, "type": "identifier", "text": "v", "parent": 387, "children": [], "start_point": {"row": 94, "column": 12}, "end_point": {"row": 94, "column": 13}}, {"id": 389, "type": "call_expression", "text": "Round(v)", "parent": 350, "children": [390, 391], "start_point": {"row": 95, "column": 6}, "end_point": {"row": 95, "column": 14}}, {"id": 390, "type": "identifier", "text": "Round", "parent": 389, "children": [], "start_point": {"row": 95, "column": 6}, "end_point": {"row": 95, "column": 11}}, {"id": 391, "type": "argument_list", "text": "(v)", "parent": 389, "children": [392], "start_point": {"row": 95, "column": 11}, "end_point": {"row": 95, "column": 14}}, {"id": 392, "type": "identifier", "text": "v", "parent": 391, "children": [], "start_point": {"row": 95, "column": 12}, "end_point": {"row": 95, "column": 13}}, {"id": 393, "type": "assignment_expression", "text": "v[0] ^= m", "parent": 350, "children": [394, 397, 398], "start_point": {"row": 96, "column": 6}, "end_point": {"row": 96, "column": 15}}, {"id": 394, "type": "subscript_expression", "text": "v[0]", "parent": 393, "children": [395, 396], "start_point": {"row": 96, "column": 6}, "end_point": {"row": 96, "column": 10}}, {"id": 395, "type": "identifier", "text": "v", "parent": 394, "children": [], "start_point": {"row": 96, "column": 6}, "end_point": {"row": 96, "column": 7}}, {"id": 396, "type": "number_literal", "text": "0", "parent": 394, "children": [], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 9}}, {"id": 397, "type": "^=", "text": "^=", "parent": 393, "children": [], "start_point": {"row": 96, "column": 11}, "end_point": {"row": 96, "column": 13}}, {"id": 398, "type": "identifier", "text": "m", "parent": 393, "children": [], "start_point": {"row": 96, "column": 14}, "end_point": {"row": 96, "column": 15}}, {"id": 399, "type": "switch_statement", "text": "switch (kLeftOver) {\n case 7:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 6]) << 48;\n NOP_FALLTHROUGH;\n case 6:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 5]) << 40;\n NOP_FALLTHROUGH;\n case 5:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 4]) << 32;\n NOP_FALLTHROUGH;\n case 4:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 3]) << 24;\n NOP_FALLTHROUGH;\n case 3:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 2]) << 16;\n NOP_FALLTHROUGH;\n case 2:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 1]) << 8;\n NOP_FALLTHROUGH;\n case 1:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 0]) << 0;\n NOP_FALLTHROUGH;\n case 0:\n break;\n }", "parent": 107, "children": [400, 401], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 123, "column": 5}}, {"id": 400, "type": "switch", "text": "switch", "parent": 399, "children": [], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 10}}, {"id": 401, "type": "parenthesized_expression", "text": "(kLeftOver)", "parent": 399, "children": [402], "start_point": {"row": 99, "column": 11}, "end_point": {"row": 99, "column": 22}}, {"id": 402, "type": "identifier", "text": "kLeftOver", "parent": 401, "children": [], "start_point": {"row": 99, "column": 12}, "end_point": {"row": 99, "column": 21}}, {"id": 403, "type": "case_statement", "text": "case 7:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 6]) << 48;\n NOP_FALLTHROUGH;", "parent": 399, "children": [404, 405], "start_point": {"row": 100, "column": 6}, "end_point": {"row": 102, "column": 24}}, {"id": 404, "type": "case", "text": "case", "parent": 403, "children": [], "start_point": {"row": 100, "column": 6}, "end_point": {"row": 100, "column": 10}}, {"id": 405, "type": "number_literal", "text": "7", "parent": 403, "children": [], "start_point": {"row": 100, "column": 11}, "end_point": {"row": 100, "column": 12}}, {"id": 406, "type": "binary_expression", "text": "b |= static_cast<std::uint64_t>(buffer[kEndOffset + 6]) << 48", "parent": 403, "children": [407, 414, 416, 417], "start_point": {"row": 101, "column": 8}, "end_point": {"row": 101, "column": 69}}, {"id": 407, "type": "assignment_expression", "text": "b |= static_cast<std", "parent": 406, "children": [408, 409, 410], "start_point": {"row": 101, "column": 8}, "end_point": {"row": 101, "column": 28}}, {"id": 408, "type": "identifier", "text": "b", "parent": 407, "children": [], "start_point": {"row": 101, "column": 8}, "end_point": {"row": 101, "column": 9}}, {"id": 409, "type": "|=", "text": "|=", "parent": 407, "children": [], "start_point": {"row": 101, "column": 10}, "end_point": {"row": 101, "column": 12}}, {"id": 410, "type": "binary_expression", "text": "static_cast<std", "parent": 407, "children": [411, 412, 413], "start_point": {"row": 101, "column": 13}, "end_point": {"row": 101, "column": 28}}, {"id": 411, "type": "identifier", "text": "static_cast", "parent": 410, "children": [], "start_point": {"row": 101, "column": 13}, "end_point": {"row": 101, "column": 24}}, {"id": 412, "type": "<", "text": "<", "parent": 410, "children": [], "start_point": {"row": 101, "column": 24}, "end_point": {"row": 101, "column": 25}}, {"id": 413, "type": "identifier", "text": "std", "parent": 410, "children": [], "start_point": {"row": 101, "column": 25}, "end_point": {"row": 101, "column": 28}}, {"id": 414, "type": "ERROR", "text": "::uint64_t", "parent": 406, "children": [415], "start_point": {"row": 101, "column": 28}, "end_point": {"row": 101, "column": 38}}, {"id": 415, "type": "primitive_type", "text": "uint64_t", "parent": 414, "children": [], "start_point": {"row": 101, "column": 30}, "end_point": {"row": 101, "column": 38}}, {"id": 416, "type": ">", "text": ">", "parent": 406, "children": [], "start_point": {"row": 101, "column": 38}, "end_point": {"row": 101, "column": 39}}, {"id": 417, "type": "binary_expression", "text": "(buffer[kEndOffset + 6]) << 48", "parent": 406, "children": [418, 425, 426], "start_point": {"row": 101, "column": 39}, "end_point": {"row": 101, "column": 69}}, {"id": 418, "type": "parenthesized_expression", "text": "(buffer[kEndOffset + 6])", "parent": 417, "children": [419], "start_point": {"row": 101, "column": 39}, "end_point": {"row": 101, "column": 63}}, {"id": 419, "type": "subscript_expression", "text": "buffer[kEndOffset + 6]", "parent": 418, "children": [420, 421], "start_point": {"row": 101, "column": 40}, "end_point": {"row": 101, "column": 62}}, {"id": 420, "type": "identifier", "text": "buffer", "parent": 419, "children": [], "start_point": {"row": 101, "column": 40}, "end_point": {"row": 101, "column": 46}}, {"id": 421, "type": "binary_expression", "text": "kEndOffset + 6", "parent": 419, "children": [422, 423, 424], "start_point": {"row": 101, "column": 47}, "end_point": {"row": 101, "column": 61}}, {"id": 422, "type": "identifier", "text": "kEndOffset", "parent": 421, "children": [], "start_point": {"row": 101, "column": 47}, "end_point": {"row": 101, "column": 57}}, {"id": 423, "type": "+", "text": "+", "parent": 421, "children": [], "start_point": {"row": 101, "column": 58}, "end_point": {"row": 101, "column": 59}}, {"id": 424, "type": "number_literal", "text": "6", "parent": 421, "children": [], "start_point": {"row": 101, "column": 60}, "end_point": {"row": 101, "column": 61}}, {"id": 425, "type": "<<", "text": "<<", "parent": 417, "children": [], "start_point": {"row": 101, "column": 64}, "end_point": {"row": 101, "column": 66}}, {"id": 426, "type": "number_literal", "text": "48", "parent": 417, "children": [], "start_point": {"row": 101, "column": 67}, "end_point": {"row": 101, "column": 69}}, {"id": 427, "type": "identifier", "text": "NOP_FALLTHROUGH", "parent": 403, "children": [], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 23}}, {"id": 428, "type": "case_statement", "text": "case 6:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 5]) << 40;\n NOP_FALLTHROUGH;", "parent": 399, "children": [429, 430], "start_point": {"row": 103, "column": 6}, "end_point": {"row": 105, "column": 24}}, {"id": 429, "type": "case", "text": "case", "parent": 428, "children": [], "start_point": {"row": 103, "column": 6}, "end_point": {"row": 103, "column": 10}}, {"id": 430, "type": "number_literal", "text": "6", "parent": 428, "children": [], "start_point": {"row": 103, "column": 11}, "end_point": {"row": 103, "column": 12}}, {"id": 431, "type": "binary_expression", "text": "b |= static_cast<std::uint64_t>(buffer[kEndOffset + 5]) << 40", "parent": 428, "children": [432, 439, 441, 442], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 69}}, {"id": 432, "type": "assignment_expression", "text": "b |= static_cast<std", "parent": 431, "children": [433, 434, 435], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 28}}, {"id": 433, "type": "identifier", "text": "b", "parent": 432, "children": [], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 9}}, {"id": 434, "type": "|=", "text": "|=", "parent": 432, "children": [], "start_point": {"row": 104, "column": 10}, "end_point": {"row": 104, "column": 12}}, {"id": 435, "type": "binary_expression", "text": "static_cast<std", "parent": 432, "children": [436, 437, 438], "start_point": {"row": 104, "column": 13}, "end_point": {"row": 104, "column": 28}}, {"id": 436, "type": "identifier", "text": "static_cast", "parent": 435, "children": [], "start_point": {"row": 104, "column": 13}, "end_point": {"row": 104, "column": 24}}, {"id": 437, "type": "<", "text": "<", "parent": 435, "children": [], "start_point": {"row": 104, "column": 24}, "end_point": {"row": 104, "column": 25}}, {"id": 438, "type": "identifier", "text": "std", "parent": 435, "children": [], "start_point": {"row": 104, "column": 25}, "end_point": {"row": 104, "column": 28}}, {"id": 439, "type": "ERROR", "text": "::uint64_t", "parent": 431, "children": [440], "start_point": {"row": 104, "column": 28}, "end_point": {"row": 104, "column": 38}}, {"id": 440, "type": "primitive_type", "text": "uint64_t", "parent": 439, "children": [], "start_point": {"row": 104, "column": 30}, "end_point": {"row": 104, "column": 38}}, {"id": 441, "type": ">", "text": ">", "parent": 431, "children": [], "start_point": {"row": 104, "column": 38}, "end_point": {"row": 104, "column": 39}}, {"id": 442, "type": "binary_expression", "text": "(buffer[kEndOffset + 5]) << 40", "parent": 431, "children": [443, 450, 451], "start_point": {"row": 104, "column": 39}, "end_point": {"row": 104, "column": 69}}, {"id": 443, "type": "parenthesized_expression", "text": "(buffer[kEndOffset + 5])", "parent": 442, "children": [444], "start_point": {"row": 104, "column": 39}, "end_point": {"row": 104, "column": 63}}, {"id": 444, "type": "subscript_expression", "text": "buffer[kEndOffset + 5]", "parent": 443, "children": [445, 446], "start_point": {"row": 104, "column": 40}, "end_point": {"row": 104, "column": 62}}, {"id": 445, "type": "identifier", "text": "buffer", "parent": 444, "children": [], "start_point": {"row": 104, "column": 40}, "end_point": {"row": 104, "column": 46}}, {"id": 446, "type": "binary_expression", "text": "kEndOffset + 5", "parent": 444, "children": [447, 448, 449], "start_point": {"row": 104, "column": 47}, "end_point": {"row": 104, "column": 61}}, {"id": 447, "type": "identifier", "text": "kEndOffset", "parent": 446, "children": [], "start_point": {"row": 104, "column": 47}, "end_point": {"row": 104, "column": 57}}, {"id": 448, "type": "+", "text": "+", "parent": 446, "children": [], "start_point": {"row": 104, "column": 58}, "end_point": {"row": 104, "column": 59}}, {"id": 449, "type": "number_literal", "text": "5", "parent": 446, "children": [], "start_point": {"row": 104, "column": 60}, "end_point": {"row": 104, "column": 61}}, {"id": 450, "type": "<<", "text": "<<", "parent": 442, "children": [], "start_point": {"row": 104, "column": 64}, "end_point": {"row": 104, "column": 66}}, {"id": 451, "type": "number_literal", "text": "40", "parent": 442, "children": [], "start_point": {"row": 104, "column": 67}, "end_point": {"row": 104, "column": 69}}, {"id": 452, "type": "identifier", "text": "NOP_FALLTHROUGH", "parent": 428, "children": [], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 23}}, {"id": 453, "type": "case_statement", "text": "case 5:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 4]) << 32;\n NOP_FALLTHROUGH;", "parent": 399, "children": [454, 455], "start_point": {"row": 106, "column": 6}, "end_point": {"row": 108, "column": 24}}, {"id": 454, "type": "case", "text": "case", "parent": 453, "children": [], "start_point": {"row": 106, "column": 6}, "end_point": {"row": 106, "column": 10}}, {"id": 455, "type": "number_literal", "text": "5", "parent": 453, "children": [], "start_point": {"row": 106, "column": 11}, "end_point": {"row": 106, "column": 12}}, {"id": 456, "type": "binary_expression", "text": "b |= static_cast<std::uint64_t>(buffer[kEndOffset + 4]) << 32", "parent": 453, "children": [457, 464, 466, 467], "start_point": {"row": 107, "column": 8}, "end_point": {"row": 107, "column": 69}}, {"id": 457, "type": "assignment_expression", "text": "b |= static_cast<std", "parent": 456, "children": [458, 459, 460], "start_point": {"row": 107, "column": 8}, "end_point": {"row": 107, "column": 28}}, {"id": 458, "type": "identifier", "text": "b", "parent": 457, "children": [], "start_point": {"row": 107, "column": 8}, "end_point": {"row": 107, "column": 9}}, {"id": 459, "type": "|=", "text": "|=", "parent": 457, "children": [], "start_point": {"row": 107, "column": 10}, "end_point": {"row": 107, "column": 12}}, {"id": 460, "type": "binary_expression", "text": "static_cast<std", "parent": 457, "children": [461, 462, 463], "start_point": {"row": 107, "column": 13}, "end_point": {"row": 107, "column": 28}}, {"id": 461, "type": "identifier", "text": "static_cast", "parent": 460, "children": [], "start_point": {"row": 107, "column": 13}, "end_point": {"row": 107, "column": 24}}, {"id": 462, "type": "<", "text": "<", "parent": 460, "children": [], "start_point": {"row": 107, "column": 24}, "end_point": {"row": 107, "column": 25}}, {"id": 463, "type": "identifier", "text": "std", "parent": 460, "children": [], "start_point": {"row": 107, "column": 25}, "end_point": {"row": 107, "column": 28}}, {"id": 464, "type": "ERROR", "text": "::uint64_t", "parent": 456, "children": [465], "start_point": {"row": 107, "column": 28}, "end_point": {"row": 107, "column": 38}}, {"id": 465, "type": "primitive_type", "text": "uint64_t", "parent": 464, "children": [], "start_point": {"row": 107, "column": 30}, "end_point": {"row": 107, "column": 38}}, {"id": 466, "type": ">", "text": ">", "parent": 456, "children": [], "start_point": {"row": 107, "column": 38}, "end_point": {"row": 107, "column": 39}}, {"id": 467, "type": "binary_expression", "text": "(buffer[kEndOffset + 4]) << 32", "parent": 456, "children": [468, 475, 476], "start_point": {"row": 107, "column": 39}, "end_point": {"row": 107, "column": 69}}, {"id": 468, "type": "parenthesized_expression", "text": "(buffer[kEndOffset + 4])", "parent": 467, "children": [469], "start_point": {"row": 107, "column": 39}, "end_point": {"row": 107, "column": 63}}, {"id": 469, "type": "subscript_expression", "text": "buffer[kEndOffset + 4]", "parent": 468, "children": [470, 471], "start_point": {"row": 107, "column": 40}, "end_point": {"row": 107, "column": 62}}, {"id": 470, "type": "identifier", "text": "buffer", "parent": 469, "children": [], "start_point": {"row": 107, "column": 40}, "end_point": {"row": 107, "column": 46}}, {"id": 471, "type": "binary_expression", "text": "kEndOffset + 4", "parent": 469, "children": [472, 473, 474], "start_point": {"row": 107, "column": 47}, "end_point": {"row": 107, "column": 61}}, {"id": 472, "type": "identifier", "text": "kEndOffset", "parent": 471, "children": [], "start_point": {"row": 107, "column": 47}, "end_point": {"row": 107, "column": 57}}, {"id": 473, "type": "+", "text": "+", "parent": 471, "children": [], "start_point": {"row": 107, "column": 58}, "end_point": {"row": 107, "column": 59}}, {"id": 474, "type": "number_literal", "text": "4", "parent": 471, "children": [], "start_point": {"row": 107, "column": 60}, "end_point": {"row": 107, "column": 61}}, {"id": 475, "type": "<<", "text": "<<", "parent": 467, "children": [], "start_point": {"row": 107, "column": 64}, "end_point": {"row": 107, "column": 66}}, {"id": 476, "type": "number_literal", "text": "32", "parent": 467, "children": [], "start_point": {"row": 107, "column": 67}, "end_point": {"row": 107, "column": 69}}, {"id": 477, "type": "identifier", "text": "NOP_FALLTHROUGH", "parent": 453, "children": [], "start_point": {"row": 108, "column": 8}, "end_point": {"row": 108, "column": 23}}, {"id": 478, "type": "case_statement", "text": "case 4:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 3]) << 24;\n NOP_FALLTHROUGH;", "parent": 399, "children": [479, 480], "start_point": {"row": 109, "column": 6}, "end_point": {"row": 111, "column": 24}}, {"id": 479, "type": "case", "text": "case", "parent": 478, "children": [], "start_point": {"row": 109, "column": 6}, "end_point": {"row": 109, "column": 10}}, {"id": 480, "type": "number_literal", "text": "4", "parent": 478, "children": [], "start_point": {"row": 109, "column": 11}, "end_point": {"row": 109, "column": 12}}, {"id": 481, "type": "binary_expression", "text": "b |= static_cast<std::uint64_t>(buffer[kEndOffset + 3]) << 24", "parent": 478, "children": [482, 489, 491, 492], "start_point": {"row": 110, "column": 8}, "end_point": {"row": 110, "column": 69}}, {"id": 482, "type": "assignment_expression", "text": "b |= static_cast<std", "parent": 481, "children": [483, 484, 485], "start_point": {"row": 110, "column": 8}, "end_point": {"row": 110, "column": 28}}, {"id": 483, "type": "identifier", "text": "b", "parent": 482, "children": [], "start_point": {"row": 110, "column": 8}, "end_point": {"row": 110, "column": 9}}, {"id": 484, "type": "|=", "text": "|=", "parent": 482, "children": [], "start_point": {"row": 110, "column": 10}, "end_point": {"row": 110, "column": 12}}, {"id": 485, "type": "binary_expression", "text": "static_cast<std", "parent": 482, "children": [486, 487, 488], "start_point": {"row": 110, "column": 13}, "end_point": {"row": 110, "column": 28}}, {"id": 486, "type": "identifier", "text": "static_cast", "parent": 485, "children": [], "start_point": {"row": 110, "column": 13}, "end_point": {"row": 110, "column": 24}}, {"id": 487, "type": "<", "text": "<", "parent": 485, "children": [], "start_point": {"row": 110, "column": 24}, "end_point": {"row": 110, "column": 25}}, {"id": 488, "type": "identifier", "text": "std", "parent": 485, "children": [], "start_point": {"row": 110, "column": 25}, "end_point": {"row": 110, "column": 28}}, {"id": 489, "type": "ERROR", "text": "::uint64_t", "parent": 481, "children": [490], "start_point": {"row": 110, "column": 28}, "end_point": {"row": 110, "column": 38}}, {"id": 490, "type": "primitive_type", "text": "uint64_t", "parent": 489, "children": [], "start_point": {"row": 110, "column": 30}, "end_point": {"row": 110, "column": 38}}, {"id": 491, "type": ">", "text": ">", "parent": 481, "children": [], "start_point": {"row": 110, "column": 38}, "end_point": {"row": 110, "column": 39}}, {"id": 492, "type": "binary_expression", "text": "(buffer[kEndOffset + 3]) << 24", "parent": 481, "children": [493, 500, 501], "start_point": {"row": 110, "column": 39}, "end_point": {"row": 110, "column": 69}}, {"id": 493, "type": "parenthesized_expression", "text": "(buffer[kEndOffset + 3])", "parent": 492, "children": [494], "start_point": {"row": 110, "column": 39}, "end_point": {"row": 110, "column": 63}}, {"id": 494, "type": "subscript_expression", "text": "buffer[kEndOffset + 3]", "parent": 493, "children": [495, 496], "start_point": {"row": 110, "column": 40}, "end_point": {"row": 110, "column": 62}}, {"id": 495, "type": "identifier", "text": "buffer", "parent": 494, "children": [], "start_point": {"row": 110, "column": 40}, "end_point": {"row": 110, "column": 46}}, {"id": 496, "type": "binary_expression", "text": "kEndOffset + 3", "parent": 494, "children": [497, 498, 499], "start_point": {"row": 110, "column": 47}, "end_point": {"row": 110, "column": 61}}, {"id": 497, "type": "identifier", "text": "kEndOffset", "parent": 496, "children": [], "start_point": {"row": 110, "column": 47}, "end_point": {"row": 110, "column": 57}}, {"id": 498, "type": "+", "text": "+", "parent": 496, "children": [], "start_point": {"row": 110, "column": 58}, "end_point": {"row": 110, "column": 59}}, {"id": 499, "type": "number_literal", "text": "3", "parent": 496, "children": [], "start_point": {"row": 110, "column": 60}, "end_point": {"row": 110, "column": 61}}, {"id": 500, "type": "<<", "text": "<<", "parent": 492, "children": [], "start_point": {"row": 110, "column": 64}, "end_point": {"row": 110, "column": 66}}, {"id": 501, "type": "number_literal", "text": "24", "parent": 492, "children": [], "start_point": {"row": 110, "column": 67}, "end_point": {"row": 110, "column": 69}}, {"id": 502, "type": "identifier", "text": "NOP_FALLTHROUGH", "parent": 478, "children": [], "start_point": {"row": 111, "column": 8}, "end_point": {"row": 111, "column": 23}}, {"id": 503, "type": "case_statement", "text": "case 3:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 2]) << 16;\n NOP_FALLTHROUGH;", "parent": 399, "children": [504, 505], "start_point": {"row": 112, "column": 6}, "end_point": {"row": 114, "column": 24}}, {"id": 504, "type": "case", "text": "case", "parent": 503, "children": [], "start_point": {"row": 112, "column": 6}, "end_point": {"row": 112, "column": 10}}, {"id": 505, "type": "number_literal", "text": "3", "parent": 503, "children": [], "start_point": {"row": 112, "column": 11}, "end_point": {"row": 112, "column": 12}}, {"id": 506, "type": "binary_expression", "text": "b |= static_cast<std::uint64_t>(buffer[kEndOffset + 2]) << 16", "parent": 503, "children": [507, 514, 516, 517], "start_point": {"row": 113, "column": 8}, "end_point": {"row": 113, "column": 69}}, {"id": 507, "type": "assignment_expression", "text": "b |= static_cast<std", "parent": 506, "children": [508, 509, 510], "start_point": {"row": 113, "column": 8}, "end_point": {"row": 113, "column": 28}}, {"id": 508, "type": "identifier", "text": "b", "parent": 507, "children": [], "start_point": {"row": 113, "column": 8}, "end_point": {"row": 113, "column": 9}}, {"id": 509, "type": "|=", "text": "|=", "parent": 507, "children": [], "start_point": {"row": 113, "column": 10}, "end_point": {"row": 113, "column": 12}}, {"id": 510, "type": "binary_expression", "text": "static_cast<std", "parent": 507, "children": [511, 512, 513], "start_point": {"row": 113, "column": 13}, "end_point": {"row": 113, "column": 28}}, {"id": 511, "type": "identifier", "text": "static_cast", "parent": 510, "children": [], "start_point": {"row": 113, "column": 13}, "end_point": {"row": 113, "column": 24}}, {"id": 512, "type": "<", "text": "<", "parent": 510, "children": [], "start_point": {"row": 113, "column": 24}, "end_point": {"row": 113, "column": 25}}, {"id": 513, "type": "identifier", "text": "std", "parent": 510, "children": [], "start_point": {"row": 113, "column": 25}, "end_point": {"row": 113, "column": 28}}, {"id": 514, "type": "ERROR", "text": "::uint64_t", "parent": 506, "children": [515], "start_point": {"row": 113, "column": 28}, "end_point": {"row": 113, "column": 38}}, {"id": 515, "type": "primitive_type", "text": "uint64_t", "parent": 514, "children": [], "start_point": {"row": 113, "column": 30}, "end_point": {"row": 113, "column": 38}}, {"id": 516, "type": ">", "text": ">", "parent": 506, "children": [], "start_point": {"row": 113, "column": 38}, "end_point": {"row": 113, "column": 39}}, {"id": 517, "type": "binary_expression", "text": "(buffer[kEndOffset + 2]) << 16", "parent": 506, "children": [518, 525, 526], "start_point": {"row": 113, "column": 39}, "end_point": {"row": 113, "column": 69}}, {"id": 518, "type": "parenthesized_expression", "text": "(buffer[kEndOffset + 2])", "parent": 517, "children": [519], "start_point": {"row": 113, "column": 39}, "end_point": {"row": 113, "column": 63}}, {"id": 519, "type": "subscript_expression", "text": "buffer[kEndOffset + 2]", "parent": 518, "children": [520, 521], "start_point": {"row": 113, "column": 40}, "end_point": {"row": 113, "column": 62}}, {"id": 520, "type": "identifier", "text": "buffer", "parent": 519, "children": [], "start_point": {"row": 113, "column": 40}, "end_point": {"row": 113, "column": 46}}, {"id": 521, "type": "binary_expression", "text": "kEndOffset + 2", "parent": 519, "children": [522, 523, 524], "start_point": {"row": 113, "column": 47}, "end_point": {"row": 113, "column": 61}}, {"id": 522, "type": "identifier", "text": "kEndOffset", "parent": 521, "children": [], "start_point": {"row": 113, "column": 47}, "end_point": {"row": 113, "column": 57}}, {"id": 523, "type": "+", "text": "+", "parent": 521, "children": [], "start_point": {"row": 113, "column": 58}, "end_point": {"row": 113, "column": 59}}, {"id": 524, "type": "number_literal", "text": "2", "parent": 521, "children": [], "start_point": {"row": 113, "column": 60}, "end_point": {"row": 113, "column": 61}}, {"id": 525, "type": "<<", "text": "<<", "parent": 517, "children": [], "start_point": {"row": 113, "column": 64}, "end_point": {"row": 113, "column": 66}}, {"id": 526, "type": "number_literal", "text": "16", "parent": 517, "children": [], "start_point": {"row": 113, "column": 67}, "end_point": {"row": 113, "column": 69}}, {"id": 527, "type": "identifier", "text": "NOP_FALLTHROUGH", "parent": 503, "children": [], "start_point": {"row": 114, "column": 8}, "end_point": {"row": 114, "column": 23}}, {"id": 528, "type": "case_statement", "text": "case 2:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 1]) << 8;\n NOP_FALLTHROUGH;", "parent": 399, "children": [529, 530], "start_point": {"row": 115, "column": 6}, "end_point": {"row": 117, "column": 24}}, {"id": 529, "type": "case", "text": "case", "parent": 528, "children": [], "start_point": {"row": 115, "column": 6}, "end_point": {"row": 115, "column": 10}}, {"id": 530, "type": "number_literal", "text": "2", "parent": 528, "children": [], "start_point": {"row": 115, "column": 11}, "end_point": {"row": 115, "column": 12}}, {"id": 531, "type": "binary_expression", "text": "b |= static_cast<std::uint64_t>(buffer[kEndOffset + 1]) << 8", "parent": 528, "children": [532, 539, 541, 542], "start_point": {"row": 116, "column": 8}, "end_point": {"row": 116, "column": 68}}, {"id": 532, "type": "assignment_expression", "text": "b |= static_cast<std", "parent": 531, "children": [533, 534, 535], "start_point": {"row": 116, "column": 8}, "end_point": {"row": 116, "column": 28}}, {"id": 533, "type": "identifier", "text": "b", "parent": 532, "children": [], "start_point": {"row": 116, "column": 8}, "end_point": {"row": 116, "column": 9}}, {"id": 534, "type": "|=", "text": "|=", "parent": 532, "children": [], "start_point": {"row": 116, "column": 10}, "end_point": {"row": 116, "column": 12}}, {"id": 535, "type": "binary_expression", "text": "static_cast<std", "parent": 532, "children": [536, 537, 538], "start_point": {"row": 116, "column": 13}, "end_point": {"row": 116, "column": 28}}, {"id": 536, "type": "identifier", "text": "static_cast", "parent": 535, "children": [], "start_point": {"row": 116, "column": 13}, "end_point": {"row": 116, "column": 24}}, {"id": 537, "type": "<", "text": "<", "parent": 535, "children": [], "start_point": {"row": 116, "column": 24}, "end_point": {"row": 116, "column": 25}}, {"id": 538, "type": "identifier", "text": "std", "parent": 535, "children": [], "start_point": {"row": 116, "column": 25}, "end_point": {"row": 116, "column": 28}}, {"id": 539, "type": "ERROR", "text": "::uint64_t", "parent": 531, "children": [540], "start_point": {"row": 116, "column": 28}, "end_point": {"row": 116, "column": 38}}, {"id": 540, "type": "primitive_type", "text": "uint64_t", "parent": 539, "children": [], "start_point": {"row": 116, "column": 30}, "end_point": {"row": 116, "column": 38}}, {"id": 541, "type": ">", "text": ">", "parent": 531, "children": [], "start_point": {"row": 116, "column": 38}, "end_point": {"row": 116, "column": 39}}, {"id": 542, "type": "binary_expression", "text": "(buffer[kEndOffset + 1]) << 8", "parent": 531, "children": [543, 550, 551], "start_point": {"row": 116, "column": 39}, "end_point": {"row": 116, "column": 68}}, {"id": 543, "type": "parenthesized_expression", "text": "(buffer[kEndOffset + 1])", "parent": 542, "children": [544], "start_point": {"row": 116, "column": 39}, "end_point": {"row": 116, "column": 63}}, {"id": 544, "type": "subscript_expression", "text": "buffer[kEndOffset + 1]", "parent": 543, "children": [545, 546], "start_point": {"row": 116, "column": 40}, "end_point": {"row": 116, "column": 62}}, {"id": 545, "type": "identifier", "text": "buffer", "parent": 544, "children": [], "start_point": {"row": 116, "column": 40}, "end_point": {"row": 116, "column": 46}}, {"id": 546, "type": "binary_expression", "text": "kEndOffset + 1", "parent": 544, "children": [547, 548, 549], "start_point": {"row": 116, "column": 47}, "end_point": {"row": 116, "column": 61}}, {"id": 547, "type": "identifier", "text": "kEndOffset", "parent": 546, "children": [], "start_point": {"row": 116, "column": 47}, "end_point": {"row": 116, "column": 57}}, {"id": 548, "type": "+", "text": "+", "parent": 546, "children": [], "start_point": {"row": 116, "column": 58}, "end_point": {"row": 116, "column": 59}}, {"id": 549, "type": "number_literal", "text": "1", "parent": 546, "children": [], "start_point": {"row": 116, "column": 60}, "end_point": {"row": 116, "column": 61}}, {"id": 550, "type": "<<", "text": "<<", "parent": 542, "children": [], "start_point": {"row": 116, "column": 64}, "end_point": {"row": 116, "column": 66}}, {"id": 551, "type": "number_literal", "text": "8", "parent": 542, "children": [], "start_point": {"row": 116, "column": 67}, "end_point": {"row": 116, "column": 68}}, {"id": 552, "type": "identifier", "text": "NOP_FALLTHROUGH", "parent": 528, "children": [], "start_point": {"row": 117, "column": 8}, "end_point": {"row": 117, "column": 23}}, {"id": 553, "type": "case_statement", "text": "case 1:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 0]) << 0;\n NOP_FALLTHROUGH;", "parent": 399, "children": [554, 555], "start_point": {"row": 118, "column": 6}, "end_point": {"row": 120, "column": 24}}, {"id": 554, "type": "case", "text": "case", "parent": 553, "children": [], "start_point": {"row": 118, "column": 6}, "end_point": {"row": 118, "column": 10}}, {"id": 555, "type": "number_literal", "text": "1", "parent": 553, "children": [], "start_point": {"row": 118, "column": 11}, "end_point": {"row": 118, "column": 12}}, {"id": 556, "type": "binary_expression", "text": "b |= static_cast<std::uint64_t>(buffer[kEndOffset + 0]) << 0", "parent": 553, "children": [557, 564, 566, 567], "start_point": {"row": 119, "column": 8}, "end_point": {"row": 119, "column": 68}}, {"id": 557, "type": "assignment_expression", "text": "b |= static_cast<std", "parent": 556, "children": [558, 559, 560], "start_point": {"row": 119, "column": 8}, "end_point": {"row": 119, "column": 28}}, {"id": 558, "type": "identifier", "text": "b", "parent": 557, "children": [], "start_point": {"row": 119, "column": 8}, "end_point": {"row": 119, "column": 9}}, {"id": 559, "type": "|=", "text": "|=", "parent": 557, "children": [], "start_point": {"row": 119, "column": 10}, "end_point": {"row": 119, "column": 12}}, {"id": 560, "type": "binary_expression", "text": "static_cast<std", "parent": 557, "children": [561, 562, 563], "start_point": {"row": 119, "column": 13}, "end_point": {"row": 119, "column": 28}}, {"id": 561, "type": "identifier", "text": "static_cast", "parent": 560, "children": [], "start_point": {"row": 119, "column": 13}, "end_point": {"row": 119, "column": 24}}, {"id": 562, "type": "<", "text": "<", "parent": 560, "children": [], "start_point": {"row": 119, "column": 24}, "end_point": {"row": 119, "column": 25}}, {"id": 563, "type": "identifier", "text": "std", "parent": 560, "children": [], "start_point": {"row": 119, "column": 25}, "end_point": {"row": 119, "column": 28}}, {"id": 564, "type": "ERROR", "text": "::uint64_t", "parent": 556, "children": [565], "start_point": {"row": 119, "column": 28}, "end_point": {"row": 119, "column": 38}}, {"id": 565, "type": "primitive_type", "text": "uint64_t", "parent": 564, "children": [], "start_point": {"row": 119, "column": 30}, "end_point": {"row": 119, "column": 38}}, {"id": 566, "type": ">", "text": ">", "parent": 556, "children": [], "start_point": {"row": 119, "column": 38}, "end_point": {"row": 119, "column": 39}}, {"id": 567, "type": "binary_expression", "text": "(buffer[kEndOffset + 0]) << 0", "parent": 556, "children": [568, 575, 576], "start_point": {"row": 119, "column": 39}, "end_point": {"row": 119, "column": 68}}, {"id": 568, "type": "parenthesized_expression", "text": "(buffer[kEndOffset + 0])", "parent": 567, "children": [569], "start_point": {"row": 119, "column": 39}, "end_point": {"row": 119, "column": 63}}, {"id": 569, "type": "subscript_expression", "text": "buffer[kEndOffset + 0]", "parent": 568, "children": [570, 571], "start_point": {"row": 119, "column": 40}, "end_point": {"row": 119, "column": 62}}, {"id": 570, "type": "identifier", "text": "buffer", "parent": 569, "children": [], "start_point": {"row": 119, "column": 40}, "end_point": {"row": 119, "column": 46}}, {"id": 571, "type": "binary_expression", "text": "kEndOffset + 0", "parent": 569, "children": [572, 573, 574], "start_point": {"row": 119, "column": 47}, "end_point": {"row": 119, "column": 61}}, {"id": 572, "type": "identifier", "text": "kEndOffset", "parent": 571, "children": [], "start_point": {"row": 119, "column": 47}, "end_point": {"row": 119, "column": 57}}, {"id": 573, "type": "+", "text": "+", "parent": 571, "children": [], "start_point": {"row": 119, "column": 58}, "end_point": {"row": 119, "column": 59}}, {"id": 574, "type": "number_literal", "text": "0", "parent": 571, "children": [], "start_point": {"row": 119, "column": 60}, "end_point": {"row": 119, "column": 61}}, {"id": 575, "type": "<<", "text": "<<", "parent": 567, "children": [], "start_point": {"row": 119, "column": 64}, "end_point": {"row": 119, "column": 66}}, {"id": 576, "type": "number_literal", "text": "0", "parent": 567, "children": [], "start_point": {"row": 119, "column": 67}, "end_point": {"row": 119, "column": 68}}, {"id": 577, "type": "identifier", "text": "NOP_FALLTHROUGH", "parent": 553, "children": [], "start_point": {"row": 120, "column": 8}, "end_point": {"row": 120, "column": 23}}, {"id": 578, "type": "case_statement", "text": "case 0:\n break;", "parent": 399, "children": [579, 580, 581], "start_point": {"row": 121, "column": 6}, "end_point": {"row": 122, "column": 14}}, {"id": 579, "type": "case", "text": "case", "parent": 578, "children": [], "start_point": {"row": 121, "column": 6}, "end_point": {"row": 121, "column": 10}}, {"id": 580, "type": "number_literal", "text": "0", "parent": 578, "children": [], "start_point": {"row": 121, "column": 11}, "end_point": {"row": 121, "column": 12}}, {"id": 581, "type": "break_statement", "text": "break;", "parent": 578, "children": [582], "start_point": {"row": 122, "column": 8}, "end_point": {"row": 122, "column": 14}}, {"id": 582, "type": "break", "text": "break", "parent": 581, "children": [], "start_point": {"row": 122, "column": 8}, "end_point": {"row": 122, "column": 13}}, {"id": 583, "type": "assignment_expression", "text": "v[3] ^= b", "parent": 107, "children": [584, 587, 588], "start_point": {"row": 125, "column": 4}, "end_point": {"row": 125, "column": 13}}, {"id": 584, "type": "subscript_expression", "text": "v[3]", "parent": 583, "children": [585, 586], "start_point": {"row": 125, "column": 4}, "end_point": {"row": 125, "column": 8}}, {"id": 585, "type": "identifier", "text": "v", "parent": 584, "children": [], "start_point": {"row": 125, "column": 4}, "end_point": {"row": 125, "column": 5}}, {"id": 586, "type": "number_literal", "text": "3", "parent": 584, "children": [], "start_point": {"row": 125, "column": 6}, "end_point": {"row": 125, "column": 7}}, {"id": 587, "type": "^=", "text": "^=", "parent": 583, "children": [], "start_point": {"row": 125, "column": 9}, "end_point": {"row": 125, "column": 11}}, {"id": 588, "type": "identifier", "text": "b", "parent": 583, "children": [], "start_point": {"row": 125, "column": 12}, "end_point": {"row": 125, "column": 13}}, {"id": 589, "type": "call_expression", "text": "Round(v)", "parent": 107, "children": [590, 591], "start_point": {"row": 126, "column": 4}, "end_point": {"row": 126, "column": 12}}, {"id": 590, "type": "identifier", "text": "Round", "parent": 589, "children": [], "start_point": {"row": 126, "column": 4}, "end_point": {"row": 126, "column": 9}}, {"id": 591, "type": "argument_list", "text": "(v)", "parent": 589, "children": [592], "start_point": {"row": 126, "column": 9}, "end_point": {"row": 126, "column": 12}}, {"id": 592, "type": "identifier", "text": "v", "parent": 591, "children": [], "start_point": {"row": 126, "column": 10}, "end_point": {"row": 126, "column": 11}}, {"id": 593, "type": "call_expression", "text": "Round(v)", "parent": 107, "children": [594, 595], "start_point": {"row": 127, "column": 4}, "end_point": {"row": 127, "column": 12}}, {"id": 594, "type": "identifier", "text": "Round", "parent": 593, "children": [], "start_point": {"row": 127, "column": 4}, "end_point": {"row": 127, "column": 9}}, {"id": 595, "type": "argument_list", "text": "(v)", "parent": 593, "children": [596], "start_point": {"row": 127, "column": 9}, "end_point": {"row": 127, "column": 12}}, {"id": 596, "type": "identifier", "text": "v", "parent": 595, "children": [], "start_point": {"row": 127, "column": 10}, "end_point": {"row": 127, "column": 11}}, {"id": 597, "type": "assignment_expression", "text": "v[0] ^= b", "parent": 107, "children": [598, 601, 602], "start_point": {"row": 128, "column": 4}, "end_point": {"row": 128, "column": 13}}, {"id": 598, "type": "subscript_expression", "text": "v[0]", "parent": 597, "children": [599, 600], "start_point": {"row": 128, "column": 4}, "end_point": {"row": 128, "column": 8}}, {"id": 599, "type": "identifier", "text": "v", "parent": 598, "children": [], "start_point": {"row": 128, "column": 4}, "end_point": {"row": 128, "column": 5}}, {"id": 600, "type": "number_literal", "text": "0", "parent": 598, "children": [], "start_point": {"row": 128, "column": 6}, "end_point": {"row": 128, "column": 7}}, {"id": 601, "type": "^=", "text": "^=", "parent": 597, "children": [], "start_point": {"row": 128, "column": 9}, "end_point": {"row": 128, "column": 11}}, {"id": 602, "type": "identifier", "text": "b", "parent": 597, "children": [], "start_point": {"row": 128, "column": 12}, "end_point": {"row": 128, "column": 13}}, {"id": 603, "type": "assignment_expression", "text": "v[2] ^= 0xff", "parent": 107, "children": [604, 607, 608], "start_point": {"row": 130, "column": 4}, "end_point": {"row": 130, "column": 16}}, {"id": 604, "type": "subscript_expression", "text": "v[2]", "parent": 603, "children": [605, 606], "start_point": {"row": 130, "column": 4}, "end_point": {"row": 130, "column": 8}}, {"id": 605, "type": "identifier", "text": "v", "parent": 604, "children": [], "start_point": {"row": 130, "column": 4}, "end_point": {"row": 130, "column": 5}}, {"id": 606, "type": "number_literal", "text": "2", "parent": 604, "children": [], "start_point": {"row": 130, "column": 6}, "end_point": {"row": 130, "column": 7}}, {"id": 607, "type": "^=", "text": "^=", "parent": 603, "children": [], "start_point": {"row": 130, "column": 9}, "end_point": {"row": 130, "column": 11}}, {"id": 608, "type": "number_literal", "text": "0xff", "parent": 603, "children": [], "start_point": {"row": 130, "column": 12}, "end_point": {"row": 130, "column": 16}}, {"id": 609, "type": "call_expression", "text": "Round(v)", "parent": 107, "children": [610, 611], "start_point": {"row": 131, "column": 4}, "end_point": {"row": 131, "column": 12}}, {"id": 610, "type": "identifier", "text": "Round", "parent": 609, "children": [], "start_point": {"row": 131, "column": 4}, "end_point": {"row": 131, "column": 9}}, {"id": 611, "type": "argument_list", "text": "(v)", "parent": 609, "children": [612], "start_point": {"row": 131, "column": 9}, "end_point": {"row": 131, "column": 12}}, {"id": 612, "type": "identifier", "text": "v", "parent": 611, "children": [], "start_point": {"row": 131, "column": 10}, "end_point": {"row": 131, "column": 11}}, {"id": 613, "type": "call_expression", "text": "Round(v)", "parent": 107, "children": [614, 615], "start_point": {"row": 132, "column": 4}, "end_point": {"row": 132, "column": 12}}, {"id": 614, "type": "identifier", "text": "Round", "parent": 613, "children": [], "start_point": {"row": 132, "column": 4}, "end_point": {"row": 132, "column": 9}}, {"id": 615, "type": "argument_list", "text": "(v)", "parent": 613, "children": [616], "start_point": {"row": 132, "column": 9}, "end_point": {"row": 132, "column": 12}}, {"id": 616, "type": "identifier", "text": "v", "parent": 615, "children": [], "start_point": {"row": 132, "column": 10}, "end_point": {"row": 132, "column": 11}}, {"id": 617, "type": "call_expression", "text": "Round(v)", "parent": 107, "children": [618, 619], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 133, "column": 12}}, {"id": 618, "type": "identifier", "text": "Round", "parent": 617, "children": [], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 133, "column": 9}}, {"id": 619, "type": "argument_list", "text": "(v)", "parent": 617, "children": [620], "start_point": {"row": 133, "column": 9}, "end_point": {"row": 133, "column": 12}}, {"id": 620, "type": "identifier", "text": "v", "parent": 619, "children": [], "start_point": {"row": 133, "column": 10}, "end_point": {"row": 133, "column": 11}}, {"id": 621, "type": "call_expression", "text": "Round(v)", "parent": 107, "children": [622, 623], "start_point": {"row": 134, "column": 4}, "end_point": {"row": 134, "column": 12}}, {"id": 622, "type": "identifier", "text": "Round", "parent": 621, "children": [], "start_point": {"row": 134, "column": 4}, "end_point": {"row": 134, "column": 9}}, {"id": 623, "type": "argument_list", "text": "(v)", "parent": 621, "children": [624], "start_point": {"row": 134, "column": 9}, "end_point": {"row": 134, "column": 12}}, {"id": 624, "type": "identifier", "text": "v", "parent": 623, "children": [], "start_point": {"row": 134, "column": 10}, "end_point": {"row": 134, "column": 11}}, {"id": 625, "type": "assignment_expression", "text": "b = v[0] ^ v[1] ^ v[2] ^ v[3]", "parent": 107, "children": [626, 627, 628], "start_point": {"row": 135, "column": 4}, "end_point": {"row": 135, "column": 33}}, {"id": 626, "type": "identifier", "text": "b", "parent": 625, "children": [], "start_point": {"row": 135, "column": 4}, "end_point": {"row": 135, "column": 5}}, {"id": 627, "type": "=", "text": "=", "parent": 625, "children": [], "start_point": {"row": 135, "column": 6}, "end_point": {"row": 135, "column": 7}}, {"id": 628, "type": "binary_expression", "text": "v[0] ^ v[1] ^ v[2] ^ v[3]", "parent": 625, "children": [629, 642, 643], "start_point": {"row": 135, "column": 8}, "end_point": {"row": 135, "column": 33}}, {"id": 629, "type": "binary_expression", "text": "v[0] ^ v[1] ^ v[2]", "parent": 628, "children": [630, 638, 639], "start_point": {"row": 135, "column": 8}, "end_point": {"row": 135, "column": 26}}, {"id": 630, "type": "binary_expression", "text": "v[0] ^ v[1]", "parent": 629, "children": [631, 634, 635], "start_point": {"row": 135, "column": 8}, "end_point": {"row": 135, "column": 19}}, {"id": 631, "type": "subscript_expression", "text": "v[0]", "parent": 630, "children": [632, 633], "start_point": {"row": 135, "column": 8}, "end_point": {"row": 135, "column": 12}}, {"id": 632, "type": "identifier", "text": "v", "parent": 631, "children": [], "start_point": {"row": 135, "column": 8}, "end_point": {"row": 135, "column": 9}}, {"id": 633, "type": "number_literal", "text": "0", "parent": 631, "children": [], "start_point": {"row": 135, "column": 10}, "end_point": {"row": 135, "column": 11}}, {"id": 634, "type": "^", "text": "^", "parent": 630, "children": [], "start_point": {"row": 135, "column": 13}, "end_point": {"row": 135, "column": 14}}, {"id": 635, "type": "subscript_expression", "text": "v[1]", "parent": 630, "children": [636, 637], "start_point": {"row": 135, "column": 15}, "end_point": {"row": 135, "column": 19}}, {"id": 636, "type": "identifier", "text": "v", "parent": 635, "children": [], "start_point": {"row": 135, "column": 15}, "end_point": {"row": 135, "column": 16}}, {"id": 637, "type": "number_literal", "text": "1", "parent": 635, "children": [], "start_point": {"row": 135, "column": 17}, "end_point": {"row": 135, "column": 18}}, {"id": 638, "type": "^", "text": "^", "parent": 629, "children": [], "start_point": {"row": 135, "column": 20}, "end_point": {"row": 135, "column": 21}}, {"id": 639, "type": "subscript_expression", "text": "v[2]", "parent": 629, "children": [640, 641], "start_point": {"row": 135, "column": 22}, "end_point": {"row": 135, "column": 26}}, {"id": 640, "type": "identifier", "text": "v", "parent": 639, "children": [], "start_point": {"row": 135, "column": 22}, "end_point": {"row": 135, "column": 23}}, {"id": 641, "type": "number_literal", "text": "2", "parent": 639, "children": [], "start_point": {"row": 135, "column": 24}, "end_point": {"row": 135, "column": 25}}, {"id": 642, "type": "^", "text": "^", "parent": 628, "children": [], "start_point": {"row": 135, "column": 27}, "end_point": {"row": 135, "column": 28}}, {"id": 643, "type": "subscript_expression", "text": "v[3]", "parent": 628, "children": [644, 645], "start_point": {"row": 135, "column": 29}, "end_point": {"row": 135, "column": 33}}, {"id": 644, "type": "identifier", "text": "v", "parent": 643, "children": [], "start_point": {"row": 135, "column": 29}, "end_point": {"row": 135, "column": 30}}, {"id": 645, "type": "number_literal", "text": "3", "parent": 643, "children": [], "start_point": {"row": 135, "column": 31}, "end_point": {"row": 135, "column": 32}}, {"id": 646, "type": "return_statement", "text": "return b;", "parent": 107, "children": [647], "start_point": {"row": 137, "column": 4}, "end_point": {"row": 137, "column": 13}}, {"id": 647, "type": "identifier", "text": "b", "parent": 646, "children": [], "start_point": {"row": 137, "column": 11}, "end_point": {"row": 137, "column": 12}}, {"id": 648, "type": "labeled_statement", "text": "private:\n template <typename BufferType>\n static", "parent": 52, "children": [], "start_point": {"row": 140, "column": 1}, "end_point": {"row": 142, "column": 8}}, {"id": 649, "type": "binary_expression", "text": "template <typename BufferType>\n static", "parent": 648, "children": [650, 656], "start_point": {"row": 141, "column": 2}, "end_point": {"row": 142, "column": 8}}, {"id": 650, "type": "binary_expression", "text": "template <typename BufferType", "parent": 649, "children": [651, 652, 653, 655], "start_point": {"row": 141, "column": 2}, "end_point": {"row": 141, "column": 31}}, {"id": 651, "type": "identifier", "text": "template", "parent": 650, "children": [], "start_point": {"row": 141, "column": 2}, "end_point": {"row": 141, "column": 10}}, {"id": 652, "type": "<", "text": "<", "parent": 650, "children": [], "start_point": {"row": 141, "column": 11}, "end_point": {"row": 141, "column": 12}}, {"id": 653, "type": "ERROR", "text": "typename", "parent": 650, "children": [654], "start_point": {"row": 141, "column": 12}, "end_point": {"row": 141, "column": 20}}, {"id": 654, "type": "identifier", "text": "typename", "parent": 653, "children": [], "start_point": {"row": 141, "column": 12}, "end_point": {"row": 141, "column": 20}}, {"id": 655, "type": "identifier", "text": "BufferType", "parent": 650, "children": [], "start_point": {"row": 141, "column": 21}, "end_point": {"row": 141, "column": 31}}, {"id": 656, "type": ">", "text": ">", "parent": 649, "children": [], "start_point": {"row": 141, "column": 31}, "end_point": {"row": 141, "column": 32}}, {"id": 657, "type": "function_definition", "text": "constexpr std::uint64_t ReadBlock(const BufferType buffer,\n const std::size_t offset) {\n const std::uint64_t v0 = buffer[offset + 0];\n const std::uint64_t v1 = buffer[offset + 1];\n const std::uint64_t v2 = buffer[offset + 2];\n const std::uint64_t v3 = buffer[offset + 3];\n const std::uint64_t v4 = buffer[offset + 4];\n const std::uint64_t v5 = buffer[offset + 5];\n const std::uint64_t v6 = buffer[offset + 6];\n const std::uint64_t v7 = buffer[offset + 7];\n\n return ((v7 << 56) | (v6 << 48) | (v5 << 40) | (v4 << 32) | (v3 << 24) |\n (v2 << 16) | (v1 << 8) | (v0 << 0));\n }", "parent": 52, "children": [658, 660, 662, 663], "start_point": {"row": 142, "column": 9}, "end_point": {"row": 155, "column": 3}}, {"id": 658, "type": "type_qualifier", "text": "constexpr", "parent": 657, "children": [659], "start_point": {"row": 142, "column": 9}, "end_point": {"row": 142, "column": 18}}, {"id": 659, "type": "constexpr", "text": "constexpr", "parent": 658, "children": [], "start_point": {"row": 142, "column": 9}, "end_point": {"row": 142, "column": 18}}, {"id": 660, "type": "ERROR", "text": "std::", "parent": 657, "children": [661], "start_point": {"row": 142, "column": 19}, "end_point": {"row": 142, "column": 24}}, {"id": 661, "type": "type_identifier", "text": "std", "parent": 660, "children": [], "start_point": {"row": 142, "column": 19}, "end_point": {"row": 142, "column": 22}}, {"id": 662, "type": "primitive_type", "text": "uint64_t", "parent": 657, "children": [], "start_point": {"row": 142, "column": 24}, "end_point": {"row": 142, "column": 32}}, {"id": 663, "type": "function_declarator", "text": "ReadBlock(const BufferType buffer,\n const std::size_t offset)", "parent": 657, "children": [664, 665], "start_point": {"row": 142, "column": 33}, "end_point": {"row": 143, "column": 68}}, {"id": 664, "type": "identifier", "text": "ReadBlock", "parent": 663, "children": [], "start_point": {"row": 142, "column": 33}, "end_point": {"row": 142, "column": 42}}, {"id": 665, "type": "parameter_list", "text": "(const BufferType buffer,\n const std::size_t offset)", "parent": 663, "children": [666, 669], "start_point": {"row": 142, "column": 42}, "end_point": {"row": 143, "column": 68}}, {"id": 666, "type": "parameter_declaration", "text": "const BufferType buffer", "parent": 665, "children": [667, 668], "start_point": {"row": 142, "column": 43}, "end_point": {"row": 142, "column": 66}}, {"id": 667, "type": "type_identifier", "text": "BufferType", "parent": 666, "children": [], "start_point": {"row": 142, "column": 49}, "end_point": {"row": 142, "column": 59}}, {"id": 668, "type": "identifier", "text": "buffer", "parent": 666, "children": [], "start_point": {"row": 142, "column": 60}, "end_point": {"row": 142, "column": 66}}, {"id": 669, "type": "parameter_declaration", "text": "const std::size_t offset", "parent": 665, "children": [670, 672, 673], "start_point": {"row": 143, "column": 43}, "end_point": {"row": 143, "column": 67}}, {"id": 670, "type": "ERROR", "text": "std::", "parent": 669, "children": [671], "start_point": {"row": 143, "column": 49}, "end_point": {"row": 143, "column": 54}}, {"id": 671, "type": "type_identifier", "text": "std", "parent": 670, "children": [], "start_point": {"row": 143, "column": 49}, "end_point": {"row": 143, "column": 52}}, {"id": 672, "type": "primitive_type", "text": "size_t", "parent": 669, "children": [], "start_point": {"row": 143, "column": 54}, "end_point": {"row": 143, "column": 60}}, {"id": 673, "type": "identifier", "text": "offset", "parent": 669, "children": [], "start_point": {"row": 143, "column": 61}, "end_point": {"row": 143, "column": 67}}, {"id": 674, "type": "declaration", "text": "const std::uint64_t v0 = buffer[offset + 0];", "parent": 657, "children": [675, 677, 678], "start_point": {"row": 144, "column": 4}, "end_point": {"row": 144, "column": 48}}, {"id": 675, "type": "ERROR", "text": "std::", "parent": 674, "children": [676], "start_point": {"row": 144, "column": 10}, "end_point": {"row": 144, "column": 15}}, {"id": 676, "type": "type_identifier", "text": "std", "parent": 675, "children": [], "start_point": {"row": 144, "column": 10}, "end_point": {"row": 144, "column": 13}}, {"id": 677, "type": "primitive_type", "text": "uint64_t", "parent": 674, "children": [], "start_point": {"row": 144, "column": 15}, "end_point": {"row": 144, "column": 23}}, {"id": 678, "type": "init_declarator", "text": "v0 = buffer[offset + 0]", "parent": 674, "children": [679, 680, 681], "start_point": {"row": 144, "column": 24}, "end_point": {"row": 144, "column": 47}}, {"id": 679, "type": "identifier", "text": "v0", "parent": 678, "children": [], "start_point": {"row": 144, "column": 24}, "end_point": {"row": 144, "column": 26}}, {"id": 680, "type": "=", "text": "=", "parent": 678, "children": [], "start_point": {"row": 144, "column": 27}, "end_point": {"row": 144, "column": 28}}, {"id": 681, "type": "subscript_expression", "text": "buffer[offset + 0]", "parent": 678, "children": [682, 683], "start_point": {"row": 144, "column": 29}, "end_point": {"row": 144, "column": 47}}, {"id": 682, "type": "identifier", "text": "buffer", "parent": 681, "children": [], "start_point": {"row": 144, "column": 29}, "end_point": {"row": 144, "column": 35}}, {"id": 683, "type": "binary_expression", "text": "offset + 0", "parent": 681, "children": [684, 685, 686], "start_point": {"row": 144, "column": 36}, "end_point": {"row": 144, "column": 46}}, {"id": 684, "type": "identifier", "text": "offset", "parent": 683, "children": [], "start_point": {"row": 144, "column": 36}, "end_point": {"row": 144, "column": 42}}, {"id": 685, "type": "+", "text": "+", "parent": 683, "children": [], "start_point": {"row": 144, "column": 43}, "end_point": {"row": 144, "column": 44}}, {"id": 686, "type": "number_literal", "text": "0", "parent": 683, "children": [], "start_point": {"row": 144, "column": 45}, "end_point": {"row": 144, "column": 46}}, {"id": 687, "type": "declaration", "text": "const std::uint64_t v1 = buffer[offset + 1];", "parent": 657, "children": [688, 690, 691], "start_point": {"row": 145, "column": 4}, "end_point": {"row": 145, "column": 48}}, {"id": 688, "type": "ERROR", "text": "std::", "parent": 687, "children": [689], "start_point": {"row": 145, "column": 10}, "end_point": {"row": 145, "column": 15}}, {"id": 689, "type": "type_identifier", "text": "std", "parent": 688, "children": [], "start_point": {"row": 145, "column": 10}, "end_point": {"row": 145, "column": 13}}, {"id": 690, "type": "primitive_type", "text": "uint64_t", "parent": 687, "children": [], "start_point": {"row": 145, "column": 15}, "end_point": {"row": 145, "column": 23}}, {"id": 691, "type": "init_declarator", "text": "v1 = buffer[offset + 1]", "parent": 687, "children": [692, 693, 694], "start_point": {"row": 145, "column": 24}, "end_point": {"row": 145, "column": 47}}, {"id": 692, "type": "identifier", "text": "v1", "parent": 691, "children": [], "start_point": {"row": 145, "column": 24}, "end_point": {"row": 145, "column": 26}}, {"id": 693, "type": "=", "text": "=", "parent": 691, "children": [], "start_point": {"row": 145, "column": 27}, "end_point": {"row": 145, "column": 28}}, {"id": 694, "type": "subscript_expression", "text": "buffer[offset + 1]", "parent": 691, "children": [695, 696], "start_point": {"row": 145, "column": 29}, "end_point": {"row": 145, "column": 47}}, {"id": 695, "type": "identifier", "text": "buffer", "parent": 694, "children": [], "start_point": {"row": 145, "column": 29}, "end_point": {"row": 145, "column": 35}}, {"id": 696, "type": "binary_expression", "text": "offset + 1", "parent": 694, "children": [697, 698, 699], "start_point": {"row": 145, "column": 36}, "end_point": {"row": 145, "column": 46}}, {"id": 697, "type": "identifier", "text": "offset", "parent": 696, "children": [], "start_point": {"row": 145, "column": 36}, "end_point": {"row": 145, "column": 42}}, {"id": 698, "type": "+", "text": "+", "parent": 696, "children": [], "start_point": {"row": 145, "column": 43}, "end_point": {"row": 145, "column": 44}}, {"id": 699, "type": "number_literal", "text": "1", "parent": 696, "children": [], "start_point": {"row": 145, "column": 45}, "end_point": {"row": 145, "column": 46}}, {"id": 700, "type": "declaration", "text": "const std::uint64_t v2 = buffer[offset + 2];", "parent": 657, "children": [701, 703, 704], "start_point": {"row": 146, "column": 4}, "end_point": {"row": 146, "column": 48}}, {"id": 701, "type": "ERROR", "text": "std::", "parent": 700, "children": [702], "start_point": {"row": 146, "column": 10}, "end_point": {"row": 146, "column": 15}}, {"id": 702, "type": "type_identifier", "text": "std", "parent": 701, "children": [], "start_point": {"row": 146, "column": 10}, "end_point": {"row": 146, "column": 13}}, {"id": 703, "type": "primitive_type", "text": "uint64_t", "parent": 700, "children": [], "start_point": {"row": 146, "column": 15}, "end_point": {"row": 146, "column": 23}}, {"id": 704, "type": "init_declarator", "text": "v2 = buffer[offset + 2]", "parent": 700, "children": [705, 706, 707], "start_point": {"row": 146, "column": 24}, "end_point": {"row": 146, "column": 47}}, {"id": 705, "type": "identifier", "text": "v2", "parent": 704, "children": [], "start_point": {"row": 146, "column": 24}, "end_point": {"row": 146, "column": 26}}, {"id": 706, "type": "=", "text": "=", "parent": 704, "children": [], "start_point": {"row": 146, "column": 27}, "end_point": {"row": 146, "column": 28}}, {"id": 707, "type": "subscript_expression", "text": "buffer[offset + 2]", "parent": 704, "children": [708, 709], "start_point": {"row": 146, "column": 29}, "end_point": {"row": 146, "column": 47}}, {"id": 708, "type": "identifier", "text": "buffer", "parent": 707, "children": [], "start_point": {"row": 146, "column": 29}, "end_point": {"row": 146, "column": 35}}, {"id": 709, "type": "binary_expression", "text": "offset + 2", "parent": 707, "children": [710, 711, 712], "start_point": {"row": 146, "column": 36}, "end_point": {"row": 146, "column": 46}}, {"id": 710, "type": "identifier", "text": "offset", "parent": 709, "children": [], "start_point": {"row": 146, "column": 36}, "end_point": {"row": 146, "column": 42}}, {"id": 711, "type": "+", "text": "+", "parent": 709, "children": [], "start_point": {"row": 146, "column": 43}, "end_point": {"row": 146, "column": 44}}, {"id": 712, "type": "number_literal", "text": "2", "parent": 709, "children": [], "start_point": {"row": 146, "column": 45}, "end_point": {"row": 146, "column": 46}}, {"id": 713, "type": "declaration", "text": "const std::uint64_t v3 = buffer[offset + 3];", "parent": 657, "children": [714, 716, 717], "start_point": {"row": 147, "column": 4}, "end_point": {"row": 147, "column": 48}}, {"id": 714, "type": "ERROR", "text": "std::", "parent": 713, "children": [715], "start_point": {"row": 147, "column": 10}, "end_point": {"row": 147, "column": 15}}, {"id": 715, "type": "type_identifier", "text": "std", "parent": 714, "children": [], "start_point": {"row": 147, "column": 10}, "end_point": {"row": 147, "column": 13}}, {"id": 716, "type": "primitive_type", "text": "uint64_t", "parent": 713, "children": [], "start_point": {"row": 147, "column": 15}, "end_point": {"row": 147, "column": 23}}, {"id": 717, "type": "init_declarator", "text": "v3 = buffer[offset + 3]", "parent": 713, "children": [718, 719, 720], "start_point": {"row": 147, "column": 24}, "end_point": {"row": 147, "column": 47}}, {"id": 718, "type": "identifier", "text": "v3", "parent": 717, "children": [], "start_point": {"row": 147, "column": 24}, "end_point": {"row": 147, "column": 26}}, {"id": 719, "type": "=", "text": "=", "parent": 717, "children": [], "start_point": {"row": 147, "column": 27}, "end_point": {"row": 147, "column": 28}}, {"id": 720, "type": "subscript_expression", "text": "buffer[offset + 3]", "parent": 717, "children": [721, 722], "start_point": {"row": 147, "column": 29}, "end_point": {"row": 147, "column": 47}}, {"id": 721, "type": "identifier", "text": "buffer", "parent": 720, "children": [], "start_point": {"row": 147, "column": 29}, "end_point": {"row": 147, "column": 35}}, {"id": 722, "type": "binary_expression", "text": "offset + 3", "parent": 720, "children": [723, 724, 725], "start_point": {"row": 147, "column": 36}, "end_point": {"row": 147, "column": 46}}, {"id": 723, "type": "identifier", "text": "offset", "parent": 722, "children": [], "start_point": {"row": 147, "column": 36}, "end_point": {"row": 147, "column": 42}}, {"id": 724, "type": "+", "text": "+", "parent": 722, "children": [], "start_point": {"row": 147, "column": 43}, "end_point": {"row": 147, "column": 44}}, {"id": 725, "type": "number_literal", "text": "3", "parent": 722, "children": [], "start_point": {"row": 147, "column": 45}, "end_point": {"row": 147, "column": 46}}, {"id": 726, "type": "declaration", "text": "const std::uint64_t v4 = buffer[offset + 4];", "parent": 657, "children": [727, 729, 730], "start_point": {"row": 148, "column": 4}, "end_point": {"row": 148, "column": 48}}, {"id": 727, "type": "ERROR", "text": "std::", "parent": 726, "children": [728], "start_point": {"row": 148, "column": 10}, "end_point": {"row": 148, "column": 15}}, {"id": 728, "type": "type_identifier", "text": "std", "parent": 727, "children": [], "start_point": {"row": 148, "column": 10}, "end_point": {"row": 148, "column": 13}}, {"id": 729, "type": "primitive_type", "text": "uint64_t", "parent": 726, "children": [], "start_point": {"row": 148, "column": 15}, "end_point": {"row": 148, "column": 23}}, {"id": 730, "type": "init_declarator", "text": "v4 = buffer[offset + 4]", "parent": 726, "children": [731, 732, 733], "start_point": {"row": 148, "column": 24}, "end_point": {"row": 148, "column": 47}}, {"id": 731, "type": "identifier", "text": "v4", "parent": 730, "children": [], "start_point": {"row": 148, "column": 24}, "end_point": {"row": 148, "column": 26}}, {"id": 732, "type": "=", "text": "=", "parent": 730, "children": [], "start_point": {"row": 148, "column": 27}, "end_point": {"row": 148, "column": 28}}, {"id": 733, "type": "subscript_expression", "text": "buffer[offset + 4]", "parent": 730, "children": [734, 735], "start_point": {"row": 148, "column": 29}, "end_point": {"row": 148, "column": 47}}, {"id": 734, "type": "identifier", "text": "buffer", "parent": 733, "children": [], "start_point": {"row": 148, "column": 29}, "end_point": {"row": 148, "column": 35}}, {"id": 735, "type": "binary_expression", "text": "offset + 4", "parent": 733, "children": [736, 737, 738], "start_point": {"row": 148, "column": 36}, "end_point": {"row": 148, "column": 46}}, {"id": 736, "type": "identifier", "text": "offset", "parent": 735, "children": [], "start_point": {"row": 148, "column": 36}, "end_point": {"row": 148, "column": 42}}, {"id": 737, "type": "+", "text": "+", "parent": 735, "children": [], "start_point": {"row": 148, "column": 43}, "end_point": {"row": 148, "column": 44}}, {"id": 738, "type": "number_literal", "text": "4", "parent": 735, "children": [], "start_point": {"row": 148, "column": 45}, "end_point": {"row": 148, "column": 46}}, {"id": 739, "type": "declaration", "text": "const std::uint64_t v5 = buffer[offset + 5];", "parent": 657, "children": [740, 742, 743], "start_point": {"row": 149, "column": 4}, "end_point": {"row": 149, "column": 48}}, {"id": 740, "type": "ERROR", "text": "std::", "parent": 739, "children": [741], "start_point": {"row": 149, "column": 10}, "end_point": {"row": 149, "column": 15}}, {"id": 741, "type": "type_identifier", "text": "std", "parent": 740, "children": [], "start_point": {"row": 149, "column": 10}, "end_point": {"row": 149, "column": 13}}, {"id": 742, "type": "primitive_type", "text": "uint64_t", "parent": 739, "children": [], "start_point": {"row": 149, "column": 15}, "end_point": {"row": 149, "column": 23}}, {"id": 743, "type": "init_declarator", "text": "v5 = buffer[offset + 5]", "parent": 739, "children": [744, 745, 746], "start_point": {"row": 149, "column": 24}, "end_point": {"row": 149, "column": 47}}, {"id": 744, "type": "identifier", "text": "v5", "parent": 743, "children": [], "start_point": {"row": 149, "column": 24}, "end_point": {"row": 149, "column": 26}}, {"id": 745, "type": "=", "text": "=", "parent": 743, "children": [], "start_point": {"row": 149, "column": 27}, "end_point": {"row": 149, "column": 28}}, {"id": 746, "type": "subscript_expression", "text": "buffer[offset + 5]", "parent": 743, "children": [747, 748], "start_point": {"row": 149, "column": 29}, "end_point": {"row": 149, "column": 47}}, {"id": 747, "type": "identifier", "text": "buffer", "parent": 746, "children": [], "start_point": {"row": 149, "column": 29}, "end_point": {"row": 149, "column": 35}}, {"id": 748, "type": "binary_expression", "text": "offset + 5", "parent": 746, "children": [749, 750, 751], "start_point": {"row": 149, "column": 36}, "end_point": {"row": 149, "column": 46}}, {"id": 749, "type": "identifier", "text": "offset", "parent": 748, "children": [], "start_point": {"row": 149, "column": 36}, "end_point": {"row": 149, "column": 42}}, {"id": 750, "type": "+", "text": "+", "parent": 748, "children": [], "start_point": {"row": 149, "column": 43}, "end_point": {"row": 149, "column": 44}}, {"id": 751, "type": "number_literal", "text": "5", "parent": 748, "children": [], "start_point": {"row": 149, "column": 45}, "end_point": {"row": 149, "column": 46}}, {"id": 752, "type": "declaration", "text": "const std::uint64_t v6 = buffer[offset + 6];", "parent": 657, "children": [753, 755, 756], "start_point": {"row": 150, "column": 4}, "end_point": {"row": 150, "column": 48}}, {"id": 753, "type": "ERROR", "text": "std::", "parent": 752, "children": [754], "start_point": {"row": 150, "column": 10}, "end_point": {"row": 150, "column": 15}}, {"id": 754, "type": "type_identifier", "text": "std", "parent": 753, "children": [], "start_point": {"row": 150, "column": 10}, "end_point": {"row": 150, "column": 13}}, {"id": 755, "type": "primitive_type", "text": "uint64_t", "parent": 752, "children": [], "start_point": {"row": 150, "column": 15}, "end_point": {"row": 150, "column": 23}}, {"id": 756, "type": "init_declarator", "text": "v6 = buffer[offset + 6]", "parent": 752, "children": [757, 758, 759], "start_point": {"row": 150, "column": 24}, "end_point": {"row": 150, "column": 47}}, {"id": 757, "type": "identifier", "text": "v6", "parent": 756, "children": [], "start_point": {"row": 150, "column": 24}, "end_point": {"row": 150, "column": 26}}, {"id": 758, "type": "=", "text": "=", "parent": 756, "children": [], "start_point": {"row": 150, "column": 27}, "end_point": {"row": 150, "column": 28}}, {"id": 759, "type": "subscript_expression", "text": "buffer[offset + 6]", "parent": 756, "children": [760, 761], "start_point": {"row": 150, "column": 29}, "end_point": {"row": 150, "column": 47}}, {"id": 760, "type": "identifier", "text": "buffer", "parent": 759, "children": [], "start_point": {"row": 150, "column": 29}, "end_point": {"row": 150, "column": 35}}, {"id": 761, "type": "binary_expression", "text": "offset + 6", "parent": 759, "children": [762, 763, 764], "start_point": {"row": 150, "column": 36}, "end_point": {"row": 150, "column": 46}}, {"id": 762, "type": "identifier", "text": "offset", "parent": 761, "children": [], "start_point": {"row": 150, "column": 36}, "end_point": {"row": 150, "column": 42}}, {"id": 763, "type": "+", "text": "+", "parent": 761, "children": [], "start_point": {"row": 150, "column": 43}, "end_point": {"row": 150, "column": 44}}, {"id": 764, "type": "number_literal", "text": "6", "parent": 761, "children": [], "start_point": {"row": 150, "column": 45}, "end_point": {"row": 150, "column": 46}}, {"id": 765, "type": "declaration", "text": "const std::uint64_t v7 = buffer[offset + 7];", "parent": 657, "children": [766, 768, 769], "start_point": {"row": 151, "column": 4}, "end_point": {"row": 151, "column": 48}}, {"id": 766, "type": "ERROR", "text": "std::", "parent": 765, "children": [767], "start_point": {"row": 151, "column": 10}, "end_point": {"row": 151, "column": 15}}, {"id": 767, "type": "type_identifier", "text": "std", "parent": 766, "children": [], "start_point": {"row": 151, "column": 10}, "end_point": {"row": 151, "column": 13}}, {"id": 768, "type": "primitive_type", "text": "uint64_t", "parent": 765, "children": [], "start_point": {"row": 151, "column": 15}, "end_point": {"row": 151, "column": 23}}, {"id": 769, "type": "init_declarator", "text": "v7 = buffer[offset + 7]", "parent": 765, "children": [770, 771, 772], "start_point": {"row": 151, "column": 24}, "end_point": {"row": 151, "column": 47}}, {"id": 770, "type": "identifier", "text": "v7", "parent": 769, "children": [], "start_point": {"row": 151, "column": 24}, "end_point": {"row": 151, "column": 26}}, {"id": 771, "type": "=", "text": "=", "parent": 769, "children": [], "start_point": {"row": 151, "column": 27}, "end_point": {"row": 151, "column": 28}}, {"id": 772, "type": "subscript_expression", "text": "buffer[offset + 7]", "parent": 769, "children": [773, 774], "start_point": {"row": 151, "column": 29}, "end_point": {"row": 151, "column": 47}}, {"id": 773, "type": "identifier", "text": "buffer", "parent": 772, "children": [], "start_point": {"row": 151, "column": 29}, "end_point": {"row": 151, "column": 35}}, {"id": 774, "type": "binary_expression", "text": "offset + 7", "parent": 772, "children": [775, 776, 777], "start_point": {"row": 151, "column": 36}, "end_point": {"row": 151, "column": 46}}, {"id": 775, "type": "identifier", "text": "offset", "parent": 774, "children": [], "start_point": {"row": 151, "column": 36}, "end_point": {"row": 151, "column": 42}}, {"id": 776, "type": "+", "text": "+", "parent": 774, "children": [], "start_point": {"row": 151, "column": 43}, "end_point": {"row": 151, "column": 44}}, {"id": 777, "type": "number_literal", "text": "7", "parent": 774, "children": [], "start_point": {"row": 151, "column": 45}, "end_point": {"row": 151, "column": 46}}, {"id": 778, "type": "return_statement", "text": "return ((v7 << 56) | (v6 << 48) | (v5 << 40) | (v4 << 32) | (v3 << 24) |\n (v2 << 16) | (v1 << 8) | (v0 << 0));", "parent": 657, "children": [779], "start_point": {"row": 153, "column": 4}, "end_point": {"row": 154, "column": 48}}, {"id": 779, "type": "parenthesized_expression", "text": "((v7 << 56) | (v6 << 48) | (v5 << 40) | (v4 << 32) | (v3 << 24) |\n (v2 << 16) | (v1 << 8) | (v0 << 0))", "parent": 778, "children": [780], "start_point": {"row": 153, "column": 11}, "end_point": {"row": 154, "column": 47}}, {"id": 780, "type": "binary_expression", "text": "(v7 << 56) | (v6 << 48) | (v5 << 40) | (v4 << 32) | (v3 << 24) |\n (v2 << 16) | (v1 << 8) | (v0 << 0)", "parent": 779, "children": [781, 822], "start_point": {"row": 153, "column": 12}, "end_point": {"row": 154, "column": 46}}, {"id": 781, "type": "binary_expression", "text": "(v7 << 56) | (v6 << 48) | (v5 << 40) | (v4 << 32) | (v3 << 24) |\n (v2 << 16) | (v1 << 8)", "parent": 780, "children": [782, 817], "start_point": {"row": 153, "column": 12}, "end_point": {"row": 154, "column": 34}}, {"id": 782, "type": "binary_expression", "text": "(v7 << 56) | (v6 << 48) | (v5 << 40) | (v4 << 32) | (v3 << 24) |\n (v2 << 16)", "parent": 781, "children": [783, 812], "start_point": {"row": 153, "column": 12}, "end_point": {"row": 154, "column": 22}}, {"id": 783, "type": "binary_expression", "text": "(v7 << 56) | (v6 << 48) | (v5 << 40) | (v4 << 32) | (v3 << 24)", "parent": 782, "children": [784, 807], "start_point": {"row": 153, "column": 12}, "end_point": {"row": 153, "column": 74}}, {"id": 784, "type": "binary_expression", "text": "(v7 << 56) | (v6 << 48) | (v5 << 40) | (v4 << 32)", "parent": 783, "children": [785, 802], "start_point": {"row": 153, "column": 12}, "end_point": {"row": 153, "column": 61}}, {"id": 785, "type": "binary_expression", "text": "(v7 << 56) | (v6 << 48) | (v5 << 40)", "parent": 784, "children": [786, 797], "start_point": {"row": 153, "column": 12}, "end_point": {"row": 153, "column": 48}}, {"id": 786, "type": "binary_expression", "text": "(v7 << 56) | (v6 << 48)", "parent": 785, "children": [787, 792], "start_point": {"row": 153, "column": 12}, "end_point": {"row": 153, "column": 35}}, {"id": 787, "type": "parenthesized_expression", "text": "(v7 << 56)", "parent": 786, "children": [788], "start_point": {"row": 153, "column": 12}, "end_point": {"row": 153, "column": 22}}, {"id": 788, "type": "binary_expression", "text": "v7 << 56", "parent": 787, "children": [789, 790, 791], "start_point": {"row": 153, "column": 13}, "end_point": {"row": 153, "column": 21}}, {"id": 789, "type": "identifier", "text": "v7", "parent": 788, "children": [], "start_point": {"row": 153, "column": 13}, "end_point": {"row": 153, "column": 15}}, {"id": 790, "type": "<<", "text": "<<", "parent": 788, "children": [], "start_point": {"row": 153, "column": 16}, "end_point": {"row": 153, "column": 18}}, {"id": 791, "type": "number_literal", "text": "56", "parent": 788, "children": [], "start_point": {"row": 153, "column": 19}, "end_point": {"row": 153, "column": 21}}, {"id": 792, "type": "parenthesized_expression", "text": "(v6 << 48)", "parent": 786, "children": [793], "start_point": {"row": 153, "column": 25}, "end_point": {"row": 153, "column": 35}}, {"id": 793, "type": "binary_expression", "text": "v6 << 48", "parent": 792, "children": [794, 795, 796], "start_point": {"row": 153, "column": 26}, "end_point": {"row": 153, "column": 34}}, {"id": 794, "type": "identifier", "text": "v6", "parent": 793, "children": [], "start_point": {"row": 153, "column": 26}, "end_point": {"row": 153, "column": 28}}, {"id": 795, "type": "<<", "text": "<<", "parent": 793, "children": [], "start_point": {"row": 153, "column": 29}, "end_point": {"row": 153, "column": 31}}, {"id": 796, "type": "number_literal", "text": "48", "parent": 793, "children": [], "start_point": {"row": 153, "column": 32}, "end_point": {"row": 153, "column": 34}}, {"id": 797, "type": "parenthesized_expression", "text": "(v5 << 40)", "parent": 785, "children": [798], "start_point": {"row": 153, "column": 38}, "end_point": {"row": 153, "column": 48}}, {"id": 798, "type": "binary_expression", "text": "v5 << 40", "parent": 797, "children": [799, 800, 801], "start_point": {"row": 153, "column": 39}, "end_point": {"row": 153, "column": 47}}, {"id": 799, "type": "identifier", "text": "v5", "parent": 798, "children": [], "start_point": {"row": 153, "column": 39}, "end_point": {"row": 153, "column": 41}}, {"id": 800, "type": "<<", "text": "<<", "parent": 798, "children": [], "start_point": {"row": 153, "column": 42}, "end_point": {"row": 153, "column": 44}}, {"id": 801, "type": "number_literal", "text": "40", "parent": 798, "children": [], "start_point": {"row": 153, "column": 45}, "end_point": {"row": 153, "column": 47}}, {"id": 802, "type": "parenthesized_expression", "text": "(v4 << 32)", "parent": 784, "children": [803], "start_point": {"row": 153, "column": 51}, "end_point": {"row": 153, "column": 61}}, {"id": 803, "type": "binary_expression", "text": "v4 << 32", "parent": 802, "children": [804, 805, 806], "start_point": {"row": 153, "column": 52}, "end_point": {"row": 153, "column": 60}}, {"id": 804, "type": "identifier", "text": "v4", "parent": 803, "children": [], "start_point": {"row": 153, "column": 52}, "end_point": {"row": 153, "column": 54}}, {"id": 805, "type": "<<", "text": "<<", "parent": 803, "children": [], "start_point": {"row": 153, "column": 55}, "end_point": {"row": 153, "column": 57}}, {"id": 806, "type": "number_literal", "text": "32", "parent": 803, "children": [], "start_point": {"row": 153, "column": 58}, "end_point": {"row": 153, "column": 60}}, {"id": 807, "type": "parenthesized_expression", "text": "(v3 << 24)", "parent": 783, "children": [808], "start_point": {"row": 153, "column": 64}, "end_point": {"row": 153, "column": 74}}, {"id": 808, "type": "binary_expression", "text": "v3 << 24", "parent": 807, "children": [809, 810, 811], "start_point": {"row": 153, "column": 65}, "end_point": {"row": 153, "column": 73}}, {"id": 809, "type": "identifier", "text": "v3", "parent": 808, "children": [], "start_point": {"row": 153, "column": 65}, "end_point": {"row": 153, "column": 67}}, {"id": 810, "type": "<<", "text": "<<", "parent": 808, "children": [], "start_point": {"row": 153, "column": 68}, "end_point": {"row": 153, "column": 70}}, {"id": 811, "type": "number_literal", "text": "24", "parent": 808, "children": [], "start_point": {"row": 153, "column": 71}, "end_point": {"row": 153, "column": 73}}, {"id": 812, "type": "parenthesized_expression", "text": "(v2 << 16)", "parent": 782, "children": [813], "start_point": {"row": 154, "column": 12}, "end_point": {"row": 154, "column": 22}}, {"id": 813, "type": "binary_expression", "text": "v2 << 16", "parent": 812, "children": [814, 815, 816], "start_point": {"row": 154, "column": 13}, "end_point": {"row": 154, "column": 21}}, {"id": 814, "type": "identifier", "text": "v2", "parent": 813, "children": [], "start_point": {"row": 154, "column": 13}, "end_point": {"row": 154, "column": 15}}, {"id": 815, "type": "<<", "text": "<<", "parent": 813, "children": [], "start_point": {"row": 154, "column": 16}, "end_point": {"row": 154, "column": 18}}, {"id": 816, "type": "number_literal", "text": "16", "parent": 813, "children": [], "start_point": {"row": 154, "column": 19}, "end_point": {"row": 154, "column": 21}}, {"id": 817, "type": "parenthesized_expression", "text": "(v1 << 8)", "parent": 781, "children": [818], "start_point": {"row": 154, "column": 25}, "end_point": {"row": 154, "column": 34}}, {"id": 818, "type": "binary_expression", "text": "v1 << 8", "parent": 817, "children": [819, 820, 821], "start_point": {"row": 154, "column": 26}, "end_point": {"row": 154, "column": 33}}, {"id": 819, "type": "identifier", "text": "v1", "parent": 818, "children": [], "start_point": {"row": 154, "column": 26}, "end_point": {"row": 154, "column": 28}}, {"id": 820, "type": "<<", "text": "<<", "parent": 818, "children": [], "start_point": {"row": 154, "column": 29}, "end_point": {"row": 154, "column": 31}}, {"id": 821, "type": "number_literal", "text": "8", "parent": 818, "children": [], "start_point": {"row": 154, "column": 32}, "end_point": {"row": 154, "column": 33}}, {"id": 822, "type": "parenthesized_expression", "text": "(v0 << 0)", "parent": 780, "children": [823], "start_point": {"row": 154, "column": 37}, "end_point": {"row": 154, "column": 46}}, {"id": 823, "type": "binary_expression", "text": "v0 << 0", "parent": 822, "children": [824, 825, 826], "start_point": {"row": 154, "column": 38}, "end_point": {"row": 154, "column": 45}}, {"id": 824, "type": "identifier", "text": "v0", "parent": 823, "children": [], "start_point": {"row": 154, "column": 38}, "end_point": {"row": 154, "column": 40}}, {"id": 825, "type": "<<", "text": "<<", "parent": 823, "children": [], "start_point": {"row": 154, "column": 41}, "end_point": {"row": 154, "column": 43}}, {"id": 826, "type": "number_literal", "text": "0", "parent": 823, "children": [], "start_point": {"row": 154, "column": 44}, "end_point": {"row": 154, "column": 45}}, {"id": 827, "type": "function_definition", "text": "static constexpr std::uint64_t RotateLeft(const std::uint64_t x,\n const std::uint64_t b) {\n return (x << b) | (x >> (64 - b));\n }", "parent": 52, "children": [828, 830, 832, 833], "start_point": {"row": 157, "column": 2}, "end_point": {"row": 160, "column": 3}}, {"id": 828, "type": "type_qualifier", "text": "constexpr", "parent": 827, "children": [829], "start_point": {"row": 157, "column": 9}, "end_point": {"row": 157, "column": 18}}, {"id": 829, "type": "constexpr", "text": "constexpr", "parent": 828, "children": [], "start_point": {"row": 157, "column": 9}, "end_point": {"row": 157, "column": 18}}, {"id": 830, "type": "ERROR", "text": "std::", "parent": 827, "children": [831], "start_point": {"row": 157, "column": 19}, "end_point": {"row": 157, "column": 24}}, {"id": 831, "type": "type_identifier", "text": "std", "parent": 830, "children": [], "start_point": {"row": 157, "column": 19}, "end_point": {"row": 157, "column": 22}}, {"id": 832, "type": "primitive_type", "text": "uint64_t", "parent": 827, "children": [], "start_point": {"row": 157, "column": 24}, "end_point": {"row": 157, "column": 32}}, {"id": 833, "type": "function_declarator", "text": "RotateLeft(const std::uint64_t x,\n const std::uint64_t b)", "parent": 827, "children": [834, 835], "start_point": {"row": 157, "column": 33}, "end_point": {"row": 158, "column": 66}}, {"id": 834, "type": "identifier", "text": "RotateLeft", "parent": 833, "children": [], "start_point": {"row": 157, "column": 33}, "end_point": {"row": 157, "column": 43}}, {"id": 835, "type": "parameter_list", "text": "(const std::uint64_t x,\n const std::uint64_t b)", "parent": 833, "children": [836, 841], "start_point": {"row": 157, "column": 43}, "end_point": {"row": 158, "column": 66}}, {"id": 836, "type": "parameter_declaration", "text": "const std::uint64_t x", "parent": 835, "children": [837, 839, 840], "start_point": {"row": 157, "column": 44}, "end_point": {"row": 157, "column": 65}}, {"id": 837, "type": "ERROR", "text": "std::", "parent": 836, "children": [838], "start_point": {"row": 157, "column": 50}, "end_point": {"row": 157, "column": 55}}, {"id": 838, "type": "type_identifier", "text": "std", "parent": 837, "children": [], "start_point": {"row": 157, "column": 50}, "end_point": {"row": 157, "column": 53}}, {"id": 839, "type": "primitive_type", "text": "uint64_t", "parent": 836, "children": [], "start_point": {"row": 157, "column": 55}, "end_point": {"row": 157, "column": 63}}, {"id": 840, "type": "identifier", "text": "x", "parent": 836, "children": [], "start_point": {"row": 157, "column": 64}, "end_point": {"row": 157, "column": 65}}, {"id": 841, "type": "parameter_declaration", "text": "const std::uint64_t b", "parent": 835, "children": [842, 844, 845], "start_point": {"row": 158, "column": 44}, "end_point": {"row": 158, "column": 65}}, {"id": 842, "type": "ERROR", "text": "std::", "parent": 841, "children": [843], "start_point": {"row": 158, "column": 50}, "end_point": {"row": 158, "column": 55}}, {"id": 843, "type": "type_identifier", "text": "std", "parent": 842, "children": [], "start_point": {"row": 158, "column": 50}, "end_point": {"row": 158, "column": 53}}, {"id": 844, "type": "primitive_type", "text": "uint64_t", "parent": 841, "children": [], "start_point": {"row": 158, "column": 55}, "end_point": {"row": 158, "column": 63}}, {"id": 845, "type": "identifier", "text": "b", "parent": 841, "children": [], "start_point": {"row": 158, "column": 64}, "end_point": {"row": 158, "column": 65}}, {"id": 846, "type": "return_statement", "text": "return (x << b) | (x >> (64 - b));", "parent": 827, "children": [847], "start_point": {"row": 159, "column": 4}, "end_point": {"row": 159, "column": 38}}, {"id": 847, "type": "binary_expression", "text": "(x << b) | (x >> (64 - b))", "parent": 846, "children": [848, 853], "start_point": {"row": 159, "column": 11}, "end_point": {"row": 159, "column": 37}}, {"id": 848, "type": "parenthesized_expression", "text": "(x << b)", "parent": 847, "children": [849], "start_point": {"row": 159, "column": 11}, "end_point": {"row": 159, "column": 19}}, {"id": 849, "type": "binary_expression", "text": "x << b", "parent": 848, "children": [850, 851, 852], "start_point": {"row": 159, "column": 12}, "end_point": {"row": 159, "column": 18}}, {"id": 850, "type": "identifier", "text": "x", "parent": 849, "children": [], "start_point": {"row": 159, "column": 12}, "end_point": {"row": 159, "column": 13}}, {"id": 851, "type": "<<", "text": "<<", "parent": 849, "children": [], "start_point": {"row": 159, "column": 14}, "end_point": {"row": 159, "column": 16}}, {"id": 852, "type": "identifier", "text": "b", "parent": 849, "children": [], "start_point": {"row": 159, "column": 17}, "end_point": {"row": 159, "column": 18}}, {"id": 853, "type": "parenthesized_expression", "text": "(x >> (64 - b))", "parent": 847, "children": [854], "start_point": {"row": 159, "column": 22}, "end_point": {"row": 159, "column": 37}}, {"id": 854, "type": "binary_expression", "text": "x >> (64 - b)", "parent": 853, "children": [855, 856, 857], "start_point": {"row": 159, "column": 23}, "end_point": {"row": 159, "column": 36}}, {"id": 855, "type": "identifier", "text": "x", "parent": 854, "children": [], "start_point": {"row": 159, "column": 23}, "end_point": {"row": 159, "column": 24}}, {"id": 856, "type": ">>", "text": ">>", "parent": 854, "children": [], "start_point": {"row": 159, "column": 25}, "end_point": {"row": 159, "column": 27}}, {"id": 857, "type": "parenthesized_expression", "text": "(64 - b)", "parent": 854, "children": [858], "start_point": {"row": 159, "column": 28}, "end_point": {"row": 159, "column": 36}}, {"id": 858, "type": "binary_expression", "text": "64 - b", "parent": 857, "children": [859, 860, 861], "start_point": {"row": 159, "column": 29}, "end_point": {"row": 159, "column": 35}}, {"id": 859, "type": "number_literal", "text": "64", "parent": 858, "children": [], "start_point": {"row": 159, "column": 29}, "end_point": {"row": 159, "column": 31}}, {"id": 860, "type": "-", "text": "-", "parent": 858, "children": [], "start_point": {"row": 159, "column": 32}, "end_point": {"row": 159, "column": 33}}, {"id": 861, "type": "identifier", "text": "b", "parent": 858, "children": [], "start_point": {"row": 159, "column": 34}, "end_point": {"row": 159, "column": 35}}, {"id": 862, "type": "function_definition", "text": "static constexpr void Round(std::uint64_t (&v)[4]) {\n v[0] += v[1];\n v[1] = RotateLeft(v[1], 13);\n v[1] ^= v[0];\n v[0] = RotateLeft(v[0], 32);\n v[2] += v[3];\n v[3] = RotateLeft(v[3], 16);\n v[3] ^= v[2];\n v[0] += v[3];\n v[3] = RotateLeft(v[3], 21);\n v[3] ^= v[0];\n v[2] += v[1];\n v[1] = RotateLeft(v[1], 17);\n v[1] ^= v[2];\n v[2] = RotateLeft(v[2], 32);\n }", "parent": 52, "children": [863, 865, 866], "start_point": {"row": 162, "column": 2}, "end_point": {"row": 177, "column": 3}}, {"id": 863, "type": "type_qualifier", "text": "constexpr", "parent": 862, "children": [864], "start_point": {"row": 162, "column": 9}, "end_point": {"row": 162, "column": 18}}, {"id": 864, "type": "constexpr", "text": "constexpr", "parent": 863, "children": [], "start_point": {"row": 162, "column": 9}, "end_point": {"row": 162, "column": 18}}, {"id": 865, "type": "primitive_type", "text": "void", "parent": 862, "children": [], "start_point": {"row": 162, "column": 19}, "end_point": {"row": 162, "column": 23}}, {"id": 866, "type": "function_declarator", "text": "Round(std::uint64_t (&v)[4])", "parent": 862, "children": [867, 868], "start_point": {"row": 162, "column": 24}, "end_point": {"row": 162, "column": 52}}, {"id": 867, "type": "identifier", "text": "Round", "parent": 866, "children": [], "start_point": {"row": 162, "column": 24}, "end_point": {"row": 162, "column": 29}}, {"id": 868, "type": "parameter_list", "text": "(std::uint64_t (&v)[4])", "parent": 866, "children": [869, 871], "start_point": {"row": 162, "column": 29}, "end_point": {"row": 162, "column": 52}}, {"id": 869, "type": "ERROR", "text": "std::", "parent": 868, "children": [870], "start_point": {"row": 162, "column": 30}, "end_point": {"row": 162, "column": 35}}, {"id": 870, "type": "identifier", "text": "std", "parent": 869, "children": [], "start_point": {"row": 162, "column": 30}, "end_point": {"row": 162, "column": 33}}, {"id": 871, "type": "parameter_declaration", "text": "uint64_t (&v)[4]", "parent": 868, "children": [872, 873], "start_point": {"row": 162, "column": 35}, "end_point": {"row": 162, "column": 51}}, {"id": 872, "type": "primitive_type", "text": "uint64_t", "parent": 871, "children": [], "start_point": {"row": 162, "column": 35}, "end_point": {"row": 162, "column": 43}}, {"id": 873, "type": "abstract_array_declarator", "text": "(&v)[4]", "parent": 871, "children": [874, 878], "start_point": {"row": 162, "column": 44}, "end_point": {"row": 162, "column": 51}}, {"id": 874, "type": "abstract_function_declarator", "text": "(&v)", "parent": 873, "children": [875], "start_point": {"row": 162, "column": 44}, "end_point": {"row": 162, "column": 48}}, {"id": 875, "type": "parameter_list", "text": "(&v)", "parent": 874, "children": [876], "start_point": {"row": 162, "column": 44}, "end_point": {"row": 162, "column": 48}}, {"id": 876, "type": "parameter_declaration", "text": "v", "parent": 875, "children": [877], "start_point": {"row": 162, "column": 46}, "end_point": {"row": 162, "column": 47}}, {"id": 877, "type": "type_identifier", "text": "v", "parent": 876, "children": [], "start_point": {"row": 162, "column": 46}, "end_point": {"row": 162, "column": 47}}, {"id": 878, "type": "number_literal", "text": "4", "parent": 873, "children": [], "start_point": {"row": 162, "column": 49}, "end_point": {"row": 162, "column": 50}}, {"id": 879, "type": "assignment_expression", "text": "v[0] += v[1]", "parent": 862, "children": [880, 883, 884], "start_point": {"row": 163, "column": 4}, "end_point": {"row": 163, "column": 16}}, {"id": 880, "type": "subscript_expression", "text": "v[0]", "parent": 879, "children": [881, 882], "start_point": {"row": 163, "column": 4}, "end_point": {"row": 163, "column": 8}}, {"id": 881, "type": "identifier", "text": "v", "parent": 880, "children": [], "start_point": {"row": 163, "column": 4}, "end_point": {"row": 163, "column": 5}}, {"id": 882, "type": "number_literal", "text": "0", "parent": 880, "children": [], "start_point": {"row": 163, "column": 6}, "end_point": {"row": 163, "column": 7}}, {"id": 883, "type": "+=", "text": "+=", "parent": 879, "children": [], "start_point": {"row": 163, "column": 9}, "end_point": {"row": 163, "column": 11}}, {"id": 884, "type": "subscript_expression", "text": "v[1]", "parent": 879, "children": [885, 886], "start_point": {"row": 163, "column": 12}, "end_point": {"row": 163, "column": 16}}, {"id": 885, "type": "identifier", "text": "v", "parent": 884, "children": [], "start_point": {"row": 163, "column": 12}, "end_point": {"row": 163, "column": 13}}, {"id": 886, "type": "number_literal", "text": "1", "parent": 884, "children": [], "start_point": {"row": 163, "column": 14}, "end_point": {"row": 163, "column": 15}}, {"id": 887, "type": "assignment_expression", "text": "v[1] = RotateLeft(v[1], 13)", "parent": 862, "children": [888, 891, 892], "start_point": {"row": 164, "column": 4}, "end_point": {"row": 164, "column": 31}}, {"id": 888, "type": "subscript_expression", "text": "v[1]", "parent": 887, "children": [889, 890], "start_point": {"row": 164, "column": 4}, "end_point": {"row": 164, "column": 8}}, {"id": 889, "type": "identifier", "text": "v", "parent": 888, "children": [], "start_point": {"row": 164, "column": 4}, "end_point": {"row": 164, "column": 5}}, {"id": 890, "type": "number_literal", "text": "1", "parent": 888, "children": [], "start_point": {"row": 164, "column": 6}, "end_point": {"row": 164, "column": 7}}, {"id": 891, "type": "=", "text": "=", "parent": 887, "children": [], "start_point": {"row": 164, "column": 9}, "end_point": {"row": 164, "column": 10}}, {"id": 892, "type": "call_expression", "text": "RotateLeft(v[1], 13)", "parent": 887, "children": [893, 894], "start_point": {"row": 164, "column": 11}, "end_point": {"row": 164, "column": 31}}, {"id": 893, "type": "identifier", "text": "RotateLeft", "parent": 892, "children": [], "start_point": {"row": 164, "column": 11}, "end_point": {"row": 164, "column": 21}}, {"id": 894, "type": "argument_list", "text": "(v[1], 13)", "parent": 892, "children": [895, 898], "start_point": {"row": 164, "column": 21}, "end_point": {"row": 164, "column": 31}}, {"id": 895, "type": "subscript_expression", "text": "v[1]", "parent": 894, "children": [896, 897], "start_point": {"row": 164, "column": 22}, "end_point": {"row": 164, "column": 26}}, {"id": 896, "type": "identifier", "text": "v", "parent": 895, "children": [], "start_point": {"row": 164, "column": 22}, "end_point": {"row": 164, "column": 23}}, {"id": 897, "type": "number_literal", "text": "1", "parent": 895, "children": [], "start_point": {"row": 164, "column": 24}, "end_point": {"row": 164, "column": 25}}, {"id": 898, "type": "number_literal", "text": "13", "parent": 894, "children": [], "start_point": {"row": 164, "column": 28}, "end_point": {"row": 164, "column": 30}}, {"id": 899, "type": "assignment_expression", "text": "v[1] ^= v[0]", "parent": 862, "children": [900, 903, 904], "start_point": {"row": 165, "column": 4}, "end_point": {"row": 165, "column": 16}}, {"id": 900, "type": "subscript_expression", "text": "v[1]", "parent": 899, "children": [901, 902], "start_point": {"row": 165, "column": 4}, "end_point": {"row": 165, "column": 8}}, {"id": 901, "type": "identifier", "text": "v", "parent": 900, "children": [], "start_point": {"row": 165, "column": 4}, "end_point": {"row": 165, "column": 5}}, {"id": 902, "type": "number_literal", "text": "1", "parent": 900, "children": [], "start_point": {"row": 165, "column": 6}, "end_point": {"row": 165, "column": 7}}, {"id": 903, "type": "^=", "text": "^=", "parent": 899, "children": [], "start_point": {"row": 165, "column": 9}, "end_point": {"row": 165, "column": 11}}, {"id": 904, "type": "subscript_expression", "text": "v[0]", "parent": 899, "children": [905, 906], "start_point": {"row": 165, "column": 12}, "end_point": {"row": 165, "column": 16}}, {"id": 905, "type": "identifier", "text": "v", "parent": 904, "children": [], "start_point": {"row": 165, "column": 12}, "end_point": {"row": 165, "column": 13}}, {"id": 906, "type": "number_literal", "text": "0", "parent": 904, "children": [], "start_point": {"row": 165, "column": 14}, "end_point": {"row": 165, "column": 15}}, {"id": 907, "type": "assignment_expression", "text": "v[0] = RotateLeft(v[0], 32)", "parent": 862, "children": [908, 911, 912], "start_point": {"row": 166, "column": 4}, "end_point": {"row": 166, "column": 31}}, {"id": 908, "type": "subscript_expression", "text": "v[0]", "parent": 907, "children": [909, 910], "start_point": {"row": 166, "column": 4}, "end_point": {"row": 166, "column": 8}}, {"id": 909, "type": "identifier", "text": "v", "parent": 908, "children": [], "start_point": {"row": 166, "column": 4}, "end_point": {"row": 166, "column": 5}}, {"id": 910, "type": "number_literal", "text": "0", "parent": 908, "children": [], "start_point": {"row": 166, "column": 6}, "end_point": {"row": 166, "column": 7}}, {"id": 911, "type": "=", "text": "=", "parent": 907, "children": [], "start_point": {"row": 166, "column": 9}, "end_point": {"row": 166, "column": 10}}, {"id": 912, "type": "call_expression", "text": "RotateLeft(v[0], 32)", "parent": 907, "children": [913, 914], "start_point": {"row": 166, "column": 11}, "end_point": {"row": 166, "column": 31}}, {"id": 913, "type": "identifier", "text": "RotateLeft", "parent": 912, "children": [], "start_point": {"row": 166, "column": 11}, "end_point": {"row": 166, "column": 21}}, {"id": 914, "type": "argument_list", "text": "(v[0], 32)", "parent": 912, "children": [915, 918], "start_point": {"row": 166, "column": 21}, "end_point": {"row": 166, "column": 31}}, {"id": 915, "type": "subscript_expression", "text": "v[0]", "parent": 914, "children": [916, 917], "start_point": {"row": 166, "column": 22}, "end_point": {"row": 166, "column": 26}}, {"id": 916, "type": "identifier", "text": "v", "parent": 915, "children": [], "start_point": {"row": 166, "column": 22}, "end_point": {"row": 166, "column": 23}}, {"id": 917, "type": "number_literal", "text": "0", "parent": 915, "children": [], "start_point": {"row": 166, "column": 24}, "end_point": {"row": 166, "column": 25}}, {"id": 918, "type": "number_literal", "text": "32", "parent": 914, "children": [], "start_point": {"row": 166, "column": 28}, "end_point": {"row": 166, "column": 30}}, {"id": 919, "type": "assignment_expression", "text": "v[2] += v[3]", "parent": 862, "children": [920, 923, 924], "start_point": {"row": 167, "column": 4}, "end_point": {"row": 167, "column": 16}}, {"id": 920, "type": "subscript_expression", "text": "v[2]", "parent": 919, "children": [921, 922], "start_point": {"row": 167, "column": 4}, "end_point": {"row": 167, "column": 8}}, {"id": 921, "type": "identifier", "text": "v", "parent": 920, "children": [], "start_point": {"row": 167, "column": 4}, "end_point": {"row": 167, "column": 5}}, {"id": 922, "type": "number_literal", "text": "2", "parent": 920, "children": [], "start_point": {"row": 167, "column": 6}, "end_point": {"row": 167, "column": 7}}, {"id": 923, "type": "+=", "text": "+=", "parent": 919, "children": [], "start_point": {"row": 167, "column": 9}, "end_point": {"row": 167, "column": 11}}, {"id": 924, "type": "subscript_expression", "text": "v[3]", "parent": 919, "children": [925, 926], "start_point": {"row": 167, "column": 12}, "end_point": {"row": 167, "column": 16}}, {"id": 925, "type": "identifier", "text": "v", "parent": 924, "children": [], "start_point": {"row": 167, "column": 12}, "end_point": {"row": 167, "column": 13}}, {"id": 926, "type": "number_literal", "text": "3", "parent": 924, "children": [], "start_point": {"row": 167, "column": 14}, "end_point": {"row": 167, "column": 15}}, {"id": 927, "type": "assignment_expression", "text": "v[3] = RotateLeft(v[3], 16)", "parent": 862, "children": [928, 931, 932], "start_point": {"row": 168, "column": 4}, "end_point": {"row": 168, "column": 31}}, {"id": 928, "type": "subscript_expression", "text": "v[3]", "parent": 927, "children": [929, 930], "start_point": {"row": 168, "column": 4}, "end_point": {"row": 168, "column": 8}}, {"id": 929, "type": "identifier", "text": "v", "parent": 928, "children": [], "start_point": {"row": 168, "column": 4}, "end_point": {"row": 168, "column": 5}}, {"id": 930, "type": "number_literal", "text": "3", "parent": 928, "children": [], "start_point": {"row": 168, "column": 6}, "end_point": {"row": 168, "column": 7}}, {"id": 931, "type": "=", "text": "=", "parent": 927, "children": [], "start_point": {"row": 168, "column": 9}, "end_point": {"row": 168, "column": 10}}, {"id": 932, "type": "call_expression", "text": "RotateLeft(v[3], 16)", "parent": 927, "children": [933, 934], "start_point": {"row": 168, "column": 11}, "end_point": {"row": 168, "column": 31}}, {"id": 933, "type": "identifier", "text": "RotateLeft", "parent": 932, "children": [], "start_point": {"row": 168, "column": 11}, "end_point": {"row": 168, "column": 21}}, {"id": 934, "type": "argument_list", "text": "(v[3], 16)", "parent": 932, "children": [935, 938], "start_point": {"row": 168, "column": 21}, "end_point": {"row": 168, "column": 31}}, {"id": 935, "type": "subscript_expression", "text": "v[3]", "parent": 934, "children": [936, 937], "start_point": {"row": 168, "column": 22}, "end_point": {"row": 168, "column": 26}}, {"id": 936, "type": "identifier", "text": "v", "parent": 935, "children": [], "start_point": {"row": 168, "column": 22}, "end_point": {"row": 168, "column": 23}}, {"id": 937, "type": "number_literal", "text": "3", "parent": 935, "children": [], "start_point": {"row": 168, "column": 24}, "end_point": {"row": 168, "column": 25}}, {"id": 938, "type": "number_literal", "text": "16", "parent": 934, "children": [], "start_point": {"row": 168, "column": 28}, "end_point": {"row": 168, "column": 30}}, {"id": 939, "type": "assignment_expression", "text": "v[3] ^= v[2]", "parent": 862, "children": [940, 943, 944], "start_point": {"row": 169, "column": 4}, "end_point": {"row": 169, "column": 16}}, {"id": 940, "type": "subscript_expression", "text": "v[3]", "parent": 939, "children": [941, 942], "start_point": {"row": 169, "column": 4}, "end_point": {"row": 169, "column": 8}}, {"id": 941, "type": "identifier", "text": "v", "parent": 940, "children": [], "start_point": {"row": 169, "column": 4}, "end_point": {"row": 169, "column": 5}}, {"id": 942, "type": "number_literal", "text": "3", "parent": 940, "children": [], "start_point": {"row": 169, "column": 6}, "end_point": {"row": 169, "column": 7}}, {"id": 943, "type": "^=", "text": "^=", "parent": 939, "children": [], "start_point": {"row": 169, "column": 9}, "end_point": {"row": 169, "column": 11}}, {"id": 944, "type": "subscript_expression", "text": "v[2]", "parent": 939, "children": [945, 946], "start_point": {"row": 169, "column": 12}, "end_point": {"row": 169, "column": 16}}, {"id": 945, "type": "identifier", "text": "v", "parent": 944, "children": [], "start_point": {"row": 169, "column": 12}, "end_point": {"row": 169, "column": 13}}, {"id": 946, "type": "number_literal", "text": "2", "parent": 944, "children": [], "start_point": {"row": 169, "column": 14}, "end_point": {"row": 169, "column": 15}}, {"id": 947, "type": "assignment_expression", "text": "v[0] += v[3]", "parent": 862, "children": [948, 951, 952], "start_point": {"row": 170, "column": 4}, "end_point": {"row": 170, "column": 16}}, {"id": 948, "type": "subscript_expression", "text": "v[0]", "parent": 947, "children": [949, 950], "start_point": {"row": 170, "column": 4}, "end_point": {"row": 170, "column": 8}}, {"id": 949, "type": "identifier", "text": "v", "parent": 948, "children": [], "start_point": {"row": 170, "column": 4}, "end_point": {"row": 170, "column": 5}}, {"id": 950, "type": "number_literal", "text": "0", "parent": 948, "children": [], "start_point": {"row": 170, "column": 6}, "end_point": {"row": 170, "column": 7}}, {"id": 951, "type": "+=", "text": "+=", "parent": 947, "children": [], "start_point": {"row": 170, "column": 9}, "end_point": {"row": 170, "column": 11}}, {"id": 952, "type": "subscript_expression", "text": "v[3]", "parent": 947, "children": [953, 954], "start_point": {"row": 170, "column": 12}, "end_point": {"row": 170, "column": 16}}, {"id": 953, "type": "identifier", "text": "v", "parent": 952, "children": [], "start_point": {"row": 170, "column": 12}, "end_point": {"row": 170, "column": 13}}, {"id": 954, "type": "number_literal", "text": "3", "parent": 952, "children": [], "start_point": {"row": 170, "column": 14}, "end_point": {"row": 170, "column": 15}}, {"id": 955, "type": "assignment_expression", "text": "v[3] = RotateLeft(v[3], 21)", "parent": 862, "children": [956, 959, 960], "start_point": {"row": 171, "column": 4}, "end_point": {"row": 171, "column": 31}}, {"id": 956, "type": "subscript_expression", "text": "v[3]", "parent": 955, "children": [957, 958], "start_point": {"row": 171, "column": 4}, "end_point": {"row": 171, "column": 8}}, {"id": 957, "type": "identifier", "text": "v", "parent": 956, "children": [], "start_point": {"row": 171, "column": 4}, "end_point": {"row": 171, "column": 5}}, {"id": 958, "type": "number_literal", "text": "3", "parent": 956, "children": [], "start_point": {"row": 171, "column": 6}, "end_point": {"row": 171, "column": 7}}, {"id": 959, "type": "=", "text": "=", "parent": 955, "children": [], "start_point": {"row": 171, "column": 9}, "end_point": {"row": 171, "column": 10}}, {"id": 960, "type": "call_expression", "text": "RotateLeft(v[3], 21)", "parent": 955, "children": [961, 962], "start_point": {"row": 171, "column": 11}, "end_point": {"row": 171, "column": 31}}, {"id": 961, "type": "identifier", "text": "RotateLeft", "parent": 960, "children": [], "start_point": {"row": 171, "column": 11}, "end_point": {"row": 171, "column": 21}}, {"id": 962, "type": "argument_list", "text": "(v[3], 21)", "parent": 960, "children": [963, 966], "start_point": {"row": 171, "column": 21}, "end_point": {"row": 171, "column": 31}}, {"id": 963, "type": "subscript_expression", "text": "v[3]", "parent": 962, "children": [964, 965], "start_point": {"row": 171, "column": 22}, "end_point": {"row": 171, "column": 26}}, {"id": 964, "type": "identifier", "text": "v", "parent": 963, "children": [], "start_point": {"row": 171, "column": 22}, "end_point": {"row": 171, "column": 23}}, {"id": 965, "type": "number_literal", "text": "3", "parent": 963, "children": [], "start_point": {"row": 171, "column": 24}, "end_point": {"row": 171, "column": 25}}, {"id": 966, "type": "number_literal", "text": "21", "parent": 962, "children": [], "start_point": {"row": 171, "column": 28}, "end_point": {"row": 171, "column": 30}}, {"id": 967, "type": "assignment_expression", "text": "v[3] ^= v[0]", "parent": 862, "children": [968, 971, 972], "start_point": {"row": 172, "column": 4}, "end_point": {"row": 172, "column": 16}}, {"id": 968, "type": "subscript_expression", "text": "v[3]", "parent": 967, "children": [969, 970], "start_point": {"row": 172, "column": 4}, "end_point": {"row": 172, "column": 8}}, {"id": 969, "type": "identifier", "text": "v", "parent": 968, "children": [], "start_point": {"row": 172, "column": 4}, "end_point": {"row": 172, "column": 5}}, {"id": 970, "type": "number_literal", "text": "3", "parent": 968, "children": [], "start_point": {"row": 172, "column": 6}, "end_point": {"row": 172, "column": 7}}, {"id": 971, "type": "^=", "text": "^=", "parent": 967, "children": [], "start_point": {"row": 172, "column": 9}, "end_point": {"row": 172, "column": 11}}, {"id": 972, "type": "subscript_expression", "text": "v[0]", "parent": 967, "children": [973, 974], "start_point": {"row": 172, "column": 12}, "end_point": {"row": 172, "column": 16}}, {"id": 973, "type": "identifier", "text": "v", "parent": 972, "children": [], "start_point": {"row": 172, "column": 12}, "end_point": {"row": 172, "column": 13}}, {"id": 974, "type": "number_literal", "text": "0", "parent": 972, "children": [], "start_point": {"row": 172, "column": 14}, "end_point": {"row": 172, "column": 15}}, {"id": 975, "type": "assignment_expression", "text": "v[2] += v[1]", "parent": 862, "children": [976, 979, 980], "start_point": {"row": 173, "column": 4}, "end_point": {"row": 173, "column": 16}}, {"id": 976, "type": "subscript_expression", "text": "v[2]", "parent": 975, "children": [977, 978], "start_point": {"row": 173, "column": 4}, "end_point": {"row": 173, "column": 8}}, {"id": 977, "type": "identifier", "text": "v", "parent": 976, "children": [], "start_point": {"row": 173, "column": 4}, "end_point": {"row": 173, "column": 5}}, {"id": 978, "type": "number_literal", "text": "2", "parent": 976, "children": [], "start_point": {"row": 173, "column": 6}, "end_point": {"row": 173, "column": 7}}, {"id": 979, "type": "+=", "text": "+=", "parent": 975, "children": [], "start_point": {"row": 173, "column": 9}, "end_point": {"row": 173, "column": 11}}, {"id": 980, "type": "subscript_expression", "text": "v[1]", "parent": 975, "children": [981, 982], "start_point": {"row": 173, "column": 12}, "end_point": {"row": 173, "column": 16}}, {"id": 981, "type": "identifier", "text": "v", "parent": 980, "children": [], "start_point": {"row": 173, "column": 12}, "end_point": {"row": 173, "column": 13}}, {"id": 982, "type": "number_literal", "text": "1", "parent": 980, "children": [], "start_point": {"row": 173, "column": 14}, "end_point": {"row": 173, "column": 15}}, {"id": 983, "type": "assignment_expression", "text": "v[1] = RotateLeft(v[1], 17)", "parent": 862, "children": [984, 987, 988], "start_point": {"row": 174, "column": 4}, "end_point": {"row": 174, "column": 31}}, {"id": 984, "type": "subscript_expression", "text": "v[1]", "parent": 983, "children": [985, 986], "start_point": {"row": 174, "column": 4}, "end_point": {"row": 174, "column": 8}}, {"id": 985, "type": "identifier", "text": "v", "parent": 984, "children": [], "start_point": {"row": 174, "column": 4}, "end_point": {"row": 174, "column": 5}}, {"id": 986, "type": "number_literal", "text": "1", "parent": 984, "children": [], "start_point": {"row": 174, "column": 6}, "end_point": {"row": 174, "column": 7}}, {"id": 987, "type": "=", "text": "=", "parent": 983, "children": [], "start_point": {"row": 174, "column": 9}, "end_point": {"row": 174, "column": 10}}, {"id": 988, "type": "call_expression", "text": "RotateLeft(v[1], 17)", "parent": 983, "children": [989, 990], "start_point": {"row": 174, "column": 11}, "end_point": {"row": 174, "column": 31}}, {"id": 989, "type": "identifier", "text": "RotateLeft", "parent": 988, "children": [], "start_point": {"row": 174, "column": 11}, "end_point": {"row": 174, "column": 21}}, {"id": 990, "type": "argument_list", "text": "(v[1], 17)", "parent": 988, "children": [991, 994], "start_point": {"row": 174, "column": 21}, "end_point": {"row": 174, "column": 31}}, {"id": 991, "type": "subscript_expression", "text": "v[1]", "parent": 990, "children": [992, 993], "start_point": {"row": 174, "column": 22}, "end_point": {"row": 174, "column": 26}}, {"id": 992, "type": "identifier", "text": "v", "parent": 991, "children": [], "start_point": {"row": 174, "column": 22}, "end_point": {"row": 174, "column": 23}}, {"id": 993, "type": "number_literal", "text": "1", "parent": 991, "children": [], "start_point": {"row": 174, "column": 24}, "end_point": {"row": 174, "column": 25}}, {"id": 994, "type": "number_literal", "text": "17", "parent": 990, "children": [], "start_point": {"row": 174, "column": 28}, "end_point": {"row": 174, "column": 30}}, {"id": 995, "type": "assignment_expression", "text": "v[1] ^= v[2]", "parent": 862, "children": [996, 999, 1000], "start_point": {"row": 175, "column": 4}, "end_point": {"row": 175, "column": 16}}, {"id": 996, "type": "subscript_expression", "text": "v[1]", "parent": 995, "children": [997, 998], "start_point": {"row": 175, "column": 4}, "end_point": {"row": 175, "column": 8}}, {"id": 997, "type": "identifier", "text": "v", "parent": 996, "children": [], "start_point": {"row": 175, "column": 4}, "end_point": {"row": 175, "column": 5}}, {"id": 998, "type": "number_literal", "text": "1", "parent": 996, "children": [], "start_point": {"row": 175, "column": 6}, "end_point": {"row": 175, "column": 7}}, {"id": 999, "type": "^=", "text": "^=", "parent": 995, "children": [], "start_point": {"row": 175, "column": 9}, "end_point": {"row": 175, "column": 11}}, {"id": 1000, "type": "subscript_expression", "text": "v[2]", "parent": 995, "children": [1001, 1002], "start_point": {"row": 175, "column": 12}, "end_point": {"row": 175, "column": 16}}, {"id": 1001, "type": "identifier", "text": "v", "parent": 1000, "children": [], "start_point": {"row": 175, "column": 12}, "end_point": {"row": 175, "column": 13}}, {"id": 1002, "type": "number_literal", "text": "2", "parent": 1000, "children": [], "start_point": {"row": 175, "column": 14}, "end_point": {"row": 175, "column": 15}}, {"id": 1003, "type": "assignment_expression", "text": "v[2] = RotateLeft(v[2], 32)", "parent": 862, "children": [1004, 1007, 1008], "start_point": {"row": 176, "column": 4}, "end_point": {"row": 176, "column": 31}}, {"id": 1004, "type": "subscript_expression", "text": "v[2]", "parent": 1003, "children": [1005, 1006], "start_point": {"row": 176, "column": 4}, "end_point": {"row": 176, "column": 8}}, {"id": 1005, "type": "identifier", "text": "v", "parent": 1004, "children": [], "start_point": {"row": 176, "column": 4}, "end_point": {"row": 176, "column": 5}}, {"id": 1006, "type": "number_literal", "text": "2", "parent": 1004, "children": [], "start_point": {"row": 176, "column": 6}, "end_point": {"row": 176, "column": 7}}, {"id": 1007, "type": "=", "text": "=", "parent": 1003, "children": [], "start_point": {"row": 176, "column": 9}, "end_point": {"row": 176, "column": 10}}, {"id": 1008, "type": "call_expression", "text": "RotateLeft(v[2], 32)", "parent": 1003, "children": [1009, 1010], "start_point": {"row": 176, "column": 11}, "end_point": {"row": 176, "column": 31}}, {"id": 1009, "type": "identifier", "text": "RotateLeft", "parent": 1008, "children": [], "start_point": {"row": 176, "column": 11}, "end_point": {"row": 176, "column": 21}}, {"id": 1010, "type": "argument_list", "text": "(v[2], 32)", "parent": 1008, "children": [1011, 1014], "start_point": {"row": 176, "column": 21}, "end_point": {"row": 176, "column": 31}}, {"id": 1011, "type": "subscript_expression", "text": "v[2]", "parent": 1010, "children": [1012, 1013], "start_point": {"row": 176, "column": 22}, "end_point": {"row": 176, "column": 26}}, {"id": 1012, "type": "identifier", "text": "v", "parent": 1011, "children": [], "start_point": {"row": 176, "column": 22}, "end_point": {"row": 176, "column": 23}}, {"id": 1013, "type": "number_literal", "text": "2", "parent": 1011, "children": [], "start_point": {"row": 176, "column": 24}, "end_point": {"row": 176, "column": 25}}, {"id": 1014, "type": "number_literal", "text": "32", "parent": 1010, "children": [], "start_point": {"row": 176, "column": 28}, "end_point": {"row": 176, "column": 30}}, {"id": 1015, "type": "preproc_call", "text": "#endif // LIBNOP_INCLUDE_NOP_UTILITY_SIP_HASH_H_\n", "parent": 0, "children": [1016], "start_point": {"row": 182, "column": 0}, "end_point": {"row": 183, "column": 0}}, {"id": 1016, "type": "preproc_directive", "text": "#endif", "parent": 1015, "children": [], "start_point": {"row": 182, "column": 0}, "end_point": {"row": 182, "column": 6}}]}, "node_categories": {"declarations": {"functions": [52, 90, 107, 113, 124, 189, 209, 232, 657, 663, 827, 833, 862, 866, 874], "variables": [38, 70, 93, 119, 128, 136, 144, 148, 169, 182, 192, 201, 206, 212, 235, 240, 245, 248, 260, 272, 283, 296, 353, 369, 666, 669, 674, 687, 700, 713, 726, 739, 752, 765, 836, 841, 871, 876], "classes": [156, 166, 167], "imports": [6, 7, 9, 10, 12, 13], "modules": [], "enums": [158]}, "statements": {"expressions": [18, 19, 28, 31, 32, 33, 45, 65, 97, 177, 255, 267, 268, 279, 290, 308, 315, 321, 322, 327, 333, 339, 345, 359, 374, 380, 385, 389, 394, 401, 406, 410, 417, 418, 419, 421, 431, 435, 442, 443, 444, 446, 456, 460, 467, 468, 469, 471, 481, 485, 492, 493, 494, 496, 506, 510, 517, 518, 519, 521, 531, 535, 542, 543, 544, 546, 556, 560, 567, 568, 569, 571, 584, 589, 593, 598, 604, 609, 613, 617, 621, 628, 629, 630, 631, 635, 639, 643, 649, 650, 681, 683, 694, 696, 707, 709, 720, 722, 733, 735, 746, 748, 759, 761, 772, 774, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 792, 793, 797, 798, 802, 803, 807, 808, 812, 813, 817, 818, 822, 823, 847, 848, 849, 853, 854, 857, 858, 880, 884, 888, 892, 895, 900, 904, 908, 912, 915, 920, 924, 928, 932, 935, 940, 944, 948, 952, 956, 960, 963, 968, 972, 976, 980, 984, 988, 991, 996, 1000, 1004, 1008, 1011], "assignments": [99, 326, 332, 338, 344, 363, 379, 393, 407, 432, 457, 482, 507, 532, 557, 583, 597, 603, 625, 879, 887, 899, 907, 919, 927, 939, 947, 955, 967, 975, 983, 995, 1003], "loops": [350], "conditionals": [1, 2, 5, 15, 16, 20, 22, 24, 26, 29, 34, 39, 41, 43, 46, 48, 50, 53, 55, 56, 58, 59, 61, 63, 64, 66, 67, 69, 71, 73, 74, 76, 79, 81, 83, 84, 85, 87, 88, 91, 94, 96, 98, 100, 104, 106, 108, 111, 114, 118, 120, 122, 126, 130, 132, 134, 135, 138, 141, 143, 146, 149, 152, 154, 157, 159, 162, 164, 168, 170, 173, 174, 175, 178, 180, 183, 186, 190, 193, 194, 196, 198, 200, 203, 205, 208, 210, 213, 216, 218, 219, 220, 222, 224, 225, 227, 230, 233, 236, 237, 239, 242, 244, 247, 250, 253, 257, 262, 265, 269, 270, 274, 277, 280, 282, 285, 288, 291, 293, 295, 300, 309, 313, 316, 318, 323, 328, 331, 334, 337, 340, 343, 346, 349, 352, 356, 360, 362, 364, 366, 368, 372, 375, 377, 378, 381, 384, 386, 388, 390, 392, 395, 398, 399, 400, 402, 403, 404, 408, 411, 413, 420, 422, 427, 428, 429, 433, 436, 438, 445, 447, 452, 453, 454, 458, 461, 463, 470, 472, 477, 478, 479, 483, 486, 488, 495, 497, 502, 503, 504, 508, 511, 513, 520, 522, 527, 528, 529, 533, 536, 538, 545, 547, 552, 553, 554, 558, 561, 563, 570, 572, 577, 578, 579, 585, 588, 590, 592, 594, 596, 599, 602, 605, 610, 612, 614, 616, 618, 620, 622, 624, 626, 632, 636, 640, 644, 647, 651, 654, 655, 658, 661, 664, 667, 668, 671, 673, 676, 679, 682, 684, 689, 692, 695, 697, 702, 705, 708, 710, 715, 718, 721, 723, 728, 731, 734, 736, 741, 744, 747, 749, 754, 757, 760, 762, 767, 770, 773, 775, 789, 794, 799, 804, 809, 814, 819, 824, 828, 831, 834, 838, 840, 843, 845, 850, 852, 855, 861, 863, 867, 870, 877, 881, 885, 889, 893, 896, 901, 905, 909, 913, 916, 921, 925, 929, 933, 936, 941, 945, 949, 953, 957, 961, 964, 969, 973, 977, 981, 985, 989, 992, 997, 1001, 1005, 1009, 1012], "returns": [646, 778, 846], "exceptions": []}, "expressions": {"calls": [1015], "literals": [8, 11, 14, 36, 37, 301, 304, 305, 306, 307, 325, 329, 335, 341, 347, 358, 382, 396, 405, 424, 426, 430, 449, 451, 455, 474, 476, 480, 499, 501, 505, 524, 526, 530, 549, 551, 555, 574, 576, 580, 586, 600, 606, 608, 633, 637, 641, 645, 686, 699, 712, 725, 738, 751, 764, 777, 791, 796, 801, 806, 811, 816, 821, 826, 859, 878, 882, 886, 890, 897, 898, 902, 906, 910, 917, 918, 922, 926, 930, 937, 938, 942, 946, 950, 954, 958, 965, 966, 970, 974, 978, 982, 986, 993, 994, 998, 1002, 1006, 1013, 1014], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": [176]}}, "cross_language_map": {"function_declarations": [{"node_id": 52, "universal_type": "function", "name": "HashValue", "text_snippet": "constexpr BlockReader(const ValueType (&value)[Size])\n : data_{value}, size_{Size} {}\n constex"}, {"node_id": 90, "universal_type": "function", "name": "unknown", "text_snippet": "BlockReader(const BlockReader&)"}, {"node_id": 107, "universal_type": "function", "name": "HashValue", "text_snippet": "constexpr std::size_t size() const { return size_; }\n constexpr ValueType operator[](const std::siz"}, {"node_id": 113, "universal_type": "function", "name": "unknown", "text_snippet": "size()"}, {"node_id": 124, "universal_type": "function", "name": "unknown", "text_snippet": "operator[](const std::size_t index) const"}, {"node_id": 189, "universal_type": "function", "name": "unknown", "text_snippet": "Compute(const T (&buffer)[Size],\n std::uint64_t k0, std::uin"}, {"node_id": 209, "universal_type": "function", "name": "unknown", "text_snippet": "Compute(BlockReader<T>(buffer)"}, {"node_id": 232, "universal_type": "function", "name": "unknown", "text_snippet": "Compute(const BufferType buffer,\n std::uint64_t k0, std::uin"}, {"node_id": 657, "universal_type": "function", "name": "unknown", "text_snippet": "constexpr std::uint64_t ReadBlock(const BufferType buffer,\n "}, {"node_id": 663, "universal_type": "function", "name": "unknown", "text_snippet": "ReadBlock(const BufferType buffer,\n const std::size_t offs"}, {"node_id": 827, "universal_type": "function", "name": "unknown", "text_snippet": "static constexpr std::uint64_t RotateLeft(const std::uint64_t x,\n "}, {"node_id": 833, "universal_type": "function", "name": "unknown", "text_snippet": "RotateLeft(const std::uint64_t x,\n const std::uint64_t b)"}, {"node_id": 862, "universal_type": "function", "name": "Round", "text_snippet": "static constexpr void Round(std::uint64_t (&v)[4]) {\n v[0] += v[1];\n v[1] = RotateLeft(v[1], 1"}, {"node_id": 866, "universal_type": "function", "name": "unknown", "text_snippet": "Round(std::uint64_t (&v)[4])"}, {"node_id": 874, "universal_type": "function", "name": "unknown", "text_snippet": "(&v)"}], "class_declarations": [{"node_id": 156, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 166, "universal_type": "class", "name": "SipHash", "text_snippet": "struct SipHash {\n template <typename T, std::size_t Size>\n static constexpr std::uint64_t Compute("}, {"node_id": 167, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "#include <array>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <cstdint>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <nop/utility/compiler.h>\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "/*\n * Copyright 2017 The Native Object Protocols Authors\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#ifndef LIBNOP_INCLUDE_NOP_UTILITY_SIP_HASH_H_\n#define LIBNOP_INCLUDE_NOP_UTILITY_SIP_HASH_H_\n\n#include <array>\n#include <cstdint>\n\n#include <nop/utility/compiler.h>\n\n// A direct port of the SipHash C reference implementation.\n//\n// https://131002.net/siphash/siphash24.c\n//\n// This version supports compile-time constexpr hash computation when provided\n// with a byte container that supports constexpr size() and operator[] methods.\n//\n\nnamespace nop {\n\n// A simple byte container/wrapper with constexpr size() and operator[] methods.\ntemplate <typename T>\nclass BlockReader {\n public:\n static_assert(sizeof(T) == 1, \"sizeof(T) != 1\");\n using ValueType = T;\n\n template <std::size_t Size>\n constexpr BlockReader(const ValueType (&value)[Size])\n : data_{value}, size_{Size} {}\n constexpr BlockReader(const ValueType* data, std::size_t size)\n : data_{data}, size_{size} {}\n\n BlockReader(const BlockReader&) = default;\n BlockReader& operator=(const BlockReader&) = default;\n\n constexpr std::size_t size() const { return size_; }\n constexpr ValueType operator[](const std::size_t index) const {\n return data_[index];\n }\n\n private:\n const ValueType* data_;\n std::size_t size_;\n};\n\n// Captures a hash value as a compile-time type.\ntemplate <std::uint64_t Hash_>\nstruct HashValue {\n enum : std::uint64_t { Value = Hash_ };\n};\n\nstruct SipHash {\n template <typename T, std::size_t Size>\n static constexpr std::uint64_t Compute(const T (&buffer)[Size],\n std::uint64_t k0, std::uint64_t k1) {\n return Compute(BlockReader<T>(buffer), k0, k1);\n }\n\n template <typename BufferType>\n static constexpr std::uint64_t Compute(const BufferType buffer,\n std::uint64_t k0, std::uint64_t k1) {\n const std::size_t kBlockSize = sizeof(std::uint64_t);\n const std::size_t kLength = buffer.size();\n const std::size_t kLeftOver = kLength % kBlockSize;\n const std::size_t kEndOffset = kLength - kLeftOver;\n\n std::uint64_t v[4] = {0x736f6d6570736575ULL, 0x646f72616e646f6dULL,\n 0x6c7967656e657261ULL, 0x7465646279746573ULL};\n\n std::uint64_t b = static_cast<std::uint64_t>(kLength) << 56;\n\n v[3] ^= k1;\n v[2] ^= k0;\n v[1] ^= k1;\n v[0] ^= k0;\n\n for (std::size_t offset = 0; offset < kEndOffset; offset += kBlockSize) {\n std::uint64_t m = ReadBlock(buffer, offset);\n v[3] ^= m;\n Round(v);\n Round(v);\n v[0] ^= m;\n }\n\n switch (kLeftOver) {\n case 7:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 6]) << 48;\n NOP_FALLTHROUGH;\n case 6:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 5]) << 40;\n NOP_FALLTHROUGH;\n case 5:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 4]) << 32;\n NOP_FALLTHROUGH;\n case 4:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 3]) << 24;\n NOP_FALLTHROUGH;\n case 3:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 2]) << 16;\n NOP_FALLTHROUGH;\n case 2:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 1]) << 8;\n NOP_FALLTHROUGH;\n case 1:\n b |= static_cast<std::uint64_t>(buffer[kEndOffset + 0]) << 0;\n NOP_FALLTHROUGH;\n case 0:\n break;\n }\n\n v[3] ^= b;\n Round(v);\n Round(v);\n v[0] ^= b;\n\n v[2] ^= 0xff;\n Round(v);\n Round(v);\n Round(v);\n Round(v);\n b = v[0] ^ v[1] ^ v[2] ^ v[3];\n\n return b;\n }\n\n private:\n template <typename BufferType>\n static constexpr std::uint64_t ReadBlock(const BufferType buffer,\n const std::size_t offset) {\n const std::uint64_t v0 = buffer[offset + 0];\n const std::uint64_t v1 = buffer[offset + 1];\n const std::uint64_t v2 = buffer[offset + 2];\n const std::uint64_t v3 = buffer[offset + 3];\n const std::uint64_t v4 = buffer[offset + 4];\n const std::uint64_t v5 = buffer[offset + 5];\n const std::uint64_t v6 = buffer[offset + 6];\n const std::uint64_t v7 = buffer[offset + 7];\n\n return ((v7 << 56) | (v6 << 48) | (v5 << 40) | (v4 << 32) | (v3 << 24) |\n (v2 << 16) | (v1 << 8) | (v0 << 0));\n }\n\n static constexpr std::uint64_t RotateLeft(const std::uint64_t x,\n const std::uint64_t b) {\n return (x << b) | (x >> (64 - b));\n }\n\n static constexpr void Round(std::uint64_t (&v)[4]) {\n v[0] += v[1];\n v[1] = RotateLeft(v[1], 13);\n v[1] ^= v[0];\n v[0] = RotateLeft(v[0], 32);\n v[2] += v[3];\n v[3] = RotateLeft(v[3], 16);\n v[3] ^= v[2];\n v[0] += v[3];\n v[3] = RotateLeft(v[3], 21);\n v[3] ^= v[0];\n v[2] += v[1];\n v[1] = RotateLeft(v[1], 17);\n v[1] ^= v[2];\n v[2] = RotateLeft(v[2], 32);\n }\n};\n\n} // namespace nop\n\n#endif // LIBNOP_INCLUDE_NOP_UTILITY_SIP_HASH_H_\n"}
80,229
c
// // OwenViewController.h // OwenMD5 // // Created by owen-pravite-fields on 03/31/2019. // Copyright (c) 2019 owen-pravite-fields. All rights reserved. // @import UIKit; @interface OwenViewController : UIViewController @end
22
10
(translation_unit) "//\n// OwenViewController.h\n// OwenMD5\n//\n// Created by owen-pravite-fields on 03/31/2019.\n// Copyright (c) 2019 owen-pravite-fields. All rights reserved.\n//\n\n@import UIKit;\n\n@interface OwenViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// OwenViewController.h" (comment) "// OwenMD5" (comment) "//" (comment) "// Created by owen-pravite-fields on 03/31/2019." (comment) "// Copyright (c) 2019 owen-pravite-fields. All rights reserved." (comment) "//" (ERROR) "@" (ERROR) "@" (declaration) "import UIKit;" (type_identifier) "import" (identifier) "UIKit" (;) ";" (ERROR) "@interface OwenViewController : UIViewController\n\n@end" (ERROR) "@" (type_identifier) "interface" (identifier) "OwenViewController" (:) ":" (identifier) "UIViewController" (ERROR) "@" (identifier) "end"
22
5
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 22.0, "nodes": 10, "errors": 0, "source_hash": "6107e7dd478de32ec5fa5d2df40779bdbe4ff0f9ad03dce0b65fd7e628967d37", "categorized_nodes": 5}, "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 OwenViewController : UIViewController\n\n@end", "parent": null, "children": [5, 6, 7, 8, 9], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 12, "column": 4}}, {"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": "OwenViewController", "parent": 4, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 29}}, {"id": 8, "type": "identifier", "text": "UIViewController", "parent": 4, "children": [], "start_point": {"row": 10, "column": 32}, "end_point": {"row": 10, "column": 48}}, {"id": 9, "type": "ERROR", "text": "@", "parent": 4, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}]}, "node_categories": {"declarations": {"functions": [], "variables": [2], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [3, 6, 7, 8], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// OwenViewController.h\n// OwenMD5\n//\n// Created by owen-pravite-fields on 03/31/2019.\n// Copyright (c) 2019 owen-pravite-fields. All rights reserved.\n//\n\n@import UIKit;\n\n@interface OwenViewController : UIViewController\n\n@end\n"}
80,230
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" @class NSMutableDictionary, NSObject<OS_dispatch_queue>; @interface IPAAutoRegistry : NSObject { NSObject<OS_dispatch_queue> *_serializer; NSMutableDictionary *_entries; } + (id)sharedRegistry; + (void)setSharedRegistry:(id)arg1; - (void).cxx_destruct; - (BOOL)isPersistableAutoIdentifier:(id)arg1 forOperationIdentifier:(id)arg2; - (Class)settingsClassForAutoIdentifier:(id)arg1 operationIdentifier:(id)arg2; - (BOOL)hasMappingForAutoIdentifier:(id)arg1 operationIdentifier:(id)arg2; - (id)_entryForAutoIdentifier:(id)arg1 operationIdentifier:(id)arg2; - (void)registerAutoCalculatorSettingsClass:(Class)arg1 toAutoIdentifier:(id)arg2 operationIdentifier:(id)arg3 persistable:(BOOL)arg4; - (void)registerAutoCalculatorSettingsClass:(Class)arg1 toAutoIdentifier:(id)arg2 operationIdentifier:(id)arg3; - (id)init; @end
41.57
23
(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 "NSObject.h"\n\n@class NSMutableDictionary, NSObject<OS_dispatch_queue>;\n\n@interface IPAAutoRegistry : NSObject\n{\n NSObject<OS_dispatch_queue> *_serializer;\n NSMutableDictionary *_entries;\n}\n\n+ (id)sharedRegistry;\n+ (void)setSharedRegistry:(id)arg1;\n- (void).cxx_destruct;\n- (BOOL)isPersistableAutoIdentifier:(id)arg1 forOperationIdentifier:(id)arg2;\n- (Class)settingsClassForAutoIdentifier:(id)arg1 operationIdentifier:(id)arg2;\n- (BOOL)hasMappingForAutoIdentifier:(id)arg1 operationIdentifier:(id)arg2;\n- (id)_entryForAutoIdentifier:(id)arg1 operationIdentifier:(id)arg2;\n- (void)registerAutoCalculatorSettingsClass:(Class)arg1 toAutoIdentifier:(id)arg2 operationIdentifier:(id)arg3 persistable:(BOOL)arg4;\n- (void)registerAutoCalculatorSettingsClass:(Class)arg1 toAutoIdentifier:(id)arg2 operationIdentifier:(id)arg3;\n- (id)init;\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 "NSObject.h"\n" (preproc_directive) "#import" (preproc_arg) ""NSObject.h"" (ERROR) "@" (ERROR) "@" (declaration) "class NSMutableDictionary, NSObject<OS_dispatch_queue>;" (type_identifier) "class" (identifier) "NSMutableDictionary" (,) "," (ERROR) "NSObject<" (identifier) "NSObject" (<) "<" (identifier) "OS_dispatch_queue" (ERROR) ">" (>) ">" (;) ";" (ERROR) "@" (ERROR) "@" (function_definition) "interface IPAAutoRegistry : NSObject\n{\n NSObject<OS_dispatch_queue> *_serializer;\n NSMutableDictionary *_entries;\n}" (type_identifier) "interface" (identifier) "IPAAutoRegistry" (ERROR) ": NSObject" (:) ":" (identifier) "NSObject" (compound_statement) "{\n NSObject<OS_dispatch_queue> *_serializer;\n NSMutableDictionary *_entries;\n}" ({) "{" (expression_statement) "NSObject<OS_dispatch_queue> *_serializer;" (binary_expression) "NSObject<OS_dispatch_queue> *_serializer" (binary_expression) "NSObject<OS_dispatch_queue" (identifier) "NSObject" (<) "<" (identifier) "OS_dispatch_queue" (>) ">" (pointer_expression) "*_serializer" (*) "*" (identifier) "_serializer" (;) ";" (declaration) "NSMutableDictionary *_entries;" (type_identifier) "NSMutableDictionary" (pointer_declarator) "*_entries" (*) "*" (identifier) "_entries" (;) ";" (}) "}" (expression_statement) "+ (id)sharedRegistry;" (unary_expression) "+ (id)sharedRegistry" (+) "+" (cast_expression) "(id)sharedRegistry" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "sharedRegistry" (;) ";" (expression_statement) "+ (void)setSharedRegistry:(id)arg1;" (unary_expression) "+ (void)setSharedRegistry" (+) "+" (cast_expression) "(void)setSharedRegistry" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "setSharedRegistry" (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" (;) ";" (ERROR) "- (BOOL)isPersistableAutoIdentifier:(id)" (unary_expression) "- (BOOL)isPersistableAutoIdentifier" (-) "-" (cast_expression) "(BOOL)isPersistableAutoIdentifier" (() "(" (type_descriptor) "BOOL" (type_identifier) "BOOL" ()) ")" (identifier) "isPersistableAutoIdentifier" (:) ":" (() "(" (identifier) "id" ()) ")" (declaration) "arg1 forOperationIdentifier:(id)arg2;" (type_identifier) "arg1" (identifier) "forOperationIdentifier" (ERROR) ":(id)arg2" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg2" (;) ";" (ERROR) "- (Class)settingsClassForAutoIdentifier:(id)" (unary_expression) "- (Class)settingsClassForAutoIdentifier" (-) "-" (cast_expression) "(Class)settingsClassForAutoIdentifier" (() "(" (type_descriptor) "Class" (type_identifier) "Class" ()) ")" (identifier) "settingsClassForAutoIdentifier" (:) ":" (() "(" (identifier) "id" ()) ")" (declaration) "arg1 operationIdentifier:(id)arg2;" (type_identifier) "arg1" (identifier) "operationIdentifier" (ERROR) ":(id)arg2" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg2" (;) ";" (ERROR) "- (BOOL)hasMappingForAutoIdentifier:(id)" (unary_expression) "- (BOOL)hasMappingForAutoIdentifier" (-) "-" (cast_expression) "(BOOL)hasMappingForAutoIdentifier" (() "(" (type_descriptor) "BOOL" (type_identifier) "BOOL" ()) ")" (identifier) "hasMappingForAutoIdentifier" (:) ":" (() "(" (identifier) "id" ()) ")" (declaration) "arg1 operationIdentifier:(id)arg2;" (type_identifier) "arg1" (identifier) "operationIdentifier" (ERROR) ":(id)arg2" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg2" (;) ";" (ERROR) "- (id)_entryForAutoIdentifier:(id)" (unary_expression) "- (id)_entryForAutoIdentifier" (-) "-" (cast_expression) "(id)_entryForAutoIdentifier" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "_entryForAutoIdentifier" (:) ":" (() "(" (identifier) "id" ()) ")" (declaration) "arg1 operationIdentifier:(id)arg2;" (type_identifier) "arg1" (identifier) "operationIdentifier" (ERROR) ":(id)arg2" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg2" (;) ";" (ERROR) "- (void)registerAutoCalculatorSettingsClass:(Class)" (unary_expression) "- (void)registerAutoCalculatorSettingsClass" (-) "-" (cast_expression) "(void)registerAutoCalculatorSettingsClass" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "registerAutoCalculatorSettingsClass" (:) ":" (() "(" (identifier) "Class" ()) ")" (declaration) "arg1 toAutoIdentifier:(id)arg2 operationIdentifier:(id)arg3" (type_identifier) "arg1" (ERROR) "toAutoIdentifier:(id)arg2 operationIdentifier:(id)" (identifier) "toAutoIdentifier" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg2" (identifier) "operationIdentifier" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg3" (;) "" (labeled_statement) "persistable:(BOOL)arg4;" (statement_identifier) "persistable" (:) ":" (expression_statement) "(BOOL)arg4;" (cast_expression) "(BOOL)arg4" (() "(" (type_descriptor) "BOOL" (type_identifier) "BOOL" ()) ")" (identifier) "arg4" (;) ";" (ERROR) "- (void)registerAutoCalculatorSettingsClass:(Class)" (unary_expression) "- (void)registerAutoCalculatorSettingsClass" (-) "-" (cast_expression) "(void)registerAutoCalculatorSettingsClass" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "registerAutoCalculatorSettingsClass" (:) ":" (() "(" (identifier) "Class" ()) ")" (declaration) "arg1 toAutoIdentifier:(id)arg2 operationIdentifier:(id)arg3;" (type_identifier) "arg1" (ERROR) "toAutoIdentifier:(id)arg2 operationIdentifier:(id)" (identifier) "toAutoIdentifier" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg2" (identifier) "operationIdentifier" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg3" (;) ";" (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" (;) ""
264
23
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 41.57, "nodes": 159, "errors": 0, "source_hash": "ca6c06aff92e60cad76eb49f00b9cb63580e17aeee36fe1c8231ccca54dfefe0", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"NSObject.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": "\"NSObject.h\"", "parent": 0, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 20}}, {"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 NSMutableDictionary, NSObject<OS_dispatch_queue>;", "parent": null, "children": [6, 7, 10, 11], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 56}}, {"id": 6, "type": "identifier", "text": "NSMutableDictionary", "parent": 5, "children": [], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 26}}, {"id": 7, "type": "ERROR", "text": "NSObject<", "parent": 5, "children": [8, 9], "start_point": {"row": 8, "column": 28}, "end_point": {"row": 8, "column": 37}}, {"id": 8, "type": "identifier", "text": "NSObject", "parent": 7, "children": [], "start_point": {"row": 8, "column": 28}, "end_point": {"row": 8, "column": 36}}, {"id": 9, "type": "<", "text": "<", "parent": 7, "children": [], "start_point": {"row": 8, "column": 36}, "end_point": {"row": 8, "column": 37}}, {"id": 10, "type": "identifier", "text": "OS_dispatch_queue", "parent": 5, "children": [], "start_point": {"row": 8, "column": 37}, "end_point": {"row": 8, "column": 54}}, {"id": 11, "type": "ERROR", "text": ">", "parent": 5, "children": [12], "start_point": {"row": 8, "column": 54}, "end_point": {"row": 8, "column": 55}}, {"id": 12, "type": ">", "text": ">", "parent": 11, "children": [], "start_point": {"row": 8, "column": 54}, "end_point": {"row": 8, "column": 55}}, {"id": 13, "type": "ERROR", "text": "@", "parent": null, "children": [14], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 14, "type": "ERROR", "text": "@", "parent": 13, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 15, "type": "function_definition", "text": "interface IPAAutoRegistry : NSObject\n{\n NSObject<OS_dispatch_queue> *_serializer;\n NSMutableDictionary *_entries;\n}", "parent": null, "children": [16, 17, 18], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 14, "column": 1}}, {"id": 16, "type": "type_identifier", "text": "interface", "parent": 15, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 10}}, {"id": 17, "type": "identifier", "text": "IPAAutoRegistry", "parent": 15, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 26}}, {"id": 18, "type": "ERROR", "text": ": NSObject", "parent": 15, "children": [19], "start_point": {"row": 10, "column": 27}, "end_point": {"row": 10, "column": 37}}, {"id": 19, "type": "identifier", "text": "NSObject", "parent": 18, "children": [], "start_point": {"row": 10, "column": 29}, "end_point": {"row": 10, "column": 37}}, {"id": 20, "type": "binary_expression", "text": "NSObject<OS_dispatch_queue> *_serializer", "parent": 15, "children": [21, 25, 26], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 44}}, {"id": 21, "type": "binary_expression", "text": "NSObject<OS_dispatch_queue", "parent": 20, "children": [22, 23, 24], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 30}}, {"id": 22, "type": "identifier", "text": "NSObject", "parent": 21, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 12}}, {"id": 23, "type": "<", "text": "<", "parent": 21, "children": [], "start_point": {"row": 12, "column": 12}, "end_point": {"row": 12, "column": 13}}, {"id": 24, "type": "identifier", "text": "OS_dispatch_queue", "parent": 21, "children": [], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 30}}, {"id": 25, "type": ">", "text": ">", "parent": 20, "children": [], "start_point": {"row": 12, "column": 30}, "end_point": {"row": 12, "column": 31}}, {"id": 26, "type": "pointer_expression", "text": "*_serializer", "parent": 20, "children": [27, 28], "start_point": {"row": 12, "column": 32}, "end_point": {"row": 12, "column": 44}}, {"id": 27, "type": "*", "text": "*", "parent": 26, "children": [], "start_point": {"row": 12, "column": 32}, "end_point": {"row": 12, "column": 33}}, {"id": 28, "type": "identifier", "text": "_serializer", "parent": 26, "children": [], "start_point": {"row": 12, "column": 33}, "end_point": {"row": 12, "column": 44}}, {"id": 29, "type": "declaration", "text": "NSMutableDictionary *_entries;", "parent": 15, "children": [30, 31], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 34}}, {"id": 30, "type": "type_identifier", "text": "NSMutableDictionary", "parent": 29, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 23}}, {"id": 31, "type": "pointer_declarator", "text": "*_entries", "parent": 29, "children": [32, 33], "start_point": {"row": 13, "column": 24}, "end_point": {"row": 13, "column": 33}}, {"id": 32, "type": "*", "text": "*", "parent": 31, "children": [], "start_point": {"row": 13, "column": 24}, "end_point": {"row": 13, "column": 25}}, {"id": 33, "type": "identifier", "text": "_entries", "parent": 31, "children": [], "start_point": {"row": 13, "column": 25}, "end_point": {"row": 13, "column": 33}}, {"id": 34, "type": "unary_expression", "text": "+ (id)sharedRegistry", "parent": null, "children": [35, 36], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 20}}, {"id": 35, "type": "+", "text": "+", "parent": 34, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 36, "type": "cast_expression", "text": "(id)sharedRegistry", "parent": 34, "children": [37, 39], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 20}}, {"id": 37, "type": "type_descriptor", "text": "id", "parent": 36, "children": [38], "start_point": {"row": 16, "column": 3}, "end_point": {"row": 16, "column": 5}}, {"id": 38, "type": "type_identifier", "text": "id", "parent": 37, "children": [], "start_point": {"row": 16, "column": 3}, "end_point": {"row": 16, "column": 5}}, {"id": 39, "type": "identifier", "text": "sharedRegistry", "parent": 36, "children": [], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 20}}, {"id": 40, "type": "unary_expression", "text": "+ (void)setSharedRegistry", "parent": null, "children": [41, 42], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 25}}, {"id": 41, "type": "+", "text": "+", "parent": 40, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 42, "type": "cast_expression", "text": "(void)setSharedRegistry", "parent": 40, "children": [43, 45], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 25}}, {"id": 43, "type": "type_descriptor", "text": "void", "parent": 42, "children": [44], "start_point": {"row": 17, "column": 3}, "end_point": {"row": 17, "column": 7}}, {"id": 44, "type": "primitive_type", "text": "void", "parent": 43, "children": [], "start_point": {"row": 17, "column": 3}, "end_point": {"row": 17, "column": 7}}, {"id": 45, "type": "identifier", "text": "setSharedRegistry", "parent": 42, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 25}}, {"id": 46, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [47, 48], "start_point": {"row": 17, "column": 25}, "end_point": {"row": 17, "column": 34}}, {"id": 47, "type": "identifier", "text": "id", "parent": 46, "children": [], "start_point": {"row": 17, "column": 27}, "end_point": {"row": 17, "column": 29}}, {"id": 48, "type": "identifier", "text": "arg1", "parent": 46, "children": [], "start_point": {"row": 17, "column": 30}, "end_point": {"row": 17, "column": 34}}, {"id": 49, "type": "unary_expression", "text": "- (void).cxx_destruct", "parent": null, "children": [50, 51], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 21}}, {"id": 50, "type": "-", "text": "-", "parent": 49, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 51, "type": "cast_expression", "text": "(void).cxx_destruct", "parent": 49, "children": [52, 54], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 21}}, {"id": 52, "type": "type_descriptor", "text": "void", "parent": 51, "children": [53], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 7}}, {"id": 53, "type": "primitive_type", "text": "void", "parent": 52, "children": [], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 7}}, {"id": 54, "type": "identifier", "text": "cxx_destruct", "parent": 51, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 21}}, {"id": 55, "type": "ERROR", "text": "- (BOOL)isPersistableAutoIdentifier:(id)", "parent": null, "children": [56, 62], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 40}}, {"id": 56, "type": "unary_expression", "text": "- (BOOL)isPersistableAutoIdentifier", "parent": 55, "children": [57, 58], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 35}}, {"id": 57, "type": "-", "text": "-", "parent": 56, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 58, "type": "cast_expression", "text": "(BOOL)isPersistableAutoIdentifier", "parent": 56, "children": [59, 61], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 35}}, {"id": 59, "type": "type_descriptor", "text": "BOOL", "parent": 58, "children": [60], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 7}}, {"id": 60, "type": "type_identifier", "text": "BOOL", "parent": 59, "children": [], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 7}}, {"id": 61, "type": "identifier", "text": "isPersistableAutoIdentifier", "parent": 58, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 35}}, {"id": 62, "type": "identifier", "text": "id", "parent": 55, "children": [], "start_point": {"row": 19, "column": 37}, "end_point": {"row": 19, "column": 39}}, {"id": 63, "type": "declaration", "text": "arg1 forOperationIdentifier:(id)arg2;", "parent": null, "children": [64, 65, 66], "start_point": {"row": 19, "column": 40}, "end_point": {"row": 19, "column": 77}}, {"id": 64, "type": "type_identifier", "text": "arg1", "parent": 63, "children": [], "start_point": {"row": 19, "column": 40}, "end_point": {"row": 19, "column": 44}}, {"id": 65, "type": "identifier", "text": "forOperationIdentifier", "parent": 63, "children": [], "start_point": {"row": 19, "column": 45}, "end_point": {"row": 19, "column": 67}}, {"id": 66, "type": "ERROR", "text": ":(id)arg2", "parent": 63, "children": [67, 68], "start_point": {"row": 19, "column": 67}, "end_point": {"row": 19, "column": 76}}, {"id": 67, "type": "identifier", "text": "id", "parent": 66, "children": [], "start_point": {"row": 19, "column": 69}, "end_point": {"row": 19, "column": 71}}, {"id": 68, "type": "identifier", "text": "arg2", "parent": 66, "children": [], "start_point": {"row": 19, "column": 72}, "end_point": {"row": 19, "column": 76}}, {"id": 69, "type": "ERROR", "text": "- (Class)settingsClassForAutoIdentifier:(id)", "parent": null, "children": [70, 76], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 44}}, {"id": 70, "type": "unary_expression", "text": "- (Class)settingsClassForAutoIdentifier", "parent": 69, "children": [71, 72], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 39}}, {"id": 71, "type": "-", "text": "-", "parent": 70, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 72, "type": "cast_expression", "text": "(Class)settingsClassForAutoIdentifier", "parent": 70, "children": [73, 75], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 39}}, {"id": 73, "type": "type_descriptor", "text": "Class", "parent": 72, "children": [74], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 8}}, {"id": 74, "type": "type_identifier", "text": "Class", "parent": 73, "children": [], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 8}}, {"id": 75, "type": "identifier", "text": "settingsClassForAutoIdentifier", "parent": 72, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 39}}, {"id": 76, "type": "identifier", "text": "id", "parent": 69, "children": [], "start_point": {"row": 20, "column": 41}, "end_point": {"row": 20, "column": 43}}, {"id": 77, "type": "declaration", "text": "arg1 operationIdentifier:(id)arg2;", "parent": null, "children": [78, 79, 80], "start_point": {"row": 20, "column": 44}, "end_point": {"row": 20, "column": 78}}, {"id": 78, "type": "type_identifier", "text": "arg1", "parent": 77, "children": [], "start_point": {"row": 20, "column": 44}, "end_point": {"row": 20, "column": 48}}, {"id": 79, "type": "identifier", "text": "operationIdentifier", "parent": 77, "children": [], "start_point": {"row": 20, "column": 49}, "end_point": {"row": 20, "column": 68}}, {"id": 80, "type": "ERROR", "text": ":(id)arg2", "parent": 77, "children": [81, 82], "start_point": {"row": 20, "column": 68}, "end_point": {"row": 20, "column": 77}}, {"id": 81, "type": "identifier", "text": "id", "parent": 80, "children": [], "start_point": {"row": 20, "column": 70}, "end_point": {"row": 20, "column": 72}}, {"id": 82, "type": "identifier", "text": "arg2", "parent": 80, "children": [], "start_point": {"row": 20, "column": 73}, "end_point": {"row": 20, "column": 77}}, {"id": 83, "type": "ERROR", "text": "- (BOOL)hasMappingForAutoIdentifier:(id)", "parent": null, "children": [84, 90], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 40}}, {"id": 84, "type": "unary_expression", "text": "- (BOOL)hasMappingForAutoIdentifier", "parent": 83, "children": [85, 86], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 35}}, {"id": 85, "type": "-", "text": "-", "parent": 84, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 86, "type": "cast_expression", "text": "(BOOL)hasMappingForAutoIdentifier", "parent": 84, "children": [87, 89], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 35}}, {"id": 87, "type": "type_descriptor", "text": "BOOL", "parent": 86, "children": [88], "start_point": {"row": 21, "column": 3}, "end_point": {"row": 21, "column": 7}}, {"id": 88, "type": "type_identifier", "text": "BOOL", "parent": 87, "children": [], "start_point": {"row": 21, "column": 3}, "end_point": {"row": 21, "column": 7}}, {"id": 89, "type": "identifier", "text": "hasMappingForAutoIdentifier", "parent": 86, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 35}}, {"id": 90, "type": "identifier", "text": "id", "parent": 83, "children": [], "start_point": {"row": 21, "column": 37}, "end_point": {"row": 21, "column": 39}}, {"id": 91, "type": "declaration", "text": "arg1 operationIdentifier:(id)arg2;", "parent": null, "children": [92, 93, 94], "start_point": {"row": 21, "column": 40}, "end_point": {"row": 21, "column": 74}}, {"id": 92, "type": "type_identifier", "text": "arg1", "parent": 91, "children": [], "start_point": {"row": 21, "column": 40}, "end_point": {"row": 21, "column": 44}}, {"id": 93, "type": "identifier", "text": "operationIdentifier", "parent": 91, "children": [], "start_point": {"row": 21, "column": 45}, "end_point": {"row": 21, "column": 64}}, {"id": 94, "type": "ERROR", "text": ":(id)arg2", "parent": 91, "children": [95, 96], "start_point": {"row": 21, "column": 64}, "end_point": {"row": 21, "column": 73}}, {"id": 95, "type": "identifier", "text": "id", "parent": 94, "children": [], "start_point": {"row": 21, "column": 66}, "end_point": {"row": 21, "column": 68}}, {"id": 96, "type": "identifier", "text": "arg2", "parent": 94, "children": [], "start_point": {"row": 21, "column": 69}, "end_point": {"row": 21, "column": 73}}, {"id": 97, "type": "ERROR", "text": "- (id)_entryForAutoIdentifier:(id)", "parent": null, "children": [98, 104], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 34}}, {"id": 98, "type": "unary_expression", "text": "- (id)_entryForAutoIdentifier", "parent": 97, "children": [99, 100], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 29}}, {"id": 99, "type": "-", "text": "-", "parent": 98, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 1}}, {"id": 100, "type": "cast_expression", "text": "(id)_entryForAutoIdentifier", "parent": 98, "children": [101, 103], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 29}}, {"id": 101, "type": "type_descriptor", "text": "id", "parent": 100, "children": [102], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 5}}, {"id": 102, "type": "type_identifier", "text": "id", "parent": 101, "children": [], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 5}}, {"id": 103, "type": "identifier", "text": "_entryForAutoIdentifier", "parent": 100, "children": [], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 29}}, {"id": 104, "type": "identifier", "text": "id", "parent": 97, "children": [], "start_point": {"row": 22, "column": 31}, "end_point": {"row": 22, "column": 33}}, {"id": 105, "type": "declaration", "text": "arg1 operationIdentifier:(id)arg2;", "parent": null, "children": [106, 107, 108], "start_point": {"row": 22, "column": 34}, "end_point": {"row": 22, "column": 68}}, {"id": 106, "type": "type_identifier", "text": "arg1", "parent": 105, "children": [], "start_point": {"row": 22, "column": 34}, "end_point": {"row": 22, "column": 38}}, {"id": 107, "type": "identifier", "text": "operationIdentifier", "parent": 105, "children": [], "start_point": {"row": 22, "column": 39}, "end_point": {"row": 22, "column": 58}}, {"id": 108, "type": "ERROR", "text": ":(id)arg2", "parent": 105, "children": [109, 110], "start_point": {"row": 22, "column": 58}, "end_point": {"row": 22, "column": 67}}, {"id": 109, "type": "identifier", "text": "id", "parent": 108, "children": [], "start_point": {"row": 22, "column": 60}, "end_point": {"row": 22, "column": 62}}, {"id": 110, "type": "identifier", "text": "arg2", "parent": 108, "children": [], "start_point": {"row": 22, "column": 63}, "end_point": {"row": 22, "column": 67}}, {"id": 111, "type": "ERROR", "text": "- (void)registerAutoCalculatorSettingsClass:(Class)", "parent": null, "children": [112, 118], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 51}}, {"id": 112, "type": "unary_expression", "text": "- (void)registerAutoCalculatorSettingsClass", "parent": 111, "children": [113, 114], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 43}}, {"id": 113, "type": "-", "text": "-", "parent": 112, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 114, "type": "cast_expression", "text": "(void)registerAutoCalculatorSettingsClass", "parent": 112, "children": [115, 117], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 43}}, {"id": 115, "type": "type_descriptor", "text": "void", "parent": 114, "children": [116], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 7}}, {"id": 116, "type": "primitive_type", "text": "void", "parent": 115, "children": [], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 7}}, {"id": 117, "type": "identifier", "text": "registerAutoCalculatorSettingsClass", "parent": 114, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 43}}, {"id": 118, "type": "identifier", "text": "Class", "parent": 111, "children": [], "start_point": {"row": 23, "column": 45}, "end_point": {"row": 23, "column": 50}}, {"id": 119, "type": "declaration", "text": "arg1 toAutoIdentifier:(id)arg2 operationIdentifier:(id)arg3", "parent": null, "children": [120, 121, 127], "start_point": {"row": 23, "column": 51}, "end_point": {"row": 23, "column": 110}}, {"id": 120, "type": "type_identifier", "text": "arg1", "parent": 119, "children": [], "start_point": {"row": 23, "column": 51}, "end_point": {"row": 23, "column": 55}}, {"id": 121, "type": "ERROR", "text": "toAutoIdentifier:(id)arg2 operationIdentifier:(id)", "parent": 119, "children": [122, 123, 124, 125, 126], "start_point": {"row": 23, "column": 56}, "end_point": {"row": 23, "column": 106}}, {"id": 122, "type": "identifier", "text": "toAutoIdentifier", "parent": 121, "children": [], "start_point": {"row": 23, "column": 56}, "end_point": {"row": 23, "column": 72}}, {"id": 123, "type": "identifier", "text": "id", "parent": 121, "children": [], "start_point": {"row": 23, "column": 74}, "end_point": {"row": 23, "column": 76}}, {"id": 124, "type": "identifier", "text": "arg2", "parent": 121, "children": [], "start_point": {"row": 23, "column": 77}, "end_point": {"row": 23, "column": 81}}, {"id": 125, "type": "identifier", "text": "operationIdentifier", "parent": 121, "children": [], "start_point": {"row": 23, "column": 82}, "end_point": {"row": 23, "column": 101}}, {"id": 126, "type": "identifier", "text": "id", "parent": 121, "children": [], "start_point": {"row": 23, "column": 103}, "end_point": {"row": 23, "column": 105}}, {"id": 127, "type": "identifier", "text": "arg3", "parent": 119, "children": [], "start_point": {"row": 23, "column": 106}, "end_point": {"row": 23, "column": 110}}, {"id": 128, "type": "labeled_statement", "text": "persistable:(BOOL)arg4;", "parent": null, "children": [129], "start_point": {"row": 23, "column": 111}, "end_point": {"row": 23, "column": 134}}, {"id": 129, "type": "statement_identifier", "text": "persistable", "parent": 128, "children": [], "start_point": {"row": 23, "column": 111}, "end_point": {"row": 23, "column": 122}}, {"id": 130, "type": "cast_expression", "text": "(BOOL)arg4", "parent": 128, "children": [131, 133], "start_point": {"row": 23, "column": 123}, "end_point": {"row": 23, "column": 133}}, {"id": 131, "type": "type_descriptor", "text": "BOOL", "parent": 130, "children": [132], "start_point": {"row": 23, "column": 124}, "end_point": {"row": 23, "column": 128}}, {"id": 132, "type": "type_identifier", "text": "BOOL", "parent": 131, "children": [], "start_point": {"row": 23, "column": 124}, "end_point": {"row": 23, "column": 128}}, {"id": 133, "type": "identifier", "text": "arg4", "parent": 130, "children": [], "start_point": {"row": 23, "column": 129}, "end_point": {"row": 23, "column": 133}}, {"id": 134, "type": "ERROR", "text": "- (void)registerAutoCalculatorSettingsClass:(Class)", "parent": null, "children": [135, 141], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 51}}, {"id": 135, "type": "unary_expression", "text": "- (void)registerAutoCalculatorSettingsClass", "parent": 134, "children": [136, 137], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 43}}, {"id": 136, "type": "-", "text": "-", "parent": 135, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 137, "type": "cast_expression", "text": "(void)registerAutoCalculatorSettingsClass", "parent": 135, "children": [138, 140], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 43}}, {"id": 138, "type": "type_descriptor", "text": "void", "parent": 137, "children": [139], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 7}}, {"id": 139, "type": "primitive_type", "text": "void", "parent": 138, "children": [], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 7}}, {"id": 140, "type": "identifier", "text": "registerAutoCalculatorSettingsClass", "parent": 137, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 43}}, {"id": 141, "type": "identifier", "text": "Class", "parent": 134, "children": [], "start_point": {"row": 24, "column": 45}, "end_point": {"row": 24, "column": 50}}, {"id": 142, "type": "declaration", "text": "arg1 toAutoIdentifier:(id)arg2 operationIdentifier:(id)arg3;", "parent": null, "children": [143, 144, 150], "start_point": {"row": 24, "column": 51}, "end_point": {"row": 24, "column": 111}}, {"id": 143, "type": "type_identifier", "text": "arg1", "parent": 142, "children": [], "start_point": {"row": 24, "column": 51}, "end_point": {"row": 24, "column": 55}}, {"id": 144, "type": "ERROR", "text": "toAutoIdentifier:(id)arg2 operationIdentifier:(id)", "parent": 142, "children": [145, 146, 147, 148, 149], "start_point": {"row": 24, "column": 56}, "end_point": {"row": 24, "column": 106}}, {"id": 145, "type": "identifier", "text": "toAutoIdentifier", "parent": 144, "children": [], "start_point": {"row": 24, "column": 56}, "end_point": {"row": 24, "column": 72}}, {"id": 146, "type": "identifier", "text": "id", "parent": 144, "children": [], "start_point": {"row": 24, "column": 74}, "end_point": {"row": 24, "column": 76}}, {"id": 147, "type": "identifier", "text": "arg2", "parent": 144, "children": [], "start_point": {"row": 24, "column": 77}, "end_point": {"row": 24, "column": 81}}, {"id": 148, "type": "identifier", "text": "operationIdentifier", "parent": 144, "children": [], "start_point": {"row": 24, "column": 82}, "end_point": {"row": 24, "column": 101}}, {"id": 149, "type": "identifier", "text": "id", "parent": 144, "children": [], "start_point": {"row": 24, "column": 103}, "end_point": {"row": 24, "column": 105}}, {"id": 150, "type": "identifier", "text": "arg3", "parent": 142, "children": [], "start_point": {"row": 24, "column": 106}, "end_point": {"row": 24, "column": 110}}, {"id": 151, "type": "unary_expression", "text": "- (id)init", "parent": null, "children": [152, 153], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 10}}, {"id": 152, "type": "-", "text": "-", "parent": 151, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 153, "type": "cast_expression", "text": "(id)init", "parent": 151, "children": [154, 156], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 10}}, {"id": 154, "type": "type_descriptor", "text": "id", "parent": 153, "children": [155], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 25, "column": 5}}, {"id": 155, "type": "type_identifier", "text": "id", "parent": 154, "children": [], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 25, "column": 5}}, {"id": 156, "type": "identifier", "text": "init", "parent": 153, "children": [], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 10}}, {"id": 157, "type": "ERROR", "text": "@", "parent": null, "children": [158], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 1}}, {"id": 158, "type": "ERROR", "text": "@", "parent": 157, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 1}}]}, "node_categories": {"declarations": {"functions": [15], "variables": [5, 29, 63, 77, 91, 105, 119, 142], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [20, 21, 26, 34, 36, 40, 42, 49, 51, 56, 58, 70, 72, 84, 86, 98, 100, 112, 114, 130, 135, 137, 151, 153], "assignments": [], "loops": [], "conditionals": [6, 8, 10, 16, 17, 19, 22, 24, 28, 30, 33, 38, 39, 45, 47, 48, 54, 60, 61, 62, 64, 65, 67, 68, 74, 75, 76, 78, 79, 81, 82, 88, 89, 90, 92, 93, 95, 96, 102, 103, 104, 106, 107, 109, 110, 117, 118, 120, 122, 123, 124, 125, 126, 127, 129, 132, 133, 140, 141, 143, 145, 146, 147, 148, 149, 150, 155, 156], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 15, "universal_type": "function", "name": "IPAAutoRegistry", "text_snippet": "interface IPAAutoRegistry : NSObject\n{\n NSObject<OS_dispatch_queue> *_serializer;\n NSMutableDi"}], "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 \"NSObject.h\"\n\n@class NSMutableDictionary, NSObject<OS_dispatch_queue>;\n\n@interface IPAAutoRegistry : NSObject\n{\n NSObject<OS_dispatch_queue> *_serializer;\n NSMutableDictionary *_entries;\n}\n\n+ (id)sharedRegistry;\n+ (void)setSharedRegistry:(id)arg1;\n- (void).cxx_destruct;\n- (BOOL)isPersistableAutoIdentifier:(id)arg1 forOperationIdentifier:(id)arg2;\n- (Class)settingsClassForAutoIdentifier:(id)arg1 operationIdentifier:(id)arg2;\n- (BOOL)hasMappingForAutoIdentifier:(id)arg1 operationIdentifier:(id)arg2;\n- (id)_entryForAutoIdentifier:(id)arg1 operationIdentifier:(id)arg2;\n- (void)registerAutoCalculatorSettingsClass:(Class)arg1 toAutoIdentifier:(id)arg2 operationIdentifier:(id)arg3 persistable:(BOOL)arg4;\n- (void)registerAutoCalculatorSettingsClass:(Class)arg1 toAutoIdentifier:(id)arg2 operationIdentifier:(id)arg3;\n- (id)init;\n\n@end\n\n"}
80,231
c
typedef struct e { void *key; void *value; } Element; typedef struct v { unsigned count; unsigned size; Element *elements; } Vector; typedef struct h { unsigned size; Vector *data; unsigned (* hash) (void *, unsigned); int (*cmpKeys) (void *, void *); void *(* copyKey) (void *); void *(* copyValue) (void *); } Hash; void initHash(Hash *, unsigned, unsigned (* hash) (void *, unsigned), int (*cmpKeys) (void *, void *), void *(* copyKey) (void *), void *(* copyValue) (void *)); void insertHash(Hash *, void *, void *); void *getHash(Hash *, void *);
26.36
22
(translation_unit) "typedef struct e {\n void *key;\n void *value;\n} Element;\n\ntypedef struct v {\n unsigned count;\n unsigned size;\n Element *elements;\n} Vector;\n\ntypedef struct h {\n unsigned size;\n Vector *data;\n unsigned (* hash) (void *, unsigned);\n int (*cmpKeys) (void *, void *);\n void *(* copyKey) (void *);\n void *(* copyValue) (void *);\n} Hash;\n\nvoid initHash(Hash *, unsigned, unsigned (* hash) (void *, unsigned),\n int (*cmpKeys) (void *, void *), void *(* copyKey) (void *),\n void *(* copyValue) (void *));\nvoid insertHash(Hash *, void *, void *);\nvoid *getHash(Hash *, void *);\n" (type_definition) "typedef struct e {\n void *key;\n void *value;\n} Element;" (typedef) "typedef" (struct_specifier) "struct e {\n void *key;\n void *value;\n}" (struct) "struct" (type_identifier) "e" (field_declaration_list) "{\n void *key;\n void *value;\n}" ({) "{" (field_declaration) "void *key;" (primitive_type) "void" (pointer_declarator) "*key" (*) "*" (field_identifier) "key" (;) ";" (field_declaration) "void *value;" (primitive_type) "void" (pointer_declarator) "*value" (*) "*" (field_identifier) "value" (;) ";" (}) "}" (type_identifier) "Element" (;) ";" (type_definition) "typedef struct v {\n unsigned count;\n unsigned size;\n Element *elements;\n} Vector;" (typedef) "typedef" (struct_specifier) "struct v {\n unsigned count;\n unsigned size;\n Element *elements;\n}" (struct) "struct" (type_identifier) "v" (field_declaration_list) "{\n unsigned count;\n unsigned size;\n Element *elements;\n}" ({) "{" (field_declaration) "unsigned count;" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (field_identifier) "count" (;) ";" (field_declaration) "unsigned size;" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (field_identifier) "size" (;) ";" (field_declaration) "Element *elements;" (type_identifier) "Element" (pointer_declarator) "*elements" (*) "*" (field_identifier) "elements" (;) ";" (}) "}" (type_identifier) "Vector" (;) ";" (type_definition) "typedef struct h {\n unsigned size;\n Vector *data;\n unsigned (* hash) (void *, unsigned);\n int (*cmpKeys) (void *, void *);\n void *(* copyKey) (void *);\n void *(* copyValue) (void *);\n} Hash;" (typedef) "typedef" (struct_specifier) "struct h {\n unsigned size;\n Vector *data;\n unsigned (* hash) (void *, unsigned);\n int (*cmpKeys) (void *, void *);\n void *(* copyKey) (void *);\n void *(* copyValue) (void *);\n}" (struct) "struct" (type_identifier) "h" (field_declaration_list) "{\n unsigned size;\n Vector *data;\n unsigned (* hash) (void *, unsigned);\n int (*cmpKeys) (void *, void *);\n void *(* copyKey) (void *);\n void *(* copyValue) (void *);\n}" ({) "{" (field_declaration) "unsigned size;" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (field_identifier) "size" (;) ";" (field_declaration) "Vector *data;" (type_identifier) "Vector" (pointer_declarator) "*data" (*) "*" (field_identifier) "data" (;) ";" (field_declaration) "unsigned (* hash) (void *, unsigned);" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (function_declarator) "(* hash) (void *, unsigned)" (parenthesized_declarator) "(* hash)" (() "(" (pointer_declarator) "* hash" (*) "*" (field_identifier) "hash" ()) ")" (parameter_list) "(void *, unsigned)" (() "(" (parameter_declaration) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" (,) "," (parameter_declaration) "unsigned" (sized_type_specifier) "unsigned" (unsigned) "unsigned" ()) ")" (;) ";" (field_declaration) "int (*cmpKeys) (void *, void *);" (primitive_type) "int" (function_declarator) "(*cmpKeys) (void *, void *)" (parenthesized_declarator) "(*cmpKeys)" (() "(" (pointer_declarator) "*cmpKeys" (*) "*" (field_identifier) "cmpKeys" ()) ")" (parameter_list) "(void *, void *)" (() "(" (parameter_declaration) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" (,) "," (parameter_declaration) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (field_declaration) "void *(* copyKey) (void *);" (primitive_type) "void" (pointer_declarator) "*(* copyKey) (void *)" (*) "*" (function_declarator) "(* copyKey) (void *)" (parenthesized_declarator) "(* copyKey)" (() "(" (pointer_declarator) "* copyKey" (*) "*" (field_identifier) "copyKey" ()) ")" (parameter_list) "(void *)" (() "(" (parameter_declaration) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (field_declaration) "void *(* copyValue) (void *);" (primitive_type) "void" (pointer_declarator) "*(* copyValue) (void *)" (*) "*" (function_declarator) "(* copyValue) (void *)" (parenthesized_declarator) "(* copyValue)" (() "(" (pointer_declarator) "* copyValue" (*) "*" (field_identifier) "copyValue" ()) ")" (parameter_list) "(void *)" (() "(" (parameter_declaration) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (}) "}" (type_identifier) "Hash" (;) ";" (declaration) "void initHash(Hash *, unsigned, unsigned (* hash) (void *, unsigned),\n int (*cmpKeys) (void *, void *), void *(* copyKey) (void *),\n void *(* copyValue) (void *));" (primitive_type) "void" (function_declarator) "initHash(Hash *, unsigned, unsigned (* hash) (void *, unsigned),\n int (*cmpKeys) (void *, void *), void *(* copyKey) (void *),\n void *(* copyValue) (void *))" (identifier) "initHash" (parameter_list) "(Hash *, unsigned, unsigned (* hash) (void *, unsigned),\n int (*cmpKeys) (void *, void *), void *(* copyKey) (void *),\n void *(* copyValue) (void *))" (() "(" (parameter_declaration) "Hash *" (type_identifier) "Hash" (abstract_pointer_declarator) "*" (*) "*" (,) "," (parameter_declaration) "unsigned" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (,) "," (parameter_declaration) "unsigned (* hash) (void *, unsigned)" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (function_declarator) "(* hash) (void *, unsigned)" (parenthesized_declarator) "(* hash)" (() "(" (pointer_declarator) "* hash" (*) "*" (identifier) "hash" ()) ")" (parameter_list) "(void *, unsigned)" (() "(" (parameter_declaration) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" (,) "," (parameter_declaration) "unsigned" (sized_type_specifier) "unsigned" (unsigned) "unsigned" ()) ")" (,) "," (parameter_declaration) "int (*cmpKeys) (void *, void *)" (primitive_type) "int" (function_declarator) "(*cmpKeys) (void *, void *)" (parenthesized_declarator) "(*cmpKeys)" (() "(" (pointer_declarator) "*cmpKeys" (*) "*" (identifier) "cmpKeys" ()) ")" (parameter_list) "(void *, void *)" (() "(" (parameter_declaration) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" (,) "," (parameter_declaration) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (,) "," (parameter_declaration) "void *(* copyKey) (void *)" (primitive_type) "void" (pointer_declarator) "*(* copyKey) (void *)" (*) "*" (function_declarator) "(* copyKey) (void *)" (parenthesized_declarator) "(* copyKey)" (() "(" (pointer_declarator) "* copyKey" (*) "*" (identifier) "copyKey" ()) ")" (parameter_list) "(void *)" (() "(" (parameter_declaration) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (,) "," (parameter_declaration) "void *(* copyValue) (void *)" (primitive_type) "void" (pointer_declarator) "*(* copyValue) (void *)" (*) "*" (function_declarator) "(* copyValue) (void *)" (parenthesized_declarator) "(* copyValue)" (() "(" (pointer_declarator) "* copyValue" (*) "*" (identifier) "copyValue" ()) ")" (parameter_list) "(void *)" (() "(" (parameter_declaration) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" ()) ")" (;) ";" (declaration) "void insertHash(Hash *, void *, void *);" (primitive_type) "void" (function_declarator) "insertHash(Hash *, void *, void *)" (identifier) "insertHash" (parameter_list) "(Hash *, void *, void *)" (() "(" (parameter_declaration) "Hash *" (type_identifier) "Hash" (abstract_pointer_declarator) "*" (*) "*" (,) "," (parameter_declaration) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" (,) "," (parameter_declaration) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (declaration) "void *getHash(Hash *, void *);" (primitive_type) "void" (pointer_declarator) "*getHash(Hash *, void *)" (*) "*" (function_declarator) "getHash(Hash *, void *)" (identifier) "getHash" (parameter_list) "(Hash *, void *)" (() "(" (parameter_declaration) "Hash *" (type_identifier) "Hash" (abstract_pointer_declarator) "*" (*) "*" (,) "," (parameter_declaration) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";"
291
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 26.36, "nodes": 214, "errors": 0, "source_hash": "8e3c12a9540de92e4c7af4190700b43f220729ac46af78a7baeb50813cab6bff", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "typedef struct e {\n void *key;\n void *value;\n} Element;", "parent": null, "children": [1, 2, 15], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 3, "column": 10}}, {"id": 1, "type": "typedef", "text": "typedef", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "struct_specifier", "text": "struct e {\n void *key;\n void *value;\n}", "parent": 0, "children": [3, 4], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 3, "column": 1}}, {"id": 3, "type": "struct", "text": "struct", "parent": 2, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 14}}, {"id": 4, "type": "type_identifier", "text": "e", "parent": 2, "children": [], "start_point": {"row": 0, "column": 15}, "end_point": {"row": 0, "column": 16}}, {"id": 5, "type": "field_declaration", "text": "void *key;", "parent": 2, "children": [6, 7], "start_point": {"row": 1, "column": 2}, "end_point": {"row": 1, "column": 12}}, {"id": 6, "type": "primitive_type", "text": "void", "parent": 5, "children": [], "start_point": {"row": 1, "column": 2}, "end_point": {"row": 1, "column": 6}}, {"id": 7, "type": "pointer_declarator", "text": "*key", "parent": 5, "children": [8, 9], "start_point": {"row": 1, "column": 7}, "end_point": {"row": 1, "column": 11}}, {"id": 8, "type": "*", "text": "*", "parent": 7, "children": [], "start_point": {"row": 1, "column": 7}, "end_point": {"row": 1, "column": 8}}, {"id": 9, "type": "field_identifier", "text": "key", "parent": 7, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 11}}, {"id": 10, "type": "field_declaration", "text": "void *value;", "parent": 2, "children": [11, 12], "start_point": {"row": 2, "column": 2}, "end_point": {"row": 2, "column": 14}}, {"id": 11, "type": "primitive_type", "text": "void", "parent": 10, "children": [], "start_point": {"row": 2, "column": 2}, "end_point": {"row": 2, "column": 6}}, {"id": 12, "type": "pointer_declarator", "text": "*value", "parent": 10, "children": [13, 14], "start_point": {"row": 2, "column": 7}, "end_point": {"row": 2, "column": 13}}, {"id": 13, "type": "*", "text": "*", "parent": 12, "children": [], "start_point": {"row": 2, "column": 7}, "end_point": {"row": 2, "column": 8}}, {"id": 14, "type": "field_identifier", "text": "value", "parent": 12, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 13}}, {"id": 15, "type": "type_identifier", "text": "Element", "parent": 0, "children": [], "start_point": {"row": 3, "column": 2}, "end_point": {"row": 3, "column": 9}}, {"id": 16, "type": "type_definition", "text": "typedef struct v {\n unsigned count;\n unsigned size;\n Element *elements;\n} Vector;", "parent": null, "children": [17, 18, 34], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 9, "column": 9}}, {"id": 17, "type": "typedef", "text": "typedef", "parent": 16, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 18, "type": "struct_specifier", "text": "struct v {\n unsigned count;\n unsigned size;\n Element *elements;\n}", "parent": 16, "children": [19, 20], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 9, "column": 1}}, {"id": 19, "type": "struct", "text": "struct", "parent": 18, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 14}}, {"id": 20, "type": "type_identifier", "text": "v", "parent": 18, "children": [], "start_point": {"row": 5, "column": 15}, "end_point": {"row": 5, "column": 16}}, {"id": 21, "type": "field_declaration", "text": "unsigned count;", "parent": 18, "children": [22, 24], "start_point": {"row": 6, "column": 2}, "end_point": {"row": 6, "column": 17}}, {"id": 22, "type": "sized_type_specifier", "text": "unsigned", "parent": 21, "children": [23], "start_point": {"row": 6, "column": 2}, "end_point": {"row": 6, "column": 10}}, {"id": 23, "type": "unsigned", "text": "unsigned", "parent": 22, "children": [], "start_point": {"row": 6, "column": 2}, "end_point": {"row": 6, "column": 10}}, {"id": 24, "type": "field_identifier", "text": "count", "parent": 21, "children": [], "start_point": {"row": 6, "column": 11}, "end_point": {"row": 6, "column": 16}}, {"id": 25, "type": "field_declaration", "text": "unsigned size;", "parent": 18, "children": [26, 28], "start_point": {"row": 7, "column": 2}, "end_point": {"row": 7, "column": 16}}, {"id": 26, "type": "sized_type_specifier", "text": "unsigned", "parent": 25, "children": [27], "start_point": {"row": 7, "column": 2}, "end_point": {"row": 7, "column": 10}}, {"id": 27, "type": "unsigned", "text": "unsigned", "parent": 26, "children": [], "start_point": {"row": 7, "column": 2}, "end_point": {"row": 7, "column": 10}}, {"id": 28, "type": "field_identifier", "text": "size", "parent": 25, "children": [], "start_point": {"row": 7, "column": 11}, "end_point": {"row": 7, "column": 15}}, {"id": 29, "type": "field_declaration", "text": "Element *elements;", "parent": 18, "children": [30, 31], "start_point": {"row": 8, "column": 2}, "end_point": {"row": 8, "column": 20}}, {"id": 30, "type": "type_identifier", "text": "Element", "parent": 29, "children": [], "start_point": {"row": 8, "column": 2}, "end_point": {"row": 8, "column": 9}}, {"id": 31, "type": "pointer_declarator", "text": "*elements", "parent": 29, "children": [32, 33], "start_point": {"row": 8, "column": 10}, "end_point": {"row": 8, "column": 19}}, {"id": 32, "type": "*", "text": "*", "parent": 31, "children": [], "start_point": {"row": 8, "column": 10}, "end_point": {"row": 8, "column": 11}}, {"id": 33, "type": "field_identifier", "text": "elements", "parent": 31, "children": [], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 19}}, {"id": 34, "type": "type_identifier", "text": "Vector", "parent": 16, "children": [], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 9, "column": 8}}, {"id": 35, "type": "type_definition", "text": "typedef struct h {\n unsigned size;\n Vector *data;\n unsigned (* hash) (void *, unsigned);\n int (*cmpKeys) (void *, void *);\n void *(* copyKey) (void *);\n void *(* copyValue) (void *);\n} Hash;", "parent": null, "children": [36, 37, 109], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 18, "column": 7}}, {"id": 36, "type": "typedef", "text": "typedef", "parent": 35, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 7}}, {"id": 37, "type": "struct_specifier", "text": "struct h {\n unsigned size;\n Vector *data;\n unsigned (* hash) (void *, unsigned);\n int (*cmpKeys) (void *, void *);\n void *(* copyKey) (void *);\n void *(* copyValue) (void *);\n}", "parent": 35, "children": [38, 39], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 18, "column": 1}}, {"id": 38, "type": "struct", "text": "struct", "parent": 37, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 14}}, {"id": 39, "type": "type_identifier", "text": "h", "parent": 37, "children": [], "start_point": {"row": 11, "column": 15}, "end_point": {"row": 11, "column": 16}}, {"id": 40, "type": "field_declaration", "text": "unsigned size;", "parent": 37, "children": [41, 43], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 16}}, {"id": 41, "type": "sized_type_specifier", "text": "unsigned", "parent": 40, "children": [42], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 10}}, {"id": 42, "type": "unsigned", "text": "unsigned", "parent": 41, "children": [], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 10}}, {"id": 43, "type": "field_identifier", "text": "size", "parent": 40, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 15}}, {"id": 44, "type": "field_declaration", "text": "Vector *data;", "parent": 37, "children": [45, 46], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 15}}, {"id": 45, "type": "type_identifier", "text": "Vector", "parent": 44, "children": [], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 8}}, {"id": 46, "type": "pointer_declarator", "text": "*data", "parent": 44, "children": [47, 48], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 14}}, {"id": 47, "type": "*", "text": "*", "parent": 46, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 10}}, {"id": 48, "type": "field_identifier", "text": "data", "parent": 46, "children": [], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 14}}, {"id": 49, "type": "field_declaration", "text": "unsigned (* hash) (void *, unsigned);", "parent": 37, "children": [50, 52], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 39}}, {"id": 50, "type": "sized_type_specifier", "text": "unsigned", "parent": 49, "children": [51], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 10}}, {"id": 51, "type": "unsigned", "text": "unsigned", "parent": 50, "children": [], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 10}}, {"id": 52, "type": "function_declarator", "text": "(* hash) (void *, unsigned)", "parent": 49, "children": [53, 57], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 38}}, {"id": 53, "type": "parenthesized_declarator", "text": "(* hash)", "parent": 52, "children": [54], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 19}}, {"id": 54, "type": "pointer_declarator", "text": "* hash", "parent": 53, "children": [55, 56], "start_point": {"row": 14, "column": 12}, "end_point": {"row": 14, "column": 18}}, {"id": 55, "type": "*", "text": "*", "parent": 54, "children": [], "start_point": {"row": 14, "column": 12}, "end_point": {"row": 14, "column": 13}}, {"id": 56, "type": "field_identifier", "text": "hash", "parent": 54, "children": [], "start_point": {"row": 14, "column": 14}, "end_point": {"row": 14, "column": 18}}, {"id": 57, "type": "parameter_list", "text": "(void *, unsigned)", "parent": 52, "children": [58, 62], "start_point": {"row": 14, "column": 20}, "end_point": {"row": 14, "column": 38}}, {"id": 58, "type": "parameter_declaration", "text": "void *", "parent": 57, "children": [59, 60], "start_point": {"row": 14, "column": 21}, "end_point": {"row": 14, "column": 27}}, {"id": 59, "type": "primitive_type", "text": "void", "parent": 58, "children": [], "start_point": {"row": 14, "column": 21}, "end_point": {"row": 14, "column": 25}}, {"id": 60, "type": "abstract_pointer_declarator", "text": "*", "parent": 58, "children": [61], "start_point": {"row": 14, "column": 26}, "end_point": {"row": 14, "column": 27}}, {"id": 61, "type": "*", "text": "*", "parent": 60, "children": [], "start_point": {"row": 14, "column": 26}, "end_point": {"row": 14, "column": 27}}, {"id": 62, "type": "parameter_declaration", "text": "unsigned", "parent": 57, "children": [63], "start_point": {"row": 14, "column": 29}, "end_point": {"row": 14, "column": 37}}, {"id": 63, "type": "sized_type_specifier", "text": "unsigned", "parent": 62, "children": [64], "start_point": {"row": 14, "column": 29}, "end_point": {"row": 14, "column": 37}}, {"id": 64, "type": "unsigned", "text": "unsigned", "parent": 63, "children": [], "start_point": {"row": 14, "column": 29}, "end_point": {"row": 14, "column": 37}}, {"id": 65, "type": "field_declaration", "text": "int (*cmpKeys) (void *, void *);", "parent": 37, "children": [66, 67], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 34}}, {"id": 66, "type": "primitive_type", "text": "int", "parent": 65, "children": [], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 5}}, {"id": 67, "type": "function_declarator", "text": "(*cmpKeys) (void *, void *)", "parent": 65, "children": [68, 72], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 33}}, {"id": 68, "type": "parenthesized_declarator", "text": "(*cmpKeys)", "parent": 67, "children": [69], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 16}}, {"id": 69, "type": "pointer_declarator", "text": "*cmpKeys", "parent": 68, "children": [70, 71], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 15}}, {"id": 70, "type": "*", "text": "*", "parent": 69, "children": [], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 8}}, {"id": 71, "type": "field_identifier", "text": "cmpKeys", "parent": 69, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 15}}, {"id": 72, "type": "parameter_list", "text": "(void *, void *)", "parent": 67, "children": [73, 77], "start_point": {"row": 15, "column": 17}, "end_point": {"row": 15, "column": 33}}, {"id": 73, "type": "parameter_declaration", "text": "void *", "parent": 72, "children": [74, 75], "start_point": {"row": 15, "column": 18}, "end_point": {"row": 15, "column": 24}}, {"id": 74, "type": "primitive_type", "text": "void", "parent": 73, "children": [], "start_point": {"row": 15, "column": 18}, "end_point": {"row": 15, "column": 22}}, {"id": 75, "type": "abstract_pointer_declarator", "text": "*", "parent": 73, "children": [76], "start_point": {"row": 15, "column": 23}, "end_point": {"row": 15, "column": 24}}, {"id": 76, "type": "*", "text": "*", "parent": 75, "children": [], "start_point": {"row": 15, "column": 23}, "end_point": {"row": 15, "column": 24}}, {"id": 77, "type": "parameter_declaration", "text": "void *", "parent": 72, "children": [78, 79], "start_point": {"row": 15, "column": 26}, "end_point": {"row": 15, "column": 32}}, {"id": 78, "type": "primitive_type", "text": "void", "parent": 77, "children": [], "start_point": {"row": 15, "column": 26}, "end_point": {"row": 15, "column": 30}}, {"id": 79, "type": "abstract_pointer_declarator", "text": "*", "parent": 77, "children": [80], "start_point": {"row": 15, "column": 31}, "end_point": {"row": 15, "column": 32}}, {"id": 80, "type": "*", "text": "*", "parent": 79, "children": [], "start_point": {"row": 15, "column": 31}, "end_point": {"row": 15, "column": 32}}, {"id": 81, "type": "field_declaration", "text": "void *(* copyKey) (void *);", "parent": 37, "children": [82, 83], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 29}}, {"id": 82, "type": "primitive_type", "text": "void", "parent": 81, "children": [], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 6}}, {"id": 83, "type": "pointer_declarator", "text": "*(* copyKey) (void *)", "parent": 81, "children": [84, 85], "start_point": {"row": 16, "column": 7}, "end_point": {"row": 16, "column": 28}}, {"id": 84, "type": "*", "text": "*", "parent": 83, "children": [], "start_point": {"row": 16, "column": 7}, "end_point": {"row": 16, "column": 8}}, {"id": 85, "type": "function_declarator", "text": "(* copyKey) (void *)", "parent": 83, "children": [86, 90], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 28}}, {"id": 86, "type": "parenthesized_declarator", "text": "(* copyKey)", "parent": 85, "children": [87], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 19}}, {"id": 87, "type": "pointer_declarator", "text": "* copyKey", "parent": 86, "children": [88, 89], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 18}}, {"id": 88, "type": "*", "text": "*", "parent": 87, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 10}}, {"id": 89, "type": "field_identifier", "text": "copyKey", "parent": 87, "children": [], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 18}}, {"id": 90, "type": "parameter_list", "text": "(void *)", "parent": 85, "children": [91], "start_point": {"row": 16, "column": 20}, "end_point": {"row": 16, "column": 28}}, {"id": 91, "type": "parameter_declaration", "text": "void *", "parent": 90, "children": [92, 93], "start_point": {"row": 16, "column": 21}, "end_point": {"row": 16, "column": 27}}, {"id": 92, "type": "primitive_type", "text": "void", "parent": 91, "children": [], "start_point": {"row": 16, "column": 21}, "end_point": {"row": 16, "column": 25}}, {"id": 93, "type": "abstract_pointer_declarator", "text": "*", "parent": 91, "children": [94], "start_point": {"row": 16, "column": 26}, "end_point": {"row": 16, "column": 27}}, {"id": 94, "type": "*", "text": "*", "parent": 93, "children": [], "start_point": {"row": 16, "column": 26}, "end_point": {"row": 16, "column": 27}}, {"id": 95, "type": "field_declaration", "text": "void *(* copyValue) (void *);", "parent": 37, "children": [96, 97], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 31}}, {"id": 96, "type": "primitive_type", "text": "void", "parent": 95, "children": [], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 6}}, {"id": 97, "type": "pointer_declarator", "text": "*(* copyValue) (void *)", "parent": 95, "children": [98, 99], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 30}}, {"id": 98, "type": "*", "text": "*", "parent": 97, "children": [], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 8}}, {"id": 99, "type": "function_declarator", "text": "(* copyValue) (void *)", "parent": 97, "children": [100, 104], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 30}}, {"id": 100, "type": "parenthesized_declarator", "text": "(* copyValue)", "parent": 99, "children": [101], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 21}}, {"id": 101, "type": "pointer_declarator", "text": "* copyValue", "parent": 100, "children": [102, 103], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 20}}, {"id": 102, "type": "*", "text": "*", "parent": 101, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 10}}, {"id": 103, "type": "field_identifier", "text": "copyValue", "parent": 101, "children": [], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 20}}, {"id": 104, "type": "parameter_list", "text": "(void *)", "parent": 99, "children": [105], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 30}}, {"id": 105, "type": "parameter_declaration", "text": "void *", "parent": 104, "children": [106, 107], "start_point": {"row": 17, "column": 23}, "end_point": {"row": 17, "column": 29}}, {"id": 106, "type": "primitive_type", "text": "void", "parent": 105, "children": [], "start_point": {"row": 17, "column": 23}, "end_point": {"row": 17, "column": 27}}, {"id": 107, "type": "abstract_pointer_declarator", "text": "*", "parent": 105, "children": [108], "start_point": {"row": 17, "column": 28}, "end_point": {"row": 17, "column": 29}}, {"id": 108, "type": "*", "text": "*", "parent": 107, "children": [], "start_point": {"row": 17, "column": 28}, "end_point": {"row": 17, "column": 29}}, {"id": 109, "type": "type_identifier", "text": "Hash", "parent": 35, "children": [], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 6}}, {"id": 110, "type": "declaration", "text": "void initHash(Hash *, unsigned, unsigned (* hash) (void *, unsigned),\n int (*cmpKeys) (void *, void *), void *(* copyKey) (void *),\n void *(* copyValue) (void *));", "parent": null, "children": [111, 112], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 22, "column": 44}}, {"id": 111, "type": "primitive_type", "text": "void", "parent": 110, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 4}}, {"id": 112, "type": "function_declarator", "text": "initHash(Hash *, unsigned, unsigned (* hash) (void *, unsigned),\n int (*cmpKeys) (void *, void *), void *(* copyKey) (void *),\n void *(* copyValue) (void *))", "parent": 110, "children": [113, 114], "start_point": {"row": 20, "column": 5}, "end_point": {"row": 22, "column": 43}}, {"id": 113, "type": "identifier", "text": "initHash", "parent": 112, "children": [], "start_point": {"row": 20, "column": 5}, "end_point": {"row": 20, "column": 13}}, {"id": 114, "type": "parameter_list", "text": "(Hash *, unsigned, unsigned (* hash) (void *, unsigned),\n int (*cmpKeys) (void *, void *), void *(* copyKey) (void *),\n void *(* copyValue) (void *))", "parent": 112, "children": [115, 119, 122, 138, 154, 168], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 22, "column": 43}}, {"id": 115, "type": "parameter_declaration", "text": "Hash *", "parent": 114, "children": [116, 117], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 20}}, {"id": 116, "type": "type_identifier", "text": "Hash", "parent": 115, "children": [], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 18}}, {"id": 117, "type": "abstract_pointer_declarator", "text": "*", "parent": 115, "children": [118], "start_point": {"row": 20, "column": 19}, "end_point": {"row": 20, "column": 20}}, {"id": 118, "type": "*", "text": "*", "parent": 117, "children": [], "start_point": {"row": 20, "column": 19}, "end_point": {"row": 20, "column": 20}}, {"id": 119, "type": "parameter_declaration", "text": "unsigned", "parent": 114, "children": [120], "start_point": {"row": 20, "column": 22}, "end_point": {"row": 20, "column": 30}}, {"id": 120, "type": "sized_type_specifier", "text": "unsigned", "parent": 119, "children": [121], "start_point": {"row": 20, "column": 22}, "end_point": {"row": 20, "column": 30}}, {"id": 121, "type": "unsigned", "text": "unsigned", "parent": 120, "children": [], "start_point": {"row": 20, "column": 22}, "end_point": {"row": 20, "column": 30}}, {"id": 122, "type": "parameter_declaration", "text": "unsigned (* hash) (void *, unsigned)", "parent": 114, "children": [123, 125], "start_point": {"row": 20, "column": 32}, "end_point": {"row": 20, "column": 68}}, {"id": 123, "type": "sized_type_specifier", "text": "unsigned", "parent": 122, "children": [124], "start_point": {"row": 20, "column": 32}, "end_point": {"row": 20, "column": 40}}, {"id": 124, "type": "unsigned", "text": "unsigned", "parent": 123, "children": [], "start_point": {"row": 20, "column": 32}, "end_point": {"row": 20, "column": 40}}, {"id": 125, "type": "function_declarator", "text": "(* hash) (void *, unsigned)", "parent": 122, "children": [126, 130], "start_point": {"row": 20, "column": 41}, "end_point": {"row": 20, "column": 68}}, {"id": 126, "type": "parenthesized_declarator", "text": "(* hash)", "parent": 125, "children": [127], "start_point": {"row": 20, "column": 41}, "end_point": {"row": 20, "column": 49}}, {"id": 127, "type": "pointer_declarator", "text": "* hash", "parent": 126, "children": [128, 129], "start_point": {"row": 20, "column": 42}, "end_point": {"row": 20, "column": 48}}, {"id": 128, "type": "*", "text": "*", "parent": 127, "children": [], "start_point": {"row": 20, "column": 42}, "end_point": {"row": 20, "column": 43}}, {"id": 129, "type": "identifier", "text": "hash", "parent": 127, "children": [], "start_point": {"row": 20, "column": 44}, "end_point": {"row": 20, "column": 48}}, {"id": 130, "type": "parameter_list", "text": "(void *, unsigned)", "parent": 125, "children": [131, 135], "start_point": {"row": 20, "column": 50}, "end_point": {"row": 20, "column": 68}}, {"id": 131, "type": "parameter_declaration", "text": "void *", "parent": 130, "children": [132, 133], "start_point": {"row": 20, "column": 51}, "end_point": {"row": 20, "column": 57}}, {"id": 132, "type": "primitive_type", "text": "void", "parent": 131, "children": [], "start_point": {"row": 20, "column": 51}, "end_point": {"row": 20, "column": 55}}, {"id": 133, "type": "abstract_pointer_declarator", "text": "*", "parent": 131, "children": [134], "start_point": {"row": 20, "column": 56}, "end_point": {"row": 20, "column": 57}}, {"id": 134, "type": "*", "text": "*", "parent": 133, "children": [], "start_point": {"row": 20, "column": 56}, "end_point": {"row": 20, "column": 57}}, {"id": 135, "type": "parameter_declaration", "text": "unsigned", "parent": 130, "children": [136], "start_point": {"row": 20, "column": 59}, "end_point": {"row": 20, "column": 67}}, {"id": 136, "type": "sized_type_specifier", "text": "unsigned", "parent": 135, "children": [137], "start_point": {"row": 20, "column": 59}, "end_point": {"row": 20, "column": 67}}, {"id": 137, "type": "unsigned", "text": "unsigned", "parent": 136, "children": [], "start_point": {"row": 20, "column": 59}, "end_point": {"row": 20, "column": 67}}, {"id": 138, "type": "parameter_declaration", "text": "int (*cmpKeys) (void *, void *)", "parent": 114, "children": [139, 140], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 45}}, {"id": 139, "type": "primitive_type", "text": "int", "parent": 138, "children": [], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 17}}, {"id": 140, "type": "function_declarator", "text": "(*cmpKeys) (void *, void *)", "parent": 138, "children": [141, 145], "start_point": {"row": 21, "column": 18}, "end_point": {"row": 21, "column": 45}}, {"id": 141, "type": "parenthesized_declarator", "text": "(*cmpKeys)", "parent": 140, "children": [142], "start_point": {"row": 21, "column": 18}, "end_point": {"row": 21, "column": 28}}, {"id": 142, "type": "pointer_declarator", "text": "*cmpKeys", "parent": 141, "children": [143, 144], "start_point": {"row": 21, "column": 19}, "end_point": {"row": 21, "column": 27}}, {"id": 143, "type": "*", "text": "*", "parent": 142, "children": [], "start_point": {"row": 21, "column": 19}, "end_point": {"row": 21, "column": 20}}, {"id": 144, "type": "identifier", "text": "cmpKeys", "parent": 142, "children": [], "start_point": {"row": 21, "column": 20}, "end_point": {"row": 21, "column": 27}}, {"id": 145, "type": "parameter_list", "text": "(void *, void *)", "parent": 140, "children": [146, 150], "start_point": {"row": 21, "column": 29}, "end_point": {"row": 21, "column": 45}}, {"id": 146, "type": "parameter_declaration", "text": "void *", "parent": 145, "children": [147, 148], "start_point": {"row": 21, "column": 30}, "end_point": {"row": 21, "column": 36}}, {"id": 147, "type": "primitive_type", "text": "void", "parent": 146, "children": [], "start_point": {"row": 21, "column": 30}, "end_point": {"row": 21, "column": 34}}, {"id": 148, "type": "abstract_pointer_declarator", "text": "*", "parent": 146, "children": [149], "start_point": {"row": 21, "column": 35}, "end_point": {"row": 21, "column": 36}}, {"id": 149, "type": "*", "text": "*", "parent": 148, "children": [], "start_point": {"row": 21, "column": 35}, "end_point": {"row": 21, "column": 36}}, {"id": 150, "type": "parameter_declaration", "text": "void *", "parent": 145, "children": [151, 152], "start_point": {"row": 21, "column": 38}, "end_point": {"row": 21, "column": 44}}, {"id": 151, "type": "primitive_type", "text": "void", "parent": 150, "children": [], "start_point": {"row": 21, "column": 38}, "end_point": {"row": 21, "column": 42}}, {"id": 152, "type": "abstract_pointer_declarator", "text": "*", "parent": 150, "children": [153], "start_point": {"row": 21, "column": 43}, "end_point": {"row": 21, "column": 44}}, {"id": 153, "type": "*", "text": "*", "parent": 152, "children": [], "start_point": {"row": 21, "column": 43}, "end_point": {"row": 21, "column": 44}}, {"id": 154, "type": "parameter_declaration", "text": "void *(* copyKey) (void *)", "parent": 114, "children": [155, 156], "start_point": {"row": 21, "column": 47}, "end_point": {"row": 21, "column": 73}}, {"id": 155, "type": "primitive_type", "text": "void", "parent": 154, "children": [], "start_point": {"row": 21, "column": 47}, "end_point": {"row": 21, "column": 51}}, {"id": 156, "type": "pointer_declarator", "text": "*(* copyKey) (void *)", "parent": 154, "children": [157, 158], "start_point": {"row": 21, "column": 52}, "end_point": {"row": 21, "column": 73}}, {"id": 157, "type": "*", "text": "*", "parent": 156, "children": [], "start_point": {"row": 21, "column": 52}, "end_point": {"row": 21, "column": 53}}, {"id": 158, "type": "function_declarator", "text": "(* copyKey) (void *)", "parent": 156, "children": [159, 163], "start_point": {"row": 21, "column": 53}, "end_point": {"row": 21, "column": 73}}, {"id": 159, "type": "parenthesized_declarator", "text": "(* copyKey)", "parent": 158, "children": [160], "start_point": {"row": 21, "column": 53}, "end_point": {"row": 21, "column": 64}}, {"id": 160, "type": "pointer_declarator", "text": "* copyKey", "parent": 159, "children": [161, 162], "start_point": {"row": 21, "column": 54}, "end_point": {"row": 21, "column": 63}}, {"id": 161, "type": "*", "text": "*", "parent": 160, "children": [], "start_point": {"row": 21, "column": 54}, "end_point": {"row": 21, "column": 55}}, {"id": 162, "type": "identifier", "text": "copyKey", "parent": 160, "children": [], "start_point": {"row": 21, "column": 56}, "end_point": {"row": 21, "column": 63}}, {"id": 163, "type": "parameter_list", "text": "(void *)", "parent": 158, "children": [164], "start_point": {"row": 21, "column": 65}, "end_point": {"row": 21, "column": 73}}, {"id": 164, "type": "parameter_declaration", "text": "void *", "parent": 163, "children": [165, 166], "start_point": {"row": 21, "column": 66}, "end_point": {"row": 21, "column": 72}}, {"id": 165, "type": "primitive_type", "text": "void", "parent": 164, "children": [], "start_point": {"row": 21, "column": 66}, "end_point": {"row": 21, "column": 70}}, {"id": 166, "type": "abstract_pointer_declarator", "text": "*", "parent": 164, "children": [167], "start_point": {"row": 21, "column": 71}, "end_point": {"row": 21, "column": 72}}, {"id": 167, "type": "*", "text": "*", "parent": 166, "children": [], "start_point": {"row": 21, "column": 71}, "end_point": {"row": 21, "column": 72}}, {"id": 168, "type": "parameter_declaration", "text": "void *(* copyValue) (void *)", "parent": 114, "children": [169, 170], "start_point": {"row": 22, "column": 14}, "end_point": {"row": 22, "column": 42}}, {"id": 169, "type": "primitive_type", "text": "void", "parent": 168, "children": [], "start_point": {"row": 22, "column": 14}, "end_point": {"row": 22, "column": 18}}, {"id": 170, "type": "pointer_declarator", "text": "*(* copyValue) (void *)", "parent": 168, "children": [171, 172], "start_point": {"row": 22, "column": 19}, "end_point": {"row": 22, "column": 42}}, {"id": 171, "type": "*", "text": "*", "parent": 170, "children": [], "start_point": {"row": 22, "column": 19}, "end_point": {"row": 22, "column": 20}}, {"id": 172, "type": "function_declarator", "text": "(* copyValue) (void *)", "parent": 170, "children": [173, 177], "start_point": {"row": 22, "column": 20}, "end_point": {"row": 22, "column": 42}}, {"id": 173, "type": "parenthesized_declarator", "text": "(* copyValue)", "parent": 172, "children": [174], "start_point": {"row": 22, "column": 20}, "end_point": {"row": 22, "column": 33}}, {"id": 174, "type": "pointer_declarator", "text": "* copyValue", "parent": 173, "children": [175, 176], "start_point": {"row": 22, "column": 21}, "end_point": {"row": 22, "column": 32}}, {"id": 175, "type": "*", "text": "*", "parent": 174, "children": [], "start_point": {"row": 22, "column": 21}, "end_point": {"row": 22, "column": 22}}, {"id": 176, "type": "identifier", "text": "copyValue", "parent": 174, "children": [], "start_point": {"row": 22, "column": 23}, "end_point": {"row": 22, "column": 32}}, {"id": 177, "type": "parameter_list", "text": "(void *)", "parent": 172, "children": [178], "start_point": {"row": 22, "column": 34}, "end_point": {"row": 22, "column": 42}}, {"id": 178, "type": "parameter_declaration", "text": "void *", "parent": 177, "children": [179, 180], "start_point": {"row": 22, "column": 35}, "end_point": {"row": 22, "column": 41}}, {"id": 179, "type": "primitive_type", "text": "void", "parent": 178, "children": [], "start_point": {"row": 22, "column": 35}, "end_point": {"row": 22, "column": 39}}, {"id": 180, "type": "abstract_pointer_declarator", "text": "*", "parent": 178, "children": [181], "start_point": {"row": 22, "column": 40}, "end_point": {"row": 22, "column": 41}}, {"id": 181, "type": "*", "text": "*", "parent": 180, "children": [], "start_point": {"row": 22, "column": 40}, "end_point": {"row": 22, "column": 41}}, {"id": 182, "type": "declaration", "text": "void insertHash(Hash *, void *, void *);", "parent": null, "children": [183, 184], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 40}}, {"id": 183, "type": "primitive_type", "text": "void", "parent": 182, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 4}}, {"id": 184, "type": "function_declarator", "text": "insertHash(Hash *, void *, void *)", "parent": 182, "children": [185, 186], "start_point": {"row": 23, "column": 5}, "end_point": {"row": 23, "column": 39}}, {"id": 185, "type": "identifier", "text": "insertHash", "parent": 184, "children": [], "start_point": {"row": 23, "column": 5}, "end_point": {"row": 23, "column": 15}}, {"id": 186, "type": "parameter_list", "text": "(Hash *, void *, void *)", "parent": 184, "children": [187, 191, 195], "start_point": {"row": 23, "column": 15}, "end_point": {"row": 23, "column": 39}}, {"id": 187, "type": "parameter_declaration", "text": "Hash *", "parent": 186, "children": [188, 189], "start_point": {"row": 23, "column": 16}, "end_point": {"row": 23, "column": 22}}, {"id": 188, "type": "type_identifier", "text": "Hash", "parent": 187, "children": [], "start_point": {"row": 23, "column": 16}, "end_point": {"row": 23, "column": 20}}, {"id": 189, "type": "abstract_pointer_declarator", "text": "*", "parent": 187, "children": [190], "start_point": {"row": 23, "column": 21}, "end_point": {"row": 23, "column": 22}}, {"id": 190, "type": "*", "text": "*", "parent": 189, "children": [], "start_point": {"row": 23, "column": 21}, "end_point": {"row": 23, "column": 22}}, {"id": 191, "type": "parameter_declaration", "text": "void *", "parent": 186, "children": [192, 193], "start_point": {"row": 23, "column": 24}, "end_point": {"row": 23, "column": 30}}, {"id": 192, "type": "primitive_type", "text": "void", "parent": 191, "children": [], "start_point": {"row": 23, "column": 24}, "end_point": {"row": 23, "column": 28}}, {"id": 193, "type": "abstract_pointer_declarator", "text": "*", "parent": 191, "children": [194], "start_point": {"row": 23, "column": 29}, "end_point": {"row": 23, "column": 30}}, {"id": 194, "type": "*", "text": "*", "parent": 193, "children": [], "start_point": {"row": 23, "column": 29}, "end_point": {"row": 23, "column": 30}}, {"id": 195, "type": "parameter_declaration", "text": "void *", "parent": 186, "children": [196, 197], "start_point": {"row": 23, "column": 32}, "end_point": {"row": 23, "column": 38}}, {"id": 196, "type": "primitive_type", "text": "void", "parent": 195, "children": [], "start_point": {"row": 23, "column": 32}, "end_point": {"row": 23, "column": 36}}, {"id": 197, "type": "abstract_pointer_declarator", "text": "*", "parent": 195, "children": [198], "start_point": {"row": 23, "column": 37}, "end_point": {"row": 23, "column": 38}}, {"id": 198, "type": "*", "text": "*", "parent": 197, "children": [], "start_point": {"row": 23, "column": 37}, "end_point": {"row": 23, "column": 38}}, {"id": 199, "type": "declaration", "text": "void *getHash(Hash *, void *);", "parent": null, "children": [200, 201], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 30}}, {"id": 200, "type": "primitive_type", "text": "void", "parent": 199, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 4}}, {"id": 201, "type": "pointer_declarator", "text": "*getHash(Hash *, void *)", "parent": 199, "children": [202, 203], "start_point": {"row": 24, "column": 5}, "end_point": {"row": 24, "column": 29}}, {"id": 202, "type": "*", "text": "*", "parent": 201, "children": [], "start_point": {"row": 24, "column": 5}, "end_point": {"row": 24, "column": 6}}, {"id": 203, "type": "function_declarator", "text": "getHash(Hash *, void *)", "parent": 201, "children": [204, 205], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 29}}, {"id": 204, "type": "identifier", "text": "getHash", "parent": 203, "children": [], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 13}}, {"id": 205, "type": "parameter_list", "text": "(Hash *, void *)", "parent": 203, "children": [206, 210], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 29}}, {"id": 206, "type": "parameter_declaration", "text": "Hash *", "parent": 205, "children": [207, 208], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 24, "column": 20}}, {"id": 207, "type": "type_identifier", "text": "Hash", "parent": 206, "children": [], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 24, "column": 18}}, {"id": 208, "type": "abstract_pointer_declarator", "text": "*", "parent": 206, "children": [209], "start_point": {"row": 24, "column": 19}, "end_point": {"row": 24, "column": 20}}, {"id": 209, "type": "*", "text": "*", "parent": 208, "children": [], "start_point": {"row": 24, "column": 19}, "end_point": {"row": 24, "column": 20}}, {"id": 210, "type": "parameter_declaration", "text": "void *", "parent": 205, "children": [211, 212], "start_point": {"row": 24, "column": 22}, "end_point": {"row": 24, "column": 28}}, {"id": 211, "type": "primitive_type", "text": "void", "parent": 210, "children": [], "start_point": {"row": 24, "column": 22}, "end_point": {"row": 24, "column": 26}}, {"id": 212, "type": "abstract_pointer_declarator", "text": "*", "parent": 210, "children": [213], "start_point": {"row": 24, "column": 27}, "end_point": {"row": 24, "column": 28}}, {"id": 213, "type": "*", "text": "*", "parent": 212, "children": [], "start_point": {"row": 24, "column": 27}, "end_point": {"row": 24, "column": 28}}]}, "node_categories": {"declarations": {"functions": [52, 67, 85, 99, 112, 125, 140, 158, 172, 184, 203], "variables": [0, 5, 10, 16, 21, 25, 29, 35, 40, 44, 49, 58, 62, 65, 73, 77, 81, 91, 95, 105, 110, 115, 119, 122, 131, 135, 138, 146, 150, 154, 164, 168, 178, 182, 187, 191, 195, 199, 206, 210], "classes": [2, 3, 18, 19, 37, 38], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [4, 9, 14, 15, 20, 22, 24, 26, 28, 30, 33, 34, 39, 41, 43, 45, 48, 50, 56, 63, 71, 89, 103, 109, 113, 116, 120, 123, 129, 136, 144, 162, 176, 185, 188, 204, 207], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 52, "universal_type": "function", "name": "unknown", "text_snippet": "(* hash) (void *, unsigned)"}, {"node_id": 67, "universal_type": "function", "name": "*)", "text_snippet": "(*cmpKeys) (void *, void *)"}, {"node_id": 85, "universal_type": "function", "name": "unknown", "text_snippet": "(* copyKey) (void *)"}, {"node_id": 99, "universal_type": "function", "name": "unknown", "text_snippet": "(* copyValue) (void *)"}, {"node_id": 112, "universal_type": "function", "name": "", "text_snippet": "initHash(Hash *, unsigned, unsigned (* hash) (void *, unsigned),\n int (*cmpKeys) (void "}, {"node_id": 125, "universal_type": "function", "name": "unknown", "text_snippet": "(* hash) (void *, unsigned)"}, {"node_id": 140, "universal_type": "function", "name": "*)", "text_snippet": "(*cmpKeys) (void *, void *)"}, {"node_id": 158, "universal_type": "function", "name": "unknown", "text_snippet": "(* copyKey) (void *)"}, {"node_id": 172, "universal_type": "function", "name": "unknown", "text_snippet": "(* copyValue) (void *)"}, {"node_id": 184, "universal_type": "function", "name": "*,", "text_snippet": "insertHash(Hash *, void *, void *)"}, {"node_id": 203, "universal_type": "function", "name": "*)", "text_snippet": "getHash(Hash *, void *)"}], "class_declarations": [{"node_id": 2, "universal_type": "class", "name": "e", "text_snippet": "struct e {\n void *key;\n void *value;\n}"}, {"node_id": 3, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 18, "universal_type": "class", "name": "v", "text_snippet": "struct v {\n unsigned count;\n unsigned size;\n Element *elements;\n}"}, {"node_id": 19, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 37, "universal_type": "class", "name": "h", "text_snippet": "struct h {\n unsigned size;\n Vector *data;\n unsigned (* hash) (void *, unsigned);\n int (*cmpKeys)"}, {"node_id": 38, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": []}, "original_source_code": "typedef struct e {\n void *key;\n void *value;\n} Element;\n\ntypedef struct v {\n unsigned count;\n unsigned size;\n Element *elements;\n} Vector;\n\ntypedef struct h {\n unsigned size;\n Vector *data;\n unsigned (* hash) (void *, unsigned);\n int (*cmpKeys) (void *, void *);\n void *(* copyKey) (void *);\n void *(* copyValue) (void *);\n} Hash;\n\nvoid initHash(Hash *, unsigned, unsigned (* hash) (void *, unsigned),\n int (*cmpKeys) (void *, void *), void *(* copyKey) (void *),\n void *(* copyValue) (void *));\nvoid insertHash(Hash *, void *, void *);\nvoid *getHash(Hash *, void *);\n"}
80,232
c
// // MetronomeBeatChangedPerceivable.h // Metronome // // Created by 呂宗錡 on 2019/10/13. // Copyright © 2019年 Positive Grid. All rights reserved. // #import <Foundation/Foundation.h> @protocol MetronomeBeatChangedPerceivable <NSObject> - (void) onBeatChanged:(NSUInteger)beat; @end
25
11
(translation_unit) "//\n// MetronomeBeatChangedPerceivable.h\n// Metronome\n//\n// Created by 呂宗錡 on 2019/10/13.\n// Copyright © 2019年 Positive Grid. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@protocol MetronomeBeatChangedPerceivable <NSObject>\n- (void) onBeatChanged:(NSUInteger)beat;\n@end\n" (comment) "//" (comment) "// MetronomeBeatChangedPerceivable.h" (comment) "// Metronome" (comment) "//" (comment) "// Created by 呂宗錡 on 2019/10/13.\n// C" (comment) "pyright © 2019年 Positive Grid. All rights reserved.\n//\n\n#imp" (comment) "rt" (preproc_call) "Foundation/Foundation.h>\n\n@protoco" (preproc_directive) "Foundat" (preproc_arg) "on/Foundation.h>\n\n@protoc" (ERROR) " MetronomeBeatChangedPerceivable <NSObject>\n- (void) onBeatChanged:(NSUIntege" (ERROR) " " (type_identifier) "Metronom" (identifier) "BeatChangedPerceivable <NSObjec" (<) ">" (identifier) "\n- (void" (>) ")" (unary_expression) "onBeatChanged:(NSUInte" (-) "o" (cast_expression) "BeatChanged:(NSUInte" (() "B" (type_descriptor) "eatC" (primitive_type) "eatC" ()) "h" (identifier) "nged:(NSUInte" (:) "g" (() "e" (declaration) "r)beat;\n@end\n" (type_identifier) "r)beat;\n@e" (ERROR) "n" ()) "n" (identifier) "d\n" (;) "" (ERROR) "" (ERROR) "" (expression_statement) "" (identifier) "" (;) ""
39
5
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 25.0, "nodes": 22, "errors": 0, "source_hash": "ba1f0ed2780dcf8303b23c48dda339224f31ff40f89efcecbfd2394357537db5", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Foundation/Foundation.h>\n\n@protoco", "parent": null, "children": [1, 2], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "Foundat", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "on/Foundation.h>\n\n@protoc", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 33}}, {"id": 3, "type": "ERROR", "text": " MetronomeBeatChangedPerceivable <NSObject>\n- (void) onBeatChanged:(NSUIntege", "parent": null, "children": [4, 5, 6, 7, 8, 9], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 24}}, {"id": 4, "type": "ERROR", "text": " ", "parent": 3, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 5, "type": "type_identifier", "text": "Metronom", "parent": 3, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 9}}, {"id": 6, "type": "identifier", "text": "BeatChangedPerceivable <NSObjec", "parent": 3, "children": [], "start_point": {"row": 10, "column": 10}, "end_point": {"row": 10, "column": 41}}, {"id": 7, "type": "<", "text": ">", "parent": 3, "children": [], "start_point": {"row": 10, "column": 42}, "end_point": {"row": 10, "column": 43}}, {"id": 8, "type": "identifier", "text": "\n- (void", "parent": 3, "children": [], "start_point": {"row": 10, "column": 43}, "end_point": {"row": 10, "column": 51}}, {"id": 9, "type": "unary_expression", "text": "onBeatChanged:(NSUInte", "parent": 3, "children": [10, 11], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 22}}, {"id": 10, "type": "-", "text": "o", "parent": 9, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 1}}, {"id": 11, "type": "cast_expression", "text": "BeatChanged:(NSUInte", "parent": 9, "children": [12, 14], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 11, "column": 22}}, {"id": 12, "type": "type_descriptor", "text": "eatC", "parent": 11, "children": [13], "start_point": {"row": 11, "column": 3}, "end_point": {"row": 11, "column": 7}}, {"id": 13, "type": "primitive_type", "text": "eatC", "parent": 12, "children": [], "start_point": {"row": 11, "column": 3}, "end_point": {"row": 11, "column": 7}}, {"id": 14, "type": "identifier", "text": "nged:(NSUInte", "parent": 11, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 22}}, {"id": 15, "type": "declaration", "text": "r)beat;\n@end\n", "parent": null, "children": [16, 17, 18], "start_point": {"row": 11, "column": 24}, "end_point": {"row": 11, "column": 40}}, {"id": 16, "type": "type_identifier", "text": "r)beat;\n@e", "parent": 15, "children": [], "start_point": {"row": 11, "column": 24}, "end_point": {"row": 11, "column": 34}}, {"id": 17, "type": "ERROR", "text": "n", "parent": 15, "children": [], "start_point": {"row": 11, "column": 34}, "end_point": {"row": 11, "column": 35}}, {"id": 18, "type": "identifier", "text": "d\n", "parent": 15, "children": [], "start_point": {"row": 11, "column": 35}, "end_point": {"row": 11, "column": 39}}, {"id": 19, "type": "ERROR", "text": "", "parent": null, "children": [20], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 20, "type": "ERROR", "text": "", "parent": 19, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 21, "type": "identifier", "text": "", "parent": null, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 4}}]}, "node_categories": {"declarations": {"functions": [], "variables": [15], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [9, 11], "assignments": [], "loops": [], "conditionals": [5, 6, 8, 14, 16, 18, 21], "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// MetronomeBeatChangedPerceivable.h\n// Metronome\n//\n// Created by \u5442\u5b97\u9321 on 2019/10/13.\n// Copyright \u00a9 2019\u5e74 Positive Grid. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@protocol MetronomeBeatChangedPerceivable <NSObject>\n- (void) onBeatChanged:(NSUInteger)beat;\n@end\n"}
80,233
c
#ifndef TEST_UTILS_H #define TEST_UTILS_H #include "bayesnet/factor.h" #include "gtest/gtest.h" #include <vector> namespace Bayes { template <class T> void ExpectVectorElementsNear(std::vector<T> result, std::vector<T> expected, double abs_error = 0.001) { for (size_t i = 0; i < result.size(); ++i) { EXPECT_NEAR(result[i], expected[i], abs_error); } } void ExpectFactorEqual(Factor actual, Factor expected); void ExpectFactorsEqual(std::vector <Factor> actual, std::vector <Factor> expected); } #endif
27.78
18
(translation_unit) "#ifndef TEST_UTILS_H\n#define TEST_UTILS_H\n\n#include "bayesnet/factor.h"\n#include "gtest/gtest.h"\n#include <vector>\n\nnamespace Bayes \n{\n template <class T>\n void ExpectVectorElementsNear(std::vector<T> result, std::vector<T> expected, double abs_error = 0.001)\n {\n for (size_t i = 0; i < result.size(); ++i) {\n EXPECT_NEAR(result[i], expected[i], abs_error);\n }\n }\n\n void ExpectFactorEqual(Factor actual, Factor expected);\n void ExpectFactorsEqual(std::vector <Factor> actual, std::vector <Factor> expected);\n}\n\n#endif" (preproc_ifdef) "#ifndef TEST_UTILS_H\n#define TEST_UTILS_H\n\n#include "bayesnet/factor.h"\n#include "gtest/gtest.h"\n#include <vector>\n\nnamespace Bayes \n{\n template <class T>\n void ExpectVectorElementsNear(std::vector<T> result, std::vector<T> expected, double abs_error = 0.001)\n {\n for (size_t i = 0; i < result.size(); ++i) {\n EXPECT_NEAR(result[i], expected[i], abs_error);\n }\n }\n\n void ExpectFactorEqual(Factor actual, Factor expected);\n void ExpectFactorsEqual(std::vector <Factor> actual, std::vector <Factor> expected);\n}\n\n#endif" (#ifndef) "#ifndef" (identifier) "TEST_UTILS_H" (preproc_def) "#define TEST_UTILS_H\n" (#define) "#define" (identifier) "TEST_UTILS_H" (preproc_include) "#include "bayesnet/factor.h"\n" (#include) "#include" (string_literal) ""bayesnet/factor.h"" (") """ (string_content) "bayesnet/factor.h" (") """ (preproc_include) "#include "gtest/gtest.h"\n" (#include) "#include" (string_literal) ""gtest/gtest.h"" (") """ (string_content) "gtest/gtest.h" (") """ (preproc_include) "#include <vector>\n" (#include) "#include" (system_lib_string) "<vector>" (function_definition) "namespace Bayes \n{\n template <class T>\n void ExpectVectorElementsNear(std::vector<T> result, std::vector<T> expected, double abs_error = 0.001)\n {\n for (size_t i = 0; i < result.size(); ++i) {\n EXPECT_NEAR(result[i], expected[i], abs_error);\n }\n }\n\n void ExpectFactorEqual(Factor actual, Factor expected);\n void ExpectFactorsEqual(std::vector <Factor> actual, std::vector <Factor> expected);\n}" (type_identifier) "namespace" (identifier) "Bayes" (compound_statement) "{\n template <class T>\n void ExpectVectorElementsNear(std::vector<T> result, std::vector<T> expected, double abs_error = 0.001)\n {\n for (size_t i = 0; i < result.size(); ++i) {\n EXPECT_NEAR(result[i], expected[i], abs_error);\n }\n }\n\n void ExpectFactorEqual(Factor actual, Factor expected);\n void ExpectFactorsEqual(std::vector <Factor> actual, std::vector <Factor> expected);\n}" ({) "{" (expression_statement) "template <class T>\n void ExpectVectorElementsNear(std::vector<T> result, std::vector<T> expected, double abs_error = 0.001)" (binary_expression) "template <class T>\n void ExpectVectorElementsNear(std::vector<T> result, std::vector<T> expected, double abs_error = 0.001)" (binary_expression) "template <class" (identifier) "template" (<) "<" (identifier) "class" (ERROR) "T" (identifier) "T" (>) ">" (ERROR) "void" (identifier) "void" (call_expression) "ExpectVectorElementsNear(std::vector<T> result, std::vector<T> expected, double abs_error = 0.001)" (identifier) "ExpectVectorElementsNear" (argument_list) "(std::vector<T> result, std::vector<T> expected, double abs_error = 0.001)" (() "(" (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (binary_expression) "vector<T> result" (binary_expression) "vector<T" (identifier) "vector" (<) "<" (identifier) "T" (>) ">" (identifier) "result" (,) "," (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (binary_expression) "vector<T> expected" (binary_expression) "vector<T" (identifier) "vector" (<) "<" (identifier) "T" (>) ">" (identifier) "expected" (,) "," (ERROR) "double" (identifier) "double" (assignment_expression) "abs_error = 0.001" (identifier) "abs_error" (=) "=" (number_literal) "0.001" ()) ")" (;) "" (compound_statement) "{\n for (size_t i = 0; i < result.size(); ++i) {\n EXPECT_NEAR(result[i], expected[i], abs_error);\n }\n }" ({) "{" (for_statement) "for (size_t i = 0; i < result.size(); ++i) {\n EXPECT_NEAR(result[i], expected[i], abs_error);\n }" (for) "for" (() "(" (declaration) "size_t i = 0;" (primitive_type) "size_t" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < result.size()" (identifier) "i" (<) "<" (call_expression) "result.size()" (field_expression) "result.size" (identifier) "result" (.) "." (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" (;) ";" (update_expression) "++i" (++) "++" (identifier) "i" ()) ")" (compound_statement) "{\n EXPECT_NEAR(result[i], expected[i], abs_error);\n }" ({) "{" (expression_statement) "EXPECT_NEAR(result[i], expected[i], abs_error);" (call_expression) "EXPECT_NEAR(result[i], expected[i], abs_error)" (identifier) "EXPECT_NEAR" (argument_list) "(result[i], expected[i], abs_error)" (() "(" (subscript_expression) "result[i]" (identifier) "result" ([) "[" (identifier) "i" (]) "]" (,) "," (subscript_expression) "expected[i]" (identifier) "expected" ([) "[" (identifier) "i" (]) "]" (,) "," (identifier) "abs_error" ()) ")" (;) ";" (}) "}" (}) "}" (declaration) "void ExpectFactorEqual(Factor actual, Factor expected);" (primitive_type) "void" (function_declarator) "ExpectFactorEqual(Factor actual, Factor expected)" (identifier) "ExpectFactorEqual" (parameter_list) "(Factor actual, Factor expected)" (() "(" (parameter_declaration) "Factor actual" (type_identifier) "Factor" (identifier) "actual" (,) "," (parameter_declaration) "Factor expected" (type_identifier) "Factor" (identifier) "expected" ()) ")" (;) ";" (declaration) "void ExpectFactorsEqual(std::vector <Factor> actual, std::vector <Factor> expected);" (primitive_type) "void" (function_declarator) "ExpectFactorsEqual(std::vector <Factor> actual, std::vector <Factor> expected)" (identifier) "ExpectFactorsEqual" (parameter_list) "(std::vector <Factor> actual, std::vector <Factor> expected)" (() "(" (parameter_declaration) "std::vector <Factor> actual" (type_identifier) "std" (ERROR) "::vector <Factor>" (:) ":" (:) ":" (identifier) "vector" (<) "<" (identifier) "Factor" (>) ">" (identifier) "actual" (,) "," (parameter_declaration) "std::vector <Factor> expected" (type_identifier) "std" (ERROR) "::vector <Factor>" (:) ":" (:) ":" (identifier) "vector" (<) "<" (identifier) "Factor" (>) ">" (identifier) "expected" ()) ")" (;) ";" (}) "}" (#endif) "#endif"
172
7
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 27.78, "nodes": 115, "errors": 0, "source_hash": "d6773ded31d6c7cef9771b352218333a450a8f67964c14f0d3fc3eb93d139568", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef TEST_UTILS_H\n#define TEST_UTILS_H\n\n#include \"bayesnet/factor.h\"\n#include \"gtest/gtest.h\"\n#include <vector>\n\nnamespace Bayes \n{\n\ttemplate <class T>\n\tvoid ExpectVectorElementsNear(std::vector<T> result, std::vector<T> expected, double abs_error = 0.001)\n\t{\n\t\tfor (size_t i = 0; i < result.size(); ++i) {\n\t\t\tEXPECT_NEAR(result[i], expected[i], abs_error);\n\t\t}\n\t}\n\n\tvoid ExpectFactorEqual(Factor actual, Factor expected);\n\tvoid ExpectFactorsEqual(std::vector <Factor> actual, std::vector <Factor> expected);\n}\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 114], "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": "TEST_UTILS_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 20}}, {"id": 3, "type": "preproc_def", "text": "#define TEST_UTILS_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": "TEST_UTILS_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 20}}, {"id": 6, "type": "preproc_include", "text": "#include \"bayesnet/factor.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": "\"bayesnet/factor.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 28}}, {"id": 9, "type": "preproc_include", "text": "#include \"gtest/gtest.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": "\"gtest/gtest.h\"", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 24}}, {"id": 12, "type": "preproc_include", "text": "#include <vector>\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": "system_lib_string", "text": "<vector>", "parent": 12, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 17}}, {"id": 15, "type": "function_definition", "text": "namespace Bayes \n{\n\ttemplate <class T>\n\tvoid ExpectVectorElementsNear(std::vector<T> result, std::vector<T> expected, double abs_error = 0.001)\n\t{\n\t\tfor (size_t i = 0; i < result.size(); ++i) {\n\t\t\tEXPECT_NEAR(result[i], expected[i], abs_error);\n\t\t}\n\t}\n\n\tvoid ExpectFactorEqual(Factor actual, Factor expected);\n\tvoid ExpectFactorsEqual(std::vector <Factor> actual, std::vector <Factor> expected);\n}", "parent": 0, "children": [16, 17], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 19, "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": "Bayes", "parent": 15, "children": [], "start_point": {"row": 7, "column": 10}, "end_point": {"row": 7, "column": 15}}, {"id": 18, "type": "binary_expression", "text": "template <class T>\n\tvoid ExpectVectorElementsNear(std::vector<T> result, std::vector<T> expected, double abs_error = 0.001)", "parent": 15, "children": [19, 22, 24, 25, 27], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 10, "column": 104}}, {"id": 19, "type": "binary_expression", "text": "template <class", "parent": 18, "children": [20, 21], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 16}}, {"id": 20, "type": "identifier", "text": "template", "parent": 19, "children": [], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 9}}, {"id": 21, "type": "<", "text": "<", "parent": 19, "children": [], "start_point": {"row": 9, "column": 10}, "end_point": {"row": 9, "column": 11}}, {"id": 22, "type": "ERROR", "text": "T", "parent": 18, "children": [23], "start_point": {"row": 9, "column": 17}, "end_point": {"row": 9, "column": 18}}, {"id": 23, "type": "identifier", "text": "T", "parent": 22, "children": [], "start_point": {"row": 9, "column": 17}, "end_point": {"row": 9, "column": 18}}, {"id": 24, "type": ">", "text": ">", "parent": 18, "children": [], "start_point": {"row": 9, "column": 18}, "end_point": {"row": 9, "column": 19}}, {"id": 25, "type": "ERROR", "text": "void", "parent": 18, "children": [26], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 5}}, {"id": 26, "type": "identifier", "text": "void", "parent": 25, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 5}}, {"id": 27, "type": "call_expression", "text": "ExpectVectorElementsNear(std::vector<T> result, std::vector<T> expected, double abs_error = 0.001)", "parent": 18, "children": [28, 29], "start_point": {"row": 10, "column": 6}, "end_point": {"row": 10, "column": 104}}, {"id": 28, "type": "identifier", "text": "ExpectVectorElementsNear", "parent": 27, "children": [], "start_point": {"row": 10, "column": 6}, "end_point": {"row": 10, "column": 30}}, {"id": 29, "type": "argument_list", "text": "(std::vector<T> result, std::vector<T> expected, double abs_error = 0.001)", "parent": 27, "children": [30, 32, 39, 41, 48, 50], "start_point": {"row": 10, "column": 30}, "end_point": {"row": 10, "column": 104}}, {"id": 30, "type": "ERROR", "text": "std::", "parent": 29, "children": [31], "start_point": {"row": 10, "column": 31}, "end_point": {"row": 10, "column": 36}}, {"id": 31, "type": "identifier", "text": "std", "parent": 30, "children": [], "start_point": {"row": 10, "column": 31}, "end_point": {"row": 10, "column": 34}}, {"id": 32, "type": "binary_expression", "text": "vector<T> result", "parent": 29, "children": [33, 37, 38], "start_point": {"row": 10, "column": 36}, "end_point": {"row": 10, "column": 52}}, {"id": 33, "type": "binary_expression", "text": "vector<T", "parent": 32, "children": [34, 35, 36], "start_point": {"row": 10, "column": 36}, "end_point": {"row": 10, "column": 44}}, {"id": 34, "type": "identifier", "text": "vector", "parent": 33, "children": [], "start_point": {"row": 10, "column": 36}, "end_point": {"row": 10, "column": 42}}, {"id": 35, "type": "<", "text": "<", "parent": 33, "children": [], "start_point": {"row": 10, "column": 42}, "end_point": {"row": 10, "column": 43}}, {"id": 36, "type": "identifier", "text": "T", "parent": 33, "children": [], "start_point": {"row": 10, "column": 43}, "end_point": {"row": 10, "column": 44}}, {"id": 37, "type": ">", "text": ">", "parent": 32, "children": [], "start_point": {"row": 10, "column": 44}, "end_point": {"row": 10, "column": 45}}, {"id": 38, "type": "identifier", "text": "result", "parent": 32, "children": [], "start_point": {"row": 10, "column": 46}, "end_point": {"row": 10, "column": 52}}, {"id": 39, "type": "ERROR", "text": "std::", "parent": 29, "children": [40], "start_point": {"row": 10, "column": 54}, "end_point": {"row": 10, "column": 59}}, {"id": 40, "type": "identifier", "text": "std", "parent": 39, "children": [], "start_point": {"row": 10, "column": 54}, "end_point": {"row": 10, "column": 57}}, {"id": 41, "type": "binary_expression", "text": "vector<T> expected", "parent": 29, "children": [42, 46, 47], "start_point": {"row": 10, "column": 59}, "end_point": {"row": 10, "column": 77}}, {"id": 42, "type": "binary_expression", "text": "vector<T", "parent": 41, "children": [43, 44, 45], "start_point": {"row": 10, "column": 59}, "end_point": {"row": 10, "column": 67}}, {"id": 43, "type": "identifier", "text": "vector", "parent": 42, "children": [], "start_point": {"row": 10, "column": 59}, "end_point": {"row": 10, "column": 65}}, {"id": 44, "type": "<", "text": "<", "parent": 42, "children": [], "start_point": {"row": 10, "column": 65}, "end_point": {"row": 10, "column": 66}}, {"id": 45, "type": "identifier", "text": "T", "parent": 42, "children": [], "start_point": {"row": 10, "column": 66}, "end_point": {"row": 10, "column": 67}}, {"id": 46, "type": ">", "text": ">", "parent": 41, "children": [], "start_point": {"row": 10, "column": 67}, "end_point": {"row": 10, "column": 68}}, {"id": 47, "type": "identifier", "text": "expected", "parent": 41, "children": [], "start_point": {"row": 10, "column": 69}, "end_point": {"row": 10, "column": 77}}, {"id": 48, "type": "ERROR", "text": "double", "parent": 29, "children": [49], "start_point": {"row": 10, "column": 79}, "end_point": {"row": 10, "column": 85}}, {"id": 49, "type": "identifier", "text": "double", "parent": 48, "children": [], "start_point": {"row": 10, "column": 79}, "end_point": {"row": 10, "column": 85}}, {"id": 50, "type": "assignment_expression", "text": "abs_error = 0.001", "parent": 29, "children": [51, 52, 53], "start_point": {"row": 10, "column": 86}, "end_point": {"row": 10, "column": 103}}, {"id": 51, "type": "identifier", "text": "abs_error", "parent": 50, "children": [], "start_point": {"row": 10, "column": 86}, "end_point": {"row": 10, "column": 95}}, {"id": 52, "type": "=", "text": "=", "parent": 50, "children": [], "start_point": {"row": 10, "column": 96}, "end_point": {"row": 10, "column": 97}}, {"id": 53, "type": "number_literal", "text": "0.001", "parent": 50, "children": [], "start_point": {"row": 10, "column": 98}, "end_point": {"row": 10, "column": 103}}, {"id": 54, "type": "for_statement", "text": "for (size_t i = 0; i < result.size(); ++i) {\n\t\t\tEXPECT_NEAR(result[i], expected[i], abs_error);\n\t\t}", "parent": 15, "children": [55, 61, 69], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 14, "column": 3}}, {"id": 55, "type": "declaration", "text": "size_t i = 0;", "parent": 54, "children": [56, 57], "start_point": {"row": 12, "column": 7}, "end_point": {"row": 12, "column": 20}}, {"id": 56, "type": "primitive_type", "text": "size_t", "parent": 55, "children": [], "start_point": {"row": 12, "column": 7}, "end_point": {"row": 12, "column": 13}}, {"id": 57, "type": "init_declarator", "text": "i = 0", "parent": 55, "children": [58, 59, 60], "start_point": {"row": 12, "column": 14}, "end_point": {"row": 12, "column": 19}}, {"id": 58, "type": "identifier", "text": "i", "parent": 57, "children": [], "start_point": {"row": 12, "column": 14}, "end_point": {"row": 12, "column": 15}}, {"id": 59, "type": "=", "text": "=", "parent": 57, "children": [], "start_point": {"row": 12, "column": 16}, "end_point": {"row": 12, "column": 17}}, {"id": 60, "type": "number_literal", "text": "0", "parent": 57, "children": [], "start_point": {"row": 12, "column": 18}, "end_point": {"row": 12, "column": 19}}, {"id": 61, "type": "binary_expression", "text": "i < result.size()", "parent": 54, "children": [62, 63, 64], "start_point": {"row": 12, "column": 21}, "end_point": {"row": 12, "column": 38}}, {"id": 62, "type": "identifier", "text": "i", "parent": 61, "children": [], "start_point": {"row": 12, "column": 21}, "end_point": {"row": 12, "column": 22}}, {"id": 63, "type": "<", "text": "<", "parent": 61, "children": [], "start_point": {"row": 12, "column": 23}, "end_point": {"row": 12, "column": 24}}, {"id": 64, "type": "call_expression", "text": "result.size()", "parent": 61, "children": [65, 68], "start_point": {"row": 12, "column": 25}, "end_point": {"row": 12, "column": 38}}, {"id": 65, "type": "field_expression", "text": "result.size", "parent": 64, "children": [66, 67], "start_point": {"row": 12, "column": 25}, "end_point": {"row": 12, "column": 36}}, {"id": 66, "type": "identifier", "text": "result", "parent": 65, "children": [], "start_point": {"row": 12, "column": 25}, "end_point": {"row": 12, "column": 31}}, {"id": 67, "type": "field_identifier", "text": "size", "parent": 65, "children": [], "start_point": {"row": 12, "column": 32}, "end_point": {"row": 12, "column": 36}}, {"id": 68, "type": "argument_list", "text": "()", "parent": 64, "children": [], "start_point": {"row": 12, "column": 36}, "end_point": {"row": 12, "column": 38}}, {"id": 69, "type": "update_expression", "text": "++i", "parent": 54, "children": [70, 71], "start_point": {"row": 12, "column": 40}, "end_point": {"row": 12, "column": 43}}, {"id": 70, "type": "++", "text": "++", "parent": 69, "children": [], "start_point": {"row": 12, "column": 40}, "end_point": {"row": 12, "column": 42}}, {"id": 71, "type": "identifier", "text": "i", "parent": 69, "children": [], "start_point": {"row": 12, "column": 42}, "end_point": {"row": 12, "column": 43}}, {"id": 72, "type": "call_expression", "text": "EXPECT_NEAR(result[i], expected[i], abs_error)", "parent": 54, "children": [73, 74], "start_point": {"row": 13, "column": 3}, "end_point": {"row": 13, "column": 49}}, {"id": 73, "type": "identifier", "text": "EXPECT_NEAR", "parent": 72, "children": [], "start_point": {"row": 13, "column": 3}, "end_point": {"row": 13, "column": 14}}, {"id": 74, "type": "argument_list", "text": "(result[i], expected[i], abs_error)", "parent": 72, "children": [75, 78, 81], "start_point": {"row": 13, "column": 14}, "end_point": {"row": 13, "column": 49}}, {"id": 75, "type": "subscript_expression", "text": "result[i]", "parent": 74, "children": [76, 77], "start_point": {"row": 13, "column": 15}, "end_point": {"row": 13, "column": 24}}, {"id": 76, "type": "identifier", "text": "result", "parent": 75, "children": [], "start_point": {"row": 13, "column": 15}, "end_point": {"row": 13, "column": 21}}, {"id": 77, "type": "identifier", "text": "i", "parent": 75, "children": [], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 23}}, {"id": 78, "type": "subscript_expression", "text": "expected[i]", "parent": 74, "children": [79, 80], "start_point": {"row": 13, "column": 26}, "end_point": {"row": 13, "column": 37}}, {"id": 79, "type": "identifier", "text": "expected", "parent": 78, "children": [], "start_point": {"row": 13, "column": 26}, "end_point": {"row": 13, "column": 34}}, {"id": 80, "type": "identifier", "text": "i", "parent": 78, "children": [], "start_point": {"row": 13, "column": 35}, "end_point": {"row": 13, "column": 36}}, {"id": 81, "type": "identifier", "text": "abs_error", "parent": 74, "children": [], "start_point": {"row": 13, "column": 39}, "end_point": {"row": 13, "column": 48}}, {"id": 82, "type": "declaration", "text": "void ExpectFactorEqual(Factor actual, Factor expected);", "parent": 15, "children": [83, 84], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 56}}, {"id": 83, "type": "primitive_type", "text": "void", "parent": 82, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 5}}, {"id": 84, "type": "function_declarator", "text": "ExpectFactorEqual(Factor actual, Factor expected)", "parent": 82, "children": [85, 86], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 55}}, {"id": 85, "type": "identifier", "text": "ExpectFactorEqual", "parent": 84, "children": [], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 23}}, {"id": 86, "type": "parameter_list", "text": "(Factor actual, Factor expected)", "parent": 84, "children": [87, 90], "start_point": {"row": 17, "column": 23}, "end_point": {"row": 17, "column": 55}}, {"id": 87, "type": "parameter_declaration", "text": "Factor actual", "parent": 86, "children": [88, 89], "start_point": {"row": 17, "column": 24}, "end_point": {"row": 17, "column": 37}}, {"id": 88, "type": "type_identifier", "text": "Factor", "parent": 87, "children": [], "start_point": {"row": 17, "column": 24}, "end_point": {"row": 17, "column": 30}}, {"id": 89, "type": "identifier", "text": "actual", "parent": 87, "children": [], "start_point": {"row": 17, "column": 31}, "end_point": {"row": 17, "column": 37}}, {"id": 90, "type": "parameter_declaration", "text": "Factor expected", "parent": 86, "children": [91, 92], "start_point": {"row": 17, "column": 39}, "end_point": {"row": 17, "column": 54}}, {"id": 91, "type": "type_identifier", "text": "Factor", "parent": 90, "children": [], "start_point": {"row": 17, "column": 39}, "end_point": {"row": 17, "column": 45}}, {"id": 92, "type": "identifier", "text": "expected", "parent": 90, "children": [], "start_point": {"row": 17, "column": 46}, "end_point": {"row": 17, "column": 54}}, {"id": 93, "type": "declaration", "text": "void ExpectFactorsEqual(std::vector <Factor> actual, std::vector <Factor> expected);", "parent": 15, "children": [94, 95], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 85}}, {"id": 94, "type": "primitive_type", "text": "void", "parent": 93, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 5}}, {"id": 95, "type": "function_declarator", "text": "ExpectFactorsEqual(std::vector <Factor> actual, std::vector <Factor> expected)", "parent": 93, "children": [96, 97], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 84}}, {"id": 96, "type": "identifier", "text": "ExpectFactorsEqual", "parent": 95, "children": [], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 24}}, {"id": 97, "type": "parameter_list", "text": "(std::vector <Factor> actual, std::vector <Factor> expected)", "parent": 95, "children": [98, 106], "start_point": {"row": 18, "column": 24}, "end_point": {"row": 18, "column": 84}}, {"id": 98, "type": "parameter_declaration", "text": "std::vector <Factor> actual", "parent": 97, "children": [99, 100, 105], "start_point": {"row": 18, "column": 25}, "end_point": {"row": 18, "column": 52}}, {"id": 99, "type": "type_identifier", "text": "std", "parent": 98, "children": [], "start_point": {"row": 18, "column": 25}, "end_point": {"row": 18, "column": 28}}, {"id": 100, "type": "ERROR", "text": "::vector <Factor>", "parent": 98, "children": [101, 102, 103, 104], "start_point": {"row": 18, "column": 28}, "end_point": {"row": 18, "column": 45}}, {"id": 101, "type": "identifier", "text": "vector", "parent": 100, "children": [], "start_point": {"row": 18, "column": 30}, "end_point": {"row": 18, "column": 36}}, {"id": 102, "type": "<", "text": "<", "parent": 100, "children": [], "start_point": {"row": 18, "column": 37}, "end_point": {"row": 18, "column": 38}}, {"id": 103, "type": "identifier", "text": "Factor", "parent": 100, "children": [], "start_point": {"row": 18, "column": 38}, "end_point": {"row": 18, "column": 44}}, {"id": 104, "type": ">", "text": ">", "parent": 100, "children": [], "start_point": {"row": 18, "column": 44}, "end_point": {"row": 18, "column": 45}}, {"id": 105, "type": "identifier", "text": "actual", "parent": 98, "children": [], "start_point": {"row": 18, "column": 46}, "end_point": {"row": 18, "column": 52}}, {"id": 106, "type": "parameter_declaration", "text": "std::vector <Factor> expected", "parent": 97, "children": [107, 108, 113], "start_point": {"row": 18, "column": 54}, "end_point": {"row": 18, "column": 83}}, {"id": 107, "type": "type_identifier", "text": "std", "parent": 106, "children": [], "start_point": {"row": 18, "column": 54}, "end_point": {"row": 18, "column": 57}}, {"id": 108, "type": "ERROR", "text": "::vector <Factor>", "parent": 106, "children": [109, 110, 111, 112], "start_point": {"row": 18, "column": 57}, "end_point": {"row": 18, "column": 74}}, {"id": 109, "type": "identifier", "text": "vector", "parent": 108, "children": [], "start_point": {"row": 18, "column": 59}, "end_point": {"row": 18, "column": 65}}, {"id": 110, "type": "<", "text": "<", "parent": 108, "children": [], "start_point": {"row": 18, "column": 66}, "end_point": {"row": 18, "column": 67}}, {"id": 111, "type": "identifier", "text": "Factor", "parent": 108, "children": [], "start_point": {"row": 18, "column": 67}, "end_point": {"row": 18, "column": 73}}, {"id": 112, "type": ">", "text": ">", "parent": 108, "children": [], "start_point": {"row": 18, "column": 73}, "end_point": {"row": 18, "column": 74}}, {"id": 113, "type": "identifier", "text": "expected", "parent": 106, "children": [], "start_point": {"row": 18, "column": 75}, "end_point": {"row": 18, "column": 83}}, {"id": 114, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 6}}]}, "node_categories": {"declarations": {"functions": [15, 84, 95], "variables": [55, 82, 87, 90, 93, 98, 106], "classes": [], "imports": [6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [18, 19, 27, 32, 33, 41, 42, 61, 64, 65, 69, 72, 75, 78], "assignments": [50], "loops": [54], "conditionals": [0, 1, 2, 5, 16, 17, 20, 23, 26, 28, 31, 34, 36, 38, 40, 43, 45, 47, 49, 51, 58, 62, 66, 67, 71, 73, 76, 77, 79, 80, 81, 85, 88, 89, 91, 92, 96, 99, 101, 103, 105, 107, 109, 111, 113, 114], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 53, 60], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 15, "universal_type": "function", "name": "ExpectVectorElementsNear", "text_snippet": "namespace Bayes \n{\n\ttemplate <class T>\n\tvoid ExpectVectorElementsNear(std::vector<T> result, std::ve"}, {"node_id": 84, "universal_type": "function", "name": "unknown", "text_snippet": "ExpectFactorEqual(Factor actual, Factor expected)"}, {"node_id": 95, "universal_type": "function", "name": "unknown", "text_snippet": "ExpectFactorsEqual(std::vector <Factor> actual, std::vector <Factor> expected)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"bayesnet/factor.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"gtest/gtest.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <vector>\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "#ifndef TEST_UTILS_H\n#define TEST_UTILS_H\n\n#include \"bayesnet/factor.h\"\n#include \"gtest/gtest.h\"\n#include <vector>\n\nnamespace Bayes \n{\n\ttemplate <class T>\n\tvoid ExpectVectorElementsNear(std::vector<T> result, std::vector<T> expected, double abs_error = 0.001)\n\t{\n\t\tfor (size_t i = 0; i < result.size(); ++i) {\n\t\t\tEXPECT_NEAR(result[i], expected[i], abs_error);\n\t\t}\n\t}\n\n\tvoid ExpectFactorEqual(Factor actual, Factor expected);\n\tvoid ExpectFactorsEqual(std::vector <Factor> actual, std::vector <Factor> expected);\n}\n\n#endif"}
80,234
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* libft.h :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: bhivert <<EMAIL>> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2013/11/19 11:39:25 by bhivert #+# #+# */ /* Updated: 2015/09/23 10:09:24 by bhivert ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef LIBFT_H # define LIBFT_H # include <unistd.h> # include <stdlib.h> # include <string.h> # ifndef T_BOOL # define T_BOOL # define D_FALSE ((char) 0) # define D_TRUE ((char) 1) typedef char t_bool; # endif # ifndef T_INT # define T_INT long long int # define T_UINT unsigned long long int typedef T_INT t_int; typedef T_UINT t_uint; # endif # ifndef XOR # define XOR(a,b) ((a && !b) || (!a && b)) # endif # ifndef MIN # define MIN(a,b) ((a < b) ? a : b) # endif # ifndef MAX # define MAX(a,b) ((a > b) ? a : b) # endif # ifndef STR_NPOS # define STR_NPOS ((size_t) -1) # endif /* ** ============================================================================= ** ================================== CHAR ===================================== */ int ft_isalpha(int c); int ft_isdigit(int c); int ft_isalnum(int c); int ft_isascii(int c); int ft_isprint(int c); int ft_isspace(int c); int ft_toupper(int c); int ft_tolower(int c); /* ** ============================================================================= ** =================================== IO ====================================== ** #include "ft_printf.h" ** ft_printf(const char *format, ...); ** ft_fprintf(int fd, const char *format, ...); ** ft_sprintf(char **str, const char *format, ...); */ # define GNL_BUFF_SIZE 128 int ft_gnl(int fd, char **line); int ft_putchar(int c); int ft_putchar_fd(int c, int fd); void ft_putstr(char const *s); void ft_putstr_fd(char const *s, int fd); void ft_putendl(char const *s); void ft_putendl_fd(char const *s, int fd); void ft_putnbr(int n); void ft_putnbr_fd(int n, int fd); /* ** ============================================================================= ** =================================== STR ===================================== */ size_t ft_strlen(char const *s); char *ft_strnew(size_t size); char *ft_strdup(char const *s1); char *ft_strcpy(char *s1, char const *s2); char *ft_strncpy(char *s1, char const *s2, size_t n); void ft_strclr(char *s); void ft_strdel(char **as); int ft_strcmp(char const *s1, char const *s2); int ft_strncmp(char const *s1, char const *s2, size_t n); t_bool ft_strequ(char const *s1, char const *s2); t_bool ft_strnequ(char const *s1, char const *s2, size_t n); char *ft_strcat(char *s1, char const *s2); char *ft_strncat(char *s1, char const *s2, size_t n); size_t ft_strlcat(char *s1, char const *s2, size_t size); char *ft_strjoin(char const *s1, char const *s2); char *ft_strjoin_free(char *s1, char const *s2); char *ft_strsub(char const *s, unsigned int start, \ size_t len); char **ft_strsplit(char const *s, char c); char *ft_strchr(char const *s, int c); char *ft_strrchr(char const *s, int c); char *ft_strstr(char const *s1, char const *s2); char *ft_strnstr(char const *s1, char const *s2, size_t n); void ft_striter(char *s, void (*f)(char *)); void ft_striteri(char *s, void (*f)(unsigned int, char *)); char *ft_strmap(char const *s, char (*f)(char)); char *ft_strmapi(char const *s, \ char (*f)(unsigned int, char)); char *ft_strtrim(char const *s); /* ** ============================================================================= ** =================================== NUM ===================================== */ int ft_atoi(char const *s); char *ft_itoa(t_int n); char *ft_uitoa(t_uint n); double ft_atof(const char *str, size_t *len); size_t ft_intlen(t_int n); t_int ft_abs(t_int n); int ft_pow(int nbr, int pow); char *ft_convert_base(char *nbr, char *base_from, \ char *base_to); char *ft_convert_base_free(char *nbr, char *base_from, \ char *base_to); /* ** ============================================================================= ** =================================== MEM ===================================== */ void *ft_memalloc(size_t size); void *ft_memrealloc(void *ptr, size_t size, size_t new_size); int ft_memdel(void **ap); void ft_bzero(void *s, size_t n); void *ft_memset(void *b, int c, size_t len); void *ft_memdup(void *buf, size_t size); void *ft_memcpy(void *s1, void const *s2, size_t n); void *ft_memccpy(void *s1, void const *s2, int c, size_t n); void *ft_memmove(void *s1, void const *s2, size_t n); int ft_memcmp(void const*s1, void const *s2, size_t n); void *ft_memchr(void const *s, int c, size_t n); /* ** ============================================================================= ** =================================== LIST ==================================== */ typedef struct s_list { struct s_list *next; void *content; } t_list; t_list *ft_lstnew(void const *content); void ft_lstadd(t_list **alst, void *n); void ft_lstaddend(t_list **alst, void *n); void ft_lstdel(t_list **alst, void (*del)(void *)); void ft_lstdel_if(t_list **alst, void (*del)(), \ void *ref, int (*cmp)()); void ft_lstdelone(t_list **alst, void (*del)(void *)); size_t ft_lstcount(void *alst); void ft_lstiter(t_list *lst, void (*f)(t_list *elem)); t_list *ft_lstmap(t_list *lst, t_list *(*f)(t_list *elem)); void ft_lstsort(t_list **alst, int (*f)(t_list *elem1, \ t_list *elem2)); /* ** ============================================================================= ** =================================== TREE ==================================== */ typedef enum e_btdir { FT_BT_SAME, FT_BT_LEFT, FT_BT_RIGHT } t_btdir; typedef struct s_btree { struct s_btree *father; struct s_btree *left; struct s_btree *right; void *content; } t_btree; t_btree *ft_btreeadd(t_btree **atree, void *content, \ t_btdir (*cmp)(t_btree *, void *)); int ft_btreeiter(t_btree *atree, \ t_btdir (*cmp)(t_btree *, t_btree *, void *), \ int (*fct)(t_btree *, int, void *), \ void *ref); void ft_put_btree(t_btree *tree, int depth, \ void (*putfunc)(void *)); /* ** ============================================================================= ** =================================== TAB ===================================== */ size_t ft_tablen(char **tab); char **ft_tabcpy(char **tab); void *ft_tabrealloc(void *tab, \ size_t old_size, size_t new_size, size_t unit); void ft_tabprint(char **tab); void ft_tabfree(char **tab); /* ** ============================================================================= ** ================================= PARSING =================================== */ int ft_charset_parser(const char *str, \ const char *charset, size_t *len); ssize_t ft_word_parser(const char *str, const char *word, \ size_t w_size); int ft_natoi(const char *str, size_t size); double ft_natof(const char *str, size_t size, size_t *len); #endif
40.69
190
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* libft.h :+: :+: :+: */\n/* +:+ +:+ +:+ */\n/* By: bhivert <<EMAIL>> +#+ +:+ +#+ */\n/* +#+#+#+#+#+ +#+ */\n/* Created: 2013/11/19 11:39:25 by bhivert #+# #+# */\n/* Updated: 2015/09/23 10:09:24 by bhivert ### ########.fr */\n/* */\n/* ************************************************************************** */\n\n#ifndef LIBFT_H\n# define LIBFT_H\n\n# include <unistd.h>\n# include <stdlib.h>\n# include <string.h>\n\n# ifndef T_BOOL\n# define T_BOOL\n# define D_FALSE ((char) 0)\n# define D_TRUE ((char) 1)\n\ntypedef char t_bool;\n# endif\n\n# ifndef T_INT\n# define T_INT long long int\n# define T_UINT unsigned long long int\n\ntypedef T_INT t_int;\ntypedef T_UINT t_uint;\n# endif\n\n# ifndef XOR\n# define XOR(a,b) ((a && !b) || (!a && b))\n# endif\n\n# ifndef MIN\n# define MIN(a,b) ((a < b) ? a : b)\n# endif\n\n# ifndef MAX\n# define MAX(a,b) ((a > b) ? a : b)\n# endif\n\n# ifndef STR_NPOS\n# define STR_NPOS ((size_t) -1)\n# endif\n\n/*\n** =============================================================================\n** ================================== CHAR =====================================\n*/\nint ft_isalpha(int c);\nint ft_isdigit(int c);\nint ft_isalnum(int c);\nint ft_isascii(int c);\nint ft_isprint(int c);\nint ft_isspace(int c);\n\nint ft_toupper(int c);\nint ft_tolower(int c);\n\n/*\n** =============================================================================\n** =================================== IO ======================================\n** #include "ft_printf.h"\n** ft_printf(const char *format, ...);\n** ft_fprintf(int fd, const char *format, ...);\n** ft_sprintf(char **str, const char *format, ...);\n*/\n# define GNL_BUFF_SIZE 128\n\nint ft_gnl(int fd, char **line);\n\nint ft_putchar(int c);\nint ft_putchar_fd(int c, int fd);\n\nvoid ft_putstr(char const *s);\nvoid ft_putstr_fd(char const *s, int fd);\nvoid ft_putendl(char const *s);\nvoid ft_putendl_fd(char const *s, int fd);\n\nvoid ft_putnbr(int n);\nvoid ft_putnbr_fd(int n, int fd);\n\n/*\n** =============================================================================\n** =================================== STR =====================================\n*/\nsize_t ft_strlen(char const *s);\n\nchar *ft_strnew(size_t size);\nchar *ft_strdup(char const *s1);\nchar *ft_strcpy(char *s1, char const *s2);\nchar *ft_strncpy(char *s1, char const *s2, size_t n);\nvoid ft_strclr(char *s);\nvoid ft_strdel(char **as);\n\nint ft_strcmp(char const *s1, char const *s2);\nint ft_strncmp(char const *s1, char const *s2, size_t n);\nt_bool ft_strequ(char const *s1, char const *s2);\nt_bool ft_strnequ(char const *s1, char const *s2, size_t n);\n\nchar *ft_strcat(char *s1, char const *s2);\nchar *ft_strncat(char *s1, char const *s2, size_t n);\nsize_t ft_strlcat(char *s1, char const *s2, size_t size);\nchar *ft_strjoin(char const *s1, char const *s2);\nchar *ft_strjoin_free(char *s1, char const *s2);\n\nchar *ft_strsub(char const *s, unsigned int start, \\n size_t len);\nchar **ft_strsplit(char const *s, char c);\n\nchar *ft_strchr(char const *s, int c);\nchar *ft_strrchr(char const *s, int c);\nchar *ft_strstr(char const *s1, char const *s2);\nchar *ft_strnstr(char const *s1, char const *s2, size_t n);\n\nvoid ft_striter(char *s, void (*f)(char *));\nvoid ft_striteri(char *s, void (*f)(unsigned int, char *));\nchar *ft_strmap(char const *s, char (*f)(char));\nchar *ft_strmapi(char const *s, \\n char (*f)(unsigned int, char));\n\nchar *ft_strtrim(char const *s);\n\n/*\n** =============================================================================\n** =================================== NUM =====================================\n*/\nint ft_atoi(char const *s);\nchar *ft_itoa(t_int n);\nchar *ft_uitoa(t_uint n);\n\ndouble ft_atof(const char *str, size_t *len);\n\nsize_t ft_intlen(t_int n);\nt_int ft_abs(t_int n);\nint ft_pow(int nbr, int pow);\n\nchar *ft_convert_base(char *nbr, char *base_from, \\n char *base_to);\nchar *ft_convert_base_free(char *nbr, char *base_from, \\n char *base_to);\n\n/*\n** =============================================================================\n** =================================== MEM =====================================\n*/\nvoid *ft_memalloc(size_t size);\nvoid *ft_memrealloc(void *ptr, size_t size, size_t new_size);\nint ft_memdel(void **ap);\n\nvoid ft_bzero(void *s, size_t n);\nvoid *ft_memset(void *b, int c, size_t len);\n\nvoid *ft_memdup(void *buf, size_t size);\nvoid *ft_memcpy(void *s1, void const *s2, size_t n);\nvoid *ft_memccpy(void *s1, void const *s2, int c, size_t n);\nvoid *ft_memmove(void *s1, void const *s2, size_t n);\n\nint ft_memcmp(void const*s1, void const *s2, size_t n);\n\nvoid *ft_memchr(void const *s, int c, size_t n);\n\n/*\n** =============================================================================\n** =================================== LIST ====================================\n*/\ntypedef struct s_list\n{\n struct s_list *next;\n void *content;\n} t_list;\n\nt_list *ft_lstnew(void const *content);\nvoid ft_lstadd(t_list **alst, void *n);\nvoid ft_lstaddend(t_list **alst, void *n);\n\nvoid ft_lstdel(t_list **alst, void (*del)(void *));\nvoid ft_lstdel_if(t_list **alst, void (*del)(), \\n void *ref, int (*cmp)());\nvoid ft_lstdelone(t_list **alst, void (*del)(void *));\n\nsize_t ft_lstcount(void *alst);\n\nvoid ft_lstiter(t_list *lst, void (*f)(t_list *elem));\nt_list *ft_lstmap(t_list *lst, t_list *(*f)(t_list *elem));\nvoid ft_lstsort(t_list **alst, int (*f)(t_list *elem1, \\n t_list *elem2));\n/*\n** =============================================================================\n** =================================== TREE ====================================\n*/\ntypedef enum e_btdir\n{\n FT_BT_SAME,\n FT_BT_LEFT,\n FT_BT_RIGHT\n} t_btdir;\n\ntypedef struct s_btree\n{\n struct s_btree *father;\n struct s_btree *left;\n struct s_btree *right;\n void *content;\n} t_btree;\n\nt_btree *ft_btreeadd(t_btree **atree, void *content, \\n t_btdir (*cmp)(t_btree *, void *));\nint ft_btreeiter(t_btree *atree, \\n t_btdir (*cmp)(t_btree *, t_btree *, void *), \\n int (*fct)(t_btree *, int, void *), \\n void *ref);\nvoid ft_put_btree(t_btree *tree, int depth, \\n void (*putfunc)(void *));\n/*\n** =============================================================================\n** =================================== TAB =====================================\n*/\nsize_t ft_tablen(char **tab);\nchar **ft_tabcpy(char **tab);\nvoid *ft_tabrealloc(void *tab, \\n size_t old_size, size_t new_size, size_t unit);\nvoid ft_tabprint(char **tab);\nvoid ft_tabfree(char **tab);\n/*\n** =============================================================================\n** ================================= PARSING ===================================\n*/\nint ft_charset_parser(const char *str, \\n const char *charset, size_t *len);\nssize_t ft_word_parser(const char *str, const char *word, \\n size_t w_size);\nint ft_natoi(const char *str, size_t size);\ndouble ft_natof(const char *str, size_t size, size_t *len);\n\n#endif\n" (comment) "/* ************************************************************************** */" (comment) "/* */" (comment) "/* ::: :::::::: */" (comment) "/* libft.h :+: :+: :+: */" (comment) "/* +:+ +:+ +:+ */" (comment) "/* By: bhivert <<EMAIL>> +#+ +:+ +#+ */" (comment) "/* +#+#+#+#+#+ +#+ */" (comment) "/* Created: 2013/11/19 11:39:25 by bhivert #+# #+# */" (comment) "/* Updated: 2015/09/23 10:09:24 by bhivert ### ########.fr */" (comment) "/* */" (comment) "/* ************************************************************************** */" (preproc_ifdef) "#ifndef LIBFT_H\n# define LIBFT_H\n\n# include <unistd.h>\n# include <stdlib.h>\n# include <string.h>\n\n# ifndef T_BOOL\n# define T_BOOL\n# define D_FALSE ((char) 0)\n# define D_TRUE ((char) 1)\n\ntypedef char t_bool;\n# endif\n\n# ifndef T_INT\n# define T_INT long long int\n# define T_UINT unsigned long long int\n\ntypedef T_INT t_int;\ntypedef T_UINT t_uint;\n# endif\n\n# ifndef XOR\n# define XOR(a,b) ((a && !b) || (!a && b))\n# endif\n\n# ifndef MIN\n# define MIN(a,b) ((a < b) ? a : b)\n# endif\n\n# ifndef MAX\n# define MAX(a,b) ((a > b) ? a : b)\n# endif\n\n# ifndef STR_NPOS\n# define STR_NPOS ((size_t) -1)\n# endif\n\n/*\n** =============================================================================\n** ================================== CHAR =====================================\n*/\nint ft_isalpha(int c);\nint ft_isdigit(int c);\nint ft_isalnum(int c);\nint ft_isascii(int c);\nint ft_isprint(int c);\nint ft_isspace(int c);\n\nint ft_toupper(int c);\nint ft_tolower(int c);\n\n/*\n** =============================================================================\n** =================================== IO ======================================\n** #include "ft_printf.h"\n** ft_printf(const char *format, ...);\n** ft_fprintf(int fd, const char *format, ...);\n** ft_sprintf(char **str, const char *format, ...);\n*/\n# define GNL_BUFF_SIZE 128\n\nint ft_gnl(int fd, char **line);\n\nint ft_putchar(int c);\nint ft_putchar_fd(int c, int fd);\n\nvoid ft_putstr(char const *s);\nvoid ft_putstr_fd(char const *s, int fd);\nvoid ft_putendl(char const *s);\nvoid ft_putendl_fd(char const *s, int fd);\n\nvoid ft_putnbr(int n);\nvoid ft_putnbr_fd(int n, int fd);\n\n/*\n** =============================================================================\n** =================================== STR =====================================\n*/\nsize_t ft_strlen(char const *s);\n\nchar *ft_strnew(size_t size);\nchar *ft_strdup(char const *s1);\nchar *ft_strcpy(char *s1, char const *s2);\nchar *ft_strncpy(char *s1, char const *s2, size_t n);\nvoid ft_strclr(char *s);\nvoid ft_strdel(char **as);\n\nint ft_strcmp(char const *s1, char const *s2);\nint ft_strncmp(char const *s1, char const *s2, size_t n);\nt_bool ft_strequ(char const *s1, char const *s2);\nt_bool ft_strnequ(char const *s1, char const *s2, size_t n);\n\nchar *ft_strcat(char *s1, char const *s2);\nchar *ft_strncat(char *s1, char const *s2, size_t n);\nsize_t ft_strlcat(char *s1, char const *s2, size_t size);\nchar *ft_strjoin(char const *s1, char const *s2);\nchar *ft_strjoin_free(char *s1, char const *s2);\n\nchar *ft_strsub(char const *s, unsigned int start, \\n size_t len);\nchar **ft_strsplit(char const *s, char c);\n\nchar *ft_strchr(char const *s, int c);\nchar *ft_strrchr(char const *s, int c);\nchar *ft_strstr(char const *s1, char const *s2);\nchar *ft_strnstr(char const *s1, char const *s2, size_t n);\n\nvoid ft_striter(char *s, void (*f)(char *));\nvoid ft_striteri(char *s, void (*f)(unsigned int, char *));\nchar *ft_strmap(char const *s, char (*f)(char));\nchar *ft_strmapi(char const *s, \\n char (*f)(unsigned int, char));\n\nchar *ft_strtrim(char const *s);\n\n/*\n** =============================================================================\n** =================================== NUM =====================================\n*/\nint ft_atoi(char const *s);\nchar *ft_itoa(t_int n);\nchar *ft_uitoa(t_uint n);\n\ndouble ft_atof(const char *str, size_t *len);\n\nsize_t ft_intlen(t_int n);\nt_int ft_abs(t_int n);\nint ft_pow(int nbr, int pow);\n\nchar *ft_convert_base(char *nbr, char *base_from, \\n char *base_to);\nchar *ft_convert_base_free(char *nbr, char *base_from, \\n char *base_to);\n\n/*\n** =============================================================================\n** =================================== MEM =====================================\n*/\nvoid *ft_memalloc(size_t size);\nvoid *ft_memrealloc(void *ptr, size_t size, size_t new_size);\nint ft_memdel(void **ap);\n\nvoid ft_bzero(void *s, size_t n);\nvoid *ft_memset(void *b, int c, size_t len);\n\nvoid *ft_memdup(void *buf, size_t size);\nvoid *ft_memcpy(void *s1, void const *s2, size_t n);\nvoid *ft_memccpy(void *s1, void const *s2, int c, size_t n);\nvoid *ft_memmove(void *s1, void const *s2, size_t n);\n\nint ft_memcmp(void const*s1, void const *s2, size_t n);\n\nvoid *ft_memchr(void const *s, int c, size_t n);\n\n/*\n** =============================================================================\n** =================================== LIST ====================================\n*/\ntypedef struct s_list\n{\n struct s_list *next;\n void *content;\n} t_list;\n\nt_list *ft_lstnew(void const *content);\nvoid ft_lstadd(t_list **alst, void *n);\nvoid ft_lstaddend(t_list **alst, void *n);\n\nvoid ft_lstdel(t_list **alst, void (*del)(void *));\nvoid ft_lstdel_if(t_list **alst, void (*del)(), \\n void *ref, int (*cmp)());\nvoid ft_lstdelone(t_list **alst, void (*del)(void *));\n\nsize_t ft_lstcount(void *alst);\n\nvoid ft_lstiter(t_list *lst, void (*f)(t_list *elem));\nt_list *ft_lstmap(t_list *lst, t_list *(*f)(t_list *elem));\nvoid ft_lstsort(t_list **alst, int (*f)(t_list *elem1, \\n t_list *elem2));\n/*\n** =============================================================================\n** =================================== TREE ====================================\n*/\ntypedef enum e_btdir\n{\n FT_BT_SAME,\n FT_BT_LEFT,\n FT_BT_RIGHT\n} t_btdir;\n\ntypedef struct s_btree\n{\n struct s_btree *father;\n struct s_btree *left;\n struct s_btree *right;\n void *content;\n} t_btree;\n\nt_btree *ft_btreeadd(t_btree **atree, void *content, \\n t_btdir (*cmp)(t_btree *, void *));\nint ft_btreeiter(t_btree *atree, \\n t_btdir (*cmp)(t_btree *, t_btree *, void *), \\n int (*fct)(t_btree *, int, void *), \\n void *ref);\nvoid ft_put_btree(t_btree *tree, int depth, \\n void (*putfunc)(void *));\n/*\n** =============================================================================\n** =================================== TAB =====================================\n*/\nsize_t ft_tablen(char **tab);\nchar **ft_tabcpy(char **tab);\nvoid *ft_tabrealloc(void *tab, \\n size_t old_size, size_t new_size, size_t unit);\nvoid ft_tabprint(char **tab);\nvoid ft_tabfree(char **tab);\n/*\n** =============================================================================\n** ================================= PARSING ===================================\n*/\nint ft_charset_parser(const char *str, \\n const char *charset, size_t *len);\nssize_t ft_word_parser(const char *str, const char *word, \\n size_t w_size);\nint ft_natoi(const char *str, size_t size);\ndouble ft_natof(const char *str, size_t size, size_t *len);\n\n#endif" (#ifndef) "#ifndef" (identifier) "LIBFT_H" (preproc_def) "# define LIBFT_H\n" (#define) "# define" (identifier) "LIBFT_H" (preproc_include) "# include <unistd.h>\n" (#include) "# include" (system_lib_string) "<unistd.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_ifdef) "# ifndef T_BOOL\n# define T_BOOL\n# define D_FALSE ((char) 0)\n# define D_TRUE ((char) 1)\n\ntypedef char t_bool;\n# endif" (#ifndef) "# ifndef" (identifier) "T_BOOL" (preproc_def) "# define T_BOOL\n" (#define) "# define" (identifier) "T_BOOL" (preproc_def) "# define D_FALSE ((char) 0)\n" (#define) "# define" (identifier) "D_FALSE" (preproc_arg) "((char) 0)" (preproc_def) "# define D_TRUE ((char) 1)\n" (#define) "# define" (identifier) "D_TRUE" (preproc_arg) "((char) 1)" (type_definition) "typedef char t_bool;" (typedef) "typedef" (primitive_type) "char" (type_identifier) "t_bool" (;) ";" (#endif) "# endif" (preproc_ifdef) "# ifndef T_INT\n# define T_INT long long int\n# define T_UINT unsigned long long int\n\ntypedef T_INT t_int;\ntypedef T_UINT t_uint;\n# endif" (#ifndef) "# ifndef" (identifier) "T_INT" (preproc_def) "# define T_INT long long int\n" (#define) "# define" (identifier) "T_INT" (preproc_arg) "long long int" (preproc_def) "# define T_UINT unsigned long long int\n" (#define) "# define" (identifier) "T_UINT" (preproc_arg) "unsigned long long int" (type_definition) "typedef T_INT t_int;" (typedef) "typedef" (type_identifier) "T_INT" (type_identifier) "t_int" (;) ";" (type_definition) "typedef T_UINT t_uint;" (typedef) "typedef" (type_identifier) "T_UINT" (type_identifier) "t_uint" (;) ";" (#endif) "# endif" (preproc_ifdef) "# ifndef XOR\n# define XOR(a,b) ((a && !b) || (!a && b))\n# endif" (#ifndef) "# ifndef" (identifier) "XOR" (preproc_function_def) "# define XOR(a,b) ((a && !b) || (!a && b))\n" (#define) "# define" (identifier) "XOR" (preproc_params) "(a,b)" (() "(" (identifier) "a" (,) "," (identifier) "b" ()) ")" (preproc_arg) "((a && !b) || (!a && b))" (#endif) "# endif" (preproc_ifdef) "# ifndef MIN\n# define MIN(a,b) ((a < b) ? a : b)\n# endif" (#ifndef) "# ifndef" (identifier) "MIN" (preproc_function_def) "# define MIN(a,b) ((a < b) ? a : b)\n" (#define) "# define" (identifier) "MIN" (preproc_params) "(a,b)" (() "(" (identifier) "a" (,) "," (identifier) "b" ()) ")" (preproc_arg) "((a < b) ? a : b)" (#endif) "# endif" (preproc_ifdef) "# ifndef MAX\n# define MAX(a,b) ((a > b) ? a : b)\n# endif" (#ifndef) "# ifndef" (identifier) "MAX" (preproc_function_def) "# define MAX(a,b) ((a > b) ? a : b)\n" (#define) "# define" (identifier) "MAX" (preproc_params) "(a,b)" (() "(" (identifier) "a" (,) "," (identifier) "b" ()) ")" (preproc_arg) "((a > b) ? a : b)" (#endif) "# endif" (preproc_ifdef) "# ifndef STR_NPOS\n# define STR_NPOS ((size_t) -1)\n# endif" (#ifndef) "# ifndef" (identifier) "STR_NPOS" (preproc_def) "# define STR_NPOS ((size_t) -1)\n" (#define) "# define" (identifier) "STR_NPOS" (preproc_arg) "((size_t) -1)" (#endif) "# endif" (comment) "/*\n** =============================================================================\n** ================================== CHAR =====================================\n*/" (declaration) "int ft_isalpha(int c);" (primitive_type) "int" (function_declarator) "ft_isalpha(int c)" (identifier) "ft_isalpha" (parameter_list) "(int c)" (() "(" (parameter_declaration) "int c" (primitive_type) "int" (identifier) "c" ()) ")" (;) ";" (declaration) "int ft_isdigit(int c);" (primitive_type) "int" (function_declarator) "ft_isdigit(int c)" (identifier) "ft_isdigit" (parameter_list) "(int c)" (() "(" (parameter_declaration) "int c" (primitive_type) "int" (identifier) "c" ()) ")" (;) ";" (declaration) "int ft_isalnum(int c);" (primitive_type) "int" (function_declarator) "ft_isalnum(int c)" (identifier) "ft_isalnum" (parameter_list) "(int c)" (() "(" (parameter_declaration) "int c" (primitive_type) "int" (identifier) "c" ()) ")" (;) ";" (declaration) "int ft_isascii(int c);" (primitive_type) "int" (function_declarator) "ft_isascii(int c)" (identifier) "ft_isascii" (parameter_list) "(int c)" (() "(" (parameter_declaration) "int c" (primitive_type) "int" (identifier) "c" ()) ")" (;) ";" (declaration) "int ft_isprint(int c);" (primitive_type) "int" (function_declarator) "ft_isprint(int c)" (identifier) "ft_isprint" (parameter_list) "(int c)" (() "(" (parameter_declaration) "int c" (primitive_type) "int" (identifier) "c" ()) ")" (;) ";" (declaration) "int ft_isspace(int c);" (primitive_type) "int" (function_declarator) "ft_isspace(int c)" (identifier) "ft_isspace" (parameter_list) "(int c)" (() "(" (parameter_declaration) "int c" (primitive_type) "int" (identifier) "c" ()) ")" (;) ";" (declaration) "int ft_toupper(int c);" (primitive_type) "int" (function_declarator) "ft_toupper(int c)" (identifier) "ft_toupper" (parameter_list) "(int c)" (() "(" (parameter_declaration) "int c" (primitive_type) "int" (identifier) "c" ()) ")" (;) ";" (declaration) "int ft_tolower(int c);" (primitive_type) "int" (function_declarator) "ft_tolower(int c)" (identifier) "ft_tolower" (parameter_list) "(int c)" (() "(" (parameter_declaration) "int c" (primitive_type) "int" (identifier) "c" ()) ")" (;) ";" (comment) "/*\n** =============================================================================\n** =================================== IO ======================================\n** #include "ft_printf.h"\n** ft_printf(const char *format, ...);\n** ft_fprintf(int fd, const char *format, ...);\n** ft_sprintf(char **str, const char *format, ...);\n*/" (preproc_def) "# define GNL_BUFF_SIZE 128\n" (#define) "# define" (identifier) "GNL_BUFF_SIZE" (preproc_arg) "128" (declaration) "int ft_gnl(int fd, char **line);" (primitive_type) "int" (function_declarator) "ft_gnl(int fd, char **line)" (identifier) "ft_gnl" (parameter_list) "(int fd, char **line)" (() "(" (parameter_declaration) "int fd" (primitive_type) "int" (identifier) "fd" (,) "," (parameter_declaration) "char **line" (primitive_type) "char" (pointer_declarator) "**line" (*) "*" (pointer_declarator) "*line" (*) "*" (identifier) "line" ()) ")" (;) ";" (declaration) "int ft_putchar(int c);" (primitive_type) "int" (function_declarator) "ft_putchar(int c)" (identifier) "ft_putchar" (parameter_list) "(int c)" (() "(" (parameter_declaration) "int c" (primitive_type) "int" (identifier) "c" ()) ")" (;) ";" (declaration) "int ft_putchar_fd(int c, int fd);" (primitive_type) "int" (function_declarator) "ft_putchar_fd(int c, int fd)" (identifier) "ft_putchar_fd" (parameter_list) "(int c, int fd)" (() "(" (parameter_declaration) "int c" (primitive_type) "int" (identifier) "c" (,) "," (parameter_declaration) "int fd" (primitive_type) "int" (identifier) "fd" ()) ")" (;) ";" (declaration) "void ft_putstr(char const *s);" (primitive_type) "void" (function_declarator) "ft_putstr(char const *s)" (identifier) "ft_putstr" (parameter_list) "(char const *s)" (() "(" (parameter_declaration) "char const *s" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*s" (*) "*" (identifier) "s" ()) ")" (;) ";" (declaration) "void ft_putstr_fd(char const *s, int fd);" (primitive_type) "void" (function_declarator) "ft_putstr_fd(char const *s, int fd)" (identifier) "ft_putstr_fd" (parameter_list) "(char const *s, int fd)" (() "(" (parameter_declaration) "char const *s" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*s" (*) "*" (identifier) "s" (,) "," (parameter_declaration) "int fd" (primitive_type) "int" (identifier) "fd" ()) ")" (;) ";" (declaration) "void ft_putendl(char const *s);" (primitive_type) "void" (function_declarator) "ft_putendl(char const *s)" (identifier) "ft_putendl" (parameter_list) "(char const *s)" (() "(" (parameter_declaration) "char const *s" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*s" (*) "*" (identifier) "s" ()) ")" (;) ";" (declaration) "void ft_putendl_fd(char const *s, int fd);" (primitive_type) "void" (function_declarator) "ft_putendl_fd(char const *s, int fd)" (identifier) "ft_putendl_fd" (parameter_list) "(char const *s, int fd)" (() "(" (parameter_declaration) "char const *s" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*s" (*) "*" (identifier) "s" (,) "," (parameter_declaration) "int fd" (primitive_type) "int" (identifier) "fd" ()) ")" (;) ";" (declaration) "void ft_putnbr(int n);" (primitive_type) "void" (function_declarator) "ft_putnbr(int n)" (identifier) "ft_putnbr" (parameter_list) "(int n)" (() "(" (parameter_declaration) "int n" (primitive_type) "int" (identifier) "n" ()) ")" (;) ";" (declaration) "void ft_putnbr_fd(int n, int fd);" (primitive_type) "void" (function_declarator) "ft_putnbr_fd(int n, int fd)" (identifier) "ft_putnbr_fd" (parameter_list) "(int n, int fd)" (() "(" (parameter_declaration) "int n" (primitive_type) "int" (identifier) "n" (,) "," (parameter_declaration) "int fd" (primitive_type) "int" (identifier) "fd" ()) ")" (;) ";" (comment) "/*\n** =============================================================================\n** =================================== STR =====================================\n*/" (declaration) "size_t ft_strlen(char const *s);" (primitive_type) "size_t" (function_declarator) "ft_strlen(char const *s)" (identifier) "ft_strlen" (parameter_list) "(char const *s)" (() "(" (parameter_declaration) "char const *s" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*s" (*) "*" (identifier) "s" ()) ")" (;) ";" (declaration) "char *ft_strnew(size_t size);" (primitive_type) "char" (pointer_declarator) "*ft_strnew(size_t size)" (*) "*" (function_declarator) "ft_strnew(size_t size)" (identifier) "ft_strnew" (parameter_list) "(size_t size)" (() "(" (parameter_declaration) "size_t size" (primitive_type) "size_t" (identifier) "size" ()) ")" (;) ";" (declaration) "char *ft_strdup(char const *s1);" (primitive_type) "char" (pointer_declarator) "*ft_strdup(char const *s1)" (*) "*" (function_declarator) "ft_strdup(char const *s1)" (identifier) "ft_strdup" (parameter_list) "(char const *s1)" (() "(" (parameter_declaration) "char const *s1" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*s1" (*) "*" (identifier) "s1" ()) ")" (;) ";" (declaration) "char *ft_strcpy(char *s1, char const *s2);" (primitive_type) "char" (pointer_declarator) "*ft_strcpy(char *s1, char const *s2)" (*) "*" (function_declarator) "ft_strcpy(char *s1, char const *s2)" (identifier) "ft_strcpy" (parameter_list) "(char *s1, char const *s2)" (() "(" (parameter_declaration) "char *s1" (primitive_type) "char" (pointer_declarator) "*s1" (*) "*" (identifier) "s1" (,) "," (parameter_declaration) "char const *s2" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*s2" (*) "*" (identifier) "s2" ()) ")" (;) ";" (declaration) "char *ft_strncpy(char *s1, char const *s2, size_t n);" (primitive_type) "char" (pointer_declarator) "*ft_strncpy(char *s1, char const *s2, size_t n)" (*) "*" (function_declarator) "ft_strncpy(char *s1, char const *s2, size_t n)" (identifier) "ft_strncpy" (parameter_list) "(char *s1, char const *s2, size_t n)" (() "(" (parameter_declaration) "char *s1" (primitive_type) "char" (pointer_declarator) "*s1" (*) "*" (identifier) "s1" (,) "," (parameter_declaration) "char const *s2" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*s2" (*) "*" (identifier) "s2" (,) "," (parameter_declaration) "size_t n" (primitive_type) "size_t" (identifier) "n" ()) ")" (;) ";" (declaration) "void ft_strclr(char *s);" (primitive_type) "void" (function_declarator) "ft_strclr(char *s)" (identifier) "ft_strclr" (parameter_list) "(char *s)" (() "(" (parameter_declaration) "char *s" (primitive_type) "char" (pointer_declarator) "*s" (*) "*" (identifier) "s" ()) ")" (;) ";" (declaration) "void ft_strdel(char **as);" (primitive_type) "void" (function_declarator) "ft_strdel(char **as)" (identifier) "ft_strdel" (parameter_list) "(char **as)" (() "(" (parameter_declaration) "char **as" (primitive_type) "char" (pointer_declarator) "**as" (*) "*" (pointer_declarator) "*as" (*) "*" (identifier) "as" ()) ")" (;) ";" (declaration) "int ft_strcmp(char const *s1, char const *s2);" (primitive_type) "int" (function_declarator) "ft_strcmp(char const *s1, char const *s2)" (identifier) "ft_strcmp" (parameter_list) "(char const *s1, char const *s2)" (() "(" (parameter_declaration) "char const *s1" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*s1" (*) "*" (identifier) "s1" (,) "," (parameter_declaration) "char const *s2" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*s2" (*) "*" (identifier) "s2" ()) ")" (;) ";" (declaration) "int ft_strncmp(char const *s1, char const *s2, size_t n);" (primitive_type) "int" (function_declarator) "ft_strncmp(char const *s1, char const *s2, size_t n)" (identifier) "ft_strncmp" (parameter_list) "(char const *s1, char const *s2, size_t n)" (() "(" (parameter_declaration) "char const *s1" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*s1" (*) "*" (identifier) "s1" (,) "," (parameter_declaration) "char const *s2" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*s2" (*) "*" (identifier) "s2" (,) "," (parameter_declaration) "size_t n" (primitive_type) "size_t" (identifier) "n" ()) ")" (;) ";" (declaration) "t_bool ft_strequ(char const *s1, char const *s2);" (type_identifier) "t_bool" (function_declarator) "ft_strequ(char const *s1, char const *s2)" (identifier) "ft_strequ" (parameter_list) "(char const *s1, char const *s2)" (() "(" (parameter_declaration) "char const *s1" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*s1" (*) "*" (identifier) "s1" (,) "," (parameter_declaration) "char const *s2" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*s2" (*) "*" (identifier) "s2" ()) ")" (;) ";" (declaration) "t_bool ft_strnequ(char const *s1, char const *s2, size_t n);" (type_identifier) "t_bool" (function_declarator) "ft_strnequ(char const *s1, char const *s2, size_t n)" (identifier) "ft_strnequ" (parameter_list) "(char const *s1, char const *s2, size_t n)" (() "(" (parameter_declaration) "char const *s1" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*s1" (*) "*" (identifier) "s1" (,) "," (parameter_declaration) "char const *s2" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*s2" (*) "*" (identifier) "s2" (,) "," (parameter_declaration) "size_t n" (primitive_type) "size_t" (identifier) "n" ()) ")" (;) ";" (declaration) "char *ft_strcat(char *s1, char const *s2);" (primitive_type) "char" (pointer_declarator) "*ft_strcat(char *s1, char const *s2)" (*) "*" (function_declarator) "ft_strcat(char *s1, char const *s2)" (identifier) "ft_strcat" (parameter_list) "(char *s1, char const *s2)" (() "(" (parameter_declaration) "char *s1" (primitive_type) "char" (pointer_declarator) "*s1" (*) "*" (identifier) "s1" (,) "," (parameter_declaration) "char const *s2" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*s2" (*) "*" (identifier) "s2" ()) ")" (;) ";" (declaration) "char *ft_strncat(char *s1, char const *s2, size_t n);" (primitive_type) "char" (pointer_declarator) "*ft_strncat(char *s1, char const *s2, size_t n)" (*) "*" (function_declarator) "ft_strncat(char *s1, char const *s2, size_t n)" (identifier) "ft_strncat" (parameter_list) "(char *s1, char const *s2, size_t n)" (() "(" (parameter_declaration) "char *s1" (primitive_type) "char" (pointer_declarator) "*s1" (*) "*" (identifier) "s1" (,) "," (parameter_declaration) "char const *s2" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*s2" (*) "*" (identifier) "s2" (,) "," (parameter_declaration) "size_t n" (primitive_type) "size_t" (identifier) "n" ()) ")" (;) ";" (declaration) "size_t ft_strlcat(char *s1, char const *s2, size_t size);" (primitive_type) "size_t" (function_declarator) "ft_strlcat(char *s1, char const *s2, size_t size)" (identifier) "ft_strlcat" (parameter_list) "(char *s1, char const *s2, size_t size)" (() "(" (parameter_declaration) "char *s1" (primitive_type) "char" (pointer_declarator) "*s1" (*) "*" (identifier) "s1" (,) "," (parameter_declaration) "char const *s2" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*s2" (*) "*" (identifier) "s2" (,) "," (parameter_declaration) "size_t size" (primitive_type) "size_t" (identifier) "size" ()) ")" (;) ";" (declaration) "char *ft_strjoin(char const *s1, char const *s2);" (primitive_type) "char" (pointer_declarator) "*ft_strjoin(char const *s1, char const *s2)" (*) "*" (function_declarator) "ft_strjoin(char const *s1, char const *s2)" (identifier) "ft_strjoin" (parameter_list) "(char const *s1, char const *s2)" (() "(" (parameter_declaration) "char const *s1" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*s1" (*) "*" (identifier) "s1" (,) "," (parameter_declaration) "char const *s2" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*s2" (*) "*" (identifier) "s2" ()) ")" (;) ";" (declaration) "char *ft_strjoin_free(char *s1, char const *s2);" (primitive_type) "char" (pointer_declarator) "*ft_strjoin_free(char *s1, char const *s2)" (*) "*" (function_declarator) "ft_strjoin_free(char *s1, char const *s2)" (identifier) "ft_strjoin_free" (parameter_list) "(char *s1, char const *s2)" (() "(" (parameter_declaration) "char *s1" (primitive_type) "char" (pointer_declarator) "*s1" (*) "*" (identifier) "s1" (,) "," (parameter_declaration) "char const *s2" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*s2" (*) "*" (identifier) "s2" ()) ")" (;) ";" (declaration) "char *ft_strsub(char const *s, unsigned int start, \\n size_t len);" (primitive_type) "char" (pointer_declarator) "*ft_strsub(char const *s, unsigned int start, \\n size_t len)" (*) "*" (function_declarator) "ft_strsub(char const *s, unsigned int start, \\n size_t len)" (identifier) "ft_strsub" (parameter_list) "(char const *s, unsigned int start, \\n size_t len)" (() "(" (parameter_declaration) "char const *s" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*s" (*) "*" (identifier) "s" (,) "," (parameter_declaration) "unsigned int start" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "start" (,) "," (parameter_declaration) "size_t len" (primitive_type) "size_t" (identifier) "len" ()) ")" (;) ";" (declaration) "char **ft_strsplit(char const *s, char c);" (primitive_type) "char" (pointer_declarator) "**ft_strsplit(char const *s, char c)" (*) "*" (pointer_declarator) "*ft_strsplit(char const *s, char c)" (*) "*" (function_declarator) "ft_strsplit(char const *s, char c)" (identifier) "ft_strsplit" (parameter_list) "(char const *s, char c)" (() "(" (parameter_declaration) "char const *s" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*s" (*) "*" (identifier) "s" (,) "," (parameter_declaration) "char c" (primitive_type) "char" (identifier) "c" ()) ")" (;) ";" (declaration) "char *ft_strchr(char const *s, int c);" (primitive_type) "char" (pointer_declarator) "*ft_strchr(char const *s, int c)" (*) "*" (function_declarator) "ft_strchr(char const *s, int c)" (identifier) "ft_strchr" (parameter_list) "(char const *s, int c)" (() "(" (parameter_declaration) "char const *s" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*s" (*) "*" (identifier) "s" (,) "," (parameter_declaration) "int c" (primitive_type) "int" (identifier) "c" ()) ")" (;) ";" (declaration) "char *ft_strrchr(char const *s, int c);" (primitive_type) "char" (pointer_declarator) "*ft_strrchr(char const *s, int c)" (*) "*" (function_declarator) "ft_strrchr(char const *s, int c)" (identifier) "ft_strrchr" (parameter_list) "(char const *s, int c)" (() "(" (parameter_declaration) "char const *s" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*s" (*) "*" (identifier) "s" (,) "," (parameter_declaration) "int c" (primitive_type) "int" (identifier) "c" ()) ")" (;) ";" (declaration) "char *ft_strstr(char const *s1, char const *s2);" (primitive_type) "char" (pointer_declarator) "*ft_strstr(char const *s1, char const *s2)" (*) "*" (function_declarator) "ft_strstr(char const *s1, char const *s2)" (identifier) "ft_strstr" (parameter_list) "(char const *s1, char const *s2)" (() "(" (parameter_declaration) "char const *s1" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*s1" (*) "*" (identifier) "s1" (,) "," (parameter_declaration) "char const *s2" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*s2" (*) "*" (identifier) "s2" ()) ")" (;) ";" (declaration) "char *ft_strnstr(char const *s1, char const *s2, size_t n);" (primitive_type) "char" (pointer_declarator) "*ft_strnstr(char const *s1, char const *s2, size_t n)" (*) "*" (function_declarator) "ft_strnstr(char const *s1, char const *s2, size_t n)" (identifier) "ft_strnstr" (parameter_list) "(char const *s1, char const *s2, size_t n)" (() "(" (parameter_declaration) "char const *s1" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*s1" (*) "*" (identifier) "s1" (,) "," (parameter_declaration) "char const *s2" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*s2" (*) "*" (identifier) "s2" (,) "," (parameter_declaration) "size_t n" (primitive_type) "size_t" (identifier) "n" ()) ")" (;) ";" (declaration) "void ft_striter(char *s, void (*f)(char *));" (primitive_type) "void" (function_declarator) "ft_striter(char *s, void (*f)(char *))" (identifier) "ft_striter" (parameter_list) "(char *s, void (*f)(char *))" (() "(" (parameter_declaration) "char *s" (primitive_type) "char" (pointer_declarator) "*s" (*) "*" (identifier) "s" (,) "," (parameter_declaration) "void (*f)(char *)" (primitive_type) "void" (function_declarator) "(*f)(char *)" (parenthesized_declarator) "(*f)" (() "(" (pointer_declarator) "*f" (*) "*" (identifier) "f" ()) ")" (parameter_list) "(char *)" (() "(" (parameter_declaration) "char *" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" ()) ")" (;) ";" (declaration) "void ft_striteri(char *s, void (*f)(unsigned int, char *));" (primitive_type) "void" (function_declarator) "ft_striteri(char *s, void (*f)(unsigned int, char *))" (identifier) "ft_striteri" (parameter_list) "(char *s, void (*f)(unsigned int, char *))" (() "(" (parameter_declaration) "char *s" (primitive_type) "char" (pointer_declarator) "*s" (*) "*" (identifier) "s" (,) "," (parameter_declaration) "void (*f)(unsigned int, char *)" (primitive_type) "void" (function_declarator) "(*f)(unsigned int, char *)" (parenthesized_declarator) "(*f)" (() "(" (pointer_declarator) "*f" (*) "*" (identifier) "f" ()) ")" (parameter_list) "(unsigned int, char *)" (() "(" (parameter_declaration) "unsigned int" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (,) "," (parameter_declaration) "char *" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" ()) ")" (;) ";" (declaration) "char *ft_strmap(char const *s, char (*f)(char));" (primitive_type) "char" (pointer_declarator) "*ft_strmap(char const *s, char (*f)(char))" (*) "*" (function_declarator) "ft_strmap(char const *s, char (*f)(char))" (identifier) "ft_strmap" (parameter_list) "(char const *s, char (*f)(char))" (() "(" (parameter_declaration) "char const *s" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*s" (*) "*" (identifier) "s" (,) "," (parameter_declaration) "char (*f)(char)" (primitive_type) "char" (function_declarator) "(*f)(char)" (parenthesized_declarator) "(*f)" (() "(" (pointer_declarator) "*f" (*) "*" (identifier) "f" ()) ")" (parameter_list) "(char)" (() "(" (parameter_declaration) "char" (primitive_type) "char" ()) ")" ()) ")" (;) ";" (declaration) "char *ft_strmapi(char const *s, \\n char (*f)(unsigned int, char));" (primitive_type) "char" (pointer_declarator) "*ft_strmapi(char const *s, \\n char (*f)(unsigned int, char))" (*) "*" (function_declarator) "ft_strmapi(char const *s, \\n char (*f)(unsigned int, char))" (identifier) "ft_strmapi" (parameter_list) "(char const *s, \\n char (*f)(unsigned int, char))" (() "(" (parameter_declaration) "char const *s" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*s" (*) "*" (identifier) "s" (,) "," (parameter_declaration) "char (*f)(unsigned int, char)" (primitive_type) "char" (function_declarator) "(*f)(unsigned int, char)" (parenthesized_declarator) "(*f)" (() "(" (pointer_declarator) "*f" (*) "*" (identifier) "f" ()) ")" (parameter_list) "(unsigned int, char)" (() "(" (parameter_declaration) "unsigned int" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (,) "," (parameter_declaration) "char" (primitive_type) "char" ()) ")" ()) ")" (;) ";" (declaration) "char *ft_strtrim(char const *s);" (primitive_type) "char" (pointer_declarator) "*ft_strtrim(char const *s)" (*) "*" (function_declarator) "ft_strtrim(char const *s)" (identifier) "ft_strtrim" (parameter_list) "(char const *s)" (() "(" (parameter_declaration) "char const *s" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*s" (*) "*" (identifier) "s" ()) ")" (;) ";" (comment) "/*\n** =============================================================================\n** =================================== NUM =====================================\n*/" (declaration) "int ft_atoi(char const *s);" (primitive_type) "int" (function_declarator) "ft_atoi(char const *s)" (identifier) "ft_atoi" (parameter_list) "(char const *s)" (() "(" (parameter_declaration) "char const *s" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*s" (*) "*" (identifier) "s" ()) ")" (;) ";" (declaration) "char *ft_itoa(t_int n);" (primitive_type) "char" (pointer_declarator) "*ft_itoa(t_int n)" (*) "*" (function_declarator) "ft_itoa(t_int n)" (identifier) "ft_itoa" (parameter_list) "(t_int n)" (() "(" (parameter_declaration) "t_int n" (type_identifier) "t_int" (identifier) "n" ()) ")" (;) ";" (declaration) "char *ft_uitoa(t_uint n);" (primitive_type) "char" (pointer_declarator) "*ft_uitoa(t_uint n)" (*) "*" (function_declarator) "ft_uitoa(t_uint n)" (identifier) "ft_uitoa" (parameter_list) "(t_uint n)" (() "(" (parameter_declaration) "t_uint n" (type_identifier) "t_uint" (identifier) "n" ()) ")" (;) ";" (declaration) "double ft_atof(const char *str, size_t *len);" (primitive_type) "double" (function_declarator) "ft_atof(const char *str, size_t *len)" (identifier) "ft_atof" (parameter_list) "(const char *str, size_t *len)" (() "(" (parameter_declaration) "const char *str" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*str" (*) "*" (identifier) "str" (,) "," (parameter_declaration) "size_t *len" (primitive_type) "size_t" (pointer_declarator) "*len" (*) "*" (identifier) "len" ()) ")" (;) ";" (declaration) "size_t ft_intlen(t_int n);" (primitive_type) "size_t" (function_declarator) "ft_intlen(t_int n)" (identifier) "ft_intlen" (parameter_list) "(t_int n)" (() "(" (parameter_declaration) "t_int n" (type_identifier) "t_int" (identifier) "n" ()) ")" (;) ";" (declaration) "t_int ft_abs(t_int n);" (type_identifier) "t_int" (function_declarator) "ft_abs(t_int n)" (identifier) "ft_abs" (parameter_list) "(t_int n)" (() "(" (parameter_declaration) "t_int n" (type_identifier) "t_int" (identifier) "n" ()) ")" (;) ";" (declaration) "int ft_pow(int nbr, int pow);" (primitive_type) "int" (function_declarator) "ft_pow(int nbr, int pow)" (identifier) "ft_pow" (parameter_list) "(int nbr, int pow)" (() "(" (parameter_declaration) "int nbr" (primitive_type) "int" (identifier) "nbr" (,) "," (parameter_declaration) "int pow" (primitive_type) "int" (identifier) "pow" ()) ")" (;) ";" (declaration) "char *ft_convert_base(char *nbr, char *base_from, \\n char *base_to);" (primitive_type) "char" (pointer_declarator) "*ft_convert_base(char *nbr, char *base_from, \\n char *base_to)" (*) "*" (function_declarator) "ft_convert_base(char *nbr, char *base_from, \\n char *base_to)" (identifier) "ft_convert_base" (parameter_list) "(char *nbr, char *base_from, \\n char *base_to)" (() "(" (parameter_declaration) "char *nbr" (primitive_type) "char" (pointer_declarator) "*nbr" (*) "*" (identifier) "nbr" (,) "," (parameter_declaration) "char *base_from" (primitive_type) "char" (pointer_declarator) "*base_from" (*) "*" (identifier) "base_from" (,) "," (parameter_declaration) "char *base_to" (primitive_type) "char" (pointer_declarator) "*base_to" (*) "*" (identifier) "base_to" ()) ")" (;) ";" (declaration) "char *ft_convert_base_free(char *nbr, char *base_from, \\n char *base_to);" (primitive_type) "char" (pointer_declarator) "*ft_convert_base_free(char *nbr, char *base_from, \\n char *base_to)" (*) "*" (function_declarator) "ft_convert_base_free(char *nbr, char *base_from, \\n char *base_to)" (identifier) "ft_convert_base_free" (parameter_list) "(char *nbr, char *base_from, \\n char *base_to)" (() "(" (parameter_declaration) "char *nbr" (primitive_type) "char" (pointer_declarator) "*nbr" (*) "*" (identifier) "nbr" (,) "," (parameter_declaration) "char *base_from" (primitive_type) "char" (pointer_declarator) "*base_from" (*) "*" (identifier) "base_from" (,) "," (parameter_declaration) "char *base_to" (primitive_type) "char" (pointer_declarator) "*base_to" (*) "*" (identifier) "base_to" ()) ")" (;) ";" (comment) "/*\n** =============================================================================\n** =================================== MEM =====================================\n*/" (declaration) "void *ft_memalloc(size_t size);" (primitive_type) "void" (pointer_declarator) "*ft_memalloc(size_t size)" (*) "*" (function_declarator) "ft_memalloc(size_t size)" (identifier) "ft_memalloc" (parameter_list) "(size_t size)" (() "(" (parameter_declaration) "size_t size" (primitive_type) "size_t" (identifier) "size" ()) ")" (;) ";" (declaration) "void *ft_memrealloc(void *ptr, size_t size, size_t new_size);" (primitive_type) "void" (pointer_declarator) "*ft_memrealloc(void *ptr, size_t size, size_t new_size)" (*) "*" (function_declarator) "ft_memrealloc(void *ptr, size_t size, size_t new_size)" (identifier) "ft_memrealloc" (parameter_list) "(void *ptr, size_t size, size_t new_size)" (() "(" (parameter_declaration) "void *ptr" (primitive_type) "void" (pointer_declarator) "*ptr" (*) "*" (identifier) "ptr" (,) "," (parameter_declaration) "size_t size" (primitive_type) "size_t" (identifier) "size" (,) "," (parameter_declaration) "size_t new_size" (primitive_type) "size_t" (identifier) "new_size" ()) ")" (;) ";" (declaration) "int ft_memdel(void **ap);" (primitive_type) "int" (function_declarator) "ft_memdel(void **ap)" (identifier) "ft_memdel" (parameter_list) "(void **ap)" (() "(" (parameter_declaration) "void **ap" (primitive_type) "void" (pointer_declarator) "**ap" (*) "*" (pointer_declarator) "*ap" (*) "*" (identifier) "ap" ()) ")" (;) ";" (declaration) "void ft_bzero(void *s, size_t n);" (primitive_type) "void" (function_declarator) "ft_bzero(void *s, size_t n)" (identifier) "ft_bzero" (parameter_list) "(void *s, size_t n)" (() "(" (parameter_declaration) "void *s" (primitive_type) "void" (pointer_declarator) "*s" (*) "*" (identifier) "s" (,) "," (parameter_declaration) "size_t n" (primitive_type) "size_t" (identifier) "n" ()) ")" (;) ";" (declaration) "void *ft_memset(void *b, int c, size_t len);" (primitive_type) "void" (pointer_declarator) "*ft_memset(void *b, int c, size_t len)" (*) "*" (function_declarator) "ft_memset(void *b, int c, size_t len)" (identifier) "ft_memset" (parameter_list) "(void *b, int c, size_t len)" (() "(" (parameter_declaration) "void *b" (primitive_type) "void" (pointer_declarator) "*b" (*) "*" (identifier) "b" (,) "," (parameter_declaration) "int c" (primitive_type) "int" (identifier) "c" (,) "," (parameter_declaration) "size_t len" (primitive_type) "size_t" (identifier) "len" ()) ")" (;) ";" (declaration) "void *ft_memdup(void *buf, size_t size);" (primitive_type) "void" (pointer_declarator) "*ft_memdup(void *buf, size_t size)" (*) "*" (function_declarator) "ft_memdup(void *buf, size_t size)" (identifier) "ft_memdup" (parameter_list) "(void *buf, size_t size)" (() "(" (parameter_declaration) "void *buf" (primitive_type) "void" (pointer_declarator) "*buf" (*) "*" (identifier) "buf" (,) "," (parameter_declaration) "size_t size" (primitive_type) "size_t" (identifier) "size" ()) ")" (;) ";" (declaration) "void *ft_memcpy(void *s1, void const *s2, size_t n);" (primitive_type) "void" (pointer_declarator) "*ft_memcpy(void *s1, void const *s2, size_t n)" (*) "*" (function_declarator) "ft_memcpy(void *s1, void const *s2, size_t n)" (identifier) "ft_memcpy" (parameter_list) "(void *s1, void const *s2, size_t n)" (() "(" (parameter_declaration) "void *s1" (primitive_type) "void" (pointer_declarator) "*s1" (*) "*" (identifier) "s1" (,) "," (parameter_declaration) "void const *s2" (primitive_type) "void" (type_qualifier) "const" (const) "const" (pointer_declarator) "*s2" (*) "*" (identifier) "s2" (,) "," (parameter_declaration) "size_t n" (primitive_type) "size_t" (identifier) "n" ()) ")" (;) ";" (declaration) "void *ft_memccpy(void *s1, void const *s2, int c, size_t n);" (primitive_type) "void" (pointer_declarator) "*ft_memccpy(void *s1, void const *s2, int c, size_t n)" (*) "*" (function_declarator) "ft_memccpy(void *s1, void const *s2, int c, size_t n)" (identifier) "ft_memccpy" (parameter_list) "(void *s1, void const *s2, int c, size_t n)" (() "(" (parameter_declaration) "void *s1" (primitive_type) "void" (pointer_declarator) "*s1" (*) "*" (identifier) "s1" (,) "," (parameter_declaration) "void const *s2" (primitive_type) "void" (type_qualifier) "const" (const) "const" (pointer_declarator) "*s2" (*) "*" (identifier) "s2" (,) "," (parameter_declaration) "int c" (primitive_type) "int" (identifier) "c" (,) "," (parameter_declaration) "size_t n" (primitive_type) "size_t" (identifier) "n" ()) ")" (;) ";" (declaration) "void *ft_memmove(void *s1, void const *s2, size_t n);" (primitive_type) "void" (pointer_declarator) "*ft_memmove(void *s1, void const *s2, size_t n)" (*) "*" (function_declarator) "ft_memmove(void *s1, void const *s2, size_t n)" (identifier) "ft_memmove" (parameter_list) "(void *s1, void const *s2, size_t n)" (() "(" (parameter_declaration) "void *s1" (primitive_type) "void" (pointer_declarator) "*s1" (*) "*" (identifier) "s1" (,) "," (parameter_declaration) "void const *s2" (primitive_type) "void" (type_qualifier) "const" (const) "const" (pointer_declarator) "*s2" (*) "*" (identifier) "s2" (,) "," (parameter_declaration) "size_t n" (primitive_type) "size_t" (identifier) "n" ()) ")" (;) ";" (declaration) "int ft_memcmp(void const*s1, void const *s2, size_t n);" (primitive_type) "int" (function_declarator) "ft_memcmp(void const*s1, void const *s2, size_t n)" (identifier) "ft_memcmp" (parameter_list) "(void const*s1, void const *s2, size_t n)" (() "(" (parameter_declaration) "void const*s1" (primitive_type) "void" (type_qualifier) "const" (const) "const" (pointer_declarator) "*s1" (*) "*" (identifier) "s1" (,) "," (parameter_declaration) "void const *s2" (primitive_type) "void" (type_qualifier) "const" (const) "const" (pointer_declarator) "*s2" (*) "*" (identifier) "s2" (,) "," (parameter_declaration) "size_t n" (primitive_type) "size_t" (identifier) "n" ()) ")" (;) ";" (declaration) "void *ft_memchr(void const *s, int c, size_t n);" (primitive_type) "void" (pointer_declarator) "*ft_memchr(void const *s, int c, size_t n)" (*) "*" (function_declarator) "ft_memchr(void const *s, int c, size_t n)" (identifier) "ft_memchr" (parameter_list) "(void const *s, int c, size_t n)" (() "(" (parameter_declaration) "void const *s" (primitive_type) "void" (type_qualifier) "const" (const) "const" (pointer_declarator) "*s" (*) "*" (identifier) "s" (,) "," (parameter_declaration) "int c" (primitive_type) "int" (identifier) "c" (,) "," (parameter_declaration) "size_t n" (primitive_type) "size_t" (identifier) "n" ()) ")" (;) ";" (comment) "/*\n** =============================================================================\n** =================================== LIST ====================================\n*/" (type_definition) "typedef struct s_list\n{\n struct s_list *next;\n void *content;\n} t_list;" (typedef) "typedef" (struct_specifier) "struct s_list\n{\n struct s_list *next;\n void *content;\n}" (struct) "struct" (type_identifier) "s_list" (field_declaration_list) "{\n struct s_list *next;\n void *content;\n}" ({) "{" (field_declaration) "struct s_list *next;" (struct_specifier) "struct s_list" (struct) "struct" (type_identifier) "s_list" (pointer_declarator) "*next" (*) "*" (field_identifier) "next" (;) ";" (field_declaration) "void *content;" (primitive_type) "void" (pointer_declarator) "*content" (*) "*" (field_identifier) "content" (;) ";" (}) "}" (type_identifier) "t_list" (;) ";" (declaration) "t_list *ft_lstnew(void const *content);" (type_identifier) "t_list" (pointer_declarator) "*ft_lstnew(void const *content)" (*) "*" (function_declarator) "ft_lstnew(void const *content)" (identifier) "ft_lstnew" (parameter_list) "(void const *content)" (() "(" (parameter_declaration) "void const *content" (primitive_type) "void" (type_qualifier) "const" (const) "const" (pointer_declarator) "*content" (*) "*" (identifier) "content" ()) ")" (;) ";" (declaration) "void ft_lstadd(t_list **alst, void *n);" (primitive_type) "void" (function_declarator) "ft_lstadd(t_list **alst, void *n)" (identifier) "ft_lstadd" (parameter_list) "(t_list **alst, void *n)" (() "(" (parameter_declaration) "t_list **alst" (type_identifier) "t_list" (pointer_declarator) "**alst" (*) "*" (pointer_declarator) "*alst" (*) "*" (identifier) "alst" (,) "," (parameter_declaration) "void *n" (primitive_type) "void" (pointer_declarator) "*n" (*) "*" (identifier) "n" ()) ")" (;) ";" (declaration) "void ft_lstaddend(t_list **alst, void *n);" (primitive_type) "void" (function_declarator) "ft_lstaddend(t_list **alst, void *n)" (identifier) "ft_lstaddend" (parameter_list) "(t_list **alst, void *n)" (() "(" (parameter_declaration) "t_list **alst" (type_identifier) "t_list" (pointer_declarator) "**alst" (*) "*" (pointer_declarator) "*alst" (*) "*" (identifier) "alst" (,) "," (parameter_declaration) "void *n" (primitive_type) "void" (pointer_declarator) "*n" (*) "*" (identifier) "n" ()) ")" (;) ";" (declaration) "void ft_lstdel(t_list **alst, void (*del)(void *));" (primitive_type) "void" (function_declarator) "ft_lstdel(t_list **alst, void (*del)(void *))" (identifier) "ft_lstdel" (parameter_list) "(t_list **alst, void (*del)(void *))" (() "(" (parameter_declaration) "t_list **alst" (type_identifier) "t_list" (pointer_declarator) "**alst" (*) "*" (pointer_declarator) "*alst" (*) "*" (identifier) "alst" (,) "," (parameter_declaration) "void (*del)(void *)" (primitive_type) "void" (function_declarator) "(*del)(void *)" (parenthesized_declarator) "(*del)" (() "(" (pointer_declarator) "*del" (*) "*" (identifier) "del" ()) ")" (parameter_list) "(void *)" (() "(" (parameter_declaration) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" ()) ")" (;) ";" (declaration) "void ft_lstdel_if(t_list **alst, void (*del)(), \\n void *ref, int (*cmp)());" (primitive_type) "void" (function_declarator) "ft_lstdel_if(t_list **alst, void (*del)(), \\n void *ref, int (*cmp)())" (identifier) "ft_lstdel_if" (parameter_list) "(t_list **alst, void (*del)(), \\n void *ref, int (*cmp)())" (() "(" (parameter_declaration) "t_list **alst" (type_identifier) "t_list" (pointer_declarator) "**alst" (*) "*" (pointer_declarator) "*alst" (*) "*" (identifier) "alst" (,) "," (parameter_declaration) "void (*del)()" (primitive_type) "void" (function_declarator) "(*del)()" (parenthesized_declarator) "(*del)" (() "(" (pointer_declarator) "*del" (*) "*" (identifier) "del" ()) ")" (parameter_list) "()" (() "(" ()) ")" (,) "," (parameter_declaration) "void *ref" (primitive_type) "void" (pointer_declarator) "*ref" (*) "*" (identifier) "ref" (,) "," (parameter_declaration) "int (*cmp)()" (primitive_type) "int" (function_declarator) "(*cmp)()" (parenthesized_declarator) "(*cmp)" (() "(" (pointer_declarator) "*cmp" (*) "*" (identifier) "cmp" ()) ")" (parameter_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (declaration) "void ft_lstdelone(t_list **alst, void (*del)(void *));" (primitive_type) "void" (function_declarator) "ft_lstdelone(t_list **alst, void (*del)(void *))" (identifier) "ft_lstdelone" (parameter_list) "(t_list **alst, void (*del)(void *))" (() "(" (parameter_declaration) "t_list **alst" (type_identifier) "t_list" (pointer_declarator) "**alst" (*) "*" (pointer_declarator) "*alst" (*) "*" (identifier) "alst" (,) "," (parameter_declaration) "void (*del)(void *)" (primitive_type) "void" (function_declarator) "(*del)(void *)" (parenthesized_declarator) "(*del)" (() "(" (pointer_declarator) "*del" (*) "*" (identifier) "del" ()) ")" (parameter_list) "(void *)" (() "(" (parameter_declaration) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" ()) ")" (;) ";" (declaration) "size_t ft_lstcount(void *alst);" (primitive_type) "size_t" (function_declarator) "ft_lstcount(void *alst)" (identifier) "ft_lstcount" (parameter_list) "(void *alst)" (() "(" (parameter_declaration) "void *alst" (primitive_type) "void" (pointer_declarator) "*alst" (*) "*" (identifier) "alst" ()) ")" (;) ";" (declaration) "void ft_lstiter(t_list *lst, void (*f)(t_list *elem));" (primitive_type) "void" (function_declarator) "ft_lstiter(t_list *lst, void (*f)(t_list *elem))" (identifier) "ft_lstiter" (parameter_list) "(t_list *lst, void (*f)(t_list *elem))" (() "(" (parameter_declaration) "t_list *lst" (type_identifier) "t_list" (pointer_declarator) "*lst" (*) "*" (identifier) "lst" (,) "," (parameter_declaration) "void (*f)(t_list *elem)" (primitive_type) "void" (function_declarator) "(*f)(t_list *elem)" (parenthesized_declarator) "(*f)" (() "(" (pointer_declarator) "*f" (*) "*" (identifier) "f" ()) ")" (parameter_list) "(t_list *elem)" (() "(" (parameter_declaration) "t_list *elem" (type_identifier) "t_list" (pointer_declarator) "*elem" (*) "*" (identifier) "elem" ()) ")" ()) ")" (;) ";" (expression_statement) "t_list *ft_lstmap(t_list *lst, t_list *(*f)(t_list *elem));" (binary_expression) "t_list *ft_lstmap(t_list *lst, t_list *(*f)(t_list *elem))" (identifier) "t_list" (*) "*" (call_expression) "ft_lstmap(t_list *lst, t_list *(*f)(t_list *elem))" (identifier) "ft_lstmap" (argument_list) "(t_list *lst, t_list *(*f)(t_list *elem))" (() "(" (binary_expression) "t_list *lst" (identifier) "t_list" (*) "*" (identifier) "lst" (,) "," (binary_expression) "t_list *(*f)(t_list *elem)" (identifier) "t_list" (*) "*" (call_expression) "(*f)(t_list *elem)" (parenthesized_expression) "(*f)" (() "(" (pointer_expression) "*f" (*) "*" (identifier) "f" ()) ")" (argument_list) "(t_list *elem)" (() "(" (binary_expression) "t_list *elem" (identifier) "t_list" (*) "*" (identifier) "elem" ()) ")" ()) ")" (;) ";" (declaration) "void ft_lstsort(t_list **alst, int (*f)(t_list *elem1, \\n t_list *elem2));" (primitive_type) "void" (function_declarator) "ft_lstsort(t_list **alst, int (*f)(t_list *elem1, \\n t_list *elem2))" (identifier) "ft_lstsort" (parameter_list) "(t_list **alst, int (*f)(t_list *elem1, \\n t_list *elem2))" (() "(" (parameter_declaration) "t_list **alst" (type_identifier) "t_list" (pointer_declarator) "**alst" (*) "*" (pointer_declarator) "*alst" (*) "*" (identifier) "alst" (,) "," (parameter_declaration) "int (*f)(t_list *elem1, \\n t_list *elem2)" (primitive_type) "int" (function_declarator) "(*f)(t_list *elem1, \\n t_list *elem2)" (parenthesized_declarator) "(*f)" (() "(" (pointer_declarator) "*f" (*) "*" (identifier) "f" ()) ")" (parameter_list) "(t_list *elem1, \\n t_list *elem2)" (() "(" (parameter_declaration) "t_list *elem1" (type_identifier) "t_list" (pointer_declarator) "*elem1" (*) "*" (identifier) "elem1" (,) "," (parameter_declaration) "t_list *elem2" (type_identifier) "t_list" (pointer_declarator) "*elem2" (*) "*" (identifier) "elem2" ()) ")" ()) ")" (;) ";" (comment) "/*\n** =============================================================================\n** =================================== TREE ====================================\n*/" (type_definition) "typedef enum e_btdir\n{\n FT_BT_SAME,\n FT_BT_LEFT,\n FT_BT_RIGHT\n} t_btdir;" (typedef) "typedef" (enum_specifier) "enum e_btdir\n{\n FT_BT_SAME,\n FT_BT_LEFT,\n FT_BT_RIGHT\n}" (enum) "enum" (type_identifier) "e_btdir" (enumerator_list) "{\n FT_BT_SAME,\n FT_BT_LEFT,\n FT_BT_RIGHT\n}" ({) "{" (enumerator) "FT_BT_SAME" (identifier) "FT_BT_SAME" (,) "," (enumerator) "FT_BT_LEFT" (identifier) "FT_BT_LEFT" (,) "," (enumerator) "FT_BT_RIGHT" (identifier) "FT_BT_RIGHT" (}) "}" (type_identifier) "t_btdir" (;) ";" (type_definition) "typedef struct s_btree\n{\n struct s_btree *father;\n struct s_btree *left;\n struct s_btree *right;\n void *content;\n} t_btree;" (typedef) "typedef" (struct_specifier) "struct s_btree\n{\n struct s_btree *father;\n struct s_btree *left;\n struct s_btree *right;\n void *content;\n}" (struct) "struct" (type_identifier) "s_btree" (field_declaration_list) "{\n struct s_btree *father;\n struct s_btree *left;\n struct s_btree *right;\n void *content;\n}" ({) "{" (field_declaration) "struct s_btree *father;" (struct_specifier) "struct s_btree" (struct) "struct" (type_identifier) "s_btree" (pointer_declarator) "*father" (*) "*" (field_identifier) "father" (;) ";" (field_declaration) "struct s_btree *left;" (struct_specifier) "struct s_btree" (struct) "struct" (type_identifier) "s_btree" (pointer_declarator) "*left" (*) "*" (field_identifier) "left" (;) ";" (field_declaration) "struct s_btree *right;" (struct_specifier) "struct s_btree" (struct) "struct" (type_identifier) "s_btree" (pointer_declarator) "*right" (*) "*" (field_identifier) "right" (;) ";" (field_declaration) "void *content;" (primitive_type) "void" (pointer_declarator) "*content" (*) "*" (field_identifier) "content" (;) ";" (}) "}" (type_identifier) "t_btree" (;) ";" (declaration) "t_btree *ft_btreeadd(t_btree **atree, void *content, \\n t_btdir (*cmp)(t_btree *, void *));" (type_identifier) "t_btree" (pointer_declarator) "*ft_btreeadd(t_btree **atree, void *content, \\n t_btdir (*cmp)(t_btree *, void *))" (*) "*" (function_declarator) "ft_btreeadd(t_btree **atree, void *content, \\n t_btdir (*cmp)(t_btree *, void *))" (identifier) "ft_btreeadd" (parameter_list) "(t_btree **atree, void *content, \\n t_btdir (*cmp)(t_btree *, void *))" (() "(" (parameter_declaration) "t_btree **atree" (type_identifier) "t_btree" (pointer_declarator) "**atree" (*) "*" (pointer_declarator) "*atree" (*) "*" (identifier) "atree" (,) "," (parameter_declaration) "void *content" (primitive_type) "void" (pointer_declarator) "*content" (*) "*" (identifier) "content" (,) "," (parameter_declaration) "t_btdir (*cmp)(t_btree *, void *)" (type_identifier) "t_btdir" (function_declarator) "(*cmp)(t_btree *, void *)" (parenthesized_declarator) "(*cmp)" (() "(" (pointer_declarator) "*cmp" (*) "*" (identifier) "cmp" ()) ")" (parameter_list) "(t_btree *, void *)" (() "(" (parameter_declaration) "t_btree *" (type_identifier) "t_btree" (abstract_pointer_declarator) "*" (*) "*" (,) "," (parameter_declaration) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" ()) ")" (;) ";" (declaration) "int ft_btreeiter(t_btree *atree, \\n t_btdir (*cmp)(t_btree *, t_btree *, void *), \\n int (*fct)(t_btree *, int, void *), \\n void *ref);" (primitive_type) "int" (function_declarator) "ft_btreeiter(t_btree *atree, \\n t_btdir (*cmp)(t_btree *, t_btree *, void *), \\n int (*fct)(t_btree *, int, void *), \\n void *ref)" (identifier) "ft_btreeiter" (parameter_list) "(t_btree *atree, \\n t_btdir (*cmp)(t_btree *, t_btree *, void *), \\n int (*fct)(t_btree *, int, void *), \\n void *ref)" (() "(" (parameter_declaration) "t_btree *atree" (type_identifier) "t_btree" (pointer_declarator) "*atree" (*) "*" (identifier) "atree" (,) "," (parameter_declaration) "t_btdir (*cmp)(t_btree *, t_btree *, void *)" (type_identifier) "t_btdir" (function_declarator) "(*cmp)(t_btree *, t_btree *, void *)" (parenthesized_declarator) "(*cmp)" (() "(" (pointer_declarator) "*cmp" (*) "*" (identifier) "cmp" ()) ")" (parameter_list) "(t_btree *, t_btree *, void *)" (() "(" (parameter_declaration) "t_btree *" (type_identifier) "t_btree" (abstract_pointer_declarator) "*" (*) "*" (,) "," (parameter_declaration) "t_btree *" (type_identifier) "t_btree" (abstract_pointer_declarator) "*" (*) "*" (,) "," (parameter_declaration) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (,) "," (parameter_declaration) "int (*fct)(t_btree *, int, void *)" (primitive_type) "int" (function_declarator) "(*fct)(t_btree *, int, void *)" (parenthesized_declarator) "(*fct)" (() "(" (pointer_declarator) "*fct" (*) "*" (identifier) "fct" ()) ")" (parameter_list) "(t_btree *, int, void *)" (() "(" (parameter_declaration) "t_btree *" (type_identifier) "t_btree" (abstract_pointer_declarator) "*" (*) "*" (,) "," (parameter_declaration) "int" (primitive_type) "int" (,) "," (parameter_declaration) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (,) "," (parameter_declaration) "void *ref" (primitive_type) "void" (pointer_declarator) "*ref" (*) "*" (identifier) "ref" ()) ")" (;) ";" (declaration) "void ft_put_btree(t_btree *tree, int depth, \\n void (*putfunc)(void *));" (primitive_type) "void" (function_declarator) "ft_put_btree(t_btree *tree, int depth, \\n void (*putfunc)(void *))" (identifier) "ft_put_btree" (parameter_list) "(t_btree *tree, int depth, \\n void (*putfunc)(void *))" (() "(" (parameter_declaration) "t_btree *tree" (type_identifier) "t_btree" (pointer_declarator) "*tree" (*) "*" (identifier) "tree" (,) "," (parameter_declaration) "int depth" (primitive_type) "int" (identifier) "depth" (,) "," (parameter_declaration) "void (*putfunc)(void *)" (primitive_type) "void" (function_declarator) "(*putfunc)(void *)" (parenthesized_declarator) "(*putfunc)" (() "(" (pointer_declarator) "*putfunc" (*) "*" (identifier) "putfunc" ()) ")" (parameter_list) "(void *)" (() "(" (parameter_declaration) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" ()) ")" (;) ";" (comment) "/*\n** =============================================================================\n** =================================== TAB =====================================\n*/" (declaration) "size_t ft_tablen(char **tab);" (primitive_type) "size_t" (function_declarator) "ft_tablen(char **tab)" (identifier) "ft_tablen" (parameter_list) "(char **tab)" (() "(" (parameter_declaration) "char **tab" (primitive_type) "char" (pointer_declarator) "**tab" (*) "*" (pointer_declarator) "*tab" (*) "*" (identifier) "tab" ()) ")" (;) ";" (declaration) "char **ft_tabcpy(char **tab);" (primitive_type) "char" (pointer_declarator) "**ft_tabcpy(char **tab)" (*) "*" (pointer_declarator) "*ft_tabcpy(char **tab)" (*) "*" (function_declarator) "ft_tabcpy(char **tab)" (identifier) "ft_tabcpy" (parameter_list) "(char **tab)" (() "(" (parameter_declaration) "char **tab" (primitive_type) "char" (pointer_declarator) "**tab" (*) "*" (pointer_declarator) "*tab" (*) "*" (identifier) "tab" ()) ")" (;) ";" (declaration) "void *ft_tabrealloc(void *tab, \\n size_t old_size, size_t new_size, size_t unit);" (primitive_type) "void" (pointer_declarator) "*ft_tabrealloc(void *tab, \\n size_t old_size, size_t new_size, size_t unit)" (*) "*" (function_declarator) "ft_tabrealloc(void *tab, \\n size_t old_size, size_t new_size, size_t unit)" (identifier) "ft_tabrealloc" (parameter_list) "(void *tab, \\n size_t old_size, size_t new_size, size_t unit)" (() "(" (parameter_declaration) "void *tab" (primitive_type) "void" (pointer_declarator) "*tab" (*) "*" (identifier) "tab" (,) "," (parameter_declaration) "size_t old_size" (primitive_type) "size_t" (identifier) "old_size" (,) "," (parameter_declaration) "size_t new_size" (primitive_type) "size_t" (identifier) "new_size" (,) "," (parameter_declaration) "size_t unit" (primitive_type) "size_t" (identifier) "unit" ()) ")" (;) ";" (declaration) "void ft_tabprint(char **tab);" (primitive_type) "void" (function_declarator) "ft_tabprint(char **tab)" (identifier) "ft_tabprint" (parameter_list) "(char **tab)" (() "(" (parameter_declaration) "char **tab" (primitive_type) "char" (pointer_declarator) "**tab" (*) "*" (pointer_declarator) "*tab" (*) "*" (identifier) "tab" ()) ")" (;) ";" (declaration) "void ft_tabfree(char **tab);" (primitive_type) "void" (function_declarator) "ft_tabfree(char **tab)" (identifier) "ft_tabfree" (parameter_list) "(char **tab)" (() "(" (parameter_declaration) "char **tab" (primitive_type) "char" (pointer_declarator) "**tab" (*) "*" (pointer_declarator) "*tab" (*) "*" (identifier) "tab" ()) ")" (;) ";" (comment) "/*\n** =============================================================================\n** ================================= PARSING ===================================\n*/" (declaration) "int ft_charset_parser(const char *str, \\n const char *charset, size_t *len);" (primitive_type) "int" (function_declarator) "ft_charset_parser(const char *str, \\n const char *charset, size_t *len)" (identifier) "ft_charset_parser" (parameter_list) "(const char *str, \\n const char *charset, size_t *len)" (() "(" (parameter_declaration) "const char *str" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*str" (*) "*" (identifier) "str" (,) "," (parameter_declaration) "const char *charset" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*charset" (*) "*" (identifier) "charset" (,) "," (parameter_declaration) "size_t *len" (primitive_type) "size_t" (pointer_declarator) "*len" (*) "*" (identifier) "len" ()) ")" (;) ";" (declaration) "ssize_t ft_word_parser(const char *str, const char *word, \\n size_t w_size);" (primitive_type) "ssize_t" (function_declarator) "ft_word_parser(const char *str, const char *word, \\n size_t w_size)" (identifier) "ft_word_parser" (parameter_list) "(const char *str, const char *word, \\n size_t w_size)" (() "(" (parameter_declaration) "const char *str" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*str" (*) "*" (identifier) "str" (,) "," (parameter_declaration) "const char *word" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*word" (*) "*" (identifier) "word" (,) "," (parameter_declaration) "size_t w_size" (primitive_type) "size_t" (identifier) "w_size" ()) ")" (;) ";" (declaration) "int ft_natoi(const char *str, size_t size);" (primitive_type) "int" (function_declarator) "ft_natoi(const char *str, size_t size)" (identifier) "ft_natoi" (parameter_list) "(const char *str, size_t size)" (() "(" (parameter_declaration) "const char *str" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*str" (*) "*" (identifier) "str" (,) "," (parameter_declaration) "size_t size" (primitive_type) "size_t" (identifier) "size" ()) ")" (;) ";" (declaration) "double ft_natof(const char *str, size_t size, size_t *len);" (primitive_type) "double" (function_declarator) "ft_natof(const char *str, size_t size, size_t *len)" (identifier) "ft_natof" (parameter_list) "(const char *str, size_t size, size_t *len)" (() "(" (parameter_declaration) "const char *str" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*str" (*) "*" (identifier) "str" (,) "," (parameter_declaration) "size_t size" (primitive_type) "size_t" (identifier) "size" (,) "," (parameter_declaration) "size_t *len" (primitive_type) "size_t" (pointer_declarator) "*len" (*) "*" (identifier) "len" ()) ")" (;) ";" (#endif) "#endif"
2,111
0
{"language": "c", "success": true, "metadata": {"lines": 190, "avg_line_length": 40.69, "nodes": 1552, "errors": 0, "source_hash": "7bd7b621d94848d50b24c4e0752f24c99b43d18b16b80df1cd6f4c83ec64678d", "categorized_nodes": 783}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef LIBFT_H\n# define LIBFT_H\n\n# include <unistd.h>\n# include <stdlib.h>\n# include <string.h>\n\n# ifndef T_BOOL\n# define T_BOOL\n# define D_FALSE\t\t((char)\t0)\n# define D_TRUE\t\t((char)\t1)\n\ntypedef char\t\t\tt_bool;\n# endif\n\n# ifndef T_INT\n# define T_INT\t\t\tlong long int\n# define T_UINT\t\tunsigned long long int\n\ntypedef T_INT\t\t\tt_int;\ntypedef T_UINT\t\t\tt_uint;\n# endif\n\n# ifndef XOR\n# define XOR(a,b)\t\t((a && !b) || (!a && b))\n# endif\n\n# ifndef MIN\n# define MIN(a,b)\t\t((a < b) ? a : b)\n# endif\n\n# ifndef MAX\n# define MAX(a,b)\t\t((a > b) ? a : b)\n# endif\n\n# ifndef STR_NPOS\n# define STR_NPOS\t\t((size_t) -1)\n# endif\n\n/*\n** =============================================================================\n** ================================== CHAR =====================================\n*/\nint\t\t\t\t\t\tft_isalpha(int c);\nint\t\t\t\t\t\tft_isdigit(int c);\nint\t\t\t\t\t\tft_isalnum(int c);\nint\t\t\t\t\t\tft_isascii(int c);\nint\t\t\t\t\t\tft_isprint(int c);\nint\t\t\t\t\t\tft_isspace(int c);\n\nint\t\t\t\t\t\tft_toupper(int c);\nint\t\t\t\t\t\tft_tolower(int c);\n\n/*\n** =============================================================================\n** =================================== IO ======================================\n** #include \"ft_printf.h\"\n** ft_printf(const char *format, ...);\n** ft_fprintf(int fd, const char *format, ...);\n** ft_sprintf(char **str, const char *format, ...);\n*/\n# define GNL_BUFF_SIZE\t128\n\nint\t\t\t\t\t\tft_gnl(int fd, char **line);\n\nint\t\t\t\t\t\tft_putchar(int c);\nint\t\t\t\t\t\tft_putchar_fd(int c, int fd);\n\nvoid\t\t\t\t\tft_putstr(char const *s);\nvoid\t\t\t\t\tft_putstr_fd(char const *s, int fd);\nvoid\t\t\t\t\tft_putendl(char const *s);\nvoid\t\t\t\t\tft_putendl_fd(char const *s, int fd);\n\nvoid\t\t\t\t\tft_putnbr(int n);\nvoid\t\t\t\t\tft_putnbr_fd(int n, int fd);\n\n/*\n** =============================================================================\n** =================================== STR =====================================\n*/\nsize_t\t\t\t\t\tft_strlen(char const *s);\n\nchar\t\t\t\t\t*ft_strnew(size_t size);\nchar\t\t\t\t\t*ft_strdup(char const *s1);\nchar\t\t\t\t\t*ft_strcpy(char *s1, char const *s2);\nchar\t\t\t\t\t*ft_strncpy(char *s1, char const *s2, size_t n);\nvoid\t\t\t\t\tft_strclr(char *s);\nvoid\t\t\t\t\tft_strdel(char **as);\n\nint\t\t\t\t\t\tft_strcmp(char const *s1, char const *s2);\nint\t\t\t\t\t\tft_strncmp(char const *s1, char const *s2, size_t n);\nt_bool\t\t\t\t\tft_strequ(char const *s1, char const *s2);\nt_bool\t\t\t\t\tft_strnequ(char const *s1, char const *s2, size_t n);\n\nchar\t\t\t\t\t*ft_strcat(char *s1, char const *s2);\nchar\t\t\t\t\t*ft_strncat(char *s1, char const *s2, size_t n);\nsize_t\t\t\t\t\tft_strlcat(char *s1, char const *s2, size_t size);\nchar\t\t\t\t\t*ft_strjoin(char const *s1, char const *s2);\nchar\t\t\t\t\t*ft_strjoin_free(char *s1, char const *s2);\n\nchar\t\t\t\t\t*ft_strsub(char const *s, unsigned int start, \\\n\t\t\t\t\t\t\tsize_t len);\nchar\t\t\t\t\t**ft_strsplit(char const *s, char c);\n\nchar\t\t\t\t\t*ft_strchr(char const *s, int c);\nchar\t\t\t\t\t*ft_strrchr(char const *s, int c);\nchar\t\t\t\t\t*ft_strstr(char const *s1, char const *s2);\nchar\t\t\t\t\t*ft_strnstr(char const *s1, char const *s2, size_t n);\n\nvoid\t\t\t\t\tft_striter(char *s, void (*f)(char *));\nvoid\t\t\t\t\tft_striteri(char *s, void (*f)(unsigned int, char *));\nchar\t\t\t\t\t*ft_strmap(char const *s, char (*f)(char));\nchar\t\t\t\t\t*ft_strmapi(char const *s, \\\n\t\t\t\t\t\t\tchar (*f)(unsigned int, char));\n\nchar\t\t\t\t\t*ft_strtrim(char const *s);\n\n/*\n** =============================================================================\n** =================================== NUM =====================================\n*/\nint\t\t\t\t\t\tft_atoi(char const *s);\nchar\t\t\t\t\t*ft_itoa(t_int n);\nchar\t\t\t\t\t*ft_uitoa(t_uint n);\n\ndouble\t\t\t\t\tft_atof(const char *str, size_t *len);\n\nsize_t\t\t\t\t\tft_intlen(t_int n);\nt_int\t\t\t\t\tft_abs(t_int n);\nint\t\t\t\t\t\tft_pow(int nbr, int pow);\n\nchar\t\t\t\t\t*ft_convert_base(char *nbr, char *base_from, \\\n\t\t\t\t\t\t\tchar *base_to);\nchar\t\t\t\t\t*ft_convert_base_free(char *nbr, char *base_from, \\\n\t\t\t\t\t\t\tchar *base_to);\n\n/*\n** =============================================================================\n** =================================== MEM =====================================\n*/\nvoid\t\t\t\t\t*ft_memalloc(size_t size);\nvoid\t\t\t\t\t*ft_memrealloc(void *ptr, size_t size, size_t new_size);\nint\t\t\t\t\t\tft_memdel(void **ap);\n\nvoid\t\t\t\t\tft_bzero(void *s, size_t n);\nvoid\t\t\t\t\t*ft_memset(void *b, int c, size_t len);\n\nvoid\t\t\t\t\t*ft_memdup(void *buf, size_t size);\nvoid\t\t\t\t\t*ft_memcpy(void *s1, void const *s2, size_t n);\nvoid\t\t\t\t\t*ft_memccpy(void *s1, void const *s2, int c, size_t n);\nvoid\t\t\t\t\t*ft_memmove(void *s1, void const *s2, size_t n);\n\nint\t\t\t\t\t\tft_memcmp(void const*s1, void const *s2, size_t n);\n\nvoid\t\t\t\t\t*ft_memchr(void const *s, int c, size_t n);\n\n/*\n** =============================================================================\n** =================================== LIST ====================================\n*/\ntypedef struct\t\t\ts_list\n{\n\tstruct s_list\t\t*next;\n\tvoid\t\t\t\t*content;\n}\t\t\t\t\t\tt_list;\n\nt_list\t\t\t\t\t*ft_lstnew(void const *content);\nvoid\t\t\t\t\tft_lstadd(t_list **alst, void *n);\nvoid\t\t\t\t\tft_lstaddend(t_list **alst, void *n);\n\nvoid\t\t\t\t\tft_lstdel(t_list **alst, void (*del)(void *));\nvoid\t\t\t\t\tft_lstdel_if(t_list **alst, void (*del)(), \\\n\t\t\t\t\t\t\tvoid *ref, int (*cmp)());\nvoid\t\t\t\t\tft_lstdelone(t_list **alst, void (*del)(void *));\n\nsize_t\t\t\t\t\tft_lstcount(void *alst);\n\nvoid\t\t\t\t\tft_lstiter(t_list *lst, void (*f)(t_list *elem));\nt_list\t\t\t\t\t*ft_lstmap(t_list *lst, t_list *(*f)(t_list *elem));\nvoid\t\t\t\t\tft_lstsort(t_list **alst, int (*f)(t_list *elem1, \\\n\t\t\t\t\t\t\tt_list *elem2));\n/*\n** =============================================================================\n** =================================== TREE ====================================\n*/\ntypedef enum\t\t\te_btdir\n{\n\tFT_BT_SAME,\n\tFT_BT_LEFT,\n\tFT_BT_RIGHT\n}\t\t\t\t\t\tt_btdir;\n\ntypedef struct\t\t\ts_btree\n{\n\tstruct s_btree\t\t*father;\n\tstruct s_btree\t\t*left;\n\tstruct s_btree\t\t*right;\n\tvoid\t\t\t\t*content;\n}\t\t\t\t\t\tt_btree;\n\nt_btree\t\t\t\t\t*ft_btreeadd(t_btree **atree, void *content, \\\n\t\t\t\t\t\t\tt_btdir (*cmp)(t_btree *, void *));\nint\t\t\t\t\t\tft_btreeiter(t_btree *atree, \\\n\t\t\t\t\t\t\tt_btdir (*cmp)(t_btree *, t_btree *, void *), \\\n\t\t\t\t\t\t\tint (*fct)(t_btree *, int, void *), \\\n\t\t\t\t\t\t\tvoid *ref);\nvoid\t\t\t\t\tft_put_btree(t_btree *tree, int depth, \\\n\t\t\t\t\t\t\tvoid (*putfunc)(void *));\n/*\n** =============================================================================\n** =================================== TAB =====================================\n*/\nsize_t\t\t\t\t\tft_tablen(char **tab);\nchar\t\t\t\t\t**ft_tabcpy(char **tab);\nvoid\t\t\t\t\t*ft_tabrealloc(void *tab, \\\n\t\t\t\t\t\t\tsize_t old_size, size_t new_size, size_t unit);\nvoid\t\t\t\t\tft_tabprint(char **tab);\nvoid\t\t\t\t\tft_tabfree(char **tab);\n/*\n** =============================================================================\n** ================================= PARSING ===================================\n*/\nint\t\t\t\t\t\tft_charset_parser(const char *str, \\\n\t\t\t\t\t\t\tconst char *charset, size_t *len);\nssize_t\t\t\t\t\tft_word_parser(const char *str, const char *word, \\\n\t\t\t\t\t\t\tsize_t w_size);\nint\t\t\t\t\t\tft_natoi(const char *str, size_t size);\ndouble\t\t\t\t\tft_natof(const char *str, size_t size, size_t *len);\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 34, 54, 65, 76, 87, 95, 103, 111, 119, 127, 135, 143, 151, 159, 163, 178, 186, 197, 207, 220, 230, 243, 251, 262, 272, 282, 294, 311, 331, 341, 352, 367, 385, 400, 418, 435, 455, 473, 490, 507, 527, 544, 559, 574, 591, 611, 633, 659, 681, 707, 719, 729, 739, 749, 764, 772, 780, 791, 813, 835, 845, 863, 875, 888, 906, 921, 941, 964, 984, 1002, 1020, 1038, 1050, 1067, 1084, 1108, 1141, 1165, 1175, 1221, 1251, 1264, 1296, 1331, 1384, 1409, 1421, 1437, 1458, 1470, 1482, 1502, 1520, 1533, 1551], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 241, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 7}}, {"id": 2, "type": "identifier", "text": "LIBFT_H", "parent": 0, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 15}}, {"id": 3, "type": "preproc_def", "text": "# define LIBFT_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 4, "type": "#define", "text": "# define", "parent": 3, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 5, "type": "identifier", "text": "LIBFT_H", "parent": 3, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 16}}, {"id": 6, "type": "preproc_include", "text": "# include <unistd.h>\n", "parent": 0, "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": 9}}, {"id": 8, "type": "system_lib_string", "text": "<unistd.h>", "parent": 6, "children": [], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 20}}, {"id": 9, "type": "preproc_include", "text": "# include <stdlib.h>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 10, "type": "#include", "text": "# include", "parent": 9, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 9}}, {"id": 11, "type": "system_lib_string", "text": "<stdlib.h>", "parent": 9, "children": [], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 20}}, {"id": 12, "type": "preproc_include", "text": "# include <string.h>\n", "parent": 0, "children": [13, 14], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 13, "type": "#include", "text": "# include", "parent": 12, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 9}}, {"id": 14, "type": "system_lib_string", "text": "<string.h>", "parent": 12, "children": [], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 20}}, {"id": 15, "type": "preproc_ifdef", "text": "# ifndef T_BOOL\n# define T_BOOL\n# define D_FALSE\t\t((char)\t0)\n# define D_TRUE\t\t((char)\t1)\n\ntypedef char\t\t\tt_bool;\n# endif", "parent": 0, "children": [16, 17, 18, 21, 25, 29, 33], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 25, "column": 7}}, {"id": 16, "type": "#ifndef", "text": "# ifndef", "parent": 15, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 8}}, {"id": 17, "type": "identifier", "text": "T_BOOL", "parent": 15, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 15}}, {"id": 18, "type": "preproc_def", "text": "# define T_BOOL\n", "parent": 15, "children": [19, 20], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 19, "type": "#define", "text": "# define", "parent": 18, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 9}}, {"id": 20, "type": "identifier", "text": "T_BOOL", "parent": 18, "children": [], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 16}}, {"id": 21, "type": "preproc_def", "text": "# define D_FALSE\t\t((char)\t0)\n", "parent": 15, "children": [22, 23, 24], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 22, "type": "#define", "text": "# define", "parent": 21, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 9}}, {"id": 23, "type": "identifier", "text": "D_FALSE", "parent": 21, "children": [], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 17}}, {"id": 24, "type": "preproc_arg", "text": "((char)\t0)", "parent": 21, "children": [], "start_point": {"row": 21, "column": 19}, "end_point": {"row": 21, "column": 29}}, {"id": 25, "type": "preproc_def", "text": "# define D_TRUE\t\t((char)\t1)\n", "parent": 15, "children": [26, 27, 28], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 26, "type": "#define", "text": "# define", "parent": 25, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 9}}, {"id": 27, "type": "identifier", "text": "D_TRUE", "parent": 25, "children": [], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 16}}, {"id": 28, "type": "preproc_arg", "text": "((char)\t1)", "parent": 25, "children": [], "start_point": {"row": 22, "column": 18}, "end_point": {"row": 22, "column": 28}}, {"id": 29, "type": "type_definition", "text": "typedef char\t\t\tt_bool;", "parent": 15, "children": [30, 31, 32], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 22}}, {"id": 30, "type": "typedef", "text": "typedef", "parent": 29, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 7}}, {"id": 31, "type": "primitive_type", "text": "char", "parent": 29, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 12}}, {"id": 32, "type": "type_identifier", "text": "t_bool", "parent": 29, "children": [], "start_point": {"row": 24, "column": 15}, "end_point": {"row": 24, "column": 21}}, {"id": 33, "type": "#endif", "text": "# endif", "parent": 15, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 7}}, {"id": 34, "type": "preproc_ifdef", "text": "# ifndef T_INT\n# define T_INT\t\t\tlong long int\n# define T_UINT\t\tunsigned long long int\n\ntypedef T_INT\t\t\tt_int;\ntypedef T_UINT\t\t\tt_uint;\n# endif", "parent": 0, "children": [35, 36, 37, 41, 45, 49, 53], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 33, "column": 7}}, {"id": 35, "type": "#ifndef", "text": "# ifndef", "parent": 34, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 8}}, {"id": 36, "type": "identifier", "text": "T_INT", "parent": 34, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 14}}, {"id": 37, "type": "preproc_def", "text": "# define T_INT\t\t\tlong long int\n", "parent": 34, "children": [38, 39, 40], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 38, "type": "#define", "text": "# define", "parent": 37, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 9}}, {"id": 39, "type": "identifier", "text": "T_INT", "parent": 37, "children": [], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 15}}, {"id": 40, "type": "preproc_arg", "text": "long long int", "parent": 37, "children": [], "start_point": {"row": 28, "column": 18}, "end_point": {"row": 28, "column": 31}}, {"id": 41, "type": "preproc_def", "text": "# define T_UINT\t\tunsigned long long int\n", "parent": 34, "children": [42, 43, 44], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 0}}, {"id": 42, "type": "#define", "text": "# define", "parent": 41, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 9}}, {"id": 43, "type": "identifier", "text": "T_UINT", "parent": 41, "children": [], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 16}}, {"id": 44, "type": "preproc_arg", "text": "unsigned long long int", "parent": 41, "children": [], "start_point": {"row": 29, "column": 18}, "end_point": {"row": 29, "column": 40}}, {"id": 45, "type": "type_definition", "text": "typedef T_INT\t\t\tt_int;", "parent": 34, "children": [46, 47, 48], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 22}}, {"id": 46, "type": "typedef", "text": "typedef", "parent": 45, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 7}}, {"id": 47, "type": "type_identifier", "text": "T_INT", "parent": 45, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 13}}, {"id": 48, "type": "type_identifier", "text": "t_int", "parent": 45, "children": [], "start_point": {"row": 31, "column": 16}, "end_point": {"row": 31, "column": 21}}, {"id": 49, "type": "type_definition", "text": "typedef T_UINT\t\t\tt_uint;", "parent": 34, "children": [50, 51, 52], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 24}}, {"id": 50, "type": "typedef", "text": "typedef", "parent": 49, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 7}}, {"id": 51, "type": "type_identifier", "text": "T_UINT", "parent": 49, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 14}}, {"id": 52, "type": "type_identifier", "text": "t_uint", "parent": 49, "children": [], "start_point": {"row": 32, "column": 17}, "end_point": {"row": 32, "column": 23}}, {"id": 53, "type": "#endif", "text": "# endif", "parent": 34, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 7}}, {"id": 54, "type": "preproc_ifdef", "text": "# ifndef XOR\n# define XOR(a,b)\t\t((a && !b) || (!a && b))\n# endif", "parent": 0, "children": [55, 56, 57, 64], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 37, "column": 7}}, {"id": 55, "type": "#ifndef", "text": "# ifndef", "parent": 54, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 8}}, {"id": 56, "type": "identifier", "text": "XOR", "parent": 54, "children": [], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 12}}, {"id": 57, "type": "preproc_function_def", "text": "# define XOR(a,b)\t\t((a && !b) || (!a && b))\n", "parent": 54, "children": [58, 59, 60, 63], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 37, "column": 0}}, {"id": 58, "type": "#define", "text": "# define", "parent": 57, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 9}}, {"id": 59, "type": "identifier", "text": "XOR", "parent": 57, "children": [], "start_point": {"row": 36, "column": 10}, "end_point": {"row": 36, "column": 13}}, {"id": 60, "type": "preproc_params", "text": "(a,b)", "parent": 57, "children": [61, 62], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 18}}, {"id": 61, "type": "identifier", "text": "a", "parent": 60, "children": [], "start_point": {"row": 36, "column": 14}, "end_point": {"row": 36, "column": 15}}, {"id": 62, "type": "identifier", "text": "b", "parent": 60, "children": [], "start_point": {"row": 36, "column": 16}, "end_point": {"row": 36, "column": 17}}, {"id": 63, "type": "preproc_arg", "text": "((a && !b) || (!a && b))", "parent": 57, "children": [], "start_point": {"row": 36, "column": 20}, "end_point": {"row": 36, "column": 44}}, {"id": 64, "type": "#endif", "text": "# endif", "parent": 54, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 7}}, {"id": 65, "type": "preproc_ifdef", "text": "# ifndef MIN\n# define MIN(a,b)\t\t((a < b) ? a : b)\n# endif", "parent": 0, "children": [66, 67, 68, 75], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 41, "column": 7}}, {"id": 66, "type": "#ifndef", "text": "# ifndef", "parent": 65, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 8}}, {"id": 67, "type": "identifier", "text": "MIN", "parent": 65, "children": [], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 12}}, {"id": 68, "type": "preproc_function_def", "text": "# define MIN(a,b)\t\t((a < b) ? a : b)\n", "parent": 65, "children": [69, 70, 71, 74], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 41, "column": 0}}, {"id": 69, "type": "#define", "text": "# define", "parent": 68, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 9}}, {"id": 70, "type": "identifier", "text": "MIN", "parent": 68, "children": [], "start_point": {"row": 40, "column": 10}, "end_point": {"row": 40, "column": 13}}, {"id": 71, "type": "preproc_params", "text": "(a,b)", "parent": 68, "children": [72, 73], "start_point": {"row": 40, "column": 13}, "end_point": {"row": 40, "column": 18}}, {"id": 72, "type": "identifier", "text": "a", "parent": 71, "children": [], "start_point": {"row": 40, "column": 14}, "end_point": {"row": 40, "column": 15}}, {"id": 73, "type": "identifier", "text": "b", "parent": 71, "children": [], "start_point": {"row": 40, "column": 16}, "end_point": {"row": 40, "column": 17}}, {"id": 74, "type": "preproc_arg", "text": "((a < b) ? a : b)", "parent": 68, "children": [], "start_point": {"row": 40, "column": 20}, "end_point": {"row": 40, "column": 37}}, {"id": 75, "type": "#endif", "text": "# endif", "parent": 65, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 7}}, {"id": 76, "type": "preproc_ifdef", "text": "# ifndef MAX\n# define MAX(a,b)\t\t((a > b) ? a : b)\n# endif", "parent": 0, "children": [77, 78, 79, 86], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 45, "column": 7}}, {"id": 77, "type": "#ifndef", "text": "# ifndef", "parent": 76, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 8}}, {"id": 78, "type": "identifier", "text": "MAX", "parent": 76, "children": [], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 12}}, {"id": 79, "type": "preproc_function_def", "text": "# define MAX(a,b)\t\t((a > b) ? a : b)\n", "parent": 76, "children": [80, 81, 82, 85], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 45, "column": 0}}, {"id": 80, "type": "#define", "text": "# define", "parent": 79, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 9}}, {"id": 81, "type": "identifier", "text": "MAX", "parent": 79, "children": [], "start_point": {"row": 44, "column": 10}, "end_point": {"row": 44, "column": 13}}, {"id": 82, "type": "preproc_params", "text": "(a,b)", "parent": 79, "children": [83, 84], "start_point": {"row": 44, "column": 13}, "end_point": {"row": 44, "column": 18}}, {"id": 83, "type": "identifier", "text": "a", "parent": 82, "children": [], "start_point": {"row": 44, "column": 14}, "end_point": {"row": 44, "column": 15}}, {"id": 84, "type": "identifier", "text": "b", "parent": 82, "children": [], "start_point": {"row": 44, "column": 16}, "end_point": {"row": 44, "column": 17}}, {"id": 85, "type": "preproc_arg", "text": "((a > b) ? a : b)", "parent": 79, "children": [], "start_point": {"row": 44, "column": 20}, "end_point": {"row": 44, "column": 37}}, {"id": 86, "type": "#endif", "text": "# endif", "parent": 76, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 7}}, {"id": 87, "type": "preproc_ifdef", "text": "# ifndef STR_NPOS\n# define STR_NPOS\t\t((size_t) -1)\n# endif", "parent": 0, "children": [88, 89, 90, 94], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 49, "column": 7}}, {"id": 88, "type": "#ifndef", "text": "# ifndef", "parent": 87, "children": [], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 8}}, {"id": 89, "type": "identifier", "text": "STR_NPOS", "parent": 87, "children": [], "start_point": {"row": 47, "column": 9}, "end_point": {"row": 47, "column": 17}}, {"id": 90, "type": "preproc_def", "text": "# define STR_NPOS\t\t((size_t) -1)\n", "parent": 87, "children": [91, 92, 93], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 49, "column": 0}}, {"id": 91, "type": "#define", "text": "# define", "parent": 90, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 9}}, {"id": 92, "type": "identifier", "text": "STR_NPOS", "parent": 90, "children": [], "start_point": {"row": 48, "column": 10}, "end_point": {"row": 48, "column": 18}}, {"id": 93, "type": "preproc_arg", "text": "((size_t) -1)", "parent": 90, "children": [], "start_point": {"row": 48, "column": 20}, "end_point": {"row": 48, "column": 33}}, {"id": 94, "type": "#endif", "text": "# endif", "parent": 87, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 7}}, {"id": 95, "type": "declaration", "text": "int\t\t\t\t\t\tft_isalpha(int c);", "parent": 0, "children": [96, 97], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 27}}, {"id": 96, "type": "primitive_type", "text": "int", "parent": 95, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 3}}, {"id": 97, "type": "function_declarator", "text": "ft_isalpha(int c)", "parent": 95, "children": [98, 99], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 26}}, {"id": 98, "type": "identifier", "text": "ft_isalpha", "parent": 97, "children": [], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 19}}, {"id": 99, "type": "parameter_list", "text": "(int c)", "parent": 97, "children": [100], "start_point": {"row": 55, "column": 19}, "end_point": {"row": 55, "column": 26}}, {"id": 100, "type": "parameter_declaration", "text": "int c", "parent": 99, "children": [101, 102], "start_point": {"row": 55, "column": 20}, "end_point": {"row": 55, "column": 25}}, {"id": 101, "type": "primitive_type", "text": "int", "parent": 100, "children": [], "start_point": {"row": 55, "column": 20}, "end_point": {"row": 55, "column": 23}}, {"id": 102, "type": "identifier", "text": "c", "parent": 100, "children": [], "start_point": {"row": 55, "column": 24}, "end_point": {"row": 55, "column": 25}}, {"id": 103, "type": "declaration", "text": "int\t\t\t\t\t\tft_isdigit(int c);", "parent": 0, "children": [104, 105], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 27}}, {"id": 104, "type": "primitive_type", "text": "int", "parent": 103, "children": [], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 3}}, {"id": 105, "type": "function_declarator", "text": "ft_isdigit(int c)", "parent": 103, "children": [106, 107], "start_point": {"row": 56, "column": 9}, "end_point": {"row": 56, "column": 26}}, {"id": 106, "type": "identifier", "text": "ft_isdigit", "parent": 105, "children": [], "start_point": {"row": 56, "column": 9}, "end_point": {"row": 56, "column": 19}}, {"id": 107, "type": "parameter_list", "text": "(int c)", "parent": 105, "children": [108], "start_point": {"row": 56, "column": 19}, "end_point": {"row": 56, "column": 26}}, {"id": 108, "type": "parameter_declaration", "text": "int c", "parent": 107, "children": [109, 110], "start_point": {"row": 56, "column": 20}, "end_point": {"row": 56, "column": 25}}, {"id": 109, "type": "primitive_type", "text": "int", "parent": 108, "children": [], "start_point": {"row": 56, "column": 20}, "end_point": {"row": 56, "column": 23}}, {"id": 110, "type": "identifier", "text": "c", "parent": 108, "children": [], "start_point": {"row": 56, "column": 24}, "end_point": {"row": 56, "column": 25}}, {"id": 111, "type": "declaration", "text": "int\t\t\t\t\t\tft_isalnum(int c);", "parent": 0, "children": [112, 113], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 27}}, {"id": 112, "type": "primitive_type", "text": "int", "parent": 111, "children": [], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 3}}, {"id": 113, "type": "function_declarator", "text": "ft_isalnum(int c)", "parent": 111, "children": [114, 115], "start_point": {"row": 57, "column": 9}, "end_point": {"row": 57, "column": 26}}, {"id": 114, "type": "identifier", "text": "ft_isalnum", "parent": 113, "children": [], "start_point": {"row": 57, "column": 9}, "end_point": {"row": 57, "column": 19}}, {"id": 115, "type": "parameter_list", "text": "(int c)", "parent": 113, "children": [116], "start_point": {"row": 57, "column": 19}, "end_point": {"row": 57, "column": 26}}, {"id": 116, "type": "parameter_declaration", "text": "int c", "parent": 115, "children": [117, 118], "start_point": {"row": 57, "column": 20}, "end_point": {"row": 57, "column": 25}}, {"id": 117, "type": "primitive_type", "text": "int", "parent": 116, "children": [], "start_point": {"row": 57, "column": 20}, "end_point": {"row": 57, "column": 23}}, {"id": 118, "type": "identifier", "text": "c", "parent": 116, "children": [], "start_point": {"row": 57, "column": 24}, "end_point": {"row": 57, "column": 25}}, {"id": 119, "type": "declaration", "text": "int\t\t\t\t\t\tft_isascii(int c);", "parent": 0, "children": [120, 121], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 27}}, {"id": 120, "type": "primitive_type", "text": "int", "parent": 119, "children": [], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 3}}, {"id": 121, "type": "function_declarator", "text": "ft_isascii(int c)", "parent": 119, "children": [122, 123], "start_point": {"row": 58, "column": 9}, "end_point": {"row": 58, "column": 26}}, {"id": 122, "type": "identifier", "text": "ft_isascii", "parent": 121, "children": [], "start_point": {"row": 58, "column": 9}, "end_point": {"row": 58, "column": 19}}, {"id": 123, "type": "parameter_list", "text": "(int c)", "parent": 121, "children": [124], "start_point": {"row": 58, "column": 19}, "end_point": {"row": 58, "column": 26}}, {"id": 124, "type": "parameter_declaration", "text": "int c", "parent": 123, "children": [125, 126], "start_point": {"row": 58, "column": 20}, "end_point": {"row": 58, "column": 25}}, {"id": 125, "type": "primitive_type", "text": "int", "parent": 124, "children": [], "start_point": {"row": 58, "column": 20}, "end_point": {"row": 58, "column": 23}}, {"id": 126, "type": "identifier", "text": "c", "parent": 124, "children": [], "start_point": {"row": 58, "column": 24}, "end_point": {"row": 58, "column": 25}}, {"id": 127, "type": "declaration", "text": "int\t\t\t\t\t\tft_isprint(int c);", "parent": 0, "children": [128, 129], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 27}}, {"id": 128, "type": "primitive_type", "text": "int", "parent": 127, "children": [], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 3}}, {"id": 129, "type": "function_declarator", "text": "ft_isprint(int c)", "parent": 127, "children": [130, 131], "start_point": {"row": 59, "column": 9}, "end_point": {"row": 59, "column": 26}}, {"id": 130, "type": "identifier", "text": "ft_isprint", "parent": 129, "children": [], "start_point": {"row": 59, "column": 9}, "end_point": {"row": 59, "column": 19}}, {"id": 131, "type": "parameter_list", "text": "(int c)", "parent": 129, "children": [132], "start_point": {"row": 59, "column": 19}, "end_point": {"row": 59, "column": 26}}, {"id": 132, "type": "parameter_declaration", "text": "int c", "parent": 131, "children": [133, 134], "start_point": {"row": 59, "column": 20}, "end_point": {"row": 59, "column": 25}}, {"id": 133, "type": "primitive_type", "text": "int", "parent": 132, "children": [], "start_point": {"row": 59, "column": 20}, "end_point": {"row": 59, "column": 23}}, {"id": 134, "type": "identifier", "text": "c", "parent": 132, "children": [], "start_point": {"row": 59, "column": 24}, "end_point": {"row": 59, "column": 25}}, {"id": 135, "type": "declaration", "text": "int\t\t\t\t\t\tft_isspace(int c);", "parent": 0, "children": [136, 137], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 27}}, {"id": 136, "type": "primitive_type", "text": "int", "parent": 135, "children": [], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 3}}, {"id": 137, "type": "function_declarator", "text": "ft_isspace(int c)", "parent": 135, "children": [138, 139], "start_point": {"row": 60, "column": 9}, "end_point": {"row": 60, "column": 26}}, {"id": 138, "type": "identifier", "text": "ft_isspace", "parent": 137, "children": [], "start_point": {"row": 60, "column": 9}, "end_point": {"row": 60, "column": 19}}, {"id": 139, "type": "parameter_list", "text": "(int c)", "parent": 137, "children": [140], "start_point": {"row": 60, "column": 19}, "end_point": {"row": 60, "column": 26}}, {"id": 140, "type": "parameter_declaration", "text": "int c", "parent": 139, "children": [141, 142], "start_point": {"row": 60, "column": 20}, "end_point": {"row": 60, "column": 25}}, {"id": 141, "type": "primitive_type", "text": "int", "parent": 140, "children": [], "start_point": {"row": 60, "column": 20}, "end_point": {"row": 60, "column": 23}}, {"id": 142, "type": "identifier", "text": "c", "parent": 140, "children": [], "start_point": {"row": 60, "column": 24}, "end_point": {"row": 60, "column": 25}}, {"id": 143, "type": "declaration", "text": "int\t\t\t\t\t\tft_toupper(int c);", "parent": 0, "children": [144, 145], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 62, "column": 27}}, {"id": 144, "type": "primitive_type", "text": "int", "parent": 143, "children": [], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 62, "column": 3}}, {"id": 145, "type": "function_declarator", "text": "ft_toupper(int c)", "parent": 143, "children": [146, 147], "start_point": {"row": 62, "column": 9}, "end_point": {"row": 62, "column": 26}}, {"id": 146, "type": "identifier", "text": "ft_toupper", "parent": 145, "children": [], "start_point": {"row": 62, "column": 9}, "end_point": {"row": 62, "column": 19}}, {"id": 147, "type": "parameter_list", "text": "(int c)", "parent": 145, "children": [148], "start_point": {"row": 62, "column": 19}, "end_point": {"row": 62, "column": 26}}, {"id": 148, "type": "parameter_declaration", "text": "int c", "parent": 147, "children": [149, 150], "start_point": {"row": 62, "column": 20}, "end_point": {"row": 62, "column": 25}}, {"id": 149, "type": "primitive_type", "text": "int", "parent": 148, "children": [], "start_point": {"row": 62, "column": 20}, "end_point": {"row": 62, "column": 23}}, {"id": 150, "type": "identifier", "text": "c", "parent": 148, "children": [], "start_point": {"row": 62, "column": 24}, "end_point": {"row": 62, "column": 25}}, {"id": 151, "type": "declaration", "text": "int\t\t\t\t\t\tft_tolower(int c);", "parent": 0, "children": [152, 153], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 27}}, {"id": 152, "type": "primitive_type", "text": "int", "parent": 151, "children": [], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 3}}, {"id": 153, "type": "function_declarator", "text": "ft_tolower(int c)", "parent": 151, "children": [154, 155], "start_point": {"row": 63, "column": 9}, "end_point": {"row": 63, "column": 26}}, {"id": 154, "type": "identifier", "text": "ft_tolower", "parent": 153, "children": [], "start_point": {"row": 63, "column": 9}, "end_point": {"row": 63, "column": 19}}, {"id": 155, "type": "parameter_list", "text": "(int c)", "parent": 153, "children": [156], "start_point": {"row": 63, "column": 19}, "end_point": {"row": 63, "column": 26}}, {"id": 156, "type": "parameter_declaration", "text": "int c", "parent": 155, "children": [157, 158], "start_point": {"row": 63, "column": 20}, "end_point": {"row": 63, "column": 25}}, {"id": 157, "type": "primitive_type", "text": "int", "parent": 156, "children": [], "start_point": {"row": 63, "column": 20}, "end_point": {"row": 63, "column": 23}}, {"id": 158, "type": "identifier", "text": "c", "parent": 156, "children": [], "start_point": {"row": 63, "column": 24}, "end_point": {"row": 63, "column": 25}}, {"id": 159, "type": "preproc_def", "text": "# define GNL_BUFF_SIZE\t128\n", "parent": 0, "children": [160, 161, 162], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 74, "column": 0}}, {"id": 160, "type": "#define", "text": "# define", "parent": 159, "children": [], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 8}}, {"id": 161, "type": "identifier", "text": "GNL_BUFF_SIZE", "parent": 159, "children": [], "start_point": {"row": 73, "column": 9}, "end_point": {"row": 73, "column": 22}}, {"id": 162, "type": "preproc_arg", "text": "128", "parent": 159, "children": [], "start_point": {"row": 73, "column": 23}, "end_point": {"row": 73, "column": 26}}, {"id": 163, "type": "declaration", "text": "int\t\t\t\t\t\tft_gnl(int fd, char **line);", "parent": 0, "children": [164, 165], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 75, "column": 37}}, {"id": 164, "type": "primitive_type", "text": "int", "parent": 163, "children": [], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 75, "column": 3}}, {"id": 165, "type": "function_declarator", "text": "ft_gnl(int fd, char **line)", "parent": 163, "children": [166, 167], "start_point": {"row": 75, "column": 9}, "end_point": {"row": 75, "column": 36}}, {"id": 166, "type": "identifier", "text": "ft_gnl", "parent": 165, "children": [], "start_point": {"row": 75, "column": 9}, "end_point": {"row": 75, "column": 15}}, {"id": 167, "type": "parameter_list", "text": "(int fd, char **line)", "parent": 165, "children": [168, 171], "start_point": {"row": 75, "column": 15}, "end_point": {"row": 75, "column": 36}}, {"id": 168, "type": "parameter_declaration", "text": "int fd", "parent": 167, "children": [169, 170], "start_point": {"row": 75, "column": 16}, "end_point": {"row": 75, "column": 22}}, {"id": 169, "type": "primitive_type", "text": "int", "parent": 168, "children": [], "start_point": {"row": 75, "column": 16}, "end_point": {"row": 75, "column": 19}}, {"id": 170, "type": "identifier", "text": "fd", "parent": 168, "children": [], "start_point": {"row": 75, "column": 20}, "end_point": {"row": 75, "column": 22}}, {"id": 171, "type": "parameter_declaration", "text": "char **line", "parent": 167, "children": [172, 173], "start_point": {"row": 75, "column": 24}, "end_point": {"row": 75, "column": 35}}, {"id": 172, "type": "primitive_type", "text": "char", "parent": 171, "children": [], "start_point": {"row": 75, "column": 24}, "end_point": {"row": 75, "column": 28}}, {"id": 173, "type": "pointer_declarator", "text": "**line", "parent": 171, "children": [174, 175], "start_point": {"row": 75, "column": 29}, "end_point": {"row": 75, "column": 35}}, {"id": 174, "type": "*", "text": "*", "parent": 173, "children": [], "start_point": {"row": 75, "column": 29}, "end_point": {"row": 75, "column": 30}}, {"id": 175, "type": "pointer_declarator", "text": "*line", "parent": 173, "children": [176, 177], "start_point": {"row": 75, "column": 30}, "end_point": {"row": 75, "column": 35}}, {"id": 176, "type": "*", "text": "*", "parent": 175, "children": [], "start_point": {"row": 75, "column": 30}, "end_point": {"row": 75, "column": 31}}, {"id": 177, "type": "identifier", "text": "line", "parent": 175, "children": [], "start_point": {"row": 75, "column": 31}, "end_point": {"row": 75, "column": 35}}, {"id": 178, "type": "declaration", "text": "int\t\t\t\t\t\tft_putchar(int c);", "parent": 0, "children": [179, 180], "start_point": {"row": 77, "column": 0}, "end_point": {"row": 77, "column": 27}}, {"id": 179, "type": "primitive_type", "text": "int", "parent": 178, "children": [], "start_point": {"row": 77, "column": 0}, "end_point": {"row": 77, "column": 3}}, {"id": 180, "type": "function_declarator", "text": "ft_putchar(int c)", "parent": 178, "children": [181, 182], "start_point": {"row": 77, "column": 9}, "end_point": {"row": 77, "column": 26}}, {"id": 181, "type": "identifier", "text": "ft_putchar", "parent": 180, "children": [], "start_point": {"row": 77, "column": 9}, "end_point": {"row": 77, "column": 19}}, {"id": 182, "type": "parameter_list", "text": "(int c)", "parent": 180, "children": [183], "start_point": {"row": 77, "column": 19}, "end_point": {"row": 77, "column": 26}}, {"id": 183, "type": "parameter_declaration", "text": "int c", "parent": 182, "children": [184, 185], "start_point": {"row": 77, "column": 20}, "end_point": {"row": 77, "column": 25}}, {"id": 184, "type": "primitive_type", "text": "int", "parent": 183, "children": [], "start_point": {"row": 77, "column": 20}, "end_point": {"row": 77, "column": 23}}, {"id": 185, "type": "identifier", "text": "c", "parent": 183, "children": [], "start_point": {"row": 77, "column": 24}, "end_point": {"row": 77, "column": 25}}, {"id": 186, "type": "declaration", "text": "int\t\t\t\t\t\tft_putchar_fd(int c, int fd);", "parent": 0, "children": [187, 188], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 78, "column": 38}}, {"id": 187, "type": "primitive_type", "text": "int", "parent": 186, "children": [], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 78, "column": 3}}, {"id": 188, "type": "function_declarator", "text": "ft_putchar_fd(int c, int fd)", "parent": 186, "children": [189, 190], "start_point": {"row": 78, "column": 9}, "end_point": {"row": 78, "column": 37}}, {"id": 189, "type": "identifier", "text": "ft_putchar_fd", "parent": 188, "children": [], "start_point": {"row": 78, "column": 9}, "end_point": {"row": 78, "column": 22}}, {"id": 190, "type": "parameter_list", "text": "(int c, int fd)", "parent": 188, "children": [191, 194], "start_point": {"row": 78, "column": 22}, "end_point": {"row": 78, "column": 37}}, {"id": 191, "type": "parameter_declaration", "text": "int c", "parent": 190, "children": [192, 193], "start_point": {"row": 78, "column": 23}, "end_point": {"row": 78, "column": 28}}, {"id": 192, "type": "primitive_type", "text": "int", "parent": 191, "children": [], "start_point": {"row": 78, "column": 23}, "end_point": {"row": 78, "column": 26}}, {"id": 193, "type": "identifier", "text": "c", "parent": 191, "children": [], "start_point": {"row": 78, "column": 27}, "end_point": {"row": 78, "column": 28}}, {"id": 194, "type": "parameter_declaration", "text": "int fd", "parent": 190, "children": [195, 196], "start_point": {"row": 78, "column": 30}, "end_point": {"row": 78, "column": 36}}, {"id": 195, "type": "primitive_type", "text": "int", "parent": 194, "children": [], "start_point": {"row": 78, "column": 30}, "end_point": {"row": 78, "column": 33}}, {"id": 196, "type": "identifier", "text": "fd", "parent": 194, "children": [], "start_point": {"row": 78, "column": 34}, "end_point": {"row": 78, "column": 36}}, {"id": 197, "type": "declaration", "text": "void\t\t\t\t\tft_putstr(char const *s);", "parent": 0, "children": [198, 199], "start_point": {"row": 80, "column": 0}, "end_point": {"row": 80, "column": 34}}, {"id": 198, "type": "primitive_type", "text": "void", "parent": 197, "children": [], "start_point": {"row": 80, "column": 0}, "end_point": {"row": 80, "column": 4}}, {"id": 199, "type": "function_declarator", "text": "ft_putstr(char const *s)", "parent": 197, "children": [200, 201], "start_point": {"row": 80, "column": 9}, "end_point": {"row": 80, "column": 33}}, {"id": 200, "type": "identifier", "text": "ft_putstr", "parent": 199, "children": [], "start_point": {"row": 80, "column": 9}, "end_point": {"row": 80, "column": 18}}, {"id": 201, "type": "parameter_list", "text": "(char const *s)", "parent": 199, "children": [202], "start_point": {"row": 80, "column": 18}, "end_point": {"row": 80, "column": 33}}, {"id": 202, "type": "parameter_declaration", "text": "char const *s", "parent": 201, "children": [203, 204], "start_point": {"row": 80, "column": 19}, "end_point": {"row": 80, "column": 32}}, {"id": 203, "type": "primitive_type", "text": "char", "parent": 202, "children": [], "start_point": {"row": 80, "column": 19}, "end_point": {"row": 80, "column": 23}}, {"id": 204, "type": "pointer_declarator", "text": "*s", "parent": 202, "children": [205, 206], "start_point": {"row": 80, "column": 30}, "end_point": {"row": 80, "column": 32}}, {"id": 205, "type": "*", "text": "*", "parent": 204, "children": [], "start_point": {"row": 80, "column": 30}, "end_point": {"row": 80, "column": 31}}, {"id": 206, "type": "identifier", "text": "s", "parent": 204, "children": [], "start_point": {"row": 80, "column": 31}, "end_point": {"row": 80, "column": 32}}, {"id": 207, "type": "declaration", "text": "void\t\t\t\t\tft_putstr_fd(char const *s, int fd);", "parent": 0, "children": [208, 209], "start_point": {"row": 81, "column": 0}, "end_point": {"row": 81, "column": 45}}, {"id": 208, "type": "primitive_type", "text": "void", "parent": 207, "children": [], "start_point": {"row": 81, "column": 0}, "end_point": {"row": 81, "column": 4}}, {"id": 209, "type": "function_declarator", "text": "ft_putstr_fd(char const *s, int fd)", "parent": 207, "children": [210, 211], "start_point": {"row": 81, "column": 9}, "end_point": {"row": 81, "column": 44}}, {"id": 210, "type": "identifier", "text": "ft_putstr_fd", "parent": 209, "children": [], "start_point": {"row": 81, "column": 9}, "end_point": {"row": 81, "column": 21}}, {"id": 211, "type": "parameter_list", "text": "(char const *s, int fd)", "parent": 209, "children": [212, 217], "start_point": {"row": 81, "column": 21}, "end_point": {"row": 81, "column": 44}}, {"id": 212, "type": "parameter_declaration", "text": "char const *s", "parent": 211, "children": [213, 214], "start_point": {"row": 81, "column": 22}, "end_point": {"row": 81, "column": 35}}, {"id": 213, "type": "primitive_type", "text": "char", "parent": 212, "children": [], "start_point": {"row": 81, "column": 22}, "end_point": {"row": 81, "column": 26}}, {"id": 214, "type": "pointer_declarator", "text": "*s", "parent": 212, "children": [215, 216], "start_point": {"row": 81, "column": 33}, "end_point": {"row": 81, "column": 35}}, {"id": 215, "type": "*", "text": "*", "parent": 214, "children": [], "start_point": {"row": 81, "column": 33}, "end_point": {"row": 81, "column": 34}}, {"id": 216, "type": "identifier", "text": "s", "parent": 214, "children": [], "start_point": {"row": 81, "column": 34}, "end_point": {"row": 81, "column": 35}}, {"id": 217, "type": "parameter_declaration", "text": "int fd", "parent": 211, "children": [218, 219], "start_point": {"row": 81, "column": 37}, "end_point": {"row": 81, "column": 43}}, {"id": 218, "type": "primitive_type", "text": "int", "parent": 217, "children": [], "start_point": {"row": 81, "column": 37}, "end_point": {"row": 81, "column": 40}}, {"id": 219, "type": "identifier", "text": "fd", "parent": 217, "children": [], "start_point": {"row": 81, "column": 41}, "end_point": {"row": 81, "column": 43}}, {"id": 220, "type": "declaration", "text": "void\t\t\t\t\tft_putendl(char const *s);", "parent": 0, "children": [221, 222], "start_point": {"row": 82, "column": 0}, "end_point": {"row": 82, "column": 35}}, {"id": 221, "type": "primitive_type", "text": "void", "parent": 220, "children": [], "start_point": {"row": 82, "column": 0}, "end_point": {"row": 82, "column": 4}}, {"id": 222, "type": "function_declarator", "text": "ft_putendl(char const *s)", "parent": 220, "children": [223, 224], "start_point": {"row": 82, "column": 9}, "end_point": {"row": 82, "column": 34}}, {"id": 223, "type": "identifier", "text": "ft_putendl", "parent": 222, "children": [], "start_point": {"row": 82, "column": 9}, "end_point": {"row": 82, "column": 19}}, {"id": 224, "type": "parameter_list", "text": "(char const *s)", "parent": 222, "children": [225], "start_point": {"row": 82, "column": 19}, "end_point": {"row": 82, "column": 34}}, {"id": 225, "type": "parameter_declaration", "text": "char const *s", "parent": 224, "children": [226, 227], "start_point": {"row": 82, "column": 20}, "end_point": {"row": 82, "column": 33}}, {"id": 226, "type": "primitive_type", "text": "char", "parent": 225, "children": [], "start_point": {"row": 82, "column": 20}, "end_point": {"row": 82, "column": 24}}, {"id": 227, "type": "pointer_declarator", "text": "*s", "parent": 225, "children": [228, 229], "start_point": {"row": 82, "column": 31}, "end_point": {"row": 82, "column": 33}}, {"id": 228, "type": "*", "text": "*", "parent": 227, "children": [], "start_point": {"row": 82, "column": 31}, "end_point": {"row": 82, "column": 32}}, {"id": 229, "type": "identifier", "text": "s", "parent": 227, "children": [], "start_point": {"row": 82, "column": 32}, "end_point": {"row": 82, "column": 33}}, {"id": 230, "type": "declaration", "text": "void\t\t\t\t\tft_putendl_fd(char const *s, int fd);", "parent": 0, "children": [231, 232], "start_point": {"row": 83, "column": 0}, "end_point": {"row": 83, "column": 46}}, {"id": 231, "type": "primitive_type", "text": "void", "parent": 230, "children": [], "start_point": {"row": 83, "column": 0}, "end_point": {"row": 83, "column": 4}}, {"id": 232, "type": "function_declarator", "text": "ft_putendl_fd(char const *s, int fd)", "parent": 230, "children": [233, 234], "start_point": {"row": 83, "column": 9}, "end_point": {"row": 83, "column": 45}}, {"id": 233, "type": "identifier", "text": "ft_putendl_fd", "parent": 232, "children": [], "start_point": {"row": 83, "column": 9}, "end_point": {"row": 83, "column": 22}}, {"id": 234, "type": "parameter_list", "text": "(char const *s, int fd)", "parent": 232, "children": [235, 240], "start_point": {"row": 83, "column": 22}, "end_point": {"row": 83, "column": 45}}, {"id": 235, "type": "parameter_declaration", "text": "char const *s", "parent": 234, "children": [236, 237], "start_point": {"row": 83, "column": 23}, "end_point": {"row": 83, "column": 36}}, {"id": 236, "type": "primitive_type", "text": "char", "parent": 235, "children": [], "start_point": {"row": 83, "column": 23}, "end_point": {"row": 83, "column": 27}}, {"id": 237, "type": "pointer_declarator", "text": "*s", "parent": 235, "children": [238, 239], "start_point": {"row": 83, "column": 34}, "end_point": {"row": 83, "column": 36}}, {"id": 238, "type": "*", "text": "*", "parent": 237, "children": [], "start_point": {"row": 83, "column": 34}, "end_point": {"row": 83, "column": 35}}, {"id": 239, "type": "identifier", "text": "s", "parent": 237, "children": [], "start_point": {"row": 83, "column": 35}, "end_point": {"row": 83, "column": 36}}, {"id": 240, "type": "parameter_declaration", "text": "int fd", "parent": 234, "children": [241, 242], "start_point": {"row": 83, "column": 38}, "end_point": {"row": 83, "column": 44}}, {"id": 241, "type": "primitive_type", "text": "int", "parent": 240, "children": [], "start_point": {"row": 83, "column": 38}, "end_point": {"row": 83, "column": 41}}, {"id": 242, "type": "identifier", "text": "fd", "parent": 240, "children": [], "start_point": {"row": 83, "column": 42}, "end_point": {"row": 83, "column": 44}}, {"id": 243, "type": "declaration", "text": "void\t\t\t\t\tft_putnbr(int n);", "parent": 0, "children": [244, 245], "start_point": {"row": 85, "column": 0}, "end_point": {"row": 85, "column": 26}}, {"id": 244, "type": "primitive_type", "text": "void", "parent": 243, "children": [], "start_point": {"row": 85, "column": 0}, "end_point": {"row": 85, "column": 4}}, {"id": 245, "type": "function_declarator", "text": "ft_putnbr(int n)", "parent": 243, "children": [246, 247], "start_point": {"row": 85, "column": 9}, "end_point": {"row": 85, "column": 25}}, {"id": 246, "type": "identifier", "text": "ft_putnbr", "parent": 245, "children": [], "start_point": {"row": 85, "column": 9}, "end_point": {"row": 85, "column": 18}}, {"id": 247, "type": "parameter_list", "text": "(int n)", "parent": 245, "children": [248], "start_point": {"row": 85, "column": 18}, "end_point": {"row": 85, "column": 25}}, {"id": 248, "type": "parameter_declaration", "text": "int n", "parent": 247, "children": [249, 250], "start_point": {"row": 85, "column": 19}, "end_point": {"row": 85, "column": 24}}, {"id": 249, "type": "primitive_type", "text": "int", "parent": 248, "children": [], "start_point": {"row": 85, "column": 19}, "end_point": {"row": 85, "column": 22}}, {"id": 250, "type": "identifier", "text": "n", "parent": 248, "children": [], "start_point": {"row": 85, "column": 23}, "end_point": {"row": 85, "column": 24}}, {"id": 251, "type": "declaration", "text": "void\t\t\t\t\tft_putnbr_fd(int n, int fd);", "parent": 0, "children": [252, 253], "start_point": {"row": 86, "column": 0}, "end_point": {"row": 86, "column": 37}}, {"id": 252, "type": "primitive_type", "text": "void", "parent": 251, "children": [], "start_point": {"row": 86, "column": 0}, "end_point": {"row": 86, "column": 4}}, {"id": 253, "type": "function_declarator", "text": "ft_putnbr_fd(int n, int fd)", "parent": 251, "children": [254, 255], "start_point": {"row": 86, "column": 9}, "end_point": {"row": 86, "column": 36}}, {"id": 254, "type": "identifier", "text": "ft_putnbr_fd", "parent": 253, "children": [], "start_point": {"row": 86, "column": 9}, "end_point": {"row": 86, "column": 21}}, {"id": 255, "type": "parameter_list", "text": "(int n, int fd)", "parent": 253, "children": [256, 259], "start_point": {"row": 86, "column": 21}, "end_point": {"row": 86, "column": 36}}, {"id": 256, "type": "parameter_declaration", "text": "int n", "parent": 255, "children": [257, 258], "start_point": {"row": 86, "column": 22}, "end_point": {"row": 86, "column": 27}}, {"id": 257, "type": "primitive_type", "text": "int", "parent": 256, "children": [], "start_point": {"row": 86, "column": 22}, "end_point": {"row": 86, "column": 25}}, {"id": 258, "type": "identifier", "text": "n", "parent": 256, "children": [], "start_point": {"row": 86, "column": 26}, "end_point": {"row": 86, "column": 27}}, {"id": 259, "type": "parameter_declaration", "text": "int fd", "parent": 255, "children": [260, 261], "start_point": {"row": 86, "column": 29}, "end_point": {"row": 86, "column": 35}}, {"id": 260, "type": "primitive_type", "text": "int", "parent": 259, "children": [], "start_point": {"row": 86, "column": 29}, "end_point": {"row": 86, "column": 32}}, {"id": 261, "type": "identifier", "text": "fd", "parent": 259, "children": [], "start_point": {"row": 86, "column": 33}, "end_point": {"row": 86, "column": 35}}, {"id": 262, "type": "declaration", "text": "size_t\t\t\t\t\tft_strlen(char const *s);", "parent": 0, "children": [263, 264], "start_point": {"row": 92, "column": 0}, "end_point": {"row": 92, "column": 36}}, {"id": 263, "type": "primitive_type", "text": "size_t", "parent": 262, "children": [], "start_point": {"row": 92, "column": 0}, "end_point": {"row": 92, "column": 6}}, {"id": 264, "type": "function_declarator", "text": "ft_strlen(char const *s)", "parent": 262, "children": [265, 266], "start_point": {"row": 92, "column": 11}, "end_point": {"row": 92, "column": 35}}, {"id": 265, "type": "identifier", "text": "ft_strlen", "parent": 264, "children": [], "start_point": {"row": 92, "column": 11}, "end_point": {"row": 92, "column": 20}}, {"id": 266, "type": "parameter_list", "text": "(char const *s)", "parent": 264, "children": [267], "start_point": {"row": 92, "column": 20}, "end_point": {"row": 92, "column": 35}}, {"id": 267, "type": "parameter_declaration", "text": "char const *s", "parent": 266, "children": [268, 269], "start_point": {"row": 92, "column": 21}, "end_point": {"row": 92, "column": 34}}, {"id": 268, "type": "primitive_type", "text": "char", "parent": 267, "children": [], "start_point": {"row": 92, "column": 21}, "end_point": {"row": 92, "column": 25}}, {"id": 269, "type": "pointer_declarator", "text": "*s", "parent": 267, "children": [270, 271], "start_point": {"row": 92, "column": 32}, "end_point": {"row": 92, "column": 34}}, {"id": 270, "type": "*", "text": "*", "parent": 269, "children": [], "start_point": {"row": 92, "column": 32}, "end_point": {"row": 92, "column": 33}}, {"id": 271, "type": "identifier", "text": "s", "parent": 269, "children": [], "start_point": {"row": 92, "column": 33}, "end_point": {"row": 92, "column": 34}}, {"id": 272, "type": "declaration", "text": "char\t\t\t\t\t*ft_strnew(size_t size);", "parent": 0, "children": [273, 274], "start_point": {"row": 94, "column": 0}, "end_point": {"row": 94, "column": 33}}, {"id": 273, "type": "primitive_type", "text": "char", "parent": 272, "children": [], "start_point": {"row": 94, "column": 0}, "end_point": {"row": 94, "column": 4}}, {"id": 274, "type": "pointer_declarator", "text": "*ft_strnew(size_t size)", "parent": 272, "children": [275, 276], "start_point": {"row": 94, "column": 9}, "end_point": {"row": 94, "column": 32}}, {"id": 275, "type": "*", "text": "*", "parent": 274, "children": [], "start_point": {"row": 94, "column": 9}, "end_point": {"row": 94, "column": 10}}, {"id": 276, "type": "function_declarator", "text": "ft_strnew(size_t size)", "parent": 274, "children": [277, 278], "start_point": {"row": 94, "column": 10}, "end_point": {"row": 94, "column": 32}}, {"id": 277, "type": "identifier", "text": "ft_strnew", "parent": 276, "children": [], "start_point": {"row": 94, "column": 10}, "end_point": {"row": 94, "column": 19}}, {"id": 278, "type": "parameter_list", "text": "(size_t size)", "parent": 276, "children": [279], "start_point": {"row": 94, "column": 19}, "end_point": {"row": 94, "column": 32}}, {"id": 279, "type": "parameter_declaration", "text": "size_t size", "parent": 278, "children": [280, 281], "start_point": {"row": 94, "column": 20}, "end_point": {"row": 94, "column": 31}}, {"id": 280, "type": "primitive_type", "text": "size_t", "parent": 279, "children": [], "start_point": {"row": 94, "column": 20}, "end_point": {"row": 94, "column": 26}}, {"id": 281, "type": "identifier", "text": "size", "parent": 279, "children": [], "start_point": {"row": 94, "column": 27}, "end_point": {"row": 94, "column": 31}}, {"id": 282, "type": "declaration", "text": "char\t\t\t\t\t*ft_strdup(char const *s1);", "parent": 0, "children": [283, 284], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 95, "column": 36}}, {"id": 283, "type": "primitive_type", "text": "char", "parent": 282, "children": [], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 95, "column": 4}}, {"id": 284, "type": "pointer_declarator", "text": "*ft_strdup(char const *s1)", "parent": 282, "children": [285, 286], "start_point": {"row": 95, "column": 9}, "end_point": {"row": 95, "column": 35}}, {"id": 285, "type": "*", "text": "*", "parent": 284, "children": [], "start_point": {"row": 95, "column": 9}, "end_point": {"row": 95, "column": 10}}, {"id": 286, "type": "function_declarator", "text": "ft_strdup(char const *s1)", "parent": 284, "children": [287, 288], "start_point": {"row": 95, "column": 10}, "end_point": {"row": 95, "column": 35}}, {"id": 287, "type": "identifier", "text": "ft_strdup", "parent": 286, "children": [], "start_point": {"row": 95, "column": 10}, "end_point": {"row": 95, "column": 19}}, {"id": 288, "type": "parameter_list", "text": "(char const *s1)", "parent": 286, "children": [289], "start_point": {"row": 95, "column": 19}, "end_point": {"row": 95, "column": 35}}, {"id": 289, "type": "parameter_declaration", "text": "char const *s1", "parent": 288, "children": [290, 291], "start_point": {"row": 95, "column": 20}, "end_point": {"row": 95, "column": 34}}, {"id": 290, "type": "primitive_type", "text": "char", "parent": 289, "children": [], "start_point": {"row": 95, "column": 20}, "end_point": {"row": 95, "column": 24}}, {"id": 291, "type": "pointer_declarator", "text": "*s1", "parent": 289, "children": [292, 293], "start_point": {"row": 95, "column": 31}, "end_point": {"row": 95, "column": 34}}, {"id": 292, "type": "*", "text": "*", "parent": 291, "children": [], "start_point": {"row": 95, "column": 31}, "end_point": {"row": 95, "column": 32}}, {"id": 293, "type": "identifier", "text": "s1", "parent": 291, "children": [], "start_point": {"row": 95, "column": 32}, "end_point": {"row": 95, "column": 34}}, {"id": 294, "type": "declaration", "text": "char\t\t\t\t\t*ft_strcpy(char *s1, char const *s2);", "parent": 0, "children": [295, 296], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 96, "column": 46}}, {"id": 295, "type": "primitive_type", "text": "char", "parent": 294, "children": [], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 96, "column": 4}}, {"id": 296, "type": "pointer_declarator", "text": "*ft_strcpy(char *s1, char const *s2)", "parent": 294, "children": [297, 298], "start_point": {"row": 96, "column": 9}, "end_point": {"row": 96, "column": 45}}, {"id": 297, "type": "*", "text": "*", "parent": 296, "children": [], "start_point": {"row": 96, "column": 9}, "end_point": {"row": 96, "column": 10}}, {"id": 298, "type": "function_declarator", "text": "ft_strcpy(char *s1, char const *s2)", "parent": 296, "children": [299, 300], "start_point": {"row": 96, "column": 10}, "end_point": {"row": 96, "column": 45}}, {"id": 299, "type": "identifier", "text": "ft_strcpy", "parent": 298, "children": [], "start_point": {"row": 96, "column": 10}, "end_point": {"row": 96, "column": 19}}, {"id": 300, "type": "parameter_list", "text": "(char *s1, char const *s2)", "parent": 298, "children": [301, 306], "start_point": {"row": 96, "column": 19}, "end_point": {"row": 96, "column": 45}}, {"id": 301, "type": "parameter_declaration", "text": "char *s1", "parent": 300, "children": [302, 303], "start_point": {"row": 96, "column": 20}, "end_point": {"row": 96, "column": 28}}, {"id": 302, "type": "primitive_type", "text": "char", "parent": 301, "children": [], "start_point": {"row": 96, "column": 20}, "end_point": {"row": 96, "column": 24}}, {"id": 303, "type": "pointer_declarator", "text": "*s1", "parent": 301, "children": [304, 305], "start_point": {"row": 96, "column": 25}, "end_point": {"row": 96, "column": 28}}, {"id": 304, "type": "*", "text": "*", "parent": 303, "children": [], "start_point": {"row": 96, "column": 25}, "end_point": {"row": 96, "column": 26}}, {"id": 305, "type": "identifier", "text": "s1", "parent": 303, "children": [], "start_point": {"row": 96, "column": 26}, "end_point": {"row": 96, "column": 28}}, {"id": 306, "type": "parameter_declaration", "text": "char const *s2", "parent": 300, "children": [307, 308], "start_point": {"row": 96, "column": 30}, "end_point": {"row": 96, "column": 44}}, {"id": 307, "type": "primitive_type", "text": "char", "parent": 306, "children": [], "start_point": {"row": 96, "column": 30}, "end_point": {"row": 96, "column": 34}}, {"id": 308, "type": "pointer_declarator", "text": "*s2", "parent": 306, "children": [309, 310], "start_point": {"row": 96, "column": 41}, "end_point": {"row": 96, "column": 44}}, {"id": 309, "type": "*", "text": "*", "parent": 308, "children": [], "start_point": {"row": 96, "column": 41}, "end_point": {"row": 96, "column": 42}}, {"id": 310, "type": "identifier", "text": "s2", "parent": 308, "children": [], "start_point": {"row": 96, "column": 42}, "end_point": {"row": 96, "column": 44}}, {"id": 311, "type": "declaration", "text": "char\t\t\t\t\t*ft_strncpy(char *s1, char const *s2, size_t n);", "parent": 0, "children": [312, 313], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 97, "column": 57}}, {"id": 312, "type": "primitive_type", "text": "char", "parent": 311, "children": [], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 97, "column": 4}}, {"id": 313, "type": "pointer_declarator", "text": "*ft_strncpy(char *s1, char const *s2, size_t n)", "parent": 311, "children": [314, 315], "start_point": {"row": 97, "column": 9}, "end_point": {"row": 97, "column": 56}}, {"id": 314, "type": "*", "text": "*", "parent": 313, "children": [], "start_point": {"row": 97, "column": 9}, "end_point": {"row": 97, "column": 10}}, {"id": 315, "type": "function_declarator", "text": "ft_strncpy(char *s1, char const *s2, size_t n)", "parent": 313, "children": [316, 317], "start_point": {"row": 97, "column": 10}, "end_point": {"row": 97, "column": 56}}, {"id": 316, "type": "identifier", "text": "ft_strncpy", "parent": 315, "children": [], "start_point": {"row": 97, "column": 10}, "end_point": {"row": 97, "column": 20}}, {"id": 317, "type": "parameter_list", "text": "(char *s1, char const *s2, size_t n)", "parent": 315, "children": [318, 323, 328], "start_point": {"row": 97, "column": 20}, "end_point": {"row": 97, "column": 56}}, {"id": 318, "type": "parameter_declaration", "text": "char *s1", "parent": 317, "children": [319, 320], "start_point": {"row": 97, "column": 21}, "end_point": {"row": 97, "column": 29}}, {"id": 319, "type": "primitive_type", "text": "char", "parent": 318, "children": [], "start_point": {"row": 97, "column": 21}, "end_point": {"row": 97, "column": 25}}, {"id": 320, "type": "pointer_declarator", "text": "*s1", "parent": 318, "children": [321, 322], "start_point": {"row": 97, "column": 26}, "end_point": {"row": 97, "column": 29}}, {"id": 321, "type": "*", "text": "*", "parent": 320, "children": [], "start_point": {"row": 97, "column": 26}, "end_point": {"row": 97, "column": 27}}, {"id": 322, "type": "identifier", "text": "s1", "parent": 320, "children": [], "start_point": {"row": 97, "column": 27}, "end_point": {"row": 97, "column": 29}}, {"id": 323, "type": "parameter_declaration", "text": "char const *s2", "parent": 317, "children": [324, 325], "start_point": {"row": 97, "column": 31}, "end_point": {"row": 97, "column": 45}}, {"id": 324, "type": "primitive_type", "text": "char", "parent": 323, "children": [], "start_point": {"row": 97, "column": 31}, "end_point": {"row": 97, "column": 35}}, {"id": 325, "type": "pointer_declarator", "text": "*s2", "parent": 323, "children": [326, 327], "start_point": {"row": 97, "column": 42}, "end_point": {"row": 97, "column": 45}}, {"id": 326, "type": "*", "text": "*", "parent": 325, "children": [], "start_point": {"row": 97, "column": 42}, "end_point": {"row": 97, "column": 43}}, {"id": 327, "type": "identifier", "text": "s2", "parent": 325, "children": [], "start_point": {"row": 97, "column": 43}, "end_point": {"row": 97, "column": 45}}, {"id": 328, "type": "parameter_declaration", "text": "size_t n", "parent": 317, "children": [329, 330], "start_point": {"row": 97, "column": 47}, "end_point": {"row": 97, "column": 55}}, {"id": 329, "type": "primitive_type", "text": "size_t", "parent": 328, "children": [], "start_point": {"row": 97, "column": 47}, "end_point": {"row": 97, "column": 53}}, {"id": 330, "type": "identifier", "text": "n", "parent": 328, "children": [], "start_point": {"row": 97, "column": 54}, "end_point": {"row": 97, "column": 55}}, {"id": 331, "type": "declaration", "text": "void\t\t\t\t\tft_strclr(char *s);", "parent": 0, "children": [332, 333], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 98, "column": 28}}, {"id": 332, "type": "primitive_type", "text": "void", "parent": 331, "children": [], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 98, "column": 4}}, {"id": 333, "type": "function_declarator", "text": "ft_strclr(char *s)", "parent": 331, "children": [334, 335], "start_point": {"row": 98, "column": 9}, "end_point": {"row": 98, "column": 27}}, {"id": 334, "type": "identifier", "text": "ft_strclr", "parent": 333, "children": [], "start_point": {"row": 98, "column": 9}, "end_point": {"row": 98, "column": 18}}, {"id": 335, "type": "parameter_list", "text": "(char *s)", "parent": 333, "children": [336], "start_point": {"row": 98, "column": 18}, "end_point": {"row": 98, "column": 27}}, {"id": 336, "type": "parameter_declaration", "text": "char *s", "parent": 335, "children": [337, 338], "start_point": {"row": 98, "column": 19}, "end_point": {"row": 98, "column": 26}}, {"id": 337, "type": "primitive_type", "text": "char", "parent": 336, "children": [], "start_point": {"row": 98, "column": 19}, "end_point": {"row": 98, "column": 23}}, {"id": 338, "type": "pointer_declarator", "text": "*s", "parent": 336, "children": [339, 340], "start_point": {"row": 98, "column": 24}, "end_point": {"row": 98, "column": 26}}, {"id": 339, "type": "*", "text": "*", "parent": 338, "children": [], "start_point": {"row": 98, "column": 24}, "end_point": {"row": 98, "column": 25}}, {"id": 340, "type": "identifier", "text": "s", "parent": 338, "children": [], "start_point": {"row": 98, "column": 25}, "end_point": {"row": 98, "column": 26}}, {"id": 341, "type": "declaration", "text": "void\t\t\t\t\tft_strdel(char **as);", "parent": 0, "children": [342, 343], "start_point": {"row": 99, "column": 0}, "end_point": {"row": 99, "column": 30}}, {"id": 342, "type": "primitive_type", "text": "void", "parent": 341, "children": [], "start_point": {"row": 99, "column": 0}, "end_point": {"row": 99, "column": 4}}, {"id": 343, "type": "function_declarator", "text": "ft_strdel(char **as)", "parent": 341, "children": [344, 345], "start_point": {"row": 99, "column": 9}, "end_point": {"row": 99, "column": 29}}, {"id": 344, "type": "identifier", "text": "ft_strdel", "parent": 343, "children": [], "start_point": {"row": 99, "column": 9}, "end_point": {"row": 99, "column": 18}}, {"id": 345, "type": "parameter_list", "text": "(char **as)", "parent": 343, "children": [346], "start_point": {"row": 99, "column": 18}, "end_point": {"row": 99, "column": 29}}, {"id": 346, "type": "parameter_declaration", "text": "char **as", "parent": 345, "children": [347, 348], "start_point": {"row": 99, "column": 19}, "end_point": {"row": 99, "column": 28}}, {"id": 347, "type": "primitive_type", "text": "char", "parent": 346, "children": [], "start_point": {"row": 99, "column": 19}, "end_point": {"row": 99, "column": 23}}, {"id": 348, "type": "pointer_declarator", "text": "**as", "parent": 346, "children": [349, 350], "start_point": {"row": 99, "column": 24}, "end_point": {"row": 99, "column": 28}}, {"id": 349, "type": "*", "text": "*", "parent": 348, "children": [], "start_point": {"row": 99, "column": 24}, "end_point": {"row": 99, "column": 25}}, {"id": 350, "type": "pointer_declarator", "text": "*as", "parent": 348, "children": [351], "start_point": {"row": 99, "column": 25}, "end_point": {"row": 99, "column": 28}}, {"id": 351, "type": "*", "text": "*", "parent": 350, "children": [], "start_point": {"row": 99, "column": 25}, "end_point": {"row": 99, "column": 26}}, {"id": 352, "type": "declaration", "text": "int\t\t\t\t\t\tft_strcmp(char const *s1, char const *s2);", "parent": 0, "children": [353, 354], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 101, "column": 51}}, {"id": 353, "type": "primitive_type", "text": "int", "parent": 352, "children": [], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 101, "column": 3}}, {"id": 354, "type": "function_declarator", "text": "ft_strcmp(char const *s1, char const *s2)", "parent": 352, "children": [355, 356], "start_point": {"row": 101, "column": 9}, "end_point": {"row": 101, "column": 50}}, {"id": 355, "type": "identifier", "text": "ft_strcmp", "parent": 354, "children": [], "start_point": {"row": 101, "column": 9}, "end_point": {"row": 101, "column": 18}}, {"id": 356, "type": "parameter_list", "text": "(char const *s1, char const *s2)", "parent": 354, "children": [357, 362], "start_point": {"row": 101, "column": 18}, "end_point": {"row": 101, "column": 50}}, {"id": 357, "type": "parameter_declaration", "text": "char const *s1", "parent": 356, "children": [358, 359], "start_point": {"row": 101, "column": 19}, "end_point": {"row": 101, "column": 33}}, {"id": 358, "type": "primitive_type", "text": "char", "parent": 357, "children": [], "start_point": {"row": 101, "column": 19}, "end_point": {"row": 101, "column": 23}}, {"id": 359, "type": "pointer_declarator", "text": "*s1", "parent": 357, "children": [360, 361], "start_point": {"row": 101, "column": 30}, "end_point": {"row": 101, "column": 33}}, {"id": 360, "type": "*", "text": "*", "parent": 359, "children": [], "start_point": {"row": 101, "column": 30}, "end_point": {"row": 101, "column": 31}}, {"id": 361, "type": "identifier", "text": "s1", "parent": 359, "children": [], "start_point": {"row": 101, "column": 31}, "end_point": {"row": 101, "column": 33}}, {"id": 362, "type": "parameter_declaration", "text": "char const *s2", "parent": 356, "children": [363, 364], "start_point": {"row": 101, "column": 35}, "end_point": {"row": 101, "column": 49}}, {"id": 363, "type": "primitive_type", "text": "char", "parent": 362, "children": [], "start_point": {"row": 101, "column": 35}, "end_point": {"row": 101, "column": 39}}, {"id": 364, "type": "pointer_declarator", "text": "*s2", "parent": 362, "children": [365, 366], "start_point": {"row": 101, "column": 46}, "end_point": {"row": 101, "column": 49}}, {"id": 365, "type": "*", "text": "*", "parent": 364, "children": [], "start_point": {"row": 101, "column": 46}, "end_point": {"row": 101, "column": 47}}, {"id": 366, "type": "identifier", "text": "s2", "parent": 364, "children": [], "start_point": {"row": 101, "column": 47}, "end_point": {"row": 101, "column": 49}}, {"id": 367, "type": "declaration", "text": "int\t\t\t\t\t\tft_strncmp(char const *s1, char const *s2, size_t n);", "parent": 0, "children": [368, 369], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 102, "column": 62}}, {"id": 368, "type": "primitive_type", "text": "int", "parent": 367, "children": [], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 102, "column": 3}}, {"id": 369, "type": "function_declarator", "text": "ft_strncmp(char const *s1, char const *s2, size_t n)", "parent": 367, "children": [370, 371], "start_point": {"row": 102, "column": 9}, "end_point": {"row": 102, "column": 61}}, {"id": 370, "type": "identifier", "text": "ft_strncmp", "parent": 369, "children": [], "start_point": {"row": 102, "column": 9}, "end_point": {"row": 102, "column": 19}}, {"id": 371, "type": "parameter_list", "text": "(char const *s1, char const *s2, size_t n)", "parent": 369, "children": [372, 377, 382], "start_point": {"row": 102, "column": 19}, "end_point": {"row": 102, "column": 61}}, {"id": 372, "type": "parameter_declaration", "text": "char const *s1", "parent": 371, "children": [373, 374], "start_point": {"row": 102, "column": 20}, "end_point": {"row": 102, "column": 34}}, {"id": 373, "type": "primitive_type", "text": "char", "parent": 372, "children": [], "start_point": {"row": 102, "column": 20}, "end_point": {"row": 102, "column": 24}}, {"id": 374, "type": "pointer_declarator", "text": "*s1", "parent": 372, "children": [375, 376], "start_point": {"row": 102, "column": 31}, "end_point": {"row": 102, "column": 34}}, {"id": 375, "type": "*", "text": "*", "parent": 374, "children": [], "start_point": {"row": 102, "column": 31}, "end_point": {"row": 102, "column": 32}}, {"id": 376, "type": "identifier", "text": "s1", "parent": 374, "children": [], "start_point": {"row": 102, "column": 32}, "end_point": {"row": 102, "column": 34}}, {"id": 377, "type": "parameter_declaration", "text": "char const *s2", "parent": 371, "children": [378, 379], "start_point": {"row": 102, "column": 36}, "end_point": {"row": 102, "column": 50}}, {"id": 378, "type": "primitive_type", "text": "char", "parent": 377, "children": [], "start_point": {"row": 102, "column": 36}, "end_point": {"row": 102, "column": 40}}, {"id": 379, "type": "pointer_declarator", "text": "*s2", "parent": 377, "children": [380, 381], "start_point": {"row": 102, "column": 47}, "end_point": {"row": 102, "column": 50}}, {"id": 380, "type": "*", "text": "*", "parent": 379, "children": [], "start_point": {"row": 102, "column": 47}, "end_point": {"row": 102, "column": 48}}, {"id": 381, "type": "identifier", "text": "s2", "parent": 379, "children": [], "start_point": {"row": 102, "column": 48}, "end_point": {"row": 102, "column": 50}}, {"id": 382, "type": "parameter_declaration", "text": "size_t n", "parent": 371, "children": [383, 384], "start_point": {"row": 102, "column": 52}, "end_point": {"row": 102, "column": 60}}, {"id": 383, "type": "primitive_type", "text": "size_t", "parent": 382, "children": [], "start_point": {"row": 102, "column": 52}, "end_point": {"row": 102, "column": 58}}, {"id": 384, "type": "identifier", "text": "n", "parent": 382, "children": [], "start_point": {"row": 102, "column": 59}, "end_point": {"row": 102, "column": 60}}, {"id": 385, "type": "declaration", "text": "t_bool\t\t\t\t\tft_strequ(char const *s1, char const *s2);", "parent": 0, "children": [386, 387], "start_point": {"row": 103, "column": 0}, "end_point": {"row": 103, "column": 53}}, {"id": 386, "type": "type_identifier", "text": "t_bool", "parent": 385, "children": [], "start_point": {"row": 103, "column": 0}, "end_point": {"row": 103, "column": 6}}, {"id": 387, "type": "function_declarator", "text": "ft_strequ(char const *s1, char const *s2)", "parent": 385, "children": [388, 389], "start_point": {"row": 103, "column": 11}, "end_point": {"row": 103, "column": 52}}, {"id": 388, "type": "identifier", "text": "ft_strequ", "parent": 387, "children": [], "start_point": {"row": 103, "column": 11}, "end_point": {"row": 103, "column": 20}}, {"id": 389, "type": "parameter_list", "text": "(char const *s1, char const *s2)", "parent": 387, "children": [390, 395], "start_point": {"row": 103, "column": 20}, "end_point": {"row": 103, "column": 52}}, {"id": 390, "type": "parameter_declaration", "text": "char const *s1", "parent": 389, "children": [391, 392], "start_point": {"row": 103, "column": 21}, "end_point": {"row": 103, "column": 35}}, {"id": 391, "type": "primitive_type", "text": "char", "parent": 390, "children": [], "start_point": {"row": 103, "column": 21}, "end_point": {"row": 103, "column": 25}}, {"id": 392, "type": "pointer_declarator", "text": "*s1", "parent": 390, "children": [393, 394], "start_point": {"row": 103, "column": 32}, "end_point": {"row": 103, "column": 35}}, {"id": 393, "type": "*", "text": "*", "parent": 392, "children": [], "start_point": {"row": 103, "column": 32}, "end_point": {"row": 103, "column": 33}}, {"id": 394, "type": "identifier", "text": "s1", "parent": 392, "children": [], "start_point": {"row": 103, "column": 33}, "end_point": {"row": 103, "column": 35}}, {"id": 395, "type": "parameter_declaration", "text": "char const *s2", "parent": 389, "children": [396, 397], "start_point": {"row": 103, "column": 37}, "end_point": {"row": 103, "column": 51}}, {"id": 396, "type": "primitive_type", "text": "char", "parent": 395, "children": [], "start_point": {"row": 103, "column": 37}, "end_point": {"row": 103, "column": 41}}, {"id": 397, "type": "pointer_declarator", "text": "*s2", "parent": 395, "children": [398, 399], "start_point": {"row": 103, "column": 48}, "end_point": {"row": 103, "column": 51}}, {"id": 398, "type": "*", "text": "*", "parent": 397, "children": [], "start_point": {"row": 103, "column": 48}, "end_point": {"row": 103, "column": 49}}, {"id": 399, "type": "identifier", "text": "s2", "parent": 397, "children": [], "start_point": {"row": 103, "column": 49}, "end_point": {"row": 103, "column": 51}}, {"id": 400, "type": "declaration", "text": "t_bool\t\t\t\t\tft_strnequ(char const *s1, char const *s2, size_t n);", "parent": 0, "children": [401, 402], "start_point": {"row": 104, "column": 0}, "end_point": {"row": 104, "column": 64}}, {"id": 401, "type": "type_identifier", "text": "t_bool", "parent": 400, "children": [], "start_point": {"row": 104, "column": 0}, "end_point": {"row": 104, "column": 6}}, {"id": 402, "type": "function_declarator", "text": "ft_strnequ(char const *s1, char const *s2, size_t n)", "parent": 400, "children": [403, 404], "start_point": {"row": 104, "column": 11}, "end_point": {"row": 104, "column": 63}}, {"id": 403, "type": "identifier", "text": "ft_strnequ", "parent": 402, "children": [], "start_point": {"row": 104, "column": 11}, "end_point": {"row": 104, "column": 21}}, {"id": 404, "type": "parameter_list", "text": "(char const *s1, char const *s2, size_t n)", "parent": 402, "children": [405, 410, 415], "start_point": {"row": 104, "column": 21}, "end_point": {"row": 104, "column": 63}}, {"id": 405, "type": "parameter_declaration", "text": "char const *s1", "parent": 404, "children": [406, 407], "start_point": {"row": 104, "column": 22}, "end_point": {"row": 104, "column": 36}}, {"id": 406, "type": "primitive_type", "text": "char", "parent": 405, "children": [], "start_point": {"row": 104, "column": 22}, "end_point": {"row": 104, "column": 26}}, {"id": 407, "type": "pointer_declarator", "text": "*s1", "parent": 405, "children": [408, 409], "start_point": {"row": 104, "column": 33}, "end_point": {"row": 104, "column": 36}}, {"id": 408, "type": "*", "text": "*", "parent": 407, "children": [], "start_point": {"row": 104, "column": 33}, "end_point": {"row": 104, "column": 34}}, {"id": 409, "type": "identifier", "text": "s1", "parent": 407, "children": [], "start_point": {"row": 104, "column": 34}, "end_point": {"row": 104, "column": 36}}, {"id": 410, "type": "parameter_declaration", "text": "char const *s2", "parent": 404, "children": [411, 412], "start_point": {"row": 104, "column": 38}, "end_point": {"row": 104, "column": 52}}, {"id": 411, "type": "primitive_type", "text": "char", "parent": 410, "children": [], "start_point": {"row": 104, "column": 38}, "end_point": {"row": 104, "column": 42}}, {"id": 412, "type": "pointer_declarator", "text": "*s2", "parent": 410, "children": [413, 414], "start_point": {"row": 104, "column": 49}, "end_point": {"row": 104, "column": 52}}, {"id": 413, "type": "*", "text": "*", "parent": 412, "children": [], "start_point": {"row": 104, "column": 49}, "end_point": {"row": 104, "column": 50}}, {"id": 414, "type": "identifier", "text": "s2", "parent": 412, "children": [], "start_point": {"row": 104, "column": 50}, "end_point": {"row": 104, "column": 52}}, {"id": 415, "type": "parameter_declaration", "text": "size_t n", "parent": 404, "children": [416, 417], "start_point": {"row": 104, "column": 54}, "end_point": {"row": 104, "column": 62}}, {"id": 416, "type": "primitive_type", "text": "size_t", "parent": 415, "children": [], "start_point": {"row": 104, "column": 54}, "end_point": {"row": 104, "column": 60}}, {"id": 417, "type": "identifier", "text": "n", "parent": 415, "children": [], "start_point": {"row": 104, "column": 61}, "end_point": {"row": 104, "column": 62}}, {"id": 418, "type": "declaration", "text": "char\t\t\t\t\t*ft_strcat(char *s1, char const *s2);", "parent": 0, "children": [419, 420], "start_point": {"row": 106, "column": 0}, "end_point": {"row": 106, "column": 46}}, {"id": 419, "type": "primitive_type", "text": "char", "parent": 418, "children": [], "start_point": {"row": 106, "column": 0}, "end_point": {"row": 106, "column": 4}}, {"id": 420, "type": "pointer_declarator", "text": "*ft_strcat(char *s1, char const *s2)", "parent": 418, "children": [421, 422], "start_point": {"row": 106, "column": 9}, "end_point": {"row": 106, "column": 45}}, {"id": 421, "type": "*", "text": "*", "parent": 420, "children": [], "start_point": {"row": 106, "column": 9}, "end_point": {"row": 106, "column": 10}}, {"id": 422, "type": "function_declarator", "text": "ft_strcat(char *s1, char const *s2)", "parent": 420, "children": [423, 424], "start_point": {"row": 106, "column": 10}, "end_point": {"row": 106, "column": 45}}, {"id": 423, "type": "identifier", "text": "ft_strcat", "parent": 422, "children": [], "start_point": {"row": 106, "column": 10}, "end_point": {"row": 106, "column": 19}}, {"id": 424, "type": "parameter_list", "text": "(char *s1, char const *s2)", "parent": 422, "children": [425, 430], "start_point": {"row": 106, "column": 19}, "end_point": {"row": 106, "column": 45}}, {"id": 425, "type": "parameter_declaration", "text": "char *s1", "parent": 424, "children": [426, 427], "start_point": {"row": 106, "column": 20}, "end_point": {"row": 106, "column": 28}}, {"id": 426, "type": "primitive_type", "text": "char", "parent": 425, "children": [], "start_point": {"row": 106, "column": 20}, "end_point": {"row": 106, "column": 24}}, {"id": 427, "type": "pointer_declarator", "text": "*s1", "parent": 425, "children": [428, 429], "start_point": {"row": 106, "column": 25}, "end_point": {"row": 106, "column": 28}}, {"id": 428, "type": "*", "text": "*", "parent": 427, "children": [], "start_point": {"row": 106, "column": 25}, "end_point": {"row": 106, "column": 26}}, {"id": 429, "type": "identifier", "text": "s1", "parent": 427, "children": [], "start_point": {"row": 106, "column": 26}, "end_point": {"row": 106, "column": 28}}, {"id": 430, "type": "parameter_declaration", "text": "char const *s2", "parent": 424, "children": [431, 432], "start_point": {"row": 106, "column": 30}, "end_point": {"row": 106, "column": 44}}, {"id": 431, "type": "primitive_type", "text": "char", "parent": 430, "children": [], "start_point": {"row": 106, "column": 30}, "end_point": {"row": 106, "column": 34}}, {"id": 432, "type": "pointer_declarator", "text": "*s2", "parent": 430, "children": [433, 434], "start_point": {"row": 106, "column": 41}, "end_point": {"row": 106, "column": 44}}, {"id": 433, "type": "*", "text": "*", "parent": 432, "children": [], "start_point": {"row": 106, "column": 41}, "end_point": {"row": 106, "column": 42}}, {"id": 434, "type": "identifier", "text": "s2", "parent": 432, "children": [], "start_point": {"row": 106, "column": 42}, "end_point": {"row": 106, "column": 44}}, {"id": 435, "type": "declaration", "text": "char\t\t\t\t\t*ft_strncat(char *s1, char const *s2, size_t n);", "parent": 0, "children": [436, 437], "start_point": {"row": 107, "column": 0}, "end_point": {"row": 107, "column": 57}}, {"id": 436, "type": "primitive_type", "text": "char", "parent": 435, "children": [], "start_point": {"row": 107, "column": 0}, "end_point": {"row": 107, "column": 4}}, {"id": 437, "type": "pointer_declarator", "text": "*ft_strncat(char *s1, char const *s2, size_t n)", "parent": 435, "children": [438, 439], "start_point": {"row": 107, "column": 9}, "end_point": {"row": 107, "column": 56}}, {"id": 438, "type": "*", "text": "*", "parent": 437, "children": [], "start_point": {"row": 107, "column": 9}, "end_point": {"row": 107, "column": 10}}, {"id": 439, "type": "function_declarator", "text": "ft_strncat(char *s1, char const *s2, size_t n)", "parent": 437, "children": [440, 441], "start_point": {"row": 107, "column": 10}, "end_point": {"row": 107, "column": 56}}, {"id": 440, "type": "identifier", "text": "ft_strncat", "parent": 439, "children": [], "start_point": {"row": 107, "column": 10}, "end_point": {"row": 107, "column": 20}}, {"id": 441, "type": "parameter_list", "text": "(char *s1, char const *s2, size_t n)", "parent": 439, "children": [442, 447, 452], "start_point": {"row": 107, "column": 20}, "end_point": {"row": 107, "column": 56}}, {"id": 442, "type": "parameter_declaration", "text": "char *s1", "parent": 441, "children": [443, 444], "start_point": {"row": 107, "column": 21}, "end_point": {"row": 107, "column": 29}}, {"id": 443, "type": "primitive_type", "text": "char", "parent": 442, "children": [], "start_point": {"row": 107, "column": 21}, "end_point": {"row": 107, "column": 25}}, {"id": 444, "type": "pointer_declarator", "text": "*s1", "parent": 442, "children": [445, 446], "start_point": {"row": 107, "column": 26}, "end_point": {"row": 107, "column": 29}}, {"id": 445, "type": "*", "text": "*", "parent": 444, "children": [], "start_point": {"row": 107, "column": 26}, "end_point": {"row": 107, "column": 27}}, {"id": 446, "type": "identifier", "text": "s1", "parent": 444, "children": [], "start_point": {"row": 107, "column": 27}, "end_point": {"row": 107, "column": 29}}, {"id": 447, "type": "parameter_declaration", "text": "char const *s2", "parent": 441, "children": [448, 449], "start_point": {"row": 107, "column": 31}, "end_point": {"row": 107, "column": 45}}, {"id": 448, "type": "primitive_type", "text": "char", "parent": 447, "children": [], "start_point": {"row": 107, "column": 31}, "end_point": {"row": 107, "column": 35}}, {"id": 449, "type": "pointer_declarator", "text": "*s2", "parent": 447, "children": [450, 451], "start_point": {"row": 107, "column": 42}, "end_point": {"row": 107, "column": 45}}, {"id": 450, "type": "*", "text": "*", "parent": 449, "children": [], "start_point": {"row": 107, "column": 42}, "end_point": {"row": 107, "column": 43}}, {"id": 451, "type": "identifier", "text": "s2", "parent": 449, "children": [], "start_point": {"row": 107, "column": 43}, "end_point": {"row": 107, "column": 45}}, {"id": 452, "type": "parameter_declaration", "text": "size_t n", "parent": 441, "children": [453, 454], "start_point": {"row": 107, "column": 47}, "end_point": {"row": 107, "column": 55}}, {"id": 453, "type": "primitive_type", "text": "size_t", "parent": 452, "children": [], "start_point": {"row": 107, "column": 47}, "end_point": {"row": 107, "column": 53}}, {"id": 454, "type": "identifier", "text": "n", "parent": 452, "children": [], "start_point": {"row": 107, "column": 54}, "end_point": {"row": 107, "column": 55}}, {"id": 455, "type": "declaration", "text": "size_t\t\t\t\t\tft_strlcat(char *s1, char const *s2, size_t size);", "parent": 0, "children": [456, 457], "start_point": {"row": 108, "column": 0}, "end_point": {"row": 108, "column": 61}}, {"id": 456, "type": "primitive_type", "text": "size_t", "parent": 455, "children": [], "start_point": {"row": 108, "column": 0}, "end_point": {"row": 108, "column": 6}}, {"id": 457, "type": "function_declarator", "text": "ft_strlcat(char *s1, char const *s2, size_t size)", "parent": 455, "children": [458, 459], "start_point": {"row": 108, "column": 11}, "end_point": {"row": 108, "column": 60}}, {"id": 458, "type": "identifier", "text": "ft_strlcat", "parent": 457, "children": [], "start_point": {"row": 108, "column": 11}, "end_point": {"row": 108, "column": 21}}, {"id": 459, "type": "parameter_list", "text": "(char *s1, char const *s2, size_t size)", "parent": 457, "children": [460, 465, 470], "start_point": {"row": 108, "column": 21}, "end_point": {"row": 108, "column": 60}}, {"id": 460, "type": "parameter_declaration", "text": "char *s1", "parent": 459, "children": [461, 462], "start_point": {"row": 108, "column": 22}, "end_point": {"row": 108, "column": 30}}, {"id": 461, "type": "primitive_type", "text": "char", "parent": 460, "children": [], "start_point": {"row": 108, "column": 22}, "end_point": {"row": 108, "column": 26}}, {"id": 462, "type": "pointer_declarator", "text": "*s1", "parent": 460, "children": [463, 464], "start_point": {"row": 108, "column": 27}, "end_point": {"row": 108, "column": 30}}, {"id": 463, "type": "*", "text": "*", "parent": 462, "children": [], "start_point": {"row": 108, "column": 27}, "end_point": {"row": 108, "column": 28}}, {"id": 464, "type": "identifier", "text": "s1", "parent": 462, "children": [], "start_point": {"row": 108, "column": 28}, "end_point": {"row": 108, "column": 30}}, {"id": 465, "type": "parameter_declaration", "text": "char const *s2", "parent": 459, "children": [466, 467], "start_point": {"row": 108, "column": 32}, "end_point": {"row": 108, "column": 46}}, {"id": 466, "type": "primitive_type", "text": "char", "parent": 465, "children": [], "start_point": {"row": 108, "column": 32}, "end_point": {"row": 108, "column": 36}}, {"id": 467, "type": "pointer_declarator", "text": "*s2", "parent": 465, "children": [468, 469], "start_point": {"row": 108, "column": 43}, "end_point": {"row": 108, "column": 46}}, {"id": 468, "type": "*", "text": "*", "parent": 467, "children": [], "start_point": {"row": 108, "column": 43}, "end_point": {"row": 108, "column": 44}}, {"id": 469, "type": "identifier", "text": "s2", "parent": 467, "children": [], "start_point": {"row": 108, "column": 44}, "end_point": {"row": 108, "column": 46}}, {"id": 470, "type": "parameter_declaration", "text": "size_t size", "parent": 459, "children": [471, 472], "start_point": {"row": 108, "column": 48}, "end_point": {"row": 108, "column": 59}}, {"id": 471, "type": "primitive_type", "text": "size_t", "parent": 470, "children": [], "start_point": {"row": 108, "column": 48}, "end_point": {"row": 108, "column": 54}}, {"id": 472, "type": "identifier", "text": "size", "parent": 470, "children": [], "start_point": {"row": 108, "column": 55}, "end_point": {"row": 108, "column": 59}}, {"id": 473, "type": "declaration", "text": "char\t\t\t\t\t*ft_strjoin(char const *s1, char const *s2);", "parent": 0, "children": [474, 475], "start_point": {"row": 109, "column": 0}, "end_point": {"row": 109, "column": 53}}, {"id": 474, "type": "primitive_type", "text": "char", "parent": 473, "children": [], "start_point": {"row": 109, "column": 0}, "end_point": {"row": 109, "column": 4}}, {"id": 475, "type": "pointer_declarator", "text": "*ft_strjoin(char const *s1, char const *s2)", "parent": 473, "children": [476, 477], "start_point": {"row": 109, "column": 9}, "end_point": {"row": 109, "column": 52}}, {"id": 476, "type": "*", "text": "*", "parent": 475, "children": [], "start_point": {"row": 109, "column": 9}, "end_point": {"row": 109, "column": 10}}, {"id": 477, "type": "function_declarator", "text": "ft_strjoin(char const *s1, char const *s2)", "parent": 475, "children": [478, 479], "start_point": {"row": 109, "column": 10}, "end_point": {"row": 109, "column": 52}}, {"id": 478, "type": "identifier", "text": "ft_strjoin", "parent": 477, "children": [], "start_point": {"row": 109, "column": 10}, "end_point": {"row": 109, "column": 20}}, {"id": 479, "type": "parameter_list", "text": "(char const *s1, char const *s2)", "parent": 477, "children": [480, 485], "start_point": {"row": 109, "column": 20}, "end_point": {"row": 109, "column": 52}}, {"id": 480, "type": "parameter_declaration", "text": "char const *s1", "parent": 479, "children": [481, 482], "start_point": {"row": 109, "column": 21}, "end_point": {"row": 109, "column": 35}}, {"id": 481, "type": "primitive_type", "text": "char", "parent": 480, "children": [], "start_point": {"row": 109, "column": 21}, "end_point": {"row": 109, "column": 25}}, {"id": 482, "type": "pointer_declarator", "text": "*s1", "parent": 480, "children": [483, 484], "start_point": {"row": 109, "column": 32}, "end_point": {"row": 109, "column": 35}}, {"id": 483, "type": "*", "text": "*", "parent": 482, "children": [], "start_point": {"row": 109, "column": 32}, "end_point": {"row": 109, "column": 33}}, {"id": 484, "type": "identifier", "text": "s1", "parent": 482, "children": [], "start_point": {"row": 109, "column": 33}, "end_point": {"row": 109, "column": 35}}, {"id": 485, "type": "parameter_declaration", "text": "char const *s2", "parent": 479, "children": [486, 487], "start_point": {"row": 109, "column": 37}, "end_point": {"row": 109, "column": 51}}, {"id": 486, "type": "primitive_type", "text": "char", "parent": 485, "children": [], "start_point": {"row": 109, "column": 37}, "end_point": {"row": 109, "column": 41}}, {"id": 487, "type": "pointer_declarator", "text": "*s2", "parent": 485, "children": [488, 489], "start_point": {"row": 109, "column": 48}, "end_point": {"row": 109, "column": 51}}, {"id": 488, "type": "*", "text": "*", "parent": 487, "children": [], "start_point": {"row": 109, "column": 48}, "end_point": {"row": 109, "column": 49}}, {"id": 489, "type": "identifier", "text": "s2", "parent": 487, "children": [], "start_point": {"row": 109, "column": 49}, "end_point": {"row": 109, "column": 51}}, {"id": 490, "type": "declaration", "text": "char\t\t\t\t\t*ft_strjoin_free(char *s1, char const *s2);", "parent": 0, "children": [491, 492], "start_point": {"row": 110, "column": 0}, "end_point": {"row": 110, "column": 52}}, {"id": 491, "type": "primitive_type", "text": "char", "parent": 490, "children": [], "start_point": {"row": 110, "column": 0}, "end_point": {"row": 110, "column": 4}}, {"id": 492, "type": "pointer_declarator", "text": "*ft_strjoin_free(char *s1, char const *s2)", "parent": 490, "children": [493, 494], "start_point": {"row": 110, "column": 9}, "end_point": {"row": 110, "column": 51}}, {"id": 493, "type": "*", "text": "*", "parent": 492, "children": [], "start_point": {"row": 110, "column": 9}, "end_point": {"row": 110, "column": 10}}, {"id": 494, "type": "function_declarator", "text": "ft_strjoin_free(char *s1, char const *s2)", "parent": 492, "children": [495, 496], "start_point": {"row": 110, "column": 10}, "end_point": {"row": 110, "column": 51}}, {"id": 495, "type": "identifier", "text": "ft_strjoin_free", "parent": 494, "children": [], "start_point": {"row": 110, "column": 10}, "end_point": {"row": 110, "column": 25}}, {"id": 496, "type": "parameter_list", "text": "(char *s1, char const *s2)", "parent": 494, "children": [497, 502], "start_point": {"row": 110, "column": 25}, "end_point": {"row": 110, "column": 51}}, {"id": 497, "type": "parameter_declaration", "text": "char *s1", "parent": 496, "children": [498, 499], "start_point": {"row": 110, "column": 26}, "end_point": {"row": 110, "column": 34}}, {"id": 498, "type": "primitive_type", "text": "char", "parent": 497, "children": [], "start_point": {"row": 110, "column": 26}, "end_point": {"row": 110, "column": 30}}, {"id": 499, "type": "pointer_declarator", "text": "*s1", "parent": 497, "children": [500, 501], "start_point": {"row": 110, "column": 31}, "end_point": {"row": 110, "column": 34}}, {"id": 500, "type": "*", "text": "*", "parent": 499, "children": [], "start_point": {"row": 110, "column": 31}, "end_point": {"row": 110, "column": 32}}, {"id": 501, "type": "identifier", "text": "s1", "parent": 499, "children": [], "start_point": {"row": 110, "column": 32}, "end_point": {"row": 110, "column": 34}}, {"id": 502, "type": "parameter_declaration", "text": "char const *s2", "parent": 496, "children": [503, 504], "start_point": {"row": 110, "column": 36}, "end_point": {"row": 110, "column": 50}}, {"id": 503, "type": "primitive_type", "text": "char", "parent": 502, "children": [], "start_point": {"row": 110, "column": 36}, "end_point": {"row": 110, "column": 40}}, {"id": 504, "type": "pointer_declarator", "text": "*s2", "parent": 502, "children": [505, 506], "start_point": {"row": 110, "column": 47}, "end_point": {"row": 110, "column": 50}}, {"id": 505, "type": "*", "text": "*", "parent": 504, "children": [], "start_point": {"row": 110, "column": 47}, "end_point": {"row": 110, "column": 48}}, {"id": 506, "type": "identifier", "text": "s2", "parent": 504, "children": [], "start_point": {"row": 110, "column": 48}, "end_point": {"row": 110, "column": 50}}, {"id": 507, "type": "declaration", "text": "char\t\t\t\t\t*ft_strsub(char const *s, unsigned int start, \\\n\t\t\t\t\t\t\tsize_t len);", "parent": 0, "children": [508, 509], "start_point": {"row": 112, "column": 0}, "end_point": {"row": 113, "column": 19}}, {"id": 508, "type": "primitive_type", "text": "char", "parent": 507, "children": [], "start_point": {"row": 112, "column": 0}, "end_point": {"row": 112, "column": 4}}, {"id": 509, "type": "pointer_declarator", "text": "*ft_strsub(char const *s, unsigned int start, \\\n\t\t\t\t\t\t\tsize_t len)", "parent": 507, "children": [510, 511], "start_point": {"row": 112, "column": 9}, "end_point": {"row": 113, "column": 18}}, {"id": 510, "type": "*", "text": "*", "parent": 509, "children": [], "start_point": {"row": 112, "column": 9}, "end_point": {"row": 112, "column": 10}}, {"id": 511, "type": "function_declarator", "text": "ft_strsub(char const *s, unsigned int start, \\\n\t\t\t\t\t\t\tsize_t len)", "parent": 509, "children": [512, 513], "start_point": {"row": 112, "column": 10}, "end_point": {"row": 113, "column": 18}}, {"id": 512, "type": "identifier", "text": "ft_strsub", "parent": 511, "children": [], "start_point": {"row": 112, "column": 10}, "end_point": {"row": 112, "column": 19}}, {"id": 513, "type": "parameter_list", "text": "(char const *s, unsigned int start, \\\n\t\t\t\t\t\t\tsize_t len)", "parent": 511, "children": [514, 519, 524], "start_point": {"row": 112, "column": 19}, "end_point": {"row": 113, "column": 18}}, {"id": 514, "type": "parameter_declaration", "text": "char const *s", "parent": 513, "children": [515, 516], "start_point": {"row": 112, "column": 20}, "end_point": {"row": 112, "column": 33}}, {"id": 515, "type": "primitive_type", "text": "char", "parent": 514, "children": [], "start_point": {"row": 112, "column": 20}, "end_point": {"row": 112, "column": 24}}, {"id": 516, "type": "pointer_declarator", "text": "*s", "parent": 514, "children": [517, 518], "start_point": {"row": 112, "column": 31}, "end_point": {"row": 112, "column": 33}}, {"id": 517, "type": "*", "text": "*", "parent": 516, "children": [], "start_point": {"row": 112, "column": 31}, "end_point": {"row": 112, "column": 32}}, {"id": 518, "type": "identifier", "text": "s", "parent": 516, "children": [], "start_point": {"row": 112, "column": 32}, "end_point": {"row": 112, "column": 33}}, {"id": 519, "type": "parameter_declaration", "text": "unsigned int start", "parent": 513, "children": [520, 523], "start_point": {"row": 112, "column": 35}, "end_point": {"row": 112, "column": 53}}, {"id": 520, "type": "sized_type_specifier", "text": "unsigned int", "parent": 519, "children": [521, 522], "start_point": {"row": 112, "column": 35}, "end_point": {"row": 112, "column": 47}}, {"id": 521, "type": "unsigned", "text": "unsigned", "parent": 520, "children": [], "start_point": {"row": 112, "column": 35}, "end_point": {"row": 112, "column": 43}}, {"id": 522, "type": "primitive_type", "text": "int", "parent": 520, "children": [], "start_point": {"row": 112, "column": 44}, "end_point": {"row": 112, "column": 47}}, {"id": 523, "type": "identifier", "text": "start", "parent": 519, "children": [], "start_point": {"row": 112, "column": 48}, "end_point": {"row": 112, "column": 53}}, {"id": 524, "type": "parameter_declaration", "text": "size_t len", "parent": 513, "children": [525, 526], "start_point": {"row": 113, "column": 7}, "end_point": {"row": 113, "column": 17}}, {"id": 525, "type": "primitive_type", "text": "size_t", "parent": 524, "children": [], "start_point": {"row": 113, "column": 7}, "end_point": {"row": 113, "column": 13}}, {"id": 526, "type": "identifier", "text": "len", "parent": 524, "children": [], "start_point": {"row": 113, "column": 14}, "end_point": {"row": 113, "column": 17}}, {"id": 527, "type": "declaration", "text": "char\t\t\t\t\t**ft_strsplit(char const *s, char c);", "parent": 0, "children": [528, 529], "start_point": {"row": 114, "column": 0}, "end_point": {"row": 114, "column": 46}}, {"id": 528, "type": "primitive_type", "text": "char", "parent": 527, "children": [], "start_point": {"row": 114, "column": 0}, "end_point": {"row": 114, "column": 4}}, {"id": 529, "type": "pointer_declarator", "text": "**ft_strsplit(char const *s, char c)", "parent": 527, "children": [530, 531], "start_point": {"row": 114, "column": 9}, "end_point": {"row": 114, "column": 45}}, {"id": 530, "type": "*", "text": "*", "parent": 529, "children": [], "start_point": {"row": 114, "column": 9}, "end_point": {"row": 114, "column": 10}}, {"id": 531, "type": "pointer_declarator", "text": "*ft_strsplit(char const *s, char c)", "parent": 529, "children": [532, 533], "start_point": {"row": 114, "column": 10}, "end_point": {"row": 114, "column": 45}}, {"id": 532, "type": "*", "text": "*", "parent": 531, "children": [], "start_point": {"row": 114, "column": 10}, "end_point": {"row": 114, "column": 11}}, {"id": 533, "type": "function_declarator", "text": "ft_strsplit(char const *s, char c)", "parent": 531, "children": [534, 535], "start_point": {"row": 114, "column": 11}, "end_point": {"row": 114, "column": 45}}, {"id": 534, "type": "identifier", "text": "ft_strsplit", "parent": 533, "children": [], "start_point": {"row": 114, "column": 11}, "end_point": {"row": 114, "column": 22}}, {"id": 535, "type": "parameter_list", "text": "(char const *s, char c)", "parent": 533, "children": [536, 541], "start_point": {"row": 114, "column": 22}, "end_point": {"row": 114, "column": 45}}, {"id": 536, "type": "parameter_declaration", "text": "char const *s", "parent": 535, "children": [537, 538], "start_point": {"row": 114, "column": 23}, "end_point": {"row": 114, "column": 36}}, {"id": 537, "type": "primitive_type", "text": "char", "parent": 536, "children": [], "start_point": {"row": 114, "column": 23}, "end_point": {"row": 114, "column": 27}}, {"id": 538, "type": "pointer_declarator", "text": "*s", "parent": 536, "children": [539, 540], "start_point": {"row": 114, "column": 34}, "end_point": {"row": 114, "column": 36}}, {"id": 539, "type": "*", "text": "*", "parent": 538, "children": [], "start_point": {"row": 114, "column": 34}, "end_point": {"row": 114, "column": 35}}, {"id": 540, "type": "identifier", "text": "s", "parent": 538, "children": [], "start_point": {"row": 114, "column": 35}, "end_point": {"row": 114, "column": 36}}, {"id": 541, "type": "parameter_declaration", "text": "char c", "parent": 535, "children": [542, 543], "start_point": {"row": 114, "column": 38}, "end_point": {"row": 114, "column": 44}}, {"id": 542, "type": "primitive_type", "text": "char", "parent": 541, "children": [], "start_point": {"row": 114, "column": 38}, "end_point": {"row": 114, "column": 42}}, {"id": 543, "type": "identifier", "text": "c", "parent": 541, "children": [], "start_point": {"row": 114, "column": 43}, "end_point": {"row": 114, "column": 44}}, {"id": 544, "type": "declaration", "text": "char\t\t\t\t\t*ft_strchr(char const *s, int c);", "parent": 0, "children": [545, 546], "start_point": {"row": 116, "column": 0}, "end_point": {"row": 116, "column": 42}}, {"id": 545, "type": "primitive_type", "text": "char", "parent": 544, "children": [], "start_point": {"row": 116, "column": 0}, "end_point": {"row": 116, "column": 4}}, {"id": 546, "type": "pointer_declarator", "text": "*ft_strchr(char const *s, int c)", "parent": 544, "children": [547, 548], "start_point": {"row": 116, "column": 9}, "end_point": {"row": 116, "column": 41}}, {"id": 547, "type": "*", "text": "*", "parent": 546, "children": [], "start_point": {"row": 116, "column": 9}, "end_point": {"row": 116, "column": 10}}, {"id": 548, "type": "function_declarator", "text": "ft_strchr(char const *s, int c)", "parent": 546, "children": [549, 550], "start_point": {"row": 116, "column": 10}, "end_point": {"row": 116, "column": 41}}, {"id": 549, "type": "identifier", "text": "ft_strchr", "parent": 548, "children": [], "start_point": {"row": 116, "column": 10}, "end_point": {"row": 116, "column": 19}}, {"id": 550, "type": "parameter_list", "text": "(char const *s, int c)", "parent": 548, "children": [551, 556], "start_point": {"row": 116, "column": 19}, "end_point": {"row": 116, "column": 41}}, {"id": 551, "type": "parameter_declaration", "text": "char const *s", "parent": 550, "children": [552, 553], "start_point": {"row": 116, "column": 20}, "end_point": {"row": 116, "column": 33}}, {"id": 552, "type": "primitive_type", "text": "char", "parent": 551, "children": [], "start_point": {"row": 116, "column": 20}, "end_point": {"row": 116, "column": 24}}, {"id": 553, "type": "pointer_declarator", "text": "*s", "parent": 551, "children": [554, 555], "start_point": {"row": 116, "column": 31}, "end_point": {"row": 116, "column": 33}}, {"id": 554, "type": "*", "text": "*", "parent": 553, "children": [], "start_point": {"row": 116, "column": 31}, "end_point": {"row": 116, "column": 32}}, {"id": 555, "type": "identifier", "text": "s", "parent": 553, "children": [], "start_point": {"row": 116, "column": 32}, "end_point": {"row": 116, "column": 33}}, {"id": 556, "type": "parameter_declaration", "text": "int c", "parent": 550, "children": [557, 558], "start_point": {"row": 116, "column": 35}, "end_point": {"row": 116, "column": 40}}, {"id": 557, "type": "primitive_type", "text": "int", "parent": 556, "children": [], "start_point": {"row": 116, "column": 35}, "end_point": {"row": 116, "column": 38}}, {"id": 558, "type": "identifier", "text": "c", "parent": 556, "children": [], "start_point": {"row": 116, "column": 39}, "end_point": {"row": 116, "column": 40}}, {"id": 559, "type": "declaration", "text": "char\t\t\t\t\t*ft_strrchr(char const *s, int c);", "parent": 0, "children": [560, 561], "start_point": {"row": 117, "column": 0}, "end_point": {"row": 117, "column": 43}}, {"id": 560, "type": "primitive_type", "text": "char", "parent": 559, "children": [], "start_point": {"row": 117, "column": 0}, "end_point": {"row": 117, "column": 4}}, {"id": 561, "type": "pointer_declarator", "text": "*ft_strrchr(char const *s, int c)", "parent": 559, "children": [562, 563], "start_point": {"row": 117, "column": 9}, "end_point": {"row": 117, "column": 42}}, {"id": 562, "type": "*", "text": "*", "parent": 561, "children": [], "start_point": {"row": 117, "column": 9}, "end_point": {"row": 117, "column": 10}}, {"id": 563, "type": "function_declarator", "text": "ft_strrchr(char const *s, int c)", "parent": 561, "children": [564, 565], "start_point": {"row": 117, "column": 10}, "end_point": {"row": 117, "column": 42}}, {"id": 564, "type": "identifier", "text": "ft_strrchr", "parent": 563, "children": [], "start_point": {"row": 117, "column": 10}, "end_point": {"row": 117, "column": 20}}, {"id": 565, "type": "parameter_list", "text": "(char const *s, int c)", "parent": 563, "children": [566, 571], "start_point": {"row": 117, "column": 20}, "end_point": {"row": 117, "column": 42}}, {"id": 566, "type": "parameter_declaration", "text": "char const *s", "parent": 565, "children": [567, 568], "start_point": {"row": 117, "column": 21}, "end_point": {"row": 117, "column": 34}}, {"id": 567, "type": "primitive_type", "text": "char", "parent": 566, "children": [], "start_point": {"row": 117, "column": 21}, "end_point": {"row": 117, "column": 25}}, {"id": 568, "type": "pointer_declarator", "text": "*s", "parent": 566, "children": [569, 570], "start_point": {"row": 117, "column": 32}, "end_point": {"row": 117, "column": 34}}, {"id": 569, "type": "*", "text": "*", "parent": 568, "children": [], "start_point": {"row": 117, "column": 32}, "end_point": {"row": 117, "column": 33}}, {"id": 570, "type": "identifier", "text": "s", "parent": 568, "children": [], "start_point": {"row": 117, "column": 33}, "end_point": {"row": 117, "column": 34}}, {"id": 571, "type": "parameter_declaration", "text": "int c", "parent": 565, "children": [572, 573], "start_point": {"row": 117, "column": 36}, "end_point": {"row": 117, "column": 41}}, {"id": 572, "type": "primitive_type", "text": "int", "parent": 571, "children": [], "start_point": {"row": 117, "column": 36}, "end_point": {"row": 117, "column": 39}}, {"id": 573, "type": "identifier", "text": "c", "parent": 571, "children": [], "start_point": {"row": 117, "column": 40}, "end_point": {"row": 117, "column": 41}}, {"id": 574, "type": "declaration", "text": "char\t\t\t\t\t*ft_strstr(char const *s1, char const *s2);", "parent": 0, "children": [575, 576], "start_point": {"row": 118, "column": 0}, "end_point": {"row": 118, "column": 52}}, {"id": 575, "type": "primitive_type", "text": "char", "parent": 574, "children": [], "start_point": {"row": 118, "column": 0}, "end_point": {"row": 118, "column": 4}}, {"id": 576, "type": "pointer_declarator", "text": "*ft_strstr(char const *s1, char const *s2)", "parent": 574, "children": [577, 578], "start_point": {"row": 118, "column": 9}, "end_point": {"row": 118, "column": 51}}, {"id": 577, "type": "*", "text": "*", "parent": 576, "children": [], "start_point": {"row": 118, "column": 9}, "end_point": {"row": 118, "column": 10}}, {"id": 578, "type": "function_declarator", "text": "ft_strstr(char const *s1, char const *s2)", "parent": 576, "children": [579, 580], "start_point": {"row": 118, "column": 10}, "end_point": {"row": 118, "column": 51}}, {"id": 579, "type": "identifier", "text": "ft_strstr", "parent": 578, "children": [], "start_point": {"row": 118, "column": 10}, "end_point": {"row": 118, "column": 19}}, {"id": 580, "type": "parameter_list", "text": "(char const *s1, char const *s2)", "parent": 578, "children": [581, 586], "start_point": {"row": 118, "column": 19}, "end_point": {"row": 118, "column": 51}}, {"id": 581, "type": "parameter_declaration", "text": "char const *s1", "parent": 580, "children": [582, 583], "start_point": {"row": 118, "column": 20}, "end_point": {"row": 118, "column": 34}}, {"id": 582, "type": "primitive_type", "text": "char", "parent": 581, "children": [], "start_point": {"row": 118, "column": 20}, "end_point": {"row": 118, "column": 24}}, {"id": 583, "type": "pointer_declarator", "text": "*s1", "parent": 581, "children": [584, 585], "start_point": {"row": 118, "column": 31}, "end_point": {"row": 118, "column": 34}}, {"id": 584, "type": "*", "text": "*", "parent": 583, "children": [], "start_point": {"row": 118, "column": 31}, "end_point": {"row": 118, "column": 32}}, {"id": 585, "type": "identifier", "text": "s1", "parent": 583, "children": [], "start_point": {"row": 118, "column": 32}, "end_point": {"row": 118, "column": 34}}, {"id": 586, "type": "parameter_declaration", "text": "char const *s2", "parent": 580, "children": [587, 588], "start_point": {"row": 118, "column": 36}, "end_point": {"row": 118, "column": 50}}, {"id": 587, "type": "primitive_type", "text": "char", "parent": 586, "children": [], "start_point": {"row": 118, "column": 36}, "end_point": {"row": 118, "column": 40}}, {"id": 588, "type": "pointer_declarator", "text": "*s2", "parent": 586, "children": [589, 590], "start_point": {"row": 118, "column": 47}, "end_point": {"row": 118, "column": 50}}, {"id": 589, "type": "*", "text": "*", "parent": 588, "children": [], "start_point": {"row": 118, "column": 47}, "end_point": {"row": 118, "column": 48}}, {"id": 590, "type": "identifier", "text": "s2", "parent": 588, "children": [], "start_point": {"row": 118, "column": 48}, "end_point": {"row": 118, "column": 50}}, {"id": 591, "type": "declaration", "text": "char\t\t\t\t\t*ft_strnstr(char const *s1, char const *s2, size_t n);", "parent": 0, "children": [592, 593], "start_point": {"row": 119, "column": 0}, "end_point": {"row": 119, "column": 63}}, {"id": 592, "type": "primitive_type", "text": "char", "parent": 591, "children": [], "start_point": {"row": 119, "column": 0}, "end_point": {"row": 119, "column": 4}}, {"id": 593, "type": "pointer_declarator", "text": "*ft_strnstr(char const *s1, char const *s2, size_t n)", "parent": 591, "children": [594, 595], "start_point": {"row": 119, "column": 9}, "end_point": {"row": 119, "column": 62}}, {"id": 594, "type": "*", "text": "*", "parent": 593, "children": [], "start_point": {"row": 119, "column": 9}, "end_point": {"row": 119, "column": 10}}, {"id": 595, "type": "function_declarator", "text": "ft_strnstr(char const *s1, char const *s2, size_t n)", "parent": 593, "children": [596, 597], "start_point": {"row": 119, "column": 10}, "end_point": {"row": 119, "column": 62}}, {"id": 596, "type": "identifier", "text": "ft_strnstr", "parent": 595, "children": [], "start_point": {"row": 119, "column": 10}, "end_point": {"row": 119, "column": 20}}, {"id": 597, "type": "parameter_list", "text": "(char const *s1, char const *s2, size_t n)", "parent": 595, "children": [598, 603, 608], "start_point": {"row": 119, "column": 20}, "end_point": {"row": 119, "column": 62}}, {"id": 598, "type": "parameter_declaration", "text": "char const *s1", "parent": 597, "children": [599, 600], "start_point": {"row": 119, "column": 21}, "end_point": {"row": 119, "column": 35}}, {"id": 599, "type": "primitive_type", "text": "char", "parent": 598, "children": [], "start_point": {"row": 119, "column": 21}, "end_point": {"row": 119, "column": 25}}, {"id": 600, "type": "pointer_declarator", "text": "*s1", "parent": 598, "children": [601, 602], "start_point": {"row": 119, "column": 32}, "end_point": {"row": 119, "column": 35}}, {"id": 601, "type": "*", "text": "*", "parent": 600, "children": [], "start_point": {"row": 119, "column": 32}, "end_point": {"row": 119, "column": 33}}, {"id": 602, "type": "identifier", "text": "s1", "parent": 600, "children": [], "start_point": {"row": 119, "column": 33}, "end_point": {"row": 119, "column": 35}}, {"id": 603, "type": "parameter_declaration", "text": "char const *s2", "parent": 597, "children": [604, 605], "start_point": {"row": 119, "column": 37}, "end_point": {"row": 119, "column": 51}}, {"id": 604, "type": "primitive_type", "text": "char", "parent": 603, "children": [], "start_point": {"row": 119, "column": 37}, "end_point": {"row": 119, "column": 41}}, {"id": 605, "type": "pointer_declarator", "text": "*s2", "parent": 603, "children": [606, 607], "start_point": {"row": 119, "column": 48}, "end_point": {"row": 119, "column": 51}}, {"id": 606, "type": "*", "text": "*", "parent": 605, "children": [], "start_point": {"row": 119, "column": 48}, "end_point": {"row": 119, "column": 49}}, {"id": 607, "type": "identifier", "text": "s2", "parent": 605, "children": [], "start_point": {"row": 119, "column": 49}, "end_point": {"row": 119, "column": 51}}, {"id": 608, "type": "parameter_declaration", "text": "size_t n", "parent": 597, "children": [609, 610], "start_point": {"row": 119, "column": 53}, "end_point": {"row": 119, "column": 61}}, {"id": 609, "type": "primitive_type", "text": "size_t", "parent": 608, "children": [], "start_point": {"row": 119, "column": 53}, "end_point": {"row": 119, "column": 59}}, {"id": 610, "type": "identifier", "text": "n", "parent": 608, "children": [], "start_point": {"row": 119, "column": 60}, "end_point": {"row": 119, "column": 61}}, {"id": 611, "type": "declaration", "text": "void\t\t\t\t\tft_striter(char *s, void (*f)(char *));", "parent": 0, "children": [612, 613], "start_point": {"row": 121, "column": 0}, "end_point": {"row": 121, "column": 48}}, {"id": 612, "type": "primitive_type", "text": "void", "parent": 611, "children": [], "start_point": {"row": 121, "column": 0}, "end_point": {"row": 121, "column": 4}}, {"id": 613, "type": "function_declarator", "text": "ft_striter(char *s, void (*f)(char *))", "parent": 611, "children": [614, 615], "start_point": {"row": 121, "column": 9}, "end_point": {"row": 121, "column": 47}}, {"id": 614, "type": "identifier", "text": "ft_striter", "parent": 613, "children": [], "start_point": {"row": 121, "column": 9}, "end_point": {"row": 121, "column": 19}}, {"id": 615, "type": "parameter_list", "text": "(char *s, void (*f)(char *))", "parent": 613, "children": [616, 621], "start_point": {"row": 121, "column": 19}, "end_point": {"row": 121, "column": 47}}, {"id": 616, "type": "parameter_declaration", "text": "char *s", "parent": 615, "children": [617, 618], "start_point": {"row": 121, "column": 20}, "end_point": {"row": 121, "column": 27}}, {"id": 617, "type": "primitive_type", "text": "char", "parent": 616, "children": [], "start_point": {"row": 121, "column": 20}, "end_point": {"row": 121, "column": 24}}, {"id": 618, "type": "pointer_declarator", "text": "*s", "parent": 616, "children": [619, 620], "start_point": {"row": 121, "column": 25}, "end_point": {"row": 121, "column": 27}}, {"id": 619, "type": "*", "text": "*", "parent": 618, "children": [], "start_point": {"row": 121, "column": 25}, "end_point": {"row": 121, "column": 26}}, {"id": 620, "type": "identifier", "text": "s", "parent": 618, "children": [], "start_point": {"row": 121, "column": 26}, "end_point": {"row": 121, "column": 27}}, {"id": 621, "type": "parameter_declaration", "text": "void (*f)(char *)", "parent": 615, "children": [622, 623], "start_point": {"row": 121, "column": 29}, "end_point": {"row": 121, "column": 46}}, {"id": 622, "type": "primitive_type", "text": "void", "parent": 621, "children": [], "start_point": {"row": 121, "column": 29}, "end_point": {"row": 121, "column": 33}}, {"id": 623, "type": "function_declarator", "text": "(*f)(char *)", "parent": 621, "children": [624, 628], "start_point": {"row": 121, "column": 34}, "end_point": {"row": 121, "column": 46}}, {"id": 624, "type": "parenthesized_declarator", "text": "(*f)", "parent": 623, "children": [625], "start_point": {"row": 121, "column": 34}, "end_point": {"row": 121, "column": 38}}, {"id": 625, "type": "pointer_declarator", "text": "*f", "parent": 624, "children": [626, 627], "start_point": {"row": 121, "column": 35}, "end_point": {"row": 121, "column": 37}}, {"id": 626, "type": "*", "text": "*", "parent": 625, "children": [], "start_point": {"row": 121, "column": 35}, "end_point": {"row": 121, "column": 36}}, {"id": 627, "type": "identifier", "text": "f", "parent": 625, "children": [], "start_point": {"row": 121, "column": 36}, "end_point": {"row": 121, "column": 37}}, {"id": 628, "type": "parameter_list", "text": "(char *)", "parent": 623, "children": [629], "start_point": {"row": 121, "column": 38}, "end_point": {"row": 121, "column": 46}}, {"id": 629, "type": "parameter_declaration", "text": "char *", "parent": 628, "children": [630, 631], "start_point": {"row": 121, "column": 39}, "end_point": {"row": 121, "column": 45}}, {"id": 630, "type": "primitive_type", "text": "char", "parent": 629, "children": [], "start_point": {"row": 121, "column": 39}, "end_point": {"row": 121, "column": 43}}, {"id": 631, "type": "abstract_pointer_declarator", "text": "*", "parent": 629, "children": [632], "start_point": {"row": 121, "column": 44}, "end_point": {"row": 121, "column": 45}}, {"id": 632, "type": "*", "text": "*", "parent": 631, "children": [], "start_point": {"row": 121, "column": 44}, "end_point": {"row": 121, "column": 45}}, {"id": 633, "type": "declaration", "text": "void\t\t\t\t\tft_striteri(char *s, void (*f)(unsigned int, char *));", "parent": 0, "children": [634, 635], "start_point": {"row": 122, "column": 0}, "end_point": {"row": 122, "column": 63}}, {"id": 634, "type": "primitive_type", "text": "void", "parent": 633, "children": [], "start_point": {"row": 122, "column": 0}, "end_point": {"row": 122, "column": 4}}, {"id": 635, "type": "function_declarator", "text": "ft_striteri(char *s, void (*f)(unsigned int, char *))", "parent": 633, "children": [636, 637], "start_point": {"row": 122, "column": 9}, "end_point": {"row": 122, "column": 62}}, {"id": 636, "type": "identifier", "text": "ft_striteri", "parent": 635, "children": [], "start_point": {"row": 122, "column": 9}, "end_point": {"row": 122, "column": 20}}, {"id": 637, "type": "parameter_list", "text": "(char *s, void (*f)(unsigned int, char *))", "parent": 635, "children": [638, 643], "start_point": {"row": 122, "column": 20}, "end_point": {"row": 122, "column": 62}}, {"id": 638, "type": "parameter_declaration", "text": "char *s", "parent": 637, "children": [639, 640], "start_point": {"row": 122, "column": 21}, "end_point": {"row": 122, "column": 28}}, {"id": 639, "type": "primitive_type", "text": "char", "parent": 638, "children": [], "start_point": {"row": 122, "column": 21}, "end_point": {"row": 122, "column": 25}}, {"id": 640, "type": "pointer_declarator", "text": "*s", "parent": 638, "children": [641, 642], "start_point": {"row": 122, "column": 26}, "end_point": {"row": 122, "column": 28}}, {"id": 641, "type": "*", "text": "*", "parent": 640, "children": [], "start_point": {"row": 122, "column": 26}, "end_point": {"row": 122, "column": 27}}, {"id": 642, "type": "identifier", "text": "s", "parent": 640, "children": [], "start_point": {"row": 122, "column": 27}, "end_point": {"row": 122, "column": 28}}, {"id": 643, "type": "parameter_declaration", "text": "void (*f)(unsigned int, char *)", "parent": 637, "children": [644, 645], "start_point": {"row": 122, "column": 30}, "end_point": {"row": 122, "column": 61}}, {"id": 644, "type": "primitive_type", "text": "void", "parent": 643, "children": [], "start_point": {"row": 122, "column": 30}, "end_point": {"row": 122, "column": 34}}, {"id": 645, "type": "function_declarator", "text": "(*f)(unsigned int, char *)", "parent": 643, "children": [646, 650], "start_point": {"row": 122, "column": 35}, "end_point": {"row": 122, "column": 61}}, {"id": 646, "type": "parenthesized_declarator", "text": "(*f)", "parent": 645, "children": [647], "start_point": {"row": 122, "column": 35}, "end_point": {"row": 122, "column": 39}}, {"id": 647, "type": "pointer_declarator", "text": "*f", "parent": 646, "children": [648, 649], "start_point": {"row": 122, "column": 36}, "end_point": {"row": 122, "column": 38}}, {"id": 648, "type": "*", "text": "*", "parent": 647, "children": [], "start_point": {"row": 122, "column": 36}, "end_point": {"row": 122, "column": 37}}, {"id": 649, "type": "identifier", "text": "f", "parent": 647, "children": [], "start_point": {"row": 122, "column": 37}, "end_point": {"row": 122, "column": 38}}, {"id": 650, "type": "parameter_list", "text": "(unsigned int, char *)", "parent": 645, "children": [651, 655], "start_point": {"row": 122, "column": 39}, "end_point": {"row": 122, "column": 61}}, {"id": 651, "type": "parameter_declaration", "text": "unsigned int", "parent": 650, "children": [652], "start_point": {"row": 122, "column": 40}, "end_point": {"row": 122, "column": 52}}, {"id": 652, "type": "sized_type_specifier", "text": "unsigned int", "parent": 651, "children": [653, 654], "start_point": {"row": 122, "column": 40}, "end_point": {"row": 122, "column": 52}}, {"id": 653, "type": "unsigned", "text": "unsigned", "parent": 652, "children": [], "start_point": {"row": 122, "column": 40}, "end_point": {"row": 122, "column": 48}}, {"id": 654, "type": "primitive_type", "text": "int", "parent": 652, "children": [], "start_point": {"row": 122, "column": 49}, "end_point": {"row": 122, "column": 52}}, {"id": 655, "type": "parameter_declaration", "text": "char *", "parent": 650, "children": [656, 657], "start_point": {"row": 122, "column": 54}, "end_point": {"row": 122, "column": 60}}, {"id": 656, "type": "primitive_type", "text": "char", "parent": 655, "children": [], "start_point": {"row": 122, "column": 54}, "end_point": {"row": 122, "column": 58}}, {"id": 657, "type": "abstract_pointer_declarator", "text": "*", "parent": 655, "children": [658], "start_point": {"row": 122, "column": 59}, "end_point": {"row": 122, "column": 60}}, {"id": 658, "type": "*", "text": "*", "parent": 657, "children": [], "start_point": {"row": 122, "column": 59}, "end_point": {"row": 122, "column": 60}}, {"id": 659, "type": "declaration", "text": "char\t\t\t\t\t*ft_strmap(char const *s, char (*f)(char));", "parent": 0, "children": [660, 661], "start_point": {"row": 123, "column": 0}, "end_point": {"row": 123, "column": 52}}, {"id": 660, "type": "primitive_type", "text": "char", "parent": 659, "children": [], "start_point": {"row": 123, "column": 0}, "end_point": {"row": 123, "column": 4}}, {"id": 661, "type": "pointer_declarator", "text": "*ft_strmap(char const *s, char (*f)(char))", "parent": 659, "children": [662, 663], "start_point": {"row": 123, "column": 9}, "end_point": {"row": 123, "column": 51}}, {"id": 662, "type": "*", "text": "*", "parent": 661, "children": [], "start_point": {"row": 123, "column": 9}, "end_point": {"row": 123, "column": 10}}, {"id": 663, "type": "function_declarator", "text": "ft_strmap(char const *s, char (*f)(char))", "parent": 661, "children": [664, 665], "start_point": {"row": 123, "column": 10}, "end_point": {"row": 123, "column": 51}}, {"id": 664, "type": "identifier", "text": "ft_strmap", "parent": 663, "children": [], "start_point": {"row": 123, "column": 10}, "end_point": {"row": 123, "column": 19}}, {"id": 665, "type": "parameter_list", "text": "(char const *s, char (*f)(char))", "parent": 663, "children": [666, 671], "start_point": {"row": 123, "column": 19}, "end_point": {"row": 123, "column": 51}}, {"id": 666, "type": "parameter_declaration", "text": "char const *s", "parent": 665, "children": [667, 668], "start_point": {"row": 123, "column": 20}, "end_point": {"row": 123, "column": 33}}, {"id": 667, "type": "primitive_type", "text": "char", "parent": 666, "children": [], "start_point": {"row": 123, "column": 20}, "end_point": {"row": 123, "column": 24}}, {"id": 668, "type": "pointer_declarator", "text": "*s", "parent": 666, "children": [669, 670], "start_point": {"row": 123, "column": 31}, "end_point": {"row": 123, "column": 33}}, {"id": 669, "type": "*", "text": "*", "parent": 668, "children": [], "start_point": {"row": 123, "column": 31}, "end_point": {"row": 123, "column": 32}}, {"id": 670, "type": "identifier", "text": "s", "parent": 668, "children": [], "start_point": {"row": 123, "column": 32}, "end_point": {"row": 123, "column": 33}}, {"id": 671, "type": "parameter_declaration", "text": "char (*f)(char)", "parent": 665, "children": [672, 673], "start_point": {"row": 123, "column": 35}, "end_point": {"row": 123, "column": 50}}, {"id": 672, "type": "primitive_type", "text": "char", "parent": 671, "children": [], "start_point": {"row": 123, "column": 35}, "end_point": {"row": 123, "column": 39}}, {"id": 673, "type": "function_declarator", "text": "(*f)(char)", "parent": 671, "children": [674, 678], "start_point": {"row": 123, "column": 40}, "end_point": {"row": 123, "column": 50}}, {"id": 674, "type": "parenthesized_declarator", "text": "(*f)", "parent": 673, "children": [675], "start_point": {"row": 123, "column": 40}, "end_point": {"row": 123, "column": 44}}, {"id": 675, "type": "pointer_declarator", "text": "*f", "parent": 674, "children": [676, 677], "start_point": {"row": 123, "column": 41}, "end_point": {"row": 123, "column": 43}}, {"id": 676, "type": "*", "text": "*", "parent": 675, "children": [], "start_point": {"row": 123, "column": 41}, "end_point": {"row": 123, "column": 42}}, {"id": 677, "type": "identifier", "text": "f", "parent": 675, "children": [], "start_point": {"row": 123, "column": 42}, "end_point": {"row": 123, "column": 43}}, {"id": 678, "type": "parameter_list", "text": "(char)", "parent": 673, "children": [679], "start_point": {"row": 123, "column": 44}, "end_point": {"row": 123, "column": 50}}, {"id": 679, "type": "parameter_declaration", "text": "char", "parent": 678, "children": [680], "start_point": {"row": 123, "column": 45}, "end_point": {"row": 123, "column": 49}}, {"id": 680, "type": "primitive_type", "text": "char", "parent": 679, "children": [], "start_point": {"row": 123, "column": 45}, "end_point": {"row": 123, "column": 49}}, {"id": 681, "type": "declaration", "text": "char\t\t\t\t\t*ft_strmapi(char const *s, \\\n\t\t\t\t\t\t\tchar (*f)(unsigned int, char));", "parent": 0, "children": [682, 683], "start_point": {"row": 124, "column": 0}, "end_point": {"row": 125, "column": 38}}, {"id": 682, "type": "primitive_type", "text": "char", "parent": 681, "children": [], "start_point": {"row": 124, "column": 0}, "end_point": {"row": 124, "column": 4}}, {"id": 683, "type": "pointer_declarator", "text": "*ft_strmapi(char const *s, \\\n\t\t\t\t\t\t\tchar (*f)(unsigned int, char))", "parent": 681, "children": [684, 685], "start_point": {"row": 124, "column": 9}, "end_point": {"row": 125, "column": 37}}, {"id": 684, "type": "*", "text": "*", "parent": 683, "children": [], "start_point": {"row": 124, "column": 9}, "end_point": {"row": 124, "column": 10}}, {"id": 685, "type": "function_declarator", "text": "ft_strmapi(char const *s, \\\n\t\t\t\t\t\t\tchar (*f)(unsigned int, char))", "parent": 683, "children": [686, 687], "start_point": {"row": 124, "column": 10}, "end_point": {"row": 125, "column": 37}}, {"id": 686, "type": "identifier", "text": "ft_strmapi", "parent": 685, "children": [], "start_point": {"row": 124, "column": 10}, "end_point": {"row": 124, "column": 20}}, {"id": 687, "type": "parameter_list", "text": "(char const *s, \\\n\t\t\t\t\t\t\tchar (*f)(unsigned int, char))", "parent": 685, "children": [688, 693], "start_point": {"row": 124, "column": 20}, "end_point": {"row": 125, "column": 37}}, {"id": 688, "type": "parameter_declaration", "text": "char const *s", "parent": 687, "children": [689, 690], "start_point": {"row": 124, "column": 21}, "end_point": {"row": 124, "column": 34}}, {"id": 689, "type": "primitive_type", "text": "char", "parent": 688, "children": [], "start_point": {"row": 124, "column": 21}, "end_point": {"row": 124, "column": 25}}, {"id": 690, "type": "pointer_declarator", "text": "*s", "parent": 688, "children": [691, 692], "start_point": {"row": 124, "column": 32}, "end_point": {"row": 124, "column": 34}}, {"id": 691, "type": "*", "text": "*", "parent": 690, "children": [], "start_point": {"row": 124, "column": 32}, "end_point": {"row": 124, "column": 33}}, {"id": 692, "type": "identifier", "text": "s", "parent": 690, "children": [], "start_point": {"row": 124, "column": 33}, "end_point": {"row": 124, "column": 34}}, {"id": 693, "type": "parameter_declaration", "text": "char (*f)(unsigned int, char)", "parent": 687, "children": [694, 695], "start_point": {"row": 125, "column": 7}, "end_point": {"row": 125, "column": 36}}, {"id": 694, "type": "primitive_type", "text": "char", "parent": 693, "children": [], "start_point": {"row": 125, "column": 7}, "end_point": {"row": 125, "column": 11}}, {"id": 695, "type": "function_declarator", "text": "(*f)(unsigned int, char)", "parent": 693, "children": [696, 700], "start_point": {"row": 125, "column": 12}, "end_point": {"row": 125, "column": 36}}, {"id": 696, "type": "parenthesized_declarator", "text": "(*f)", "parent": 695, "children": [697], "start_point": {"row": 125, "column": 12}, "end_point": {"row": 125, "column": 16}}, {"id": 697, "type": "pointer_declarator", "text": "*f", "parent": 696, "children": [698, 699], "start_point": {"row": 125, "column": 13}, "end_point": {"row": 125, "column": 15}}, {"id": 698, "type": "*", "text": "*", "parent": 697, "children": [], "start_point": {"row": 125, "column": 13}, "end_point": {"row": 125, "column": 14}}, {"id": 699, "type": "identifier", "text": "f", "parent": 697, "children": [], "start_point": {"row": 125, "column": 14}, "end_point": {"row": 125, "column": 15}}, {"id": 700, "type": "parameter_list", "text": "(unsigned int, char)", "parent": 695, "children": [701, 705], "start_point": {"row": 125, "column": 16}, "end_point": {"row": 125, "column": 36}}, {"id": 701, "type": "parameter_declaration", "text": "unsigned int", "parent": 700, "children": [702], "start_point": {"row": 125, "column": 17}, "end_point": {"row": 125, "column": 29}}, {"id": 702, "type": "sized_type_specifier", "text": "unsigned int", "parent": 701, "children": [703, 704], "start_point": {"row": 125, "column": 17}, "end_point": {"row": 125, "column": 29}}, {"id": 703, "type": "unsigned", "text": "unsigned", "parent": 702, "children": [], "start_point": {"row": 125, "column": 17}, "end_point": {"row": 125, "column": 25}}, {"id": 704, "type": "primitive_type", "text": "int", "parent": 702, "children": [], "start_point": {"row": 125, "column": 26}, "end_point": {"row": 125, "column": 29}}, {"id": 705, "type": "parameter_declaration", "text": "char", "parent": 700, "children": [706], "start_point": {"row": 125, "column": 31}, "end_point": {"row": 125, "column": 35}}, {"id": 706, "type": "primitive_type", "text": "char", "parent": 705, "children": [], "start_point": {"row": 125, "column": 31}, "end_point": {"row": 125, "column": 35}}, {"id": 707, "type": "declaration", "text": "char\t\t\t\t\t*ft_strtrim(char const *s);", "parent": 0, "children": [708, 709], "start_point": {"row": 127, "column": 0}, "end_point": {"row": 127, "column": 36}}, {"id": 708, "type": "primitive_type", "text": "char", "parent": 707, "children": [], "start_point": {"row": 127, "column": 0}, "end_point": {"row": 127, "column": 4}}, {"id": 709, "type": "pointer_declarator", "text": "*ft_strtrim(char const *s)", "parent": 707, "children": [710, 711], "start_point": {"row": 127, "column": 9}, "end_point": {"row": 127, "column": 35}}, {"id": 710, "type": "*", "text": "*", "parent": 709, "children": [], "start_point": {"row": 127, "column": 9}, "end_point": {"row": 127, "column": 10}}, {"id": 711, "type": "function_declarator", "text": "ft_strtrim(char const *s)", "parent": 709, "children": [712, 713], "start_point": {"row": 127, "column": 10}, "end_point": {"row": 127, "column": 35}}, {"id": 712, "type": "identifier", "text": "ft_strtrim", "parent": 711, "children": [], "start_point": {"row": 127, "column": 10}, "end_point": {"row": 127, "column": 20}}, {"id": 713, "type": "parameter_list", "text": "(char const *s)", "parent": 711, "children": [714], "start_point": {"row": 127, "column": 20}, "end_point": {"row": 127, "column": 35}}, {"id": 714, "type": "parameter_declaration", "text": "char const *s", "parent": 713, "children": [715, 716], "start_point": {"row": 127, "column": 21}, "end_point": {"row": 127, "column": 34}}, {"id": 715, "type": "primitive_type", "text": "char", "parent": 714, "children": [], "start_point": {"row": 127, "column": 21}, "end_point": {"row": 127, "column": 25}}, {"id": 716, "type": "pointer_declarator", "text": "*s", "parent": 714, "children": [717, 718], "start_point": {"row": 127, "column": 32}, "end_point": {"row": 127, "column": 34}}, {"id": 717, "type": "*", "text": "*", "parent": 716, "children": [], "start_point": {"row": 127, "column": 32}, "end_point": {"row": 127, "column": 33}}, {"id": 718, "type": "identifier", "text": "s", "parent": 716, "children": [], "start_point": {"row": 127, "column": 33}, "end_point": {"row": 127, "column": 34}}, {"id": 719, "type": "declaration", "text": "int\t\t\t\t\t\tft_atoi(char const *s);", "parent": 0, "children": [720, 721], "start_point": {"row": 133, "column": 0}, "end_point": {"row": 133, "column": 32}}, {"id": 720, "type": "primitive_type", "text": "int", "parent": 719, "children": [], "start_point": {"row": 133, "column": 0}, "end_point": {"row": 133, "column": 3}}, {"id": 721, "type": "function_declarator", "text": "ft_atoi(char const *s)", "parent": 719, "children": [722, 723], "start_point": {"row": 133, "column": 9}, "end_point": {"row": 133, "column": 31}}, {"id": 722, "type": "identifier", "text": "ft_atoi", "parent": 721, "children": [], "start_point": {"row": 133, "column": 9}, "end_point": {"row": 133, "column": 16}}, {"id": 723, "type": "parameter_list", "text": "(char const *s)", "parent": 721, "children": [724], "start_point": {"row": 133, "column": 16}, "end_point": {"row": 133, "column": 31}}, {"id": 724, "type": "parameter_declaration", "text": "char const *s", "parent": 723, "children": [725, 726], "start_point": {"row": 133, "column": 17}, "end_point": {"row": 133, "column": 30}}, {"id": 725, "type": "primitive_type", "text": "char", "parent": 724, "children": [], "start_point": {"row": 133, "column": 17}, "end_point": {"row": 133, "column": 21}}, {"id": 726, "type": "pointer_declarator", "text": "*s", "parent": 724, "children": [727, 728], "start_point": {"row": 133, "column": 28}, "end_point": {"row": 133, "column": 30}}, {"id": 727, "type": "*", "text": "*", "parent": 726, "children": [], "start_point": {"row": 133, "column": 28}, "end_point": {"row": 133, "column": 29}}, {"id": 728, "type": "identifier", "text": "s", "parent": 726, "children": [], "start_point": {"row": 133, "column": 29}, "end_point": {"row": 133, "column": 30}}, {"id": 729, "type": "declaration", "text": "char\t\t\t\t\t*ft_itoa(t_int n);", "parent": 0, "children": [730, 731], "start_point": {"row": 134, "column": 0}, "end_point": {"row": 134, "column": 27}}, {"id": 730, "type": "primitive_type", "text": "char", "parent": 729, "children": [], "start_point": {"row": 134, "column": 0}, "end_point": {"row": 134, "column": 4}}, {"id": 731, "type": "pointer_declarator", "text": "*ft_itoa(t_int n)", "parent": 729, "children": [732, 733], "start_point": {"row": 134, "column": 9}, "end_point": {"row": 134, "column": 26}}, {"id": 732, "type": "*", "text": "*", "parent": 731, "children": [], "start_point": {"row": 134, "column": 9}, "end_point": {"row": 134, "column": 10}}, {"id": 733, "type": "function_declarator", "text": "ft_itoa(t_int n)", "parent": 731, "children": [734, 735], "start_point": {"row": 134, "column": 10}, "end_point": {"row": 134, "column": 26}}, {"id": 734, "type": "identifier", "text": "ft_itoa", "parent": 733, "children": [], "start_point": {"row": 134, "column": 10}, "end_point": {"row": 134, "column": 17}}, {"id": 735, "type": "parameter_list", "text": "(t_int n)", "parent": 733, "children": [736], "start_point": {"row": 134, "column": 17}, "end_point": {"row": 134, "column": 26}}, {"id": 736, "type": "parameter_declaration", "text": "t_int n", "parent": 735, "children": [737, 738], "start_point": {"row": 134, "column": 18}, "end_point": {"row": 134, "column": 25}}, {"id": 737, "type": "type_identifier", "text": "t_int", "parent": 736, "children": [], "start_point": {"row": 134, "column": 18}, "end_point": {"row": 134, "column": 23}}, {"id": 738, "type": "identifier", "text": "n", "parent": 736, "children": [], "start_point": {"row": 134, "column": 24}, "end_point": {"row": 134, "column": 25}}, {"id": 739, "type": "declaration", "text": "char\t\t\t\t\t*ft_uitoa(t_uint n);", "parent": 0, "children": [740, 741], "start_point": {"row": 135, "column": 0}, "end_point": {"row": 135, "column": 29}}, {"id": 740, "type": "primitive_type", "text": "char", "parent": 739, "children": [], "start_point": {"row": 135, "column": 0}, "end_point": {"row": 135, "column": 4}}, {"id": 741, "type": "pointer_declarator", "text": "*ft_uitoa(t_uint n)", "parent": 739, "children": [742, 743], "start_point": {"row": 135, "column": 9}, "end_point": {"row": 135, "column": 28}}, {"id": 742, "type": "*", "text": "*", "parent": 741, "children": [], "start_point": {"row": 135, "column": 9}, "end_point": {"row": 135, "column": 10}}, {"id": 743, "type": "function_declarator", "text": "ft_uitoa(t_uint n)", "parent": 741, "children": [744, 745], "start_point": {"row": 135, "column": 10}, "end_point": {"row": 135, "column": 28}}, {"id": 744, "type": "identifier", "text": "ft_uitoa", "parent": 743, "children": [], "start_point": {"row": 135, "column": 10}, "end_point": {"row": 135, "column": 18}}, {"id": 745, "type": "parameter_list", "text": "(t_uint n)", "parent": 743, "children": [746], "start_point": {"row": 135, "column": 18}, "end_point": {"row": 135, "column": 28}}, {"id": 746, "type": "parameter_declaration", "text": "t_uint n", "parent": 745, "children": [747, 748], "start_point": {"row": 135, "column": 19}, "end_point": {"row": 135, "column": 27}}, {"id": 747, "type": "type_identifier", "text": "t_uint", "parent": 746, "children": [], "start_point": {"row": 135, "column": 19}, "end_point": {"row": 135, "column": 25}}, {"id": 748, "type": "identifier", "text": "n", "parent": 746, "children": [], "start_point": {"row": 135, "column": 26}, "end_point": {"row": 135, "column": 27}}, {"id": 749, "type": "declaration", "text": "double\t\t\t\t\tft_atof(const char *str, size_t *len);", "parent": 0, "children": [750, 751], "start_point": {"row": 137, "column": 0}, "end_point": {"row": 137, "column": 49}}, {"id": 750, "type": "primitive_type", "text": "double", "parent": 749, "children": [], "start_point": {"row": 137, "column": 0}, "end_point": {"row": 137, "column": 6}}, {"id": 751, "type": "function_declarator", "text": "ft_atof(const char *str, size_t *len)", "parent": 749, "children": [752, 753], "start_point": {"row": 137, "column": 11}, "end_point": {"row": 137, "column": 48}}, {"id": 752, "type": "identifier", "text": "ft_atof", "parent": 751, "children": [], "start_point": {"row": 137, "column": 11}, "end_point": {"row": 137, "column": 18}}, {"id": 753, "type": "parameter_list", "text": "(const char *str, size_t *len)", "parent": 751, "children": [754, 759], "start_point": {"row": 137, "column": 18}, "end_point": {"row": 137, "column": 48}}, {"id": 754, "type": "parameter_declaration", "text": "const char *str", "parent": 753, "children": [755, 756], "start_point": {"row": 137, "column": 19}, "end_point": {"row": 137, "column": 34}}, {"id": 755, "type": "primitive_type", "text": "char", "parent": 754, "children": [], "start_point": {"row": 137, "column": 25}, "end_point": {"row": 137, "column": 29}}, {"id": 756, "type": "pointer_declarator", "text": "*str", "parent": 754, "children": [757, 758], "start_point": {"row": 137, "column": 30}, "end_point": {"row": 137, "column": 34}}, {"id": 757, "type": "*", "text": "*", "parent": 756, "children": [], "start_point": {"row": 137, "column": 30}, "end_point": {"row": 137, "column": 31}}, {"id": 758, "type": "identifier", "text": "str", "parent": 756, "children": [], "start_point": {"row": 137, "column": 31}, "end_point": {"row": 137, "column": 34}}, {"id": 759, "type": "parameter_declaration", "text": "size_t *len", "parent": 753, "children": [760, 761], "start_point": {"row": 137, "column": 36}, "end_point": {"row": 137, "column": 47}}, {"id": 760, "type": "primitive_type", "text": "size_t", "parent": 759, "children": [], "start_point": {"row": 137, "column": 36}, "end_point": {"row": 137, "column": 42}}, {"id": 761, "type": "pointer_declarator", "text": "*len", "parent": 759, "children": [762, 763], "start_point": {"row": 137, "column": 43}, "end_point": {"row": 137, "column": 47}}, {"id": 762, "type": "*", "text": "*", "parent": 761, "children": [], "start_point": {"row": 137, "column": 43}, "end_point": {"row": 137, "column": 44}}, {"id": 763, "type": "identifier", "text": "len", "parent": 761, "children": [], "start_point": {"row": 137, "column": 44}, "end_point": {"row": 137, "column": 47}}, {"id": 764, "type": "declaration", "text": "size_t\t\t\t\t\tft_intlen(t_int n);", "parent": 0, "children": [765, 766], "start_point": {"row": 139, "column": 0}, "end_point": {"row": 139, "column": 30}}, {"id": 765, "type": "primitive_type", "text": "size_t", "parent": 764, "children": [], "start_point": {"row": 139, "column": 0}, "end_point": {"row": 139, "column": 6}}, {"id": 766, "type": "function_declarator", "text": "ft_intlen(t_int n)", "parent": 764, "children": [767, 768], "start_point": {"row": 139, "column": 11}, "end_point": {"row": 139, "column": 29}}, {"id": 767, "type": "identifier", "text": "ft_intlen", "parent": 766, "children": [], "start_point": {"row": 139, "column": 11}, "end_point": {"row": 139, "column": 20}}, {"id": 768, "type": "parameter_list", "text": "(t_int n)", "parent": 766, "children": [769], "start_point": {"row": 139, "column": 20}, "end_point": {"row": 139, "column": 29}}, {"id": 769, "type": "parameter_declaration", "text": "t_int n", "parent": 768, "children": [770, 771], "start_point": {"row": 139, "column": 21}, "end_point": {"row": 139, "column": 28}}, {"id": 770, "type": "type_identifier", "text": "t_int", "parent": 769, "children": [], "start_point": {"row": 139, "column": 21}, "end_point": {"row": 139, "column": 26}}, {"id": 771, "type": "identifier", "text": "n", "parent": 769, "children": [], "start_point": {"row": 139, "column": 27}, "end_point": {"row": 139, "column": 28}}, {"id": 772, "type": "declaration", "text": "t_int\t\t\t\t\tft_abs(t_int n);", "parent": 0, "children": [773, 774], "start_point": {"row": 140, "column": 0}, "end_point": {"row": 140, "column": 26}}, {"id": 773, "type": "type_identifier", "text": "t_int", "parent": 772, "children": [], "start_point": {"row": 140, "column": 0}, "end_point": {"row": 140, "column": 5}}, {"id": 774, "type": "function_declarator", "text": "ft_abs(t_int n)", "parent": 772, "children": [775, 776], "start_point": {"row": 140, "column": 10}, "end_point": {"row": 140, "column": 25}}, {"id": 775, "type": "identifier", "text": "ft_abs", "parent": 774, "children": [], "start_point": {"row": 140, "column": 10}, "end_point": {"row": 140, "column": 16}}, {"id": 776, "type": "parameter_list", "text": "(t_int n)", "parent": 774, "children": [777], "start_point": {"row": 140, "column": 16}, "end_point": {"row": 140, "column": 25}}, {"id": 777, "type": "parameter_declaration", "text": "t_int n", "parent": 776, "children": [778, 779], "start_point": {"row": 140, "column": 17}, "end_point": {"row": 140, "column": 24}}, {"id": 778, "type": "type_identifier", "text": "t_int", "parent": 777, "children": [], "start_point": {"row": 140, "column": 17}, "end_point": {"row": 140, "column": 22}}, {"id": 779, "type": "identifier", "text": "n", "parent": 777, "children": [], "start_point": {"row": 140, "column": 23}, "end_point": {"row": 140, "column": 24}}, {"id": 780, "type": "declaration", "text": "int\t\t\t\t\t\tft_pow(int nbr, int pow);", "parent": 0, "children": [781, 782], "start_point": {"row": 141, "column": 0}, "end_point": {"row": 141, "column": 34}}, {"id": 781, "type": "primitive_type", "text": "int", "parent": 780, "children": [], "start_point": {"row": 141, "column": 0}, "end_point": {"row": 141, "column": 3}}, {"id": 782, "type": "function_declarator", "text": "ft_pow(int nbr, int pow)", "parent": 780, "children": [783, 784], "start_point": {"row": 141, "column": 9}, "end_point": {"row": 141, "column": 33}}, {"id": 783, "type": "identifier", "text": "ft_pow", "parent": 782, "children": [], "start_point": {"row": 141, "column": 9}, "end_point": {"row": 141, "column": 15}}, {"id": 784, "type": "parameter_list", "text": "(int nbr, int pow)", "parent": 782, "children": [785, 788], "start_point": {"row": 141, "column": 15}, "end_point": {"row": 141, "column": 33}}, {"id": 785, "type": "parameter_declaration", "text": "int nbr", "parent": 784, "children": [786, 787], "start_point": {"row": 141, "column": 16}, "end_point": {"row": 141, "column": 23}}, {"id": 786, "type": "primitive_type", "text": "int", "parent": 785, "children": [], "start_point": {"row": 141, "column": 16}, "end_point": {"row": 141, "column": 19}}, {"id": 787, "type": "identifier", "text": "nbr", "parent": 785, "children": [], "start_point": {"row": 141, "column": 20}, "end_point": {"row": 141, "column": 23}}, {"id": 788, "type": "parameter_declaration", "text": "int pow", "parent": 784, "children": [789, 790], "start_point": {"row": 141, "column": 25}, "end_point": {"row": 141, "column": 32}}, {"id": 789, "type": "primitive_type", "text": "int", "parent": 788, "children": [], "start_point": {"row": 141, "column": 25}, "end_point": {"row": 141, "column": 28}}, {"id": 790, "type": "identifier", "text": "pow", "parent": 788, "children": [], "start_point": {"row": 141, "column": 29}, "end_point": {"row": 141, "column": 32}}, {"id": 791, "type": "declaration", "text": "char\t\t\t\t\t*ft_convert_base(char *nbr, char *base_from, \\\n\t\t\t\t\t\t\tchar *base_to);", "parent": 0, "children": [792, 793], "start_point": {"row": 143, "column": 0}, "end_point": {"row": 144, "column": 22}}, {"id": 792, "type": "primitive_type", "text": "char", "parent": 791, "children": [], "start_point": {"row": 143, "column": 0}, "end_point": {"row": 143, "column": 4}}, {"id": 793, "type": "pointer_declarator", "text": "*ft_convert_base(char *nbr, char *base_from, \\\n\t\t\t\t\t\t\tchar *base_to)", "parent": 791, "children": [794, 795], "start_point": {"row": 143, "column": 9}, "end_point": {"row": 144, "column": 21}}, {"id": 794, "type": "*", "text": "*", "parent": 793, "children": [], "start_point": {"row": 143, "column": 9}, "end_point": {"row": 143, "column": 10}}, {"id": 795, "type": "function_declarator", "text": "ft_convert_base(char *nbr, char *base_from, \\\n\t\t\t\t\t\t\tchar *base_to)", "parent": 793, "children": [796, 797], "start_point": {"row": 143, "column": 10}, "end_point": {"row": 144, "column": 21}}, {"id": 796, "type": "identifier", "text": "ft_convert_base", "parent": 795, "children": [], "start_point": {"row": 143, "column": 10}, "end_point": {"row": 143, "column": 25}}, {"id": 797, "type": "parameter_list", "text": "(char *nbr, char *base_from, \\\n\t\t\t\t\t\t\tchar *base_to)", "parent": 795, "children": [798, 803, 808], "start_point": {"row": 143, "column": 25}, "end_point": {"row": 144, "column": 21}}, {"id": 798, "type": "parameter_declaration", "text": "char *nbr", "parent": 797, "children": [799, 800], "start_point": {"row": 143, "column": 26}, "end_point": {"row": 143, "column": 35}}, {"id": 799, "type": "primitive_type", "text": "char", "parent": 798, "children": [], "start_point": {"row": 143, "column": 26}, "end_point": {"row": 143, "column": 30}}, {"id": 800, "type": "pointer_declarator", "text": "*nbr", "parent": 798, "children": [801, 802], "start_point": {"row": 143, "column": 31}, "end_point": {"row": 143, "column": 35}}, {"id": 801, "type": "*", "text": "*", "parent": 800, "children": [], "start_point": {"row": 143, "column": 31}, "end_point": {"row": 143, "column": 32}}, {"id": 802, "type": "identifier", "text": "nbr", "parent": 800, "children": [], "start_point": {"row": 143, "column": 32}, "end_point": {"row": 143, "column": 35}}, {"id": 803, "type": "parameter_declaration", "text": "char *base_from", "parent": 797, "children": [804, 805], "start_point": {"row": 143, "column": 37}, "end_point": {"row": 143, "column": 52}}, {"id": 804, "type": "primitive_type", "text": "char", "parent": 803, "children": [], "start_point": {"row": 143, "column": 37}, "end_point": {"row": 143, "column": 41}}, {"id": 805, "type": "pointer_declarator", "text": "*base_from", "parent": 803, "children": [806, 807], "start_point": {"row": 143, "column": 42}, "end_point": {"row": 143, "column": 52}}, {"id": 806, "type": "*", "text": "*", "parent": 805, "children": [], "start_point": {"row": 143, "column": 42}, "end_point": {"row": 143, "column": 43}}, {"id": 807, "type": "identifier", "text": "base_from", "parent": 805, "children": [], "start_point": {"row": 143, "column": 43}, "end_point": {"row": 143, "column": 52}}, {"id": 808, "type": "parameter_declaration", "text": "char *base_to", "parent": 797, "children": [809, 810], "start_point": {"row": 144, "column": 7}, "end_point": {"row": 144, "column": 20}}, {"id": 809, "type": "primitive_type", "text": "char", "parent": 808, "children": [], "start_point": {"row": 144, "column": 7}, "end_point": {"row": 144, "column": 11}}, {"id": 810, "type": "pointer_declarator", "text": "*base_to", "parent": 808, "children": [811, 812], "start_point": {"row": 144, "column": 12}, "end_point": {"row": 144, "column": 20}}, {"id": 811, "type": "*", "text": "*", "parent": 810, "children": [], "start_point": {"row": 144, "column": 12}, "end_point": {"row": 144, "column": 13}}, {"id": 812, "type": "identifier", "text": "base_to", "parent": 810, "children": [], "start_point": {"row": 144, "column": 13}, "end_point": {"row": 144, "column": 20}}, {"id": 813, "type": "declaration", "text": "char\t\t\t\t\t*ft_convert_base_free(char *nbr, char *base_from, \\\n\t\t\t\t\t\t\tchar *base_to);", "parent": 0, "children": [814, 815], "start_point": {"row": 145, "column": 0}, "end_point": {"row": 146, "column": 22}}, {"id": 814, "type": "primitive_type", "text": "char", "parent": 813, "children": [], "start_point": {"row": 145, "column": 0}, "end_point": {"row": 145, "column": 4}}, {"id": 815, "type": "pointer_declarator", "text": "*ft_convert_base_free(char *nbr, char *base_from, \\\n\t\t\t\t\t\t\tchar *base_to)", "parent": 813, "children": [816, 817], "start_point": {"row": 145, "column": 9}, "end_point": {"row": 146, "column": 21}}, {"id": 816, "type": "*", "text": "*", "parent": 815, "children": [], "start_point": {"row": 145, "column": 9}, "end_point": {"row": 145, "column": 10}}, {"id": 817, "type": "function_declarator", "text": "ft_convert_base_free(char *nbr, char *base_from, \\\n\t\t\t\t\t\t\tchar *base_to)", "parent": 815, "children": [818, 819], "start_point": {"row": 145, "column": 10}, "end_point": {"row": 146, "column": 21}}, {"id": 818, "type": "identifier", "text": "ft_convert_base_free", "parent": 817, "children": [], "start_point": {"row": 145, "column": 10}, "end_point": {"row": 145, "column": 30}}, {"id": 819, "type": "parameter_list", "text": "(char *nbr, char *base_from, \\\n\t\t\t\t\t\t\tchar *base_to)", "parent": 817, "children": [820, 825, 830], "start_point": {"row": 145, "column": 30}, "end_point": {"row": 146, "column": 21}}, {"id": 820, "type": "parameter_declaration", "text": "char *nbr", "parent": 819, "children": [821, 822], "start_point": {"row": 145, "column": 31}, "end_point": {"row": 145, "column": 40}}, {"id": 821, "type": "primitive_type", "text": "char", "parent": 820, "children": [], "start_point": {"row": 145, "column": 31}, "end_point": {"row": 145, "column": 35}}, {"id": 822, "type": "pointer_declarator", "text": "*nbr", "parent": 820, "children": [823, 824], "start_point": {"row": 145, "column": 36}, "end_point": {"row": 145, "column": 40}}, {"id": 823, "type": "*", "text": "*", "parent": 822, "children": [], "start_point": {"row": 145, "column": 36}, "end_point": {"row": 145, "column": 37}}, {"id": 824, "type": "identifier", "text": "nbr", "parent": 822, "children": [], "start_point": {"row": 145, "column": 37}, "end_point": {"row": 145, "column": 40}}, {"id": 825, "type": "parameter_declaration", "text": "char *base_from", "parent": 819, "children": [826, 827], "start_point": {"row": 145, "column": 42}, "end_point": {"row": 145, "column": 57}}, {"id": 826, "type": "primitive_type", "text": "char", "parent": 825, "children": [], "start_point": {"row": 145, "column": 42}, "end_point": {"row": 145, "column": 46}}, {"id": 827, "type": "pointer_declarator", "text": "*base_from", "parent": 825, "children": [828, 829], "start_point": {"row": 145, "column": 47}, "end_point": {"row": 145, "column": 57}}, {"id": 828, "type": "*", "text": "*", "parent": 827, "children": [], "start_point": {"row": 145, "column": 47}, "end_point": {"row": 145, "column": 48}}, {"id": 829, "type": "identifier", "text": "base_from", "parent": 827, "children": [], "start_point": {"row": 145, "column": 48}, "end_point": {"row": 145, "column": 57}}, {"id": 830, "type": "parameter_declaration", "text": "char *base_to", "parent": 819, "children": [831, 832], "start_point": {"row": 146, "column": 7}, "end_point": {"row": 146, "column": 20}}, {"id": 831, "type": "primitive_type", "text": "char", "parent": 830, "children": [], "start_point": {"row": 146, "column": 7}, "end_point": {"row": 146, "column": 11}}, {"id": 832, "type": "pointer_declarator", "text": "*base_to", "parent": 830, "children": [833, 834], "start_point": {"row": 146, "column": 12}, "end_point": {"row": 146, "column": 20}}, {"id": 833, "type": "*", "text": "*", "parent": 832, "children": [], "start_point": {"row": 146, "column": 12}, "end_point": {"row": 146, "column": 13}}, {"id": 834, "type": "identifier", "text": "base_to", "parent": 832, "children": [], "start_point": {"row": 146, "column": 13}, "end_point": {"row": 146, "column": 20}}, {"id": 835, "type": "declaration", "text": "void\t\t\t\t\t*ft_memalloc(size_t size);", "parent": 0, "children": [836, 837], "start_point": {"row": 152, "column": 0}, "end_point": {"row": 152, "column": 35}}, {"id": 836, "type": "primitive_type", "text": "void", "parent": 835, "children": [], "start_point": {"row": 152, "column": 0}, "end_point": {"row": 152, "column": 4}}, {"id": 837, "type": "pointer_declarator", "text": "*ft_memalloc(size_t size)", "parent": 835, "children": [838, 839], "start_point": {"row": 152, "column": 9}, "end_point": {"row": 152, "column": 34}}, {"id": 838, "type": "*", "text": "*", "parent": 837, "children": [], "start_point": {"row": 152, "column": 9}, "end_point": {"row": 152, "column": 10}}, {"id": 839, "type": "function_declarator", "text": "ft_memalloc(size_t size)", "parent": 837, "children": [840, 841], "start_point": {"row": 152, "column": 10}, "end_point": {"row": 152, "column": 34}}, {"id": 840, "type": "identifier", "text": "ft_memalloc", "parent": 839, "children": [], "start_point": {"row": 152, "column": 10}, "end_point": {"row": 152, "column": 21}}, {"id": 841, "type": "parameter_list", "text": "(size_t size)", "parent": 839, "children": [842], "start_point": {"row": 152, "column": 21}, "end_point": {"row": 152, "column": 34}}, {"id": 842, "type": "parameter_declaration", "text": "size_t size", "parent": 841, "children": [843, 844], "start_point": {"row": 152, "column": 22}, "end_point": {"row": 152, "column": 33}}, {"id": 843, "type": "primitive_type", "text": "size_t", "parent": 842, "children": [], "start_point": {"row": 152, "column": 22}, "end_point": {"row": 152, "column": 28}}, {"id": 844, "type": "identifier", "text": "size", "parent": 842, "children": [], "start_point": {"row": 152, "column": 29}, "end_point": {"row": 152, "column": 33}}, {"id": 845, "type": "declaration", "text": "void\t\t\t\t\t*ft_memrealloc(void *ptr, size_t size, size_t new_size);", "parent": 0, "children": [846, 847], "start_point": {"row": 153, "column": 0}, "end_point": {"row": 153, "column": 65}}, {"id": 846, "type": "primitive_type", "text": "void", "parent": 845, "children": [], "start_point": {"row": 153, "column": 0}, "end_point": {"row": 153, "column": 4}}, {"id": 847, "type": "pointer_declarator", "text": "*ft_memrealloc(void *ptr, size_t size, size_t new_size)", "parent": 845, "children": [848, 849], "start_point": {"row": 153, "column": 9}, "end_point": {"row": 153, "column": 64}}, {"id": 848, "type": "*", "text": "*", "parent": 847, "children": [], "start_point": {"row": 153, "column": 9}, "end_point": {"row": 153, "column": 10}}, {"id": 849, "type": "function_declarator", "text": "ft_memrealloc(void *ptr, size_t size, size_t new_size)", "parent": 847, "children": [850, 851], "start_point": {"row": 153, "column": 10}, "end_point": {"row": 153, "column": 64}}, {"id": 850, "type": "identifier", "text": "ft_memrealloc", "parent": 849, "children": [], "start_point": {"row": 153, "column": 10}, "end_point": {"row": 153, "column": 23}}, {"id": 851, "type": "parameter_list", "text": "(void *ptr, size_t size, size_t new_size)", "parent": 849, "children": [852, 857, 860], "start_point": {"row": 153, "column": 23}, "end_point": {"row": 153, "column": 64}}, {"id": 852, "type": "parameter_declaration", "text": "void *ptr", "parent": 851, "children": [853, 854], "start_point": {"row": 153, "column": 24}, "end_point": {"row": 153, "column": 33}}, {"id": 853, "type": "primitive_type", "text": "void", "parent": 852, "children": [], "start_point": {"row": 153, "column": 24}, "end_point": {"row": 153, "column": 28}}, {"id": 854, "type": "pointer_declarator", "text": "*ptr", "parent": 852, "children": [855, 856], "start_point": {"row": 153, "column": 29}, "end_point": {"row": 153, "column": 33}}, {"id": 855, "type": "*", "text": "*", "parent": 854, "children": [], "start_point": {"row": 153, "column": 29}, "end_point": {"row": 153, "column": 30}}, {"id": 856, "type": "identifier", "text": "ptr", "parent": 854, "children": [], "start_point": {"row": 153, "column": 30}, "end_point": {"row": 153, "column": 33}}, {"id": 857, "type": "parameter_declaration", "text": "size_t size", "parent": 851, "children": [858, 859], "start_point": {"row": 153, "column": 35}, "end_point": {"row": 153, "column": 46}}, {"id": 858, "type": "primitive_type", "text": "size_t", "parent": 857, "children": [], "start_point": {"row": 153, "column": 35}, "end_point": {"row": 153, "column": 41}}, {"id": 859, "type": "identifier", "text": "size", "parent": 857, "children": [], "start_point": {"row": 153, "column": 42}, "end_point": {"row": 153, "column": 46}}, {"id": 860, "type": "parameter_declaration", "text": "size_t new_size", "parent": 851, "children": [861, 862], "start_point": {"row": 153, "column": 48}, "end_point": {"row": 153, "column": 63}}, {"id": 861, "type": "primitive_type", "text": "size_t", "parent": 860, "children": [], "start_point": {"row": 153, "column": 48}, "end_point": {"row": 153, "column": 54}}, {"id": 862, "type": "identifier", "text": "new_size", "parent": 860, "children": [], "start_point": {"row": 153, "column": 55}, "end_point": {"row": 153, "column": 63}}, {"id": 863, "type": "declaration", "text": "int\t\t\t\t\t\tft_memdel(void **ap);", "parent": 0, "children": [864, 865], "start_point": {"row": 154, "column": 0}, "end_point": {"row": 154, "column": 30}}, {"id": 864, "type": "primitive_type", "text": "int", "parent": 863, "children": [], "start_point": {"row": 154, "column": 0}, "end_point": {"row": 154, "column": 3}}, {"id": 865, "type": "function_declarator", "text": "ft_memdel(void **ap)", "parent": 863, "children": [866, 867], "start_point": {"row": 154, "column": 9}, "end_point": {"row": 154, "column": 29}}, {"id": 866, "type": "identifier", "text": "ft_memdel", "parent": 865, "children": [], "start_point": {"row": 154, "column": 9}, "end_point": {"row": 154, "column": 18}}, {"id": 867, "type": "parameter_list", "text": "(void **ap)", "parent": 865, "children": [868], "start_point": {"row": 154, "column": 18}, "end_point": {"row": 154, "column": 29}}, {"id": 868, "type": "parameter_declaration", "text": "void **ap", "parent": 867, "children": [869, 870], "start_point": {"row": 154, "column": 19}, "end_point": {"row": 154, "column": 28}}, {"id": 869, "type": "primitive_type", "text": "void", "parent": 868, "children": [], "start_point": {"row": 154, "column": 19}, "end_point": {"row": 154, "column": 23}}, {"id": 870, "type": "pointer_declarator", "text": "**ap", "parent": 868, "children": [871, 872], "start_point": {"row": 154, "column": 24}, "end_point": {"row": 154, "column": 28}}, {"id": 871, "type": "*", "text": "*", "parent": 870, "children": [], "start_point": {"row": 154, "column": 24}, "end_point": {"row": 154, "column": 25}}, {"id": 872, "type": "pointer_declarator", "text": "*ap", "parent": 870, "children": [873, 874], "start_point": {"row": 154, "column": 25}, "end_point": {"row": 154, "column": 28}}, {"id": 873, "type": "*", "text": "*", "parent": 872, "children": [], "start_point": {"row": 154, "column": 25}, "end_point": {"row": 154, "column": 26}}, {"id": 874, "type": "identifier", "text": "ap", "parent": 872, "children": [], "start_point": {"row": 154, "column": 26}, "end_point": {"row": 154, "column": 28}}, {"id": 875, "type": "declaration", "text": "void\t\t\t\t\tft_bzero(void *s, size_t n);", "parent": 0, "children": [876, 877], "start_point": {"row": 156, "column": 0}, "end_point": {"row": 156, "column": 37}}, {"id": 876, "type": "primitive_type", "text": "void", "parent": 875, "children": [], "start_point": {"row": 156, "column": 0}, "end_point": {"row": 156, "column": 4}}, {"id": 877, "type": "function_declarator", "text": "ft_bzero(void *s, size_t n)", "parent": 875, "children": [878, 879], "start_point": {"row": 156, "column": 9}, "end_point": {"row": 156, "column": 36}}, {"id": 878, "type": "identifier", "text": "ft_bzero", "parent": 877, "children": [], "start_point": {"row": 156, "column": 9}, "end_point": {"row": 156, "column": 17}}, {"id": 879, "type": "parameter_list", "text": "(void *s, size_t n)", "parent": 877, "children": [880, 885], "start_point": {"row": 156, "column": 17}, "end_point": {"row": 156, "column": 36}}, {"id": 880, "type": "parameter_declaration", "text": "void *s", "parent": 879, "children": [881, 882], "start_point": {"row": 156, "column": 18}, "end_point": {"row": 156, "column": 25}}, {"id": 881, "type": "primitive_type", "text": "void", "parent": 880, "children": [], "start_point": {"row": 156, "column": 18}, "end_point": {"row": 156, "column": 22}}, {"id": 882, "type": "pointer_declarator", "text": "*s", "parent": 880, "children": [883, 884], "start_point": {"row": 156, "column": 23}, "end_point": {"row": 156, "column": 25}}, {"id": 883, "type": "*", "text": "*", "parent": 882, "children": [], "start_point": {"row": 156, "column": 23}, "end_point": {"row": 156, "column": 24}}, {"id": 884, "type": "identifier", "text": "s", "parent": 882, "children": [], "start_point": {"row": 156, "column": 24}, "end_point": {"row": 156, "column": 25}}, {"id": 885, "type": "parameter_declaration", "text": "size_t n", "parent": 879, "children": [886, 887], "start_point": {"row": 156, "column": 27}, "end_point": {"row": 156, "column": 35}}, {"id": 886, "type": "primitive_type", "text": "size_t", "parent": 885, "children": [], "start_point": {"row": 156, "column": 27}, "end_point": {"row": 156, "column": 33}}, {"id": 887, "type": "identifier", "text": "n", "parent": 885, "children": [], "start_point": {"row": 156, "column": 34}, "end_point": {"row": 156, "column": 35}}, {"id": 888, "type": "declaration", "text": "void\t\t\t\t\t*ft_memset(void *b, int c, size_t len);", "parent": 0, "children": [889, 890], "start_point": {"row": 157, "column": 0}, "end_point": {"row": 157, "column": 48}}, {"id": 889, "type": "primitive_type", "text": "void", "parent": 888, "children": [], "start_point": {"row": 157, "column": 0}, "end_point": {"row": 157, "column": 4}}, {"id": 890, "type": "pointer_declarator", "text": "*ft_memset(void *b, int c, size_t len)", "parent": 888, "children": [891, 892], "start_point": {"row": 157, "column": 9}, "end_point": {"row": 157, "column": 47}}, {"id": 891, "type": "*", "text": "*", "parent": 890, "children": [], "start_point": {"row": 157, "column": 9}, "end_point": {"row": 157, "column": 10}}, {"id": 892, "type": "function_declarator", "text": "ft_memset(void *b, int c, size_t len)", "parent": 890, "children": [893, 894], "start_point": {"row": 157, "column": 10}, "end_point": {"row": 157, "column": 47}}, {"id": 893, "type": "identifier", "text": "ft_memset", "parent": 892, "children": [], "start_point": {"row": 157, "column": 10}, "end_point": {"row": 157, "column": 19}}, {"id": 894, "type": "parameter_list", "text": "(void *b, int c, size_t len)", "parent": 892, "children": [895, 900, 903], "start_point": {"row": 157, "column": 19}, "end_point": {"row": 157, "column": 47}}, {"id": 895, "type": "parameter_declaration", "text": "void *b", "parent": 894, "children": [896, 897], "start_point": {"row": 157, "column": 20}, "end_point": {"row": 157, "column": 27}}, {"id": 896, "type": "primitive_type", "text": "void", "parent": 895, "children": [], "start_point": {"row": 157, "column": 20}, "end_point": {"row": 157, "column": 24}}, {"id": 897, "type": "pointer_declarator", "text": "*b", "parent": 895, "children": [898, 899], "start_point": {"row": 157, "column": 25}, "end_point": {"row": 157, "column": 27}}, {"id": 898, "type": "*", "text": "*", "parent": 897, "children": [], "start_point": {"row": 157, "column": 25}, "end_point": {"row": 157, "column": 26}}, {"id": 899, "type": "identifier", "text": "b", "parent": 897, "children": [], "start_point": {"row": 157, "column": 26}, "end_point": {"row": 157, "column": 27}}, {"id": 900, "type": "parameter_declaration", "text": "int c", "parent": 894, "children": [901, 902], "start_point": {"row": 157, "column": 29}, "end_point": {"row": 157, "column": 34}}, {"id": 901, "type": "primitive_type", "text": "int", "parent": 900, "children": [], "start_point": {"row": 157, "column": 29}, "end_point": {"row": 157, "column": 32}}, {"id": 902, "type": "identifier", "text": "c", "parent": 900, "children": [], "start_point": {"row": 157, "column": 33}, "end_point": {"row": 157, "column": 34}}, {"id": 903, "type": "parameter_declaration", "text": "size_t len", "parent": 894, "children": [904, 905], "start_point": {"row": 157, "column": 36}, "end_point": {"row": 157, "column": 46}}, {"id": 904, "type": "primitive_type", "text": "size_t", "parent": 903, "children": [], "start_point": {"row": 157, "column": 36}, "end_point": {"row": 157, "column": 42}}, {"id": 905, "type": "identifier", "text": "len", "parent": 903, "children": [], "start_point": {"row": 157, "column": 43}, "end_point": {"row": 157, "column": 46}}, {"id": 906, "type": "declaration", "text": "void\t\t\t\t\t*ft_memdup(void *buf, size_t size);", "parent": 0, "children": [907, 908], "start_point": {"row": 159, "column": 0}, "end_point": {"row": 159, "column": 44}}, {"id": 907, "type": "primitive_type", "text": "void", "parent": 906, "children": [], "start_point": {"row": 159, "column": 0}, "end_point": {"row": 159, "column": 4}}, {"id": 908, "type": "pointer_declarator", "text": "*ft_memdup(void *buf, size_t size)", "parent": 906, "children": [909, 910], "start_point": {"row": 159, "column": 9}, "end_point": {"row": 159, "column": 43}}, {"id": 909, "type": "*", "text": "*", "parent": 908, "children": [], "start_point": {"row": 159, "column": 9}, "end_point": {"row": 159, "column": 10}}, {"id": 910, "type": "function_declarator", "text": "ft_memdup(void *buf, size_t size)", "parent": 908, "children": [911, 912], "start_point": {"row": 159, "column": 10}, "end_point": {"row": 159, "column": 43}}, {"id": 911, "type": "identifier", "text": "ft_memdup", "parent": 910, "children": [], "start_point": {"row": 159, "column": 10}, "end_point": {"row": 159, "column": 19}}, {"id": 912, "type": "parameter_list", "text": "(void *buf, size_t size)", "parent": 910, "children": [913, 918], "start_point": {"row": 159, "column": 19}, "end_point": {"row": 159, "column": 43}}, {"id": 913, "type": "parameter_declaration", "text": "void *buf", "parent": 912, "children": [914, 915], "start_point": {"row": 159, "column": 20}, "end_point": {"row": 159, "column": 29}}, {"id": 914, "type": "primitive_type", "text": "void", "parent": 913, "children": [], "start_point": {"row": 159, "column": 20}, "end_point": {"row": 159, "column": 24}}, {"id": 915, "type": "pointer_declarator", "text": "*buf", "parent": 913, "children": [916, 917], "start_point": {"row": 159, "column": 25}, "end_point": {"row": 159, "column": 29}}, {"id": 916, "type": "*", "text": "*", "parent": 915, "children": [], "start_point": {"row": 159, "column": 25}, "end_point": {"row": 159, "column": 26}}, {"id": 917, "type": "identifier", "text": "buf", "parent": 915, "children": [], "start_point": {"row": 159, "column": 26}, "end_point": {"row": 159, "column": 29}}, {"id": 918, "type": "parameter_declaration", "text": "size_t size", "parent": 912, "children": [919, 920], "start_point": {"row": 159, "column": 31}, "end_point": {"row": 159, "column": 42}}, {"id": 919, "type": "primitive_type", "text": "size_t", "parent": 918, "children": [], "start_point": {"row": 159, "column": 31}, "end_point": {"row": 159, "column": 37}}, {"id": 920, "type": "identifier", "text": "size", "parent": 918, "children": [], "start_point": {"row": 159, "column": 38}, "end_point": {"row": 159, "column": 42}}, {"id": 921, "type": "declaration", "text": "void\t\t\t\t\t*ft_memcpy(void *s1, void const *s2, size_t n);", "parent": 0, "children": [922, 923], "start_point": {"row": 160, "column": 0}, "end_point": {"row": 160, "column": 56}}, {"id": 922, "type": "primitive_type", "text": "void", "parent": 921, "children": [], "start_point": {"row": 160, "column": 0}, "end_point": {"row": 160, "column": 4}}, {"id": 923, "type": "pointer_declarator", "text": "*ft_memcpy(void *s1, void const *s2, size_t n)", "parent": 921, "children": [924, 925], "start_point": {"row": 160, "column": 9}, "end_point": {"row": 160, "column": 55}}, {"id": 924, "type": "*", "text": "*", "parent": 923, "children": [], "start_point": {"row": 160, "column": 9}, "end_point": {"row": 160, "column": 10}}, {"id": 925, "type": "function_declarator", "text": "ft_memcpy(void *s1, void const *s2, size_t n)", "parent": 923, "children": [926, 927], "start_point": {"row": 160, "column": 10}, "end_point": {"row": 160, "column": 55}}, {"id": 926, "type": "identifier", "text": "ft_memcpy", "parent": 925, "children": [], "start_point": {"row": 160, "column": 10}, "end_point": {"row": 160, "column": 19}}, {"id": 927, "type": "parameter_list", "text": "(void *s1, void const *s2, size_t n)", "parent": 925, "children": [928, 933, 938], "start_point": {"row": 160, "column": 19}, "end_point": {"row": 160, "column": 55}}, {"id": 928, "type": "parameter_declaration", "text": "void *s1", "parent": 927, "children": [929, 930], "start_point": {"row": 160, "column": 20}, "end_point": {"row": 160, "column": 28}}, {"id": 929, "type": "primitive_type", "text": "void", "parent": 928, "children": [], "start_point": {"row": 160, "column": 20}, "end_point": {"row": 160, "column": 24}}, {"id": 930, "type": "pointer_declarator", "text": "*s1", "parent": 928, "children": [931, 932], "start_point": {"row": 160, "column": 25}, "end_point": {"row": 160, "column": 28}}, {"id": 931, "type": "*", "text": "*", "parent": 930, "children": [], "start_point": {"row": 160, "column": 25}, "end_point": {"row": 160, "column": 26}}, {"id": 932, "type": "identifier", "text": "s1", "parent": 930, "children": [], "start_point": {"row": 160, "column": 26}, "end_point": {"row": 160, "column": 28}}, {"id": 933, "type": "parameter_declaration", "text": "void const *s2", "parent": 927, "children": [934, 935], "start_point": {"row": 160, "column": 30}, "end_point": {"row": 160, "column": 44}}, {"id": 934, "type": "primitive_type", "text": "void", "parent": 933, "children": [], "start_point": {"row": 160, "column": 30}, "end_point": {"row": 160, "column": 34}}, {"id": 935, "type": "pointer_declarator", "text": "*s2", "parent": 933, "children": [936, 937], "start_point": {"row": 160, "column": 41}, "end_point": {"row": 160, "column": 44}}, {"id": 936, "type": "*", "text": "*", "parent": 935, "children": [], "start_point": {"row": 160, "column": 41}, "end_point": {"row": 160, "column": 42}}, {"id": 937, "type": "identifier", "text": "s2", "parent": 935, "children": [], "start_point": {"row": 160, "column": 42}, "end_point": {"row": 160, "column": 44}}, {"id": 938, "type": "parameter_declaration", "text": "size_t n", "parent": 927, "children": [939, 940], "start_point": {"row": 160, "column": 46}, "end_point": {"row": 160, "column": 54}}, {"id": 939, "type": "primitive_type", "text": "size_t", "parent": 938, "children": [], "start_point": {"row": 160, "column": 46}, "end_point": {"row": 160, "column": 52}}, {"id": 940, "type": "identifier", "text": "n", "parent": 938, "children": [], "start_point": {"row": 160, "column": 53}, "end_point": {"row": 160, "column": 54}}, {"id": 941, "type": "declaration", "text": "void\t\t\t\t\t*ft_memccpy(void *s1, void const *s2, int c, size_t n);", "parent": 0, "children": [942, 943], "start_point": {"row": 161, "column": 0}, "end_point": {"row": 161, "column": 64}}, {"id": 942, "type": "primitive_type", "text": "void", "parent": 941, "children": [], "start_point": {"row": 161, "column": 0}, "end_point": {"row": 161, "column": 4}}, {"id": 943, "type": "pointer_declarator", "text": "*ft_memccpy(void *s1, void const *s2, int c, size_t n)", "parent": 941, "children": [944, 945], "start_point": {"row": 161, "column": 9}, "end_point": {"row": 161, "column": 63}}, {"id": 944, "type": "*", "text": "*", "parent": 943, "children": [], "start_point": {"row": 161, "column": 9}, "end_point": {"row": 161, "column": 10}}, {"id": 945, "type": "function_declarator", "text": "ft_memccpy(void *s1, void const *s2, int c, size_t n)", "parent": 943, "children": [946, 947], "start_point": {"row": 161, "column": 10}, "end_point": {"row": 161, "column": 63}}, {"id": 946, "type": "identifier", "text": "ft_memccpy", "parent": 945, "children": [], "start_point": {"row": 161, "column": 10}, "end_point": {"row": 161, "column": 20}}, {"id": 947, "type": "parameter_list", "text": "(void *s1, void const *s2, int c, size_t n)", "parent": 945, "children": [948, 953, 958, 961], "start_point": {"row": 161, "column": 20}, "end_point": {"row": 161, "column": 63}}, {"id": 948, "type": "parameter_declaration", "text": "void *s1", "parent": 947, "children": [949, 950], "start_point": {"row": 161, "column": 21}, "end_point": {"row": 161, "column": 29}}, {"id": 949, "type": "primitive_type", "text": "void", "parent": 948, "children": [], "start_point": {"row": 161, "column": 21}, "end_point": {"row": 161, "column": 25}}, {"id": 950, "type": "pointer_declarator", "text": "*s1", "parent": 948, "children": [951, 952], "start_point": {"row": 161, "column": 26}, "end_point": {"row": 161, "column": 29}}, {"id": 951, "type": "*", "text": "*", "parent": 950, "children": [], "start_point": {"row": 161, "column": 26}, "end_point": {"row": 161, "column": 27}}, {"id": 952, "type": "identifier", "text": "s1", "parent": 950, "children": [], "start_point": {"row": 161, "column": 27}, "end_point": {"row": 161, "column": 29}}, {"id": 953, "type": "parameter_declaration", "text": "void const *s2", "parent": 947, "children": [954, 955], "start_point": {"row": 161, "column": 31}, "end_point": {"row": 161, "column": 45}}, {"id": 954, "type": "primitive_type", "text": "void", "parent": 953, "children": [], "start_point": {"row": 161, "column": 31}, "end_point": {"row": 161, "column": 35}}, {"id": 955, "type": "pointer_declarator", "text": "*s2", "parent": 953, "children": [956, 957], "start_point": {"row": 161, "column": 42}, "end_point": {"row": 161, "column": 45}}, {"id": 956, "type": "*", "text": "*", "parent": 955, "children": [], "start_point": {"row": 161, "column": 42}, "end_point": {"row": 161, "column": 43}}, {"id": 957, "type": "identifier", "text": "s2", "parent": 955, "children": [], "start_point": {"row": 161, "column": 43}, "end_point": {"row": 161, "column": 45}}, {"id": 958, "type": "parameter_declaration", "text": "int c", "parent": 947, "children": [959, 960], "start_point": {"row": 161, "column": 47}, "end_point": {"row": 161, "column": 52}}, {"id": 959, "type": "primitive_type", "text": "int", "parent": 958, "children": [], "start_point": {"row": 161, "column": 47}, "end_point": {"row": 161, "column": 50}}, {"id": 960, "type": "identifier", "text": "c", "parent": 958, "children": [], "start_point": {"row": 161, "column": 51}, "end_point": {"row": 161, "column": 52}}, {"id": 961, "type": "parameter_declaration", "text": "size_t n", "parent": 947, "children": [962, 963], "start_point": {"row": 161, "column": 54}, "end_point": {"row": 161, "column": 62}}, {"id": 962, "type": "primitive_type", "text": "size_t", "parent": 961, "children": [], "start_point": {"row": 161, "column": 54}, "end_point": {"row": 161, "column": 60}}, {"id": 963, "type": "identifier", "text": "n", "parent": 961, "children": [], "start_point": {"row": 161, "column": 61}, "end_point": {"row": 161, "column": 62}}, {"id": 964, "type": "declaration", "text": "void\t\t\t\t\t*ft_memmove(void *s1, void const *s2, size_t n);", "parent": 0, "children": [965, 966], "start_point": {"row": 162, "column": 0}, "end_point": {"row": 162, "column": 57}}, {"id": 965, "type": "primitive_type", "text": "void", "parent": 964, "children": [], "start_point": {"row": 162, "column": 0}, "end_point": {"row": 162, "column": 4}}, {"id": 966, "type": "pointer_declarator", "text": "*ft_memmove(void *s1, void const *s2, size_t n)", "parent": 964, "children": [967, 968], "start_point": {"row": 162, "column": 9}, "end_point": {"row": 162, "column": 56}}, {"id": 967, "type": "*", "text": "*", "parent": 966, "children": [], "start_point": {"row": 162, "column": 9}, "end_point": {"row": 162, "column": 10}}, {"id": 968, "type": "function_declarator", "text": "ft_memmove(void *s1, void const *s2, size_t n)", "parent": 966, "children": [969, 970], "start_point": {"row": 162, "column": 10}, "end_point": {"row": 162, "column": 56}}, {"id": 969, "type": "identifier", "text": "ft_memmove", "parent": 968, "children": [], "start_point": {"row": 162, "column": 10}, "end_point": {"row": 162, "column": 20}}, {"id": 970, "type": "parameter_list", "text": "(void *s1, void const *s2, size_t n)", "parent": 968, "children": [971, 976, 981], "start_point": {"row": 162, "column": 20}, "end_point": {"row": 162, "column": 56}}, {"id": 971, "type": "parameter_declaration", "text": "void *s1", "parent": 970, "children": [972, 973], "start_point": {"row": 162, "column": 21}, "end_point": {"row": 162, "column": 29}}, {"id": 972, "type": "primitive_type", "text": "void", "parent": 971, "children": [], "start_point": {"row": 162, "column": 21}, "end_point": {"row": 162, "column": 25}}, {"id": 973, "type": "pointer_declarator", "text": "*s1", "parent": 971, "children": [974, 975], "start_point": {"row": 162, "column": 26}, "end_point": {"row": 162, "column": 29}}, {"id": 974, "type": "*", "text": "*", "parent": 973, "children": [], "start_point": {"row": 162, "column": 26}, "end_point": {"row": 162, "column": 27}}, {"id": 975, "type": "identifier", "text": "s1", "parent": 973, "children": [], "start_point": {"row": 162, "column": 27}, "end_point": {"row": 162, "column": 29}}, {"id": 976, "type": "parameter_declaration", "text": "void const *s2", "parent": 970, "children": [977, 978], "start_point": {"row": 162, "column": 31}, "end_point": {"row": 162, "column": 45}}, {"id": 977, "type": "primitive_type", "text": "void", "parent": 976, "children": [], "start_point": {"row": 162, "column": 31}, "end_point": {"row": 162, "column": 35}}, {"id": 978, "type": "pointer_declarator", "text": "*s2", "parent": 976, "children": [979, 980], "start_point": {"row": 162, "column": 42}, "end_point": {"row": 162, "column": 45}}, {"id": 979, "type": "*", "text": "*", "parent": 978, "children": [], "start_point": {"row": 162, "column": 42}, "end_point": {"row": 162, "column": 43}}, {"id": 980, "type": "identifier", "text": "s2", "parent": 978, "children": [], "start_point": {"row": 162, "column": 43}, "end_point": {"row": 162, "column": 45}}, {"id": 981, "type": "parameter_declaration", "text": "size_t n", "parent": 970, "children": [982, 983], "start_point": {"row": 162, "column": 47}, "end_point": {"row": 162, "column": 55}}, {"id": 982, "type": "primitive_type", "text": "size_t", "parent": 981, "children": [], "start_point": {"row": 162, "column": 47}, "end_point": {"row": 162, "column": 53}}, {"id": 983, "type": "identifier", "text": "n", "parent": 981, "children": [], "start_point": {"row": 162, "column": 54}, "end_point": {"row": 162, "column": 55}}, {"id": 984, "type": "declaration", "text": "int\t\t\t\t\t\tft_memcmp(void const*s1, void const *s2, size_t n);", "parent": 0, "children": [985, 986], "start_point": {"row": 164, "column": 0}, "end_point": {"row": 164, "column": 60}}, {"id": 985, "type": "primitive_type", "text": "int", "parent": 984, "children": [], "start_point": {"row": 164, "column": 0}, "end_point": {"row": 164, "column": 3}}, {"id": 986, "type": "function_declarator", "text": "ft_memcmp(void const*s1, void const *s2, size_t n)", "parent": 984, "children": [987, 988], "start_point": {"row": 164, "column": 9}, "end_point": {"row": 164, "column": 59}}, {"id": 987, "type": "identifier", "text": "ft_memcmp", "parent": 986, "children": [], "start_point": {"row": 164, "column": 9}, "end_point": {"row": 164, "column": 18}}, {"id": 988, "type": "parameter_list", "text": "(void const*s1, void const *s2, size_t n)", "parent": 986, "children": [989, 994, 999], "start_point": {"row": 164, "column": 18}, "end_point": {"row": 164, "column": 59}}, {"id": 989, "type": "parameter_declaration", "text": "void const*s1", "parent": 988, "children": [990, 991], "start_point": {"row": 164, "column": 19}, "end_point": {"row": 164, "column": 32}}, {"id": 990, "type": "primitive_type", "text": "void", "parent": 989, "children": [], "start_point": {"row": 164, "column": 19}, "end_point": {"row": 164, "column": 23}}, {"id": 991, "type": "pointer_declarator", "text": "*s1", "parent": 989, "children": [992, 993], "start_point": {"row": 164, "column": 29}, "end_point": {"row": 164, "column": 32}}, {"id": 992, "type": "*", "text": "*", "parent": 991, "children": [], "start_point": {"row": 164, "column": 29}, "end_point": {"row": 164, "column": 30}}, {"id": 993, "type": "identifier", "text": "s1", "parent": 991, "children": [], "start_point": {"row": 164, "column": 30}, "end_point": {"row": 164, "column": 32}}, {"id": 994, "type": "parameter_declaration", "text": "void const *s2", "parent": 988, "children": [995, 996], "start_point": {"row": 164, "column": 34}, "end_point": {"row": 164, "column": 48}}, {"id": 995, "type": "primitive_type", "text": "void", "parent": 994, "children": [], "start_point": {"row": 164, "column": 34}, "end_point": {"row": 164, "column": 38}}, {"id": 996, "type": "pointer_declarator", "text": "*s2", "parent": 994, "children": [997, 998], "start_point": {"row": 164, "column": 45}, "end_point": {"row": 164, "column": 48}}, {"id": 997, "type": "*", "text": "*", "parent": 996, "children": [], "start_point": {"row": 164, "column": 45}, "end_point": {"row": 164, "column": 46}}, {"id": 998, "type": "identifier", "text": "s2", "parent": 996, "children": [], "start_point": {"row": 164, "column": 46}, "end_point": {"row": 164, "column": 48}}, {"id": 999, "type": "parameter_declaration", "text": "size_t n", "parent": 988, "children": [1000, 1001], "start_point": {"row": 164, "column": 50}, "end_point": {"row": 164, "column": 58}}, {"id": 1000, "type": "primitive_type", "text": "size_t", "parent": 999, "children": [], "start_point": {"row": 164, "column": 50}, "end_point": {"row": 164, "column": 56}}, {"id": 1001, "type": "identifier", "text": "n", "parent": 999, "children": [], "start_point": {"row": 164, "column": 57}, "end_point": {"row": 164, "column": 58}}, {"id": 1002, "type": "declaration", "text": "void\t\t\t\t\t*ft_memchr(void const *s, int c, size_t n);", "parent": 0, "children": [1003, 1004], "start_point": {"row": 166, "column": 0}, "end_point": {"row": 166, "column": 52}}, {"id": 1003, "type": "primitive_type", "text": "void", "parent": 1002, "children": [], "start_point": {"row": 166, "column": 0}, "end_point": {"row": 166, "column": 4}}, {"id": 1004, "type": "pointer_declarator", "text": "*ft_memchr(void const *s, int c, size_t n)", "parent": 1002, "children": [1005, 1006], "start_point": {"row": 166, "column": 9}, "end_point": {"row": 166, "column": 51}}, {"id": 1005, "type": "*", "text": "*", "parent": 1004, "children": [], "start_point": {"row": 166, "column": 9}, "end_point": {"row": 166, "column": 10}}, {"id": 1006, "type": "function_declarator", "text": "ft_memchr(void const *s, int c, size_t n)", "parent": 1004, "children": [1007, 1008], "start_point": {"row": 166, "column": 10}, "end_point": {"row": 166, "column": 51}}, {"id": 1007, "type": "identifier", "text": "ft_memchr", "parent": 1006, "children": [], "start_point": {"row": 166, "column": 10}, "end_point": {"row": 166, "column": 19}}, {"id": 1008, "type": "parameter_list", "text": "(void const *s, int c, size_t n)", "parent": 1006, "children": [1009, 1014, 1017], "start_point": {"row": 166, "column": 19}, "end_point": {"row": 166, "column": 51}}, {"id": 1009, "type": "parameter_declaration", "text": "void const *s", "parent": 1008, "children": [1010, 1011], "start_point": {"row": 166, "column": 20}, "end_point": {"row": 166, "column": 33}}, {"id": 1010, "type": "primitive_type", "text": "void", "parent": 1009, "children": [], "start_point": {"row": 166, "column": 20}, "end_point": {"row": 166, "column": 24}}, {"id": 1011, "type": "pointer_declarator", "text": "*s", "parent": 1009, "children": [1012, 1013], "start_point": {"row": 166, "column": 31}, "end_point": {"row": 166, "column": 33}}, {"id": 1012, "type": "*", "text": "*", "parent": 1011, "children": [], "start_point": {"row": 166, "column": 31}, "end_point": {"row": 166, "column": 32}}, {"id": 1013, "type": "identifier", "text": "s", "parent": 1011, "children": [], "start_point": {"row": 166, "column": 32}, "end_point": {"row": 166, "column": 33}}, {"id": 1014, "type": "parameter_declaration", "text": "int c", "parent": 1008, "children": [1015, 1016], "start_point": {"row": 166, "column": 35}, "end_point": {"row": 166, "column": 40}}, {"id": 1015, "type": "primitive_type", "text": "int", "parent": 1014, "children": [], "start_point": {"row": 166, "column": 35}, "end_point": {"row": 166, "column": 38}}, {"id": 1016, "type": "identifier", "text": "c", "parent": 1014, "children": [], "start_point": {"row": 166, "column": 39}, "end_point": {"row": 166, "column": 40}}, {"id": 1017, "type": "parameter_declaration", "text": "size_t n", "parent": 1008, "children": [1018, 1019], "start_point": {"row": 166, "column": 42}, "end_point": {"row": 166, "column": 50}}, {"id": 1018, "type": "primitive_type", "text": "size_t", "parent": 1017, "children": [], "start_point": {"row": 166, "column": 42}, "end_point": {"row": 166, "column": 48}}, {"id": 1019, "type": "identifier", "text": "n", "parent": 1017, "children": [], "start_point": {"row": 166, "column": 49}, "end_point": {"row": 166, "column": 50}}, {"id": 1020, "type": "type_definition", "text": "typedef struct\t\t\ts_list\n{\n\tstruct s_list\t\t*next;\n\tvoid\t\t\t\t*content;\n}\t\t\t\t\t\tt_list;", "parent": 0, "children": [1021, 1022, 1037], "start_point": {"row": 172, "column": 0}, "end_point": {"row": 176, "column": 14}}, {"id": 1021, "type": "typedef", "text": "typedef", "parent": 1020, "children": [], "start_point": {"row": 172, "column": 0}, "end_point": {"row": 172, "column": 7}}, {"id": 1022, "type": "struct_specifier", "text": "struct\t\t\ts_list\n{\n\tstruct s_list\t\t*next;\n\tvoid\t\t\t\t*content;\n}", "parent": 1020, "children": [1023, 1024], "start_point": {"row": 172, "column": 8}, "end_point": {"row": 176, "column": 1}}, {"id": 1023, "type": "struct", "text": "struct", "parent": 1022, "children": [], "start_point": {"row": 172, "column": 8}, "end_point": {"row": 172, "column": 14}}, {"id": 1024, "type": "type_identifier", "text": "s_list", "parent": 1022, "children": [], "start_point": {"row": 172, "column": 17}, "end_point": {"row": 172, "column": 23}}, {"id": 1025, "type": "field_declaration", "text": "struct s_list\t\t*next;", "parent": 1022, "children": [1026, 1029], "start_point": {"row": 174, "column": 1}, "end_point": {"row": 174, "column": 22}}, {"id": 1026, "type": "struct_specifier", "text": "struct s_list", "parent": 1025, "children": [1027, 1028], "start_point": {"row": 174, "column": 1}, "end_point": {"row": 174, "column": 14}}, {"id": 1027, "type": "struct", "text": "struct", "parent": 1026, "children": [], "start_point": {"row": 174, "column": 1}, "end_point": {"row": 174, "column": 7}}, {"id": 1028, "type": "type_identifier", "text": "s_list", "parent": 1026, "children": [], "start_point": {"row": 174, "column": 8}, "end_point": {"row": 174, "column": 14}}, {"id": 1029, "type": "pointer_declarator", "text": "*next", "parent": 1025, "children": [1030, 1031], "start_point": {"row": 174, "column": 16}, "end_point": {"row": 174, "column": 21}}, {"id": 1030, "type": "*", "text": "*", "parent": 1029, "children": [], "start_point": {"row": 174, "column": 16}, "end_point": {"row": 174, "column": 17}}, {"id": 1031, "type": "field_identifier", "text": "next", "parent": 1029, "children": [], "start_point": {"row": 174, "column": 17}, "end_point": {"row": 174, "column": 21}}, {"id": 1032, "type": "field_declaration", "text": "void\t\t\t\t*content;", "parent": 1022, "children": [1033, 1034], "start_point": {"row": 175, "column": 1}, "end_point": {"row": 175, "column": 18}}, {"id": 1033, "type": "primitive_type", "text": "void", "parent": 1032, "children": [], "start_point": {"row": 175, "column": 1}, "end_point": {"row": 175, "column": 5}}, {"id": 1034, "type": "pointer_declarator", "text": "*content", "parent": 1032, "children": [1035, 1036], "start_point": {"row": 175, "column": 9}, "end_point": {"row": 175, "column": 17}}, {"id": 1035, "type": "*", "text": "*", "parent": 1034, "children": [], "start_point": {"row": 175, "column": 9}, "end_point": {"row": 175, "column": 10}}, {"id": 1036, "type": "field_identifier", "text": "content", "parent": 1034, "children": [], "start_point": {"row": 175, "column": 10}, "end_point": {"row": 175, "column": 17}}, {"id": 1037, "type": "type_identifier", "text": "t_list", "parent": 1020, "children": [], "start_point": {"row": 176, "column": 7}, "end_point": {"row": 176, "column": 13}}, {"id": 1038, "type": "declaration", "text": "t_list\t\t\t\t\t*ft_lstnew(void const *content);", "parent": 0, "children": [1039, 1040], "start_point": {"row": 178, "column": 0}, "end_point": {"row": 178, "column": 43}}, {"id": 1039, "type": "type_identifier", "text": "t_list", "parent": 1038, "children": [], "start_point": {"row": 178, "column": 0}, "end_point": {"row": 178, "column": 6}}, {"id": 1040, "type": "pointer_declarator", "text": "*ft_lstnew(void const *content)", "parent": 1038, "children": [1041, 1042], "start_point": {"row": 178, "column": 11}, "end_point": {"row": 178, "column": 42}}, {"id": 1041, "type": "*", "text": "*", "parent": 1040, "children": [], "start_point": {"row": 178, "column": 11}, "end_point": {"row": 178, "column": 12}}, {"id": 1042, "type": "function_declarator", "text": "ft_lstnew(void const *content)", "parent": 1040, "children": [1043, 1044], "start_point": {"row": 178, "column": 12}, "end_point": {"row": 178, "column": 42}}, {"id": 1043, "type": "identifier", "text": "ft_lstnew", "parent": 1042, "children": [], "start_point": {"row": 178, "column": 12}, "end_point": {"row": 178, "column": 21}}, {"id": 1044, "type": "parameter_list", "text": "(void const *content)", "parent": 1042, "children": [1045], "start_point": {"row": 178, "column": 21}, "end_point": {"row": 178, "column": 42}}, {"id": 1045, "type": "parameter_declaration", "text": "void const *content", "parent": 1044, "children": [1046, 1047], "start_point": {"row": 178, "column": 22}, "end_point": {"row": 178, "column": 41}}, {"id": 1046, "type": "primitive_type", "text": "void", "parent": 1045, "children": [], "start_point": {"row": 178, "column": 22}, "end_point": {"row": 178, "column": 26}}, {"id": 1047, "type": "pointer_declarator", "text": "*content", "parent": 1045, "children": [1048, 1049], "start_point": {"row": 178, "column": 33}, "end_point": {"row": 178, "column": 41}}, {"id": 1048, "type": "*", "text": "*", "parent": 1047, "children": [], "start_point": {"row": 178, "column": 33}, "end_point": {"row": 178, "column": 34}}, {"id": 1049, "type": "identifier", "text": "content", "parent": 1047, "children": [], "start_point": {"row": 178, "column": 34}, "end_point": {"row": 178, "column": 41}}, {"id": 1050, "type": "declaration", "text": "void\t\t\t\t\tft_lstadd(t_list **alst, void *n);", "parent": 0, "children": [1051, 1052], "start_point": {"row": 179, "column": 0}, "end_point": {"row": 179, "column": 43}}, {"id": 1051, "type": "primitive_type", "text": "void", "parent": 1050, "children": [], "start_point": {"row": 179, "column": 0}, "end_point": {"row": 179, "column": 4}}, {"id": 1052, "type": "function_declarator", "text": "ft_lstadd(t_list **alst, void *n)", "parent": 1050, "children": [1053, 1054], "start_point": {"row": 179, "column": 9}, "end_point": {"row": 179, "column": 42}}, {"id": 1053, "type": "identifier", "text": "ft_lstadd", "parent": 1052, "children": [], "start_point": {"row": 179, "column": 9}, "end_point": {"row": 179, "column": 18}}, {"id": 1054, "type": "parameter_list", "text": "(t_list **alst, void *n)", "parent": 1052, "children": [1055, 1062], "start_point": {"row": 179, "column": 18}, "end_point": {"row": 179, "column": 42}}, {"id": 1055, "type": "parameter_declaration", "text": "t_list **alst", "parent": 1054, "children": [1056, 1057], "start_point": {"row": 179, "column": 19}, "end_point": {"row": 179, "column": 32}}, {"id": 1056, "type": "type_identifier", "text": "t_list", "parent": 1055, "children": [], "start_point": {"row": 179, "column": 19}, "end_point": {"row": 179, "column": 25}}, {"id": 1057, "type": "pointer_declarator", "text": "**alst", "parent": 1055, "children": [1058, 1059], "start_point": {"row": 179, "column": 26}, "end_point": {"row": 179, "column": 32}}, {"id": 1058, "type": "*", "text": "*", "parent": 1057, "children": [], "start_point": {"row": 179, "column": 26}, "end_point": {"row": 179, "column": 27}}, {"id": 1059, "type": "pointer_declarator", "text": "*alst", "parent": 1057, "children": [1060, 1061], "start_point": {"row": 179, "column": 27}, "end_point": {"row": 179, "column": 32}}, {"id": 1060, "type": "*", "text": "*", "parent": 1059, "children": [], "start_point": {"row": 179, "column": 27}, "end_point": {"row": 179, "column": 28}}, {"id": 1061, "type": "identifier", "text": "alst", "parent": 1059, "children": [], "start_point": {"row": 179, "column": 28}, "end_point": {"row": 179, "column": 32}}, {"id": 1062, "type": "parameter_declaration", "text": "void *n", "parent": 1054, "children": [1063, 1064], "start_point": {"row": 179, "column": 34}, "end_point": {"row": 179, "column": 41}}, {"id": 1063, "type": "primitive_type", "text": "void", "parent": 1062, "children": [], "start_point": {"row": 179, "column": 34}, "end_point": {"row": 179, "column": 38}}, {"id": 1064, "type": "pointer_declarator", "text": "*n", "parent": 1062, "children": [1065, 1066], "start_point": {"row": 179, "column": 39}, "end_point": {"row": 179, "column": 41}}, {"id": 1065, "type": "*", "text": "*", "parent": 1064, "children": [], "start_point": {"row": 179, "column": 39}, "end_point": {"row": 179, "column": 40}}, {"id": 1066, "type": "identifier", "text": "n", "parent": 1064, "children": [], "start_point": {"row": 179, "column": 40}, "end_point": {"row": 179, "column": 41}}, {"id": 1067, "type": "declaration", "text": "void\t\t\t\t\tft_lstaddend(t_list **alst, void *n);", "parent": 0, "children": [1068, 1069], "start_point": {"row": 180, "column": 0}, "end_point": {"row": 180, "column": 46}}, {"id": 1068, "type": "primitive_type", "text": "void", "parent": 1067, "children": [], "start_point": {"row": 180, "column": 0}, "end_point": {"row": 180, "column": 4}}, {"id": 1069, "type": "function_declarator", "text": "ft_lstaddend(t_list **alst, void *n)", "parent": 1067, "children": [1070, 1071], "start_point": {"row": 180, "column": 9}, "end_point": {"row": 180, "column": 45}}, {"id": 1070, "type": "identifier", "text": "ft_lstaddend", "parent": 1069, "children": [], "start_point": {"row": 180, "column": 9}, "end_point": {"row": 180, "column": 21}}, {"id": 1071, "type": "parameter_list", "text": "(t_list **alst, void *n)", "parent": 1069, "children": [1072, 1079], "start_point": {"row": 180, "column": 21}, "end_point": {"row": 180, "column": 45}}, {"id": 1072, "type": "parameter_declaration", "text": "t_list **alst", "parent": 1071, "children": [1073, 1074], "start_point": {"row": 180, "column": 22}, "end_point": {"row": 180, "column": 35}}, {"id": 1073, "type": "type_identifier", "text": "t_list", "parent": 1072, "children": [], "start_point": {"row": 180, "column": 22}, "end_point": {"row": 180, "column": 28}}, {"id": 1074, "type": "pointer_declarator", "text": "**alst", "parent": 1072, "children": [1075, 1076], "start_point": {"row": 180, "column": 29}, "end_point": {"row": 180, "column": 35}}, {"id": 1075, "type": "*", "text": "*", "parent": 1074, "children": [], "start_point": {"row": 180, "column": 29}, "end_point": {"row": 180, "column": 30}}, {"id": 1076, "type": "pointer_declarator", "text": "*alst", "parent": 1074, "children": [1077, 1078], "start_point": {"row": 180, "column": 30}, "end_point": {"row": 180, "column": 35}}, {"id": 1077, "type": "*", "text": "*", "parent": 1076, "children": [], "start_point": {"row": 180, "column": 30}, "end_point": {"row": 180, "column": 31}}, {"id": 1078, "type": "identifier", "text": "alst", "parent": 1076, "children": [], "start_point": {"row": 180, "column": 31}, "end_point": {"row": 180, "column": 35}}, {"id": 1079, "type": "parameter_declaration", "text": "void *n", "parent": 1071, "children": [1080, 1081], "start_point": {"row": 180, "column": 37}, "end_point": {"row": 180, "column": 44}}, {"id": 1080, "type": "primitive_type", "text": "void", "parent": 1079, "children": [], "start_point": {"row": 180, "column": 37}, "end_point": {"row": 180, "column": 41}}, {"id": 1081, "type": "pointer_declarator", "text": "*n", "parent": 1079, "children": [1082, 1083], "start_point": {"row": 180, "column": 42}, "end_point": {"row": 180, "column": 44}}, {"id": 1082, "type": "*", "text": "*", "parent": 1081, "children": [], "start_point": {"row": 180, "column": 42}, "end_point": {"row": 180, "column": 43}}, {"id": 1083, "type": "identifier", "text": "n", "parent": 1081, "children": [], "start_point": {"row": 180, "column": 43}, "end_point": {"row": 180, "column": 44}}, {"id": 1084, "type": "declaration", "text": "void\t\t\t\t\tft_lstdel(t_list **alst, void (*del)(void *));", "parent": 0, "children": [1085, 1086], "start_point": {"row": 182, "column": 0}, "end_point": {"row": 182, "column": 55}}, {"id": 1085, "type": "primitive_type", "text": "void", "parent": 1084, "children": [], "start_point": {"row": 182, "column": 0}, "end_point": {"row": 182, "column": 4}}, {"id": 1086, "type": "function_declarator", "text": "ft_lstdel(t_list **alst, void (*del)(void *))", "parent": 1084, "children": [1087, 1088], "start_point": {"row": 182, "column": 9}, "end_point": {"row": 182, "column": 54}}, {"id": 1087, "type": "identifier", "text": "ft_lstdel", "parent": 1086, "children": [], "start_point": {"row": 182, "column": 9}, "end_point": {"row": 182, "column": 18}}, {"id": 1088, "type": "parameter_list", "text": "(t_list **alst, void (*del)(void *))", "parent": 1086, "children": [1089, 1096], "start_point": {"row": 182, "column": 18}, "end_point": {"row": 182, "column": 54}}, {"id": 1089, "type": "parameter_declaration", "text": "t_list **alst", "parent": 1088, "children": [1090, 1091], "start_point": {"row": 182, "column": 19}, "end_point": {"row": 182, "column": 32}}, {"id": 1090, "type": "type_identifier", "text": "t_list", "parent": 1089, "children": [], "start_point": {"row": 182, "column": 19}, "end_point": {"row": 182, "column": 25}}, {"id": 1091, "type": "pointer_declarator", "text": "**alst", "parent": 1089, "children": [1092, 1093], "start_point": {"row": 182, "column": 26}, "end_point": {"row": 182, "column": 32}}, {"id": 1092, "type": "*", "text": "*", "parent": 1091, "children": [], "start_point": {"row": 182, "column": 26}, "end_point": {"row": 182, "column": 27}}, {"id": 1093, "type": "pointer_declarator", "text": "*alst", "parent": 1091, "children": [1094, 1095], "start_point": {"row": 182, "column": 27}, "end_point": {"row": 182, "column": 32}}, {"id": 1094, "type": "*", "text": "*", "parent": 1093, "children": [], "start_point": {"row": 182, "column": 27}, "end_point": {"row": 182, "column": 28}}, {"id": 1095, "type": "identifier", "text": "alst", "parent": 1093, "children": [], "start_point": {"row": 182, "column": 28}, "end_point": {"row": 182, "column": 32}}, {"id": 1096, "type": "parameter_declaration", "text": "void (*del)(void *)", "parent": 1088, "children": [1097, 1098], "start_point": {"row": 182, "column": 34}, "end_point": {"row": 182, "column": 53}}, {"id": 1097, "type": "primitive_type", "text": "void", "parent": 1096, "children": [], "start_point": {"row": 182, "column": 34}, "end_point": {"row": 182, "column": 38}}, {"id": 1098, "type": "function_declarator", "text": "(*del)(void *)", "parent": 1096, "children": [1099, 1103], "start_point": {"row": 182, "column": 39}, "end_point": {"row": 182, "column": 53}}, {"id": 1099, "type": "parenthesized_declarator", "text": "(*del)", "parent": 1098, "children": [1100], "start_point": {"row": 182, "column": 39}, "end_point": {"row": 182, "column": 45}}, {"id": 1100, "type": "pointer_declarator", "text": "*del", "parent": 1099, "children": [1101, 1102], "start_point": {"row": 182, "column": 40}, "end_point": {"row": 182, "column": 44}}, {"id": 1101, "type": "*", "text": "*", "parent": 1100, "children": [], "start_point": {"row": 182, "column": 40}, "end_point": {"row": 182, "column": 41}}, {"id": 1102, "type": "identifier", "text": "del", "parent": 1100, "children": [], "start_point": {"row": 182, "column": 41}, "end_point": {"row": 182, "column": 44}}, {"id": 1103, "type": "parameter_list", "text": "(void *)", "parent": 1098, "children": [1104], "start_point": {"row": 182, "column": 45}, "end_point": {"row": 182, "column": 53}}, {"id": 1104, "type": "parameter_declaration", "text": "void *", "parent": 1103, "children": [1105, 1106], "start_point": {"row": 182, "column": 46}, "end_point": {"row": 182, "column": 52}}, {"id": 1105, "type": "primitive_type", "text": "void", "parent": 1104, "children": [], "start_point": {"row": 182, "column": 46}, "end_point": {"row": 182, "column": 50}}, {"id": 1106, "type": "abstract_pointer_declarator", "text": "*", "parent": 1104, "children": [1107], "start_point": {"row": 182, "column": 51}, "end_point": {"row": 182, "column": 52}}, {"id": 1107, "type": "*", "text": "*", "parent": 1106, "children": [], "start_point": {"row": 182, "column": 51}, "end_point": {"row": 182, "column": 52}}, {"id": 1108, "type": "declaration", "text": "void\t\t\t\t\tft_lstdel_if(t_list **alst, void (*del)(), \\\n\t\t\t\t\t\t\tvoid *ref, int (*cmp)());", "parent": 0, "children": [1109, 1110], "start_point": {"row": 183, "column": 0}, "end_point": {"row": 184, "column": 32}}, {"id": 1109, "type": "primitive_type", "text": "void", "parent": 1108, "children": [], "start_point": {"row": 183, "column": 0}, "end_point": {"row": 183, "column": 4}}, {"id": 1110, "type": "function_declarator", "text": "ft_lstdel_if(t_list **alst, void (*del)(), \\\n\t\t\t\t\t\t\tvoid *ref, int (*cmp)())", "parent": 1108, "children": [1111, 1112], "start_point": {"row": 183, "column": 9}, "end_point": {"row": 184, "column": 31}}, {"id": 1111, "type": "identifier", "text": "ft_lstdel_if", "parent": 1110, "children": [], "start_point": {"row": 183, "column": 9}, "end_point": {"row": 183, "column": 21}}, {"id": 1112, "type": "parameter_list", "text": "(t_list **alst, void (*del)(), \\\n\t\t\t\t\t\t\tvoid *ref, int (*cmp)())", "parent": 1110, "children": [1113, 1120, 1128, 1133], "start_point": {"row": 183, "column": 21}, "end_point": {"row": 184, "column": 31}}, {"id": 1113, "type": "parameter_declaration", "text": "t_list **alst", "parent": 1112, "children": [1114, 1115], "start_point": {"row": 183, "column": 22}, "end_point": {"row": 183, "column": 35}}, {"id": 1114, "type": "type_identifier", "text": "t_list", "parent": 1113, "children": [], "start_point": {"row": 183, "column": 22}, "end_point": {"row": 183, "column": 28}}, {"id": 1115, "type": "pointer_declarator", "text": "**alst", "parent": 1113, "children": [1116, 1117], "start_point": {"row": 183, "column": 29}, "end_point": {"row": 183, "column": 35}}, {"id": 1116, "type": "*", "text": "*", "parent": 1115, "children": [], "start_point": {"row": 183, "column": 29}, "end_point": {"row": 183, "column": 30}}, {"id": 1117, "type": "pointer_declarator", "text": "*alst", "parent": 1115, "children": [1118, 1119], "start_point": {"row": 183, "column": 30}, "end_point": {"row": 183, "column": 35}}, {"id": 1118, "type": "*", "text": "*", "parent": 1117, "children": [], "start_point": {"row": 183, "column": 30}, "end_point": {"row": 183, "column": 31}}, {"id": 1119, "type": "identifier", "text": "alst", "parent": 1117, "children": [], "start_point": {"row": 183, "column": 31}, "end_point": {"row": 183, "column": 35}}, {"id": 1120, "type": "parameter_declaration", "text": "void (*del)()", "parent": 1112, "children": [1121, 1122], "start_point": {"row": 183, "column": 37}, "end_point": {"row": 183, "column": 50}}, {"id": 1121, "type": "primitive_type", "text": "void", "parent": 1120, "children": [], "start_point": {"row": 183, "column": 37}, "end_point": {"row": 183, "column": 41}}, {"id": 1122, "type": "function_declarator", "text": "(*del)()", "parent": 1120, "children": [1123, 1127], "start_point": {"row": 183, "column": 42}, "end_point": {"row": 183, "column": 50}}, {"id": 1123, "type": "parenthesized_declarator", "text": "(*del)", "parent": 1122, "children": [1124], "start_point": {"row": 183, "column": 42}, "end_point": {"row": 183, "column": 48}}, {"id": 1124, "type": "pointer_declarator", "text": "*del", "parent": 1123, "children": [1125, 1126], "start_point": {"row": 183, "column": 43}, "end_point": {"row": 183, "column": 47}}, {"id": 1125, "type": "*", "text": "*", "parent": 1124, "children": [], "start_point": {"row": 183, "column": 43}, "end_point": {"row": 183, "column": 44}}, {"id": 1126, "type": "identifier", "text": "del", "parent": 1124, "children": [], "start_point": {"row": 183, "column": 44}, "end_point": {"row": 183, "column": 47}}, {"id": 1127, "type": "parameter_list", "text": "()", "parent": 1122, "children": [], "start_point": {"row": 183, "column": 48}, "end_point": {"row": 183, "column": 50}}, {"id": 1128, "type": "parameter_declaration", "text": "void *ref", "parent": 1112, "children": [1129, 1130], "start_point": {"row": 184, "column": 7}, "end_point": {"row": 184, "column": 16}}, {"id": 1129, "type": "primitive_type", "text": "void", "parent": 1128, "children": [], "start_point": {"row": 184, "column": 7}, "end_point": {"row": 184, "column": 11}}, {"id": 1130, "type": "pointer_declarator", "text": "*ref", "parent": 1128, "children": [1131, 1132], "start_point": {"row": 184, "column": 12}, "end_point": {"row": 184, "column": 16}}, {"id": 1131, "type": "*", "text": "*", "parent": 1130, "children": [], "start_point": {"row": 184, "column": 12}, "end_point": {"row": 184, "column": 13}}, {"id": 1132, "type": "identifier", "text": "ref", "parent": 1130, "children": [], "start_point": {"row": 184, "column": 13}, "end_point": {"row": 184, "column": 16}}, {"id": 1133, "type": "parameter_declaration", "text": "int (*cmp)()", "parent": 1112, "children": [1134, 1135], "start_point": {"row": 184, "column": 18}, "end_point": {"row": 184, "column": 30}}, {"id": 1134, "type": "primitive_type", "text": "int", "parent": 1133, "children": [], "start_point": {"row": 184, "column": 18}, "end_point": {"row": 184, "column": 21}}, {"id": 1135, "type": "function_declarator", "text": "(*cmp)()", "parent": 1133, "children": [1136, 1140], "start_point": {"row": 184, "column": 22}, "end_point": {"row": 184, "column": 30}}, {"id": 1136, "type": "parenthesized_declarator", "text": "(*cmp)", "parent": 1135, "children": [1137], "start_point": {"row": 184, "column": 22}, "end_point": {"row": 184, "column": 28}}, {"id": 1137, "type": "pointer_declarator", "text": "*cmp", "parent": 1136, "children": [1138, 1139], "start_point": {"row": 184, "column": 23}, "end_point": {"row": 184, "column": 27}}, {"id": 1138, "type": "*", "text": "*", "parent": 1137, "children": [], "start_point": {"row": 184, "column": 23}, "end_point": {"row": 184, "column": 24}}, {"id": 1139, "type": "identifier", "text": "cmp", "parent": 1137, "children": [], "start_point": {"row": 184, "column": 24}, "end_point": {"row": 184, "column": 27}}, {"id": 1140, "type": "parameter_list", "text": "()", "parent": 1135, "children": [], "start_point": {"row": 184, "column": 28}, "end_point": {"row": 184, "column": 30}}, {"id": 1141, "type": "declaration", "text": "void\t\t\t\t\tft_lstdelone(t_list **alst, void (*del)(void *));", "parent": 0, "children": [1142, 1143], "start_point": {"row": 185, "column": 0}, "end_point": {"row": 185, "column": 58}}, {"id": 1142, "type": "primitive_type", "text": "void", "parent": 1141, "children": [], "start_point": {"row": 185, "column": 0}, "end_point": {"row": 185, "column": 4}}, {"id": 1143, "type": "function_declarator", "text": "ft_lstdelone(t_list **alst, void (*del)(void *))", "parent": 1141, "children": [1144, 1145], "start_point": {"row": 185, "column": 9}, "end_point": {"row": 185, "column": 57}}, {"id": 1144, "type": "identifier", "text": "ft_lstdelone", "parent": 1143, "children": [], "start_point": {"row": 185, "column": 9}, "end_point": {"row": 185, "column": 21}}, {"id": 1145, "type": "parameter_list", "text": "(t_list **alst, void (*del)(void *))", "parent": 1143, "children": [1146, 1153], "start_point": {"row": 185, "column": 21}, "end_point": {"row": 185, "column": 57}}, {"id": 1146, "type": "parameter_declaration", "text": "t_list **alst", "parent": 1145, "children": [1147, 1148], "start_point": {"row": 185, "column": 22}, "end_point": {"row": 185, "column": 35}}, {"id": 1147, "type": "type_identifier", "text": "t_list", "parent": 1146, "children": [], "start_point": {"row": 185, "column": 22}, "end_point": {"row": 185, "column": 28}}, {"id": 1148, "type": "pointer_declarator", "text": "**alst", "parent": 1146, "children": [1149, 1150], "start_point": {"row": 185, "column": 29}, "end_point": {"row": 185, "column": 35}}, {"id": 1149, "type": "*", "text": "*", "parent": 1148, "children": [], "start_point": {"row": 185, "column": 29}, "end_point": {"row": 185, "column": 30}}, {"id": 1150, "type": "pointer_declarator", "text": "*alst", "parent": 1148, "children": [1151, 1152], "start_point": {"row": 185, "column": 30}, "end_point": {"row": 185, "column": 35}}, {"id": 1151, "type": "*", "text": "*", "parent": 1150, "children": [], "start_point": {"row": 185, "column": 30}, "end_point": {"row": 185, "column": 31}}, {"id": 1152, "type": "identifier", "text": "alst", "parent": 1150, "children": [], "start_point": {"row": 185, "column": 31}, "end_point": {"row": 185, "column": 35}}, {"id": 1153, "type": "parameter_declaration", "text": "void (*del)(void *)", "parent": 1145, "children": [1154, 1155], "start_point": {"row": 185, "column": 37}, "end_point": {"row": 185, "column": 56}}, {"id": 1154, "type": "primitive_type", "text": "void", "parent": 1153, "children": [], "start_point": {"row": 185, "column": 37}, "end_point": {"row": 185, "column": 41}}, {"id": 1155, "type": "function_declarator", "text": "(*del)(void *)", "parent": 1153, "children": [1156, 1160], "start_point": {"row": 185, "column": 42}, "end_point": {"row": 185, "column": 56}}, {"id": 1156, "type": "parenthesized_declarator", "text": "(*del)", "parent": 1155, "children": [1157], "start_point": {"row": 185, "column": 42}, "end_point": {"row": 185, "column": 48}}, {"id": 1157, "type": "pointer_declarator", "text": "*del", "parent": 1156, "children": [1158, 1159], "start_point": {"row": 185, "column": 43}, "end_point": {"row": 185, "column": 47}}, {"id": 1158, "type": "*", "text": "*", "parent": 1157, "children": [], "start_point": {"row": 185, "column": 43}, "end_point": {"row": 185, "column": 44}}, {"id": 1159, "type": "identifier", "text": "del", "parent": 1157, "children": [], "start_point": {"row": 185, "column": 44}, "end_point": {"row": 185, "column": 47}}, {"id": 1160, "type": "parameter_list", "text": "(void *)", "parent": 1155, "children": [1161], "start_point": {"row": 185, "column": 48}, "end_point": {"row": 185, "column": 56}}, {"id": 1161, "type": "parameter_declaration", "text": "void *", "parent": 1160, "children": [1162, 1163], "start_point": {"row": 185, "column": 49}, "end_point": {"row": 185, "column": 55}}, {"id": 1162, "type": "primitive_type", "text": "void", "parent": 1161, "children": [], "start_point": {"row": 185, "column": 49}, "end_point": {"row": 185, "column": 53}}, {"id": 1163, "type": "abstract_pointer_declarator", "text": "*", "parent": 1161, "children": [1164], "start_point": {"row": 185, "column": 54}, "end_point": {"row": 185, "column": 55}}, {"id": 1164, "type": "*", "text": "*", "parent": 1163, "children": [], "start_point": {"row": 185, "column": 54}, "end_point": {"row": 185, "column": 55}}, {"id": 1165, "type": "declaration", "text": "size_t\t\t\t\t\tft_lstcount(void *alst);", "parent": 0, "children": [1166, 1167], "start_point": {"row": 187, "column": 0}, "end_point": {"row": 187, "column": 35}}, {"id": 1166, "type": "primitive_type", "text": "size_t", "parent": 1165, "children": [], "start_point": {"row": 187, "column": 0}, "end_point": {"row": 187, "column": 6}}, {"id": 1167, "type": "function_declarator", "text": "ft_lstcount(void *alst)", "parent": 1165, "children": [1168, 1169], "start_point": {"row": 187, "column": 11}, "end_point": {"row": 187, "column": 34}}, {"id": 1168, "type": "identifier", "text": "ft_lstcount", "parent": 1167, "children": [], "start_point": {"row": 187, "column": 11}, "end_point": {"row": 187, "column": 22}}, {"id": 1169, "type": "parameter_list", "text": "(void *alst)", "parent": 1167, "children": [1170], "start_point": {"row": 187, "column": 22}, "end_point": {"row": 187, "column": 34}}, {"id": 1170, "type": "parameter_declaration", "text": "void *alst", "parent": 1169, "children": [1171, 1172], "start_point": {"row": 187, "column": 23}, "end_point": {"row": 187, "column": 33}}, {"id": 1171, "type": "primitive_type", "text": "void", "parent": 1170, "children": [], "start_point": {"row": 187, "column": 23}, "end_point": {"row": 187, "column": 27}}, {"id": 1172, "type": "pointer_declarator", "text": "*alst", "parent": 1170, "children": [1173, 1174], "start_point": {"row": 187, "column": 28}, "end_point": {"row": 187, "column": 33}}, {"id": 1173, "type": "*", "text": "*", "parent": 1172, "children": [], "start_point": {"row": 187, "column": 28}, "end_point": {"row": 187, "column": 29}}, {"id": 1174, "type": "identifier", "text": "alst", "parent": 1172, "children": [], "start_point": {"row": 187, "column": 29}, "end_point": {"row": 187, "column": 33}}, {"id": 1175, "type": "declaration", "text": "void\t\t\t\t\tft_lstiter(t_list *lst, void (*f)(t_list *elem));", "parent": 0, "children": [1176, 1177], "start_point": {"row": 189, "column": 0}, "end_point": {"row": 189, "column": 58}}, {"id": 1176, "type": "primitive_type", "text": "void", "parent": 1175, "children": [], "start_point": {"row": 189, "column": 0}, "end_point": {"row": 189, "column": 4}}, {"id": 1177, "type": "function_declarator", "text": "ft_lstiter(t_list *lst, void (*f)(t_list *elem))", "parent": 1175, "children": [1178, 1179], "start_point": {"row": 189, "column": 9}, "end_point": {"row": 189, "column": 57}}, {"id": 1178, "type": "identifier", "text": "ft_lstiter", "parent": 1177, "children": [], "start_point": {"row": 189, "column": 9}, "end_point": {"row": 189, "column": 19}}, {"id": 1179, "type": "parameter_list", "text": "(t_list *lst, void (*f)(t_list *elem))", "parent": 1177, "children": [1180, 1185], "start_point": {"row": 189, "column": 19}, "end_point": {"row": 189, "column": 57}}, {"id": 1180, "type": "parameter_declaration", "text": "t_list *lst", "parent": 1179, "children": [1181, 1182], "start_point": {"row": 189, "column": 20}, "end_point": {"row": 189, "column": 31}}, {"id": 1181, "type": "type_identifier", "text": "t_list", "parent": 1180, "children": [], "start_point": {"row": 189, "column": 20}, "end_point": {"row": 189, "column": 26}}, {"id": 1182, "type": "pointer_declarator", "text": "*lst", "parent": 1180, "children": [1183, 1184], "start_point": {"row": 189, "column": 27}, "end_point": {"row": 189, "column": 31}}, {"id": 1183, "type": "*", "text": "*", "parent": 1182, "children": [], "start_point": {"row": 189, "column": 27}, "end_point": {"row": 189, "column": 28}}, {"id": 1184, "type": "identifier", "text": "lst", "parent": 1182, "children": [], "start_point": {"row": 189, "column": 28}, "end_point": {"row": 189, "column": 31}}, {"id": 1185, "type": "parameter_declaration", "text": "void (*f)(t_list *elem)", "parent": 1179, "children": [1186, 1187], "start_point": {"row": 189, "column": 33}, "end_point": {"row": 189, "column": 56}}, {"id": 1186, "type": "primitive_type", "text": "void", "parent": 1185, "children": [], "start_point": {"row": 189, "column": 33}, "end_point": {"row": 189, "column": 37}}, {"id": 1187, "type": "function_declarator", "text": "(*f)(t_list *elem)", "parent": 1185, "children": [1188, 1192], "start_point": {"row": 189, "column": 38}, "end_point": {"row": 189, "column": 56}}, {"id": 1188, "type": "parenthesized_declarator", "text": "(*f)", "parent": 1187, "children": [1189], "start_point": {"row": 189, "column": 38}, "end_point": {"row": 189, "column": 42}}, {"id": 1189, "type": "pointer_declarator", "text": "*f", "parent": 1188, "children": [1190, 1191], "start_point": {"row": 189, "column": 39}, "end_point": {"row": 189, "column": 41}}, {"id": 1190, "type": "*", "text": "*", "parent": 1189, "children": [], "start_point": {"row": 189, "column": 39}, "end_point": {"row": 189, "column": 40}}, {"id": 1191, "type": "identifier", "text": "f", "parent": 1189, "children": [], "start_point": {"row": 189, "column": 40}, "end_point": {"row": 189, "column": 41}}, {"id": 1192, "type": "parameter_list", "text": "(t_list *elem)", "parent": 1187, "children": [1193], "start_point": {"row": 189, "column": 42}, "end_point": {"row": 189, "column": 56}}, {"id": 1193, "type": "parameter_declaration", "text": "t_list *elem", "parent": 1192, "children": [1194, 1195], "start_point": {"row": 189, "column": 43}, "end_point": {"row": 189, "column": 55}}, {"id": 1194, "type": "type_identifier", "text": "t_list", "parent": 1193, "children": [], "start_point": {"row": 189, "column": 43}, "end_point": {"row": 189, "column": 49}}, {"id": 1195, "type": "pointer_declarator", "text": "*elem", "parent": 1193, "children": [1196, 1197], "start_point": {"row": 189, "column": 50}, "end_point": {"row": 189, "column": 55}}, {"id": 1196, "type": "*", "text": "*", "parent": 1195, "children": [], "start_point": {"row": 189, "column": 50}, "end_point": {"row": 189, "column": 51}}, {"id": 1197, "type": "identifier", "text": "elem", "parent": 1195, "children": [], "start_point": {"row": 189, "column": 51}, "end_point": {"row": 189, "column": 55}}, {"id": 1198, "type": "binary_expression", "text": "t_list\t\t\t\t\t*ft_lstmap(t_list *lst, t_list *(*f)(t_list *elem))", "parent": 0, "children": [1199, 1200, 1201], "start_point": {"row": 190, "column": 0}, "end_point": {"row": 190, "column": 62}}, {"id": 1199, "type": "identifier", "text": "t_list", "parent": 1198, "children": [], "start_point": {"row": 190, "column": 0}, "end_point": {"row": 190, "column": 6}}, {"id": 1200, "type": "*", "text": "*", "parent": 1198, "children": [], "start_point": {"row": 190, "column": 11}, "end_point": {"row": 190, "column": 12}}, {"id": 1201, "type": "call_expression", "text": "ft_lstmap(t_list *lst, t_list *(*f)(t_list *elem))", "parent": 1198, "children": [1202, 1203], "start_point": {"row": 190, "column": 12}, "end_point": {"row": 190, "column": 62}}, {"id": 1202, "type": "identifier", "text": "ft_lstmap", "parent": 1201, "children": [], "start_point": {"row": 190, "column": 12}, "end_point": {"row": 190, "column": 21}}, {"id": 1203, "type": "argument_list", "text": "(t_list *lst, t_list *(*f)(t_list *elem))", "parent": 1201, "children": [1204, 1208], "start_point": {"row": 190, "column": 21}, "end_point": {"row": 190, "column": 62}}, {"id": 1204, "type": "binary_expression", "text": "t_list *lst", "parent": 1203, "children": [1205, 1206, 1207], "start_point": {"row": 190, "column": 22}, "end_point": {"row": 190, "column": 33}}, {"id": 1205, "type": "identifier", "text": "t_list", "parent": 1204, "children": [], "start_point": {"row": 190, "column": 22}, "end_point": {"row": 190, "column": 28}}, {"id": 1206, "type": "*", "text": "*", "parent": 1204, "children": [], "start_point": {"row": 190, "column": 29}, "end_point": {"row": 190, "column": 30}}, {"id": 1207, "type": "identifier", "text": "lst", "parent": 1204, "children": [], "start_point": {"row": 190, "column": 30}, "end_point": {"row": 190, "column": 33}}, {"id": 1208, "type": "binary_expression", "text": "t_list *(*f)(t_list *elem)", "parent": 1203, "children": [1209, 1210, 1211], "start_point": {"row": 190, "column": 35}, "end_point": {"row": 190, "column": 61}}, {"id": 1209, "type": "identifier", "text": "t_list", "parent": 1208, "children": [], "start_point": {"row": 190, "column": 35}, "end_point": {"row": 190, "column": 41}}, {"id": 1210, "type": "*", "text": "*", "parent": 1208, "children": [], "start_point": {"row": 190, "column": 42}, "end_point": {"row": 190, "column": 43}}, {"id": 1211, "type": "call_expression", "text": "(*f)(t_list *elem)", "parent": 1208, "children": [1212, 1216], "start_point": {"row": 190, "column": 43}, "end_point": {"row": 190, "column": 61}}, {"id": 1212, "type": "parenthesized_expression", "text": "(*f)", "parent": 1211, "children": [1213], "start_point": {"row": 190, "column": 43}, "end_point": {"row": 190, "column": 47}}, {"id": 1213, "type": "pointer_expression", "text": "*f", "parent": 1212, "children": [1214, 1215], "start_point": {"row": 190, "column": 44}, "end_point": {"row": 190, "column": 46}}, {"id": 1214, "type": "*", "text": "*", "parent": 1213, "children": [], "start_point": {"row": 190, "column": 44}, "end_point": {"row": 190, "column": 45}}, {"id": 1215, "type": "identifier", "text": "f", "parent": 1213, "children": [], "start_point": {"row": 190, "column": 45}, "end_point": {"row": 190, "column": 46}}, {"id": 1216, "type": "argument_list", "text": "(t_list *elem)", "parent": 1211, "children": [1217], "start_point": {"row": 190, "column": 47}, "end_point": {"row": 190, "column": 61}}, {"id": 1217, "type": "binary_expression", "text": "t_list *elem", "parent": 1216, "children": [1218, 1219, 1220], "start_point": {"row": 190, "column": 48}, "end_point": {"row": 190, "column": 60}}, {"id": 1218, "type": "identifier", "text": "t_list", "parent": 1217, "children": [], "start_point": {"row": 190, "column": 48}, "end_point": {"row": 190, "column": 54}}, {"id": 1219, "type": "*", "text": "*", "parent": 1217, "children": [], "start_point": {"row": 190, "column": 55}, "end_point": {"row": 190, "column": 56}}, {"id": 1220, "type": "identifier", "text": "elem", "parent": 1217, "children": [], "start_point": {"row": 190, "column": 56}, "end_point": {"row": 190, "column": 60}}, {"id": 1221, "type": "declaration", "text": "void\t\t\t\t\tft_lstsort(t_list **alst, int (*f)(t_list *elem1, \\\n\t\t\t\t\t\t\tt_list *elem2));", "parent": 0, "children": [1222, 1223], "start_point": {"row": 191, "column": 0}, "end_point": {"row": 192, "column": 23}}, {"id": 1222, "type": "primitive_type", "text": "void", "parent": 1221, "children": [], "start_point": {"row": 191, "column": 0}, "end_point": {"row": 191, "column": 4}}, {"id": 1223, "type": "function_declarator", "text": "ft_lstsort(t_list **alst, int (*f)(t_list *elem1, \\\n\t\t\t\t\t\t\tt_list *elem2))", "parent": 1221, "children": [1224, 1225], "start_point": {"row": 191, "column": 9}, "end_point": {"row": 192, "column": 22}}, {"id": 1224, "type": "identifier", "text": "ft_lstsort", "parent": 1223, "children": [], "start_point": {"row": 191, "column": 9}, "end_point": {"row": 191, "column": 19}}, {"id": 1225, "type": "parameter_list", "text": "(t_list **alst, int (*f)(t_list *elem1, \\\n\t\t\t\t\t\t\tt_list *elem2))", "parent": 1223, "children": [1226, 1233], "start_point": {"row": 191, "column": 19}, "end_point": {"row": 192, "column": 22}}, {"id": 1226, "type": "parameter_declaration", "text": "t_list **alst", "parent": 1225, "children": [1227, 1228], "start_point": {"row": 191, "column": 20}, "end_point": {"row": 191, "column": 33}}, {"id": 1227, "type": "type_identifier", "text": "t_list", "parent": 1226, "children": [], "start_point": {"row": 191, "column": 20}, "end_point": {"row": 191, "column": 26}}, {"id": 1228, "type": "pointer_declarator", "text": "**alst", "parent": 1226, "children": [1229, 1230], "start_point": {"row": 191, "column": 27}, "end_point": {"row": 191, "column": 33}}, {"id": 1229, "type": "*", "text": "*", "parent": 1228, "children": [], "start_point": {"row": 191, "column": 27}, "end_point": {"row": 191, "column": 28}}, {"id": 1230, "type": "pointer_declarator", "text": "*alst", "parent": 1228, "children": [1231, 1232], "start_point": {"row": 191, "column": 28}, "end_point": {"row": 191, "column": 33}}, {"id": 1231, "type": "*", "text": "*", "parent": 1230, "children": [], "start_point": {"row": 191, "column": 28}, "end_point": {"row": 191, "column": 29}}, {"id": 1232, "type": "identifier", "text": "alst", "parent": 1230, "children": [], "start_point": {"row": 191, "column": 29}, "end_point": {"row": 191, "column": 33}}, {"id": 1233, "type": "parameter_declaration", "text": "int (*f)(t_list *elem1, \\\n\t\t\t\t\t\t\tt_list *elem2)", "parent": 1225, "children": [1234, 1235], "start_point": {"row": 191, "column": 35}, "end_point": {"row": 192, "column": 21}}, {"id": 1234, "type": "primitive_type", "text": "int", "parent": 1233, "children": [], "start_point": {"row": 191, "column": 35}, "end_point": {"row": 191, "column": 38}}, {"id": 1235, "type": "function_declarator", "text": "(*f)(t_list *elem1, \\\n\t\t\t\t\t\t\tt_list *elem2)", "parent": 1233, "children": [1236, 1240], "start_point": {"row": 191, "column": 39}, "end_point": {"row": 192, "column": 21}}, {"id": 1236, "type": "parenthesized_declarator", "text": "(*f)", "parent": 1235, "children": [1237], "start_point": {"row": 191, "column": 39}, "end_point": {"row": 191, "column": 43}}, {"id": 1237, "type": "pointer_declarator", "text": "*f", "parent": 1236, "children": [1238, 1239], "start_point": {"row": 191, "column": 40}, "end_point": {"row": 191, "column": 42}}, {"id": 1238, "type": "*", "text": "*", "parent": 1237, "children": [], "start_point": {"row": 191, "column": 40}, "end_point": {"row": 191, "column": 41}}, {"id": 1239, "type": "identifier", "text": "f", "parent": 1237, "children": [], "start_point": {"row": 191, "column": 41}, "end_point": {"row": 191, "column": 42}}, {"id": 1240, "type": "parameter_list", "text": "(t_list *elem1, \\\n\t\t\t\t\t\t\tt_list *elem2)", "parent": 1235, "children": [1241, 1246], "start_point": {"row": 191, "column": 43}, "end_point": {"row": 192, "column": 21}}, {"id": 1241, "type": "parameter_declaration", "text": "t_list *elem1", "parent": 1240, "children": [1242, 1243], "start_point": {"row": 191, "column": 44}, "end_point": {"row": 191, "column": 57}}, {"id": 1242, "type": "type_identifier", "text": "t_list", "parent": 1241, "children": [], "start_point": {"row": 191, "column": 44}, "end_point": {"row": 191, "column": 50}}, {"id": 1243, "type": "pointer_declarator", "text": "*elem1", "parent": 1241, "children": [1244, 1245], "start_point": {"row": 191, "column": 51}, "end_point": {"row": 191, "column": 57}}, {"id": 1244, "type": "*", "text": "*", "parent": 1243, "children": [], "start_point": {"row": 191, "column": 51}, "end_point": {"row": 191, "column": 52}}, {"id": 1245, "type": "identifier", "text": "elem1", "parent": 1243, "children": [], "start_point": {"row": 191, "column": 52}, "end_point": {"row": 191, "column": 57}}, {"id": 1246, "type": "parameter_declaration", "text": "t_list *elem2", "parent": 1240, "children": [1247, 1248], "start_point": {"row": 192, "column": 7}, "end_point": {"row": 192, "column": 20}}, {"id": 1247, "type": "type_identifier", "text": "t_list", "parent": 1246, "children": [], "start_point": {"row": 192, "column": 7}, "end_point": {"row": 192, "column": 13}}, {"id": 1248, "type": "pointer_declarator", "text": "*elem2", "parent": 1246, "children": [1249, 1250], "start_point": {"row": 192, "column": 14}, "end_point": {"row": 192, "column": 20}}, {"id": 1249, "type": "*", "text": "*", "parent": 1248, "children": [], "start_point": {"row": 192, "column": 14}, "end_point": {"row": 192, "column": 15}}, {"id": 1250, "type": "identifier", "text": "elem2", "parent": 1248, "children": [], "start_point": {"row": 192, "column": 15}, "end_point": {"row": 192, "column": 20}}, {"id": 1251, "type": "type_definition", "text": "typedef enum\t\t\te_btdir\n{\n\tFT_BT_SAME,\n\tFT_BT_LEFT,\n\tFT_BT_RIGHT\n}\t\t\t\t\t\tt_btdir;", "parent": 0, "children": [1252, 1253, 1263], "start_point": {"row": 197, "column": 0}, "end_point": {"row": 202, "column": 15}}, {"id": 1252, "type": "typedef", "text": "typedef", "parent": 1251, "children": [], "start_point": {"row": 197, "column": 0}, "end_point": {"row": 197, "column": 7}}, {"id": 1253, "type": "enum_specifier", "text": "enum\t\t\te_btdir\n{\n\tFT_BT_SAME,\n\tFT_BT_LEFT,\n\tFT_BT_RIGHT\n}", "parent": 1251, "children": [1254, 1255, 1256], "start_point": {"row": 197, "column": 8}, "end_point": {"row": 202, "column": 1}}, {"id": 1254, "type": "enum", "text": "enum", "parent": 1253, "children": [], "start_point": {"row": 197, "column": 8}, "end_point": {"row": 197, "column": 12}}, {"id": 1255, "type": "type_identifier", "text": "e_btdir", "parent": 1253, "children": [], "start_point": {"row": 197, "column": 15}, "end_point": {"row": 197, "column": 22}}, {"id": 1256, "type": "enumerator_list", "text": "{\n\tFT_BT_SAME,\n\tFT_BT_LEFT,\n\tFT_BT_RIGHT\n}", "parent": 1253, "children": [1257, 1259, 1261], "start_point": {"row": 198, "column": 0}, "end_point": {"row": 202, "column": 1}}, {"id": 1257, "type": "enumerator", "text": "FT_BT_SAME", "parent": 1256, "children": [1258], "start_point": {"row": 199, "column": 1}, "end_point": {"row": 199, "column": 11}}, {"id": 1258, "type": "identifier", "text": "FT_BT_SAME", "parent": 1257, "children": [], "start_point": {"row": 199, "column": 1}, "end_point": {"row": 199, "column": 11}}, {"id": 1259, "type": "enumerator", "text": "FT_BT_LEFT", "parent": 1256, "children": [1260], "start_point": {"row": 200, "column": 1}, "end_point": {"row": 200, "column": 11}}, {"id": 1260, "type": "identifier", "text": "FT_BT_LEFT", "parent": 1259, "children": [], "start_point": {"row": 200, "column": 1}, "end_point": {"row": 200, "column": 11}}, {"id": 1261, "type": "enumerator", "text": "FT_BT_RIGHT", "parent": 1256, "children": [1262], "start_point": {"row": 201, "column": 1}, "end_point": {"row": 201, "column": 12}}, {"id": 1262, "type": "identifier", "text": "FT_BT_RIGHT", "parent": 1261, "children": [], "start_point": {"row": 201, "column": 1}, "end_point": {"row": 201, "column": 12}}, {"id": 1263, "type": "type_identifier", "text": "t_btdir", "parent": 1251, "children": [], "start_point": {"row": 202, "column": 7}, "end_point": {"row": 202, "column": 14}}, {"id": 1264, "type": "type_definition", "text": "typedef struct\t\t\ts_btree\n{\n\tstruct s_btree\t\t*father;\n\tstruct s_btree\t\t*left;\n\tstruct s_btree\t\t*right;\n\tvoid\t\t\t\t*content;\n}\t\t\t\t\t\tt_btree;", "parent": 0, "children": [1265, 1266, 1295], "start_point": {"row": 204, "column": 0}, "end_point": {"row": 210, "column": 15}}, {"id": 1265, "type": "typedef", "text": "typedef", "parent": 1264, "children": [], "start_point": {"row": 204, "column": 0}, "end_point": {"row": 204, "column": 7}}, {"id": 1266, "type": "struct_specifier", "text": "struct\t\t\ts_btree\n{\n\tstruct s_btree\t\t*father;\n\tstruct s_btree\t\t*left;\n\tstruct s_btree\t\t*right;\n\tvoid\t\t\t\t*content;\n}", "parent": 1264, "children": [1267, 1268], "start_point": {"row": 204, "column": 8}, "end_point": {"row": 210, "column": 1}}, {"id": 1267, "type": "struct", "text": "struct", "parent": 1266, "children": [], "start_point": {"row": 204, "column": 8}, "end_point": {"row": 204, "column": 14}}, {"id": 1268, "type": "type_identifier", "text": "s_btree", "parent": 1266, "children": [], "start_point": {"row": 204, "column": 17}, "end_point": {"row": 204, "column": 24}}, {"id": 1269, "type": "field_declaration", "text": "struct s_btree\t\t*father;", "parent": 1266, "children": [1270, 1273], "start_point": {"row": 206, "column": 1}, "end_point": {"row": 206, "column": 25}}, {"id": 1270, "type": "struct_specifier", "text": "struct s_btree", "parent": 1269, "children": [1271, 1272], "start_point": {"row": 206, "column": 1}, "end_point": {"row": 206, "column": 15}}, {"id": 1271, "type": "struct", "text": "struct", "parent": 1270, "children": [], "start_point": {"row": 206, "column": 1}, "end_point": {"row": 206, "column": 7}}, {"id": 1272, "type": "type_identifier", "text": "s_btree", "parent": 1270, "children": [], "start_point": {"row": 206, "column": 8}, "end_point": {"row": 206, "column": 15}}, {"id": 1273, "type": "pointer_declarator", "text": "*father", "parent": 1269, "children": [1274, 1275], "start_point": {"row": 206, "column": 17}, "end_point": {"row": 206, "column": 24}}, {"id": 1274, "type": "*", "text": "*", "parent": 1273, "children": [], "start_point": {"row": 206, "column": 17}, "end_point": {"row": 206, "column": 18}}, {"id": 1275, "type": "field_identifier", "text": "father", "parent": 1273, "children": [], "start_point": {"row": 206, "column": 18}, "end_point": {"row": 206, "column": 24}}, {"id": 1276, "type": "field_declaration", "text": "struct s_btree\t\t*left;", "parent": 1266, "children": [1277, 1280], "start_point": {"row": 207, "column": 1}, "end_point": {"row": 207, "column": 23}}, {"id": 1277, "type": "struct_specifier", "text": "struct s_btree", "parent": 1276, "children": [1278, 1279], "start_point": {"row": 207, "column": 1}, "end_point": {"row": 207, "column": 15}}, {"id": 1278, "type": "struct", "text": "struct", "parent": 1277, "children": [], "start_point": {"row": 207, "column": 1}, "end_point": {"row": 207, "column": 7}}, {"id": 1279, "type": "type_identifier", "text": "s_btree", "parent": 1277, "children": [], "start_point": {"row": 207, "column": 8}, "end_point": {"row": 207, "column": 15}}, {"id": 1280, "type": "pointer_declarator", "text": "*left", "parent": 1276, "children": [1281, 1282], "start_point": {"row": 207, "column": 17}, "end_point": {"row": 207, "column": 22}}, {"id": 1281, "type": "*", "text": "*", "parent": 1280, "children": [], "start_point": {"row": 207, "column": 17}, "end_point": {"row": 207, "column": 18}}, {"id": 1282, "type": "field_identifier", "text": "left", "parent": 1280, "children": [], "start_point": {"row": 207, "column": 18}, "end_point": {"row": 207, "column": 22}}, {"id": 1283, "type": "field_declaration", "text": "struct s_btree\t\t*right;", "parent": 1266, "children": [1284, 1287], "start_point": {"row": 208, "column": 1}, "end_point": {"row": 208, "column": 24}}, {"id": 1284, "type": "struct_specifier", "text": "struct s_btree", "parent": 1283, "children": [1285, 1286], "start_point": {"row": 208, "column": 1}, "end_point": {"row": 208, "column": 15}}, {"id": 1285, "type": "struct", "text": "struct", "parent": 1284, "children": [], "start_point": {"row": 208, "column": 1}, "end_point": {"row": 208, "column": 7}}, {"id": 1286, "type": "type_identifier", "text": "s_btree", "parent": 1284, "children": [], "start_point": {"row": 208, "column": 8}, "end_point": {"row": 208, "column": 15}}, {"id": 1287, "type": "pointer_declarator", "text": "*right", "parent": 1283, "children": [1288, 1289], "start_point": {"row": 208, "column": 17}, "end_point": {"row": 208, "column": 23}}, {"id": 1288, "type": "*", "text": "*", "parent": 1287, "children": [], "start_point": {"row": 208, "column": 17}, "end_point": {"row": 208, "column": 18}}, {"id": 1289, "type": "field_identifier", "text": "right", "parent": 1287, "children": [], "start_point": {"row": 208, "column": 18}, "end_point": {"row": 208, "column": 23}}, {"id": 1290, "type": "field_declaration", "text": "void\t\t\t\t*content;", "parent": 1266, "children": [1291, 1292], "start_point": {"row": 209, "column": 1}, "end_point": {"row": 209, "column": 18}}, {"id": 1291, "type": "primitive_type", "text": "void", "parent": 1290, "children": [], "start_point": {"row": 209, "column": 1}, "end_point": {"row": 209, "column": 5}}, {"id": 1292, "type": "pointer_declarator", "text": "*content", "parent": 1290, "children": [1293, 1294], "start_point": {"row": 209, "column": 9}, "end_point": {"row": 209, "column": 17}}, {"id": 1293, "type": "*", "text": "*", "parent": 1292, "children": [], "start_point": {"row": 209, "column": 9}, "end_point": {"row": 209, "column": 10}}, {"id": 1294, "type": "field_identifier", "text": "content", "parent": 1292, "children": [], "start_point": {"row": 209, "column": 10}, "end_point": {"row": 209, "column": 17}}, {"id": 1295, "type": "type_identifier", "text": "t_btree", "parent": 1264, "children": [], "start_point": {"row": 210, "column": 7}, "end_point": {"row": 210, "column": 14}}, {"id": 1296, "type": "declaration", "text": "t_btree\t\t\t\t\t*ft_btreeadd(t_btree **atree, void *content, \\\n\t\t\t\t\t\t\tt_btdir (*cmp)(t_btree *, void *));", "parent": 0, "children": [1297, 1298], "start_point": {"row": 212, "column": 0}, "end_point": {"row": 213, "column": 42}}, {"id": 1297, "type": "type_identifier", "text": "t_btree", "parent": 1296, "children": [], "start_point": {"row": 212, "column": 0}, "end_point": {"row": 212, "column": 7}}, {"id": 1298, "type": "pointer_declarator", "text": "*ft_btreeadd(t_btree **atree, void *content, \\\n\t\t\t\t\t\t\tt_btdir (*cmp)(t_btree *, void *))", "parent": 1296, "children": [1299, 1300], "start_point": {"row": 212, "column": 12}, "end_point": {"row": 213, "column": 41}}, {"id": 1299, "type": "*", "text": "*", "parent": 1298, "children": [], "start_point": {"row": 212, "column": 12}, "end_point": {"row": 212, "column": 13}}, {"id": 1300, "type": "function_declarator", "text": "ft_btreeadd(t_btree **atree, void *content, \\\n\t\t\t\t\t\t\tt_btdir (*cmp)(t_btree *, void *))", "parent": 1298, "children": [1301, 1302], "start_point": {"row": 212, "column": 13}, "end_point": {"row": 213, "column": 41}}, {"id": 1301, "type": "identifier", "text": "ft_btreeadd", "parent": 1300, "children": [], "start_point": {"row": 212, "column": 13}, "end_point": {"row": 212, "column": 24}}, {"id": 1302, "type": "parameter_list", "text": "(t_btree **atree, void *content, \\\n\t\t\t\t\t\t\tt_btdir (*cmp)(t_btree *, void *))", "parent": 1300, "children": [1303, 1310, 1315], "start_point": {"row": 212, "column": 24}, "end_point": {"row": 213, "column": 41}}, {"id": 1303, "type": "parameter_declaration", "text": "t_btree **atree", "parent": 1302, "children": [1304, 1305], "start_point": {"row": 212, "column": 25}, "end_point": {"row": 212, "column": 40}}, {"id": 1304, "type": "type_identifier", "text": "t_btree", "parent": 1303, "children": [], "start_point": {"row": 212, "column": 25}, "end_point": {"row": 212, "column": 32}}, {"id": 1305, "type": "pointer_declarator", "text": "**atree", "parent": 1303, "children": [1306, 1307], "start_point": {"row": 212, "column": 33}, "end_point": {"row": 212, "column": 40}}, {"id": 1306, "type": "*", "text": "*", "parent": 1305, "children": [], "start_point": {"row": 212, "column": 33}, "end_point": {"row": 212, "column": 34}}, {"id": 1307, "type": "pointer_declarator", "text": "*atree", "parent": 1305, "children": [1308, 1309], "start_point": {"row": 212, "column": 34}, "end_point": {"row": 212, "column": 40}}, {"id": 1308, "type": "*", "text": "*", "parent": 1307, "children": [], "start_point": {"row": 212, "column": 34}, "end_point": {"row": 212, "column": 35}}, {"id": 1309, "type": "identifier", "text": "atree", "parent": 1307, "children": [], "start_point": {"row": 212, "column": 35}, "end_point": {"row": 212, "column": 40}}, {"id": 1310, "type": "parameter_declaration", "text": "void *content", "parent": 1302, "children": [1311, 1312], "start_point": {"row": 212, "column": 42}, "end_point": {"row": 212, "column": 55}}, {"id": 1311, "type": "primitive_type", "text": "void", "parent": 1310, "children": [], "start_point": {"row": 212, "column": 42}, "end_point": {"row": 212, "column": 46}}, {"id": 1312, "type": "pointer_declarator", "text": "*content", "parent": 1310, "children": [1313, 1314], "start_point": {"row": 212, "column": 47}, "end_point": {"row": 212, "column": 55}}, {"id": 1313, "type": "*", "text": "*", "parent": 1312, "children": [], "start_point": {"row": 212, "column": 47}, "end_point": {"row": 212, "column": 48}}, {"id": 1314, "type": "identifier", "text": "content", "parent": 1312, "children": [], "start_point": {"row": 212, "column": 48}, "end_point": {"row": 212, "column": 55}}, {"id": 1315, "type": "parameter_declaration", "text": "t_btdir (*cmp)(t_btree *, void *)", "parent": 1302, "children": [1316, 1317], "start_point": {"row": 213, "column": 7}, "end_point": {"row": 213, "column": 40}}, {"id": 1316, "type": "type_identifier", "text": "t_btdir", "parent": 1315, "children": [], "start_point": {"row": 213, "column": 7}, "end_point": {"row": 213, "column": 14}}, {"id": 1317, "type": "function_declarator", "text": "(*cmp)(t_btree *, void *)", "parent": 1315, "children": [1318, 1322], "start_point": {"row": 213, "column": 15}, "end_point": {"row": 213, "column": 40}}, {"id": 1318, "type": "parenthesized_declarator", "text": "(*cmp)", "parent": 1317, "children": [1319], "start_point": {"row": 213, "column": 15}, "end_point": {"row": 213, "column": 21}}, {"id": 1319, "type": "pointer_declarator", "text": "*cmp", "parent": 1318, "children": [1320, 1321], "start_point": {"row": 213, "column": 16}, "end_point": {"row": 213, "column": 20}}, {"id": 1320, "type": "*", "text": "*", "parent": 1319, "children": [], "start_point": {"row": 213, "column": 16}, "end_point": {"row": 213, "column": 17}}, {"id": 1321, "type": "identifier", "text": "cmp", "parent": 1319, "children": [], "start_point": {"row": 213, "column": 17}, "end_point": {"row": 213, "column": 20}}, {"id": 1322, "type": "parameter_list", "text": "(t_btree *, void *)", "parent": 1317, "children": [1323, 1327], "start_point": {"row": 213, "column": 21}, "end_point": {"row": 213, "column": 40}}, {"id": 1323, "type": "parameter_declaration", "text": "t_btree *", "parent": 1322, "children": [1324, 1325], "start_point": {"row": 213, "column": 22}, "end_point": {"row": 213, "column": 31}}, {"id": 1324, "type": "type_identifier", "text": "t_btree", "parent": 1323, "children": [], "start_point": {"row": 213, "column": 22}, "end_point": {"row": 213, "column": 29}}, {"id": 1325, "type": "abstract_pointer_declarator", "text": "*", "parent": 1323, "children": [1326], "start_point": {"row": 213, "column": 30}, "end_point": {"row": 213, "column": 31}}, {"id": 1326, "type": "*", "text": "*", "parent": 1325, "children": [], "start_point": {"row": 213, "column": 30}, "end_point": {"row": 213, "column": 31}}, {"id": 1327, "type": "parameter_declaration", "text": "void *", "parent": 1322, "children": [1328, 1329], "start_point": {"row": 213, "column": 33}, "end_point": {"row": 213, "column": 39}}, {"id": 1328, "type": "primitive_type", "text": "void", "parent": 1327, "children": [], "start_point": {"row": 213, "column": 33}, "end_point": {"row": 213, "column": 37}}, {"id": 1329, "type": "abstract_pointer_declarator", "text": "*", "parent": 1327, "children": [1330], "start_point": {"row": 213, "column": 38}, "end_point": {"row": 213, "column": 39}}, {"id": 1330, "type": "*", "text": "*", "parent": 1329, "children": [], "start_point": {"row": 213, "column": 38}, "end_point": {"row": 213, "column": 39}}, {"id": 1331, "type": "declaration", "text": "int\t\t\t\t\t\tft_btreeiter(t_btree *atree, \\\n\t\t\t\t\t\t\tt_btdir (*cmp)(t_btree *, t_btree *, void *), \\\n\t\t\t\t\t\t\tint (*fct)(t_btree *, int, void *), \\\n\t\t\t\t\t\t\tvoid *ref);", "parent": 0, "children": [1332, 1333], "start_point": {"row": 214, "column": 0}, "end_point": {"row": 217, "column": 18}}, {"id": 1332, "type": "primitive_type", "text": "int", "parent": 1331, "children": [], "start_point": {"row": 214, "column": 0}, "end_point": {"row": 214, "column": 3}}, {"id": 1333, "type": "function_declarator", "text": "ft_btreeiter(t_btree *atree, \\\n\t\t\t\t\t\t\tt_btdir (*cmp)(t_btree *, t_btree *, void *), \\\n\t\t\t\t\t\t\tint (*fct)(t_btree *, int, void *), \\\n\t\t\t\t\t\t\tvoid *ref)", "parent": 1331, "children": [1334, 1335], "start_point": {"row": 214, "column": 9}, "end_point": {"row": 217, "column": 17}}, {"id": 1334, "type": "identifier", "text": "ft_btreeiter", "parent": 1333, "children": [], "start_point": {"row": 214, "column": 9}, "end_point": {"row": 214, "column": 21}}, {"id": 1335, "type": "parameter_list", "text": "(t_btree *atree, \\\n\t\t\t\t\t\t\tt_btdir (*cmp)(t_btree *, t_btree *, void *), \\\n\t\t\t\t\t\t\tint (*fct)(t_btree *, int, void *), \\\n\t\t\t\t\t\t\tvoid *ref)", "parent": 1333, "children": [1336, 1341, 1361, 1379], "start_point": {"row": 214, "column": 21}, "end_point": {"row": 217, "column": 17}}, {"id": 1336, "type": "parameter_declaration", "text": "t_btree *atree", "parent": 1335, "children": [1337, 1338], "start_point": {"row": 214, "column": 22}, "end_point": {"row": 214, "column": 36}}, {"id": 1337, "type": "type_identifier", "text": "t_btree", "parent": 1336, "children": [], "start_point": {"row": 214, "column": 22}, "end_point": {"row": 214, "column": 29}}, {"id": 1338, "type": "pointer_declarator", "text": "*atree", "parent": 1336, "children": [1339, 1340], "start_point": {"row": 214, "column": 30}, "end_point": {"row": 214, "column": 36}}, {"id": 1339, "type": "*", "text": "*", "parent": 1338, "children": [], "start_point": {"row": 214, "column": 30}, "end_point": {"row": 214, "column": 31}}, {"id": 1340, "type": "identifier", "text": "atree", "parent": 1338, "children": [], "start_point": {"row": 214, "column": 31}, "end_point": {"row": 214, "column": 36}}, {"id": 1341, "type": "parameter_declaration", "text": "t_btdir (*cmp)(t_btree *, t_btree *, void *)", "parent": 1335, "children": [1342, 1343], "start_point": {"row": 215, "column": 7}, "end_point": {"row": 215, "column": 51}}, {"id": 1342, "type": "type_identifier", "text": "t_btdir", "parent": 1341, "children": [], "start_point": {"row": 215, "column": 7}, "end_point": {"row": 215, "column": 14}}, {"id": 1343, "type": "function_declarator", "text": "(*cmp)(t_btree *, t_btree *, void *)", "parent": 1341, "children": [1344, 1348], "start_point": {"row": 215, "column": 15}, "end_point": {"row": 215, "column": 51}}, {"id": 1344, "type": "parenthesized_declarator", "text": "(*cmp)", "parent": 1343, "children": [1345], "start_point": {"row": 215, "column": 15}, "end_point": {"row": 215, "column": 21}}, {"id": 1345, "type": "pointer_declarator", "text": "*cmp", "parent": 1344, "children": [1346, 1347], "start_point": {"row": 215, "column": 16}, "end_point": {"row": 215, "column": 20}}, {"id": 1346, "type": "*", "text": "*", "parent": 1345, "children": [], "start_point": {"row": 215, "column": 16}, "end_point": {"row": 215, "column": 17}}, {"id": 1347, "type": "identifier", "text": "cmp", "parent": 1345, "children": [], "start_point": {"row": 215, "column": 17}, "end_point": {"row": 215, "column": 20}}, {"id": 1348, "type": "parameter_list", "text": "(t_btree *, t_btree *, void *)", "parent": 1343, "children": [1349, 1353, 1357], "start_point": {"row": 215, "column": 21}, "end_point": {"row": 215, "column": 51}}, {"id": 1349, "type": "parameter_declaration", "text": "t_btree *", "parent": 1348, "children": [1350, 1351], "start_point": {"row": 215, "column": 22}, "end_point": {"row": 215, "column": 31}}, {"id": 1350, "type": "type_identifier", "text": "t_btree", "parent": 1349, "children": [], "start_point": {"row": 215, "column": 22}, "end_point": {"row": 215, "column": 29}}, {"id": 1351, "type": "abstract_pointer_declarator", "text": "*", "parent": 1349, "children": [1352], "start_point": {"row": 215, "column": 30}, "end_point": {"row": 215, "column": 31}}, {"id": 1352, "type": "*", "text": "*", "parent": 1351, "children": [], "start_point": {"row": 215, "column": 30}, "end_point": {"row": 215, "column": 31}}, {"id": 1353, "type": "parameter_declaration", "text": "t_btree *", "parent": 1348, "children": [1354, 1355], "start_point": {"row": 215, "column": 33}, "end_point": {"row": 215, "column": 42}}, {"id": 1354, "type": "type_identifier", "text": "t_btree", "parent": 1353, "children": [], "start_point": {"row": 215, "column": 33}, "end_point": {"row": 215, "column": 40}}, {"id": 1355, "type": "abstract_pointer_declarator", "text": "*", "parent": 1353, "children": [1356], "start_point": {"row": 215, "column": 41}, "end_point": {"row": 215, "column": 42}}, {"id": 1356, "type": "*", "text": "*", "parent": 1355, "children": [], "start_point": {"row": 215, "column": 41}, "end_point": {"row": 215, "column": 42}}, {"id": 1357, "type": "parameter_declaration", "text": "void *", "parent": 1348, "children": [1358, 1359], "start_point": {"row": 215, "column": 44}, "end_point": {"row": 215, "column": 50}}, {"id": 1358, "type": "primitive_type", "text": "void", "parent": 1357, "children": [], "start_point": {"row": 215, "column": 44}, "end_point": {"row": 215, "column": 48}}, {"id": 1359, "type": "abstract_pointer_declarator", "text": "*", "parent": 1357, "children": [1360], "start_point": {"row": 215, "column": 49}, "end_point": {"row": 215, "column": 50}}, {"id": 1360, "type": "*", "text": "*", "parent": 1359, "children": [], "start_point": {"row": 215, "column": 49}, "end_point": {"row": 215, "column": 50}}, {"id": 1361, "type": "parameter_declaration", "text": "int (*fct)(t_btree *, int, void *)", "parent": 1335, "children": [1362, 1363], "start_point": {"row": 216, "column": 7}, "end_point": {"row": 216, "column": 41}}, {"id": 1362, "type": "primitive_type", "text": "int", "parent": 1361, "children": [], "start_point": {"row": 216, "column": 7}, "end_point": {"row": 216, "column": 10}}, {"id": 1363, "type": "function_declarator", "text": "(*fct)(t_btree *, int, void *)", "parent": 1361, "children": [1364, 1368], "start_point": {"row": 216, "column": 11}, "end_point": {"row": 216, "column": 41}}, {"id": 1364, "type": "parenthesized_declarator", "text": "(*fct)", "parent": 1363, "children": [1365], "start_point": {"row": 216, "column": 11}, "end_point": {"row": 216, "column": 17}}, {"id": 1365, "type": "pointer_declarator", "text": "*fct", "parent": 1364, "children": [1366, 1367], "start_point": {"row": 216, "column": 12}, "end_point": {"row": 216, "column": 16}}, {"id": 1366, "type": "*", "text": "*", "parent": 1365, "children": [], "start_point": {"row": 216, "column": 12}, "end_point": {"row": 216, "column": 13}}, {"id": 1367, "type": "identifier", "text": "fct", "parent": 1365, "children": [], "start_point": {"row": 216, "column": 13}, "end_point": {"row": 216, "column": 16}}, {"id": 1368, "type": "parameter_list", "text": "(t_btree *, int, void *)", "parent": 1363, "children": [1369, 1373, 1375], "start_point": {"row": 216, "column": 17}, "end_point": {"row": 216, "column": 41}}, {"id": 1369, "type": "parameter_declaration", "text": "t_btree *", "parent": 1368, "children": [1370, 1371], "start_point": {"row": 216, "column": 18}, "end_point": {"row": 216, "column": 27}}, {"id": 1370, "type": "type_identifier", "text": "t_btree", "parent": 1369, "children": [], "start_point": {"row": 216, "column": 18}, "end_point": {"row": 216, "column": 25}}, {"id": 1371, "type": "abstract_pointer_declarator", "text": "*", "parent": 1369, "children": [1372], "start_point": {"row": 216, "column": 26}, "end_point": {"row": 216, "column": 27}}, {"id": 1372, "type": "*", "text": "*", "parent": 1371, "children": [], "start_point": {"row": 216, "column": 26}, "end_point": {"row": 216, "column": 27}}, {"id": 1373, "type": "parameter_declaration", "text": "int", "parent": 1368, "children": [1374], "start_point": {"row": 216, "column": 29}, "end_point": {"row": 216, "column": 32}}, {"id": 1374, "type": "primitive_type", "text": "int", "parent": 1373, "children": [], "start_point": {"row": 216, "column": 29}, "end_point": {"row": 216, "column": 32}}, {"id": 1375, "type": "parameter_declaration", "text": "void *", "parent": 1368, "children": [1376, 1377], "start_point": {"row": 216, "column": 34}, "end_point": {"row": 216, "column": 40}}, {"id": 1376, "type": "primitive_type", "text": "void", "parent": 1375, "children": [], "start_point": {"row": 216, "column": 34}, "end_point": {"row": 216, "column": 38}}, {"id": 1377, "type": "abstract_pointer_declarator", "text": "*", "parent": 1375, "children": [1378], "start_point": {"row": 216, "column": 39}, "end_point": {"row": 216, "column": 40}}, {"id": 1378, "type": "*", "text": "*", "parent": 1377, "children": [], "start_point": {"row": 216, "column": 39}, "end_point": {"row": 216, "column": 40}}, {"id": 1379, "type": "parameter_declaration", "text": "void *ref", "parent": 1335, "children": [1380, 1381], "start_point": {"row": 217, "column": 7}, "end_point": {"row": 217, "column": 16}}, {"id": 1380, "type": "primitive_type", "text": "void", "parent": 1379, "children": [], "start_point": {"row": 217, "column": 7}, "end_point": {"row": 217, "column": 11}}, {"id": 1381, "type": "pointer_declarator", "text": "*ref", "parent": 1379, "children": [1382, 1383], "start_point": {"row": 217, "column": 12}, "end_point": {"row": 217, "column": 16}}, {"id": 1382, "type": "*", "text": "*", "parent": 1381, "children": [], "start_point": {"row": 217, "column": 12}, "end_point": {"row": 217, "column": 13}}, {"id": 1383, "type": "identifier", "text": "ref", "parent": 1381, "children": [], "start_point": {"row": 217, "column": 13}, "end_point": {"row": 217, "column": 16}}, {"id": 1384, "type": "declaration", "text": "void\t\t\t\t\tft_put_btree(t_btree *tree, int depth, \\\n\t\t\t\t\t\t\tvoid (*putfunc)(void *));", "parent": 0, "children": [1385, 1386], "start_point": {"row": 218, "column": 0}, "end_point": {"row": 219, "column": 32}}, {"id": 1385, "type": "primitive_type", "text": "void", "parent": 1384, "children": [], "start_point": {"row": 218, "column": 0}, "end_point": {"row": 218, "column": 4}}, {"id": 1386, "type": "function_declarator", "text": "ft_put_btree(t_btree *tree, int depth, \\\n\t\t\t\t\t\t\tvoid (*putfunc)(void *))", "parent": 1384, "children": [1387, 1388], "start_point": {"row": 218, "column": 9}, "end_point": {"row": 219, "column": 31}}, {"id": 1387, "type": "identifier", "text": "ft_put_btree", "parent": 1386, "children": [], "start_point": {"row": 218, "column": 9}, "end_point": {"row": 218, "column": 21}}, {"id": 1388, "type": "parameter_list", "text": "(t_btree *tree, int depth, \\\n\t\t\t\t\t\t\tvoid (*putfunc)(void *))", "parent": 1386, "children": [1389, 1394, 1397], "start_point": {"row": 218, "column": 21}, "end_point": {"row": 219, "column": 31}}, {"id": 1389, "type": "parameter_declaration", "text": "t_btree *tree", "parent": 1388, "children": [1390, 1391], "start_point": {"row": 218, "column": 22}, "end_point": {"row": 218, "column": 35}}, {"id": 1390, "type": "type_identifier", "text": "t_btree", "parent": 1389, "children": [], "start_point": {"row": 218, "column": 22}, "end_point": {"row": 218, "column": 29}}, {"id": 1391, "type": "pointer_declarator", "text": "*tree", "parent": 1389, "children": [1392, 1393], "start_point": {"row": 218, "column": 30}, "end_point": {"row": 218, "column": 35}}, {"id": 1392, "type": "*", "text": "*", "parent": 1391, "children": [], "start_point": {"row": 218, "column": 30}, "end_point": {"row": 218, "column": 31}}, {"id": 1393, "type": "identifier", "text": "tree", "parent": 1391, "children": [], "start_point": {"row": 218, "column": 31}, "end_point": {"row": 218, "column": 35}}, {"id": 1394, "type": "parameter_declaration", "text": "int depth", "parent": 1388, "children": [1395, 1396], "start_point": {"row": 218, "column": 37}, "end_point": {"row": 218, "column": 46}}, {"id": 1395, "type": "primitive_type", "text": "int", "parent": 1394, "children": [], "start_point": {"row": 218, "column": 37}, "end_point": {"row": 218, "column": 40}}, {"id": 1396, "type": "identifier", "text": "depth", "parent": 1394, "children": [], "start_point": {"row": 218, "column": 41}, "end_point": {"row": 218, "column": 46}}, {"id": 1397, "type": "parameter_declaration", "text": "void (*putfunc)(void *)", "parent": 1388, "children": [1398, 1399], "start_point": {"row": 219, "column": 7}, "end_point": {"row": 219, "column": 30}}, {"id": 1398, "type": "primitive_type", "text": "void", "parent": 1397, "children": [], "start_point": {"row": 219, "column": 7}, "end_point": {"row": 219, "column": 11}}, {"id": 1399, "type": "function_declarator", "text": "(*putfunc)(void *)", "parent": 1397, "children": [1400, 1404], "start_point": {"row": 219, "column": 12}, "end_point": {"row": 219, "column": 30}}, {"id": 1400, "type": "parenthesized_declarator", "text": "(*putfunc)", "parent": 1399, "children": [1401], "start_point": {"row": 219, "column": 12}, "end_point": {"row": 219, "column": 22}}, {"id": 1401, "type": "pointer_declarator", "text": "*putfunc", "parent": 1400, "children": [1402, 1403], "start_point": {"row": 219, "column": 13}, "end_point": {"row": 219, "column": 21}}, {"id": 1402, "type": "*", "text": "*", "parent": 1401, "children": [], "start_point": {"row": 219, "column": 13}, "end_point": {"row": 219, "column": 14}}, {"id": 1403, "type": "identifier", "text": "putfunc", "parent": 1401, "children": [], "start_point": {"row": 219, "column": 14}, "end_point": {"row": 219, "column": 21}}, {"id": 1404, "type": "parameter_list", "text": "(void *)", "parent": 1399, "children": [1405], "start_point": {"row": 219, "column": 22}, "end_point": {"row": 219, "column": 30}}, {"id": 1405, "type": "parameter_declaration", "text": "void *", "parent": 1404, "children": [1406, 1407], "start_point": {"row": 219, "column": 23}, "end_point": {"row": 219, "column": 29}}, {"id": 1406, "type": "primitive_type", "text": "void", "parent": 1405, "children": [], "start_point": {"row": 219, "column": 23}, "end_point": {"row": 219, "column": 27}}, {"id": 1407, "type": "abstract_pointer_declarator", "text": "*", "parent": 1405, "children": [1408], "start_point": {"row": 219, "column": 28}, "end_point": {"row": 219, "column": 29}}, {"id": 1408, "type": "*", "text": "*", "parent": 1407, "children": [], "start_point": {"row": 219, "column": 28}, "end_point": {"row": 219, "column": 29}}, {"id": 1409, "type": "declaration", "text": "size_t\t\t\t\t\tft_tablen(char **tab);", "parent": 0, "children": [1410, 1411], "start_point": {"row": 224, "column": 0}, "end_point": {"row": 224, "column": 33}}, {"id": 1410, "type": "primitive_type", "text": "size_t", "parent": 1409, "children": [], "start_point": {"row": 224, "column": 0}, "end_point": {"row": 224, "column": 6}}, {"id": 1411, "type": "function_declarator", "text": "ft_tablen(char **tab)", "parent": 1409, "children": [1412, 1413], "start_point": {"row": 224, "column": 11}, "end_point": {"row": 224, "column": 32}}, {"id": 1412, "type": "identifier", "text": "ft_tablen", "parent": 1411, "children": [], "start_point": {"row": 224, "column": 11}, "end_point": {"row": 224, "column": 20}}, {"id": 1413, "type": "parameter_list", "text": "(char **tab)", "parent": 1411, "children": [1414], "start_point": {"row": 224, "column": 20}, "end_point": {"row": 224, "column": 32}}, {"id": 1414, "type": "parameter_declaration", "text": "char **tab", "parent": 1413, "children": [1415, 1416], "start_point": {"row": 224, "column": 21}, "end_point": {"row": 224, "column": 31}}, {"id": 1415, "type": "primitive_type", "text": "char", "parent": 1414, "children": [], "start_point": {"row": 224, "column": 21}, "end_point": {"row": 224, "column": 25}}, {"id": 1416, "type": "pointer_declarator", "text": "**tab", "parent": 1414, "children": [1417, 1418], "start_point": {"row": 224, "column": 26}, "end_point": {"row": 224, "column": 31}}, {"id": 1417, "type": "*", "text": "*", "parent": 1416, "children": [], "start_point": {"row": 224, "column": 26}, "end_point": {"row": 224, "column": 27}}, {"id": 1418, "type": "pointer_declarator", "text": "*tab", "parent": 1416, "children": [1419, 1420], "start_point": {"row": 224, "column": 27}, "end_point": {"row": 224, "column": 31}}, {"id": 1419, "type": "*", "text": "*", "parent": 1418, "children": [], "start_point": {"row": 224, "column": 27}, "end_point": {"row": 224, "column": 28}}, {"id": 1420, "type": "identifier", "text": "tab", "parent": 1418, "children": [], "start_point": {"row": 224, "column": 28}, "end_point": {"row": 224, "column": 31}}, {"id": 1421, "type": "declaration", "text": "char\t\t\t\t\t**ft_tabcpy(char **tab);", "parent": 0, "children": [1422, 1423], "start_point": {"row": 225, "column": 0}, "end_point": {"row": 225, "column": 33}}, {"id": 1422, "type": "primitive_type", "text": "char", "parent": 1421, "children": [], "start_point": {"row": 225, "column": 0}, "end_point": {"row": 225, "column": 4}}, {"id": 1423, "type": "pointer_declarator", "text": "**ft_tabcpy(char **tab)", "parent": 1421, "children": [1424, 1425], "start_point": {"row": 225, "column": 9}, "end_point": {"row": 225, "column": 32}}, {"id": 1424, "type": "*", "text": "*", "parent": 1423, "children": [], "start_point": {"row": 225, "column": 9}, "end_point": {"row": 225, "column": 10}}, {"id": 1425, "type": "pointer_declarator", "text": "*ft_tabcpy(char **tab)", "parent": 1423, "children": [1426, 1427], "start_point": {"row": 225, "column": 10}, "end_point": {"row": 225, "column": 32}}, {"id": 1426, "type": "*", "text": "*", "parent": 1425, "children": [], "start_point": {"row": 225, "column": 10}, "end_point": {"row": 225, "column": 11}}, {"id": 1427, "type": "function_declarator", "text": "ft_tabcpy(char **tab)", "parent": 1425, "children": [1428, 1429], "start_point": {"row": 225, "column": 11}, "end_point": {"row": 225, "column": 32}}, {"id": 1428, "type": "identifier", "text": "ft_tabcpy", "parent": 1427, "children": [], "start_point": {"row": 225, "column": 11}, "end_point": {"row": 225, "column": 20}}, {"id": 1429, "type": "parameter_list", "text": "(char **tab)", "parent": 1427, "children": [1430], "start_point": {"row": 225, "column": 20}, "end_point": {"row": 225, "column": 32}}, {"id": 1430, "type": "parameter_declaration", "text": "char **tab", "parent": 1429, "children": [1431, 1432], "start_point": {"row": 225, "column": 21}, "end_point": {"row": 225, "column": 31}}, {"id": 1431, "type": "primitive_type", "text": "char", "parent": 1430, "children": [], "start_point": {"row": 225, "column": 21}, "end_point": {"row": 225, "column": 25}}, {"id": 1432, "type": "pointer_declarator", "text": "**tab", "parent": 1430, "children": [1433, 1434], "start_point": {"row": 225, "column": 26}, "end_point": {"row": 225, "column": 31}}, {"id": 1433, "type": "*", "text": "*", "parent": 1432, "children": [], "start_point": {"row": 225, "column": 26}, "end_point": {"row": 225, "column": 27}}, {"id": 1434, "type": "pointer_declarator", "text": "*tab", "parent": 1432, "children": [1435, 1436], "start_point": {"row": 225, "column": 27}, "end_point": {"row": 225, "column": 31}}, {"id": 1435, "type": "*", "text": "*", "parent": 1434, "children": [], "start_point": {"row": 225, "column": 27}, "end_point": {"row": 225, "column": 28}}, {"id": 1436, "type": "identifier", "text": "tab", "parent": 1434, "children": [], "start_point": {"row": 225, "column": 28}, "end_point": {"row": 225, "column": 31}}, {"id": 1437, "type": "declaration", "text": "void\t\t\t\t\t*ft_tabrealloc(void *tab, \\\n\t\t\t\t\t\t\tsize_t old_size, size_t new_size, size_t unit);", "parent": 0, "children": [1438, 1439], "start_point": {"row": 226, "column": 0}, "end_point": {"row": 227, "column": 54}}, {"id": 1438, "type": "primitive_type", "text": "void", "parent": 1437, "children": [], "start_point": {"row": 226, "column": 0}, "end_point": {"row": 226, "column": 4}}, {"id": 1439, "type": "pointer_declarator", "text": "*ft_tabrealloc(void *tab, \\\n\t\t\t\t\t\t\tsize_t old_size, size_t new_size, size_t unit)", "parent": 1437, "children": [1440, 1441], "start_point": {"row": 226, "column": 9}, "end_point": {"row": 227, "column": 53}}, {"id": 1440, "type": "*", "text": "*", "parent": 1439, "children": [], "start_point": {"row": 226, "column": 9}, "end_point": {"row": 226, "column": 10}}, {"id": 1441, "type": "function_declarator", "text": "ft_tabrealloc(void *tab, \\\n\t\t\t\t\t\t\tsize_t old_size, size_t new_size, size_t unit)", "parent": 1439, "children": [1442, 1443], "start_point": {"row": 226, "column": 10}, "end_point": {"row": 227, "column": 53}}, {"id": 1442, "type": "identifier", "text": "ft_tabrealloc", "parent": 1441, "children": [], "start_point": {"row": 226, "column": 10}, "end_point": {"row": 226, "column": 23}}, {"id": 1443, "type": "parameter_list", "text": "(void *tab, \\\n\t\t\t\t\t\t\tsize_t old_size, size_t new_size, size_t unit)", "parent": 1441, "children": [1444, 1449, 1452, 1455], "start_point": {"row": 226, "column": 23}, "end_point": {"row": 227, "column": 53}}, {"id": 1444, "type": "parameter_declaration", "text": "void *tab", "parent": 1443, "children": [1445, 1446], "start_point": {"row": 226, "column": 24}, "end_point": {"row": 226, "column": 33}}, {"id": 1445, "type": "primitive_type", "text": "void", "parent": 1444, "children": [], "start_point": {"row": 226, "column": 24}, "end_point": {"row": 226, "column": 28}}, {"id": 1446, "type": "pointer_declarator", "text": "*tab", "parent": 1444, "children": [1447, 1448], "start_point": {"row": 226, "column": 29}, "end_point": {"row": 226, "column": 33}}, {"id": 1447, "type": "*", "text": "*", "parent": 1446, "children": [], "start_point": {"row": 226, "column": 29}, "end_point": {"row": 226, "column": 30}}, {"id": 1448, "type": "identifier", "text": "tab", "parent": 1446, "children": [], "start_point": {"row": 226, "column": 30}, "end_point": {"row": 226, "column": 33}}, {"id": 1449, "type": "parameter_declaration", "text": "size_t old_size", "parent": 1443, "children": [1450, 1451], "start_point": {"row": 227, "column": 7}, "end_point": {"row": 227, "column": 22}}, {"id": 1450, "type": "primitive_type", "text": "size_t", "parent": 1449, "children": [], "start_point": {"row": 227, "column": 7}, "end_point": {"row": 227, "column": 13}}, {"id": 1451, "type": "identifier", "text": "old_size", "parent": 1449, "children": [], "start_point": {"row": 227, "column": 14}, "end_point": {"row": 227, "column": 22}}, {"id": 1452, "type": "parameter_declaration", "text": "size_t new_size", "parent": 1443, "children": [1453, 1454], "start_point": {"row": 227, "column": 24}, "end_point": {"row": 227, "column": 39}}, {"id": 1453, "type": "primitive_type", "text": "size_t", "parent": 1452, "children": [], "start_point": {"row": 227, "column": 24}, "end_point": {"row": 227, "column": 30}}, {"id": 1454, "type": "identifier", "text": "new_size", "parent": 1452, "children": [], "start_point": {"row": 227, "column": 31}, "end_point": {"row": 227, "column": 39}}, {"id": 1455, "type": "parameter_declaration", "text": "size_t unit", "parent": 1443, "children": [1456, 1457], "start_point": {"row": 227, "column": 41}, "end_point": {"row": 227, "column": 52}}, {"id": 1456, "type": "primitive_type", "text": "size_t", "parent": 1455, "children": [], "start_point": {"row": 227, "column": 41}, "end_point": {"row": 227, "column": 47}}, {"id": 1457, "type": "identifier", "text": "unit", "parent": 1455, "children": [], "start_point": {"row": 227, "column": 48}, "end_point": {"row": 227, "column": 52}}, {"id": 1458, "type": "declaration", "text": "void\t\t\t\t\tft_tabprint(char **tab);", "parent": 0, "children": [1459, 1460], "start_point": {"row": 228, "column": 0}, "end_point": {"row": 228, "column": 33}}, {"id": 1459, "type": "primitive_type", "text": "void", "parent": 1458, "children": [], "start_point": {"row": 228, "column": 0}, "end_point": {"row": 228, "column": 4}}, {"id": 1460, "type": "function_declarator", "text": "ft_tabprint(char **tab)", "parent": 1458, "children": [1461, 1462], "start_point": {"row": 228, "column": 9}, "end_point": {"row": 228, "column": 32}}, {"id": 1461, "type": "identifier", "text": "ft_tabprint", "parent": 1460, "children": [], "start_point": {"row": 228, "column": 9}, "end_point": {"row": 228, "column": 20}}, {"id": 1462, "type": "parameter_list", "text": "(char **tab)", "parent": 1460, "children": [1463], "start_point": {"row": 228, "column": 20}, "end_point": {"row": 228, "column": 32}}, {"id": 1463, "type": "parameter_declaration", "text": "char **tab", "parent": 1462, "children": [1464, 1465], "start_point": {"row": 228, "column": 21}, "end_point": {"row": 228, "column": 31}}, {"id": 1464, "type": "primitive_type", "text": "char", "parent": 1463, "children": [], "start_point": {"row": 228, "column": 21}, "end_point": {"row": 228, "column": 25}}, {"id": 1465, "type": "pointer_declarator", "text": "**tab", "parent": 1463, "children": [1466, 1467], "start_point": {"row": 228, "column": 26}, "end_point": {"row": 228, "column": 31}}, {"id": 1466, "type": "*", "text": "*", "parent": 1465, "children": [], "start_point": {"row": 228, "column": 26}, "end_point": {"row": 228, "column": 27}}, {"id": 1467, "type": "pointer_declarator", "text": "*tab", "parent": 1465, "children": [1468, 1469], "start_point": {"row": 228, "column": 27}, "end_point": {"row": 228, "column": 31}}, {"id": 1468, "type": "*", "text": "*", "parent": 1467, "children": [], "start_point": {"row": 228, "column": 27}, "end_point": {"row": 228, "column": 28}}, {"id": 1469, "type": "identifier", "text": "tab", "parent": 1467, "children": [], "start_point": {"row": 228, "column": 28}, "end_point": {"row": 228, "column": 31}}, {"id": 1470, "type": "declaration", "text": "void\t\t\t\t\tft_tabfree(char **tab);", "parent": 0, "children": [1471, 1472], "start_point": {"row": 229, "column": 0}, "end_point": {"row": 229, "column": 32}}, {"id": 1471, "type": "primitive_type", "text": "void", "parent": 1470, "children": [], "start_point": {"row": 229, "column": 0}, "end_point": {"row": 229, "column": 4}}, {"id": 1472, "type": "function_declarator", "text": "ft_tabfree(char **tab)", "parent": 1470, "children": [1473, 1474], "start_point": {"row": 229, "column": 9}, "end_point": {"row": 229, "column": 31}}, {"id": 1473, "type": "identifier", "text": "ft_tabfree", "parent": 1472, "children": [], "start_point": {"row": 229, "column": 9}, "end_point": {"row": 229, "column": 19}}, {"id": 1474, "type": "parameter_list", "text": "(char **tab)", "parent": 1472, "children": [1475], "start_point": {"row": 229, "column": 19}, "end_point": {"row": 229, "column": 31}}, {"id": 1475, "type": "parameter_declaration", "text": "char **tab", "parent": 1474, "children": [1476, 1477], "start_point": {"row": 229, "column": 20}, "end_point": {"row": 229, "column": 30}}, {"id": 1476, "type": "primitive_type", "text": "char", "parent": 1475, "children": [], "start_point": {"row": 229, "column": 20}, "end_point": {"row": 229, "column": 24}}, {"id": 1477, "type": "pointer_declarator", "text": "**tab", "parent": 1475, "children": [1478, 1479], "start_point": {"row": 229, "column": 25}, "end_point": {"row": 229, "column": 30}}, {"id": 1478, "type": "*", "text": "*", "parent": 1477, "children": [], "start_point": {"row": 229, "column": 25}, "end_point": {"row": 229, "column": 26}}, {"id": 1479, "type": "pointer_declarator", "text": "*tab", "parent": 1477, "children": [1480, 1481], "start_point": {"row": 229, "column": 26}, "end_point": {"row": 229, "column": 30}}, {"id": 1480, "type": "*", "text": "*", "parent": 1479, "children": [], "start_point": {"row": 229, "column": 26}, "end_point": {"row": 229, "column": 27}}, {"id": 1481, "type": "identifier", "text": "tab", "parent": 1479, "children": [], "start_point": {"row": 229, "column": 27}, "end_point": {"row": 229, "column": 30}}, {"id": 1482, "type": "declaration", "text": "int\t\t\t\t\t\tft_charset_parser(const char *str, \\\n\t\t\t\t\t\t\tconst char *charset, size_t *len);", "parent": 0, "children": [1483, 1484], "start_point": {"row": 234, "column": 0}, "end_point": {"row": 235, "column": 41}}, {"id": 1483, "type": "primitive_type", "text": "int", "parent": 1482, "children": [], "start_point": {"row": 234, "column": 0}, "end_point": {"row": 234, "column": 3}}, {"id": 1484, "type": "function_declarator", "text": "ft_charset_parser(const char *str, \\\n\t\t\t\t\t\t\tconst char *charset, size_t *len)", "parent": 1482, "children": [1485, 1486], "start_point": {"row": 234, "column": 9}, "end_point": {"row": 235, "column": 40}}, {"id": 1485, "type": "identifier", "text": "ft_charset_parser", "parent": 1484, "children": [], "start_point": {"row": 234, "column": 9}, "end_point": {"row": 234, "column": 26}}, {"id": 1486, "type": "parameter_list", "text": "(const char *str, \\\n\t\t\t\t\t\t\tconst char *charset, size_t *len)", "parent": 1484, "children": [1487, 1492, 1497], "start_point": {"row": 234, "column": 26}, "end_point": {"row": 235, "column": 40}}, {"id": 1487, "type": "parameter_declaration", "text": "const char *str", "parent": 1486, "children": [1488, 1489], "start_point": {"row": 234, "column": 27}, "end_point": {"row": 234, "column": 42}}, {"id": 1488, "type": "primitive_type", "text": "char", "parent": 1487, "children": [], "start_point": {"row": 234, "column": 33}, "end_point": {"row": 234, "column": 37}}, {"id": 1489, "type": "pointer_declarator", "text": "*str", "parent": 1487, "children": [1490, 1491], "start_point": {"row": 234, "column": 38}, "end_point": {"row": 234, "column": 42}}, {"id": 1490, "type": "*", "text": "*", "parent": 1489, "children": [], "start_point": {"row": 234, "column": 38}, "end_point": {"row": 234, "column": 39}}, {"id": 1491, "type": "identifier", "text": "str", "parent": 1489, "children": [], "start_point": {"row": 234, "column": 39}, "end_point": {"row": 234, "column": 42}}, {"id": 1492, "type": "parameter_declaration", "text": "const char *charset", "parent": 1486, "children": [1493, 1494], "start_point": {"row": 235, "column": 7}, "end_point": {"row": 235, "column": 26}}, {"id": 1493, "type": "primitive_type", "text": "char", "parent": 1492, "children": [], "start_point": {"row": 235, "column": 13}, "end_point": {"row": 235, "column": 17}}, {"id": 1494, "type": "pointer_declarator", "text": "*charset", "parent": 1492, "children": [1495, 1496], "start_point": {"row": 235, "column": 18}, "end_point": {"row": 235, "column": 26}}, {"id": 1495, "type": "*", "text": "*", "parent": 1494, "children": [], "start_point": {"row": 235, "column": 18}, "end_point": {"row": 235, "column": 19}}, {"id": 1496, "type": "identifier", "text": "charset", "parent": 1494, "children": [], "start_point": {"row": 235, "column": 19}, "end_point": {"row": 235, "column": 26}}, {"id": 1497, "type": "parameter_declaration", "text": "size_t *len", "parent": 1486, "children": [1498, 1499], "start_point": {"row": 235, "column": 28}, "end_point": {"row": 235, "column": 39}}, {"id": 1498, "type": "primitive_type", "text": "size_t", "parent": 1497, "children": [], "start_point": {"row": 235, "column": 28}, "end_point": {"row": 235, "column": 34}}, {"id": 1499, "type": "pointer_declarator", "text": "*len", "parent": 1497, "children": [1500, 1501], "start_point": {"row": 235, "column": 35}, "end_point": {"row": 235, "column": 39}}, {"id": 1500, "type": "*", "text": "*", "parent": 1499, "children": [], "start_point": {"row": 235, "column": 35}, "end_point": {"row": 235, "column": 36}}, {"id": 1501, "type": "identifier", "text": "len", "parent": 1499, "children": [], "start_point": {"row": 235, "column": 36}, "end_point": {"row": 235, "column": 39}}, {"id": 1502, "type": "declaration", "text": "ssize_t\t\t\t\t\tft_word_parser(const char *str, const char *word, \\\n\t\t\t\t\t\t\tsize_t w_size);", "parent": 0, "children": [1503, 1504], "start_point": {"row": 236, "column": 0}, "end_point": {"row": 237, "column": 22}}, {"id": 1503, "type": "primitive_type", "text": "ssize_t", "parent": 1502, "children": [], "start_point": {"row": 236, "column": 0}, "end_point": {"row": 236, "column": 7}}, {"id": 1504, "type": "function_declarator", "text": "ft_word_parser(const char *str, const char *word, \\\n\t\t\t\t\t\t\tsize_t w_size)", "parent": 1502, "children": [1505, 1506], "start_point": {"row": 236, "column": 12}, "end_point": {"row": 237, "column": 21}}, {"id": 1505, "type": "identifier", "text": "ft_word_parser", "parent": 1504, "children": [], "start_point": {"row": 236, "column": 12}, "end_point": {"row": 236, "column": 26}}, {"id": 1506, "type": "parameter_list", "text": "(const char *str, const char *word, \\\n\t\t\t\t\t\t\tsize_t w_size)", "parent": 1504, "children": [1507, 1512, 1517], "start_point": {"row": 236, "column": 26}, "end_point": {"row": 237, "column": 21}}, {"id": 1507, "type": "parameter_declaration", "text": "const char *str", "parent": 1506, "children": [1508, 1509], "start_point": {"row": 236, "column": 27}, "end_point": {"row": 236, "column": 42}}, {"id": 1508, "type": "primitive_type", "text": "char", "parent": 1507, "children": [], "start_point": {"row": 236, "column": 33}, "end_point": {"row": 236, "column": 37}}, {"id": 1509, "type": "pointer_declarator", "text": "*str", "parent": 1507, "children": [1510, 1511], "start_point": {"row": 236, "column": 38}, "end_point": {"row": 236, "column": 42}}, {"id": 1510, "type": "*", "text": "*", "parent": 1509, "children": [], "start_point": {"row": 236, "column": 38}, "end_point": {"row": 236, "column": 39}}, {"id": 1511, "type": "identifier", "text": "str", "parent": 1509, "children": [], "start_point": {"row": 236, "column": 39}, "end_point": {"row": 236, "column": 42}}, {"id": 1512, "type": "parameter_declaration", "text": "const char *word", "parent": 1506, "children": [1513, 1514], "start_point": {"row": 236, "column": 44}, "end_point": {"row": 236, "column": 60}}, {"id": 1513, "type": "primitive_type", "text": "char", "parent": 1512, "children": [], "start_point": {"row": 236, "column": 50}, "end_point": {"row": 236, "column": 54}}, {"id": 1514, "type": "pointer_declarator", "text": "*word", "parent": 1512, "children": [1515, 1516], "start_point": {"row": 236, "column": 55}, "end_point": {"row": 236, "column": 60}}, {"id": 1515, "type": "*", "text": "*", "parent": 1514, "children": [], "start_point": {"row": 236, "column": 55}, "end_point": {"row": 236, "column": 56}}, {"id": 1516, "type": "identifier", "text": "word", "parent": 1514, "children": [], "start_point": {"row": 236, "column": 56}, "end_point": {"row": 236, "column": 60}}, {"id": 1517, "type": "parameter_declaration", "text": "size_t w_size", "parent": 1506, "children": [1518, 1519], "start_point": {"row": 237, "column": 7}, "end_point": {"row": 237, "column": 20}}, {"id": 1518, "type": "primitive_type", "text": "size_t", "parent": 1517, "children": [], "start_point": {"row": 237, "column": 7}, "end_point": {"row": 237, "column": 13}}, {"id": 1519, "type": "identifier", "text": "w_size", "parent": 1517, "children": [], "start_point": {"row": 237, "column": 14}, "end_point": {"row": 237, "column": 20}}, {"id": 1520, "type": "declaration", "text": "int\t\t\t\t\t\tft_natoi(const char *str, size_t size);", "parent": 0, "children": [1521, 1522], "start_point": {"row": 238, "column": 0}, "end_point": {"row": 238, "column": 48}}, {"id": 1521, "type": "primitive_type", "text": "int", "parent": 1520, "children": [], "start_point": {"row": 238, "column": 0}, "end_point": {"row": 238, "column": 3}}, {"id": 1522, "type": "function_declarator", "text": "ft_natoi(const char *str, size_t size)", "parent": 1520, "children": [1523, 1524], "start_point": {"row": 238, "column": 9}, "end_point": {"row": 238, "column": 47}}, {"id": 1523, "type": "identifier", "text": "ft_natoi", "parent": 1522, "children": [], "start_point": {"row": 238, "column": 9}, "end_point": {"row": 238, "column": 17}}, {"id": 1524, "type": "parameter_list", "text": "(const char *str, size_t size)", "parent": 1522, "children": [1525, 1530], "start_point": {"row": 238, "column": 17}, "end_point": {"row": 238, "column": 47}}, {"id": 1525, "type": "parameter_declaration", "text": "const char *str", "parent": 1524, "children": [1526, 1527], "start_point": {"row": 238, "column": 18}, "end_point": {"row": 238, "column": 33}}, {"id": 1526, "type": "primitive_type", "text": "char", "parent": 1525, "children": [], "start_point": {"row": 238, "column": 24}, "end_point": {"row": 238, "column": 28}}, {"id": 1527, "type": "pointer_declarator", "text": "*str", "parent": 1525, "children": [1528, 1529], "start_point": {"row": 238, "column": 29}, "end_point": {"row": 238, "column": 33}}, {"id": 1528, "type": "*", "text": "*", "parent": 1527, "children": [], "start_point": {"row": 238, "column": 29}, "end_point": {"row": 238, "column": 30}}, {"id": 1529, "type": "identifier", "text": "str", "parent": 1527, "children": [], "start_point": {"row": 238, "column": 30}, "end_point": {"row": 238, "column": 33}}, {"id": 1530, "type": "parameter_declaration", "text": "size_t size", "parent": 1524, "children": [1531, 1532], "start_point": {"row": 238, "column": 35}, "end_point": {"row": 238, "column": 46}}, {"id": 1531, "type": "primitive_type", "text": "size_t", "parent": 1530, "children": [], "start_point": {"row": 238, "column": 35}, "end_point": {"row": 238, "column": 41}}, {"id": 1532, "type": "identifier", "text": "size", "parent": 1530, "children": [], "start_point": {"row": 238, "column": 42}, "end_point": {"row": 238, "column": 46}}, {"id": 1533, "type": "declaration", "text": "double\t\t\t\t\tft_natof(const char *str, size_t size, size_t *len);", "parent": 0, "children": [1534, 1535], "start_point": {"row": 239, "column": 0}, "end_point": {"row": 239, "column": 63}}, {"id": 1534, "type": "primitive_type", "text": "double", "parent": 1533, "children": [], "start_point": {"row": 239, "column": 0}, "end_point": {"row": 239, "column": 6}}, {"id": 1535, "type": "function_declarator", "text": "ft_natof(const char *str, size_t size, size_t *len)", "parent": 1533, "children": [1536, 1537], "start_point": {"row": 239, "column": 11}, "end_point": {"row": 239, "column": 62}}, {"id": 1536, "type": "identifier", "text": "ft_natof", "parent": 1535, "children": [], "start_point": {"row": 239, "column": 11}, "end_point": {"row": 239, "column": 19}}, {"id": 1537, "type": "parameter_list", "text": "(const char *str, size_t size, size_t *len)", "parent": 1535, "children": [1538, 1543, 1546], "start_point": {"row": 239, "column": 19}, "end_point": {"row": 239, "column": 62}}, {"id": 1538, "type": "parameter_declaration", "text": "const char *str", "parent": 1537, "children": [1539, 1540], "start_point": {"row": 239, "column": 20}, "end_point": {"row": 239, "column": 35}}, {"id": 1539, "type": "primitive_type", "text": "char", "parent": 1538, "children": [], "start_point": {"row": 239, "column": 26}, "end_point": {"row": 239, "column": 30}}, {"id": 1540, "type": "pointer_declarator", "text": "*str", "parent": 1538, "children": [1541, 1542], "start_point": {"row": 239, "column": 31}, "end_point": {"row": 239, "column": 35}}, {"id": 1541, "type": "*", "text": "*", "parent": 1540, "children": [], "start_point": {"row": 239, "column": 31}, "end_point": {"row": 239, "column": 32}}, {"id": 1542, "type": "identifier", "text": "str", "parent": 1540, "children": [], "start_point": {"row": 239, "column": 32}, "end_point": {"row": 239, "column": 35}}, {"id": 1543, "type": "parameter_declaration", "text": "size_t size", "parent": 1537, "children": [1544, 1545], "start_point": {"row": 239, "column": 37}, "end_point": {"row": 239, "column": 48}}, {"id": 1544, "type": "primitive_type", "text": "size_t", "parent": 1543, "children": [], "start_point": {"row": 239, "column": 37}, "end_point": {"row": 239, "column": 43}}, {"id": 1545, "type": "identifier", "text": "size", "parent": 1543, "children": [], "start_point": {"row": 239, "column": 44}, "end_point": {"row": 239, "column": 48}}, {"id": 1546, "type": "parameter_declaration", "text": "size_t *len", "parent": 1537, "children": [1547, 1548], "start_point": {"row": 239, "column": 50}, "end_point": {"row": 239, "column": 61}}, {"id": 1547, "type": "primitive_type", "text": "size_t", "parent": 1546, "children": [], "start_point": {"row": 239, "column": 50}, "end_point": {"row": 239, "column": 56}}, {"id": 1548, "type": "pointer_declarator", "text": "*len", "parent": 1546, "children": [1549, 1550], "start_point": {"row": 239, "column": 57}, "end_point": {"row": 239, "column": 61}}, {"id": 1549, "type": "*", "text": "*", "parent": 1548, "children": [], "start_point": {"row": 239, "column": 57}, "end_point": {"row": 239, "column": 58}}, {"id": 1550, "type": "identifier", "text": "len", "parent": 1548, "children": [], "start_point": {"row": 239, "column": 58}, "end_point": {"row": 239, "column": 61}}, {"id": 1551, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 241, "column": 0}, "end_point": {"row": 241, "column": 6}}]}, "node_categories": {"declarations": {"functions": [57, 68, 79, 97, 105, 113, 121, 129, 137, 145, 153, 165, 180, 188, 199, 209, 222, 232, 245, 253, 264, 276, 286, 298, 315, 333, 343, 354, 369, 387, 402, 422, 439, 457, 477, 494, 511, 533, 548, 563, 578, 595, 613, 623, 635, 645, 663, 673, 685, 695, 711, 721, 733, 743, 751, 766, 774, 782, 795, 817, 839, 849, 865, 877, 892, 910, 925, 945, 968, 986, 1006, 1042, 1052, 1069, 1086, 1098, 1110, 1122, 1135, 1143, 1155, 1167, 1177, 1187, 1223, 1235, 1300, 1317, 1333, 1343, 1363, 1386, 1399, 1411, 1427, 1441, 1460, 1472, 1484, 1504, 1522, 1535], "variables": [29, 45, 49, 95, 100, 103, 108, 111, 116, 119, 124, 127, 132, 135, 140, 143, 148, 151, 156, 163, 168, 171, 178, 183, 186, 191, 194, 197, 202, 207, 212, 217, 220, 225, 230, 235, 240, 243, 248, 251, 256, 259, 262, 267, 272, 279, 282, 289, 294, 301, 306, 311, 318, 323, 328, 331, 336, 341, 346, 352, 357, 362, 367, 372, 377, 382, 385, 390, 395, 400, 405, 410, 415, 418, 425, 430, 435, 442, 447, 452, 455, 460, 465, 470, 473, 480, 485, 490, 497, 502, 507, 514, 519, 524, 527, 536, 541, 544, 551, 556, 559, 566, 571, 574, 581, 586, 591, 598, 603, 608, 611, 616, 621, 629, 633, 638, 643, 651, 655, 659, 666, 671, 679, 681, 688, 693, 701, 705, 707, 714, 719, 724, 729, 736, 739, 746, 749, 754, 759, 764, 769, 772, 777, 780, 785, 788, 791, 798, 803, 808, 813, 820, 825, 830, 835, 842, 845, 852, 857, 860, 863, 868, 875, 880, 885, 888, 895, 900, 903, 906, 913, 918, 921, 928, 933, 938, 941, 948, 953, 958, 961, 964, 971, 976, 981, 984, 989, 994, 999, 1002, 1009, 1014, 1017, 1020, 1025, 1032, 1038, 1045, 1050, 1055, 1062, 1067, 1072, 1079, 1084, 1089, 1096, 1104, 1108, 1113, 1120, 1128, 1133, 1141, 1146, 1153, 1161, 1165, 1170, 1175, 1180, 1185, 1193, 1221, 1226, 1233, 1241, 1246, 1251, 1264, 1269, 1276, 1283, 1290, 1296, 1303, 1310, 1315, 1323, 1327, 1331, 1336, 1341, 1349, 1353, 1357, 1361, 1369, 1373, 1375, 1379, 1384, 1389, 1394, 1397, 1405, 1409, 1414, 1421, 1430, 1437, 1444, 1449, 1452, 1455, 1458, 1463, 1470, 1475, 1482, 1487, 1492, 1497, 1502, 1507, 1512, 1517, 1520, 1525, 1530, 1533, 1538, 1543, 1546], "classes": [1022, 1023, 1026, 1027, 1266, 1267, 1270, 1271, 1277, 1278, 1284, 1285], "imports": [6, 7, 9, 10, 12, 13], "modules": [], "enums": [1253, 1254, 1256, 1257, 1259, 1261]}, "statements": {"expressions": [1198, 1201, 1204, 1208, 1211, 1212, 1213, 1217], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 15, 16, 17, 20, 23, 27, 32, 33, 34, 35, 36, 39, 43, 47, 48, 51, 52, 53, 54, 55, 56, 59, 61, 62, 64, 65, 66, 67, 70, 72, 73, 75, 76, 77, 78, 81, 83, 84, 86, 87, 88, 89, 92, 94, 98, 102, 106, 110, 114, 118, 122, 126, 130, 134, 138, 142, 146, 150, 154, 158, 161, 166, 170, 177, 181, 185, 189, 193, 196, 200, 206, 210, 216, 219, 223, 229, 233, 239, 242, 246, 250, 254, 258, 261, 265, 271, 277, 281, 287, 293, 299, 305, 310, 316, 322, 327, 330, 334, 340, 344, 355, 361, 366, 370, 376, 381, 384, 386, 388, 394, 399, 401, 403, 409, 414, 417, 423, 429, 434, 440, 446, 451, 454, 458, 464, 469, 472, 478, 484, 489, 495, 501, 506, 512, 518, 520, 523, 526, 534, 540, 543, 549, 555, 558, 564, 570, 573, 579, 585, 590, 596, 602, 607, 610, 614, 620, 627, 636, 642, 649, 652, 664, 670, 677, 686, 692, 699, 702, 712, 718, 722, 728, 734, 737, 738, 744, 747, 748, 752, 758, 763, 767, 770, 771, 773, 775, 778, 779, 783, 787, 790, 796, 802, 807, 812, 818, 824, 829, 834, 840, 844, 850, 856, 859, 862, 866, 874, 878, 884, 887, 893, 899, 902, 905, 911, 917, 920, 926, 932, 937, 940, 946, 952, 957, 960, 963, 969, 975, 980, 983, 987, 993, 998, 1001, 1007, 1013, 1016, 1019, 1024, 1028, 1031, 1036, 1037, 1039, 1043, 1049, 1053, 1056, 1061, 1066, 1070, 1073, 1078, 1083, 1087, 1090, 1095, 1102, 1111, 1114, 1119, 1126, 1132, 1139, 1144, 1147, 1152, 1159, 1168, 1174, 1178, 1181, 1184, 1191, 1194, 1197, 1199, 1202, 1205, 1207, 1209, 1215, 1218, 1220, 1224, 1227, 1232, 1239, 1242, 1245, 1247, 1250, 1255, 1258, 1260, 1262, 1263, 1268, 1272, 1275, 1279, 1282, 1286, 1289, 1294, 1295, 1297, 1301, 1304, 1309, 1314, 1316, 1321, 1324, 1334, 1337, 1340, 1342, 1347, 1350, 1354, 1367, 1370, 1383, 1387, 1390, 1393, 1396, 1403, 1412, 1420, 1428, 1436, 1442, 1448, 1451, 1454, 1457, 1461, 1469, 1473, 1481, 1485, 1491, 1496, 1501, 1505, 1511, 1516, 1519, 1523, 1529, 1532, 1536, 1542, 1545, 1550, 1551], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 57, "universal_type": "function", "name": "unknown", "text_snippet": "# define XOR(a,b)\t\t((a && !b) || (!a && b))\n"}, {"node_id": 68, "universal_type": "function", "name": "unknown", "text_snippet": "# define MIN(a,b)\t\t((a < b) ? a : b)\n"}, {"node_id": 79, "universal_type": "function", "name": "unknown", "text_snippet": "# define MAX(a,b)\t\t((a > b) ? a : b)\n"}, {"node_id": 97, "universal_type": "function", "name": "unknown", "text_snippet": "ft_isalpha(int c)"}, {"node_id": 105, "universal_type": "function", "name": "unknown", "text_snippet": "ft_isdigit(int c)"}, {"node_id": 113, "universal_type": "function", "name": "unknown", "text_snippet": "ft_isalnum(int c)"}, {"node_id": 121, "universal_type": "function", "name": "unknown", "text_snippet": "ft_isascii(int c)"}, {"node_id": 129, "universal_type": "function", "name": "unknown", "text_snippet": "ft_isprint(int c)"}, {"node_id": 137, "universal_type": "function", "name": "unknown", "text_snippet": "ft_isspace(int c)"}, {"node_id": 145, "universal_type": "function", "name": "unknown", "text_snippet": "ft_toupper(int c)"}, {"node_id": 153, "universal_type": "function", "name": "unknown", "text_snippet": "ft_tolower(int c)"}, {"node_id": 165, "universal_type": "function", "name": "unknown", "text_snippet": "ft_gnl(int fd, char **line)"}, {"node_id": 180, "universal_type": "function", "name": "unknown", "text_snippet": "ft_putchar(int c)"}, {"node_id": 188, "universal_type": "function", "name": "fd)", "text_snippet": "ft_putchar_fd(int c, int fd)"}, {"node_id": 199, "universal_type": "function", "name": "unknown", "text_snippet": "ft_putstr(char const *s)"}, {"node_id": 209, "universal_type": "function", "name": "fd)", "text_snippet": "ft_putstr_fd(char const *s, int fd)"}, {"node_id": 222, "universal_type": "function", "name": "unknown", "text_snippet": "ft_putendl(char const *s)"}, {"node_id": 232, "universal_type": "function", "name": "fd)", "text_snippet": "ft_putendl_fd(char const *s, int fd)"}, {"node_id": 245, "universal_type": "function", "name": "unknown", "text_snippet": "ft_putnbr(int n)"}, {"node_id": 253, "universal_type": "function", "name": "fd)", "text_snippet": "ft_putnbr_fd(int n, int fd)"}, {"node_id": 264, "universal_type": "function", "name": "unknown", "text_snippet": "ft_strlen(char const *s)"}, {"node_id": 276, "universal_type": "function", "name": "unknown", "text_snippet": "ft_strnew(size_t size)"}, {"node_id": 286, "universal_type": "function", "name": "unknown", "text_snippet": "ft_strdup(char const *s1)"}, {"node_id": 298, "universal_type": "function", "name": "unknown", "text_snippet": "ft_strcpy(char *s1, char const *s2)"}, {"node_id": 315, "universal_type": "function", "name": "unknown", "text_snippet": "ft_strncpy(char *s1, char const *s2, size_t n)"}, {"node_id": 333, "universal_type": "function", "name": "unknown", "text_snippet": "ft_strclr(char *s)"}, {"node_id": 343, "universal_type": "function", "name": "unknown", "text_snippet": "ft_strdel(char **as)"}, {"node_id": 354, "universal_type": "function", "name": "unknown", "text_snippet": "ft_strcmp(char const *s1, char const *s2)"}, {"node_id": 369, "universal_type": "function", "name": "unknown", "text_snippet": "ft_strncmp(char const *s1, char const *s2, size_t n)"}, {"node_id": 387, "universal_type": "function", "name": "unknown", "text_snippet": "ft_strequ(char const *s1, char const *s2)"}, {"node_id": 402, "universal_type": "function", "name": "unknown", "text_snippet": "ft_strnequ(char const *s1, char const *s2, size_t n)"}, {"node_id": 422, "universal_type": "function", "name": "unknown", "text_snippet": "ft_strcat(char *s1, char const *s2)"}, {"node_id": 439, "universal_type": "function", "name": "unknown", "text_snippet": "ft_strncat(char *s1, char const *s2, size_t n)"}, {"node_id": 457, "universal_type": "function", "name": "unknown", "text_snippet": "ft_strlcat(char *s1, char const *s2, size_t size)"}, {"node_id": 477, "universal_type": "function", "name": "unknown", "text_snippet": "ft_strjoin(char const *s1, char const *s2)"}, {"node_id": 494, "universal_type": "function", "name": "unknown", "text_snippet": "ft_strjoin_free(char *s1, char const *s2)"}, {"node_id": 511, "universal_type": "function", "name": "start,", "text_snippet": "ft_strsub(char const *s, unsigned int start, \\\n\t\t\t\t\t\t\tsize_t len)"}, {"node_id": 533, "universal_type": "function", "name": "unknown", "text_snippet": "ft_strsplit(char const *s, char c)"}, {"node_id": 548, "universal_type": "function", "name": "c)", "text_snippet": "ft_strchr(char const *s, int c)"}, {"node_id": 563, "universal_type": "function", "name": "c)", "text_snippet": "ft_strrchr(char const *s, int c)"}, {"node_id": 578, "universal_type": "function", "name": "unknown", "text_snippet": "ft_strstr(char const *s1, char const *s2)"}, {"node_id": 595, "universal_type": "function", "name": "unknown", "text_snippet": "ft_strnstr(char const *s1, char const *s2, size_t n)"}, {"node_id": 613, "universal_type": "function", "name": "", "text_snippet": "ft_striter(char *s, void (*f)(char *))"}, {"node_id": 623, "universal_type": "function", "name": "unknown", "text_snippet": "(*f)(char *)"}, {"node_id": 635, "universal_type": "function", "name": "", "text_snippet": "ft_striteri(char *s, void (*f)(unsigned int, char *))"}, {"node_id": 645, "universal_type": "function", "name": "unknown", "text_snippet": "(*f)(unsigned int, char *)"}, {"node_id": 663, "universal_type": "function", "name": "unknown", "text_snippet": "ft_strmap(char const *s, char (*f)(char))"}, {"node_id": 673, "universal_type": "function", "name": "unknown", "text_snippet": "(*f)(char)"}, {"node_id": 685, "universal_type": "function", "name": "unknown", "text_snippet": "ft_strmapi(char const *s, \\\n\t\t\t\t\t\t\tchar (*f)(unsigned int, char))"}, {"node_id": 695, "universal_type": "function", "name": "unknown", "text_snippet": "(*f)(unsigned int, char)"}, {"node_id": 711, "universal_type": "function", "name": "unknown", "text_snippet": "ft_strtrim(char const *s)"}, {"node_id": 721, "universal_type": "function", "name": "unknown", "text_snippet": "ft_atoi(char const *s)"}, {"node_id": 733, "universal_type": "function", "name": "unknown", "text_snippet": "ft_itoa(t_int n)"}, {"node_id": 743, "universal_type": "function", "name": "unknown", "text_snippet": "ft_uitoa(t_uint n)"}, {"node_id": 751, "universal_type": "function", "name": "unknown", "text_snippet": "ft_atof(const char *str, size_t *len)"}, {"node_id": 766, "universal_type": "function", "name": "unknown", "text_snippet": "ft_intlen(t_int n)"}, {"node_id": 774, "universal_type": "function", "name": "unknown", "text_snippet": "ft_abs(t_int n)"}, {"node_id": 782, "universal_type": "function", "name": "pow)", "text_snippet": "ft_pow(int nbr, int pow)"}, {"node_id": 795, "universal_type": "function", "name": "unknown", "text_snippet": "ft_convert_base(char *nbr, char *base_from, \\\n\t\t\t\t\t\t\tchar *base_to)"}, {"node_id": 817, "universal_type": "function", "name": "unknown", "text_snippet": "ft_convert_base_free(char *nbr, char *base_from, \\\n\t\t\t\t\t\t\tchar *base_to)"}, {"node_id": 839, "universal_type": "function", "name": "unknown", "text_snippet": "ft_memalloc(size_t size)"}, {"node_id": 849, "universal_type": "function", "name": "unknown", "text_snippet": "ft_memrealloc(void *ptr, size_t size, size_t new_size)"}, {"node_id": 865, "universal_type": "function", "name": "unknown", "text_snippet": "ft_memdel(void **ap)"}, {"node_id": 877, "universal_type": "function", "name": "unknown", "text_snippet": "ft_bzero(void *s, size_t n)"}, {"node_id": 892, "universal_type": "function", "name": "c,", "text_snippet": "ft_memset(void *b, int c, size_t len)"}, {"node_id": 910, "universal_type": "function", "name": "unknown", "text_snippet": "ft_memdup(void *buf, size_t size)"}, {"node_id": 925, "universal_type": "function", "name": "const", "text_snippet": "ft_memcpy(void *s1, void const *s2, size_t n)"}, {"node_id": 945, "universal_type": "function", "name": "const", "text_snippet": "ft_memccpy(void *s1, void const *s2, int c, size_t n)"}, {"node_id": 968, "universal_type": "function", "name": "const", "text_snippet": "ft_memmove(void *s1, void const *s2, size_t n)"}, {"node_id": 986, "universal_type": "function", "name": "const", "text_snippet": "ft_memcmp(void const*s1, void const *s2, size_t n)"}, {"node_id": 1006, "universal_type": "function", "name": "c,", "text_snippet": "ft_memchr(void const *s, int c, size_t n)"}, {"node_id": 1042, "universal_type": "function", "name": "unknown", "text_snippet": "ft_lstnew(void const *content)"}, {"node_id": 1052, "universal_type": "function", "name": "*n)", "text_snippet": "ft_lstadd(t_list **alst, void *n)"}, {"node_id": 1069, "universal_type": "function", "name": "*n)", "text_snippet": "ft_lstaddend(t_list **alst, void *n)"}, {"node_id": 1086, "universal_type": "function", "name": "", "text_snippet": "ft_lstdel(t_list **alst, void (*del)(void *))"}, {"node_id": 1098, "universal_type": "function", "name": "unknown", "text_snippet": "(*del)(void *)"}, {"node_id": 1110, "universal_type": "function", "name": "", "text_snippet": "ft_lstdel_if(t_list **alst, void (*del)(), \\\n\t\t\t\t\t\t\tvoid *ref, int (*cmp)())"}, {"node_id": 1122, "universal_type": "function", "name": "unknown", "text_snippet": "(*del)()"}, {"node_id": 1135, "universal_type": "function", "name": "unknown", "text_snippet": "(*cmp)()"}, {"node_id": 1143, "universal_type": "function", "name": "", "text_snippet": "ft_lstdelone(t_list **alst, void (*del)(void *))"}, {"node_id": 1155, "universal_type": "function", "name": "unknown", "text_snippet": "(*del)(void *)"}, {"node_id": 1167, "universal_type": "function", "name": "unknown", "text_snippet": "ft_lstcount(void *alst)"}, {"node_id": 1177, "universal_type": "function", "name": "", "text_snippet": "ft_lstiter(t_list *lst, void (*f)(t_list *elem))"}, {"node_id": 1187, "universal_type": "function", "name": "unknown", "text_snippet": "(*f)(t_list *elem)"}, {"node_id": 1223, "universal_type": "function", "name": "", "text_snippet": "ft_lstsort(t_list **alst, int (*f)(t_list *elem1, \\\n\t\t\t\t\t\t\tt_list *elem2))"}, {"node_id": 1235, "universal_type": "function", "name": "unknown", "text_snippet": "(*f)(t_list *elem1, \\\n\t\t\t\t\t\t\tt_list *elem2)"}, {"node_id": 1300, "universal_type": "function", "name": "*content,", "text_snippet": "ft_btreeadd(t_btree **atree, void *content, \\\n\t\t\t\t\t\t\tt_btdir (*cmp)(t_btree *, void *))"}, {"node_id": 1317, "universal_type": "function", "name": "*)", "text_snippet": "(*cmp)(t_btree *, void *)"}, {"node_id": 1333, "universal_type": "function", "name": "*),", "text_snippet": "ft_btreeiter(t_btree *atree, \\\n\t\t\t\t\t\t\tt_btdir (*cmp)(t_btree *, t_btree *, void *), \\\n\t\t\t\t\t\t\tint (*f"}, {"node_id": 1343, "universal_type": "function", "name": "*)", "text_snippet": "(*cmp)(t_btree *, t_btree *, void *)"}, {"node_id": 1363, "universal_type": "function", "name": "*)", "text_snippet": "(*fct)(t_btree *, int, void *)"}, {"node_id": 1386, "universal_type": "function", "name": "depth,", "text_snippet": "ft_put_btree(t_btree *tree, int depth, \\\n\t\t\t\t\t\t\tvoid (*putfunc)(void *))"}, {"node_id": 1399, "universal_type": "function", "name": "unknown", "text_snippet": "(*putfunc)(void *)"}, {"node_id": 1411, "universal_type": "function", "name": "unknown", "text_snippet": "ft_tablen(char **tab)"}, {"node_id": 1427, "universal_type": "function", "name": "unknown", "text_snippet": "ft_tabcpy(char **tab)"}, {"node_id": 1441, "universal_type": "function", "name": "unknown", "text_snippet": "ft_tabrealloc(void *tab, \\\n\t\t\t\t\t\t\tsize_t old_size, size_t new_size, size_t unit)"}, {"node_id": 1460, "universal_type": "function", "name": "unknown", "text_snippet": "ft_tabprint(char **tab)"}, {"node_id": 1472, "universal_type": "function", "name": "unknown", "text_snippet": "ft_tabfree(char **tab)"}, {"node_id": 1484, "universal_type": "function", "name": "unknown", "text_snippet": "ft_charset_parser(const char *str, \\\n\t\t\t\t\t\t\tconst char *charset, size_t *len)"}, {"node_id": 1504, "universal_type": "function", "name": "unknown", "text_snippet": "ft_word_parser(const char *str, const char *word, \\\n\t\t\t\t\t\t\tsize_t w_size)"}, {"node_id": 1522, "universal_type": "function", "name": "unknown", "text_snippet": "ft_natoi(const char *str, size_t size)"}, {"node_id": 1535, "universal_type": "function", "name": "unknown", "text_snippet": "ft_natof(const char *str, size_t size, size_t *len)"}], "class_declarations": [{"node_id": 1022, "universal_type": "class", "name": "s_list", "text_snippet": "struct\t\t\ts_list\n{\n\tstruct s_list\t\t*next;\n\tvoid\t\t\t\t*content;\n}"}, {"node_id": 1023, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 1026, "universal_type": "class", "name": "s_list", "text_snippet": "struct s_list"}, {"node_id": 1027, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 1266, "universal_type": "class", "name": "s_btree", "text_snippet": "struct\t\t\ts_btree\n{\n\tstruct s_btree\t\t*father;\n\tstruct s_btree\t\t*left;\n\tstruct s_btree\t\t*right;\n\tvoid\t"}, {"node_id": 1267, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 1270, "universal_type": "class", "name": "s_btree", "text_snippet": "struct s_btree"}, {"node_id": 1271, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 1277, "universal_type": "class", "name": "s_btree", "text_snippet": "struct s_btree"}, {"node_id": 1278, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 1284, "universal_type": "class", "name": "s_btree", "text_snippet": "struct s_btree"}, {"node_id": 1285, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "# include <unistd.h>\n"}, {"node_id": 7, "text": "# include"}, {"node_id": 9, "text": "# include <stdlib.h>\n"}, {"node_id": 10, "text": "# include"}, {"node_id": 12, "text": "# include <string.h>\n"}, {"node_id": 13, "text": "# include"}]}, "original_source_code": "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* libft.h :+: :+: :+: */\n/* +:+ +:+ +:+ */\n/* By: bhivert <<EMAIL>> +#+ +:+ +#+ */\n/* +#+#+#+#+#+ +#+ */\n/* Created: 2013/11/19 11:39:25 by bhivert #+# #+# */\n/* Updated: 2015/09/23 10:09:24 by bhivert ### ########.fr */\n/* */\n/* ************************************************************************** */\n\n#ifndef LIBFT_H\n# define LIBFT_H\n\n# include <unistd.h>\n# include <stdlib.h>\n# include <string.h>\n\n# ifndef T_BOOL\n# define T_BOOL\n# define D_FALSE\t\t((char)\t0)\n# define D_TRUE\t\t((char)\t1)\n\ntypedef char\t\t\tt_bool;\n# endif\n\n# ifndef T_INT\n# define T_INT\t\t\tlong long int\n# define T_UINT\t\tunsigned long long int\n\ntypedef T_INT\t\t\tt_int;\ntypedef T_UINT\t\t\tt_uint;\n# endif\n\n# ifndef XOR\n# define XOR(a,b)\t\t((a && !b) || (!a && b))\n# endif\n\n# ifndef MIN\n# define MIN(a,b)\t\t((a < b) ? a : b)\n# endif\n\n# ifndef MAX\n# define MAX(a,b)\t\t((a > b) ? a : b)\n# endif\n\n# ifndef STR_NPOS\n# define STR_NPOS\t\t((size_t) -1)\n# endif\n\n/*\n** =============================================================================\n** ================================== CHAR =====================================\n*/\nint\t\t\t\t\t\tft_isalpha(int c);\nint\t\t\t\t\t\tft_isdigit(int c);\nint\t\t\t\t\t\tft_isalnum(int c);\nint\t\t\t\t\t\tft_isascii(int c);\nint\t\t\t\t\t\tft_isprint(int c);\nint\t\t\t\t\t\tft_isspace(int c);\n\nint\t\t\t\t\t\tft_toupper(int c);\nint\t\t\t\t\t\tft_tolower(int c);\n\n/*\n** =============================================================================\n** =================================== IO ======================================\n** #include \"ft_printf.h\"\n** ft_printf(const char *format, ...);\n** ft_fprintf(int fd, const char *format, ...);\n** ft_sprintf(char **str, const char *format, ...);\n*/\n# define GNL_BUFF_SIZE\t128\n\nint\t\t\t\t\t\tft_gnl(int fd, char **line);\n\nint\t\t\t\t\t\tft_putchar(int c);\nint\t\t\t\t\t\tft_putchar_fd(int c, int fd);\n\nvoid\t\t\t\t\tft_putstr(char const *s);\nvoid\t\t\t\t\tft_putstr_fd(char const *s, int fd);\nvoid\t\t\t\t\tft_putendl(char const *s);\nvoid\t\t\t\t\tft_putendl_fd(char const *s, int fd);\n\nvoid\t\t\t\t\tft_putnbr(int n);\nvoid\t\t\t\t\tft_putnbr_fd(int n, int fd);\n\n/*\n** =============================================================================\n** =================================== STR =====================================\n*/\nsize_t\t\t\t\t\tft_strlen(char const *s);\n\nchar\t\t\t\t\t*ft_strnew(size_t size);\nchar\t\t\t\t\t*ft_strdup(char const *s1);\nchar\t\t\t\t\t*ft_strcpy(char *s1, char const *s2);\nchar\t\t\t\t\t*ft_strncpy(char *s1, char const *s2, size_t n);\nvoid\t\t\t\t\tft_strclr(char *s);\nvoid\t\t\t\t\tft_strdel(char **as);\n\nint\t\t\t\t\t\tft_strcmp(char const *s1, char const *s2);\nint\t\t\t\t\t\tft_strncmp(char const *s1, char const *s2, size_t n);\nt_bool\t\t\t\t\tft_strequ(char const *s1, char const *s2);\nt_bool\t\t\t\t\tft_strnequ(char const *s1, char const *s2, size_t n);\n\nchar\t\t\t\t\t*ft_strcat(char *s1, char const *s2);\nchar\t\t\t\t\t*ft_strncat(char *s1, char const *s2, size_t n);\nsize_t\t\t\t\t\tft_strlcat(char *s1, char const *s2, size_t size);\nchar\t\t\t\t\t*ft_strjoin(char const *s1, char const *s2);\nchar\t\t\t\t\t*ft_strjoin_free(char *s1, char const *s2);\n\nchar\t\t\t\t\t*ft_strsub(char const *s, unsigned int start, \\\n\t\t\t\t\t\t\tsize_t len);\nchar\t\t\t\t\t**ft_strsplit(char const *s, char c);\n\nchar\t\t\t\t\t*ft_strchr(char const *s, int c);\nchar\t\t\t\t\t*ft_strrchr(char const *s, int c);\nchar\t\t\t\t\t*ft_strstr(char const *s1, char const *s2);\nchar\t\t\t\t\t*ft_strnstr(char const *s1, char const *s2, size_t n);\n\nvoid\t\t\t\t\tft_striter(char *s, void (*f)(char *));\nvoid\t\t\t\t\tft_striteri(char *s, void (*f)(unsigned int, char *));\nchar\t\t\t\t\t*ft_strmap(char const *s, char (*f)(char));\nchar\t\t\t\t\t*ft_strmapi(char const *s, \\\n\t\t\t\t\t\t\tchar (*f)(unsigned int, char));\n\nchar\t\t\t\t\t*ft_strtrim(char const *s);\n\n/*\n** =============================================================================\n** =================================== NUM =====================================\n*/\nint\t\t\t\t\t\tft_atoi(char const *s);\nchar\t\t\t\t\t*ft_itoa(t_int n);\nchar\t\t\t\t\t*ft_uitoa(t_uint n);\n\ndouble\t\t\t\t\tft_atof(const char *str, size_t *len);\n\nsize_t\t\t\t\t\tft_intlen(t_int n);\nt_int\t\t\t\t\tft_abs(t_int n);\nint\t\t\t\t\t\tft_pow(int nbr, int pow);\n\nchar\t\t\t\t\t*ft_convert_base(char *nbr, char *base_from, \\\n\t\t\t\t\t\t\tchar *base_to);\nchar\t\t\t\t\t*ft_convert_base_free(char *nbr, char *base_from, \\\n\t\t\t\t\t\t\tchar *base_to);\n\n/*\n** =============================================================================\n** =================================== MEM =====================================\n*/\nvoid\t\t\t\t\t*ft_memalloc(size_t size);\nvoid\t\t\t\t\t*ft_memrealloc(void *ptr, size_t size, size_t new_size);\nint\t\t\t\t\t\tft_memdel(void **ap);\n\nvoid\t\t\t\t\tft_bzero(void *s, size_t n);\nvoid\t\t\t\t\t*ft_memset(void *b, int c, size_t len);\n\nvoid\t\t\t\t\t*ft_memdup(void *buf, size_t size);\nvoid\t\t\t\t\t*ft_memcpy(void *s1, void const *s2, size_t n);\nvoid\t\t\t\t\t*ft_memccpy(void *s1, void const *s2, int c, size_t n);\nvoid\t\t\t\t\t*ft_memmove(void *s1, void const *s2, size_t n);\n\nint\t\t\t\t\t\tft_memcmp(void const*s1, void const *s2, size_t n);\n\nvoid\t\t\t\t\t*ft_memchr(void const *s, int c, size_t n);\n\n/*\n** =============================================================================\n** =================================== LIST ====================================\n*/\ntypedef struct\t\t\ts_list\n{\n\tstruct s_list\t\t*next;\n\tvoid\t\t\t\t*content;\n}\t\t\t\t\t\tt_list;\n\nt_list\t\t\t\t\t*ft_lstnew(void const *content);\nvoid\t\t\t\t\tft_lstadd(t_list **alst, void *n);\nvoid\t\t\t\t\tft_lstaddend(t_list **alst, void *n);\n\nvoid\t\t\t\t\tft_lstdel(t_list **alst, void (*del)(void *));\nvoid\t\t\t\t\tft_lstdel_if(t_list **alst, void (*del)(), \\\n\t\t\t\t\t\t\tvoid *ref, int (*cmp)());\nvoid\t\t\t\t\tft_lstdelone(t_list **alst, void (*del)(void *));\n\nsize_t\t\t\t\t\tft_lstcount(void *alst);\n\nvoid\t\t\t\t\tft_lstiter(t_list *lst, void (*f)(t_list *elem));\nt_list\t\t\t\t\t*ft_lstmap(t_list *lst, t_list *(*f)(t_list *elem));\nvoid\t\t\t\t\tft_lstsort(t_list **alst, int (*f)(t_list *elem1, \\\n\t\t\t\t\t\t\tt_list *elem2));\n/*\n** =============================================================================\n** =================================== TREE ====================================\n*/\ntypedef enum\t\t\te_btdir\n{\n\tFT_BT_SAME,\n\tFT_BT_LEFT,\n\tFT_BT_RIGHT\n}\t\t\t\t\t\tt_btdir;\n\ntypedef struct\t\t\ts_btree\n{\n\tstruct s_btree\t\t*father;\n\tstruct s_btree\t\t*left;\n\tstruct s_btree\t\t*right;\n\tvoid\t\t\t\t*content;\n}\t\t\t\t\t\tt_btree;\n\nt_btree\t\t\t\t\t*ft_btreeadd(t_btree **atree, void *content, \\\n\t\t\t\t\t\t\tt_btdir (*cmp)(t_btree *, void *));\nint\t\t\t\t\t\tft_btreeiter(t_btree *atree, \\\n\t\t\t\t\t\t\tt_btdir (*cmp)(t_btree *, t_btree *, void *), \\\n\t\t\t\t\t\t\tint (*fct)(t_btree *, int, void *), \\\n\t\t\t\t\t\t\tvoid *ref);\nvoid\t\t\t\t\tft_put_btree(t_btree *tree, int depth, \\\n\t\t\t\t\t\t\tvoid (*putfunc)(void *));\n/*\n** =============================================================================\n** =================================== TAB =====================================\n*/\nsize_t\t\t\t\t\tft_tablen(char **tab);\nchar\t\t\t\t\t**ft_tabcpy(char **tab);\nvoid\t\t\t\t\t*ft_tabrealloc(void *tab, \\\n\t\t\t\t\t\t\tsize_t old_size, size_t new_size, size_t unit);\nvoid\t\t\t\t\tft_tabprint(char **tab);\nvoid\t\t\t\t\tft_tabfree(char **tab);\n/*\n** =============================================================================\n** ================================= PARSING ===================================\n*/\nint\t\t\t\t\t\tft_charset_parser(const char *str, \\\n\t\t\t\t\t\t\tconst char *charset, size_t *len);\nssize_t\t\t\t\t\tft_word_parser(const char *str, const char *word, \\\n\t\t\t\t\t\t\tsize_t w_size);\nint\t\t\t\t\t\tft_natoi(const char *str, size_t size);\ndouble\t\t\t\t\tft_natof(const char *str, size_t size, size_t *len);\n\n#endif\n"}
80,235
c
// // Created by qlu on 2019/1/10. // #ifndef MD_GATEWAY_CTP_H #define MD_GATEWAY_CTP_H #include <string> #include <map> #include <kungfu/yijinjing/common.h> #include <kungfu/wingchun/msg.h> #include <kungfu/wingchun/gateway/marketdata.h> #include "ThostFtdcMdApi.h" namespace kungfu { namespace wingchun { namespace ctp { class MdGateway : public CThostFtdcMdSpi, public gateway::MarketData { public: MdGateway(bool low_latency, yijinjing::data::locator_ptr locator, std::map<std::string, std::string> &config_str, std::map<std::string, int> &config_int, std::map<std::string, double> &config_double); virtual ~MdGateway() {}; bool subscribe(const std::vector<wingchun::msg::data::Instrument> &instruments) override; bool unsubscribe(const std::vector<wingchun::msg::data::Instrument> &instruments) override; bool subscribe(const std::vector<std::string> &instrument_ids); bool unsubscribe(const std::vector<std::string> &instrument_ids); bool login(); ///当客户端与交易后台建立起通信连接时(还未登录前),该方法被调用。 virtual void OnFrontConnected(); ///当客户端与交易后台通信连接断开时,该方法被调用。当发生这个情况后,API会自动重新连接,客户端可不做处理。 ///@param nReason 错误原因 /// 0x1001 网络读失败 /// 0x1002 网络写失败 /// 0x2001 接收心跳超时 /// 0x2002 发送心跳失败 /// 0x2003 收到错误报文 virtual void OnFrontDisconnected(int nReason); ///登录请求响应 virtual void OnRspUserLogin(CThostFtdcRspUserLoginField *pRspUserLogin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast); ///登出请求响应 virtual void OnRspUserLogout(CThostFtdcUserLogoutField *pUserLogout, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast); ///订阅行情应答 virtual void OnRspSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast); ///取消订阅行情应答 virtual void OnRspUnSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast); ///深度行情通知 virtual void OnRtnDepthMarketData(CThostFtdcDepthMarketDataField *pDepthMarketData); protected: void on_start() override; private: std::string front_uri_; std::string broker_id_; std::string account_id_; std::string password_; int request_id_; CThostFtdcMdApi *api_; static const std::unordered_map<int, std::string> kDisconnectedReasonMap; }; } } } #endif //MD_GATEWAY_CTP_H
43.54
71
(translation_unit) "//\n// Created by qlu on 2019/1/10.\n//\n\n#ifndef MD_GATEWAY_CTP_H\n#define MD_GATEWAY_CTP_H\n\n#include <string>\n#include <map>\n\n#include <kungfu/yijinjing/common.h>\n#include <kungfu/wingchun/msg.h>\n#include <kungfu/wingchun/gateway/marketdata.h>\n\n#include "ThostFtdcMdApi.h"\n\nnamespace kungfu\n{\n namespace wingchun\n {\n namespace ctp\n {\n class MdGateway : public CThostFtdcMdSpi, public gateway::MarketData\n {\n public:\n MdGateway(bool low_latency, yijinjing::data::locator_ptr locator,\n std::map<std::string, std::string> &config_str,\n std::map<std::string, int> &config_int,\n std::map<std::string, double> &config_double);\n\n virtual ~MdGateway()\n {};\n\n bool subscribe(const std::vector<wingchun::msg::data::Instrument> &instruments) override;\n\n bool unsubscribe(const std::vector<wingchun::msg::data::Instrument> &instruments) override;\n\n bool subscribe(const std::vector<std::string> &instrument_ids);\n\n bool unsubscribe(const std::vector<std::string> &instrument_ids);\n\n bool login();\n\n ///当客户端与交易后台建立起通信连接时(还未登录前),该方法被调用。\n virtual void OnFrontConnected();\n\n ///当客户端与交易后台通信连接断开时,该方法被调用。当发生这个情况后,API会自动重新连接,客户端可不做处理。\n ///@param nReason 错误原因\n /// 0x1001 网络读失败\n /// 0x1002 网络写失败\n /// 0x2001 接收心跳超时\n /// 0x2002 发送心跳失败\n /// 0x2003 收到错误报文\n virtual void OnFrontDisconnected(int nReason);\n\n ///登录请求响应\n virtual void\n OnRspUserLogin(CThostFtdcRspUserLoginField *pRspUserLogin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);\n\n ///登出请求响应\n virtual void OnRspUserLogout(CThostFtdcUserLogoutField *pUserLogout, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);\n\n ///订阅行情应答\n virtual void\n OnRspSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID,\n bool bIsLast);\n\n ///取消订阅行情应答\n virtual void\n OnRspUnSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID,\n bool bIsLast);\n\n ///深度行情通知\n virtual void OnRtnDepthMarketData(CThostFtdcDepthMarketDataField *pDepthMarketData);\n\n protected:\n\n void on_start() override;\n\n private:\n std::string front_uri_;\n std::string broker_id_;\n std::string account_id_;\n std::string password_;\n\n int request_id_;\n\n CThostFtdcMdApi *api_;\n\n static const std::unordered_map<int, std::string> kDisconnectedReasonMap;\n\n };\n }\n }\n}\n#endif //MD_GATEWAY_CTP_H\n" (comment) "//" (comment) "// Created by qlu on 2019/1/10." (comment) "//" (preproc_ifdef) "#ifndef MD_GATEWAY_CTP_H\n#define MD_GATEWAY_CTP_H\n\n#include <string>\n#include <map>\n\n#include <kungfu/yijinjing/common.h>\n#include <kungfu/wingchun/msg.h>\n#include <kungfu/wingchun/gateway/marketdata.h>\n\n#include "ThostFtdcMdApi.h"\n\nnamespace kungfu\n{\n namespace wingchun\n {\n namespace ctp\n {\n class MdGateway : public CThostFtdcMdSpi, public gateway::MarketData\n {\n public:\n MdGateway(bool low_latency, yijinjing::data::locator_ptr locator,\n std::map<std::string, std::string> &config_str,\n std::map<std::string, int> &config_int,\n std::map<std::string, double> &config_double);\n\n virtual ~MdGateway()\n {};\n\n bool subscribe(const std::vector<wingchun::msg::data::Instrument> &instruments) override;\n\n bool unsubscribe(const std::vector<wingchun::msg::data::Instrument> &instruments) override;\n\n bool subscribe(const std::vector<std::string> &instrument_ids);\n\n bool unsubscribe(const std::vector<std::string> &instrument_ids);\n\n bool login();\n\n ///当客户端与交易后台建立起通信连接时(还未登录前),该方法被调用。\n virtual void OnFrontConnected();\n\n ///当客户端与交易后台通信连接断开时,该方法被调用。当发生这个情况后,API会自动重新连接,客户端可不做处理。\n ///@param nReason 错误原因\n /// 0x1001 网络读失败\n /// 0x1002 网络写失败\n /// 0x2001 接收心跳超时\n /// 0x2002 发送心跳失败\n /// 0x2003 收到错误报文\n virtual void OnFrontDisconnected(int nReason);\n\n ///登录请求响应\n virtual void\n OnRspUserLogin(CThostFtdcRspUserLoginField *pRspUserLogin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);\n\n ///登出请求响应\n virtual void OnRspUserLogout(CThostFtdcUserLogoutField *pUserLogout, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);\n\n ///订阅行情应答\n virtual void\n OnRspSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID,\n bool bIsLast);\n\n ///取消订阅行情应答\n virtual void\n OnRspUnSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID,\n bool bIsLast);\n\n ///深度行情通知\n virtual void OnRtnDepthMarketData(CThostFtdcDepthMarketDataField *pDepthMarketData);\n\n protected:\n\n void on_start() override;\n\n private:\n std::string front_uri_;\n std::string broker_id_;\n std::string account_id_;\n std::string password_;\n\n int request_id_;\n\n CThostFtdcMdApi *api_;\n\n static const std::unordered_map<int, std::string> kDisconnectedReasonMap;\n\n };\n }\n }\n}\n#endif //MD_GATEWAY_CTP_H\n" (#ifndef) "#ifndef" (identifier) "MD_GATEWAY_CTP_H" (preproc_def) "#define MD_GATEWAY_CTP_H\n" (#define) "#define" (identifier) "MD_GATEWAY_CTP_H" (preproc_include) "#include <string>\n" (#include) "#include" (system_lib_string) "<string>" (preproc_include) "#include <map>\n" (#include) "#include" (system_lib_string) "<map>" (preproc_include) "#include <kungfu/yijinjing/common.h>\n" (#include) "#include" (system_lib_string) "<kungfu/yijinjing/common.h>" (preproc_include) "#include <kungfu/wingchun/msg.h>\n" (#include) "#include" (system_lib_string) "<kungfu/wingchun/msg.h>" (preproc_include) "#include <kungfu/wingchun/gateway/marketdata.h>\n" (#include) "#include" (system_lib_string) "<kungfu/wingchun/gateway/marketdata.h>" (preproc_include) "#include "ThostFtdcMdApi.h"\n" (#include) "#include" (string_literal) ""ThostFtdcMdApi.h"" (") """ (string_content) "ThostFtdcMdApi.h" (") """ (function_definition) "namespace kungfu\n{\n namespace wingchun\n {\n namespace ctp\n {\n class MdGateway : public CThostFtdcMdSpi, public gateway::MarketData\n {\n public:\n MdGateway(bool low_latency, yijinjing::data::locator_ptr locator,\n std::map<std::string, std::string> &config_str,\n std::map<std::string, int> &config_int,\n std::map<std::string, double> &config_double);\n\n virtual ~MdGateway()\n {};\n\n bool subscribe(const std::vector<wingchun::msg::data::Instrument> &instruments) override;\n\n bool unsubscribe(const std::vector<wingchun::msg::data::Instrument> &instruments) override;\n\n bool subscribe(const std::vector<std::string> &instrument_ids);\n\n bool unsubscribe(const std::vector<std::string> &instrument_ids);\n\n bool login();\n\n ///当客户端与交易后台建立起通信连接时(还未登录前),该方法被调用。\n virtual void OnFrontConnected();\n\n ///当客户端与交易后台通信连接断开时,该方法被调用。当发生这个情况后,API会自动重新连接,客户端可不做处理。\n ///@param nReason 错误原因\n /// 0x1001 网络读失败\n /// 0x1002 网络写失败\n /// 0x2001 接收心跳超时\n /// 0x2002 发送心跳失败\n /// 0x2003 收到错误报文\n virtual void OnFrontDisconnected(int nReason);\n\n ///登录请求响应\n virtual void\n OnRspUserLogin(CThostFtdcRspUserLoginField *pRspUserLogin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);\n\n ///登出请求响应\n virtual void OnRspUserLogout(CThostFtdcUserLogoutField *pUserLogout, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);\n\n ///订阅行情应答\n virtual void\n OnRspSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID,\n bool bIsLast);\n\n ///取消订阅行情应答\n virtual void\n OnRspUnSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID,\n bool bIsLast);\n\n ///深度行情通知\n virtual void OnRtnDepthMarketData(CThostFtdcDepthMarketDataField *pDepthMarketData);\n\n protected:\n\n void on_start() override;\n\n private:\n std::string front_uri_;\n std::string broker_id_;\n std::string account_id_;\n std::string password_;\n\n int request_id_;\n\n CThostFtdcMdApi *api_;\n\n static const std::unordered_map<int, std::string> kDisconnectedReasonMap;\n\n };\n }\n }\n}\n#endif //MD_GATEWAY_CTP_H\n" (type_identifier) "namespace" (identifier) "kungfu" (compound_statement) "{\n namespace wingchun\n {\n namespace ctp\n {\n class MdGateway : public CThostFtdcMdSpi, public gateway::MarketData\n {\n public:\n MdGateway(bool low_latency, yijinjing::data::locator_ptr locator,\n std::map<std::string, std::string> &config_str,\n std::map<std::string, int> &config_int,\n std::map<std::string, double> &config_double);\n\n virtual ~MdGateway()\n {};\n\n bool subscribe(const std::vector<wingchun::msg::data::Instrument> &instruments) override;\n\n bool unsubscribe(const std::vector<wingchun::msg::data::Instrument> &instruments) override;\n\n bool subscribe(const std::vector<std::string> &instrument_ids);\n\n bool unsubscribe(const std::vector<std::string> &instrument_ids);\n\n bool login();\n\n ///当客户端与交易后台建立起通信连接时(还未登录前),该方法被调用。\n virtual void OnFrontConnected();\n\n ///当客户端与交易后台通信连接断开时,该方法被调用。当发生这个情况后,API会自动重新连接,客户端可不做处理。\n ///@param nReason 错误原因\n /// 0x1001 网络读失败\n /// 0x1002 网络写失败\n /// 0x2001 接收心跳超时\n /// 0x2002 发送心跳失败\n /// 0x2003 收到错误报文\n virtual void OnFrontDisconnected(int nReason);\n\n ///登录请求响应\n virtual void\n OnRspUserLogin(CThostFtdcRspUserLoginField *pRspUserLogin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);\n\n ///登出请求响应\n virtual void OnRspUserLogout(CThostFtdcUserLogoutField *pUserLogout, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);\n\n ///订阅行情应答\n virtual void\n OnRspSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID,\n bool bIsLast);\n\n ///取消订阅行情应答\n virtual void\n OnRspUnSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID,\n bool bIsLast);\n\n ///深度行情通知\n virtual void OnRtnDepthMarketData(CThostFtdcDepthMarketDataField *pDepthMarketData);\n\n protected:\n\n void on_start() override;\n\n private:\n std::string front_uri_;\n std::string broker_id_;\n std::string account_id_;\n std::string password_;\n\n int request_id_;\n\n CThostFtdcMdApi *api_;\n\n static const std::unordered_map<int, std::string> kDisconnectedReasonMap;\n\n };\n }\n }\n}\n#endif //MD_GATEWAY_CTP_H\n" ({) "{" (function_definition) "namespace wingchun\n {\n namespace ctp\n {\n class MdGateway : public CThostFtdcMdSpi, public gateway::MarketData\n {\n public:\n MdGateway(bool low_latency, yijinjing::data::locator_ptr locator,\n std::map<std::string, std::string> &config_str,\n std::map<std::string, int> &config_int,\n std::map<std::string, double> &config_double);\n\n virtual ~MdGateway()\n {};\n\n bool subscribe(const std::vector<wingchun::msg::data::Instrument> &instruments) override;\n\n bool unsubscribe(const std::vector<wingchun::msg::data::Instrument> &instruments) override;\n\n bool subscribe(const std::vector<std::string> &instrument_ids);\n\n bool unsubscribe(const std::vector<std::string> &instrument_ids);\n\n bool login();\n\n ///当客户端与交易后台建立起通信连接时(还未登录前),该方法被调用。\n virtual void OnFrontConnected();\n\n ///当客户端与交易后台通信连接断开时,该方法被调用。当发生这个情况后,API会自动重新连接,客户端可不做处理。\n ///@param nReason 错误原因\n /// 0x1001 网络读失败\n /// 0x1002 网络写失败\n /// 0x2001 接收心跳超时\n /// 0x2002 发送心跳失败\n /// 0x2003 收到错误报文\n virtual void OnFrontDisconnected(int nReason);\n\n ///登录请求响应\n virtual void\n OnRspUserLogin(CThostFtdcRspUserLoginField *pRspUserLogin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);\n\n ///登出请求响应\n virtual void OnRspUserLogout(CThostFtdcUserLogoutField *pUserLogout, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);\n\n ///订阅行情应答\n virtual void\n OnRspSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID,\n bool bIsLast);\n\n ///取消订阅行情应答\n virtual void\n OnRspUnSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID,\n bool bIsLast);\n\n ///深度行情通知\n virtual void OnRtnDepthMarketData(CThostFtdcDepthMarketDataField *pDepthMarketData);\n\n protected:\n\n void on_start() override;\n\n private:\n std::string front_uri_;\n std::string broker_id_;\n std::string account_id_;\n std::string password_;\n\n int request_id_;\n\n CThostFtdcMdApi *api_;\n\n static const std::unordered_map<int, std::string> kDisconnectedReasonMap;\n\n };\n }\n }\n}\n#endif //MD_GATEWAY_CTP_H\n" (type_identifier) "namespace" (identifier) "wingchun" (compound_statement) "{\n namespace ctp\n {\n class MdGateway : public CThostFtdcMdSpi, public gateway::MarketData\n {\n public:\n MdGateway(bool low_latency, yijinjing::data::locator_ptr locator,\n std::map<std::string, std::string> &config_str,\n std::map<std::string, int> &config_int,\n std::map<std::string, double> &config_double);\n\n virtual ~MdGateway()\n {};\n\n bool subscribe(const std::vector<wingchun::msg::data::Instrument> &instruments) override;\n\n bool unsubscribe(const std::vector<wingchun::msg::data::Instrument> &instruments) override;\n\n bool subscribe(const std::vector<std::string> &instrument_ids);\n\n bool unsubscribe(const std::vector<std::string> &instrument_ids);\n\n bool login();\n\n ///当客户端与交易后台建立起通信连接时(还未登录前),该方法被调用。\n virtual void OnFrontConnected();\n\n ///当客户端与交易后台通信连接断开时,该方法被调用。当发生这个情况后,API会自动重新连接,客户端可不做处理。\n ///@param nReason 错误原因\n /// 0x1001 网络读失败\n /// 0x1002 网络写失败\n /// 0x2001 接收心跳超时\n /// 0x2002 发送心跳失败\n /// 0x2003 收到错误报文\n virtual void OnFrontDisconnected(int nReason);\n\n ///登录请求响应\n virtual void\n OnRspUserLogin(CThostFtdcRspUserLoginField *pRspUserLogin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);\n\n ///登出请求响应\n virtual void OnRspUserLogout(CThostFtdcUserLogoutField *pUserLogout, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);\n\n ///订阅行情应答\n virtual void\n OnRspSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID,\n bool bIsLast);\n\n ///取消订阅行情应答\n virtual void\n OnRspUnSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID,\n bool bIsLast);\n\n ///深度行情通知\n virtual void OnRtnDepthMarketData(CThostFtdcDepthMarketDataField *pDepthMarketData);\n\n protected:\n\n void on_start() override;\n\n private:\n std::string front_uri_;\n std::string broker_id_;\n std::string account_id_;\n std::string password_;\n\n int request_id_;\n\n CThostFtdcMdApi *api_;\n\n static const std::unordered_map<int, std::string> kDisconnectedReasonMap;\n\n };\n }\n }\n}\n#endif //MD_GATEWAY_CTP_H\n" ({) "{" (function_definition) "namespace ctp\n {\n class MdGateway : public CThostFtdcMdSpi, public gateway::MarketData\n {\n public:\n MdGateway(bool low_latency, yijinjing::data::locator_ptr locator,\n std::map<std::string, std::string> &config_str,\n std::map<std::string, int> &config_int,\n std::map<std::string, double> &config_double);\n\n virtual ~MdGateway()\n {};\n\n bool subscribe(const std::vector<wingchun::msg::data::Instrument> &instruments) override;\n\n bool unsubscribe(const std::vector<wingchun::msg::data::Instrument> &instruments) override;\n\n bool subscribe(const std::vector<std::string> &instrument_ids);\n\n bool unsubscribe(const std::vector<std::string> &instrument_ids);\n\n bool login();\n\n ///当客户端与交易后台建立起通信连接时(还未登录前),该方法被调用。\n virtual void OnFrontConnected();\n\n ///当客户端与交易后台通信连接断开时,该方法被调用。当发生这个情况后,API会自动重新连接,客户端可不做处理。\n ///@param nReason 错误原因\n /// 0x1001 网络读失败\n /// 0x1002 网络写失败\n /// 0x2001 接收心跳超时\n /// 0x2002 发送心跳失败\n /// 0x2003 收到错误报文\n virtual void OnFrontDisconnected(int nReason);\n\n ///登录请求响应\n virtual void\n OnRspUserLogin(CThostFtdcRspUserLoginField *pRspUserLogin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);\n\n ///登出请求响应\n virtual void OnRspUserLogout(CThostFtdcUserLogoutField *pUserLogout, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);\n\n ///订阅行情应答\n virtual void\n OnRspSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID,\n bool bIsLast);\n\n ///取消订阅行情应答\n virtual void\n OnRspUnSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID,\n bool bIsLast);\n\n ///深度行情通知\n virtual void OnRtnDepthMarketData(CThostFtdcDepthMarketDataField *pDepthMarketData);\n\n protected:\n\n void on_start() override;\n\n private:\n std::string front_uri_;\n std::string broker_id_;\n std::string account_id_;\n std::string password_;\n\n int request_id_;\n\n CThostFtdcMdApi *api_;\n\n static const std::unordered_map<int, std::string> kDisconnectedReasonMap;\n\n };\n }\n }\n}\n#endif //MD_GATEWAY_CTP_H\n" (type_identifier) "namespace" (identifier) "ctp" (compound_statement) "{\n class MdGateway : public CThostFtdcMdSpi, public gateway::MarketData\n {\n public:\n MdGateway(bool low_latency, yijinjing::data::locator_ptr locator,\n std::map<std::string, std::string> &config_str,\n std::map<std::string, int> &config_int,\n std::map<std::string, double> &config_double);\n\n virtual ~MdGateway()\n {};\n\n bool subscribe(const std::vector<wingchun::msg::data::Instrument> &instruments) override;\n\n bool unsubscribe(const std::vector<wingchun::msg::data::Instrument> &instruments) override;\n\n bool subscribe(const std::vector<std::string> &instrument_ids);\n\n bool unsubscribe(const std::vector<std::string> &instrument_ids);\n\n bool login();\n\n ///当客户端与交易后台建立起通信连接时(还未登录前),该方法被调用。\n virtual void OnFrontConnected();\n\n ///当客户端与交易后台通信连接断开时,该方法被调用。当发生这个情况后,API会自动重新连接,客户端可不做处理。\n ///@param nReason 错误原因\n /// 0x1001 网络读失败\n /// 0x1002 网络写失败\n /// 0x2001 接收心跳超时\n /// 0x2002 发送心跳失败\n /// 0x2003 收到错误报文\n virtual void OnFrontDisconnected(int nReason);\n\n ///登录请求响应\n virtual void\n OnRspUserLogin(CThostFtdcRspUserLoginField *pRspUserLogin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);\n\n ///登出请求响应\n virtual void OnRspUserLogout(CThostFtdcUserLogoutField *pUserLogout, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);\n\n ///订阅行情应答\n virtual void\n OnRspSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID,\n bool bIsLast);\n\n ///取消订阅行情应答\n virtual void\n OnRspUnSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID,\n bool bIsLast);\n\n ///深度行情通知\n virtual void OnRtnDepthMarketData(CThostFtdcDepthMarketDataField *pDepthMarketData);\n\n protected:\n\n void on_start() override;\n\n private:\n std::string front_uri_;\n std::string broker_id_;\n std::string account_id_;\n std::string password_;\n\n int request_id_;\n\n CThostFtdcMdApi *api_;\n\n static const std::unordered_map<int, std::string> kDisconnectedReasonMap;\n\n };\n }\n }\n}\n#endif //MD_GATEWAY_CTP_H\n" ({) "{" (declaration) "class MdGateway : public CThostFtdcMdSpi, public gateway::MarketData\n {\n public:\n MdGateway(bool low_latency, yijinjing::data::locator_ptr locator,\n std::map<std::string, std::string> &config_str,\n std::map<std::string, int> &config_int,\n std::map<std::string, double> &config_double);" (type_identifier) "class" (ERROR) "MdGateway : public" (identifier) "MdGateway" (:) ":" (identifier) "public" (identifier) "CThostFtdcMdSpi" (,) "," (ERROR) "public gateway::MarketData\n {\n public:" (identifier) "public" (identifier) "gateway" (:) ":" (:) ":" (identifier) "MarketData" ({) "{" (identifier) "public" (:) ":" (function_declarator) "MdGateway(bool low_latency, yijinjing::data::locator_ptr locator,\n std::map<std::string, std::string> &config_str,\n std::map<std::string, int> &config_int,\n std::map<std::string, double> &config_double)" (identifier) "MdGateway" (parameter_list) "(bool low_latency, yijinjing::data::locator_ptr locator,\n std::map<std::string, std::string> &config_str,\n std::map<std::string, int> &config_int,\n std::map<std::string, double> &config_double)" (() "(" (parameter_declaration) "bool low_latency" (primitive_type) "bool" (identifier) "low_latency" (,) "," (parameter_declaration) "yijinjing::data::locator_ptr locator" (type_identifier) "yijinjing" (ERROR) "::data::locator_ptr" (:) ":" (:) ":" (identifier) "data" (:) ":" (:) ":" (identifier) "locator_ptr" (identifier) "locator" (,) "," (parameter_declaration) "std::map<std::string" (type_identifier) "std" (ERROR) "::map<std::" (:) ":" (:) ":" (identifier) "map" (<) "<" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (,) "," (parameter_declaration) "std::string> &config_str" (type_identifier) "std" (ERROR) "::string> &" (:) ":" (:) ":" (identifier) "string" (>) ">" (&) "&" (identifier) "config_str" (,) "," (parameter_declaration) "std::map<std::string" (type_identifier) "std" (ERROR) "::map<std::" (:) ":" (:) ":" (identifier) "map" (<) "<" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (,) "," (parameter_declaration) "int> &config_int" (primitive_type) "int" (ERROR) "> &" (>) ">" (&) "&" (identifier) "config_int" (,) "," (parameter_declaration) "std::map<std::string" (type_identifier) "std" (ERROR) "::map<std::" (:) ":" (:) ":" (identifier) "map" (<) "<" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (,) "," (parameter_declaration) "double> &config_double" (primitive_type) "double" (ERROR) "> &" (>) ">" (&) "&" (identifier) "config_double" ()) ")" (;) ";" (function_definition) "virtual ~MdGateway()\n {}" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "MdGateway()" (identifier) "MdGateway" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{}" ({) "{" (}) "}" (expression_statement) ";" (;) ";" (ERROR) "bool subscribe(const std::vector<wingchun::msg::data::Instrument> &instruments) override" (primitive_type) "bool" (function_declarator) "subscribe(const std::vector<wingchun::msg::data::Instrument> &instruments) override" (identifier) "subscribe" (parameter_list) "(const std::vector<wingchun::msg::data::Instrument> &instruments)" (() "(" (parameter_declaration) "const std::vector<wingchun::msg::data::Instrument> &instruments" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::vector<wingchun::msg::data::Instrument> &" (:) ":" (:) ":" (identifier) "vector" (<) "<" (identifier) "wingchun" (:) ":" (:) ":" (identifier) "msg" (:) ":" (:) ":" (identifier) "data" (:) ":" (:) ":" (identifier) "Instrument" (>) ">" (&) "&" (identifier) "instruments" ()) ")" (identifier) "override" (expression_statement) ";" (;) ";" (ERROR) "bool unsubscribe(const std::vector<wingchun::msg::data::Instrument> &instruments) override" (primitive_type) "bool" (function_declarator) "unsubscribe(const std::vector<wingchun::msg::data::Instrument> &instruments) override" (identifier) "unsubscribe" (parameter_list) "(const std::vector<wingchun::msg::data::Instrument> &instruments)" (() "(" (parameter_declaration) "const std::vector<wingchun::msg::data::Instrument> &instruments" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::vector<wingchun::msg::data::Instrument> &" (:) ":" (:) ":" (identifier) "vector" (<) "<" (identifier) "wingchun" (:) ":" (:) ":" (identifier) "msg" (:) ":" (:) ":" (identifier) "data" (:) ":" (:) ":" (identifier) "Instrument" (>) ">" (&) "&" (identifier) "instruments" ()) ")" (identifier) "override" (expression_statement) ";" (;) ";" (declaration) "bool subscribe(const std::vector<std::string> &instrument_ids);" (primitive_type) "bool" (function_declarator) "subscribe(const std::vector<std::string> &instrument_ids)" (identifier) "subscribe" (parameter_list) "(const std::vector<std::string> &instrument_ids)" (() "(" (parameter_declaration) "const std::vector<std::string> &instrument_ids" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::vector<std::string> &" (:) ":" (:) ":" (identifier) "vector" (<) "<" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (>) ">" (&) "&" (identifier) "instrument_ids" ()) ")" (;) ";" (declaration) "bool unsubscribe(const std::vector<std::string> &instrument_ids);" (primitive_type) "bool" (function_declarator) "unsubscribe(const std::vector<std::string> &instrument_ids)" (identifier) "unsubscribe" (parameter_list) "(const std::vector<std::string> &instrument_ids)" (() "(" (parameter_declaration) "const std::vector<std::string> &instrument_ids" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::vector<std::string> &" (:) ":" (:) ":" (identifier) "vector" (<) "<" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (>) ">" (&) "&" (identifier) "instrument_ids" ()) ")" (;) ";" (declaration) "bool login();" (primitive_type) "bool" (function_declarator) "login()" (identifier) "login" (parameter_list) "()" (() "(" ()) ")" (;) ";" (comment) "///当客户端与交易后台建立起通信连接时(还未登录前),该方法被调用。\n virtual void OnFrontConnected();\n\n " (declaration) "连接断开时,该方法被调用。当发生这个情况后,API会自动重新连接" (type_identifier) "连接断开时,该" (ERROR) "法被调用" (identifier) "法被调用" (function_declarator) "当发生这个情况后,API会自动重新连" (identifier) "当发生这个情况后,API会自动重" (parameter_list) "新连" (() "新" ()) "连" (;) "接" (comment) " ///@param nReason 错误原因\n /// 0x1001 网络读失败\n /// 0x1002 网络写失败\n /// 0x2001 接收心跳超时\n " (comment) " 0x2002 发送心跳失败\n " (comment) " 0x2003 收到错误报文\n vi" (comment) "tDisconnected(int nReason);\n\n " (comment) "请求响应\n virtual void\n " (comment) "spUserLogin(CThostFtdcRspUserLoginFi" (comment) "n, CThostFtdcRspInfoField *pRspInfo," (declaration) "bool bIsLast);\n\n ///登出请求响应\n " (type_identifier) "bool bI" (ERROR) "Last" (identifier) "Last" (function_declarator) ";\n\n ///登出请求响应\n " (identifier) ";\n\n " (parameter_list) "///登出请求响应\n " (() "/" (parameter_declaration) "//登出请求响应\n " (primitive_type) "//登" (identifier) "请求响应\n " ()) " " (;) " " (comment) "l void OnRspUserLogou" (declaration) "ogoutField *pUserLogout, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);\n\n ///订阅行情应答\n virtual void\n " (type_identifier) "ogoutFi" (ERROR) "ld *" (identifier) "ld *" (function_declarator) "stFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);\n\n ///订阅行情应答\n virtual void\n " (identifier) "stFtdcRspInfoF" (parameter_list) "ield *pRspInfo, int nRequestID, bool bIsLast);\n\n ///订阅行情应答\n virtual void\n " (() "i" (parameter_declaration) "eld *pRspInfo, int nRequestID, bool bIsLas" (type_identifier) "eld *pRspInfo, int nRequest" (pointer_declarator) "D, bool bIsLas" (*) "D" (identifier) ", bool bIsLas" (,) "t" (parameter_declaration) ";\n\n ///订阅行情应答\n " (type_identifier) ";\n\n ///" (pointer_declarator) "阅行情应答\n " (*) "阅" (identifier) "行情应答\n " (,) " " (parameter_declaration) " vir" (primitive_type) " " (identifier) " vir" (,) "t" (parameter_declaration) "al void\n " (primitive_type) "al v" (identifier) "id\n " ()) " " (;) " " (comment) "MarketData(CThostFtdc" (declaration) "tField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID,\n bool bIsLast);\n\n " (type_identifier) "tField " (ERROR) "pSpe" (identifier) "pSpe" (function_declarator) "ificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID,\n bool bIsLast);\n\n " (identifier) "ificInstrument," (parameter_list) " CThostFtdcRspInfoField *pRspInfo, int nRequestID,\n bool bIsLast);\n\n " (() " " (parameter_declaration) "CThostFtdcRspInfoField *pRspInfo, int " (type_identifier) "CThostFtdcRspInfoField *p" (pointer_declarator) "spInfo, int " (*) "s" (identifier) "pInfo, int " (,) "n" (parameter_declaration) "equestID,\n " (type_identifier) "equestID,\n " (pointer_declarator) " " (*) " " (identifier) " " (,) " " (parameter_declaration) " boo" (primitive_type) " " (identifier) " boo" (,) "l" (parameter_declaration) "bIsLast);\n\n " (primitive_type) "bIsL" (identifier) "st);\n\n " ()) " " (;) " " (comment) "订阅行情应答\n " (declaration) " OnRspUnSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID,\n bool bIsLast);\n\n " (type_identifier) " " (ERROR) " " (identifier) " " (function_declarator) "tData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID,\n bool bIsLast);\n\n " (identifier) "tData(CThostFtdcSp" (parameter_list) "ecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID,\n bool bIsLast);\n\n " (() "e" (parameter_declaration) "cificInstrumentField *pSpecificInstrument, CThostFtdcR" (type_identifier) "cificInstrumentField *pSpecificIn" (pointer_declarator) "trument, CThostFtdcR" (*) "t" (identifier) "rument, CThostFtdcR" (,) "s" (parameter_declaration) "InfoField *pRspInfo, int nReques" (type_identifier) "InfoField *pRspInfo, i" (pointer_declarator) "t nReques" (*) "t" (identifier) " nReques" (,) "t" (parameter_declaration) "D,\n " (primitive_type) "D,\n" (identifier) " " (,) " " (parameter_declaration) "t);\n\n " (primitive_type) "t);\n" (identifier) " " ()) " " (;) " " (comment) " virtual void" (declaration) "Data(CThostFtdcDepthMarketDataField *pDepthMarketData);\n\n protected:\n\n void on_start() override;\n\n private:\n std::string front_uri_;\n std::s" (type_identifier) "Data(CT" (ERROR) "ostF" (identifier) "ostF" (function_declarator) "aField *pDepthMarketData);\n\n protected:\n\n void on_start() override;\n\n private:\n std::string front_uri_;\n std::" (identifier) "aField *pDepthMarket" (parameter_list) "Data);\n\n protected:\n\n void on_start() override;\n\n private:\n std::string front_uri_;\n std::" (() "D" (parameter_declaration) "ata);\n\n protected:\n\n void on" (type_identifier) "ata);\n\n protected:\n\n " (pointer_declarator) " void on" (*) " " (identifier) " void on" (,) "_" (parameter_declaration) "tart() override;\n\n pr" (type_identifier) "tart() override;\n\n " (pointer_declarator) " pr" (*) " " (identifier) " pr" (,) "i" (parameter_declaration) "ate:\n " (primitive_type) "ate" (identifier) "\n " (,) " " (parameter_declaration) " std:" (primitive_type) " " (identifier) " std:" ()) ":" (;) "s" (comment) " std::" (declaration) "_;\n std::string password_;\n\n int request_id_;\n\n " (type_identifier) "_;\n " (ERROR) " " (identifier) " " (function_declarator) " std::string password_;\n\n int request_id_;\n\n " (identifier) " std::string pa" (parameter_list) "ssword_;\n\n int request_id_;\n\n " (() "s" (parameter_declaration) "sword_;\n\n int request_id_;\n\n " (type_identifier) "sword_;\n\n int r" (pointer_declarator) "quest_id_;\n\n " (*) "q" (identifier) "uest_id_;\n\n " ()) " " (;) " " (labeled_statement) "tFtdcMdApi *api_;\n\n static const std::" (statement_identifier) "tFtdcMdAp" (:) "i" (ERROR) " static const std:" (primitive_type) " " (function_declarator) " static const std:" (identifier) " static" (parameter_list) " c" (() " " ()) "c" (identifier) "nst std:" (expression_statement) ":" (;) ":" (labeled_statement) "int, std::string> kDisconnectedReasonMap;\n\n " (statement_identifier) "int, st" (:) "d" (labeled_statement) "nectedReasonMap;\n\n " (statement_identifier) "nec" (:) "t" (ERROR) "e" (:) "e" (declaration) "dReasonMap;\n\n " (type_identifier) "dReaso" (identifier) "Map;\n\n " (;) " " (labeled_statement) " }\n }\n}\n#endif //MD_" (statement_identifier) " }\n" (:) " " (ERROR) " " (:) " " (declaration) " }\n}\n#endif //MD_" (type_identifier) " }\n}\n" (identifier) "endif //MD" (;) "_" (labeled_statement) "" (statement_identifier) "" (:) "" (ERROR) "" (:) "" (declaration) "" (type_identifier) "" (identifier) "" (;) "" (labeled_statement) "" (statement_identifier) "" (:) "" (ERROR) "" (:) "" (declaration) "" (type_identifier) "" (identifier) "" (;) "" (declaration) "" (primitive_type) "" (identifier) "" (;) "" (declaration) "" (type_identifier) "" (pointer_declarator) "" (*) "" (identifier) "" (;) "" (declaration) "" (storage_class_specifier) "" (static) "" (type_qualifier) "" (const) "" (type_identifier) "" (ERROR) "" (:) "" (:) "" (identifier) "" (ERROR) "" (<) "" (primitive_type) "" (,) "" (ERROR) "" (identifier) "" (:) "" (:) "" (identifier) "" (>) "" (identifier) "" (;) "" (}) "" (expression_statement) "" (;) "" (}) "" (}) "" (ERROR) "" (}) "" (#endif) "" (comment) ""
537
32
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 43.54, "nodes": 339, "errors": 0, "source_hash": "08300edac639b78481929973eceb27770413f3c788e146d3d43d285434de0ef4", "categorized_nodes": 227}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef MD_GATEWAY_CTP_H\n#define MD_GATEWAY_CTP_H\n\n#include <string>\n#include <map>\n\n#include <kungfu/yijinjing/common.h>\n#include <kungfu/wingchun/msg.h>\n#include <kungfu/wingchun/gateway/marketdata.h>\n\n#include \"ThostFtdcMdApi.h\"\n\nnamespace kungfu\n{\n namespace wingchun\n {\n namespace ctp\n {\n class MdGateway : public CThostFtdcMdSpi, public gateway::MarketData\n {\n public:\n MdGateway(bool low_latency, yijinjing::data::locator_ptr locator,\n std::map<std::string, std::string> &config_str,\n std::map<std::string, int> &config_int,\n std::map<std::string, double> &config_double);\n\n virtual ~MdGateway()\n {};\n\n bool subscribe(const std::vector<wingchun::msg::data::Instrument> &instruments) override;\n\n bool unsubscribe(const std::vector<wingchun::msg::data::Instrument> &instruments) override;\n\n bool subscribe(const std::vector<std::string> &instrument_ids);\n\n bool unsubscribe(const std::vector<std::string> &instrument_ids);\n\n bool login();\n\n ///\u5f53\u5ba2\u6237\u7aef\u4e0e\u4ea4\u6613\u540e\u53f0\u5efa\u7acb\u8d77\u901a\u4fe1\u8fde\u63a5\u65f6\uff08\u8fd8\u672a\u767b\u5f55\u524d\uff09\uff0c\u8be5\u65b9\u6cd5\u88ab\u8c03\u7528\u3002\n virtual void OnFrontConnected();\n\n ///\u5f53\u5ba2\u6237\u7aef\u4e0e\u4ea4\u6613\u540e\u53f0\u901a\u4fe1\u8fde\u63a5\u65ad\u5f00\u65f6\uff0c\u8be5\u65b9\u6cd5\u88ab\u8c03\u7528\u3002\u5f53\u53d1\u751f\u8fd9\u4e2a\u60c5\u51b5\u540e\uff0cAPI\u4f1a\u81ea\u52a8\u91cd\u65b0\u8fde\u63a5\uff0c\u5ba2\u6237\u7aef\u53ef\u4e0d\u505a\u5904\u7406\u3002\n ///@param nReason \u9519\u8bef\u539f\u56e0\n /// 0x1001 \u7f51\u7edc\u8bfb\u5931\u8d25\n /// 0x1002 \u7f51\u7edc\u5199\u5931\u8d25\n /// 0x2001 \u63a5\u6536\u5fc3\u8df3\u8d85\u65f6\n /// 0x2002 \u53d1\u9001\u5fc3\u8df3\u5931\u8d25\n /// 0x2003 \u6536\u5230\u9519\u8bef\u62a5\u6587\n virtual void OnFrontDisconnected(int nReason);\n\n ///\u767b\u5f55\u8bf7\u6c42\u54cd\u5e94\n virtual void\n OnRspUserLogin(CThostFtdcRspUserLoginField *pRspUserLogin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);\n\n ///\u767b\u51fa\u8bf7\u6c42\u54cd\u5e94\n virtual void OnRspUserLogout(CThostFtdcUserLogoutField *pUserLogout, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);\n\n ///\u8ba2\u9605\u884c\u60c5\u5e94\u7b54\n virtual void\n OnRspSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID,\n bool bIsLast);\n\n ///\u53d6\u6d88\u8ba2\u9605\u884c\u60c5\u5e94\u7b54\n virtual void\n OnRspUnSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID,\n bool bIsLast);\n\n ///\u6df1\u5ea6\u884c\u60c5\u901a\u77e5\n virtual void OnRtnDepthMarketData(CThostFtdcDepthMarketDataField *pDepthMarketData);\n\n protected:\n\n void on_start() override;\n\n private:\n std::string front_uri_;\n std::string broker_id_;\n std::string account_id_;\n std::string password_;\n\n int request_id_;\n\n CThostFtdcMdApi *api_;\n\n static const std::unordered_map<int, std::string> kDisconnectedReasonMap;\n\n };\n }\n }\n}\n#endif //MD_GATEWAY_CTP_H\n", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 24, 337, 338], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 95, "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": "MD_GATEWAY_CTP_H", "parent": 0, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 24}}, {"id": 3, "type": "preproc_def", "text": "#define MD_GATEWAY_CTP_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": "MD_GATEWAY_CTP_H", "parent": 3, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 24}}, {"id": 6, "type": "preproc_include", "text": "#include <string>\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": "<string>", "parent": 6, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 17}}, {"id": 9, "type": "preproc_include", "text": "#include <map>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<map>", "parent": 9, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 14}}, {"id": 12, "type": "preproc_include", "text": "#include <kungfu/yijinjing/common.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": "system_lib_string", "text": "<kungfu/yijinjing/common.h>", "parent": 12, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 36}}, {"id": 15, "type": "preproc_include", "text": "#include <kungfu/wingchun/msg.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": "system_lib_string", "text": "<kungfu/wingchun/msg.h>", "parent": 15, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 32}}, {"id": 18, "type": "preproc_include", "text": "#include <kungfu/wingchun/gateway/marketdata.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": "system_lib_string", "text": "<kungfu/wingchun/gateway/marketdata.h>", "parent": 18, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 47}}, {"id": 21, "type": "preproc_include", "text": "#include \"ThostFtdcMdApi.h\"\n", "parent": 0, "children": [22, 23], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 8}}, {"id": 23, "type": "string_literal", "text": "\"ThostFtdcMdApi.h\"", "parent": 21, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 27}}, {"id": 24, "type": "function_definition", "text": "namespace kungfu\n{\n namespace wingchun\n {\n namespace ctp\n {\n class MdGateway : public CThostFtdcMdSpi, public gateway::MarketData\n {\n public:\n MdGateway(bool low_latency, yijinjing::data::locator_ptr locator,\n std::map<std::string, std::string> &config_str,\n std::map<std::string, int> &config_int,\n std::map<std::string, double> &config_double);\n\n virtual ~MdGateway()\n {};\n\n bool subscribe(const std::vector<wingchun::msg::data::Instrument> &instruments) override;\n\n bool unsubscribe(const std::vector<wingchun::msg::data::Instrument> &instruments) override;\n\n bool subscribe(const std::vector<std::string> &instrument_ids);\n\n bool unsubscribe(const std::vector<std::string> &instrument_ids);\n\n bool login();\n\n ///\u5f53\u5ba2\u6237\u7aef\u4e0e\u4ea4\u6613\u540e\u53f0\u5efa\u7acb\u8d77\u901a\u4fe1\u8fde\u63a5\u65f6\uff08\u8fd8\u672a\u767b\u5f55\u524d\uff09\uff0c\u8be5\u65b9\u6cd5\u88ab\u8c03\u7528\u3002\n virtual void OnFrontConnected();\n\n ///\u5f53\u5ba2\u6237\u7aef\u4e0e\u4ea4\u6613\u540e\u53f0\u901a\u4fe1\u8fde\u63a5\u65ad\u5f00\u65f6\uff0c\u8be5\u65b9\u6cd5\u88ab\u8c03\u7528\u3002\u5f53\u53d1\u751f\u8fd9\u4e2a\u60c5\u51b5\u540e\uff0cAPI\u4f1a\u81ea\u52a8\u91cd\u65b0\u8fde\u63a5\uff0c\u5ba2\u6237\u7aef\u53ef\u4e0d\u505a\u5904\u7406\u3002\n ///@param nReason \u9519\u8bef\u539f\u56e0\n /// 0x1001 \u7f51\u7edc\u8bfb\u5931\u8d25\n /// 0x1002 \u7f51\u7edc\u5199\u5931\u8d25\n /// 0x2001 \u63a5\u6536\u5fc3\u8df3\u8d85\u65f6\n /// 0x2002 \u53d1\u9001\u5fc3\u8df3\u5931\u8d25\n /// 0x2003 \u6536\u5230\u9519\u8bef\u62a5\u6587\n virtual void OnFrontDisconnected(int nReason);\n\n ///\u767b\u5f55\u8bf7\u6c42\u54cd\u5e94\n virtual void\n OnRspUserLogin(CThostFtdcRspUserLoginField *pRspUserLogin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);\n\n ///\u767b\u51fa\u8bf7\u6c42\u54cd\u5e94\n virtual void OnRspUserLogout(CThostFtdcUserLogoutField *pUserLogout, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);\n\n ///\u8ba2\u9605\u884c\u60c5\u5e94\u7b54\n virtual void\n OnRspSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID,\n bool bIsLast);\n\n ///\u53d6\u6d88\u8ba2\u9605\u884c\u60c5\u5e94\u7b54\n virtual void\n OnRspUnSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID,\n bool bIsLast);\n\n ///\u6df1\u5ea6\u884c\u60c5\u901a\u77e5\n virtual void OnRtnDepthMarketData(CThostFtdcDepthMarketDataField *pDepthMarketData);\n\n protected:\n\n void on_start() override;\n\n private:\n std::string front_uri_;\n std::string broker_id_;\n std::string account_id_;\n std::string password_;\n\n int request_id_;\n\n CThostFtdcMdApi *api_;\n\n static const std::unordered_map<int, std::string> kDisconnectedReasonMap;\n\n };\n }\n }\n}\n#endif //MD_GATEWAY_CTP_H\n", "parent": 0, "children": [25, 26], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 93, "column": 5}}, {"id": 25, "type": "type_identifier", "text": "namespace", "parent": 24, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 9}}, {"id": 26, "type": "identifier", "text": "kungfu", "parent": 24, "children": [], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 16}}, {"id": 27, "type": "function_definition", "text": "namespace wingchun\n {\n namespace ctp\n {\n class MdGateway : public CThostFtdcMdSpi, public gateway::MarketData\n {\n public:\n MdGateway(bool low_latency, yijinjing::data::locator_ptr locator,\n std::map<std::string, std::string> &config_str,\n std::map<std::string, int> &config_int,\n std::map<std::string, double> &config_double);\n\n virtual ~MdGateway()\n {};\n\n bool subscribe(const std::vector<wingchun::msg::data::Instrument> &instruments) override;\n\n bool unsubscribe(const std::vector<wingchun::msg::data::Instrument> &instruments) override;\n\n bool subscribe(const std::vector<std::string> &instrument_ids);\n\n bool unsubscribe(const std::vector<std::string> &instrument_ids);\n\n bool login();\n\n ///\u5f53\u5ba2\u6237\u7aef\u4e0e\u4ea4\u6613\u540e\u53f0\u5efa\u7acb\u8d77\u901a\u4fe1\u8fde\u63a5\u65f6\uff08\u8fd8\u672a\u767b\u5f55\u524d\uff09\uff0c\u8be5\u65b9\u6cd5\u88ab\u8c03\u7528\u3002\n virtual void OnFrontConnected();\n\n ///\u5f53\u5ba2\u6237\u7aef\u4e0e\u4ea4\u6613\u540e\u53f0\u901a\u4fe1\u8fde\u63a5\u65ad\u5f00\u65f6\uff0c\u8be5\u65b9\u6cd5\u88ab\u8c03\u7528\u3002\u5f53\u53d1\u751f\u8fd9\u4e2a\u60c5\u51b5\u540e\uff0cAPI\u4f1a\u81ea\u52a8\u91cd\u65b0\u8fde\u63a5\uff0c\u5ba2\u6237\u7aef\u53ef\u4e0d\u505a\u5904\u7406\u3002\n ///@param nReason \u9519\u8bef\u539f\u56e0\n /// 0x1001 \u7f51\u7edc\u8bfb\u5931\u8d25\n /// 0x1002 \u7f51\u7edc\u5199\u5931\u8d25\n /// 0x2001 \u63a5\u6536\u5fc3\u8df3\u8d85\u65f6\n /// 0x2002 \u53d1\u9001\u5fc3\u8df3\u5931\u8d25\n /// 0x2003 \u6536\u5230\u9519\u8bef\u62a5\u6587\n virtual void OnFrontDisconnected(int nReason);\n\n ///\u767b\u5f55\u8bf7\u6c42\u54cd\u5e94\n virtual void\n OnRspUserLogin(CThostFtdcRspUserLoginField *pRspUserLogin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);\n\n ///\u767b\u51fa\u8bf7\u6c42\u54cd\u5e94\n virtual void OnRspUserLogout(CThostFtdcUserLogoutField *pUserLogout, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);\n\n ///\u8ba2\u9605\u884c\u60c5\u5e94\u7b54\n virtual void\n OnRspSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID,\n bool bIsLast);\n\n ///\u53d6\u6d88\u8ba2\u9605\u884c\u60c5\u5e94\u7b54\n virtual void\n OnRspUnSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID,\n bool bIsLast);\n\n ///\u6df1\u5ea6\u884c\u60c5\u901a\u77e5\n virtual void OnRtnDepthMarketData(CThostFtdcDepthMarketDataField *pDepthMarketData);\n\n protected:\n\n void on_start() override;\n\n private:\n std::string front_uri_;\n std::string broker_id_;\n std::string account_id_;\n std::string password_;\n\n int request_id_;\n\n CThostFtdcMdApi *api_;\n\n static const std::unordered_map<int, std::string> kDisconnectedReasonMap;\n\n };\n }\n }\n}\n#endif //MD_GATEWAY_CTP_H\n", "parent": 24, "children": [28, 29], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 92, "column": 9}}, {"id": 28, "type": "type_identifier", "text": "namespace", "parent": 27, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 13}}, {"id": 29, "type": "identifier", "text": "wingchun", "parent": 27, "children": [], "start_point": {"row": 18, "column": 14}, "end_point": {"row": 18, "column": 22}}, {"id": 30, "type": "function_definition", "text": "namespace ctp\n {\n class MdGateway : public CThostFtdcMdSpi, public gateway::MarketData\n {\n public:\n MdGateway(bool low_latency, yijinjing::data::locator_ptr locator,\n std::map<std::string, std::string> &config_str,\n std::map<std::string, int> &config_int,\n std::map<std::string, double> &config_double);\n\n virtual ~MdGateway()\n {};\n\n bool subscribe(const std::vector<wingchun::msg::data::Instrument> &instruments) override;\n\n bool unsubscribe(const std::vector<wingchun::msg::data::Instrument> &instruments) override;\n\n bool subscribe(const std::vector<std::string> &instrument_ids);\n\n bool unsubscribe(const std::vector<std::string> &instrument_ids);\n\n bool login();\n\n ///\u5f53\u5ba2\u6237\u7aef\u4e0e\u4ea4\u6613\u540e\u53f0\u5efa\u7acb\u8d77\u901a\u4fe1\u8fde\u63a5\u65f6\uff08\u8fd8\u672a\u767b\u5f55\u524d\uff09\uff0c\u8be5\u65b9\u6cd5\u88ab\u8c03\u7528\u3002\n virtual void OnFrontConnected();\n\n ///\u5f53\u5ba2\u6237\u7aef\u4e0e\u4ea4\u6613\u540e\u53f0\u901a\u4fe1\u8fde\u63a5\u65ad\u5f00\u65f6\uff0c\u8be5\u65b9\u6cd5\u88ab\u8c03\u7528\u3002\u5f53\u53d1\u751f\u8fd9\u4e2a\u60c5\u51b5\u540e\uff0cAPI\u4f1a\u81ea\u52a8\u91cd\u65b0\u8fde\u63a5\uff0c\u5ba2\u6237\u7aef\u53ef\u4e0d\u505a\u5904\u7406\u3002\n ///@param nReason \u9519\u8bef\u539f\u56e0\n /// 0x1001 \u7f51\u7edc\u8bfb\u5931\u8d25\n /// 0x1002 \u7f51\u7edc\u5199\u5931\u8d25\n /// 0x2001 \u63a5\u6536\u5fc3\u8df3\u8d85\u65f6\n /// 0x2002 \u53d1\u9001\u5fc3\u8df3\u5931\u8d25\n /// 0x2003 \u6536\u5230\u9519\u8bef\u62a5\u6587\n virtual void OnFrontDisconnected(int nReason);\n\n ///\u767b\u5f55\u8bf7\u6c42\u54cd\u5e94\n virtual void\n OnRspUserLogin(CThostFtdcRspUserLoginField *pRspUserLogin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);\n\n ///\u767b\u51fa\u8bf7\u6c42\u54cd\u5e94\n virtual void OnRspUserLogout(CThostFtdcUserLogoutField *pUserLogout, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);\n\n ///\u8ba2\u9605\u884c\u60c5\u5e94\u7b54\n virtual void\n OnRspSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID,\n bool bIsLast);\n\n ///\u53d6\u6d88\u8ba2\u9605\u884c\u60c5\u5e94\u7b54\n virtual void\n OnRspUnSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID,\n bool bIsLast);\n\n ///\u6df1\u5ea6\u884c\u60c5\u901a\u77e5\n virtual void OnRtnDepthMarketData(CThostFtdcDepthMarketDataField *pDepthMarketData);\n\n protected:\n\n void on_start() override;\n\n private:\n std::string front_uri_;\n std::string broker_id_;\n std::string account_id_;\n std::string password_;\n\n int request_id_;\n\n CThostFtdcMdApi *api_;\n\n static const std::unordered_map<int, std::string> kDisconnectedReasonMap;\n\n };\n }\n }\n}\n#endif //MD_GATEWAY_CTP_H\n", "parent": 27, "children": [31, 32], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 91, "column": 13}}, {"id": 31, "type": "type_identifier", "text": "namespace", "parent": 30, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 17}}, {"id": 32, "type": "identifier", "text": "ctp", "parent": 30, "children": [], "start_point": {"row": 20, "column": 18}, "end_point": {"row": 20, "column": 21}}, {"id": 33, "type": "declaration", "text": "class MdGateway : public CThostFtdcMdSpi, public gateway::MarketData\n {\n public:\n MdGateway(bool low_latency, yijinjing::data::locator_ptr locator,\n std::map<std::string, std::string> &config_str,\n std::map<std::string, int> &config_int,\n std::map<std::string, double> &config_double);", "parent": 30, "children": [34, 36, 37, 40], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 28, "column": 72}}, {"id": 34, "type": "ERROR", "text": "MdGateway : public", "parent": 33, "children": [35], "start_point": {"row": 22, "column": 18}, "end_point": {"row": 22, "column": 36}}, {"id": 35, "type": "identifier", "text": "MdGateway", "parent": 34, "children": [], "start_point": {"row": 22, "column": 18}, "end_point": {"row": 22, "column": 27}}, {"id": 36, "type": "identifier", "text": "CThostFtdcMdSpi", "parent": 33, "children": [], "start_point": {"row": 22, "column": 37}, "end_point": {"row": 22, "column": 52}}, {"id": 37, "type": "ERROR", "text": "public gateway::MarketData\n {\n public:", "parent": 33, "children": [38, 39], "start_point": {"row": 22, "column": 54}, "end_point": {"row": 24, "column": 19}}, {"id": 38, "type": "identifier", "text": "gateway", "parent": 37, "children": [], "start_point": {"row": 22, "column": 61}, "end_point": {"row": 22, "column": 68}}, {"id": 39, "type": "identifier", "text": "MarketData", "parent": 37, "children": [], "start_point": {"row": 22, "column": 70}, "end_point": {"row": 22, "column": 80}}, {"id": 40, "type": "function_declarator", "text": "MdGateway(bool low_latency, yijinjing::data::locator_ptr locator,\n std::map<std::string, std::string> &config_str,\n std::map<std::string, int> &config_int,\n std::map<std::string, double> &config_double)", "parent": 33, "children": [41, 42], "start_point": {"row": 25, "column": 16}, "end_point": {"row": 28, "column": 71}}, {"id": 41, "type": "identifier", "text": "MdGateway", "parent": 40, "children": [], "start_point": {"row": 25, "column": 16}, "end_point": {"row": 25, "column": 25}}, {"id": 42, "type": "parameter_list", "text": "(bool low_latency, yijinjing::data::locator_ptr locator,\n std::map<std::string, std::string> &config_str,\n std::map<std::string, int> &config_int,\n std::map<std::string, double> &config_double)", "parent": 40, "children": [43, 46, 52, 59, 65, 72, 77, 84], "start_point": {"row": 25, "column": 25}, "end_point": {"row": 28, "column": 71}}, {"id": 43, "type": "parameter_declaration", "text": "bool low_latency", "parent": 42, "children": [44, 45], "start_point": {"row": 25, "column": 26}, "end_point": {"row": 25, "column": 42}}, {"id": 44, "type": "primitive_type", "text": "bool", "parent": 43, "children": [], "start_point": {"row": 25, "column": 26}, "end_point": {"row": 25, "column": 30}}, {"id": 45, "type": "identifier", "text": "low_latency", "parent": 43, "children": [], "start_point": {"row": 25, "column": 31}, "end_point": {"row": 25, "column": 42}}, {"id": 46, "type": "parameter_declaration", "text": "yijinjing::data::locator_ptr locator", "parent": 42, "children": [47, 48, 51], "start_point": {"row": 25, "column": 44}, "end_point": {"row": 25, "column": 80}}, {"id": 47, "type": "type_identifier", "text": "yijinjing", "parent": 46, "children": [], "start_point": {"row": 25, "column": 44}, "end_point": {"row": 25, "column": 53}}, {"id": 48, "type": "ERROR", "text": "::data::locator_ptr", "parent": 46, "children": [49, 50], "start_point": {"row": 25, "column": 53}, "end_point": {"row": 25, "column": 72}}, {"id": 49, "type": "identifier", "text": "data", "parent": 48, "children": [], "start_point": {"row": 25, "column": 55}, "end_point": {"row": 25, "column": 59}}, {"id": 50, "type": "identifier", "text": "locator_ptr", "parent": 48, "children": [], "start_point": {"row": 25, "column": 61}, "end_point": {"row": 25, "column": 72}}, {"id": 51, "type": "identifier", "text": "locator", "parent": 46, "children": [], "start_point": {"row": 25, "column": 73}, "end_point": {"row": 25, "column": 80}}, {"id": 52, "type": "parameter_declaration", "text": "std::map<std::string", "parent": 42, "children": [53, 54, 58], "start_point": {"row": 26, "column": 26}, "end_point": {"row": 26, "column": 46}}, {"id": 53, "type": "type_identifier", "text": "std", "parent": 52, "children": [], "start_point": {"row": 26, "column": 26}, "end_point": {"row": 26, "column": 29}}, {"id": 54, "type": "ERROR", "text": "::map<std::", "parent": 52, "children": [55, 56, 57], "start_point": {"row": 26, "column": 29}, "end_point": {"row": 26, "column": 40}}, {"id": 55, "type": "identifier", "text": "map", "parent": 54, "children": [], "start_point": {"row": 26, "column": 31}, "end_point": {"row": 26, "column": 34}}, {"id": 56, "type": "<", "text": "<", "parent": 54, "children": [], "start_point": {"row": 26, "column": 34}, "end_point": {"row": 26, "column": 35}}, {"id": 57, "type": "identifier", "text": "std", "parent": 54, "children": [], "start_point": {"row": 26, "column": 35}, "end_point": {"row": 26, "column": 38}}, {"id": 58, "type": "identifier", "text": "string", "parent": 52, "children": [], "start_point": {"row": 26, "column": 40}, "end_point": {"row": 26, "column": 46}}, {"id": 59, "type": "parameter_declaration", "text": "std::string> &config_str", "parent": 42, "children": [60, 61, 64], "start_point": {"row": 26, "column": 48}, "end_point": {"row": 26, "column": 72}}, {"id": 60, "type": "type_identifier", "text": "std", "parent": 59, "children": [], "start_point": {"row": 26, "column": 48}, "end_point": {"row": 26, "column": 51}}, {"id": 61, "type": "ERROR", "text": "::string> &", "parent": 59, "children": [62, 63], "start_point": {"row": 26, "column": 51}, "end_point": {"row": 26, "column": 62}}, {"id": 62, "type": "identifier", "text": "string", "parent": 61, "children": [], "start_point": {"row": 26, "column": 53}, "end_point": {"row": 26, "column": 59}}, {"id": 63, "type": ">", "text": ">", "parent": 61, "children": [], "start_point": {"row": 26, "column": 59}, "end_point": {"row": 26, "column": 60}}, {"id": 64, "type": "identifier", "text": "config_str", "parent": 59, "children": [], "start_point": {"row": 26, "column": 62}, "end_point": {"row": 26, "column": 72}}, {"id": 65, "type": "parameter_declaration", "text": "std::map<std::string", "parent": 42, "children": [66, 67, 71], "start_point": {"row": 27, "column": 26}, "end_point": {"row": 27, "column": 46}}, {"id": 66, "type": "type_identifier", "text": "std", "parent": 65, "children": [], "start_point": {"row": 27, "column": 26}, "end_point": {"row": 27, "column": 29}}, {"id": 67, "type": "ERROR", "text": "::map<std::", "parent": 65, "children": [68, 69, 70], "start_point": {"row": 27, "column": 29}, "end_point": {"row": 27, "column": 40}}, {"id": 68, "type": "identifier", "text": "map", "parent": 67, "children": [], "start_point": {"row": 27, "column": 31}, "end_point": {"row": 27, "column": 34}}, {"id": 69, "type": "<", "text": "<", "parent": 67, "children": [], "start_point": {"row": 27, "column": 34}, "end_point": {"row": 27, "column": 35}}, {"id": 70, "type": "identifier", "text": "std", "parent": 67, "children": [], "start_point": {"row": 27, "column": 35}, "end_point": {"row": 27, "column": 38}}, {"id": 71, "type": "identifier", "text": "string", "parent": 65, "children": [], "start_point": {"row": 27, "column": 40}, "end_point": {"row": 27, "column": 46}}, {"id": 72, "type": "parameter_declaration", "text": "int> &config_int", "parent": 42, "children": [73, 74, 76], "start_point": {"row": 27, "column": 48}, "end_point": {"row": 27, "column": 64}}, {"id": 73, "type": "primitive_type", "text": "int", "parent": 72, "children": [], "start_point": {"row": 27, "column": 48}, "end_point": {"row": 27, "column": 51}}, {"id": 74, "type": "ERROR", "text": "> &", "parent": 72, "children": [75], "start_point": {"row": 27, "column": 51}, "end_point": {"row": 27, "column": 54}}, {"id": 75, "type": ">", "text": ">", "parent": 74, "children": [], "start_point": {"row": 27, "column": 51}, "end_point": {"row": 27, "column": 52}}, {"id": 76, "type": "identifier", "text": "config_int", "parent": 72, "children": [], "start_point": {"row": 27, "column": 54}, "end_point": {"row": 27, "column": 64}}, {"id": 77, "type": "parameter_declaration", "text": "std::map<std::string", "parent": 42, "children": [78, 79, 83], "start_point": {"row": 28, "column": 26}, "end_point": {"row": 28, "column": 46}}, {"id": 78, "type": "type_identifier", "text": "std", "parent": 77, "children": [], "start_point": {"row": 28, "column": 26}, "end_point": {"row": 28, "column": 29}}, {"id": 79, "type": "ERROR", "text": "::map<std::", "parent": 77, "children": [80, 81, 82], "start_point": {"row": 28, "column": 29}, "end_point": {"row": 28, "column": 40}}, {"id": 80, "type": "identifier", "text": "map", "parent": 79, "children": [], "start_point": {"row": 28, "column": 31}, "end_point": {"row": 28, "column": 34}}, {"id": 81, "type": "<", "text": "<", "parent": 79, "children": [], "start_point": {"row": 28, "column": 34}, "end_point": {"row": 28, "column": 35}}, {"id": 82, "type": "identifier", "text": "std", "parent": 79, "children": [], "start_point": {"row": 28, "column": 35}, "end_point": {"row": 28, "column": 38}}, {"id": 83, "type": "identifier", "text": "string", "parent": 77, "children": [], "start_point": {"row": 28, "column": 40}, "end_point": {"row": 28, "column": 46}}, {"id": 84, "type": "parameter_declaration", "text": "double> &config_double", "parent": 42, "children": [85, 86, 88], "start_point": {"row": 28, "column": 48}, "end_point": {"row": 28, "column": 70}}, {"id": 85, "type": "primitive_type", "text": "double", "parent": 84, "children": [], "start_point": {"row": 28, "column": 48}, "end_point": {"row": 28, "column": 54}}, {"id": 86, "type": "ERROR", "text": "> &", "parent": 84, "children": [87], "start_point": {"row": 28, "column": 54}, "end_point": {"row": 28, "column": 57}}, {"id": 87, "type": ">", "text": ">", "parent": 86, "children": [], "start_point": {"row": 28, "column": 54}, "end_point": {"row": 28, "column": 55}}, {"id": 88, "type": "identifier", "text": "config_double", "parent": 84, "children": [], "start_point": {"row": 28, "column": 57}, "end_point": {"row": 28, "column": 70}}, {"id": 89, "type": "function_definition", "text": "virtual ~MdGateway()\n {}", "parent": 30, "children": [90, 91, 93], "start_point": {"row": 30, "column": 16}, "end_point": {"row": 31, "column": 18}}, {"id": 90, "type": "type_identifier", "text": "virtual", "parent": 89, "children": [], "start_point": {"row": 30, "column": 16}, "end_point": {"row": 30, "column": 23}}, {"id": 91, "type": "ERROR", "text": "~", "parent": 89, "children": [92], "start_point": {"row": 30, "column": 24}, "end_point": {"row": 30, "column": 25}}, {"id": 92, "type": "~", "text": "~", "parent": 91, "children": [], "start_point": {"row": 30, "column": 24}, "end_point": {"row": 30, "column": 25}}, {"id": 93, "type": "function_declarator", "text": "MdGateway()", "parent": 89, "children": [94, 95], "start_point": {"row": 30, "column": 25}, "end_point": {"row": 30, "column": 36}}, {"id": 94, "type": "identifier", "text": "MdGateway", "parent": 93, "children": [], "start_point": {"row": 30, "column": 25}, "end_point": {"row": 30, "column": 34}}, {"id": 95, "type": "parameter_list", "text": "()", "parent": 93, "children": [], "start_point": {"row": 30, "column": 34}, "end_point": {"row": 30, "column": 36}}, {"id": 96, "type": "ERROR", "text": "bool subscribe(const std::vector<wingchun::msg::data::Instrument> &instruments) override", "parent": 30, "children": [97, 98], "start_point": {"row": 33, "column": 16}, "end_point": {"row": 33, "column": 104}}, {"id": 97, "type": "primitive_type", "text": "bool", "parent": 96, "children": [], "start_point": {"row": 33, "column": 16}, "end_point": {"row": 33, "column": 20}}, {"id": 98, "type": "function_declarator", "text": "subscribe(const std::vector<wingchun::msg::data::Instrument> &instruments) override", "parent": 96, "children": [99, 100, 112], "start_point": {"row": 33, "column": 21}, "end_point": {"row": 33, "column": 104}}, {"id": 99, "type": "identifier", "text": "subscribe", "parent": 98, "children": [], "start_point": {"row": 33, "column": 21}, "end_point": {"row": 33, "column": 30}}, {"id": 100, "type": "parameter_list", "text": "(const std::vector<wingchun::msg::data::Instrument> &instruments)", "parent": 98, "children": [101], "start_point": {"row": 33, "column": 30}, "end_point": {"row": 33, "column": 95}}, {"id": 101, "type": "parameter_declaration", "text": "const std::vector<wingchun::msg::data::Instrument> &instruments", "parent": 100, "children": [102, 103, 111], "start_point": {"row": 33, "column": 31}, "end_point": {"row": 33, "column": 94}}, {"id": 102, "type": "type_identifier", "text": "std", "parent": 101, "children": [], "start_point": {"row": 33, "column": 37}, "end_point": {"row": 33, "column": 40}}, {"id": 103, "type": "ERROR", "text": "::vector<wingchun::msg::data::Instrument> &", "parent": 101, "children": [104, 105, 106, 107, 108, 109, 110], "start_point": {"row": 33, "column": 40}, "end_point": {"row": 33, "column": 83}}, {"id": 104, "type": "identifier", "text": "vector", "parent": 103, "children": [], "start_point": {"row": 33, "column": 42}, "end_point": {"row": 33, "column": 48}}, {"id": 105, "type": "<", "text": "<", "parent": 103, "children": [], "start_point": {"row": 33, "column": 48}, "end_point": {"row": 33, "column": 49}}, {"id": 106, "type": "identifier", "text": "wingchun", "parent": 103, "children": [], "start_point": {"row": 33, "column": 49}, "end_point": {"row": 33, "column": 57}}, {"id": 107, "type": "identifier", "text": "msg", "parent": 103, "children": [], "start_point": {"row": 33, "column": 59}, "end_point": {"row": 33, "column": 62}}, {"id": 108, "type": "identifier", "text": "data", "parent": 103, "children": [], "start_point": {"row": 33, "column": 64}, "end_point": {"row": 33, "column": 68}}, {"id": 109, "type": "identifier", "text": "Instrument", "parent": 103, "children": [], "start_point": {"row": 33, "column": 70}, "end_point": {"row": 33, "column": 80}}, {"id": 110, "type": ">", "text": ">", "parent": 103, "children": [], "start_point": {"row": 33, "column": 80}, "end_point": {"row": 33, "column": 81}}, {"id": 111, "type": "identifier", "text": "instruments", "parent": 101, "children": [], "start_point": {"row": 33, "column": 83}, "end_point": {"row": 33, "column": 94}}, {"id": 112, "type": "identifier", "text": "override", "parent": 98, "children": [], "start_point": {"row": 33, "column": 96}, "end_point": {"row": 33, "column": 104}}, {"id": 113, "type": "ERROR", "text": "bool unsubscribe(const std::vector<wingchun::msg::data::Instrument> &instruments) override", "parent": 30, "children": [114, 115], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 106}}, {"id": 114, "type": "primitive_type", "text": "bool", "parent": 113, "children": [], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 20}}, {"id": 115, "type": "function_declarator", "text": "unsubscribe(const std::vector<wingchun::msg::data::Instrument> &instruments) override", "parent": 113, "children": [116, 117, 129], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 106}}, {"id": 116, "type": "identifier", "text": "unsubscribe", "parent": 115, "children": [], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 32}}, {"id": 117, "type": "parameter_list", "text": "(const std::vector<wingchun::msg::data::Instrument> &instruments)", "parent": 115, "children": [118], "start_point": {"row": 35, "column": 32}, "end_point": {"row": 35, "column": 97}}, {"id": 118, "type": "parameter_declaration", "text": "const std::vector<wingchun::msg::data::Instrument> &instruments", "parent": 117, "children": [119, 120, 128], "start_point": {"row": 35, "column": 33}, "end_point": {"row": 35, "column": 96}}, {"id": 119, "type": "type_identifier", "text": "std", "parent": 118, "children": [], "start_point": {"row": 35, "column": 39}, "end_point": {"row": 35, "column": 42}}, {"id": 120, "type": "ERROR", "text": "::vector<wingchun::msg::data::Instrument> &", "parent": 118, "children": [121, 122, 123, 124, 125, 126, 127], "start_point": {"row": 35, "column": 42}, "end_point": {"row": 35, "column": 85}}, {"id": 121, "type": "identifier", "text": "vector", "parent": 120, "children": [], "start_point": {"row": 35, "column": 44}, "end_point": {"row": 35, "column": 50}}, {"id": 122, "type": "<", "text": "<", "parent": 120, "children": [], "start_point": {"row": 35, "column": 50}, "end_point": {"row": 35, "column": 51}}, {"id": 123, "type": "identifier", "text": "wingchun", "parent": 120, "children": [], "start_point": {"row": 35, "column": 51}, "end_point": {"row": 35, "column": 59}}, {"id": 124, "type": "identifier", "text": "msg", "parent": 120, "children": [], "start_point": {"row": 35, "column": 61}, "end_point": {"row": 35, "column": 64}}, {"id": 125, "type": "identifier", "text": "data", "parent": 120, "children": [], "start_point": {"row": 35, "column": 66}, "end_point": {"row": 35, "column": 70}}, {"id": 126, "type": "identifier", "text": "Instrument", "parent": 120, "children": [], "start_point": {"row": 35, "column": 72}, "end_point": {"row": 35, "column": 82}}, {"id": 127, "type": ">", "text": ">", "parent": 120, "children": [], "start_point": {"row": 35, "column": 82}, "end_point": {"row": 35, "column": 83}}, {"id": 128, "type": "identifier", "text": "instruments", "parent": 118, "children": [], "start_point": {"row": 35, "column": 85}, "end_point": {"row": 35, "column": 96}}, {"id": 129, "type": "identifier", "text": "override", "parent": 115, "children": [], "start_point": {"row": 35, "column": 98}, "end_point": {"row": 35, "column": 106}}, {"id": 130, "type": "declaration", "text": "bool subscribe(const std::vector<std::string> &instrument_ids);", "parent": 30, "children": [131, 132], "start_point": {"row": 37, "column": 16}, "end_point": {"row": 37, "column": 79}}, {"id": 131, "type": "primitive_type", "text": "bool", "parent": 130, "children": [], "start_point": {"row": 37, "column": 16}, "end_point": {"row": 37, "column": 20}}, {"id": 132, "type": "function_declarator", "text": "subscribe(const std::vector<std::string> &instrument_ids)", "parent": 130, "children": [133, 134], "start_point": {"row": 37, "column": 21}, "end_point": {"row": 37, "column": 78}}, {"id": 133, "type": "identifier", "text": "subscribe", "parent": 132, "children": [], "start_point": {"row": 37, "column": 21}, "end_point": {"row": 37, "column": 30}}, {"id": 134, "type": "parameter_list", "text": "(const std::vector<std::string> &instrument_ids)", "parent": 132, "children": [135], "start_point": {"row": 37, "column": 30}, "end_point": {"row": 37, "column": 78}}, {"id": 135, "type": "parameter_declaration", "text": "const std::vector<std::string> &instrument_ids", "parent": 134, "children": [136, 137, 143], "start_point": {"row": 37, "column": 31}, "end_point": {"row": 37, "column": 77}}, {"id": 136, "type": "type_identifier", "text": "std", "parent": 135, "children": [], "start_point": {"row": 37, "column": 37}, "end_point": {"row": 37, "column": 40}}, {"id": 137, "type": "ERROR", "text": "::vector<std::string> &", "parent": 135, "children": [138, 139, 140, 141, 142], "start_point": {"row": 37, "column": 40}, "end_point": {"row": 37, "column": 63}}, {"id": 138, "type": "identifier", "text": "vector", "parent": 137, "children": [], "start_point": {"row": 37, "column": 42}, "end_point": {"row": 37, "column": 48}}, {"id": 139, "type": "<", "text": "<", "parent": 137, "children": [], "start_point": {"row": 37, "column": 48}, "end_point": {"row": 37, "column": 49}}, {"id": 140, "type": "identifier", "text": "std", "parent": 137, "children": [], "start_point": {"row": 37, "column": 49}, "end_point": {"row": 37, "column": 52}}, {"id": 141, "type": "identifier", "text": "string", "parent": 137, "children": [], "start_point": {"row": 37, "column": 54}, "end_point": {"row": 37, "column": 60}}, {"id": 142, "type": ">", "text": ">", "parent": 137, "children": [], "start_point": {"row": 37, "column": 60}, "end_point": {"row": 37, "column": 61}}, {"id": 143, "type": "identifier", "text": "instrument_ids", "parent": 135, "children": [], "start_point": {"row": 37, "column": 63}, "end_point": {"row": 37, "column": 77}}, {"id": 144, "type": "declaration", "text": "bool unsubscribe(const std::vector<std::string> &instrument_ids);", "parent": 30, "children": [145, 146], "start_point": {"row": 39, "column": 16}, "end_point": {"row": 39, "column": 81}}, {"id": 145, "type": "primitive_type", "text": "bool", "parent": 144, "children": [], "start_point": {"row": 39, "column": 16}, "end_point": {"row": 39, "column": 20}}, {"id": 146, "type": "function_declarator", "text": "unsubscribe(const std::vector<std::string> &instrument_ids)", "parent": 144, "children": [147, 148], "start_point": {"row": 39, "column": 21}, "end_point": {"row": 39, "column": 80}}, {"id": 147, "type": "identifier", "text": "unsubscribe", "parent": 146, "children": [], "start_point": {"row": 39, "column": 21}, "end_point": {"row": 39, "column": 32}}, {"id": 148, "type": "parameter_list", "text": "(const std::vector<std::string> &instrument_ids)", "parent": 146, "children": [149], "start_point": {"row": 39, "column": 32}, "end_point": {"row": 39, "column": 80}}, {"id": 149, "type": "parameter_declaration", "text": "const std::vector<std::string> &instrument_ids", "parent": 148, "children": [150, 151, 157], "start_point": {"row": 39, "column": 33}, "end_point": {"row": 39, "column": 79}}, {"id": 150, "type": "type_identifier", "text": "std", "parent": 149, "children": [], "start_point": {"row": 39, "column": 39}, "end_point": {"row": 39, "column": 42}}, {"id": 151, "type": "ERROR", "text": "::vector<std::string> &", "parent": 149, "children": [152, 153, 154, 155, 156], "start_point": {"row": 39, "column": 42}, "end_point": {"row": 39, "column": 65}}, {"id": 152, "type": "identifier", "text": "vector", "parent": 151, "children": [], "start_point": {"row": 39, "column": 44}, "end_point": {"row": 39, "column": 50}}, {"id": 153, "type": "<", "text": "<", "parent": 151, "children": [], "start_point": {"row": 39, "column": 50}, "end_point": {"row": 39, "column": 51}}, {"id": 154, "type": "identifier", "text": "std", "parent": 151, "children": [], "start_point": {"row": 39, "column": 51}, "end_point": {"row": 39, "column": 54}}, {"id": 155, "type": "identifier", "text": "string", "parent": 151, "children": [], "start_point": {"row": 39, "column": 56}, "end_point": {"row": 39, "column": 62}}, {"id": 156, "type": ">", "text": ">", "parent": 151, "children": [], "start_point": {"row": 39, "column": 62}, "end_point": {"row": 39, "column": 63}}, {"id": 157, "type": "identifier", "text": "instrument_ids", "parent": 149, "children": [], "start_point": {"row": 39, "column": 65}, "end_point": {"row": 39, "column": 79}}, {"id": 158, "type": "declaration", "text": "bool login();", "parent": 30, "children": [159, 160], "start_point": {"row": 41, "column": 16}, "end_point": {"row": 41, "column": 29}}, {"id": 159, "type": "primitive_type", "text": "bool", "parent": 158, "children": [], "start_point": {"row": 41, "column": 16}, "end_point": {"row": 41, "column": 20}}, {"id": 160, "type": "function_declarator", "text": "login()", "parent": 158, "children": [161, 162], "start_point": {"row": 41, "column": 21}, "end_point": {"row": 41, "column": 28}}, {"id": 161, "type": "identifier", "text": "login", "parent": 160, "children": [], "start_point": {"row": 41, "column": 21}, "end_point": {"row": 41, "column": 26}}, {"id": 162, "type": "parameter_list", "text": "()", "parent": 160, "children": [], "start_point": {"row": 41, "column": 26}, "end_point": {"row": 41, "column": 28}}, {"id": 163, "type": "declaration", "text": "\u8fde\u63a5\u65ad\u5f00\u65f6\uff0c\u8be5\u65b9\u6cd5\u88ab\u8c03\u7528\u3002\u5f53\u53d1\u751f\u8fd9\u4e2a\u60c5\u51b5\u540e\uff0cAPI\u4f1a\u81ea\u52a8\u91cd\u65b0\u8fde\u63a5", "parent": 30, "children": [164, 165, 167], "start_point": {"row": 44, "column": 16}, "end_point": {"row": 44, "column": 48}}, {"id": 164, "type": "type_identifier", "text": "\u8fde\u63a5\u65ad\u5f00\u65f6\uff0c\u8be5", "parent": 163, "children": [], "start_point": {"row": 44, "column": 16}, "end_point": {"row": 44, "column": 23}}, {"id": 165, "type": "ERROR", "text": "\u6cd5\u88ab\u8c03\u7528", "parent": 163, "children": [166], "start_point": {"row": 44, "column": 24}, "end_point": {"row": 44, "column": 28}}, {"id": 166, "type": "identifier", "text": "\u6cd5\u88ab\u8c03\u7528", "parent": 165, "children": [], "start_point": {"row": 44, "column": 24}, "end_point": {"row": 44, "column": 28}}, {"id": 167, "type": "function_declarator", "text": "\u5f53\u53d1\u751f\u8fd9\u4e2a\u60c5\u51b5\u540e\uff0cAPI\u4f1a\u81ea\u52a8\u91cd\u65b0\u8fde", "parent": 163, "children": [168, 169], "start_point": {"row": 44, "column": 29}, "end_point": {"row": 44, "column": 47}}, {"id": 168, "type": "identifier", "text": "\u5f53\u53d1\u751f\u8fd9\u4e2a\u60c5\u51b5\u540e\uff0cAPI\u4f1a\u81ea\u52a8\u91cd", "parent": 167, "children": [], "start_point": {"row": 44, "column": 29}, "end_point": {"row": 44, "column": 45}}, {"id": 169, "type": "parameter_list", "text": "\u65b0\u8fde", "parent": 167, "children": [], "start_point": {"row": 44, "column": 45}, "end_point": {"row": 44, "column": 47}}, {"id": 170, "type": "declaration", "text": "bool bIsLast);\n\n ///\u767b\u51fa\u8bf7\u6c42\u54cd\u5e94\n ", "parent": 30, "children": [171, 172, 174], "start_point": {"row": 53, "column": 16}, "end_point": {"row": 53, "column": 62}}, {"id": 171, "type": "type_identifier", "text": "bool bI", "parent": 170, "children": [], "start_point": {"row": 53, "column": 16}, "end_point": {"row": 53, "column": 23}}, {"id": 172, "type": "ERROR", "text": "Last", "parent": 170, "children": [173], "start_point": {"row": 53, "column": 24}, "end_point": {"row": 53, "column": 28}}, {"id": 173, "type": "identifier", "text": "Last", "parent": 172, "children": [], "start_point": {"row": 53, "column": 24}, "end_point": {"row": 53, "column": 28}}, {"id": 174, "type": "function_declarator", "text": ";\n\n ///\u767b\u51fa\u8bf7\u6c42\u54cd\u5e94\n ", "parent": 170, "children": [175], "start_point": {"row": 53, "column": 29}, "end_point": {"row": 53, "column": 61}}, {"id": 175, "type": "parameter_list", "text": "///\u767b\u51fa\u8bf7\u6c42\u54cd\u5e94\n ", "parent": 174, "children": [176], "start_point": {"row": 53, "column": 48}, "end_point": {"row": 53, "column": 61}}, {"id": 176, "type": "parameter_declaration", "text": "//\u767b\u51fa\u8bf7\u6c42\u54cd\u5e94\n ", "parent": 175, "children": [177, 178], "start_point": {"row": 53, "column": 49}, "end_point": {"row": 53, "column": 60}}, {"id": 177, "type": "primitive_type", "text": "//\u767b", "parent": 176, "children": [], "start_point": {"row": 53, "column": 49}, "end_point": {"row": 53, "column": 52}}, {"id": 178, "type": "identifier", "text": "\u8bf7\u6c42\u54cd\u5e94\n ", "parent": 176, "children": [], "start_point": {"row": 53, "column": 53}, "end_point": {"row": 53, "column": 60}}, {"id": 179, "type": "declaration", "text": "ogoutField *pUserLogout, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);\n\n ///\u8ba2\u9605\u884c\u60c5\u5e94\u7b54\n virtual void\n ", "parent": 30, "children": [180, 181, 183], "start_point": {"row": 56, "column": 16}, "end_point": {"row": 57, "column": 139}}, {"id": 180, "type": "type_identifier", "text": "ogoutFi", "parent": 179, "children": [], "start_point": {"row": 56, "column": 16}, "end_point": {"row": 56, "column": 23}}, {"id": 181, "type": "ERROR", "text": "ld *", "parent": 179, "children": [182], "start_point": {"row": 56, "column": 24}, "end_point": {"row": 56, "column": 28}}, {"id": 182, "type": "identifier", "text": "ld *", "parent": 181, "children": [], "start_point": {"row": 56, "column": 24}, "end_point": {"row": 56, "column": 28}}, {"id": 183, "type": "function_declarator", "text": "stFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);\n\n ///\u8ba2\u9605\u884c\u60c5\u5e94\u7b54\n virtual void\n ", "parent": 179, "children": [184, 185], "start_point": {"row": 57, "column": 16}, "end_point": {"row": 57, "column": 138}}, {"id": 184, "type": "identifier", "text": "stFtdcRspInfoF", "parent": 183, "children": [], "start_point": {"row": 57, "column": 16}, "end_point": {"row": 57, "column": 30}}, {"id": 185, "type": "parameter_list", "text": "ield *pRspInfo, int nRequestID, bool bIsLast);\n\n ///\u8ba2\u9605\u884c\u60c5\u5e94\u7b54\n virtual void\n ", "parent": 183, "children": [186, 191, 196, 199], "start_point": {"row": 57, "column": 30}, "end_point": {"row": 57, "column": 138}}, {"id": 186, "type": "parameter_declaration", "text": "eld *pRspInfo, int nRequestID, bool bIsLas", "parent": 185, "children": [187, 188], "start_point": {"row": 57, "column": 31}, "end_point": {"row": 57, "column": 73}}, {"id": 187, "type": "type_identifier", "text": "eld *pRspInfo, int nRequest", "parent": 186, "children": [], "start_point": {"row": 57, "column": 31}, "end_point": {"row": 57, "column": 58}}, {"id": 188, "type": "pointer_declarator", "text": "D, bool bIsLas", "parent": 186, "children": [189, 190], "start_point": {"row": 57, "column": 59}, "end_point": {"row": 57, "column": 73}}, {"id": 189, "type": "*", "text": "D", "parent": 188, "children": [], "start_point": {"row": 57, "column": 59}, "end_point": {"row": 57, "column": 60}}, {"id": 190, "type": "identifier", "text": ", bool bIsLas", "parent": 188, "children": [], "start_point": {"row": 57, "column": 60}, "end_point": {"row": 57, "column": 73}}, {"id": 191, "type": "parameter_declaration", "text": ";\n\n ///\u8ba2\u9605\u884c\u60c5\u5e94\u7b54\n ", "parent": 185, "children": [192, 193], "start_point": {"row": 57, "column": 75}, "end_point": {"row": 57, "column": 107}}, {"id": 192, "type": "type_identifier", "text": ";\n\n ///", "parent": 191, "children": [], "start_point": {"row": 57, "column": 75}, "end_point": {"row": 57, "column": 97}}, {"id": 193, "type": "pointer_declarator", "text": "\u9605\u884c\u60c5\u5e94\u7b54\n ", "parent": 191, "children": [194, 195], "start_point": {"row": 57, "column": 98}, "end_point": {"row": 57, "column": 107}}, {"id": 194, "type": "*", "text": "\u9605", "parent": 193, "children": [], "start_point": {"row": 57, "column": 98}, "end_point": {"row": 57, "column": 99}}, {"id": 195, "type": "identifier", "text": "\u884c\u60c5\u5e94\u7b54\n ", "parent": 193, "children": [], "start_point": {"row": 57, "column": 99}, "end_point": {"row": 57, "column": 107}}, {"id": 196, "type": "parameter_declaration", "text": " vir", "parent": 185, "children": [197, 198], "start_point": {"row": 57, "column": 109}, "end_point": {"row": 57, "column": 123}}, {"id": 197, "type": "primitive_type", "text": " ", "parent": 196, "children": [], "start_point": {"row": 57, "column": 109}, "end_point": {"row": 57, "column": 112}}, {"id": 198, "type": "identifier", "text": " vir", "parent": 196, "children": [], "start_point": {"row": 57, "column": 113}, "end_point": {"row": 57, "column": 123}}, {"id": 199, "type": "parameter_declaration", "text": "al void\n ", "parent": 185, "children": [200, 201], "start_point": {"row": 57, "column": 125}, "end_point": {"row": 57, "column": 137}}, {"id": 200, "type": "primitive_type", "text": "al v", "parent": 199, "children": [], "start_point": {"row": 57, "column": 125}, "end_point": {"row": 57, "column": 129}}, {"id": 201, "type": "identifier", "text": "id\n ", "parent": 199, "children": [], "start_point": {"row": 57, "column": 130}, "end_point": {"row": 57, "column": 137}}, {"id": 202, "type": "declaration", "text": "tField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID,\n bool bIsLast);\n\n ", "parent": 30, "children": [203, 204, 206], "start_point": {"row": 60, "column": 16}, "end_point": {"row": 60, "column": 149}}, {"id": 203, "type": "type_identifier", "text": "tField ", "parent": 202, "children": [], "start_point": {"row": 60, "column": 16}, "end_point": {"row": 60, "column": 23}}, {"id": 204, "type": "ERROR", "text": "pSpe", "parent": 202, "children": [205], "start_point": {"row": 60, "column": 24}, "end_point": {"row": 60, "column": 28}}, {"id": 205, "type": "identifier", "text": "pSpe", "parent": 204, "children": [], "start_point": {"row": 60, "column": 24}, "end_point": {"row": 60, "column": 28}}, {"id": 206, "type": "function_declarator", "text": "ificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID,\n bool bIsLast);\n\n ", "parent": 202, "children": [207, 208], "start_point": {"row": 60, "column": 29}, "end_point": {"row": 60, "column": 148}}, {"id": 207, "type": "identifier", "text": "ificInstrument,", "parent": 206, "children": [], "start_point": {"row": 60, "column": 29}, "end_point": {"row": 60, "column": 44}}, {"id": 208, "type": "parameter_list", "text": " CThostFtdcRspInfoField *pRspInfo, int nRequestID,\n bool bIsLast);\n\n ", "parent": 206, "children": [209, 214, 219, 222], "start_point": {"row": 60, "column": 44}, "end_point": {"row": 60, "column": 148}}, {"id": 209, "type": "parameter_declaration", "text": "CThostFtdcRspInfoField *pRspInfo, int ", "parent": 208, "children": [210, 211], "start_point": {"row": 60, "column": 45}, "end_point": {"row": 60, "column": 83}}, {"id": 210, "type": "type_identifier", "text": "CThostFtdcRspInfoField *p", "parent": 209, "children": [], "start_point": {"row": 60, "column": 45}, "end_point": {"row": 60, "column": 70}}, {"id": 211, "type": "pointer_declarator", "text": "spInfo, int ", "parent": 209, "children": [212, 213], "start_point": {"row": 60, "column": 71}, "end_point": {"row": 60, "column": 83}}, {"id": 212, "type": "*", "text": "s", "parent": 211, "children": [], "start_point": {"row": 60, "column": 71}, "end_point": {"row": 60, "column": 72}}, {"id": 213, "type": "identifier", "text": "pInfo, int ", "parent": 211, "children": [], "start_point": {"row": 60, "column": 72}, "end_point": {"row": 60, "column": 83}}, {"id": 214, "type": "parameter_declaration", "text": "equestID,\n ", "parent": 208, "children": [215, 216], "start_point": {"row": 60, "column": 85}, "end_point": {"row": 60, "column": 117}}, {"id": 215, "type": "type_identifier", "text": "equestID,\n ", "parent": 214, "children": [], "start_point": {"row": 60, "column": 85}, "end_point": {"row": 60, "column": 107}}, {"id": 216, "type": "pointer_declarator", "text": " ", "parent": 214, "children": [217, 218], "start_point": {"row": 60, "column": 108}, "end_point": {"row": 60, "column": 117}}, {"id": 217, "type": "*", "text": " ", "parent": 216, "children": [], "start_point": {"row": 60, "column": 108}, "end_point": {"row": 60, "column": 109}}, {"id": 218, "type": "identifier", "text": " ", "parent": 216, "children": [], "start_point": {"row": 60, "column": 109}, "end_point": {"row": 60, "column": 117}}, {"id": 219, "type": "parameter_declaration", "text": " boo", "parent": 208, "children": [220, 221], "start_point": {"row": 60, "column": 119}, "end_point": {"row": 60, "column": 133}}, {"id": 220, "type": "primitive_type", "text": " ", "parent": 219, "children": [], "start_point": {"row": 60, "column": 119}, "end_point": {"row": 60, "column": 122}}, {"id": 221, "type": "identifier", "text": " boo", "parent": 219, "children": [], "start_point": {"row": 60, "column": 123}, "end_point": {"row": 60, "column": 133}}, {"id": 222, "type": "parameter_declaration", "text": "bIsLast);\n\n ", "parent": 208, "children": [223, 224], "start_point": {"row": 60, "column": 135}, "end_point": {"row": 60, "column": 147}}, {"id": 223, "type": "primitive_type", "text": "bIsL", "parent": 222, "children": [], "start_point": {"row": 60, "column": 135}, "end_point": {"row": 60, "column": 139}}, {"id": 224, "type": "identifier", "text": "st);\n\n ", "parent": 222, "children": [], "start_point": {"row": 60, "column": 140}, "end_point": {"row": 60, "column": 147}}, {"id": 225, "type": "declaration", "text": " OnRspUnSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID,\n bool bIsLast);\n\n ", "parent": 30, "children": [226, 227, 229], "start_point": {"row": 63, "column": 16}, "end_point": {"row": 65, "column": 49}}, {"id": 226, "type": "type_identifier", "text": " ", "parent": 225, "children": [], "start_point": {"row": 63, "column": 16}, "end_point": {"row": 63, "column": 23}}, {"id": 227, "type": "ERROR", "text": " ", "parent": 225, "children": [228], "start_point": {"row": 63, "column": 24}, "end_point": {"row": 63, "column": 28}}, {"id": 228, "type": "identifier", "text": " ", "parent": 227, "children": [], "start_point": {"row": 63, "column": 24}, "end_point": {"row": 63, "column": 28}}, {"id": 229, "type": "function_declarator", "text": "tData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID,\n bool bIsLast);\n\n ", "parent": 225, "children": [230, 231], "start_point": {"row": 64, "column": 16}, "end_point": {"row": 65, "column": 48}}, {"id": 230, "type": "identifier", "text": "tData(CThostFtdcSp", "parent": 229, "children": [], "start_point": {"row": 64, "column": 16}, "end_point": {"row": 64, "column": 34}}, {"id": 231, "type": "parameter_list", "text": "ecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID,\n bool bIsLast);\n\n ", "parent": 229, "children": [232, 237, 242, 245], "start_point": {"row": 64, "column": 34}, "end_point": {"row": 65, "column": 48}}, {"id": 232, "type": "parameter_declaration", "text": "cificInstrumentField *pSpecificInstrument, CThostFtdcR", "parent": 231, "children": [233, 234], "start_point": {"row": 64, "column": 35}, "end_point": {"row": 64, "column": 89}}, {"id": 233, "type": "type_identifier", "text": "cificInstrumentField *pSpecificIn", "parent": 232, "children": [], "start_point": {"row": 64, "column": 35}, "end_point": {"row": 64, "column": 68}}, {"id": 234, "type": "pointer_declarator", "text": "trument, CThostFtdcR", "parent": 232, "children": [235, 236], "start_point": {"row": 64, "column": 69}, "end_point": {"row": 64, "column": 89}}, {"id": 235, "type": "*", "text": "t", "parent": 234, "children": [], "start_point": {"row": 64, "column": 69}, "end_point": {"row": 64, "column": 70}}, {"id": 236, "type": "identifier", "text": "rument, CThostFtdcR", "parent": 234, "children": [], "start_point": {"row": 64, "column": 70}, "end_point": {"row": 64, "column": 89}}, {"id": 237, "type": "parameter_declaration", "text": "InfoField *pRspInfo, int nReques", "parent": 231, "children": [238, 239], "start_point": {"row": 64, "column": 91}, "end_point": {"row": 64, "column": 123}}, {"id": 238, "type": "type_identifier", "text": "InfoField *pRspInfo, i", "parent": 237, "children": [], "start_point": {"row": 64, "column": 91}, "end_point": {"row": 64, "column": 113}}, {"id": 239, "type": "pointer_declarator", "text": "t nReques", "parent": 237, "children": [240, 241], "start_point": {"row": 64, "column": 114}, "end_point": {"row": 64, "column": 123}}, {"id": 240, "type": "*", "text": "t", "parent": 239, "children": [], "start_point": {"row": 64, "column": 114}, "end_point": {"row": 64, "column": 115}}, {"id": 241, "type": "identifier", "text": " nReques", "parent": 239, "children": [], "start_point": {"row": 64, "column": 115}, "end_point": {"row": 64, "column": 123}}, {"id": 242, "type": "parameter_declaration", "text": "D,\n ", "parent": 231, "children": [243, 244], "start_point": {"row": 64, "column": 125}, "end_point": {"row": 64, "column": 139}}, {"id": 243, "type": "primitive_type", "text": "D,\n", "parent": 242, "children": [], "start_point": {"row": 64, "column": 125}, "end_point": {"row": 64, "column": 128}}, {"id": 244, "type": "identifier", "text": " ", "parent": 242, "children": [], "start_point": {"row": 64, "column": 129}, "end_point": {"row": 64, "column": 139}}, {"id": 245, "type": "parameter_declaration", "text": "t);\n\n ", "parent": 231, "children": [246, 247], "start_point": {"row": 65, "column": 35}, "end_point": {"row": 65, "column": 47}}, {"id": 246, "type": "primitive_type", "text": "t);\n", "parent": 245, "children": [], "start_point": {"row": 65, "column": 35}, "end_point": {"row": 65, "column": 39}}, {"id": 247, "type": "identifier", "text": " ", "parent": 245, "children": [], "start_point": {"row": 65, "column": 40}, "end_point": {"row": 65, "column": 47}}, {"id": 248, "type": "declaration", "text": "Data(CThostFtdcDepthMarketDataField *pDepthMarketData);\n\n protected:\n\n void on_start() override;\n\n private:\n std::string front_uri_;\n std::s", "parent": 30, "children": [249, 250, 252], "start_point": {"row": 68, "column": 16}, "end_point": {"row": 70, "column": 51}}, {"id": 249, "type": "type_identifier", "text": "Data(CT", "parent": 248, "children": [], "start_point": {"row": 68, "column": 16}, "end_point": {"row": 68, "column": 23}}, {"id": 250, "type": "ERROR", "text": "ostF", "parent": 248, "children": [251], "start_point": {"row": 68, "column": 24}, "end_point": {"row": 68, "column": 28}}, {"id": 251, "type": "identifier", "text": "ostF", "parent": 250, "children": [], "start_point": {"row": 68, "column": 24}, "end_point": {"row": 68, "column": 28}}, {"id": 252, "type": "function_declarator", "text": "aField *pDepthMarketData);\n\n protected:\n\n void on_start() override;\n\n private:\n std::string front_uri_;\n std::", "parent": 248, "children": [253, 254], "start_point": {"row": 69, "column": 16}, "end_point": {"row": 70, "column": 50}}, {"id": 253, "type": "identifier", "text": "aField *pDepthMarket", "parent": 252, "children": [], "start_point": {"row": 69, "column": 16}, "end_point": {"row": 69, "column": 36}}, {"id": 254, "type": "parameter_list", "text": "Data);\n\n protected:\n\n void on_start() override;\n\n private:\n std::string front_uri_;\n std::", "parent": 252, "children": [255, 260, 265, 268], "start_point": {"row": 69, "column": 36}, "end_point": {"row": 70, "column": 50}}, {"id": 255, "type": "parameter_declaration", "text": "ata);\n\n protected:\n\n void on", "parent": 254, "children": [256, 257], "start_point": {"row": 69, "column": 37}, "end_point": {"row": 69, "column": 91}}, {"id": 256, "type": "type_identifier", "text": "ata);\n\n protected:\n\n ", "parent": 255, "children": [], "start_point": {"row": 69, "column": 37}, "end_point": {"row": 69, "column": 70}}, {"id": 257, "type": "pointer_declarator", "text": " void on", "parent": 255, "children": [258, 259], "start_point": {"row": 69, "column": 71}, "end_point": {"row": 69, "column": 91}}, {"id": 258, "type": "*", "text": " ", "parent": 257, "children": [], "start_point": {"row": 69, "column": 71}, "end_point": {"row": 69, "column": 72}}, {"id": 259, "type": "identifier", "text": " void on", "parent": 257, "children": [], "start_point": {"row": 69, "column": 72}, "end_point": {"row": 69, "column": 91}}, {"id": 260, "type": "parameter_declaration", "text": "tart() override;\n\n pr", "parent": 254, "children": [261, 262], "start_point": {"row": 69, "column": 93}, "end_point": {"row": 69, "column": 125}}, {"id": 261, "type": "type_identifier", "text": "tart() override;\n\n ", "parent": 260, "children": [], "start_point": {"row": 69, "column": 93}, "end_point": {"row": 69, "column": 115}}, {"id": 262, "type": "pointer_declarator", "text": " pr", "parent": 260, "children": [263, 264], "start_point": {"row": 69, "column": 116}, "end_point": {"row": 69, "column": 125}}, {"id": 263, "type": "*", "text": " ", "parent": 262, "children": [], "start_point": {"row": 69, "column": 116}, "end_point": {"row": 69, "column": 117}}, {"id": 264, "type": "identifier", "text": " pr", "parent": 262, "children": [], "start_point": {"row": 69, "column": 117}, "end_point": {"row": 69, "column": 125}}, {"id": 265, "type": "parameter_declaration", "text": "ate:\n ", "parent": 254, "children": [266, 267], "start_point": {"row": 69, "column": 127}, "end_point": {"row": 69, "column": 141}}, {"id": 266, "type": "primitive_type", "text": "ate", "parent": 265, "children": [], "start_point": {"row": 69, "column": 127}, "end_point": {"row": 69, "column": 130}}, {"id": 267, "type": "identifier", "text": "\n ", "parent": 265, "children": [], "start_point": {"row": 69, "column": 131}, "end_point": {"row": 69, "column": 141}}, {"id": 268, "type": "parameter_declaration", "text": " std:", "parent": 254, "children": [269, 270], "start_point": {"row": 70, "column": 37}, "end_point": {"row": 70, "column": 49}}, {"id": 269, "type": "primitive_type", "text": " ", "parent": 268, "children": [], "start_point": {"row": 70, "column": 37}, "end_point": {"row": 70, "column": 41}}, {"id": 270, "type": "identifier", "text": " std:", "parent": 268, "children": [], "start_point": {"row": 70, "column": 42}, "end_point": {"row": 70, "column": 49}}, {"id": 271, "type": "declaration", "text": "_;\n std::string password_;\n\n int request_id_;\n\n ", "parent": 30, "children": [272, 273, 275], "start_point": {"row": 73, "column": 16}, "end_point": {"row": 73, "column": 100}}, {"id": 272, "type": "type_identifier", "text": "_;\n ", "parent": 271, "children": [], "start_point": {"row": 73, "column": 16}, "end_point": {"row": 73, "column": 23}}, {"id": 273, "type": "ERROR", "text": " ", "parent": 271, "children": [274], "start_point": {"row": 73, "column": 24}, "end_point": {"row": 73, "column": 28}}, {"id": 274, "type": "identifier", "text": " ", "parent": 273, "children": [], "start_point": {"row": 73, "column": 24}, "end_point": {"row": 73, "column": 28}}, {"id": 275, "type": "function_declarator", "text": " std::string password_;\n\n int request_id_;\n\n ", "parent": 271, "children": [276, 277], "start_point": {"row": 73, "column": 29}, "end_point": {"row": 73, "column": 99}}, {"id": 276, "type": "identifier", "text": " std::string pa", "parent": 275, "children": [], "start_point": {"row": 73, "column": 29}, "end_point": {"row": 73, "column": 49}}, {"id": 277, "type": "parameter_list", "text": "ssword_;\n\n int request_id_;\n\n ", "parent": 275, "children": [278], "start_point": {"row": 73, "column": 49}, "end_point": {"row": 73, "column": 99}}, {"id": 278, "type": "parameter_declaration", "text": "sword_;\n\n int request_id_;\n\n ", "parent": 277, "children": [279, 280], "start_point": {"row": 73, "column": 50}, "end_point": {"row": 73, "column": 98}}, {"id": 279, "type": "type_identifier", "text": "sword_;\n\n int r", "parent": 278, "children": [], "start_point": {"row": 73, "column": 50}, "end_point": {"row": 73, "column": 80}}, {"id": 280, "type": "pointer_declarator", "text": "quest_id_;\n\n ", "parent": 278, "children": [281, 282], "start_point": {"row": 73, "column": 81}, "end_point": {"row": 73, "column": 98}}, {"id": 281, "type": "*", "text": "q", "parent": 280, "children": [], "start_point": {"row": 73, "column": 81}, "end_point": {"row": 73, "column": 82}}, {"id": 282, "type": "identifier", "text": "uest_id_;\n\n ", "parent": 280, "children": [], "start_point": {"row": 73, "column": 82}, "end_point": {"row": 73, "column": 98}}, {"id": 283, "type": "labeled_statement", "text": "tFtdcMdApi *api_;\n\n static const std::", "parent": 30, "children": [284, 285], "start_point": {"row": 75, "column": 12}, "end_point": {"row": 77, "column": 41}}, {"id": 284, "type": "statement_identifier", "text": "tFtdcMdAp", "parent": 283, "children": [], "start_point": {"row": 75, "column": 12}, "end_point": {"row": 75, "column": 21}}, {"id": 285, "type": "ERROR", "text": " static const std:", "parent": 283, "children": [286, 287], "start_point": {"row": 77, "column": 16}, "end_point": {"row": 77, "column": 40}}, {"id": 286, "type": "primitive_type", "text": " ", "parent": 285, "children": [], "start_point": {"row": 77, "column": 16}, "end_point": {"row": 77, "column": 20}}, {"id": 287, "type": "function_declarator", "text": " static const std:", "parent": 285, "children": [288, 289], "start_point": {"row": 77, "column": 21}, "end_point": {"row": 77, "column": 40}}, {"id": 288, "type": "parameter_list", "text": " c", "parent": 287, "children": [], "start_point": {"row": 77, "column": 29}, "end_point": {"row": 77, "column": 31}}, {"id": 289, "type": "identifier", "text": "nst std:", "parent": 287, "children": [], "start_point": {"row": 77, "column": 32}, "end_point": {"row": 77, "column": 40}}, {"id": 290, "type": "labeled_statement", "text": "int, std::string> kDisconnectedReasonMap;\n\n ", "parent": 30, "children": [291, 292], "start_point": {"row": 79, "column": 12}, "end_point": {"row": 80, "column": 39}}, {"id": 291, "type": "statement_identifier", "text": "int, st", "parent": 290, "children": [], "start_point": {"row": 79, "column": 12}, "end_point": {"row": 79, "column": 19}}, {"id": 292, "type": "labeled_statement", "text": "nectedReasonMap;\n\n ", "parent": 290, "children": [293, 294, 295], "start_point": {"row": 80, "column": 16}, "end_point": {"row": 80, "column": 39}}, {"id": 293, "type": "statement_identifier", "text": "nec", "parent": 292, "children": [], "start_point": {"row": 80, "column": 16}, "end_point": {"row": 80, "column": 19}}, {"id": 294, "type": "ERROR", "text": "e", "parent": 292, "children": [], "start_point": {"row": 80, "column": 20}, "end_point": {"row": 80, "column": 21}}, {"id": 295, "type": "declaration", "text": "dReasonMap;\n\n ", "parent": 292, "children": [296, 297], "start_point": {"row": 80, "column": 21}, "end_point": {"row": 80, "column": 39}}, {"id": 296, "type": "type_identifier", "text": "dReaso", "parent": 295, "children": [], "start_point": {"row": 80, "column": 21}, "end_point": {"row": 80, "column": 27}}, {"id": 297, "type": "identifier", "text": "Map;\n\n ", "parent": 295, "children": [], "start_point": {"row": 80, "column": 28}, "end_point": {"row": 80, "column": 38}}, {"id": 298, "type": "labeled_statement", "text": " }\n }\n}\n#endif //MD_", "parent": 30, "children": [299, 300], "start_point": {"row": 81, "column": 16}, "end_point": {"row": 81, "column": 39}}, {"id": 299, "type": "ERROR", "text": " ", "parent": 298, "children": [], "start_point": {"row": 81, "column": 20}, "end_point": {"row": 81, "column": 21}}, {"id": 300, "type": "declaration", "text": " }\n}\n#endif //MD_", "parent": 298, "children": [301, 302], "start_point": {"row": 81, "column": 21}, "end_point": {"row": 81, "column": 39}}, {"id": 301, "type": "type_identifier", "text": " }\n}\n", "parent": 300, "children": [], "start_point": {"row": 81, "column": 21}, "end_point": {"row": 81, "column": 27}}, {"id": 302, "type": "identifier", "text": "endif //MD", "parent": 300, "children": [], "start_point": {"row": 81, "column": 28}, "end_point": {"row": 81, "column": 38}}, {"id": 303, "type": "labeled_statement", "text": "", "parent": 30, "children": [304, 305, 306], "start_point": {"row": 82, "column": 16}, "end_point": {"row": 82, "column": 40}}, {"id": 304, "type": "statement_identifier", "text": "", "parent": 303, "children": [], "start_point": {"row": 82, "column": 16}, "end_point": {"row": 82, "column": 19}}, {"id": 305, "type": "ERROR", "text": "", "parent": 303, "children": [], "start_point": {"row": 82, "column": 20}, "end_point": {"row": 82, "column": 21}}, {"id": 306, "type": "declaration", "text": "", "parent": 303, "children": [307, 308], "start_point": {"row": 82, "column": 21}, "end_point": {"row": 82, "column": 40}}, {"id": 307, "type": "type_identifier", "text": "", "parent": 306, "children": [], "start_point": {"row": 82, "column": 21}, "end_point": {"row": 82, "column": 27}}, {"id": 308, "type": "identifier", "text": "", "parent": 306, "children": [], "start_point": {"row": 82, "column": 28}, "end_point": {"row": 82, "column": 39}}, {"id": 309, "type": "labeled_statement", "text": "", "parent": 30, "children": [310, 311, 312], "start_point": {"row": 83, "column": 16}, "end_point": {"row": 83, "column": 38}}, {"id": 310, "type": "statement_identifier", "text": "", "parent": 309, "children": [], "start_point": {"row": 83, "column": 16}, "end_point": {"row": 83, "column": 19}}, {"id": 311, "type": "ERROR", "text": "", "parent": 309, "children": [], "start_point": {"row": 83, "column": 20}, "end_point": {"row": 83, "column": 21}}, {"id": 312, "type": "declaration", "text": "", "parent": 309, "children": [313, 314], "start_point": {"row": 83, "column": 21}, "end_point": {"row": 83, "column": 38}}, {"id": 313, "type": "type_identifier", "text": "", "parent": 312, "children": [], "start_point": {"row": 83, "column": 21}, "end_point": {"row": 83, "column": 27}}, {"id": 314, "type": "identifier", "text": "", "parent": 312, "children": [], "start_point": {"row": 83, "column": 28}, "end_point": {"row": 83, "column": 37}}, {"id": 315, "type": "declaration", "text": "", "parent": 30, "children": [316, 317], "start_point": {"row": 85, "column": 16}, "end_point": {"row": 85, "column": 32}}, {"id": 316, "type": "primitive_type", "text": "", "parent": 315, "children": [], "start_point": {"row": 85, "column": 16}, "end_point": {"row": 85, "column": 19}}, {"id": 317, "type": "identifier", "text": "", "parent": 315, "children": [], "start_point": {"row": 85, "column": 20}, "end_point": {"row": 85, "column": 31}}, {"id": 318, "type": "declaration", "text": "", "parent": 30, "children": [319, 320], "start_point": {"row": 87, "column": 16}, "end_point": {"row": 87, "column": 38}}, {"id": 319, "type": "type_identifier", "text": "", "parent": 318, "children": [], "start_point": {"row": 87, "column": 16}, "end_point": {"row": 87, "column": 31}}, {"id": 320, "type": "pointer_declarator", "text": "", "parent": 318, "children": [321, 322], "start_point": {"row": 87, "column": 32}, "end_point": {"row": 87, "column": 37}}, {"id": 321, "type": "*", "text": "", "parent": 320, "children": [], "start_point": {"row": 87, "column": 32}, "end_point": {"row": 87, "column": 33}}, {"id": 322, "type": "identifier", "text": "", "parent": 320, "children": [], "start_point": {"row": 87, "column": 33}, "end_point": {"row": 87, "column": 37}}, {"id": 323, "type": "declaration", "text": "", "parent": 30, "children": [324, 325, 326, 327, 328, 329, 332, 336], "start_point": {"row": 89, "column": 16}, "end_point": {"row": 89, "column": 89}}, {"id": 324, "type": "storage_class_specifier", "text": "", "parent": 323, "children": [], "start_point": {"row": 89, "column": 16}, "end_point": {"row": 89, "column": 22}}, {"id": 325, "type": "type_qualifier", "text": "", "parent": 323, "children": [], "start_point": {"row": 89, "column": 23}, "end_point": {"row": 89, "column": 28}}, {"id": 326, "type": "type_identifier", "text": "", "parent": 323, "children": [], "start_point": {"row": 89, "column": 29}, "end_point": {"row": 89, "column": 32}}, {"id": 327, "type": "ERROR", "text": "", "parent": 323, "children": [], "start_point": {"row": 89, "column": 32}, "end_point": {"row": 89, "column": 34}}, {"id": 328, "type": "identifier", "text": "", "parent": 323, "children": [], "start_point": {"row": 89, "column": 34}, "end_point": {"row": 89, "column": 47}}, {"id": 329, "type": "ERROR", "text": "", "parent": 323, "children": [330, 331], "start_point": {"row": 89, "column": 47}, "end_point": {"row": 89, "column": 51}}, {"id": 330, "type": "<", "text": "", "parent": 329, "children": [], "start_point": {"row": 89, "column": 47}, "end_point": {"row": 89, "column": 48}}, {"id": 331, "type": "primitive_type", "text": "", "parent": 329, "children": [], "start_point": {"row": 89, "column": 48}, "end_point": {"row": 89, "column": 51}}, {"id": 332, "type": "ERROR", "text": "", "parent": 323, "children": [333, 334, 335], "start_point": {"row": 89, "column": 53}, "end_point": {"row": 89, "column": 65}}, {"id": 333, "type": "identifier", "text": "", "parent": 332, "children": [], "start_point": {"row": 89, "column": 53}, "end_point": {"row": 89, "column": 56}}, {"id": 334, "type": "identifier", "text": "", "parent": 332, "children": [], "start_point": {"row": 89, "column": 58}, "end_point": {"row": 89, "column": 64}}, {"id": 335, "type": ">", "text": "", "parent": 332, "children": [], "start_point": {"row": 89, "column": 64}, "end_point": {"row": 89, "column": 65}}, {"id": 336, "type": "identifier", "text": "", "parent": 323, "children": [], "start_point": {"row": 89, "column": 66}, "end_point": {"row": 89, "column": 88}}, {"id": 337, "type": "ERROR", "text": "", "parent": 0, "children": [], "start_point": {"row": 94, "column": 0}, "end_point": {"row": 94, "column": 1}}, {"id": 338, "type": "#endif", "text": "", "parent": 0, "children": [], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 95, "column": 6}}]}, "node_categories": {"declarations": {"functions": [24, 27, 30, 40, 89, 93, 98, 115, 132, 146, 160, 167, 174, 183, 206, 229, 252, 275, 287], "variables": [33, 43, 46, 52, 59, 65, 72, 77, 84, 101, 118, 130, 135, 144, 149, 158, 163, 170, 176, 179, 186, 191, 196, 199, 202, 209, 214, 219, 222, 225, 232, 237, 242, 245, 248, 255, 260, 265, 268, 271, 278, 295, 300, 306, 312, 315, 318, 323], "classes": [324], "imports": [6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 25, 26, 28, 29, 31, 32, 35, 36, 38, 39, 41, 45, 47, 49, 50, 51, 53, 55, 57, 58, 60, 62, 64, 66, 68, 70, 71, 76, 78, 80, 82, 83, 88, 90, 94, 99, 102, 104, 106, 107, 108, 109, 111, 112, 116, 119, 121, 123, 124, 125, 126, 128, 129, 133, 136, 138, 140, 141, 143, 147, 150, 152, 154, 155, 157, 161, 164, 166, 168, 171, 173, 178, 180, 182, 184, 187, 190, 192, 195, 198, 201, 203, 205, 207, 210, 213, 215, 218, 221, 224, 226, 228, 230, 233, 236, 238, 241, 244, 247, 249, 251, 253, 256, 259, 261, 264, 267, 270, 272, 274, 276, 279, 282, 284, 289, 291, 293, 296, 297, 301, 302, 304, 307, 308, 310, 313, 314, 317, 319, 322, 325, 326, 328, 333, 334, 336, 338], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 20, 23], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 24, "universal_type": "function", "name": "MdGateway", "text_snippet": "namespace kungfu\n{\n namespace wingchun\n {\n namespace ctp\n {\n class Md"}, {"node_id": 27, "universal_type": "function", "name": "MdGateway", "text_snippet": "namespace wingchun\n {\n namespace ctp\n {\n class MdGateway : public CThost"}, {"node_id": 30, "universal_type": "function", "name": "MdGateway", "text_snippet": "namespace ctp\n {\n class MdGateway : public CThostFtdcMdSpi, public gateway::Market"}, {"node_id": 40, "universal_type": "function", "name": "unknown", "text_snippet": "MdGateway(bool low_latency, yijinjing::data::locator_ptr locator,\n std::map"}, {"node_id": 89, "universal_type": "function", "name": "unknown", "text_snippet": "virtual ~MdGateway()\n {}"}, {"node_id": 93, "universal_type": "function", "name": "unknown", "text_snippet": "MdGateway()"}, {"node_id": 98, "universal_type": "function", "name": "unknown", "text_snippet": "subscribe(const std::vector<wingchun::msg::data::Instrument> &instruments) override"}, {"node_id": 115, "universal_type": "function", "name": "unknown", "text_snippet": "unsubscribe(const std::vector<wingchun::msg::data::Instrument> &instruments) override"}, {"node_id": 132, "universal_type": "function", "name": "unknown", "text_snippet": "subscribe(const std::vector<std::string> &instrument_ids)"}, {"node_id": 146, "universal_type": "function", "name": "unknown", "text_snippet": "unsubscribe(const std::vector<std::string> &instrument_ids)"}, {"node_id": 160, "universal_type": "function", "name": "unknown", "text_snippet": "login()"}, {"node_id": 167, "universal_type": "function", "name": "unknown", "text_snippet": "\u5f53\u53d1\u751f\u8fd9\u4e2a\u60c5\u51b5\u540e\uff0cAPI\u4f1a\u81ea\u52a8\u91cd\u65b0\u8fde"}, {"node_id": 174, "universal_type": "function", "name": "unknown", "text_snippet": ";\n\n ///\u767b\u51fa\u8bf7\u6c42\u54cd\u5e94\n "}, {"node_id": 183, "universal_type": "function", "name": "nRequestID,", "text_snippet": "stFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);\n\n ///\u8ba2\u9605\u884c\u60c5\u5e94\u7b54\n "}, {"node_id": 206, "universal_type": "function", "name": "nRequestID,", "text_snippet": "ificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID,\n "}, {"node_id": 229, "universal_type": "function", "name": "nRequestID,", "text_snippet": "tData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int "}, {"node_id": 252, "universal_type": "function", "name": "on_start", "text_snippet": "aField *pDepthMarketData);\n\n protected:\n\n void on_start() override;\n\n "}, {"node_id": 275, "universal_type": "function", "name": "request_id_;", "text_snippet": " std::string password_;\n\n int request_id_;\n\n "}, {"node_id": 287, "universal_type": "function", "name": "unknown", "text_snippet": " static const std:"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <string>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <map>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <kungfu/yijinjing/common.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <kungfu/wingchun/msg.h>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <kungfu/wingchun/gateway/marketdata.h>\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include \"ThostFtdcMdApi.h\"\n"}, {"node_id": 22, "text": "#include"}]}, "original_source_code": "//\n// Created by qlu on 2019/1/10.\n//\n\n#ifndef MD_GATEWAY_CTP_H\n#define MD_GATEWAY_CTP_H\n\n#include <string>\n#include <map>\n\n#include <kungfu/yijinjing/common.h>\n#include <kungfu/wingchun/msg.h>\n#include <kungfu/wingchun/gateway/marketdata.h>\n\n#include \"ThostFtdcMdApi.h\"\n\nnamespace kungfu\n{\n namespace wingchun\n {\n namespace ctp\n {\n class MdGateway : public CThostFtdcMdSpi, public gateway::MarketData\n {\n public:\n MdGateway(bool low_latency, yijinjing::data::locator_ptr locator,\n std::map<std::string, std::string> &config_str,\n std::map<std::string, int> &config_int,\n std::map<std::string, double> &config_double);\n\n virtual ~MdGateway()\n {};\n\n bool subscribe(const std::vector<wingchun::msg::data::Instrument> &instruments) override;\n\n bool unsubscribe(const std::vector<wingchun::msg::data::Instrument> &instruments) override;\n\n bool subscribe(const std::vector<std::string> &instrument_ids);\n\n bool unsubscribe(const std::vector<std::string> &instrument_ids);\n\n bool login();\n\n ///\u5f53\u5ba2\u6237\u7aef\u4e0e\u4ea4\u6613\u540e\u53f0\u5efa\u7acb\u8d77\u901a\u4fe1\u8fde\u63a5\u65f6\uff08\u8fd8\u672a\u767b\u5f55\u524d\uff09\uff0c\u8be5\u65b9\u6cd5\u88ab\u8c03\u7528\u3002\n virtual void OnFrontConnected();\n\n ///\u5f53\u5ba2\u6237\u7aef\u4e0e\u4ea4\u6613\u540e\u53f0\u901a\u4fe1\u8fde\u63a5\u65ad\u5f00\u65f6\uff0c\u8be5\u65b9\u6cd5\u88ab\u8c03\u7528\u3002\u5f53\u53d1\u751f\u8fd9\u4e2a\u60c5\u51b5\u540e\uff0cAPI\u4f1a\u81ea\u52a8\u91cd\u65b0\u8fde\u63a5\uff0c\u5ba2\u6237\u7aef\u53ef\u4e0d\u505a\u5904\u7406\u3002\n ///@param nReason \u9519\u8bef\u539f\u56e0\n /// 0x1001 \u7f51\u7edc\u8bfb\u5931\u8d25\n /// 0x1002 \u7f51\u7edc\u5199\u5931\u8d25\n /// 0x2001 \u63a5\u6536\u5fc3\u8df3\u8d85\u65f6\n /// 0x2002 \u53d1\u9001\u5fc3\u8df3\u5931\u8d25\n /// 0x2003 \u6536\u5230\u9519\u8bef\u62a5\u6587\n virtual void OnFrontDisconnected(int nReason);\n\n ///\u767b\u5f55\u8bf7\u6c42\u54cd\u5e94\n virtual void\n OnRspUserLogin(CThostFtdcRspUserLoginField *pRspUserLogin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);\n\n ///\u767b\u51fa\u8bf7\u6c42\u54cd\u5e94\n virtual void OnRspUserLogout(CThostFtdcUserLogoutField *pUserLogout, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast);\n\n ///\u8ba2\u9605\u884c\u60c5\u5e94\u7b54\n virtual void\n OnRspSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID,\n bool bIsLast);\n\n ///\u53d6\u6d88\u8ba2\u9605\u884c\u60c5\u5e94\u7b54\n virtual void\n OnRspUnSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID,\n bool bIsLast);\n\n ///\u6df1\u5ea6\u884c\u60c5\u901a\u77e5\n virtual void OnRtnDepthMarketData(CThostFtdcDepthMarketDataField *pDepthMarketData);\n\n protected:\n\n void on_start() override;\n\n private:\n std::string front_uri_;\n std::string broker_id_;\n std::string account_id_;\n std::string password_;\n\n int request_id_;\n\n CThostFtdcMdApi *api_;\n\n static const std::unordered_map<int, std::string> kDisconnectedReasonMap;\n\n };\n }\n }\n}\n#endif //MD_GATEWAY_CTP_H\n"}
80,236
c
#pragma once #include <stdint.h> #include "bat_data_type.h" #include "bat_read.h" #include "bat_write.h"
20
5
(translation_unit) "#pragma once\n\n#include <stdint.h>\n#include "bat_data_type.h"\n#include "bat_read.h"\n#include "bat_write.h"\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <stdint.h>\n" (#include) "#include" (system_lib_string) "<stdint.h>" (preproc_include) "#include "bat_data_type.h"\n" (#include) "#include" (string_literal) ""bat_data_type.h"" (") """ (string_content) "bat_data_type.h" (") """ (preproc_include) "#include "bat_read.h"\n" (#include) "#include" (string_literal) ""bat_read.h"" (") """ (string_content) "bat_read.h" (") """ (preproc_include) "#include "bat_write.h"\n" (#include) "#include" (string_literal) ""bat_write.h"" (") """ (string_content) "bat_write.h" (") """
25
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 20.0, "nodes": 15, "errors": 0, "source_hash": "ccaa7581da3eb45b3c35bf4a5d55fac07441580b534d2bf11161df419dae4bda", "categorized_nodes": 13}, "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 <stdint.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": "system_lib_string", "text": "<stdint.h>", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 19}}, {"id": 6, "type": "preproc_include", "text": "#include \"bat_data_type.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": "\"bat_data_type.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 26}}, {"id": 9, "type": "preproc_include", "text": "#include \"bat_read.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": "\"bat_read.h\"", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 21}}, {"id": 12, "type": "preproc_include", "text": "#include \"bat_write.h\"\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": "string_literal", "text": "\"bat_write.h\"", "parent": 12, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 22}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [3, 4, 6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 11, 14], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include <stdint.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"bat_data_type.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"bat_read.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"bat_write.h\"\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "#pragma once\n\n#include <stdint.h>\n#include \"bat_data_type.h\"\n#include \"bat_read.h\"\n#include \"bat_write.h\"\n"}
80,237
c
#include <stdio.h> #include <stdlib.h> #include <math.h> /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main (){ int n; int a[100001]={0}; int k; int i ,j; scanf("%d",&n); while(n--){ scanf("%d",&i); a[i]++; } scanf("%d",&k); for(i=99999;i>0;i--){ if(a[i]!=0){ k--; if(k==0){ printf("%d %d",i,a[i]); return 0; } } } return 0; }
15.52
27
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n\n/* run this program using the console pauser or add your own getch, system("pause") or input loop */\n\n \n int main (){\n int n;\n int a[100001]={0};\n int k;\n int i ,j;\n scanf("%d",&n);\n while(n--){\n scanf("%d",&i);\n a[i]++;\n }\n scanf("%d",&k);\n for(i=99999;i>0;i--){\n if(a[i]!=0){\n k--;\n if(k==0){\n printf("%d %d",i,a[i]);\n return 0;\n }\n }\n }\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_include) "#include <math.h>\n" (#include) "#include" (system_lib_string) "<math.h>" (comment) "/* run this program using the console pauser or add your own getch, system("pause") or input loop */" (function_definition) "int main (){\n int n;\n int a[100001]={0};\n int k;\n int i ,j;\n scanf("%d",&n);\n while(n--){\n scanf("%d",&i);\n a[i]++;\n }\n scanf("%d",&k);\n for(i=99999;i>0;i--){\n if(a[i]!=0){\n k--;\n if(k==0){\n printf("%d %d",i,a[i]);\n return 0;\n }\n }\n }\n return 0;\n }" (primitive_type) "int" (function_declarator) "main ()" (identifier) "main" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n int n;\n int a[100001]={0};\n int k;\n int i ,j;\n scanf("%d",&n);\n while(n--){\n scanf("%d",&i);\n a[i]++;\n }\n scanf("%d",&k);\n for(i=99999;i>0;i--){\n if(a[i]!=0){\n k--;\n if(k==0){\n printf("%d %d",i,a[i]);\n return 0;\n }\n }\n }\n return 0;\n }" ({) "{" (declaration) "int n;" (primitive_type) "int" (identifier) "n" (;) ";" (declaration) "int a[100001]={0};" (primitive_type) "int" (init_declarator) "a[100001]={0}" (array_declarator) "a[100001]" (identifier) "a" ([) "[" (number_literal) "100001" (]) "]" (=) "=" (initializer_list) "{0}" ({) "{" (number_literal) "0" (}) "}" (;) ";" (declaration) "int k;" (primitive_type) "int" (identifier) "k" (;) ";" (declaration) "int i ,j;" (primitive_type) "int" (identifier) "i" (,) "," (identifier) "j" (;) ";" (expression_statement) "scanf("%d",&n);" (call_expression) "scanf("%d",&n)" (identifier) "scanf" (argument_list) "("%d",&n)" (() "(" (string_literal) ""%d"" (") """ (string_content) "%d" (") """ (,) "," (pointer_expression) "&n" (&) "&" (identifier) "n" ()) ")" (;) ";" (while_statement) "while(n--){\n scanf("%d",&i);\n a[i]++;\n }" (while) "while" (parenthesized_expression) "(n--)" (() "(" (update_expression) "n--" (identifier) "n" (--) "--" ()) ")" (compound_statement) "{\n scanf("%d",&i);\n a[i]++;\n }" ({) "{" (expression_statement) "scanf("%d",&i);" (call_expression) "scanf("%d",&i)" (identifier) "scanf" (argument_list) "("%d",&i)" (() "(" (string_literal) ""%d"" (") """ (string_content) "%d" (") """ (,) "," (pointer_expression) "&i" (&) "&" (identifier) "i" ()) ")" (;) ";" (expression_statement) "a[i]++;" (update_expression) "a[i]++" (subscript_expression) "a[i]" (identifier) "a" ([) "[" (identifier) "i" (]) "]" (++) "++" (;) ";" (}) "}" (expression_statement) "scanf("%d",&k);" (call_expression) "scanf("%d",&k)" (identifier) "scanf" (argument_list) "("%d",&k)" (() "(" (string_literal) ""%d"" (") """ (string_content) "%d" (") """ (,) "," (pointer_expression) "&k" (&) "&" (identifier) "k" ()) ")" (;) ";" (for_statement) "for(i=99999;i>0;i--){\n if(a[i]!=0){\n k--;\n if(k==0){\n printf("%d %d",i,a[i]);\n return 0;\n }\n }\n }" (for) "for" (() "(" (assignment_expression) "i=99999" (identifier) "i" (=) "=" (number_literal) "99999" (;) ";" (binary_expression) "i>0" (identifier) "i" (>) ">" (number_literal) "0" (;) ";" (update_expression) "i--" (identifier) "i" (--) "--" ()) ")" (compound_statement) "{\n if(a[i]!=0){\n k--;\n if(k==0){\n printf("%d %d",i,a[i]);\n return 0;\n }\n }\n }" ({) "{" (if_statement) "if(a[i]!=0){\n k--;\n if(k==0){\n printf("%d %d",i,a[i]);\n return 0;\n }\n }" (if) "if" (parenthesized_expression) "(a[i]!=0)" (() "(" (binary_expression) "a[i]!=0" (subscript_expression) "a[i]" (identifier) "a" ([) "[" (identifier) "i" (]) "]" (!=) "!=" (number_literal) "0" ()) ")" (compound_statement) "{\n k--;\n if(k==0){\n printf("%d %d",i,a[i]);\n return 0;\n }\n }" ({) "{" (expression_statement) "k--;" (update_expression) "k--" (identifier) "k" (--) "--" (;) ";" (if_statement) "if(k==0){\n printf("%d %d",i,a[i]);\n return 0;\n }" (if) "if" (parenthesized_expression) "(k==0)" (() "(" (binary_expression) "k==0" (identifier) "k" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n printf("%d %d",i,a[i]);\n return 0;\n }" ({) "{" (expression_statement) "printf("%d %d",i,a[i]);" (call_expression) "printf("%d %d",i,a[i])" (identifier) "printf" (argument_list) "("%d %d",i,a[i])" (() "(" (string_literal) ""%d %d"" (") """ (string_content) "%d %d" (") """ (,) "," (identifier) "i" (,) "," (subscript_expression) "a[i]" (identifier) "a" ([) "[" (identifier) "i" (]) "]" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (}) "}" (}) "}" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
194
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 15.52, "nodes": 102, "errors": 0, "source_hash": "ea6d78cb3281ec81f41d5baf52d366462fe0f5e031d18e597f9f4c34425f5199", "categorized_nodes": 80}, "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 <math.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": "<math.h>", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 17}}, {"id": 9, "type": "function_definition", "text": "int main (){\n \tint n;\n \tint a[100001]={0};\n \tint k;\n \tint i ,j;\n \tscanf(\"%d\",&n);\n \twhile(n--){\n \t\tscanf(\"%d\",&i);\n \t\ta[i]++;\n\t }\n\t scanf(\"%d\",&k);\n\t for(i=99999;i>0;i--){\n\t \tif(a[i]!=0){\n\t \t\tk--;\n\t \t\tif(k==0){\n\t \t\t\tprintf(\"%d %d\",i,a[i]);\n\t \t\t\treturn 0;\n\t\t\t }\n\t\t }\n\t }\n\t return 0;\n }", "parent": null, "children": [10, 11], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 28, "column": 2}}, {"id": 10, "type": "primitive_type", "text": "int", "parent": 9, "children": [], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 4}}, {"id": 11, "type": "function_declarator", "text": "main ()", "parent": 9, "children": [12, 13], "start_point": {"row": 7, "column": 5}, "end_point": {"row": 7, "column": 12}}, {"id": 12, "type": "identifier", "text": "main", "parent": 11, "children": [], "start_point": {"row": 7, "column": 5}, "end_point": {"row": 7, "column": 9}}, {"id": 13, "type": "parameter_list", "text": "()", "parent": 11, "children": [], "start_point": {"row": 7, "column": 10}, "end_point": {"row": 7, "column": 12}}, {"id": 14, "type": "declaration", "text": "int n;", "parent": 9, "children": [15, 16], "start_point": {"row": 8, "column": 2}, "end_point": {"row": 8, "column": 8}}, {"id": 15, "type": "primitive_type", "text": "int", "parent": 14, "children": [], "start_point": {"row": 8, "column": 2}, "end_point": {"row": 8, "column": 5}}, {"id": 16, "type": "identifier", "text": "n", "parent": 14, "children": [], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 8, "column": 7}}, {"id": 17, "type": "declaration", "text": "int a[100001]={0};", "parent": 9, "children": [18, 19], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 9, "column": 20}}, {"id": 18, "type": "primitive_type", "text": "int", "parent": 17, "children": [], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 9, "column": 5}}, {"id": 19, "type": "init_declarator", "text": "a[100001]={0}", "parent": 17, "children": [20, 23, 24], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 19}}, {"id": 20, "type": "array_declarator", "text": "a[100001]", "parent": 19, "children": [21, 22], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 15}}, {"id": 21, "type": "identifier", "text": "a", "parent": 20, "children": [], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 7}}, {"id": 22, "type": "number_literal", "text": "100001", "parent": 20, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 14}}, {"id": 23, "type": "=", "text": "=", "parent": 19, "children": [], "start_point": {"row": 9, "column": 15}, "end_point": {"row": 9, "column": 16}}, {"id": 24, "type": "initializer_list", "text": "{0}", "parent": 19, "children": [25], "start_point": {"row": 9, "column": 16}, "end_point": {"row": 9, "column": 19}}, {"id": 25, "type": "number_literal", "text": "0", "parent": 24, "children": [], "start_point": {"row": 9, "column": 17}, "end_point": {"row": 9, "column": 18}}, {"id": 26, "type": "declaration", "text": "int k;", "parent": 9, "children": [27, 28], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 10, "column": 8}}, {"id": 27, "type": "primitive_type", "text": "int", "parent": 26, "children": [], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 10, "column": 5}}, {"id": 28, "type": "identifier", "text": "k", "parent": 26, "children": [], "start_point": {"row": 10, "column": 6}, "end_point": {"row": 10, "column": 7}}, {"id": 29, "type": "declaration", "text": "int i ,j;", "parent": 9, "children": [30, 31, 32], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 11, "column": 11}}, {"id": 30, "type": "primitive_type", "text": "int", "parent": 29, "children": [], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 11, "column": 5}}, {"id": 31, "type": "identifier", "text": "i", "parent": 29, "children": [], "start_point": {"row": 11, "column": 6}, "end_point": {"row": 11, "column": 7}}, {"id": 32, "type": "identifier", "text": "j", "parent": 29, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 10}}, {"id": 33, "type": "call_expression", "text": "scanf(\"%d\",&n)", "parent": 9, "children": [34, 35], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 16}}, {"id": 34, "type": "identifier", "text": "scanf", "parent": 33, "children": [], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 7}}, {"id": 35, "type": "argument_list", "text": "(\"%d\",&n)", "parent": 33, "children": [36, 37], "start_point": {"row": 12, "column": 7}, "end_point": {"row": 12, "column": 16}}, {"id": 36, "type": "string_literal", "text": "\"%d\"", "parent": 35, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 12}}, {"id": 37, "type": "pointer_expression", "text": "&n", "parent": 35, "children": [38], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 15}}, {"id": 38, "type": "identifier", "text": "n", "parent": 37, "children": [], "start_point": {"row": 12, "column": 14}, "end_point": {"row": 12, "column": 15}}, {"id": 39, "type": "while_statement", "text": "while(n--){\n \t\tscanf(\"%d\",&i);\n \t\ta[i]++;\n\t }", "parent": 9, "children": [40], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 16, "column": 3}}, {"id": 40, "type": "parenthesized_expression", "text": "(n--)", "parent": 39, "children": [41], "start_point": {"row": 13, "column": 7}, "end_point": {"row": 13, "column": 12}}, {"id": 41, "type": "update_expression", "text": "n--", "parent": 40, "children": [42, 43], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 11}}, {"id": 42, "type": "identifier", "text": "n", "parent": 41, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 9}}, {"id": 43, "type": "--", "text": "--", "parent": 41, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 11}}, {"id": 44, "type": "call_expression", "text": "scanf(\"%d\",&i)", "parent": 39, "children": [45, 46], "start_point": {"row": 14, "column": 3}, "end_point": {"row": 14, "column": 17}}, {"id": 45, "type": "identifier", "text": "scanf", "parent": 44, "children": [], "start_point": {"row": 14, "column": 3}, "end_point": {"row": 14, "column": 8}}, {"id": 46, "type": "argument_list", "text": "(\"%d\",&i)", "parent": 44, "children": [47, 48], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 17}}, {"id": 47, "type": "string_literal", "text": "\"%d\"", "parent": 46, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 13}}, {"id": 48, "type": "pointer_expression", "text": "&i", "parent": 46, "children": [49], "start_point": {"row": 14, "column": 14}, "end_point": {"row": 14, "column": 16}}, {"id": 49, "type": "identifier", "text": "i", "parent": 48, "children": [], "start_point": {"row": 14, "column": 15}, "end_point": {"row": 14, "column": 16}}, {"id": 50, "type": "update_expression", "text": "a[i]++", "parent": 39, "children": [51, 54], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 9}}, {"id": 51, "type": "subscript_expression", "text": "a[i]", "parent": 50, "children": [52, 53], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 7}}, {"id": 52, "type": "identifier", "text": "a", "parent": 51, "children": [], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 4}}, {"id": 53, "type": "identifier", "text": "i", "parent": 51, "children": [], "start_point": {"row": 15, "column": 5}, "end_point": {"row": 15, "column": 6}}, {"id": 54, "type": "++", "text": "++", "parent": 50, "children": [], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 9}}, {"id": 55, "type": "call_expression", "text": "scanf(\"%d\",&k)", "parent": 9, "children": [56, 57], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 16}}, {"id": 56, "type": "identifier", "text": "scanf", "parent": 55, "children": [], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 7}}, {"id": 57, "type": "argument_list", "text": "(\"%d\",&k)", "parent": 55, "children": [58, 59], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 16}}, {"id": 58, "type": "string_literal", "text": "\"%d\"", "parent": 57, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 12}}, {"id": 59, "type": "pointer_expression", "text": "&k", "parent": 57, "children": [60], "start_point": {"row": 17, "column": 13}, "end_point": {"row": 17, "column": 15}}, {"id": 60, "type": "identifier", "text": "k", "parent": 59, "children": [], "start_point": {"row": 17, "column": 14}, "end_point": {"row": 17, "column": 15}}, {"id": 61, "type": "for_statement", "text": "for(i=99999;i>0;i--){\n\t \tif(a[i]!=0){\n\t \t\tk--;\n\t \t\tif(k==0){\n\t \t\t\tprintf(\"%d %d\",i,a[i]);\n\t \t\t\treturn 0;\n\t\t\t }\n\t\t }\n\t }", "parent": 9, "children": [62, 66, 70], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 26, "column": 3}}, {"id": 62, "type": "assignment_expression", "text": "i=99999", "parent": 61, "children": [63, 64, 65], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 13}}, {"id": 63, "type": "identifier", "text": "i", "parent": 62, "children": [], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 7}}, {"id": 64, "type": "=", "text": "=", "parent": 62, "children": [], "start_point": {"row": 18, "column": 7}, "end_point": {"row": 18, "column": 8}}, {"id": 65, "type": "number_literal", "text": "99999", "parent": 62, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 13}}, {"id": 66, "type": "binary_expression", "text": "i>0", "parent": 61, "children": [67, 68, 69], "start_point": {"row": 18, "column": 14}, "end_point": {"row": 18, "column": 17}}, {"id": 67, "type": "identifier", "text": "i", "parent": 66, "children": [], "start_point": {"row": 18, "column": 14}, "end_point": {"row": 18, "column": 15}}, {"id": 68, "type": ">", "text": ">", "parent": 66, "children": [], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 16}}, {"id": 69, "type": "number_literal", "text": "0", "parent": 66, "children": [], "start_point": {"row": 18, "column": 16}, "end_point": {"row": 18, "column": 17}}, {"id": 70, "type": "update_expression", "text": "i--", "parent": 61, "children": [71, 72], "start_point": {"row": 18, "column": 18}, "end_point": {"row": 18, "column": 21}}, {"id": 71, "type": "identifier", "text": "i", "parent": 70, "children": [], "start_point": {"row": 18, "column": 18}, "end_point": {"row": 18, "column": 19}}, {"id": 72, "type": "--", "text": "--", "parent": 70, "children": [], "start_point": {"row": 18, "column": 19}, "end_point": {"row": 18, "column": 21}}, {"id": 73, "type": "if_statement", "text": "if(a[i]!=0){\n\t \t\tk--;\n\t \t\tif(k==0){\n\t \t\t\tprintf(\"%d %d\",i,a[i]);\n\t \t\t\treturn 0;\n\t\t\t }\n\t\t }", "parent": 61, "children": [74], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 25, "column": 4}}, {"id": 74, "type": "parenthesized_expression", "text": "(a[i]!=0)", "parent": 73, "children": [75], "start_point": {"row": 19, "column": 5}, "end_point": {"row": 19, "column": 14}}, {"id": 75, "type": "binary_expression", "text": "a[i]!=0", "parent": 74, "children": [76, 79, 80], "start_point": {"row": 19, "column": 6}, "end_point": {"row": 19, "column": 13}}, {"id": 76, "type": "subscript_expression", "text": "a[i]", "parent": 75, "children": [77, 78], "start_point": {"row": 19, "column": 6}, "end_point": {"row": 19, "column": 10}}, {"id": 77, "type": "identifier", "text": "a", "parent": 76, "children": [], "start_point": {"row": 19, "column": 6}, "end_point": {"row": 19, "column": 7}}, {"id": 78, "type": "identifier", "text": "i", "parent": 76, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 9}}, {"id": 79, "type": "!=", "text": "!=", "parent": 75, "children": [], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 12}}, {"id": 80, "type": "number_literal", "text": "0", "parent": 75, "children": [], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 13}}, {"id": 81, "type": "update_expression", "text": "k--", "parent": 73, "children": [82, 83], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 7}}, {"id": 82, "type": "identifier", "text": "k", "parent": 81, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 5}}, {"id": 83, "type": "--", "text": "--", "parent": 81, "children": [], "start_point": {"row": 20, "column": 5}, "end_point": {"row": 20, "column": 7}}, {"id": 84, "type": "if_statement", "text": "if(k==0){\n\t \t\t\tprintf(\"%d %d\",i,a[i]);\n\t \t\t\treturn 0;\n\t\t\t }", "parent": 73, "children": [85], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 24, "column": 5}}, {"id": 85, "type": "parenthesized_expression", "text": "(k==0)", "parent": 84, "children": [86], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 12}}, {"id": 86, "type": "binary_expression", "text": "k==0", "parent": 85, "children": [87, 88, 89], "start_point": {"row": 21, "column": 7}, "end_point": {"row": 21, "column": 11}}, {"id": 87, "type": "identifier", "text": "k", "parent": 86, "children": [], "start_point": {"row": 21, "column": 7}, "end_point": {"row": 21, "column": 8}}, {"id": 88, "type": "==", "text": "==", "parent": 86, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 10}}, {"id": 89, "type": "number_literal", "text": "0", "parent": 86, "children": [], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 11}}, {"id": 90, "type": "call_expression", "text": "printf(\"%d %d\",i,a[i])", "parent": 84, "children": [91, 92], "start_point": {"row": 22, "column": 5}, "end_point": {"row": 22, "column": 27}}, {"id": 91, "type": "identifier", "text": "printf", "parent": 90, "children": [], "start_point": {"row": 22, "column": 5}, "end_point": {"row": 22, "column": 11}}, {"id": 92, "type": "argument_list", "text": "(\"%d %d\",i,a[i])", "parent": 90, "children": [93, 94, 95], "start_point": {"row": 22, "column": 11}, "end_point": {"row": 22, "column": 27}}, {"id": 93, "type": "string_literal", "text": "\"%d %d\"", "parent": 92, "children": [], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 19}}, {"id": 94, "type": "identifier", "text": "i", "parent": 92, "children": [], "start_point": {"row": 22, "column": 20}, "end_point": {"row": 22, "column": 21}}, {"id": 95, "type": "subscript_expression", "text": "a[i]", "parent": 92, "children": [96, 97], "start_point": {"row": 22, "column": 22}, "end_point": {"row": 22, "column": 26}}, {"id": 96, "type": "identifier", "text": "a", "parent": 95, "children": [], "start_point": {"row": 22, "column": 22}, "end_point": {"row": 22, "column": 23}}, {"id": 97, "type": "identifier", "text": "i", "parent": 95, "children": [], "start_point": {"row": 22, "column": 24}, "end_point": {"row": 22, "column": 25}}, {"id": 98, "type": "return_statement", "text": "return 0;", "parent": 84, "children": [99], "start_point": {"row": 23, "column": 5}, "end_point": {"row": 23, "column": 14}}, {"id": 99, "type": "number_literal", "text": "0", "parent": 98, "children": [], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 13}}, {"id": 100, "type": "return_statement", "text": "return 0;", "parent": 9, "children": [101], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 11}}, {"id": 101, "type": "number_literal", "text": "0", "parent": 100, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 10}}]}, "node_categories": {"declarations": {"functions": [9, 11], "variables": [14, 17, 26, 29], "classes": [], "imports": [0, 1, 3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [33, 37, 40, 41, 44, 48, 50, 51, 55, 59, 66, 70, 74, 75, 76, 81, 85, 86, 90, 95], "assignments": [62], "loops": [39, 61], "conditionals": [12, 16, 21, 28, 31, 32, 34, 38, 42, 45, 49, 52, 53, 56, 60, 63, 67, 71, 73, 77, 78, 82, 84, 87, 91, 94, 96, 97], "returns": [98, 100], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 22, 25, 36, 47, 58, 65, 69, 80, 89, 93, 99, 101], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "main", "text_snippet": "int main (){\n \tint n;\n \tint a[100001]={0};\n \tint k;\n \tint i ,j;\n \tscanf(\"%d\",&n);\n \twhile(n--){\n \t\ts"}, {"node_id": 11, "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 <math.h>\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n\n/* run this program using the console pauser or add your own getch, system(\"pause\") or input loop */\n\n \n int main (){\n \tint n;\n \tint a[100001]={0};\n \tint k;\n \tint i ,j;\n \tscanf(\"%d\",&n);\n \twhile(n--){\n \t\tscanf(\"%d\",&i);\n \t\ta[i]++;\n\t }\n\t scanf(\"%d\",&k);\n\t for(i=99999;i>0;i--){\n\t \tif(a[i]!=0){\n\t \t\tk--;\n\t \t\tif(k==0){\n\t \t\t\tprintf(\"%d %d\",i,a[i]);\n\t \t\t\treturn 0;\n\t\t\t }\n\t\t }\n\t }\n\t return 0;\n }"}
80,238
c
#pragma once #include <map> typedef struct _TRANS_STATUS { WCHAR strSPath[255]; WCHAR strCPath[255]; UINT64 nTotal; UINT64 nCurPos; BOOL isDown; }TRANS_STATUS,*PTRANS_STATUS; typedef std::map<int,TRANS_STATUS> TransStatusVector;
20.27
11
(translation_unit) "#pragma once\n#include <map>\n\ntypedef struct _TRANS_STATUS\n{\n WCHAR strSPath[255];\n WCHAR strCPath[255];\n UINT64 nTotal;\n UINT64 nCurPos;\n BOOL isDown;\n}TRANS_STATUS,*PTRANS_STATUS;\n\ntypedef std::map<int,TRANS_STATUS> TransStatusVector;" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <map>\n" (#include) "#include" (system_lib_string) "<map>" (type_definition) "typedef struct _TRANS_STATUS\n{\n WCHAR strSPath[255];\n WCHAR strCPath[255];\n UINT64 nTotal;\n UINT64 nCurPos;\n BOOL isDown;\n}TRANS_STATUS,*PTRANS_STATUS;" (typedef) "typedef" (struct_specifier) "struct _TRANS_STATUS\n{\n WCHAR strSPath[255];\n WCHAR strCPath[255];\n UINT64 nTotal;\n UINT64 nCurPos;\n BOOL isDown;\n}" (struct) "struct" (type_identifier) "_TRANS_STATUS" (field_declaration_list) "{\n WCHAR strSPath[255];\n WCHAR strCPath[255];\n UINT64 nTotal;\n UINT64 nCurPos;\n BOOL isDown;\n}" ({) "{" (field_declaration) "WCHAR strSPath[255];" (type_identifier) "WCHAR" (array_declarator) "strSPath[255]" (field_identifier) "strSPath" ([) "[" (number_literal) "255" (]) "]" (;) ";" (field_declaration) "WCHAR strCPath[255];" (type_identifier) "WCHAR" (array_declarator) "strCPath[255]" (field_identifier) "strCPath" ([) "[" (number_literal) "255" (]) "]" (;) ";" (field_declaration) "UINT64 nTotal;" (type_identifier) "UINT64" (field_identifier) "nTotal" (;) ";" (field_declaration) "UINT64 nCurPos;" (type_identifier) "UINT64" (field_identifier) "nCurPos" (;) ";" (field_declaration) "BOOL isDown;" (type_identifier) "BOOL" (field_identifier) "isDown" (;) ";" (}) "}" (type_identifier) "TRANS_STATUS" (,) "," (pointer_declarator) "*PTRANS_STATUS" (*) "*" (type_identifier) "PTRANS_STATUS" (;) ";" (type_definition) "typedef std::map<int,TRANS_STATUS> TransStatusVector;" (typedef) "typedef" (type_identifier) "std" (ERROR) "::map<" (:) ":" (:) ":" (type_identifier) "map" (<) "<" (primitive_type) "int" (,) "," (ERROR) "TRANS_STATUS>" (type_identifier) "TRANS_STATUS" (>) ">" (type_identifier) "TransStatusVector" (;) ";"
64
2
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 20.27, "nodes": 45, "errors": 0, "source_hash": "5b2f3c0798487e257014d846a65c8741a1a59cda56cfb9029511f889f28469b0", "categorized_nodes": 32}, "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": 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": "<map>", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 14}}, {"id": 6, "type": "type_definition", "text": "typedef struct _TRANS_STATUS\n{\n\tWCHAR strSPath[255];\n\tWCHAR strCPath[255];\n\tUINT64\tnTotal;\n\tUINT64\tnCurPos;\n\tBOOL\tisDown;\n}TRANS_STATUS,*PTRANS_STATUS;", "parent": null, "children": [7, 8, 30, 31], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 10, "column": 29}}, {"id": 7, "type": "typedef", "text": "typedef", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 7}}, {"id": 8, "type": "struct_specifier", "text": "struct _TRANS_STATUS\n{\n\tWCHAR strSPath[255];\n\tWCHAR strCPath[255];\n\tUINT64\tnTotal;\n\tUINT64\tnCurPos;\n\tBOOL\tisDown;\n}", "parent": 6, "children": [9, 10], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 10, "column": 1}}, {"id": 9, "type": "struct", "text": "struct", "parent": 8, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 14}}, {"id": 10, "type": "type_identifier", "text": "_TRANS_STATUS", "parent": 8, "children": [], "start_point": {"row": 3, "column": 15}, "end_point": {"row": 3, "column": 28}}, {"id": 11, "type": "field_declaration", "text": "WCHAR strSPath[255];", "parent": 8, "children": [12, 13], "start_point": {"row": 5, "column": 1}, "end_point": {"row": 5, "column": 21}}, {"id": 12, "type": "type_identifier", "text": "WCHAR", "parent": 11, "children": [], "start_point": {"row": 5, "column": 1}, "end_point": {"row": 5, "column": 6}}, {"id": 13, "type": "array_declarator", "text": "strSPath[255]", "parent": 11, "children": [14, 15], "start_point": {"row": 5, "column": 7}, "end_point": {"row": 5, "column": 20}}, {"id": 14, "type": "field_identifier", "text": "strSPath", "parent": 13, "children": [], "start_point": {"row": 5, "column": 7}, "end_point": {"row": 5, "column": 15}}, {"id": 15, "type": "number_literal", "text": "255", "parent": 13, "children": [], "start_point": {"row": 5, "column": 16}, "end_point": {"row": 5, "column": 19}}, {"id": 16, "type": "field_declaration", "text": "WCHAR strCPath[255];", "parent": 8, "children": [17, 18], "start_point": {"row": 6, "column": 1}, "end_point": {"row": 6, "column": 21}}, {"id": 17, "type": "type_identifier", "text": "WCHAR", "parent": 16, "children": [], "start_point": {"row": 6, "column": 1}, "end_point": {"row": 6, "column": 6}}, {"id": 18, "type": "array_declarator", "text": "strCPath[255]", "parent": 16, "children": [19, 20], "start_point": {"row": 6, "column": 7}, "end_point": {"row": 6, "column": 20}}, {"id": 19, "type": "field_identifier", "text": "strCPath", "parent": 18, "children": [], "start_point": {"row": 6, "column": 7}, "end_point": {"row": 6, "column": 15}}, {"id": 20, "type": "number_literal", "text": "255", "parent": 18, "children": [], "start_point": {"row": 6, "column": 16}, "end_point": {"row": 6, "column": 19}}, {"id": 21, "type": "field_declaration", "text": "UINT64\tnTotal;", "parent": 8, "children": [22, 23], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 15}}, {"id": 22, "type": "type_identifier", "text": "UINT64", "parent": 21, "children": [], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 7}}, {"id": 23, "type": "field_identifier", "text": "nTotal", "parent": 21, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 14}}, {"id": 24, "type": "field_declaration", "text": "UINT64\tnCurPos;", "parent": 8, "children": [25, 26], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 16}}, {"id": 25, "type": "type_identifier", "text": "UINT64", "parent": 24, "children": [], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 7}}, {"id": 26, "type": "field_identifier", "text": "nCurPos", "parent": 24, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 15}}, {"id": 27, "type": "field_declaration", "text": "BOOL\tisDown;", "parent": 8, "children": [28, 29], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 13}}, {"id": 28, "type": "type_identifier", "text": "BOOL", "parent": 27, "children": [], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 5}}, {"id": 29, "type": "field_identifier", "text": "isDown", "parent": 27, "children": [], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 12}}, {"id": 30, "type": "type_identifier", "text": "TRANS_STATUS", "parent": 6, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 13}}, {"id": 31, "type": "pointer_declarator", "text": "*PTRANS_STATUS", "parent": 6, "children": [32, 33], "start_point": {"row": 10, "column": 14}, "end_point": {"row": 10, "column": 28}}, {"id": 32, "type": "*", "text": "*", "parent": 31, "children": [], "start_point": {"row": 10, "column": 14}, "end_point": {"row": 10, "column": 15}}, {"id": 33, "type": "type_identifier", "text": "PTRANS_STATUS", "parent": 31, "children": [], "start_point": {"row": 10, "column": 15}, "end_point": {"row": 10, "column": 28}}, {"id": 34, "type": "type_definition", "text": "typedef std::map<int,TRANS_STATUS> TransStatusVector;", "parent": null, "children": [35, 36, 37, 40, 41, 44], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 53}}, {"id": 35, "type": "typedef", "text": "typedef", "parent": 34, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 7}}, {"id": 36, "type": "type_identifier", "text": "std", "parent": 34, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 11}}, {"id": 37, "type": "ERROR", "text": "::map<", "parent": 34, "children": [38, 39], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 17}}, {"id": 38, "type": "type_identifier", "text": "map", "parent": 37, "children": [], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 16}}, {"id": 39, "type": "<", "text": "<", "parent": 37, "children": [], "start_point": {"row": 12, "column": 16}, "end_point": {"row": 12, "column": 17}}, {"id": 40, "type": "primitive_type", "text": "int", "parent": 34, "children": [], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 12, "column": 20}}, {"id": 41, "type": "ERROR", "text": "TRANS_STATUS>", "parent": 34, "children": [42, 43], "start_point": {"row": 12, "column": 21}, "end_point": {"row": 12, "column": 34}}, {"id": 42, "type": "type_identifier", "text": "TRANS_STATUS", "parent": 41, "children": [], "start_point": {"row": 12, "column": 21}, "end_point": {"row": 12, "column": 33}}, {"id": 43, "type": ">", "text": ">", "parent": 41, "children": [], "start_point": {"row": 12, "column": 33}, "end_point": {"row": 12, "column": 34}}, {"id": 44, "type": "type_identifier", "text": "TransStatusVector", "parent": 34, "children": [], "start_point": {"row": 12, "column": 35}, "end_point": {"row": 12, "column": 52}}]}, "node_categories": {"declarations": {"functions": [], "variables": [6, 11, 16, 21, 24, 27, 34], "classes": [8, 9], "imports": [3, 4], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [10, 12, 14, 17, 19, 22, 23, 25, 26, 28, 29, 30, 33, 36, 38, 42, 44], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 15, 20], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [{"node_id": 8, "universal_type": "class", "name": "_TRANS_STATUS", "text_snippet": "struct _TRANS_STATUS\n{\n\tWCHAR strSPath[255];\n\tWCHAR strCPath[255];\n\tUINT64\tnTotal;\n\tUINT64\tnCurPos;\n"}, {"node_id": 9, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 3, "text": "#include <map>\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "#pragma once\n#include <map>\n\ntypedef struct _TRANS_STATUS\n{\n\tWCHAR strSPath[255];\n\tWCHAR strCPath[255];\n\tUINT64\tnTotal;\n\tUINT64\tnCurPos;\n\tBOOL\tisDown;\n}TRANS_STATUS,*PTRANS_STATUS;\n\ntypedef std::map<int,TRANS_STATUS> TransStatusVector;"}
80,239
c
#ifndef __WATCHDOG_H__ #define __WATCHDOG_H__ #include "stdtypes.h" #define WATCHDOG_TIMER_DEAD 5 typedef struct { /** * the timer the watchdog increments * everytime it is called * see watchdog_ping for more info */ _uint32_t _timer; /** * determines whether the watchdog should * force a reset even if the timer has * not run out */ _bool_t _reset; } _watchdog_info_t; extern volatile _watchdog_info_t _watchdog_info; /** * forces a reset even if the timer has not run out */ inline void watchdog_force_reset(void) { _watchdog_info._reset = true; } /** * pings the watchdog so that it knows * the program is still running * * this is called in the function that reads * the current gas sensor value. * * if the watchdog wakes up > WATCHDOG_TIMER_DEAD times * the program is assumed dead and is restarted * * we don't call this in the main loop as a user would usually * see that the buttons do not work and would therefore be able * to press the reset button him/herself */ inline void watchdog_ping(void) { _watchdog_info._timer = 0; } /** * initializes the watchdog */ void watchdog_init(void); #endif
22.88
48
(translation_unit) "#ifndef __WATCHDOG_H__\n#define __WATCHDOG_H__\n\n#include "stdtypes.h"\n\n#define WATCHDOG_TIMER_DEAD 5\n\ntypedef struct {\n /**\n * the timer the watchdog increments\n * everytime it is called\n * see watchdog_ping for more info\n */\n _uint32_t _timer;\n /**\n * determines whether the watchdog should\n * force a reset even if the timer has\n * not run out\n */\n _bool_t _reset;\n} _watchdog_info_t;\n\nextern volatile _watchdog_info_t _watchdog_info;\n\n/**\n * forces a reset even if the timer has not run out\n */\ninline void watchdog_force_reset(void) {\n _watchdog_info._reset = true;\n}\n\n/**\n * pings the watchdog so that it knows\n * the program is still running\n *\n * this is called in the function that reads\n * the current gas sensor value.\n *\n * if the watchdog wakes up > WATCHDOG_TIMER_DEAD times\n * the program is assumed dead and is restarted\n *\n * we don't call this in the main loop as a user would usually\n * see that the buttons do not work and would therefore be able\n * to press the reset button him/herself\n */\ninline void watchdog_ping(void) {\n _watchdog_info._timer = 0;\n}\n\n/**\n * initializes the watchdog\n */\nvoid watchdog_init(void);\n\n\n#endif\n" (preproc_ifdef) "#ifndef __WATCHDOG_H__\n#define __WATCHDOG_H__\n\n#include "stdtypes.h"\n\n#define WATCHDOG_TIMER_DEAD 5\n\ntypedef struct {\n /**\n * the timer the watchdog increments\n * everytime it is called\n * see watchdog_ping for more info\n */\n _uint32_t _timer;\n /**\n * determines whether the watchdog should\n * force a reset even if the timer has\n * not run out\n */\n _bool_t _reset;\n} _watchdog_info_t;\n\nextern volatile _watchdog_info_t _watchdog_info;\n\n/**\n * forces a reset even if the timer has not run out\n */\ninline void watchdog_force_reset(void) {\n _watchdog_info._reset = true;\n}\n\n/**\n * pings the watchdog so that it knows\n * the program is still running\n *\n * this is called in the function that reads\n * the current gas sensor value.\n *\n * if the watchdog wakes up > WATCHDOG_TIMER_DEAD times\n * the program is assumed dead and is restarted\n *\n * we don't call this in the main loop as a user would usually\n * see that the buttons do not work and would therefore be able\n * to press the reset button him/herself\n */\ninline void watchdog_ping(void) {\n _watchdog_info._timer = 0;\n}\n\n/**\n * initializes the watchdog\n */\nvoid watchdog_init(void);\n\n\n#endif" (#ifndef) "#ifndef" (identifier) "__WATCHDOG_H__" (preproc_def) "#define __WATCHDOG_H__\n" (#define) "#define" (identifier) "__WATCHDOG_H__" (preproc_include) "#include "stdtypes.h"\n" (#include) "#include" (string_literal) ""stdtypes.h"" (") """ (string_content) "stdtypes.h" (") """ (preproc_def) "#define WATCHDOG_TIMER_DEAD 5\n" (#define) "#define" (identifier) "WATCHDOG_TIMER_DEAD" (preproc_arg) "5" (type_definition) "typedef struct {\n /**\n * the timer the watchdog increments\n * everytime it is called\n * see watchdog_ping for more info\n */\n _uint32_t _timer;\n /**\n * determines whether the watchdog should\n * force a reset even if the timer has\n * not run out\n */\n _bool_t _reset;\n} _watchdog_info_t;" (typedef) "typedef" (struct_specifier) "struct {\n /**\n * the timer the watchdog increments\n * everytime it is called\n * see watchdog_ping for more info\n */\n _uint32_t _timer;\n /**\n * determines whether the watchdog should\n * force a reset even if the timer has\n * not run out\n */\n _bool_t _reset;\n}" (struct) "struct" (field_declaration_list) "{\n /**\n * the timer the watchdog increments\n * everytime it is called\n * see watchdog_ping for more info\n */\n _uint32_t _timer;\n /**\n * determines whether the watchdog should\n * force a reset even if the timer has\n * not run out\n */\n _bool_t _reset;\n}" ({) "{" (comment) "/**\n * the timer the watchdog increments\n * everytime it is called\n * see watchdog_ping for more info\n */" (field_declaration) "_uint32_t _timer;" (type_identifier) "_uint32_t" (field_identifier) "_timer" (;) ";" (comment) "/**\n * determines whether the watchdog should\n * force a reset even if the timer has\n * not run out\n */" (field_declaration) "_bool_t _reset;" (type_identifier) "_bool_t" (field_identifier) "_reset" (;) ";" (}) "}" (type_identifier) "_watchdog_info_t" (;) ";" (declaration) "extern volatile _watchdog_info_t _watchdog_info;" (storage_class_specifier) "extern" (extern) "extern" (type_qualifier) "volatile" (volatile) "volatile" (type_identifier) "_watchdog_info_t" (identifier) "_watchdog_info" (;) ";" (comment) "/**\n * forces a reset even if the timer has not run out\n */" (function_definition) "inline void watchdog_force_reset(void) {\n _watchdog_info._reset = true;\n}" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "void" (function_declarator) "watchdog_force_reset(void)" (identifier) "watchdog_force_reset" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n _watchdog_info._reset = true;\n}" ({) "{" (expression_statement) "_watchdog_info._reset = true;" (assignment_expression) "_watchdog_info._reset = true" (field_expression) "_watchdog_info._reset" (identifier) "_watchdog_info" (.) "." (field_identifier) "_reset" (=) "=" (true) "true" (;) ";" (}) "}" (comment) "/**\n * pings the watchdog so that it knows\n * the program is still running\n *\n * this is called in the function that reads\n * the current gas sensor value.\n *\n * if the watchdog wakes up > WATCHDOG_TIMER_DEAD times\n * the program is assumed dead and is restarted\n *\n * we don't call this in the main loop as a user would usually\n * see that the buttons do not work and would therefore be able\n * to press the reset button him/herself\n */" (function_definition) "inline void watchdog_ping(void) {\n _watchdog_info._timer = 0;\n}" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "void" (function_declarator) "watchdog_ping(void)" (identifier) "watchdog_ping" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n _watchdog_info._timer = 0;\n}" ({) "{" (expression_statement) "_watchdog_info._timer = 0;" (assignment_expression) "_watchdog_info._timer = 0" (field_expression) "_watchdog_info._timer" (identifier) "_watchdog_info" (.) "." (field_identifier) "_timer" (=) "=" (number_literal) "0" (;) ";" (}) "}" (comment) "/**\n * initializes the watchdog\n */" (declaration) "void watchdog_init(void);" (primitive_type) "void" (function_declarator) "watchdog_init(void)" (identifier) "watchdog_init" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (#endif) "#endif"
104
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 22.88, "nodes": 69, "errors": 0, "source_hash": "5df8ce7ab1b64aae63cc85d9c7c53cbc8a3acdb5bf1028d80eabce36c23f8a44", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __WATCHDOG_H__\n#define __WATCHDOG_H__\n\n#include \"stdtypes.h\"\n\n#define WATCHDOG_TIMER_DEAD 5\n\ntypedef struct {\n\t/**\n\t * the timer the watchdog increments\n\t * everytime it is called\n\t * see watchdog_ping for more info\n\t */\n\t_uint32_t _timer;\n\t/**\n\t * determines whether the watchdog should\n\t * force a reset even if the timer has\n\t * not run out\n\t */\n\t_bool_t _reset;\n} _watchdog_info_t;\n\nextern volatile _watchdog_info_t _watchdog_info;\n\n/**\n * forces a reset even if the timer has not run out\n */\ninline void watchdog_force_reset(void) {\n\t_watchdog_info._reset = true;\n}\n\n/**\n * pings the watchdog so that it knows\n * the program is still running\n *\n * this is called in the function that reads\n * the current gas sensor value.\n *\n * if the watchdog wakes up > WATCHDOG_TIMER_DEAD times\n * the program is assumed dead and is restarted\n *\n * we don't call this in the main loop as a user would usually\n * see that the buttons do not work and would therefore be able\n * to press the reset button him/herself\n */\ninline void watchdog_ping(void) {\n\t_watchdog_info._timer = 0;\n}\n\n/**\n * initializes the watchdog\n */\nvoid watchdog_init(void);\n\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 13, 24, 31, 46, 61, 68], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 55, "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": "__WATCHDOG_H__", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 22}}, {"id": 3, "type": "preproc_def", "text": "#define __WATCHDOG_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": "__WATCHDOG_H__", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 22}}, {"id": 6, "type": "preproc_include", "text": "#include \"stdtypes.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": "\"stdtypes.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 21}}, {"id": 9, "type": "preproc_def", "text": "#define WATCHDOG_TIMER_DEAD 5\n", "parent": 0, "children": [10, 11, 12], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 10, "type": "#define", "text": "#define", "parent": 9, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 11, "type": "identifier", "text": "WATCHDOG_TIMER_DEAD", "parent": 9, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 27}}, {"id": 12, "type": "preproc_arg", "text": "5", "parent": 9, "children": [], "start_point": {"row": 5, "column": 28}, "end_point": {"row": 5, "column": 29}}, {"id": 13, "type": "type_definition", "text": "typedef struct {\n\t/**\n\t * the timer the watchdog increments\n\t * everytime it is called\n\t * see watchdog_ping for more info\n\t */\n\t_uint32_t _timer;\n\t/**\n\t * determines whether the watchdog should\n\t * force a reset even if the timer has\n\t * not run out\n\t */\n\t_bool_t _reset;\n} _watchdog_info_t;", "parent": 0, "children": [14, 15, 23], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 20, "column": 19}}, {"id": 14, "type": "typedef", "text": "typedef", "parent": 13, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 7}}, {"id": 15, "type": "struct_specifier", "text": "struct {\n\t/**\n\t * the timer the watchdog increments\n\t * everytime it is called\n\t * see watchdog_ping for more info\n\t */\n\t_uint32_t _timer;\n\t/**\n\t * determines whether the watchdog should\n\t * force a reset even if the timer has\n\t * not run out\n\t */\n\t_bool_t _reset;\n}", "parent": 13, "children": [16], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 20, "column": 1}}, {"id": 16, "type": "struct", "text": "struct", "parent": 15, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 14}}, {"id": 17, "type": "field_declaration", "text": "_uint32_t _timer;", "parent": 15, "children": [18, 19], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 18}}, {"id": 18, "type": "type_identifier", "text": "_uint32_t", "parent": 17, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 10}}, {"id": 19, "type": "field_identifier", "text": "_timer", "parent": 17, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 17}}, {"id": 20, "type": "field_declaration", "text": "_bool_t _reset;", "parent": 15, "children": [21, 22], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 16}}, {"id": 21, "type": "type_identifier", "text": "_bool_t", "parent": 20, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 8}}, {"id": 22, "type": "field_identifier", "text": "_reset", "parent": 20, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 15}}, {"id": 23, "type": "type_identifier", "text": "_watchdog_info_t", "parent": 13, "children": [], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 18}}, {"id": 24, "type": "declaration", "text": "extern volatile _watchdog_info_t _watchdog_info;", "parent": 0, "children": [25, 27, 29, 30], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 48}}, {"id": 25, "type": "storage_class_specifier", "text": "extern", "parent": 24, "children": [26], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 6}}, {"id": 26, "type": "extern", "text": "extern", "parent": 25, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 6}}, {"id": 27, "type": "type_qualifier", "text": "volatile", "parent": 24, "children": [28], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 15}}, {"id": 28, "type": "volatile", "text": "volatile", "parent": 27, "children": [], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 15}}, {"id": 29, "type": "type_identifier", "text": "_watchdog_info_t", "parent": 24, "children": [], "start_point": {"row": 22, "column": 16}, "end_point": {"row": 22, "column": 32}}, {"id": 30, "type": "identifier", "text": "_watchdog_info", "parent": 24, "children": [], "start_point": {"row": 22, "column": 33}, "end_point": {"row": 22, "column": 47}}, {"id": 31, "type": "function_definition", "text": "inline void watchdog_force_reset(void) {\n\t_watchdog_info._reset = true;\n}", "parent": 0, "children": [32, 34, 35], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 29, "column": 1}}, {"id": 32, "type": "storage_class_specifier", "text": "inline", "parent": 31, "children": [33], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 6}}, {"id": 33, "type": "inline", "text": "inline", "parent": 32, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 6}}, {"id": 34, "type": "primitive_type", "text": "void", "parent": 31, "children": [], "start_point": {"row": 27, "column": 7}, "end_point": {"row": 27, "column": 11}}, {"id": 35, "type": "function_declarator", "text": "watchdog_force_reset(void)", "parent": 31, "children": [36, 37], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 27, "column": 38}}, {"id": 36, "type": "identifier", "text": "watchdog_force_reset", "parent": 35, "children": [], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 27, "column": 32}}, {"id": 37, "type": "parameter_list", "text": "(void)", "parent": 35, "children": [38], "start_point": {"row": 27, "column": 32}, "end_point": {"row": 27, "column": 38}}, {"id": 38, "type": "parameter_declaration", "text": "void", "parent": 37, "children": [39], "start_point": {"row": 27, "column": 33}, "end_point": {"row": 27, "column": 37}}, {"id": 39, "type": "primitive_type", "text": "void", "parent": 38, "children": [], "start_point": {"row": 27, "column": 33}, "end_point": {"row": 27, "column": 37}}, {"id": 40, "type": "assignment_expression", "text": "_watchdog_info._reset = true", "parent": 31, "children": [41, 44, 45], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 29}}, {"id": 41, "type": "field_expression", "text": "_watchdog_info._reset", "parent": 40, "children": [42, 43], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 22}}, {"id": 42, "type": "identifier", "text": "_watchdog_info", "parent": 41, "children": [], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 15}}, {"id": 43, "type": "field_identifier", "text": "_reset", "parent": 41, "children": [], "start_point": {"row": 28, "column": 16}, "end_point": {"row": 28, "column": 22}}, {"id": 44, "type": "=", "text": "=", "parent": 40, "children": [], "start_point": {"row": 28, "column": 23}, "end_point": {"row": 28, "column": 24}}, {"id": 45, "type": "true", "text": "true", "parent": 40, "children": [], "start_point": {"row": 28, "column": 25}, "end_point": {"row": 28, "column": 29}}, {"id": 46, "type": "function_definition", "text": "inline void watchdog_ping(void) {\n\t_watchdog_info._timer = 0;\n}", "parent": 0, "children": [47, 49, 50], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 47, "column": 1}}, {"id": 47, "type": "storage_class_specifier", "text": "inline", "parent": 46, "children": [48], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 6}}, {"id": 48, "type": "inline", "text": "inline", "parent": 47, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 6}}, {"id": 49, "type": "primitive_type", "text": "void", "parent": 46, "children": [], "start_point": {"row": 45, "column": 7}, "end_point": {"row": 45, "column": 11}}, {"id": 50, "type": "function_declarator", "text": "watchdog_ping(void)", "parent": 46, "children": [51, 52], "start_point": {"row": 45, "column": 12}, "end_point": {"row": 45, "column": 31}}, {"id": 51, "type": "identifier", "text": "watchdog_ping", "parent": 50, "children": [], "start_point": {"row": 45, "column": 12}, "end_point": {"row": 45, "column": 25}}, {"id": 52, "type": "parameter_list", "text": "(void)", "parent": 50, "children": [53], "start_point": {"row": 45, "column": 25}, "end_point": {"row": 45, "column": 31}}, {"id": 53, "type": "parameter_declaration", "text": "void", "parent": 52, "children": [54], "start_point": {"row": 45, "column": 26}, "end_point": {"row": 45, "column": 30}}, {"id": 54, "type": "primitive_type", "text": "void", "parent": 53, "children": [], "start_point": {"row": 45, "column": 26}, "end_point": {"row": 45, "column": 30}}, {"id": 55, "type": "assignment_expression", "text": "_watchdog_info._timer = 0", "parent": 46, "children": [56, 59, 60], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 26}}, {"id": 56, "type": "field_expression", "text": "_watchdog_info._timer", "parent": 55, "children": [57, 58], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 22}}, {"id": 57, "type": "identifier", "text": "_watchdog_info", "parent": 56, "children": [], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 15}}, {"id": 58, "type": "field_identifier", "text": "_timer", "parent": 56, "children": [], "start_point": {"row": 46, "column": 16}, "end_point": {"row": 46, "column": 22}}, {"id": 59, "type": "=", "text": "=", "parent": 55, "children": [], "start_point": {"row": 46, "column": 23}, "end_point": {"row": 46, "column": 24}}, {"id": 60, "type": "number_literal", "text": "0", "parent": 55, "children": [], "start_point": {"row": 46, "column": 25}, "end_point": {"row": 46, "column": 26}}, {"id": 61, "type": "declaration", "text": "void watchdog_init(void);", "parent": 0, "children": [62, 63], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 25}}, {"id": 62, "type": "primitive_type", "text": "void", "parent": 61, "children": [], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 4}}, {"id": 63, "type": "function_declarator", "text": "watchdog_init(void)", "parent": 61, "children": [64, 65], "start_point": {"row": 52, "column": 5}, "end_point": {"row": 52, "column": 24}}, {"id": 64, "type": "identifier", "text": "watchdog_init", "parent": 63, "children": [], "start_point": {"row": 52, "column": 5}, "end_point": {"row": 52, "column": 18}}, {"id": 65, "type": "parameter_list", "text": "(void)", "parent": 63, "children": [66], "start_point": {"row": 52, "column": 18}, "end_point": {"row": 52, "column": 24}}, {"id": 66, "type": "parameter_declaration", "text": "void", "parent": 65, "children": [67], "start_point": {"row": 52, "column": 19}, "end_point": {"row": 52, "column": 23}}, {"id": 67, "type": "primitive_type", "text": "void", "parent": 66, "children": [], "start_point": {"row": 52, "column": 19}, "end_point": {"row": 52, "column": 23}}, {"id": 68, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 6}}]}, "node_categories": {"declarations": {"functions": [31, 35, 46, 50, 63], "variables": [13, 17, 20, 24, 38, 53, 61, 66], "classes": [15, 16, 25, 32, 47], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [41, 56], "assignments": [40, 55], "loops": [], "conditionals": [0, 1, 2, 5, 11, 18, 19, 21, 22, 23, 27, 29, 30, 36, 42, 43, 51, 57, 58, 64, 68], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 60], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 31, "universal_type": "function", "name": "watchdog_force_reset", "text_snippet": "inline void watchdog_force_reset(void) {\n\t_watchdog_info._reset = true;\n}"}, {"node_id": 35, "universal_type": "function", "name": "unknown", "text_snippet": "watchdog_force_reset(void)"}, {"node_id": 46, "universal_type": "function", "name": "watchdog_ping", "text_snippet": "inline void watchdog_ping(void) {\n\t_watchdog_info._timer = 0;\n}"}, {"node_id": 50, "universal_type": "function", "name": "unknown", "text_snippet": "watchdog_ping(void)"}, {"node_id": 63, "universal_type": "function", "name": "unknown", "text_snippet": "watchdog_init(void)"}], "class_declarations": [{"node_id": 15, "universal_type": "class", "name": "{", "text_snippet": "struct {\n\t/**\n\t * the timer the watchdog increments\n\t * everytime it is called\n\t * see watchdog_ping"}, {"node_id": 16, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 25, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 32, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 47, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}], "import_statements": [{"node_id": 6, "text": "#include \"stdtypes.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#ifndef __WATCHDOG_H__\n#define __WATCHDOG_H__\n\n#include \"stdtypes.h\"\n\n#define WATCHDOG_TIMER_DEAD 5\n\ntypedef struct {\n\t/**\n\t * the timer the watchdog increments\n\t * everytime it is called\n\t * see watchdog_ping for more info\n\t */\n\t_uint32_t _timer;\n\t/**\n\t * determines whether the watchdog should\n\t * force a reset even if the timer has\n\t * not run out\n\t */\n\t_bool_t _reset;\n} _watchdog_info_t;\n\nextern volatile _watchdog_info_t _watchdog_info;\n\n/**\n * forces a reset even if the timer has not run out\n */\ninline void watchdog_force_reset(void) {\n\t_watchdog_info._reset = true;\n}\n\n/**\n * pings the watchdog so that it knows\n * the program is still running\n *\n * this is called in the function that reads\n * the current gas sensor value.\n *\n * if the watchdog wakes up > WATCHDOG_TIMER_DEAD times\n * the program is assumed dead and is restarted\n *\n * we don't call this in the main loop as a user would usually\n * see that the buttons do not work and would therefore be able\n * to press the reset button him/herself\n */\ninline void watchdog_ping(void) {\n\t_watchdog_info._timer = 0;\n}\n\n/**\n * initializes the watchdog\n */\nvoid watchdog_init(void);\n\n\n#endif\n"}
80,240
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/iTunesStoreUI.framework/iTunesStoreUI */ @interface SUScriptTweetComposeViewControllerNativeObject : SUScriptViewControllerNativeObject - (void)destroyNativeObject; - (void)setupNativeObject; @end
38
7
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/iTunesStoreUI.framework/iTunesStoreUI\n */\n\n@interface SUScriptTweetComposeViewControllerNativeObject : SUScriptViewControllerNativeObject\n\n- (void)destroyNativeObject;\n- (void)setupNativeObject;\n\n@end\n" (comment) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/iTunesStoreUI.framework/iTunesStoreUI\n */" (ERROR) "@interface SUScriptTweetComposeViewControllerNativeObject : SUScriptViewControllerNativeObject\n\n- (void)destroyNativeObject;\n- (void)setupNativeObject;\n\n@end" (ERROR) "@" (type_identifier) "interface" (identifier) "SUScriptTweetComposeViewControllerNativeObject" (:) ":" (identifier) "SUScriptViewControllerNativeObject" (expression_statement) "- (void)destroyNativeObject;" (unary_expression) "- (void)destroyNativeObject" (-) "-" (cast_expression) "(void)destroyNativeObject" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "destroyNativeObject" (;) ";" (expression_statement) "- (void)setupNativeObject;" (unary_expression) "- (void)setupNativeObject" (-) "-" (cast_expression) "(void)setupNativeObject" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "setupNativeObject" (;) ";" (ERROR) "@" (ERROR) "@" (identifier) "end"
31
4
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 38.0, "nodes": 19, "errors": 0, "source_hash": "a8780349f5f2a911ffa4d79563925e12f31dc3dd3cf123c83950f8b24dbb3175", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface SUScriptTweetComposeViewControllerNativeObject : SUScriptViewControllerNativeObject\n\n- (void)destroyNativeObject;\n- (void)setupNativeObject;\n\n@end", "parent": null, "children": [1, 2, 3, 4, 17], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 9, "column": 4}}, {"id": 1, "type": "ERROR", "text": "@", "parent": 0, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 1}}, {"id": 2, "type": "type_identifier", "text": "interface", "parent": 0, "children": [], "start_point": {"row": 4, "column": 1}, "end_point": {"row": 4, "column": 10}}, {"id": 3, "type": "identifier", "text": "SUScriptTweetComposeViewControllerNativeObject", "parent": 0, "children": [], "start_point": {"row": 4, "column": 11}, "end_point": {"row": 4, "column": 57}}, {"id": 4, "type": "identifier", "text": "SUScriptViewControllerNativeObject", "parent": 0, "children": [], "start_point": {"row": 4, "column": 60}, "end_point": {"row": 4, "column": 94}}, {"id": 5, "type": "unary_expression", "text": "- (void)destroyNativeObject", "parent": 0, "children": [6, 7], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 27}}, {"id": 6, "type": "-", "text": "-", "parent": 5, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 1}}, {"id": 7, "type": "cast_expression", "text": "(void)destroyNativeObject", "parent": 5, "children": [8, 10], "start_point": {"row": 6, "column": 2}, "end_point": {"row": 6, "column": 27}}, {"id": 8, "type": "type_descriptor", "text": "void", "parent": 7, "children": [9], "start_point": {"row": 6, "column": 3}, "end_point": {"row": 6, "column": 7}}, {"id": 9, "type": "primitive_type", "text": "void", "parent": 8, "children": [], "start_point": {"row": 6, "column": 3}, "end_point": {"row": 6, "column": 7}}, {"id": 10, "type": "identifier", "text": "destroyNativeObject", "parent": 7, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 27}}, {"id": 11, "type": "unary_expression", "text": "- (void)setupNativeObject", "parent": 0, "children": [12, 13], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 25}}, {"id": 12, "type": "-", "text": "-", "parent": 11, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 1}}, {"id": 13, "type": "cast_expression", "text": "(void)setupNativeObject", "parent": 11, "children": [14, 16], "start_point": {"row": 7, "column": 2}, "end_point": {"row": 7, "column": 25}}, {"id": 14, "type": "type_descriptor", "text": "void", "parent": 13, "children": [15], "start_point": {"row": 7, "column": 3}, "end_point": {"row": 7, "column": 7}}, {"id": 15, "type": "primitive_type", "text": "void", "parent": 14, "children": [], "start_point": {"row": 7, "column": 3}, "end_point": {"row": 7, "column": 7}}, {"id": 16, "type": "identifier", "text": "setupNativeObject", "parent": 13, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 25}}, {"id": 17, "type": "ERROR", "text": "@", "parent": 0, "children": [18], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 1}}, {"id": 18, "type": "ERROR", "text": "@", "parent": 17, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 1}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [5, 7, 11, 13], "assignments": [], "loops": [], "conditionals": [2, 3, 4, 10, 16], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/iTunesStoreUI.framework/iTunesStoreUI\n */\n\n@interface SUScriptTweetComposeViewControllerNativeObject : SUScriptViewControllerNativeObject\n\n- (void)destroyNativeObject;\n- (void)setupNativeObject;\n\n@end\n"}
80,241
c
// // Created by ajey on 5/7/16. #include "nss_http.h" #include <nss.h> #include <pwd.h> #include "nss_http-passwd.c" int main(int argc, char *argv[]) { int retval=0; const char *command="nobody"; char host_name[255]; char token[255]; get_config_host(host_name, token); printf("host %s token %s\n", host_name, token); const char *name="dev1"; struct passwd *structpasswd; structpasswd = malloc(sizeof(struct passwd)); char * buffer = malloc(512); int error_no; enum nss_status status; status = _nss_http_getpwnam_r_locked(name, structpasswd, buffer, 512, &error_no); if ( status == NSS_STATUS_UNAVAIL || status == NSS_STATUS_TRYAGAIN) { printf("User not found \n"); } if(argc == 3) { command = argv[1]; } if(argc > 3 || argc < 3) { fprintf(stderr, "Usage: check_nss [user|group] [user or group name]\n"); exit(1); } if (!strncmp(command, "group", strlen(command))) { } return retval; } //
25.76
38
(translation_unit) "//\n// Created by ajey on 5/7/16.\n\n#include "nss_http.h"\n#include <nss.h>\n#include <pwd.h>\n#include "nss_http-passwd.c"\n\nint main(int argc, char *argv[])\n{\n int retval=0;\n const char *command="nobody";\n char host_name[255];\n char token[255];\n get_config_host(host_name, token);\n\n printf("host %s token %s\n", host_name, token);\n\n const char *name="dev1";\n struct passwd *structpasswd;\n structpasswd = malloc(sizeof(struct passwd));\n char * buffer = malloc(512);\n int error_no;\n\n enum nss_status status;\n status = _nss_http_getpwnam_r_locked(name, structpasswd, buffer, 512, &error_no);\n\n if ( status == NSS_STATUS_UNAVAIL || status == NSS_STATUS_TRYAGAIN)\n {\n printf("User not found \n");\n }\n if(argc == 3) {\n command = argv[1];\n }\n\n if(argc > 3 || argc < 3) {\n fprintf(stderr, "Usage: check_nss [user|group] [user or group name]\n");\n exit(1);\n }\n\n if (!strncmp(command, "group", strlen(command)))\n {\n\n }\n return retval;\n}\n\n//\n\n\n\n\n" (comment) "//" (comment) "// Created by ajey on 5/7/16." (preproc_include) "#include "nss_http.h"\n" (#include) "#include" (string_literal) ""nss_http.h"" (") """ (string_content) "nss_http.h" (") """ (preproc_include) "#include <nss.h>\n" (#include) "#include" (system_lib_string) "<nss.h>" (preproc_include) "#include <pwd.h>\n" (#include) "#include" (system_lib_string) "<pwd.h>" (preproc_include) "#include "nss_http-passwd.c"\n" (#include) "#include" (string_literal) ""nss_http-passwd.c"" (") """ (string_content) "nss_http-passwd.c" (") """ (function_definition) "int main(int argc, char *argv[])\n{\n int retval=0;\n const char *command="nobody";\n char host_name[255];\n char token[255];\n get_config_host(host_name, token);\n\n printf("host %s token %s\n", host_name, token);\n\n const char *name="dev1";\n struct passwd *structpasswd;\n structpasswd = malloc(sizeof(struct passwd));\n char * buffer = malloc(512);\n int error_no;\n\n enum nss_status status;\n status = _nss_http_getpwnam_r_locked(name, structpasswd, buffer, 512, &error_no);\n\n if ( status == NSS_STATUS_UNAVAIL || status == NSS_STATUS_TRYAGAIN)\n {\n printf("User not found \n");\n }\n if(argc == 3) {\n command = argv[1];\n }\n\n if(argc > 3 || argc < 3) {\n fprintf(stderr, "Usage: check_nss [user|group] [user or group name]\n");\n exit(1);\n }\n\n if (!strncmp(command, "group", strlen(command)))\n {\n\n }\n return retval;\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 int retval=0;\n const char *command="nobody";\n char host_name[255];\n char token[255];\n get_config_host(host_name, token);\n\n printf("host %s token %s\n", host_name, token);\n\n const char *name="dev1";\n struct passwd *structpasswd;\n structpasswd = malloc(sizeof(struct passwd));\n char * buffer = malloc(512);\n int error_no;\n\n enum nss_status status;\n status = _nss_http_getpwnam_r_locked(name, structpasswd, buffer, 512, &error_no);\n\n if ( status == NSS_STATUS_UNAVAIL || status == NSS_STATUS_TRYAGAIN)\n {\n printf("User not found \n");\n }\n if(argc == 3) {\n command = argv[1];\n }\n\n if(argc > 3 || argc < 3) {\n fprintf(stderr, "Usage: check_nss [user|group] [user or group name]\n");\n exit(1);\n }\n\n if (!strncmp(command, "group", strlen(command)))\n {\n\n }\n return retval;\n}" ({) "{" (declaration) "int retval=0;" (primitive_type) "int" (init_declarator) "retval=0" (identifier) "retval" (=) "=" (number_literal) "0" (;) ";" (declaration) "const char *command="nobody";" (type_qualifier) "const" (const) "const" (primitive_type) "char" (init_declarator) "*command="nobody"" (pointer_declarator) "*command" (*) "*" (identifier) "command" (=) "=" (string_literal) ""nobody"" (") """ (string_content) "nobody" (") """ (;) ";" (declaration) "char host_name[255];" (primitive_type) "char" (array_declarator) "host_name[255]" (identifier) "host_name" ([) "[" (number_literal) "255" (]) "]" (;) ";" (declaration) "char token[255];" (primitive_type) "char" (array_declarator) "token[255]" (identifier) "token" ([) "[" (number_literal) "255" (]) "]" (;) ";" (expression_statement) "get_config_host(host_name, token);" (call_expression) "get_config_host(host_name, token)" (identifier) "get_config_host" (argument_list) "(host_name, token)" (() "(" (identifier) "host_name" (,) "," (identifier) "token" ()) ")" (;) ";" (expression_statement) "printf("host %s token %s\n", host_name, token);" (call_expression) "printf("host %s token %s\n", host_name, token)" (identifier) "printf" (argument_list) "("host %s token %s\n", host_name, token)" (() "(" (string_literal) ""host %s token %s\n"" (") """ (string_content) "host %s token %s" (escape_sequence) "\n" (") """ (,) "," (identifier) "host_name" (,) "," (identifier) "token" ()) ")" (;) ";" (declaration) "const char *name="dev1";" (type_qualifier) "const" (const) "const" (primitive_type) "char" (init_declarator) "*name="dev1"" (pointer_declarator) "*name" (*) "*" (identifier) "name" (=) "=" (string_literal) ""dev1"" (") """ (string_content) "dev1" (") """ (;) ";" (declaration) "struct passwd *structpasswd;" (struct_specifier) "struct passwd" (struct) "struct" (type_identifier) "passwd" (pointer_declarator) "*structpasswd" (*) "*" (identifier) "structpasswd" (;) ";" (expression_statement) "structpasswd = malloc(sizeof(struct passwd));" (assignment_expression) "structpasswd = malloc(sizeof(struct passwd))" (identifier) "structpasswd" (=) "=" (call_expression) "malloc(sizeof(struct passwd))" (identifier) "malloc" (argument_list) "(sizeof(struct passwd))" (() "(" (sizeof_expression) "sizeof(struct passwd)" (sizeof) "sizeof" (() "(" (type_descriptor) "struct passwd" (struct_specifier) "struct passwd" (struct) "struct" (type_identifier) "passwd" ()) ")" ()) ")" (;) ";" (declaration) "char * buffer = malloc(512);" (primitive_type) "char" (init_declarator) "* buffer = malloc(512)" (pointer_declarator) "* buffer" (*) "*" (identifier) "buffer" (=) "=" (call_expression) "malloc(512)" (identifier) "malloc" (argument_list) "(512)" (() "(" (number_literal) "512" ()) ")" (;) ";" (declaration) "int error_no;" (primitive_type) "int" (identifier) "error_no" (;) ";" (declaration) "enum nss_status status;" (enum_specifier) "enum nss_status" (enum) "enum" (type_identifier) "nss_status" (identifier) "status" (;) ";" (expression_statement) "status = _nss_http_getpwnam_r_locked(name, structpasswd, buffer, 512, &error_no);" (assignment_expression) "status = _nss_http_getpwnam_r_locked(name, structpasswd, buffer, 512, &error_no)" (identifier) "status" (=) "=" (call_expression) "_nss_http_getpwnam_r_locked(name, structpasswd, buffer, 512, &error_no)" (identifier) "_nss_http_getpwnam_r_locked" (argument_list) "(name, structpasswd, buffer, 512, &error_no)" (() "(" (identifier) "name" (,) "," (identifier) "structpasswd" (,) "," (identifier) "buffer" (,) "," (number_literal) "512" (,) "," (pointer_expression) "&error_no" (&) "&" (identifier) "error_no" ()) ")" (;) ";" (if_statement) "if ( status == NSS_STATUS_UNAVAIL || status == NSS_STATUS_TRYAGAIN)\n {\n printf("User not found \n");\n }" (if) "if" (parenthesized_expression) "( status == NSS_STATUS_UNAVAIL || status == NSS_STATUS_TRYAGAIN)" (() "(" (binary_expression) "status == NSS_STATUS_UNAVAIL || status == NSS_STATUS_TRYAGAIN" (binary_expression) "status == NSS_STATUS_UNAVAIL" (identifier) "status" (==) "==" (identifier) "NSS_STATUS_UNAVAIL" (||) "||" (binary_expression) "status == NSS_STATUS_TRYAGAIN" (identifier) "status" (==) "==" (identifier) "NSS_STATUS_TRYAGAIN" ()) ")" (compound_statement) "{\n printf("User not found \n");\n }" ({) "{" (expression_statement) "printf("User not found \n");" (call_expression) "printf("User not found \n")" (identifier) "printf" (argument_list) "("User not found \n")" (() "(" (string_literal) ""User not found \n"" (") """ (string_content) "User not found " (escape_sequence) "\n" (") """ ()) ")" (;) ";" (}) "}" (if_statement) "if(argc == 3) {\n command = argv[1];\n }" (if) "if" (parenthesized_expression) "(argc == 3)" (() "(" (binary_expression) "argc == 3" (identifier) "argc" (==) "==" (number_literal) "3" ()) ")" (compound_statement) "{\n command = argv[1];\n }" ({) "{" (expression_statement) "command = argv[1];" (assignment_expression) "command = argv[1]" (identifier) "command" (=) "=" (subscript_expression) "argv[1]" (identifier) "argv" ([) "[" (number_literal) "1" (]) "]" (;) ";" (}) "}" (if_statement) "if(argc > 3 || argc < 3) {\n fprintf(stderr, "Usage: check_nss [user|group] [user or group name]\n");\n exit(1);\n }" (if) "if" (parenthesized_expression) "(argc > 3 || argc < 3)" (() "(" (binary_expression) "argc > 3 || argc < 3" (binary_expression) "argc > 3" (identifier) "argc" (>) ">" (number_literal) "3" (||) "||" (binary_expression) "argc < 3" (identifier) "argc" (<) "<" (number_literal) "3" ()) ")" (compound_statement) "{\n fprintf(stderr, "Usage: check_nss [user|group] [user or group name]\n");\n exit(1);\n }" ({) "{" (expression_statement) "fprintf(stderr, "Usage: check_nss [user|group] [user or group name]\n");" (call_expression) "fprintf(stderr, "Usage: check_nss [user|group] [user or group name]\n")" (identifier) "fprintf" (argument_list) "(stderr, "Usage: check_nss [user|group] [user or group name]\n")" (() "(" (identifier) "stderr" (,) "," (string_literal) ""Usage: check_nss [user|group] [user or group name]\n"" (") """ (string_content) "Usage: check_nss [user|group] [user or group name]" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "exit(1);" (call_expression) "exit(1)" (identifier) "exit" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (if_statement) "if (!strncmp(command, "group", strlen(command)))\n {\n\n }" (if) "if" (parenthesized_expression) "(!strncmp(command, "group", strlen(command)))" (() "(" (unary_expression) "!strncmp(command, "group", strlen(command))" (!) "!" (call_expression) "strncmp(command, "group", strlen(command))" (identifier) "strncmp" (argument_list) "(command, "group", strlen(command))" (() "(" (identifier) "command" (,) "," (string_literal) ""group"" (") """ (string_content) "group" (") """ (,) "," (call_expression) "strlen(command)" (identifier) "strlen" (argument_list) "(command)" (() "(" (identifier) "command" ()) ")" ()) ")" ()) ")" (compound_statement) "{\n\n }" ({) "{" (}) "}" (return_statement) "return retval;" (return) "return" (identifier) "retval" (;) ";" (}) "}" (comment) "//"
316
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 25.76, "nodes": 185, "errors": 0, "source_hash": "fbdfb4c72e7762819a16eeb5c670fcc73392eb1c7f5afb0031b93e60824c67d2", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"nss_http.h\"\n", "parent": null, "children": [1, 2], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 2, "type": "string_literal", "text": "\"nss_http.h\"", "parent": 0, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 21}}, {"id": 3, "type": "preproc_include", "text": "#include <nss.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<nss.h>", "parent": 3, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 16}}, {"id": 6, "type": "preproc_include", "text": "#include <pwd.h>\n", "parent": null, "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": "system_lib_string", "text": "<pwd.h>", "parent": 6, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 16}}, {"id": 9, "type": "preproc_include", "text": "#include \"nss_http-passwd.c\"\n", "parent": null, "children": [10, 11], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"nss_http-passwd.c\"", "parent": 9, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 28}}, {"id": 12, "type": "function_definition", "text": "int main(int argc, char *argv[])\n{\n int retval=0;\n const char *command=\"nobody\";\n char host_name[255];\n char token[255];\n get_config_host(host_name, token);\n\n printf(\"host %s token %s\\n\", host_name, token);\n\n const char *name=\"dev1\";\n struct passwd *structpasswd;\n structpasswd = malloc(sizeof(struct passwd));\n char * buffer = malloc(512);\n int error_no;\n\n enum nss_status status;\n status = _nss_http_getpwnam_r_locked(name, structpasswd, buffer, 512, &error_no);\n\n if ( status == NSS_STATUS_UNAVAIL || status == NSS_STATUS_TRYAGAIN)\n {\n printf(\"User not found \\n\");\n }\n if(argc == 3) {\n command = argv[1];\n }\n\n if(argc > 3 || argc < 3) {\n fprintf(stderr, \"Usage: check_nss [user|group] [user or group name]\\n\");\n exit(1);\n }\n\n if (!strncmp(command, \"group\", strlen(command)))\n {\n\n }\n return retval;\n}", "parent": null, "children": [13, 14], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 45, "column": 1}}, {"id": 13, "type": "primitive_type", "text": "int", "parent": 12, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 3}}, {"id": 14, "type": "function_declarator", "text": "main(int argc, char *argv[])", "parent": 12, "children": [15, 16], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 32}}, {"id": 15, "type": "identifier", "text": "main", "parent": 14, "children": [], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 8}}, {"id": 16, "type": "parameter_list", "text": "(int argc, char *argv[])", "parent": 14, "children": [17, 20], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 32}}, {"id": 17, "type": "parameter_declaration", "text": "int argc", "parent": 16, "children": [18, 19], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 17}}, {"id": 18, "type": "primitive_type", "text": "int", "parent": 17, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 12}}, {"id": 19, "type": "identifier", "text": "argc", "parent": 17, "children": [], "start_point": {"row": 8, "column": 13}, "end_point": {"row": 8, "column": 17}}, {"id": 20, "type": "parameter_declaration", "text": "char *argv[]", "parent": 16, "children": [21, 22], "start_point": {"row": 8, "column": 19}, "end_point": {"row": 8, "column": 31}}, {"id": 21, "type": "primitive_type", "text": "char", "parent": 20, "children": [], "start_point": {"row": 8, "column": 19}, "end_point": {"row": 8, "column": 23}}, {"id": 22, "type": "pointer_declarator", "text": "*argv[]", "parent": 20, "children": [23, 24], "start_point": {"row": 8, "column": 24}, "end_point": {"row": 8, "column": 31}}, {"id": 23, "type": "*", "text": "*", "parent": 22, "children": [], "start_point": {"row": 8, "column": 24}, "end_point": {"row": 8, "column": 25}}, {"id": 24, "type": "array_declarator", "text": "argv[]", "parent": 22, "children": [25], "start_point": {"row": 8, "column": 25}, "end_point": {"row": 8, "column": 31}}, {"id": 25, "type": "identifier", "text": "argv", "parent": 24, "children": [], "start_point": {"row": 8, "column": 25}, "end_point": {"row": 8, "column": 29}}, {"id": 26, "type": "declaration", "text": "int retval=0;", "parent": 12, "children": [27, 28], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 17}}, {"id": 27, "type": "primitive_type", "text": "int", "parent": 26, "children": [], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 7}}, {"id": 28, "type": "init_declarator", "text": "retval=0", "parent": 26, "children": [29, 30, 31], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 16}}, {"id": 29, "type": "identifier", "text": "retval", "parent": 28, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 14}}, {"id": 30, "type": "=", "text": "=", "parent": 28, "children": [], "start_point": {"row": 10, "column": 14}, "end_point": {"row": 10, "column": 15}}, {"id": 31, "type": "number_literal", "text": "0", "parent": 28, "children": [], "start_point": {"row": 10, "column": 15}, "end_point": {"row": 10, "column": 16}}, {"id": 32, "type": "declaration", "text": "const char *command=\"nobody\";", "parent": 12, "children": [33, 34], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 33}}, {"id": 33, "type": "primitive_type", "text": "char", "parent": 32, "children": [], "start_point": {"row": 11, "column": 10}, "end_point": {"row": 11, "column": 14}}, {"id": 34, "type": "init_declarator", "text": "*command=\"nobody\"", "parent": 32, "children": [35, 38, 39], "start_point": {"row": 11, "column": 15}, "end_point": {"row": 11, "column": 32}}, {"id": 35, "type": "pointer_declarator", "text": "*command", "parent": 34, "children": [36, 37], "start_point": {"row": 11, "column": 15}, "end_point": {"row": 11, "column": 23}}, {"id": 36, "type": "*", "text": "*", "parent": 35, "children": [], "start_point": {"row": 11, "column": 15}, "end_point": {"row": 11, "column": 16}}, {"id": 37, "type": "identifier", "text": "command", "parent": 35, "children": [], "start_point": {"row": 11, "column": 16}, "end_point": {"row": 11, "column": 23}}, {"id": 38, "type": "=", "text": "=", "parent": 34, "children": [], "start_point": {"row": 11, "column": 23}, "end_point": {"row": 11, "column": 24}}, {"id": 39, "type": "string_literal", "text": "\"nobody\"", "parent": 34, "children": [], "start_point": {"row": 11, "column": 24}, "end_point": {"row": 11, "column": 32}}, {"id": 40, "type": "declaration", "text": "char host_name[255];", "parent": 12, "children": [41, 42], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 24}}, {"id": 41, "type": "primitive_type", "text": "char", "parent": 40, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 8}}, {"id": 42, "type": "array_declarator", "text": "host_name[255]", "parent": 40, "children": [43, 44], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 23}}, {"id": 43, "type": "identifier", "text": "host_name", "parent": 42, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 18}}, {"id": 44, "type": "number_literal", "text": "255", "parent": 42, "children": [], "start_point": {"row": 12, "column": 19}, "end_point": {"row": 12, "column": 22}}, {"id": 45, "type": "declaration", "text": "char token[255];", "parent": 12, "children": [46, 47], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 20}}, {"id": 46, "type": "primitive_type", "text": "char", "parent": 45, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 8}}, {"id": 47, "type": "array_declarator", "text": "token[255]", "parent": 45, "children": [48, 49], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 19}}, {"id": 48, "type": "identifier", "text": "token", "parent": 47, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 14}}, {"id": 49, "type": "number_literal", "text": "255", "parent": 47, "children": [], "start_point": {"row": 13, "column": 15}, "end_point": {"row": 13, "column": 18}}, {"id": 50, "type": "call_expression", "text": "get_config_host(host_name, token)", "parent": 12, "children": [51, 52], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 37}}, {"id": 51, "type": "identifier", "text": "get_config_host", "parent": 50, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 19}}, {"id": 52, "type": "argument_list", "text": "(host_name, token)", "parent": 50, "children": [53, 54], "start_point": {"row": 14, "column": 19}, "end_point": {"row": 14, "column": 37}}, {"id": 53, "type": "identifier", "text": "host_name", "parent": 52, "children": [], "start_point": {"row": 14, "column": 20}, "end_point": {"row": 14, "column": 29}}, {"id": 54, "type": "identifier", "text": "token", "parent": 52, "children": [], "start_point": {"row": 14, "column": 31}, "end_point": {"row": 14, "column": 36}}, {"id": 55, "type": "call_expression", "text": "printf(\"host %s token %s\\n\", host_name, token)", "parent": 12, "children": [56, 57], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 50}}, {"id": 56, "type": "identifier", "text": "printf", "parent": 55, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 10}}, {"id": 57, "type": "argument_list", "text": "(\"host %s token %s\\n\", host_name, token)", "parent": 55, "children": [58, 60, 61], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 50}}, {"id": 58, "type": "string_literal", "text": "\"host %s token %s\\n\"", "parent": 57, "children": [59], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 31}}, {"id": 59, "type": "escape_sequence", "text": "\\n", "parent": 58, "children": [], "start_point": {"row": 16, "column": 28}, "end_point": {"row": 16, "column": 30}}, {"id": 60, "type": "identifier", "text": "host_name", "parent": 57, "children": [], "start_point": {"row": 16, "column": 33}, "end_point": {"row": 16, "column": 42}}, {"id": 61, "type": "identifier", "text": "token", "parent": 57, "children": [], "start_point": {"row": 16, "column": 44}, "end_point": {"row": 16, "column": 49}}, {"id": 62, "type": "declaration", "text": "const char *name=\"dev1\";", "parent": 12, "children": [63, 64], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 28}}, {"id": 63, "type": "primitive_type", "text": "char", "parent": 62, "children": [], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 14}}, {"id": 64, "type": "init_declarator", "text": "*name=\"dev1\"", "parent": 62, "children": [65, 68, 69], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 27}}, {"id": 65, "type": "pointer_declarator", "text": "*name", "parent": 64, "children": [66, 67], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 20}}, {"id": 66, "type": "*", "text": "*", "parent": 65, "children": [], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 16}}, {"id": 67, "type": "identifier", "text": "name", "parent": 65, "children": [], "start_point": {"row": 18, "column": 16}, "end_point": {"row": 18, "column": 20}}, {"id": 68, "type": "=", "text": "=", "parent": 64, "children": [], "start_point": {"row": 18, "column": 20}, "end_point": {"row": 18, "column": 21}}, {"id": 69, "type": "string_literal", "text": "\"dev1\"", "parent": 64, "children": [], "start_point": {"row": 18, "column": 21}, "end_point": {"row": 18, "column": 27}}, {"id": 70, "type": "declaration", "text": "struct passwd *structpasswd;", "parent": 12, "children": [71, 74], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 32}}, {"id": 71, "type": "struct_specifier", "text": "struct passwd", "parent": 70, "children": [72, 73], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 17}}, {"id": 72, "type": "struct", "text": "struct", "parent": 71, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 10}}, {"id": 73, "type": "type_identifier", "text": "passwd", "parent": 71, "children": [], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 17}}, {"id": 74, "type": "pointer_declarator", "text": "*structpasswd", "parent": 70, "children": [75, 76], "start_point": {"row": 19, "column": 18}, "end_point": {"row": 19, "column": 31}}, {"id": 75, "type": "*", "text": "*", "parent": 74, "children": [], "start_point": {"row": 19, "column": 18}, "end_point": {"row": 19, "column": 19}}, {"id": 76, "type": "identifier", "text": "structpasswd", "parent": 74, "children": [], "start_point": {"row": 19, "column": 19}, "end_point": {"row": 19, "column": 31}}, {"id": 77, "type": "assignment_expression", "text": "structpasswd = malloc(sizeof(struct passwd))", "parent": 12, "children": [78, 79, 80], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 48}}, {"id": 78, "type": "identifier", "text": "structpasswd", "parent": 77, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 16}}, {"id": 79, "type": "=", "text": "=", "parent": 77, "children": [], "start_point": {"row": 20, "column": 17}, "end_point": {"row": 20, "column": 18}}, {"id": 80, "type": "call_expression", "text": "malloc(sizeof(struct passwd))", "parent": 77, "children": [81, 82], "start_point": {"row": 20, "column": 19}, "end_point": {"row": 20, "column": 48}}, {"id": 81, "type": "identifier", "text": "malloc", "parent": 80, "children": [], "start_point": {"row": 20, "column": 19}, "end_point": {"row": 20, "column": 25}}, {"id": 82, "type": "argument_list", "text": "(sizeof(struct passwd))", "parent": 80, "children": [83], "start_point": {"row": 20, "column": 25}, "end_point": {"row": 20, "column": 48}}, {"id": 83, "type": "sizeof_expression", "text": "sizeof(struct passwd)", "parent": 82, "children": [84], "start_point": {"row": 20, "column": 26}, "end_point": {"row": 20, "column": 47}}, {"id": 84, "type": "type_descriptor", "text": "struct passwd", "parent": 83, "children": [85], "start_point": {"row": 20, "column": 33}, "end_point": {"row": 20, "column": 46}}, {"id": 85, "type": "struct_specifier", "text": "struct passwd", "parent": 84, "children": [86, 87], "start_point": {"row": 20, "column": 33}, "end_point": {"row": 20, "column": 46}}, {"id": 86, "type": "struct", "text": "struct", "parent": 85, "children": [], "start_point": {"row": 20, "column": 33}, "end_point": {"row": 20, "column": 39}}, {"id": 87, "type": "type_identifier", "text": "passwd", "parent": 85, "children": [], "start_point": {"row": 20, "column": 40}, "end_point": {"row": 20, "column": 46}}, {"id": 88, "type": "declaration", "text": "char * buffer = malloc(512);", "parent": 12, "children": [89, 90], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 32}}, {"id": 89, "type": "primitive_type", "text": "char", "parent": 88, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 8}}, {"id": 90, "type": "init_declarator", "text": "* buffer = malloc(512)", "parent": 88, "children": [91, 94, 95], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 31}}, {"id": 91, "type": "pointer_declarator", "text": "* buffer", "parent": 90, "children": [92, 93], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 17}}, {"id": 92, "type": "*", "text": "*", "parent": 91, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 10}}, {"id": 93, "type": "identifier", "text": "buffer", "parent": 91, "children": [], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 17}}, {"id": 94, "type": "=", "text": "=", "parent": 90, "children": [], "start_point": {"row": 21, "column": 18}, "end_point": {"row": 21, "column": 19}}, {"id": 95, "type": "call_expression", "text": "malloc(512)", "parent": 90, "children": [96, 97], "start_point": {"row": 21, "column": 20}, "end_point": {"row": 21, "column": 31}}, {"id": 96, "type": "identifier", "text": "malloc", "parent": 95, "children": [], "start_point": {"row": 21, "column": 20}, "end_point": {"row": 21, "column": 26}}, {"id": 97, "type": "argument_list", "text": "(512)", "parent": 95, "children": [98], "start_point": {"row": 21, "column": 26}, "end_point": {"row": 21, "column": 31}}, {"id": 98, "type": "number_literal", "text": "512", "parent": 97, "children": [], "start_point": {"row": 21, "column": 27}, "end_point": {"row": 21, "column": 30}}, {"id": 99, "type": "declaration", "text": "int error_no;", "parent": 12, "children": [100, 101], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 17}}, {"id": 100, "type": "primitive_type", "text": "int", "parent": 99, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 7}}, {"id": 101, "type": "identifier", "text": "error_no", "parent": 99, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 16}}, {"id": 102, "type": "declaration", "text": "enum nss_status status;", "parent": 12, "children": [103, 106], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 27}}, {"id": 103, "type": "enum_specifier", "text": "enum nss_status", "parent": 102, "children": [104, 105], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 19}}, {"id": 104, "type": "enum", "text": "enum", "parent": 103, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 8}}, {"id": 105, "type": "type_identifier", "text": "nss_status", "parent": 103, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 19}}, {"id": 106, "type": "identifier", "text": "status", "parent": 102, "children": [], "start_point": {"row": 24, "column": 20}, "end_point": {"row": 24, "column": 26}}, {"id": 107, "type": "assignment_expression", "text": "status = _nss_http_getpwnam_r_locked(name, structpasswd, buffer, 512, &error_no)", "parent": 12, "children": [108, 109, 110], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 84}}, {"id": 108, "type": "identifier", "text": "status", "parent": 107, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 10}}, {"id": 109, "type": "=", "text": "=", "parent": 107, "children": [], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 12}}, {"id": 110, "type": "call_expression", "text": "_nss_http_getpwnam_r_locked(name, structpasswd, buffer, 512, &error_no)", "parent": 107, "children": [111, 112], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 84}}, {"id": 111, "type": "identifier", "text": "_nss_http_getpwnam_r_locked", "parent": 110, "children": [], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 40}}, {"id": 112, "type": "argument_list", "text": "(name, structpasswd, buffer, 512, &error_no)", "parent": 110, "children": [113, 114, 115, 116, 117], "start_point": {"row": 25, "column": 40}, "end_point": {"row": 25, "column": 84}}, {"id": 113, "type": "identifier", "text": "name", "parent": 112, "children": [], "start_point": {"row": 25, "column": 41}, "end_point": {"row": 25, "column": 45}}, {"id": 114, "type": "identifier", "text": "structpasswd", "parent": 112, "children": [], "start_point": {"row": 25, "column": 47}, "end_point": {"row": 25, "column": 59}}, {"id": 115, "type": "identifier", "text": "buffer", "parent": 112, "children": [], "start_point": {"row": 25, "column": 61}, "end_point": {"row": 25, "column": 67}}, {"id": 116, "type": "number_literal", "text": "512", "parent": 112, "children": [], "start_point": {"row": 25, "column": 69}, "end_point": {"row": 25, "column": 72}}, {"id": 117, "type": "pointer_expression", "text": "&error_no", "parent": 112, "children": [118], "start_point": {"row": 25, "column": 74}, "end_point": {"row": 25, "column": 83}}, {"id": 118, "type": "identifier", "text": "error_no", "parent": 117, "children": [], "start_point": {"row": 25, "column": 75}, "end_point": {"row": 25, "column": 83}}, {"id": 119, "type": "if_statement", "text": "if ( status == NSS_STATUS_UNAVAIL || status == NSS_STATUS_TRYAGAIN)\n {\n printf(\"User not found \\n\");\n }", "parent": 12, "children": [120], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 30, "column": 5}}, {"id": 120, "type": "parenthesized_expression", "text": "( status == NSS_STATUS_UNAVAIL || status == NSS_STATUS_TRYAGAIN)", "parent": 119, "children": [121], "start_point": {"row": 27, "column": 7}, "end_point": {"row": 27, "column": 71}}, {"id": 121, "type": "binary_expression", "text": "status == NSS_STATUS_UNAVAIL || status == NSS_STATUS_TRYAGAIN", "parent": 120, "children": [122, 126, 127], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 70}}, {"id": 122, "type": "binary_expression", "text": "status == NSS_STATUS_UNAVAIL", "parent": 121, "children": [123, 124, 125], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 37}}, {"id": 123, "type": "identifier", "text": "status", "parent": 122, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 15}}, {"id": 124, "type": "==", "text": "==", "parent": 122, "children": [], "start_point": {"row": 27, "column": 16}, "end_point": {"row": 27, "column": 18}}, {"id": 125, "type": "identifier", "text": "NSS_STATUS_UNAVAIL", "parent": 122, "children": [], "start_point": {"row": 27, "column": 19}, "end_point": {"row": 27, "column": 37}}, {"id": 126, "type": "||", "text": "||", "parent": 121, "children": [], "start_point": {"row": 27, "column": 38}, "end_point": {"row": 27, "column": 40}}, {"id": 127, "type": "binary_expression", "text": "status == NSS_STATUS_TRYAGAIN", "parent": 121, "children": [128, 129, 130], "start_point": {"row": 27, "column": 41}, "end_point": {"row": 27, "column": 70}}, {"id": 128, "type": "identifier", "text": "status", "parent": 127, "children": [], "start_point": {"row": 27, "column": 41}, "end_point": {"row": 27, "column": 47}}, {"id": 129, "type": "==", "text": "==", "parent": 127, "children": [], "start_point": {"row": 27, "column": 48}, "end_point": {"row": 27, "column": 50}}, {"id": 130, "type": "identifier", "text": "NSS_STATUS_TRYAGAIN", "parent": 127, "children": [], "start_point": {"row": 27, "column": 51}, "end_point": {"row": 27, "column": 70}}, {"id": 131, "type": "call_expression", "text": "printf(\"User not found \\n\")", "parent": 119, "children": [132, 133], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 35}}, {"id": 132, "type": "identifier", "text": "printf", "parent": 131, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 14}}, {"id": 133, "type": "argument_list", "text": "(\"User not found \\n\")", "parent": 131, "children": [134], "start_point": {"row": 29, "column": 14}, "end_point": {"row": 29, "column": 35}}, {"id": 134, "type": "string_literal", "text": "\"User not found \\n\"", "parent": 133, "children": [135], "start_point": {"row": 29, "column": 15}, "end_point": {"row": 29, "column": 34}}, {"id": 135, "type": "escape_sequence", "text": "\\n", "parent": 134, "children": [], "start_point": {"row": 29, "column": 31}, "end_point": {"row": 29, "column": 33}}, {"id": 136, "type": "if_statement", "text": "if(argc == 3) {\n command = argv[1];\n }", "parent": 12, "children": [137], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 33, "column": 5}}, {"id": 137, "type": "parenthesized_expression", "text": "(argc == 3)", "parent": 136, "children": [138], "start_point": {"row": 31, "column": 6}, "end_point": {"row": 31, "column": 17}}, {"id": 138, "type": "binary_expression", "text": "argc == 3", "parent": 137, "children": [139, 140, 141], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 16}}, {"id": 139, "type": "identifier", "text": "argc", "parent": 138, "children": [], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 11}}, {"id": 140, "type": "==", "text": "==", "parent": 138, "children": [], "start_point": {"row": 31, "column": 12}, "end_point": {"row": 31, "column": 14}}, {"id": 141, "type": "number_literal", "text": "3", "parent": 138, "children": [], "start_point": {"row": 31, "column": 15}, "end_point": {"row": 31, "column": 16}}, {"id": 142, "type": "assignment_expression", "text": "command = argv[1]", "parent": 136, "children": [143, 144, 145], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 25}}, {"id": 143, "type": "identifier", "text": "command", "parent": 142, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 15}}, {"id": 144, "type": "=", "text": "=", "parent": 142, "children": [], "start_point": {"row": 32, "column": 16}, "end_point": {"row": 32, "column": 17}}, {"id": 145, "type": "subscript_expression", "text": "argv[1]", "parent": 142, "children": [146, 147], "start_point": {"row": 32, "column": 18}, "end_point": {"row": 32, "column": 25}}, {"id": 146, "type": "identifier", "text": "argv", "parent": 145, "children": [], "start_point": {"row": 32, "column": 18}, "end_point": {"row": 32, "column": 22}}, {"id": 147, "type": "number_literal", "text": "1", "parent": 145, "children": [], "start_point": {"row": 32, "column": 23}, "end_point": {"row": 32, "column": 24}}, {"id": 148, "type": "if_statement", "text": "if(argc > 3 || argc < 3) {\n fprintf(stderr, \"Usage: check_nss [user|group] [user or group name]\\n\");\n exit(1);\n }", "parent": 12, "children": [149], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 38, "column": 5}}, {"id": 149, "type": "parenthesized_expression", "text": "(argc > 3 || argc < 3)", "parent": 148, "children": [150], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 28}}, {"id": 150, "type": "binary_expression", "text": "argc > 3 || argc < 3", "parent": 149, "children": [151, 155, 156], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 27}}, {"id": 151, "type": "binary_expression", "text": "argc > 3", "parent": 150, "children": [152, 153, 154], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 15}}, {"id": 152, "type": "identifier", "text": "argc", "parent": 151, "children": [], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 11}}, {"id": 153, "type": ">", "text": ">", "parent": 151, "children": [], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 13}}, {"id": 154, "type": "number_literal", "text": "3", "parent": 151, "children": [], "start_point": {"row": 35, "column": 14}, "end_point": {"row": 35, "column": 15}}, {"id": 155, "type": "||", "text": "||", "parent": 150, "children": [], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 18}}, {"id": 156, "type": "binary_expression", "text": "argc < 3", "parent": 150, "children": [157, 158, 159], "start_point": {"row": 35, "column": 19}, "end_point": {"row": 35, "column": 27}}, {"id": 157, "type": "identifier", "text": "argc", "parent": 156, "children": [], "start_point": {"row": 35, "column": 19}, "end_point": {"row": 35, "column": 23}}, {"id": 158, "type": "<", "text": "<", "parent": 156, "children": [], "start_point": {"row": 35, "column": 24}, "end_point": {"row": 35, "column": 25}}, {"id": 159, "type": "number_literal", "text": "3", "parent": 156, "children": [], "start_point": {"row": 35, "column": 26}, "end_point": {"row": 35, "column": 27}}, {"id": 160, "type": "call_expression", "text": "fprintf(stderr, \"Usage: check_nss [user|group] [user or group name]\\n\")", "parent": 148, "children": [161, 162], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 79}}, {"id": 161, "type": "identifier", "text": "fprintf", "parent": 160, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 15}}, {"id": 162, "type": "argument_list", "text": "(stderr, \"Usage: check_nss [user|group] [user or group name]\\n\")", "parent": 160, "children": [163, 164], "start_point": {"row": 36, "column": 15}, "end_point": {"row": 36, "column": 79}}, {"id": 163, "type": "identifier", "text": "stderr", "parent": 162, "children": [], "start_point": {"row": 36, "column": 16}, "end_point": {"row": 36, "column": 22}}, {"id": 164, "type": "string_literal", "text": "\"Usage: check_nss [user|group] [user or group name]\\n\"", "parent": 162, "children": [165], "start_point": {"row": 36, "column": 24}, "end_point": {"row": 36, "column": 78}}, {"id": 165, "type": "escape_sequence", "text": "\\n", "parent": 164, "children": [], "start_point": {"row": 36, "column": 75}, "end_point": {"row": 36, "column": 77}}, {"id": 166, "type": "call_expression", "text": "exit(1)", "parent": 148, "children": [167, 168], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 15}}, {"id": 167, "type": "identifier", "text": "exit", "parent": 166, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 12}}, {"id": 168, "type": "argument_list", "text": "(1)", "parent": 166, "children": [169], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 15}}, {"id": 169, "type": "number_literal", "text": "1", "parent": 168, "children": [], "start_point": {"row": 37, "column": 13}, "end_point": {"row": 37, "column": 14}}, {"id": 170, "type": "if_statement", "text": "if (!strncmp(command, \"group\", strlen(command)))\n {\n\n }", "parent": 12, "children": [171], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 43, "column": 5}}, {"id": 171, "type": "parenthesized_expression", "text": "(!strncmp(command, \"group\", strlen(command)))", "parent": 170, "children": [172], "start_point": {"row": 40, "column": 7}, "end_point": {"row": 40, "column": 52}}, {"id": 172, "type": "unary_expression", "text": "!strncmp(command, \"group\", strlen(command))", "parent": 171, "children": [173, 174], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 51}}, {"id": 173, "type": "!", "text": "!", "parent": 172, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 9}}, {"id": 174, "type": "call_expression", "text": "strncmp(command, \"group\", strlen(command))", "parent": 172, "children": [175, 176], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 51}}, {"id": 175, "type": "identifier", "text": "strncmp", "parent": 174, "children": [], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 16}}, {"id": 176, "type": "argument_list", "text": "(command, \"group\", strlen(command))", "parent": 174, "children": [177, 178, 179], "start_point": {"row": 40, "column": 16}, "end_point": {"row": 40, "column": 51}}, {"id": 177, "type": "identifier", "text": "command", "parent": 176, "children": [], "start_point": {"row": 40, "column": 17}, "end_point": {"row": 40, "column": 24}}, {"id": 178, "type": "string_literal", "text": "\"group\"", "parent": 176, "children": [], "start_point": {"row": 40, "column": 26}, "end_point": {"row": 40, "column": 33}}, {"id": 179, "type": "call_expression", "text": "strlen(command)", "parent": 176, "children": [180, 181], "start_point": {"row": 40, "column": 35}, "end_point": {"row": 40, "column": 50}}, {"id": 180, "type": "identifier", "text": "strlen", "parent": 179, "children": [], "start_point": {"row": 40, "column": 35}, "end_point": {"row": 40, "column": 41}}, {"id": 181, "type": "argument_list", "text": "(command)", "parent": 179, "children": [182], "start_point": {"row": 40, "column": 41}, "end_point": {"row": 40, "column": 50}}, {"id": 182, "type": "identifier", "text": "command", "parent": 181, "children": [], "start_point": {"row": 40, "column": 42}, "end_point": {"row": 40, "column": 49}}, {"id": 183, "type": "return_statement", "text": "return retval;", "parent": 12, "children": [184], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 18}}, {"id": 184, "type": "identifier", "text": "retval", "parent": 183, "children": [], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 44, "column": 17}}]}, "node_categories": {"declarations": {"functions": [12, 14], "variables": [17, 20, 26, 32, 40, 45, 62, 70, 88, 99, 102], "classes": [71, 72, 85, 86], "imports": [0, 1, 3, 4, 6, 7, 9, 10], "modules": [], "enums": [103, 104]}, "statements": {"expressions": [50, 55, 80, 83, 95, 110, 117, 120, 121, 122, 127, 131, 137, 138, 145, 149, 150, 151, 156, 160, 166, 171, 172, 174, 179], "assignments": [77, 107, 142], "loops": [], "conditionals": [15, 19, 25, 29, 37, 43, 48, 51, 53, 54, 56, 60, 61, 67, 73, 76, 78, 81, 87, 93, 96, 101, 105, 106, 108, 111, 113, 114, 115, 118, 119, 123, 125, 128, 130, 132, 136, 139, 143, 146, 148, 152, 157, 161, 163, 167, 170, 175, 177, 180, 182, 184], "returns": [183], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 31, 39, 44, 49, 58, 69, 98, 116, 134, 141, 147, 154, 159, 164, 169, 178], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 12, "universal_type": "function", "name": "main", "text_snippet": "int main(int argc, char *argv[])\n{\n int retval=0;\n const char *command=\"nobody\";\n char host"}, {"node_id": 14, "universal_type": "function", "name": "unknown", "text_snippet": "main(int argc, char *argv[])"}], "class_declarations": [{"node_id": 71, "universal_type": "class", "name": "passwd", "text_snippet": "struct passwd"}, {"node_id": 72, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 85, "universal_type": "class", "name": "passwd", "text_snippet": "struct passwd"}, {"node_id": 86, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include \"nss_http.h\"\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <nss.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <pwd.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"nss_http-passwd.c\"\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "//\n// Created by ajey on 5/7/16.\n\n#include \"nss_http.h\"\n#include <nss.h>\n#include <pwd.h>\n#include \"nss_http-passwd.c\"\n\nint main(int argc, char *argv[])\n{\n int retval=0;\n const char *command=\"nobody\";\n char host_name[255];\n char token[255];\n get_config_host(host_name, token);\n\n printf(\"host %s token %s\\n\", host_name, token);\n\n const char *name=\"dev1\";\n struct passwd *structpasswd;\n structpasswd = malloc(sizeof(struct passwd));\n char * buffer = malloc(512);\n int error_no;\n\n enum nss_status status;\n status = _nss_http_getpwnam_r_locked(name, structpasswd, buffer, 512, &error_no);\n\n if ( status == NSS_STATUS_UNAVAIL || status == NSS_STATUS_TRYAGAIN)\n {\n printf(\"User not found \\n\");\n }\n if(argc == 3) {\n command = argv[1];\n }\n\n if(argc > 3 || argc < 3) {\n fprintf(stderr, \"Usage: check_nss [user|group] [user or group name]\\n\");\n exit(1);\n }\n\n if (!strncmp(command, \"group\", strlen(command)))\n {\n\n }\n return retval;\n}\n\n//\n\n\n\n\n"}
80,242
c
#ifndef KLB_H #define KLB_H #ifdef __cplusplus extern "C" { #endif #include <ImageIO.h> extern PTRIMAGE_FORMAT createKlbFormat(); #ifdef __cplusplus } #endif #endif
12.83
12
(translation_unit) "#ifndef KLB_H\n#define KLB_H\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n#include <ImageIO.h>\n\n\nextern PTRIMAGE_FORMAT createKlbFormat();\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif\n" (preproc_ifdef) "#ifndef KLB_H\n#define KLB_H\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n#include <ImageIO.h>\n\n\nextern PTRIMAGE_FORMAT createKlbFormat();\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif" (#ifndef) "#ifndef" (identifier) "KLB_H" (preproc_def) "#define KLB_H\n" (#define) "#define" (identifier) "KLB_H" (preproc_ifdef) "#ifdef __cplusplus\nextern "C" {\n#endif\n\n#include <ImageIO.h>\n\n\nextern PTRIMAGE_FORMAT createKlbFormat();\n\n#ifdef __cplusplus\n}\n#endif" (#ifdef) "#ifdef" (identifier) "__cplusplus" (linkage_specification) "extern "C" {\n#endif\n\n#include <ImageIO.h>\n\n\nextern PTRIMAGE_FORMAT createKlbFormat();\n\n#ifdef __cplusplus\n}" (extern) "extern" (string_literal) ""C"" (") """ (string_content) "C" (") """ (declaration_list) "{\n#endif\n\n#include <ImageIO.h>\n\n\nextern PTRIMAGE_FORMAT createKlbFormat();\n\n#ifdef __cplusplus\n}" ({) "{" (preproc_call) "#endif\n" (preproc_directive) "#endif" (preproc_include) "#include <ImageIO.h>\n" (#include) "#include" (system_lib_string) "<ImageIO.h>" (declaration) "extern PTRIMAGE_FORMAT createKlbFormat();" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "PTRIMAGE_FORMAT" (function_declarator) "createKlbFormat()" (identifier) "createKlbFormat" (parameter_list) "()" (() "(" ()) ")" (;) ";" (preproc_ifdef) "#ifdef __cplusplus" (#ifdef) "#ifdef" (identifier) "__cplusplus" (#endif) "" (}) "}" (#endif) "#endif" (#endif) "#endif"
40
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 12.83, "nodes": 30, "errors": 0, "source_hash": "37272aa185db303ef2633f08809b4b4520d7e9ff8bb37a17b6a607f31c518557", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef KLB_H\n#define KLB_H\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n#include <ImageIO.h>\n\n\nextern PTRIMAGE_FORMAT createKlbFormat();\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 29], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 17, "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": "KLB_H", "parent": 0, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 13}}, {"id": 3, "type": "preproc_def", "text": "#define KLB_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": "KLB_H", "parent": 3, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 13}}, {"id": 6, "type": "preproc_ifdef", "text": "#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n#include <ImageIO.h>\n\n\nextern PTRIMAGE_FORMAT createKlbFormat();\n\n#ifdef __cplusplus\n}\n#endif", "parent": 0, "children": [7, 8, 9, 28], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 15, "column": 6}}, {"id": 7, "type": "#ifdef", "text": "#ifdef", "parent": 6, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 6}}, {"id": 8, "type": "identifier", "text": "__cplusplus", "parent": 6, "children": [], "start_point": {"row": 4, "column": 7}, "end_point": {"row": 4, "column": 18}}, {"id": 9, "type": "linkage_specification", "text": "extern \"C\" {\n#endif\n\n#include <ImageIO.h>\n\n\nextern PTRIMAGE_FORMAT createKlbFormat();\n\n#ifdef __cplusplus\n}", "parent": 6, "children": [10, 11], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 10, "type": "extern", "text": "extern", "parent": 9, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 6}}, {"id": 11, "type": "string_literal", "text": "\"C\"", "parent": 9, "children": [], "start_point": {"row": 5, "column": 7}, "end_point": {"row": 5, "column": 10}}, {"id": 12, "type": "preproc_call", "text": "#endif\n", "parent": 9, "children": [13], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 13, "type": "preproc_directive", "text": "#endif", "parent": 12, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 6}}, {"id": 14, "type": "preproc_include", "text": "#include <ImageIO.h>\n", "parent": 9, "children": [15, 16], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 15, "type": "#include", "text": "#include", "parent": 14, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 16, "type": "system_lib_string", "text": "<ImageIO.h>", "parent": 14, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 20}}, {"id": 17, "type": "declaration", "text": "extern PTRIMAGE_FORMAT createKlbFormat();", "parent": 9, "children": [18, 20, 21], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 41}}, {"id": 18, "type": "storage_class_specifier", "text": "extern", "parent": 17, "children": [19], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 6}}, {"id": 19, "type": "extern", "text": "extern", "parent": 18, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 6}}, {"id": 20, "type": "type_identifier", "text": "PTRIMAGE_FORMAT", "parent": 17, "children": [], "start_point": {"row": 11, "column": 7}, "end_point": {"row": 11, "column": 22}}, {"id": 21, "type": "function_declarator", "text": "createKlbFormat()", "parent": 17, "children": [22, 23], "start_point": {"row": 11, "column": 23}, "end_point": {"row": 11, "column": 40}}, {"id": 22, "type": "identifier", "text": "createKlbFormat", "parent": 21, "children": [], "start_point": {"row": 11, "column": 23}, "end_point": {"row": 11, "column": 38}}, {"id": 23, "type": "parameter_list", "text": "()", "parent": 21, "children": [], "start_point": {"row": 11, "column": 38}, "end_point": {"row": 11, "column": 40}}, {"id": 24, "type": "preproc_ifdef", "text": "#ifdef __cplusplus", "parent": 9, "children": [25, 26, 27], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 18}}, {"id": 25, "type": "#ifdef", "text": "#ifdef", "parent": 24, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 6}}, {"id": 26, "type": "identifier", "text": "__cplusplus", "parent": 24, "children": [], "start_point": {"row": 13, "column": 7}, "end_point": {"row": 13, "column": 18}}, {"id": 27, "type": "#endif", "text": "", "parent": 24, "children": [], "start_point": {"row": 13, "column": 18}, "end_point": {"row": 13, "column": 18}}, {"id": 28, "type": "#endif", "text": "#endif", "parent": 6, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 6}}, {"id": 29, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 6}}]}, "node_categories": {"declarations": {"functions": [21], "variables": [17], "classes": [18], "imports": [14, 15], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 6, 7, 8, 9, 20, 22, 24, 25, 26, 27, 28, 29], "returns": [], "exceptions": []}, "expressions": {"calls": [12], "literals": [11, 16], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 21, "universal_type": "function", "name": "unknown", "text_snippet": "createKlbFormat()"}], "class_declarations": [{"node_id": 18, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}], "import_statements": [{"node_id": 14, "text": "#include <ImageIO.h>\n"}, {"node_id": 15, "text": "#include"}]}, "original_source_code": "\n#ifndef KLB_H\n#define KLB_H\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n#include <ImageIO.h>\n\n\nextern PTRIMAGE_FORMAT createKlbFormat();\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif\n"}
80,243
c
/** \file misc.h \brief Miscelaneous map operations. */ #ifndef _STARRY_MISC_H_ #define _STARRY_MISC_H_ #include "utils.h" #include "wigner.h" namespace starry { namespace misc { using namespace utils; /** Compute the Ylm expansion of a spot at a given latitude/longitude on the map. */ template <class Scalar> inline Matrix<Scalar> spotYlm(const RowVector<Scalar> &amp, const Scalar &sigma, const Scalar &lat, const Scalar &lon, int l, wigner::Wigner<Scalar> &W) { // Compute the integrals recursively Vector<Scalar> IP(l + 1); Vector<Scalar> ID(l + 1); Matrix<Scalar> y((l + 1) * (l + 1), amp.cols()); y.setZero(); // Constants Scalar a = 1.0 / (2 * sigma * sigma); Scalar sqrta = sqrt(a); Scalar erfa = erf(2 * sqrta); Scalar term = exp(-4 * a); // Seeding values IP(0) = root_pi<Scalar>() / (2 * sqrta) * erfa; IP(1) = (root_pi<Scalar>() * sqrta * erfa + term - 1) / (2 * a); ID(0) = 0; ID(1) = IP(0); // Recurse int sgn = -1; for (int n = 2; n < l + 1; ++n) { IP(n) = (2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) + (2.0 * n - 1.0) / n * IP(n - 1) - (n - 1.0) / n * IP(n - 2); ID(n) = (2.0 * n - 1.0) * IP(n - 1) + ID(n - 2); sgn *= -1; } // Compute the coefficients of the expansion for (int n = 0; n < l + 1; ++n) y.row(n * n + n) = amp * sqrt(2 * n + 1) * (IP(n) / IP(0)); // Rotate the spot to the correct lat/lon // We are computing the compound rotation matrix // // R = R(yhat, lon) . R(xhat, -lat) // // in one go. Scalar tol = 10 * mach_eps<Scalar>(); if ((abs(lat) > tol) || (abs(lon) > tol)) { Scalar clat = cos(lat); Scalar clon = cos(lon); Scalar slat = sin(lat); Scalar slon = sin(lon); Scalar costheta = 0.5 * (clon + clat + clon * clat - 1); UnitVector<Scalar> u; u << -slat * (1 + clon), slon * (1 + clat), slon * slat; Scalar normu = u.norm(); u /= normu; Scalar sintheta = 0.5 * normu; Scalar theta = atan2(sintheta, costheta); W.dotR(y.transpose(), u(0), u(1), u(2), -theta); y = W.dotR_result.transpose(); } return y; } /** Compute the gradient of the Ylm expansion of a spot at a given latitude/longitude on the map. This routine uses forward diff pretty inefficiently and can be sped up if we think about it more carefully. */ template <class Scalar> inline void spotYlm(const RowVector<Scalar> &amp, const Scalar &sigma_, const Scalar &lat, const Scalar &lon, const Matrix<double> &by, int l, wigner::Wigner<Scalar> &W, RowVector<Scalar> &bamp, Scalar &bsigma, Scalar &blat, Scalar &blon) { // Forward diff for sigma // TODO: Compute the backprop expression using ADType = ADScalar<Scalar, 1>; ADType sigma = sigma_; sigma.derivatives() = Vector<Scalar>::Unit(1, 0); // Compute the integrals recursively Vector<ADType> IP(l + 1); Vector<ADType> ID(l + 1); Vector<Scalar> y((l + 1) * (l + 1)); y.setZero(); ADType yn; Vector<Scalar> dydsigma((l + 1) * (l + 1)); dydsigma.setZero(); // Constants ADType a = 1.0 / (2 * sigma * sigma); ADType sqrta = sqrt(a); ADType erfa = erf(2 * sqrta.value()); erfa.derivatives()(0) = -sqrt(32 / pi<Scalar>()) * exp(-4 * a.value()) * a.value(); ADType term = exp(-4 * a); // Seeding values IP(0) = root_pi<Scalar>() / (2 * sqrta) * erfa; IP(1) = (root_pi<Scalar>() * sqrta * erfa + term - 1) / (2 * a); ID(0) = 0; ID(1) = IP(0); // Recurse int sgn = -1; for (int n = 2; n < l + 1; ++n) { IP(n) = (2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) + (2.0 * n - 1.0) / n * IP(n - 1) - (n - 1.0) / n * IP(n - 2); ID(n) = (2.0 * n - 1.0) * IP(n - 1) + ID(n - 2); sgn *= -1; } // Compute the coefficients of the expansion (w/o the amplitude) for (int n = 0; n < l + 1; ++n) { yn = sqrt(2 * n + 1) * (IP(n) / IP(0)); y(n * n + n) = yn.value(); dydsigma(n * n + n) = yn.derivatives()(0); } // Rotate the spot to the correct lat/lon Scalar tol = 10 * mach_eps<Scalar>(); UnitVector<Scalar> u; Scalar normu; Scalar theta; Scalar clat = cos(lat); Scalar clon = cos(lon); Scalar slat = sin(lat); Scalar slon = sin(lon); // Axis & angle of rotation if ((abs(lat) > tol) || (abs(lon) > tol)) { Scalar costheta = 0.5 * (clon + clat + clon * clat - 1); u << -slat * (1 + clon), slon * (1 + clat), slon * slat; normu = u.norm(); u /= normu; Scalar sintheta = 0.5 * normu; theta = atan2(sintheta, costheta); } else { theta = 0.0; u << 0, 1, 0; normu = 1; } // Gradient w/ respect to lat, lon, and sigma Matrix<Scalar> y_amp = y * amp; W.dotR(y_amp.transpose(), u(0), u(1), u(2), -theta, by.transpose()); // lat Scalar termz = (clat * (1 + clon) * (1 + clon) * slat - slat * slon * slon) / (normu * normu * normu); Scalar dxdl = -clat * (1 + clon) / normu + (1 + clon) * slat * termz; Scalar dydl = -slat * slon / normu - (1 + clat) * slon * termz; Scalar dzdl = clat * slon / normu - slat * slon * termz; Scalar dthetadl = -u(0); blat = (dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz - dthetadl * W.dotR_btheta); // lon termz = (clon * (1 + clat) * (1 + clat) * slon - slon * slat * slat) / (normu * normu * normu); dxdl = slat * slon / normu + (1 + clon) * slat * termz; dydl = (1 + clat) * clon / normu - (1 + clat) * slon * termz; dzdl = clon * slat / normu - slat * slon * termz; dthetadl = u(1); blon = (dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz - dthetadl * W.dotR_btheta); // sigma W.dotR(dydsigma.transpose(), u(0), u(1), u(2), -theta); dydsigma = W.dotR_result.transpose(); bsigma = (by.transpose() * dydsigma).dot(amp); // Compute the actual result (w/o amplitude) W.dotR(y.transpose(), u(0), u(1), u(2), -theta); y = W.dotR_result.transpose(); // Gradient of amplitude bamp = y.transpose() * by; } } // namespace misc } // namespace starry #endif
33.93
175
(translation_unit) "/**\n\file misc.h\n\brief Miscelaneous map operations.\n\n*/\n\n#ifndef _STARRY_MISC_H_\n#define _STARRY_MISC_H_\n\n#include "utils.h"\n#include "wigner.h"\n\nnamespace starry {\nnamespace misc {\n\nusing namespace utils;\n\n/**\nCompute the Ylm expansion of a spot at a given latitude/longitude on the map.\n\n*/\ntemplate <class Scalar>\ninline Matrix<Scalar> spotYlm(const RowVector<Scalar> &amp, const Scalar &sigma,\n const Scalar &lat, const Scalar &lon, int l,\n wigner::Wigner<Scalar> &W) {\n // Compute the integrals recursively\n Vector<Scalar> IP(l + 1);\n Vector<Scalar> ID(l + 1);\n Matrix<Scalar> y((l + 1) * (l + 1), amp.cols());\n y.setZero();\n\n // Constants\n Scalar a = 1.0 / (2 * sigma * sigma);\n Scalar sqrta = sqrt(a);\n Scalar erfa = erf(2 * sqrta);\n Scalar term = exp(-4 * a);\n\n // Seeding values\n IP(0) = root_pi<Scalar>() / (2 * sqrta) * erfa;\n IP(1) = (root_pi<Scalar>() * sqrta * erfa + term - 1) / (2 * a);\n ID(0) = 0;\n ID(1) = IP(0);\n\n // Recurse\n int sgn = -1;\n for (int n = 2; n < l + 1; ++n) {\n IP(n) = (2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1) - (n - 1.0) / n * IP(n - 2);\n ID(n) = (2.0 * n - 1.0) * IP(n - 1) + ID(n - 2);\n sgn *= -1;\n }\n\n // Compute the coefficients of the expansion\n for (int n = 0; n < l + 1; ++n)\n y.row(n * n + n) = amp * sqrt(2 * n + 1) * (IP(n) / IP(0));\n\n // Rotate the spot to the correct lat/lon\n // We are computing the compound rotation matrix\n //\n // R = R(yhat, lon) . R(xhat, -lat)\n //\n // in one go.\n Scalar tol = 10 * mach_eps<Scalar>();\n if ((abs(lat) > tol) || (abs(lon) > tol)) {\n Scalar clat = cos(lat);\n Scalar clon = cos(lon);\n Scalar slat = sin(lat);\n Scalar slon = sin(lon);\n Scalar costheta = 0.5 * (clon + clat + clon * clat - 1);\n UnitVector<Scalar> u;\n u << -slat * (1 + clon), slon * (1 + clat), slon * slat;\n Scalar normu = u.norm();\n u /= normu;\n Scalar sintheta = 0.5 * normu;\n Scalar theta = atan2(sintheta, costheta);\n W.dotR(y.transpose(), u(0), u(1), u(2), -theta);\n y = W.dotR_result.transpose();\n }\n\n return y;\n}\n\n/**\nCompute the gradient of the Ylm expansion of a spot at a\ngiven latitude/longitude on the map.\n\nThis routine uses forward diff pretty inefficiently and\ncan be sped up if we think about it more carefully.\n\n*/\ntemplate <class Scalar>\ninline void spotYlm(const RowVector<Scalar> &amp, const Scalar &sigma_,\n const Scalar &lat, const Scalar &lon,\n const Matrix<double> &by, int l, wigner::Wigner<Scalar> &W,\n RowVector<Scalar> &bamp, Scalar &bsigma, Scalar &blat,\n Scalar &blon) {\n\n // Forward diff for sigma\n // TODO: Compute the backprop expression\n using ADType = ADScalar<Scalar, 1>;\n ADType sigma = sigma_;\n sigma.derivatives() = Vector<Scalar>::Unit(1, 0);\n\n // Compute the integrals recursively\n Vector<ADType> IP(l + 1);\n Vector<ADType> ID(l + 1);\n Vector<Scalar> y((l + 1) * (l + 1));\n y.setZero();\n ADType yn;\n Vector<Scalar> dydsigma((l + 1) * (l + 1));\n dydsigma.setZero();\n\n // Constants\n ADType a = 1.0 / (2 * sigma * sigma);\n ADType sqrta = sqrt(a);\n ADType erfa = erf(2 * sqrta.value());\n erfa.derivatives()(0) =\n -sqrt(32 / pi<Scalar>()) * exp(-4 * a.value()) * a.value();\n ADType term = exp(-4 * a);\n\n // Seeding values\n IP(0) = root_pi<Scalar>() / (2 * sqrta) * erfa;\n IP(1) = (root_pi<Scalar>() * sqrta * erfa + term - 1) / (2 * a);\n ID(0) = 0;\n ID(1) = IP(0);\n\n // Recurse\n int sgn = -1;\n for (int n = 2; n < l + 1; ++n) {\n IP(n) = (2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1) - (n - 1.0) / n * IP(n - 2);\n ID(n) = (2.0 * n - 1.0) * IP(n - 1) + ID(n - 2);\n sgn *= -1;\n }\n\n // Compute the coefficients of the expansion (w/o the amplitude)\n for (int n = 0; n < l + 1; ++n) {\n yn = sqrt(2 * n + 1) * (IP(n) / IP(0));\n y(n * n + n) = yn.value();\n dydsigma(n * n + n) = yn.derivatives()(0);\n }\n\n // Rotate the spot to the correct lat/lon\n Scalar tol = 10 * mach_eps<Scalar>();\n UnitVector<Scalar> u;\n Scalar normu;\n Scalar theta;\n Scalar clat = cos(lat);\n Scalar clon = cos(lon);\n Scalar slat = sin(lat);\n Scalar slon = sin(lon);\n\n // Axis & angle of rotation\n if ((abs(lat) > tol) || (abs(lon) > tol)) {\n Scalar costheta = 0.5 * (clon + clat + clon * clat - 1);\n u << -slat * (1 + clon), slon * (1 + clat), slon * slat;\n normu = u.norm();\n u /= normu;\n Scalar sintheta = 0.5 * normu;\n theta = atan2(sintheta, costheta);\n } else {\n theta = 0.0;\n u << 0, 1, 0;\n normu = 1;\n }\n\n // Gradient w/ respect to lat, lon, and sigma\n Matrix<Scalar> y_amp = y * amp;\n W.dotR(y_amp.transpose(), u(0), u(1), u(2), -theta, by.transpose());\n\n // lat\n Scalar termz = (clat * (1 + clon) * (1 + clon) * slat - slat * slon * slon) /\n (normu * normu * normu);\n Scalar dxdl = -clat * (1 + clon) / normu + (1 + clon) * slat * termz;\n Scalar dydl = -slat * slon / normu - (1 + clat) * slon * termz;\n Scalar dzdl = clat * slon / normu - slat * slon * termz;\n Scalar dthetadl = -u(0);\n blat = (dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz -\n dthetadl * W.dotR_btheta);\n\n // lon\n termz = (clon * (1 + clat) * (1 + clat) * slon - slon * slat * slat) /\n (normu * normu * normu);\n dxdl = slat * slon / normu + (1 + clon) * slat * termz;\n dydl = (1 + clat) * clon / normu - (1 + clat) * slon * termz;\n dzdl = clon * slat / normu - slat * slon * termz;\n dthetadl = u(1);\n blon = (dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz -\n dthetadl * W.dotR_btheta);\n\n // sigma\n W.dotR(dydsigma.transpose(), u(0), u(1), u(2), -theta);\n dydsigma = W.dotR_result.transpose();\n bsigma = (by.transpose() * dydsigma).dot(amp);\n\n // Compute the actual result (w/o amplitude)\n W.dotR(y.transpose(), u(0), u(1), u(2), -theta);\n y = W.dotR_result.transpose();\n\n // Gradient of amplitude\n bamp = y.transpose() * by;\n}\n\n} // namespace misc\n} // namespace starry\n#endif" (comment) "/**\n\file misc.h\n\brief Miscelaneous map operations.\n\n*/" (preproc_ifdef) "#ifndef _STARRY_MISC_H_\n#define _STARRY_MISC_H_\n\n#include "utils.h"\n#include "wigner.h"\n\nnamespace starry {\nnamespace misc {\n\nusing namespace utils;\n\n/**\nCompute the Ylm expansion of a spot at a given latitude/longitude on the map.\n\n*/\ntemplate <class Scalar>\ninline Matrix<Scalar> spotYlm(const RowVector<Scalar> &amp, const Scalar &sigma,\n const Scalar &lat, const Scalar &lon, int l,\n wigner::Wigner<Scalar> &W) {\n // Compute the integrals recursively\n Vector<Scalar> IP(l + 1);\n Vector<Scalar> ID(l + 1);\n Matrix<Scalar> y((l + 1) * (l + 1), amp.cols());\n y.setZero();\n\n // Constants\n Scalar a = 1.0 / (2 * sigma * sigma);\n Scalar sqrta = sqrt(a);\n Scalar erfa = erf(2 * sqrta);\n Scalar term = exp(-4 * a);\n\n // Seeding values\n IP(0) = root_pi<Scalar>() / (2 * sqrta) * erfa;\n IP(1) = (root_pi<Scalar>() * sqrta * erfa + term - 1) / (2 * a);\n ID(0) = 0;\n ID(1) = IP(0);\n\n // Recurse\n int sgn = -1;\n for (int n = 2; n < l + 1; ++n) {\n IP(n) = (2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1) - (n - 1.0) / n * IP(n - 2);\n ID(n) = (2.0 * n - 1.0) * IP(n - 1) + ID(n - 2);\n sgn *= -1;\n }\n\n // Compute the coefficients of the expansion\n for (int n = 0; n < l + 1; ++n)\n y.row(n * n + n) = amp * sqrt(2 * n + 1) * (IP(n) / IP(0));\n\n // Rotate the spot to the correct lat/lon\n // We are computing the compound rotation matrix\n //\n // R = R(yhat, lon) . R(xhat, -lat)\n //\n // in one go.\n Scalar tol = 10 * mach_eps<Scalar>();\n if ((abs(lat) > tol) || (abs(lon) > tol)) {\n Scalar clat = cos(lat);\n Scalar clon = cos(lon);\n Scalar slat = sin(lat);\n Scalar slon = sin(lon);\n Scalar costheta = 0.5 * (clon + clat + clon * clat - 1);\n UnitVector<Scalar> u;\n u << -slat * (1 + clon), slon * (1 + clat), slon * slat;\n Scalar normu = u.norm();\n u /= normu;\n Scalar sintheta = 0.5 * normu;\n Scalar theta = atan2(sintheta, costheta);\n W.dotR(y.transpose(), u(0), u(1), u(2), -theta);\n y = W.dotR_result.transpose();\n }\n\n return y;\n}\n\n/**\nCompute the gradient of the Ylm expansion of a spot at a\ngiven latitude/longitude on the map.\n\nThis routine uses forward diff pretty inefficiently and\ncan be sped up if we think about it more carefully.\n\n*/\ntemplate <class Scalar>\ninline void spotYlm(const RowVector<Scalar> &amp, const Scalar &sigma_,\n const Scalar &lat, const Scalar &lon,\n const Matrix<double> &by, int l, wigner::Wigner<Scalar> &W,\n RowVector<Scalar> &bamp, Scalar &bsigma, Scalar &blat,\n Scalar &blon) {\n\n // Forward diff for sigma\n // TODO: Compute the backprop expression\n using ADType = ADScalar<Scalar, 1>;\n ADType sigma = sigma_;\n sigma.derivatives() = Vector<Scalar>::Unit(1, 0);\n\n // Compute the integrals recursively\n Vector<ADType> IP(l + 1);\n Vector<ADType> ID(l + 1);\n Vector<Scalar> y((l + 1) * (l + 1));\n y.setZero();\n ADType yn;\n Vector<Scalar> dydsigma((l + 1) * (l + 1));\n dydsigma.setZero();\n\n // Constants\n ADType a = 1.0 / (2 * sigma * sigma);\n ADType sqrta = sqrt(a);\n ADType erfa = erf(2 * sqrta.value());\n erfa.derivatives()(0) =\n -sqrt(32 / pi<Scalar>()) * exp(-4 * a.value()) * a.value();\n ADType term = exp(-4 * a);\n\n // Seeding values\n IP(0) = root_pi<Scalar>() / (2 * sqrta) * erfa;\n IP(1) = (root_pi<Scalar>() * sqrta * erfa + term - 1) / (2 * a);\n ID(0) = 0;\n ID(1) = IP(0);\n\n // Recurse\n int sgn = -1;\n for (int n = 2; n < l + 1; ++n) {\n IP(n) = (2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1) - (n - 1.0) / n * IP(n - 2);\n ID(n) = (2.0 * n - 1.0) * IP(n - 1) + ID(n - 2);\n sgn *= -1;\n }\n\n // Compute the coefficients of the expansion (w/o the amplitude)\n for (int n = 0; n < l + 1; ++n) {\n yn = sqrt(2 * n + 1) * (IP(n) / IP(0));\n y(n * n + n) = yn.value();\n dydsigma(n * n + n) = yn.derivatives()(0);\n }\n\n // Rotate the spot to the correct lat/lon\n Scalar tol = 10 * mach_eps<Scalar>();\n UnitVector<Scalar> u;\n Scalar normu;\n Scalar theta;\n Scalar clat = cos(lat);\n Scalar clon = cos(lon);\n Scalar slat = sin(lat);\n Scalar slon = sin(lon);\n\n // Axis & angle of rotation\n if ((abs(lat) > tol) || (abs(lon) > tol)) {\n Scalar costheta = 0.5 * (clon + clat + clon * clat - 1);\n u << -slat * (1 + clon), slon * (1 + clat), slon * slat;\n normu = u.norm();\n u /= normu;\n Scalar sintheta = 0.5 * normu;\n theta = atan2(sintheta, costheta);\n } else {\n theta = 0.0;\n u << 0, 1, 0;\n normu = 1;\n }\n\n // Gradient w/ respect to lat, lon, and sigma\n Matrix<Scalar> y_amp = y * amp;\n W.dotR(y_amp.transpose(), u(0), u(1), u(2), -theta, by.transpose());\n\n // lat\n Scalar termz = (clat * (1 + clon) * (1 + clon) * slat - slat * slon * slon) /\n (normu * normu * normu);\n Scalar dxdl = -clat * (1 + clon) / normu + (1 + clon) * slat * termz;\n Scalar dydl = -slat * slon / normu - (1 + clat) * slon * termz;\n Scalar dzdl = clat * slon / normu - slat * slon * termz;\n Scalar dthetadl = -u(0);\n blat = (dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz -\n dthetadl * W.dotR_btheta);\n\n // lon\n termz = (clon * (1 + clat) * (1 + clat) * slon - slon * slat * slat) /\n (normu * normu * normu);\n dxdl = slat * slon / normu + (1 + clon) * slat * termz;\n dydl = (1 + clat) * clon / normu - (1 + clat) * slon * termz;\n dzdl = clon * slat / normu - slat * slon * termz;\n dthetadl = u(1);\n blon = (dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz -\n dthetadl * W.dotR_btheta);\n\n // sigma\n W.dotR(dydsigma.transpose(), u(0), u(1), u(2), -theta);\n dydsigma = W.dotR_result.transpose();\n bsigma = (by.transpose() * dydsigma).dot(amp);\n\n // Compute the actual result (w/o amplitude)\n W.dotR(y.transpose(), u(0), u(1), u(2), -theta);\n y = W.dotR_result.transpose();\n\n // Gradient of amplitude\n bamp = y.transpose() * by;\n}\n\n} // namespace misc\n} // namespace starry\n#endif" (#ifndef) "#ifndef" (identifier) "_STARRY_MISC_H_" (preproc_def) "#define _STARRY_MISC_H_\n" (#define) "#define" (identifier) "_STARRY_MISC_H_" (preproc_include) "#include "utils.h"\n" (#include) "#include" (string_literal) ""utils.h"" (") """ (string_content) "utils.h" (") """ (preproc_include) "#include "wigner.h"\n" (#include) "#include" (string_literal) ""wigner.h"" (") """ (string_content) "wigner.h" (") """ (function_definition) "namespace starry {\nnamespace misc {\n\nusing namespace utils;\n\n/**\nCompute the Ylm expansion of a spot at a given latitude/longitude on the map.\n\n*/\ntemplate <class Scalar>\ninline Matrix<Scalar> spotYlm(const RowVector<Scalar> &amp, const Scalar &sigma,\n const Scalar &lat, const Scalar &lon, int l,\n wigner::Wigner<Scalar> &W) {\n // Compute the integrals recursively\n Vector<Scalar> IP(l + 1);\n Vector<Scalar> ID(l + 1);\n Matrix<Scalar> y((l + 1) * (l + 1), amp.cols());\n y.setZero();\n\n // Constants\n Scalar a = 1.0 / (2 * sigma * sigma);\n Scalar sqrta = sqrt(a);\n Scalar erfa = erf(2 * sqrta);\n Scalar term = exp(-4 * a);\n\n // Seeding values\n IP(0) = root_pi<Scalar>() / (2 * sqrta) * erfa;\n IP(1) = (root_pi<Scalar>() * sqrta * erfa + term - 1) / (2 * a);\n ID(0) = 0;\n ID(1) = IP(0);\n\n // Recurse\n int sgn = -1;\n for (int n = 2; n < l + 1; ++n) {\n IP(n) = (2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1) - (n - 1.0) / n * IP(n - 2);\n ID(n) = (2.0 * n - 1.0) * IP(n - 1) + ID(n - 2);\n sgn *= -1;\n }\n\n // Compute the coefficients of the expansion\n for (int n = 0; n < l + 1; ++n)\n y.row(n * n + n) = amp * sqrt(2 * n + 1) * (IP(n) / IP(0));\n\n // Rotate the spot to the correct lat/lon\n // We are computing the compound rotation matrix\n //\n // R = R(yhat, lon) . R(xhat, -lat)\n //\n // in one go.\n Scalar tol = 10 * mach_eps<Scalar>();\n if ((abs(lat) > tol) || (abs(lon) > tol)) {\n Scalar clat = cos(lat);\n Scalar clon = cos(lon);\n Scalar slat = sin(lat);\n Scalar slon = sin(lon);\n Scalar costheta = 0.5 * (clon + clat + clon * clat - 1);\n UnitVector<Scalar> u;\n u << -slat * (1 + clon), slon * (1 + clat), slon * slat;\n Scalar normu = u.norm();\n u /= normu;\n Scalar sintheta = 0.5 * normu;\n Scalar theta = atan2(sintheta, costheta);\n W.dotR(y.transpose(), u(0), u(1), u(2), -theta);\n y = W.dotR_result.transpose();\n }\n\n return y;\n}\n\n/**\nCompute the gradient of the Ylm expansion of a spot at a\ngiven latitude/longitude on the map.\n\nThis routine uses forward diff pretty inefficiently and\ncan be sped up if we think about it more carefully.\n\n*/\ntemplate <class Scalar>\ninline void spotYlm(const RowVector<Scalar> &amp, const Scalar &sigma_,\n const Scalar &lat, const Scalar &lon,\n const Matrix<double> &by, int l, wigner::Wigner<Scalar> &W,\n RowVector<Scalar> &bamp, Scalar &bsigma, Scalar &blat,\n Scalar &blon) {\n\n // Forward diff for sigma\n // TODO: Compute the backprop expression\n using ADType = ADScalar<Scalar, 1>;\n ADType sigma = sigma_;\n sigma.derivatives() = Vector<Scalar>::Unit(1, 0);\n\n // Compute the integrals recursively\n Vector<ADType> IP(l + 1);\n Vector<ADType> ID(l + 1);\n Vector<Scalar> y((l + 1) * (l + 1));\n y.setZero();\n ADType yn;\n Vector<Scalar> dydsigma((l + 1) * (l + 1));\n dydsigma.setZero();\n\n // Constants\n ADType a = 1.0 / (2 * sigma * sigma);\n ADType sqrta = sqrt(a);\n ADType erfa = erf(2 * sqrta.value());\n erfa.derivatives()(0) =\n -sqrt(32 / pi<Scalar>()) * exp(-4 * a.value()) * a.value();\n ADType term = exp(-4 * a);\n\n // Seeding values\n IP(0) = root_pi<Scalar>() / (2 * sqrta) * erfa;\n IP(1) = (root_pi<Scalar>() * sqrta * erfa + term - 1) / (2 * a);\n ID(0) = 0;\n ID(1) = IP(0);\n\n // Recurse\n int sgn = -1;\n for (int n = 2; n < l + 1; ++n) {\n IP(n) = (2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1) - (n - 1.0) / n * IP(n - 2);\n ID(n) = (2.0 * n - 1.0) * IP(n - 1) + ID(n - 2);\n sgn *= -1;\n }\n\n // Compute the coefficients of the expansion (w/o the amplitude)\n for (int n = 0; n < l + 1; ++n) {\n yn = sqrt(2 * n + 1) * (IP(n) / IP(0));\n y(n * n + n) = yn.value();\n dydsigma(n * n + n) = yn.derivatives()(0);\n }\n\n // Rotate the spot to the correct lat/lon\n Scalar tol = 10 * mach_eps<Scalar>();\n UnitVector<Scalar> u;\n Scalar normu;\n Scalar theta;\n Scalar clat = cos(lat);\n Scalar clon = cos(lon);\n Scalar slat = sin(lat);\n Scalar slon = sin(lon);\n\n // Axis & angle of rotation\n if ((abs(lat) > tol) || (abs(lon) > tol)) {\n Scalar costheta = 0.5 * (clon + clat + clon * clat - 1);\n u << -slat * (1 + clon), slon * (1 + clat), slon * slat;\n normu = u.norm();\n u /= normu;\n Scalar sintheta = 0.5 * normu;\n theta = atan2(sintheta, costheta);\n } else {\n theta = 0.0;\n u << 0, 1, 0;\n normu = 1;\n }\n\n // Gradient w/ respect to lat, lon, and sigma\n Matrix<Scalar> y_amp = y * amp;\n W.dotR(y_amp.transpose(), u(0), u(1), u(2), -theta, by.transpose());\n\n // lat\n Scalar termz = (clat * (1 + clon) * (1 + clon) * slat - slat * slon * slon) /\n (normu * normu * normu);\n Scalar dxdl = -clat * (1 + clon) / normu + (1 + clon) * slat * termz;\n Scalar dydl = -slat * slon / normu - (1 + clat) * slon * termz;\n Scalar dzdl = clat * slon / normu - slat * slon * termz;\n Scalar dthetadl = -u(0);\n blat = (dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz -\n dthetadl * W.dotR_btheta);\n\n // lon\n termz = (clon * (1 + clat) * (1 + clat) * slon - slon * slat * slat) /\n (normu * normu * normu);\n dxdl = slat * slon / normu + (1 + clon) * slat * termz;\n dydl = (1 + clat) * clon / normu - (1 + clat) * slon * termz;\n dzdl = clon * slat / normu - slat * slon * termz;\n dthetadl = u(1);\n blon = (dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz -\n dthetadl * W.dotR_btheta);\n\n // sigma\n W.dotR(dydsigma.transpose(), u(0), u(1), u(2), -theta);\n dydsigma = W.dotR_result.transpose();\n bsigma = (by.transpose() * dydsigma).dot(amp);\n\n // Compute the actual result (w/o amplitude)\n W.dotR(y.transpose(), u(0), u(1), u(2), -theta);\n y = W.dotR_result.transpose();\n\n // Gradient of amplitude\n bamp = y.transpose() * by;\n}\n\n} // namespace misc\n}" (type_identifier) "namespace" (identifier) "starry" (compound_statement) "{\nnamespace misc {\n\nusing namespace utils;\n\n/**\nCompute the Ylm expansion of a spot at a given latitude/longitude on the map.\n\n*/\ntemplate <class Scalar>\ninline Matrix<Scalar> spotYlm(const RowVector<Scalar> &amp, const Scalar &sigma,\n const Scalar &lat, const Scalar &lon, int l,\n wigner::Wigner<Scalar> &W) {\n // Compute the integrals recursively\n Vector<Scalar> IP(l + 1);\n Vector<Scalar> ID(l + 1);\n Matrix<Scalar> y((l + 1) * (l + 1), amp.cols());\n y.setZero();\n\n // Constants\n Scalar a = 1.0 / (2 * sigma * sigma);\n Scalar sqrta = sqrt(a);\n Scalar erfa = erf(2 * sqrta);\n Scalar term = exp(-4 * a);\n\n // Seeding values\n IP(0) = root_pi<Scalar>() / (2 * sqrta) * erfa;\n IP(1) = (root_pi<Scalar>() * sqrta * erfa + term - 1) / (2 * a);\n ID(0) = 0;\n ID(1) = IP(0);\n\n // Recurse\n int sgn = -1;\n for (int n = 2; n < l + 1; ++n) {\n IP(n) = (2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1) - (n - 1.0) / n * IP(n - 2);\n ID(n) = (2.0 * n - 1.0) * IP(n - 1) + ID(n - 2);\n sgn *= -1;\n }\n\n // Compute the coefficients of the expansion\n for (int n = 0; n < l + 1; ++n)\n y.row(n * n + n) = amp * sqrt(2 * n + 1) * (IP(n) / IP(0));\n\n // Rotate the spot to the correct lat/lon\n // We are computing the compound rotation matrix\n //\n // R = R(yhat, lon) . R(xhat, -lat)\n //\n // in one go.\n Scalar tol = 10 * mach_eps<Scalar>();\n if ((abs(lat) > tol) || (abs(lon) > tol)) {\n Scalar clat = cos(lat);\n Scalar clon = cos(lon);\n Scalar slat = sin(lat);\n Scalar slon = sin(lon);\n Scalar costheta = 0.5 * (clon + clat + clon * clat - 1);\n UnitVector<Scalar> u;\n u << -slat * (1 + clon), slon * (1 + clat), slon * slat;\n Scalar normu = u.norm();\n u /= normu;\n Scalar sintheta = 0.5 * normu;\n Scalar theta = atan2(sintheta, costheta);\n W.dotR(y.transpose(), u(0), u(1), u(2), -theta);\n y = W.dotR_result.transpose();\n }\n\n return y;\n}\n\n/**\nCompute the gradient of the Ylm expansion of a spot at a\ngiven latitude/longitude on the map.\n\nThis routine uses forward diff pretty inefficiently and\ncan be sped up if we think about it more carefully.\n\n*/\ntemplate <class Scalar>\ninline void spotYlm(const RowVector<Scalar> &amp, const Scalar &sigma_,\n const Scalar &lat, const Scalar &lon,\n const Matrix<double> &by, int l, wigner::Wigner<Scalar> &W,\n RowVector<Scalar> &bamp, Scalar &bsigma, Scalar &blat,\n Scalar &blon) {\n\n // Forward diff for sigma\n // TODO: Compute the backprop expression\n using ADType = ADScalar<Scalar, 1>;\n ADType sigma = sigma_;\n sigma.derivatives() = Vector<Scalar>::Unit(1, 0);\n\n // Compute the integrals recursively\n Vector<ADType> IP(l + 1);\n Vector<ADType> ID(l + 1);\n Vector<Scalar> y((l + 1) * (l + 1));\n y.setZero();\n ADType yn;\n Vector<Scalar> dydsigma((l + 1) * (l + 1));\n dydsigma.setZero();\n\n // Constants\n ADType a = 1.0 / (2 * sigma * sigma);\n ADType sqrta = sqrt(a);\n ADType erfa = erf(2 * sqrta.value());\n erfa.derivatives()(0) =\n -sqrt(32 / pi<Scalar>()) * exp(-4 * a.value()) * a.value();\n ADType term = exp(-4 * a);\n\n // Seeding values\n IP(0) = root_pi<Scalar>() / (2 * sqrta) * erfa;\n IP(1) = (root_pi<Scalar>() * sqrta * erfa + term - 1) / (2 * a);\n ID(0) = 0;\n ID(1) = IP(0);\n\n // Recurse\n int sgn = -1;\n for (int n = 2; n < l + 1; ++n) {\n IP(n) = (2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1) - (n - 1.0) / n * IP(n - 2);\n ID(n) = (2.0 * n - 1.0) * IP(n - 1) + ID(n - 2);\n sgn *= -1;\n }\n\n // Compute the coefficients of the expansion (w/o the amplitude)\n for (int n = 0; n < l + 1; ++n) {\n yn = sqrt(2 * n + 1) * (IP(n) / IP(0));\n y(n * n + n) = yn.value();\n dydsigma(n * n + n) = yn.derivatives()(0);\n }\n\n // Rotate the spot to the correct lat/lon\n Scalar tol = 10 * mach_eps<Scalar>();\n UnitVector<Scalar> u;\n Scalar normu;\n Scalar theta;\n Scalar clat = cos(lat);\n Scalar clon = cos(lon);\n Scalar slat = sin(lat);\n Scalar slon = sin(lon);\n\n // Axis & angle of rotation\n if ((abs(lat) > tol) || (abs(lon) > tol)) {\n Scalar costheta = 0.5 * (clon + clat + clon * clat - 1);\n u << -slat * (1 + clon), slon * (1 + clat), slon * slat;\n normu = u.norm();\n u /= normu;\n Scalar sintheta = 0.5 * normu;\n theta = atan2(sintheta, costheta);\n } else {\n theta = 0.0;\n u << 0, 1, 0;\n normu = 1;\n }\n\n // Gradient w/ respect to lat, lon, and sigma\n Matrix<Scalar> y_amp = y * amp;\n W.dotR(y_amp.transpose(), u(0), u(1), u(2), -theta, by.transpose());\n\n // lat\n Scalar termz = (clat * (1 + clon) * (1 + clon) * slat - slat * slon * slon) /\n (normu * normu * normu);\n Scalar dxdl = -clat * (1 + clon) / normu + (1 + clon) * slat * termz;\n Scalar dydl = -slat * slon / normu - (1 + clat) * slon * termz;\n Scalar dzdl = clat * slon / normu - slat * slon * termz;\n Scalar dthetadl = -u(0);\n blat = (dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz -\n dthetadl * W.dotR_btheta);\n\n // lon\n termz = (clon * (1 + clat) * (1 + clat) * slon - slon * slat * slat) /\n (normu * normu * normu);\n dxdl = slat * slon / normu + (1 + clon) * slat * termz;\n dydl = (1 + clat) * clon / normu - (1 + clat) * slon * termz;\n dzdl = clon * slat / normu - slat * slon * termz;\n dthetadl = u(1);\n blon = (dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz -\n dthetadl * W.dotR_btheta);\n\n // sigma\n W.dotR(dydsigma.transpose(), u(0), u(1), u(2), -theta);\n dydsigma = W.dotR_result.transpose();\n bsigma = (by.transpose() * dydsigma).dot(amp);\n\n // Compute the actual result (w/o amplitude)\n W.dotR(y.transpose(), u(0), u(1), u(2), -theta);\n y = W.dotR_result.transpose();\n\n // Gradient of amplitude\n bamp = y.transpose() * by;\n}\n\n} // namespace misc\n}" ({) "{" (function_definition) "namespace misc {\n\nusing namespace utils;\n\n/**\nCompute the Ylm expansion of a spot at a given latitude/longitude on the map.\n\n*/\ntemplate <class Scalar>\ninline Matrix<Scalar> spotYlm(const RowVector<Scalar> &amp, const Scalar &sigma,\n const Scalar &lat, const Scalar &lon, int l,\n wigner::Wigner<Scalar> &W) {\n // Compute the integrals recursively\n Vector<Scalar> IP(l + 1);\n Vector<Scalar> ID(l + 1);\n Matrix<Scalar> y((l + 1) * (l + 1), amp.cols());\n y.setZero();\n\n // Constants\n Scalar a = 1.0 / (2 * sigma * sigma);\n Scalar sqrta = sqrt(a);\n Scalar erfa = erf(2 * sqrta);\n Scalar term = exp(-4 * a);\n\n // Seeding values\n IP(0) = root_pi<Scalar>() / (2 * sqrta) * erfa;\n IP(1) = (root_pi<Scalar>() * sqrta * erfa + term - 1) / (2 * a);\n ID(0) = 0;\n ID(1) = IP(0);\n\n // Recurse\n int sgn = -1;\n for (int n = 2; n < l + 1; ++n) {\n IP(n) = (2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1) - (n - 1.0) / n * IP(n - 2);\n ID(n) = (2.0 * n - 1.0) * IP(n - 1) + ID(n - 2);\n sgn *= -1;\n }\n\n // Compute the coefficients of the expansion\n for (int n = 0; n < l + 1; ++n)\n y.row(n * n + n) = amp * sqrt(2 * n + 1) * (IP(n) / IP(0));\n\n // Rotate the spot to the correct lat/lon\n // We are computing the compound rotation matrix\n //\n // R = R(yhat, lon) . R(xhat, -lat)\n //\n // in one go.\n Scalar tol = 10 * mach_eps<Scalar>();\n if ((abs(lat) > tol) || (abs(lon) > tol)) {\n Scalar clat = cos(lat);\n Scalar clon = cos(lon);\n Scalar slat = sin(lat);\n Scalar slon = sin(lon);\n Scalar costheta = 0.5 * (clon + clat + clon * clat - 1);\n UnitVector<Scalar> u;\n u << -slat * (1 + clon), slon * (1 + clat), slon * slat;\n Scalar normu = u.norm();\n u /= normu;\n Scalar sintheta = 0.5 * normu;\n Scalar theta = atan2(sintheta, costheta);\n W.dotR(y.transpose(), u(0), u(1), u(2), -theta);\n y = W.dotR_result.transpose();\n }\n\n return y;\n}\n\n/**\nCompute the gradient of the Ylm expansion of a spot at a\ngiven latitude/longitude on the map.\n\nThis routine uses forward diff pretty inefficiently and\ncan be sped up if we think about it more carefully.\n\n*/\ntemplate <class Scalar>\ninline void spotYlm(const RowVector<Scalar> &amp, const Scalar &sigma_,\n const Scalar &lat, const Scalar &lon,\n const Matrix<double> &by, int l, wigner::Wigner<Scalar> &W,\n RowVector<Scalar> &bamp, Scalar &bsigma, Scalar &blat,\n Scalar &blon) {\n\n // Forward diff for sigma\n // TODO: Compute the backprop expression\n using ADType = ADScalar<Scalar, 1>;\n ADType sigma = sigma_;\n sigma.derivatives() = Vector<Scalar>::Unit(1, 0);\n\n // Compute the integrals recursively\n Vector<ADType> IP(l + 1);\n Vector<ADType> ID(l + 1);\n Vector<Scalar> y((l + 1) * (l + 1));\n y.setZero();\n ADType yn;\n Vector<Scalar> dydsigma((l + 1) * (l + 1));\n dydsigma.setZero();\n\n // Constants\n ADType a = 1.0 / (2 * sigma * sigma);\n ADType sqrta = sqrt(a);\n ADType erfa = erf(2 * sqrta.value());\n erfa.derivatives()(0) =\n -sqrt(32 / pi<Scalar>()) * exp(-4 * a.value()) * a.value();\n ADType term = exp(-4 * a);\n\n // Seeding values\n IP(0) = root_pi<Scalar>() / (2 * sqrta) * erfa;\n IP(1) = (root_pi<Scalar>() * sqrta * erfa + term - 1) / (2 * a);\n ID(0) = 0;\n ID(1) = IP(0);\n\n // Recurse\n int sgn = -1;\n for (int n = 2; n < l + 1; ++n) {\n IP(n) = (2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1) - (n - 1.0) / n * IP(n - 2);\n ID(n) = (2.0 * n - 1.0) * IP(n - 1) + ID(n - 2);\n sgn *= -1;\n }\n\n // Compute the coefficients of the expansion (w/o the amplitude)\n for (int n = 0; n < l + 1; ++n) {\n yn = sqrt(2 * n + 1) * (IP(n) / IP(0));\n y(n * n + n) = yn.value();\n dydsigma(n * n + n) = yn.derivatives()(0);\n }\n\n // Rotate the spot to the correct lat/lon\n Scalar tol = 10 * mach_eps<Scalar>();\n UnitVector<Scalar> u;\n Scalar normu;\n Scalar theta;\n Scalar clat = cos(lat);\n Scalar clon = cos(lon);\n Scalar slat = sin(lat);\n Scalar slon = sin(lon);\n\n // Axis & angle of rotation\n if ((abs(lat) > tol) || (abs(lon) > tol)) {\n Scalar costheta = 0.5 * (clon + clat + clon * clat - 1);\n u << -slat * (1 + clon), slon * (1 + clat), slon * slat;\n normu = u.norm();\n u /= normu;\n Scalar sintheta = 0.5 * normu;\n theta = atan2(sintheta, costheta);\n } else {\n theta = 0.0;\n u << 0, 1, 0;\n normu = 1;\n }\n\n // Gradient w/ respect to lat, lon, and sigma\n Matrix<Scalar> y_amp = y * amp;\n W.dotR(y_amp.transpose(), u(0), u(1), u(2), -theta, by.transpose());\n\n // lat\n Scalar termz = (clat * (1 + clon) * (1 + clon) * slat - slat * slon * slon) /\n (normu * normu * normu);\n Scalar dxdl = -clat * (1 + clon) / normu + (1 + clon) * slat * termz;\n Scalar dydl = -slat * slon / normu - (1 + clat) * slon * termz;\n Scalar dzdl = clat * slon / normu - slat * slon * termz;\n Scalar dthetadl = -u(0);\n blat = (dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz -\n dthetadl * W.dotR_btheta);\n\n // lon\n termz = (clon * (1 + clat) * (1 + clat) * slon - slon * slat * slat) /\n (normu * normu * normu);\n dxdl = slat * slon / normu + (1 + clon) * slat * termz;\n dydl = (1 + clat) * clon / normu - (1 + clat) * slon * termz;\n dzdl = clon * slat / normu - slat * slon * termz;\n dthetadl = u(1);\n blon = (dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz -\n dthetadl * W.dotR_btheta);\n\n // sigma\n W.dotR(dydsigma.transpose(), u(0), u(1), u(2), -theta);\n dydsigma = W.dotR_result.transpose();\n bsigma = (by.transpose() * dydsigma).dot(amp);\n\n // Compute the actual result (w/o amplitude)\n W.dotR(y.transpose(), u(0), u(1), u(2), -theta);\n y = W.dotR_result.transpose();\n\n // Gradient of amplitude\n bamp = y.transpose() * by;\n}\n\n}" (type_identifier) "namespace" (identifier) "misc" (compound_statement) "{\n\nusing namespace utils;\n\n/**\nCompute the Ylm expansion of a spot at a given latitude/longitude on the map.\n\n*/\ntemplate <class Scalar>\ninline Matrix<Scalar> spotYlm(const RowVector<Scalar> &amp, const Scalar &sigma,\n const Scalar &lat, const Scalar &lon, int l,\n wigner::Wigner<Scalar> &W) {\n // Compute the integrals recursively\n Vector<Scalar> IP(l + 1);\n Vector<Scalar> ID(l + 1);\n Matrix<Scalar> y((l + 1) * (l + 1), amp.cols());\n y.setZero();\n\n // Constants\n Scalar a = 1.0 / (2 * sigma * sigma);\n Scalar sqrta = sqrt(a);\n Scalar erfa = erf(2 * sqrta);\n Scalar term = exp(-4 * a);\n\n // Seeding values\n IP(0) = root_pi<Scalar>() / (2 * sqrta) * erfa;\n IP(1) = (root_pi<Scalar>() * sqrta * erfa + term - 1) / (2 * a);\n ID(0) = 0;\n ID(1) = IP(0);\n\n // Recurse\n int sgn = -1;\n for (int n = 2; n < l + 1; ++n) {\n IP(n) = (2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1) - (n - 1.0) / n * IP(n - 2);\n ID(n) = (2.0 * n - 1.0) * IP(n - 1) + ID(n - 2);\n sgn *= -1;\n }\n\n // Compute the coefficients of the expansion\n for (int n = 0; n < l + 1; ++n)\n y.row(n * n + n) = amp * sqrt(2 * n + 1) * (IP(n) / IP(0));\n\n // Rotate the spot to the correct lat/lon\n // We are computing the compound rotation matrix\n //\n // R = R(yhat, lon) . R(xhat, -lat)\n //\n // in one go.\n Scalar tol = 10 * mach_eps<Scalar>();\n if ((abs(lat) > tol) || (abs(lon) > tol)) {\n Scalar clat = cos(lat);\n Scalar clon = cos(lon);\n Scalar slat = sin(lat);\n Scalar slon = sin(lon);\n Scalar costheta = 0.5 * (clon + clat + clon * clat - 1);\n UnitVector<Scalar> u;\n u << -slat * (1 + clon), slon * (1 + clat), slon * slat;\n Scalar normu = u.norm();\n u /= normu;\n Scalar sintheta = 0.5 * normu;\n Scalar theta = atan2(sintheta, costheta);\n W.dotR(y.transpose(), u(0), u(1), u(2), -theta);\n y = W.dotR_result.transpose();\n }\n\n return y;\n}\n\n/**\nCompute the gradient of the Ylm expansion of a spot at a\ngiven latitude/longitude on the map.\n\nThis routine uses forward diff pretty inefficiently and\ncan be sped up if we think about it more carefully.\n\n*/\ntemplate <class Scalar>\ninline void spotYlm(const RowVector<Scalar> &amp, const Scalar &sigma_,\n const Scalar &lat, const Scalar &lon,\n const Matrix<double> &by, int l, wigner::Wigner<Scalar> &W,\n RowVector<Scalar> &bamp, Scalar &bsigma, Scalar &blat,\n Scalar &blon) {\n\n // Forward diff for sigma\n // TODO: Compute the backprop expression\n using ADType = ADScalar<Scalar, 1>;\n ADType sigma = sigma_;\n sigma.derivatives() = Vector<Scalar>::Unit(1, 0);\n\n // Compute the integrals recursively\n Vector<ADType> IP(l + 1);\n Vector<ADType> ID(l + 1);\n Vector<Scalar> y((l + 1) * (l + 1));\n y.setZero();\n ADType yn;\n Vector<Scalar> dydsigma((l + 1) * (l + 1));\n dydsigma.setZero();\n\n // Constants\n ADType a = 1.0 / (2 * sigma * sigma);\n ADType sqrta = sqrt(a);\n ADType erfa = erf(2 * sqrta.value());\n erfa.derivatives()(0) =\n -sqrt(32 / pi<Scalar>()) * exp(-4 * a.value()) * a.value();\n ADType term = exp(-4 * a);\n\n // Seeding values\n IP(0) = root_pi<Scalar>() / (2 * sqrta) * erfa;\n IP(1) = (root_pi<Scalar>() * sqrta * erfa + term - 1) / (2 * a);\n ID(0) = 0;\n ID(1) = IP(0);\n\n // Recurse\n int sgn = -1;\n for (int n = 2; n < l + 1; ++n) {\n IP(n) = (2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1) - (n - 1.0) / n * IP(n - 2);\n ID(n) = (2.0 * n - 1.0) * IP(n - 1) + ID(n - 2);\n sgn *= -1;\n }\n\n // Compute the coefficients of the expansion (w/o the amplitude)\n for (int n = 0; n < l + 1; ++n) {\n yn = sqrt(2 * n + 1) * (IP(n) / IP(0));\n y(n * n + n) = yn.value();\n dydsigma(n * n + n) = yn.derivatives()(0);\n }\n\n // Rotate the spot to the correct lat/lon\n Scalar tol = 10 * mach_eps<Scalar>();\n UnitVector<Scalar> u;\n Scalar normu;\n Scalar theta;\n Scalar clat = cos(lat);\n Scalar clon = cos(lon);\n Scalar slat = sin(lat);\n Scalar slon = sin(lon);\n\n // Axis & angle of rotation\n if ((abs(lat) > tol) || (abs(lon) > tol)) {\n Scalar costheta = 0.5 * (clon + clat + clon * clat - 1);\n u << -slat * (1 + clon), slon * (1 + clat), slon * slat;\n normu = u.norm();\n u /= normu;\n Scalar sintheta = 0.5 * normu;\n theta = atan2(sintheta, costheta);\n } else {\n theta = 0.0;\n u << 0, 1, 0;\n normu = 1;\n }\n\n // Gradient w/ respect to lat, lon, and sigma\n Matrix<Scalar> y_amp = y * amp;\n W.dotR(y_amp.transpose(), u(0), u(1), u(2), -theta, by.transpose());\n\n // lat\n Scalar termz = (clat * (1 + clon) * (1 + clon) * slat - slat * slon * slon) /\n (normu * normu * normu);\n Scalar dxdl = -clat * (1 + clon) / normu + (1 + clon) * slat * termz;\n Scalar dydl = -slat * slon / normu - (1 + clat) * slon * termz;\n Scalar dzdl = clat * slon / normu - slat * slon * termz;\n Scalar dthetadl = -u(0);\n blat = (dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz -\n dthetadl * W.dotR_btheta);\n\n // lon\n termz = (clon * (1 + clat) * (1 + clat) * slon - slon * slat * slat) /\n (normu * normu * normu);\n dxdl = slat * slon / normu + (1 + clon) * slat * termz;\n dydl = (1 + clat) * clon / normu - (1 + clat) * slon * termz;\n dzdl = clon * slat / normu - slat * slon * termz;\n dthetadl = u(1);\n blon = (dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz -\n dthetadl * W.dotR_btheta);\n\n // sigma\n W.dotR(dydsigma.transpose(), u(0), u(1), u(2), -theta);\n dydsigma = W.dotR_result.transpose();\n bsigma = (by.transpose() * dydsigma).dot(amp);\n\n // Compute the actual result (w/o amplitude)\n W.dotR(y.transpose(), u(0), u(1), u(2), -theta);\n y = W.dotR_result.transpose();\n\n // Gradient of amplitude\n bamp = y.transpose() * by;\n}\n\n}" ({) "{" (declaration) "using namespace utils;" (type_identifier) "using" (identifier) "namespace" (ERROR) "utils" (identifier) "utils" (;) ";" (comment) "/**\nCompute the Ylm expansion of a spot at a given latitude/longitude on the map.\n\n*/" (expression_statement) "template <class Scalar>\ninline Matrix<Scalar> spotYlm(const RowVector<Scalar> &amp, const Scalar &sigma,\n const Scalar &lat, const Scalar &lon, int l,\n wigner::Wigner<Scalar> &W)" (binary_expression) "template <class Scalar>\ninline Matrix<Scalar> spotYlm(const RowVector<Scalar> &amp, const Scalar &sigma,\n const Scalar &lat, const Scalar &lon, int l,\n wigner::Wigner<Scalar> &W)" (binary_expression) "template <class Scalar>\ninline Matrix<Scalar" (binary_expression) "template <class Scalar>\ninline" (binary_expression) "template <class Scalar" (identifier) "template" (<) "<" (ERROR) "class" (identifier) "class" (identifier) "Scalar" (>) ">" (identifier) "inline" (ERROR) "Matrix" (identifier) "Matrix" (<) "<" (identifier) "Scalar" (>) ">" (call_expression) "spotYlm(const RowVector<Scalar> &amp, const Scalar &sigma,\n const Scalar &lat, const Scalar &lon, int l,\n wigner::Wigner<Scalar> &W)" (identifier) "spotYlm" (argument_list) "(const RowVector<Scalar> &amp, const Scalar &sigma,\n const Scalar &lat, const Scalar &lon, int l,\n wigner::Wigner<Scalar> &W)" (() "(" (ERROR) "const" (identifier) "const" (binary_expression) "RowVector<Scalar> &amp" (binary_expression) "RowVector<Scalar" (identifier) "RowVector" (<) "<" (identifier) "Scalar" (>) ">" (pointer_expression) "&amp" (&) "&" (identifier) "amp" (,) "," (ERROR) "const" (identifier) "const" (binary_expression) "Scalar &sigma" (identifier) "Scalar" (&) "&" (identifier) "sigma" (,) "," (ERROR) "const" (identifier) "const" (binary_expression) "Scalar &lat" (identifier) "Scalar" (&) "&" (identifier) "lat" (,) "," (ERROR) "const" (identifier) "const" (binary_expression) "Scalar &lon" (identifier) "Scalar" (&) "&" (identifier) "lon" (,) "," (identifier) "int" (ERROR) "l" (identifier) "l" (,) "," (ERROR) "wigner::" (identifier) "wigner" (:) ":" (:) ":" (binary_expression) "Wigner<Scalar> &W" (binary_expression) "Wigner<Scalar" (identifier) "Wigner" (<) "<" (identifier) "Scalar" (>) ">" (pointer_expression) "&W" (&) "&" (identifier) "W" ()) ")" (;) "" (compound_statement) "{\n // Compute the integrals recursively\n Vector<Scalar> IP(l + 1);\n Vector<Scalar> ID(l + 1);\n Matrix<Scalar> y((l + 1) * (l + 1), amp.cols());\n y.setZero();\n\n // Constants\n Scalar a = 1.0 / (2 * sigma * sigma);\n Scalar sqrta = sqrt(a);\n Scalar erfa = erf(2 * sqrta);\n Scalar term = exp(-4 * a);\n\n // Seeding values\n IP(0) = root_pi<Scalar>() / (2 * sqrta) * erfa;\n IP(1) = (root_pi<Scalar>() * sqrta * erfa + term - 1) / (2 * a);\n ID(0) = 0;\n ID(1) = IP(0);\n\n // Recurse\n int sgn = -1;\n for (int n = 2; n < l + 1; ++n) {\n IP(n) = (2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1) - (n - 1.0) / n * IP(n - 2);\n ID(n) = (2.0 * n - 1.0) * IP(n - 1) + ID(n - 2);\n sgn *= -1;\n }\n\n // Compute the coefficients of the expansion\n for (int n = 0; n < l + 1; ++n)\n y.row(n * n + n) = amp * sqrt(2 * n + 1) * (IP(n) / IP(0));\n\n // Rotate the spot to the correct lat/lon\n // We are computing the compound rotation matrix\n //\n // R = R(yhat, lon) . R(xhat, -lat)\n //\n // in one go.\n Scalar tol = 10 * mach_eps<Scalar>();\n if ((abs(lat) > tol) || (abs(lon) > tol)) {\n Scalar clat = cos(lat);\n Scalar clon = cos(lon);\n Scalar slat = sin(lat);\n Scalar slon = sin(lon);\n Scalar costheta = 0.5 * (clon + clat + clon * clat - 1);\n UnitVector<Scalar> u;\n u << -slat * (1 + clon), slon * (1 + clat), slon * slat;\n Scalar normu = u.norm();\n u /= normu;\n Scalar sintheta = 0.5 * normu;\n Scalar theta = atan2(sintheta, costheta);\n W.dotR(y.transpose(), u(0), u(1), u(2), -theta);\n y = W.dotR_result.transpose();\n }\n\n return y;\n}" ({) "{" (comment) "// Compute the integrals recursively" (expression_statement) "Vector<Scalar> IP(l + 1);" (binary_expression) "Vector<Scalar> IP(l + 1)" (binary_expression) "Vector<Scalar" (identifier) "Vector" (<) "<" (identifier) "Scalar" (>) ">" (call_expression) "IP(l + 1)" (identifier) "IP" (argument_list) "(l + 1)" (() "(" (binary_expression) "l + 1" (identifier) "l" (+) "+" (number_literal) "1" ()) ")" (;) ";" (expression_statement) "Vector<Scalar> ID(l + 1);" (binary_expression) "Vector<Scalar> ID(l + 1)" (binary_expression) "Vector<Scalar" (identifier) "Vector" (<) "<" (identifier) "Scalar" (>) ">" (call_expression) "ID(l + 1)" (identifier) "ID" (argument_list) "(l + 1)" (() "(" (binary_expression) "l + 1" (identifier) "l" (+) "+" (number_literal) "1" ()) ")" (;) ";" (expression_statement) "Matrix<Scalar> y((l + 1) * (l + 1), amp.cols());" (binary_expression) "Matrix<Scalar> y((l + 1) * (l + 1), amp.cols())" (binary_expression) "Matrix<Scalar" (identifier) "Matrix" (<) "<" (identifier) "Scalar" (>) ">" (call_expression) "y((l + 1) * (l + 1), amp.cols())" (identifier) "y" (argument_list) "((l + 1) * (l + 1), amp.cols())" (() "(" (binary_expression) "(l + 1) * (l + 1)" (parenthesized_expression) "(l + 1)" (() "(" (binary_expression) "l + 1" (identifier) "l" (+) "+" (number_literal) "1" ()) ")" (*) "*" (parenthesized_expression) "(l + 1)" (() "(" (binary_expression) "l + 1" (identifier) "l" (+) "+" (number_literal) "1" ()) ")" (,) "," (call_expression) "amp.cols()" (field_expression) "amp.cols" (identifier) "amp" (.) "." (field_identifier) "cols" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (expression_statement) "y.setZero();" (call_expression) "y.setZero()" (field_expression) "y.setZero" (identifier) "y" (.) "." (field_identifier) "setZero" (argument_list) "()" (() "(" ()) ")" (;) ";" (comment) "// Constants" (declaration) "Scalar a = 1.0 / (2 * sigma * sigma);" (type_identifier) "Scalar" (init_declarator) "a = 1.0 / (2 * sigma * sigma)" (identifier) "a" (=) "=" (binary_expression) "1.0 / (2 * sigma * sigma)" (number_literal) "1.0" (/) "/" (parenthesized_expression) "(2 * sigma * sigma)" (() "(" (binary_expression) "2 * sigma * sigma" (binary_expression) "2 * sigma" (number_literal) "2" (*) "*" (identifier) "sigma" (*) "*" (identifier) "sigma" ()) ")" (;) ";" (declaration) "Scalar sqrta = sqrt(a);" (type_identifier) "Scalar" (init_declarator) "sqrta = sqrt(a)" (identifier) "sqrta" (=) "=" (call_expression) "sqrt(a)" (identifier) "sqrt" (argument_list) "(a)" (() "(" (identifier) "a" ()) ")" (;) ";" (declaration) "Scalar erfa = erf(2 * sqrta);" (type_identifier) "Scalar" (init_declarator) "erfa = erf(2 * sqrta)" (identifier) "erfa" (=) "=" (call_expression) "erf(2 * sqrta)" (identifier) "erf" (argument_list) "(2 * sqrta)" (() "(" (binary_expression) "2 * sqrta" (number_literal) "2" (*) "*" (identifier) "sqrta" ()) ")" (;) ";" (declaration) "Scalar term = exp(-4 * a);" (type_identifier) "Scalar" (init_declarator) "term = exp(-4 * a)" (identifier) "term" (=) "=" (call_expression) "exp(-4 * a)" (identifier) "exp" (argument_list) "(-4 * a)" (() "(" (binary_expression) "-4 * a" (number_literal) "-4" (*) "*" (identifier) "a" ()) ")" (;) ";" (comment) "// Seeding values" (expression_statement) "IP(0) = root_pi<Scalar>() / (2 * sqrta) * erfa;" (assignment_expression) "IP(0) = root_pi<Scalar>() / (2 * sqrta) * erfa" (call_expression) "IP(0)" (identifier) "IP" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (=) "=" (binary_expression) "root_pi<Scalar>() / (2 * sqrta) * erfa" (binary_expression) "root_pi<Scalar" (identifier) "root_pi" (<) "<" (identifier) "Scalar" (>) ">" (binary_expression) "() / (2 * sqrta) * erfa" (binary_expression) "() / (2 * sqrta)" (parenthesized_expression) "()" (() "(" (identifier) "" ()) ")" (/) "/" (parenthesized_expression) "(2 * sqrta)" (() "(" (binary_expression) "2 * sqrta" (number_literal) "2" (*) "*" (identifier) "sqrta" ()) ")" (*) "*" (identifier) "erfa" (;) ";" (expression_statement) "IP(1) = (root_pi<Scalar>() * sqrta * erfa + term - 1) / (2 * a);" (assignment_expression) "IP(1) = (root_pi<Scalar>() * sqrta * erfa + term - 1) / (2 * a)" (call_expression) "IP(1)" (identifier) "IP" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (=) "=" (binary_expression) "(root_pi<Scalar>() * sqrta * erfa + term - 1) / (2 * a)" (parenthesized_expression) "(root_pi<Scalar>() * sqrta * erfa + term - 1)" (() "(" (binary_expression) "root_pi<Scalar>() * sqrta * erfa + term - 1" (binary_expression) "root_pi<Scalar" (identifier) "root_pi" (<) "<" (identifier) "Scalar" (>) ">" (binary_expression) "() * sqrta * erfa + term - 1" (binary_expression) "() * sqrta * erfa + term" (binary_expression) "() * sqrta * erfa" (binary_expression) "() * sqrta" (parenthesized_expression) "()" (() "(" (identifier) "" ()) ")" (*) "*" (identifier) "sqrta" (*) "*" (identifier) "erfa" (+) "+" (identifier) "term" (-) "-" (number_literal) "1" ()) ")" (/) "/" (parenthesized_expression) "(2 * a)" (() "(" (binary_expression) "2 * a" (number_literal) "2" (*) "*" (identifier) "a" ()) ")" (;) ";" (expression_statement) "ID(0) = 0;" (assignment_expression) "ID(0) = 0" (call_expression) "ID(0)" (identifier) "ID" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "ID(1) = IP(0);" (assignment_expression) "ID(1) = IP(0)" (call_expression) "ID(1)" (identifier) "ID" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (=) "=" (call_expression) "IP(0)" (identifier) "IP" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (;) ";" (comment) "// Recurse" (declaration) "int sgn = -1;" (primitive_type) "int" (init_declarator) "sgn = -1" (identifier) "sgn" (=) "=" (number_literal) "-1" (;) ";" (for_statement) "for (int n = 2; n < l + 1; ++n) {\n IP(n) = (2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1) - (n - 1.0) / n * IP(n - 2);\n ID(n) = (2.0 * n - 1.0) * IP(n - 1) + ID(n - 2);\n sgn *= -1;\n }" (for) "for" (() "(" (declaration) "int n = 2;" (primitive_type) "int" (init_declarator) "n = 2" (identifier) "n" (=) "=" (number_literal) "2" (;) ";" (binary_expression) "n < l + 1" (identifier) "n" (<) "<" (binary_expression) "l + 1" (identifier) "l" (+) "+" (number_literal) "1" (;) ";" (update_expression) "++n" (++) "++" (identifier) "n" ()) ")" (compound_statement) "{\n IP(n) = (2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1) - (n - 1.0) / n * IP(n - 2);\n ID(n) = (2.0 * n - 1.0) * IP(n - 1) + ID(n - 2);\n sgn *= -1;\n }" ({) "{" (expression_statement) "IP(n) = (2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1) - (n - 1.0) / n * IP(n - 2);" (assignment_expression) "IP(n) = (2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1) - (n - 1.0) / n * IP(n - 2)" (call_expression) "IP(n)" (identifier) "IP" (argument_list) "(n)" (() "(" (identifier) "n" ()) ")" (=) "=" (binary_expression) "(2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1) - (n - 1.0) / n * IP(n - 2)" (binary_expression) "(2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1)" (binary_expression) "(2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0)" (binary_expression) "(2.0 * n - 1.0) / (2.0 * n * a)" (parenthesized_expression) "(2.0 * n - 1.0)" (() "(" (binary_expression) "2.0 * n - 1.0" (binary_expression) "2.0 * n" (number_literal) "2.0" (*) "*" (identifier) "n" (-) "-" (number_literal) "1.0" ()) ")" (/) "/" (parenthesized_expression) "(2.0 * n * a)" (() "(" (binary_expression) "2.0 * n * a" (binary_expression) "2.0 * n" (number_literal) "2.0" (*) "*" (identifier) "n" (*) "*" (identifier) "a" ()) ")" (*) "*" (parenthesized_expression) "(ID(n - 1) + sgn * term - 1.0)" (() "(" (binary_expression) "ID(n - 1) + sgn * term - 1.0" (binary_expression) "ID(n - 1) + sgn * term" (call_expression) "ID(n - 1)" (identifier) "ID" (argument_list) "(n - 1)" (() "(" (binary_expression) "n - 1" (identifier) "n" (-) "-" (number_literal) "1" ()) ")" (+) "+" (binary_expression) "sgn * term" (identifier) "sgn" (*) "*" (identifier) "term" (-) "-" (number_literal) "1.0" ()) ")" (+) "+" (binary_expression) "(2.0 * n - 1.0) / n * IP(n - 1)" (binary_expression) "(2.0 * n - 1.0) / n" (parenthesized_expression) "(2.0 * n - 1.0)" (() "(" (binary_expression) "2.0 * n - 1.0" (binary_expression) "2.0 * n" (number_literal) "2.0" (*) "*" (identifier) "n" (-) "-" (number_literal) "1.0" ()) ")" (/) "/" (identifier) "n" (*) "*" (call_expression) "IP(n - 1)" (identifier) "IP" (argument_list) "(n - 1)" (() "(" (binary_expression) "n - 1" (identifier) "n" (-) "-" (number_literal) "1" ()) ")" (-) "-" (binary_expression) "(n - 1.0) / n * IP(n - 2)" (binary_expression) "(n - 1.0) / n" (parenthesized_expression) "(n - 1.0)" (() "(" (binary_expression) "n - 1.0" (identifier) "n" (-) "-" (number_literal) "1.0" ()) ")" (/) "/" (identifier) "n" (*) "*" (call_expression) "IP(n - 2)" (identifier) "IP" (argument_list) "(n - 2)" (() "(" (binary_expression) "n - 2" (identifier) "n" (-) "-" (number_literal) "2" ()) ")" (;) ";" (expression_statement) "ID(n) = (2.0 * n - 1.0) * IP(n - 1) + ID(n - 2);" (assignment_expression) "ID(n) = (2.0 * n - 1.0) * IP(n - 1) + ID(n - 2)" (call_expression) "ID(n)" (identifier) "ID" (argument_list) "(n)" (() "(" (identifier) "n" ()) ")" (=) "=" (binary_expression) "(2.0 * n - 1.0) * IP(n - 1) + ID(n - 2)" (binary_expression) "(2.0 * n - 1.0) * IP(n - 1)" (parenthesized_expression) "(2.0 * n - 1.0)" (() "(" (binary_expression) "2.0 * n - 1.0" (binary_expression) "2.0 * n" (number_literal) "2.0" (*) "*" (identifier) "n" (-) "-" (number_literal) "1.0" ()) ")" (*) "*" (call_expression) "IP(n - 1)" (identifier) "IP" (argument_list) "(n - 1)" (() "(" (binary_expression) "n - 1" (identifier) "n" (-) "-" (number_literal) "1" ()) ")" (+) "+" (call_expression) "ID(n - 2)" (identifier) "ID" (argument_list) "(n - 2)" (() "(" (binary_expression) "n - 2" (identifier) "n" (-) "-" (number_literal) "2" ()) ")" (;) ";" (expression_statement) "sgn *= -1;" (assignment_expression) "sgn *= -1" (identifier) "sgn" (*=) "*=" (number_literal) "-1" (;) ";" (}) "}" (comment) "// Compute the coefficients of the expansion" (for_statement) "for (int n = 0; n < l + 1; ++n)\n y.row(n * n + n) = amp * sqrt(2 * n + 1) * (IP(n) / IP(0));" (for) "for" (() "(" (declaration) "int n = 0;" (primitive_type) "int" (init_declarator) "n = 0" (identifier) "n" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "n < l + 1" (identifier) "n" (<) "<" (binary_expression) "l + 1" (identifier) "l" (+) "+" (number_literal) "1" (;) ";" (update_expression) "++n" (++) "++" (identifier) "n" ()) ")" (expression_statement) "y.row(n * n + n) = amp * sqrt(2 * n + 1) * (IP(n) / IP(0));" (assignment_expression) "y.row(n * n + n) = amp * sqrt(2 * n + 1) * (IP(n) / IP(0))" (call_expression) "y.row(n * n + n)" (field_expression) "y.row" (identifier) "y" (.) "." (field_identifier) "row" (argument_list) "(n * n + n)" (() "(" (binary_expression) "n * n + n" (binary_expression) "n * n" (identifier) "n" (*) "*" (identifier) "n" (+) "+" (identifier) "n" ()) ")" (=) "=" (binary_expression) "amp * sqrt(2 * n + 1) * (IP(n) / IP(0))" (binary_expression) "amp * sqrt(2 * n + 1)" (identifier) "amp" (*) "*" (call_expression) "sqrt(2 * n + 1)" (identifier) "sqrt" (argument_list) "(2 * n + 1)" (() "(" (binary_expression) "2 * n + 1" (binary_expression) "2 * n" (number_literal) "2" (*) "*" (identifier) "n" (+) "+" (number_literal) "1" ()) ")" (*) "*" (parenthesized_expression) "(IP(n) / IP(0))" (() "(" (binary_expression) "IP(n) / IP(0)" (call_expression) "IP(n)" (identifier) "IP" (argument_list) "(n)" (() "(" (identifier) "n" ()) ")" (/) "/" (call_expression) "IP(0)" (identifier) "IP" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" ()) ")" (;) ";" (comment) "// Rotate the spot to the correct lat/lon" (comment) "// We are computing the compound rotation matrix" (comment) "//" (comment) "// R = R(yhat, lon) . R(xhat, -lat)" (comment) "//" (comment) "// in one go." (declaration) "Scalar tol = 10 * mach_eps<Scalar>();" (type_identifier) "Scalar" (init_declarator) "tol = 10 * mach_eps<Scalar>()" (identifier) "tol" (=) "=" (binary_expression) "10 * mach_eps<Scalar>()" (binary_expression) "10 * mach_eps<Scalar" (binary_expression) "10 * mach_eps" (number_literal) "10" (*) "*" (identifier) "mach_eps" (<) "<" (identifier) "Scalar" (>) ">" (parenthesized_expression) "()" (() "(" (identifier) "" ()) ")" (;) ";" (if_statement) "if ((abs(lat) > tol) || (abs(lon) > tol)) {\n Scalar clat = cos(lat);\n Scalar clon = cos(lon);\n Scalar slat = sin(lat);\n Scalar slon = sin(lon);\n Scalar costheta = 0.5 * (clon + clat + clon * clat - 1);\n UnitVector<Scalar> u;\n u << -slat * (1 + clon), slon * (1 + clat), slon * slat;\n Scalar normu = u.norm();\n u /= normu;\n Scalar sintheta = 0.5 * normu;\n Scalar theta = atan2(sintheta, costheta);\n W.dotR(y.transpose(), u(0), u(1), u(2), -theta);\n y = W.dotR_result.transpose();\n }" (if) "if" (parenthesized_expression) "((abs(lat) > tol) || (abs(lon) > tol))" (() "(" (binary_expression) "(abs(lat) > tol) || (abs(lon) > tol)" (parenthesized_expression) "(abs(lat) > tol)" (() "(" (binary_expression) "abs(lat) > tol" (call_expression) "abs(lat)" (identifier) "abs" (argument_list) "(lat)" (() "(" (identifier) "lat" ()) ")" (>) ">" (identifier) "tol" ()) ")" (||) "||" (parenthesized_expression) "(abs(lon) > tol)" (() "(" (binary_expression) "abs(lon) > tol" (call_expression) "abs(lon)" (identifier) "abs" (argument_list) "(lon)" (() "(" (identifier) "lon" ()) ")" (>) ">" (identifier) "tol" ()) ")" ()) ")" (compound_statement) "{\n Scalar clat = cos(lat);\n Scalar clon = cos(lon);\n Scalar slat = sin(lat);\n Scalar slon = sin(lon);\n Scalar costheta = 0.5 * (clon + clat + clon * clat - 1);\n UnitVector<Scalar> u;\n u << -slat * (1 + clon), slon * (1 + clat), slon * slat;\n Scalar normu = u.norm();\n u /= normu;\n Scalar sintheta = 0.5 * normu;\n Scalar theta = atan2(sintheta, costheta);\n W.dotR(y.transpose(), u(0), u(1), u(2), -theta);\n y = W.dotR_result.transpose();\n }" ({) "{" (declaration) "Scalar clat = cos(lat);" (type_identifier) "Scalar" (init_declarator) "clat = cos(lat)" (identifier) "clat" (=) "=" (call_expression) "cos(lat)" (identifier) "cos" (argument_list) "(lat)" (() "(" (identifier) "lat" ()) ")" (;) ";" (declaration) "Scalar clon = cos(lon);" (type_identifier) "Scalar" (init_declarator) "clon = cos(lon)" (identifier) "clon" (=) "=" (call_expression) "cos(lon)" (identifier) "cos" (argument_list) "(lon)" (() "(" (identifier) "lon" ()) ")" (;) ";" (declaration) "Scalar slat = sin(lat);" (type_identifier) "Scalar" (init_declarator) "slat = sin(lat)" (identifier) "slat" (=) "=" (call_expression) "sin(lat)" (identifier) "sin" (argument_list) "(lat)" (() "(" (identifier) "lat" ()) ")" (;) ";" (declaration) "Scalar slon = sin(lon);" (type_identifier) "Scalar" (init_declarator) "slon = sin(lon)" (identifier) "slon" (=) "=" (call_expression) "sin(lon)" (identifier) "sin" (argument_list) "(lon)" (() "(" (identifier) "lon" ()) ")" (;) ";" (declaration) "Scalar costheta = 0.5 * (clon + clat + clon * clat - 1);" (type_identifier) "Scalar" (init_declarator) "costheta = 0.5 * (clon + clat + clon * clat - 1)" (identifier) "costheta" (=) "=" (binary_expression) "0.5 * (clon + clat + clon * clat - 1)" (number_literal) "0.5" (*) "*" (parenthesized_expression) "(clon + clat + clon * clat - 1)" (() "(" (binary_expression) "clon + clat + clon * clat - 1" (binary_expression) "clon + clat + clon * clat" (binary_expression) "clon + clat" (identifier) "clon" (+) "+" (identifier) "clat" (+) "+" (binary_expression) "clon * clat" (identifier) "clon" (*) "*" (identifier) "clat" (-) "-" (number_literal) "1" ()) ")" (;) ";" (expression_statement) "UnitVector<Scalar> u;" (binary_expression) "UnitVector<Scalar> u" (binary_expression) "UnitVector<Scalar" (identifier) "UnitVector" (<) "<" (identifier) "Scalar" (>) ">" (identifier) "u" (;) ";" (expression_statement) "u << -slat * (1 + clon), slon * (1 + clat), slon * slat;" (comma_expression) "u << -slat * (1 + clon), slon * (1 + clat), slon * slat" (binary_expression) "u << -slat * (1 + clon)" (identifier) "u" (<<) "<<" (binary_expression) "-slat * (1 + clon)" (unary_expression) "-slat" (-) "-" (identifier) "slat" (*) "*" (parenthesized_expression) "(1 + clon)" (() "(" (binary_expression) "1 + clon" (number_literal) "1" (+) "+" (identifier) "clon" ()) ")" (,) "," (comma_expression) "slon * (1 + clat), slon * slat" (binary_expression) "slon * (1 + clat)" (identifier) "slon" (*) "*" (parenthesized_expression) "(1 + clat)" (() "(" (binary_expression) "1 + clat" (number_literal) "1" (+) "+" (identifier) "clat" ()) ")" (,) "," (binary_expression) "slon * slat" (identifier) "slon" (*) "*" (identifier) "slat" (;) ";" (declaration) "Scalar normu = u.norm();" (type_identifier) "Scalar" (init_declarator) "normu = u.norm()" (identifier) "normu" (=) "=" (call_expression) "u.norm()" (field_expression) "u.norm" (identifier) "u" (.) "." (field_identifier) "norm" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "u /= normu;" (assignment_expression) "u /= normu" (identifier) "u" (/=) "/=" (identifier) "normu" (;) ";" (declaration) "Scalar sintheta = 0.5 * normu;" (type_identifier) "Scalar" (init_declarator) "sintheta = 0.5 * normu" (identifier) "sintheta" (=) "=" (binary_expression) "0.5 * normu" (number_literal) "0.5" (*) "*" (identifier) "normu" (;) ";" (declaration) "Scalar theta = atan2(sintheta, costheta);" (type_identifier) "Scalar" (init_declarator) "theta = atan2(sintheta, costheta)" (identifier) "theta" (=) "=" (call_expression) "atan2(sintheta, costheta)" (identifier) "atan2" (argument_list) "(sintheta, costheta)" (() "(" (identifier) "sintheta" (,) "," (identifier) "costheta" ()) ")" (;) ";" (expression_statement) "W.dotR(y.transpose(), u(0), u(1), u(2), -theta);" (call_expression) "W.dotR(y.transpose(), u(0), u(1), u(2), -theta)" (field_expression) "W.dotR" (identifier) "W" (.) "." (field_identifier) "dotR" (argument_list) "(y.transpose(), u(0), u(1), u(2), -theta)" (() "(" (call_expression) "y.transpose()" (field_expression) "y.transpose" (identifier) "y" (.) "." (field_identifier) "transpose" (argument_list) "()" (() "(" ()) ")" (,) "," (call_expression) "u(0)" (identifier) "u" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (,) "," (call_expression) "u(1)" (identifier) "u" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (,) "," (call_expression) "u(2)" (identifier) "u" (argument_list) "(2)" (() "(" (number_literal) "2" ()) ")" (,) "," (unary_expression) "-theta" (-) "-" (identifier) "theta" ()) ")" (;) ";" (expression_statement) "y = W.dotR_result.transpose();" (assignment_expression) "y = W.dotR_result.transpose()" (identifier) "y" (=) "=" (call_expression) "W.dotR_result.transpose()" (field_expression) "W.dotR_result.transpose" (field_expression) "W.dotR_result" (identifier) "W" (.) "." (field_identifier) "dotR_result" (.) "." (field_identifier) "transpose" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (return_statement) "return y;" (return) "return" (identifier) "y" (;) ";" (}) "}" (comment) "/**\nCompute the gradient of the Ylm expansion of a spot at a\ngiven latitude/longitude on the map.\n\nThis routine uses forward diff pretty inefficiently and\ncan be sped up if we think about it more carefully.\n\n*/" (expression_statement) "template <class Scalar>\ninline" (binary_expression) "template <class Scalar>\ninline" (binary_expression) "template <class Scalar" (identifier) "template" (<) "<" (ERROR) "class" (identifier) "class" (identifier) "Scalar" (>) ">" (identifier) "inline" (;) "" (function_definition) "void spotYlm(const RowVector<Scalar> &amp, const Scalar &sigma_,\n const Scalar &lat, const Scalar &lon,\n const Matrix<double> &by, int l, wigner::Wigner<Scalar> &W,\n RowVector<Scalar> &bamp, Scalar &bsigma, Scalar &blat,\n Scalar &blon) {\n\n // Forward diff for sigma\n // TODO: Compute the backprop expression\n using ADType = ADScalar<Scalar, 1>;\n ADType sigma = sigma_;\n sigma.derivatives() = Vector<Scalar>::Unit(1, 0);\n\n // Compute the integrals recursively\n Vector<ADType> IP(l + 1);\n Vector<ADType> ID(l + 1);\n Vector<Scalar> y((l + 1) * (l + 1));\n y.setZero();\n ADType yn;\n Vector<Scalar> dydsigma((l + 1) * (l + 1));\n dydsigma.setZero();\n\n // Constants\n ADType a = 1.0 / (2 * sigma * sigma);\n ADType sqrta = sqrt(a);\n ADType erfa = erf(2 * sqrta.value());\n erfa.derivatives()(0) =\n -sqrt(32 / pi<Scalar>()) * exp(-4 * a.value()) * a.value();\n ADType term = exp(-4 * a);\n\n // Seeding values\n IP(0) = root_pi<Scalar>() / (2 * sqrta) * erfa;\n IP(1) = (root_pi<Scalar>() * sqrta * erfa + term - 1) / (2 * a);\n ID(0) = 0;\n ID(1) = IP(0);\n\n // Recurse\n int sgn = -1;\n for (int n = 2; n < l + 1; ++n) {\n IP(n) = (2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1) - (n - 1.0) / n * IP(n - 2);\n ID(n) = (2.0 * n - 1.0) * IP(n - 1) + ID(n - 2);\n sgn *= -1;\n }\n\n // Compute the coefficients of the expansion (w/o the amplitude)\n for (int n = 0; n < l + 1; ++n) {\n yn = sqrt(2 * n + 1) * (IP(n) / IP(0));\n y(n * n + n) = yn.value();\n dydsigma(n * n + n) = yn.derivatives()(0);\n }\n\n // Rotate the spot to the correct lat/lon\n Scalar tol = 10 * mach_eps<Scalar>();\n UnitVector<Scalar> u;\n Scalar normu;\n Scalar theta;\n Scalar clat = cos(lat);\n Scalar clon = cos(lon);\n Scalar slat = sin(lat);\n Scalar slon = sin(lon);\n\n // Axis & angle of rotation\n if ((abs(lat) > tol) || (abs(lon) > tol)) {\n Scalar costheta = 0.5 * (clon + clat + clon * clat - 1);\n u << -slat * (1 + clon), slon * (1 + clat), slon * slat;\n normu = u.norm();\n u /= normu;\n Scalar sintheta = 0.5 * normu;\n theta = atan2(sintheta, costheta);\n } else {\n theta = 0.0;\n u << 0, 1, 0;\n normu = 1;\n }\n\n // Gradient w/ respect to lat, lon, and sigma\n Matrix<Scalar> y_amp = y * amp;\n W.dotR(y_amp.transpose(), u(0), u(1), u(2), -theta, by.transpose());\n\n // lat\n Scalar termz = (clat * (1 + clon) * (1 + clon) * slat - slat * slon * slon) /\n (normu * normu * normu);\n Scalar dxdl = -clat * (1 + clon) / normu + (1 + clon) * slat * termz;\n Scalar dydl = -slat * slon / normu - (1 + clat) * slon * termz;\n Scalar dzdl = clat * slon / normu - slat * slon * termz;\n Scalar dthetadl = -u(0);\n blat = (dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz -\n dthetadl * W.dotR_btheta);\n\n // lon\n termz = (clon * (1 + clat) * (1 + clat) * slon - slon * slat * slat) /\n (normu * normu * normu);\n dxdl = slat * slon / normu + (1 + clon) * slat * termz;\n dydl = (1 + clat) * clon / normu - (1 + clat) * slon * termz;\n dzdl = clon * slat / normu - slat * slon * termz;\n dthetadl = u(1);\n blon = (dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz -\n dthetadl * W.dotR_btheta);\n\n // sigma\n W.dotR(dydsigma.transpose(), u(0), u(1), u(2), -theta);\n dydsigma = W.dotR_result.transpose();\n bsigma = (by.transpose() * dydsigma).dot(amp);\n\n // Compute the actual result (w/o amplitude)\n W.dotR(y.transpose(), u(0), u(1), u(2), -theta);\n y = W.dotR_result.transpose();\n\n // Gradient of amplitude\n bamp = y.transpose() * by;\n}" (primitive_type) "void" (function_declarator) "spotYlm(const RowVector<Scalar> &amp, const Scalar &sigma_,\n const Scalar &lat, const Scalar &lon,\n const Matrix<double> &by, int l, wigner::Wigner<Scalar> &W,\n RowVector<Scalar> &bamp, Scalar &bsigma, Scalar &blat,\n Scalar &blon)" (identifier) "spotYlm" (parameter_list) "(const RowVector<Scalar> &amp, const Scalar &sigma_,\n const Scalar &lat, const Scalar &lon,\n const Matrix<double> &by, int l, wigner::Wigner<Scalar> &W,\n RowVector<Scalar> &bamp, Scalar &bsigma, Scalar &blat,\n Scalar &blon)" (() "(" (parameter_declaration) "const RowVector<Scalar> &amp" (type_qualifier) "const" (const) "const" (type_identifier) "RowVector" (ERROR) "<Scalar> &" (<) "<" (identifier) "Scalar" (>) ">" (&) "&" (identifier) "amp" (,) "," (parameter_declaration) "const Scalar &sigma_" (type_qualifier) "const" (const) "const" (type_identifier) "Scalar" (ERROR) "&" (&) "&" (identifier) "sigma_" (,) "," (parameter_declaration) "const Scalar &lat" (type_qualifier) "const" (const) "const" (type_identifier) "Scalar" (ERROR) "&" (&) "&" (identifier) "lat" (,) "," (parameter_declaration) "const Scalar &lon" (type_qualifier) "const" (const) "const" (type_identifier) "Scalar" (ERROR) "&" (&) "&" (identifier) "lon" (,) "," (parameter_declaration) "const Matrix<double> &by" (type_qualifier) "const" (const) "const" (type_identifier) "Matrix" (ERROR) "<double> &" (<) "<" (primitive_type) "double" (>) ">" (&) "&" (identifier) "by" (,) "," (parameter_declaration) "int l" (primitive_type) "int" (identifier) "l" (,) "," (parameter_declaration) "wigner::Wigner<Scalar> &W" (type_identifier) "wigner" (ERROR) "::Wigner<Scalar> &" (:) ":" (:) ":" (identifier) "Wigner" (<) "<" (identifier) "Scalar" (>) ">" (&) "&" (identifier) "W" (,) "," (parameter_declaration) "RowVector<Scalar> &bamp" (type_identifier) "RowVector" (ERROR) "<Scalar> &" (<) "<" (identifier) "Scalar" (>) ">" (&) "&" (identifier) "bamp" (,) "," (parameter_declaration) "Scalar &bsigma" (type_identifier) "Scalar" (ERROR) "&" (&) "&" (identifier) "bsigma" (,) "," (parameter_declaration) "Scalar &blat" (type_identifier) "Scalar" (ERROR) "&" (&) "&" (identifier) "blat" (,) "," (parameter_declaration) "Scalar &blon" (type_identifier) "Scalar" (ERROR) "&" (&) "&" (identifier) "blon" ()) ")" (compound_statement) "{\n\n // Forward diff for sigma\n // TODO: Compute the backprop expression\n using ADType = ADScalar<Scalar, 1>;\n ADType sigma = sigma_;\n sigma.derivatives() = Vector<Scalar>::Unit(1, 0);\n\n // Compute the integrals recursively\n Vector<ADType> IP(l + 1);\n Vector<ADType> ID(l + 1);\n Vector<Scalar> y((l + 1) * (l + 1));\n y.setZero();\n ADType yn;\n Vector<Scalar> dydsigma((l + 1) * (l + 1));\n dydsigma.setZero();\n\n // Constants\n ADType a = 1.0 / (2 * sigma * sigma);\n ADType sqrta = sqrt(a);\n ADType erfa = erf(2 * sqrta.value());\n erfa.derivatives()(0) =\n -sqrt(32 / pi<Scalar>()) * exp(-4 * a.value()) * a.value();\n ADType term = exp(-4 * a);\n\n // Seeding values\n IP(0) = root_pi<Scalar>() / (2 * sqrta) * erfa;\n IP(1) = (root_pi<Scalar>() * sqrta * erfa + term - 1) / (2 * a);\n ID(0) = 0;\n ID(1) = IP(0);\n\n // Recurse\n int sgn = -1;\n for (int n = 2; n < l + 1; ++n) {\n IP(n) = (2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1) - (n - 1.0) / n * IP(n - 2);\n ID(n) = (2.0 * n - 1.0) * IP(n - 1) + ID(n - 2);\n sgn *= -1;\n }\n\n // Compute the coefficients of the expansion (w/o the amplitude)\n for (int n = 0; n < l + 1; ++n) {\n yn = sqrt(2 * n + 1) * (IP(n) / IP(0));\n y(n * n + n) = yn.value();\n dydsigma(n * n + n) = yn.derivatives()(0);\n }\n\n // Rotate the spot to the correct lat/lon\n Scalar tol = 10 * mach_eps<Scalar>();\n UnitVector<Scalar> u;\n Scalar normu;\n Scalar theta;\n Scalar clat = cos(lat);\n Scalar clon = cos(lon);\n Scalar slat = sin(lat);\n Scalar slon = sin(lon);\n\n // Axis & angle of rotation\n if ((abs(lat) > tol) || (abs(lon) > tol)) {\n Scalar costheta = 0.5 * (clon + clat + clon * clat - 1);\n u << -slat * (1 + clon), slon * (1 + clat), slon * slat;\n normu = u.norm();\n u /= normu;\n Scalar sintheta = 0.5 * normu;\n theta = atan2(sintheta, costheta);\n } else {\n theta = 0.0;\n u << 0, 1, 0;\n normu = 1;\n }\n\n // Gradient w/ respect to lat, lon, and sigma\n Matrix<Scalar> y_amp = y * amp;\n W.dotR(y_amp.transpose(), u(0), u(1), u(2), -theta, by.transpose());\n\n // lat\n Scalar termz = (clat * (1 + clon) * (1 + clon) * slat - slat * slon * slon) /\n (normu * normu * normu);\n Scalar dxdl = -clat * (1 + clon) / normu + (1 + clon) * slat * termz;\n Scalar dydl = -slat * slon / normu - (1 + clat) * slon * termz;\n Scalar dzdl = clat * slon / normu - slat * slon * termz;\n Scalar dthetadl = -u(0);\n blat = (dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz -\n dthetadl * W.dotR_btheta);\n\n // lon\n termz = (clon * (1 + clat) * (1 + clat) * slon - slon * slat * slat) /\n (normu * normu * normu);\n dxdl = slat * slon / normu + (1 + clon) * slat * termz;\n dydl = (1 + clat) * clon / normu - (1 + clat) * slon * termz;\n dzdl = clon * slat / normu - slat * slon * termz;\n dthetadl = u(1);\n blon = (dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz -\n dthetadl * W.dotR_btheta);\n\n // sigma\n W.dotR(dydsigma.transpose(), u(0), u(1), u(2), -theta);\n dydsigma = W.dotR_result.transpose();\n bsigma = (by.transpose() * dydsigma).dot(amp);\n\n // Compute the actual result (w/o amplitude)\n W.dotR(y.transpose(), u(0), u(1), u(2), -theta);\n y = W.dotR_result.transpose();\n\n // Gradient of amplitude\n bamp = y.transpose() * by;\n}" ({) "{" (comment) "// Forward diff for sigma" (comment) "// TODO: Compute the backprop expression" (declaration) "using ADType = ADScalar<Scalar, 1>;" (type_identifier) "using" (init_declarator) "ADType = ADScalar<Scalar" (identifier) "ADType" (=) "=" (binary_expression) "ADScalar<Scalar" (identifier) "ADScalar" (<) "<" (identifier) "Scalar" (ERROR) ", 1>" (,) "," (number_literal) "1" (>) ">" (;) ";" (declaration) "ADType sigma = sigma_;" (type_identifier) "ADType" (init_declarator) "sigma = sigma_" (identifier) "sigma" (=) "=" (identifier) "sigma_" (;) ";" (expression_statement) "sigma.derivatives() = Vector<Scalar>::Unit(1, 0);" (assignment_expression) "sigma.derivatives() = Vector<Scalar>::Unit(1, 0)" (call_expression) "sigma.derivatives()" (field_expression) "sigma.derivatives" (identifier) "sigma" (.) "." (field_identifier) "derivatives" (argument_list) "()" (() "(" ()) ")" (=) "=" (binary_expression) "Vector<Scalar>::Unit(1, 0)" (binary_expression) "Vector<Scalar" (identifier) "Vector" (<) "<" (identifier) "Scalar" (>) ">" (ERROR) "::" (:) ":" (:) ":" (call_expression) "Unit(1, 0)" (identifier) "Unit" (argument_list) "(1, 0)" (() "(" (number_literal) "1" (,) "," (number_literal) "0" ()) ")" (;) ";" (comment) "// Compute the integrals recursively" (expression_statement) "Vector<ADType> IP(l + 1);" (binary_expression) "Vector<ADType> IP(l + 1)" (binary_expression) "Vector<ADType" (identifier) "Vector" (<) "<" (identifier) "ADType" (>) ">" (call_expression) "IP(l + 1)" (identifier) "IP" (argument_list) "(l + 1)" (() "(" (binary_expression) "l + 1" (identifier) "l" (+) "+" (number_literal) "1" ()) ")" (;) ";" (expression_statement) "Vector<ADType> ID(l + 1);" (binary_expression) "Vector<ADType> ID(l + 1)" (binary_expression) "Vector<ADType" (identifier) "Vector" (<) "<" (identifier) "ADType" (>) ">" (call_expression) "ID(l + 1)" (identifier) "ID" (argument_list) "(l + 1)" (() "(" (binary_expression) "l + 1" (identifier) "l" (+) "+" (number_literal) "1" ()) ")" (;) ";" (expression_statement) "Vector<Scalar> y((l + 1) * (l + 1));" (binary_expression) "Vector<Scalar> y((l + 1) * (l + 1))" (binary_expression) "Vector<Scalar" (identifier) "Vector" (<) "<" (identifier) "Scalar" (>) ">" (call_expression) "y((l + 1) * (l + 1))" (identifier) "y" (argument_list) "((l + 1) * (l + 1))" (() "(" (binary_expression) "(l + 1) * (l + 1)" (parenthesized_expression) "(l + 1)" (() "(" (binary_expression) "l + 1" (identifier) "l" (+) "+" (number_literal) "1" ()) ")" (*) "*" (parenthesized_expression) "(l + 1)" (() "(" (binary_expression) "l + 1" (identifier) "l" (+) "+" (number_literal) "1" ()) ")" ()) ")" (;) ";" (expression_statement) "y.setZero();" (call_expression) "y.setZero()" (field_expression) "y.setZero" (identifier) "y" (.) "." (field_identifier) "setZero" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "ADType yn;" (type_identifier) "ADType" (identifier) "yn" (;) ";" (expression_statement) "Vector<Scalar> dydsigma((l + 1) * (l + 1));" (binary_expression) "Vector<Scalar> dydsigma((l + 1) * (l + 1))" (binary_expression) "Vector<Scalar" (identifier) "Vector" (<) "<" (identifier) "Scalar" (>) ">" (call_expression) "dydsigma((l + 1) * (l + 1))" (identifier) "dydsigma" (argument_list) "((l + 1) * (l + 1))" (() "(" (binary_expression) "(l + 1) * (l + 1)" (parenthesized_expression) "(l + 1)" (() "(" (binary_expression) "l + 1" (identifier) "l" (+) "+" (number_literal) "1" ()) ")" (*) "*" (parenthesized_expression) "(l + 1)" (() "(" (binary_expression) "l + 1" (identifier) "l" (+) "+" (number_literal) "1" ()) ")" ()) ")" (;) ";" (expression_statement) "dydsigma.setZero();" (call_expression) "dydsigma.setZero()" (field_expression) "dydsigma.setZero" (identifier) "dydsigma" (.) "." (field_identifier) "setZero" (argument_list) "()" (() "(" ()) ")" (;) ";" (comment) "// Constants" (declaration) "ADType a = 1.0 / (2 * sigma * sigma);" (type_identifier) "ADType" (init_declarator) "a = 1.0 / (2 * sigma * sigma)" (identifier) "a" (=) "=" (binary_expression) "1.0 / (2 * sigma * sigma)" (number_literal) "1.0" (/) "/" (parenthesized_expression) "(2 * sigma * sigma)" (() "(" (binary_expression) "2 * sigma * sigma" (binary_expression) "2 * sigma" (number_literal) "2" (*) "*" (identifier) "sigma" (*) "*" (identifier) "sigma" ()) ")" (;) ";" (declaration) "ADType sqrta = sqrt(a);" (type_identifier) "ADType" (init_declarator) "sqrta = sqrt(a)" (identifier) "sqrta" (=) "=" (call_expression) "sqrt(a)" (identifier) "sqrt" (argument_list) "(a)" (() "(" (identifier) "a" ()) ")" (;) ";" (declaration) "ADType erfa = erf(2 * sqrta.value());" (type_identifier) "ADType" (init_declarator) "erfa = erf(2 * sqrta.value())" (identifier) "erfa" (=) "=" (call_expression) "erf(2 * sqrta.value())" (identifier) "erf" (argument_list) "(2 * sqrta.value())" (() "(" (binary_expression) "2 * sqrta.value()" (number_literal) "2" (*) "*" (call_expression) "sqrta.value()" (field_expression) "sqrta.value" (identifier) "sqrta" (.) "." (field_identifier) "value" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (expression_statement) "erfa.derivatives()(0) =\n -sqrt(32 / pi<Scalar>()) * exp(-4 * a.value()) * a.value();" (assignment_expression) "erfa.derivatives()(0) =\n -sqrt(32 / pi<Scalar>()) * exp(-4 * a.value()) * a.value()" (call_expression) "erfa.derivatives()(0)" (call_expression) "erfa.derivatives()" (field_expression) "erfa.derivatives" (identifier) "erfa" (.) "." (field_identifier) "derivatives" (argument_list) "()" (() "(" ()) ")" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (=) "=" (binary_expression) "-sqrt(32 / pi<Scalar>()) * exp(-4 * a.value()) * a.value()" (binary_expression) "-sqrt(32 / pi<Scalar>()) * exp(-4 * a.value())" (unary_expression) "-sqrt(32 / pi<Scalar>())" (-) "-" (call_expression) "sqrt(32 / pi<Scalar>())" (identifier) "sqrt" (argument_list) "(32 / pi<Scalar>())" (() "(" (binary_expression) "32 / pi<Scalar>()" (binary_expression) "32 / pi<Scalar" (binary_expression) "32 / pi" (number_literal) "32" (/) "/" (identifier) "pi" (<) "<" (identifier) "Scalar" (>) ">" (parenthesized_expression) "()" (() "(" (identifier) "" ()) ")" ()) ")" (*) "*" (call_expression) "exp(-4 * a.value())" (identifier) "exp" (argument_list) "(-4 * a.value())" (() "(" (binary_expression) "-4 * a.value()" (number_literal) "-4" (*) "*" (call_expression) "a.value()" (field_expression) "a.value" (identifier) "a" (.) "." (field_identifier) "value" (argument_list) "()" (() "(" ()) ")" ()) ")" (*) "*" (call_expression) "a.value()" (field_expression) "a.value" (identifier) "a" (.) "." (field_identifier) "value" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "ADType term = exp(-4 * a);" (type_identifier) "ADType" (init_declarator) "term = exp(-4 * a)" (identifier) "term" (=) "=" (call_expression) "exp(-4 * a)" (identifier) "exp" (argument_list) "(-4 * a)" (() "(" (binary_expression) "-4 * a" (number_literal) "-4" (*) "*" (identifier) "a" ()) ")" (;) ";" (comment) "// Seeding values" (expression_statement) "IP(0) = root_pi<Scalar>() / (2 * sqrta) * erfa;" (assignment_expression) "IP(0) = root_pi<Scalar>() / (2 * sqrta) * erfa" (call_expression) "IP(0)" (identifier) "IP" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (=) "=" (binary_expression) "root_pi<Scalar>() / (2 * sqrta) * erfa" (binary_expression) "root_pi<Scalar" (identifier) "root_pi" (<) "<" (identifier) "Scalar" (>) ">" (binary_expression) "() / (2 * sqrta) * erfa" (binary_expression) "() / (2 * sqrta)" (parenthesized_expression) "()" (() "(" (identifier) "" ()) ")" (/) "/" (parenthesized_expression) "(2 * sqrta)" (() "(" (binary_expression) "2 * sqrta" (number_literal) "2" (*) "*" (identifier) "sqrta" ()) ")" (*) "*" (identifier) "erfa" (;) ";" (expression_statement) "IP(1) = (root_pi<Scalar>() * sqrta * erfa + term - 1) / (2 * a);" (assignment_expression) "IP(1) = (root_pi<Scalar>() * sqrta * erfa + term - 1) / (2 * a)" (call_expression) "IP(1)" (identifier) "IP" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (=) "=" (binary_expression) "(root_pi<Scalar>() * sqrta * erfa + term - 1) / (2 * a)" (parenthesized_expression) "(root_pi<Scalar>() * sqrta * erfa + term - 1)" (() "(" (binary_expression) "root_pi<Scalar>() * sqrta * erfa + term - 1" (binary_expression) "root_pi<Scalar" (identifier) "root_pi" (<) "<" (identifier) "Scalar" (>) ">" (binary_expression) "() * sqrta * erfa + term - 1" (binary_expression) "() * sqrta * erfa + term" (binary_expression) "() * sqrta * erfa" (binary_expression) "() * sqrta" (parenthesized_expression) "()" (() "(" (identifier) "" ()) ")" (*) "*" (identifier) "sqrta" (*) "*" (identifier) "erfa" (+) "+" (identifier) "term" (-) "-" (number_literal) "1" ()) ")" (/) "/" (parenthesized_expression) "(2 * a)" (() "(" (binary_expression) "2 * a" (number_literal) "2" (*) "*" (identifier) "a" ()) ")" (;) ";" (expression_statement) "ID(0) = 0;" (assignment_expression) "ID(0) = 0" (call_expression) "ID(0)" (identifier) "ID" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "ID(1) = IP(0);" (assignment_expression) "ID(1) = IP(0)" (call_expression) "ID(1)" (identifier) "ID" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (=) "=" (call_expression) "IP(0)" (identifier) "IP" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (;) ";" (comment) "// Recurse" (declaration) "int sgn = -1;" (primitive_type) "int" (init_declarator) "sgn = -1" (identifier) "sgn" (=) "=" (number_literal) "-1" (;) ";" (for_statement) "for (int n = 2; n < l + 1; ++n) {\n IP(n) = (2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1) - (n - 1.0) / n * IP(n - 2);\n ID(n) = (2.0 * n - 1.0) * IP(n - 1) + ID(n - 2);\n sgn *= -1;\n }" (for) "for" (() "(" (declaration) "int n = 2;" (primitive_type) "int" (init_declarator) "n = 2" (identifier) "n" (=) "=" (number_literal) "2" (;) ";" (binary_expression) "n < l + 1" (identifier) "n" (<) "<" (binary_expression) "l + 1" (identifier) "l" (+) "+" (number_literal) "1" (;) ";" (update_expression) "++n" (++) "++" (identifier) "n" ()) ")" (compound_statement) "{\n IP(n) = (2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1) - (n - 1.0) / n * IP(n - 2);\n ID(n) = (2.0 * n - 1.0) * IP(n - 1) + ID(n - 2);\n sgn *= -1;\n }" ({) "{" (expression_statement) "IP(n) = (2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1) - (n - 1.0) / n * IP(n - 2);" (assignment_expression) "IP(n) = (2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1) - (n - 1.0) / n * IP(n - 2)" (call_expression) "IP(n)" (identifier) "IP" (argument_list) "(n)" (() "(" (identifier) "n" ()) ")" (=) "=" (binary_expression) "(2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1) - (n - 1.0) / n * IP(n - 2)" (binary_expression) "(2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1)" (binary_expression) "(2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0)" (binary_expression) "(2.0 * n - 1.0) / (2.0 * n * a)" (parenthesized_expression) "(2.0 * n - 1.0)" (() "(" (binary_expression) "2.0 * n - 1.0" (binary_expression) "2.0 * n" (number_literal) "2.0" (*) "*" (identifier) "n" (-) "-" (number_literal) "1.0" ()) ")" (/) "/" (parenthesized_expression) "(2.0 * n * a)" (() "(" (binary_expression) "2.0 * n * a" (binary_expression) "2.0 * n" (number_literal) "2.0" (*) "*" (identifier) "n" (*) "*" (identifier) "a" ()) ")" (*) "*" (parenthesized_expression) "(ID(n - 1) + sgn * term - 1.0)" (() "(" (binary_expression) "ID(n - 1) + sgn * term - 1.0" (binary_expression) "ID(n - 1) + sgn * term" (call_expression) "ID(n - 1)" (identifier) "ID" (argument_list) "(n - 1)" (() "(" (binary_expression) "n - 1" (identifier) "n" (-) "-" (number_literal) "1" ()) ")" (+) "+" (binary_expression) "sgn * term" (identifier) "sgn" (*) "*" (identifier) "term" (-) "-" (number_literal) "1.0" ()) ")" (+) "+" (binary_expression) "(2.0 * n - 1.0) / n * IP(n - 1)" (binary_expression) "(2.0 * n - 1.0) / n" (parenthesized_expression) "(2.0 * n - 1.0)" (() "(" (binary_expression) "2.0 * n - 1.0" (binary_expression) "2.0 * n" (number_literal) "2.0" (*) "*" (identifier) "n" (-) "-" (number_literal) "1.0" ()) ")" (/) "/" (identifier) "n" (*) "*" (call_expression) "IP(n - 1)" (identifier) "IP" (argument_list) "(n - 1)" (() "(" (binary_expression) "n - 1" (identifier) "n" (-) "-" (number_literal) "1" ()) ")" (-) "-" (binary_expression) "(n - 1.0) / n * IP(n - 2)" (binary_expression) "(n - 1.0) / n" (parenthesized_expression) "(n - 1.0)" (() "(" (binary_expression) "n - 1.0" (identifier) "n" (-) "-" (number_literal) "1.0" ()) ")" (/) "/" (identifier) "n" (*) "*" (call_expression) "IP(n - 2)" (identifier) "IP" (argument_list) "(n - 2)" (() "(" (binary_expression) "n - 2" (identifier) "n" (-) "-" (number_literal) "2" ()) ")" (;) ";" (expression_statement) "ID(n) = (2.0 * n - 1.0) * IP(n - 1) + ID(n - 2);" (assignment_expression) "ID(n) = (2.0 * n - 1.0) * IP(n - 1) + ID(n - 2)" (call_expression) "ID(n)" (identifier) "ID" (argument_list) "(n)" (() "(" (identifier) "n" ()) ")" (=) "=" (binary_expression) "(2.0 * n - 1.0) * IP(n - 1) + ID(n - 2)" (binary_expression) "(2.0 * n - 1.0) * IP(n - 1)" (parenthesized_expression) "(2.0 * n - 1.0)" (() "(" (binary_expression) "2.0 * n - 1.0" (binary_expression) "2.0 * n" (number_literal) "2.0" (*) "*" (identifier) "n" (-) "-" (number_literal) "1.0" ()) ")" (*) "*" (call_expression) "IP(n - 1)" (identifier) "IP" (argument_list) "(n - 1)" (() "(" (binary_expression) "n - 1" (identifier) "n" (-) "-" (number_literal) "1" ()) ")" (+) "+" (call_expression) "ID(n - 2)" (identifier) "ID" (argument_list) "(n - 2)" (() "(" (binary_expression) "n - 2" (identifier) "n" (-) "-" (number_literal) "2" ()) ")" (;) ";" (expression_statement) "sgn *= -1;" (assignment_expression) "sgn *= -1" (identifier) "sgn" (*=) "*=" (number_literal) "-1" (;) ";" (}) "}" (comment) "// Compute the coefficients of the expansion (w/o the amplitude)" (for_statement) "for (int n = 0; n < l + 1; ++n) {\n yn = sqrt(2 * n + 1) * (IP(n) / IP(0));\n y(n * n + n) = yn.value();\n dydsigma(n * n + n) = yn.derivatives()(0);\n }" (for) "for" (() "(" (declaration) "int n = 0;" (primitive_type) "int" (init_declarator) "n = 0" (identifier) "n" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "n < l + 1" (identifier) "n" (<) "<" (binary_expression) "l + 1" (identifier) "l" (+) "+" (number_literal) "1" (;) ";" (update_expression) "++n" (++) "++" (identifier) "n" ()) ")" (compound_statement) "{\n yn = sqrt(2 * n + 1) * (IP(n) / IP(0));\n y(n * n + n) = yn.value();\n dydsigma(n * n + n) = yn.derivatives()(0);\n }" ({) "{" (expression_statement) "yn = sqrt(2 * n + 1) * (IP(n) / IP(0));" (assignment_expression) "yn = sqrt(2 * n + 1) * (IP(n) / IP(0))" (identifier) "yn" (=) "=" (binary_expression) "sqrt(2 * n + 1) * (IP(n) / IP(0))" (call_expression) "sqrt(2 * n + 1)" (identifier) "sqrt" (argument_list) "(2 * n + 1)" (() "(" (binary_expression) "2 * n + 1" (binary_expression) "2 * n" (number_literal) "2" (*) "*" (identifier) "n" (+) "+" (number_literal) "1" ()) ")" (*) "*" (parenthesized_expression) "(IP(n) / IP(0))" (() "(" (binary_expression) "IP(n) / IP(0)" (call_expression) "IP(n)" (identifier) "IP" (argument_list) "(n)" (() "(" (identifier) "n" ()) ")" (/) "/" (call_expression) "IP(0)" (identifier) "IP" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" ()) ")" (;) ";" (expression_statement) "y(n * n + n) = yn.value();" (assignment_expression) "y(n * n + n) = yn.value()" (call_expression) "y(n * n + n)" (identifier) "y" (argument_list) "(n * n + n)" (() "(" (binary_expression) "n * n + n" (binary_expression) "n * n" (identifier) "n" (*) "*" (identifier) "n" (+) "+" (identifier) "n" ()) ")" (=) "=" (call_expression) "yn.value()" (field_expression) "yn.value" (identifier) "yn" (.) "." (field_identifier) "value" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "dydsigma(n * n + n) = yn.derivatives()(0);" (assignment_expression) "dydsigma(n * n + n) = yn.derivatives()(0)" (call_expression) "dydsigma(n * n + n)" (identifier) "dydsigma" (argument_list) "(n * n + n)" (() "(" (binary_expression) "n * n + n" (binary_expression) "n * n" (identifier) "n" (*) "*" (identifier) "n" (+) "+" (identifier) "n" ()) ")" (=) "=" (call_expression) "yn.derivatives()(0)" (call_expression) "yn.derivatives()" (field_expression) "yn.derivatives" (identifier) "yn" (.) "." (field_identifier) "derivatives" (argument_list) "()" (() "(" ()) ")" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (;) ";" (}) "}" (comment) "// Rotate the spot to the correct lat/lon" (declaration) "Scalar tol = 10 * mach_eps<Scalar>();" (type_identifier) "Scalar" (init_declarator) "tol = 10 * mach_eps<Scalar>()" (identifier) "tol" (=) "=" (binary_expression) "10 * mach_eps<Scalar>()" (binary_expression) "10 * mach_eps<Scalar" (binary_expression) "10 * mach_eps" (number_literal) "10" (*) "*" (identifier) "mach_eps" (<) "<" (identifier) "Scalar" (>) ">" (parenthesized_expression) "()" (() "(" (identifier) "" ()) ")" (;) ";" (expression_statement) "UnitVector<Scalar> u;" (binary_expression) "UnitVector<Scalar> u" (binary_expression) "UnitVector<Scalar" (identifier) "UnitVector" (<) "<" (identifier) "Scalar" (>) ">" (identifier) "u" (;) ";" (declaration) "Scalar normu;" (type_identifier) "Scalar" (identifier) "normu" (;) ";" (declaration) "Scalar theta;" (type_identifier) "Scalar" (identifier) "theta" (;) ";" (declaration) "Scalar clat = cos(lat);" (type_identifier) "Scalar" (init_declarator) "clat = cos(lat)" (identifier) "clat" (=) "=" (call_expression) "cos(lat)" (identifier) "cos" (argument_list) "(lat)" (() "(" (identifier) "lat" ()) ")" (;) ";" (declaration) "Scalar clon = cos(lon);" (type_identifier) "Scalar" (init_declarator) "clon = cos(lon)" (identifier) "clon" (=) "=" (call_expression) "cos(lon)" (identifier) "cos" (argument_list) "(lon)" (() "(" (identifier) "lon" ()) ")" (;) ";" (declaration) "Scalar slat = sin(lat);" (type_identifier) "Scalar" (init_declarator) "slat = sin(lat)" (identifier) "slat" (=) "=" (call_expression) "sin(lat)" (identifier) "sin" (argument_list) "(lat)" (() "(" (identifier) "lat" ()) ")" (;) ";" (declaration) "Scalar slon = sin(lon);" (type_identifier) "Scalar" (init_declarator) "slon = sin(lon)" (identifier) "slon" (=) "=" (call_expression) "sin(lon)" (identifier) "sin" (argument_list) "(lon)" (() "(" (identifier) "lon" ()) ")" (;) ";" (comment) "// Axis & angle of rotation" (if_statement) "if ((abs(lat) > tol) || (abs(lon) > tol)) {\n Scalar costheta = 0.5 * (clon + clat + clon * clat - 1);\n u << -slat * (1 + clon), slon * (1 + clat), slon * slat;\n normu = u.norm();\n u /= normu;\n Scalar sintheta = 0.5 * normu;\n theta = atan2(sintheta, costheta);\n } else {\n theta = 0.0;\n u << 0, 1, 0;\n normu = 1;\n }" (if) "if" (parenthesized_expression) "((abs(lat) > tol) || (abs(lon) > tol))" (() "(" (binary_expression) "(abs(lat) > tol) || (abs(lon) > tol)" (parenthesized_expression) "(abs(lat) > tol)" (() "(" (binary_expression) "abs(lat) > tol" (call_expression) "abs(lat)" (identifier) "abs" (argument_list) "(lat)" (() "(" (identifier) "lat" ()) ")" (>) ">" (identifier) "tol" ()) ")" (||) "||" (parenthesized_expression) "(abs(lon) > tol)" (() "(" (binary_expression) "abs(lon) > tol" (call_expression) "abs(lon)" (identifier) "abs" (argument_list) "(lon)" (() "(" (identifier) "lon" ()) ")" (>) ">" (identifier) "tol" ()) ")" ()) ")" (compound_statement) "{\n Scalar costheta = 0.5 * (clon + clat + clon * clat - 1);\n u << -slat * (1 + clon), slon * (1 + clat), slon * slat;\n normu = u.norm();\n u /= normu;\n Scalar sintheta = 0.5 * normu;\n theta = atan2(sintheta, costheta);\n }" ({) "{" (declaration) "Scalar costheta = 0.5 * (clon + clat + clon * clat - 1);" (type_identifier) "Scalar" (init_declarator) "costheta = 0.5 * (clon + clat + clon * clat - 1)" (identifier) "costheta" (=) "=" (binary_expression) "0.5 * (clon + clat + clon * clat - 1)" (number_literal) "0.5" (*) "*" (parenthesized_expression) "(clon + clat + clon * clat - 1)" (() "(" (binary_expression) "clon + clat + clon * clat - 1" (binary_expression) "clon + clat + clon * clat" (binary_expression) "clon + clat" (identifier) "clon" (+) "+" (identifier) "clat" (+) "+" (binary_expression) "clon * clat" (identifier) "clon" (*) "*" (identifier) "clat" (-) "-" (number_literal) "1" ()) ")" (;) ";" (expression_statement) "u << -slat * (1 + clon), slon * (1 + clat), slon * slat;" (comma_expression) "u << -slat * (1 + clon), slon * (1 + clat), slon * slat" (binary_expression) "u << -slat * (1 + clon)" (identifier) "u" (<<) "<<" (binary_expression) "-slat * (1 + clon)" (unary_expression) "-slat" (-) "-" (identifier) "slat" (*) "*" (parenthesized_expression) "(1 + clon)" (() "(" (binary_expression) "1 + clon" (number_literal) "1" (+) "+" (identifier) "clon" ()) ")" (,) "," (comma_expression) "slon * (1 + clat), slon * slat" (binary_expression) "slon * (1 + clat)" (identifier) "slon" (*) "*" (parenthesized_expression) "(1 + clat)" (() "(" (binary_expression) "1 + clat" (number_literal) "1" (+) "+" (identifier) "clat" ()) ")" (,) "," (binary_expression) "slon * slat" (identifier) "slon" (*) "*" (identifier) "slat" (;) ";" (expression_statement) "normu = u.norm();" (assignment_expression) "normu = u.norm()" (identifier) "normu" (=) "=" (call_expression) "u.norm()" (field_expression) "u.norm" (identifier) "u" (.) "." (field_identifier) "norm" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "u /= normu;" (assignment_expression) "u /= normu" (identifier) "u" (/=) "/=" (identifier) "normu" (;) ";" (declaration) "Scalar sintheta = 0.5 * normu;" (type_identifier) "Scalar" (init_declarator) "sintheta = 0.5 * normu" (identifier) "sintheta" (=) "=" (binary_expression) "0.5 * normu" (number_literal) "0.5" (*) "*" (identifier) "normu" (;) ";" (expression_statement) "theta = atan2(sintheta, costheta);" (assignment_expression) "theta = atan2(sintheta, costheta)" (identifier) "theta" (=) "=" (call_expression) "atan2(sintheta, costheta)" (identifier) "atan2" (argument_list) "(sintheta, costheta)" (() "(" (identifier) "sintheta" (,) "," (identifier) "costheta" ()) ")" (;) ";" (}) "}" (else_clause) "else {\n theta = 0.0;\n u << 0, 1, 0;\n normu = 1;\n }" (else) "else" (compound_statement) "{\n theta = 0.0;\n u << 0, 1, 0;\n normu = 1;\n }" ({) "{" (expression_statement) "theta = 0.0;" (assignment_expression) "theta = 0.0" (identifier) "theta" (=) "=" (number_literal) "0.0" (;) ";" (expression_statement) "u << 0, 1, 0;" (comma_expression) "u << 0, 1, 0" (binary_expression) "u << 0" (identifier) "u" (<<) "<<" (number_literal) "0" (,) "," (comma_expression) "1, 0" (number_literal) "1" (,) "," (number_literal) "0" (;) ";" (expression_statement) "normu = 1;" (assignment_expression) "normu = 1" (identifier) "normu" (=) "=" (number_literal) "1" (;) ";" (}) "}" (comment) "// Gradient w/ respect to lat, lon, and sigma" (expression_statement) "Matrix<Scalar> y_amp = y * amp;" (binary_expression) "Matrix<Scalar> y_amp = y * amp" (binary_expression) "Matrix<Scalar" (identifier) "Matrix" (<) "<" (identifier) "Scalar" (>) ">" (assignment_expression) "y_amp = y * amp" (identifier) "y_amp" (=) "=" (binary_expression) "y * amp" (identifier) "y" (*) "*" (identifier) "amp" (;) ";" (expression_statement) "W.dotR(y_amp.transpose(), u(0), u(1), u(2), -theta, by.transpose());" (call_expression) "W.dotR(y_amp.transpose(), u(0), u(1), u(2), -theta, by.transpose())" (field_expression) "W.dotR" (identifier) "W" (.) "." (field_identifier) "dotR" (argument_list) "(y_amp.transpose(), u(0), u(1), u(2), -theta, by.transpose())" (() "(" (call_expression) "y_amp.transpose()" (field_expression) "y_amp.transpose" (identifier) "y_amp" (.) "." (field_identifier) "transpose" (argument_list) "()" (() "(" ()) ")" (,) "," (call_expression) "u(0)" (identifier) "u" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (,) "," (call_expression) "u(1)" (identifier) "u" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (,) "," (call_expression) "u(2)" (identifier) "u" (argument_list) "(2)" (() "(" (number_literal) "2" ()) ")" (,) "," (unary_expression) "-theta" (-) "-" (identifier) "theta" (,) "," (call_expression) "by.transpose()" (field_expression) "by.transpose" (identifier) "by" (.) "." (field_identifier) "transpose" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (comment) "// lat" (declaration) "Scalar termz = (clat * (1 + clon) * (1 + clon) * slat - slat * slon * slon) /\n (normu * normu * normu);" (type_identifier) "Scalar" (init_declarator) "termz = (clat * (1 + clon) * (1 + clon) * slat - slat * slon * slon) /\n (normu * normu * normu)" (identifier) "termz" (=) "=" (binary_expression) "(clat * (1 + clon) * (1 + clon) * slat - slat * slon * slon) /\n (normu * normu * normu)" (parenthesized_expression) "(clat * (1 + clon) * (1 + clon) * slat - slat * slon * slon)" (() "(" (binary_expression) "clat * (1 + clon) * (1 + clon) * slat - slat * slon * slon" (binary_expression) "clat * (1 + clon) * (1 + clon) * slat" (binary_expression) "clat * (1 + clon) * (1 + clon)" (binary_expression) "clat * (1 + clon)" (identifier) "clat" (*) "*" (parenthesized_expression) "(1 + clon)" (() "(" (binary_expression) "1 + clon" (number_literal) "1" (+) "+" (identifier) "clon" ()) ")" (*) "*" (parenthesized_expression) "(1 + clon)" (() "(" (binary_expression) "1 + clon" (number_literal) "1" (+) "+" (identifier) "clon" ()) ")" (*) "*" (identifier) "slat" (-) "-" (binary_expression) "slat * slon * slon" (binary_expression) "slat * slon" (identifier) "slat" (*) "*" (identifier) "slon" (*) "*" (identifier) "slon" ()) ")" (/) "/" (parenthesized_expression) "(normu * normu * normu)" (() "(" (binary_expression) "normu * normu * normu" (binary_expression) "normu * normu" (identifier) "normu" (*) "*" (identifier) "normu" (*) "*" (identifier) "normu" ()) ")" (;) ";" (declaration) "Scalar dxdl = -clat * (1 + clon) / normu + (1 + clon) * slat * termz;" (type_identifier) "Scalar" (init_declarator) "dxdl = -clat * (1 + clon) / normu + (1 + clon) * slat * termz" (identifier) "dxdl" (=) "=" (binary_expression) "-clat * (1 + clon) / normu + (1 + clon) * slat * termz" (binary_expression) "-clat * (1 + clon) / normu" (binary_expression) "-clat * (1 + clon)" (unary_expression) "-clat" (-) "-" (identifier) "clat" (*) "*" (parenthesized_expression) "(1 + clon)" (() "(" (binary_expression) "1 + clon" (number_literal) "1" (+) "+" (identifier) "clon" ()) ")" (/) "/" (identifier) "normu" (+) "+" (binary_expression) "(1 + clon) * slat * termz" (binary_expression) "(1 + clon) * slat" (parenthesized_expression) "(1 + clon)" (() "(" (binary_expression) "1 + clon" (number_literal) "1" (+) "+" (identifier) "clon" ()) ")" (*) "*" (identifier) "slat" (*) "*" (identifier) "termz" (;) ";" (declaration) "Scalar dydl = -slat * slon / normu - (1 + clat) * slon * termz;" (type_identifier) "Scalar" (init_declarator) "dydl = -slat * slon / normu - (1 + clat) * slon * termz" (identifier) "dydl" (=) "=" (binary_expression) "-slat * slon / normu - (1 + clat) * slon * termz" (binary_expression) "-slat * slon / normu" (binary_expression) "-slat * slon" (unary_expression) "-slat" (-) "-" (identifier) "slat" (*) "*" (identifier) "slon" (/) "/" (identifier) "normu" (-) "-" (binary_expression) "(1 + clat) * slon * termz" (binary_expression) "(1 + clat) * slon" (parenthesized_expression) "(1 + clat)" (() "(" (binary_expression) "1 + clat" (number_literal) "1" (+) "+" (identifier) "clat" ()) ")" (*) "*" (identifier) "slon" (*) "*" (identifier) "termz" (;) ";" (declaration) "Scalar dzdl = clat * slon / normu - slat * slon * termz;" (type_identifier) "Scalar" (init_declarator) "dzdl = clat * slon / normu - slat * slon * termz" (identifier) "dzdl" (=) "=" (binary_expression) "clat * slon / normu - slat * slon * termz" (binary_expression) "clat * slon / normu" (binary_expression) "clat * slon" (identifier) "clat" (*) "*" (identifier) "slon" (/) "/" (identifier) "normu" (-) "-" (binary_expression) "slat * slon * termz" (binary_expression) "slat * slon" (identifier) "slat" (*) "*" (identifier) "slon" (*) "*" (identifier) "termz" (;) ";" (declaration) "Scalar dthetadl = -u(0);" (type_identifier) "Scalar" (init_declarator) "dthetadl = -u(0)" (identifier) "dthetadl" (=) "=" (unary_expression) "-u(0)" (-) "-" (call_expression) "u(0)" (identifier) "u" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (;) ";" (expression_statement) "blat = (dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz -\n dthetadl * W.dotR_btheta);" (assignment_expression) "blat = (dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz -\n dthetadl * W.dotR_btheta)" (identifier) "blat" (=) "=" (parenthesized_expression) "(dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz -\n dthetadl * W.dotR_btheta)" (() "(" (binary_expression) "dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz -\n dthetadl * W.dotR_btheta" (binary_expression) "dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz" (binary_expression) "dxdl * W.dotR_bx + dydl * W.dotR_by" (binary_expression) "dxdl * W.dotR_bx" (identifier) "dxdl" (*) "*" (field_expression) "W.dotR_bx" (identifier) "W" (.) "." (field_identifier) "dotR_bx" (+) "+" (binary_expression) "dydl * W.dotR_by" (identifier) "dydl" (*) "*" (field_expression) "W.dotR_by" (identifier) "W" (.) "." (field_identifier) "dotR_by" (+) "+" (binary_expression) "dzdl * W.dotR_bz" (identifier) "dzdl" (*) "*" (field_expression) "W.dotR_bz" (identifier) "W" (.) "." (field_identifier) "dotR_bz" (-) "-" (binary_expression) "dthetadl * W.dotR_btheta" (identifier) "dthetadl" (*) "*" (field_expression) "W.dotR_btheta" (identifier) "W" (.) "." (field_identifier) "dotR_btheta" ()) ")" (;) ";" (comment) "// lon" (expression_statement) "termz = (clon * (1 + clat) * (1 + clat) * slon - slon * slat * slat) /\n (normu * normu * normu);" (assignment_expression) "termz = (clon * (1 + clat) * (1 + clat) * slon - slon * slat * slat) /\n (normu * normu * normu)" (identifier) "termz" (=) "=" (binary_expression) "(clon * (1 + clat) * (1 + clat) * slon - slon * slat * slat) /\n (normu * normu * normu)" (parenthesized_expression) "(clon * (1 + clat) * (1 + clat) * slon - slon * slat * slat)" (() "(" (binary_expression) "clon * (1 + clat) * (1 + clat) * slon - slon * slat * slat" (binary_expression) "clon * (1 + clat) * (1 + clat) * slon" (binary_expression) "clon * (1 + clat) * (1 + clat)" (binary_expression) "clon * (1 + clat)" (identifier) "clon" (*) "*" (parenthesized_expression) "(1 + clat)" (() "(" (binary_expression) "1 + clat" (number_literal) "1" (+) "+" (identifier) "clat" ()) ")" (*) "*" (parenthesized_expression) "(1 + clat)" (() "(" (binary_expression) "1 + clat" (number_literal) "1" (+) "+" (identifier) "clat" ()) ")" (*) "*" (identifier) "slon" (-) "-" (binary_expression) "slon * slat * slat" (binary_expression) "slon * slat" (identifier) "slon" (*) "*" (identifier) "slat" (*) "*" (identifier) "slat" ()) ")" (/) "/" (parenthesized_expression) "(normu * normu * normu)" (() "(" (binary_expression) "normu * normu * normu" (binary_expression) "normu * normu" (identifier) "normu" (*) "*" (identifier) "normu" (*) "*" (identifier) "normu" ()) ")" (;) ";" (expression_statement) "dxdl = slat * slon / normu + (1 + clon) * slat * termz;" (assignment_expression) "dxdl = slat * slon / normu + (1 + clon) * slat * termz" (identifier) "dxdl" (=) "=" (binary_expression) "slat * slon / normu + (1 + clon) * slat * termz" (binary_expression) "slat * slon / normu" (binary_expression) "slat * slon" (identifier) "slat" (*) "*" (identifier) "slon" (/) "/" (identifier) "normu" (+) "+" (binary_expression) "(1 + clon) * slat * termz" (binary_expression) "(1 + clon) * slat" (parenthesized_expression) "(1 + clon)" (() "(" (binary_expression) "1 + clon" (number_literal) "1" (+) "+" (identifier) "clon" ()) ")" (*) "*" (identifier) "slat" (*) "*" (identifier) "termz" (;) ";" (expression_statement) "dydl = (1 + clat) * clon / normu - (1 + clat) * slon * termz;" (assignment_expression) "dydl = (1 + clat) * clon / normu - (1 + clat) * slon * termz" (identifier) "dydl" (=) "=" (binary_expression) "(1 + clat) * clon / normu - (1 + clat) * slon * termz" (binary_expression) "(1 + clat) * clon / normu" (binary_expression) "(1 + clat) * clon" (parenthesized_expression) "(1 + clat)" (() "(" (binary_expression) "1 + clat" (number_literal) "1" (+) "+" (identifier) "clat" ()) ")" (*) "*" (identifier) "clon" (/) "/" (identifier) "normu" (-) "-" (binary_expression) "(1 + clat) * slon * termz" (binary_expression) "(1 + clat) * slon" (parenthesized_expression) "(1 + clat)" (() "(" (binary_expression) "1 + clat" (number_literal) "1" (+) "+" (identifier) "clat" ()) ")" (*) "*" (identifier) "slon" (*) "*" (identifier) "termz" (;) ";" (expression_statement) "dzdl = clon * slat / normu - slat * slon * termz;" (assignment_expression) "dzdl = clon * slat / normu - slat * slon * termz" (identifier) "dzdl" (=) "=" (binary_expression) "clon * slat / normu - slat * slon * termz" (binary_expression) "clon * slat / normu" (binary_expression) "clon * slat" (identifier) "clon" (*) "*" (identifier) "slat" (/) "/" (identifier) "normu" (-) "-" (binary_expression) "slat * slon * termz" (binary_expression) "slat * slon" (identifier) "slat" (*) "*" (identifier) "slon" (*) "*" (identifier) "termz" (;) ";" (expression_statement) "dthetadl = u(1);" (assignment_expression) "dthetadl = u(1)" (identifier) "dthetadl" (=) "=" (call_expression) "u(1)" (identifier) "u" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (expression_statement) "blon = (dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz -\n dthetadl * W.dotR_btheta);" (assignment_expression) "blon = (dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz -\n dthetadl * W.dotR_btheta)" (identifier) "blon" (=) "=" (parenthesized_expression) "(dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz -\n dthetadl * W.dotR_btheta)" (() "(" (binary_expression) "dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz -\n dthetadl * W.dotR_btheta" (binary_expression) "dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz" (binary_expression) "dxdl * W.dotR_bx + dydl * W.dotR_by" (binary_expression) "dxdl * W.dotR_bx" (identifier) "dxdl" (*) "*" (field_expression) "W.dotR_bx" (identifier) "W" (.) "." (field_identifier) "dotR_bx" (+) "+" (binary_expression) "dydl * W.dotR_by" (identifier) "dydl" (*) "*" (field_expression) "W.dotR_by" (identifier) "W" (.) "." (field_identifier) "dotR_by" (+) "+" (binary_expression) "dzdl * W.dotR_bz" (identifier) "dzdl" (*) "*" (field_expression) "W.dotR_bz" (identifier) "W" (.) "." (field_identifier) "dotR_bz" (-) "-" (binary_expression) "dthetadl * W.dotR_btheta" (identifier) "dthetadl" (*) "*" (field_expression) "W.dotR_btheta" (identifier) "W" (.) "." (field_identifier) "dotR_btheta" ()) ")" (;) ";" (comment) "// sigma" (expression_statement) "W.dotR(dydsigma.transpose(), u(0), u(1), u(2), -theta);" (call_expression) "W.dotR(dydsigma.transpose(), u(0), u(1), u(2), -theta)" (field_expression) "W.dotR" (identifier) "W" (.) "." (field_identifier) "dotR" (argument_list) "(dydsigma.transpose(), u(0), u(1), u(2), -theta)" (() "(" (call_expression) "dydsigma.transpose()" (field_expression) "dydsigma.transpose" (identifier) "dydsigma" (.) "." (field_identifier) "transpose" (argument_list) "()" (() "(" ()) ")" (,) "," (call_expression) "u(0)" (identifier) "u" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (,) "," (call_expression) "u(1)" (identifier) "u" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (,) "," (call_expression) "u(2)" (identifier) "u" (argument_list) "(2)" (() "(" (number_literal) "2" ()) ")" (,) "," (unary_expression) "-theta" (-) "-" (identifier) "theta" ()) ")" (;) ";" (expression_statement) "dydsigma = W.dotR_result.transpose();" (assignment_expression) "dydsigma = W.dotR_result.transpose()" (identifier) "dydsigma" (=) "=" (call_expression) "W.dotR_result.transpose()" (field_expression) "W.dotR_result.transpose" (field_expression) "W.dotR_result" (identifier) "W" (.) "." (field_identifier) "dotR_result" (.) "." (field_identifier) "transpose" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "bsigma = (by.transpose() * dydsigma).dot(amp);" (assignment_expression) "bsigma = (by.transpose() * dydsigma).dot(amp)" (identifier) "bsigma" (=) "=" (call_expression) "(by.transpose() * dydsigma).dot(amp)" (field_expression) "(by.transpose() * dydsigma).dot" (parenthesized_expression) "(by.transpose() * dydsigma)" (() "(" (binary_expression) "by.transpose() * dydsigma" (call_expression) "by.transpose()" (field_expression) "by.transpose" (identifier) "by" (.) "." (field_identifier) "transpose" (argument_list) "()" (() "(" ()) ")" (*) "*" (identifier) "dydsigma" ()) ")" (.) "." (field_identifier) "dot" (argument_list) "(amp)" (() "(" (identifier) "amp" ()) ")" (;) ";" (comment) "// Compute the actual result (w/o amplitude)" (expression_statement) "W.dotR(y.transpose(), u(0), u(1), u(2), -theta);" (call_expression) "W.dotR(y.transpose(), u(0), u(1), u(2), -theta)" (field_expression) "W.dotR" (identifier) "W" (.) "." (field_identifier) "dotR" (argument_list) "(y.transpose(), u(0), u(1), u(2), -theta)" (() "(" (call_expression) "y.transpose()" (field_expression) "y.transpose" (identifier) "y" (.) "." (field_identifier) "transpose" (argument_list) "()" (() "(" ()) ")" (,) "," (call_expression) "u(0)" (identifier) "u" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (,) "," (call_expression) "u(1)" (identifier) "u" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (,) "," (call_expression) "u(2)" (identifier) "u" (argument_list) "(2)" (() "(" (number_literal) "2" ()) ")" (,) "," (unary_expression) "-theta" (-) "-" (identifier) "theta" ()) ")" (;) ";" (expression_statement) "y = W.dotR_result.transpose();" (assignment_expression) "y = W.dotR_result.transpose()" (identifier) "y" (=) "=" (call_expression) "W.dotR_result.transpose()" (field_expression) "W.dotR_result.transpose" (field_expression) "W.dotR_result" (identifier) "W" (.) "." (field_identifier) "dotR_result" (.) "." (field_identifier) "transpose" (argument_list) "()" (() "(" ()) ")" (;) ";" (comment) "// Gradient of amplitude" (expression_statement) "bamp = y.transpose() * by;" (assignment_expression) "bamp = y.transpose() * by" (identifier) "bamp" (=) "=" (binary_expression) "y.transpose() * by" (call_expression) "y.transpose()" (field_expression) "y.transpose" (identifier) "y" (.) "." (field_identifier) "transpose" (argument_list) "()" (() "(" ()) ")" (*) "*" (identifier) "by" (;) ";" (}) "}" (}) "}" (comment) "// namespace misc" (}) "}" (comment) "// namespace starry" (#endif) "#endif"
2,594
22
{"language": "c", "success": true, "metadata": {"lines": 175, "avg_line_length": 33.93, "nodes": 1865, "errors": 0, "source_hash": "8e0534c88949ba5a3d6a14c9bf409c36684b4e4b5a5a1aed36a7ebec4ff9298e", "categorized_nodes": 1322}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _STARRY_MISC_H_\n#define _STARRY_MISC_H_\n\n#include \"utils.h\"\n#include \"wigner.h\"\n\nnamespace starry {\nnamespace misc {\n\nusing namespace utils;\n\n/**\nCompute the Ylm expansion of a spot at a given latitude/longitude on the map.\n\n*/\ntemplate <class Scalar>\ninline Matrix<Scalar> spotYlm(const RowVector<Scalar> &amp, const Scalar &sigma,\n const Scalar &lat, const Scalar &lon, int l,\n wigner::Wigner<Scalar> &W) {\n // Compute the integrals recursively\n Vector<Scalar> IP(l + 1);\n Vector<Scalar> ID(l + 1);\n Matrix<Scalar> y((l + 1) * (l + 1), amp.cols());\n y.setZero();\n\n // Constants\n Scalar a = 1.0 / (2 * sigma * sigma);\n Scalar sqrta = sqrt(a);\n Scalar erfa = erf(2 * sqrta);\n Scalar term = exp(-4 * a);\n\n // Seeding values\n IP(0) = root_pi<Scalar>() / (2 * sqrta) * erfa;\n IP(1) = (root_pi<Scalar>() * sqrta * erfa + term - 1) / (2 * a);\n ID(0) = 0;\n ID(1) = IP(0);\n\n // Recurse\n int sgn = -1;\n for (int n = 2; n < l + 1; ++n) {\n IP(n) = (2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1) - (n - 1.0) / n * IP(n - 2);\n ID(n) = (2.0 * n - 1.0) * IP(n - 1) + ID(n - 2);\n sgn *= -1;\n }\n\n // Compute the coefficients of the expansion\n for (int n = 0; n < l + 1; ++n)\n y.row(n * n + n) = amp * sqrt(2 * n + 1) * (IP(n) / IP(0));\n\n // Rotate the spot to the correct lat/lon\n // We are computing the compound rotation matrix\n //\n // R = R(yhat, lon) . R(xhat, -lat)\n //\n // in one go.\n Scalar tol = 10 * mach_eps<Scalar>();\n if ((abs(lat) > tol) || (abs(lon) > tol)) {\n Scalar clat = cos(lat);\n Scalar clon = cos(lon);\n Scalar slat = sin(lat);\n Scalar slon = sin(lon);\n Scalar costheta = 0.5 * (clon + clat + clon * clat - 1);\n UnitVector<Scalar> u;\n u << -slat * (1 + clon), slon * (1 + clat), slon * slat;\n Scalar normu = u.norm();\n u /= normu;\n Scalar sintheta = 0.5 * normu;\n Scalar theta = atan2(sintheta, costheta);\n W.dotR(y.transpose(), u(0), u(1), u(2), -theta);\n y = W.dotR_result.transpose();\n }\n\n return y;\n}\n\n/**\nCompute the gradient of the Ylm expansion of a spot at a\ngiven latitude/longitude on the map.\n\nThis routine uses forward diff pretty inefficiently and\ncan be sped up if we think about it more carefully.\n\n*/\ntemplate <class Scalar>\ninline void spotYlm(const RowVector<Scalar> &amp, const Scalar &sigma_,\n const Scalar &lat, const Scalar &lon,\n const Matrix<double> &by, int l, wigner::Wigner<Scalar> &W,\n RowVector<Scalar> &bamp, Scalar &bsigma, Scalar &blat,\n Scalar &blon) {\n\n // Forward diff for sigma\n // TODO: Compute the backprop expression\n using ADType = ADScalar<Scalar, 1>;\n ADType sigma = sigma_;\n sigma.derivatives() = Vector<Scalar>::Unit(1, 0);\n\n // Compute the integrals recursively\n Vector<ADType> IP(l + 1);\n Vector<ADType> ID(l + 1);\n Vector<Scalar> y((l + 1) * (l + 1));\n y.setZero();\n ADType yn;\n Vector<Scalar> dydsigma((l + 1) * (l + 1));\n dydsigma.setZero();\n\n // Constants\n ADType a = 1.0 / (2 * sigma * sigma);\n ADType sqrta = sqrt(a);\n ADType erfa = erf(2 * sqrta.value());\n erfa.derivatives()(0) =\n -sqrt(32 / pi<Scalar>()) * exp(-4 * a.value()) * a.value();\n ADType term = exp(-4 * a);\n\n // Seeding values\n IP(0) = root_pi<Scalar>() / (2 * sqrta) * erfa;\n IP(1) = (root_pi<Scalar>() * sqrta * erfa + term - 1) / (2 * a);\n ID(0) = 0;\n ID(1) = IP(0);\n\n // Recurse\n int sgn = -1;\n for (int n = 2; n < l + 1; ++n) {\n IP(n) = (2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1) - (n - 1.0) / n * IP(n - 2);\n ID(n) = (2.0 * n - 1.0) * IP(n - 1) + ID(n - 2);\n sgn *= -1;\n }\n\n // Compute the coefficients of the expansion (w/o the amplitude)\n for (int n = 0; n < l + 1; ++n) {\n yn = sqrt(2 * n + 1) * (IP(n) / IP(0));\n y(n * n + n) = yn.value();\n dydsigma(n * n + n) = yn.derivatives()(0);\n }\n\n // Rotate the spot to the correct lat/lon\n Scalar tol = 10 * mach_eps<Scalar>();\n UnitVector<Scalar> u;\n Scalar normu;\n Scalar theta;\n Scalar clat = cos(lat);\n Scalar clon = cos(lon);\n Scalar slat = sin(lat);\n Scalar slon = sin(lon);\n\n // Axis & angle of rotation\n if ((abs(lat) > tol) || (abs(lon) > tol)) {\n Scalar costheta = 0.5 * (clon + clat + clon * clat - 1);\n u << -slat * (1 + clon), slon * (1 + clat), slon * slat;\n normu = u.norm();\n u /= normu;\n Scalar sintheta = 0.5 * normu;\n theta = atan2(sintheta, costheta);\n } else {\n theta = 0.0;\n u << 0, 1, 0;\n normu = 1;\n }\n\n // Gradient w/ respect to lat, lon, and sigma\n Matrix<Scalar> y_amp = y * amp;\n W.dotR(y_amp.transpose(), u(0), u(1), u(2), -theta, by.transpose());\n\n // lat\n Scalar termz = (clat * (1 + clon) * (1 + clon) * slat - slat * slon * slon) /\n (normu * normu * normu);\n Scalar dxdl = -clat * (1 + clon) / normu + (1 + clon) * slat * termz;\n Scalar dydl = -slat * slon / normu - (1 + clat) * slon * termz;\n Scalar dzdl = clat * slon / normu - slat * slon * termz;\n Scalar dthetadl = -u(0);\n blat = (dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz -\n dthetadl * W.dotR_btheta);\n\n // lon\n termz = (clon * (1 + clat) * (1 + clat) * slon - slon * slat * slat) /\n (normu * normu * normu);\n dxdl = slat * slon / normu + (1 + clon) * slat * termz;\n dydl = (1 + clat) * clon / normu - (1 + clat) * slon * termz;\n dzdl = clon * slat / normu - slat * slon * termz;\n dthetadl = u(1);\n blon = (dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz -\n dthetadl * W.dotR_btheta);\n\n // sigma\n W.dotR(dydsigma.transpose(), u(0), u(1), u(2), -theta);\n dydsigma = W.dotR_result.transpose();\n bsigma = (by.transpose() * dydsigma).dot(amp);\n\n // Compute the actual result (w/o amplitude)\n W.dotR(y.transpose(), u(0), u(1), u(2), -theta);\n y = W.dotR_result.transpose();\n\n // Gradient of amplitude\n bamp = y.transpose() * by;\n}\n\n} // namespace misc\n} // namespace starry\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 1864], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 205, "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": "_STARRY_MISC_H_", "parent": 0, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 23}}, {"id": 3, "type": "preproc_def", "text": "#define _STARRY_MISC_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": "_STARRY_MISC_H_", "parent": 3, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 23}}, {"id": 6, "type": "preproc_include", "text": "#include \"utils.h\"\n", "parent": 0, "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": "string_literal", "text": "\"utils.h\"", "parent": 6, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 18}}, {"id": 9, "type": "preproc_include", "text": "#include \"wigner.h\"\n", "parent": 0, "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": "string_literal", "text": "\"wigner.h\"", "parent": 9, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 19}}, {"id": 12, "type": "function_definition", "text": "namespace starry {\nnamespace misc {\n\nusing namespace utils;\n\n/**\nCompute the Ylm expansion of a spot at a given latitude/longitude on the map.\n\n*/\ntemplate <class Scalar>\ninline Matrix<Scalar> spotYlm(const RowVector<Scalar> &amp, const Scalar &sigma,\n const Scalar &lat, const Scalar &lon, int l,\n wigner::Wigner<Scalar> &W) {\n // Compute the integrals recursively\n Vector<Scalar> IP(l + 1);\n Vector<Scalar> ID(l + 1);\n Matrix<Scalar> y((l + 1) * (l + 1), amp.cols());\n y.setZero();\n\n // Constants\n Scalar a = 1.0 / (2 * sigma * sigma);\n Scalar sqrta = sqrt(a);\n Scalar erfa = erf(2 * sqrta);\n Scalar term = exp(-4 * a);\n\n // Seeding values\n IP(0) = root_pi<Scalar>() / (2 * sqrta) * erfa;\n IP(1) = (root_pi<Scalar>() * sqrta * erfa + term - 1) / (2 * a);\n ID(0) = 0;\n ID(1) = IP(0);\n\n // Recurse\n int sgn = -1;\n for (int n = 2; n < l + 1; ++n) {\n IP(n) = (2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1) - (n - 1.0) / n * IP(n - 2);\n ID(n) = (2.0 * n - 1.0) * IP(n - 1) + ID(n - 2);\n sgn *= -1;\n }\n\n // Compute the coefficients of the expansion\n for (int n = 0; n < l + 1; ++n)\n y.row(n * n + n) = amp * sqrt(2 * n + 1) * (IP(n) / IP(0));\n\n // Rotate the spot to the correct lat/lon\n // We are computing the compound rotation matrix\n //\n // R = R(yhat, lon) . R(xhat, -lat)\n //\n // in one go.\n Scalar tol = 10 * mach_eps<Scalar>();\n if ((abs(lat) > tol) || (abs(lon) > tol)) {\n Scalar clat = cos(lat);\n Scalar clon = cos(lon);\n Scalar slat = sin(lat);\n Scalar slon = sin(lon);\n Scalar costheta = 0.5 * (clon + clat + clon * clat - 1);\n UnitVector<Scalar> u;\n u << -slat * (1 + clon), slon * (1 + clat), slon * slat;\n Scalar normu = u.norm();\n u /= normu;\n Scalar sintheta = 0.5 * normu;\n Scalar theta = atan2(sintheta, costheta);\n W.dotR(y.transpose(), u(0), u(1), u(2), -theta);\n y = W.dotR_result.transpose();\n }\n\n return y;\n}\n\n/**\nCompute the gradient of the Ylm expansion of a spot at a\ngiven latitude/longitude on the map.\n\nThis routine uses forward diff pretty inefficiently and\ncan be sped up if we think about it more carefully.\n\n*/\ntemplate <class Scalar>\ninline void spotYlm(const RowVector<Scalar> &amp, const Scalar &sigma_,\n const Scalar &lat, const Scalar &lon,\n const Matrix<double> &by, int l, wigner::Wigner<Scalar> &W,\n RowVector<Scalar> &bamp, Scalar &bsigma, Scalar &blat,\n Scalar &blon) {\n\n // Forward diff for sigma\n // TODO: Compute the backprop expression\n using ADType = ADScalar<Scalar, 1>;\n ADType sigma = sigma_;\n sigma.derivatives() = Vector<Scalar>::Unit(1, 0);\n\n // Compute the integrals recursively\n Vector<ADType> IP(l + 1);\n Vector<ADType> ID(l + 1);\n Vector<Scalar> y((l + 1) * (l + 1));\n y.setZero();\n ADType yn;\n Vector<Scalar> dydsigma((l + 1) * (l + 1));\n dydsigma.setZero();\n\n // Constants\n ADType a = 1.0 / (2 * sigma * sigma);\n ADType sqrta = sqrt(a);\n ADType erfa = erf(2 * sqrta.value());\n erfa.derivatives()(0) =\n -sqrt(32 / pi<Scalar>()) * exp(-4 * a.value()) * a.value();\n ADType term = exp(-4 * a);\n\n // Seeding values\n IP(0) = root_pi<Scalar>() / (2 * sqrta) * erfa;\n IP(1) = (root_pi<Scalar>() * sqrta * erfa + term - 1) / (2 * a);\n ID(0) = 0;\n ID(1) = IP(0);\n\n // Recurse\n int sgn = -1;\n for (int n = 2; n < l + 1; ++n) {\n IP(n) = (2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1) - (n - 1.0) / n * IP(n - 2);\n ID(n) = (2.0 * n - 1.0) * IP(n - 1) + ID(n - 2);\n sgn *= -1;\n }\n\n // Compute the coefficients of the expansion (w/o the amplitude)\n for (int n = 0; n < l + 1; ++n) {\n yn = sqrt(2 * n + 1) * (IP(n) / IP(0));\n y(n * n + n) = yn.value();\n dydsigma(n * n + n) = yn.derivatives()(0);\n }\n\n // Rotate the spot to the correct lat/lon\n Scalar tol = 10 * mach_eps<Scalar>();\n UnitVector<Scalar> u;\n Scalar normu;\n Scalar theta;\n Scalar clat = cos(lat);\n Scalar clon = cos(lon);\n Scalar slat = sin(lat);\n Scalar slon = sin(lon);\n\n // Axis & angle of rotation\n if ((abs(lat) > tol) || (abs(lon) > tol)) {\n Scalar costheta = 0.5 * (clon + clat + clon * clat - 1);\n u << -slat * (1 + clon), slon * (1 + clat), slon * slat;\n normu = u.norm();\n u /= normu;\n Scalar sintheta = 0.5 * normu;\n theta = atan2(sintheta, costheta);\n } else {\n theta = 0.0;\n u << 0, 1, 0;\n normu = 1;\n }\n\n // Gradient w/ respect to lat, lon, and sigma\n Matrix<Scalar> y_amp = y * amp;\n W.dotR(y_amp.transpose(), u(0), u(1), u(2), -theta, by.transpose());\n\n // lat\n Scalar termz = (clat * (1 + clon) * (1 + clon) * slat - slat * slon * slon) /\n (normu * normu * normu);\n Scalar dxdl = -clat * (1 + clon) / normu + (1 + clon) * slat * termz;\n Scalar dydl = -slat * slon / normu - (1 + clat) * slon * termz;\n Scalar dzdl = clat * slon / normu - slat * slon * termz;\n Scalar dthetadl = -u(0);\n blat = (dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz -\n dthetadl * W.dotR_btheta);\n\n // lon\n termz = (clon * (1 + clat) * (1 + clat) * slon - slon * slat * slat) /\n (normu * normu * normu);\n dxdl = slat * slon / normu + (1 + clon) * slat * termz;\n dydl = (1 + clat) * clon / normu - (1 + clat) * slon * termz;\n dzdl = clon * slat / normu - slat * slon * termz;\n dthetadl = u(1);\n blon = (dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz -\n dthetadl * W.dotR_btheta);\n\n // sigma\n W.dotR(dydsigma.transpose(), u(0), u(1), u(2), -theta);\n dydsigma = W.dotR_result.transpose();\n bsigma = (by.transpose() * dydsigma).dot(amp);\n\n // Compute the actual result (w/o amplitude)\n W.dotR(y.transpose(), u(0), u(1), u(2), -theta);\n y = W.dotR_result.transpose();\n\n // Gradient of amplitude\n bamp = y.transpose() * by;\n}\n\n} // namespace misc\n}", "parent": 0, "children": [13, 14], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 204, "column": 1}}, {"id": 13, "type": "type_identifier", "text": "namespace", "parent": 12, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 9}}, {"id": 14, "type": "identifier", "text": "starry", "parent": 12, "children": [], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 16}}, {"id": 15, "type": "function_definition", "text": "namespace misc {\n\nusing namespace utils;\n\n/**\nCompute the Ylm expansion of a spot at a given latitude/longitude on the map.\n\n*/\ntemplate <class Scalar>\ninline Matrix<Scalar> spotYlm(const RowVector<Scalar> &amp, const Scalar &sigma,\n const Scalar &lat, const Scalar &lon, int l,\n wigner::Wigner<Scalar> &W) {\n // Compute the integrals recursively\n Vector<Scalar> IP(l + 1);\n Vector<Scalar> ID(l + 1);\n Matrix<Scalar> y((l + 1) * (l + 1), amp.cols());\n y.setZero();\n\n // Constants\n Scalar a = 1.0 / (2 * sigma * sigma);\n Scalar sqrta = sqrt(a);\n Scalar erfa = erf(2 * sqrta);\n Scalar term = exp(-4 * a);\n\n // Seeding values\n IP(0) = root_pi<Scalar>() / (2 * sqrta) * erfa;\n IP(1) = (root_pi<Scalar>() * sqrta * erfa + term - 1) / (2 * a);\n ID(0) = 0;\n ID(1) = IP(0);\n\n // Recurse\n int sgn = -1;\n for (int n = 2; n < l + 1; ++n) {\n IP(n) = (2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1) - (n - 1.0) / n * IP(n - 2);\n ID(n) = (2.0 * n - 1.0) * IP(n - 1) + ID(n - 2);\n sgn *= -1;\n }\n\n // Compute the coefficients of the expansion\n for (int n = 0; n < l + 1; ++n)\n y.row(n * n + n) = amp * sqrt(2 * n + 1) * (IP(n) / IP(0));\n\n // Rotate the spot to the correct lat/lon\n // We are computing the compound rotation matrix\n //\n // R = R(yhat, lon) . R(xhat, -lat)\n //\n // in one go.\n Scalar tol = 10 * mach_eps<Scalar>();\n if ((abs(lat) > tol) || (abs(lon) > tol)) {\n Scalar clat = cos(lat);\n Scalar clon = cos(lon);\n Scalar slat = sin(lat);\n Scalar slon = sin(lon);\n Scalar costheta = 0.5 * (clon + clat + clon * clat - 1);\n UnitVector<Scalar> u;\n u << -slat * (1 + clon), slon * (1 + clat), slon * slat;\n Scalar normu = u.norm();\n u /= normu;\n Scalar sintheta = 0.5 * normu;\n Scalar theta = atan2(sintheta, costheta);\n W.dotR(y.transpose(), u(0), u(1), u(2), -theta);\n y = W.dotR_result.transpose();\n }\n\n return y;\n}\n\n/**\nCompute the gradient of the Ylm expansion of a spot at a\ngiven latitude/longitude on the map.\n\nThis routine uses forward diff pretty inefficiently and\ncan be sped up if we think about it more carefully.\n\n*/\ntemplate <class Scalar>\ninline void spotYlm(const RowVector<Scalar> &amp, const Scalar &sigma_,\n const Scalar &lat, const Scalar &lon,\n const Matrix<double> &by, int l, wigner::Wigner<Scalar> &W,\n RowVector<Scalar> &bamp, Scalar &bsigma, Scalar &blat,\n Scalar &blon) {\n\n // Forward diff for sigma\n // TODO: Compute the backprop expression\n using ADType = ADScalar<Scalar, 1>;\n ADType sigma = sigma_;\n sigma.derivatives() = Vector<Scalar>::Unit(1, 0);\n\n // Compute the integrals recursively\n Vector<ADType> IP(l + 1);\n Vector<ADType> ID(l + 1);\n Vector<Scalar> y((l + 1) * (l + 1));\n y.setZero();\n ADType yn;\n Vector<Scalar> dydsigma((l + 1) * (l + 1));\n dydsigma.setZero();\n\n // Constants\n ADType a = 1.0 / (2 * sigma * sigma);\n ADType sqrta = sqrt(a);\n ADType erfa = erf(2 * sqrta.value());\n erfa.derivatives()(0) =\n -sqrt(32 / pi<Scalar>()) * exp(-4 * a.value()) * a.value();\n ADType term = exp(-4 * a);\n\n // Seeding values\n IP(0) = root_pi<Scalar>() / (2 * sqrta) * erfa;\n IP(1) = (root_pi<Scalar>() * sqrta * erfa + term - 1) / (2 * a);\n ID(0) = 0;\n ID(1) = IP(0);\n\n // Recurse\n int sgn = -1;\n for (int n = 2; n < l + 1; ++n) {\n IP(n) = (2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1) - (n - 1.0) / n * IP(n - 2);\n ID(n) = (2.0 * n - 1.0) * IP(n - 1) + ID(n - 2);\n sgn *= -1;\n }\n\n // Compute the coefficients of the expansion (w/o the amplitude)\n for (int n = 0; n < l + 1; ++n) {\n yn = sqrt(2 * n + 1) * (IP(n) / IP(0));\n y(n * n + n) = yn.value();\n dydsigma(n * n + n) = yn.derivatives()(0);\n }\n\n // Rotate the spot to the correct lat/lon\n Scalar tol = 10 * mach_eps<Scalar>();\n UnitVector<Scalar> u;\n Scalar normu;\n Scalar theta;\n Scalar clat = cos(lat);\n Scalar clon = cos(lon);\n Scalar slat = sin(lat);\n Scalar slon = sin(lon);\n\n // Axis & angle of rotation\n if ((abs(lat) > tol) || (abs(lon) > tol)) {\n Scalar costheta = 0.5 * (clon + clat + clon * clat - 1);\n u << -slat * (1 + clon), slon * (1 + clat), slon * slat;\n normu = u.norm();\n u /= normu;\n Scalar sintheta = 0.5 * normu;\n theta = atan2(sintheta, costheta);\n } else {\n theta = 0.0;\n u << 0, 1, 0;\n normu = 1;\n }\n\n // Gradient w/ respect to lat, lon, and sigma\n Matrix<Scalar> y_amp = y * amp;\n W.dotR(y_amp.transpose(), u(0), u(1), u(2), -theta, by.transpose());\n\n // lat\n Scalar termz = (clat * (1 + clon) * (1 + clon) * slat - slat * slon * slon) /\n (normu * normu * normu);\n Scalar dxdl = -clat * (1 + clon) / normu + (1 + clon) * slat * termz;\n Scalar dydl = -slat * slon / normu - (1 + clat) * slon * termz;\n Scalar dzdl = clat * slon / normu - slat * slon * termz;\n Scalar dthetadl = -u(0);\n blat = (dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz -\n dthetadl * W.dotR_btheta);\n\n // lon\n termz = (clon * (1 + clat) * (1 + clat) * slon - slon * slat * slat) /\n (normu * normu * normu);\n dxdl = slat * slon / normu + (1 + clon) * slat * termz;\n dydl = (1 + clat) * clon / normu - (1 + clat) * slon * termz;\n dzdl = clon * slat / normu - slat * slon * termz;\n dthetadl = u(1);\n blon = (dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz -\n dthetadl * W.dotR_btheta);\n\n // sigma\n W.dotR(dydsigma.transpose(), u(0), u(1), u(2), -theta);\n dydsigma = W.dotR_result.transpose();\n bsigma = (by.transpose() * dydsigma).dot(amp);\n\n // Compute the actual result (w/o amplitude)\n W.dotR(y.transpose(), u(0), u(1), u(2), -theta);\n y = W.dotR_result.transpose();\n\n // Gradient of amplitude\n bamp = y.transpose() * by;\n}\n\n}", "parent": 12, "children": [16, 17], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 203, "column": 1}}, {"id": 16, "type": "type_identifier", "text": "namespace", "parent": 15, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 9}}, {"id": 17, "type": "identifier", "text": "misc", "parent": 15, "children": [], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 14}}, {"id": 18, "type": "declaration", "text": "using namespace utils;", "parent": 15, "children": [19, 20, 21], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 22}}, {"id": 19, "type": "type_identifier", "text": "using", "parent": 18, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 5}}, {"id": 20, "type": "identifier", "text": "namespace", "parent": 18, "children": [], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 15}}, {"id": 21, "type": "ERROR", "text": "utils", "parent": 18, "children": [22], "start_point": {"row": 15, "column": 16}, "end_point": {"row": 15, "column": 21}}, {"id": 22, "type": "identifier", "text": "utils", "parent": 21, "children": [], "start_point": {"row": 15, "column": 16}, "end_point": {"row": 15, "column": 21}}, {"id": 23, "type": "binary_expression", "text": "template <class Scalar>\ninline Matrix<Scalar> spotYlm(const RowVector<Scalar> &amp, const Scalar &sigma,\n const Scalar &lat, const Scalar &lon, int l,\n wigner::Wigner<Scalar> &W)", "parent": 15, "children": [24, 36, 37], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 24, "column": 56}}, {"id": 24, "type": "binary_expression", "text": "template <class Scalar>\ninline Matrix<Scalar", "parent": 23, "children": [25, 32, 34, 35], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 20}}, {"id": 25, "type": "binary_expression", "text": "template <class Scalar>\ninline", "parent": 24, "children": [26, 30, 31], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 6}}, {"id": 26, "type": "binary_expression", "text": "template <class Scalar", "parent": 25, "children": [27, 28, 29], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 22}}, {"id": 27, "type": "identifier", "text": "template", "parent": 26, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 8}}, {"id": 28, "type": "<", "text": "<", "parent": 26, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 10}}, {"id": 29, "type": "identifier", "text": "Scalar", "parent": 26, "children": [], "start_point": {"row": 21, "column": 16}, "end_point": {"row": 21, "column": 22}}, {"id": 30, "type": ">", "text": ">", "parent": 25, "children": [], "start_point": {"row": 21, "column": 22}, "end_point": {"row": 21, "column": 23}}, {"id": 31, "type": "identifier", "text": "inline", "parent": 25, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 6}}, {"id": 32, "type": "ERROR", "text": "Matrix", "parent": 24, "children": [33], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 13}}, {"id": 33, "type": "identifier", "text": "Matrix", "parent": 32, "children": [], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 13}}, {"id": 34, "type": "<", "text": "<", "parent": 24, "children": [], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 14}}, {"id": 35, "type": "identifier", "text": "Scalar", "parent": 24, "children": [], "start_point": {"row": 22, "column": 14}, "end_point": {"row": 22, "column": 20}}, {"id": 36, "type": ">", "text": ">", "parent": 23, "children": [], "start_point": {"row": 22, "column": 20}, "end_point": {"row": 22, "column": 21}}, {"id": 37, "type": "call_expression", "text": "spotYlm(const RowVector<Scalar> &amp, const Scalar &sigma,\n const Scalar &lat, const Scalar &lon, int l,\n wigner::Wigner<Scalar> &W)", "parent": 23, "children": [38, 39], "start_point": {"row": 22, "column": 22}, "end_point": {"row": 24, "column": 56}}, {"id": 38, "type": "identifier", "text": "spotYlm", "parent": 37, "children": [], "start_point": {"row": 22, "column": 22}, "end_point": {"row": 22, "column": 29}}, {"id": 39, "type": "argument_list", "text": "(const RowVector<Scalar> &amp, const Scalar &sigma,\n const Scalar &lat, const Scalar &lon, int l,\n wigner::Wigner<Scalar> &W)", "parent": 37, "children": [40, 48, 51, 54, 57, 58, 60, 62], "start_point": {"row": 22, "column": 29}, "end_point": {"row": 24, "column": 56}}, {"id": 40, "type": "binary_expression", "text": "RowVector<Scalar> &amp", "parent": 39, "children": [41, 45, 46], "start_point": {"row": 22, "column": 36}, "end_point": {"row": 22, "column": 58}}, {"id": 41, "type": "binary_expression", "text": "RowVector<Scalar", "parent": 40, "children": [42, 43, 44], "start_point": {"row": 22, "column": 36}, "end_point": {"row": 22, "column": 52}}, {"id": 42, "type": "identifier", "text": "RowVector", "parent": 41, "children": [], "start_point": {"row": 22, "column": 36}, "end_point": {"row": 22, "column": 45}}, {"id": 43, "type": "<", "text": "<", "parent": 41, "children": [], "start_point": {"row": 22, "column": 45}, "end_point": {"row": 22, "column": 46}}, {"id": 44, "type": "identifier", "text": "Scalar", "parent": 41, "children": [], "start_point": {"row": 22, "column": 46}, "end_point": {"row": 22, "column": 52}}, {"id": 45, "type": ">", "text": ">", "parent": 40, "children": [], "start_point": {"row": 22, "column": 52}, "end_point": {"row": 22, "column": 53}}, {"id": 46, "type": "pointer_expression", "text": "&amp", "parent": 40, "children": [47], "start_point": {"row": 22, "column": 54}, "end_point": {"row": 22, "column": 58}}, {"id": 47, "type": "identifier", "text": "amp", "parent": 46, "children": [], "start_point": {"row": 22, "column": 55}, "end_point": {"row": 22, "column": 58}}, {"id": 48, "type": "binary_expression", "text": "Scalar &sigma", "parent": 39, "children": [49, 50], "start_point": {"row": 22, "column": 66}, "end_point": {"row": 22, "column": 79}}, {"id": 49, "type": "identifier", "text": "Scalar", "parent": 48, "children": [], "start_point": {"row": 22, "column": 66}, "end_point": {"row": 22, "column": 72}}, {"id": 50, "type": "identifier", "text": "sigma", "parent": 48, "children": [], "start_point": {"row": 22, "column": 74}, "end_point": {"row": 22, "column": 79}}, {"id": 51, "type": "binary_expression", "text": "Scalar &lat", "parent": 39, "children": [52, 53], "start_point": {"row": 23, "column": 36}, "end_point": {"row": 23, "column": 47}}, {"id": 52, "type": "identifier", "text": "Scalar", "parent": 51, "children": [], "start_point": {"row": 23, "column": 36}, "end_point": {"row": 23, "column": 42}}, {"id": 53, "type": "identifier", "text": "lat", "parent": 51, "children": [], "start_point": {"row": 23, "column": 44}, "end_point": {"row": 23, "column": 47}}, {"id": 54, "type": "binary_expression", "text": "Scalar &lon", "parent": 39, "children": [55, 56], "start_point": {"row": 23, "column": 55}, "end_point": {"row": 23, "column": 66}}, {"id": 55, "type": "identifier", "text": "Scalar", "parent": 54, "children": [], "start_point": {"row": 23, "column": 55}, "end_point": {"row": 23, "column": 61}}, {"id": 56, "type": "identifier", "text": "lon", "parent": 54, "children": [], "start_point": {"row": 23, "column": 63}, "end_point": {"row": 23, "column": 66}}, {"id": 57, "type": "identifier", "text": "int", "parent": 39, "children": [], "start_point": {"row": 23, "column": 68}, "end_point": {"row": 23, "column": 71}}, {"id": 58, "type": "ERROR", "text": "l", "parent": 39, "children": [59], "start_point": {"row": 23, "column": 72}, "end_point": {"row": 23, "column": 73}}, {"id": 59, "type": "identifier", "text": "l", "parent": 58, "children": [], "start_point": {"row": 23, "column": 72}, "end_point": {"row": 23, "column": 73}}, {"id": 60, "type": "ERROR", "text": "wigner::", "parent": 39, "children": [61], "start_point": {"row": 24, "column": 30}, "end_point": {"row": 24, "column": 38}}, {"id": 61, "type": "identifier", "text": "wigner", "parent": 60, "children": [], "start_point": {"row": 24, "column": 30}, "end_point": {"row": 24, "column": 36}}, {"id": 62, "type": "binary_expression", "text": "Wigner<Scalar> &W", "parent": 39, "children": [63, 67, 68], "start_point": {"row": 24, "column": 38}, "end_point": {"row": 24, "column": 55}}, {"id": 63, "type": "binary_expression", "text": "Wigner<Scalar", "parent": 62, "children": [64, 65, 66], "start_point": {"row": 24, "column": 38}, "end_point": {"row": 24, "column": 51}}, {"id": 64, "type": "identifier", "text": "Wigner", "parent": 63, "children": [], "start_point": {"row": 24, "column": 38}, "end_point": {"row": 24, "column": 44}}, {"id": 65, "type": "<", "text": "<", "parent": 63, "children": [], "start_point": {"row": 24, "column": 44}, "end_point": {"row": 24, "column": 45}}, {"id": 66, "type": "identifier", "text": "Scalar", "parent": 63, "children": [], "start_point": {"row": 24, "column": 45}, "end_point": {"row": 24, "column": 51}}, {"id": 67, "type": ">", "text": ">", "parent": 62, "children": [], "start_point": {"row": 24, "column": 51}, "end_point": {"row": 24, "column": 52}}, {"id": 68, "type": "pointer_expression", "text": "&W", "parent": 62, "children": [69], "start_point": {"row": 24, "column": 53}, "end_point": {"row": 24, "column": 55}}, {"id": 69, "type": "identifier", "text": "W", "parent": 68, "children": [], "start_point": {"row": 24, "column": 54}, "end_point": {"row": 24, "column": 55}}, {"id": 70, "type": "binary_expression", "text": "Vector<Scalar> IP(l + 1)", "parent": 15, "children": [71, 75, 76], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 26}}, {"id": 71, "type": "binary_expression", "text": "Vector<Scalar", "parent": 70, "children": [72, 73, 74], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 15}}, {"id": 72, "type": "identifier", "text": "Vector", "parent": 71, "children": [], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 8}}, {"id": 73, "type": "<", "text": "<", "parent": 71, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 9}}, {"id": 74, "type": "identifier", "text": "Scalar", "parent": 71, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 15}}, {"id": 75, "type": ">", "text": ">", "parent": 70, "children": [], "start_point": {"row": 26, "column": 15}, "end_point": {"row": 26, "column": 16}}, {"id": 76, "type": "call_expression", "text": "IP(l + 1)", "parent": 70, "children": [77, 78], "start_point": {"row": 26, "column": 17}, "end_point": {"row": 26, "column": 26}}, {"id": 77, "type": "identifier", "text": "IP", "parent": 76, "children": [], "start_point": {"row": 26, "column": 17}, "end_point": {"row": 26, "column": 19}}, {"id": 78, "type": "argument_list", "text": "(l + 1)", "parent": 76, "children": [79], "start_point": {"row": 26, "column": 19}, "end_point": {"row": 26, "column": 26}}, {"id": 79, "type": "binary_expression", "text": "l + 1", "parent": 78, "children": [80, 81, 82], "start_point": {"row": 26, "column": 20}, "end_point": {"row": 26, "column": 25}}, {"id": 80, "type": "identifier", "text": "l", "parent": 79, "children": [], "start_point": {"row": 26, "column": 20}, "end_point": {"row": 26, "column": 21}}, {"id": 81, "type": "+", "text": "+", "parent": 79, "children": [], "start_point": {"row": 26, "column": 22}, "end_point": {"row": 26, "column": 23}}, {"id": 82, "type": "number_literal", "text": "1", "parent": 79, "children": [], "start_point": {"row": 26, "column": 24}, "end_point": {"row": 26, "column": 25}}, {"id": 83, "type": "binary_expression", "text": "Vector<Scalar> ID(l + 1)", "parent": 15, "children": [84, 88, 89], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 26}}, {"id": 84, "type": "binary_expression", "text": "Vector<Scalar", "parent": 83, "children": [85, 86, 87], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 15}}, {"id": 85, "type": "identifier", "text": "Vector", "parent": 84, "children": [], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 8}}, {"id": 86, "type": "<", "text": "<", "parent": 84, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 9}}, {"id": 87, "type": "identifier", "text": "Scalar", "parent": 84, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 15}}, {"id": 88, "type": ">", "text": ">", "parent": 83, "children": [], "start_point": {"row": 27, "column": 15}, "end_point": {"row": 27, "column": 16}}, {"id": 89, "type": "call_expression", "text": "ID(l + 1)", "parent": 83, "children": [90, 91], "start_point": {"row": 27, "column": 17}, "end_point": {"row": 27, "column": 26}}, {"id": 90, "type": "identifier", "text": "ID", "parent": 89, "children": [], "start_point": {"row": 27, "column": 17}, "end_point": {"row": 27, "column": 19}}, {"id": 91, "type": "argument_list", "text": "(l + 1)", "parent": 89, "children": [92], "start_point": {"row": 27, "column": 19}, "end_point": {"row": 27, "column": 26}}, {"id": 92, "type": "binary_expression", "text": "l + 1", "parent": 91, "children": [93, 94, 95], "start_point": {"row": 27, "column": 20}, "end_point": {"row": 27, "column": 25}}, {"id": 93, "type": "identifier", "text": "l", "parent": 92, "children": [], "start_point": {"row": 27, "column": 20}, "end_point": {"row": 27, "column": 21}}, {"id": 94, "type": "+", "text": "+", "parent": 92, "children": [], "start_point": {"row": 27, "column": 22}, "end_point": {"row": 27, "column": 23}}, {"id": 95, "type": "number_literal", "text": "1", "parent": 92, "children": [], "start_point": {"row": 27, "column": 24}, "end_point": {"row": 27, "column": 25}}, {"id": 96, "type": "binary_expression", "text": "Matrix<Scalar> y((l + 1) * (l + 1), amp.cols())", "parent": 15, "children": [97, 101, 102], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 49}}, {"id": 97, "type": "binary_expression", "text": "Matrix<Scalar", "parent": 96, "children": [98, 99, 100], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 15}}, {"id": 98, "type": "identifier", "text": "Matrix", "parent": 97, "children": [], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 8}}, {"id": 99, "type": "<", "text": "<", "parent": 97, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 9}}, {"id": 100, "type": "identifier", "text": "Scalar", "parent": 97, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 15}}, {"id": 101, "type": ">", "text": ">", "parent": 96, "children": [], "start_point": {"row": 28, "column": 15}, "end_point": {"row": 28, "column": 16}}, {"id": 102, "type": "call_expression", "text": "y((l + 1) * (l + 1), amp.cols())", "parent": 96, "children": [103, 104], "start_point": {"row": 28, "column": 17}, "end_point": {"row": 28, "column": 49}}, {"id": 103, "type": "identifier", "text": "y", "parent": 102, "children": [], "start_point": {"row": 28, "column": 17}, "end_point": {"row": 28, "column": 18}}, {"id": 104, "type": "argument_list", "text": "((l + 1) * (l + 1), amp.cols())", "parent": 102, "children": [105, 117], "start_point": {"row": 28, "column": 18}, "end_point": {"row": 28, "column": 49}}, {"id": 105, "type": "binary_expression", "text": "(l + 1) * (l + 1)", "parent": 104, "children": [106, 111, 112], "start_point": {"row": 28, "column": 19}, "end_point": {"row": 28, "column": 36}}, {"id": 106, "type": "parenthesized_expression", "text": "(l + 1)", "parent": 105, "children": [107], "start_point": {"row": 28, "column": 19}, "end_point": {"row": 28, "column": 26}}, {"id": 107, "type": "binary_expression", "text": "l + 1", "parent": 106, "children": [108, 109, 110], "start_point": {"row": 28, "column": 20}, "end_point": {"row": 28, "column": 25}}, {"id": 108, "type": "identifier", "text": "l", "parent": 107, "children": [], "start_point": {"row": 28, "column": 20}, "end_point": {"row": 28, "column": 21}}, {"id": 109, "type": "+", "text": "+", "parent": 107, "children": [], "start_point": {"row": 28, "column": 22}, "end_point": {"row": 28, "column": 23}}, {"id": 110, "type": "number_literal", "text": "1", "parent": 107, "children": [], "start_point": {"row": 28, "column": 24}, "end_point": {"row": 28, "column": 25}}, {"id": 111, "type": "*", "text": "*", "parent": 105, "children": [], "start_point": {"row": 28, "column": 27}, "end_point": {"row": 28, "column": 28}}, {"id": 112, "type": "parenthesized_expression", "text": "(l + 1)", "parent": 105, "children": [113], "start_point": {"row": 28, "column": 29}, "end_point": {"row": 28, "column": 36}}, {"id": 113, "type": "binary_expression", "text": "l + 1", "parent": 112, "children": [114, 115, 116], "start_point": {"row": 28, "column": 30}, "end_point": {"row": 28, "column": 35}}, {"id": 114, "type": "identifier", "text": "l", "parent": 113, "children": [], "start_point": {"row": 28, "column": 30}, "end_point": {"row": 28, "column": 31}}, {"id": 115, "type": "+", "text": "+", "parent": 113, "children": [], "start_point": {"row": 28, "column": 32}, "end_point": {"row": 28, "column": 33}}, {"id": 116, "type": "number_literal", "text": "1", "parent": 113, "children": [], "start_point": {"row": 28, "column": 34}, "end_point": {"row": 28, "column": 35}}, {"id": 117, "type": "call_expression", "text": "amp.cols()", "parent": 104, "children": [118, 121], "start_point": {"row": 28, "column": 38}, "end_point": {"row": 28, "column": 48}}, {"id": 118, "type": "field_expression", "text": "amp.cols", "parent": 117, "children": [119, 120], "start_point": {"row": 28, "column": 38}, "end_point": {"row": 28, "column": 46}}, {"id": 119, "type": "identifier", "text": "amp", "parent": 118, "children": [], "start_point": {"row": 28, "column": 38}, "end_point": {"row": 28, "column": 41}}, {"id": 120, "type": "field_identifier", "text": "cols", "parent": 118, "children": [], "start_point": {"row": 28, "column": 42}, "end_point": {"row": 28, "column": 46}}, {"id": 121, "type": "argument_list", "text": "()", "parent": 117, "children": [], "start_point": {"row": 28, "column": 46}, "end_point": {"row": 28, "column": 48}}, {"id": 122, "type": "call_expression", "text": "y.setZero()", "parent": 15, "children": [123, 126], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 13}}, {"id": 123, "type": "field_expression", "text": "y.setZero", "parent": 122, "children": [124, 125], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 11}}, {"id": 124, "type": "identifier", "text": "y", "parent": 123, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 3}}, {"id": 125, "type": "field_identifier", "text": "setZero", "parent": 123, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 11}}, {"id": 126, "type": "argument_list", "text": "()", "parent": 122, "children": [], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 13}}, {"id": 127, "type": "declaration", "text": "Scalar a = 1.0 / (2 * sigma * sigma);", "parent": 15, "children": [128, 129], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 39}}, {"id": 128, "type": "type_identifier", "text": "Scalar", "parent": 127, "children": [], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 8}}, {"id": 129, "type": "init_declarator", "text": "a = 1.0 / (2 * sigma * sigma)", "parent": 127, "children": [130, 131, 132], "start_point": {"row": 32, "column": 9}, "end_point": {"row": 32, "column": 38}}, {"id": 130, "type": "identifier", "text": "a", "parent": 129, "children": [], "start_point": {"row": 32, "column": 9}, "end_point": {"row": 32, "column": 10}}, {"id": 131, "type": "=", "text": "=", "parent": 129, "children": [], "start_point": {"row": 32, "column": 11}, "end_point": {"row": 32, "column": 12}}, {"id": 132, "type": "binary_expression", "text": "1.0 / (2 * sigma * sigma)", "parent": 129, "children": [133, 134, 135], "start_point": {"row": 32, "column": 13}, "end_point": {"row": 32, "column": 38}}, {"id": 133, "type": "number_literal", "text": "1.0", "parent": 132, "children": [], "start_point": {"row": 32, "column": 13}, "end_point": {"row": 32, "column": 16}}, {"id": 134, "type": "/", "text": "/", "parent": 132, "children": [], "start_point": {"row": 32, "column": 17}, "end_point": {"row": 32, "column": 18}}, {"id": 135, "type": "parenthesized_expression", "text": "(2 * sigma * sigma)", "parent": 132, "children": [136], "start_point": {"row": 32, "column": 19}, "end_point": {"row": 32, "column": 38}}, {"id": 136, "type": "binary_expression", "text": "2 * sigma * sigma", "parent": 135, "children": [137, 141, 142], "start_point": {"row": 32, "column": 20}, "end_point": {"row": 32, "column": 37}}, {"id": 137, "type": "binary_expression", "text": "2 * sigma", "parent": 136, "children": [138, 139, 140], "start_point": {"row": 32, "column": 20}, "end_point": {"row": 32, "column": 29}}, {"id": 138, "type": "number_literal", "text": "2", "parent": 137, "children": [], "start_point": {"row": 32, "column": 20}, "end_point": {"row": 32, "column": 21}}, {"id": 139, "type": "*", "text": "*", "parent": 137, "children": [], "start_point": {"row": 32, "column": 22}, "end_point": {"row": 32, "column": 23}}, {"id": 140, "type": "identifier", "text": "sigma", "parent": 137, "children": [], "start_point": {"row": 32, "column": 24}, "end_point": {"row": 32, "column": 29}}, {"id": 141, "type": "*", "text": "*", "parent": 136, "children": [], "start_point": {"row": 32, "column": 30}, "end_point": {"row": 32, "column": 31}}, {"id": 142, "type": "identifier", "text": "sigma", "parent": 136, "children": [], "start_point": {"row": 32, "column": 32}, "end_point": {"row": 32, "column": 37}}, {"id": 143, "type": "declaration", "text": "Scalar sqrta = sqrt(a);", "parent": 15, "children": [144, 145], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 25}}, {"id": 144, "type": "type_identifier", "text": "Scalar", "parent": 143, "children": [], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 8}}, {"id": 145, "type": "init_declarator", "text": "sqrta = sqrt(a)", "parent": 143, "children": [146, 147, 148], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 24}}, {"id": 146, "type": "identifier", "text": "sqrta", "parent": 145, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 14}}, {"id": 147, "type": "=", "text": "=", "parent": 145, "children": [], "start_point": {"row": 33, "column": 15}, "end_point": {"row": 33, "column": 16}}, {"id": 148, "type": "call_expression", "text": "sqrt(a)", "parent": 145, "children": [149, 150], "start_point": {"row": 33, "column": 17}, "end_point": {"row": 33, "column": 24}}, {"id": 149, "type": "identifier", "text": "sqrt", "parent": 148, "children": [], "start_point": {"row": 33, "column": 17}, "end_point": {"row": 33, "column": 21}}, {"id": 150, "type": "argument_list", "text": "(a)", "parent": 148, "children": [151], "start_point": {"row": 33, "column": 21}, "end_point": {"row": 33, "column": 24}}, {"id": 151, "type": "identifier", "text": "a", "parent": 150, "children": [], "start_point": {"row": 33, "column": 22}, "end_point": {"row": 33, "column": 23}}, {"id": 152, "type": "declaration", "text": "Scalar erfa = erf(2 * sqrta);", "parent": 15, "children": [153, 154], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 31}}, {"id": 153, "type": "type_identifier", "text": "Scalar", "parent": 152, "children": [], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 8}}, {"id": 154, "type": "init_declarator", "text": "erfa = erf(2 * sqrta)", "parent": 152, "children": [155, 156, 157], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 30}}, {"id": 155, "type": "identifier", "text": "erfa", "parent": 154, "children": [], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 13}}, {"id": 156, "type": "=", "text": "=", "parent": 154, "children": [], "start_point": {"row": 34, "column": 14}, "end_point": {"row": 34, "column": 15}}, {"id": 157, "type": "call_expression", "text": "erf(2 * sqrta)", "parent": 154, "children": [158, 159], "start_point": {"row": 34, "column": 16}, "end_point": {"row": 34, "column": 30}}, {"id": 158, "type": "identifier", "text": "erf", "parent": 157, "children": [], "start_point": {"row": 34, "column": 16}, "end_point": {"row": 34, "column": 19}}, {"id": 159, "type": "argument_list", "text": "(2 * sqrta)", "parent": 157, "children": [160], "start_point": {"row": 34, "column": 19}, "end_point": {"row": 34, "column": 30}}, {"id": 160, "type": "binary_expression", "text": "2 * sqrta", "parent": 159, "children": [161, 162, 163], "start_point": {"row": 34, "column": 20}, "end_point": {"row": 34, "column": 29}}, {"id": 161, "type": "number_literal", "text": "2", "parent": 160, "children": [], "start_point": {"row": 34, "column": 20}, "end_point": {"row": 34, "column": 21}}, {"id": 162, "type": "*", "text": "*", "parent": 160, "children": [], "start_point": {"row": 34, "column": 22}, "end_point": {"row": 34, "column": 23}}, {"id": 163, "type": "identifier", "text": "sqrta", "parent": 160, "children": [], "start_point": {"row": 34, "column": 24}, "end_point": {"row": 34, "column": 29}}, {"id": 164, "type": "declaration", "text": "Scalar term = exp(-4 * a);", "parent": 15, "children": [165, 166], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 28}}, {"id": 165, "type": "type_identifier", "text": "Scalar", "parent": 164, "children": [], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 8}}, {"id": 166, "type": "init_declarator", "text": "term = exp(-4 * a)", "parent": 164, "children": [167, 168, 169], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 27}}, {"id": 167, "type": "identifier", "text": "term", "parent": 166, "children": [], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 13}}, {"id": 168, "type": "=", "text": "=", "parent": 166, "children": [], "start_point": {"row": 35, "column": 14}, "end_point": {"row": 35, "column": 15}}, {"id": 169, "type": "call_expression", "text": "exp(-4 * a)", "parent": 166, "children": [170, 171], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 27}}, {"id": 170, "type": "identifier", "text": "exp", "parent": 169, "children": [], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 19}}, {"id": 171, "type": "argument_list", "text": "(-4 * a)", "parent": 169, "children": [172], "start_point": {"row": 35, "column": 19}, "end_point": {"row": 35, "column": 27}}, {"id": 172, "type": "binary_expression", "text": "-4 * a", "parent": 171, "children": [173, 174, 175], "start_point": {"row": 35, "column": 20}, "end_point": {"row": 35, "column": 26}}, {"id": 173, "type": "number_literal", "text": "-4", "parent": 172, "children": [], "start_point": {"row": 35, "column": 20}, "end_point": {"row": 35, "column": 22}}, {"id": 174, "type": "*", "text": "*", "parent": 172, "children": [], "start_point": {"row": 35, "column": 23}, "end_point": {"row": 35, "column": 24}}, {"id": 175, "type": "identifier", "text": "a", "parent": 172, "children": [], "start_point": {"row": 35, "column": 25}, "end_point": {"row": 35, "column": 26}}, {"id": 176, "type": "assignment_expression", "text": "IP(0) = root_pi<Scalar>() / (2 * sqrta) * erfa", "parent": 15, "children": [177, 181, 182], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 48}}, {"id": 177, "type": "call_expression", "text": "IP(0)", "parent": 176, "children": [178, 179], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 7}}, {"id": 178, "type": "identifier", "text": "IP", "parent": 177, "children": [], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 4}}, {"id": 179, "type": "argument_list", "text": "(0)", "parent": 177, "children": [180], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 7}}, {"id": 180, "type": "number_literal", "text": "0", "parent": 179, "children": [], "start_point": {"row": 38, "column": 5}, "end_point": {"row": 38, "column": 6}}, {"id": 181, "type": "=", "text": "=", "parent": 176, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 9}}, {"id": 182, "type": "binary_expression", "text": "root_pi<Scalar>() / (2 * sqrta) * erfa", "parent": 176, "children": [183, 187, 188], "start_point": {"row": 38, "column": 10}, "end_point": {"row": 38, "column": 48}}, {"id": 183, "type": "binary_expression", "text": "root_pi<Scalar", "parent": 182, "children": [184, 185, 186], "start_point": {"row": 38, "column": 10}, "end_point": {"row": 38, "column": 24}}, {"id": 184, "type": "identifier", "text": "root_pi", "parent": 183, "children": [], "start_point": {"row": 38, "column": 10}, "end_point": {"row": 38, "column": 17}}, {"id": 185, "type": "<", "text": "<", "parent": 183, "children": [], "start_point": {"row": 38, "column": 17}, "end_point": {"row": 38, "column": 18}}, {"id": 186, "type": "identifier", "text": "Scalar", "parent": 183, "children": [], "start_point": {"row": 38, "column": 18}, "end_point": {"row": 38, "column": 24}}, {"id": 187, "type": ">", "text": ">", "parent": 182, "children": [], "start_point": {"row": 38, "column": 24}, "end_point": {"row": 38, "column": 25}}, {"id": 188, "type": "binary_expression", "text": "() / (2 * sqrta) * erfa", "parent": 182, "children": [189, 198, 199], "start_point": {"row": 38, "column": 25}, "end_point": {"row": 38, "column": 48}}, {"id": 189, "type": "binary_expression", "text": "() / (2 * sqrta)", "parent": 188, "children": [190, 192, 193], "start_point": {"row": 38, "column": 25}, "end_point": {"row": 38, "column": 41}}, {"id": 190, "type": "parenthesized_expression", "text": "()", "parent": 189, "children": [191], "start_point": {"row": 38, "column": 25}, "end_point": {"row": 38, "column": 27}}, {"id": 191, "type": "identifier", "text": "", "parent": 190, "children": [], "start_point": {"row": 38, "column": 26}, "end_point": {"row": 38, "column": 26}}, {"id": 192, "type": "/", "text": "/", "parent": 189, "children": [], "start_point": {"row": 38, "column": 28}, "end_point": {"row": 38, "column": 29}}, {"id": 193, "type": "parenthesized_expression", "text": "(2 * sqrta)", "parent": 189, "children": [194], "start_point": {"row": 38, "column": 30}, "end_point": {"row": 38, "column": 41}}, {"id": 194, "type": "binary_expression", "text": "2 * sqrta", "parent": 193, "children": [195, 196, 197], "start_point": {"row": 38, "column": 31}, "end_point": {"row": 38, "column": 40}}, {"id": 195, "type": "number_literal", "text": "2", "parent": 194, "children": [], "start_point": {"row": 38, "column": 31}, "end_point": {"row": 38, "column": 32}}, {"id": 196, "type": "*", "text": "*", "parent": 194, "children": [], "start_point": {"row": 38, "column": 33}, "end_point": {"row": 38, "column": 34}}, {"id": 197, "type": "identifier", "text": "sqrta", "parent": 194, "children": [], "start_point": {"row": 38, "column": 35}, "end_point": {"row": 38, "column": 40}}, {"id": 198, "type": "*", "text": "*", "parent": 188, "children": [], "start_point": {"row": 38, "column": 42}, "end_point": {"row": 38, "column": 43}}, {"id": 199, "type": "identifier", "text": "erfa", "parent": 188, "children": [], "start_point": {"row": 38, "column": 44}, "end_point": {"row": 38, "column": 48}}, {"id": 200, "type": "assignment_expression", "text": "IP(1) = (root_pi<Scalar>() * sqrta * erfa + term - 1) / (2 * a)", "parent": 15, "children": [201, 205, 206], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 65}}, {"id": 201, "type": "call_expression", "text": "IP(1)", "parent": 200, "children": [202, 203], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 7}}, {"id": 202, "type": "identifier", "text": "IP", "parent": 201, "children": [], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 4}}, {"id": 203, "type": "argument_list", "text": "(1)", "parent": 201, "children": [204], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 7}}, {"id": 204, "type": "number_literal", "text": "1", "parent": 203, "children": [], "start_point": {"row": 39, "column": 5}, "end_point": {"row": 39, "column": 6}}, {"id": 205, "type": "=", "text": "=", "parent": 200, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 9}}, {"id": 206, "type": "binary_expression", "text": "(root_pi<Scalar>() * sqrta * erfa + term - 1) / (2 * a)", "parent": 200, "children": [207, 228, 229], "start_point": {"row": 39, "column": 10}, "end_point": {"row": 39, "column": 65}}, {"id": 207, "type": "parenthesized_expression", "text": "(root_pi<Scalar>() * sqrta * erfa + term - 1)", "parent": 206, "children": [208], "start_point": {"row": 39, "column": 10}, "end_point": {"row": 39, "column": 55}}, {"id": 208, "type": "binary_expression", "text": "root_pi<Scalar>() * sqrta * erfa + term - 1", "parent": 207, "children": [209, 213, 214], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 54}}, {"id": 209, "type": "binary_expression", "text": "root_pi<Scalar", "parent": 208, "children": [210, 211, 212], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 25}}, {"id": 210, "type": "identifier", "text": "root_pi", "parent": 209, "children": [], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 18}}, {"id": 211, "type": "<", "text": "<", "parent": 209, "children": [], "start_point": {"row": 39, "column": 18}, "end_point": {"row": 39, "column": 19}}, {"id": 212, "type": "identifier", "text": "Scalar", "parent": 209, "children": [], "start_point": {"row": 39, "column": 19}, "end_point": {"row": 39, "column": 25}}, {"id": 213, "type": ">", "text": ">", "parent": 208, "children": [], "start_point": {"row": 39, "column": 25}, "end_point": {"row": 39, "column": 26}}, {"id": 214, "type": "binary_expression", "text": "() * sqrta * erfa + term - 1", "parent": 208, "children": [215, 226, 227], "start_point": {"row": 39, "column": 26}, "end_point": {"row": 39, "column": 54}}, {"id": 215, "type": "binary_expression", "text": "() * sqrta * erfa + term", "parent": 214, "children": [216, 224, 225], "start_point": {"row": 39, "column": 26}, "end_point": {"row": 39, "column": 50}}, {"id": 216, "type": "binary_expression", "text": "() * sqrta * erfa", "parent": 215, "children": [217, 222, 223], "start_point": {"row": 39, "column": 26}, "end_point": {"row": 39, "column": 43}}, {"id": 217, "type": "binary_expression", "text": "() * sqrta", "parent": 216, "children": [218, 220, 221], "start_point": {"row": 39, "column": 26}, "end_point": {"row": 39, "column": 36}}, {"id": 218, "type": "parenthesized_expression", "text": "()", "parent": 217, "children": [219], "start_point": {"row": 39, "column": 26}, "end_point": {"row": 39, "column": 28}}, {"id": 219, "type": "identifier", "text": "", "parent": 218, "children": [], "start_point": {"row": 39, "column": 27}, "end_point": {"row": 39, "column": 27}}, {"id": 220, "type": "*", "text": "*", "parent": 217, "children": [], "start_point": {"row": 39, "column": 29}, "end_point": {"row": 39, "column": 30}}, {"id": 221, "type": "identifier", "text": "sqrta", "parent": 217, "children": [], "start_point": {"row": 39, "column": 31}, "end_point": {"row": 39, "column": 36}}, {"id": 222, "type": "*", "text": "*", "parent": 216, "children": [], "start_point": {"row": 39, "column": 37}, "end_point": {"row": 39, "column": 38}}, {"id": 223, "type": "identifier", "text": "erfa", "parent": 216, "children": [], "start_point": {"row": 39, "column": 39}, "end_point": {"row": 39, "column": 43}}, {"id": 224, "type": "+", "text": "+", "parent": 215, "children": [], "start_point": {"row": 39, "column": 44}, "end_point": {"row": 39, "column": 45}}, {"id": 225, "type": "identifier", "text": "term", "parent": 215, "children": [], "start_point": {"row": 39, "column": 46}, "end_point": {"row": 39, "column": 50}}, {"id": 226, "type": "-", "text": "-", "parent": 214, "children": [], "start_point": {"row": 39, "column": 51}, "end_point": {"row": 39, "column": 52}}, {"id": 227, "type": "number_literal", "text": "1", "parent": 214, "children": [], "start_point": {"row": 39, "column": 53}, "end_point": {"row": 39, "column": 54}}, {"id": 228, "type": "/", "text": "/", "parent": 206, "children": [], "start_point": {"row": 39, "column": 56}, "end_point": {"row": 39, "column": 57}}, {"id": 229, "type": "parenthesized_expression", "text": "(2 * a)", "parent": 206, "children": [230], "start_point": {"row": 39, "column": 58}, "end_point": {"row": 39, "column": 65}}, {"id": 230, "type": "binary_expression", "text": "2 * a", "parent": 229, "children": [231, 232, 233], "start_point": {"row": 39, "column": 59}, "end_point": {"row": 39, "column": 64}}, {"id": 231, "type": "number_literal", "text": "2", "parent": 230, "children": [], "start_point": {"row": 39, "column": 59}, "end_point": {"row": 39, "column": 60}}, {"id": 232, "type": "*", "text": "*", "parent": 230, "children": [], "start_point": {"row": 39, "column": 61}, "end_point": {"row": 39, "column": 62}}, {"id": 233, "type": "identifier", "text": "a", "parent": 230, "children": [], "start_point": {"row": 39, "column": 63}, "end_point": {"row": 39, "column": 64}}, {"id": 234, "type": "assignment_expression", "text": "ID(0) = 0", "parent": 15, "children": [235, 239, 240], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 11}}, {"id": 235, "type": "call_expression", "text": "ID(0)", "parent": 234, "children": [236, 237], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 7}}, {"id": 236, "type": "identifier", "text": "ID", "parent": 235, "children": [], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 4}}, {"id": 237, "type": "argument_list", "text": "(0)", "parent": 235, "children": [238], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 7}}, {"id": 238, "type": "number_literal", "text": "0", "parent": 237, "children": [], "start_point": {"row": 40, "column": 5}, "end_point": {"row": 40, "column": 6}}, {"id": 239, "type": "=", "text": "=", "parent": 234, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 9}}, {"id": 240, "type": "number_literal", "text": "0", "parent": 234, "children": [], "start_point": {"row": 40, "column": 10}, "end_point": {"row": 40, "column": 11}}, {"id": 241, "type": "assignment_expression", "text": "ID(1) = IP(0)", "parent": 15, "children": [242, 246, 247], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 15}}, {"id": 242, "type": "call_expression", "text": "ID(1)", "parent": 241, "children": [243, 244], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 7}}, {"id": 243, "type": "identifier", "text": "ID", "parent": 242, "children": [], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 4}}, {"id": 244, "type": "argument_list", "text": "(1)", "parent": 242, "children": [245], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 7}}, {"id": 245, "type": "number_literal", "text": "1", "parent": 244, "children": [], "start_point": {"row": 41, "column": 5}, "end_point": {"row": 41, "column": 6}}, {"id": 246, "type": "=", "text": "=", "parent": 241, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 9}}, {"id": 247, "type": "call_expression", "text": "IP(0)", "parent": 241, "children": [248, 249], "start_point": {"row": 41, "column": 10}, "end_point": {"row": 41, "column": 15}}, {"id": 248, "type": "identifier", "text": "IP", "parent": 247, "children": [], "start_point": {"row": 41, "column": 10}, "end_point": {"row": 41, "column": 12}}, {"id": 249, "type": "argument_list", "text": "(0)", "parent": 247, "children": [250], "start_point": {"row": 41, "column": 12}, "end_point": {"row": 41, "column": 15}}, {"id": 250, "type": "number_literal", "text": "0", "parent": 249, "children": [], "start_point": {"row": 41, "column": 13}, "end_point": {"row": 41, "column": 14}}, {"id": 251, "type": "declaration", "text": "int sgn = -1;", "parent": 15, "children": [252, 253], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 15}}, {"id": 252, "type": "primitive_type", "text": "int", "parent": 251, "children": [], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 5}}, {"id": 253, "type": "init_declarator", "text": "sgn = -1", "parent": 251, "children": [254, 255, 256], "start_point": {"row": 44, "column": 6}, "end_point": {"row": 44, "column": 14}}, {"id": 254, "type": "identifier", "text": "sgn", "parent": 253, "children": [], "start_point": {"row": 44, "column": 6}, "end_point": {"row": 44, "column": 9}}, {"id": 255, "type": "=", "text": "=", "parent": 253, "children": [], "start_point": {"row": 44, "column": 10}, "end_point": {"row": 44, "column": 11}}, {"id": 256, "type": "number_literal", "text": "-1", "parent": 253, "children": [], "start_point": {"row": 44, "column": 12}, "end_point": {"row": 44, "column": 14}}, {"id": 257, "type": "for_statement", "text": "for (int n = 2; n < l + 1; ++n) {\n IP(n) = (2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1) - (n - 1.0) / n * IP(n - 2);\n ID(n) = (2.0 * n - 1.0) * IP(n - 1) + ID(n - 2);\n sgn *= -1;\n }", "parent": 15, "children": [258, 264, 271], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 50, "column": 3}}, {"id": 258, "type": "declaration", "text": "int n = 2;", "parent": 257, "children": [259, 260], "start_point": {"row": 45, "column": 7}, "end_point": {"row": 45, "column": 17}}, {"id": 259, "type": "primitive_type", "text": "int", "parent": 258, "children": [], "start_point": {"row": 45, "column": 7}, "end_point": {"row": 45, "column": 10}}, {"id": 260, "type": "init_declarator", "text": "n = 2", "parent": 258, "children": [261, 262, 263], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 16}}, {"id": 261, "type": "identifier", "text": "n", "parent": 260, "children": [], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 12}}, {"id": 262, "type": "=", "text": "=", "parent": 260, "children": [], "start_point": {"row": 45, "column": 13}, "end_point": {"row": 45, "column": 14}}, {"id": 263, "type": "number_literal", "text": "2", "parent": 260, "children": [], "start_point": {"row": 45, "column": 15}, "end_point": {"row": 45, "column": 16}}, {"id": 264, "type": "binary_expression", "text": "n < l + 1", "parent": 257, "children": [265, 266, 267], "start_point": {"row": 45, "column": 18}, "end_point": {"row": 45, "column": 27}}, {"id": 265, "type": "identifier", "text": "n", "parent": 264, "children": [], "start_point": {"row": 45, "column": 18}, "end_point": {"row": 45, "column": 19}}, {"id": 266, "type": "<", "text": "<", "parent": 264, "children": [], "start_point": {"row": 45, "column": 20}, "end_point": {"row": 45, "column": 21}}, {"id": 267, "type": "binary_expression", "text": "l + 1", "parent": 264, "children": [268, 269, 270], "start_point": {"row": 45, "column": 22}, "end_point": {"row": 45, "column": 27}}, {"id": 268, "type": "identifier", "text": "l", "parent": 267, "children": [], "start_point": {"row": 45, "column": 22}, "end_point": {"row": 45, "column": 23}}, {"id": 269, "type": "+", "text": "+", "parent": 267, "children": [], "start_point": {"row": 45, "column": 24}, "end_point": {"row": 45, "column": 25}}, {"id": 270, "type": "number_literal", "text": "1", "parent": 267, "children": [], "start_point": {"row": 45, "column": 26}, "end_point": {"row": 45, "column": 27}}, {"id": 271, "type": "update_expression", "text": "++n", "parent": 257, "children": [272, 273], "start_point": {"row": 45, "column": 29}, "end_point": {"row": 45, "column": 32}}, {"id": 272, "type": "++", "text": "++", "parent": 271, "children": [], "start_point": {"row": 45, "column": 29}, "end_point": {"row": 45, "column": 31}}, {"id": 273, "type": "identifier", "text": "n", "parent": 271, "children": [], "start_point": {"row": 45, "column": 31}, "end_point": {"row": 45, "column": 32}}, {"id": 274, "type": "assignment_expression", "text": "IP(n) = (2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1) - (n - 1.0) / n * IP(n - 2)", "parent": 257, "children": [275, 279, 280], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 47, "column": 71}}, {"id": 275, "type": "call_expression", "text": "IP(n)", "parent": 274, "children": [276, 277], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 9}}, {"id": 276, "type": "identifier", "text": "IP", "parent": 275, "children": [], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 6}}, {"id": 277, "type": "argument_list", "text": "(n)", "parent": 275, "children": [278], "start_point": {"row": 46, "column": 6}, "end_point": {"row": 46, "column": 9}}, {"id": 278, "type": "identifier", "text": "n", "parent": 277, "children": [], "start_point": {"row": 46, "column": 7}, "end_point": {"row": 46, "column": 8}}, {"id": 279, "type": "=", "text": "=", "parent": 274, "children": [], "start_point": {"row": 46, "column": 10}, "end_point": {"row": 46, "column": 11}}, {"id": 280, "type": "binary_expression", "text": "(2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1) - (n - 1.0) / n * IP(n - 2)", "parent": 274, "children": [281, 340, 341], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 47, "column": 71}}, {"id": 281, "type": "binary_expression", "text": "(2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1)", "parent": 280, "children": [282, 319, 320], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 47, "column": 43}}, {"id": 282, "type": "binary_expression", "text": "(2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0)", "parent": 281, "children": [283, 301, 302], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 46, "column": 76}}, {"id": 283, "type": "binary_expression", "text": "(2.0 * n - 1.0) / (2.0 * n * a)", "parent": 282, "children": [284, 292, 293], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 46, "column": 43}}, {"id": 284, "type": "parenthesized_expression", "text": "(2.0 * n - 1.0)", "parent": 283, "children": [285], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 46, "column": 27}}, {"id": 285, "type": "binary_expression", "text": "2.0 * n - 1.0", "parent": 284, "children": [286, 290, 291], "start_point": {"row": 46, "column": 13}, "end_point": {"row": 46, "column": 26}}, {"id": 286, "type": "binary_expression", "text": "2.0 * n", "parent": 285, "children": [287, 288, 289], "start_point": {"row": 46, "column": 13}, "end_point": {"row": 46, "column": 20}}, {"id": 287, "type": "number_literal", "text": "2.0", "parent": 286, "children": [], "start_point": {"row": 46, "column": 13}, "end_point": {"row": 46, "column": 16}}, {"id": 288, "type": "*", "text": "*", "parent": 286, "children": [], "start_point": {"row": 46, "column": 17}, "end_point": {"row": 46, "column": 18}}, {"id": 289, "type": "identifier", "text": "n", "parent": 286, "children": [], "start_point": {"row": 46, "column": 19}, "end_point": {"row": 46, "column": 20}}, {"id": 290, "type": "-", "text": "-", "parent": 285, "children": [], "start_point": {"row": 46, "column": 21}, "end_point": {"row": 46, "column": 22}}, {"id": 291, "type": "number_literal", "text": "1.0", "parent": 285, "children": [], "start_point": {"row": 46, "column": 23}, "end_point": {"row": 46, "column": 26}}, {"id": 292, "type": "/", "text": "/", "parent": 283, "children": [], "start_point": {"row": 46, "column": 28}, "end_point": {"row": 46, "column": 29}}, {"id": 293, "type": "parenthesized_expression", "text": "(2.0 * n * a)", "parent": 283, "children": [294], "start_point": {"row": 46, "column": 30}, "end_point": {"row": 46, "column": 43}}, {"id": 294, "type": "binary_expression", "text": "2.0 * n * a", "parent": 293, "children": [295, 299, 300], "start_point": {"row": 46, "column": 31}, "end_point": {"row": 46, "column": 42}}, {"id": 295, "type": "binary_expression", "text": "2.0 * n", "parent": 294, "children": [296, 297, 298], "start_point": {"row": 46, "column": 31}, "end_point": {"row": 46, "column": 38}}, {"id": 296, "type": "number_literal", "text": "2.0", "parent": 295, "children": [], "start_point": {"row": 46, "column": 31}, "end_point": {"row": 46, "column": 34}}, {"id": 297, "type": "*", "text": "*", "parent": 295, "children": [], "start_point": {"row": 46, "column": 35}, "end_point": {"row": 46, "column": 36}}, {"id": 298, "type": "identifier", "text": "n", "parent": 295, "children": [], "start_point": {"row": 46, "column": 37}, "end_point": {"row": 46, "column": 38}}, {"id": 299, "type": "*", "text": "*", "parent": 294, "children": [], "start_point": {"row": 46, "column": 39}, "end_point": {"row": 46, "column": 40}}, {"id": 300, "type": "identifier", "text": "a", "parent": 294, "children": [], "start_point": {"row": 46, "column": 41}, "end_point": {"row": 46, "column": 42}}, {"id": 301, "type": "*", "text": "*", "parent": 282, "children": [], "start_point": {"row": 46, "column": 44}, "end_point": {"row": 46, "column": 45}}, {"id": 302, "type": "parenthesized_expression", "text": "(ID(n - 1) + sgn * term - 1.0)", "parent": 282, "children": [303], "start_point": {"row": 46, "column": 46}, "end_point": {"row": 46, "column": 76}}, {"id": 303, "type": "binary_expression", "text": "ID(n - 1) + sgn * term - 1.0", "parent": 302, "children": [304, 317, 318], "start_point": {"row": 46, "column": 47}, "end_point": {"row": 46, "column": 75}}, {"id": 304, "type": "binary_expression", "text": "ID(n - 1) + sgn * term", "parent": 303, "children": [305, 312, 313], "start_point": {"row": 46, "column": 47}, "end_point": {"row": 46, "column": 69}}, {"id": 305, "type": "call_expression", "text": "ID(n - 1)", "parent": 304, "children": [306, 307], "start_point": {"row": 46, "column": 47}, "end_point": {"row": 46, "column": 56}}, {"id": 306, "type": "identifier", "text": "ID", "parent": 305, "children": [], "start_point": {"row": 46, "column": 47}, "end_point": {"row": 46, "column": 49}}, {"id": 307, "type": "argument_list", "text": "(n - 1)", "parent": 305, "children": [308], "start_point": {"row": 46, "column": 49}, "end_point": {"row": 46, "column": 56}}, {"id": 308, "type": "binary_expression", "text": "n - 1", "parent": 307, "children": [309, 310, 311], "start_point": {"row": 46, "column": 50}, "end_point": {"row": 46, "column": 55}}, {"id": 309, "type": "identifier", "text": "n", "parent": 308, "children": [], "start_point": {"row": 46, "column": 50}, "end_point": {"row": 46, "column": 51}}, {"id": 310, "type": "-", "text": "-", "parent": 308, "children": [], "start_point": {"row": 46, "column": 52}, "end_point": {"row": 46, "column": 53}}, {"id": 311, "type": "number_literal", "text": "1", "parent": 308, "children": [], "start_point": {"row": 46, "column": 54}, "end_point": {"row": 46, "column": 55}}, {"id": 312, "type": "+", "text": "+", "parent": 304, "children": [], "start_point": {"row": 46, "column": 57}, "end_point": {"row": 46, "column": 58}}, {"id": 313, "type": "binary_expression", "text": "sgn * term", "parent": 304, "children": [314, 315, 316], "start_point": {"row": 46, "column": 59}, "end_point": {"row": 46, "column": 69}}, {"id": 314, "type": "identifier", "text": "sgn", "parent": 313, "children": [], "start_point": {"row": 46, "column": 59}, "end_point": {"row": 46, "column": 62}}, {"id": 315, "type": "*", "text": "*", "parent": 313, "children": [], "start_point": {"row": 46, "column": 63}, "end_point": {"row": 46, "column": 64}}, {"id": 316, "type": "identifier", "text": "term", "parent": 313, "children": [], "start_point": {"row": 46, "column": 65}, "end_point": {"row": 46, "column": 69}}, {"id": 317, "type": "-", "text": "-", "parent": 303, "children": [], "start_point": {"row": 46, "column": 70}, "end_point": {"row": 46, "column": 71}}, {"id": 318, "type": "number_literal", "text": "1.0", "parent": 303, "children": [], "start_point": {"row": 46, "column": 72}, "end_point": {"row": 46, "column": 75}}, {"id": 319, "type": "+", "text": "+", "parent": 281, "children": [], "start_point": {"row": 46, "column": 77}, "end_point": {"row": 46, "column": 78}}, {"id": 320, "type": "binary_expression", "text": "(2.0 * n - 1.0) / n * IP(n - 1)", "parent": 281, "children": [321, 332, 333], "start_point": {"row": 47, "column": 12}, "end_point": {"row": 47, "column": 43}}, {"id": 321, "type": "binary_expression", "text": "(2.0 * n - 1.0) / n", "parent": 320, "children": [322, 330, 331], "start_point": {"row": 47, "column": 12}, "end_point": {"row": 47, "column": 31}}, {"id": 322, "type": "parenthesized_expression", "text": "(2.0 * n - 1.0)", "parent": 321, "children": [323], "start_point": {"row": 47, "column": 12}, "end_point": {"row": 47, "column": 27}}, {"id": 323, "type": "binary_expression", "text": "2.0 * n - 1.0", "parent": 322, "children": [324, 328, 329], "start_point": {"row": 47, "column": 13}, "end_point": {"row": 47, "column": 26}}, {"id": 324, "type": "binary_expression", "text": "2.0 * n", "parent": 323, "children": [325, 326, 327], "start_point": {"row": 47, "column": 13}, "end_point": {"row": 47, "column": 20}}, {"id": 325, "type": "number_literal", "text": "2.0", "parent": 324, "children": [], "start_point": {"row": 47, "column": 13}, "end_point": {"row": 47, "column": 16}}, {"id": 326, "type": "*", "text": "*", "parent": 324, "children": [], "start_point": {"row": 47, "column": 17}, "end_point": {"row": 47, "column": 18}}, {"id": 327, "type": "identifier", "text": "n", "parent": 324, "children": [], "start_point": {"row": 47, "column": 19}, "end_point": {"row": 47, "column": 20}}, {"id": 328, "type": "-", "text": "-", "parent": 323, "children": [], "start_point": {"row": 47, "column": 21}, "end_point": {"row": 47, "column": 22}}, {"id": 329, "type": "number_literal", "text": "1.0", "parent": 323, "children": [], "start_point": {"row": 47, "column": 23}, "end_point": {"row": 47, "column": 26}}, {"id": 330, "type": "/", "text": "/", "parent": 321, "children": [], "start_point": {"row": 47, "column": 28}, "end_point": {"row": 47, "column": 29}}, {"id": 331, "type": "identifier", "text": "n", "parent": 321, "children": [], "start_point": {"row": 47, "column": 30}, "end_point": {"row": 47, "column": 31}}, {"id": 332, "type": "*", "text": "*", "parent": 320, "children": [], "start_point": {"row": 47, "column": 32}, "end_point": {"row": 47, "column": 33}}, {"id": 333, "type": "call_expression", "text": "IP(n - 1)", "parent": 320, "children": [334, 335], "start_point": {"row": 47, "column": 34}, "end_point": {"row": 47, "column": 43}}, {"id": 334, "type": "identifier", "text": "IP", "parent": 333, "children": [], "start_point": {"row": 47, "column": 34}, "end_point": {"row": 47, "column": 36}}, {"id": 335, "type": "argument_list", "text": "(n - 1)", "parent": 333, "children": [336], "start_point": {"row": 47, "column": 36}, "end_point": {"row": 47, "column": 43}}, {"id": 336, "type": "binary_expression", "text": "n - 1", "parent": 335, "children": [337, 338, 339], "start_point": {"row": 47, "column": 37}, "end_point": {"row": 47, "column": 42}}, {"id": 337, "type": "identifier", "text": "n", "parent": 336, "children": [], "start_point": {"row": 47, "column": 37}, "end_point": {"row": 47, "column": 38}}, {"id": 338, "type": "-", "text": "-", "parent": 336, "children": [], "start_point": {"row": 47, "column": 39}, "end_point": {"row": 47, "column": 40}}, {"id": 339, "type": "number_literal", "text": "1", "parent": 336, "children": [], "start_point": {"row": 47, "column": 41}, "end_point": {"row": 47, "column": 42}}, {"id": 340, "type": "-", "text": "-", "parent": 280, "children": [], "start_point": {"row": 47, "column": 44}, "end_point": {"row": 47, "column": 45}}, {"id": 341, "type": "binary_expression", "text": "(n - 1.0) / n * IP(n - 2)", "parent": 280, "children": [342, 350, 351], "start_point": {"row": 47, "column": 46}, "end_point": {"row": 47, "column": 71}}, {"id": 342, "type": "binary_expression", "text": "(n - 1.0) / n", "parent": 341, "children": [343, 348, 349], "start_point": {"row": 47, "column": 46}, "end_point": {"row": 47, "column": 59}}, {"id": 343, "type": "parenthesized_expression", "text": "(n - 1.0)", "parent": 342, "children": [344], "start_point": {"row": 47, "column": 46}, "end_point": {"row": 47, "column": 55}}, {"id": 344, "type": "binary_expression", "text": "n - 1.0", "parent": 343, "children": [345, 346, 347], "start_point": {"row": 47, "column": 47}, "end_point": {"row": 47, "column": 54}}, {"id": 345, "type": "identifier", "text": "n", "parent": 344, "children": [], "start_point": {"row": 47, "column": 47}, "end_point": {"row": 47, "column": 48}}, {"id": 346, "type": "-", "text": "-", "parent": 344, "children": [], "start_point": {"row": 47, "column": 49}, "end_point": {"row": 47, "column": 50}}, {"id": 347, "type": "number_literal", "text": "1.0", "parent": 344, "children": [], "start_point": {"row": 47, "column": 51}, "end_point": {"row": 47, "column": 54}}, {"id": 348, "type": "/", "text": "/", "parent": 342, "children": [], "start_point": {"row": 47, "column": 56}, "end_point": {"row": 47, "column": 57}}, {"id": 349, "type": "identifier", "text": "n", "parent": 342, "children": [], "start_point": {"row": 47, "column": 58}, "end_point": {"row": 47, "column": 59}}, {"id": 350, "type": "*", "text": "*", "parent": 341, "children": [], "start_point": {"row": 47, "column": 60}, "end_point": {"row": 47, "column": 61}}, {"id": 351, "type": "call_expression", "text": "IP(n - 2)", "parent": 341, "children": [352, 353], "start_point": {"row": 47, "column": 62}, "end_point": {"row": 47, "column": 71}}, {"id": 352, "type": "identifier", "text": "IP", "parent": 351, "children": [], "start_point": {"row": 47, "column": 62}, "end_point": {"row": 47, "column": 64}}, {"id": 353, "type": "argument_list", "text": "(n - 2)", "parent": 351, "children": [354], "start_point": {"row": 47, "column": 64}, "end_point": {"row": 47, "column": 71}}, {"id": 354, "type": "binary_expression", "text": "n - 2", "parent": 353, "children": [355, 356, 357], "start_point": {"row": 47, "column": 65}, "end_point": {"row": 47, "column": 70}}, {"id": 355, "type": "identifier", "text": "n", "parent": 354, "children": [], "start_point": {"row": 47, "column": 65}, "end_point": {"row": 47, "column": 66}}, {"id": 356, "type": "-", "text": "-", "parent": 354, "children": [], "start_point": {"row": 47, "column": 67}, "end_point": {"row": 47, "column": 68}}, {"id": 357, "type": "number_literal", "text": "2", "parent": 354, "children": [], "start_point": {"row": 47, "column": 69}, "end_point": {"row": 47, "column": 70}}, {"id": 358, "type": "assignment_expression", "text": "ID(n) = (2.0 * n - 1.0) * IP(n - 1) + ID(n - 2)", "parent": 257, "children": [359, 363, 364], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 51}}, {"id": 359, "type": "call_expression", "text": "ID(n)", "parent": 358, "children": [360, 361], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 9}}, {"id": 360, "type": "identifier", "text": "ID", "parent": 359, "children": [], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 6}}, {"id": 361, "type": "argument_list", "text": "(n)", "parent": 359, "children": [362], "start_point": {"row": 48, "column": 6}, "end_point": {"row": 48, "column": 9}}, {"id": 362, "type": "identifier", "text": "n", "parent": 361, "children": [], "start_point": {"row": 48, "column": 7}, "end_point": {"row": 48, "column": 8}}, {"id": 363, "type": "=", "text": "=", "parent": 358, "children": [], "start_point": {"row": 48, "column": 10}, "end_point": {"row": 48, "column": 11}}, {"id": 364, "type": "binary_expression", "text": "(2.0 * n - 1.0) * IP(n - 1) + ID(n - 2)", "parent": 358, "children": [365, 382, 383], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 51}}, {"id": 365, "type": "binary_expression", "text": "(2.0 * n - 1.0) * IP(n - 1)", "parent": 364, "children": [366, 374, 375], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 39}}, {"id": 366, "type": "parenthesized_expression", "text": "(2.0 * n - 1.0)", "parent": 365, "children": [367], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 27}}, {"id": 367, "type": "binary_expression", "text": "2.0 * n - 1.0", "parent": 366, "children": [368, 372, 373], "start_point": {"row": 48, "column": 13}, "end_point": {"row": 48, "column": 26}}, {"id": 368, "type": "binary_expression", "text": "2.0 * n", "parent": 367, "children": [369, 370, 371], "start_point": {"row": 48, "column": 13}, "end_point": {"row": 48, "column": 20}}, {"id": 369, "type": "number_literal", "text": "2.0", "parent": 368, "children": [], "start_point": {"row": 48, "column": 13}, "end_point": {"row": 48, "column": 16}}, {"id": 370, "type": "*", "text": "*", "parent": 368, "children": [], "start_point": {"row": 48, "column": 17}, "end_point": {"row": 48, "column": 18}}, {"id": 371, "type": "identifier", "text": "n", "parent": 368, "children": [], "start_point": {"row": 48, "column": 19}, "end_point": {"row": 48, "column": 20}}, {"id": 372, "type": "-", "text": "-", "parent": 367, "children": [], "start_point": {"row": 48, "column": 21}, "end_point": {"row": 48, "column": 22}}, {"id": 373, "type": "number_literal", "text": "1.0", "parent": 367, "children": [], "start_point": {"row": 48, "column": 23}, "end_point": {"row": 48, "column": 26}}, {"id": 374, "type": "*", "text": "*", "parent": 365, "children": [], "start_point": {"row": 48, "column": 28}, "end_point": {"row": 48, "column": 29}}, {"id": 375, "type": "call_expression", "text": "IP(n - 1)", "parent": 365, "children": [376, 377], "start_point": {"row": 48, "column": 30}, "end_point": {"row": 48, "column": 39}}, {"id": 376, "type": "identifier", "text": "IP", "parent": 375, "children": [], "start_point": {"row": 48, "column": 30}, "end_point": {"row": 48, "column": 32}}, {"id": 377, "type": "argument_list", "text": "(n - 1)", "parent": 375, "children": [378], "start_point": {"row": 48, "column": 32}, "end_point": {"row": 48, "column": 39}}, {"id": 378, "type": "binary_expression", "text": "n - 1", "parent": 377, "children": [379, 380, 381], "start_point": {"row": 48, "column": 33}, "end_point": {"row": 48, "column": 38}}, {"id": 379, "type": "identifier", "text": "n", "parent": 378, "children": [], "start_point": {"row": 48, "column": 33}, "end_point": {"row": 48, "column": 34}}, {"id": 380, "type": "-", "text": "-", "parent": 378, "children": [], "start_point": {"row": 48, "column": 35}, "end_point": {"row": 48, "column": 36}}, {"id": 381, "type": "number_literal", "text": "1", "parent": 378, "children": [], "start_point": {"row": 48, "column": 37}, "end_point": {"row": 48, "column": 38}}, {"id": 382, "type": "+", "text": "+", "parent": 364, "children": [], "start_point": {"row": 48, "column": 40}, "end_point": {"row": 48, "column": 41}}, {"id": 383, "type": "call_expression", "text": "ID(n - 2)", "parent": 364, "children": [384, 385], "start_point": {"row": 48, "column": 42}, "end_point": {"row": 48, "column": 51}}, {"id": 384, "type": "identifier", "text": "ID", "parent": 383, "children": [], "start_point": {"row": 48, "column": 42}, "end_point": {"row": 48, "column": 44}}, {"id": 385, "type": "argument_list", "text": "(n - 2)", "parent": 383, "children": [386], "start_point": {"row": 48, "column": 44}, "end_point": {"row": 48, "column": 51}}, {"id": 386, "type": "binary_expression", "text": "n - 2", "parent": 385, "children": [387, 388, 389], "start_point": {"row": 48, "column": 45}, "end_point": {"row": 48, "column": 50}}, {"id": 387, "type": "identifier", "text": "n", "parent": 386, "children": [], "start_point": {"row": 48, "column": 45}, "end_point": {"row": 48, "column": 46}}, {"id": 388, "type": "-", "text": "-", "parent": 386, "children": [], "start_point": {"row": 48, "column": 47}, "end_point": {"row": 48, "column": 48}}, {"id": 389, "type": "number_literal", "text": "2", "parent": 386, "children": [], "start_point": {"row": 48, "column": 49}, "end_point": {"row": 48, "column": 50}}, {"id": 390, "type": "assignment_expression", "text": "sgn *= -1", "parent": 257, "children": [391, 392, 393], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 13}}, {"id": 391, "type": "identifier", "text": "sgn", "parent": 390, "children": [], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 7}}, {"id": 392, "type": "*=", "text": "*=", "parent": 390, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 10}}, {"id": 393, "type": "number_literal", "text": "-1", "parent": 390, "children": [], "start_point": {"row": 49, "column": 11}, "end_point": {"row": 49, "column": 13}}, {"id": 394, "type": "for_statement", "text": "for (int n = 0; n < l + 1; ++n)\n y.row(n * n + n) = amp * sqrt(2 * n + 1) * (IP(n) / IP(0));", "parent": 15, "children": [395, 401, 408], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 54, "column": 63}}, {"id": 395, "type": "declaration", "text": "int n = 0;", "parent": 394, "children": [396, 397], "start_point": {"row": 53, "column": 7}, "end_point": {"row": 53, "column": 17}}, {"id": 396, "type": "primitive_type", "text": "int", "parent": 395, "children": [], "start_point": {"row": 53, "column": 7}, "end_point": {"row": 53, "column": 10}}, {"id": 397, "type": "init_declarator", "text": "n = 0", "parent": 395, "children": [398, 399, 400], "start_point": {"row": 53, "column": 11}, "end_point": {"row": 53, "column": 16}}, {"id": 398, "type": "identifier", "text": "n", "parent": 397, "children": [], "start_point": {"row": 53, "column": 11}, "end_point": {"row": 53, "column": 12}}, {"id": 399, "type": "=", "text": "=", "parent": 397, "children": [], "start_point": {"row": 53, "column": 13}, "end_point": {"row": 53, "column": 14}}, {"id": 400, "type": "number_literal", "text": "0", "parent": 397, "children": [], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 16}}, {"id": 401, "type": "binary_expression", "text": "n < l + 1", "parent": 394, "children": [402, 403, 404], "start_point": {"row": 53, "column": 18}, "end_point": {"row": 53, "column": 27}}, {"id": 402, "type": "identifier", "text": "n", "parent": 401, "children": [], "start_point": {"row": 53, "column": 18}, "end_point": {"row": 53, "column": 19}}, {"id": 403, "type": "<", "text": "<", "parent": 401, "children": [], "start_point": {"row": 53, "column": 20}, "end_point": {"row": 53, "column": 21}}, {"id": 404, "type": "binary_expression", "text": "l + 1", "parent": 401, "children": [405, 406, 407], "start_point": {"row": 53, "column": 22}, "end_point": {"row": 53, "column": 27}}, {"id": 405, "type": "identifier", "text": "l", "parent": 404, "children": [], "start_point": {"row": 53, "column": 22}, "end_point": {"row": 53, "column": 23}}, {"id": 406, "type": "+", "text": "+", "parent": 404, "children": [], "start_point": {"row": 53, "column": 24}, "end_point": {"row": 53, "column": 25}}, {"id": 407, "type": "number_literal", "text": "1", "parent": 404, "children": [], "start_point": {"row": 53, "column": 26}, "end_point": {"row": 53, "column": 27}}, {"id": 408, "type": "update_expression", "text": "++n", "parent": 394, "children": [409, 410], "start_point": {"row": 53, "column": 29}, "end_point": {"row": 53, "column": 32}}, {"id": 409, "type": "++", "text": "++", "parent": 408, "children": [], "start_point": {"row": 53, "column": 29}, "end_point": {"row": 53, "column": 31}}, {"id": 410, "type": "identifier", "text": "n", "parent": 408, "children": [], "start_point": {"row": 53, "column": 31}, "end_point": {"row": 53, "column": 32}}, {"id": 411, "type": "assignment_expression", "text": "y.row(n * n + n) = amp * sqrt(2 * n + 1) * (IP(n) / IP(0))", "parent": 394, "children": [412, 424, 425], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 62}}, {"id": 412, "type": "call_expression", "text": "y.row(n * n + n)", "parent": 411, "children": [413, 416], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 20}}, {"id": 413, "type": "field_expression", "text": "y.row", "parent": 412, "children": [414, 415], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 9}}, {"id": 414, "type": "identifier", "text": "y", "parent": 413, "children": [], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 5}}, {"id": 415, "type": "field_identifier", "text": "row", "parent": 413, "children": [], "start_point": {"row": 54, "column": 6}, "end_point": {"row": 54, "column": 9}}, {"id": 416, "type": "argument_list", "text": "(n * n + n)", "parent": 412, "children": [417], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 20}}, {"id": 417, "type": "binary_expression", "text": "n * n + n", "parent": 416, "children": [418, 422, 423], "start_point": {"row": 54, "column": 10}, "end_point": {"row": 54, "column": 19}}, {"id": 418, "type": "binary_expression", "text": "n * n", "parent": 417, "children": [419, 420, 421], "start_point": {"row": 54, "column": 10}, "end_point": {"row": 54, "column": 15}}, {"id": 419, "type": "identifier", "text": "n", "parent": 418, "children": [], "start_point": {"row": 54, "column": 10}, "end_point": {"row": 54, "column": 11}}, {"id": 420, "type": "*", "text": "*", "parent": 418, "children": [], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 13}}, {"id": 421, "type": "identifier", "text": "n", "parent": 418, "children": [], "start_point": {"row": 54, "column": 14}, "end_point": {"row": 54, "column": 15}}, {"id": 422, "type": "+", "text": "+", "parent": 417, "children": [], "start_point": {"row": 54, "column": 16}, "end_point": {"row": 54, "column": 17}}, {"id": 423, "type": "identifier", "text": "n", "parent": 417, "children": [], "start_point": {"row": 54, "column": 18}, "end_point": {"row": 54, "column": 19}}, {"id": 424, "type": "=", "text": "=", "parent": 411, "children": [], "start_point": {"row": 54, "column": 21}, "end_point": {"row": 54, "column": 22}}, {"id": 425, "type": "binary_expression", "text": "amp * sqrt(2 * n + 1) * (IP(n) / IP(0))", "parent": 411, "children": [426, 439, 440], "start_point": {"row": 54, "column": 23}, "end_point": {"row": 54, "column": 62}}, {"id": 426, "type": "binary_expression", "text": "amp * sqrt(2 * n + 1)", "parent": 425, "children": [427, 428, 429], "start_point": {"row": 54, "column": 23}, "end_point": {"row": 54, "column": 44}}, {"id": 427, "type": "identifier", "text": "amp", "parent": 426, "children": [], "start_point": {"row": 54, "column": 23}, "end_point": {"row": 54, "column": 26}}, {"id": 428, "type": "*", "text": "*", "parent": 426, "children": [], "start_point": {"row": 54, "column": 27}, "end_point": {"row": 54, "column": 28}}, {"id": 429, "type": "call_expression", "text": "sqrt(2 * n + 1)", "parent": 426, "children": [430, 431], "start_point": {"row": 54, "column": 29}, "end_point": {"row": 54, "column": 44}}, {"id": 430, "type": "identifier", "text": "sqrt", "parent": 429, "children": [], "start_point": {"row": 54, "column": 29}, "end_point": {"row": 54, "column": 33}}, {"id": 431, "type": "argument_list", "text": "(2 * n + 1)", "parent": 429, "children": [432], "start_point": {"row": 54, "column": 33}, "end_point": {"row": 54, "column": 44}}, {"id": 432, "type": "binary_expression", "text": "2 * n + 1", "parent": 431, "children": [433, 437, 438], "start_point": {"row": 54, "column": 34}, "end_point": {"row": 54, "column": 43}}, {"id": 433, "type": "binary_expression", "text": "2 * n", "parent": 432, "children": [434, 435, 436], "start_point": {"row": 54, "column": 34}, "end_point": {"row": 54, "column": 39}}, {"id": 434, "type": "number_literal", "text": "2", "parent": 433, "children": [], "start_point": {"row": 54, "column": 34}, "end_point": {"row": 54, "column": 35}}, {"id": 435, "type": "*", "text": "*", "parent": 433, "children": [], "start_point": {"row": 54, "column": 36}, "end_point": {"row": 54, "column": 37}}, {"id": 436, "type": "identifier", "text": "n", "parent": 433, "children": [], "start_point": {"row": 54, "column": 38}, "end_point": {"row": 54, "column": 39}}, {"id": 437, "type": "+", "text": "+", "parent": 432, "children": [], "start_point": {"row": 54, "column": 40}, "end_point": {"row": 54, "column": 41}}, {"id": 438, "type": "number_literal", "text": "1", "parent": 432, "children": [], "start_point": {"row": 54, "column": 42}, "end_point": {"row": 54, "column": 43}}, {"id": 439, "type": "*", "text": "*", "parent": 425, "children": [], "start_point": {"row": 54, "column": 45}, "end_point": {"row": 54, "column": 46}}, {"id": 440, "type": "parenthesized_expression", "text": "(IP(n) / IP(0))", "parent": 425, "children": [441], "start_point": {"row": 54, "column": 47}, "end_point": {"row": 54, "column": 62}}, {"id": 441, "type": "binary_expression", "text": "IP(n) / IP(0)", "parent": 440, "children": [442, 446, 447], "start_point": {"row": 54, "column": 48}, "end_point": {"row": 54, "column": 61}}, {"id": 442, "type": "call_expression", "text": "IP(n)", "parent": 441, "children": [443, 444], "start_point": {"row": 54, "column": 48}, "end_point": {"row": 54, "column": 53}}, {"id": 443, "type": "identifier", "text": "IP", "parent": 442, "children": [], "start_point": {"row": 54, "column": 48}, "end_point": {"row": 54, "column": 50}}, {"id": 444, "type": "argument_list", "text": "(n)", "parent": 442, "children": [445], "start_point": {"row": 54, "column": 50}, "end_point": {"row": 54, "column": 53}}, {"id": 445, "type": "identifier", "text": "n", "parent": 444, "children": [], "start_point": {"row": 54, "column": 51}, "end_point": {"row": 54, "column": 52}}, {"id": 446, "type": "/", "text": "/", "parent": 441, "children": [], "start_point": {"row": 54, "column": 54}, "end_point": {"row": 54, "column": 55}}, {"id": 447, "type": "call_expression", "text": "IP(0)", "parent": 441, "children": [448, 449], "start_point": {"row": 54, "column": 56}, "end_point": {"row": 54, "column": 61}}, {"id": 448, "type": "identifier", "text": "IP", "parent": 447, "children": [], "start_point": {"row": 54, "column": 56}, "end_point": {"row": 54, "column": 58}}, {"id": 449, "type": "argument_list", "text": "(0)", "parent": 447, "children": [450], "start_point": {"row": 54, "column": 58}, "end_point": {"row": 54, "column": 61}}, {"id": 450, "type": "number_literal", "text": "0", "parent": 449, "children": [], "start_point": {"row": 54, "column": 59}, "end_point": {"row": 54, "column": 60}}, {"id": 451, "type": "declaration", "text": "Scalar tol = 10 * mach_eps<Scalar>();", "parent": 15, "children": [452, 453], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 39}}, {"id": 452, "type": "type_identifier", "text": "Scalar", "parent": 451, "children": [], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 8}}, {"id": 453, "type": "init_declarator", "text": "tol = 10 * mach_eps<Scalar>()", "parent": 451, "children": [454, 455, 456], "start_point": {"row": 62, "column": 9}, "end_point": {"row": 62, "column": 38}}, {"id": 454, "type": "identifier", "text": "tol", "parent": 453, "children": [], "start_point": {"row": 62, "column": 9}, "end_point": {"row": 62, "column": 12}}, {"id": 455, "type": "=", "text": "=", "parent": 453, "children": [], "start_point": {"row": 62, "column": 13}, "end_point": {"row": 62, "column": 14}}, {"id": 456, "type": "binary_expression", "text": "10 * mach_eps<Scalar>()", "parent": 453, "children": [457, 464, 465], "start_point": {"row": 62, "column": 15}, "end_point": {"row": 62, "column": 38}}, {"id": 457, "type": "binary_expression", "text": "10 * mach_eps<Scalar", "parent": 456, "children": [458, 462, 463], "start_point": {"row": 62, "column": 15}, "end_point": {"row": 62, "column": 35}}, {"id": 458, "type": "binary_expression", "text": "10 * mach_eps", "parent": 457, "children": [459, 460, 461], "start_point": {"row": 62, "column": 15}, "end_point": {"row": 62, "column": 28}}, {"id": 459, "type": "number_literal", "text": "10", "parent": 458, "children": [], "start_point": {"row": 62, "column": 15}, "end_point": {"row": 62, "column": 17}}, {"id": 460, "type": "*", "text": "*", "parent": 458, "children": [], "start_point": {"row": 62, "column": 18}, "end_point": {"row": 62, "column": 19}}, {"id": 461, "type": "identifier", "text": "mach_eps", "parent": 458, "children": [], "start_point": {"row": 62, "column": 20}, "end_point": {"row": 62, "column": 28}}, {"id": 462, "type": "<", "text": "<", "parent": 457, "children": [], "start_point": {"row": 62, "column": 28}, "end_point": {"row": 62, "column": 29}}, {"id": 463, "type": "identifier", "text": "Scalar", "parent": 457, "children": [], "start_point": {"row": 62, "column": 29}, "end_point": {"row": 62, "column": 35}}, {"id": 464, "type": ">", "text": ">", "parent": 456, "children": [], "start_point": {"row": 62, "column": 35}, "end_point": {"row": 62, "column": 36}}, {"id": 465, "type": "parenthesized_expression", "text": "()", "parent": 456, "children": [466], "start_point": {"row": 62, "column": 36}, "end_point": {"row": 62, "column": 38}}, {"id": 466, "type": "identifier", "text": "", "parent": 465, "children": [], "start_point": {"row": 62, "column": 37}, "end_point": {"row": 62, "column": 37}}, {"id": 467, "type": "if_statement", "text": "if ((abs(lat) > tol) || (abs(lon) > tol)) {\n Scalar clat = cos(lat);\n Scalar clon = cos(lon);\n Scalar slat = sin(lat);\n Scalar slon = sin(lon);\n Scalar costheta = 0.5 * (clon + clat + clon * clat - 1);\n UnitVector<Scalar> u;\n u << -slat * (1 + clon), slon * (1 + clat), slon * slat;\n Scalar normu = u.norm();\n u /= normu;\n Scalar sintheta = 0.5 * normu;\n Scalar theta = atan2(sintheta, costheta);\n W.dotR(y.transpose(), u(0), u(1), u(2), -theta);\n y = W.dotR_result.transpose();\n }", "parent": 15, "children": [468], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 77, "column": 3}}, {"id": 468, "type": "parenthesized_expression", "text": "((abs(lat) > tol) || (abs(lon) > tol))", "parent": 467, "children": [469], "start_point": {"row": 63, "column": 5}, "end_point": {"row": 63, "column": 43}}, {"id": 469, "type": "binary_expression", "text": "(abs(lat) > tol) || (abs(lon) > tol)", "parent": 468, "children": [470, 478, 479], "start_point": {"row": 63, "column": 6}, "end_point": {"row": 63, "column": 42}}, {"id": 470, "type": "parenthesized_expression", "text": "(abs(lat) > tol)", "parent": 469, "children": [471], "start_point": {"row": 63, "column": 6}, "end_point": {"row": 63, "column": 22}}, {"id": 471, "type": "binary_expression", "text": "abs(lat) > tol", "parent": 470, "children": [472, 476, 477], "start_point": {"row": 63, "column": 7}, "end_point": {"row": 63, "column": 21}}, {"id": 472, "type": "call_expression", "text": "abs(lat)", "parent": 471, "children": [473, 474], "start_point": {"row": 63, "column": 7}, "end_point": {"row": 63, "column": 15}}, {"id": 473, "type": "identifier", "text": "abs", "parent": 472, "children": [], "start_point": {"row": 63, "column": 7}, "end_point": {"row": 63, "column": 10}}, {"id": 474, "type": "argument_list", "text": "(lat)", "parent": 472, "children": [475], "start_point": {"row": 63, "column": 10}, "end_point": {"row": 63, "column": 15}}, {"id": 475, "type": "identifier", "text": "lat", "parent": 474, "children": [], "start_point": {"row": 63, "column": 11}, "end_point": {"row": 63, "column": 14}}, {"id": 476, "type": ">", "text": ">", "parent": 471, "children": [], "start_point": {"row": 63, "column": 16}, "end_point": {"row": 63, "column": 17}}, {"id": 477, "type": "identifier", "text": "tol", "parent": 471, "children": [], "start_point": {"row": 63, "column": 18}, "end_point": {"row": 63, "column": 21}}, {"id": 478, "type": "||", "text": "||", "parent": 469, "children": [], "start_point": {"row": 63, "column": 23}, "end_point": {"row": 63, "column": 25}}, {"id": 479, "type": "parenthesized_expression", "text": "(abs(lon) > tol)", "parent": 469, "children": [480], "start_point": {"row": 63, "column": 26}, "end_point": {"row": 63, "column": 42}}, {"id": 480, "type": "binary_expression", "text": "abs(lon) > tol", "parent": 479, "children": [481, 485, 486], "start_point": {"row": 63, "column": 27}, "end_point": {"row": 63, "column": 41}}, {"id": 481, "type": "call_expression", "text": "abs(lon)", "parent": 480, "children": [482, 483], "start_point": {"row": 63, "column": 27}, "end_point": {"row": 63, "column": 35}}, {"id": 482, "type": "identifier", "text": "abs", "parent": 481, "children": [], "start_point": {"row": 63, "column": 27}, "end_point": {"row": 63, "column": 30}}, {"id": 483, "type": "argument_list", "text": "(lon)", "parent": 481, "children": [484], "start_point": {"row": 63, "column": 30}, "end_point": {"row": 63, "column": 35}}, {"id": 484, "type": "identifier", "text": "lon", "parent": 483, "children": [], "start_point": {"row": 63, "column": 31}, "end_point": {"row": 63, "column": 34}}, {"id": 485, "type": ">", "text": ">", "parent": 480, "children": [], "start_point": {"row": 63, "column": 36}, "end_point": {"row": 63, "column": 37}}, {"id": 486, "type": "identifier", "text": "tol", "parent": 480, "children": [], "start_point": {"row": 63, "column": 38}, "end_point": {"row": 63, "column": 41}}, {"id": 487, "type": "declaration", "text": "Scalar clat = cos(lat);", "parent": 467, "children": [488, 489], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 27}}, {"id": 488, "type": "type_identifier", "text": "Scalar", "parent": 487, "children": [], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 10}}, {"id": 489, "type": "init_declarator", "text": "clat = cos(lat)", "parent": 487, "children": [490, 491, 492], "start_point": {"row": 64, "column": 11}, "end_point": {"row": 64, "column": 26}}, {"id": 490, "type": "identifier", "text": "clat", "parent": 489, "children": [], "start_point": {"row": 64, "column": 11}, "end_point": {"row": 64, "column": 15}}, {"id": 491, "type": "=", "text": "=", "parent": 489, "children": [], "start_point": {"row": 64, "column": 16}, "end_point": {"row": 64, "column": 17}}, {"id": 492, "type": "call_expression", "text": "cos(lat)", "parent": 489, "children": [493, 494], "start_point": {"row": 64, "column": 18}, "end_point": {"row": 64, "column": 26}}, {"id": 493, "type": "identifier", "text": "cos", "parent": 492, "children": [], "start_point": {"row": 64, "column": 18}, "end_point": {"row": 64, "column": 21}}, {"id": 494, "type": "argument_list", "text": "(lat)", "parent": 492, "children": [495], "start_point": {"row": 64, "column": 21}, "end_point": {"row": 64, "column": 26}}, {"id": 495, "type": "identifier", "text": "lat", "parent": 494, "children": [], "start_point": {"row": 64, "column": 22}, "end_point": {"row": 64, "column": 25}}, {"id": 496, "type": "declaration", "text": "Scalar clon = cos(lon);", "parent": 467, "children": [497, 498], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 27}}, {"id": 497, "type": "type_identifier", "text": "Scalar", "parent": 496, "children": [], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 10}}, {"id": 498, "type": "init_declarator", "text": "clon = cos(lon)", "parent": 496, "children": [499, 500, 501], "start_point": {"row": 65, "column": 11}, "end_point": {"row": 65, "column": 26}}, {"id": 499, "type": "identifier", "text": "clon", "parent": 498, "children": [], "start_point": {"row": 65, "column": 11}, "end_point": {"row": 65, "column": 15}}, {"id": 500, "type": "=", "text": "=", "parent": 498, "children": [], "start_point": {"row": 65, "column": 16}, "end_point": {"row": 65, "column": 17}}, {"id": 501, "type": "call_expression", "text": "cos(lon)", "parent": 498, "children": [502, 503], "start_point": {"row": 65, "column": 18}, "end_point": {"row": 65, "column": 26}}, {"id": 502, "type": "identifier", "text": "cos", "parent": 501, "children": [], "start_point": {"row": 65, "column": 18}, "end_point": {"row": 65, "column": 21}}, {"id": 503, "type": "argument_list", "text": "(lon)", "parent": 501, "children": [504], "start_point": {"row": 65, "column": 21}, "end_point": {"row": 65, "column": 26}}, {"id": 504, "type": "identifier", "text": "lon", "parent": 503, "children": [], "start_point": {"row": 65, "column": 22}, "end_point": {"row": 65, "column": 25}}, {"id": 505, "type": "declaration", "text": "Scalar slat = sin(lat);", "parent": 467, "children": [506, 507], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 27}}, {"id": 506, "type": "type_identifier", "text": "Scalar", "parent": 505, "children": [], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 10}}, {"id": 507, "type": "init_declarator", "text": "slat = sin(lat)", "parent": 505, "children": [508, 509, 510], "start_point": {"row": 66, "column": 11}, "end_point": {"row": 66, "column": 26}}, {"id": 508, "type": "identifier", "text": "slat", "parent": 507, "children": [], "start_point": {"row": 66, "column": 11}, "end_point": {"row": 66, "column": 15}}, {"id": 509, "type": "=", "text": "=", "parent": 507, "children": [], "start_point": {"row": 66, "column": 16}, "end_point": {"row": 66, "column": 17}}, {"id": 510, "type": "call_expression", "text": "sin(lat)", "parent": 507, "children": [511, 512], "start_point": {"row": 66, "column": 18}, "end_point": {"row": 66, "column": 26}}, {"id": 511, "type": "identifier", "text": "sin", "parent": 510, "children": [], "start_point": {"row": 66, "column": 18}, "end_point": {"row": 66, "column": 21}}, {"id": 512, "type": "argument_list", "text": "(lat)", "parent": 510, "children": [513], "start_point": {"row": 66, "column": 21}, "end_point": {"row": 66, "column": 26}}, {"id": 513, "type": "identifier", "text": "lat", "parent": 512, "children": [], "start_point": {"row": 66, "column": 22}, "end_point": {"row": 66, "column": 25}}, {"id": 514, "type": "declaration", "text": "Scalar slon = sin(lon);", "parent": 467, "children": [515, 516], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 27}}, {"id": 515, "type": "type_identifier", "text": "Scalar", "parent": 514, "children": [], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 10}}, {"id": 516, "type": "init_declarator", "text": "slon = sin(lon)", "parent": 514, "children": [517, 518, 519], "start_point": {"row": 67, "column": 11}, "end_point": {"row": 67, "column": 26}}, {"id": 517, "type": "identifier", "text": "slon", "parent": 516, "children": [], "start_point": {"row": 67, "column": 11}, "end_point": {"row": 67, "column": 15}}, {"id": 518, "type": "=", "text": "=", "parent": 516, "children": [], "start_point": {"row": 67, "column": 16}, "end_point": {"row": 67, "column": 17}}, {"id": 519, "type": "call_expression", "text": "sin(lon)", "parent": 516, "children": [520, 521], "start_point": {"row": 67, "column": 18}, "end_point": {"row": 67, "column": 26}}, {"id": 520, "type": "identifier", "text": "sin", "parent": 519, "children": [], "start_point": {"row": 67, "column": 18}, "end_point": {"row": 67, "column": 21}}, {"id": 521, "type": "argument_list", "text": "(lon)", "parent": 519, "children": [522], "start_point": {"row": 67, "column": 21}, "end_point": {"row": 67, "column": 26}}, {"id": 522, "type": "identifier", "text": "lon", "parent": 521, "children": [], "start_point": {"row": 67, "column": 22}, "end_point": {"row": 67, "column": 25}}, {"id": 523, "type": "declaration", "text": "Scalar costheta = 0.5 * (clon + clat + clon * clat - 1);", "parent": 467, "children": [524, 525], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 60}}, {"id": 524, "type": "type_identifier", "text": "Scalar", "parent": 523, "children": [], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 10}}, {"id": 525, "type": "init_declarator", "text": "costheta = 0.5 * (clon + clat + clon * clat - 1)", "parent": 523, "children": [526, 527, 528], "start_point": {"row": 68, "column": 11}, "end_point": {"row": 68, "column": 59}}, {"id": 526, "type": "identifier", "text": "costheta", "parent": 525, "children": [], "start_point": {"row": 68, "column": 11}, "end_point": {"row": 68, "column": 19}}, {"id": 527, "type": "=", "text": "=", "parent": 525, "children": [], "start_point": {"row": 68, "column": 20}, "end_point": {"row": 68, "column": 21}}, {"id": 528, "type": "binary_expression", "text": "0.5 * (clon + clat + clon * clat - 1)", "parent": 525, "children": [529, 530, 531], "start_point": {"row": 68, "column": 22}, "end_point": {"row": 68, "column": 59}}, {"id": 529, "type": "number_literal", "text": "0.5", "parent": 528, "children": [], "start_point": {"row": 68, "column": 22}, "end_point": {"row": 68, "column": 25}}, {"id": 530, "type": "*", "text": "*", "parent": 528, "children": [], "start_point": {"row": 68, "column": 26}, "end_point": {"row": 68, "column": 27}}, {"id": 531, "type": "parenthesized_expression", "text": "(clon + clat + clon * clat - 1)", "parent": 528, "children": [532], "start_point": {"row": 68, "column": 28}, "end_point": {"row": 68, "column": 59}}, {"id": 532, "type": "binary_expression", "text": "clon + clat + clon * clat - 1", "parent": 531, "children": [533, 543, 544], "start_point": {"row": 68, "column": 29}, "end_point": {"row": 68, "column": 58}}, {"id": 533, "type": "binary_expression", "text": "clon + clat + clon * clat", "parent": 532, "children": [534, 538, 539], "start_point": {"row": 68, "column": 29}, "end_point": {"row": 68, "column": 54}}, {"id": 534, "type": "binary_expression", "text": "clon + clat", "parent": 533, "children": [535, 536, 537], "start_point": {"row": 68, "column": 29}, "end_point": {"row": 68, "column": 40}}, {"id": 535, "type": "identifier", "text": "clon", "parent": 534, "children": [], "start_point": {"row": 68, "column": 29}, "end_point": {"row": 68, "column": 33}}, {"id": 536, "type": "+", "text": "+", "parent": 534, "children": [], "start_point": {"row": 68, "column": 34}, "end_point": {"row": 68, "column": 35}}, {"id": 537, "type": "identifier", "text": "clat", "parent": 534, "children": [], "start_point": {"row": 68, "column": 36}, "end_point": {"row": 68, "column": 40}}, {"id": 538, "type": "+", "text": "+", "parent": 533, "children": [], "start_point": {"row": 68, "column": 41}, "end_point": {"row": 68, "column": 42}}, {"id": 539, "type": "binary_expression", "text": "clon * clat", "parent": 533, "children": [540, 541, 542], "start_point": {"row": 68, "column": 43}, "end_point": {"row": 68, "column": 54}}, {"id": 540, "type": "identifier", "text": "clon", "parent": 539, "children": [], "start_point": {"row": 68, "column": 43}, "end_point": {"row": 68, "column": 47}}, {"id": 541, "type": "*", "text": "*", "parent": 539, "children": [], "start_point": {"row": 68, "column": 48}, "end_point": {"row": 68, "column": 49}}, {"id": 542, "type": "identifier", "text": "clat", "parent": 539, "children": [], "start_point": {"row": 68, "column": 50}, "end_point": {"row": 68, "column": 54}}, {"id": 543, "type": "-", "text": "-", "parent": 532, "children": [], "start_point": {"row": 68, "column": 55}, "end_point": {"row": 68, "column": 56}}, {"id": 544, "type": "number_literal", "text": "1", "parent": 532, "children": [], "start_point": {"row": 68, "column": 57}, "end_point": {"row": 68, "column": 58}}, {"id": 545, "type": "binary_expression", "text": "UnitVector<Scalar> u", "parent": 467, "children": [546, 550, 551], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 24}}, {"id": 546, "type": "binary_expression", "text": "UnitVector<Scalar", "parent": 545, "children": [547, 548, 549], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 21}}, {"id": 547, "type": "identifier", "text": "UnitVector", "parent": 546, "children": [], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 14}}, {"id": 548, "type": "<", "text": "<", "parent": 546, "children": [], "start_point": {"row": 69, "column": 14}, "end_point": {"row": 69, "column": 15}}, {"id": 549, "type": "identifier", "text": "Scalar", "parent": 546, "children": [], "start_point": {"row": 69, "column": 15}, "end_point": {"row": 69, "column": 21}}, {"id": 550, "type": ">", "text": ">", "parent": 545, "children": [], "start_point": {"row": 69, "column": 21}, "end_point": {"row": 69, "column": 22}}, {"id": 551, "type": "identifier", "text": "u", "parent": 545, "children": [], "start_point": {"row": 69, "column": 23}, "end_point": {"row": 69, "column": 24}}, {"id": 552, "type": "comma_expression", "text": "u << -slat * (1 + clon), slon * (1 + clat), slon * slat", "parent": 467, "children": [553, 566], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 59}}, {"id": 553, "type": "binary_expression", "text": "u << -slat * (1 + clon)", "parent": 552, "children": [554, 555, 556], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 27}}, {"id": 554, "type": "identifier", "text": "u", "parent": 553, "children": [], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 5}}, {"id": 555, "type": "<<", "text": "<<", "parent": 553, "children": [], "start_point": {"row": 70, "column": 6}, "end_point": {"row": 70, "column": 8}}, {"id": 556, "type": "binary_expression", "text": "-slat * (1 + clon)", "parent": 553, "children": [557, 560, 561], "start_point": {"row": 70, "column": 9}, "end_point": {"row": 70, "column": 27}}, {"id": 557, "type": "unary_expression", "text": "-slat", "parent": 556, "children": [558, 559], "start_point": {"row": 70, "column": 9}, "end_point": {"row": 70, "column": 14}}, {"id": 558, "type": "-", "text": "-", "parent": 557, "children": [], "start_point": {"row": 70, "column": 9}, "end_point": {"row": 70, "column": 10}}, {"id": 559, "type": "identifier", "text": "slat", "parent": 557, "children": [], "start_point": {"row": 70, "column": 10}, "end_point": {"row": 70, "column": 14}}, {"id": 560, "type": "*", "text": "*", "parent": 556, "children": [], "start_point": {"row": 70, "column": 15}, "end_point": {"row": 70, "column": 16}}, {"id": 561, "type": "parenthesized_expression", "text": "(1 + clon)", "parent": 556, "children": [562], "start_point": {"row": 70, "column": 17}, "end_point": {"row": 70, "column": 27}}, {"id": 562, "type": "binary_expression", "text": "1 + clon", "parent": 561, "children": [563, 564, 565], "start_point": {"row": 70, "column": 18}, "end_point": {"row": 70, "column": 26}}, {"id": 563, "type": "number_literal", "text": "1", "parent": 562, "children": [], "start_point": {"row": 70, "column": 18}, "end_point": {"row": 70, "column": 19}}, {"id": 564, "type": "+", "text": "+", "parent": 562, "children": [], "start_point": {"row": 70, "column": 20}, "end_point": {"row": 70, "column": 21}}, {"id": 565, "type": "identifier", "text": "clon", "parent": 562, "children": [], "start_point": {"row": 70, "column": 22}, "end_point": {"row": 70, "column": 26}}, {"id": 566, "type": "comma_expression", "text": "slon * (1 + clat), slon * slat", "parent": 552, "children": [567, 575], "start_point": {"row": 70, "column": 29}, "end_point": {"row": 70, "column": 59}}, {"id": 567, "type": "binary_expression", "text": "slon * (1 + clat)", "parent": 566, "children": [568, 569, 570], "start_point": {"row": 70, "column": 29}, "end_point": {"row": 70, "column": 46}}, {"id": 568, "type": "identifier", "text": "slon", "parent": 567, "children": [], "start_point": {"row": 70, "column": 29}, "end_point": {"row": 70, "column": 33}}, {"id": 569, "type": "*", "text": "*", "parent": 567, "children": [], "start_point": {"row": 70, "column": 34}, "end_point": {"row": 70, "column": 35}}, {"id": 570, "type": "parenthesized_expression", "text": "(1 + clat)", "parent": 567, "children": [571], "start_point": {"row": 70, "column": 36}, "end_point": {"row": 70, "column": 46}}, {"id": 571, "type": "binary_expression", "text": "1 + clat", "parent": 570, "children": [572, 573, 574], "start_point": {"row": 70, "column": 37}, "end_point": {"row": 70, "column": 45}}, {"id": 572, "type": "number_literal", "text": "1", "parent": 571, "children": [], "start_point": {"row": 70, "column": 37}, "end_point": {"row": 70, "column": 38}}, {"id": 573, "type": "+", "text": "+", "parent": 571, "children": [], "start_point": {"row": 70, "column": 39}, "end_point": {"row": 70, "column": 40}}, {"id": 574, "type": "identifier", "text": "clat", "parent": 571, "children": [], "start_point": {"row": 70, "column": 41}, "end_point": {"row": 70, "column": 45}}, {"id": 575, "type": "binary_expression", "text": "slon * slat", "parent": 566, "children": [576, 577, 578], "start_point": {"row": 70, "column": 48}, "end_point": {"row": 70, "column": 59}}, {"id": 576, "type": "identifier", "text": "slon", "parent": 575, "children": [], "start_point": {"row": 70, "column": 48}, "end_point": {"row": 70, "column": 52}}, {"id": 577, "type": "*", "text": "*", "parent": 575, "children": [], "start_point": {"row": 70, "column": 53}, "end_point": {"row": 70, "column": 54}}, {"id": 578, "type": "identifier", "text": "slat", "parent": 575, "children": [], "start_point": {"row": 70, "column": 55}, "end_point": {"row": 70, "column": 59}}, {"id": 579, "type": "declaration", "text": "Scalar normu = u.norm();", "parent": 467, "children": [580, 581], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 28}}, {"id": 580, "type": "type_identifier", "text": "Scalar", "parent": 579, "children": [], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 10}}, {"id": 581, "type": "init_declarator", "text": "normu = u.norm()", "parent": 579, "children": [582, 583, 584], "start_point": {"row": 71, "column": 11}, "end_point": {"row": 71, "column": 27}}, {"id": 582, "type": "identifier", "text": "normu", "parent": 581, "children": [], "start_point": {"row": 71, "column": 11}, "end_point": {"row": 71, "column": 16}}, {"id": 583, "type": "=", "text": "=", "parent": 581, "children": [], "start_point": {"row": 71, "column": 17}, "end_point": {"row": 71, "column": 18}}, {"id": 584, "type": "call_expression", "text": "u.norm()", "parent": 581, "children": [585, 588], "start_point": {"row": 71, "column": 19}, "end_point": {"row": 71, "column": 27}}, {"id": 585, "type": "field_expression", "text": "u.norm", "parent": 584, "children": [586, 587], "start_point": {"row": 71, "column": 19}, "end_point": {"row": 71, "column": 25}}, {"id": 586, "type": "identifier", "text": "u", "parent": 585, "children": [], "start_point": {"row": 71, "column": 19}, "end_point": {"row": 71, "column": 20}}, {"id": 587, "type": "field_identifier", "text": "norm", "parent": 585, "children": [], "start_point": {"row": 71, "column": 21}, "end_point": {"row": 71, "column": 25}}, {"id": 588, "type": "argument_list", "text": "()", "parent": 584, "children": [], "start_point": {"row": 71, "column": 25}, "end_point": {"row": 71, "column": 27}}, {"id": 589, "type": "assignment_expression", "text": "u /= normu", "parent": 467, "children": [590, 591, 592], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 14}}, {"id": 590, "type": "identifier", "text": "u", "parent": 589, "children": [], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 5}}, {"id": 591, "type": "/=", "text": "/=", "parent": 589, "children": [], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 8}}, {"id": 592, "type": "identifier", "text": "normu", "parent": 589, "children": [], "start_point": {"row": 72, "column": 9}, "end_point": {"row": 72, "column": 14}}, {"id": 593, "type": "declaration", "text": "Scalar sintheta = 0.5 * normu;", "parent": 467, "children": [594, 595], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 34}}, {"id": 594, "type": "type_identifier", "text": "Scalar", "parent": 593, "children": [], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 10}}, {"id": 595, "type": "init_declarator", "text": "sintheta = 0.5 * normu", "parent": 593, "children": [596, 597, 598], "start_point": {"row": 73, "column": 11}, "end_point": {"row": 73, "column": 33}}, {"id": 596, "type": "identifier", "text": "sintheta", "parent": 595, "children": [], "start_point": {"row": 73, "column": 11}, "end_point": {"row": 73, "column": 19}}, {"id": 597, "type": "=", "text": "=", "parent": 595, "children": [], "start_point": {"row": 73, "column": 20}, "end_point": {"row": 73, "column": 21}}, {"id": 598, "type": "binary_expression", "text": "0.5 * normu", "parent": 595, "children": [599, 600, 601], "start_point": {"row": 73, "column": 22}, "end_point": {"row": 73, "column": 33}}, {"id": 599, "type": "number_literal", "text": "0.5", "parent": 598, "children": [], "start_point": {"row": 73, "column": 22}, "end_point": {"row": 73, "column": 25}}, {"id": 600, "type": "*", "text": "*", "parent": 598, "children": [], "start_point": {"row": 73, "column": 26}, "end_point": {"row": 73, "column": 27}}, {"id": 601, "type": "identifier", "text": "normu", "parent": 598, "children": [], "start_point": {"row": 73, "column": 28}, "end_point": {"row": 73, "column": 33}}, {"id": 602, "type": "declaration", "text": "Scalar theta = atan2(sintheta, costheta);", "parent": 467, "children": [603, 604], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 45}}, {"id": 603, "type": "type_identifier", "text": "Scalar", "parent": 602, "children": [], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 10}}, {"id": 604, "type": "init_declarator", "text": "theta = atan2(sintheta, costheta)", "parent": 602, "children": [605, 606, 607], "start_point": {"row": 74, "column": 11}, "end_point": {"row": 74, "column": 44}}, {"id": 605, "type": "identifier", "text": "theta", "parent": 604, "children": [], "start_point": {"row": 74, "column": 11}, "end_point": {"row": 74, "column": 16}}, {"id": 606, "type": "=", "text": "=", "parent": 604, "children": [], "start_point": {"row": 74, "column": 17}, "end_point": {"row": 74, "column": 18}}, {"id": 607, "type": "call_expression", "text": "atan2(sintheta, costheta)", "parent": 604, "children": [608, 609], "start_point": {"row": 74, "column": 19}, "end_point": {"row": 74, "column": 44}}, {"id": 608, "type": "identifier", "text": "atan2", "parent": 607, "children": [], "start_point": {"row": 74, "column": 19}, "end_point": {"row": 74, "column": 24}}, {"id": 609, "type": "argument_list", "text": "(sintheta, costheta)", "parent": 607, "children": [610, 611], "start_point": {"row": 74, "column": 24}, "end_point": {"row": 74, "column": 44}}, {"id": 610, "type": "identifier", "text": "sintheta", "parent": 609, "children": [], "start_point": {"row": 74, "column": 25}, "end_point": {"row": 74, "column": 33}}, {"id": 611, "type": "identifier", "text": "costheta", "parent": 609, "children": [], "start_point": {"row": 74, "column": 35}, "end_point": {"row": 74, "column": 43}}, {"id": 612, "type": "call_expression", "text": "W.dotR(y.transpose(), u(0), u(1), u(2), -theta)", "parent": 467, "children": [613, 616], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 51}}, {"id": 613, "type": "field_expression", "text": "W.dotR", "parent": 612, "children": [614, 615], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 10}}, {"id": 614, "type": "identifier", "text": "W", "parent": 613, "children": [], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 5}}, {"id": 615, "type": "field_identifier", "text": "dotR", "parent": 613, "children": [], "start_point": {"row": 75, "column": 6}, "end_point": {"row": 75, "column": 10}}, {"id": 616, "type": "argument_list", "text": "(y.transpose(), u(0), u(1), u(2), -theta)", "parent": 612, "children": [617, 622, 626, 630, 634], "start_point": {"row": 75, "column": 10}, "end_point": {"row": 75, "column": 51}}, {"id": 617, "type": "call_expression", "text": "y.transpose()", "parent": 616, "children": [618, 621], "start_point": {"row": 75, "column": 11}, "end_point": {"row": 75, "column": 24}}, {"id": 618, "type": "field_expression", "text": "y.transpose", "parent": 617, "children": [619, 620], "start_point": {"row": 75, "column": 11}, "end_point": {"row": 75, "column": 22}}, {"id": 619, "type": "identifier", "text": "y", "parent": 618, "children": [], "start_point": {"row": 75, "column": 11}, "end_point": {"row": 75, "column": 12}}, {"id": 620, "type": "field_identifier", "text": "transpose", "parent": 618, "children": [], "start_point": {"row": 75, "column": 13}, "end_point": {"row": 75, "column": 22}}, {"id": 621, "type": "argument_list", "text": "()", "parent": 617, "children": [], "start_point": {"row": 75, "column": 22}, "end_point": {"row": 75, "column": 24}}, {"id": 622, "type": "call_expression", "text": "u(0)", "parent": 616, "children": [623, 624], "start_point": {"row": 75, "column": 26}, "end_point": {"row": 75, "column": 30}}, {"id": 623, "type": "identifier", "text": "u", "parent": 622, "children": [], "start_point": {"row": 75, "column": 26}, "end_point": {"row": 75, "column": 27}}, {"id": 624, "type": "argument_list", "text": "(0)", "parent": 622, "children": [625], "start_point": {"row": 75, "column": 27}, "end_point": {"row": 75, "column": 30}}, {"id": 625, "type": "number_literal", "text": "0", "parent": 624, "children": [], "start_point": {"row": 75, "column": 28}, "end_point": {"row": 75, "column": 29}}, {"id": 626, "type": "call_expression", "text": "u(1)", "parent": 616, "children": [627, 628], "start_point": {"row": 75, "column": 32}, "end_point": {"row": 75, "column": 36}}, {"id": 627, "type": "identifier", "text": "u", "parent": 626, "children": [], "start_point": {"row": 75, "column": 32}, "end_point": {"row": 75, "column": 33}}, {"id": 628, "type": "argument_list", "text": "(1)", "parent": 626, "children": [629], "start_point": {"row": 75, "column": 33}, "end_point": {"row": 75, "column": 36}}, {"id": 629, "type": "number_literal", "text": "1", "parent": 628, "children": [], "start_point": {"row": 75, "column": 34}, "end_point": {"row": 75, "column": 35}}, {"id": 630, "type": "call_expression", "text": "u(2)", "parent": 616, "children": [631, 632], "start_point": {"row": 75, "column": 38}, "end_point": {"row": 75, "column": 42}}, {"id": 631, "type": "identifier", "text": "u", "parent": 630, "children": [], "start_point": {"row": 75, "column": 38}, "end_point": {"row": 75, "column": 39}}, {"id": 632, "type": "argument_list", "text": "(2)", "parent": 630, "children": [633], "start_point": {"row": 75, "column": 39}, "end_point": {"row": 75, "column": 42}}, {"id": 633, "type": "number_literal", "text": "2", "parent": 632, "children": [], "start_point": {"row": 75, "column": 40}, "end_point": {"row": 75, "column": 41}}, {"id": 634, "type": "unary_expression", "text": "-theta", "parent": 616, "children": [635, 636], "start_point": {"row": 75, "column": 44}, "end_point": {"row": 75, "column": 50}}, {"id": 635, "type": "-", "text": "-", "parent": 634, "children": [], "start_point": {"row": 75, "column": 44}, "end_point": {"row": 75, "column": 45}}, {"id": 636, "type": "identifier", "text": "theta", "parent": 634, "children": [], "start_point": {"row": 75, "column": 45}, "end_point": {"row": 75, "column": 50}}, {"id": 637, "type": "assignment_expression", "text": "y = W.dotR_result.transpose()", "parent": 467, "children": [638, 639, 640], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 33}}, {"id": 638, "type": "identifier", "text": "y", "parent": 637, "children": [], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 5}}, {"id": 639, "type": "=", "text": "=", "parent": 637, "children": [], "start_point": {"row": 76, "column": 6}, "end_point": {"row": 76, "column": 7}}, {"id": 640, "type": "call_expression", "text": "W.dotR_result.transpose()", "parent": 637, "children": [641, 646], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 33}}, {"id": 641, "type": "field_expression", "text": "W.dotR_result.transpose", "parent": 640, "children": [642, 645], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 31}}, {"id": 642, "type": "field_expression", "text": "W.dotR_result", "parent": 641, "children": [643, 644], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 21}}, {"id": 643, "type": "identifier", "text": "W", "parent": 642, "children": [], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 9}}, {"id": 644, "type": "field_identifier", "text": "dotR_result", "parent": 642, "children": [], "start_point": {"row": 76, "column": 10}, "end_point": {"row": 76, "column": 21}}, {"id": 645, "type": "field_identifier", "text": "transpose", "parent": 641, "children": [], "start_point": {"row": 76, "column": 22}, "end_point": {"row": 76, "column": 31}}, {"id": 646, "type": "argument_list", "text": "()", "parent": 640, "children": [], "start_point": {"row": 76, "column": 31}, "end_point": {"row": 76, "column": 33}}, {"id": 647, "type": "return_statement", "text": "return y;", "parent": 15, "children": [648], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 11}}, {"id": 648, "type": "identifier", "text": "y", "parent": 647, "children": [], "start_point": {"row": 79, "column": 9}, "end_point": {"row": 79, "column": 10}}, {"id": 649, "type": "binary_expression", "text": "template <class Scalar>\ninline", "parent": 15, "children": [650, 654, 655], "start_point": {"row": 90, "column": 0}, "end_point": {"row": 91, "column": 6}}, {"id": 650, "type": "binary_expression", "text": "template <class Scalar", "parent": 649, "children": [651, 652, 653], "start_point": {"row": 90, "column": 0}, "end_point": {"row": 90, "column": 22}}, {"id": 651, "type": "identifier", "text": "template", "parent": 650, "children": [], "start_point": {"row": 90, "column": 0}, "end_point": {"row": 90, "column": 8}}, {"id": 652, "type": "<", "text": "<", "parent": 650, "children": [], "start_point": {"row": 90, "column": 9}, "end_point": {"row": 90, "column": 10}}, {"id": 653, "type": "identifier", "text": "Scalar", "parent": 650, "children": [], "start_point": {"row": 90, "column": 16}, "end_point": {"row": 90, "column": 22}}, {"id": 654, "type": ">", "text": ">", "parent": 649, "children": [], "start_point": {"row": 90, "column": 22}, "end_point": {"row": 90, "column": 23}}, {"id": 655, "type": "identifier", "text": "inline", "parent": 649, "children": [], "start_point": {"row": 91, "column": 0}, "end_point": {"row": 91, "column": 6}}, {"id": 656, "type": "function_definition", "text": "void spotYlm(const RowVector<Scalar> &amp, const Scalar &sigma_,\n const Scalar &lat, const Scalar &lon,\n const Matrix<double> &by, int l, wigner::Wigner<Scalar> &W,\n RowVector<Scalar> &bamp, Scalar &bsigma, Scalar &blat,\n Scalar &blon) {\n\n // Forward diff for sigma\n // TODO: Compute the backprop expression\n using ADType = ADScalar<Scalar, 1>;\n ADType sigma = sigma_;\n sigma.derivatives() = Vector<Scalar>::Unit(1, 0);\n\n // Compute the integrals recursively\n Vector<ADType> IP(l + 1);\n Vector<ADType> ID(l + 1);\n Vector<Scalar> y((l + 1) * (l + 1));\n y.setZero();\n ADType yn;\n Vector<Scalar> dydsigma((l + 1) * (l + 1));\n dydsigma.setZero();\n\n // Constants\n ADType a = 1.0 / (2 * sigma * sigma);\n ADType sqrta = sqrt(a);\n ADType erfa = erf(2 * sqrta.value());\n erfa.derivatives()(0) =\n -sqrt(32 / pi<Scalar>()) * exp(-4 * a.value()) * a.value();\n ADType term = exp(-4 * a);\n\n // Seeding values\n IP(0) = root_pi<Scalar>() / (2 * sqrta) * erfa;\n IP(1) = (root_pi<Scalar>() * sqrta * erfa + term - 1) / (2 * a);\n ID(0) = 0;\n ID(1) = IP(0);\n\n // Recurse\n int sgn = -1;\n for (int n = 2; n < l + 1; ++n) {\n IP(n) = (2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1) - (n - 1.0) / n * IP(n - 2);\n ID(n) = (2.0 * n - 1.0) * IP(n - 1) + ID(n - 2);\n sgn *= -1;\n }\n\n // Compute the coefficients of the expansion (w/o the amplitude)\n for (int n = 0; n < l + 1; ++n) {\n yn = sqrt(2 * n + 1) * (IP(n) / IP(0));\n y(n * n + n) = yn.value();\n dydsigma(n * n + n) = yn.derivatives()(0);\n }\n\n // Rotate the spot to the correct lat/lon\n Scalar tol = 10 * mach_eps<Scalar>();\n UnitVector<Scalar> u;\n Scalar normu;\n Scalar theta;\n Scalar clat = cos(lat);\n Scalar clon = cos(lon);\n Scalar slat = sin(lat);\n Scalar slon = sin(lon);\n\n // Axis & angle of rotation\n if ((abs(lat) > tol) || (abs(lon) > tol)) {\n Scalar costheta = 0.5 * (clon + clat + clon * clat - 1);\n u << -slat * (1 + clon), slon * (1 + clat), slon * slat;\n normu = u.norm();\n u /= normu;\n Scalar sintheta = 0.5 * normu;\n theta = atan2(sintheta, costheta);\n } else {\n theta = 0.0;\n u << 0, 1, 0;\n normu = 1;\n }\n\n // Gradient w/ respect to lat, lon, and sigma\n Matrix<Scalar> y_amp = y * amp;\n W.dotR(y_amp.transpose(), u(0), u(1), u(2), -theta, by.transpose());\n\n // lat\n Scalar termz = (clat * (1 + clon) * (1 + clon) * slat - slat * slon * slon) /\n (normu * normu * normu);\n Scalar dxdl = -clat * (1 + clon) / normu + (1 + clon) * slat * termz;\n Scalar dydl = -slat * slon / normu - (1 + clat) * slon * termz;\n Scalar dzdl = clat * slon / normu - slat * slon * termz;\n Scalar dthetadl = -u(0);\n blat = (dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz -\n dthetadl * W.dotR_btheta);\n\n // lon\n termz = (clon * (1 + clat) * (1 + clat) * slon - slon * slat * slat) /\n (normu * normu * normu);\n dxdl = slat * slon / normu + (1 + clon) * slat * termz;\n dydl = (1 + clat) * clon / normu - (1 + clat) * slon * termz;\n dzdl = clon * slat / normu - slat * slon * termz;\n dthetadl = u(1);\n blon = (dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz -\n dthetadl * W.dotR_btheta);\n\n // sigma\n W.dotR(dydsigma.transpose(), u(0), u(1), u(2), -theta);\n dydsigma = W.dotR_result.transpose();\n bsigma = (by.transpose() * dydsigma).dot(amp);\n\n // Compute the actual result (w/o amplitude)\n W.dotR(y.transpose(), u(0), u(1), u(2), -theta);\n y = W.dotR_result.transpose();\n\n // Gradient of amplitude\n bamp = y.transpose() * by;\n}", "parent": 15, "children": [657, 658], "start_point": {"row": 91, "column": 7}, "end_point": {"row": 201, "column": 1}}, {"id": 657, "type": "primitive_type", "text": "void", "parent": 656, "children": [], "start_point": {"row": 91, "column": 7}, "end_point": {"row": 91, "column": 11}}, {"id": 658, "type": "function_declarator", "text": "spotYlm(const RowVector<Scalar> &amp, const Scalar &sigma_,\n const Scalar &lat, const Scalar &lon,\n const Matrix<double> &by, int l, wigner::Wigner<Scalar> &W,\n RowVector<Scalar> &bamp, Scalar &bsigma, Scalar &blat,\n Scalar &blon)", "parent": 656, "children": [659, 660], "start_point": {"row": 91, "column": 12}, "end_point": {"row": 95, "column": 33}}, {"id": 659, "type": "identifier", "text": "spotYlm", "parent": 658, "children": [], "start_point": {"row": 91, "column": 12}, "end_point": {"row": 91, "column": 19}}, {"id": 660, "type": "parameter_list", "text": "(const RowVector<Scalar> &amp, const Scalar &sigma_,\n const Scalar &lat, const Scalar &lon,\n const Matrix<double> &by, int l, wigner::Wigner<Scalar> &W,\n RowVector<Scalar> &bamp, Scalar &bsigma, Scalar &blat,\n Scalar &blon)", "parent": 658, "children": [661, 668, 671, 674, 677, 684, 687, 695, 702, 705, 708], "start_point": {"row": 91, "column": 19}, "end_point": {"row": 95, "column": 33}}, {"id": 661, "type": "parameter_declaration", "text": "const RowVector<Scalar> &amp", "parent": 660, "children": [662, 663, 667], "start_point": {"row": 91, "column": 20}, "end_point": {"row": 91, "column": 48}}, {"id": 662, "type": "type_identifier", "text": "RowVector", "parent": 661, "children": [], "start_point": {"row": 91, "column": 26}, "end_point": {"row": 91, "column": 35}}, {"id": 663, "type": "ERROR", "text": "<Scalar> &", "parent": 661, "children": [664, 665, 666], "start_point": {"row": 91, "column": 35}, "end_point": {"row": 91, "column": 45}}, {"id": 664, "type": "<", "text": "<", "parent": 663, "children": [], "start_point": {"row": 91, "column": 35}, "end_point": {"row": 91, "column": 36}}, {"id": 665, "type": "identifier", "text": "Scalar", "parent": 663, "children": [], "start_point": {"row": 91, "column": 36}, "end_point": {"row": 91, "column": 42}}, {"id": 666, "type": ">", "text": ">", "parent": 663, "children": [], "start_point": {"row": 91, "column": 42}, "end_point": {"row": 91, "column": 43}}, {"id": 667, "type": "identifier", "text": "amp", "parent": 661, "children": [], "start_point": {"row": 91, "column": 45}, "end_point": {"row": 91, "column": 48}}, {"id": 668, "type": "parameter_declaration", "text": "const Scalar &sigma_", "parent": 660, "children": [669, 670], "start_point": {"row": 91, "column": 50}, "end_point": {"row": 91, "column": 70}}, {"id": 669, "type": "type_identifier", "text": "Scalar", "parent": 668, "children": [], "start_point": {"row": 91, "column": 56}, "end_point": {"row": 91, "column": 62}}, {"id": 670, "type": "identifier", "text": "sigma_", "parent": 668, "children": [], "start_point": {"row": 91, "column": 64}, "end_point": {"row": 91, "column": 70}}, {"id": 671, "type": "parameter_declaration", "text": "const Scalar &lat", "parent": 660, "children": [672, 673], "start_point": {"row": 92, "column": 20}, "end_point": {"row": 92, "column": 37}}, {"id": 672, "type": "type_identifier", "text": "Scalar", "parent": 671, "children": [], "start_point": {"row": 92, "column": 26}, "end_point": {"row": 92, "column": 32}}, {"id": 673, "type": "identifier", "text": "lat", "parent": 671, "children": [], "start_point": {"row": 92, "column": 34}, "end_point": {"row": 92, "column": 37}}, {"id": 674, "type": "parameter_declaration", "text": "const Scalar &lon", "parent": 660, "children": [675, 676], "start_point": {"row": 92, "column": 39}, "end_point": {"row": 92, "column": 56}}, {"id": 675, "type": "type_identifier", "text": "Scalar", "parent": 674, "children": [], "start_point": {"row": 92, "column": 45}, "end_point": {"row": 92, "column": 51}}, {"id": 676, "type": "identifier", "text": "lon", "parent": 674, "children": [], "start_point": {"row": 92, "column": 53}, "end_point": {"row": 92, "column": 56}}, {"id": 677, "type": "parameter_declaration", "text": "const Matrix<double> &by", "parent": 660, "children": [678, 679, 683], "start_point": {"row": 93, "column": 20}, "end_point": {"row": 93, "column": 44}}, {"id": 678, "type": "type_identifier", "text": "Matrix", "parent": 677, "children": [], "start_point": {"row": 93, "column": 26}, "end_point": {"row": 93, "column": 32}}, {"id": 679, "type": "ERROR", "text": "<double> &", "parent": 677, "children": [680, 681, 682], "start_point": {"row": 93, "column": 32}, "end_point": {"row": 93, "column": 42}}, {"id": 680, "type": "<", "text": "<", "parent": 679, "children": [], "start_point": {"row": 93, "column": 32}, "end_point": {"row": 93, "column": 33}}, {"id": 681, "type": "primitive_type", "text": "double", "parent": 679, "children": [], "start_point": {"row": 93, "column": 33}, "end_point": {"row": 93, "column": 39}}, {"id": 682, "type": ">", "text": ">", "parent": 679, "children": [], "start_point": {"row": 93, "column": 39}, "end_point": {"row": 93, "column": 40}}, {"id": 683, "type": "identifier", "text": "by", "parent": 677, "children": [], "start_point": {"row": 93, "column": 42}, "end_point": {"row": 93, "column": 44}}, {"id": 684, "type": "parameter_declaration", "text": "int l", "parent": 660, "children": [685, 686], "start_point": {"row": 93, "column": 46}, "end_point": {"row": 93, "column": 51}}, {"id": 685, "type": "primitive_type", "text": "int", "parent": 684, "children": [], "start_point": {"row": 93, "column": 46}, "end_point": {"row": 93, "column": 49}}, {"id": 686, "type": "identifier", "text": "l", "parent": 684, "children": [], "start_point": {"row": 93, "column": 50}, "end_point": {"row": 93, "column": 51}}, {"id": 687, "type": "parameter_declaration", "text": "wigner::Wigner<Scalar> &W", "parent": 660, "children": [688, 689, 694], "start_point": {"row": 93, "column": 53}, "end_point": {"row": 93, "column": 78}}, {"id": 688, "type": "type_identifier", "text": "wigner", "parent": 687, "children": [], "start_point": {"row": 93, "column": 53}, "end_point": {"row": 93, "column": 59}}, {"id": 689, "type": "ERROR", "text": "::Wigner<Scalar> &", "parent": 687, "children": [690, 691, 692, 693], "start_point": {"row": 93, "column": 59}, "end_point": {"row": 93, "column": 77}}, {"id": 690, "type": "identifier", "text": "Wigner", "parent": 689, "children": [], "start_point": {"row": 93, "column": 61}, "end_point": {"row": 93, "column": 67}}, {"id": 691, "type": "<", "text": "<", "parent": 689, "children": [], "start_point": {"row": 93, "column": 67}, "end_point": {"row": 93, "column": 68}}, {"id": 692, "type": "identifier", "text": "Scalar", "parent": 689, "children": [], "start_point": {"row": 93, "column": 68}, "end_point": {"row": 93, "column": 74}}, {"id": 693, "type": ">", "text": ">", "parent": 689, "children": [], "start_point": {"row": 93, "column": 74}, "end_point": {"row": 93, "column": 75}}, {"id": 694, "type": "identifier", "text": "W", "parent": 687, "children": [], "start_point": {"row": 93, "column": 77}, "end_point": {"row": 93, "column": 78}}, {"id": 695, "type": "parameter_declaration", "text": "RowVector<Scalar> &bamp", "parent": 660, "children": [696, 697, 701], "start_point": {"row": 94, "column": 20}, "end_point": {"row": 94, "column": 43}}, {"id": 696, "type": "type_identifier", "text": "RowVector", "parent": 695, "children": [], "start_point": {"row": 94, "column": 20}, "end_point": {"row": 94, "column": 29}}, {"id": 697, "type": "ERROR", "text": "<Scalar> &", "parent": 695, "children": [698, 699, 700], "start_point": {"row": 94, "column": 29}, "end_point": {"row": 94, "column": 39}}, {"id": 698, "type": "<", "text": "<", "parent": 697, "children": [], "start_point": {"row": 94, "column": 29}, "end_point": {"row": 94, "column": 30}}, {"id": 699, "type": "identifier", "text": "Scalar", "parent": 697, "children": [], "start_point": {"row": 94, "column": 30}, "end_point": {"row": 94, "column": 36}}, {"id": 700, "type": ">", "text": ">", "parent": 697, "children": [], "start_point": {"row": 94, "column": 36}, "end_point": {"row": 94, "column": 37}}, {"id": 701, "type": "identifier", "text": "bamp", "parent": 695, "children": [], "start_point": {"row": 94, "column": 39}, "end_point": {"row": 94, "column": 43}}, {"id": 702, "type": "parameter_declaration", "text": "Scalar &bsigma", "parent": 660, "children": [703, 704], "start_point": {"row": 94, "column": 45}, "end_point": {"row": 94, "column": 59}}, {"id": 703, "type": "type_identifier", "text": "Scalar", "parent": 702, "children": [], "start_point": {"row": 94, "column": 45}, "end_point": {"row": 94, "column": 51}}, {"id": 704, "type": "identifier", "text": "bsigma", "parent": 702, "children": [], "start_point": {"row": 94, "column": 53}, "end_point": {"row": 94, "column": 59}}, {"id": 705, "type": "parameter_declaration", "text": "Scalar &blat", "parent": 660, "children": [706, 707], "start_point": {"row": 94, "column": 61}, "end_point": {"row": 94, "column": 73}}, {"id": 706, "type": "type_identifier", "text": "Scalar", "parent": 705, "children": [], "start_point": {"row": 94, "column": 61}, "end_point": {"row": 94, "column": 67}}, {"id": 707, "type": "identifier", "text": "blat", "parent": 705, "children": [], "start_point": {"row": 94, "column": 69}, "end_point": {"row": 94, "column": 73}}, {"id": 708, "type": "parameter_declaration", "text": "Scalar &blon", "parent": 660, "children": [709, 710], "start_point": {"row": 95, "column": 20}, "end_point": {"row": 95, "column": 32}}, {"id": 709, "type": "type_identifier", "text": "Scalar", "parent": 708, "children": [], "start_point": {"row": 95, "column": 20}, "end_point": {"row": 95, "column": 26}}, {"id": 710, "type": "identifier", "text": "blon", "parent": 708, "children": [], "start_point": {"row": 95, "column": 28}, "end_point": {"row": 95, "column": 32}}, {"id": 711, "type": "declaration", "text": "using ADType = ADScalar<Scalar, 1>;", "parent": 656, "children": [712, 713, 720], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 99, "column": 37}}, {"id": 712, "type": "type_identifier", "text": "using", "parent": 711, "children": [], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 99, "column": 7}}, {"id": 713, "type": "init_declarator", "text": "ADType = ADScalar<Scalar", "parent": 711, "children": [714, 715, 716], "start_point": {"row": 99, "column": 8}, "end_point": {"row": 99, "column": 32}}, {"id": 714, "type": "identifier", "text": "ADType", "parent": 713, "children": [], "start_point": {"row": 99, "column": 8}, "end_point": {"row": 99, "column": 14}}, {"id": 715, "type": "=", "text": "=", "parent": 713, "children": [], "start_point": {"row": 99, "column": 15}, "end_point": {"row": 99, "column": 16}}, {"id": 716, "type": "binary_expression", "text": "ADScalar<Scalar", "parent": 713, "children": [717, 718, 719], "start_point": {"row": 99, "column": 17}, "end_point": {"row": 99, "column": 32}}, {"id": 717, "type": "identifier", "text": "ADScalar", "parent": 716, "children": [], "start_point": {"row": 99, "column": 17}, "end_point": {"row": 99, "column": 25}}, {"id": 718, "type": "<", "text": "<", "parent": 716, "children": [], "start_point": {"row": 99, "column": 25}, "end_point": {"row": 99, "column": 26}}, {"id": 719, "type": "identifier", "text": "Scalar", "parent": 716, "children": [], "start_point": {"row": 99, "column": 26}, "end_point": {"row": 99, "column": 32}}, {"id": 720, "type": "ERROR", "text": ", 1>", "parent": 711, "children": [721, 722], "start_point": {"row": 99, "column": 32}, "end_point": {"row": 99, "column": 36}}, {"id": 721, "type": "number_literal", "text": "1", "parent": 720, "children": [], "start_point": {"row": 99, "column": 34}, "end_point": {"row": 99, "column": 35}}, {"id": 722, "type": ">", "text": ">", "parent": 720, "children": [], "start_point": {"row": 99, "column": 35}, "end_point": {"row": 99, "column": 36}}, {"id": 723, "type": "declaration", "text": "ADType sigma = sigma_;", "parent": 656, "children": [724, 725], "start_point": {"row": 100, "column": 2}, "end_point": {"row": 100, "column": 24}}, {"id": 724, "type": "type_identifier", "text": "ADType", "parent": 723, "children": [], "start_point": {"row": 100, "column": 2}, "end_point": {"row": 100, "column": 8}}, {"id": 725, "type": "init_declarator", "text": "sigma = sigma_", "parent": 723, "children": [726, 727, 728], "start_point": {"row": 100, "column": 9}, "end_point": {"row": 100, "column": 23}}, {"id": 726, "type": "identifier", "text": "sigma", "parent": 725, "children": [], "start_point": {"row": 100, "column": 9}, "end_point": {"row": 100, "column": 14}}, {"id": 727, "type": "=", "text": "=", "parent": 725, "children": [], "start_point": {"row": 100, "column": 15}, "end_point": {"row": 100, "column": 16}}, {"id": 728, "type": "identifier", "text": "sigma_", "parent": 725, "children": [], "start_point": {"row": 100, "column": 17}, "end_point": {"row": 100, "column": 23}}, {"id": 729, "type": "assignment_expression", "text": "sigma.derivatives() = Vector<Scalar>::Unit(1, 0)", "parent": 656, "children": [730, 735, 736], "start_point": {"row": 101, "column": 2}, "end_point": {"row": 101, "column": 50}}, {"id": 730, "type": "call_expression", "text": "sigma.derivatives()", "parent": 729, "children": [731, 734], "start_point": {"row": 101, "column": 2}, "end_point": {"row": 101, "column": 21}}, {"id": 731, "type": "field_expression", "text": "sigma.derivatives", "parent": 730, "children": [732, 733], "start_point": {"row": 101, "column": 2}, "end_point": {"row": 101, "column": 19}}, {"id": 732, "type": "identifier", "text": "sigma", "parent": 731, "children": [], "start_point": {"row": 101, "column": 2}, "end_point": {"row": 101, "column": 7}}, {"id": 733, "type": "field_identifier", "text": "derivatives", "parent": 731, "children": [], "start_point": {"row": 101, "column": 8}, "end_point": {"row": 101, "column": 19}}, {"id": 734, "type": "argument_list", "text": "()", "parent": 730, "children": [], "start_point": {"row": 101, "column": 19}, "end_point": {"row": 101, "column": 21}}, {"id": 735, "type": "=", "text": "=", "parent": 729, "children": [], "start_point": {"row": 101, "column": 22}, "end_point": {"row": 101, "column": 23}}, {"id": 736, "type": "binary_expression", "text": "Vector<Scalar>::Unit(1, 0)", "parent": 729, "children": [737, 741, 742], "start_point": {"row": 101, "column": 24}, "end_point": {"row": 101, "column": 50}}, {"id": 737, "type": "binary_expression", "text": "Vector<Scalar", "parent": 736, "children": [738, 739, 740], "start_point": {"row": 101, "column": 24}, "end_point": {"row": 101, "column": 37}}, {"id": 738, "type": "identifier", "text": "Vector", "parent": 737, "children": [], "start_point": {"row": 101, "column": 24}, "end_point": {"row": 101, "column": 30}}, {"id": 739, "type": "<", "text": "<", "parent": 737, "children": [], "start_point": {"row": 101, "column": 30}, "end_point": {"row": 101, "column": 31}}, {"id": 740, "type": "identifier", "text": "Scalar", "parent": 737, "children": [], "start_point": {"row": 101, "column": 31}, "end_point": {"row": 101, "column": 37}}, {"id": 741, "type": ">", "text": ">", "parent": 736, "children": [], "start_point": {"row": 101, "column": 37}, "end_point": {"row": 101, "column": 38}}, {"id": 742, "type": "call_expression", "text": "Unit(1, 0)", "parent": 736, "children": [743, 744], "start_point": {"row": 101, "column": 40}, "end_point": {"row": 101, "column": 50}}, {"id": 743, "type": "identifier", "text": "Unit", "parent": 742, "children": [], "start_point": {"row": 101, "column": 40}, "end_point": {"row": 101, "column": 44}}, {"id": 744, "type": "argument_list", "text": "(1, 0)", "parent": 742, "children": [745, 746], "start_point": {"row": 101, "column": 44}, "end_point": {"row": 101, "column": 50}}, {"id": 745, "type": "number_literal", "text": "1", "parent": 744, "children": [], "start_point": {"row": 101, "column": 45}, "end_point": {"row": 101, "column": 46}}, {"id": 746, "type": "number_literal", "text": "0", "parent": 744, "children": [], "start_point": {"row": 101, "column": 48}, "end_point": {"row": 101, "column": 49}}, {"id": 747, "type": "binary_expression", "text": "Vector<ADType> IP(l + 1)", "parent": 656, "children": [748, 752, 753], "start_point": {"row": 104, "column": 2}, "end_point": {"row": 104, "column": 26}}, {"id": 748, "type": "binary_expression", "text": "Vector<ADType", "parent": 747, "children": [749, 750, 751], "start_point": {"row": 104, "column": 2}, "end_point": {"row": 104, "column": 15}}, {"id": 749, "type": "identifier", "text": "Vector", "parent": 748, "children": [], "start_point": {"row": 104, "column": 2}, "end_point": {"row": 104, "column": 8}}, {"id": 750, "type": "<", "text": "<", "parent": 748, "children": [], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 9}}, {"id": 751, "type": "identifier", "text": "ADType", "parent": 748, "children": [], "start_point": {"row": 104, "column": 9}, "end_point": {"row": 104, "column": 15}}, {"id": 752, "type": ">", "text": ">", "parent": 747, "children": [], "start_point": {"row": 104, "column": 15}, "end_point": {"row": 104, "column": 16}}, {"id": 753, "type": "call_expression", "text": "IP(l + 1)", "parent": 747, "children": [754, 755], "start_point": {"row": 104, "column": 17}, "end_point": {"row": 104, "column": 26}}, {"id": 754, "type": "identifier", "text": "IP", "parent": 753, "children": [], "start_point": {"row": 104, "column": 17}, "end_point": {"row": 104, "column": 19}}, {"id": 755, "type": "argument_list", "text": "(l + 1)", "parent": 753, "children": [756], "start_point": {"row": 104, "column": 19}, "end_point": {"row": 104, "column": 26}}, {"id": 756, "type": "binary_expression", "text": "l + 1", "parent": 755, "children": [757, 758, 759], "start_point": {"row": 104, "column": 20}, "end_point": {"row": 104, "column": 25}}, {"id": 757, "type": "identifier", "text": "l", "parent": 756, "children": [], "start_point": {"row": 104, "column": 20}, "end_point": {"row": 104, "column": 21}}, {"id": 758, "type": "+", "text": "+", "parent": 756, "children": [], "start_point": {"row": 104, "column": 22}, "end_point": {"row": 104, "column": 23}}, {"id": 759, "type": "number_literal", "text": "1", "parent": 756, "children": [], "start_point": {"row": 104, "column": 24}, "end_point": {"row": 104, "column": 25}}, {"id": 760, "type": "binary_expression", "text": "Vector<ADType> ID(l + 1)", "parent": 656, "children": [761, 765, 766], "start_point": {"row": 105, "column": 2}, "end_point": {"row": 105, "column": 26}}, {"id": 761, "type": "binary_expression", "text": "Vector<ADType", "parent": 760, "children": [762, 763, 764], "start_point": {"row": 105, "column": 2}, "end_point": {"row": 105, "column": 15}}, {"id": 762, "type": "identifier", "text": "Vector", "parent": 761, "children": [], "start_point": {"row": 105, "column": 2}, "end_point": {"row": 105, "column": 8}}, {"id": 763, "type": "<", "text": "<", "parent": 761, "children": [], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 9}}, {"id": 764, "type": "identifier", "text": "ADType", "parent": 761, "children": [], "start_point": {"row": 105, "column": 9}, "end_point": {"row": 105, "column": 15}}, {"id": 765, "type": ">", "text": ">", "parent": 760, "children": [], "start_point": {"row": 105, "column": 15}, "end_point": {"row": 105, "column": 16}}, {"id": 766, "type": "call_expression", "text": "ID(l + 1)", "parent": 760, "children": [767, 768], "start_point": {"row": 105, "column": 17}, "end_point": {"row": 105, "column": 26}}, {"id": 767, "type": "identifier", "text": "ID", "parent": 766, "children": [], "start_point": {"row": 105, "column": 17}, "end_point": {"row": 105, "column": 19}}, {"id": 768, "type": "argument_list", "text": "(l + 1)", "parent": 766, "children": [769], "start_point": {"row": 105, "column": 19}, "end_point": {"row": 105, "column": 26}}, {"id": 769, "type": "binary_expression", "text": "l + 1", "parent": 768, "children": [770, 771, 772], "start_point": {"row": 105, "column": 20}, "end_point": {"row": 105, "column": 25}}, {"id": 770, "type": "identifier", "text": "l", "parent": 769, "children": [], "start_point": {"row": 105, "column": 20}, "end_point": {"row": 105, "column": 21}}, {"id": 771, "type": "+", "text": "+", "parent": 769, "children": [], "start_point": {"row": 105, "column": 22}, "end_point": {"row": 105, "column": 23}}, {"id": 772, "type": "number_literal", "text": "1", "parent": 769, "children": [], "start_point": {"row": 105, "column": 24}, "end_point": {"row": 105, "column": 25}}, {"id": 773, "type": "binary_expression", "text": "Vector<Scalar> y((l + 1) * (l + 1))", "parent": 656, "children": [774, 778, 779], "start_point": {"row": 106, "column": 2}, "end_point": {"row": 106, "column": 37}}, {"id": 774, "type": "binary_expression", "text": "Vector<Scalar", "parent": 773, "children": [775, 776, 777], "start_point": {"row": 106, "column": 2}, "end_point": {"row": 106, "column": 15}}, {"id": 775, "type": "identifier", "text": "Vector", "parent": 774, "children": [], "start_point": {"row": 106, "column": 2}, "end_point": {"row": 106, "column": 8}}, {"id": 776, "type": "<", "text": "<", "parent": 774, "children": [], "start_point": {"row": 106, "column": 8}, "end_point": {"row": 106, "column": 9}}, {"id": 777, "type": "identifier", "text": "Scalar", "parent": 774, "children": [], "start_point": {"row": 106, "column": 9}, "end_point": {"row": 106, "column": 15}}, {"id": 778, "type": ">", "text": ">", "parent": 773, "children": [], "start_point": {"row": 106, "column": 15}, "end_point": {"row": 106, "column": 16}}, {"id": 779, "type": "call_expression", "text": "y((l + 1) * (l + 1))", "parent": 773, "children": [780, 781], "start_point": {"row": 106, "column": 17}, "end_point": {"row": 106, "column": 37}}, {"id": 780, "type": "identifier", "text": "y", "parent": 779, "children": [], "start_point": {"row": 106, "column": 17}, "end_point": {"row": 106, "column": 18}}, {"id": 781, "type": "argument_list", "text": "((l + 1) * (l + 1))", "parent": 779, "children": [782], "start_point": {"row": 106, "column": 18}, "end_point": {"row": 106, "column": 37}}, {"id": 782, "type": "binary_expression", "text": "(l + 1) * (l + 1)", "parent": 781, "children": [783, 788, 789], "start_point": {"row": 106, "column": 19}, "end_point": {"row": 106, "column": 36}}, {"id": 783, "type": "parenthesized_expression", "text": "(l + 1)", "parent": 782, "children": [784], "start_point": {"row": 106, "column": 19}, "end_point": {"row": 106, "column": 26}}, {"id": 784, "type": "binary_expression", "text": "l + 1", "parent": 783, "children": [785, 786, 787], "start_point": {"row": 106, "column": 20}, "end_point": {"row": 106, "column": 25}}, {"id": 785, "type": "identifier", "text": "l", "parent": 784, "children": [], "start_point": {"row": 106, "column": 20}, "end_point": {"row": 106, "column": 21}}, {"id": 786, "type": "+", "text": "+", "parent": 784, "children": [], "start_point": {"row": 106, "column": 22}, "end_point": {"row": 106, "column": 23}}, {"id": 787, "type": "number_literal", "text": "1", "parent": 784, "children": [], "start_point": {"row": 106, "column": 24}, "end_point": {"row": 106, "column": 25}}, {"id": 788, "type": "*", "text": "*", "parent": 782, "children": [], "start_point": {"row": 106, "column": 27}, "end_point": {"row": 106, "column": 28}}, {"id": 789, "type": "parenthesized_expression", "text": "(l + 1)", "parent": 782, "children": [790], "start_point": {"row": 106, "column": 29}, "end_point": {"row": 106, "column": 36}}, {"id": 790, "type": "binary_expression", "text": "l + 1", "parent": 789, "children": [791, 792, 793], "start_point": {"row": 106, "column": 30}, "end_point": {"row": 106, "column": 35}}, {"id": 791, "type": "identifier", "text": "l", "parent": 790, "children": [], "start_point": {"row": 106, "column": 30}, "end_point": {"row": 106, "column": 31}}, {"id": 792, "type": "+", "text": "+", "parent": 790, "children": [], "start_point": {"row": 106, "column": 32}, "end_point": {"row": 106, "column": 33}}, {"id": 793, "type": "number_literal", "text": "1", "parent": 790, "children": [], "start_point": {"row": 106, "column": 34}, "end_point": {"row": 106, "column": 35}}, {"id": 794, "type": "call_expression", "text": "y.setZero()", "parent": 656, "children": [795, 798], "start_point": {"row": 107, "column": 2}, "end_point": {"row": 107, "column": 13}}, {"id": 795, "type": "field_expression", "text": "y.setZero", "parent": 794, "children": [796, 797], "start_point": {"row": 107, "column": 2}, "end_point": {"row": 107, "column": 11}}, {"id": 796, "type": "identifier", "text": "y", "parent": 795, "children": [], "start_point": {"row": 107, "column": 2}, "end_point": {"row": 107, "column": 3}}, {"id": 797, "type": "field_identifier", "text": "setZero", "parent": 795, "children": [], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 11}}, {"id": 798, "type": "argument_list", "text": "()", "parent": 794, "children": [], "start_point": {"row": 107, "column": 11}, "end_point": {"row": 107, "column": 13}}, {"id": 799, "type": "declaration", "text": "ADType yn;", "parent": 656, "children": [800, 801], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 108, "column": 12}}, {"id": 800, "type": "type_identifier", "text": "ADType", "parent": 799, "children": [], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 108, "column": 8}}, {"id": 801, "type": "identifier", "text": "yn", "parent": 799, "children": [], "start_point": {"row": 108, "column": 9}, "end_point": {"row": 108, "column": 11}}, {"id": 802, "type": "binary_expression", "text": "Vector<Scalar> dydsigma((l + 1) * (l + 1))", "parent": 656, "children": [803, 807, 808], "start_point": {"row": 109, "column": 2}, "end_point": {"row": 109, "column": 44}}, {"id": 803, "type": "binary_expression", "text": "Vector<Scalar", "parent": 802, "children": [804, 805, 806], "start_point": {"row": 109, "column": 2}, "end_point": {"row": 109, "column": 15}}, {"id": 804, "type": "identifier", "text": "Vector", "parent": 803, "children": [], "start_point": {"row": 109, "column": 2}, "end_point": {"row": 109, "column": 8}}, {"id": 805, "type": "<", "text": "<", "parent": 803, "children": [], "start_point": {"row": 109, "column": 8}, "end_point": {"row": 109, "column": 9}}, {"id": 806, "type": "identifier", "text": "Scalar", "parent": 803, "children": [], "start_point": {"row": 109, "column": 9}, "end_point": {"row": 109, "column": 15}}, {"id": 807, "type": ">", "text": ">", "parent": 802, "children": [], "start_point": {"row": 109, "column": 15}, "end_point": {"row": 109, "column": 16}}, {"id": 808, "type": "call_expression", "text": "dydsigma((l + 1) * (l + 1))", "parent": 802, "children": [809, 810], "start_point": {"row": 109, "column": 17}, "end_point": {"row": 109, "column": 44}}, {"id": 809, "type": "identifier", "text": "dydsigma", "parent": 808, "children": [], "start_point": {"row": 109, "column": 17}, "end_point": {"row": 109, "column": 25}}, {"id": 810, "type": "argument_list", "text": "((l + 1) * (l + 1))", "parent": 808, "children": [811], "start_point": {"row": 109, "column": 25}, "end_point": {"row": 109, "column": 44}}, {"id": 811, "type": "binary_expression", "text": "(l + 1) * (l + 1)", "parent": 810, "children": [812, 817, 818], "start_point": {"row": 109, "column": 26}, "end_point": {"row": 109, "column": 43}}, {"id": 812, "type": "parenthesized_expression", "text": "(l + 1)", "parent": 811, "children": [813], "start_point": {"row": 109, "column": 26}, "end_point": {"row": 109, "column": 33}}, {"id": 813, "type": "binary_expression", "text": "l + 1", "parent": 812, "children": [814, 815, 816], "start_point": {"row": 109, "column": 27}, "end_point": {"row": 109, "column": 32}}, {"id": 814, "type": "identifier", "text": "l", "parent": 813, "children": [], "start_point": {"row": 109, "column": 27}, "end_point": {"row": 109, "column": 28}}, {"id": 815, "type": "+", "text": "+", "parent": 813, "children": [], "start_point": {"row": 109, "column": 29}, "end_point": {"row": 109, "column": 30}}, {"id": 816, "type": "number_literal", "text": "1", "parent": 813, "children": [], "start_point": {"row": 109, "column": 31}, "end_point": {"row": 109, "column": 32}}, {"id": 817, "type": "*", "text": "*", "parent": 811, "children": [], "start_point": {"row": 109, "column": 34}, "end_point": {"row": 109, "column": 35}}, {"id": 818, "type": "parenthesized_expression", "text": "(l + 1)", "parent": 811, "children": [819], "start_point": {"row": 109, "column": 36}, "end_point": {"row": 109, "column": 43}}, {"id": 819, "type": "binary_expression", "text": "l + 1", "parent": 818, "children": [820, 821, 822], "start_point": {"row": 109, "column": 37}, "end_point": {"row": 109, "column": 42}}, {"id": 820, "type": "identifier", "text": "l", "parent": 819, "children": [], "start_point": {"row": 109, "column": 37}, "end_point": {"row": 109, "column": 38}}, {"id": 821, "type": "+", "text": "+", "parent": 819, "children": [], "start_point": {"row": 109, "column": 39}, "end_point": {"row": 109, "column": 40}}, {"id": 822, "type": "number_literal", "text": "1", "parent": 819, "children": [], "start_point": {"row": 109, "column": 41}, "end_point": {"row": 109, "column": 42}}, {"id": 823, "type": "call_expression", "text": "dydsigma.setZero()", "parent": 656, "children": [824, 827], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 110, "column": 20}}, {"id": 824, "type": "field_expression", "text": "dydsigma.setZero", "parent": 823, "children": [825, 826], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 110, "column": 18}}, {"id": 825, "type": "identifier", "text": "dydsigma", "parent": 824, "children": [], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 110, "column": 10}}, {"id": 826, "type": "field_identifier", "text": "setZero", "parent": 824, "children": [], "start_point": {"row": 110, "column": 11}, "end_point": {"row": 110, "column": 18}}, {"id": 827, "type": "argument_list", "text": "()", "parent": 823, "children": [], "start_point": {"row": 110, "column": 18}, "end_point": {"row": 110, "column": 20}}, {"id": 828, "type": "declaration", "text": "ADType a = 1.0 / (2 * sigma * sigma);", "parent": 656, "children": [829, 830], "start_point": {"row": 113, "column": 2}, "end_point": {"row": 113, "column": 39}}, {"id": 829, "type": "type_identifier", "text": "ADType", "parent": 828, "children": [], "start_point": {"row": 113, "column": 2}, "end_point": {"row": 113, "column": 8}}, {"id": 830, "type": "init_declarator", "text": "a = 1.0 / (2 * sigma * sigma)", "parent": 828, "children": [831, 832, 833], "start_point": {"row": 113, "column": 9}, "end_point": {"row": 113, "column": 38}}, {"id": 831, "type": "identifier", "text": "a", "parent": 830, "children": [], "start_point": {"row": 113, "column": 9}, "end_point": {"row": 113, "column": 10}}, {"id": 832, "type": "=", "text": "=", "parent": 830, "children": [], "start_point": {"row": 113, "column": 11}, "end_point": {"row": 113, "column": 12}}, {"id": 833, "type": "binary_expression", "text": "1.0 / (2 * sigma * sigma)", "parent": 830, "children": [834, 835, 836], "start_point": {"row": 113, "column": 13}, "end_point": {"row": 113, "column": 38}}, {"id": 834, "type": "number_literal", "text": "1.0", "parent": 833, "children": [], "start_point": {"row": 113, "column": 13}, "end_point": {"row": 113, "column": 16}}, {"id": 835, "type": "/", "text": "/", "parent": 833, "children": [], "start_point": {"row": 113, "column": 17}, "end_point": {"row": 113, "column": 18}}, {"id": 836, "type": "parenthesized_expression", "text": "(2 * sigma * sigma)", "parent": 833, "children": [837], "start_point": {"row": 113, "column": 19}, "end_point": {"row": 113, "column": 38}}, {"id": 837, "type": "binary_expression", "text": "2 * sigma * sigma", "parent": 836, "children": [838, 842, 843], "start_point": {"row": 113, "column": 20}, "end_point": {"row": 113, "column": 37}}, {"id": 838, "type": "binary_expression", "text": "2 * sigma", "parent": 837, "children": [839, 840, 841], "start_point": {"row": 113, "column": 20}, "end_point": {"row": 113, "column": 29}}, {"id": 839, "type": "number_literal", "text": "2", "parent": 838, "children": [], "start_point": {"row": 113, "column": 20}, "end_point": {"row": 113, "column": 21}}, {"id": 840, "type": "*", "text": "*", "parent": 838, "children": [], "start_point": {"row": 113, "column": 22}, "end_point": {"row": 113, "column": 23}}, {"id": 841, "type": "identifier", "text": "sigma", "parent": 838, "children": [], "start_point": {"row": 113, "column": 24}, "end_point": {"row": 113, "column": 29}}, {"id": 842, "type": "*", "text": "*", "parent": 837, "children": [], "start_point": {"row": 113, "column": 30}, "end_point": {"row": 113, "column": 31}}, {"id": 843, "type": "identifier", "text": "sigma", "parent": 837, "children": [], "start_point": {"row": 113, "column": 32}, "end_point": {"row": 113, "column": 37}}, {"id": 844, "type": "declaration", "text": "ADType sqrta = sqrt(a);", "parent": 656, "children": [845, 846], "start_point": {"row": 114, "column": 2}, "end_point": {"row": 114, "column": 25}}, {"id": 845, "type": "type_identifier", "text": "ADType", "parent": 844, "children": [], "start_point": {"row": 114, "column": 2}, "end_point": {"row": 114, "column": 8}}, {"id": 846, "type": "init_declarator", "text": "sqrta = sqrt(a)", "parent": 844, "children": [847, 848, 849], "start_point": {"row": 114, "column": 9}, "end_point": {"row": 114, "column": 24}}, {"id": 847, "type": "identifier", "text": "sqrta", "parent": 846, "children": [], "start_point": {"row": 114, "column": 9}, "end_point": {"row": 114, "column": 14}}, {"id": 848, "type": "=", "text": "=", "parent": 846, "children": [], "start_point": {"row": 114, "column": 15}, "end_point": {"row": 114, "column": 16}}, {"id": 849, "type": "call_expression", "text": "sqrt(a)", "parent": 846, "children": [850, 851], "start_point": {"row": 114, "column": 17}, "end_point": {"row": 114, "column": 24}}, {"id": 850, "type": "identifier", "text": "sqrt", "parent": 849, "children": [], "start_point": {"row": 114, "column": 17}, "end_point": {"row": 114, "column": 21}}, {"id": 851, "type": "argument_list", "text": "(a)", "parent": 849, "children": [852], "start_point": {"row": 114, "column": 21}, "end_point": {"row": 114, "column": 24}}, {"id": 852, "type": "identifier", "text": "a", "parent": 851, "children": [], "start_point": {"row": 114, "column": 22}, "end_point": {"row": 114, "column": 23}}, {"id": 853, "type": "declaration", "text": "ADType erfa = erf(2 * sqrta.value());", "parent": 656, "children": [854, 855], "start_point": {"row": 115, "column": 2}, "end_point": {"row": 115, "column": 39}}, {"id": 854, "type": "type_identifier", "text": "ADType", "parent": 853, "children": [], "start_point": {"row": 115, "column": 2}, "end_point": {"row": 115, "column": 8}}, {"id": 855, "type": "init_declarator", "text": "erfa = erf(2 * sqrta.value())", "parent": 853, "children": [856, 857, 858], "start_point": {"row": 115, "column": 9}, "end_point": {"row": 115, "column": 38}}, {"id": 856, "type": "identifier", "text": "erfa", "parent": 855, "children": [], "start_point": {"row": 115, "column": 9}, "end_point": {"row": 115, "column": 13}}, {"id": 857, "type": "=", "text": "=", "parent": 855, "children": [], "start_point": {"row": 115, "column": 14}, "end_point": {"row": 115, "column": 15}}, {"id": 858, "type": "call_expression", "text": "erf(2 * sqrta.value())", "parent": 855, "children": [859, 860], "start_point": {"row": 115, "column": 16}, "end_point": {"row": 115, "column": 38}}, {"id": 859, "type": "identifier", "text": "erf", "parent": 858, "children": [], "start_point": {"row": 115, "column": 16}, "end_point": {"row": 115, "column": 19}}, {"id": 860, "type": "argument_list", "text": "(2 * sqrta.value())", "parent": 858, "children": [861], "start_point": {"row": 115, "column": 19}, "end_point": {"row": 115, "column": 38}}, {"id": 861, "type": "binary_expression", "text": "2 * sqrta.value()", "parent": 860, "children": [862, 863, 864], "start_point": {"row": 115, "column": 20}, "end_point": {"row": 115, "column": 37}}, {"id": 862, "type": "number_literal", "text": "2", "parent": 861, "children": [], "start_point": {"row": 115, "column": 20}, "end_point": {"row": 115, "column": 21}}, {"id": 863, "type": "*", "text": "*", "parent": 861, "children": [], "start_point": {"row": 115, "column": 22}, "end_point": {"row": 115, "column": 23}}, {"id": 864, "type": "call_expression", "text": "sqrta.value()", "parent": 861, "children": [865, 868], "start_point": {"row": 115, "column": 24}, "end_point": {"row": 115, "column": 37}}, {"id": 865, "type": "field_expression", "text": "sqrta.value", "parent": 864, "children": [866, 867], "start_point": {"row": 115, "column": 24}, "end_point": {"row": 115, "column": 35}}, {"id": 866, "type": "identifier", "text": "sqrta", "parent": 865, "children": [], "start_point": {"row": 115, "column": 24}, "end_point": {"row": 115, "column": 29}}, {"id": 867, "type": "field_identifier", "text": "value", "parent": 865, "children": [], "start_point": {"row": 115, "column": 30}, "end_point": {"row": 115, "column": 35}}, {"id": 868, "type": "argument_list", "text": "()", "parent": 864, "children": [], "start_point": {"row": 115, "column": 35}, "end_point": {"row": 115, "column": 37}}, {"id": 869, "type": "assignment_expression", "text": "erfa.derivatives()(0) =\n -sqrt(32 / pi<Scalar>()) * exp(-4 * a.value()) * a.value()", "parent": 656, "children": [870, 878, 879], "start_point": {"row": 116, "column": 2}, "end_point": {"row": 117, "column": 64}}, {"id": 870, "type": "call_expression", "text": "erfa.derivatives()(0)", "parent": 869, "children": [871, 876], "start_point": {"row": 116, "column": 2}, "end_point": {"row": 116, "column": 23}}, {"id": 871, "type": "call_expression", "text": "erfa.derivatives()", "parent": 870, "children": [872, 875], "start_point": {"row": 116, "column": 2}, "end_point": {"row": 116, "column": 20}}, {"id": 872, "type": "field_expression", "text": "erfa.derivatives", "parent": 871, "children": [873, 874], "start_point": {"row": 116, "column": 2}, "end_point": {"row": 116, "column": 18}}, {"id": 873, "type": "identifier", "text": "erfa", "parent": 872, "children": [], "start_point": {"row": 116, "column": 2}, "end_point": {"row": 116, "column": 6}}, {"id": 874, "type": "field_identifier", "text": "derivatives", "parent": 872, "children": [], "start_point": {"row": 116, "column": 7}, "end_point": {"row": 116, "column": 18}}, {"id": 875, "type": "argument_list", "text": "()", "parent": 871, "children": [], "start_point": {"row": 116, "column": 18}, "end_point": {"row": 116, "column": 20}}, {"id": 876, "type": "argument_list", "text": "(0)", "parent": 870, "children": [877], "start_point": {"row": 116, "column": 20}, "end_point": {"row": 116, "column": 23}}, {"id": 877, "type": "number_literal", "text": "0", "parent": 876, "children": [], "start_point": {"row": 116, "column": 21}, "end_point": {"row": 116, "column": 22}}, {"id": 878, "type": "=", "text": "=", "parent": 869, "children": [], "start_point": {"row": 116, "column": 24}, "end_point": {"row": 116, "column": 25}}, {"id": 879, "type": "binary_expression", "text": "-sqrt(32 / pi<Scalar>()) * exp(-4 * a.value()) * a.value()", "parent": 869, "children": [880, 909, 910], "start_point": {"row": 117, "column": 6}, "end_point": {"row": 117, "column": 64}}, {"id": 880, "type": "binary_expression", "text": "-sqrt(32 / pi<Scalar>()) * exp(-4 * a.value())", "parent": 879, "children": [881, 897, 898], "start_point": {"row": 117, "column": 6}, "end_point": {"row": 117, "column": 52}}, {"id": 881, "type": "unary_expression", "text": "-sqrt(32 / pi<Scalar>())", "parent": 880, "children": [882, 883], "start_point": {"row": 117, "column": 6}, "end_point": {"row": 117, "column": 30}}, {"id": 882, "type": "-", "text": "-", "parent": 881, "children": [], "start_point": {"row": 117, "column": 6}, "end_point": {"row": 117, "column": 7}}, {"id": 883, "type": "call_expression", "text": "sqrt(32 / pi<Scalar>())", "parent": 881, "children": [884, 885], "start_point": {"row": 117, "column": 7}, "end_point": {"row": 117, "column": 30}}, {"id": 884, "type": "identifier", "text": "sqrt", "parent": 883, "children": [], "start_point": {"row": 117, "column": 7}, "end_point": {"row": 117, "column": 11}}, {"id": 885, "type": "argument_list", "text": "(32 / pi<Scalar>())", "parent": 883, "children": [886], "start_point": {"row": 117, "column": 11}, "end_point": {"row": 117, "column": 30}}, {"id": 886, "type": "binary_expression", "text": "32 / pi<Scalar>()", "parent": 885, "children": [887, 894, 895], "start_point": {"row": 117, "column": 12}, "end_point": {"row": 117, "column": 29}}, {"id": 887, "type": "binary_expression", "text": "32 / pi<Scalar", "parent": 886, "children": [888, 892, 893], "start_point": {"row": 117, "column": 12}, "end_point": {"row": 117, "column": 26}}, {"id": 888, "type": "binary_expression", "text": "32 / pi", "parent": 887, "children": [889, 890, 891], "start_point": {"row": 117, "column": 12}, "end_point": {"row": 117, "column": 19}}, {"id": 889, "type": "number_literal", "text": "32", "parent": 888, "children": [], "start_point": {"row": 117, "column": 12}, "end_point": {"row": 117, "column": 14}}, {"id": 890, "type": "/", "text": "/", "parent": 888, "children": [], "start_point": {"row": 117, "column": 15}, "end_point": {"row": 117, "column": 16}}, {"id": 891, "type": "identifier", "text": "pi", "parent": 888, "children": [], "start_point": {"row": 117, "column": 17}, "end_point": {"row": 117, "column": 19}}, {"id": 892, "type": "<", "text": "<", "parent": 887, "children": [], "start_point": {"row": 117, "column": 19}, "end_point": {"row": 117, "column": 20}}, {"id": 893, "type": "identifier", "text": "Scalar", "parent": 887, "children": [], "start_point": {"row": 117, "column": 20}, "end_point": {"row": 117, "column": 26}}, {"id": 894, "type": ">", "text": ">", "parent": 886, "children": [], "start_point": {"row": 117, "column": 26}, "end_point": {"row": 117, "column": 27}}, {"id": 895, "type": "parenthesized_expression", "text": "()", "parent": 886, "children": [896], "start_point": {"row": 117, "column": 27}, "end_point": {"row": 117, "column": 29}}, {"id": 896, "type": "identifier", "text": "", "parent": 895, "children": [], "start_point": {"row": 117, "column": 28}, "end_point": {"row": 117, "column": 28}}, {"id": 897, "type": "*", "text": "*", "parent": 880, "children": [], "start_point": {"row": 117, "column": 31}, "end_point": {"row": 117, "column": 32}}, {"id": 898, "type": "call_expression", "text": "exp(-4 * a.value())", "parent": 880, "children": [899, 900], "start_point": {"row": 117, "column": 33}, "end_point": {"row": 117, "column": 52}}, {"id": 899, "type": "identifier", "text": "exp", "parent": 898, "children": [], "start_point": {"row": 117, "column": 33}, "end_point": {"row": 117, "column": 36}}, {"id": 900, "type": "argument_list", "text": "(-4 * a.value())", "parent": 898, "children": [901], "start_point": {"row": 117, "column": 36}, "end_point": {"row": 117, "column": 52}}, {"id": 901, "type": "binary_expression", "text": "-4 * a.value()", "parent": 900, "children": [902, 903, 904], "start_point": {"row": 117, "column": 37}, "end_point": {"row": 117, "column": 51}}, {"id": 902, "type": "number_literal", "text": "-4", "parent": 901, "children": [], "start_point": {"row": 117, "column": 37}, "end_point": {"row": 117, "column": 39}}, {"id": 903, "type": "*", "text": "*", "parent": 901, "children": [], "start_point": {"row": 117, "column": 40}, "end_point": {"row": 117, "column": 41}}, {"id": 904, "type": "call_expression", "text": "a.value()", "parent": 901, "children": [905, 908], "start_point": {"row": 117, "column": 42}, "end_point": {"row": 117, "column": 51}}, {"id": 905, "type": "field_expression", "text": "a.value", "parent": 904, "children": [906, 907], "start_point": {"row": 117, "column": 42}, "end_point": {"row": 117, "column": 49}}, {"id": 906, "type": "identifier", "text": "a", "parent": 905, "children": [], "start_point": {"row": 117, "column": 42}, "end_point": {"row": 117, "column": 43}}, {"id": 907, "type": "field_identifier", "text": "value", "parent": 905, "children": [], "start_point": {"row": 117, "column": 44}, "end_point": {"row": 117, "column": 49}}, {"id": 908, "type": "argument_list", "text": "()", "parent": 904, "children": [], "start_point": {"row": 117, "column": 49}, "end_point": {"row": 117, "column": 51}}, {"id": 909, "type": "*", "text": "*", "parent": 879, "children": [], "start_point": {"row": 117, "column": 53}, "end_point": {"row": 117, "column": 54}}, {"id": 910, "type": "call_expression", "text": "a.value()", "parent": 879, "children": [911, 914], "start_point": {"row": 117, "column": 55}, "end_point": {"row": 117, "column": 64}}, {"id": 911, "type": "field_expression", "text": "a.value", "parent": 910, "children": [912, 913], "start_point": {"row": 117, "column": 55}, "end_point": {"row": 117, "column": 62}}, {"id": 912, "type": "identifier", "text": "a", "parent": 911, "children": [], "start_point": {"row": 117, "column": 55}, "end_point": {"row": 117, "column": 56}}, {"id": 913, "type": "field_identifier", "text": "value", "parent": 911, "children": [], "start_point": {"row": 117, "column": 57}, "end_point": {"row": 117, "column": 62}}, {"id": 914, "type": "argument_list", "text": "()", "parent": 910, "children": [], "start_point": {"row": 117, "column": 62}, "end_point": {"row": 117, "column": 64}}, {"id": 915, "type": "declaration", "text": "ADType term = exp(-4 * a);", "parent": 656, "children": [916, 917], "start_point": {"row": 118, "column": 2}, "end_point": {"row": 118, "column": 28}}, {"id": 916, "type": "type_identifier", "text": "ADType", "parent": 915, "children": [], "start_point": {"row": 118, "column": 2}, "end_point": {"row": 118, "column": 8}}, {"id": 917, "type": "init_declarator", "text": "term = exp(-4 * a)", "parent": 915, "children": [918, 919, 920], "start_point": {"row": 118, "column": 9}, "end_point": {"row": 118, "column": 27}}, {"id": 918, "type": "identifier", "text": "term", "parent": 917, "children": [], "start_point": {"row": 118, "column": 9}, "end_point": {"row": 118, "column": 13}}, {"id": 919, "type": "=", "text": "=", "parent": 917, "children": [], "start_point": {"row": 118, "column": 14}, "end_point": {"row": 118, "column": 15}}, {"id": 920, "type": "call_expression", "text": "exp(-4 * a)", "parent": 917, "children": [921, 922], "start_point": {"row": 118, "column": 16}, "end_point": {"row": 118, "column": 27}}, {"id": 921, "type": "identifier", "text": "exp", "parent": 920, "children": [], "start_point": {"row": 118, "column": 16}, "end_point": {"row": 118, "column": 19}}, {"id": 922, "type": "argument_list", "text": "(-4 * a)", "parent": 920, "children": [923], "start_point": {"row": 118, "column": 19}, "end_point": {"row": 118, "column": 27}}, {"id": 923, "type": "binary_expression", "text": "-4 * a", "parent": 922, "children": [924, 925, 926], "start_point": {"row": 118, "column": 20}, "end_point": {"row": 118, "column": 26}}, {"id": 924, "type": "number_literal", "text": "-4", "parent": 923, "children": [], "start_point": {"row": 118, "column": 20}, "end_point": {"row": 118, "column": 22}}, {"id": 925, "type": "*", "text": "*", "parent": 923, "children": [], "start_point": {"row": 118, "column": 23}, "end_point": {"row": 118, "column": 24}}, {"id": 926, "type": "identifier", "text": "a", "parent": 923, "children": [], "start_point": {"row": 118, "column": 25}, "end_point": {"row": 118, "column": 26}}, {"id": 927, "type": "assignment_expression", "text": "IP(0) = root_pi<Scalar>() / (2 * sqrta) * erfa", "parent": 656, "children": [928, 932, 933], "start_point": {"row": 121, "column": 2}, "end_point": {"row": 121, "column": 48}}, {"id": 928, "type": "call_expression", "text": "IP(0)", "parent": 927, "children": [929, 930], "start_point": {"row": 121, "column": 2}, "end_point": {"row": 121, "column": 7}}, {"id": 929, "type": "identifier", "text": "IP", "parent": 928, "children": [], "start_point": {"row": 121, "column": 2}, "end_point": {"row": 121, "column": 4}}, {"id": 930, "type": "argument_list", "text": "(0)", "parent": 928, "children": [931], "start_point": {"row": 121, "column": 4}, "end_point": {"row": 121, "column": 7}}, {"id": 931, "type": "number_literal", "text": "0", "parent": 930, "children": [], "start_point": {"row": 121, "column": 5}, "end_point": {"row": 121, "column": 6}}, {"id": 932, "type": "=", "text": "=", "parent": 927, "children": [], "start_point": {"row": 121, "column": 8}, "end_point": {"row": 121, "column": 9}}, {"id": 933, "type": "binary_expression", "text": "root_pi<Scalar>() / (2 * sqrta) * erfa", "parent": 927, "children": [934, 938, 939], "start_point": {"row": 121, "column": 10}, "end_point": {"row": 121, "column": 48}}, {"id": 934, "type": "binary_expression", "text": "root_pi<Scalar", "parent": 933, "children": [935, 936, 937], "start_point": {"row": 121, "column": 10}, "end_point": {"row": 121, "column": 24}}, {"id": 935, "type": "identifier", "text": "root_pi", "parent": 934, "children": [], "start_point": {"row": 121, "column": 10}, "end_point": {"row": 121, "column": 17}}, {"id": 936, "type": "<", "text": "<", "parent": 934, "children": [], "start_point": {"row": 121, "column": 17}, "end_point": {"row": 121, "column": 18}}, {"id": 937, "type": "identifier", "text": "Scalar", "parent": 934, "children": [], "start_point": {"row": 121, "column": 18}, "end_point": {"row": 121, "column": 24}}, {"id": 938, "type": ">", "text": ">", "parent": 933, "children": [], "start_point": {"row": 121, "column": 24}, "end_point": {"row": 121, "column": 25}}, {"id": 939, "type": "binary_expression", "text": "() / (2 * sqrta) * erfa", "parent": 933, "children": [940, 949, 950], "start_point": {"row": 121, "column": 25}, "end_point": {"row": 121, "column": 48}}, {"id": 940, "type": "binary_expression", "text": "() / (2 * sqrta)", "parent": 939, "children": [941, 943, 944], "start_point": {"row": 121, "column": 25}, "end_point": {"row": 121, "column": 41}}, {"id": 941, "type": "parenthesized_expression", "text": "()", "parent": 940, "children": [942], "start_point": {"row": 121, "column": 25}, "end_point": {"row": 121, "column": 27}}, {"id": 942, "type": "identifier", "text": "", "parent": 941, "children": [], "start_point": {"row": 121, "column": 26}, "end_point": {"row": 121, "column": 26}}, {"id": 943, "type": "/", "text": "/", "parent": 940, "children": [], "start_point": {"row": 121, "column": 28}, "end_point": {"row": 121, "column": 29}}, {"id": 944, "type": "parenthesized_expression", "text": "(2 * sqrta)", "parent": 940, "children": [945], "start_point": {"row": 121, "column": 30}, "end_point": {"row": 121, "column": 41}}, {"id": 945, "type": "binary_expression", "text": "2 * sqrta", "parent": 944, "children": [946, 947, 948], "start_point": {"row": 121, "column": 31}, "end_point": {"row": 121, "column": 40}}, {"id": 946, "type": "number_literal", "text": "2", "parent": 945, "children": [], "start_point": {"row": 121, "column": 31}, "end_point": {"row": 121, "column": 32}}, {"id": 947, "type": "*", "text": "*", "parent": 945, "children": [], "start_point": {"row": 121, "column": 33}, "end_point": {"row": 121, "column": 34}}, {"id": 948, "type": "identifier", "text": "sqrta", "parent": 945, "children": [], "start_point": {"row": 121, "column": 35}, "end_point": {"row": 121, "column": 40}}, {"id": 949, "type": "*", "text": "*", "parent": 939, "children": [], "start_point": {"row": 121, "column": 42}, "end_point": {"row": 121, "column": 43}}, {"id": 950, "type": "identifier", "text": "erfa", "parent": 939, "children": [], "start_point": {"row": 121, "column": 44}, "end_point": {"row": 121, "column": 48}}, {"id": 951, "type": "assignment_expression", "text": "IP(1) = (root_pi<Scalar>() * sqrta * erfa + term - 1) / (2 * a)", "parent": 656, "children": [952, 956, 957], "start_point": {"row": 122, "column": 2}, "end_point": {"row": 122, "column": 65}}, {"id": 952, "type": "call_expression", "text": "IP(1)", "parent": 951, "children": [953, 954], "start_point": {"row": 122, "column": 2}, "end_point": {"row": 122, "column": 7}}, {"id": 953, "type": "identifier", "text": "IP", "parent": 952, "children": [], "start_point": {"row": 122, "column": 2}, "end_point": {"row": 122, "column": 4}}, {"id": 954, "type": "argument_list", "text": "(1)", "parent": 952, "children": [955], "start_point": {"row": 122, "column": 4}, "end_point": {"row": 122, "column": 7}}, {"id": 955, "type": "number_literal", "text": "1", "parent": 954, "children": [], "start_point": {"row": 122, "column": 5}, "end_point": {"row": 122, "column": 6}}, {"id": 956, "type": "=", "text": "=", "parent": 951, "children": [], "start_point": {"row": 122, "column": 8}, "end_point": {"row": 122, "column": 9}}, {"id": 957, "type": "binary_expression", "text": "(root_pi<Scalar>() * sqrta * erfa + term - 1) / (2 * a)", "parent": 951, "children": [958, 979, 980], "start_point": {"row": 122, "column": 10}, "end_point": {"row": 122, "column": 65}}, {"id": 958, "type": "parenthesized_expression", "text": "(root_pi<Scalar>() * sqrta * erfa + term - 1)", "parent": 957, "children": [959], "start_point": {"row": 122, "column": 10}, "end_point": {"row": 122, "column": 55}}, {"id": 959, "type": "binary_expression", "text": "root_pi<Scalar>() * sqrta * erfa + term - 1", "parent": 958, "children": [960, 964, 965], "start_point": {"row": 122, "column": 11}, "end_point": {"row": 122, "column": 54}}, {"id": 960, "type": "binary_expression", "text": "root_pi<Scalar", "parent": 959, "children": [961, 962, 963], "start_point": {"row": 122, "column": 11}, "end_point": {"row": 122, "column": 25}}, {"id": 961, "type": "identifier", "text": "root_pi", "parent": 960, "children": [], "start_point": {"row": 122, "column": 11}, "end_point": {"row": 122, "column": 18}}, {"id": 962, "type": "<", "text": "<", "parent": 960, "children": [], "start_point": {"row": 122, "column": 18}, "end_point": {"row": 122, "column": 19}}, {"id": 963, "type": "identifier", "text": "Scalar", "parent": 960, "children": [], "start_point": {"row": 122, "column": 19}, "end_point": {"row": 122, "column": 25}}, {"id": 964, "type": ">", "text": ">", "parent": 959, "children": [], "start_point": {"row": 122, "column": 25}, "end_point": {"row": 122, "column": 26}}, {"id": 965, "type": "binary_expression", "text": "() * sqrta * erfa + term - 1", "parent": 959, "children": [966, 977, 978], "start_point": {"row": 122, "column": 26}, "end_point": {"row": 122, "column": 54}}, {"id": 966, "type": "binary_expression", "text": "() * sqrta * erfa + term", "parent": 965, "children": [967, 975, 976], "start_point": {"row": 122, "column": 26}, "end_point": {"row": 122, "column": 50}}, {"id": 967, "type": "binary_expression", "text": "() * sqrta * erfa", "parent": 966, "children": [968, 973, 974], "start_point": {"row": 122, "column": 26}, "end_point": {"row": 122, "column": 43}}, {"id": 968, "type": "binary_expression", "text": "() * sqrta", "parent": 967, "children": [969, 971, 972], "start_point": {"row": 122, "column": 26}, "end_point": {"row": 122, "column": 36}}, {"id": 969, "type": "parenthesized_expression", "text": "()", "parent": 968, "children": [970], "start_point": {"row": 122, "column": 26}, "end_point": {"row": 122, "column": 28}}, {"id": 970, "type": "identifier", "text": "", "parent": 969, "children": [], "start_point": {"row": 122, "column": 27}, "end_point": {"row": 122, "column": 27}}, {"id": 971, "type": "*", "text": "*", "parent": 968, "children": [], "start_point": {"row": 122, "column": 29}, "end_point": {"row": 122, "column": 30}}, {"id": 972, "type": "identifier", "text": "sqrta", "parent": 968, "children": [], "start_point": {"row": 122, "column": 31}, "end_point": {"row": 122, "column": 36}}, {"id": 973, "type": "*", "text": "*", "parent": 967, "children": [], "start_point": {"row": 122, "column": 37}, "end_point": {"row": 122, "column": 38}}, {"id": 974, "type": "identifier", "text": "erfa", "parent": 967, "children": [], "start_point": {"row": 122, "column": 39}, "end_point": {"row": 122, "column": 43}}, {"id": 975, "type": "+", "text": "+", "parent": 966, "children": [], "start_point": {"row": 122, "column": 44}, "end_point": {"row": 122, "column": 45}}, {"id": 976, "type": "identifier", "text": "term", "parent": 966, "children": [], "start_point": {"row": 122, "column": 46}, "end_point": {"row": 122, "column": 50}}, {"id": 977, "type": "-", "text": "-", "parent": 965, "children": [], "start_point": {"row": 122, "column": 51}, "end_point": {"row": 122, "column": 52}}, {"id": 978, "type": "number_literal", "text": "1", "parent": 965, "children": [], "start_point": {"row": 122, "column": 53}, "end_point": {"row": 122, "column": 54}}, {"id": 979, "type": "/", "text": "/", "parent": 957, "children": [], "start_point": {"row": 122, "column": 56}, "end_point": {"row": 122, "column": 57}}, {"id": 980, "type": "parenthesized_expression", "text": "(2 * a)", "parent": 957, "children": [981], "start_point": {"row": 122, "column": 58}, "end_point": {"row": 122, "column": 65}}, {"id": 981, "type": "binary_expression", "text": "2 * a", "parent": 980, "children": [982, 983, 984], "start_point": {"row": 122, "column": 59}, "end_point": {"row": 122, "column": 64}}, {"id": 982, "type": "number_literal", "text": "2", "parent": 981, "children": [], "start_point": {"row": 122, "column": 59}, "end_point": {"row": 122, "column": 60}}, {"id": 983, "type": "*", "text": "*", "parent": 981, "children": [], "start_point": {"row": 122, "column": 61}, "end_point": {"row": 122, "column": 62}}, {"id": 984, "type": "identifier", "text": "a", "parent": 981, "children": [], "start_point": {"row": 122, "column": 63}, "end_point": {"row": 122, "column": 64}}, {"id": 985, "type": "assignment_expression", "text": "ID(0) = 0", "parent": 656, "children": [986, 990, 991], "start_point": {"row": 123, "column": 2}, "end_point": {"row": 123, "column": 11}}, {"id": 986, "type": "call_expression", "text": "ID(0)", "parent": 985, "children": [987, 988], "start_point": {"row": 123, "column": 2}, "end_point": {"row": 123, "column": 7}}, {"id": 987, "type": "identifier", "text": "ID", "parent": 986, "children": [], "start_point": {"row": 123, "column": 2}, "end_point": {"row": 123, "column": 4}}, {"id": 988, "type": "argument_list", "text": "(0)", "parent": 986, "children": [989], "start_point": {"row": 123, "column": 4}, "end_point": {"row": 123, "column": 7}}, {"id": 989, "type": "number_literal", "text": "0", "parent": 988, "children": [], "start_point": {"row": 123, "column": 5}, "end_point": {"row": 123, "column": 6}}, {"id": 990, "type": "=", "text": "=", "parent": 985, "children": [], "start_point": {"row": 123, "column": 8}, "end_point": {"row": 123, "column": 9}}, {"id": 991, "type": "number_literal", "text": "0", "parent": 985, "children": [], "start_point": {"row": 123, "column": 10}, "end_point": {"row": 123, "column": 11}}, {"id": 992, "type": "assignment_expression", "text": "ID(1) = IP(0)", "parent": 656, "children": [993, 997, 998], "start_point": {"row": 124, "column": 2}, "end_point": {"row": 124, "column": 15}}, {"id": 993, "type": "call_expression", "text": "ID(1)", "parent": 992, "children": [994, 995], "start_point": {"row": 124, "column": 2}, "end_point": {"row": 124, "column": 7}}, {"id": 994, "type": "identifier", "text": "ID", "parent": 993, "children": [], "start_point": {"row": 124, "column": 2}, "end_point": {"row": 124, "column": 4}}, {"id": 995, "type": "argument_list", "text": "(1)", "parent": 993, "children": [996], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 124, "column": 7}}, {"id": 996, "type": "number_literal", "text": "1", "parent": 995, "children": [], "start_point": {"row": 124, "column": 5}, "end_point": {"row": 124, "column": 6}}, {"id": 997, "type": "=", "text": "=", "parent": 992, "children": [], "start_point": {"row": 124, "column": 8}, "end_point": {"row": 124, "column": 9}}, {"id": 998, "type": "call_expression", "text": "IP(0)", "parent": 992, "children": [999, 1000], "start_point": {"row": 124, "column": 10}, "end_point": {"row": 124, "column": 15}}, {"id": 999, "type": "identifier", "text": "IP", "parent": 998, "children": [], "start_point": {"row": 124, "column": 10}, "end_point": {"row": 124, "column": 12}}, {"id": 1000, "type": "argument_list", "text": "(0)", "parent": 998, "children": [1001], "start_point": {"row": 124, "column": 12}, "end_point": {"row": 124, "column": 15}}, {"id": 1001, "type": "number_literal", "text": "0", "parent": 1000, "children": [], "start_point": {"row": 124, "column": 13}, "end_point": {"row": 124, "column": 14}}, {"id": 1002, "type": "declaration", "text": "int sgn = -1;", "parent": 656, "children": [1003, 1004], "start_point": {"row": 127, "column": 2}, "end_point": {"row": 127, "column": 15}}, {"id": 1003, "type": "primitive_type", "text": "int", "parent": 1002, "children": [], "start_point": {"row": 127, "column": 2}, "end_point": {"row": 127, "column": 5}}, {"id": 1004, "type": "init_declarator", "text": "sgn = -1", "parent": 1002, "children": [1005, 1006, 1007], "start_point": {"row": 127, "column": 6}, "end_point": {"row": 127, "column": 14}}, {"id": 1005, "type": "identifier", "text": "sgn", "parent": 1004, "children": [], "start_point": {"row": 127, "column": 6}, "end_point": {"row": 127, "column": 9}}, {"id": 1006, "type": "=", "text": "=", "parent": 1004, "children": [], "start_point": {"row": 127, "column": 10}, "end_point": {"row": 127, "column": 11}}, {"id": 1007, "type": "number_literal", "text": "-1", "parent": 1004, "children": [], "start_point": {"row": 127, "column": 12}, "end_point": {"row": 127, "column": 14}}, {"id": 1008, "type": "for_statement", "text": "for (int n = 2; n < l + 1; ++n) {\n IP(n) = (2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1) - (n - 1.0) / n * IP(n - 2);\n ID(n) = (2.0 * n - 1.0) * IP(n - 1) + ID(n - 2);\n sgn *= -1;\n }", "parent": 656, "children": [1009, 1015, 1022], "start_point": {"row": 128, "column": 2}, "end_point": {"row": 133, "column": 3}}, {"id": 1009, "type": "declaration", "text": "int n = 2;", "parent": 1008, "children": [1010, 1011], "start_point": {"row": 128, "column": 7}, "end_point": {"row": 128, "column": 17}}, {"id": 1010, "type": "primitive_type", "text": "int", "parent": 1009, "children": [], "start_point": {"row": 128, "column": 7}, "end_point": {"row": 128, "column": 10}}, {"id": 1011, "type": "init_declarator", "text": "n = 2", "parent": 1009, "children": [1012, 1013, 1014], "start_point": {"row": 128, "column": 11}, "end_point": {"row": 128, "column": 16}}, {"id": 1012, "type": "identifier", "text": "n", "parent": 1011, "children": [], "start_point": {"row": 128, "column": 11}, "end_point": {"row": 128, "column": 12}}, {"id": 1013, "type": "=", "text": "=", "parent": 1011, "children": [], "start_point": {"row": 128, "column": 13}, "end_point": {"row": 128, "column": 14}}, {"id": 1014, "type": "number_literal", "text": "2", "parent": 1011, "children": [], "start_point": {"row": 128, "column": 15}, "end_point": {"row": 128, "column": 16}}, {"id": 1015, "type": "binary_expression", "text": "n < l + 1", "parent": 1008, "children": [1016, 1017, 1018], "start_point": {"row": 128, "column": 18}, "end_point": {"row": 128, "column": 27}}, {"id": 1016, "type": "identifier", "text": "n", "parent": 1015, "children": [], "start_point": {"row": 128, "column": 18}, "end_point": {"row": 128, "column": 19}}, {"id": 1017, "type": "<", "text": "<", "parent": 1015, "children": [], "start_point": {"row": 128, "column": 20}, "end_point": {"row": 128, "column": 21}}, {"id": 1018, "type": "binary_expression", "text": "l + 1", "parent": 1015, "children": [1019, 1020, 1021], "start_point": {"row": 128, "column": 22}, "end_point": {"row": 128, "column": 27}}, {"id": 1019, "type": "identifier", "text": "l", "parent": 1018, "children": [], "start_point": {"row": 128, "column": 22}, "end_point": {"row": 128, "column": 23}}, {"id": 1020, "type": "+", "text": "+", "parent": 1018, "children": [], "start_point": {"row": 128, "column": 24}, "end_point": {"row": 128, "column": 25}}, {"id": 1021, "type": "number_literal", "text": "1", "parent": 1018, "children": [], "start_point": {"row": 128, "column": 26}, "end_point": {"row": 128, "column": 27}}, {"id": 1022, "type": "update_expression", "text": "++n", "parent": 1008, "children": [1023, 1024], "start_point": {"row": 128, "column": 29}, "end_point": {"row": 128, "column": 32}}, {"id": 1023, "type": "++", "text": "++", "parent": 1022, "children": [], "start_point": {"row": 128, "column": 29}, "end_point": {"row": 128, "column": 31}}, {"id": 1024, "type": "identifier", "text": "n", "parent": 1022, "children": [], "start_point": {"row": 128, "column": 31}, "end_point": {"row": 128, "column": 32}}, {"id": 1025, "type": "assignment_expression", "text": "IP(n) = (2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1) - (n - 1.0) / n * IP(n - 2)", "parent": 1008, "children": [1026, 1030, 1031], "start_point": {"row": 129, "column": 4}, "end_point": {"row": 130, "column": 71}}, {"id": 1026, "type": "call_expression", "text": "IP(n)", "parent": 1025, "children": [1027, 1028], "start_point": {"row": 129, "column": 4}, "end_point": {"row": 129, "column": 9}}, {"id": 1027, "type": "identifier", "text": "IP", "parent": 1026, "children": [], "start_point": {"row": 129, "column": 4}, "end_point": {"row": 129, "column": 6}}, {"id": 1028, "type": "argument_list", "text": "(n)", "parent": 1026, "children": [1029], "start_point": {"row": 129, "column": 6}, "end_point": {"row": 129, "column": 9}}, {"id": 1029, "type": "identifier", "text": "n", "parent": 1028, "children": [], "start_point": {"row": 129, "column": 7}, "end_point": {"row": 129, "column": 8}}, {"id": 1030, "type": "=", "text": "=", "parent": 1025, "children": [], "start_point": {"row": 129, "column": 10}, "end_point": {"row": 129, "column": 11}}, {"id": 1031, "type": "binary_expression", "text": "(2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1) - (n - 1.0) / n * IP(n - 2)", "parent": 1025, "children": [1032, 1091, 1092], "start_point": {"row": 129, "column": 12}, "end_point": {"row": 130, "column": 71}}, {"id": 1032, "type": "binary_expression", "text": "(2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1)", "parent": 1031, "children": [1033, 1070, 1071], "start_point": {"row": 129, "column": 12}, "end_point": {"row": 130, "column": 43}}, {"id": 1033, "type": "binary_expression", "text": "(2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0)", "parent": 1032, "children": [1034, 1052, 1053], "start_point": {"row": 129, "column": 12}, "end_point": {"row": 129, "column": 76}}, {"id": 1034, "type": "binary_expression", "text": "(2.0 * n - 1.0) / (2.0 * n * a)", "parent": 1033, "children": [1035, 1043, 1044], "start_point": {"row": 129, "column": 12}, "end_point": {"row": 129, "column": 43}}, {"id": 1035, "type": "parenthesized_expression", "text": "(2.0 * n - 1.0)", "parent": 1034, "children": [1036], "start_point": {"row": 129, "column": 12}, "end_point": {"row": 129, "column": 27}}, {"id": 1036, "type": "binary_expression", "text": "2.0 * n - 1.0", "parent": 1035, "children": [1037, 1041, 1042], "start_point": {"row": 129, "column": 13}, "end_point": {"row": 129, "column": 26}}, {"id": 1037, "type": "binary_expression", "text": "2.0 * n", "parent": 1036, "children": [1038, 1039, 1040], "start_point": {"row": 129, "column": 13}, "end_point": {"row": 129, "column": 20}}, {"id": 1038, "type": "number_literal", "text": "2.0", "parent": 1037, "children": [], "start_point": {"row": 129, "column": 13}, "end_point": {"row": 129, "column": 16}}, {"id": 1039, "type": "*", "text": "*", "parent": 1037, "children": [], "start_point": {"row": 129, "column": 17}, "end_point": {"row": 129, "column": 18}}, {"id": 1040, "type": "identifier", "text": "n", "parent": 1037, "children": [], "start_point": {"row": 129, "column": 19}, "end_point": {"row": 129, "column": 20}}, {"id": 1041, "type": "-", "text": "-", "parent": 1036, "children": [], "start_point": {"row": 129, "column": 21}, "end_point": {"row": 129, "column": 22}}, {"id": 1042, "type": "number_literal", "text": "1.0", "parent": 1036, "children": [], "start_point": {"row": 129, "column": 23}, "end_point": {"row": 129, "column": 26}}, {"id": 1043, "type": "/", "text": "/", "parent": 1034, "children": [], "start_point": {"row": 129, "column": 28}, "end_point": {"row": 129, "column": 29}}, {"id": 1044, "type": "parenthesized_expression", "text": "(2.0 * n * a)", "parent": 1034, "children": [1045], "start_point": {"row": 129, "column": 30}, "end_point": {"row": 129, "column": 43}}, {"id": 1045, "type": "binary_expression", "text": "2.0 * n * a", "parent": 1044, "children": [1046, 1050, 1051], "start_point": {"row": 129, "column": 31}, "end_point": {"row": 129, "column": 42}}, {"id": 1046, "type": "binary_expression", "text": "2.0 * n", "parent": 1045, "children": [1047, 1048, 1049], "start_point": {"row": 129, "column": 31}, "end_point": {"row": 129, "column": 38}}, {"id": 1047, "type": "number_literal", "text": "2.0", "parent": 1046, "children": [], "start_point": {"row": 129, "column": 31}, "end_point": {"row": 129, "column": 34}}, {"id": 1048, "type": "*", "text": "*", "parent": 1046, "children": [], "start_point": {"row": 129, "column": 35}, "end_point": {"row": 129, "column": 36}}, {"id": 1049, "type": "identifier", "text": "n", "parent": 1046, "children": [], "start_point": {"row": 129, "column": 37}, "end_point": {"row": 129, "column": 38}}, {"id": 1050, "type": "*", "text": "*", "parent": 1045, "children": [], "start_point": {"row": 129, "column": 39}, "end_point": {"row": 129, "column": 40}}, {"id": 1051, "type": "identifier", "text": "a", "parent": 1045, "children": [], "start_point": {"row": 129, "column": 41}, "end_point": {"row": 129, "column": 42}}, {"id": 1052, "type": "*", "text": "*", "parent": 1033, "children": [], "start_point": {"row": 129, "column": 44}, "end_point": {"row": 129, "column": 45}}, {"id": 1053, "type": "parenthesized_expression", "text": "(ID(n - 1) + sgn * term - 1.0)", "parent": 1033, "children": [1054], "start_point": {"row": 129, "column": 46}, "end_point": {"row": 129, "column": 76}}, {"id": 1054, "type": "binary_expression", "text": "ID(n - 1) + sgn * term - 1.0", "parent": 1053, "children": [1055, 1068, 1069], "start_point": {"row": 129, "column": 47}, "end_point": {"row": 129, "column": 75}}, {"id": 1055, "type": "binary_expression", "text": "ID(n - 1) + sgn * term", "parent": 1054, "children": [1056, 1063, 1064], "start_point": {"row": 129, "column": 47}, "end_point": {"row": 129, "column": 69}}, {"id": 1056, "type": "call_expression", "text": "ID(n - 1)", "parent": 1055, "children": [1057, 1058], "start_point": {"row": 129, "column": 47}, "end_point": {"row": 129, "column": 56}}, {"id": 1057, "type": "identifier", "text": "ID", "parent": 1056, "children": [], "start_point": {"row": 129, "column": 47}, "end_point": {"row": 129, "column": 49}}, {"id": 1058, "type": "argument_list", "text": "(n - 1)", "parent": 1056, "children": [1059], "start_point": {"row": 129, "column": 49}, "end_point": {"row": 129, "column": 56}}, {"id": 1059, "type": "binary_expression", "text": "n - 1", "parent": 1058, "children": [1060, 1061, 1062], "start_point": {"row": 129, "column": 50}, "end_point": {"row": 129, "column": 55}}, {"id": 1060, "type": "identifier", "text": "n", "parent": 1059, "children": [], "start_point": {"row": 129, "column": 50}, "end_point": {"row": 129, "column": 51}}, {"id": 1061, "type": "-", "text": "-", "parent": 1059, "children": [], "start_point": {"row": 129, "column": 52}, "end_point": {"row": 129, "column": 53}}, {"id": 1062, "type": "number_literal", "text": "1", "parent": 1059, "children": [], "start_point": {"row": 129, "column": 54}, "end_point": {"row": 129, "column": 55}}, {"id": 1063, "type": "+", "text": "+", "parent": 1055, "children": [], "start_point": {"row": 129, "column": 57}, "end_point": {"row": 129, "column": 58}}, {"id": 1064, "type": "binary_expression", "text": "sgn * term", "parent": 1055, "children": [1065, 1066, 1067], "start_point": {"row": 129, "column": 59}, "end_point": {"row": 129, "column": 69}}, {"id": 1065, "type": "identifier", "text": "sgn", "parent": 1064, "children": [], "start_point": {"row": 129, "column": 59}, "end_point": {"row": 129, "column": 62}}, {"id": 1066, "type": "*", "text": "*", "parent": 1064, "children": [], "start_point": {"row": 129, "column": 63}, "end_point": {"row": 129, "column": 64}}, {"id": 1067, "type": "identifier", "text": "term", "parent": 1064, "children": [], "start_point": {"row": 129, "column": 65}, "end_point": {"row": 129, "column": 69}}, {"id": 1068, "type": "-", "text": "-", "parent": 1054, "children": [], "start_point": {"row": 129, "column": 70}, "end_point": {"row": 129, "column": 71}}, {"id": 1069, "type": "number_literal", "text": "1.0", "parent": 1054, "children": [], "start_point": {"row": 129, "column": 72}, "end_point": {"row": 129, "column": 75}}, {"id": 1070, "type": "+", "text": "+", "parent": 1032, "children": [], "start_point": {"row": 129, "column": 77}, "end_point": {"row": 129, "column": 78}}, {"id": 1071, "type": "binary_expression", "text": "(2.0 * n - 1.0) / n * IP(n - 1)", "parent": 1032, "children": [1072, 1083, 1084], "start_point": {"row": 130, "column": 12}, "end_point": {"row": 130, "column": 43}}, {"id": 1072, "type": "binary_expression", "text": "(2.0 * n - 1.0) / n", "parent": 1071, "children": [1073, 1081, 1082], "start_point": {"row": 130, "column": 12}, "end_point": {"row": 130, "column": 31}}, {"id": 1073, "type": "parenthesized_expression", "text": "(2.0 * n - 1.0)", "parent": 1072, "children": [1074], "start_point": {"row": 130, "column": 12}, "end_point": {"row": 130, "column": 27}}, {"id": 1074, "type": "binary_expression", "text": "2.0 * n - 1.0", "parent": 1073, "children": [1075, 1079, 1080], "start_point": {"row": 130, "column": 13}, "end_point": {"row": 130, "column": 26}}, {"id": 1075, "type": "binary_expression", "text": "2.0 * n", "parent": 1074, "children": [1076, 1077, 1078], "start_point": {"row": 130, "column": 13}, "end_point": {"row": 130, "column": 20}}, {"id": 1076, "type": "number_literal", "text": "2.0", "parent": 1075, "children": [], "start_point": {"row": 130, "column": 13}, "end_point": {"row": 130, "column": 16}}, {"id": 1077, "type": "*", "text": "*", "parent": 1075, "children": [], "start_point": {"row": 130, "column": 17}, "end_point": {"row": 130, "column": 18}}, {"id": 1078, "type": "identifier", "text": "n", "parent": 1075, "children": [], "start_point": {"row": 130, "column": 19}, "end_point": {"row": 130, "column": 20}}, {"id": 1079, "type": "-", "text": "-", "parent": 1074, "children": [], "start_point": {"row": 130, "column": 21}, "end_point": {"row": 130, "column": 22}}, {"id": 1080, "type": "number_literal", "text": "1.0", "parent": 1074, "children": [], "start_point": {"row": 130, "column": 23}, "end_point": {"row": 130, "column": 26}}, {"id": 1081, "type": "/", "text": "/", "parent": 1072, "children": [], "start_point": {"row": 130, "column": 28}, "end_point": {"row": 130, "column": 29}}, {"id": 1082, "type": "identifier", "text": "n", "parent": 1072, "children": [], "start_point": {"row": 130, "column": 30}, "end_point": {"row": 130, "column": 31}}, {"id": 1083, "type": "*", "text": "*", "parent": 1071, "children": [], "start_point": {"row": 130, "column": 32}, "end_point": {"row": 130, "column": 33}}, {"id": 1084, "type": "call_expression", "text": "IP(n - 1)", "parent": 1071, "children": [1085, 1086], "start_point": {"row": 130, "column": 34}, "end_point": {"row": 130, "column": 43}}, {"id": 1085, "type": "identifier", "text": "IP", "parent": 1084, "children": [], "start_point": {"row": 130, "column": 34}, "end_point": {"row": 130, "column": 36}}, {"id": 1086, "type": "argument_list", "text": "(n - 1)", "parent": 1084, "children": [1087], "start_point": {"row": 130, "column": 36}, "end_point": {"row": 130, "column": 43}}, {"id": 1087, "type": "binary_expression", "text": "n - 1", "parent": 1086, "children": [1088, 1089, 1090], "start_point": {"row": 130, "column": 37}, "end_point": {"row": 130, "column": 42}}, {"id": 1088, "type": "identifier", "text": "n", "parent": 1087, "children": [], "start_point": {"row": 130, "column": 37}, "end_point": {"row": 130, "column": 38}}, {"id": 1089, "type": "-", "text": "-", "parent": 1087, "children": [], "start_point": {"row": 130, "column": 39}, "end_point": {"row": 130, "column": 40}}, {"id": 1090, "type": "number_literal", "text": "1", "parent": 1087, "children": [], "start_point": {"row": 130, "column": 41}, "end_point": {"row": 130, "column": 42}}, {"id": 1091, "type": "-", "text": "-", "parent": 1031, "children": [], "start_point": {"row": 130, "column": 44}, "end_point": {"row": 130, "column": 45}}, {"id": 1092, "type": "binary_expression", "text": "(n - 1.0) / n * IP(n - 2)", "parent": 1031, "children": [1093, 1101, 1102], "start_point": {"row": 130, "column": 46}, "end_point": {"row": 130, "column": 71}}, {"id": 1093, "type": "binary_expression", "text": "(n - 1.0) / n", "parent": 1092, "children": [1094, 1099, 1100], "start_point": {"row": 130, "column": 46}, "end_point": {"row": 130, "column": 59}}, {"id": 1094, "type": "parenthesized_expression", "text": "(n - 1.0)", "parent": 1093, "children": [1095], "start_point": {"row": 130, "column": 46}, "end_point": {"row": 130, "column": 55}}, {"id": 1095, "type": "binary_expression", "text": "n - 1.0", "parent": 1094, "children": [1096, 1097, 1098], "start_point": {"row": 130, "column": 47}, "end_point": {"row": 130, "column": 54}}, {"id": 1096, "type": "identifier", "text": "n", "parent": 1095, "children": [], "start_point": {"row": 130, "column": 47}, "end_point": {"row": 130, "column": 48}}, {"id": 1097, "type": "-", "text": "-", "parent": 1095, "children": [], "start_point": {"row": 130, "column": 49}, "end_point": {"row": 130, "column": 50}}, {"id": 1098, "type": "number_literal", "text": "1.0", "parent": 1095, "children": [], "start_point": {"row": 130, "column": 51}, "end_point": {"row": 130, "column": 54}}, {"id": 1099, "type": "/", "text": "/", "parent": 1093, "children": [], "start_point": {"row": 130, "column": 56}, "end_point": {"row": 130, "column": 57}}, {"id": 1100, "type": "identifier", "text": "n", "parent": 1093, "children": [], "start_point": {"row": 130, "column": 58}, "end_point": {"row": 130, "column": 59}}, {"id": 1101, "type": "*", "text": "*", "parent": 1092, "children": [], "start_point": {"row": 130, "column": 60}, "end_point": {"row": 130, "column": 61}}, {"id": 1102, "type": "call_expression", "text": "IP(n - 2)", "parent": 1092, "children": [1103, 1104], "start_point": {"row": 130, "column": 62}, "end_point": {"row": 130, "column": 71}}, {"id": 1103, "type": "identifier", "text": "IP", "parent": 1102, "children": [], "start_point": {"row": 130, "column": 62}, "end_point": {"row": 130, "column": 64}}, {"id": 1104, "type": "argument_list", "text": "(n - 2)", "parent": 1102, "children": [1105], "start_point": {"row": 130, "column": 64}, "end_point": {"row": 130, "column": 71}}, {"id": 1105, "type": "binary_expression", "text": "n - 2", "parent": 1104, "children": [1106, 1107, 1108], "start_point": {"row": 130, "column": 65}, "end_point": {"row": 130, "column": 70}}, {"id": 1106, "type": "identifier", "text": "n", "parent": 1105, "children": [], "start_point": {"row": 130, "column": 65}, "end_point": {"row": 130, "column": 66}}, {"id": 1107, "type": "-", "text": "-", "parent": 1105, "children": [], "start_point": {"row": 130, "column": 67}, "end_point": {"row": 130, "column": 68}}, {"id": 1108, "type": "number_literal", "text": "2", "parent": 1105, "children": [], "start_point": {"row": 130, "column": 69}, "end_point": {"row": 130, "column": 70}}, {"id": 1109, "type": "assignment_expression", "text": "ID(n) = (2.0 * n - 1.0) * IP(n - 1) + ID(n - 2)", "parent": 1008, "children": [1110, 1114, 1115], "start_point": {"row": 131, "column": 4}, "end_point": {"row": 131, "column": 51}}, {"id": 1110, "type": "call_expression", "text": "ID(n)", "parent": 1109, "children": [1111, 1112], "start_point": {"row": 131, "column": 4}, "end_point": {"row": 131, "column": 9}}, {"id": 1111, "type": "identifier", "text": "ID", "parent": 1110, "children": [], "start_point": {"row": 131, "column": 4}, "end_point": {"row": 131, "column": 6}}, {"id": 1112, "type": "argument_list", "text": "(n)", "parent": 1110, "children": [1113], "start_point": {"row": 131, "column": 6}, "end_point": {"row": 131, "column": 9}}, {"id": 1113, "type": "identifier", "text": "n", "parent": 1112, "children": [], "start_point": {"row": 131, "column": 7}, "end_point": {"row": 131, "column": 8}}, {"id": 1114, "type": "=", "text": "=", "parent": 1109, "children": [], "start_point": {"row": 131, "column": 10}, "end_point": {"row": 131, "column": 11}}, {"id": 1115, "type": "binary_expression", "text": "(2.0 * n - 1.0) * IP(n - 1) + ID(n - 2)", "parent": 1109, "children": [1116, 1133, 1134], "start_point": {"row": 131, "column": 12}, "end_point": {"row": 131, "column": 51}}, {"id": 1116, "type": "binary_expression", "text": "(2.0 * n - 1.0) * IP(n - 1)", "parent": 1115, "children": [1117, 1125, 1126], "start_point": {"row": 131, "column": 12}, "end_point": {"row": 131, "column": 39}}, {"id": 1117, "type": "parenthesized_expression", "text": "(2.0 * n - 1.0)", "parent": 1116, "children": [1118], "start_point": {"row": 131, "column": 12}, "end_point": {"row": 131, "column": 27}}, {"id": 1118, "type": "binary_expression", "text": "2.0 * n - 1.0", "parent": 1117, "children": [1119, 1123, 1124], "start_point": {"row": 131, "column": 13}, "end_point": {"row": 131, "column": 26}}, {"id": 1119, "type": "binary_expression", "text": "2.0 * n", "parent": 1118, "children": [1120, 1121, 1122], "start_point": {"row": 131, "column": 13}, "end_point": {"row": 131, "column": 20}}, {"id": 1120, "type": "number_literal", "text": "2.0", "parent": 1119, "children": [], "start_point": {"row": 131, "column": 13}, "end_point": {"row": 131, "column": 16}}, {"id": 1121, "type": "*", "text": "*", "parent": 1119, "children": [], "start_point": {"row": 131, "column": 17}, "end_point": {"row": 131, "column": 18}}, {"id": 1122, "type": "identifier", "text": "n", "parent": 1119, "children": [], "start_point": {"row": 131, "column": 19}, "end_point": {"row": 131, "column": 20}}, {"id": 1123, "type": "-", "text": "-", "parent": 1118, "children": [], "start_point": {"row": 131, "column": 21}, "end_point": {"row": 131, "column": 22}}, {"id": 1124, "type": "number_literal", "text": "1.0", "parent": 1118, "children": [], "start_point": {"row": 131, "column": 23}, "end_point": {"row": 131, "column": 26}}, {"id": 1125, "type": "*", "text": "*", "parent": 1116, "children": [], "start_point": {"row": 131, "column": 28}, "end_point": {"row": 131, "column": 29}}, {"id": 1126, "type": "call_expression", "text": "IP(n - 1)", "parent": 1116, "children": [1127, 1128], "start_point": {"row": 131, "column": 30}, "end_point": {"row": 131, "column": 39}}, {"id": 1127, "type": "identifier", "text": "IP", "parent": 1126, "children": [], "start_point": {"row": 131, "column": 30}, "end_point": {"row": 131, "column": 32}}, {"id": 1128, "type": "argument_list", "text": "(n - 1)", "parent": 1126, "children": [1129], "start_point": {"row": 131, "column": 32}, "end_point": {"row": 131, "column": 39}}, {"id": 1129, "type": "binary_expression", "text": "n - 1", "parent": 1128, "children": [1130, 1131, 1132], "start_point": {"row": 131, "column": 33}, "end_point": {"row": 131, "column": 38}}, {"id": 1130, "type": "identifier", "text": "n", "parent": 1129, "children": [], "start_point": {"row": 131, "column": 33}, "end_point": {"row": 131, "column": 34}}, {"id": 1131, "type": "-", "text": "-", "parent": 1129, "children": [], "start_point": {"row": 131, "column": 35}, "end_point": {"row": 131, "column": 36}}, {"id": 1132, "type": "number_literal", "text": "1", "parent": 1129, "children": [], "start_point": {"row": 131, "column": 37}, "end_point": {"row": 131, "column": 38}}, {"id": 1133, "type": "+", "text": "+", "parent": 1115, "children": [], "start_point": {"row": 131, "column": 40}, "end_point": {"row": 131, "column": 41}}, {"id": 1134, "type": "call_expression", "text": "ID(n - 2)", "parent": 1115, "children": [1135, 1136], "start_point": {"row": 131, "column": 42}, "end_point": {"row": 131, "column": 51}}, {"id": 1135, "type": "identifier", "text": "ID", "parent": 1134, "children": [], "start_point": {"row": 131, "column": 42}, "end_point": {"row": 131, "column": 44}}, {"id": 1136, "type": "argument_list", "text": "(n - 2)", "parent": 1134, "children": [1137], "start_point": {"row": 131, "column": 44}, "end_point": {"row": 131, "column": 51}}, {"id": 1137, "type": "binary_expression", "text": "n - 2", "parent": 1136, "children": [1138, 1139, 1140], "start_point": {"row": 131, "column": 45}, "end_point": {"row": 131, "column": 50}}, {"id": 1138, "type": "identifier", "text": "n", "parent": 1137, "children": [], "start_point": {"row": 131, "column": 45}, "end_point": {"row": 131, "column": 46}}, {"id": 1139, "type": "-", "text": "-", "parent": 1137, "children": [], "start_point": {"row": 131, "column": 47}, "end_point": {"row": 131, "column": 48}}, {"id": 1140, "type": "number_literal", "text": "2", "parent": 1137, "children": [], "start_point": {"row": 131, "column": 49}, "end_point": {"row": 131, "column": 50}}, {"id": 1141, "type": "assignment_expression", "text": "sgn *= -1", "parent": 1008, "children": [1142, 1143, 1144], "start_point": {"row": 132, "column": 4}, "end_point": {"row": 132, "column": 13}}, {"id": 1142, "type": "identifier", "text": "sgn", "parent": 1141, "children": [], "start_point": {"row": 132, "column": 4}, "end_point": {"row": 132, "column": 7}}, {"id": 1143, "type": "*=", "text": "*=", "parent": 1141, "children": [], "start_point": {"row": 132, "column": 8}, "end_point": {"row": 132, "column": 10}}, {"id": 1144, "type": "number_literal", "text": "-1", "parent": 1141, "children": [], "start_point": {"row": 132, "column": 11}, "end_point": {"row": 132, "column": 13}}, {"id": 1145, "type": "for_statement", "text": "for (int n = 0; n < l + 1; ++n) {\n yn = sqrt(2 * n + 1) * (IP(n) / IP(0));\n y(n * n + n) = yn.value();\n dydsigma(n * n + n) = yn.derivatives()(0);\n }", "parent": 656, "children": [1146, 1152, 1159], "start_point": {"row": 136, "column": 2}, "end_point": {"row": 140, "column": 3}}, {"id": 1146, "type": "declaration", "text": "int n = 0;", "parent": 1145, "children": [1147, 1148], "start_point": {"row": 136, "column": 7}, "end_point": {"row": 136, "column": 17}}, {"id": 1147, "type": "primitive_type", "text": "int", "parent": 1146, "children": [], "start_point": {"row": 136, "column": 7}, "end_point": {"row": 136, "column": 10}}, {"id": 1148, "type": "init_declarator", "text": "n = 0", "parent": 1146, "children": [1149, 1150, 1151], "start_point": {"row": 136, "column": 11}, "end_point": {"row": 136, "column": 16}}, {"id": 1149, "type": "identifier", "text": "n", "parent": 1148, "children": [], "start_point": {"row": 136, "column": 11}, "end_point": {"row": 136, "column": 12}}, {"id": 1150, "type": "=", "text": "=", "parent": 1148, "children": [], "start_point": {"row": 136, "column": 13}, "end_point": {"row": 136, "column": 14}}, {"id": 1151, "type": "number_literal", "text": "0", "parent": 1148, "children": [], "start_point": {"row": 136, "column": 15}, "end_point": {"row": 136, "column": 16}}, {"id": 1152, "type": "binary_expression", "text": "n < l + 1", "parent": 1145, "children": [1153, 1154, 1155], "start_point": {"row": 136, "column": 18}, "end_point": {"row": 136, "column": 27}}, {"id": 1153, "type": "identifier", "text": "n", "parent": 1152, "children": [], "start_point": {"row": 136, "column": 18}, "end_point": {"row": 136, "column": 19}}, {"id": 1154, "type": "<", "text": "<", "parent": 1152, "children": [], "start_point": {"row": 136, "column": 20}, "end_point": {"row": 136, "column": 21}}, {"id": 1155, "type": "binary_expression", "text": "l + 1", "parent": 1152, "children": [1156, 1157, 1158], "start_point": {"row": 136, "column": 22}, "end_point": {"row": 136, "column": 27}}, {"id": 1156, "type": "identifier", "text": "l", "parent": 1155, "children": [], "start_point": {"row": 136, "column": 22}, "end_point": {"row": 136, "column": 23}}, {"id": 1157, "type": "+", "text": "+", "parent": 1155, "children": [], "start_point": {"row": 136, "column": 24}, "end_point": {"row": 136, "column": 25}}, {"id": 1158, "type": "number_literal", "text": "1", "parent": 1155, "children": [], "start_point": {"row": 136, "column": 26}, "end_point": {"row": 136, "column": 27}}, {"id": 1159, "type": "update_expression", "text": "++n", "parent": 1145, "children": [1160, 1161], "start_point": {"row": 136, "column": 29}, "end_point": {"row": 136, "column": 32}}, {"id": 1160, "type": "++", "text": "++", "parent": 1159, "children": [], "start_point": {"row": 136, "column": 29}, "end_point": {"row": 136, "column": 31}}, {"id": 1161, "type": "identifier", "text": "n", "parent": 1159, "children": [], "start_point": {"row": 136, "column": 31}, "end_point": {"row": 136, "column": 32}}, {"id": 1162, "type": "assignment_expression", "text": "yn = sqrt(2 * n + 1) * (IP(n) / IP(0))", "parent": 1145, "children": [1163, 1164, 1165], "start_point": {"row": 137, "column": 4}, "end_point": {"row": 137, "column": 42}}, {"id": 1163, "type": "identifier", "text": "yn", "parent": 1162, "children": [], "start_point": {"row": 137, "column": 4}, "end_point": {"row": 137, "column": 6}}, {"id": 1164, "type": "=", "text": "=", "parent": 1162, "children": [], "start_point": {"row": 137, "column": 7}, "end_point": {"row": 137, "column": 8}}, {"id": 1165, "type": "binary_expression", "text": "sqrt(2 * n + 1) * (IP(n) / IP(0))", "parent": 1162, "children": [1166, 1176, 1177], "start_point": {"row": 137, "column": 9}, "end_point": {"row": 137, "column": 42}}, {"id": 1166, "type": "call_expression", "text": "sqrt(2 * n + 1)", "parent": 1165, "children": [1167, 1168], "start_point": {"row": 137, "column": 9}, "end_point": {"row": 137, "column": 24}}, {"id": 1167, "type": "identifier", "text": "sqrt", "parent": 1166, "children": [], "start_point": {"row": 137, "column": 9}, "end_point": {"row": 137, "column": 13}}, {"id": 1168, "type": "argument_list", "text": "(2 * n + 1)", "parent": 1166, "children": [1169], "start_point": {"row": 137, "column": 13}, "end_point": {"row": 137, "column": 24}}, {"id": 1169, "type": "binary_expression", "text": "2 * n + 1", "parent": 1168, "children": [1170, 1174, 1175], "start_point": {"row": 137, "column": 14}, "end_point": {"row": 137, "column": 23}}, {"id": 1170, "type": "binary_expression", "text": "2 * n", "parent": 1169, "children": [1171, 1172, 1173], "start_point": {"row": 137, "column": 14}, "end_point": {"row": 137, "column": 19}}, {"id": 1171, "type": "number_literal", "text": "2", "parent": 1170, "children": [], "start_point": {"row": 137, "column": 14}, "end_point": {"row": 137, "column": 15}}, {"id": 1172, "type": "*", "text": "*", "parent": 1170, "children": [], "start_point": {"row": 137, "column": 16}, "end_point": {"row": 137, "column": 17}}, {"id": 1173, "type": "identifier", "text": "n", "parent": 1170, "children": [], "start_point": {"row": 137, "column": 18}, "end_point": {"row": 137, "column": 19}}, {"id": 1174, "type": "+", "text": "+", "parent": 1169, "children": [], "start_point": {"row": 137, "column": 20}, "end_point": {"row": 137, "column": 21}}, {"id": 1175, "type": "number_literal", "text": "1", "parent": 1169, "children": [], "start_point": {"row": 137, "column": 22}, "end_point": {"row": 137, "column": 23}}, {"id": 1176, "type": "*", "text": "*", "parent": 1165, "children": [], "start_point": {"row": 137, "column": 25}, "end_point": {"row": 137, "column": 26}}, {"id": 1177, "type": "parenthesized_expression", "text": "(IP(n) / IP(0))", "parent": 1165, "children": [1178], "start_point": {"row": 137, "column": 27}, "end_point": {"row": 137, "column": 42}}, {"id": 1178, "type": "binary_expression", "text": "IP(n) / IP(0)", "parent": 1177, "children": [1179, 1183, 1184], "start_point": {"row": 137, "column": 28}, "end_point": {"row": 137, "column": 41}}, {"id": 1179, "type": "call_expression", "text": "IP(n)", "parent": 1178, "children": [1180, 1181], "start_point": {"row": 137, "column": 28}, "end_point": {"row": 137, "column": 33}}, {"id": 1180, "type": "identifier", "text": "IP", "parent": 1179, "children": [], "start_point": {"row": 137, "column": 28}, "end_point": {"row": 137, "column": 30}}, {"id": 1181, "type": "argument_list", "text": "(n)", "parent": 1179, "children": [1182], "start_point": {"row": 137, "column": 30}, "end_point": {"row": 137, "column": 33}}, {"id": 1182, "type": "identifier", "text": "n", "parent": 1181, "children": [], "start_point": {"row": 137, "column": 31}, "end_point": {"row": 137, "column": 32}}, {"id": 1183, "type": "/", "text": "/", "parent": 1178, "children": [], "start_point": {"row": 137, "column": 34}, "end_point": {"row": 137, "column": 35}}, {"id": 1184, "type": "call_expression", "text": "IP(0)", "parent": 1178, "children": [1185, 1186], "start_point": {"row": 137, "column": 36}, "end_point": {"row": 137, "column": 41}}, {"id": 1185, "type": "identifier", "text": "IP", "parent": 1184, "children": [], "start_point": {"row": 137, "column": 36}, "end_point": {"row": 137, "column": 38}}, {"id": 1186, "type": "argument_list", "text": "(0)", "parent": 1184, "children": [1187], "start_point": {"row": 137, "column": 38}, "end_point": {"row": 137, "column": 41}}, {"id": 1187, "type": "number_literal", "text": "0", "parent": 1186, "children": [], "start_point": {"row": 137, "column": 39}, "end_point": {"row": 137, "column": 40}}, {"id": 1188, "type": "assignment_expression", "text": "y(n * n + n) = yn.value()", "parent": 1145, "children": [1189, 1199, 1200], "start_point": {"row": 138, "column": 4}, "end_point": {"row": 138, "column": 29}}, {"id": 1189, "type": "call_expression", "text": "y(n * n + n)", "parent": 1188, "children": [1190, 1191], "start_point": {"row": 138, "column": 4}, "end_point": {"row": 138, "column": 16}}, {"id": 1190, "type": "identifier", "text": "y", "parent": 1189, "children": [], "start_point": {"row": 138, "column": 4}, "end_point": {"row": 138, "column": 5}}, {"id": 1191, "type": "argument_list", "text": "(n * n + n)", "parent": 1189, "children": [1192], "start_point": {"row": 138, "column": 5}, "end_point": {"row": 138, "column": 16}}, {"id": 1192, "type": "binary_expression", "text": "n * n + n", "parent": 1191, "children": [1193, 1197, 1198], "start_point": {"row": 138, "column": 6}, "end_point": {"row": 138, "column": 15}}, {"id": 1193, "type": "binary_expression", "text": "n * n", "parent": 1192, "children": [1194, 1195, 1196], "start_point": {"row": 138, "column": 6}, "end_point": {"row": 138, "column": 11}}, {"id": 1194, "type": "identifier", "text": "n", "parent": 1193, "children": [], "start_point": {"row": 138, "column": 6}, "end_point": {"row": 138, "column": 7}}, {"id": 1195, "type": "*", "text": "*", "parent": 1193, "children": [], "start_point": {"row": 138, "column": 8}, "end_point": {"row": 138, "column": 9}}, {"id": 1196, "type": "identifier", "text": "n", "parent": 1193, "children": [], "start_point": {"row": 138, "column": 10}, "end_point": {"row": 138, "column": 11}}, {"id": 1197, "type": "+", "text": "+", "parent": 1192, "children": [], "start_point": {"row": 138, "column": 12}, "end_point": {"row": 138, "column": 13}}, {"id": 1198, "type": "identifier", "text": "n", "parent": 1192, "children": [], "start_point": {"row": 138, "column": 14}, "end_point": {"row": 138, "column": 15}}, {"id": 1199, "type": "=", "text": "=", "parent": 1188, "children": [], "start_point": {"row": 138, "column": 17}, "end_point": {"row": 138, "column": 18}}, {"id": 1200, "type": "call_expression", "text": "yn.value()", "parent": 1188, "children": [1201, 1204], "start_point": {"row": 138, "column": 19}, "end_point": {"row": 138, "column": 29}}, {"id": 1201, "type": "field_expression", "text": "yn.value", "parent": 1200, "children": [1202, 1203], "start_point": {"row": 138, "column": 19}, "end_point": {"row": 138, "column": 27}}, {"id": 1202, "type": "identifier", "text": "yn", "parent": 1201, "children": [], "start_point": {"row": 138, "column": 19}, "end_point": {"row": 138, "column": 21}}, {"id": 1203, "type": "field_identifier", "text": "value", "parent": 1201, "children": [], "start_point": {"row": 138, "column": 22}, "end_point": {"row": 138, "column": 27}}, {"id": 1204, "type": "argument_list", "text": "()", "parent": 1200, "children": [], "start_point": {"row": 138, "column": 27}, "end_point": {"row": 138, "column": 29}}, {"id": 1205, "type": "assignment_expression", "text": "dydsigma(n * n + n) = yn.derivatives()(0)", "parent": 1145, "children": [1206, 1216, 1217], "start_point": {"row": 139, "column": 4}, "end_point": {"row": 139, "column": 45}}, {"id": 1206, "type": "call_expression", "text": "dydsigma(n * n + n)", "parent": 1205, "children": [1207, 1208], "start_point": {"row": 139, "column": 4}, "end_point": {"row": 139, "column": 23}}, {"id": 1207, "type": "identifier", "text": "dydsigma", "parent": 1206, "children": [], "start_point": {"row": 139, "column": 4}, "end_point": {"row": 139, "column": 12}}, {"id": 1208, "type": "argument_list", "text": "(n * n + n)", "parent": 1206, "children": [1209], "start_point": {"row": 139, "column": 12}, "end_point": {"row": 139, "column": 23}}, {"id": 1209, "type": "binary_expression", "text": "n * n + n", "parent": 1208, "children": [1210, 1214, 1215], "start_point": {"row": 139, "column": 13}, "end_point": {"row": 139, "column": 22}}, {"id": 1210, "type": "binary_expression", "text": "n * n", "parent": 1209, "children": [1211, 1212, 1213], "start_point": {"row": 139, "column": 13}, "end_point": {"row": 139, "column": 18}}, {"id": 1211, "type": "identifier", "text": "n", "parent": 1210, "children": [], "start_point": {"row": 139, "column": 13}, "end_point": {"row": 139, "column": 14}}, {"id": 1212, "type": "*", "text": "*", "parent": 1210, "children": [], "start_point": {"row": 139, "column": 15}, "end_point": {"row": 139, "column": 16}}, {"id": 1213, "type": "identifier", "text": "n", "parent": 1210, "children": [], "start_point": {"row": 139, "column": 17}, "end_point": {"row": 139, "column": 18}}, {"id": 1214, "type": "+", "text": "+", "parent": 1209, "children": [], "start_point": {"row": 139, "column": 19}, "end_point": {"row": 139, "column": 20}}, {"id": 1215, "type": "identifier", "text": "n", "parent": 1209, "children": [], "start_point": {"row": 139, "column": 21}, "end_point": {"row": 139, "column": 22}}, {"id": 1216, "type": "=", "text": "=", "parent": 1205, "children": [], "start_point": {"row": 139, "column": 24}, "end_point": {"row": 139, "column": 25}}, {"id": 1217, "type": "call_expression", "text": "yn.derivatives()(0)", "parent": 1205, "children": [1218, 1223], "start_point": {"row": 139, "column": 26}, "end_point": {"row": 139, "column": 45}}, {"id": 1218, "type": "call_expression", "text": "yn.derivatives()", "parent": 1217, "children": [1219, 1222], "start_point": {"row": 139, "column": 26}, "end_point": {"row": 139, "column": 42}}, {"id": 1219, "type": "field_expression", "text": "yn.derivatives", "parent": 1218, "children": [1220, 1221], "start_point": {"row": 139, "column": 26}, "end_point": {"row": 139, "column": 40}}, {"id": 1220, "type": "identifier", "text": "yn", "parent": 1219, "children": [], "start_point": {"row": 139, "column": 26}, "end_point": {"row": 139, "column": 28}}, {"id": 1221, "type": "field_identifier", "text": "derivatives", "parent": 1219, "children": [], "start_point": {"row": 139, "column": 29}, "end_point": {"row": 139, "column": 40}}, {"id": 1222, "type": "argument_list", "text": "()", "parent": 1218, "children": [], "start_point": {"row": 139, "column": 40}, "end_point": {"row": 139, "column": 42}}, {"id": 1223, "type": "argument_list", "text": "(0)", "parent": 1217, "children": [1224], "start_point": {"row": 139, "column": 42}, "end_point": {"row": 139, "column": 45}}, {"id": 1224, "type": "number_literal", "text": "0", "parent": 1223, "children": [], "start_point": {"row": 139, "column": 43}, "end_point": {"row": 139, "column": 44}}, {"id": 1225, "type": "declaration", "text": "Scalar tol = 10 * mach_eps<Scalar>();", "parent": 656, "children": [1226, 1227], "start_point": {"row": 143, "column": 2}, "end_point": {"row": 143, "column": 39}}, {"id": 1226, "type": "type_identifier", "text": "Scalar", "parent": 1225, "children": [], "start_point": {"row": 143, "column": 2}, "end_point": {"row": 143, "column": 8}}, {"id": 1227, "type": "init_declarator", "text": "tol = 10 * mach_eps<Scalar>()", "parent": 1225, "children": [1228, 1229, 1230], "start_point": {"row": 143, "column": 9}, "end_point": {"row": 143, "column": 38}}, {"id": 1228, "type": "identifier", "text": "tol", "parent": 1227, "children": [], "start_point": {"row": 143, "column": 9}, "end_point": {"row": 143, "column": 12}}, {"id": 1229, "type": "=", "text": "=", "parent": 1227, "children": [], "start_point": {"row": 143, "column": 13}, "end_point": {"row": 143, "column": 14}}, {"id": 1230, "type": "binary_expression", "text": "10 * mach_eps<Scalar>()", "parent": 1227, "children": [1231, 1238, 1239], "start_point": {"row": 143, "column": 15}, "end_point": {"row": 143, "column": 38}}, {"id": 1231, "type": "binary_expression", "text": "10 * mach_eps<Scalar", "parent": 1230, "children": [1232, 1236, 1237], "start_point": {"row": 143, "column": 15}, "end_point": {"row": 143, "column": 35}}, {"id": 1232, "type": "binary_expression", "text": "10 * mach_eps", "parent": 1231, "children": [1233, 1234, 1235], "start_point": {"row": 143, "column": 15}, "end_point": {"row": 143, "column": 28}}, {"id": 1233, "type": "number_literal", "text": "10", "parent": 1232, "children": [], "start_point": {"row": 143, "column": 15}, "end_point": {"row": 143, "column": 17}}, {"id": 1234, "type": "*", "text": "*", "parent": 1232, "children": [], "start_point": {"row": 143, "column": 18}, "end_point": {"row": 143, "column": 19}}, {"id": 1235, "type": "identifier", "text": "mach_eps", "parent": 1232, "children": [], "start_point": {"row": 143, "column": 20}, "end_point": {"row": 143, "column": 28}}, {"id": 1236, "type": "<", "text": "<", "parent": 1231, "children": [], "start_point": {"row": 143, "column": 28}, "end_point": {"row": 143, "column": 29}}, {"id": 1237, "type": "identifier", "text": "Scalar", "parent": 1231, "children": [], "start_point": {"row": 143, "column": 29}, "end_point": {"row": 143, "column": 35}}, {"id": 1238, "type": ">", "text": ">", "parent": 1230, "children": [], "start_point": {"row": 143, "column": 35}, "end_point": {"row": 143, "column": 36}}, {"id": 1239, "type": "parenthesized_expression", "text": "()", "parent": 1230, "children": [1240], "start_point": {"row": 143, "column": 36}, "end_point": {"row": 143, "column": 38}}, {"id": 1240, "type": "identifier", "text": "", "parent": 1239, "children": [], "start_point": {"row": 143, "column": 37}, "end_point": {"row": 143, "column": 37}}, {"id": 1241, "type": "binary_expression", "text": "UnitVector<Scalar> u", "parent": 656, "children": [1242, 1246, 1247], "start_point": {"row": 144, "column": 2}, "end_point": {"row": 144, "column": 22}}, {"id": 1242, "type": "binary_expression", "text": "UnitVector<Scalar", "parent": 1241, "children": [1243, 1244, 1245], "start_point": {"row": 144, "column": 2}, "end_point": {"row": 144, "column": 19}}, {"id": 1243, "type": "identifier", "text": "UnitVector", "parent": 1242, "children": [], "start_point": {"row": 144, "column": 2}, "end_point": {"row": 144, "column": 12}}, {"id": 1244, "type": "<", "text": "<", "parent": 1242, "children": [], "start_point": {"row": 144, "column": 12}, "end_point": {"row": 144, "column": 13}}, {"id": 1245, "type": "identifier", "text": "Scalar", "parent": 1242, "children": [], "start_point": {"row": 144, "column": 13}, "end_point": {"row": 144, "column": 19}}, {"id": 1246, "type": ">", "text": ">", "parent": 1241, "children": [], "start_point": {"row": 144, "column": 19}, "end_point": {"row": 144, "column": 20}}, {"id": 1247, "type": "identifier", "text": "u", "parent": 1241, "children": [], "start_point": {"row": 144, "column": 21}, "end_point": {"row": 144, "column": 22}}, {"id": 1248, "type": "declaration", "text": "Scalar normu;", "parent": 656, "children": [1249, 1250], "start_point": {"row": 145, "column": 2}, "end_point": {"row": 145, "column": 15}}, {"id": 1249, "type": "type_identifier", "text": "Scalar", "parent": 1248, "children": [], "start_point": {"row": 145, "column": 2}, "end_point": {"row": 145, "column": 8}}, {"id": 1250, "type": "identifier", "text": "normu", "parent": 1248, "children": [], "start_point": {"row": 145, "column": 9}, "end_point": {"row": 145, "column": 14}}, {"id": 1251, "type": "declaration", "text": "Scalar theta;", "parent": 656, "children": [1252, 1253], "start_point": {"row": 146, "column": 2}, "end_point": {"row": 146, "column": 15}}, {"id": 1252, "type": "type_identifier", "text": "Scalar", "parent": 1251, "children": [], "start_point": {"row": 146, "column": 2}, "end_point": {"row": 146, "column": 8}}, {"id": 1253, "type": "identifier", "text": "theta", "parent": 1251, "children": [], "start_point": {"row": 146, "column": 9}, "end_point": {"row": 146, "column": 14}}, {"id": 1254, "type": "declaration", "text": "Scalar clat = cos(lat);", "parent": 656, "children": [1255, 1256], "start_point": {"row": 147, "column": 2}, "end_point": {"row": 147, "column": 25}}, {"id": 1255, "type": "type_identifier", "text": "Scalar", "parent": 1254, "children": [], "start_point": {"row": 147, "column": 2}, "end_point": {"row": 147, "column": 8}}, {"id": 1256, "type": "init_declarator", "text": "clat = cos(lat)", "parent": 1254, "children": [1257, 1258, 1259], "start_point": {"row": 147, "column": 9}, "end_point": {"row": 147, "column": 24}}, {"id": 1257, "type": "identifier", "text": "clat", "parent": 1256, "children": [], "start_point": {"row": 147, "column": 9}, "end_point": {"row": 147, "column": 13}}, {"id": 1258, "type": "=", "text": "=", "parent": 1256, "children": [], "start_point": {"row": 147, "column": 14}, "end_point": {"row": 147, "column": 15}}, {"id": 1259, "type": "call_expression", "text": "cos(lat)", "parent": 1256, "children": [1260, 1261], "start_point": {"row": 147, "column": 16}, "end_point": {"row": 147, "column": 24}}, {"id": 1260, "type": "identifier", "text": "cos", "parent": 1259, "children": [], "start_point": {"row": 147, "column": 16}, "end_point": {"row": 147, "column": 19}}, {"id": 1261, "type": "argument_list", "text": "(lat)", "parent": 1259, "children": [1262], "start_point": {"row": 147, "column": 19}, "end_point": {"row": 147, "column": 24}}, {"id": 1262, "type": "identifier", "text": "lat", "parent": 1261, "children": [], "start_point": {"row": 147, "column": 20}, "end_point": {"row": 147, "column": 23}}, {"id": 1263, "type": "declaration", "text": "Scalar clon = cos(lon);", "parent": 656, "children": [1264, 1265], "start_point": {"row": 148, "column": 2}, "end_point": {"row": 148, "column": 25}}, {"id": 1264, "type": "type_identifier", "text": "Scalar", "parent": 1263, "children": [], "start_point": {"row": 148, "column": 2}, "end_point": {"row": 148, "column": 8}}, {"id": 1265, "type": "init_declarator", "text": "clon = cos(lon)", "parent": 1263, "children": [1266, 1267, 1268], "start_point": {"row": 148, "column": 9}, "end_point": {"row": 148, "column": 24}}, {"id": 1266, "type": "identifier", "text": "clon", "parent": 1265, "children": [], "start_point": {"row": 148, "column": 9}, "end_point": {"row": 148, "column": 13}}, {"id": 1267, "type": "=", "text": "=", "parent": 1265, "children": [], "start_point": {"row": 148, "column": 14}, "end_point": {"row": 148, "column": 15}}, {"id": 1268, "type": "call_expression", "text": "cos(lon)", "parent": 1265, "children": [1269, 1270], "start_point": {"row": 148, "column": 16}, "end_point": {"row": 148, "column": 24}}, {"id": 1269, "type": "identifier", "text": "cos", "parent": 1268, "children": [], "start_point": {"row": 148, "column": 16}, "end_point": {"row": 148, "column": 19}}, {"id": 1270, "type": "argument_list", "text": "(lon)", "parent": 1268, "children": [1271], "start_point": {"row": 148, "column": 19}, "end_point": {"row": 148, "column": 24}}, {"id": 1271, "type": "identifier", "text": "lon", "parent": 1270, "children": [], "start_point": {"row": 148, "column": 20}, "end_point": {"row": 148, "column": 23}}, {"id": 1272, "type": "declaration", "text": "Scalar slat = sin(lat);", "parent": 656, "children": [1273, 1274], "start_point": {"row": 149, "column": 2}, "end_point": {"row": 149, "column": 25}}, {"id": 1273, "type": "type_identifier", "text": "Scalar", "parent": 1272, "children": [], "start_point": {"row": 149, "column": 2}, "end_point": {"row": 149, "column": 8}}, {"id": 1274, "type": "init_declarator", "text": "slat = sin(lat)", "parent": 1272, "children": [1275, 1276, 1277], "start_point": {"row": 149, "column": 9}, "end_point": {"row": 149, "column": 24}}, {"id": 1275, "type": "identifier", "text": "slat", "parent": 1274, "children": [], "start_point": {"row": 149, "column": 9}, "end_point": {"row": 149, "column": 13}}, {"id": 1276, "type": "=", "text": "=", "parent": 1274, "children": [], "start_point": {"row": 149, "column": 14}, "end_point": {"row": 149, "column": 15}}, {"id": 1277, "type": "call_expression", "text": "sin(lat)", "parent": 1274, "children": [1278, 1279], "start_point": {"row": 149, "column": 16}, "end_point": {"row": 149, "column": 24}}, {"id": 1278, "type": "identifier", "text": "sin", "parent": 1277, "children": [], "start_point": {"row": 149, "column": 16}, "end_point": {"row": 149, "column": 19}}, {"id": 1279, "type": "argument_list", "text": "(lat)", "parent": 1277, "children": [1280], "start_point": {"row": 149, "column": 19}, "end_point": {"row": 149, "column": 24}}, {"id": 1280, "type": "identifier", "text": "lat", "parent": 1279, "children": [], "start_point": {"row": 149, "column": 20}, "end_point": {"row": 149, "column": 23}}, {"id": 1281, "type": "declaration", "text": "Scalar slon = sin(lon);", "parent": 656, "children": [1282, 1283], "start_point": {"row": 150, "column": 2}, "end_point": {"row": 150, "column": 25}}, {"id": 1282, "type": "type_identifier", "text": "Scalar", "parent": 1281, "children": [], "start_point": {"row": 150, "column": 2}, "end_point": {"row": 150, "column": 8}}, {"id": 1283, "type": "init_declarator", "text": "slon = sin(lon)", "parent": 1281, "children": [1284, 1285, 1286], "start_point": {"row": 150, "column": 9}, "end_point": {"row": 150, "column": 24}}, {"id": 1284, "type": "identifier", "text": "slon", "parent": 1283, "children": [], "start_point": {"row": 150, "column": 9}, "end_point": {"row": 150, "column": 13}}, {"id": 1285, "type": "=", "text": "=", "parent": 1283, "children": [], "start_point": {"row": 150, "column": 14}, "end_point": {"row": 150, "column": 15}}, {"id": 1286, "type": "call_expression", "text": "sin(lon)", "parent": 1283, "children": [1287, 1288], "start_point": {"row": 150, "column": 16}, "end_point": {"row": 150, "column": 24}}, {"id": 1287, "type": "identifier", "text": "sin", "parent": 1286, "children": [], "start_point": {"row": 150, "column": 16}, "end_point": {"row": 150, "column": 19}}, {"id": 1288, "type": "argument_list", "text": "(lon)", "parent": 1286, "children": [1289], "start_point": {"row": 150, "column": 19}, "end_point": {"row": 150, "column": 24}}, {"id": 1289, "type": "identifier", "text": "lon", "parent": 1288, "children": [], "start_point": {"row": 150, "column": 20}, "end_point": {"row": 150, "column": 23}}, {"id": 1290, "type": "if_statement", "text": "if ((abs(lat) > tol) || (abs(lon) > tol)) {\n Scalar costheta = 0.5 * (clon + clat + clon * clat - 1);\n u << -slat * (1 + clon), slon * (1 + clat), slon * slat;\n normu = u.norm();\n u /= normu;\n Scalar sintheta = 0.5 * normu;\n theta = atan2(sintheta, costheta);\n } else {\n theta = 0.0;\n u << 0, 1, 0;\n normu = 1;\n }", "parent": 656, "children": [1291, 1388], "start_point": {"row": 153, "column": 2}, "end_point": {"row": 164, "column": 3}}, {"id": 1291, "type": "parenthesized_expression", "text": "((abs(lat) > tol) || (abs(lon) > tol))", "parent": 1290, "children": [1292], "start_point": {"row": 153, "column": 5}, "end_point": {"row": 153, "column": 43}}, {"id": 1292, "type": "binary_expression", "text": "(abs(lat) > tol) || (abs(lon) > tol)", "parent": 1291, "children": [1293, 1301, 1302], "start_point": {"row": 153, "column": 6}, "end_point": {"row": 153, "column": 42}}, {"id": 1293, "type": "parenthesized_expression", "text": "(abs(lat) > tol)", "parent": 1292, "children": [1294], "start_point": {"row": 153, "column": 6}, "end_point": {"row": 153, "column": 22}}, {"id": 1294, "type": "binary_expression", "text": "abs(lat) > tol", "parent": 1293, "children": [1295, 1299, 1300], "start_point": {"row": 153, "column": 7}, "end_point": {"row": 153, "column": 21}}, {"id": 1295, "type": "call_expression", "text": "abs(lat)", "parent": 1294, "children": [1296, 1297], "start_point": {"row": 153, "column": 7}, "end_point": {"row": 153, "column": 15}}, {"id": 1296, "type": "identifier", "text": "abs", "parent": 1295, "children": [], "start_point": {"row": 153, "column": 7}, "end_point": {"row": 153, "column": 10}}, {"id": 1297, "type": "argument_list", "text": "(lat)", "parent": 1295, "children": [1298], "start_point": {"row": 153, "column": 10}, "end_point": {"row": 153, "column": 15}}, {"id": 1298, "type": "identifier", "text": "lat", "parent": 1297, "children": [], "start_point": {"row": 153, "column": 11}, "end_point": {"row": 153, "column": 14}}, {"id": 1299, "type": ">", "text": ">", "parent": 1294, "children": [], "start_point": {"row": 153, "column": 16}, "end_point": {"row": 153, "column": 17}}, {"id": 1300, "type": "identifier", "text": "tol", "parent": 1294, "children": [], "start_point": {"row": 153, "column": 18}, "end_point": {"row": 153, "column": 21}}, {"id": 1301, "type": "||", "text": "||", "parent": 1292, "children": [], "start_point": {"row": 153, "column": 23}, "end_point": {"row": 153, "column": 25}}, {"id": 1302, "type": "parenthesized_expression", "text": "(abs(lon) > tol)", "parent": 1292, "children": [1303], "start_point": {"row": 153, "column": 26}, "end_point": {"row": 153, "column": 42}}, {"id": 1303, "type": "binary_expression", "text": "abs(lon) > tol", "parent": 1302, "children": [1304, 1308, 1309], "start_point": {"row": 153, "column": 27}, "end_point": {"row": 153, "column": 41}}, {"id": 1304, "type": "call_expression", "text": "abs(lon)", "parent": 1303, "children": [1305, 1306], "start_point": {"row": 153, "column": 27}, "end_point": {"row": 153, "column": 35}}, {"id": 1305, "type": "identifier", "text": "abs", "parent": 1304, "children": [], "start_point": {"row": 153, "column": 27}, "end_point": {"row": 153, "column": 30}}, {"id": 1306, "type": "argument_list", "text": "(lon)", "parent": 1304, "children": [1307], "start_point": {"row": 153, "column": 30}, "end_point": {"row": 153, "column": 35}}, {"id": 1307, "type": "identifier", "text": "lon", "parent": 1306, "children": [], "start_point": {"row": 153, "column": 31}, "end_point": {"row": 153, "column": 34}}, {"id": 1308, "type": ">", "text": ">", "parent": 1303, "children": [], "start_point": {"row": 153, "column": 36}, "end_point": {"row": 153, "column": 37}}, {"id": 1309, "type": "identifier", "text": "tol", "parent": 1303, "children": [], "start_point": {"row": 153, "column": 38}, "end_point": {"row": 153, "column": 41}}, {"id": 1310, "type": "declaration", "text": "Scalar costheta = 0.5 * (clon + clat + clon * clat - 1);", "parent": 1290, "children": [1311, 1312], "start_point": {"row": 154, "column": 4}, "end_point": {"row": 154, "column": 60}}, {"id": 1311, "type": "type_identifier", "text": "Scalar", "parent": 1310, "children": [], "start_point": {"row": 154, "column": 4}, "end_point": {"row": 154, "column": 10}}, {"id": 1312, "type": "init_declarator", "text": "costheta = 0.5 * (clon + clat + clon * clat - 1)", "parent": 1310, "children": [1313, 1314, 1315], "start_point": {"row": 154, "column": 11}, "end_point": {"row": 154, "column": 59}}, {"id": 1313, "type": "identifier", "text": "costheta", "parent": 1312, "children": [], "start_point": {"row": 154, "column": 11}, "end_point": {"row": 154, "column": 19}}, {"id": 1314, "type": "=", "text": "=", "parent": 1312, "children": [], "start_point": {"row": 154, "column": 20}, "end_point": {"row": 154, "column": 21}}, {"id": 1315, "type": "binary_expression", "text": "0.5 * (clon + clat + clon * clat - 1)", "parent": 1312, "children": [1316, 1317, 1318], "start_point": {"row": 154, "column": 22}, "end_point": {"row": 154, "column": 59}}, {"id": 1316, "type": "number_literal", "text": "0.5", "parent": 1315, "children": [], "start_point": {"row": 154, "column": 22}, "end_point": {"row": 154, "column": 25}}, {"id": 1317, "type": "*", "text": "*", "parent": 1315, "children": [], "start_point": {"row": 154, "column": 26}, "end_point": {"row": 154, "column": 27}}, {"id": 1318, "type": "parenthesized_expression", "text": "(clon + clat + clon * clat - 1)", "parent": 1315, "children": [1319], "start_point": {"row": 154, "column": 28}, "end_point": {"row": 154, "column": 59}}, {"id": 1319, "type": "binary_expression", "text": "clon + clat + clon * clat - 1", "parent": 1318, "children": [1320, 1330, 1331], "start_point": {"row": 154, "column": 29}, "end_point": {"row": 154, "column": 58}}, {"id": 1320, "type": "binary_expression", "text": "clon + clat + clon * clat", "parent": 1319, "children": [1321, 1325, 1326], "start_point": {"row": 154, "column": 29}, "end_point": {"row": 154, "column": 54}}, {"id": 1321, "type": "binary_expression", "text": "clon + clat", "parent": 1320, "children": [1322, 1323, 1324], "start_point": {"row": 154, "column": 29}, "end_point": {"row": 154, "column": 40}}, {"id": 1322, "type": "identifier", "text": "clon", "parent": 1321, "children": [], "start_point": {"row": 154, "column": 29}, "end_point": {"row": 154, "column": 33}}, {"id": 1323, "type": "+", "text": "+", "parent": 1321, "children": [], "start_point": {"row": 154, "column": 34}, "end_point": {"row": 154, "column": 35}}, {"id": 1324, "type": "identifier", "text": "clat", "parent": 1321, "children": [], "start_point": {"row": 154, "column": 36}, "end_point": {"row": 154, "column": 40}}, {"id": 1325, "type": "+", "text": "+", "parent": 1320, "children": [], "start_point": {"row": 154, "column": 41}, "end_point": {"row": 154, "column": 42}}, {"id": 1326, "type": "binary_expression", "text": "clon * clat", "parent": 1320, "children": [1327, 1328, 1329], "start_point": {"row": 154, "column": 43}, "end_point": {"row": 154, "column": 54}}, {"id": 1327, "type": "identifier", "text": "clon", "parent": 1326, "children": [], "start_point": {"row": 154, "column": 43}, "end_point": {"row": 154, "column": 47}}, {"id": 1328, "type": "*", "text": "*", "parent": 1326, "children": [], "start_point": {"row": 154, "column": 48}, "end_point": {"row": 154, "column": 49}}, {"id": 1329, "type": "identifier", "text": "clat", "parent": 1326, "children": [], "start_point": {"row": 154, "column": 50}, "end_point": {"row": 154, "column": 54}}, {"id": 1330, "type": "-", "text": "-", "parent": 1319, "children": [], "start_point": {"row": 154, "column": 55}, "end_point": {"row": 154, "column": 56}}, {"id": 1331, "type": "number_literal", "text": "1", "parent": 1319, "children": [], "start_point": {"row": 154, "column": 57}, "end_point": {"row": 154, "column": 58}}, {"id": 1332, "type": "comma_expression", "text": "u << -slat * (1 + clon), slon * (1 + clat), slon * slat", "parent": 1290, "children": [1333, 1346], "start_point": {"row": 155, "column": 4}, "end_point": {"row": 155, "column": 59}}, {"id": 1333, "type": "binary_expression", "text": "u << -slat * (1 + clon)", "parent": 1332, "children": [1334, 1335, 1336], "start_point": {"row": 155, "column": 4}, "end_point": {"row": 155, "column": 27}}, {"id": 1334, "type": "identifier", "text": "u", "parent": 1333, "children": [], "start_point": {"row": 155, "column": 4}, "end_point": {"row": 155, "column": 5}}, {"id": 1335, "type": "<<", "text": "<<", "parent": 1333, "children": [], "start_point": {"row": 155, "column": 6}, "end_point": {"row": 155, "column": 8}}, {"id": 1336, "type": "binary_expression", "text": "-slat * (1 + clon)", "parent": 1333, "children": [1337, 1340, 1341], "start_point": {"row": 155, "column": 9}, "end_point": {"row": 155, "column": 27}}, {"id": 1337, "type": "unary_expression", "text": "-slat", "parent": 1336, "children": [1338, 1339], "start_point": {"row": 155, "column": 9}, "end_point": {"row": 155, "column": 14}}, {"id": 1338, "type": "-", "text": "-", "parent": 1337, "children": [], "start_point": {"row": 155, "column": 9}, "end_point": {"row": 155, "column": 10}}, {"id": 1339, "type": "identifier", "text": "slat", "parent": 1337, "children": [], "start_point": {"row": 155, "column": 10}, "end_point": {"row": 155, "column": 14}}, {"id": 1340, "type": "*", "text": "*", "parent": 1336, "children": [], "start_point": {"row": 155, "column": 15}, "end_point": {"row": 155, "column": 16}}, {"id": 1341, "type": "parenthesized_expression", "text": "(1 + clon)", "parent": 1336, "children": [1342], "start_point": {"row": 155, "column": 17}, "end_point": {"row": 155, "column": 27}}, {"id": 1342, "type": "binary_expression", "text": "1 + clon", "parent": 1341, "children": [1343, 1344, 1345], "start_point": {"row": 155, "column": 18}, "end_point": {"row": 155, "column": 26}}, {"id": 1343, "type": "number_literal", "text": "1", "parent": 1342, "children": [], "start_point": {"row": 155, "column": 18}, "end_point": {"row": 155, "column": 19}}, {"id": 1344, "type": "+", "text": "+", "parent": 1342, "children": [], "start_point": {"row": 155, "column": 20}, "end_point": {"row": 155, "column": 21}}, {"id": 1345, "type": "identifier", "text": "clon", "parent": 1342, "children": [], "start_point": {"row": 155, "column": 22}, "end_point": {"row": 155, "column": 26}}, {"id": 1346, "type": "comma_expression", "text": "slon * (1 + clat), slon * slat", "parent": 1332, "children": [1347, 1355], "start_point": {"row": 155, "column": 29}, "end_point": {"row": 155, "column": 59}}, {"id": 1347, "type": "binary_expression", "text": "slon * (1 + clat)", "parent": 1346, "children": [1348, 1349, 1350], "start_point": {"row": 155, "column": 29}, "end_point": {"row": 155, "column": 46}}, {"id": 1348, "type": "identifier", "text": "slon", "parent": 1347, "children": [], "start_point": {"row": 155, "column": 29}, "end_point": {"row": 155, "column": 33}}, {"id": 1349, "type": "*", "text": "*", "parent": 1347, "children": [], "start_point": {"row": 155, "column": 34}, "end_point": {"row": 155, "column": 35}}, {"id": 1350, "type": "parenthesized_expression", "text": "(1 + clat)", "parent": 1347, "children": [1351], "start_point": {"row": 155, "column": 36}, "end_point": {"row": 155, "column": 46}}, {"id": 1351, "type": "binary_expression", "text": "1 + clat", "parent": 1350, "children": [1352, 1353, 1354], "start_point": {"row": 155, "column": 37}, "end_point": {"row": 155, "column": 45}}, {"id": 1352, "type": "number_literal", "text": "1", "parent": 1351, "children": [], "start_point": {"row": 155, "column": 37}, "end_point": {"row": 155, "column": 38}}, {"id": 1353, "type": "+", "text": "+", "parent": 1351, "children": [], "start_point": {"row": 155, "column": 39}, "end_point": {"row": 155, "column": 40}}, {"id": 1354, "type": "identifier", "text": "clat", "parent": 1351, "children": [], "start_point": {"row": 155, "column": 41}, "end_point": {"row": 155, "column": 45}}, {"id": 1355, "type": "binary_expression", "text": "slon * slat", "parent": 1346, "children": [1356, 1357, 1358], "start_point": {"row": 155, "column": 48}, "end_point": {"row": 155, "column": 59}}, {"id": 1356, "type": "identifier", "text": "slon", "parent": 1355, "children": [], "start_point": {"row": 155, "column": 48}, "end_point": {"row": 155, "column": 52}}, {"id": 1357, "type": "*", "text": "*", "parent": 1355, "children": [], "start_point": {"row": 155, "column": 53}, "end_point": {"row": 155, "column": 54}}, {"id": 1358, "type": "identifier", "text": "slat", "parent": 1355, "children": [], "start_point": {"row": 155, "column": 55}, "end_point": {"row": 155, "column": 59}}, {"id": 1359, "type": "assignment_expression", "text": "normu = u.norm()", "parent": 1290, "children": [1360, 1361, 1362], "start_point": {"row": 156, "column": 4}, "end_point": {"row": 156, "column": 20}}, {"id": 1360, "type": "identifier", "text": "normu", "parent": 1359, "children": [], "start_point": {"row": 156, "column": 4}, "end_point": {"row": 156, "column": 9}}, {"id": 1361, "type": "=", "text": "=", "parent": 1359, "children": [], "start_point": {"row": 156, "column": 10}, "end_point": {"row": 156, "column": 11}}, {"id": 1362, "type": "call_expression", "text": "u.norm()", "parent": 1359, "children": [1363, 1366], "start_point": {"row": 156, "column": 12}, "end_point": {"row": 156, "column": 20}}, {"id": 1363, "type": "field_expression", "text": "u.norm", "parent": 1362, "children": [1364, 1365], "start_point": {"row": 156, "column": 12}, "end_point": {"row": 156, "column": 18}}, {"id": 1364, "type": "identifier", "text": "u", "parent": 1363, "children": [], "start_point": {"row": 156, "column": 12}, "end_point": {"row": 156, "column": 13}}, {"id": 1365, "type": "field_identifier", "text": "norm", "parent": 1363, "children": [], "start_point": {"row": 156, "column": 14}, "end_point": {"row": 156, "column": 18}}, {"id": 1366, "type": "argument_list", "text": "()", "parent": 1362, "children": [], "start_point": {"row": 156, "column": 18}, "end_point": {"row": 156, "column": 20}}, {"id": 1367, "type": "assignment_expression", "text": "u /= normu", "parent": 1290, "children": [1368, 1369, 1370], "start_point": {"row": 157, "column": 4}, "end_point": {"row": 157, "column": 14}}, {"id": 1368, "type": "identifier", "text": "u", "parent": 1367, "children": [], "start_point": {"row": 157, "column": 4}, "end_point": {"row": 157, "column": 5}}, {"id": 1369, "type": "/=", "text": "/=", "parent": 1367, "children": [], "start_point": {"row": 157, "column": 6}, "end_point": {"row": 157, "column": 8}}, {"id": 1370, "type": "identifier", "text": "normu", "parent": 1367, "children": [], "start_point": {"row": 157, "column": 9}, "end_point": {"row": 157, "column": 14}}, {"id": 1371, "type": "declaration", "text": "Scalar sintheta = 0.5 * normu;", "parent": 1290, "children": [1372, 1373], "start_point": {"row": 158, "column": 4}, "end_point": {"row": 158, "column": 34}}, {"id": 1372, "type": "type_identifier", "text": "Scalar", "parent": 1371, "children": [], "start_point": {"row": 158, "column": 4}, "end_point": {"row": 158, "column": 10}}, {"id": 1373, "type": "init_declarator", "text": "sintheta = 0.5 * normu", "parent": 1371, "children": [1374, 1375, 1376], "start_point": {"row": 158, "column": 11}, "end_point": {"row": 158, "column": 33}}, {"id": 1374, "type": "identifier", "text": "sintheta", "parent": 1373, "children": [], "start_point": {"row": 158, "column": 11}, "end_point": {"row": 158, "column": 19}}, {"id": 1375, "type": "=", "text": "=", "parent": 1373, "children": [], "start_point": {"row": 158, "column": 20}, "end_point": {"row": 158, "column": 21}}, {"id": 1376, "type": "binary_expression", "text": "0.5 * normu", "parent": 1373, "children": [1377, 1378, 1379], "start_point": {"row": 158, "column": 22}, "end_point": {"row": 158, "column": 33}}, {"id": 1377, "type": "number_literal", "text": "0.5", "parent": 1376, "children": [], "start_point": {"row": 158, "column": 22}, "end_point": {"row": 158, "column": 25}}, {"id": 1378, "type": "*", "text": "*", "parent": 1376, "children": [], "start_point": {"row": 158, "column": 26}, "end_point": {"row": 158, "column": 27}}, {"id": 1379, "type": "identifier", "text": "normu", "parent": 1376, "children": [], "start_point": {"row": 158, "column": 28}, "end_point": {"row": 158, "column": 33}}, {"id": 1380, "type": "assignment_expression", "text": "theta = atan2(sintheta, costheta)", "parent": 1290, "children": [1381, 1382, 1383], "start_point": {"row": 159, "column": 4}, "end_point": {"row": 159, "column": 37}}, {"id": 1381, "type": "identifier", "text": "theta", "parent": 1380, "children": [], "start_point": {"row": 159, "column": 4}, "end_point": {"row": 159, "column": 9}}, {"id": 1382, "type": "=", "text": "=", "parent": 1380, "children": [], "start_point": {"row": 159, "column": 10}, "end_point": {"row": 159, "column": 11}}, {"id": 1383, "type": "call_expression", "text": "atan2(sintheta, costheta)", "parent": 1380, "children": [1384, 1385], "start_point": {"row": 159, "column": 12}, "end_point": {"row": 159, "column": 37}}, {"id": 1384, "type": "identifier", "text": "atan2", "parent": 1383, "children": [], "start_point": {"row": 159, "column": 12}, "end_point": {"row": 159, "column": 17}}, {"id": 1385, "type": "argument_list", "text": "(sintheta, costheta)", "parent": 1383, "children": [1386, 1387], "start_point": {"row": 159, "column": 17}, "end_point": {"row": 159, "column": 37}}, {"id": 1386, "type": "identifier", "text": "sintheta", "parent": 1385, "children": [], "start_point": {"row": 159, "column": 18}, "end_point": {"row": 159, "column": 26}}, {"id": 1387, "type": "identifier", "text": "costheta", "parent": 1385, "children": [], "start_point": {"row": 159, "column": 28}, "end_point": {"row": 159, "column": 36}}, {"id": 1388, "type": "else_clause", "text": "else {\n theta = 0.0;\n u << 0, 1, 0;\n normu = 1;\n }", "parent": 1290, "children": [], "start_point": {"row": 160, "column": 4}, "end_point": {"row": 164, "column": 3}}, {"id": 1389, "type": "assignment_expression", "text": "theta = 0.0", "parent": 1388, "children": [1390, 1391, 1392], "start_point": {"row": 161, "column": 4}, "end_point": {"row": 161, "column": 15}}, {"id": 1390, "type": "identifier", "text": "theta", "parent": 1389, "children": [], "start_point": {"row": 161, "column": 4}, "end_point": {"row": 161, "column": 9}}, {"id": 1391, "type": "=", "text": "=", "parent": 1389, "children": [], "start_point": {"row": 161, "column": 10}, "end_point": {"row": 161, "column": 11}}, {"id": 1392, "type": "number_literal", "text": "0.0", "parent": 1389, "children": [], "start_point": {"row": 161, "column": 12}, "end_point": {"row": 161, "column": 15}}, {"id": 1393, "type": "comma_expression", "text": "u << 0, 1, 0", "parent": 1388, "children": [1394, 1398], "start_point": {"row": 162, "column": 4}, "end_point": {"row": 162, "column": 16}}, {"id": 1394, "type": "binary_expression", "text": "u << 0", "parent": 1393, "children": [1395, 1396, 1397], "start_point": {"row": 162, "column": 4}, "end_point": {"row": 162, "column": 10}}, {"id": 1395, "type": "identifier", "text": "u", "parent": 1394, "children": [], "start_point": {"row": 162, "column": 4}, "end_point": {"row": 162, "column": 5}}, {"id": 1396, "type": "<<", "text": "<<", "parent": 1394, "children": [], "start_point": {"row": 162, "column": 6}, "end_point": {"row": 162, "column": 8}}, {"id": 1397, "type": "number_literal", "text": "0", "parent": 1394, "children": [], "start_point": {"row": 162, "column": 9}, "end_point": {"row": 162, "column": 10}}, {"id": 1398, "type": "comma_expression", "text": "1, 0", "parent": 1393, "children": [1399, 1400], "start_point": {"row": 162, "column": 12}, "end_point": {"row": 162, "column": 16}}, {"id": 1399, "type": "number_literal", "text": "1", "parent": 1398, "children": [], "start_point": {"row": 162, "column": 12}, "end_point": {"row": 162, "column": 13}}, {"id": 1400, "type": "number_literal", "text": "0", "parent": 1398, "children": [], "start_point": {"row": 162, "column": 15}, "end_point": {"row": 162, "column": 16}}, {"id": 1401, "type": "assignment_expression", "text": "normu = 1", "parent": 1388, "children": [1402, 1403, 1404], "start_point": {"row": 163, "column": 4}, "end_point": {"row": 163, "column": 13}}, {"id": 1402, "type": "identifier", "text": "normu", "parent": 1401, "children": [], "start_point": {"row": 163, "column": 4}, "end_point": {"row": 163, "column": 9}}, {"id": 1403, "type": "=", "text": "=", "parent": 1401, "children": [], "start_point": {"row": 163, "column": 10}, "end_point": {"row": 163, "column": 11}}, {"id": 1404, "type": "number_literal", "text": "1", "parent": 1401, "children": [], "start_point": {"row": 163, "column": 12}, "end_point": {"row": 163, "column": 13}}, {"id": 1405, "type": "binary_expression", "text": "Matrix<Scalar> y_amp = y * amp", "parent": 656, "children": [1406, 1410, 1411], "start_point": {"row": 167, "column": 2}, "end_point": {"row": 167, "column": 32}}, {"id": 1406, "type": "binary_expression", "text": "Matrix<Scalar", "parent": 1405, "children": [1407, 1408, 1409], "start_point": {"row": 167, "column": 2}, "end_point": {"row": 167, "column": 15}}, {"id": 1407, "type": "identifier", "text": "Matrix", "parent": 1406, "children": [], "start_point": {"row": 167, "column": 2}, "end_point": {"row": 167, "column": 8}}, {"id": 1408, "type": "<", "text": "<", "parent": 1406, "children": [], "start_point": {"row": 167, "column": 8}, "end_point": {"row": 167, "column": 9}}, {"id": 1409, "type": "identifier", "text": "Scalar", "parent": 1406, "children": [], "start_point": {"row": 167, "column": 9}, "end_point": {"row": 167, "column": 15}}, {"id": 1410, "type": ">", "text": ">", "parent": 1405, "children": [], "start_point": {"row": 167, "column": 15}, "end_point": {"row": 167, "column": 16}}, {"id": 1411, "type": "assignment_expression", "text": "y_amp = y * amp", "parent": 1405, "children": [1412, 1413, 1414], "start_point": {"row": 167, "column": 17}, "end_point": {"row": 167, "column": 32}}, {"id": 1412, "type": "identifier", "text": "y_amp", "parent": 1411, "children": [], "start_point": {"row": 167, "column": 17}, "end_point": {"row": 167, "column": 22}}, {"id": 1413, "type": "=", "text": "=", "parent": 1411, "children": [], "start_point": {"row": 167, "column": 23}, "end_point": {"row": 167, "column": 24}}, {"id": 1414, "type": "binary_expression", "text": "y * amp", "parent": 1411, "children": [1415, 1416, 1417], "start_point": {"row": 167, "column": 25}, "end_point": {"row": 167, "column": 32}}, {"id": 1415, "type": "identifier", "text": "y", "parent": 1414, "children": [], "start_point": {"row": 167, "column": 25}, "end_point": {"row": 167, "column": 26}}, {"id": 1416, "type": "*", "text": "*", "parent": 1414, "children": [], "start_point": {"row": 167, "column": 27}, "end_point": {"row": 167, "column": 28}}, {"id": 1417, "type": "identifier", "text": "amp", "parent": 1414, "children": [], "start_point": {"row": 167, "column": 29}, "end_point": {"row": 167, "column": 32}}, {"id": 1418, "type": "call_expression", "text": "W.dotR(y_amp.transpose(), u(0), u(1), u(2), -theta, by.transpose())", "parent": 656, "children": [1419, 1422], "start_point": {"row": 168, "column": 2}, "end_point": {"row": 168, "column": 69}}, {"id": 1419, "type": "field_expression", "text": "W.dotR", "parent": 1418, "children": [1420, 1421], "start_point": {"row": 168, "column": 2}, "end_point": {"row": 168, "column": 8}}, {"id": 1420, "type": "identifier", "text": "W", "parent": 1419, "children": [], "start_point": {"row": 168, "column": 2}, "end_point": {"row": 168, "column": 3}}, {"id": 1421, "type": "field_identifier", "text": "dotR", "parent": 1419, "children": [], "start_point": {"row": 168, "column": 4}, "end_point": {"row": 168, "column": 8}}, {"id": 1422, "type": "argument_list", "text": "(y_amp.transpose(), u(0), u(1), u(2), -theta, by.transpose())", "parent": 1418, "children": [1423, 1428, 1432, 1436, 1440, 1443], "start_point": {"row": 168, "column": 8}, "end_point": {"row": 168, "column": 69}}, {"id": 1423, "type": "call_expression", "text": "y_amp.transpose()", "parent": 1422, "children": [1424, 1427], "start_point": {"row": 168, "column": 9}, "end_point": {"row": 168, "column": 26}}, {"id": 1424, "type": "field_expression", "text": "y_amp.transpose", "parent": 1423, "children": [1425, 1426], "start_point": {"row": 168, "column": 9}, "end_point": {"row": 168, "column": 24}}, {"id": 1425, "type": "identifier", "text": "y_amp", "parent": 1424, "children": [], "start_point": {"row": 168, "column": 9}, "end_point": {"row": 168, "column": 14}}, {"id": 1426, "type": "field_identifier", "text": "transpose", "parent": 1424, "children": [], "start_point": {"row": 168, "column": 15}, "end_point": {"row": 168, "column": 24}}, {"id": 1427, "type": "argument_list", "text": "()", "parent": 1423, "children": [], "start_point": {"row": 168, "column": 24}, "end_point": {"row": 168, "column": 26}}, {"id": 1428, "type": "call_expression", "text": "u(0)", "parent": 1422, "children": [1429, 1430], "start_point": {"row": 168, "column": 28}, "end_point": {"row": 168, "column": 32}}, {"id": 1429, "type": "identifier", "text": "u", "parent": 1428, "children": [], "start_point": {"row": 168, "column": 28}, "end_point": {"row": 168, "column": 29}}, {"id": 1430, "type": "argument_list", "text": "(0)", "parent": 1428, "children": [1431], "start_point": {"row": 168, "column": 29}, "end_point": {"row": 168, "column": 32}}, {"id": 1431, "type": "number_literal", "text": "0", "parent": 1430, "children": [], "start_point": {"row": 168, "column": 30}, "end_point": {"row": 168, "column": 31}}, {"id": 1432, "type": "call_expression", "text": "u(1)", "parent": 1422, "children": [1433, 1434], "start_point": {"row": 168, "column": 34}, "end_point": {"row": 168, "column": 38}}, {"id": 1433, "type": "identifier", "text": "u", "parent": 1432, "children": [], "start_point": {"row": 168, "column": 34}, "end_point": {"row": 168, "column": 35}}, {"id": 1434, "type": "argument_list", "text": "(1)", "parent": 1432, "children": [1435], "start_point": {"row": 168, "column": 35}, "end_point": {"row": 168, "column": 38}}, {"id": 1435, "type": "number_literal", "text": "1", "parent": 1434, "children": [], "start_point": {"row": 168, "column": 36}, "end_point": {"row": 168, "column": 37}}, {"id": 1436, "type": "call_expression", "text": "u(2)", "parent": 1422, "children": [1437, 1438], "start_point": {"row": 168, "column": 40}, "end_point": {"row": 168, "column": 44}}, {"id": 1437, "type": "identifier", "text": "u", "parent": 1436, "children": [], "start_point": {"row": 168, "column": 40}, "end_point": {"row": 168, "column": 41}}, {"id": 1438, "type": "argument_list", "text": "(2)", "parent": 1436, "children": [1439], "start_point": {"row": 168, "column": 41}, "end_point": {"row": 168, "column": 44}}, {"id": 1439, "type": "number_literal", "text": "2", "parent": 1438, "children": [], "start_point": {"row": 168, "column": 42}, "end_point": {"row": 168, "column": 43}}, {"id": 1440, "type": "unary_expression", "text": "-theta", "parent": 1422, "children": [1441, 1442], "start_point": {"row": 168, "column": 46}, "end_point": {"row": 168, "column": 52}}, {"id": 1441, "type": "-", "text": "-", "parent": 1440, "children": [], "start_point": {"row": 168, "column": 46}, "end_point": {"row": 168, "column": 47}}, {"id": 1442, "type": "identifier", "text": "theta", "parent": 1440, "children": [], "start_point": {"row": 168, "column": 47}, "end_point": {"row": 168, "column": 52}}, {"id": 1443, "type": "call_expression", "text": "by.transpose()", "parent": 1422, "children": [1444, 1447], "start_point": {"row": 168, "column": 54}, "end_point": {"row": 168, "column": 68}}, {"id": 1444, "type": "field_expression", "text": "by.transpose", "parent": 1443, "children": [1445, 1446], "start_point": {"row": 168, "column": 54}, "end_point": {"row": 168, "column": 66}}, {"id": 1445, "type": "identifier", "text": "by", "parent": 1444, "children": [], "start_point": {"row": 168, "column": 54}, "end_point": {"row": 168, "column": 56}}, {"id": 1446, "type": "field_identifier", "text": "transpose", "parent": 1444, "children": [], "start_point": {"row": 168, "column": 57}, "end_point": {"row": 168, "column": 66}}, {"id": 1447, "type": "argument_list", "text": "()", "parent": 1443, "children": [], "start_point": {"row": 168, "column": 66}, "end_point": {"row": 168, "column": 68}}, {"id": 1448, "type": "declaration", "text": "Scalar termz = (clat * (1 + clon) * (1 + clon) * slat - slat * slon * slon) /\n (normu * normu * normu);", "parent": 656, "children": [1449, 1450], "start_point": {"row": 171, "column": 2}, "end_point": {"row": 172, "column": 41}}, {"id": 1449, "type": "type_identifier", "text": "Scalar", "parent": 1448, "children": [], "start_point": {"row": 171, "column": 2}, "end_point": {"row": 171, "column": 8}}, {"id": 1450, "type": "init_declarator", "text": "termz = (clat * (1 + clon) * (1 + clon) * slat - slat * slon * slon) /\n (normu * normu * normu)", "parent": 1448, "children": [1451, 1452, 1453], "start_point": {"row": 171, "column": 9}, "end_point": {"row": 172, "column": 40}}, {"id": 1451, "type": "identifier", "text": "termz", "parent": 1450, "children": [], "start_point": {"row": 171, "column": 9}, "end_point": {"row": 171, "column": 14}}, {"id": 1452, "type": "=", "text": "=", "parent": 1450, "children": [], "start_point": {"row": 171, "column": 15}, "end_point": {"row": 171, "column": 16}}, {"id": 1453, "type": "binary_expression", "text": "(clat * (1 + clon) * (1 + clon) * slat - slat * slon * slon) /\n (normu * normu * normu)", "parent": 1450, "children": [1454, 1482, 1483], "start_point": {"row": 171, "column": 17}, "end_point": {"row": 172, "column": 40}}, {"id": 1454, "type": "parenthesized_expression", "text": "(clat * (1 + clon) * (1 + clon) * slat - slat * slon * slon)", "parent": 1453, "children": [1455], "start_point": {"row": 171, "column": 17}, "end_point": {"row": 171, "column": 77}}, {"id": 1455, "type": "binary_expression", "text": "clat * (1 + clon) * (1 + clon) * slat - slat * slon * slon", "parent": 1454, "children": [1456, 1474, 1475], "start_point": {"row": 171, "column": 18}, "end_point": {"row": 171, "column": 76}}, {"id": 1456, "type": "binary_expression", "text": "clat * (1 + clon) * (1 + clon) * slat", "parent": 1455, "children": [1457, 1472, 1473], "start_point": {"row": 171, "column": 18}, "end_point": {"row": 171, "column": 55}}, {"id": 1457, "type": "binary_expression", "text": "clat * (1 + clon) * (1 + clon)", "parent": 1456, "children": [1458, 1466, 1467], "start_point": {"row": 171, "column": 18}, "end_point": {"row": 171, "column": 48}}, {"id": 1458, "type": "binary_expression", "text": "clat * (1 + clon)", "parent": 1457, "children": [1459, 1460, 1461], "start_point": {"row": 171, "column": 18}, "end_point": {"row": 171, "column": 35}}, {"id": 1459, "type": "identifier", "text": "clat", "parent": 1458, "children": [], "start_point": {"row": 171, "column": 18}, "end_point": {"row": 171, "column": 22}}, {"id": 1460, "type": "*", "text": "*", "parent": 1458, "children": [], "start_point": {"row": 171, "column": 23}, "end_point": {"row": 171, "column": 24}}, {"id": 1461, "type": "parenthesized_expression", "text": "(1 + clon)", "parent": 1458, "children": [1462], "start_point": {"row": 171, "column": 25}, "end_point": {"row": 171, "column": 35}}, {"id": 1462, "type": "binary_expression", "text": "1 + clon", "parent": 1461, "children": [1463, 1464, 1465], "start_point": {"row": 171, "column": 26}, "end_point": {"row": 171, "column": 34}}, {"id": 1463, "type": "number_literal", "text": "1", "parent": 1462, "children": [], "start_point": {"row": 171, "column": 26}, "end_point": {"row": 171, "column": 27}}, {"id": 1464, "type": "+", "text": "+", "parent": 1462, "children": [], "start_point": {"row": 171, "column": 28}, "end_point": {"row": 171, "column": 29}}, {"id": 1465, "type": "identifier", "text": "clon", "parent": 1462, "children": [], "start_point": {"row": 171, "column": 30}, "end_point": {"row": 171, "column": 34}}, {"id": 1466, "type": "*", "text": "*", "parent": 1457, "children": [], "start_point": {"row": 171, "column": 36}, "end_point": {"row": 171, "column": 37}}, {"id": 1467, "type": "parenthesized_expression", "text": "(1 + clon)", "parent": 1457, "children": [1468], "start_point": {"row": 171, "column": 38}, "end_point": {"row": 171, "column": 48}}, {"id": 1468, "type": "binary_expression", "text": "1 + clon", "parent": 1467, "children": [1469, 1470, 1471], "start_point": {"row": 171, "column": 39}, "end_point": {"row": 171, "column": 47}}, {"id": 1469, "type": "number_literal", "text": "1", "parent": 1468, "children": [], "start_point": {"row": 171, "column": 39}, "end_point": {"row": 171, "column": 40}}, {"id": 1470, "type": "+", "text": "+", "parent": 1468, "children": [], "start_point": {"row": 171, "column": 41}, "end_point": {"row": 171, "column": 42}}, {"id": 1471, "type": "identifier", "text": "clon", "parent": 1468, "children": [], "start_point": {"row": 171, "column": 43}, "end_point": {"row": 171, "column": 47}}, {"id": 1472, "type": "*", "text": "*", "parent": 1456, "children": [], "start_point": {"row": 171, "column": 49}, "end_point": {"row": 171, "column": 50}}, {"id": 1473, "type": "identifier", "text": "slat", "parent": 1456, "children": [], "start_point": {"row": 171, "column": 51}, "end_point": {"row": 171, "column": 55}}, {"id": 1474, "type": "-", "text": "-", "parent": 1455, "children": [], "start_point": {"row": 171, "column": 56}, "end_point": {"row": 171, "column": 57}}, {"id": 1475, "type": "binary_expression", "text": "slat * slon * slon", "parent": 1455, "children": [1476, 1480, 1481], "start_point": {"row": 171, "column": 58}, "end_point": {"row": 171, "column": 76}}, {"id": 1476, "type": "binary_expression", "text": "slat * slon", "parent": 1475, "children": [1477, 1478, 1479], "start_point": {"row": 171, "column": 58}, "end_point": {"row": 171, "column": 69}}, {"id": 1477, "type": "identifier", "text": "slat", "parent": 1476, "children": [], "start_point": {"row": 171, "column": 58}, "end_point": {"row": 171, "column": 62}}, {"id": 1478, "type": "*", "text": "*", "parent": 1476, "children": [], "start_point": {"row": 171, "column": 63}, "end_point": {"row": 171, "column": 64}}, {"id": 1479, "type": "identifier", "text": "slon", "parent": 1476, "children": [], "start_point": {"row": 171, "column": 65}, "end_point": {"row": 171, "column": 69}}, {"id": 1480, "type": "*", "text": "*", "parent": 1475, "children": [], "start_point": {"row": 171, "column": 70}, "end_point": {"row": 171, "column": 71}}, {"id": 1481, "type": "identifier", "text": "slon", "parent": 1475, "children": [], "start_point": {"row": 171, "column": 72}, "end_point": {"row": 171, "column": 76}}, {"id": 1482, "type": "/", "text": "/", "parent": 1453, "children": [], "start_point": {"row": 171, "column": 78}, "end_point": {"row": 171, "column": 79}}, {"id": 1483, "type": "parenthesized_expression", "text": "(normu * normu * normu)", "parent": 1453, "children": [1484], "start_point": {"row": 172, "column": 17}, "end_point": {"row": 172, "column": 40}}, {"id": 1484, "type": "binary_expression", "text": "normu * normu * normu", "parent": 1483, "children": [1485, 1489, 1490], "start_point": {"row": 172, "column": 18}, "end_point": {"row": 172, "column": 39}}, {"id": 1485, "type": "binary_expression", "text": "normu * normu", "parent": 1484, "children": [1486, 1487, 1488], "start_point": {"row": 172, "column": 18}, "end_point": {"row": 172, "column": 31}}, {"id": 1486, "type": "identifier", "text": "normu", "parent": 1485, "children": [], "start_point": {"row": 172, "column": 18}, "end_point": {"row": 172, "column": 23}}, {"id": 1487, "type": "*", "text": "*", "parent": 1485, "children": [], "start_point": {"row": 172, "column": 24}, "end_point": {"row": 172, "column": 25}}, {"id": 1488, "type": "identifier", "text": "normu", "parent": 1485, "children": [], "start_point": {"row": 172, "column": 26}, "end_point": {"row": 172, "column": 31}}, {"id": 1489, "type": "*", "text": "*", "parent": 1484, "children": [], "start_point": {"row": 172, "column": 32}, "end_point": {"row": 172, "column": 33}}, {"id": 1490, "type": "identifier", "text": "normu", "parent": 1484, "children": [], "start_point": {"row": 172, "column": 34}, "end_point": {"row": 172, "column": 39}}, {"id": 1491, "type": "declaration", "text": "Scalar dxdl = -clat * (1 + clon) / normu + (1 + clon) * slat * termz;", "parent": 656, "children": [1492, 1493], "start_point": {"row": 173, "column": 2}, "end_point": {"row": 173, "column": 71}}, {"id": 1492, "type": "type_identifier", "text": "Scalar", "parent": 1491, "children": [], "start_point": {"row": 173, "column": 2}, "end_point": {"row": 173, "column": 8}}, {"id": 1493, "type": "init_declarator", "text": "dxdl = -clat * (1 + clon) / normu + (1 + clon) * slat * termz", "parent": 1491, "children": [1494, 1495, 1496], "start_point": {"row": 173, "column": 9}, "end_point": {"row": 173, "column": 70}}, {"id": 1494, "type": "identifier", "text": "dxdl", "parent": 1493, "children": [], "start_point": {"row": 173, "column": 9}, "end_point": {"row": 173, "column": 13}}, {"id": 1495, "type": "=", "text": "=", "parent": 1493, "children": [], "start_point": {"row": 173, "column": 14}, "end_point": {"row": 173, "column": 15}}, {"id": 1496, "type": "binary_expression", "text": "-clat * (1 + clon) / normu + (1 + clon) * slat * termz", "parent": 1493, "children": [1497, 1510, 1511], "start_point": {"row": 173, "column": 16}, "end_point": {"row": 173, "column": 70}}, {"id": 1497, "type": "binary_expression", "text": "-clat * (1 + clon) / normu", "parent": 1496, "children": [1498, 1508, 1509], "start_point": {"row": 173, "column": 16}, "end_point": {"row": 173, "column": 42}}, {"id": 1498, "type": "binary_expression", "text": "-clat * (1 + clon)", "parent": 1497, "children": [1499, 1502, 1503], "start_point": {"row": 173, "column": 16}, "end_point": {"row": 173, "column": 34}}, {"id": 1499, "type": "unary_expression", "text": "-clat", "parent": 1498, "children": [1500, 1501], "start_point": {"row": 173, "column": 16}, "end_point": {"row": 173, "column": 21}}, {"id": 1500, "type": "-", "text": "-", "parent": 1499, "children": [], "start_point": {"row": 173, "column": 16}, "end_point": {"row": 173, "column": 17}}, {"id": 1501, "type": "identifier", "text": "clat", "parent": 1499, "children": [], "start_point": {"row": 173, "column": 17}, "end_point": {"row": 173, "column": 21}}, {"id": 1502, "type": "*", "text": "*", "parent": 1498, "children": [], "start_point": {"row": 173, "column": 22}, "end_point": {"row": 173, "column": 23}}, {"id": 1503, "type": "parenthesized_expression", "text": "(1 + clon)", "parent": 1498, "children": [1504], "start_point": {"row": 173, "column": 24}, "end_point": {"row": 173, "column": 34}}, {"id": 1504, "type": "binary_expression", "text": "1 + clon", "parent": 1503, "children": [1505, 1506, 1507], "start_point": {"row": 173, "column": 25}, "end_point": {"row": 173, "column": 33}}, {"id": 1505, "type": "number_literal", "text": "1", "parent": 1504, "children": [], "start_point": {"row": 173, "column": 25}, "end_point": {"row": 173, "column": 26}}, {"id": 1506, "type": "+", "text": "+", "parent": 1504, "children": [], "start_point": {"row": 173, "column": 27}, "end_point": {"row": 173, "column": 28}}, {"id": 1507, "type": "identifier", "text": "clon", "parent": 1504, "children": [], "start_point": {"row": 173, "column": 29}, "end_point": {"row": 173, "column": 33}}, {"id": 1508, "type": "/", "text": "/", "parent": 1497, "children": [], "start_point": {"row": 173, "column": 35}, "end_point": {"row": 173, "column": 36}}, {"id": 1509, "type": "identifier", "text": "normu", "parent": 1497, "children": [], "start_point": {"row": 173, "column": 37}, "end_point": {"row": 173, "column": 42}}, {"id": 1510, "type": "+", "text": "+", "parent": 1496, "children": [], "start_point": {"row": 173, "column": 43}, "end_point": {"row": 173, "column": 44}}, {"id": 1511, "type": "binary_expression", "text": "(1 + clon) * slat * termz", "parent": 1496, "children": [1512, 1520, 1521], "start_point": {"row": 173, "column": 45}, "end_point": {"row": 173, "column": 70}}, {"id": 1512, "type": "binary_expression", "text": "(1 + clon) * slat", "parent": 1511, "children": [1513, 1518, 1519], "start_point": {"row": 173, "column": 45}, "end_point": {"row": 173, "column": 62}}, {"id": 1513, "type": "parenthesized_expression", "text": "(1 + clon)", "parent": 1512, "children": [1514], "start_point": {"row": 173, "column": 45}, "end_point": {"row": 173, "column": 55}}, {"id": 1514, "type": "binary_expression", "text": "1 + clon", "parent": 1513, "children": [1515, 1516, 1517], "start_point": {"row": 173, "column": 46}, "end_point": {"row": 173, "column": 54}}, {"id": 1515, "type": "number_literal", "text": "1", "parent": 1514, "children": [], "start_point": {"row": 173, "column": 46}, "end_point": {"row": 173, "column": 47}}, {"id": 1516, "type": "+", "text": "+", "parent": 1514, "children": [], "start_point": {"row": 173, "column": 48}, "end_point": {"row": 173, "column": 49}}, {"id": 1517, "type": "identifier", "text": "clon", "parent": 1514, "children": [], "start_point": {"row": 173, "column": 50}, "end_point": {"row": 173, "column": 54}}, {"id": 1518, "type": "*", "text": "*", "parent": 1512, "children": [], "start_point": {"row": 173, "column": 56}, "end_point": {"row": 173, "column": 57}}, {"id": 1519, "type": "identifier", "text": "slat", "parent": 1512, "children": [], "start_point": {"row": 173, "column": 58}, "end_point": {"row": 173, "column": 62}}, {"id": 1520, "type": "*", "text": "*", "parent": 1511, "children": [], "start_point": {"row": 173, "column": 63}, "end_point": {"row": 173, "column": 64}}, {"id": 1521, "type": "identifier", "text": "termz", "parent": 1511, "children": [], "start_point": {"row": 173, "column": 65}, "end_point": {"row": 173, "column": 70}}, {"id": 1522, "type": "declaration", "text": "Scalar dydl = -slat * slon / normu - (1 + clat) * slon * termz;", "parent": 656, "children": [1523, 1524], "start_point": {"row": 174, "column": 2}, "end_point": {"row": 174, "column": 65}}, {"id": 1523, "type": "type_identifier", "text": "Scalar", "parent": 1522, "children": [], "start_point": {"row": 174, "column": 2}, "end_point": {"row": 174, "column": 8}}, {"id": 1524, "type": "init_declarator", "text": "dydl = -slat * slon / normu - (1 + clat) * slon * termz", "parent": 1522, "children": [1525, 1526, 1527], "start_point": {"row": 174, "column": 9}, "end_point": {"row": 174, "column": 64}}, {"id": 1525, "type": "identifier", "text": "dydl", "parent": 1524, "children": [], "start_point": {"row": 174, "column": 9}, "end_point": {"row": 174, "column": 13}}, {"id": 1526, "type": "=", "text": "=", "parent": 1524, "children": [], "start_point": {"row": 174, "column": 14}, "end_point": {"row": 174, "column": 15}}, {"id": 1527, "type": "binary_expression", "text": "-slat * slon / normu - (1 + clat) * slon * termz", "parent": 1524, "children": [1528, 1537, 1538], "start_point": {"row": 174, "column": 16}, "end_point": {"row": 174, "column": 64}}, {"id": 1528, "type": "binary_expression", "text": "-slat * slon / normu", "parent": 1527, "children": [1529, 1535, 1536], "start_point": {"row": 174, "column": 16}, "end_point": {"row": 174, "column": 36}}, {"id": 1529, "type": "binary_expression", "text": "-slat * slon", "parent": 1528, "children": [1530, 1533, 1534], "start_point": {"row": 174, "column": 16}, "end_point": {"row": 174, "column": 28}}, {"id": 1530, "type": "unary_expression", "text": "-slat", "parent": 1529, "children": [1531, 1532], "start_point": {"row": 174, "column": 16}, "end_point": {"row": 174, "column": 21}}, {"id": 1531, "type": "-", "text": "-", "parent": 1530, "children": [], "start_point": {"row": 174, "column": 16}, "end_point": {"row": 174, "column": 17}}, {"id": 1532, "type": "identifier", "text": "slat", "parent": 1530, "children": [], "start_point": {"row": 174, "column": 17}, "end_point": {"row": 174, "column": 21}}, {"id": 1533, "type": "*", "text": "*", "parent": 1529, "children": [], "start_point": {"row": 174, "column": 22}, "end_point": {"row": 174, "column": 23}}, {"id": 1534, "type": "identifier", "text": "slon", "parent": 1529, "children": [], "start_point": {"row": 174, "column": 24}, "end_point": {"row": 174, "column": 28}}, {"id": 1535, "type": "/", "text": "/", "parent": 1528, "children": [], "start_point": {"row": 174, "column": 29}, "end_point": {"row": 174, "column": 30}}, {"id": 1536, "type": "identifier", "text": "normu", "parent": 1528, "children": [], "start_point": {"row": 174, "column": 31}, "end_point": {"row": 174, "column": 36}}, {"id": 1537, "type": "-", "text": "-", "parent": 1527, "children": [], "start_point": {"row": 174, "column": 37}, "end_point": {"row": 174, "column": 38}}, {"id": 1538, "type": "binary_expression", "text": "(1 + clat) * slon * termz", "parent": 1527, "children": [1539, 1547, 1548], "start_point": {"row": 174, "column": 39}, "end_point": {"row": 174, "column": 64}}, {"id": 1539, "type": "binary_expression", "text": "(1 + clat) * slon", "parent": 1538, "children": [1540, 1545, 1546], "start_point": {"row": 174, "column": 39}, "end_point": {"row": 174, "column": 56}}, {"id": 1540, "type": "parenthesized_expression", "text": "(1 + clat)", "parent": 1539, "children": [1541], "start_point": {"row": 174, "column": 39}, "end_point": {"row": 174, "column": 49}}, {"id": 1541, "type": "binary_expression", "text": "1 + clat", "parent": 1540, "children": [1542, 1543, 1544], "start_point": {"row": 174, "column": 40}, "end_point": {"row": 174, "column": 48}}, {"id": 1542, "type": "number_literal", "text": "1", "parent": 1541, "children": [], "start_point": {"row": 174, "column": 40}, "end_point": {"row": 174, "column": 41}}, {"id": 1543, "type": "+", "text": "+", "parent": 1541, "children": [], "start_point": {"row": 174, "column": 42}, "end_point": {"row": 174, "column": 43}}, {"id": 1544, "type": "identifier", "text": "clat", "parent": 1541, "children": [], "start_point": {"row": 174, "column": 44}, "end_point": {"row": 174, "column": 48}}, {"id": 1545, "type": "*", "text": "*", "parent": 1539, "children": [], "start_point": {"row": 174, "column": 50}, "end_point": {"row": 174, "column": 51}}, {"id": 1546, "type": "identifier", "text": "slon", "parent": 1539, "children": [], "start_point": {"row": 174, "column": 52}, "end_point": {"row": 174, "column": 56}}, {"id": 1547, "type": "*", "text": "*", "parent": 1538, "children": [], "start_point": {"row": 174, "column": 57}, "end_point": {"row": 174, "column": 58}}, {"id": 1548, "type": "identifier", "text": "termz", "parent": 1538, "children": [], "start_point": {"row": 174, "column": 59}, "end_point": {"row": 174, "column": 64}}, {"id": 1549, "type": "declaration", "text": "Scalar dzdl = clat * slon / normu - slat * slon * termz;", "parent": 656, "children": [1550, 1551], "start_point": {"row": 175, "column": 2}, "end_point": {"row": 175, "column": 58}}, {"id": 1550, "type": "type_identifier", "text": "Scalar", "parent": 1549, "children": [], "start_point": {"row": 175, "column": 2}, "end_point": {"row": 175, "column": 8}}, {"id": 1551, "type": "init_declarator", "text": "dzdl = clat * slon / normu - slat * slon * termz", "parent": 1549, "children": [1552, 1553, 1554], "start_point": {"row": 175, "column": 9}, "end_point": {"row": 175, "column": 57}}, {"id": 1552, "type": "identifier", "text": "dzdl", "parent": 1551, "children": [], "start_point": {"row": 175, "column": 9}, "end_point": {"row": 175, "column": 13}}, {"id": 1553, "type": "=", "text": "=", "parent": 1551, "children": [], "start_point": {"row": 175, "column": 14}, "end_point": {"row": 175, "column": 15}}, {"id": 1554, "type": "binary_expression", "text": "clat * slon / normu - slat * slon * termz", "parent": 1551, "children": [1555, 1562, 1563], "start_point": {"row": 175, "column": 16}, "end_point": {"row": 175, "column": 57}}, {"id": 1555, "type": "binary_expression", "text": "clat * slon / normu", "parent": 1554, "children": [1556, 1560, 1561], "start_point": {"row": 175, "column": 16}, "end_point": {"row": 175, "column": 35}}, {"id": 1556, "type": "binary_expression", "text": "clat * slon", "parent": 1555, "children": [1557, 1558, 1559], "start_point": {"row": 175, "column": 16}, "end_point": {"row": 175, "column": 27}}, {"id": 1557, "type": "identifier", "text": "clat", "parent": 1556, "children": [], "start_point": {"row": 175, "column": 16}, "end_point": {"row": 175, "column": 20}}, {"id": 1558, "type": "*", "text": "*", "parent": 1556, "children": [], "start_point": {"row": 175, "column": 21}, "end_point": {"row": 175, "column": 22}}, {"id": 1559, "type": "identifier", "text": "slon", "parent": 1556, "children": [], "start_point": {"row": 175, "column": 23}, "end_point": {"row": 175, "column": 27}}, {"id": 1560, "type": "/", "text": "/", "parent": 1555, "children": [], "start_point": {"row": 175, "column": 28}, "end_point": {"row": 175, "column": 29}}, {"id": 1561, "type": "identifier", "text": "normu", "parent": 1555, "children": [], "start_point": {"row": 175, "column": 30}, "end_point": {"row": 175, "column": 35}}, {"id": 1562, "type": "-", "text": "-", "parent": 1554, "children": [], "start_point": {"row": 175, "column": 36}, "end_point": {"row": 175, "column": 37}}, {"id": 1563, "type": "binary_expression", "text": "slat * slon * termz", "parent": 1554, "children": [1564, 1568, 1569], "start_point": {"row": 175, "column": 38}, "end_point": {"row": 175, "column": 57}}, {"id": 1564, "type": "binary_expression", "text": "slat * slon", "parent": 1563, "children": [1565, 1566, 1567], "start_point": {"row": 175, "column": 38}, "end_point": {"row": 175, "column": 49}}, {"id": 1565, "type": "identifier", "text": "slat", "parent": 1564, "children": [], "start_point": {"row": 175, "column": 38}, "end_point": {"row": 175, "column": 42}}, {"id": 1566, "type": "*", "text": "*", "parent": 1564, "children": [], "start_point": {"row": 175, "column": 43}, "end_point": {"row": 175, "column": 44}}, {"id": 1567, "type": "identifier", "text": "slon", "parent": 1564, "children": [], "start_point": {"row": 175, "column": 45}, "end_point": {"row": 175, "column": 49}}, {"id": 1568, "type": "*", "text": "*", "parent": 1563, "children": [], "start_point": {"row": 175, "column": 50}, "end_point": {"row": 175, "column": 51}}, {"id": 1569, "type": "identifier", "text": "termz", "parent": 1563, "children": [], "start_point": {"row": 175, "column": 52}, "end_point": {"row": 175, "column": 57}}, {"id": 1570, "type": "declaration", "text": "Scalar dthetadl = -u(0);", "parent": 656, "children": [1571, 1572], "start_point": {"row": 176, "column": 2}, "end_point": {"row": 176, "column": 26}}, {"id": 1571, "type": "type_identifier", "text": "Scalar", "parent": 1570, "children": [], "start_point": {"row": 176, "column": 2}, "end_point": {"row": 176, "column": 8}}, {"id": 1572, "type": "init_declarator", "text": "dthetadl = -u(0)", "parent": 1570, "children": [1573, 1574, 1575], "start_point": {"row": 176, "column": 9}, "end_point": {"row": 176, "column": 25}}, {"id": 1573, "type": "identifier", "text": "dthetadl", "parent": 1572, "children": [], "start_point": {"row": 176, "column": 9}, "end_point": {"row": 176, "column": 17}}, {"id": 1574, "type": "=", "text": "=", "parent": 1572, "children": [], "start_point": {"row": 176, "column": 18}, "end_point": {"row": 176, "column": 19}}, {"id": 1575, "type": "unary_expression", "text": "-u(0)", "parent": 1572, "children": [1576, 1577], "start_point": {"row": 176, "column": 20}, "end_point": {"row": 176, "column": 25}}, {"id": 1576, "type": "-", "text": "-", "parent": 1575, "children": [], "start_point": {"row": 176, "column": 20}, "end_point": {"row": 176, "column": 21}}, {"id": 1577, "type": "call_expression", "text": "u(0)", "parent": 1575, "children": [1578, 1579], "start_point": {"row": 176, "column": 21}, "end_point": {"row": 176, "column": 25}}, {"id": 1578, "type": "identifier", "text": "u", "parent": 1577, "children": [], "start_point": {"row": 176, "column": 21}, "end_point": {"row": 176, "column": 22}}, {"id": 1579, "type": "argument_list", "text": "(0)", "parent": 1577, "children": [1580], "start_point": {"row": 176, "column": 22}, "end_point": {"row": 176, "column": 25}}, {"id": 1580, "type": "number_literal", "text": "0", "parent": 1579, "children": [], "start_point": {"row": 176, "column": 23}, "end_point": {"row": 176, "column": 24}}, {"id": 1581, "type": "assignment_expression", "text": "blat = (dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz -\n dthetadl * W.dotR_btheta)", "parent": 656, "children": [1582, 1583, 1584], "start_point": {"row": 177, "column": 2}, "end_point": {"row": 178, "column": 35}}, {"id": 1582, "type": "identifier", "text": "blat", "parent": 1581, "children": [], "start_point": {"row": 177, "column": 2}, "end_point": {"row": 177, "column": 6}}, {"id": 1583, "type": "=", "text": "=", "parent": 1581, "children": [], "start_point": {"row": 177, "column": 7}, "end_point": {"row": 177, "column": 8}}, {"id": 1584, "type": "parenthesized_expression", "text": "(dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz -\n dthetadl * W.dotR_btheta)", "parent": 1581, "children": [1585], "start_point": {"row": 177, "column": 9}, "end_point": {"row": 178, "column": 35}}, {"id": 1585, "type": "binary_expression", "text": "dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz -\n dthetadl * W.dotR_btheta", "parent": 1584, "children": [1586, 1608, 1609], "start_point": {"row": 177, "column": 10}, "end_point": {"row": 178, "column": 34}}, {"id": 1586, "type": "binary_expression", "text": "dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz", "parent": 1585, "children": [1587, 1601, 1602], "start_point": {"row": 177, "column": 10}, "end_point": {"row": 177, "column": 64}}, {"id": 1587, "type": "binary_expression", "text": "dxdl * W.dotR_bx + dydl * W.dotR_by", "parent": 1586, "children": [1588, 1594, 1595], "start_point": {"row": 177, "column": 10}, "end_point": {"row": 177, "column": 45}}, {"id": 1588, "type": "binary_expression", "text": "dxdl * W.dotR_bx", "parent": 1587, "children": [1589, 1590, 1591], "start_point": {"row": 177, "column": 10}, "end_point": {"row": 177, "column": 26}}, {"id": 1589, "type": "identifier", "text": "dxdl", "parent": 1588, "children": [], "start_point": {"row": 177, "column": 10}, "end_point": {"row": 177, "column": 14}}, {"id": 1590, "type": "*", "text": "*", "parent": 1588, "children": [], "start_point": {"row": 177, "column": 15}, "end_point": {"row": 177, "column": 16}}, {"id": 1591, "type": "field_expression", "text": "W.dotR_bx", "parent": 1588, "children": [1592, 1593], "start_point": {"row": 177, "column": 17}, "end_point": {"row": 177, "column": 26}}, {"id": 1592, "type": "identifier", "text": "W", "parent": 1591, "children": [], "start_point": {"row": 177, "column": 17}, "end_point": {"row": 177, "column": 18}}, {"id": 1593, "type": "field_identifier", "text": "dotR_bx", "parent": 1591, "children": [], "start_point": {"row": 177, "column": 19}, "end_point": {"row": 177, "column": 26}}, {"id": 1594, "type": "+", "text": "+", "parent": 1587, "children": [], "start_point": {"row": 177, "column": 27}, "end_point": {"row": 177, "column": 28}}, {"id": 1595, "type": "binary_expression", "text": "dydl * W.dotR_by", "parent": 1587, "children": [1596, 1597, 1598], "start_point": {"row": 177, "column": 29}, "end_point": {"row": 177, "column": 45}}, {"id": 1596, "type": "identifier", "text": "dydl", "parent": 1595, "children": [], "start_point": {"row": 177, "column": 29}, "end_point": {"row": 177, "column": 33}}, {"id": 1597, "type": "*", "text": "*", "parent": 1595, "children": [], "start_point": {"row": 177, "column": 34}, "end_point": {"row": 177, "column": 35}}, {"id": 1598, "type": "field_expression", "text": "W.dotR_by", "parent": 1595, "children": [1599, 1600], "start_point": {"row": 177, "column": 36}, "end_point": {"row": 177, "column": 45}}, {"id": 1599, "type": "identifier", "text": "W", "parent": 1598, "children": [], "start_point": {"row": 177, "column": 36}, "end_point": {"row": 177, "column": 37}}, {"id": 1600, "type": "field_identifier", "text": "dotR_by", "parent": 1598, "children": [], "start_point": {"row": 177, "column": 38}, "end_point": {"row": 177, "column": 45}}, {"id": 1601, "type": "+", "text": "+", "parent": 1586, "children": [], "start_point": {"row": 177, "column": 46}, "end_point": {"row": 177, "column": 47}}, {"id": 1602, "type": "binary_expression", "text": "dzdl * W.dotR_bz", "parent": 1586, "children": [1603, 1604, 1605], "start_point": {"row": 177, "column": 48}, "end_point": {"row": 177, "column": 64}}, {"id": 1603, "type": "identifier", "text": "dzdl", "parent": 1602, "children": [], "start_point": {"row": 177, "column": 48}, "end_point": {"row": 177, "column": 52}}, {"id": 1604, "type": "*", "text": "*", "parent": 1602, "children": [], "start_point": {"row": 177, "column": 53}, "end_point": {"row": 177, "column": 54}}, {"id": 1605, "type": "field_expression", "text": "W.dotR_bz", "parent": 1602, "children": [1606, 1607], "start_point": {"row": 177, "column": 55}, "end_point": {"row": 177, "column": 64}}, {"id": 1606, "type": "identifier", "text": "W", "parent": 1605, "children": [], "start_point": {"row": 177, "column": 55}, "end_point": {"row": 177, "column": 56}}, {"id": 1607, "type": "field_identifier", "text": "dotR_bz", "parent": 1605, "children": [], "start_point": {"row": 177, "column": 57}, "end_point": {"row": 177, "column": 64}}, {"id": 1608, "type": "-", "text": "-", "parent": 1585, "children": [], "start_point": {"row": 177, "column": 65}, "end_point": {"row": 177, "column": 66}}, {"id": 1609, "type": "binary_expression", "text": "dthetadl * W.dotR_btheta", "parent": 1585, "children": [1610, 1611, 1612], "start_point": {"row": 178, "column": 10}, "end_point": {"row": 178, "column": 34}}, {"id": 1610, "type": "identifier", "text": "dthetadl", "parent": 1609, "children": [], "start_point": {"row": 178, "column": 10}, "end_point": {"row": 178, "column": 18}}, {"id": 1611, "type": "*", "text": "*", "parent": 1609, "children": [], "start_point": {"row": 178, "column": 19}, "end_point": {"row": 178, "column": 20}}, {"id": 1612, "type": "field_expression", "text": "W.dotR_btheta", "parent": 1609, "children": [1613, 1614], "start_point": {"row": 178, "column": 21}, "end_point": {"row": 178, "column": 34}}, {"id": 1613, "type": "identifier", "text": "W", "parent": 1612, "children": [], "start_point": {"row": 178, "column": 21}, "end_point": {"row": 178, "column": 22}}, {"id": 1614, "type": "field_identifier", "text": "dotR_btheta", "parent": 1612, "children": [], "start_point": {"row": 178, "column": 23}, "end_point": {"row": 178, "column": 34}}, {"id": 1615, "type": "assignment_expression", "text": "termz = (clon * (1 + clat) * (1 + clat) * slon - slon * slat * slat) /\n (normu * normu * normu)", "parent": 656, "children": [1616, 1617, 1618], "start_point": {"row": 181, "column": 2}, "end_point": {"row": 182, "column": 33}}, {"id": 1616, "type": "identifier", "text": "termz", "parent": 1615, "children": [], "start_point": {"row": 181, "column": 2}, "end_point": {"row": 181, "column": 7}}, {"id": 1617, "type": "=", "text": "=", "parent": 1615, "children": [], "start_point": {"row": 181, "column": 8}, "end_point": {"row": 181, "column": 9}}, {"id": 1618, "type": "binary_expression", "text": "(clon * (1 + clat) * (1 + clat) * slon - slon * slat * slat) /\n (normu * normu * normu)", "parent": 1615, "children": [1619, 1647, 1648], "start_point": {"row": 181, "column": 10}, "end_point": {"row": 182, "column": 33}}, {"id": 1619, "type": "parenthesized_expression", "text": "(clon * (1 + clat) * (1 + clat) * slon - slon * slat * slat)", "parent": 1618, "children": [1620], "start_point": {"row": 181, "column": 10}, "end_point": {"row": 181, "column": 70}}, {"id": 1620, "type": "binary_expression", "text": "clon * (1 + clat) * (1 + clat) * slon - slon * slat * slat", "parent": 1619, "children": [1621, 1639, 1640], "start_point": {"row": 181, "column": 11}, "end_point": {"row": 181, "column": 69}}, {"id": 1621, "type": "binary_expression", "text": "clon * (1 + clat) * (1 + clat) * slon", "parent": 1620, "children": [1622, 1637, 1638], "start_point": {"row": 181, "column": 11}, "end_point": {"row": 181, "column": 48}}, {"id": 1622, "type": "binary_expression", "text": "clon * (1 + clat) * (1 + clat)", "parent": 1621, "children": [1623, 1631, 1632], "start_point": {"row": 181, "column": 11}, "end_point": {"row": 181, "column": 41}}, {"id": 1623, "type": "binary_expression", "text": "clon * (1 + clat)", "parent": 1622, "children": [1624, 1625, 1626], "start_point": {"row": 181, "column": 11}, "end_point": {"row": 181, "column": 28}}, {"id": 1624, "type": "identifier", "text": "clon", "parent": 1623, "children": [], "start_point": {"row": 181, "column": 11}, "end_point": {"row": 181, "column": 15}}, {"id": 1625, "type": "*", "text": "*", "parent": 1623, "children": [], "start_point": {"row": 181, "column": 16}, "end_point": {"row": 181, "column": 17}}, {"id": 1626, "type": "parenthesized_expression", "text": "(1 + clat)", "parent": 1623, "children": [1627], "start_point": {"row": 181, "column": 18}, "end_point": {"row": 181, "column": 28}}, {"id": 1627, "type": "binary_expression", "text": "1 + clat", "parent": 1626, "children": [1628, 1629, 1630], "start_point": {"row": 181, "column": 19}, "end_point": {"row": 181, "column": 27}}, {"id": 1628, "type": "number_literal", "text": "1", "parent": 1627, "children": [], "start_point": {"row": 181, "column": 19}, "end_point": {"row": 181, "column": 20}}, {"id": 1629, "type": "+", "text": "+", "parent": 1627, "children": [], "start_point": {"row": 181, "column": 21}, "end_point": {"row": 181, "column": 22}}, {"id": 1630, "type": "identifier", "text": "clat", "parent": 1627, "children": [], "start_point": {"row": 181, "column": 23}, "end_point": {"row": 181, "column": 27}}, {"id": 1631, "type": "*", "text": "*", "parent": 1622, "children": [], "start_point": {"row": 181, "column": 29}, "end_point": {"row": 181, "column": 30}}, {"id": 1632, "type": "parenthesized_expression", "text": "(1 + clat)", "parent": 1622, "children": [1633], "start_point": {"row": 181, "column": 31}, "end_point": {"row": 181, "column": 41}}, {"id": 1633, "type": "binary_expression", "text": "1 + clat", "parent": 1632, "children": [1634, 1635, 1636], "start_point": {"row": 181, "column": 32}, "end_point": {"row": 181, "column": 40}}, {"id": 1634, "type": "number_literal", "text": "1", "parent": 1633, "children": [], "start_point": {"row": 181, "column": 32}, "end_point": {"row": 181, "column": 33}}, {"id": 1635, "type": "+", "text": "+", "parent": 1633, "children": [], "start_point": {"row": 181, "column": 34}, "end_point": {"row": 181, "column": 35}}, {"id": 1636, "type": "identifier", "text": "clat", "parent": 1633, "children": [], "start_point": {"row": 181, "column": 36}, "end_point": {"row": 181, "column": 40}}, {"id": 1637, "type": "*", "text": "*", "parent": 1621, "children": [], "start_point": {"row": 181, "column": 42}, "end_point": {"row": 181, "column": 43}}, {"id": 1638, "type": "identifier", "text": "slon", "parent": 1621, "children": [], "start_point": {"row": 181, "column": 44}, "end_point": {"row": 181, "column": 48}}, {"id": 1639, "type": "-", "text": "-", "parent": 1620, "children": [], "start_point": {"row": 181, "column": 49}, "end_point": {"row": 181, "column": 50}}, {"id": 1640, "type": "binary_expression", "text": "slon * slat * slat", "parent": 1620, "children": [1641, 1645, 1646], "start_point": {"row": 181, "column": 51}, "end_point": {"row": 181, "column": 69}}, {"id": 1641, "type": "binary_expression", "text": "slon * slat", "parent": 1640, "children": [1642, 1643, 1644], "start_point": {"row": 181, "column": 51}, "end_point": {"row": 181, "column": 62}}, {"id": 1642, "type": "identifier", "text": "slon", "parent": 1641, "children": [], "start_point": {"row": 181, "column": 51}, "end_point": {"row": 181, "column": 55}}, {"id": 1643, "type": "*", "text": "*", "parent": 1641, "children": [], "start_point": {"row": 181, "column": 56}, "end_point": {"row": 181, "column": 57}}, {"id": 1644, "type": "identifier", "text": "slat", "parent": 1641, "children": [], "start_point": {"row": 181, "column": 58}, "end_point": {"row": 181, "column": 62}}, {"id": 1645, "type": "*", "text": "*", "parent": 1640, "children": [], "start_point": {"row": 181, "column": 63}, "end_point": {"row": 181, "column": 64}}, {"id": 1646, "type": "identifier", "text": "slat", "parent": 1640, "children": [], "start_point": {"row": 181, "column": 65}, "end_point": {"row": 181, "column": 69}}, {"id": 1647, "type": "/", "text": "/", "parent": 1618, "children": [], "start_point": {"row": 181, "column": 71}, "end_point": {"row": 181, "column": 72}}, {"id": 1648, "type": "parenthesized_expression", "text": "(normu * normu * normu)", "parent": 1618, "children": [1649], "start_point": {"row": 182, "column": 10}, "end_point": {"row": 182, "column": 33}}, {"id": 1649, "type": "binary_expression", "text": "normu * normu * normu", "parent": 1648, "children": [1650, 1654, 1655], "start_point": {"row": 182, "column": 11}, "end_point": {"row": 182, "column": 32}}, {"id": 1650, "type": "binary_expression", "text": "normu * normu", "parent": 1649, "children": [1651, 1652, 1653], "start_point": {"row": 182, "column": 11}, "end_point": {"row": 182, "column": 24}}, {"id": 1651, "type": "identifier", "text": "normu", "parent": 1650, "children": [], "start_point": {"row": 182, "column": 11}, "end_point": {"row": 182, "column": 16}}, {"id": 1652, "type": "*", "text": "*", "parent": 1650, "children": [], "start_point": {"row": 182, "column": 17}, "end_point": {"row": 182, "column": 18}}, {"id": 1653, "type": "identifier", "text": "normu", "parent": 1650, "children": [], "start_point": {"row": 182, "column": 19}, "end_point": {"row": 182, "column": 24}}, {"id": 1654, "type": "*", "text": "*", "parent": 1649, "children": [], "start_point": {"row": 182, "column": 25}, "end_point": {"row": 182, "column": 26}}, {"id": 1655, "type": "identifier", "text": "normu", "parent": 1649, "children": [], "start_point": {"row": 182, "column": 27}, "end_point": {"row": 182, "column": 32}}, {"id": 1656, "type": "assignment_expression", "text": "dxdl = slat * slon / normu + (1 + clon) * slat * termz", "parent": 656, "children": [1657, 1658, 1659], "start_point": {"row": 183, "column": 2}, "end_point": {"row": 183, "column": 56}}, {"id": 1657, "type": "identifier", "text": "dxdl", "parent": 1656, "children": [], "start_point": {"row": 183, "column": 2}, "end_point": {"row": 183, "column": 6}}, {"id": 1658, "type": "=", "text": "=", "parent": 1656, "children": [], "start_point": {"row": 183, "column": 7}, "end_point": {"row": 183, "column": 8}}, {"id": 1659, "type": "binary_expression", "text": "slat * slon / normu + (1 + clon) * slat * termz", "parent": 1656, "children": [1660, 1667, 1668], "start_point": {"row": 183, "column": 9}, "end_point": {"row": 183, "column": 56}}, {"id": 1660, "type": "binary_expression", "text": "slat * slon / normu", "parent": 1659, "children": [1661, 1665, 1666], "start_point": {"row": 183, "column": 9}, "end_point": {"row": 183, "column": 28}}, {"id": 1661, "type": "binary_expression", "text": "slat * slon", "parent": 1660, "children": [1662, 1663, 1664], "start_point": {"row": 183, "column": 9}, "end_point": {"row": 183, "column": 20}}, {"id": 1662, "type": "identifier", "text": "slat", "parent": 1661, "children": [], "start_point": {"row": 183, "column": 9}, "end_point": {"row": 183, "column": 13}}, {"id": 1663, "type": "*", "text": "*", "parent": 1661, "children": [], "start_point": {"row": 183, "column": 14}, "end_point": {"row": 183, "column": 15}}, {"id": 1664, "type": "identifier", "text": "slon", "parent": 1661, "children": [], "start_point": {"row": 183, "column": 16}, "end_point": {"row": 183, "column": 20}}, {"id": 1665, "type": "/", "text": "/", "parent": 1660, "children": [], "start_point": {"row": 183, "column": 21}, "end_point": {"row": 183, "column": 22}}, {"id": 1666, "type": "identifier", "text": "normu", "parent": 1660, "children": [], "start_point": {"row": 183, "column": 23}, "end_point": {"row": 183, "column": 28}}, {"id": 1667, "type": "+", "text": "+", "parent": 1659, "children": [], "start_point": {"row": 183, "column": 29}, "end_point": {"row": 183, "column": 30}}, {"id": 1668, "type": "binary_expression", "text": "(1 + clon) * slat * termz", "parent": 1659, "children": [1669, 1677, 1678], "start_point": {"row": 183, "column": 31}, "end_point": {"row": 183, "column": 56}}, {"id": 1669, "type": "binary_expression", "text": "(1 + clon) * slat", "parent": 1668, "children": [1670, 1675, 1676], "start_point": {"row": 183, "column": 31}, "end_point": {"row": 183, "column": 48}}, {"id": 1670, "type": "parenthesized_expression", "text": "(1 + clon)", "parent": 1669, "children": [1671], "start_point": {"row": 183, "column": 31}, "end_point": {"row": 183, "column": 41}}, {"id": 1671, "type": "binary_expression", "text": "1 + clon", "parent": 1670, "children": [1672, 1673, 1674], "start_point": {"row": 183, "column": 32}, "end_point": {"row": 183, "column": 40}}, {"id": 1672, "type": "number_literal", "text": "1", "parent": 1671, "children": [], "start_point": {"row": 183, "column": 32}, "end_point": {"row": 183, "column": 33}}, {"id": 1673, "type": "+", "text": "+", "parent": 1671, "children": [], "start_point": {"row": 183, "column": 34}, "end_point": {"row": 183, "column": 35}}, {"id": 1674, "type": "identifier", "text": "clon", "parent": 1671, "children": [], "start_point": {"row": 183, "column": 36}, "end_point": {"row": 183, "column": 40}}, {"id": 1675, "type": "*", "text": "*", "parent": 1669, "children": [], "start_point": {"row": 183, "column": 42}, "end_point": {"row": 183, "column": 43}}, {"id": 1676, "type": "identifier", "text": "slat", "parent": 1669, "children": [], "start_point": {"row": 183, "column": 44}, "end_point": {"row": 183, "column": 48}}, {"id": 1677, "type": "*", "text": "*", "parent": 1668, "children": [], "start_point": {"row": 183, "column": 49}, "end_point": {"row": 183, "column": 50}}, {"id": 1678, "type": "identifier", "text": "termz", "parent": 1668, "children": [], "start_point": {"row": 183, "column": 51}, "end_point": {"row": 183, "column": 56}}, {"id": 1679, "type": "assignment_expression", "text": "dydl = (1 + clat) * clon / normu - (1 + clat) * slon * termz", "parent": 656, "children": [1680, 1681, 1682], "start_point": {"row": 184, "column": 2}, "end_point": {"row": 184, "column": 62}}, {"id": 1680, "type": "identifier", "text": "dydl", "parent": 1679, "children": [], "start_point": {"row": 184, "column": 2}, "end_point": {"row": 184, "column": 6}}, {"id": 1681, "type": "=", "text": "=", "parent": 1679, "children": [], "start_point": {"row": 184, "column": 7}, "end_point": {"row": 184, "column": 8}}, {"id": 1682, "type": "binary_expression", "text": "(1 + clat) * clon / normu - (1 + clat) * slon * termz", "parent": 1679, "children": [1683, 1694, 1695], "start_point": {"row": 184, "column": 9}, "end_point": {"row": 184, "column": 62}}, {"id": 1683, "type": "binary_expression", "text": "(1 + clat) * clon / normu", "parent": 1682, "children": [1684, 1692, 1693], "start_point": {"row": 184, "column": 9}, "end_point": {"row": 184, "column": 34}}, {"id": 1684, "type": "binary_expression", "text": "(1 + clat) * clon", "parent": 1683, "children": [1685, 1690, 1691], "start_point": {"row": 184, "column": 9}, "end_point": {"row": 184, "column": 26}}, {"id": 1685, "type": "parenthesized_expression", "text": "(1 + clat)", "parent": 1684, "children": [1686], "start_point": {"row": 184, "column": 9}, "end_point": {"row": 184, "column": 19}}, {"id": 1686, "type": "binary_expression", "text": "1 + clat", "parent": 1685, "children": [1687, 1688, 1689], "start_point": {"row": 184, "column": 10}, "end_point": {"row": 184, "column": 18}}, {"id": 1687, "type": "number_literal", "text": "1", "parent": 1686, "children": [], "start_point": {"row": 184, "column": 10}, "end_point": {"row": 184, "column": 11}}, {"id": 1688, "type": "+", "text": "+", "parent": 1686, "children": [], "start_point": {"row": 184, "column": 12}, "end_point": {"row": 184, "column": 13}}, {"id": 1689, "type": "identifier", "text": "clat", "parent": 1686, "children": [], "start_point": {"row": 184, "column": 14}, "end_point": {"row": 184, "column": 18}}, {"id": 1690, "type": "*", "text": "*", "parent": 1684, "children": [], "start_point": {"row": 184, "column": 20}, "end_point": {"row": 184, "column": 21}}, {"id": 1691, "type": "identifier", "text": "clon", "parent": 1684, "children": [], "start_point": {"row": 184, "column": 22}, "end_point": {"row": 184, "column": 26}}, {"id": 1692, "type": "/", "text": "/", "parent": 1683, "children": [], "start_point": {"row": 184, "column": 27}, "end_point": {"row": 184, "column": 28}}, {"id": 1693, "type": "identifier", "text": "normu", "parent": 1683, "children": [], "start_point": {"row": 184, "column": 29}, "end_point": {"row": 184, "column": 34}}, {"id": 1694, "type": "-", "text": "-", "parent": 1682, "children": [], "start_point": {"row": 184, "column": 35}, "end_point": {"row": 184, "column": 36}}, {"id": 1695, "type": "binary_expression", "text": "(1 + clat) * slon * termz", "parent": 1682, "children": [1696, 1704, 1705], "start_point": {"row": 184, "column": 37}, "end_point": {"row": 184, "column": 62}}, {"id": 1696, "type": "binary_expression", "text": "(1 + clat) * slon", "parent": 1695, "children": [1697, 1702, 1703], "start_point": {"row": 184, "column": 37}, "end_point": {"row": 184, "column": 54}}, {"id": 1697, "type": "parenthesized_expression", "text": "(1 + clat)", "parent": 1696, "children": [1698], "start_point": {"row": 184, "column": 37}, "end_point": {"row": 184, "column": 47}}, {"id": 1698, "type": "binary_expression", "text": "1 + clat", "parent": 1697, "children": [1699, 1700, 1701], "start_point": {"row": 184, "column": 38}, "end_point": {"row": 184, "column": 46}}, {"id": 1699, "type": "number_literal", "text": "1", "parent": 1698, "children": [], "start_point": {"row": 184, "column": 38}, "end_point": {"row": 184, "column": 39}}, {"id": 1700, "type": "+", "text": "+", "parent": 1698, "children": [], "start_point": {"row": 184, "column": 40}, "end_point": {"row": 184, "column": 41}}, {"id": 1701, "type": "identifier", "text": "clat", "parent": 1698, "children": [], "start_point": {"row": 184, "column": 42}, "end_point": {"row": 184, "column": 46}}, {"id": 1702, "type": "*", "text": "*", "parent": 1696, "children": [], "start_point": {"row": 184, "column": 48}, "end_point": {"row": 184, "column": 49}}, {"id": 1703, "type": "identifier", "text": "slon", "parent": 1696, "children": [], "start_point": {"row": 184, "column": 50}, "end_point": {"row": 184, "column": 54}}, {"id": 1704, "type": "*", "text": "*", "parent": 1695, "children": [], "start_point": {"row": 184, "column": 55}, "end_point": {"row": 184, "column": 56}}, {"id": 1705, "type": "identifier", "text": "termz", "parent": 1695, "children": [], "start_point": {"row": 184, "column": 57}, "end_point": {"row": 184, "column": 62}}, {"id": 1706, "type": "assignment_expression", "text": "dzdl = clon * slat / normu - slat * slon * termz", "parent": 656, "children": [1707, 1708, 1709], "start_point": {"row": 185, "column": 2}, "end_point": {"row": 185, "column": 50}}, {"id": 1707, "type": "identifier", "text": "dzdl", "parent": 1706, "children": [], "start_point": {"row": 185, "column": 2}, "end_point": {"row": 185, "column": 6}}, {"id": 1708, "type": "=", "text": "=", "parent": 1706, "children": [], "start_point": {"row": 185, "column": 7}, "end_point": {"row": 185, "column": 8}}, {"id": 1709, "type": "binary_expression", "text": "clon * slat / normu - slat * slon * termz", "parent": 1706, "children": [1710, 1717, 1718], "start_point": {"row": 185, "column": 9}, "end_point": {"row": 185, "column": 50}}, {"id": 1710, "type": "binary_expression", "text": "clon * slat / normu", "parent": 1709, "children": [1711, 1715, 1716], "start_point": {"row": 185, "column": 9}, "end_point": {"row": 185, "column": 28}}, {"id": 1711, "type": "binary_expression", "text": "clon * slat", "parent": 1710, "children": [1712, 1713, 1714], "start_point": {"row": 185, "column": 9}, "end_point": {"row": 185, "column": 20}}, {"id": 1712, "type": "identifier", "text": "clon", "parent": 1711, "children": [], "start_point": {"row": 185, "column": 9}, "end_point": {"row": 185, "column": 13}}, {"id": 1713, "type": "*", "text": "*", "parent": 1711, "children": [], "start_point": {"row": 185, "column": 14}, "end_point": {"row": 185, "column": 15}}, {"id": 1714, "type": "identifier", "text": "slat", "parent": 1711, "children": [], "start_point": {"row": 185, "column": 16}, "end_point": {"row": 185, "column": 20}}, {"id": 1715, "type": "/", "text": "/", "parent": 1710, "children": [], "start_point": {"row": 185, "column": 21}, "end_point": {"row": 185, "column": 22}}, {"id": 1716, "type": "identifier", "text": "normu", "parent": 1710, "children": [], "start_point": {"row": 185, "column": 23}, "end_point": {"row": 185, "column": 28}}, {"id": 1717, "type": "-", "text": "-", "parent": 1709, "children": [], "start_point": {"row": 185, "column": 29}, "end_point": {"row": 185, "column": 30}}, {"id": 1718, "type": "binary_expression", "text": "slat * slon * termz", "parent": 1709, "children": [1719, 1723, 1724], "start_point": {"row": 185, "column": 31}, "end_point": {"row": 185, "column": 50}}, {"id": 1719, "type": "binary_expression", "text": "slat * slon", "parent": 1718, "children": [1720, 1721, 1722], "start_point": {"row": 185, "column": 31}, "end_point": {"row": 185, "column": 42}}, {"id": 1720, "type": "identifier", "text": "slat", "parent": 1719, "children": [], "start_point": {"row": 185, "column": 31}, "end_point": {"row": 185, "column": 35}}, {"id": 1721, "type": "*", "text": "*", "parent": 1719, "children": [], "start_point": {"row": 185, "column": 36}, "end_point": {"row": 185, "column": 37}}, {"id": 1722, "type": "identifier", "text": "slon", "parent": 1719, "children": [], "start_point": {"row": 185, "column": 38}, "end_point": {"row": 185, "column": 42}}, {"id": 1723, "type": "*", "text": "*", "parent": 1718, "children": [], "start_point": {"row": 185, "column": 43}, "end_point": {"row": 185, "column": 44}}, {"id": 1724, "type": "identifier", "text": "termz", "parent": 1718, "children": [], "start_point": {"row": 185, "column": 45}, "end_point": {"row": 185, "column": 50}}, {"id": 1725, "type": "assignment_expression", "text": "dthetadl = u(1)", "parent": 656, "children": [1726, 1727, 1728], "start_point": {"row": 186, "column": 2}, "end_point": {"row": 186, "column": 17}}, {"id": 1726, "type": "identifier", "text": "dthetadl", "parent": 1725, "children": [], "start_point": {"row": 186, "column": 2}, "end_point": {"row": 186, "column": 10}}, {"id": 1727, "type": "=", "text": "=", "parent": 1725, "children": [], "start_point": {"row": 186, "column": 11}, "end_point": {"row": 186, "column": 12}}, {"id": 1728, "type": "call_expression", "text": "u(1)", "parent": 1725, "children": [1729, 1730], "start_point": {"row": 186, "column": 13}, "end_point": {"row": 186, "column": 17}}, {"id": 1729, "type": "identifier", "text": "u", "parent": 1728, "children": [], "start_point": {"row": 186, "column": 13}, "end_point": {"row": 186, "column": 14}}, {"id": 1730, "type": "argument_list", "text": "(1)", "parent": 1728, "children": [1731], "start_point": {"row": 186, "column": 14}, "end_point": {"row": 186, "column": 17}}, {"id": 1731, "type": "number_literal", "text": "1", "parent": 1730, "children": [], "start_point": {"row": 186, "column": 15}, "end_point": {"row": 186, "column": 16}}, {"id": 1732, "type": "assignment_expression", "text": "blon = (dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz -\n dthetadl * W.dotR_btheta)", "parent": 656, "children": [1733, 1734, 1735], "start_point": {"row": 187, "column": 2}, "end_point": {"row": 188, "column": 35}}, {"id": 1733, "type": "identifier", "text": "blon", "parent": 1732, "children": [], "start_point": {"row": 187, "column": 2}, "end_point": {"row": 187, "column": 6}}, {"id": 1734, "type": "=", "text": "=", "parent": 1732, "children": [], "start_point": {"row": 187, "column": 7}, "end_point": {"row": 187, "column": 8}}, {"id": 1735, "type": "parenthesized_expression", "text": "(dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz -\n dthetadl * W.dotR_btheta)", "parent": 1732, "children": [1736], "start_point": {"row": 187, "column": 9}, "end_point": {"row": 188, "column": 35}}, {"id": 1736, "type": "binary_expression", "text": "dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz -\n dthetadl * W.dotR_btheta", "parent": 1735, "children": [1737, 1759, 1760], "start_point": {"row": 187, "column": 10}, "end_point": {"row": 188, "column": 34}}, {"id": 1737, "type": "binary_expression", "text": "dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz", "parent": 1736, "children": [1738, 1752, 1753], "start_point": {"row": 187, "column": 10}, "end_point": {"row": 187, "column": 64}}, {"id": 1738, "type": "binary_expression", "text": "dxdl * W.dotR_bx + dydl * W.dotR_by", "parent": 1737, "children": [1739, 1745, 1746], "start_point": {"row": 187, "column": 10}, "end_point": {"row": 187, "column": 45}}, {"id": 1739, "type": "binary_expression", "text": "dxdl * W.dotR_bx", "parent": 1738, "children": [1740, 1741, 1742], "start_point": {"row": 187, "column": 10}, "end_point": {"row": 187, "column": 26}}, {"id": 1740, "type": "identifier", "text": "dxdl", "parent": 1739, "children": [], "start_point": {"row": 187, "column": 10}, "end_point": {"row": 187, "column": 14}}, {"id": 1741, "type": "*", "text": "*", "parent": 1739, "children": [], "start_point": {"row": 187, "column": 15}, "end_point": {"row": 187, "column": 16}}, {"id": 1742, "type": "field_expression", "text": "W.dotR_bx", "parent": 1739, "children": [1743, 1744], "start_point": {"row": 187, "column": 17}, "end_point": {"row": 187, "column": 26}}, {"id": 1743, "type": "identifier", "text": "W", "parent": 1742, "children": [], "start_point": {"row": 187, "column": 17}, "end_point": {"row": 187, "column": 18}}, {"id": 1744, "type": "field_identifier", "text": "dotR_bx", "parent": 1742, "children": [], "start_point": {"row": 187, "column": 19}, "end_point": {"row": 187, "column": 26}}, {"id": 1745, "type": "+", "text": "+", "parent": 1738, "children": [], "start_point": {"row": 187, "column": 27}, "end_point": {"row": 187, "column": 28}}, {"id": 1746, "type": "binary_expression", "text": "dydl * W.dotR_by", "parent": 1738, "children": [1747, 1748, 1749], "start_point": {"row": 187, "column": 29}, "end_point": {"row": 187, "column": 45}}, {"id": 1747, "type": "identifier", "text": "dydl", "parent": 1746, "children": [], "start_point": {"row": 187, "column": 29}, "end_point": {"row": 187, "column": 33}}, {"id": 1748, "type": "*", "text": "*", "parent": 1746, "children": [], "start_point": {"row": 187, "column": 34}, "end_point": {"row": 187, "column": 35}}, {"id": 1749, "type": "field_expression", "text": "W.dotR_by", "parent": 1746, "children": [1750, 1751], "start_point": {"row": 187, "column": 36}, "end_point": {"row": 187, "column": 45}}, {"id": 1750, "type": "identifier", "text": "W", "parent": 1749, "children": [], "start_point": {"row": 187, "column": 36}, "end_point": {"row": 187, "column": 37}}, {"id": 1751, "type": "field_identifier", "text": "dotR_by", "parent": 1749, "children": [], "start_point": {"row": 187, "column": 38}, "end_point": {"row": 187, "column": 45}}, {"id": 1752, "type": "+", "text": "+", "parent": 1737, "children": [], "start_point": {"row": 187, "column": 46}, "end_point": {"row": 187, "column": 47}}, {"id": 1753, "type": "binary_expression", "text": "dzdl * W.dotR_bz", "parent": 1737, "children": [1754, 1755, 1756], "start_point": {"row": 187, "column": 48}, "end_point": {"row": 187, "column": 64}}, {"id": 1754, "type": "identifier", "text": "dzdl", "parent": 1753, "children": [], "start_point": {"row": 187, "column": 48}, "end_point": {"row": 187, "column": 52}}, {"id": 1755, "type": "*", "text": "*", "parent": 1753, "children": [], "start_point": {"row": 187, "column": 53}, "end_point": {"row": 187, "column": 54}}, {"id": 1756, "type": "field_expression", "text": "W.dotR_bz", "parent": 1753, "children": [1757, 1758], "start_point": {"row": 187, "column": 55}, "end_point": {"row": 187, "column": 64}}, {"id": 1757, "type": "identifier", "text": "W", "parent": 1756, "children": [], "start_point": {"row": 187, "column": 55}, "end_point": {"row": 187, "column": 56}}, {"id": 1758, "type": "field_identifier", "text": "dotR_bz", "parent": 1756, "children": [], "start_point": {"row": 187, "column": 57}, "end_point": {"row": 187, "column": 64}}, {"id": 1759, "type": "-", "text": "-", "parent": 1736, "children": [], "start_point": {"row": 187, "column": 65}, "end_point": {"row": 187, "column": 66}}, {"id": 1760, "type": "binary_expression", "text": "dthetadl * W.dotR_btheta", "parent": 1736, "children": [1761, 1762, 1763], "start_point": {"row": 188, "column": 10}, "end_point": {"row": 188, "column": 34}}, {"id": 1761, "type": "identifier", "text": "dthetadl", "parent": 1760, "children": [], "start_point": {"row": 188, "column": 10}, "end_point": {"row": 188, "column": 18}}, {"id": 1762, "type": "*", "text": "*", "parent": 1760, "children": [], "start_point": {"row": 188, "column": 19}, "end_point": {"row": 188, "column": 20}}, {"id": 1763, "type": "field_expression", "text": "W.dotR_btheta", "parent": 1760, "children": [1764, 1765], "start_point": {"row": 188, "column": 21}, "end_point": {"row": 188, "column": 34}}, {"id": 1764, "type": "identifier", "text": "W", "parent": 1763, "children": [], "start_point": {"row": 188, "column": 21}, "end_point": {"row": 188, "column": 22}}, {"id": 1765, "type": "field_identifier", "text": "dotR_btheta", "parent": 1763, "children": [], "start_point": {"row": 188, "column": 23}, "end_point": {"row": 188, "column": 34}}, {"id": 1766, "type": "call_expression", "text": "W.dotR(dydsigma.transpose(), u(0), u(1), u(2), -theta)", "parent": 656, "children": [1767, 1770], "start_point": {"row": 191, "column": 2}, "end_point": {"row": 191, "column": 56}}, {"id": 1767, "type": "field_expression", "text": "W.dotR", "parent": 1766, "children": [1768, 1769], "start_point": {"row": 191, "column": 2}, "end_point": {"row": 191, "column": 8}}, {"id": 1768, "type": "identifier", "text": "W", "parent": 1767, "children": [], "start_point": {"row": 191, "column": 2}, "end_point": {"row": 191, "column": 3}}, {"id": 1769, "type": "field_identifier", "text": "dotR", "parent": 1767, "children": [], "start_point": {"row": 191, "column": 4}, "end_point": {"row": 191, "column": 8}}, {"id": 1770, "type": "argument_list", "text": "(dydsigma.transpose(), u(0), u(1), u(2), -theta)", "parent": 1766, "children": [1771, 1776, 1780, 1784, 1788], "start_point": {"row": 191, "column": 8}, "end_point": {"row": 191, "column": 56}}, {"id": 1771, "type": "call_expression", "text": "dydsigma.transpose()", "parent": 1770, "children": [1772, 1775], "start_point": {"row": 191, "column": 9}, "end_point": {"row": 191, "column": 29}}, {"id": 1772, "type": "field_expression", "text": "dydsigma.transpose", "parent": 1771, "children": [1773, 1774], "start_point": {"row": 191, "column": 9}, "end_point": {"row": 191, "column": 27}}, {"id": 1773, "type": "identifier", "text": "dydsigma", "parent": 1772, "children": [], "start_point": {"row": 191, "column": 9}, "end_point": {"row": 191, "column": 17}}, {"id": 1774, "type": "field_identifier", "text": "transpose", "parent": 1772, "children": [], "start_point": {"row": 191, "column": 18}, "end_point": {"row": 191, "column": 27}}, {"id": 1775, "type": "argument_list", "text": "()", "parent": 1771, "children": [], "start_point": {"row": 191, "column": 27}, "end_point": {"row": 191, "column": 29}}, {"id": 1776, "type": "call_expression", "text": "u(0)", "parent": 1770, "children": [1777, 1778], "start_point": {"row": 191, "column": 31}, "end_point": {"row": 191, "column": 35}}, {"id": 1777, "type": "identifier", "text": "u", "parent": 1776, "children": [], "start_point": {"row": 191, "column": 31}, "end_point": {"row": 191, "column": 32}}, {"id": 1778, "type": "argument_list", "text": "(0)", "parent": 1776, "children": [1779], "start_point": {"row": 191, "column": 32}, "end_point": {"row": 191, "column": 35}}, {"id": 1779, "type": "number_literal", "text": "0", "parent": 1778, "children": [], "start_point": {"row": 191, "column": 33}, "end_point": {"row": 191, "column": 34}}, {"id": 1780, "type": "call_expression", "text": "u(1)", "parent": 1770, "children": [1781, 1782], "start_point": {"row": 191, "column": 37}, "end_point": {"row": 191, "column": 41}}, {"id": 1781, "type": "identifier", "text": "u", "parent": 1780, "children": [], "start_point": {"row": 191, "column": 37}, "end_point": {"row": 191, "column": 38}}, {"id": 1782, "type": "argument_list", "text": "(1)", "parent": 1780, "children": [1783], "start_point": {"row": 191, "column": 38}, "end_point": {"row": 191, "column": 41}}, {"id": 1783, "type": "number_literal", "text": "1", "parent": 1782, "children": [], "start_point": {"row": 191, "column": 39}, "end_point": {"row": 191, "column": 40}}, {"id": 1784, "type": "call_expression", "text": "u(2)", "parent": 1770, "children": [1785, 1786], "start_point": {"row": 191, "column": 43}, "end_point": {"row": 191, "column": 47}}, {"id": 1785, "type": "identifier", "text": "u", "parent": 1784, "children": [], "start_point": {"row": 191, "column": 43}, "end_point": {"row": 191, "column": 44}}, {"id": 1786, "type": "argument_list", "text": "(2)", "parent": 1784, "children": [1787], "start_point": {"row": 191, "column": 44}, "end_point": {"row": 191, "column": 47}}, {"id": 1787, "type": "number_literal", "text": "2", "parent": 1786, "children": [], "start_point": {"row": 191, "column": 45}, "end_point": {"row": 191, "column": 46}}, {"id": 1788, "type": "unary_expression", "text": "-theta", "parent": 1770, "children": [1789, 1790], "start_point": {"row": 191, "column": 49}, "end_point": {"row": 191, "column": 55}}, {"id": 1789, "type": "-", "text": "-", "parent": 1788, "children": [], "start_point": {"row": 191, "column": 49}, "end_point": {"row": 191, "column": 50}}, {"id": 1790, "type": "identifier", "text": "theta", "parent": 1788, "children": [], "start_point": {"row": 191, "column": 50}, "end_point": {"row": 191, "column": 55}}, {"id": 1791, "type": "assignment_expression", "text": "dydsigma = W.dotR_result.transpose()", "parent": 656, "children": [1792, 1793, 1794], "start_point": {"row": 192, "column": 2}, "end_point": {"row": 192, "column": 38}}, {"id": 1792, "type": "identifier", "text": "dydsigma", "parent": 1791, "children": [], "start_point": {"row": 192, "column": 2}, "end_point": {"row": 192, "column": 10}}, {"id": 1793, "type": "=", "text": "=", "parent": 1791, "children": [], "start_point": {"row": 192, "column": 11}, "end_point": {"row": 192, "column": 12}}, {"id": 1794, "type": "call_expression", "text": "W.dotR_result.transpose()", "parent": 1791, "children": [1795, 1800], "start_point": {"row": 192, "column": 13}, "end_point": {"row": 192, "column": 38}}, {"id": 1795, "type": "field_expression", "text": "W.dotR_result.transpose", "parent": 1794, "children": [1796, 1799], "start_point": {"row": 192, "column": 13}, "end_point": {"row": 192, "column": 36}}, {"id": 1796, "type": "field_expression", "text": "W.dotR_result", "parent": 1795, "children": [1797, 1798], "start_point": {"row": 192, "column": 13}, "end_point": {"row": 192, "column": 26}}, {"id": 1797, "type": "identifier", "text": "W", "parent": 1796, "children": [], "start_point": {"row": 192, "column": 13}, "end_point": {"row": 192, "column": 14}}, {"id": 1798, "type": "field_identifier", "text": "dotR_result", "parent": 1796, "children": [], "start_point": {"row": 192, "column": 15}, "end_point": {"row": 192, "column": 26}}, {"id": 1799, "type": "field_identifier", "text": "transpose", "parent": 1795, "children": [], "start_point": {"row": 192, "column": 27}, "end_point": {"row": 192, "column": 36}}, {"id": 1800, "type": "argument_list", "text": "()", "parent": 1794, "children": [], "start_point": {"row": 192, "column": 36}, "end_point": {"row": 192, "column": 38}}, {"id": 1801, "type": "assignment_expression", "text": "bsigma = (by.transpose() * dydsigma).dot(amp)", "parent": 656, "children": [1802, 1803, 1804], "start_point": {"row": 193, "column": 2}, "end_point": {"row": 193, "column": 47}}, {"id": 1802, "type": "identifier", "text": "bsigma", "parent": 1801, "children": [], "start_point": {"row": 193, "column": 2}, "end_point": {"row": 193, "column": 8}}, {"id": 1803, "type": "=", "text": "=", "parent": 1801, "children": [], "start_point": {"row": 193, "column": 9}, "end_point": {"row": 193, "column": 10}}, {"id": 1804, "type": "call_expression", "text": "(by.transpose() * dydsigma).dot(amp)", "parent": 1801, "children": [1805, 1816], "start_point": {"row": 193, "column": 11}, "end_point": {"row": 193, "column": 47}}, {"id": 1805, "type": "field_expression", "text": "(by.transpose() * dydsigma).dot", "parent": 1804, "children": [1806, 1815], "start_point": {"row": 193, "column": 11}, "end_point": {"row": 193, "column": 42}}, {"id": 1806, "type": "parenthesized_expression", "text": "(by.transpose() * dydsigma)", "parent": 1805, "children": [1807], "start_point": {"row": 193, "column": 11}, "end_point": {"row": 193, "column": 38}}, {"id": 1807, "type": "binary_expression", "text": "by.transpose() * dydsigma", "parent": 1806, "children": [1808, 1813, 1814], "start_point": {"row": 193, "column": 12}, "end_point": {"row": 193, "column": 37}}, {"id": 1808, "type": "call_expression", "text": "by.transpose()", "parent": 1807, "children": [1809, 1812], "start_point": {"row": 193, "column": 12}, "end_point": {"row": 193, "column": 26}}, {"id": 1809, "type": "field_expression", "text": "by.transpose", "parent": 1808, "children": [1810, 1811], "start_point": {"row": 193, "column": 12}, "end_point": {"row": 193, "column": 24}}, {"id": 1810, "type": "identifier", "text": "by", "parent": 1809, "children": [], "start_point": {"row": 193, "column": 12}, "end_point": {"row": 193, "column": 14}}, {"id": 1811, "type": "field_identifier", "text": "transpose", "parent": 1809, "children": [], "start_point": {"row": 193, "column": 15}, "end_point": {"row": 193, "column": 24}}, {"id": 1812, "type": "argument_list", "text": "()", "parent": 1808, "children": [], "start_point": {"row": 193, "column": 24}, "end_point": {"row": 193, "column": 26}}, {"id": 1813, "type": "*", "text": "*", "parent": 1807, "children": [], "start_point": {"row": 193, "column": 27}, "end_point": {"row": 193, "column": 28}}, {"id": 1814, "type": "identifier", "text": "dydsigma", "parent": 1807, "children": [], "start_point": {"row": 193, "column": 29}, "end_point": {"row": 193, "column": 37}}, {"id": 1815, "type": "field_identifier", "text": "dot", "parent": 1805, "children": [], "start_point": {"row": 193, "column": 39}, "end_point": {"row": 193, "column": 42}}, {"id": 1816, "type": "argument_list", "text": "(amp)", "parent": 1804, "children": [1817], "start_point": {"row": 193, "column": 42}, "end_point": {"row": 193, "column": 47}}, {"id": 1817, "type": "identifier", "text": "amp", "parent": 1816, "children": [], "start_point": {"row": 193, "column": 43}, "end_point": {"row": 193, "column": 46}}, {"id": 1818, "type": "call_expression", "text": "W.dotR(y.transpose(), u(0), u(1), u(2), -theta)", "parent": 656, "children": [1819, 1822], "start_point": {"row": 196, "column": 2}, "end_point": {"row": 196, "column": 49}}, {"id": 1819, "type": "field_expression", "text": "W.dotR", "parent": 1818, "children": [1820, 1821], "start_point": {"row": 196, "column": 2}, "end_point": {"row": 196, "column": 8}}, {"id": 1820, "type": "identifier", "text": "W", "parent": 1819, "children": [], "start_point": {"row": 196, "column": 2}, "end_point": {"row": 196, "column": 3}}, {"id": 1821, "type": "field_identifier", "text": "dotR", "parent": 1819, "children": [], "start_point": {"row": 196, "column": 4}, "end_point": {"row": 196, "column": 8}}, {"id": 1822, "type": "argument_list", "text": "(y.transpose(), u(0), u(1), u(2), -theta)", "parent": 1818, "children": [1823, 1828, 1832, 1836, 1840], "start_point": {"row": 196, "column": 8}, "end_point": {"row": 196, "column": 49}}, {"id": 1823, "type": "call_expression", "text": "y.transpose()", "parent": 1822, "children": [1824, 1827], "start_point": {"row": 196, "column": 9}, "end_point": {"row": 196, "column": 22}}, {"id": 1824, "type": "field_expression", "text": "y.transpose", "parent": 1823, "children": [1825, 1826], "start_point": {"row": 196, "column": 9}, "end_point": {"row": 196, "column": 20}}, {"id": 1825, "type": "identifier", "text": "y", "parent": 1824, "children": [], "start_point": {"row": 196, "column": 9}, "end_point": {"row": 196, "column": 10}}, {"id": 1826, "type": "field_identifier", "text": "transpose", "parent": 1824, "children": [], "start_point": {"row": 196, "column": 11}, "end_point": {"row": 196, "column": 20}}, {"id": 1827, "type": "argument_list", "text": "()", "parent": 1823, "children": [], "start_point": {"row": 196, "column": 20}, "end_point": {"row": 196, "column": 22}}, {"id": 1828, "type": "call_expression", "text": "u(0)", "parent": 1822, "children": [1829, 1830], "start_point": {"row": 196, "column": 24}, "end_point": {"row": 196, "column": 28}}, {"id": 1829, "type": "identifier", "text": "u", "parent": 1828, "children": [], "start_point": {"row": 196, "column": 24}, "end_point": {"row": 196, "column": 25}}, {"id": 1830, "type": "argument_list", "text": "(0)", "parent": 1828, "children": [1831], "start_point": {"row": 196, "column": 25}, "end_point": {"row": 196, "column": 28}}, {"id": 1831, "type": "number_literal", "text": "0", "parent": 1830, "children": [], "start_point": {"row": 196, "column": 26}, "end_point": {"row": 196, "column": 27}}, {"id": 1832, "type": "call_expression", "text": "u(1)", "parent": 1822, "children": [1833, 1834], "start_point": {"row": 196, "column": 30}, "end_point": {"row": 196, "column": 34}}, {"id": 1833, "type": "identifier", "text": "u", "parent": 1832, "children": [], "start_point": {"row": 196, "column": 30}, "end_point": {"row": 196, "column": 31}}, {"id": 1834, "type": "argument_list", "text": "(1)", "parent": 1832, "children": [1835], "start_point": {"row": 196, "column": 31}, "end_point": {"row": 196, "column": 34}}, {"id": 1835, "type": "number_literal", "text": "1", "parent": 1834, "children": [], "start_point": {"row": 196, "column": 32}, "end_point": {"row": 196, "column": 33}}, {"id": 1836, "type": "call_expression", "text": "u(2)", "parent": 1822, "children": [1837, 1838], "start_point": {"row": 196, "column": 36}, "end_point": {"row": 196, "column": 40}}, {"id": 1837, "type": "identifier", "text": "u", "parent": 1836, "children": [], "start_point": {"row": 196, "column": 36}, "end_point": {"row": 196, "column": 37}}, {"id": 1838, "type": "argument_list", "text": "(2)", "parent": 1836, "children": [1839], "start_point": {"row": 196, "column": 37}, "end_point": {"row": 196, "column": 40}}, {"id": 1839, "type": "number_literal", "text": "2", "parent": 1838, "children": [], "start_point": {"row": 196, "column": 38}, "end_point": {"row": 196, "column": 39}}, {"id": 1840, "type": "unary_expression", "text": "-theta", "parent": 1822, "children": [1841, 1842], "start_point": {"row": 196, "column": 42}, "end_point": {"row": 196, "column": 48}}, {"id": 1841, "type": "-", "text": "-", "parent": 1840, "children": [], "start_point": {"row": 196, "column": 42}, "end_point": {"row": 196, "column": 43}}, {"id": 1842, "type": "identifier", "text": "theta", "parent": 1840, "children": [], "start_point": {"row": 196, "column": 43}, "end_point": {"row": 196, "column": 48}}, {"id": 1843, "type": "assignment_expression", "text": "y = W.dotR_result.transpose()", "parent": 656, "children": [1844, 1845, 1846], "start_point": {"row": 197, "column": 2}, "end_point": {"row": 197, "column": 31}}, {"id": 1844, "type": "identifier", "text": "y", "parent": 1843, "children": [], "start_point": {"row": 197, "column": 2}, "end_point": {"row": 197, "column": 3}}, {"id": 1845, "type": "=", "text": "=", "parent": 1843, "children": [], "start_point": {"row": 197, "column": 4}, "end_point": {"row": 197, "column": 5}}, {"id": 1846, "type": "call_expression", "text": "W.dotR_result.transpose()", "parent": 1843, "children": [1847, 1852], "start_point": {"row": 197, "column": 6}, "end_point": {"row": 197, "column": 31}}, {"id": 1847, "type": "field_expression", "text": "W.dotR_result.transpose", "parent": 1846, "children": [1848, 1851], "start_point": {"row": 197, "column": 6}, "end_point": {"row": 197, "column": 29}}, {"id": 1848, "type": "field_expression", "text": "W.dotR_result", "parent": 1847, "children": [1849, 1850], "start_point": {"row": 197, "column": 6}, "end_point": {"row": 197, "column": 19}}, {"id": 1849, "type": "identifier", "text": "W", "parent": 1848, "children": [], "start_point": {"row": 197, "column": 6}, "end_point": {"row": 197, "column": 7}}, {"id": 1850, "type": "field_identifier", "text": "dotR_result", "parent": 1848, "children": [], "start_point": {"row": 197, "column": 8}, "end_point": {"row": 197, "column": 19}}, {"id": 1851, "type": "field_identifier", "text": "transpose", "parent": 1847, "children": [], "start_point": {"row": 197, "column": 20}, "end_point": {"row": 197, "column": 29}}, {"id": 1852, "type": "argument_list", "text": "()", "parent": 1846, "children": [], "start_point": {"row": 197, "column": 29}, "end_point": {"row": 197, "column": 31}}, {"id": 1853, "type": "assignment_expression", "text": "bamp = y.transpose() * by", "parent": 656, "children": [1854, 1855, 1856], "start_point": {"row": 200, "column": 2}, "end_point": {"row": 200, "column": 27}}, {"id": 1854, "type": "identifier", "text": "bamp", "parent": 1853, "children": [], "start_point": {"row": 200, "column": 2}, "end_point": {"row": 200, "column": 6}}, {"id": 1855, "type": "=", "text": "=", "parent": 1853, "children": [], "start_point": {"row": 200, "column": 7}, "end_point": {"row": 200, "column": 8}}, {"id": 1856, "type": "binary_expression", "text": "y.transpose() * by", "parent": 1853, "children": [1857, 1862, 1863], "start_point": {"row": 200, "column": 9}, "end_point": {"row": 200, "column": 27}}, {"id": 1857, "type": "call_expression", "text": "y.transpose()", "parent": 1856, "children": [1858, 1861], "start_point": {"row": 200, "column": 9}, "end_point": {"row": 200, "column": 22}}, {"id": 1858, "type": "field_expression", "text": "y.transpose", "parent": 1857, "children": [1859, 1860], "start_point": {"row": 200, "column": 9}, "end_point": {"row": 200, "column": 20}}, {"id": 1859, "type": "identifier", "text": "y", "parent": 1858, "children": [], "start_point": {"row": 200, "column": 9}, "end_point": {"row": 200, "column": 10}}, {"id": 1860, "type": "field_identifier", "text": "transpose", "parent": 1858, "children": [], "start_point": {"row": 200, "column": 11}, "end_point": {"row": 200, "column": 20}}, {"id": 1861, "type": "argument_list", "text": "()", "parent": 1857, "children": [], "start_point": {"row": 200, "column": 20}, "end_point": {"row": 200, "column": 22}}, {"id": 1862, "type": "*", "text": "*", "parent": 1856, "children": [], "start_point": {"row": 200, "column": 23}, "end_point": {"row": 200, "column": 24}}, {"id": 1863, "type": "identifier", "text": "by", "parent": 1856, "children": [], "start_point": {"row": 200, "column": 25}, "end_point": {"row": 200, "column": 27}}, {"id": 1864, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 205, "column": 0}, "end_point": {"row": 205, "column": 6}}]}, "node_categories": {"declarations": {"functions": [12, 15, 656, 658], "variables": [18, 127, 143, 152, 164, 251, 258, 395, 451, 487, 496, 505, 514, 523, 579, 593, 602, 661, 668, 671, 674, 677, 684, 687, 695, 702, 705, 708, 711, 723, 799, 828, 844, 853, 915, 1002, 1009, 1146, 1225, 1248, 1251, 1254, 1263, 1272, 1281, 1310, 1371, 1448, 1491, 1522, 1549, 1570], "classes": [], "imports": [6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [23, 24, 25, 26, 37, 40, 41, 46, 48, 51, 54, 62, 63, 68, 70, 71, 76, 79, 83, 84, 89, 92, 96, 97, 102, 105, 106, 107, 112, 113, 117, 118, 122, 123, 132, 135, 136, 137, 148, 157, 160, 169, 172, 177, 182, 183, 188, 189, 190, 193, 194, 201, 206, 207, 208, 209, 214, 215, 216, 217, 218, 229, 230, 235, 242, 247, 264, 267, 271, 275, 280, 281, 282, 283, 284, 285, 286, 293, 294, 295, 302, 303, 304, 305, 308, 313, 320, 321, 322, 323, 324, 333, 336, 341, 342, 343, 344, 351, 354, 359, 364, 365, 366, 367, 368, 375, 378, 383, 386, 401, 404, 408, 412, 413, 417, 418, 425, 426, 429, 432, 433, 440, 441, 442, 447, 456, 457, 458, 465, 468, 469, 470, 471, 472, 479, 480, 481, 492, 501, 510, 519, 528, 531, 532, 533, 534, 539, 545, 546, 552, 553, 556, 557, 561, 562, 566, 567, 570, 571, 575, 584, 585, 598, 607, 612, 613, 617, 618, 622, 626, 630, 634, 640, 641, 642, 649, 650, 716, 730, 731, 736, 737, 742, 747, 748, 753, 756, 760, 761, 766, 769, 773, 774, 779, 782, 783, 784, 789, 790, 794, 795, 802, 803, 808, 811, 812, 813, 818, 819, 823, 824, 833, 836, 837, 838, 849, 858, 861, 864, 865, 870, 871, 872, 879, 880, 881, 883, 886, 887, 888, 895, 898, 901, 904, 905, 910, 911, 920, 923, 928, 933, 934, 939, 940, 941, 944, 945, 952, 957, 958, 959, 960, 965, 966, 967, 968, 969, 980, 981, 986, 993, 998, 1015, 1018, 1022, 1026, 1031, 1032, 1033, 1034, 1035, 1036, 1037, 1044, 1045, 1046, 1053, 1054, 1055, 1056, 1059, 1064, 1071, 1072, 1073, 1074, 1075, 1084, 1087, 1092, 1093, 1094, 1095, 1102, 1105, 1110, 1115, 1116, 1117, 1118, 1119, 1126, 1129, 1134, 1137, 1152, 1155, 1159, 1165, 1166, 1169, 1170, 1177, 1178, 1179, 1184, 1189, 1192, 1193, 1200, 1201, 1206, 1209, 1210, 1217, 1218, 1219, 1230, 1231, 1232, 1239, 1241, 1242, 1259, 1268, 1277, 1286, 1291, 1292, 1293, 1294, 1295, 1302, 1303, 1304, 1315, 1318, 1319, 1320, 1321, 1326, 1332, 1333, 1336, 1337, 1341, 1342, 1346, 1347, 1350, 1351, 1355, 1362, 1363, 1376, 1383, 1393, 1394, 1398, 1405, 1406, 1414, 1418, 1419, 1423, 1424, 1428, 1432, 1436, 1440, 1443, 1444, 1453, 1454, 1455, 1456, 1457, 1458, 1461, 1462, 1467, 1468, 1475, 1476, 1483, 1484, 1485, 1496, 1497, 1498, 1499, 1503, 1504, 1511, 1512, 1513, 1514, 1527, 1528, 1529, 1530, 1538, 1539, 1540, 1541, 1554, 1555, 1556, 1563, 1564, 1575, 1577, 1584, 1585, 1586, 1587, 1588, 1591, 1595, 1598, 1602, 1605, 1609, 1612, 1618, 1619, 1620, 1621, 1622, 1623, 1626, 1627, 1632, 1633, 1640, 1641, 1648, 1649, 1650, 1659, 1660, 1661, 1668, 1669, 1670, 1671, 1682, 1683, 1684, 1685, 1686, 1695, 1696, 1697, 1698, 1709, 1710, 1711, 1718, 1719, 1728, 1735, 1736, 1737, 1738, 1739, 1742, 1746, 1749, 1753, 1756, 1760, 1763, 1766, 1767, 1771, 1772, 1776, 1780, 1784, 1788, 1794, 1795, 1796, 1804, 1805, 1806, 1807, 1808, 1809, 1818, 1819, 1823, 1824, 1828, 1832, 1836, 1840, 1846, 1847, 1848, 1856, 1857, 1858], "assignments": [176, 200, 234, 241, 274, 358, 390, 411, 589, 637, 729, 869, 927, 951, 985, 992, 1025, 1109, 1141, 1162, 1188, 1205, 1359, 1367, 1380, 1389, 1401, 1411, 1581, 1615, 1656, 1679, 1706, 1725, 1732, 1791, 1801, 1843, 1853], "loops": [257, 394, 1008, 1145], "conditionals": [0, 1, 2, 5, 13, 14, 16, 17, 19, 20, 22, 27, 29, 31, 33, 35, 38, 42, 44, 47, 49, 50, 52, 53, 55, 56, 57, 59, 61, 64, 66, 69, 72, 74, 77, 80, 85, 87, 90, 93, 98, 100, 103, 108, 114, 119, 120, 124, 125, 128, 130, 140, 142, 144, 146, 149, 151, 153, 155, 158, 163, 165, 167, 170, 175, 178, 184, 186, 191, 197, 199, 202, 210, 212, 219, 221, 223, 225, 233, 236, 243, 248, 254, 261, 265, 268, 273, 276, 278, 289, 298, 300, 306, 309, 314, 316, 327, 331, 334, 337, 345, 349, 352, 355, 360, 362, 371, 376, 379, 384, 387, 391, 398, 402, 405, 410, 414, 415, 419, 421, 423, 427, 430, 436, 443, 445, 448, 452, 454, 461, 463, 466, 467, 473, 475, 477, 482, 484, 486, 488, 490, 493, 495, 497, 499, 502, 504, 506, 508, 511, 513, 515, 517, 520, 522, 524, 526, 535, 537, 540, 542, 547, 549, 551, 554, 559, 565, 568, 574, 576, 578, 580, 582, 586, 587, 590, 592, 594, 596, 601, 603, 605, 608, 610, 611, 614, 615, 619, 620, 623, 627, 631, 636, 638, 643, 644, 645, 648, 651, 653, 655, 659, 662, 665, 667, 669, 670, 672, 673, 675, 676, 678, 683, 686, 688, 690, 692, 694, 696, 699, 701, 703, 704, 706, 707, 709, 710, 712, 714, 717, 719, 724, 726, 728, 732, 733, 738, 740, 743, 749, 751, 754, 757, 762, 764, 767, 770, 775, 777, 780, 785, 791, 796, 797, 800, 801, 804, 806, 809, 814, 820, 825, 826, 829, 831, 841, 843, 845, 847, 850, 852, 854, 856, 859, 866, 867, 873, 874, 884, 891, 893, 896, 899, 906, 907, 912, 913, 916, 918, 921, 926, 929, 935, 937, 942, 948, 950, 953, 961, 963, 970, 972, 974, 976, 984, 987, 994, 999, 1005, 1012, 1016, 1019, 1024, 1027, 1029, 1040, 1049, 1051, 1057, 1060, 1065, 1067, 1078, 1082, 1085, 1088, 1096, 1100, 1103, 1106, 1111, 1113, 1122, 1127, 1130, 1135, 1138, 1142, 1149, 1153, 1156, 1161, 1163, 1167, 1173, 1180, 1182, 1185, 1190, 1194, 1196, 1198, 1202, 1203, 1207, 1211, 1213, 1215, 1220, 1221, 1226, 1228, 1235, 1237, 1240, 1243, 1245, 1247, 1249, 1250, 1252, 1253, 1255, 1257, 1260, 1262, 1264, 1266, 1269, 1271, 1273, 1275, 1278, 1280, 1282, 1284, 1287, 1289, 1290, 1296, 1298, 1300, 1305, 1307, 1309, 1311, 1313, 1322, 1324, 1327, 1329, 1334, 1339, 1345, 1348, 1354, 1356, 1358, 1360, 1364, 1365, 1368, 1370, 1372, 1374, 1379, 1381, 1384, 1386, 1387, 1390, 1395, 1402, 1407, 1409, 1412, 1415, 1417, 1420, 1421, 1425, 1426, 1429, 1433, 1437, 1442, 1445, 1446, 1449, 1451, 1459, 1465, 1471, 1473, 1477, 1479, 1481, 1486, 1488, 1490, 1492, 1494, 1501, 1507, 1509, 1517, 1519, 1521, 1523, 1525, 1532, 1534, 1536, 1544, 1546, 1548, 1550, 1552, 1557, 1559, 1561, 1565, 1567, 1569, 1571, 1573, 1578, 1582, 1589, 1592, 1593, 1596, 1599, 1600, 1603, 1606, 1607, 1610, 1613, 1614, 1616, 1624, 1630, 1636, 1638, 1642, 1644, 1646, 1651, 1653, 1655, 1657, 1662, 1664, 1666, 1674, 1676, 1678, 1680, 1689, 1691, 1693, 1701, 1703, 1705, 1707, 1712, 1714, 1716, 1720, 1722, 1724, 1726, 1729, 1733, 1740, 1743, 1744, 1747, 1750, 1751, 1754, 1757, 1758, 1761, 1764, 1765, 1768, 1769, 1773, 1774, 1777, 1781, 1785, 1790, 1792, 1797, 1798, 1799, 1802, 1810, 1811, 1814, 1815, 1817, 1820, 1821, 1825, 1826, 1829, 1833, 1837, 1842, 1844, 1849, 1850, 1851, 1854, 1859, 1860, 1863, 1864], "returns": [647], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 82, 95, 110, 116, 133, 138, 161, 173, 180, 195, 204, 227, 231, 238, 240, 245, 250, 256, 263, 270, 287, 291, 296, 311, 318, 325, 329, 339, 347, 357, 369, 373, 381, 389, 393, 400, 407, 434, 438, 450, 459, 529, 544, 563, 572, 599, 625, 629, 633, 721, 745, 746, 759, 772, 787, 793, 816, 822, 834, 839, 862, 877, 889, 902, 924, 931, 946, 955, 978, 982, 989, 991, 996, 1001, 1007, 1014, 1021, 1038, 1042, 1047, 1062, 1069, 1076, 1080, 1090, 1098, 1108, 1120, 1124, 1132, 1140, 1144, 1151, 1158, 1171, 1175, 1187, 1224, 1233, 1316, 1331, 1343, 1352, 1377, 1392, 1397, 1399, 1400, 1404, 1431, 1435, 1439, 1463, 1469, 1505, 1515, 1542, 1580, 1628, 1634, 1672, 1687, 1699, 1731, 1779, 1783, 1787, 1831, 1835, 1839], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 12, "universal_type": "function", "name": "l,", "text_snippet": "namespace starry {\nnamespace misc {\n\nusing namespace utils;\n\n/**\nCompute the Ylm expansion of a spot"}, {"node_id": 15, "universal_type": "function", "name": "l,", "text_snippet": "namespace misc {\n\nusing namespace utils;\n\n/**\nCompute the Ylm expansion of a spot at a given latitud"}, {"node_id": 656, "universal_type": "function", "name": "spotYlm", "text_snippet": "void spotYlm(const RowVector<Scalar> &amp, const Scalar &sigma_,\n const Scalar &l"}, {"node_id": 658, "universal_type": "function", "name": "l,", "text_snippet": "spotYlm(const RowVector<Scalar> &amp, const Scalar &sigma_,\n const Scalar &lat, c"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"utils.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"wigner.h\"\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "/**\n\\file misc.h\n\\brief Miscelaneous map operations.\n\n*/\n\n#ifndef _STARRY_MISC_H_\n#define _STARRY_MISC_H_\n\n#include \"utils.h\"\n#include \"wigner.h\"\n\nnamespace starry {\nnamespace misc {\n\nusing namespace utils;\n\n/**\nCompute the Ylm expansion of a spot at a given latitude/longitude on the map.\n\n*/\ntemplate <class Scalar>\ninline Matrix<Scalar> spotYlm(const RowVector<Scalar> &amp, const Scalar &sigma,\n const Scalar &lat, const Scalar &lon, int l,\n wigner::Wigner<Scalar> &W) {\n // Compute the integrals recursively\n Vector<Scalar> IP(l + 1);\n Vector<Scalar> ID(l + 1);\n Matrix<Scalar> y((l + 1) * (l + 1), amp.cols());\n y.setZero();\n\n // Constants\n Scalar a = 1.0 / (2 * sigma * sigma);\n Scalar sqrta = sqrt(a);\n Scalar erfa = erf(2 * sqrta);\n Scalar term = exp(-4 * a);\n\n // Seeding values\n IP(0) = root_pi<Scalar>() / (2 * sqrta) * erfa;\n IP(1) = (root_pi<Scalar>() * sqrta * erfa + term - 1) / (2 * a);\n ID(0) = 0;\n ID(1) = IP(0);\n\n // Recurse\n int sgn = -1;\n for (int n = 2; n < l + 1; ++n) {\n IP(n) = (2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1) - (n - 1.0) / n * IP(n - 2);\n ID(n) = (2.0 * n - 1.0) * IP(n - 1) + ID(n - 2);\n sgn *= -1;\n }\n\n // Compute the coefficients of the expansion\n for (int n = 0; n < l + 1; ++n)\n y.row(n * n + n) = amp * sqrt(2 * n + 1) * (IP(n) / IP(0));\n\n // Rotate the spot to the correct lat/lon\n // We are computing the compound rotation matrix\n //\n // R = R(yhat, lon) . R(xhat, -lat)\n //\n // in one go.\n Scalar tol = 10 * mach_eps<Scalar>();\n if ((abs(lat) > tol) || (abs(lon) > tol)) {\n Scalar clat = cos(lat);\n Scalar clon = cos(lon);\n Scalar slat = sin(lat);\n Scalar slon = sin(lon);\n Scalar costheta = 0.5 * (clon + clat + clon * clat - 1);\n UnitVector<Scalar> u;\n u << -slat * (1 + clon), slon * (1 + clat), slon * slat;\n Scalar normu = u.norm();\n u /= normu;\n Scalar sintheta = 0.5 * normu;\n Scalar theta = atan2(sintheta, costheta);\n W.dotR(y.transpose(), u(0), u(1), u(2), -theta);\n y = W.dotR_result.transpose();\n }\n\n return y;\n}\n\n/**\nCompute the gradient of the Ylm expansion of a spot at a\ngiven latitude/longitude on the map.\n\nThis routine uses forward diff pretty inefficiently and\ncan be sped up if we think about it more carefully.\n\n*/\ntemplate <class Scalar>\ninline void spotYlm(const RowVector<Scalar> &amp, const Scalar &sigma_,\n const Scalar &lat, const Scalar &lon,\n const Matrix<double> &by, int l, wigner::Wigner<Scalar> &W,\n RowVector<Scalar> &bamp, Scalar &bsigma, Scalar &blat,\n Scalar &blon) {\n\n // Forward diff for sigma\n // TODO: Compute the backprop expression\n using ADType = ADScalar<Scalar, 1>;\n ADType sigma = sigma_;\n sigma.derivatives() = Vector<Scalar>::Unit(1, 0);\n\n // Compute the integrals recursively\n Vector<ADType> IP(l + 1);\n Vector<ADType> ID(l + 1);\n Vector<Scalar> y((l + 1) * (l + 1));\n y.setZero();\n ADType yn;\n Vector<Scalar> dydsigma((l + 1) * (l + 1));\n dydsigma.setZero();\n\n // Constants\n ADType a = 1.0 / (2 * sigma * sigma);\n ADType sqrta = sqrt(a);\n ADType erfa = erf(2 * sqrta.value());\n erfa.derivatives()(0) =\n -sqrt(32 / pi<Scalar>()) * exp(-4 * a.value()) * a.value();\n ADType term = exp(-4 * a);\n\n // Seeding values\n IP(0) = root_pi<Scalar>() / (2 * sqrta) * erfa;\n IP(1) = (root_pi<Scalar>() * sqrta * erfa + term - 1) / (2 * a);\n ID(0) = 0;\n ID(1) = IP(0);\n\n // Recurse\n int sgn = -1;\n for (int n = 2; n < l + 1; ++n) {\n IP(n) = (2.0 * n - 1.0) / (2.0 * n * a) * (ID(n - 1) + sgn * term - 1.0) +\n (2.0 * n - 1.0) / n * IP(n - 1) - (n - 1.0) / n * IP(n - 2);\n ID(n) = (2.0 * n - 1.0) * IP(n - 1) + ID(n - 2);\n sgn *= -1;\n }\n\n // Compute the coefficients of the expansion (w/o the amplitude)\n for (int n = 0; n < l + 1; ++n) {\n yn = sqrt(2 * n + 1) * (IP(n) / IP(0));\n y(n * n + n) = yn.value();\n dydsigma(n * n + n) = yn.derivatives()(0);\n }\n\n // Rotate the spot to the correct lat/lon\n Scalar tol = 10 * mach_eps<Scalar>();\n UnitVector<Scalar> u;\n Scalar normu;\n Scalar theta;\n Scalar clat = cos(lat);\n Scalar clon = cos(lon);\n Scalar slat = sin(lat);\n Scalar slon = sin(lon);\n\n // Axis & angle of rotation\n if ((abs(lat) > tol) || (abs(lon) > tol)) {\n Scalar costheta = 0.5 * (clon + clat + clon * clat - 1);\n u << -slat * (1 + clon), slon * (1 + clat), slon * slat;\n normu = u.norm();\n u /= normu;\n Scalar sintheta = 0.5 * normu;\n theta = atan2(sintheta, costheta);\n } else {\n theta = 0.0;\n u << 0, 1, 0;\n normu = 1;\n }\n\n // Gradient w/ respect to lat, lon, and sigma\n Matrix<Scalar> y_amp = y * amp;\n W.dotR(y_amp.transpose(), u(0), u(1), u(2), -theta, by.transpose());\n\n // lat\n Scalar termz = (clat * (1 + clon) * (1 + clon) * slat - slat * slon * slon) /\n (normu * normu * normu);\n Scalar dxdl = -clat * (1 + clon) / normu + (1 + clon) * slat * termz;\n Scalar dydl = -slat * slon / normu - (1 + clat) * slon * termz;\n Scalar dzdl = clat * slon / normu - slat * slon * termz;\n Scalar dthetadl = -u(0);\n blat = (dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz -\n dthetadl * W.dotR_btheta);\n\n // lon\n termz = (clon * (1 + clat) * (1 + clat) * slon - slon * slat * slat) /\n (normu * normu * normu);\n dxdl = slat * slon / normu + (1 + clon) * slat * termz;\n dydl = (1 + clat) * clon / normu - (1 + clat) * slon * termz;\n dzdl = clon * slat / normu - slat * slon * termz;\n dthetadl = u(1);\n blon = (dxdl * W.dotR_bx + dydl * W.dotR_by + dzdl * W.dotR_bz -\n dthetadl * W.dotR_btheta);\n\n // sigma\n W.dotR(dydsigma.transpose(), u(0), u(1), u(2), -theta);\n dydsigma = W.dotR_result.transpose();\n bsigma = (by.transpose() * dydsigma).dot(amp);\n\n // Compute the actual result (w/o amplitude)\n W.dotR(y.transpose(), u(0), u(1), u(2), -theta);\n y = W.dotR_result.transpose();\n\n // Gradient of amplitude\n bamp = y.transpose() * by;\n}\n\n} // namespace misc\n} // namespace starry\n#endif"}
80,244
c
// // TSMenuCell.h // Malmoo // // Created by Jennifer on 12/1/14. // Copyright (c) 2014 Folse. All rights reserved. // #import <UIKit/UIKit.h> @interface TSMenuCell : UITableViewCell @property (weak, nonatomic) IBOutlet UILabel *nameLabel; @property (weak, nonatomic) IBOutlet UILabel *descriptionLabel; @property (weak, nonatomic) IBOutlet UILabel *priceLabel; @property (weak, nonatomic) IBOutlet UIImageView *avatarImageView; @end
30.36
14
(translation_unit) "//\n// TSMenuCell.h\n// Malmoo\n//\n// Created by Jennifer on 12/1/14.\n// Copyright (c) 2014 Folse. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface TSMenuCell : UITableViewCell\n\n@property (weak, nonatomic) IBOutlet UILabel *nameLabel;\n@property (weak, nonatomic) IBOutlet UILabel *descriptionLabel;\n@property (weak, nonatomic) IBOutlet UILabel *priceLabel;\n@property (weak, nonatomic) IBOutlet UIImageView *avatarImageView;\n\n@end\n" (comment) "//" (comment) "// TSMenuCell.h" (comment) "// Malmoo" (comment) "//" (comment) "// Created by Jennifer on 12/1/14." (comment) "// Copyright (c) 2014 Folse. All rights reserved." (comment) "//" (preproc_call) "#import <UIKit/UIKit.h>\n" (preproc_directive) "#import" (preproc_arg) "<UIKit/UIKit.h>" (ERROR) "@interface TSMenuCell : UITableViewCell\n\n@property (weak, nonatomic) IBOutlet UILabel *nameLabel;\n@property (weak, nonatomic) IBOutlet UILabel *descriptionLabel;\n@property (weak, nonatomic) IBOutlet UILabel *priceLabel;\n@property (weak, nonatomic) IBOutlet UIImageView *avatarImageView;\n\n@end" (ERROR) "@" (type_identifier) "interface" (ERROR) "TSMenuCell : UITableViewCell\n\n@" (identifier) "TSMenuCell" (:) ":" (identifier) "UITableViewCell" (ERROR) "@" (function_declarator) "property (weak, nonatomic)" (identifier) "property" (parameter_list) "(weak, nonatomic)" (() "(" (identifier) "weak" (,) "," (identifier) "nonatomic" ()) ")" (declaration) "IBOutlet UILabel *nameLabel;" (type_identifier) "IBOutlet" (ERROR) "UILabel" (identifier) "UILabel" (pointer_declarator) "*nameLabel" (*) "*" (identifier) "nameLabel" (;) ";" (ERROR) "@" (ERROR) "@" (declaration) "property (weak, nonatomic) IBOutlet" (macro_type_specifier) "property (weak, nonatomic)" (identifier) "property" (() "(" (ERROR) "weak," (type_descriptor) "weak" (type_identifier) "weak" (,) "," (type_descriptor) "nonatomic" (type_identifier) "nonatomic" ()) ")" (identifier) "IBOutlet" (;) "" (declaration) "UILabel *descriptionLabel;" (type_identifier) "UILabel" (pointer_declarator) "*descriptionLabel" (*) "*" (identifier) "descriptionLabel" (;) ";" (ERROR) "@" (ERROR) "@" (declaration) "property (weak, nonatomic) IBOutlet" (macro_type_specifier) "property (weak, nonatomic)" (identifier) "property" (() "(" (ERROR) "weak," (type_descriptor) "weak" (type_identifier) "weak" (,) "," (type_descriptor) "nonatomic" (type_identifier) "nonatomic" ()) ")" (identifier) "IBOutlet" (;) "" (declaration) "UILabel *priceLabel;" (type_identifier) "UILabel" (pointer_declarator) "*priceLabel" (*) "*" (identifier) "priceLabel" (;) ";" (ERROR) "@" (ERROR) "@" (declaration) "property (weak, nonatomic) IBOutlet" (macro_type_specifier) "property (weak, nonatomic)" (identifier) "property" (() "(" (ERROR) "weak," (type_descriptor) "weak" (type_identifier) "weak" (,) "," (type_descriptor) "nonatomic" (type_identifier) "nonatomic" ()) ")" (identifier) "IBOutlet" (;) "" (declaration) "UIImageView *avatarImageView;" (type_identifier) "UIImageView" (pointer_declarator) "*avatarImageView" (*) "*" (identifier) "avatarImageView" (;) ";" (ERROR) "@" (ERROR) "@" (identifier) "end"
101
16
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 30.36, "nodes": 72, "errors": 0, "source_hash": "4121cb0249f0835313c7fd10ee36ec542a310d08895bc583faaa611081cdc615", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UIKit/UIKit.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#import", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "<UIKit/UIKit.h>", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 23}}, {"id": 3, "type": "ERROR", "text": "@interface TSMenuCell : UITableViewCell\n\n@property (weak, nonatomic) IBOutlet UILabel *nameLabel;\n@property (weak, nonatomic) IBOutlet UILabel *descriptionLabel;\n@property (weak, nonatomic) IBOutlet UILabel *priceLabel;\n@property (weak, nonatomic) IBOutlet UIImageView *avatarImageView;\n\n@end", "parent": null, "children": [4, 5, 6, 10, 15, 22, 24, 33, 38, 40, 49, 54, 56, 65, 70], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 17, "column": 4}}, {"id": 4, "type": "ERROR", "text": "@", "parent": 3, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 5, "type": "type_identifier", "text": "interface", "parent": 3, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 10}}, {"id": 6, "type": "ERROR", "text": "TSMenuCell : UITableViewCell\n\n@", "parent": 3, "children": [7, 8, 9], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 12, "column": 1}}, {"id": 7, "type": "identifier", "text": "TSMenuCell", "parent": 6, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 21}}, {"id": 8, "type": "identifier", "text": "UITableViewCell", "parent": 6, "children": [], "start_point": {"row": 10, "column": 24}, "end_point": {"row": 10, "column": 39}}, {"id": 9, "type": "ERROR", "text": "@", "parent": 6, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 10, "type": "function_declarator", "text": "property (weak, nonatomic)", "parent": 3, "children": [11, 12], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 27}}, {"id": 11, "type": "identifier", "text": "property", "parent": 10, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 9}}, {"id": 12, "type": "parameter_list", "text": "(weak, nonatomic)", "parent": 10, "children": [13, 14], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 27}}, {"id": 13, "type": "identifier", "text": "weak", "parent": 12, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 15}}, {"id": 14, "type": "identifier", "text": "nonatomic", "parent": 12, "children": [], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 12, "column": 26}}, {"id": 15, "type": "declaration", "text": "IBOutlet UILabel *nameLabel;", "parent": 3, "children": [16, 17, 19], "start_point": {"row": 12, "column": 28}, "end_point": {"row": 12, "column": 56}}, {"id": 16, "type": "type_identifier", "text": "IBOutlet", "parent": 15, "children": [], "start_point": {"row": 12, "column": 28}, "end_point": {"row": 12, "column": 36}}, {"id": 17, "type": "ERROR", "text": "UILabel", "parent": 15, "children": [18], "start_point": {"row": 12, "column": 37}, "end_point": {"row": 12, "column": 44}}, {"id": 18, "type": "identifier", "text": "UILabel", "parent": 17, "children": [], "start_point": {"row": 12, "column": 37}, "end_point": {"row": 12, "column": 44}}, {"id": 19, "type": "pointer_declarator", "text": "*nameLabel", "parent": 15, "children": [20, 21], "start_point": {"row": 12, "column": 45}, "end_point": {"row": 12, "column": 55}}, {"id": 20, "type": "*", "text": "*", "parent": 19, "children": [], "start_point": {"row": 12, "column": 45}, "end_point": {"row": 12, "column": 46}}, {"id": 21, "type": "identifier", "text": "nameLabel", "parent": 19, "children": [], "start_point": {"row": 12, "column": 46}, "end_point": {"row": 12, "column": 55}}, {"id": 22, "type": "ERROR", "text": "@", "parent": 3, "children": [23], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 23, "type": "ERROR", "text": "@", "parent": 22, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 24, "type": "declaration", "text": "property (weak, nonatomic) IBOutlet", "parent": 3, "children": [25, 32], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 36}}, {"id": 25, "type": "macro_type_specifier", "text": "property (weak, nonatomic)", "parent": 24, "children": [26, 27, 30], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 27}}, {"id": 26, "type": "identifier", "text": "property", "parent": 25, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 9}}, {"id": 27, "type": "ERROR", "text": "weak,", "parent": 25, "children": [28], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 16}}, {"id": 28, "type": "type_descriptor", "text": "weak", "parent": 27, "children": [29], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 15}}, {"id": 29, "type": "type_identifier", "text": "weak", "parent": 28, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 15}}, {"id": 30, "type": "type_descriptor", "text": "nonatomic", "parent": 25, "children": [31], "start_point": {"row": 13, "column": 17}, "end_point": {"row": 13, "column": 26}}, {"id": 31, "type": "type_identifier", "text": "nonatomic", "parent": 30, "children": [], "start_point": {"row": 13, "column": 17}, "end_point": {"row": 13, "column": 26}}, {"id": 32, "type": "identifier", "text": "IBOutlet", "parent": 24, "children": [], "start_point": {"row": 13, "column": 28}, "end_point": {"row": 13, "column": 36}}, {"id": 33, "type": "declaration", "text": "UILabel *descriptionLabel;", "parent": 3, "children": [34, 35], "start_point": {"row": 13, "column": 37}, "end_point": {"row": 13, "column": 63}}, {"id": 34, "type": "type_identifier", "text": "UILabel", "parent": 33, "children": [], "start_point": {"row": 13, "column": 37}, "end_point": {"row": 13, "column": 44}}, {"id": 35, "type": "pointer_declarator", "text": "*descriptionLabel", "parent": 33, "children": [36, 37], "start_point": {"row": 13, "column": 45}, "end_point": {"row": 13, "column": 62}}, {"id": 36, "type": "*", "text": "*", "parent": 35, "children": [], "start_point": {"row": 13, "column": 45}, "end_point": {"row": 13, "column": 46}}, {"id": 37, "type": "identifier", "text": "descriptionLabel", "parent": 35, "children": [], "start_point": {"row": 13, "column": 46}, "end_point": {"row": 13, "column": 62}}, {"id": 38, "type": "ERROR", "text": "@", "parent": 3, "children": [39], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 39, "type": "ERROR", "text": "@", "parent": 38, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 40, "type": "declaration", "text": "property (weak, nonatomic) IBOutlet", "parent": 3, "children": [41, 48], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 36}}, {"id": 41, "type": "macro_type_specifier", "text": "property (weak, nonatomic)", "parent": 40, "children": [42, 43, 46], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 27}}, {"id": 42, "type": "identifier", "text": "property", "parent": 41, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 9}}, {"id": 43, "type": "ERROR", "text": "weak,", "parent": 41, "children": [44], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 16}}, {"id": 44, "type": "type_descriptor", "text": "weak", "parent": 43, "children": [45], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 15}}, {"id": 45, "type": "type_identifier", "text": "weak", "parent": 44, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 15}}, {"id": 46, "type": "type_descriptor", "text": "nonatomic", "parent": 41, "children": [47], "start_point": {"row": 14, "column": 17}, "end_point": {"row": 14, "column": 26}}, {"id": 47, "type": "type_identifier", "text": "nonatomic", "parent": 46, "children": [], "start_point": {"row": 14, "column": 17}, "end_point": {"row": 14, "column": 26}}, {"id": 48, "type": "identifier", "text": "IBOutlet", "parent": 40, "children": [], "start_point": {"row": 14, "column": 28}, "end_point": {"row": 14, "column": 36}}, {"id": 49, "type": "declaration", "text": "UILabel *priceLabel;", "parent": 3, "children": [50, 51], "start_point": {"row": 14, "column": 37}, "end_point": {"row": 14, "column": 57}}, {"id": 50, "type": "type_identifier", "text": "UILabel", "parent": 49, "children": [], "start_point": {"row": 14, "column": 37}, "end_point": {"row": 14, "column": 44}}, {"id": 51, "type": "pointer_declarator", "text": "*priceLabel", "parent": 49, "children": [52, 53], "start_point": {"row": 14, "column": 45}, "end_point": {"row": 14, "column": 56}}, {"id": 52, "type": "*", "text": "*", "parent": 51, "children": [], "start_point": {"row": 14, "column": 45}, "end_point": {"row": 14, "column": 46}}, {"id": 53, "type": "identifier", "text": "priceLabel", "parent": 51, "children": [], "start_point": {"row": 14, "column": 46}, "end_point": {"row": 14, "column": 56}}, {"id": 54, "type": "ERROR", "text": "@", "parent": 3, "children": [55], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 55, "type": "ERROR", "text": "@", "parent": 54, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 56, "type": "declaration", "text": "property (weak, nonatomic) IBOutlet", "parent": 3, "children": [57, 64], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 36}}, {"id": 57, "type": "macro_type_specifier", "text": "property (weak, nonatomic)", "parent": 56, "children": [58, 59, 62], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 27}}, {"id": 58, "type": "identifier", "text": "property", "parent": 57, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 9}}, {"id": 59, "type": "ERROR", "text": "weak,", "parent": 57, "children": [60], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 16}}, {"id": 60, "type": "type_descriptor", "text": "weak", "parent": 59, "children": [61], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 15}}, {"id": 61, "type": "type_identifier", "text": "weak", "parent": 60, "children": [], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 15}}, {"id": 62, "type": "type_descriptor", "text": "nonatomic", "parent": 57, "children": [63], "start_point": {"row": 15, "column": 17}, "end_point": {"row": 15, "column": 26}}, {"id": 63, "type": "type_identifier", "text": "nonatomic", "parent": 62, "children": [], "start_point": {"row": 15, "column": 17}, "end_point": {"row": 15, "column": 26}}, {"id": 64, "type": "identifier", "text": "IBOutlet", "parent": 56, "children": [], "start_point": {"row": 15, "column": 28}, "end_point": {"row": 15, "column": 36}}, {"id": 65, "type": "declaration", "text": "UIImageView *avatarImageView;", "parent": 3, "children": [66, 67], "start_point": {"row": 15, "column": 37}, "end_point": {"row": 15, "column": 66}}, {"id": 66, "type": "type_identifier", "text": "UIImageView", "parent": 65, "children": [], "start_point": {"row": 15, "column": 37}, "end_point": {"row": 15, "column": 48}}, {"id": 67, "type": "pointer_declarator", "text": "*avatarImageView", "parent": 65, "children": [68, 69], "start_point": {"row": 15, "column": 49}, "end_point": {"row": 15, "column": 65}}, {"id": 68, "type": "*", "text": "*", "parent": 67, "children": [], "start_point": {"row": 15, "column": 49}, "end_point": {"row": 15, "column": 50}}, {"id": 69, "type": "identifier", "text": "avatarImageView", "parent": 67, "children": [], "start_point": {"row": 15, "column": 50}, "end_point": {"row": 15, "column": 65}}, {"id": 70, "type": "ERROR", "text": "@", "parent": 3, "children": [71], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 71, "type": "ERROR", "text": "@", "parent": 70, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 1}}]}, "node_categories": {"declarations": {"functions": [10], "variables": [15, 24, 33, 40, 49, 56, 65], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [5, 7, 8, 11, 13, 14, 16, 18, 21, 25, 26, 29, 31, 32, 34, 37, 41, 42, 45, 47, 48, 50, 53, 57, 58, 61, 63, 64, 66, 69], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 10, "universal_type": "function", "name": "unknown", "text_snippet": "property (weak, nonatomic)"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// TSMenuCell.h\n// Malmoo\n//\n// Created by Jennifer on 12/1/14.\n// Copyright (c) 2014 Folse. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface TSMenuCell : UITableViewCell\n\n@property (weak, nonatomic) IBOutlet UILabel *nameLabel;\n@property (weak, nonatomic) IBOutlet UILabel *descriptionLabel;\n@property (weak, nonatomic) IBOutlet UILabel *priceLabel;\n@property (weak, nonatomic) IBOutlet UIImageView *avatarImageView;\n\n@end\n"}
80,245
c
// // UITableViewController+VisibleArea.h // TTTFramework // // Created by jia on 2017/1/11. // Copyright © 2017年 jia. All rights reserved. // #import <UIKit/UIKit.h> @protocol UITableViewControllerVisibleAreaProtocol <NSObject> @property (nonatomic, readonly) UIView *visibleAreaView; @property (nonatomic, readonly) NSLayoutConstraint *visibleAreaViewVerticalOffsetConstraint; @end @interface UITableViewController (VisibleArea) <UITableViewControllerVisibleAreaProtocol> - (void)updateVisibleAreaViewConstraints; @end
34
15
(translation_unit) "//\n// UITableViewController+VisibleArea.h\n// TTTFramework\n//\n// Created by jia on 2017/1/11.\n// Copyright © 2017年 jia. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@protocol UITableViewControllerVisibleAreaProtocol <NSObject>\n\n@property (nonatomic, readonly) UIView *visibleAreaView;\n@property (nonatomic, readonly) NSLayoutConstraint *visibleAreaViewVerticalOffsetConstraint;\n\n@end\n\n@interface UITableViewController (VisibleArea) <UITableViewControllerVisibleAreaProtocol>\n\n- (void)updateVisibleAreaViewConstraints;\n\n@end\n" (comment) "//" (comment) "// UITableViewController+VisibleArea.h" (comment) "// TTTFramework" (comment) "//" (comment) "// Created by jia on 2017/1/11." (comment) "// Copyright © 2017年 jia. All rights reserved.\n//" (comment) "\n#" (preproc_call) "port <UIKit/UIKit.h>\n\n@p" (preproc_directive) "port <U" (preproc_arg) "Kit/UIKit.h>\n\n@" (ERROR) "otocol UITableViewControllerVisibleAreaProtocol <NSObject>\n\n@property (nonatomic, readonly) UIView *visibleAreaView;\n@property (nonatomic, readonly) NSLayoutConstraint *visibleAreaViewVerticalOffsetConstraint;\n\n@end\n\n@interface UITableViewController (VisibleArea) <UITableViewControllerVisibleAreaProtocol>\n\n- (void)updateVisibleAreaViewConstraints;\n\n@end\n" (ERROR) "o" (type_identifier) "tocol UI" (function_declarator) "ableViewControllerVisibleAreaProtocol <NSObject>\n\n@property (nonatomic, readonly) UI" (identifier) "ableViewControllerVisibleAreaProtocol <N" (ERROR) "Object>\n\n@property (n" (<) "O" (identifier) "bject>\n\n" (>) "@" (ERROR) "o" (identifier) "perty (n" (parameter_list) "natomic, readonly) UI" (() "n" (identifier) "atomic, r" (,) "e" (identifier) "donly) U" ()) "I" (declaration) "iew *visibleAreaView;\n@p" (type_identifier) "iew *v" (pointer_declarator) "sibleAreaView;\n@" (*) "s" (identifier) "ibleAreaView;\n@" (;) "p" (ERROR) "o" (ERROR) "o" (declaration) "perty (nonatomic, readonly) NSLayoutConstraint *visibleAreaViewVerticalOffsetConstraint;\n\n@" (macro_type_specifier) "perty (nonatomic, readonly) NS" (identifier) "perty (n" (() "n" (type_descriptor) "atomic, r" (type_identifier) "atomic, r" (ERROR) "eadonly) N" (,) "e" (identifier) "donly) N" ()) "S" (ERROR) "ayoutConstraint *v" (identifier) "ayoutConstraint *v" (pointer_declarator) "sibleAreaViewVerticalOffsetConstraint;\n\n" (*) "s" (identifier) "ibleAreaViewVerticalOffsetConstraint;\n\n" (;) "@" (ERROR) "d" (ERROR) "d" (type_identifier) "\n\n@" (ERROR) "terface UITableViewController (VisibleArea) <UITableViewControllerVisibleAreaProtocol>\n\n- (void)updateVisibleAreaViewConstraints;\n\n@end" (ERROR) "t" (identifier) "erface UI" (function_declarator) "ableViewController (VisibleArea) <UITableViewControllerVisibleAreaProtocol>\n\n- (void)updateVisibleAreaViewConstraints;\n\n" (identifier) "ableViewController (V" (parameter_list) "sibleArea) <U" (() "s" (parameter_declaration) "ibleArea) <" (type_identifier) "ibleArea) <" ()) "U" (ERROR) "T" (<) "T" (call_expression) "ableViewControllerVisibleAreaProtocol>\n\n- (void)upd" (identifier) "ableViewControllerVisibleAreaProtocol>\n\n" (ERROR) "- (v" (>) "-" (-) "v" (argument_list) "id)upd" (() "i" (identifier) "d)up" ()) "d" (identifier) "ateVisibleAreaViewConstraints;\n\n" (;) "@" (ERROR) "d" (identifier) "\n"
80
15
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 34.0, "nodes": 59, "errors": 0, "source_hash": "7cfa7eaa977fd6b130c471b849fadee74622c79c6a733dfdd77df57727d0e1eb", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKit/UIKit.h>\n\n@p", "parent": null, "children": [1, 2], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "port <U", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "Kit/UIKit.h>\n\n@", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 23}}, {"id": 3, "type": "ERROR", "text": "otocol UITableViewControllerVisibleAreaProtocol <NSObject>\n\n@property (nonatomic, readonly) UIView *visibleAreaView;\n@property (nonatomic, readonly) NSLayoutConstraint *visibleAreaViewVerticalOffsetConstraint;\n\n@end\n\n@interface UITableViewController (VisibleArea) <UITableViewControllerVisibleAreaProtocol>\n\n- (void)updateVisibleAreaViewConstraints;\n\n@end\n", "parent": null, "children": [4, 5, 6, 17, 22, 24, 36, 38, 39, 58], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 21, "column": 4}}, {"id": 4, "type": "ERROR", "text": "o", "parent": 3, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 5, "type": "type_identifier", "text": "tocol UI", "parent": 3, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 9}}, {"id": 6, "type": "function_declarator", "text": "ableViewControllerVisibleAreaProtocol <NSObject>\n\n@property (nonatomic, readonly) UI", "parent": 3, "children": [7, 8, 14], "start_point": {"row": 10, "column": 10}, "end_point": {"row": 12, "column": 31}}, {"id": 7, "type": "identifier", "text": "ableViewControllerVisibleAreaProtocol <N", "parent": 6, "children": [], "start_point": {"row": 10, "column": 10}, "end_point": {"row": 10, "column": 50}}, {"id": 8, "type": "ERROR", "text": "Object>\n\n@property (n", "parent": 6, "children": [9, 10, 11, 12, 13], "start_point": {"row": 10, "column": 51}, "end_point": {"row": 12, "column": 9}}, {"id": 9, "type": "<", "text": "O", "parent": 8, "children": [], "start_point": {"row": 10, "column": 51}, "end_point": {"row": 10, "column": 52}}, {"id": 10, "type": "identifier", "text": "bject>\n\n", "parent": 8, "children": [], "start_point": {"row": 10, "column": 52}, "end_point": {"row": 10, "column": 60}}, {"id": 11, "type": ">", "text": "@", "parent": 8, "children": [], "start_point": {"row": 10, "column": 60}, "end_point": {"row": 10, "column": 61}}, {"id": 12, "type": "ERROR", "text": "o", "parent": 8, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 13, "type": "identifier", "text": "perty (n", "parent": 8, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 9}}, {"id": 14, "type": "parameter_list", "text": "natomic, readonly) UI", "parent": 6, "children": [15, 16], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 31}}, {"id": 15, "type": "identifier", "text": "atomic, r", "parent": 14, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 20}}, {"id": 16, "type": "identifier", "text": "donly) U", "parent": 14, "children": [], "start_point": {"row": 12, "column": 22}, "end_point": {"row": 12, "column": 30}}, {"id": 17, "type": "declaration", "text": "iew *visibleAreaView;\n@p", "parent": 3, "children": [18, 19], "start_point": {"row": 12, "column": 32}, "end_point": {"row": 12, "column": 56}}, {"id": 18, "type": "type_identifier", "text": "iew *v", "parent": 17, "children": [], "start_point": {"row": 12, "column": 32}, "end_point": {"row": 12, "column": 38}}, {"id": 19, "type": "pointer_declarator", "text": "sibleAreaView;\n@", "parent": 17, "children": [20, 21], "start_point": {"row": 12, "column": 39}, "end_point": {"row": 12, "column": 55}}, {"id": 20, "type": "*", "text": "s", "parent": 19, "children": [], "start_point": {"row": 12, "column": 39}, "end_point": {"row": 12, "column": 40}}, {"id": 21, "type": "identifier", "text": "ibleAreaView;\n@", "parent": 19, "children": [], "start_point": {"row": 12, "column": 40}, "end_point": {"row": 12, "column": 55}}, {"id": 22, "type": "ERROR", "text": "o", "parent": 3, "children": [23], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 23, "type": "ERROR", "text": "o", "parent": 22, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 24, "type": "declaration", "text": "perty (nonatomic, readonly) NSLayoutConstraint *visibleAreaViewVerticalOffsetConstraint;\n\n@", "parent": 3, "children": [25, 31, 33], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 92}}, {"id": 25, "type": "macro_type_specifier", "text": "perty (nonatomic, readonly) NS", "parent": 24, "children": [26, 27, 29], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 31}}, {"id": 26, "type": "identifier", "text": "perty (n", "parent": 25, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 9}}, {"id": 27, "type": "type_descriptor", "text": "atomic, r", "parent": 25, "children": [28], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 20}}, {"id": 28, "type": "type_identifier", "text": "atomic, r", "parent": 27, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 20}}, {"id": 29, "type": "ERROR", "text": "eadonly) N", "parent": 25, "children": [30], "start_point": {"row": 13, "column": 20}, "end_point": {"row": 13, "column": 30}}, {"id": 30, "type": "identifier", "text": "donly) N", "parent": 29, "children": [], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 30}}, {"id": 31, "type": "ERROR", "text": "ayoutConstraint *v", "parent": 24, "children": [32], "start_point": {"row": 13, "column": 32}, "end_point": {"row": 13, "column": 50}}, {"id": 32, "type": "identifier", "text": "ayoutConstraint *v", "parent": 31, "children": [], "start_point": {"row": 13, "column": 32}, "end_point": {"row": 13, "column": 50}}, {"id": 33, "type": "pointer_declarator", "text": "sibleAreaViewVerticalOffsetConstraint;\n\n", "parent": 24, "children": [34, 35], "start_point": {"row": 13, "column": 51}, "end_point": {"row": 13, "column": 91}}, {"id": 34, "type": "*", "text": "s", "parent": 33, "children": [], "start_point": {"row": 13, "column": 51}, "end_point": {"row": 13, "column": 52}}, {"id": 35, "type": "identifier", "text": "ibleAreaViewVerticalOffsetConstraint;\n\n", "parent": 33, "children": [], "start_point": {"row": 13, "column": 52}, "end_point": {"row": 13, "column": 91}}, {"id": 36, "type": "ERROR", "text": "d", "parent": 3, "children": [37], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 37, "type": "ERROR", "text": "d", "parent": 36, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 38, "type": "type_identifier", "text": "\n\n@", "parent": 3, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 4}}, {"id": 39, "type": "ERROR", "text": "terface UITableViewController (VisibleArea) <UITableViewControllerVisibleAreaProtocol>\n\n- (void)updateVisibleAreaViewConstraints;\n\n@end", "parent": 3, "children": [40, 41, 42, 57], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 40, "type": "ERROR", "text": "t", "parent": 39, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 41, "type": "identifier", "text": "erface UI", "parent": 39, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 10}}, {"id": 42, "type": "function_declarator", "text": "ableViewController (VisibleArea) <UITableViewControllerVisibleAreaProtocol>\n\n- (void)updateVisibleAreaViewConstraints;\n\n", "parent": 39, "children": [43, 44, 47, 49, 56], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 19, "column": 40}}, {"id": 43, "type": "identifier", "text": "ableViewController (V", "parent": 42, "children": [], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 32}}, {"id": 44, "type": "parameter_list", "text": "sibleArea) <U", "parent": 42, "children": [45], "start_point": {"row": 17, "column": 33}, "end_point": {"row": 17, "column": 46}}, {"id": 45, "type": "parameter_declaration", "text": "ibleArea) <", "parent": 44, "children": [46], "start_point": {"row": 17, "column": 34}, "end_point": {"row": 17, "column": 45}}, {"id": 46, "type": "type_identifier", "text": "ibleArea) <", "parent": 45, "children": [], "start_point": {"row": 17, "column": 34}, "end_point": {"row": 17, "column": 45}}, {"id": 47, "type": "ERROR", "text": "T", "parent": 42, "children": [48], "start_point": {"row": 17, "column": 47}, "end_point": {"row": 17, "column": 48}}, {"id": 48, "type": "<", "text": "T", "parent": 47, "children": [], "start_point": {"row": 17, "column": 47}, "end_point": {"row": 17, "column": 48}}, {"id": 49, "type": "call_expression", "text": "ableViewControllerVisibleAreaProtocol>\n\n- (void)upd", "parent": 42, "children": [50, 51, 54], "start_point": {"row": 17, "column": 48}, "end_point": {"row": 19, "column": 8}}, {"id": 50, "type": "identifier", "text": "ableViewControllerVisibleAreaProtocol>\n\n", "parent": 49, "children": [], "start_point": {"row": 17, "column": 48}, "end_point": {"row": 17, "column": 88}}, {"id": 51, "type": "ERROR", "text": "- (v", "parent": 49, "children": [52, 53], "start_point": {"row": 17, "column": 88}, "end_point": {"row": 19, "column": 1}}, {"id": 52, "type": ">", "text": "-", "parent": 51, "children": [], "start_point": {"row": 17, "column": 88}, "end_point": {"row": 17, "column": 89}}, {"id": 53, "type": "-", "text": "v", "parent": 51, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 54, "type": "argument_list", "text": "id)upd", "parent": 49, "children": [55], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 8}}, {"id": 55, "type": "identifier", "text": "d)up", "parent": 54, "children": [], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 7}}, {"id": 56, "type": "identifier", "text": "ateVisibleAreaViewConstraints;\n\n", "parent": 42, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 40}}, {"id": 57, "type": "ERROR", "text": "d", "parent": 39, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 58, "type": "identifier", "text": "\n", "parent": 3, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 4}}]}, "node_categories": {"declarations": {"functions": [6, 42], "variables": [17, 24, 45], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [49], "assignments": [], "loops": [], "conditionals": [5, 7, 10, 13, 15, 16, 18, 21, 25, 26, 28, 30, 32, 35, 38, 41, 43, 46, 50, 55, 56, 58], "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": "ableViewControllerVisibleAreaProtocol <NSObject>\n\n@property (nonatomic, readonly) UI"}, {"node_id": 42, "universal_type": "function", "name": "unknown", "text_snippet": "ableViewController (VisibleArea) <UITableViewControllerVisibleAreaProtocol>\n\n- (void)updateVisibleAr"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// UITableViewController+VisibleArea.h\n// TTTFramework\n//\n// Created by jia on 2017/1/11.\n// Copyright \u00a9 2017\u5e74 jia. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@protocol UITableViewControllerVisibleAreaProtocol <NSObject>\n\n@property (nonatomic, readonly) UIView *visibleAreaView;\n@property (nonatomic, readonly) NSLayoutConstraint *visibleAreaViewVerticalOffsetConstraint;\n\n@end\n\n@interface UITableViewController (VisibleArea) <UITableViewControllerVisibleAreaProtocol>\n\n- (void)updateVisibleAreaViewConstraints;\n\n@end\n"}
80,246
c
// SKIP PARAM: --set ana.activated[+] apron --set ana.path_sens[+] threadflag // Based on 01/35. extern int __VERIFIER_nondet_int(); #include <assert.h> void main() { int i = __VERIFIER_nondet_int(); if (i - 1) { // only implies i - 1 != 0 (i != 1) // doesn't imply i - 1 == 1 (i == 2) // doesn't imply i - 1 != 1 (i != 2) assert(i == 2); // UNKNOWN! } }
28.54
13
(translation_unit) "// SKIP PARAM: --set ana.activated[+] apron --set ana.path_sens[+] threadflag\n// Based on 01/35.\nextern int __VERIFIER_nondet_int();\n\n#include <assert.h>\n\nvoid main() {\n int i = __VERIFIER_nondet_int();\n if (i - 1) {\n // only implies i - 1 != 0 (i != 1)\n // doesn't imply i - 1 == 1 (i == 2)\n // doesn't imply i - 1 != 1 (i != 2)\n assert(i == 2); // UNKNOWN!\n }\n}\n" (comment) "// SKIP PARAM: --set ana.activated[+] apron --set ana.path_sens[+] threadflag" (comment) "// Based on 01/35." (declaration) "extern int __VERIFIER_nondet_int();" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (function_declarator) "__VERIFIER_nondet_int()" (identifier) "__VERIFIER_nondet_int" (parameter_list) "()" (() "(" ()) ")" (;) ";" (preproc_include) "#include <assert.h>\n" (#include) "#include" (system_lib_string) "<assert.h>" (function_definition) "void main() {\n int i = __VERIFIER_nondet_int();\n if (i - 1) {\n // only implies i - 1 != 0 (i != 1)\n // doesn't imply i - 1 == 1 (i == 2)\n // doesn't imply i - 1 != 1 (i != 2)\n assert(i == 2); // UNKNOWN!\n }\n}" (primitive_type) "void" (function_declarator) "main()" (identifier) "main" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n int i = __VERIFIER_nondet_int();\n if (i - 1) {\n // only implies i - 1 != 0 (i != 1)\n // doesn't imply i - 1 == 1 (i == 2)\n // doesn't imply i - 1 != 1 (i != 2)\n assert(i == 2); // UNKNOWN!\n }\n}" ({) "{" (declaration) "int i = __VERIFIER_nondet_int();" (primitive_type) "int" (init_declarator) "i = __VERIFIER_nondet_int()" (identifier) "i" (=) "=" (call_expression) "__VERIFIER_nondet_int()" (identifier) "__VERIFIER_nondet_int" (argument_list) "()" (() "(" ()) ")" (;) ";" (if_statement) "if (i - 1) {\n // only implies i - 1 != 0 (i != 1)\n // doesn't imply i - 1 == 1 (i == 2)\n // doesn't imply i - 1 != 1 (i != 2)\n assert(i == 2); // UNKNOWN!\n }" (if) "if" (parenthesized_expression) "(i - 1)" (() "(" (binary_expression) "i - 1" (identifier) "i" (-) "-" (number_literal) "1" ()) ")" (compound_statement) "{\n // only implies i - 1 != 0 (i != 1)\n // doesn't imply i - 1 == 1 (i == 2)\n // doesn't imply i - 1 != 1 (i != 2)\n assert(i == 2); // UNKNOWN!\n }" ({) "{" (comment) "// only implies i - 1 != 0 (i != 1)" (comment) "// doesn't imply i - 1 == 1 (i == 2)" (comment) "// doesn't imply i - 1 != 1 (i != 2)" (expression_statement) "assert(i == 2);" (call_expression) "assert(i == 2)" (identifier) "assert" (argument_list) "(i == 2)" (() "(" (binary_expression) "i == 2" (identifier) "i" (==) "==" (number_literal) "2" ()) ")" (;) ";" (comment) "// UNKNOWN!" (}) "}" (}) "}"
64
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 28.54, "nodes": 36, "errors": 0, "source_hash": "6954fe55f50d6af7aef604fd875e299899601cd8ce4e2570f5551d772b13995c", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "extern int __VERIFIER_nondet_int();", "parent": null, "children": [1, 3, 4], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 35}}, {"id": 1, "type": "storage_class_specifier", "text": "extern", "parent": 0, "children": [2], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 6}}, {"id": 2, "type": "extern", "text": "extern", "parent": 1, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 6}}, {"id": 3, "type": "primitive_type", "text": "int", "parent": 0, "children": [], "start_point": {"row": 2, "column": 7}, "end_point": {"row": 2, "column": 10}}, {"id": 4, "type": "function_declarator", "text": "__VERIFIER_nondet_int()", "parent": 0, "children": [5, 6], "start_point": {"row": 2, "column": 11}, "end_point": {"row": 2, "column": 34}}, {"id": 5, "type": "identifier", "text": "__VERIFIER_nondet_int", "parent": 4, "children": [], "start_point": {"row": 2, "column": 11}, "end_point": {"row": 2, "column": 32}}, {"id": 6, "type": "parameter_list", "text": "()", "parent": 4, "children": [], "start_point": {"row": 2, "column": 32}, "end_point": {"row": 2, "column": 34}}, {"id": 7, "type": "preproc_include", "text": "#include <assert.h>\n", "parent": null, "children": [8, 9], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 8, "type": "#include", "text": "#include", "parent": 7, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 9, "type": "system_lib_string", "text": "<assert.h>", "parent": 7, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 19}}, {"id": 10, "type": "function_definition", "text": "void main() {\n int i = __VERIFIER_nondet_int();\n if (i - 1) {\n // only implies i - 1 != 0 (i != 1)\n // doesn't imply i - 1 == 1 (i == 2)\n // doesn't imply i - 1 != 1 (i != 2)\n assert(i == 2); // UNKNOWN!\n }\n}", "parent": null, "children": [11, 12], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 11, "type": "primitive_type", "text": "void", "parent": 10, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 4}}, {"id": 12, "type": "function_declarator", "text": "main()", "parent": 10, "children": [13, 14], "start_point": {"row": 6, "column": 5}, "end_point": {"row": 6, "column": 11}}, {"id": 13, "type": "identifier", "text": "main", "parent": 12, "children": [], "start_point": {"row": 6, "column": 5}, "end_point": {"row": 6, "column": 9}}, {"id": 14, "type": "parameter_list", "text": "()", "parent": 12, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 11}}, {"id": 15, "type": "declaration", "text": "int i = __VERIFIER_nondet_int();", "parent": 10, "children": [16, 17], "start_point": {"row": 7, "column": 2}, "end_point": {"row": 7, "column": 34}}, {"id": 16, "type": "primitive_type", "text": "int", "parent": 15, "children": [], "start_point": {"row": 7, "column": 2}, "end_point": {"row": 7, "column": 5}}, {"id": 17, "type": "init_declarator", "text": "i = __VERIFIER_nondet_int()", "parent": 15, "children": [18, 19, 20], "start_point": {"row": 7, "column": 6}, "end_point": {"row": 7, "column": 33}}, {"id": 18, "type": "identifier", "text": "i", "parent": 17, "children": [], "start_point": {"row": 7, "column": 6}, "end_point": {"row": 7, "column": 7}}, {"id": 19, "type": "=", "text": "=", "parent": 17, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 9}}, {"id": 20, "type": "call_expression", "text": "__VERIFIER_nondet_int()", "parent": 17, "children": [21, 22], "start_point": {"row": 7, "column": 10}, "end_point": {"row": 7, "column": 33}}, {"id": 21, "type": "identifier", "text": "__VERIFIER_nondet_int", "parent": 20, "children": [], "start_point": {"row": 7, "column": 10}, "end_point": {"row": 7, "column": 31}}, {"id": 22, "type": "argument_list", "text": "()", "parent": 20, "children": [], "start_point": {"row": 7, "column": 31}, "end_point": {"row": 7, "column": 33}}, {"id": 23, "type": "if_statement", "text": "if (i - 1) {\n // only implies i - 1 != 0 (i != 1)\n // doesn't imply i - 1 == 1 (i == 2)\n // doesn't imply i - 1 != 1 (i != 2)\n assert(i == 2); // UNKNOWN!\n }", "parent": 10, "children": [24], "start_point": {"row": 8, "column": 2}, "end_point": {"row": 13, "column": 3}}, {"id": 24, "type": "parenthesized_expression", "text": "(i - 1)", "parent": 23, "children": [25], "start_point": {"row": 8, "column": 5}, "end_point": {"row": 8, "column": 12}}, {"id": 25, "type": "binary_expression", "text": "i - 1", "parent": 24, "children": [26, 27, 28], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 8, "column": 11}}, {"id": 26, "type": "identifier", "text": "i", "parent": 25, "children": [], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 8, "column": 7}}, {"id": 27, "type": "-", "text": "-", "parent": 25, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 9}}, {"id": 28, "type": "number_literal", "text": "1", "parent": 25, "children": [], "start_point": {"row": 8, "column": 10}, "end_point": {"row": 8, "column": 11}}, {"id": 29, "type": "call_expression", "text": "assert(i == 2)", "parent": 23, "children": [30, 31], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 18}}, {"id": 30, "type": "identifier", "text": "assert", "parent": 29, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 10}}, {"id": 31, "type": "argument_list", "text": "(i == 2)", "parent": 29, "children": [32], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 18}}, {"id": 32, "type": "binary_expression", "text": "i == 2", "parent": 31, "children": [33, 34, 35], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 17}}, {"id": 33, "type": "identifier", "text": "i", "parent": 32, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 12}}, {"id": 34, "type": "==", "text": "==", "parent": 32, "children": [], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 15}}, {"id": 35, "type": "number_literal", "text": "2", "parent": 32, "children": [], "start_point": {"row": 12, "column": 16}, "end_point": {"row": 12, "column": 17}}]}, "node_categories": {"declarations": {"functions": [4, 10, 12], "variables": [0, 15], "classes": [1], "imports": [7, 8], "modules": [], "enums": []}, "statements": {"expressions": [20, 24, 25, 29, 32], "assignments": [], "loops": [], "conditionals": [5, 13, 18, 21, 23, 26, 30, 33], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [9, 28, 35], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 4, "universal_type": "function", "name": "unknown", "text_snippet": "__VERIFIER_nondet_int()"}, {"node_id": 10, "universal_type": "function", "name": "main", "text_snippet": "void main() {\n int i = __VERIFIER_nondet_int();\n if (i - 1) {\n // only implies i - 1 != 0 (i"}, {"node_id": 12, "universal_type": "function", "name": "unknown", "text_snippet": "main()"}], "class_declarations": [{"node_id": 1, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}], "import_statements": [{"node_id": 7, "text": "#include <assert.h>\n"}, {"node_id": 8, "text": "#include"}]}, "original_source_code": "// SKIP PARAM: --set ana.activated[+] apron --set ana.path_sens[+] threadflag\n// Based on 01/35.\nextern int __VERIFIER_nondet_int();\n\n#include <assert.h>\n\nvoid main() {\n int i = __VERIFIER_nondet_int();\n if (i - 1) {\n // only implies i - 1 != 0 (i != 1)\n // doesn't imply i - 1 == 1 (i == 2)\n // doesn't imply i - 1 != 1 (i != 2)\n assert(i == 2); // UNKNOWN!\n }\n}\n"}
80,247
c
#include "evas_common.h" #if 0 Regionbuf * evas_common_regionbuf_new(int w, int h) { Regionbuf *rb; rb = calloc(1, sizeof(Regionbuf) + (h * sizeof(Regionspan))); if (!rb) return NULL; rb->spans = (Regionspan **)(rb + sizeof(Regionbuf)); rb->w = w; rb->h = h; return rb; } void evas_common_regionbuf_free(Regionbuf *rb) { evas_common_regionbuf_clear(rb); free(rb); } void evas_common_regionbuf_clear(Regionbuf *rb) { int y; for (y = 0; y < rb->h; y++) { while (rb->spans[y]) { Regionspan *span; span = rb->spans[y]; rb->spans[y] = eina_inlist_remove(rb->spans[y], rb->spans[y]); free(span); } } } void evas_common_regionbuf_span_add(Regionbuf *rb, int x1, int x2, int y) { Regionspan *span, *span2, *nspan, *sp_start, *sp_stop; /* abort if outside */ if ((y < 0) || (y >= rb->h) || (x2 < 0) || (x1 >= rb->w)) return; /* clip to horiz bounds */ if (x1 < 0) x1 = 0; if (x2 < (rb->w - 1)) x2 = rb->w - 1; sp_start = NULL; sp_stop = NULL; EINA_INLIST_FOREACH(rb->spans[y], span) { nspan = (Regionspan *)(EINA_INLIST_GET(span))->next; /* we dont know what t do with the span yet */ if (!sp_start) { /* if new span starts before or on this span or just after * with no gap */ if (x1 <= (span->x2 + 1)) sp_start = span; /* if there is no next span */ if (!nspan) { sp_stop = span; break; } /* if new span ends before the next span starts with a gap of * 1 pixel (or more) */ else if (x2 < (nspan->x1 - 1)) { sp_stop = span; break; } } /* we already know it already starts before or in sp_start */ else { /* there is no span after this one, so this has to be the stop */ if (!nspan) { sp_stop = span; break; } /* if new span ends before the next span starts with a gap of * 1 pixel (or more) */ else if (x2 < (nspan->x1 - 1)) { sp_stop = span; break; } } } /* sp_start is where the new span starts in or before */ /* sp_stop is where the new span stops in or after */ if ((sp_start) && (sp_stop)) { /* same start and stop */ if (sp_start == sp_stop) { if (x2 < (sp_start->x1 - 1)) { span2 = calloc(1, sizeof(Regionspan)); span2->x1 = x1; span2->x2 = x2; rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start); return; } if (x1 < sp_start->x1) sp_start->x1 = x1; if (x2 > sp_start->x2) sp_start->x2 = x2; return; } else { Eina_Inlist *l; /* remove all nodes after sp_start and before_sp_stop because * the new */ for (l = (EINA_INLIST_GET(sp_start))->next; l != EINA_INLIST_GET(sp_stop);) { span = (Regionspan *)l; l = l->next; rb->spans[y] = eina_inlist_remove(rb->spans[y], span); free(span); } /* remove the end span */ rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_stop); /* if the new span is before the start span - extend */ if (x1 < sp_start->x1) sp_start->x1 = x1; /* if it goes beyond the stop span - extend stop span */ if (x2 > sp_stop->x2) sp_stop->x2 = x2; /* extend start span to stop span */ sp_start->x2 = sp_stop->x2; /* don't need stop span anymore */ free(sp_stop); return; } } /* no start AND stop... just append */ span2 = calloc(1, sizeof(Regionspan)); span2->x1 = x1; span2->x2 = x2; rb->spans[y] = eina_inlist_append(rb->spans[y], span2); } void evas_common_regionbuf_span_del(Regionbuf *rb, int x1, int x2, int y) { /* FIXME: del span */ Regionspan *span, *span2, *nspan, *sp_start, *sp_stop; /* abort if outside */ if ((y < 0) || (y >= rb->h) || (x2 < 0) || (x1 >= rb->w)) return; /* clip to horiz bounds */ if (x1 < 0) x1 = 0; if (x2 < (rb->w - 1)) x2 = rb->w - 1; sp_start = NULL; sp_stop = NULL; EINA_INLIST_FOREACH(rb->spans[y], span) { nspan = (Regionspan *)(EINA_INLIST_GET(l))->next; /* we dont know what t do with the span yet */ if (!sp_start) { /* if new span starts before or on this span or just after * with no gap */ if (x1 <= (span->x2)) sp_start = span; /* if there is no next span */ if (!nspan) { sp_stop = span; break; } /* if new span ends before the next span starts with a gap of * 1 pixel (or more) */ else if (x2 < nspan->x1) { sp_stop = span; break; } } /* we already know it already starts before or in sp_start */ else { /* there is no span after this one, so this has to be the stop */ if (!nspan) { sp_stop = span; break; } /* if new span ends before the next span starts with a gap of * 1 pixel (or more) */ else if (x2 < nspan->x1) { sp_stop = span; break; } } } /* sp_start is where the new span starts in or before */ /* sp_stop is where the new span stops in or after */ if ((sp_start) && (sp_stop)) { /* same start and stop */ if (sp_start == sp_stop) { /* if it ends before this the span start starts... return */ if (x2 < sp_start->x1) return; /* it starts on or before this span */ else if (x1 <= sp_start->x1) { /* right edge is within the span */ if (x2 < sp_start->x2) { sp_start->x2 = x2; return; } else { rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start); return; } } /* it ends on or after the end of this span */ else if (x2 >= sp_start->x2) { /* it starts after the start */ if (x1 > sp_start->x1) { sp_start->x1 = x1; return; } /* remove it all */ else { rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start); return; } return; } /* this breaks the span into 2 */ else { span2 = calloc(1, sizeof(Regionspan)); span2->x1 = sp_start->x1; span2->x2 = x1 - 1; rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start); sp_start->x1 = x2 + 1; return; } } else { Eina_Inlist *l; /* remove all nodes after sp_start and before_sp_stop because * the new */ for (l = (EINA_INLIST_GET(sp_start))->next; l != EINA_INLIST_GET(sp_stop);) { span = (Regionspan *)l; l = l->next; rb->spans[y] = eina_inlist_remove(rb->spans[y], span); free(span); } /* all of the start span is cut out */ if (x1 <= sp_start->x1) { rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start); free(sp_start); } /* chup it off at the new span start */ else sp_start->x2 = x1 - 1; /* all of the end span is cut out */ if (x2 >= sp_stop->x2) { rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_stop); free(sp_stop); } /* chop it up at the end */ else sp_stop->x1 = x2 + 1; return; } } } Tilebuf_Rect * evas_common_regionbuf_rects_get(Regionbuf *rb) { Tilebuf_Rect *rects = NULL, *r; int y; /* FIXME: take spans, make rects */ for (y = 0; y < rb->h; y++) { Regionspan *sp_start; Eina_Inlist *l, *ll; for (l = EINA_INLIST_GET(rb->spans[y]); l;) { Regionspan *span; int yy; sp_start = (Regionspan *)l; l = l->next; rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start); for (yy = y + 1; yy < rb->h; yy++) { int match = 0; for (ll = EINA_INLIST_GET(rb->spans[yy]); ll;) { span = (Regionspan *)ll; ll = ll->next; if (span->x1 == sp_start->x1) { if ((span->x1 != sp_start->x1) || (span->x2 != sp_start->x2)) { goto coallate; } match = 1; rb->spans[yy] = eina_inlist_remove(rb->spans[yy], span); free(span); } } if (!match) goto coallate; } coallate: r = calloc(1, sizeof(Tilebuf_Rect)); r->x = sp_start->x1; r->y = y; r->w = sp_start->x2 - sp_start->x1 + 1; r->h = yy - y; rects = eina_inlist_append(rects, r); free(sp_start); } } evas_common_regionbuf_clear(rb); return rects; } #endif
24.2
340
(translation_unit) "#include "evas_common.h"\n\n#if 0\nRegionbuf *\nevas_common_regionbuf_new(int w, int h)\n{\n Regionbuf *rb;\n\n rb = calloc(1, sizeof(Regionbuf) + (h * sizeof(Regionspan)));\n if (!rb) return NULL;\n rb->spans = (Regionspan **)(rb + sizeof(Regionbuf));\n rb->w = w;\n rb->h = h;\n return rb;\n}\n\nvoid\nevas_common_regionbuf_free(Regionbuf *rb)\n{\n evas_common_regionbuf_clear(rb);\n free(rb);\n}\n\nvoid\nevas_common_regionbuf_clear(Regionbuf *rb)\n{\n int y;\n\n for (y = 0; y < rb->h; y++)\n {\n while (rb->spans[y])\n {\n Regionspan *span;\n\n span = rb->spans[y];\n rb->spans[y] = eina_inlist_remove(rb->spans[y], rb->spans[y]);\n free(span);\n }\n }\n}\n\nvoid\nevas_common_regionbuf_span_add(Regionbuf *rb, int x1, int x2, int y)\n{\n Regionspan *span, *span2, *nspan, *sp_start, *sp_stop;\n\n /* abort if outside */\n if ((y < 0) ||\n (y >= rb->h) ||\n (x2 < 0) ||\n (x1 >= rb->w)) return;\n /* clip to horiz bounds */\n if (x1 < 0) x1 = 0;\n if (x2 < (rb->w - 1)) x2 = rb->w - 1;\n sp_start = NULL;\n sp_stop = NULL;\n EINA_INLIST_FOREACH(rb->spans[y], span)\n {\n nspan = (Regionspan *)(EINA_INLIST_GET(span))->next;\n /* we dont know what t do with the span yet */\n if (!sp_start)\n {\n /* if new span starts before or on this span or just after\n * with no gap */\n if (x1 <= (span->x2 + 1))\n sp_start = span;\n /* if there is no next span */\n if (!nspan)\n {\n sp_stop = span;\n break;\n }\n /* if new span ends before the next span starts with a gap of\n * 1 pixel (or more) */\n else if (x2 < (nspan->x1 - 1))\n {\n sp_stop = span;\n break;\n }\n }\n /* we already know it already starts before or in sp_start */\n else\n {\n /* there is no span after this one, so this has to be the stop */\n if (!nspan)\n {\n sp_stop = span;\n break;\n }\n /* if new span ends before the next span starts with a gap of\n * 1 pixel (or more) */\n else if (x2 < (nspan->x1 - 1))\n {\n sp_stop = span;\n break;\n }\n }\n }\n /* sp_start is where the new span starts in or before */\n /* sp_stop is where the new span stops in or after */\n if ((sp_start) && (sp_stop))\n {\n /* same start and stop */\n if (sp_start == sp_stop)\n {\n if (x2 < (sp_start->x1 - 1))\n {\n span2 = calloc(1, sizeof(Regionspan));\n span2->x1 = x1;\n span2->x2 = x2;\n rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);\n return;\n }\n if (x1 < sp_start->x1)\n sp_start->x1 = x1;\n if (x2 > sp_start->x2)\n sp_start->x2 = x2;\n return;\n }\n else\n {\n Eina_Inlist *l;\n\n /* remove all nodes after sp_start and before_sp_stop because\n * the new */\n for (l = (EINA_INLIST_GET(sp_start))->next; l != EINA_INLIST_GET(sp_stop);)\n {\n span = (Regionspan *)l;\n l = l->next;\n rb->spans[y] = eina_inlist_remove(rb->spans[y], span);\n free(span);\n }\n /* remove the end span */\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_stop);\n /* if the new span is before the start span - extend */\n if (x1 < sp_start->x1)\n sp_start->x1 = x1;\n /* if it goes beyond the stop span - extend stop span */\n if (x2 > sp_stop->x2)\n sp_stop->x2 = x2;\n /* extend start span to stop span */\n sp_start->x2 = sp_stop->x2;\n /* don't need stop span anymore */\n free(sp_stop);\n return;\n }\n }\n /* no start AND stop... just append */\n span2 = calloc(1, sizeof(Regionspan));\n span2->x1 = x1;\n span2->x2 = x2;\n rb->spans[y] = eina_inlist_append(rb->spans[y], span2);\n}\n\nvoid\nevas_common_regionbuf_span_del(Regionbuf *rb, int x1, int x2, int y)\n{\n /* FIXME: del span */\n Regionspan *span, *span2, *nspan, *sp_start, *sp_stop;\n\n /* abort if outside */\n if ((y < 0) ||\n (y >= rb->h) ||\n (x2 < 0) ||\n (x1 >= rb->w)) return;\n /* clip to horiz bounds */\n if (x1 < 0) x1 = 0;\n if (x2 < (rb->w - 1)) x2 = rb->w - 1;\n sp_start = NULL;\n sp_stop = NULL;\n EINA_INLIST_FOREACH(rb->spans[y], span)\n {\n nspan = (Regionspan *)(EINA_INLIST_GET(l))->next;\n /* we dont know what t do with the span yet */\n if (!sp_start)\n {\n /* if new span starts before or on this span or just after\n * with no gap */\n if (x1 <= (span->x2))\n sp_start = span;\n /* if there is no next span */\n if (!nspan)\n {\n sp_stop = span;\n break;\n }\n /* if new span ends before the next span starts with a gap of\n * 1 pixel (or more) */\n else if (x2 < nspan->x1)\n {\n sp_stop = span;\n break;\n }\n }\n /* we already know it already starts before or in sp_start */\n else\n {\n /* there is no span after this one, so this has to be the stop */\n if (!nspan)\n {\n sp_stop = span;\n break;\n }\n /* if new span ends before the next span starts with a gap of\n * 1 pixel (or more) */\n else if (x2 < nspan->x1)\n {\n sp_stop = span;\n break;\n }\n }\n }\n /* sp_start is where the new span starts in or before */\n /* sp_stop is where the new span stops in or after */\n if ((sp_start) && (sp_stop))\n {\n /* same start and stop */\n if (sp_start == sp_stop)\n {\n /* if it ends before this the span start starts... return */\n if (x2 < sp_start->x1)\n return;\n /* it starts on or before this span */\n else if (x1 <= sp_start->x1)\n {\n /* right edge is within the span */\n if (x2 < sp_start->x2)\n {\n sp_start->x2 = x2;\n return;\n }\n else\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n return;\n }\n }\n /* it ends on or after the end of this span */\n else if (x2 >= sp_start->x2)\n {\n /* it starts after the start */\n if (x1 > sp_start->x1)\n {\n sp_start->x1 = x1;\n return;\n }\n /* remove it all */\n else\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n return;\n }\n return;\n }\n /* this breaks the span into 2 */\n else\n {\n span2 = calloc(1, sizeof(Regionspan));\n span2->x1 = sp_start->x1;\n span2->x2 = x1 - 1;\n rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);\n sp_start->x1 = x2 + 1;\n return;\n }\n }\n else\n {\n Eina_Inlist *l;\n\n /* remove all nodes after sp_start and before_sp_stop because\n * the new */\n for (l = (EINA_INLIST_GET(sp_start))->next; l != EINA_INLIST_GET(sp_stop);)\n {\n span = (Regionspan *)l;\n l = l->next;\n rb->spans[y] = eina_inlist_remove(rb->spans[y], span);\n free(span);\n }\n /* all of the start span is cut out */\n if (x1 <= sp_start->x1)\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n free(sp_start);\n }\n /* chup it off at the new span start */\n else\n sp_start->x2 = x1 - 1;\n /* all of the end span is cut out */\n if (x2 >= sp_stop->x2)\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_stop);\n free(sp_stop);\n }\n /* chop it up at the end */\n else\n sp_stop->x1 = x2 + 1;\n return;\n }\n }\n}\n\nTilebuf_Rect *\nevas_common_regionbuf_rects_get(Regionbuf *rb)\n{\n Tilebuf_Rect *rects = NULL, *r;\n int y;\n\n /* FIXME: take spans, make rects */\n for (y = 0; y < rb->h; y++)\n {\n Regionspan *sp_start;\n Eina_Inlist *l, *ll;\n\n for (l = EINA_INLIST_GET(rb->spans[y]); l;)\n {\n Regionspan *span;\n int yy;\n\n sp_start = (Regionspan *)l;\n l = l->next;\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n for (yy = y + 1; yy < rb->h; yy++)\n {\n int match = 0;\n\n for (ll = EINA_INLIST_GET(rb->spans[yy]); ll;)\n {\n span = (Regionspan *)ll;\n ll = ll->next;\n if (span->x1 == sp_start->x1)\n {\n if ((span->x1 != sp_start->x1) ||\n (span->x2 != sp_start->x2))\n {\n goto coallate;\n }\n match = 1;\n rb->spans[yy] = eina_inlist_remove(rb->spans[yy], span);\n free(span);\n }\n }\n if (!match) goto coallate;\n }\n coallate:\n r = calloc(1, sizeof(Tilebuf_Rect));\n r->x = sp_start->x1;\n r->y = y;\n r->w = sp_start->x2 - sp_start->x1 + 1;\n r->h = yy - y;\n rects = eina_inlist_append(rects, r);\n free(sp_start);\n }\n }\n evas_common_regionbuf_clear(rb);\n return rects;\n}\n#endif\n" (preproc_include) "#include "evas_common.h"\n" (#include) "#include" (string_literal) ""evas_common.h"" (") """ (string_content) "evas_common.h" (") """ (preproc_if) "#if 0\nRegionbuf *\nevas_common_regionbuf_new(int w, int h)\n{\n Regionbuf *rb;\n\n rb = calloc(1, sizeof(Regionbuf) + (h * sizeof(Regionspan)));\n if (!rb) return NULL;\n rb->spans = (Regionspan **)(rb + sizeof(Regionbuf));\n rb->w = w;\n rb->h = h;\n return rb;\n}\n\nvoid\nevas_common_regionbuf_free(Regionbuf *rb)\n{\n evas_common_regionbuf_clear(rb);\n free(rb);\n}\n\nvoid\nevas_common_regionbuf_clear(Regionbuf *rb)\n{\n int y;\n\n for (y = 0; y < rb->h; y++)\n {\n while (rb->spans[y])\n {\n Regionspan *span;\n\n span = rb->spans[y];\n rb->spans[y] = eina_inlist_remove(rb->spans[y], rb->spans[y]);\n free(span);\n }\n }\n}\n\nvoid\nevas_common_regionbuf_span_add(Regionbuf *rb, int x1, int x2, int y)\n{\n Regionspan *span, *span2, *nspan, *sp_start, *sp_stop;\n\n /* abort if outside */\n if ((y < 0) ||\n (y >= rb->h) ||\n (x2 < 0) ||\n (x1 >= rb->w)) return;\n /* clip to horiz bounds */\n if (x1 < 0) x1 = 0;\n if (x2 < (rb->w - 1)) x2 = rb->w - 1;\n sp_start = NULL;\n sp_stop = NULL;\n EINA_INLIST_FOREACH(rb->spans[y], span)\n {\n nspan = (Regionspan *)(EINA_INLIST_GET(span))->next;\n /* we dont know what t do with the span yet */\n if (!sp_start)\n {\n /* if new span starts before or on this span or just after\n * with no gap */\n if (x1 <= (span->x2 + 1))\n sp_start = span;\n /* if there is no next span */\n if (!nspan)\n {\n sp_stop = span;\n break;\n }\n /* if new span ends before the next span starts with a gap of\n * 1 pixel (or more) */\n else if (x2 < (nspan->x1 - 1))\n {\n sp_stop = span;\n break;\n }\n }\n /* we already know it already starts before or in sp_start */\n else\n {\n /* there is no span after this one, so this has to be the stop */\n if (!nspan)\n {\n sp_stop = span;\n break;\n }\n /* if new span ends before the next span starts with a gap of\n * 1 pixel (or more) */\n else if (x2 < (nspan->x1 - 1))\n {\n sp_stop = span;\n break;\n }\n }\n }\n /* sp_start is where the new span starts in or before */\n /* sp_stop is where the new span stops in or after */\n if ((sp_start) && (sp_stop))\n {\n /* same start and stop */\n if (sp_start == sp_stop)\n {\n if (x2 < (sp_start->x1 - 1))\n {\n span2 = calloc(1, sizeof(Regionspan));\n span2->x1 = x1;\n span2->x2 = x2;\n rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);\n return;\n }\n if (x1 < sp_start->x1)\n sp_start->x1 = x1;\n if (x2 > sp_start->x2)\n sp_start->x2 = x2;\n return;\n }\n else\n {\n Eina_Inlist *l;\n\n /* remove all nodes after sp_start and before_sp_stop because\n * the new */\n for (l = (EINA_INLIST_GET(sp_start))->next; l != EINA_INLIST_GET(sp_stop);)\n {\n span = (Regionspan *)l;\n l = l->next;\n rb->spans[y] = eina_inlist_remove(rb->spans[y], span);\n free(span);\n }\n /* remove the end span */\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_stop);\n /* if the new span is before the start span - extend */\n if (x1 < sp_start->x1)\n sp_start->x1 = x1;\n /* if it goes beyond the stop span - extend stop span */\n if (x2 > sp_stop->x2)\n sp_stop->x2 = x2;\n /* extend start span to stop span */\n sp_start->x2 = sp_stop->x2;\n /* don't need stop span anymore */\n free(sp_stop);\n return;\n }\n }\n /* no start AND stop... just append */\n span2 = calloc(1, sizeof(Regionspan));\n span2->x1 = x1;\n span2->x2 = x2;\n rb->spans[y] = eina_inlist_append(rb->spans[y], span2);\n}\n\nvoid\nevas_common_regionbuf_span_del(Regionbuf *rb, int x1, int x2, int y)\n{\n /* FIXME: del span */\n Regionspan *span, *span2, *nspan, *sp_start, *sp_stop;\n\n /* abort if outside */\n if ((y < 0) ||\n (y >= rb->h) ||\n (x2 < 0) ||\n (x1 >= rb->w)) return;\n /* clip to horiz bounds */\n if (x1 < 0) x1 = 0;\n if (x2 < (rb->w - 1)) x2 = rb->w - 1;\n sp_start = NULL;\n sp_stop = NULL;\n EINA_INLIST_FOREACH(rb->spans[y], span)\n {\n nspan = (Regionspan *)(EINA_INLIST_GET(l))->next;\n /* we dont know what t do with the span yet */\n if (!sp_start)\n {\n /* if new span starts before or on this span or just after\n * with no gap */\n if (x1 <= (span->x2))\n sp_start = span;\n /* if there is no next span */\n if (!nspan)\n {\n sp_stop = span;\n break;\n }\n /* if new span ends before the next span starts with a gap of\n * 1 pixel (or more) */\n else if (x2 < nspan->x1)\n {\n sp_stop = span;\n break;\n }\n }\n /* we already know it already starts before or in sp_start */\n else\n {\n /* there is no span after this one, so this has to be the stop */\n if (!nspan)\n {\n sp_stop = span;\n break;\n }\n /* if new span ends before the next span starts with a gap of\n * 1 pixel (or more) */\n else if (x2 < nspan->x1)\n {\n sp_stop = span;\n break;\n }\n }\n }\n /* sp_start is where the new span starts in or before */\n /* sp_stop is where the new span stops in or after */\n if ((sp_start) && (sp_stop))\n {\n /* same start and stop */\n if (sp_start == sp_stop)\n {\n /* if it ends before this the span start starts... return */\n if (x2 < sp_start->x1)\n return;\n /* it starts on or before this span */\n else if (x1 <= sp_start->x1)\n {\n /* right edge is within the span */\n if (x2 < sp_start->x2)\n {\n sp_start->x2 = x2;\n return;\n }\n else\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n return;\n }\n }\n /* it ends on or after the end of this span */\n else if (x2 >= sp_start->x2)\n {\n /* it starts after the start */\n if (x1 > sp_start->x1)\n {\n sp_start->x1 = x1;\n return;\n }\n /* remove it all */\n else\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n return;\n }\n return;\n }\n /* this breaks the span into 2 */\n else\n {\n span2 = calloc(1, sizeof(Regionspan));\n span2->x1 = sp_start->x1;\n span2->x2 = x1 - 1;\n rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);\n sp_start->x1 = x2 + 1;\n return;\n }\n }\n else\n {\n Eina_Inlist *l;\n\n /* remove all nodes after sp_start and before_sp_stop because\n * the new */\n for (l = (EINA_INLIST_GET(sp_start))->next; l != EINA_INLIST_GET(sp_stop);)\n {\n span = (Regionspan *)l;\n l = l->next;\n rb->spans[y] = eina_inlist_remove(rb->spans[y], span);\n free(span);\n }\n /* all of the start span is cut out */\n if (x1 <= sp_start->x1)\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n free(sp_start);\n }\n /* chup it off at the new span start */\n else\n sp_start->x2 = x1 - 1;\n /* all of the end span is cut out */\n if (x2 >= sp_stop->x2)\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_stop);\n free(sp_stop);\n }\n /* chop it up at the end */\n else\n sp_stop->x1 = x2 + 1;\n return;\n }\n }\n}\n\nTilebuf_Rect *\nevas_common_regionbuf_rects_get(Regionbuf *rb)\n{\n Tilebuf_Rect *rects = NULL, *r;\n int y;\n\n /* FIXME: take spans, make rects */\n for (y = 0; y < rb->h; y++)\n {\n Regionspan *sp_start;\n Eina_Inlist *l, *ll;\n\n for (l = EINA_INLIST_GET(rb->spans[y]); l;)\n {\n Regionspan *span;\n int yy;\n\n sp_start = (Regionspan *)l;\n l = l->next;\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n for (yy = y + 1; yy < rb->h; yy++)\n {\n int match = 0;\n\n for (ll = EINA_INLIST_GET(rb->spans[yy]); ll;)\n {\n span = (Regionspan *)ll;\n ll = ll->next;\n if (span->x1 == sp_start->x1)\n {\n if ((span->x1 != sp_start->x1) ||\n (span->x2 != sp_start->x2))\n {\n goto coallate;\n }\n match = 1;\n rb->spans[yy] = eina_inlist_remove(rb->spans[yy], span);\n free(span);\n }\n }\n if (!match) goto coallate;\n }\n coallate:\n r = calloc(1, sizeof(Tilebuf_Rect));\n r->x = sp_start->x1;\n r->y = y;\n r->w = sp_start->x2 - sp_start->x1 + 1;\n r->h = yy - y;\n rects = eina_inlist_append(rects, r);\n free(sp_start);\n }\n }\n evas_common_regionbuf_clear(rb);\n return rects;\n}\n#endif" (#if) "#if" (number_literal) "0" ( ) "\n" (function_definition) "Regionbuf *\nevas_common_regionbuf_new(int w, int h)\n{\n Regionbuf *rb;\n\n rb = calloc(1, sizeof(Regionbuf) + (h * sizeof(Regionspan)));\n if (!rb) return NULL;\n rb->spans = (Regionspan **)(rb + sizeof(Regionbuf));\n rb->w = w;\n rb->h = h;\n return rb;\n}" (type_identifier) "Regionbuf" (pointer_declarator) "*\nevas_common_regionbuf_new(int w, int h)" (*) "*" (function_declarator) "evas_common_regionbuf_new(int w, int h)" (identifier) "evas_common_regionbuf_new" (parameter_list) "(int w, int h)" (() "(" (parameter_declaration) "int w" (primitive_type) "int" (identifier) "w" (,) "," (parameter_declaration) "int h" (primitive_type) "int" (identifier) "h" ()) ")" (compound_statement) "{\n Regionbuf *rb;\n\n rb = calloc(1, sizeof(Regionbuf) + (h * sizeof(Regionspan)));\n if (!rb) return NULL;\n rb->spans = (Regionspan **)(rb + sizeof(Regionbuf));\n rb->w = w;\n rb->h = h;\n return rb;\n}" ({) "{" (declaration) "Regionbuf *rb;" (type_identifier) "Regionbuf" (pointer_declarator) "*rb" (*) "*" (identifier) "rb" (;) ";" (expression_statement) "rb = calloc(1, sizeof(Regionbuf) + (h * sizeof(Regionspan)));" (assignment_expression) "rb = calloc(1, sizeof(Regionbuf) + (h * sizeof(Regionspan)))" (identifier) "rb" (=) "=" (call_expression) "calloc(1, sizeof(Regionbuf) + (h * sizeof(Regionspan)))" (identifier) "calloc" (argument_list) "(1, sizeof(Regionbuf) + (h * sizeof(Regionspan)))" (() "(" (number_literal) "1" (,) "," (binary_expression) "sizeof(Regionbuf) + (h * sizeof(Regionspan))" (sizeof_expression) "sizeof(Regionbuf)" (sizeof) "sizeof" (parenthesized_expression) "(Regionbuf)" (() "(" (identifier) "Regionbuf" ()) ")" (+) "+" (parenthesized_expression) "(h * sizeof(Regionspan))" (() "(" (binary_expression) "h * sizeof(Regionspan)" (identifier) "h" (*) "*" (sizeof_expression) "sizeof(Regionspan)" (sizeof) "sizeof" (parenthesized_expression) "(Regionspan)" (() "(" (identifier) "Regionspan" ()) ")" ()) ")" ()) ")" (;) ";" (if_statement) "if (!rb) return NULL;" (if) "if" (parenthesized_expression) "(!rb)" (() "(" (unary_expression) "!rb" (!) "!" (identifier) "rb" ()) ")" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "rb->spans = (Regionspan **)(rb + sizeof(Regionbuf));" (assignment_expression) "rb->spans = (Regionspan **)(rb + sizeof(Regionbuf))" (field_expression) "rb->spans" (identifier) "rb" (->) "->" (field_identifier) "spans" (=) "=" (cast_expression) "(Regionspan **)(rb + sizeof(Regionbuf))" (() "(" (type_descriptor) "Regionspan **" (type_identifier) "Regionspan" (abstract_pointer_declarator) "**" (*) "*" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (parenthesized_expression) "(rb + sizeof(Regionbuf))" (() "(" (binary_expression) "rb + sizeof(Regionbuf)" (identifier) "rb" (+) "+" (sizeof_expression) "sizeof(Regionbuf)" (sizeof) "sizeof" (parenthesized_expression) "(Regionbuf)" (() "(" (identifier) "Regionbuf" ()) ")" ()) ")" (;) ";" (expression_statement) "rb->w = w;" (assignment_expression) "rb->w = w" (field_expression) "rb->w" (identifier) "rb" (->) "->" (field_identifier) "w" (=) "=" (identifier) "w" (;) ";" (expression_statement) "rb->h = h;" (assignment_expression) "rb->h = h" (field_expression) "rb->h" (identifier) "rb" (->) "->" (field_identifier) "h" (=) "=" (identifier) "h" (;) ";" (return_statement) "return rb;" (return) "return" (identifier) "rb" (;) ";" (}) "}" (function_definition) "void\nevas_common_regionbuf_free(Regionbuf *rb)\n{\n evas_common_regionbuf_clear(rb);\n free(rb);\n}" (primitive_type) "void" (function_declarator) "evas_common_regionbuf_free(Regionbuf *rb)" (identifier) "evas_common_regionbuf_free" (parameter_list) "(Regionbuf *rb)" (() "(" (parameter_declaration) "Regionbuf *rb" (type_identifier) "Regionbuf" (pointer_declarator) "*rb" (*) "*" (identifier) "rb" ()) ")" (compound_statement) "{\n evas_common_regionbuf_clear(rb);\n free(rb);\n}" ({) "{" (expression_statement) "evas_common_regionbuf_clear(rb);" (call_expression) "evas_common_regionbuf_clear(rb)" (identifier) "evas_common_regionbuf_clear" (argument_list) "(rb)" (() "(" (identifier) "rb" ()) ")" (;) ";" (expression_statement) "free(rb);" (call_expression) "free(rb)" (identifier) "free" (argument_list) "(rb)" (() "(" (identifier) "rb" ()) ")" (;) ";" (}) "}" (function_definition) "void\nevas_common_regionbuf_clear(Regionbuf *rb)\n{\n int y;\n\n for (y = 0; y < rb->h; y++)\n {\n while (rb->spans[y])\n {\n Regionspan *span;\n\n span = rb->spans[y];\n rb->spans[y] = eina_inlist_remove(rb->spans[y], rb->spans[y]);\n free(span);\n }\n }\n}" (primitive_type) "void" (function_declarator) "evas_common_regionbuf_clear(Regionbuf *rb)" (identifier) "evas_common_regionbuf_clear" (parameter_list) "(Regionbuf *rb)" (() "(" (parameter_declaration) "Regionbuf *rb" (type_identifier) "Regionbuf" (pointer_declarator) "*rb" (*) "*" (identifier) "rb" ()) ")" (compound_statement) "{\n int y;\n\n for (y = 0; y < rb->h; y++)\n {\n while (rb->spans[y])\n {\n Regionspan *span;\n\n span = rb->spans[y];\n rb->spans[y] = eina_inlist_remove(rb->spans[y], rb->spans[y]);\n free(span);\n }\n }\n}" ({) "{" (declaration) "int y;" (primitive_type) "int" (identifier) "y" (;) ";" (for_statement) "for (y = 0; y < rb->h; y++)\n {\n while (rb->spans[y])\n {\n Regionspan *span;\n\n span = rb->spans[y];\n rb->spans[y] = eina_inlist_remove(rb->spans[y], rb->spans[y]);\n free(span);\n }\n }" (for) "for" (() "(" (assignment_expression) "y = 0" (identifier) "y" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "y < rb->h" (identifier) "y" (<) "<" (field_expression) "rb->h" (identifier) "rb" (->) "->" (field_identifier) "h" (;) ";" (update_expression) "y++" (identifier) "y" (++) "++" ()) ")" (compound_statement) "{\n while (rb->spans[y])\n {\n Regionspan *span;\n\n span = rb->spans[y];\n rb->spans[y] = eina_inlist_remove(rb->spans[y], rb->spans[y]);\n free(span);\n }\n }" ({) "{" (while_statement) "while (rb->spans[y])\n {\n Regionspan *span;\n\n span = rb->spans[y];\n rb->spans[y] = eina_inlist_remove(rb->spans[y], rb->spans[y]);\n free(span);\n }" (while) "while" (parenthesized_expression) "(rb->spans[y])" (() "(" (subscript_expression) "rb->spans[y]" (field_expression) "rb->spans" (identifier) "rb" (->) "->" (field_identifier) "spans" ([) "[" (identifier) "y" (]) "]" ()) ")" (compound_statement) "{\n Regionspan *span;\n\n span = rb->spans[y];\n rb->spans[y] = eina_inlist_remove(rb->spans[y], rb->spans[y]);\n free(span);\n }" ({) "{" (declaration) "Regionspan *span;" (type_identifier) "Regionspan" (pointer_declarator) "*span" (*) "*" (identifier) "span" (;) ";" (expression_statement) "span = rb->spans[y];" (assignment_expression) "span = rb->spans[y]" (identifier) "span" (=) "=" (subscript_expression) "rb->spans[y]" (field_expression) "rb->spans" (identifier) "rb" (->) "->" (field_identifier) "spans" ([) "[" (identifier) "y" (]) "]" (;) ";" (expression_statement) "rb->spans[y] = eina_inlist_remove(rb->spans[y], rb->spans[y]);" (assignment_expression) "rb->spans[y] = eina_inlist_remove(rb->spans[y], rb->spans[y])" (subscript_expression) "rb->spans[y]" (field_expression) "rb->spans" (identifier) "rb" (->) "->" (field_identifier) "spans" ([) "[" (identifier) "y" (]) "]" (=) "=" (call_expression) "eina_inlist_remove(rb->spans[y], rb->spans[y])" (identifier) "eina_inlist_remove" (argument_list) "(rb->spans[y], rb->spans[y])" (() "(" (subscript_expression) "rb->spans[y]" (field_expression) "rb->spans" (identifier) "rb" (->) "->" (field_identifier) "spans" ([) "[" (identifier) "y" (]) "]" (,) "," (subscript_expression) "rb->spans[y]" (field_expression) "rb->spans" (identifier) "rb" (->) "->" (field_identifier) "spans" ([) "[" (identifier) "y" (]) "]" ()) ")" (;) ";" (expression_statement) "free(span);" (call_expression) "free(span)" (identifier) "free" (argument_list) "(span)" (() "(" (identifier) "span" ()) ")" (;) ";" (}) "}" (}) "}" (}) "}" (function_definition) "void\nevas_common_regionbuf_span_add(Regionbuf *rb, int x1, int x2, int y)\n{\n Regionspan *span, *span2, *nspan, *sp_start, *sp_stop;\n\n /* abort if outside */\n if ((y < 0) ||\n (y >= rb->h) ||\n (x2 < 0) ||\n (x1 >= rb->w)) return;\n /* clip to horiz bounds */\n if (x1 < 0) x1 = 0;\n if (x2 < (rb->w - 1)) x2 = rb->w - 1;\n sp_start = NULL;\n sp_stop = NULL;\n EINA_INLIST_FOREACH(rb->spans[y], span)\n {\n nspan = (Regionspan *)(EINA_INLIST_GET(span))->next;\n /* we dont know what t do with the span yet */\n if (!sp_start)\n {\n /* if new span starts before or on this span or just after\n * with no gap */\n if (x1 <= (span->x2 + 1))\n sp_start = span;\n /* if there is no next span */\n if (!nspan)\n {\n sp_stop = span;\n break;\n }\n /* if new span ends before the next span starts with a gap of\n * 1 pixel (or more) */\n else if (x2 < (nspan->x1 - 1))\n {\n sp_stop = span;\n break;\n }\n }\n /* we already know it already starts before or in sp_start */\n else\n {\n /* there is no span after this one, so this has to be the stop */\n if (!nspan)\n {\n sp_stop = span;\n break;\n }\n /* if new span ends before the next span starts with a gap of\n * 1 pixel (or more) */\n else if (x2 < (nspan->x1 - 1))\n {\n sp_stop = span;\n break;\n }\n }\n }\n /* sp_start is where the new span starts in or before */\n /* sp_stop is where the new span stops in or after */\n if ((sp_start) && (sp_stop))\n {\n /* same start and stop */\n if (sp_start == sp_stop)\n {\n if (x2 < (sp_start->x1 - 1))\n {\n span2 = calloc(1, sizeof(Regionspan));\n span2->x1 = x1;\n span2->x2 = x2;\n rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);\n return;\n }\n if (x1 < sp_start->x1)\n sp_start->x1 = x1;\n if (x2 > sp_start->x2)\n sp_start->x2 = x2;\n return;\n }\n else\n {\n Eina_Inlist *l;\n\n /* remove all nodes after sp_start and before_sp_stop because\n * the new */\n for (l = (EINA_INLIST_GET(sp_start))->next; l != EINA_INLIST_GET(sp_stop);)\n {\n span = (Regionspan *)l;\n l = l->next;\n rb->spans[y] = eina_inlist_remove(rb->spans[y], span);\n free(span);\n }\n /* remove the end span */\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_stop);\n /* if the new span is before the start span - extend */\n if (x1 < sp_start->x1)\n sp_start->x1 = x1;\n /* if it goes beyond the stop span - extend stop span */\n if (x2 > sp_stop->x2)\n sp_stop->x2 = x2;\n /* extend start span to stop span */\n sp_start->x2 = sp_stop->x2;\n /* don't need stop span anymore */\n free(sp_stop);\n return;\n }\n }\n /* no start AND stop... just append */\n span2 = calloc(1, sizeof(Regionspan));\n span2->x1 = x1;\n span2->x2 = x2;\n rb->spans[y] = eina_inlist_append(rb->spans[y], span2);\n}" (primitive_type) "void" (function_declarator) "evas_common_regionbuf_span_add(Regionbuf *rb, int x1, int x2, int y)" (identifier) "evas_common_regionbuf_span_add" (parameter_list) "(Regionbuf *rb, int x1, int x2, int y)" (() "(" (parameter_declaration) "Regionbuf *rb" (type_identifier) "Regionbuf" (pointer_declarator) "*rb" (*) "*" (identifier) "rb" (,) "," (parameter_declaration) "int x1" (primitive_type) "int" (identifier) "x1" (,) "," (parameter_declaration) "int x2" (primitive_type) "int" (identifier) "x2" (,) "," (parameter_declaration) "int y" (primitive_type) "int" (identifier) "y" ()) ")" (compound_statement) "{\n Regionspan *span, *span2, *nspan, *sp_start, *sp_stop;\n\n /* abort if outside */\n if ((y < 0) ||\n (y >= rb->h) ||\n (x2 < 0) ||\n (x1 >= rb->w)) return;\n /* clip to horiz bounds */\n if (x1 < 0) x1 = 0;\n if (x2 < (rb->w - 1)) x2 = rb->w - 1;\n sp_start = NULL;\n sp_stop = NULL;\n EINA_INLIST_FOREACH(rb->spans[y], span)\n {\n nspan = (Regionspan *)(EINA_INLIST_GET(span))->next;\n /* we dont know what t do with the span yet */\n if (!sp_start)\n {\n /* if new span starts before or on this span or just after\n * with no gap */\n if (x1 <= (span->x2 + 1))\n sp_start = span;\n /* if there is no next span */\n if (!nspan)\n {\n sp_stop = span;\n break;\n }\n /* if new span ends before the next span starts with a gap of\n * 1 pixel (or more) */\n else if (x2 < (nspan->x1 - 1))\n {\n sp_stop = span;\n break;\n }\n }\n /* we already know it already starts before or in sp_start */\n else\n {\n /* there is no span after this one, so this has to be the stop */\n if (!nspan)\n {\n sp_stop = span;\n break;\n }\n /* if new span ends before the next span starts with a gap of\n * 1 pixel (or more) */\n else if (x2 < (nspan->x1 - 1))\n {\n sp_stop = span;\n break;\n }\n }\n }\n /* sp_start is where the new span starts in or before */\n /* sp_stop is where the new span stops in or after */\n if ((sp_start) && (sp_stop))\n {\n /* same start and stop */\n if (sp_start == sp_stop)\n {\n if (x2 < (sp_start->x1 - 1))\n {\n span2 = calloc(1, sizeof(Regionspan));\n span2->x1 = x1;\n span2->x2 = x2;\n rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);\n return;\n }\n if (x1 < sp_start->x1)\n sp_start->x1 = x1;\n if (x2 > sp_start->x2)\n sp_start->x2 = x2;\n return;\n }\n else\n {\n Eina_Inlist *l;\n\n /* remove all nodes after sp_start and before_sp_stop because\n * the new */\n for (l = (EINA_INLIST_GET(sp_start))->next; l != EINA_INLIST_GET(sp_stop);)\n {\n span = (Regionspan *)l;\n l = l->next;\n rb->spans[y] = eina_inlist_remove(rb->spans[y], span);\n free(span);\n }\n /* remove the end span */\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_stop);\n /* if the new span is before the start span - extend */\n if (x1 < sp_start->x1)\n sp_start->x1 = x1;\n /* if it goes beyond the stop span - extend stop span */\n if (x2 > sp_stop->x2)\n sp_stop->x2 = x2;\n /* extend start span to stop span */\n sp_start->x2 = sp_stop->x2;\n /* don't need stop span anymore */\n free(sp_stop);\n return;\n }\n }\n /* no start AND stop... just append */\n span2 = calloc(1, sizeof(Regionspan));\n span2->x1 = x1;\n span2->x2 = x2;\n rb->spans[y] = eina_inlist_append(rb->spans[y], span2);\n}" ({) "{" (declaration) "Regionspan *span, *span2, *nspan, *sp_start, *sp_stop;" (type_identifier) "Regionspan" (pointer_declarator) "*span" (*) "*" (identifier) "span" (,) "," (pointer_declarator) "*span2" (*) "*" (identifier) "span2" (,) "," (pointer_declarator) "*nspan" (*) "*" (identifier) "nspan" (,) "," (pointer_declarator) "*sp_start" (*) "*" (identifier) "sp_start" (,) "," (pointer_declarator) "*sp_stop" (*) "*" (identifier) "sp_stop" (;) ";" (comment) "/* abort if outside */" (if_statement) "if ((y < 0) ||\n (y >= rb->h) ||\n (x2 < 0) ||\n (x1 >= rb->w)) return;" (if) "if" (parenthesized_expression) "((y < 0) ||\n (y >= rb->h) ||\n (x2 < 0) ||\n (x1 >= rb->w))" (() "(" (binary_expression) "(y < 0) ||\n (y >= rb->h) ||\n (x2 < 0) ||\n (x1 >= rb->w)" (binary_expression) "(y < 0) ||\n (y >= rb->h) ||\n (x2 < 0)" (binary_expression) "(y < 0) ||\n (y >= rb->h)" (parenthesized_expression) "(y < 0)" (() "(" (binary_expression) "y < 0" (identifier) "y" (<) "<" (number_literal) "0" ()) ")" (||) "||" (parenthesized_expression) "(y >= rb->h)" (() "(" (binary_expression) "y >= rb->h" (identifier) "y" (>=) ">=" (field_expression) "rb->h" (identifier) "rb" (->) "->" (field_identifier) "h" ()) ")" (||) "||" (parenthesized_expression) "(x2 < 0)" (() "(" (binary_expression) "x2 < 0" (identifier) "x2" (<) "<" (number_literal) "0" ()) ")" (||) "||" (parenthesized_expression) "(x1 >= rb->w)" (() "(" (binary_expression) "x1 >= rb->w" (identifier) "x1" (>=) ">=" (field_expression) "rb->w" (identifier) "rb" (->) "->" (field_identifier) "w" ()) ")" ()) ")" (return_statement) "return;" (return) "return" (;) ";" (comment) "/* clip to horiz bounds */" (if_statement) "if (x1 < 0) x1 = 0;" (if) "if" (parenthesized_expression) "(x1 < 0)" (() "(" (binary_expression) "x1 < 0" (identifier) "x1" (<) "<" (number_literal) "0" ()) ")" (expression_statement) "x1 = 0;" (assignment_expression) "x1 = 0" (identifier) "x1" (=) "=" (number_literal) "0" (;) ";" (if_statement) "if (x2 < (rb->w - 1)) x2 = rb->w - 1;" (if) "if" (parenthesized_expression) "(x2 < (rb->w - 1))" (() "(" (binary_expression) "x2 < (rb->w - 1)" (identifier) "x2" (<) "<" (parenthesized_expression) "(rb->w - 1)" (() "(" (binary_expression) "rb->w - 1" (field_expression) "rb->w" (identifier) "rb" (->) "->" (field_identifier) "w" (-) "-" (number_literal) "1" ()) ")" ()) ")" (expression_statement) "x2 = rb->w - 1;" (assignment_expression) "x2 = rb->w - 1" (identifier) "x2" (=) "=" (binary_expression) "rb->w - 1" (field_expression) "rb->w" (identifier) "rb" (->) "->" (field_identifier) "w" (-) "-" (number_literal) "1" (;) ";" (expression_statement) "sp_start = NULL;" (assignment_expression) "sp_start = NULL" (identifier) "sp_start" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "sp_stop = NULL;" (assignment_expression) "sp_stop = NULL" (identifier) "sp_stop" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "EINA_INLIST_FOREACH(rb->spans[y], span)" (call_expression) "EINA_INLIST_FOREACH(rb->spans[y], span)" (identifier) "EINA_INLIST_FOREACH" (argument_list) "(rb->spans[y], span)" (() "(" (subscript_expression) "rb->spans[y]" (field_expression) "rb->spans" (identifier) "rb" (->) "->" (field_identifier) "spans" ([) "[" (identifier) "y" (]) "]" (,) "," (identifier) "span" ()) ")" (;) "" (compound_statement) "{\n nspan = (Regionspan *)(EINA_INLIST_GET(span))->next;\n /* we dont know what t do with the span yet */\n if (!sp_start)\n {\n /* if new span starts before or on this span or just after\n * with no gap */\n if (x1 <= (span->x2 + 1))\n sp_start = span;\n /* if there is no next span */\n if (!nspan)\n {\n sp_stop = span;\n break;\n }\n /* if new span ends before the next span starts with a gap of\n * 1 pixel (or more) */\n else if (x2 < (nspan->x1 - 1))\n {\n sp_stop = span;\n break;\n }\n }\n /* we already know it already starts before or in sp_start */\n else\n {\n /* there is no span after this one, so this has to be the stop */\n if (!nspan)\n {\n sp_stop = span;\n break;\n }\n /* if new span ends before the next span starts with a gap of\n * 1 pixel (or more) */\n else if (x2 < (nspan->x1 - 1))\n {\n sp_stop = span;\n break;\n }\n }\n }" ({) "{" (expression_statement) "nspan = (Regionspan *)(EINA_INLIST_GET(span))->next;" (assignment_expression) "nspan = (Regionspan *)(EINA_INLIST_GET(span))->next" (identifier) "nspan" (=) "=" (cast_expression) "(Regionspan *)(EINA_INLIST_GET(span))->next" (() "(" (type_descriptor) "Regionspan *" (type_identifier) "Regionspan" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (field_expression) "(EINA_INLIST_GET(span))->next" (parenthesized_expression) "(EINA_INLIST_GET(span))" (() "(" (call_expression) "EINA_INLIST_GET(span)" (identifier) "EINA_INLIST_GET" (argument_list) "(span)" (() "(" (identifier) "span" ()) ")" ()) ")" (->) "->" (field_identifier) "next" (;) ";" (comment) "/* we dont know what t do with the span yet */" (if_statement) "if (!sp_start)\n {\n /* if new span starts before or on this span or just after\n * with no gap */\n if (x1 <= (span->x2 + 1))\n sp_start = span;\n /* if there is no next span */\n if (!nspan)\n {\n sp_stop = span;\n break;\n }\n /* if new span ends before the next span starts with a gap of\n * 1 pixel (or more) */\n else if (x2 < (nspan->x1 - 1))\n {\n sp_stop = span;\n break;\n }\n }\n /* we already know it already starts before or in sp_start */\n else\n {\n /* there is no span after this one, so this has to be the stop */\n if (!nspan)\n {\n sp_stop = span;\n break;\n }\n /* if new span ends before the next span starts with a gap of\n * 1 pixel (or more) */\n else if (x2 < (nspan->x1 - 1))\n {\n sp_stop = span;\n break;\n }\n }" (if) "if" (parenthesized_expression) "(!sp_start)" (() "(" (unary_expression) "!sp_start" (!) "!" (identifier) "sp_start" ()) ")" (compound_statement) "{\n /* if new span starts before or on this span or just after\n * with no gap */\n if (x1 <= (span->x2 + 1))\n sp_start = span;\n /* if there is no next span */\n if (!nspan)\n {\n sp_stop = span;\n break;\n }\n /* if new span ends before the next span starts with a gap of\n * 1 pixel (or more) */\n else if (x2 < (nspan->x1 - 1))\n {\n sp_stop = span;\n break;\n }\n }" ({) "{" (comment) "/* if new span starts before or on this span or just after\n * with no gap */" (if_statement) "if (x1 <= (span->x2 + 1))\n sp_start = span;" (if) "if" (parenthesized_expression) "(x1 <= (span->x2 + 1))" (() "(" (binary_expression) "x1 <= (span->x2 + 1)" (identifier) "x1" (<=) "<=" (parenthesized_expression) "(span->x2 + 1)" (() "(" (binary_expression) "span->x2 + 1" (field_expression) "span->x2" (identifier) "span" (->) "->" (field_identifier) "x2" (+) "+" (number_literal) "1" ()) ")" ()) ")" (expression_statement) "sp_start = span;" (assignment_expression) "sp_start = span" (identifier) "sp_start" (=) "=" (identifier) "span" (;) ";" (comment) "/* if there is no next span */" (if_statement) "if (!nspan)\n {\n sp_stop = span;\n break;\n }\n /* if new span ends before the next span starts with a gap of\n * 1 pixel (or more) */\n else if (x2 < (nspan->x1 - 1))\n {\n sp_stop = span;\n break;\n }" (if) "if" (parenthesized_expression) "(!nspan)" (() "(" (unary_expression) "!nspan" (!) "!" (identifier) "nspan" ()) ")" (compound_statement) "{\n sp_stop = span;\n break;\n }" ({) "{" (expression_statement) "sp_stop = span;" (assignment_expression) "sp_stop = span" (identifier) "sp_stop" (=) "=" (identifier) "span" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (comment) "/* if new span ends before the next span starts with a gap of\n * 1 pixel (or more) */" (else_clause) "else if (x2 < (nspan->x1 - 1))\n {\n sp_stop = span;\n break;\n }" (else) "else" (if_statement) "if (x2 < (nspan->x1 - 1))\n {\n sp_stop = span;\n break;\n }" (if) "if" (parenthesized_expression) "(x2 < (nspan->x1 - 1))" (() "(" (binary_expression) "x2 < (nspan->x1 - 1)" (identifier) "x2" (<) "<" (parenthesized_expression) "(nspan->x1 - 1)" (() "(" (binary_expression) "nspan->x1 - 1" (field_expression) "nspan->x1" (identifier) "nspan" (->) "->" (field_identifier) "x1" (-) "-" (number_literal) "1" ()) ")" ()) ")" (compound_statement) "{\n sp_stop = span;\n break;\n }" ({) "{" (expression_statement) "sp_stop = span;" (assignment_expression) "sp_stop = span" (identifier) "sp_stop" (=) "=" (identifier) "span" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (}) "}" (comment) "/* we already know it already starts before or in sp_start */" (else_clause) "else\n {\n /* there is no span after this one, so this has to be the stop */\n if (!nspan)\n {\n sp_stop = span;\n break;\n }\n /* if new span ends before the next span starts with a gap of\n * 1 pixel (or more) */\n else if (x2 < (nspan->x1 - 1))\n {\n sp_stop = span;\n break;\n }\n }" (else) "else" (compound_statement) "{\n /* there is no span after this one, so this has to be the stop */\n if (!nspan)\n {\n sp_stop = span;\n break;\n }\n /* if new span ends before the next span starts with a gap of\n * 1 pixel (or more) */\n else if (x2 < (nspan->x1 - 1))\n {\n sp_stop = span;\n break;\n }\n }" ({) "{" (comment) "/* there is no span after this one, so this has to be the stop */" (if_statement) "if (!nspan)\n {\n sp_stop = span;\n break;\n }\n /* if new span ends before the next span starts with a gap of\n * 1 pixel (or more) */\n else if (x2 < (nspan->x1 - 1))\n {\n sp_stop = span;\n break;\n }" (if) "if" (parenthesized_expression) "(!nspan)" (() "(" (unary_expression) "!nspan" (!) "!" (identifier) "nspan" ()) ")" (compound_statement) "{\n sp_stop = span;\n break;\n }" ({) "{" (expression_statement) "sp_stop = span;" (assignment_expression) "sp_stop = span" (identifier) "sp_stop" (=) "=" (identifier) "span" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (comment) "/* if new span ends before the next span starts with a gap of\n * 1 pixel (or more) */" (else_clause) "else if (x2 < (nspan->x1 - 1))\n {\n sp_stop = span;\n break;\n }" (else) "else" (if_statement) "if (x2 < (nspan->x1 - 1))\n {\n sp_stop = span;\n break;\n }" (if) "if" (parenthesized_expression) "(x2 < (nspan->x1 - 1))" (() "(" (binary_expression) "x2 < (nspan->x1 - 1)" (identifier) "x2" (<) "<" (parenthesized_expression) "(nspan->x1 - 1)" (() "(" (binary_expression) "nspan->x1 - 1" (field_expression) "nspan->x1" (identifier) "nspan" (->) "->" (field_identifier) "x1" (-) "-" (number_literal) "1" ()) ")" ()) ")" (compound_statement) "{\n sp_stop = span;\n break;\n }" ({) "{" (expression_statement) "sp_stop = span;" (assignment_expression) "sp_stop = span" (identifier) "sp_stop" (=) "=" (identifier) "span" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (}) "}" (}) "}" (comment) "/* sp_start is where the new span starts in or before */" (comment) "/* sp_stop is where the new span stops in or after */" (if_statement) "if ((sp_start) && (sp_stop))\n {\n /* same start and stop */\n if (sp_start == sp_stop)\n {\n if (x2 < (sp_start->x1 - 1))\n {\n span2 = calloc(1, sizeof(Regionspan));\n span2->x1 = x1;\n span2->x2 = x2;\n rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);\n return;\n }\n if (x1 < sp_start->x1)\n sp_start->x1 = x1;\n if (x2 > sp_start->x2)\n sp_start->x2 = x2;\n return;\n }\n else\n {\n Eina_Inlist *l;\n\n /* remove all nodes after sp_start and before_sp_stop because\n * the new */\n for (l = (EINA_INLIST_GET(sp_start))->next; l != EINA_INLIST_GET(sp_stop);)\n {\n span = (Regionspan *)l;\n l = l->next;\n rb->spans[y] = eina_inlist_remove(rb->spans[y], span);\n free(span);\n }\n /* remove the end span */\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_stop);\n /* if the new span is before the start span - extend */\n if (x1 < sp_start->x1)\n sp_start->x1 = x1;\n /* if it goes beyond the stop span - extend stop span */\n if (x2 > sp_stop->x2)\n sp_stop->x2 = x2;\n /* extend start span to stop span */\n sp_start->x2 = sp_stop->x2;\n /* don't need stop span anymore */\n free(sp_stop);\n return;\n }\n }" (if) "if" (parenthesized_expression) "((sp_start) && (sp_stop))" (() "(" (binary_expression) "(sp_start) && (sp_stop)" (parenthesized_expression) "(sp_start)" (() "(" (identifier) "sp_start" ()) ")" (&&) "&&" (parenthesized_expression) "(sp_stop)" (() "(" (identifier) "sp_stop" ()) ")" ()) ")" (compound_statement) "{\n /* same start and stop */\n if (sp_start == sp_stop)\n {\n if (x2 < (sp_start->x1 - 1))\n {\n span2 = calloc(1, sizeof(Regionspan));\n span2->x1 = x1;\n span2->x2 = x2;\n rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);\n return;\n }\n if (x1 < sp_start->x1)\n sp_start->x1 = x1;\n if (x2 > sp_start->x2)\n sp_start->x2 = x2;\n return;\n }\n else\n {\n Eina_Inlist *l;\n\n /* remove all nodes after sp_start and before_sp_stop because\n * the new */\n for (l = (EINA_INLIST_GET(sp_start))->next; l != EINA_INLIST_GET(sp_stop);)\n {\n span = (Regionspan *)l;\n l = l->next;\n rb->spans[y] = eina_inlist_remove(rb->spans[y], span);\n free(span);\n }\n /* remove the end span */\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_stop);\n /* if the new span is before the start span - extend */\n if (x1 < sp_start->x1)\n sp_start->x1 = x1;\n /* if it goes beyond the stop span - extend stop span */\n if (x2 > sp_stop->x2)\n sp_stop->x2 = x2;\n /* extend start span to stop span */\n sp_start->x2 = sp_stop->x2;\n /* don't need stop span anymore */\n free(sp_stop);\n return;\n }\n }" ({) "{" (comment) "/* same start and stop */" (if_statement) "if (sp_start == sp_stop)\n {\n if (x2 < (sp_start->x1 - 1))\n {\n span2 = calloc(1, sizeof(Regionspan));\n span2->x1 = x1;\n span2->x2 = x2;\n rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);\n return;\n }\n if (x1 < sp_start->x1)\n sp_start->x1 = x1;\n if (x2 > sp_start->x2)\n sp_start->x2 = x2;\n return;\n }\n else\n {\n Eina_Inlist *l;\n\n /* remove all nodes after sp_start and before_sp_stop because\n * the new */\n for (l = (EINA_INLIST_GET(sp_start))->next; l != EINA_INLIST_GET(sp_stop);)\n {\n span = (Regionspan *)l;\n l = l->next;\n rb->spans[y] = eina_inlist_remove(rb->spans[y], span);\n free(span);\n }\n /* remove the end span */\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_stop);\n /* if the new span is before the start span - extend */\n if (x1 < sp_start->x1)\n sp_start->x1 = x1;\n /* if it goes beyond the stop span - extend stop span */\n if (x2 > sp_stop->x2)\n sp_stop->x2 = x2;\n /* extend start span to stop span */\n sp_start->x2 = sp_stop->x2;\n /* don't need stop span anymore */\n free(sp_stop);\n return;\n }" (if) "if" (parenthesized_expression) "(sp_start == sp_stop)" (() "(" (binary_expression) "sp_start == sp_stop" (identifier) "sp_start" (==) "==" (identifier) "sp_stop" ()) ")" (compound_statement) "{\n if (x2 < (sp_start->x1 - 1))\n {\n span2 = calloc(1, sizeof(Regionspan));\n span2->x1 = x1;\n span2->x2 = x2;\n rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);\n return;\n }\n if (x1 < sp_start->x1)\n sp_start->x1 = x1;\n if (x2 > sp_start->x2)\n sp_start->x2 = x2;\n return;\n }" ({) "{" (if_statement) "if (x2 < (sp_start->x1 - 1))\n {\n span2 = calloc(1, sizeof(Regionspan));\n span2->x1 = x1;\n span2->x2 = x2;\n rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);\n return;\n }" (if) "if" (parenthesized_expression) "(x2 < (sp_start->x1 - 1))" (() "(" (binary_expression) "x2 < (sp_start->x1 - 1)" (identifier) "x2" (<) "<" (parenthesized_expression) "(sp_start->x1 - 1)" (() "(" (binary_expression) "sp_start->x1 - 1" (field_expression) "sp_start->x1" (identifier) "sp_start" (->) "->" (field_identifier) "x1" (-) "-" (number_literal) "1" ()) ")" ()) ")" (compound_statement) "{\n span2 = calloc(1, sizeof(Regionspan));\n span2->x1 = x1;\n span2->x2 = x2;\n rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);\n return;\n }" ({) "{" (expression_statement) "span2 = calloc(1, sizeof(Regionspan));" (assignment_expression) "span2 = calloc(1, sizeof(Regionspan))" (identifier) "span2" (=) "=" (call_expression) "calloc(1, sizeof(Regionspan))" (identifier) "calloc" (argument_list) "(1, sizeof(Regionspan))" (() "(" (number_literal) "1" (,) "," (sizeof_expression) "sizeof(Regionspan)" (sizeof) "sizeof" (parenthesized_expression) "(Regionspan)" (() "(" (identifier) "Regionspan" ()) ")" ()) ")" (;) ";" (expression_statement) "span2->x1 = x1;" (assignment_expression) "span2->x1 = x1" (field_expression) "span2->x1" (identifier) "span2" (->) "->" (field_identifier) "x1" (=) "=" (identifier) "x1" (;) ";" (expression_statement) "span2->x2 = x2;" (assignment_expression) "span2->x2 = x2" (field_expression) "span2->x2" (identifier) "span2" (->) "->" (field_identifier) "x2" (=) "=" (identifier) "x2" (;) ";" (expression_statement) "rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);" (assignment_expression) "rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start)" (subscript_expression) "rb->spans[y]" (field_expression) "rb->spans" (identifier) "rb" (->) "->" (field_identifier) "spans" ([) "[" (identifier) "y" (]) "]" (=) "=" (call_expression) "eina_inlist_prepend_relative(rb->spans[y], span2, sp_start)" (identifier) "eina_inlist_prepend_relative" (argument_list) "(rb->spans[y], span2, sp_start)" (() "(" (subscript_expression) "rb->spans[y]" (field_expression) "rb->spans" (identifier) "rb" (->) "->" (field_identifier) "spans" ([) "[" (identifier) "y" (]) "]" (,) "," (identifier) "span2" (,) "," (identifier) "sp_start" ()) ")" (;) ";" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (if_statement) "if (x1 < sp_start->x1)\n sp_start->x1 = x1;" (if) "if" (parenthesized_expression) "(x1 < sp_start->x1)" (() "(" (binary_expression) "x1 < sp_start->x1" (identifier) "x1" (<) "<" (field_expression) "sp_start->x1" (identifier) "sp_start" (->) "->" (field_identifier) "x1" ()) ")" (expression_statement) "sp_start->x1 = x1;" (assignment_expression) "sp_start->x1 = x1" (field_expression) "sp_start->x1" (identifier) "sp_start" (->) "->" (field_identifier) "x1" (=) "=" (identifier) "x1" (;) ";" (if_statement) "if (x2 > sp_start->x2)\n sp_start->x2 = x2;" (if) "if" (parenthesized_expression) "(x2 > sp_start->x2)" (() "(" (binary_expression) "x2 > sp_start->x2" (identifier) "x2" (>) ">" (field_expression) "sp_start->x2" (identifier) "sp_start" (->) "->" (field_identifier) "x2" ()) ")" (expression_statement) "sp_start->x2 = x2;" (assignment_expression) "sp_start->x2 = x2" (field_expression) "sp_start->x2" (identifier) "sp_start" (->) "->" (field_identifier) "x2" (=) "=" (identifier) "x2" (;) ";" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (else_clause) "else\n {\n Eina_Inlist *l;\n\n /* remove all nodes after sp_start and before_sp_stop because\n * the new */\n for (l = (EINA_INLIST_GET(sp_start))->next; l != EINA_INLIST_GET(sp_stop);)\n {\n span = (Regionspan *)l;\n l = l->next;\n rb->spans[y] = eina_inlist_remove(rb->spans[y], span);\n free(span);\n }\n /* remove the end span */\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_stop);\n /* if the new span is before the start span - extend */\n if (x1 < sp_start->x1)\n sp_start->x1 = x1;\n /* if it goes beyond the stop span - extend stop span */\n if (x2 > sp_stop->x2)\n sp_stop->x2 = x2;\n /* extend start span to stop span */\n sp_start->x2 = sp_stop->x2;\n /* don't need stop span anymore */\n free(sp_stop);\n return;\n }" (else) "else" (compound_statement) "{\n Eina_Inlist *l;\n\n /* remove all nodes after sp_start and before_sp_stop because\n * the new */\n for (l = (EINA_INLIST_GET(sp_start))->next; l != EINA_INLIST_GET(sp_stop);)\n {\n span = (Regionspan *)l;\n l = l->next;\n rb->spans[y] = eina_inlist_remove(rb->spans[y], span);\n free(span);\n }\n /* remove the end span */\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_stop);\n /* if the new span is before the start span - extend */\n if (x1 < sp_start->x1)\n sp_start->x1 = x1;\n /* if it goes beyond the stop span - extend stop span */\n if (x2 > sp_stop->x2)\n sp_stop->x2 = x2;\n /* extend start span to stop span */\n sp_start->x2 = sp_stop->x2;\n /* don't need stop span anymore */\n free(sp_stop);\n return;\n }" ({) "{" (declaration) "Eina_Inlist *l;" (type_identifier) "Eina_Inlist" (pointer_declarator) "*l" (*) "*" (identifier) "l" (;) ";" (comment) "/* remove all nodes after sp_start and before_sp_stop because\n * the new */" (for_statement) "for (l = (EINA_INLIST_GET(sp_start))->next; l != EINA_INLIST_GET(sp_stop);)\n {\n span = (Regionspan *)l;\n l = l->next;\n rb->spans[y] = eina_inlist_remove(rb->spans[y], span);\n free(span);\n }" (for) "for" (() "(" (assignment_expression) "l = (EINA_INLIST_GET(sp_start))->next" (identifier) "l" (=) "=" (field_expression) "(EINA_INLIST_GET(sp_start))->next" (parenthesized_expression) "(EINA_INLIST_GET(sp_start))" (() "(" (call_expression) "EINA_INLIST_GET(sp_start)" (identifier) "EINA_INLIST_GET" (argument_list) "(sp_start)" (() "(" (identifier) "sp_start" ()) ")" ()) ")" (->) "->" (field_identifier) "next" (;) ";" (binary_expression) "l != EINA_INLIST_GET(sp_stop)" (identifier) "l" (!=) "!=" (call_expression) "EINA_INLIST_GET(sp_stop)" (identifier) "EINA_INLIST_GET" (argument_list) "(sp_stop)" (() "(" (identifier) "sp_stop" ()) ")" (;) ";" ()) ")" (compound_statement) "{\n span = (Regionspan *)l;\n l = l->next;\n rb->spans[y] = eina_inlist_remove(rb->spans[y], span);\n free(span);\n }" ({) "{" (expression_statement) "span = (Regionspan *)l;" (assignment_expression) "span = (Regionspan *)l" (identifier) "span" (=) "=" (cast_expression) "(Regionspan *)l" (() "(" (type_descriptor) "Regionspan *" (type_identifier) "Regionspan" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "l" (;) ";" (expression_statement) "l = l->next;" (assignment_expression) "l = l->next" (identifier) "l" (=) "=" (field_expression) "l->next" (identifier) "l" (->) "->" (field_identifier) "next" (;) ";" (expression_statement) "rb->spans[y] = eina_inlist_remove(rb->spans[y], span);" (assignment_expression) "rb->spans[y] = eina_inlist_remove(rb->spans[y], span)" (subscript_expression) "rb->spans[y]" (field_expression) "rb->spans" (identifier) "rb" (->) "->" (field_identifier) "spans" ([) "[" (identifier) "y" (]) "]" (=) "=" (call_expression) "eina_inlist_remove(rb->spans[y], span)" (identifier) "eina_inlist_remove" (argument_list) "(rb->spans[y], span)" (() "(" (subscript_expression) "rb->spans[y]" (field_expression) "rb->spans" (identifier) "rb" (->) "->" (field_identifier) "spans" ([) "[" (identifier) "y" (]) "]" (,) "," (identifier) "span" ()) ")" (;) ";" (expression_statement) "free(span);" (call_expression) "free(span)" (identifier) "free" (argument_list) "(span)" (() "(" (identifier) "span" ()) ")" (;) ";" (}) "}" (comment) "/* remove the end span */" (expression_statement) "rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_stop);" (assignment_expression) "rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_stop)" (subscript_expression) "rb->spans[y]" (field_expression) "rb->spans" (identifier) "rb" (->) "->" (field_identifier) "spans" ([) "[" (identifier) "y" (]) "]" (=) "=" (call_expression) "eina_inlist_remove(rb->spans[y], sp_stop)" (identifier) "eina_inlist_remove" (argument_list) "(rb->spans[y], sp_stop)" (() "(" (subscript_expression) "rb->spans[y]" (field_expression) "rb->spans" (identifier) "rb" (->) "->" (field_identifier) "spans" ([) "[" (identifier) "y" (]) "]" (,) "," (identifier) "sp_stop" ()) ")" (;) ";" (comment) "/* if the new span is before the start span - extend */" (if_statement) "if (x1 < sp_start->x1)\n sp_start->x1 = x1;" (if) "if" (parenthesized_expression) "(x1 < sp_start->x1)" (() "(" (binary_expression) "x1 < sp_start->x1" (identifier) "x1" (<) "<" (field_expression) "sp_start->x1" (identifier) "sp_start" (->) "->" (field_identifier) "x1" ()) ")" (expression_statement) "sp_start->x1 = x1;" (assignment_expression) "sp_start->x1 = x1" (field_expression) "sp_start->x1" (identifier) "sp_start" (->) "->" (field_identifier) "x1" (=) "=" (identifier) "x1" (;) ";" (comment) "/* if it goes beyond the stop span - extend stop span */" (if_statement) "if (x2 > sp_stop->x2)\n sp_stop->x2 = x2;" (if) "if" (parenthesized_expression) "(x2 > sp_stop->x2)" (() "(" (binary_expression) "x2 > sp_stop->x2" (identifier) "x2" (>) ">" (field_expression) "sp_stop->x2" (identifier) "sp_stop" (->) "->" (field_identifier) "x2" ()) ")" (expression_statement) "sp_stop->x2 = x2;" (assignment_expression) "sp_stop->x2 = x2" (field_expression) "sp_stop->x2" (identifier) "sp_stop" (->) "->" (field_identifier) "x2" (=) "=" (identifier) "x2" (;) ";" (comment) "/* extend start span to stop span */" (expression_statement) "sp_start->x2 = sp_stop->x2;" (assignment_expression) "sp_start->x2 = sp_stop->x2" (field_expression) "sp_start->x2" (identifier) "sp_start" (->) "->" (field_identifier) "x2" (=) "=" (field_expression) "sp_stop->x2" (identifier) "sp_stop" (->) "->" (field_identifier) "x2" (;) ";" (comment) "/* don't need stop span anymore */" (expression_statement) "free(sp_stop);" (call_expression) "free(sp_stop)" (identifier) "free" (argument_list) "(sp_stop)" (() "(" (identifier) "sp_stop" ()) ")" (;) ";" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (}) "}" (comment) "/* no start AND stop... just append */" (expression_statement) "span2 = calloc(1, sizeof(Regionspan));" (assignment_expression) "span2 = calloc(1, sizeof(Regionspan))" (identifier) "span2" (=) "=" (call_expression) "calloc(1, sizeof(Regionspan))" (identifier) "calloc" (argument_list) "(1, sizeof(Regionspan))" (() "(" (number_literal) "1" (,) "," (sizeof_expression) "sizeof(Regionspan)" (sizeof) "sizeof" (parenthesized_expression) "(Regionspan)" (() "(" (identifier) "Regionspan" ()) ")" ()) ")" (;) ";" (expression_statement) "span2->x1 = x1;" (assignment_expression) "span2->x1 = x1" (field_expression) "span2->x1" (identifier) "span2" (->) "->" (field_identifier) "x1" (=) "=" (identifier) "x1" (;) ";" (expression_statement) "span2->x2 = x2;" (assignment_expression) "span2->x2 = x2" (field_expression) "span2->x2" (identifier) "span2" (->) "->" (field_identifier) "x2" (=) "=" (identifier) "x2" (;) ";" (expression_statement) "rb->spans[y] = eina_inlist_append(rb->spans[y], span2);" (assignment_expression) "rb->spans[y] = eina_inlist_append(rb->spans[y], span2)" (subscript_expression) "rb->spans[y]" (field_expression) "rb->spans" (identifier) "rb" (->) "->" (field_identifier) "spans" ([) "[" (identifier) "y" (]) "]" (=) "=" (call_expression) "eina_inlist_append(rb->spans[y], span2)" (identifier) "eina_inlist_append" (argument_list) "(rb->spans[y], span2)" (() "(" (subscript_expression) "rb->spans[y]" (field_expression) "rb->spans" (identifier) "rb" (->) "->" (field_identifier) "spans" ([) "[" (identifier) "y" (]) "]" (,) "," (identifier) "span2" ()) ")" (;) ";" (}) "}" (function_definition) "void\nevas_common_regionbuf_span_del(Regionbuf *rb, int x1, int x2, int y)\n{\n /* FIXME: del span */\n Regionspan *span, *span2, *nspan, *sp_start, *sp_stop;\n\n /* abort if outside */\n if ((y < 0) ||\n (y >= rb->h) ||\n (x2 < 0) ||\n (x1 >= rb->w)) return;\n /* clip to horiz bounds */\n if (x1 < 0) x1 = 0;\n if (x2 < (rb->w - 1)) x2 = rb->w - 1;\n sp_start = NULL;\n sp_stop = NULL;\n EINA_INLIST_FOREACH(rb->spans[y], span)\n {\n nspan = (Regionspan *)(EINA_INLIST_GET(l))->next;\n /* we dont know what t do with the span yet */\n if (!sp_start)\n {\n /* if new span starts before or on this span or just after\n * with no gap */\n if (x1 <= (span->x2))\n sp_start = span;\n /* if there is no next span */\n if (!nspan)\n {\n sp_stop = span;\n break;\n }\n /* if new span ends before the next span starts with a gap of\n * 1 pixel (or more) */\n else if (x2 < nspan->x1)\n {\n sp_stop = span;\n break;\n }\n }\n /* we already know it already starts before or in sp_start */\n else\n {\n /* there is no span after this one, so this has to be the stop */\n if (!nspan)\n {\n sp_stop = span;\n break;\n }\n /* if new span ends before the next span starts with a gap of\n * 1 pixel (or more) */\n else if (x2 < nspan->x1)\n {\n sp_stop = span;\n break;\n }\n }\n }\n /* sp_start is where the new span starts in or before */\n /* sp_stop is where the new span stops in or after */\n if ((sp_start) && (sp_stop))\n {\n /* same start and stop */\n if (sp_start == sp_stop)\n {\n /* if it ends before this the span start starts... return */\n if (x2 < sp_start->x1)\n return;\n /* it starts on or before this span */\n else if (x1 <= sp_start->x1)\n {\n /* right edge is within the span */\n if (x2 < sp_start->x2)\n {\n sp_start->x2 = x2;\n return;\n }\n else\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n return;\n }\n }\n /* it ends on or after the end of this span */\n else if (x2 >= sp_start->x2)\n {\n /* it starts after the start */\n if (x1 > sp_start->x1)\n {\n sp_start->x1 = x1;\n return;\n }\n /* remove it all */\n else\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n return;\n }\n return;\n }\n /* this breaks the span into 2 */\n else\n {\n span2 = calloc(1, sizeof(Regionspan));\n span2->x1 = sp_start->x1;\n span2->x2 = x1 - 1;\n rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);\n sp_start->x1 = x2 + 1;\n return;\n }\n }\n else\n {\n Eina_Inlist *l;\n\n /* remove all nodes after sp_start and before_sp_stop because\n * the new */\n for (l = (EINA_INLIST_GET(sp_start))->next; l != EINA_INLIST_GET(sp_stop);)\n {\n span = (Regionspan *)l;\n l = l->next;\n rb->spans[y] = eina_inlist_remove(rb->spans[y], span);\n free(span);\n }\n /* all of the start span is cut out */\n if (x1 <= sp_start->x1)\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n free(sp_start);\n }\n /* chup it off at the new span start */\n else\n sp_start->x2 = x1 - 1;\n /* all of the end span is cut out */\n if (x2 >= sp_stop->x2)\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_stop);\n free(sp_stop);\n }\n /* chop it up at the end */\n else\n sp_stop->x1 = x2 + 1;\n return;\n }\n }\n}" (primitive_type) "void" (function_declarator) "evas_common_regionbuf_span_del(Regionbuf *rb, int x1, int x2, int y)" (identifier) "evas_common_regionbuf_span_del" (parameter_list) "(Regionbuf *rb, int x1, int x2, int y)" (() "(" (parameter_declaration) "Regionbuf *rb" (type_identifier) "Regionbuf" (pointer_declarator) "*rb" (*) "*" (identifier) "rb" (,) "," (parameter_declaration) "int x1" (primitive_type) "int" (identifier) "x1" (,) "," (parameter_declaration) "int x2" (primitive_type) "int" (identifier) "x2" (,) "," (parameter_declaration) "int y" (primitive_type) "int" (identifier) "y" ()) ")" (compound_statement) "{\n /* FIXME: del span */\n Regionspan *span, *span2, *nspan, *sp_start, *sp_stop;\n\n /* abort if outside */\n if ((y < 0) ||\n (y >= rb->h) ||\n (x2 < 0) ||\n (x1 >= rb->w)) return;\n /* clip to horiz bounds */\n if (x1 < 0) x1 = 0;\n if (x2 < (rb->w - 1)) x2 = rb->w - 1;\n sp_start = NULL;\n sp_stop = NULL;\n EINA_INLIST_FOREACH(rb->spans[y], span)\n {\n nspan = (Regionspan *)(EINA_INLIST_GET(l))->next;\n /* we dont know what t do with the span yet */\n if (!sp_start)\n {\n /* if new span starts before or on this span or just after\n * with no gap */\n if (x1 <= (span->x2))\n sp_start = span;\n /* if there is no next span */\n if (!nspan)\n {\n sp_stop = span;\n break;\n }\n /* if new span ends before the next span starts with a gap of\n * 1 pixel (or more) */\n else if (x2 < nspan->x1)\n {\n sp_stop = span;\n break;\n }\n }\n /* we already know it already starts before or in sp_start */\n else\n {\n /* there is no span after this one, so this has to be the stop */\n if (!nspan)\n {\n sp_stop = span;\n break;\n }\n /* if new span ends before the next span starts with a gap of\n * 1 pixel (or more) */\n else if (x2 < nspan->x1)\n {\n sp_stop = span;\n break;\n }\n }\n }\n /* sp_start is where the new span starts in or before */\n /* sp_stop is where the new span stops in or after */\n if ((sp_start) && (sp_stop))\n {\n /* same start and stop */\n if (sp_start == sp_stop)\n {\n /* if it ends before this the span start starts... return */\n if (x2 < sp_start->x1)\n return;\n /* it starts on or before this span */\n else if (x1 <= sp_start->x1)\n {\n /* right edge is within the span */\n if (x2 < sp_start->x2)\n {\n sp_start->x2 = x2;\n return;\n }\n else\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n return;\n }\n }\n /* it ends on or after the end of this span */\n else if (x2 >= sp_start->x2)\n {\n /* it starts after the start */\n if (x1 > sp_start->x1)\n {\n sp_start->x1 = x1;\n return;\n }\n /* remove it all */\n else\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n return;\n }\n return;\n }\n /* this breaks the span into 2 */\n else\n {\n span2 = calloc(1, sizeof(Regionspan));\n span2->x1 = sp_start->x1;\n span2->x2 = x1 - 1;\n rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);\n sp_start->x1 = x2 + 1;\n return;\n }\n }\n else\n {\n Eina_Inlist *l;\n\n /* remove all nodes after sp_start and before_sp_stop because\n * the new */\n for (l = (EINA_INLIST_GET(sp_start))->next; l != EINA_INLIST_GET(sp_stop);)\n {\n span = (Regionspan *)l;\n l = l->next;\n rb->spans[y] = eina_inlist_remove(rb->spans[y], span);\n free(span);\n }\n /* all of the start span is cut out */\n if (x1 <= sp_start->x1)\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n free(sp_start);\n }\n /* chup it off at the new span start */\n else\n sp_start->x2 = x1 - 1;\n /* all of the end span is cut out */\n if (x2 >= sp_stop->x2)\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_stop);\n free(sp_stop);\n }\n /* chop it up at the end */\n else\n sp_stop->x1 = x2 + 1;\n return;\n }\n }\n}" ({) "{" (comment) "/* FIXME: del span */" (declaration) "Regionspan *span, *span2, *nspan, *sp_start, *sp_stop;" (type_identifier) "Regionspan" (pointer_declarator) "*span" (*) "*" (identifier) "span" (,) "," (pointer_declarator) "*span2" (*) "*" (identifier) "span2" (,) "," (pointer_declarator) "*nspan" (*) "*" (identifier) "nspan" (,) "," (pointer_declarator) "*sp_start" (*) "*" (identifier) "sp_start" (,) "," (pointer_declarator) "*sp_stop" (*) "*" (identifier) "sp_stop" (;) ";" (comment) "/* abort if outside */" (if_statement) "if ((y < 0) ||\n (y >= rb->h) ||\n (x2 < 0) ||\n (x1 >= rb->w)) return;" (if) "if" (parenthesized_expression) "((y < 0) ||\n (y >= rb->h) ||\n (x2 < 0) ||\n (x1 >= rb->w))" (() "(" (binary_expression) "(y < 0) ||\n (y >= rb->h) ||\n (x2 < 0) ||\n (x1 >= rb->w)" (binary_expression) "(y < 0) ||\n (y >= rb->h) ||\n (x2 < 0)" (binary_expression) "(y < 0) ||\n (y >= rb->h)" (parenthesized_expression) "(y < 0)" (() "(" (binary_expression) "y < 0" (identifier) "y" (<) "<" (number_literal) "0" ()) ")" (||) "||" (parenthesized_expression) "(y >= rb->h)" (() "(" (binary_expression) "y >= rb->h" (identifier) "y" (>=) ">=" (field_expression) "rb->h" (identifier) "rb" (->) "->" (field_identifier) "h" ()) ")" (||) "||" (parenthesized_expression) "(x2 < 0)" (() "(" (binary_expression) "x2 < 0" (identifier) "x2" (<) "<" (number_literal) "0" ()) ")" (||) "||" (parenthesized_expression) "(x1 >= rb->w)" (() "(" (binary_expression) "x1 >= rb->w" (identifier) "x1" (>=) ">=" (field_expression) "rb->w" (identifier) "rb" (->) "->" (field_identifier) "w" ()) ")" ()) ")" (return_statement) "return;" (return) "return" (;) ";" (comment) "/* clip to horiz bounds */" (if_statement) "if (x1 < 0) x1 = 0;" (if) "if" (parenthesized_expression) "(x1 < 0)" (() "(" (binary_expression) "x1 < 0" (identifier) "x1" (<) "<" (number_literal) "0" ()) ")" (expression_statement) "x1 = 0;" (assignment_expression) "x1 = 0" (identifier) "x1" (=) "=" (number_literal) "0" (;) ";" (if_statement) "if (x2 < (rb->w - 1)) x2 = rb->w - 1;" (if) "if" (parenthesized_expression) "(x2 < (rb->w - 1))" (() "(" (binary_expression) "x2 < (rb->w - 1)" (identifier) "x2" (<) "<" (parenthesized_expression) "(rb->w - 1)" (() "(" (binary_expression) "rb->w - 1" (field_expression) "rb->w" (identifier) "rb" (->) "->" (field_identifier) "w" (-) "-" (number_literal) "1" ()) ")" ()) ")" (expression_statement) "x2 = rb->w - 1;" (assignment_expression) "x2 = rb->w - 1" (identifier) "x2" (=) "=" (binary_expression) "rb->w - 1" (field_expression) "rb->w" (identifier) "rb" (->) "->" (field_identifier) "w" (-) "-" (number_literal) "1" (;) ";" (expression_statement) "sp_start = NULL;" (assignment_expression) "sp_start = NULL" (identifier) "sp_start" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "sp_stop = NULL;" (assignment_expression) "sp_stop = NULL" (identifier) "sp_stop" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "EINA_INLIST_FOREACH(rb->spans[y], span)" (call_expression) "EINA_INLIST_FOREACH(rb->spans[y], span)" (identifier) "EINA_INLIST_FOREACH" (argument_list) "(rb->spans[y], span)" (() "(" (subscript_expression) "rb->spans[y]" (field_expression) "rb->spans" (identifier) "rb" (->) "->" (field_identifier) "spans" ([) "[" (identifier) "y" (]) "]" (,) "," (identifier) "span" ()) ")" (;) "" (compound_statement) "{\n nspan = (Regionspan *)(EINA_INLIST_GET(l))->next;\n /* we dont know what t do with the span yet */\n if (!sp_start)\n {\n /* if new span starts before or on this span or just after\n * with no gap */\n if (x1 <= (span->x2))\n sp_start = span;\n /* if there is no next span */\n if (!nspan)\n {\n sp_stop = span;\n break;\n }\n /* if new span ends before the next span starts with a gap of\n * 1 pixel (or more) */\n else if (x2 < nspan->x1)\n {\n sp_stop = span;\n break;\n }\n }\n /* we already know it already starts before or in sp_start */\n else\n {\n /* there is no span after this one, so this has to be the stop */\n if (!nspan)\n {\n sp_stop = span;\n break;\n }\n /* if new span ends before the next span starts with a gap of\n * 1 pixel (or more) */\n else if (x2 < nspan->x1)\n {\n sp_stop = span;\n break;\n }\n }\n }" ({) "{" (expression_statement) "nspan = (Regionspan *)(EINA_INLIST_GET(l))->next;" (assignment_expression) "nspan = (Regionspan *)(EINA_INLIST_GET(l))->next" (identifier) "nspan" (=) "=" (cast_expression) "(Regionspan *)(EINA_INLIST_GET(l))->next" (() "(" (type_descriptor) "Regionspan *" (type_identifier) "Regionspan" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (field_expression) "(EINA_INLIST_GET(l))->next" (parenthesized_expression) "(EINA_INLIST_GET(l))" (() "(" (call_expression) "EINA_INLIST_GET(l)" (identifier) "EINA_INLIST_GET" (argument_list) "(l)" (() "(" (identifier) "l" ()) ")" ()) ")" (->) "->" (field_identifier) "next" (;) ";" (comment) "/* we dont know what t do with the span yet */" (if_statement) "if (!sp_start)\n {\n /* if new span starts before or on this span or just after\n * with no gap */\n if (x1 <= (span->x2))\n sp_start = span;\n /* if there is no next span */\n if (!nspan)\n {\n sp_stop = span;\n break;\n }\n /* if new span ends before the next span starts with a gap of\n * 1 pixel (or more) */\n else if (x2 < nspan->x1)\n {\n sp_stop = span;\n break;\n }\n }\n /* we already know it already starts before or in sp_start */\n else\n {\n /* there is no span after this one, so this has to be the stop */\n if (!nspan)\n {\n sp_stop = span;\n break;\n }\n /* if new span ends before the next span starts with a gap of\n * 1 pixel (or more) */\n else if (x2 < nspan->x1)\n {\n sp_stop = span;\n break;\n }\n }" (if) "if" (parenthesized_expression) "(!sp_start)" (() "(" (unary_expression) "!sp_start" (!) "!" (identifier) "sp_start" ()) ")" (compound_statement) "{\n /* if new span starts before or on this span or just after\n * with no gap */\n if (x1 <= (span->x2))\n sp_start = span;\n /* if there is no next span */\n if (!nspan)\n {\n sp_stop = span;\n break;\n }\n /* if new span ends before the next span starts with a gap of\n * 1 pixel (or more) */\n else if (x2 < nspan->x1)\n {\n sp_stop = span;\n break;\n }\n }" ({) "{" (comment) "/* if new span starts before or on this span or just after\n * with no gap */" (if_statement) "if (x1 <= (span->x2))\n sp_start = span;" (if) "if" (parenthesized_expression) "(x1 <= (span->x2))" (() "(" (binary_expression) "x1 <= (span->x2)" (identifier) "x1" (<=) "<=" (parenthesized_expression) "(span->x2)" (() "(" (field_expression) "span->x2" (identifier) "span" (->) "->" (field_identifier) "x2" ()) ")" ()) ")" (expression_statement) "sp_start = span;" (assignment_expression) "sp_start = span" (identifier) "sp_start" (=) "=" (identifier) "span" (;) ";" (comment) "/* if there is no next span */" (if_statement) "if (!nspan)\n {\n sp_stop = span;\n break;\n }\n /* if new span ends before the next span starts with a gap of\n * 1 pixel (or more) */\n else if (x2 < nspan->x1)\n {\n sp_stop = span;\n break;\n }" (if) "if" (parenthesized_expression) "(!nspan)" (() "(" (unary_expression) "!nspan" (!) "!" (identifier) "nspan" ()) ")" (compound_statement) "{\n sp_stop = span;\n break;\n }" ({) "{" (expression_statement) "sp_stop = span;" (assignment_expression) "sp_stop = span" (identifier) "sp_stop" (=) "=" (identifier) "span" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (comment) "/* if new span ends before the next span starts with a gap of\n * 1 pixel (or more) */" (else_clause) "else if (x2 < nspan->x1)\n {\n sp_stop = span;\n break;\n }" (else) "else" (if_statement) "if (x2 < nspan->x1)\n {\n sp_stop = span;\n break;\n }" (if) "if" (parenthesized_expression) "(x2 < nspan->x1)" (() "(" (binary_expression) "x2 < nspan->x1" (identifier) "x2" (<) "<" (field_expression) "nspan->x1" (identifier) "nspan" (->) "->" (field_identifier) "x1" ()) ")" (compound_statement) "{\n sp_stop = span;\n break;\n }" ({) "{" (expression_statement) "sp_stop = span;" (assignment_expression) "sp_stop = span" (identifier) "sp_stop" (=) "=" (identifier) "span" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (}) "}" (comment) "/* we already know it already starts before or in sp_start */" (else_clause) "else\n {\n /* there is no span after this one, so this has to be the stop */\n if (!nspan)\n {\n sp_stop = span;\n break;\n }\n /* if new span ends before the next span starts with a gap of\n * 1 pixel (or more) */\n else if (x2 < nspan->x1)\n {\n sp_stop = span;\n break;\n }\n }" (else) "else" (compound_statement) "{\n /* there is no span after this one, so this has to be the stop */\n if (!nspan)\n {\n sp_stop = span;\n break;\n }\n /* if new span ends before the next span starts with a gap of\n * 1 pixel (or more) */\n else if (x2 < nspan->x1)\n {\n sp_stop = span;\n break;\n }\n }" ({) "{" (comment) "/* there is no span after this one, so this has to be the stop */" (if_statement) "if (!nspan)\n {\n sp_stop = span;\n break;\n }\n /* if new span ends before the next span starts with a gap of\n * 1 pixel (or more) */\n else if (x2 < nspan->x1)\n {\n sp_stop = span;\n break;\n }" (if) "if" (parenthesized_expression) "(!nspan)" (() "(" (unary_expression) "!nspan" (!) "!" (identifier) "nspan" ()) ")" (compound_statement) "{\n sp_stop = span;\n break;\n }" ({) "{" (expression_statement) "sp_stop = span;" (assignment_expression) "sp_stop = span" (identifier) "sp_stop" (=) "=" (identifier) "span" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (comment) "/* if new span ends before the next span starts with a gap of\n * 1 pixel (or more) */" (else_clause) "else if (x2 < nspan->x1)\n {\n sp_stop = span;\n break;\n }" (else) "else" (if_statement) "if (x2 < nspan->x1)\n {\n sp_stop = span;\n break;\n }" (if) "if" (parenthesized_expression) "(x2 < nspan->x1)" (() "(" (binary_expression) "x2 < nspan->x1" (identifier) "x2" (<) "<" (field_expression) "nspan->x1" (identifier) "nspan" (->) "->" (field_identifier) "x1" ()) ")" (compound_statement) "{\n sp_stop = span;\n break;\n }" ({) "{" (expression_statement) "sp_stop = span;" (assignment_expression) "sp_stop = span" (identifier) "sp_stop" (=) "=" (identifier) "span" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (}) "}" (}) "}" (comment) "/* sp_start is where the new span starts in or before */" (comment) "/* sp_stop is where the new span stops in or after */" (if_statement) "if ((sp_start) && (sp_stop))\n {\n /* same start and stop */\n if (sp_start == sp_stop)\n {\n /* if it ends before this the span start starts... return */\n if (x2 < sp_start->x1)\n return;\n /* it starts on or before this span */\n else if (x1 <= sp_start->x1)\n {\n /* right edge is within the span */\n if (x2 < sp_start->x2)\n {\n sp_start->x2 = x2;\n return;\n }\n else\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n return;\n }\n }\n /* it ends on or after the end of this span */\n else if (x2 >= sp_start->x2)\n {\n /* it starts after the start */\n if (x1 > sp_start->x1)\n {\n sp_start->x1 = x1;\n return;\n }\n /* remove it all */\n else\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n return;\n }\n return;\n }\n /* this breaks the span into 2 */\n else\n {\n span2 = calloc(1, sizeof(Regionspan));\n span2->x1 = sp_start->x1;\n span2->x2 = x1 - 1;\n rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);\n sp_start->x1 = x2 + 1;\n return;\n }\n }\n else\n {\n Eina_Inlist *l;\n\n /* remove all nodes after sp_start and before_sp_stop because\n * the new */\n for (l = (EINA_INLIST_GET(sp_start))->next; l != EINA_INLIST_GET(sp_stop);)\n {\n span = (Regionspan *)l;\n l = l->next;\n rb->spans[y] = eina_inlist_remove(rb->spans[y], span);\n free(span);\n }\n /* all of the start span is cut out */\n if (x1 <= sp_start->x1)\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n free(sp_start);\n }\n /* chup it off at the new span start */\n else\n sp_start->x2 = x1 - 1;\n /* all of the end span is cut out */\n if (x2 >= sp_stop->x2)\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_stop);\n free(sp_stop);\n }\n /* chop it up at the end */\n else\n sp_stop->x1 = x2 + 1;\n return;\n }\n }" (if) "if" (parenthesized_expression) "((sp_start) && (sp_stop))" (() "(" (binary_expression) "(sp_start) && (sp_stop)" (parenthesized_expression) "(sp_start)" (() "(" (identifier) "sp_start" ()) ")" (&&) "&&" (parenthesized_expression) "(sp_stop)" (() "(" (identifier) "sp_stop" ()) ")" ()) ")" (compound_statement) "{\n /* same start and stop */\n if (sp_start == sp_stop)\n {\n /* if it ends before this the span start starts... return */\n if (x2 < sp_start->x1)\n return;\n /* it starts on or before this span */\n else if (x1 <= sp_start->x1)\n {\n /* right edge is within the span */\n if (x2 < sp_start->x2)\n {\n sp_start->x2 = x2;\n return;\n }\n else\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n return;\n }\n }\n /* it ends on or after the end of this span */\n else if (x2 >= sp_start->x2)\n {\n /* it starts after the start */\n if (x1 > sp_start->x1)\n {\n sp_start->x1 = x1;\n return;\n }\n /* remove it all */\n else\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n return;\n }\n return;\n }\n /* this breaks the span into 2 */\n else\n {\n span2 = calloc(1, sizeof(Regionspan));\n span2->x1 = sp_start->x1;\n span2->x2 = x1 - 1;\n rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);\n sp_start->x1 = x2 + 1;\n return;\n }\n }\n else\n {\n Eina_Inlist *l;\n\n /* remove all nodes after sp_start and before_sp_stop because\n * the new */\n for (l = (EINA_INLIST_GET(sp_start))->next; l != EINA_INLIST_GET(sp_stop);)\n {\n span = (Regionspan *)l;\n l = l->next;\n rb->spans[y] = eina_inlist_remove(rb->spans[y], span);\n free(span);\n }\n /* all of the start span is cut out */\n if (x1 <= sp_start->x1)\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n free(sp_start);\n }\n /* chup it off at the new span start */\n else\n sp_start->x2 = x1 - 1;\n /* all of the end span is cut out */\n if (x2 >= sp_stop->x2)\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_stop);\n free(sp_stop);\n }\n /* chop it up at the end */\n else\n sp_stop->x1 = x2 + 1;\n return;\n }\n }" ({) "{" (comment) "/* same start and stop */" (if_statement) "if (sp_start == sp_stop)\n {\n /* if it ends before this the span start starts... return */\n if (x2 < sp_start->x1)\n return;\n /* it starts on or before this span */\n else if (x1 <= sp_start->x1)\n {\n /* right edge is within the span */\n if (x2 < sp_start->x2)\n {\n sp_start->x2 = x2;\n return;\n }\n else\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n return;\n }\n }\n /* it ends on or after the end of this span */\n else if (x2 >= sp_start->x2)\n {\n /* it starts after the start */\n if (x1 > sp_start->x1)\n {\n sp_start->x1 = x1;\n return;\n }\n /* remove it all */\n else\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n return;\n }\n return;\n }\n /* this breaks the span into 2 */\n else\n {\n span2 = calloc(1, sizeof(Regionspan));\n span2->x1 = sp_start->x1;\n span2->x2 = x1 - 1;\n rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);\n sp_start->x1 = x2 + 1;\n return;\n }\n }\n else\n {\n Eina_Inlist *l;\n\n /* remove all nodes after sp_start and before_sp_stop because\n * the new */\n for (l = (EINA_INLIST_GET(sp_start))->next; l != EINA_INLIST_GET(sp_stop);)\n {\n span = (Regionspan *)l;\n l = l->next;\n rb->spans[y] = eina_inlist_remove(rb->spans[y], span);\n free(span);\n }\n /* all of the start span is cut out */\n if (x1 <= sp_start->x1)\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n free(sp_start);\n }\n /* chup it off at the new span start */\n else\n sp_start->x2 = x1 - 1;\n /* all of the end span is cut out */\n if (x2 >= sp_stop->x2)\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_stop);\n free(sp_stop);\n }\n /* chop it up at the end */\n else\n sp_stop->x1 = x2 + 1;\n return;\n }" (if) "if" (parenthesized_expression) "(sp_start == sp_stop)" (() "(" (binary_expression) "sp_start == sp_stop" (identifier) "sp_start" (==) "==" (identifier) "sp_stop" ()) ")" (compound_statement) "{\n /* if it ends before this the span start starts... return */\n if (x2 < sp_start->x1)\n return;\n /* it starts on or before this span */\n else if (x1 <= sp_start->x1)\n {\n /* right edge is within the span */\n if (x2 < sp_start->x2)\n {\n sp_start->x2 = x2;\n return;\n }\n else\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n return;\n }\n }\n /* it ends on or after the end of this span */\n else if (x2 >= sp_start->x2)\n {\n /* it starts after the start */\n if (x1 > sp_start->x1)\n {\n sp_start->x1 = x1;\n return;\n }\n /* remove it all */\n else\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n return;\n }\n return;\n }\n /* this breaks the span into 2 */\n else\n {\n span2 = calloc(1, sizeof(Regionspan));\n span2->x1 = sp_start->x1;\n span2->x2 = x1 - 1;\n rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);\n sp_start->x1 = x2 + 1;\n return;\n }\n }" ({) "{" (comment) "/* if it ends before this the span start starts... return */" (if_statement) "if (x2 < sp_start->x1)\n return;\n /* it starts on or before this span */\n else if (x1 <= sp_start->x1)\n {\n /* right edge is within the span */\n if (x2 < sp_start->x2)\n {\n sp_start->x2 = x2;\n return;\n }\n else\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n return;\n }\n }\n /* it ends on or after the end of this span */\n else if (x2 >= sp_start->x2)\n {\n /* it starts after the start */\n if (x1 > sp_start->x1)\n {\n sp_start->x1 = x1;\n return;\n }\n /* remove it all */\n else\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n return;\n }\n return;\n }\n /* this breaks the span into 2 */\n else\n {\n span2 = calloc(1, sizeof(Regionspan));\n span2->x1 = sp_start->x1;\n span2->x2 = x1 - 1;\n rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);\n sp_start->x1 = x2 + 1;\n return;\n }" (if) "if" (parenthesized_expression) "(x2 < sp_start->x1)" (() "(" (binary_expression) "x2 < sp_start->x1" (identifier) "x2" (<) "<" (field_expression) "sp_start->x1" (identifier) "sp_start" (->) "->" (field_identifier) "x1" ()) ")" (return_statement) "return;" (return) "return" (;) ";" (comment) "/* it starts on or before this span */" (else_clause) "else if (x1 <= sp_start->x1)\n {\n /* right edge is within the span */\n if (x2 < sp_start->x2)\n {\n sp_start->x2 = x2;\n return;\n }\n else\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n return;\n }\n }\n /* it ends on or after the end of this span */\n else if (x2 >= sp_start->x2)\n {\n /* it starts after the start */\n if (x1 > sp_start->x1)\n {\n sp_start->x1 = x1;\n return;\n }\n /* remove it all */\n else\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n return;\n }\n return;\n }\n /* this breaks the span into 2 */\n else\n {\n span2 = calloc(1, sizeof(Regionspan));\n span2->x1 = sp_start->x1;\n span2->x2 = x1 - 1;\n rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);\n sp_start->x1 = x2 + 1;\n return;\n }" (else) "else" (if_statement) "if (x1 <= sp_start->x1)\n {\n /* right edge is within the span */\n if (x2 < sp_start->x2)\n {\n sp_start->x2 = x2;\n return;\n }\n else\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n return;\n }\n }\n /* it ends on or after the end of this span */\n else if (x2 >= sp_start->x2)\n {\n /* it starts after the start */\n if (x1 > sp_start->x1)\n {\n sp_start->x1 = x1;\n return;\n }\n /* remove it all */\n else\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n return;\n }\n return;\n }\n /* this breaks the span into 2 */\n else\n {\n span2 = calloc(1, sizeof(Regionspan));\n span2->x1 = sp_start->x1;\n span2->x2 = x1 - 1;\n rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);\n sp_start->x1 = x2 + 1;\n return;\n }" (if) "if" (parenthesized_expression) "(x1 <= sp_start->x1)" (() "(" (binary_expression) "x1 <= sp_start->x1" (identifier) "x1" (<=) "<=" (field_expression) "sp_start->x1" (identifier) "sp_start" (->) "->" (field_identifier) "x1" ()) ")" (compound_statement) "{\n /* right edge is within the span */\n if (x2 < sp_start->x2)\n {\n sp_start->x2 = x2;\n return;\n }\n else\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n return;\n }\n }" ({) "{" (comment) "/* right edge is within the span */" (if_statement) "if (x2 < sp_start->x2)\n {\n sp_start->x2 = x2;\n return;\n }\n else\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n return;\n }" (if) "if" (parenthesized_expression) "(x2 < sp_start->x2)" (() "(" (binary_expression) "x2 < sp_start->x2" (identifier) "x2" (<) "<" (field_expression) "sp_start->x2" (identifier) "sp_start" (->) "->" (field_identifier) "x2" ()) ")" (compound_statement) "{\n sp_start->x2 = x2;\n return;\n }" ({) "{" (expression_statement) "sp_start->x2 = x2;" (assignment_expression) "sp_start->x2 = x2" (field_expression) "sp_start->x2" (identifier) "sp_start" (->) "->" (field_identifier) "x2" (=) "=" (identifier) "x2" (;) ";" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (else_clause) "else\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n return;\n }" (else) "else" (compound_statement) "{\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n return;\n }" ({) "{" (expression_statement) "rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);" (assignment_expression) "rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start)" (subscript_expression) "rb->spans[y]" (field_expression) "rb->spans" (identifier) "rb" (->) "->" (field_identifier) "spans" ([) "[" (identifier) "y" (]) "]" (=) "=" (call_expression) "eina_inlist_remove(rb->spans[y], sp_start)" (identifier) "eina_inlist_remove" (argument_list) "(rb->spans[y], sp_start)" (() "(" (subscript_expression) "rb->spans[y]" (field_expression) "rb->spans" (identifier) "rb" (->) "->" (field_identifier) "spans" ([) "[" (identifier) "y" (]) "]" (,) "," (identifier) "sp_start" ()) ")" (;) ";" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (}) "}" (comment) "/* it ends on or after the end of this span */" (else_clause) "else if (x2 >= sp_start->x2)\n {\n /* it starts after the start */\n if (x1 > sp_start->x1)\n {\n sp_start->x1 = x1;\n return;\n }\n /* remove it all */\n else\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n return;\n }\n return;\n }\n /* this breaks the span into 2 */\n else\n {\n span2 = calloc(1, sizeof(Regionspan));\n span2->x1 = sp_start->x1;\n span2->x2 = x1 - 1;\n rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);\n sp_start->x1 = x2 + 1;\n return;\n }" (else) "else" (if_statement) "if (x2 >= sp_start->x2)\n {\n /* it starts after the start */\n if (x1 > sp_start->x1)\n {\n sp_start->x1 = x1;\n return;\n }\n /* remove it all */\n else\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n return;\n }\n return;\n }\n /* this breaks the span into 2 */\n else\n {\n span2 = calloc(1, sizeof(Regionspan));\n span2->x1 = sp_start->x1;\n span2->x2 = x1 - 1;\n rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);\n sp_start->x1 = x2 + 1;\n return;\n }" (if) "if" (parenthesized_expression) "(x2 >= sp_start->x2)" (() "(" (binary_expression) "x2 >= sp_start->x2" (identifier) "x2" (>=) ">=" (field_expression) "sp_start->x2" (identifier) "sp_start" (->) "->" (field_identifier) "x2" ()) ")" (compound_statement) "{\n /* it starts after the start */\n if (x1 > sp_start->x1)\n {\n sp_start->x1 = x1;\n return;\n }\n /* remove it all */\n else\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n return;\n }\n return;\n }" ({) "{" (comment) "/* it starts after the start */" (if_statement) "if (x1 > sp_start->x1)\n {\n sp_start->x1 = x1;\n return;\n }\n /* remove it all */\n else\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n return;\n }" (if) "if" (parenthesized_expression) "(x1 > sp_start->x1)" (() "(" (binary_expression) "x1 > sp_start->x1" (identifier) "x1" (>) ">" (field_expression) "sp_start->x1" (identifier) "sp_start" (->) "->" (field_identifier) "x1" ()) ")" (compound_statement) "{\n sp_start->x1 = x1;\n return;\n }" ({) "{" (expression_statement) "sp_start->x1 = x1;" (assignment_expression) "sp_start->x1 = x1" (field_expression) "sp_start->x1" (identifier) "sp_start" (->) "->" (field_identifier) "x1" (=) "=" (identifier) "x1" (;) ";" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (comment) "/* remove it all */" (else_clause) "else\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n return;\n }" (else) "else" (compound_statement) "{\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n return;\n }" ({) "{" (expression_statement) "rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);" (assignment_expression) "rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start)" (subscript_expression) "rb->spans[y]" (field_expression) "rb->spans" (identifier) "rb" (->) "->" (field_identifier) "spans" ([) "[" (identifier) "y" (]) "]" (=) "=" (call_expression) "eina_inlist_remove(rb->spans[y], sp_start)" (identifier) "eina_inlist_remove" (argument_list) "(rb->spans[y], sp_start)" (() "(" (subscript_expression) "rb->spans[y]" (field_expression) "rb->spans" (identifier) "rb" (->) "->" (field_identifier) "spans" ([) "[" (identifier) "y" (]) "]" (,) "," (identifier) "sp_start" ()) ")" (;) ";" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (comment) "/* this breaks the span into 2 */" (else_clause) "else\n {\n span2 = calloc(1, sizeof(Regionspan));\n span2->x1 = sp_start->x1;\n span2->x2 = x1 - 1;\n rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);\n sp_start->x1 = x2 + 1;\n return;\n }" (else) "else" (compound_statement) "{\n span2 = calloc(1, sizeof(Regionspan));\n span2->x1 = sp_start->x1;\n span2->x2 = x1 - 1;\n rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);\n sp_start->x1 = x2 + 1;\n return;\n }" ({) "{" (expression_statement) "span2 = calloc(1, sizeof(Regionspan));" (assignment_expression) "span2 = calloc(1, sizeof(Regionspan))" (identifier) "span2" (=) "=" (call_expression) "calloc(1, sizeof(Regionspan))" (identifier) "calloc" (argument_list) "(1, sizeof(Regionspan))" (() "(" (number_literal) "1" (,) "," (sizeof_expression) "sizeof(Regionspan)" (sizeof) "sizeof" (parenthesized_expression) "(Regionspan)" (() "(" (identifier) "Regionspan" ()) ")" ()) ")" (;) ";" (expression_statement) "span2->x1 = sp_start->x1;" (assignment_expression) "span2->x1 = sp_start->x1" (field_expression) "span2->x1" (identifier) "span2" (->) "->" (field_identifier) "x1" (=) "=" (field_expression) "sp_start->x1" (identifier) "sp_start" (->) "->" (field_identifier) "x1" (;) ";" (expression_statement) "span2->x2 = x1 - 1;" (assignment_expression) "span2->x2 = x1 - 1" (field_expression) "span2->x2" (identifier) "span2" (->) "->" (field_identifier) "x2" (=) "=" (binary_expression) "x1 - 1" (identifier) "x1" (-) "-" (number_literal) "1" (;) ";" (expression_statement) "rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);" (assignment_expression) "rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start)" (subscript_expression) "rb->spans[y]" (field_expression) "rb->spans" (identifier) "rb" (->) "->" (field_identifier) "spans" ([) "[" (identifier) "y" (]) "]" (=) "=" (call_expression) "eina_inlist_prepend_relative(rb->spans[y], span2, sp_start)" (identifier) "eina_inlist_prepend_relative" (argument_list) "(rb->spans[y], span2, sp_start)" (() "(" (subscript_expression) "rb->spans[y]" (field_expression) "rb->spans" (identifier) "rb" (->) "->" (field_identifier) "spans" ([) "[" (identifier) "y" (]) "]" (,) "," (identifier) "span2" (,) "," (identifier) "sp_start" ()) ")" (;) ";" (expression_statement) "sp_start->x1 = x2 + 1;" (assignment_expression) "sp_start->x1 = x2 + 1" (field_expression) "sp_start->x1" (identifier) "sp_start" (->) "->" (field_identifier) "x1" (=) "=" (binary_expression) "x2 + 1" (identifier) "x2" (+) "+" (number_literal) "1" (;) ";" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (}) "}" (else_clause) "else\n {\n Eina_Inlist *l;\n\n /* remove all nodes after sp_start and before_sp_stop because\n * the new */\n for (l = (EINA_INLIST_GET(sp_start))->next; l != EINA_INLIST_GET(sp_stop);)\n {\n span = (Regionspan *)l;\n l = l->next;\n rb->spans[y] = eina_inlist_remove(rb->spans[y], span);\n free(span);\n }\n /* all of the start span is cut out */\n if (x1 <= sp_start->x1)\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n free(sp_start);\n }\n /* chup it off at the new span start */\n else\n sp_start->x2 = x1 - 1;\n /* all of the end span is cut out */\n if (x2 >= sp_stop->x2)\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_stop);\n free(sp_stop);\n }\n /* chop it up at the end */\n else\n sp_stop->x1 = x2 + 1;\n return;\n }" (else) "else" (compound_statement) "{\n Eina_Inlist *l;\n\n /* remove all nodes after sp_start and before_sp_stop because\n * the new */\n for (l = (EINA_INLIST_GET(sp_start))->next; l != EINA_INLIST_GET(sp_stop);)\n {\n span = (Regionspan *)l;\n l = l->next;\n rb->spans[y] = eina_inlist_remove(rb->spans[y], span);\n free(span);\n }\n /* all of the start span is cut out */\n if (x1 <= sp_start->x1)\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n free(sp_start);\n }\n /* chup it off at the new span start */\n else\n sp_start->x2 = x1 - 1;\n /* all of the end span is cut out */\n if (x2 >= sp_stop->x2)\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_stop);\n free(sp_stop);\n }\n /* chop it up at the end */\n else\n sp_stop->x1 = x2 + 1;\n return;\n }" ({) "{" (declaration) "Eina_Inlist *l;" (type_identifier) "Eina_Inlist" (pointer_declarator) "*l" (*) "*" (identifier) "l" (;) ";" (comment) "/* remove all nodes after sp_start and before_sp_stop because\n * the new */" (for_statement) "for (l = (EINA_INLIST_GET(sp_start))->next; l != EINA_INLIST_GET(sp_stop);)\n {\n span = (Regionspan *)l;\n l = l->next;\n rb->spans[y] = eina_inlist_remove(rb->spans[y], span);\n free(span);\n }" (for) "for" (() "(" (assignment_expression) "l = (EINA_INLIST_GET(sp_start))->next" (identifier) "l" (=) "=" (field_expression) "(EINA_INLIST_GET(sp_start))->next" (parenthesized_expression) "(EINA_INLIST_GET(sp_start))" (() "(" (call_expression) "EINA_INLIST_GET(sp_start)" (identifier) "EINA_INLIST_GET" (argument_list) "(sp_start)" (() "(" (identifier) "sp_start" ()) ")" ()) ")" (->) "->" (field_identifier) "next" (;) ";" (binary_expression) "l != EINA_INLIST_GET(sp_stop)" (identifier) "l" (!=) "!=" (call_expression) "EINA_INLIST_GET(sp_stop)" (identifier) "EINA_INLIST_GET" (argument_list) "(sp_stop)" (() "(" (identifier) "sp_stop" ()) ")" (;) ";" ()) ")" (compound_statement) "{\n span = (Regionspan *)l;\n l = l->next;\n rb->spans[y] = eina_inlist_remove(rb->spans[y], span);\n free(span);\n }" ({) "{" (expression_statement) "span = (Regionspan *)l;" (assignment_expression) "span = (Regionspan *)l" (identifier) "span" (=) "=" (cast_expression) "(Regionspan *)l" (() "(" (type_descriptor) "Regionspan *" (type_identifier) "Regionspan" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "l" (;) ";" (expression_statement) "l = l->next;" (assignment_expression) "l = l->next" (identifier) "l" (=) "=" (field_expression) "l->next" (identifier) "l" (->) "->" (field_identifier) "next" (;) ";" (expression_statement) "rb->spans[y] = eina_inlist_remove(rb->spans[y], span);" (assignment_expression) "rb->spans[y] = eina_inlist_remove(rb->spans[y], span)" (subscript_expression) "rb->spans[y]" (field_expression) "rb->spans" (identifier) "rb" (->) "->" (field_identifier) "spans" ([) "[" (identifier) "y" (]) "]" (=) "=" (call_expression) "eina_inlist_remove(rb->spans[y], span)" (identifier) "eina_inlist_remove" (argument_list) "(rb->spans[y], span)" (() "(" (subscript_expression) "rb->spans[y]" (field_expression) "rb->spans" (identifier) "rb" (->) "->" (field_identifier) "spans" ([) "[" (identifier) "y" (]) "]" (,) "," (identifier) "span" ()) ")" (;) ";" (expression_statement) "free(span);" (call_expression) "free(span)" (identifier) "free" (argument_list) "(span)" (() "(" (identifier) "span" ()) ")" (;) ";" (}) "}" (comment) "/* all of the start span is cut out */" (if_statement) "if (x1 <= sp_start->x1)\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n free(sp_start);\n }\n /* chup it off at the new span start */\n else\n sp_start->x2 = x1 - 1;" (if) "if" (parenthesized_expression) "(x1 <= sp_start->x1)" (() "(" (binary_expression) "x1 <= sp_start->x1" (identifier) "x1" (<=) "<=" (field_expression) "sp_start->x1" (identifier) "sp_start" (->) "->" (field_identifier) "x1" ()) ")" (compound_statement) "{\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n free(sp_start);\n }" ({) "{" (expression_statement) "rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);" (assignment_expression) "rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start)" (subscript_expression) "rb->spans[y]" (field_expression) "rb->spans" (identifier) "rb" (->) "->" (field_identifier) "spans" ([) "[" (identifier) "y" (]) "]" (=) "=" (call_expression) "eina_inlist_remove(rb->spans[y], sp_start)" (identifier) "eina_inlist_remove" (argument_list) "(rb->spans[y], sp_start)" (() "(" (subscript_expression) "rb->spans[y]" (field_expression) "rb->spans" (identifier) "rb" (->) "->" (field_identifier) "spans" ([) "[" (identifier) "y" (]) "]" (,) "," (identifier) "sp_start" ()) ")" (;) ";" (expression_statement) "free(sp_start);" (call_expression) "free(sp_start)" (identifier) "free" (argument_list) "(sp_start)" (() "(" (identifier) "sp_start" ()) ")" (;) ";" (}) "}" (comment) "/* chup it off at the new span start */" (else_clause) "else\n sp_start->x2 = x1 - 1;" (else) "else" (expression_statement) "sp_start->x2 = x1 - 1;" (assignment_expression) "sp_start->x2 = x1 - 1" (field_expression) "sp_start->x2" (identifier) "sp_start" (->) "->" (field_identifier) "x2" (=) "=" (binary_expression) "x1 - 1" (identifier) "x1" (-) "-" (number_literal) "1" (;) ";" (comment) "/* all of the end span is cut out */" (if_statement) "if (x2 >= sp_stop->x2)\n {\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_stop);\n free(sp_stop);\n }\n /* chop it up at the end */\n else\n sp_stop->x1 = x2 + 1;" (if) "if" (parenthesized_expression) "(x2 >= sp_stop->x2)" (() "(" (binary_expression) "x2 >= sp_stop->x2" (identifier) "x2" (>=) ">=" (field_expression) "sp_stop->x2" (identifier) "sp_stop" (->) "->" (field_identifier) "x2" ()) ")" (compound_statement) "{\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_stop);\n free(sp_stop);\n }" ({) "{" (expression_statement) "rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_stop);" (assignment_expression) "rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_stop)" (subscript_expression) "rb->spans[y]" (field_expression) "rb->spans" (identifier) "rb" (->) "->" (field_identifier) "spans" ([) "[" (identifier) "y" (]) "]" (=) "=" (call_expression) "eina_inlist_remove(rb->spans[y], sp_stop)" (identifier) "eina_inlist_remove" (argument_list) "(rb->spans[y], sp_stop)" (() "(" (subscript_expression) "rb->spans[y]" (field_expression) "rb->spans" (identifier) "rb" (->) "->" (field_identifier) "spans" ([) "[" (identifier) "y" (]) "]" (,) "," (identifier) "sp_stop" ()) ")" (;) ";" (expression_statement) "free(sp_stop);" (call_expression) "free(sp_stop)" (identifier) "free" (argument_list) "(sp_stop)" (() "(" (identifier) "sp_stop" ()) ")" (;) ";" (}) "}" (comment) "/* chop it up at the end */" (else_clause) "else\n sp_stop->x1 = x2 + 1;" (else) "else" (expression_statement) "sp_stop->x1 = x2 + 1;" (assignment_expression) "sp_stop->x1 = x2 + 1" (field_expression) "sp_stop->x1" (identifier) "sp_stop" (->) "->" (field_identifier) "x1" (=) "=" (binary_expression) "x2 + 1" (identifier) "x2" (+) "+" (number_literal) "1" (;) ";" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (}) "}" (}) "}" (function_definition) "Tilebuf_Rect *\nevas_common_regionbuf_rects_get(Regionbuf *rb)\n{\n Tilebuf_Rect *rects = NULL, *r;\n int y;\n\n /* FIXME: take spans, make rects */\n for (y = 0; y < rb->h; y++)\n {\n Regionspan *sp_start;\n Eina_Inlist *l, *ll;\n\n for (l = EINA_INLIST_GET(rb->spans[y]); l;)\n {\n Regionspan *span;\n int yy;\n\n sp_start = (Regionspan *)l;\n l = l->next;\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n for (yy = y + 1; yy < rb->h; yy++)\n {\n int match = 0;\n\n for (ll = EINA_INLIST_GET(rb->spans[yy]); ll;)\n {\n span = (Regionspan *)ll;\n ll = ll->next;\n if (span->x1 == sp_start->x1)\n {\n if ((span->x1 != sp_start->x1) ||\n (span->x2 != sp_start->x2))\n {\n goto coallate;\n }\n match = 1;\n rb->spans[yy] = eina_inlist_remove(rb->spans[yy], span);\n free(span);\n }\n }\n if (!match) goto coallate;\n }\n coallate:\n r = calloc(1, sizeof(Tilebuf_Rect));\n r->x = sp_start->x1;\n r->y = y;\n r->w = sp_start->x2 - sp_start->x1 + 1;\n r->h = yy - y;\n rects = eina_inlist_append(rects, r);\n free(sp_start);\n }\n }\n evas_common_regionbuf_clear(rb);\n return rects;\n}" (type_identifier) "Tilebuf_Rect" (pointer_declarator) "*\nevas_common_regionbuf_rects_get(Regionbuf *rb)" (*) "*" (function_declarator) "evas_common_regionbuf_rects_get(Regionbuf *rb)" (identifier) "evas_common_regionbuf_rects_get" (parameter_list) "(Regionbuf *rb)" (() "(" (parameter_declaration) "Regionbuf *rb" (type_identifier) "Regionbuf" (pointer_declarator) "*rb" (*) "*" (identifier) "rb" ()) ")" (compound_statement) "{\n Tilebuf_Rect *rects = NULL, *r;\n int y;\n\n /* FIXME: take spans, make rects */\n for (y = 0; y < rb->h; y++)\n {\n Regionspan *sp_start;\n Eina_Inlist *l, *ll;\n\n for (l = EINA_INLIST_GET(rb->spans[y]); l;)\n {\n Regionspan *span;\n int yy;\n\n sp_start = (Regionspan *)l;\n l = l->next;\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n for (yy = y + 1; yy < rb->h; yy++)\n {\n int match = 0;\n\n for (ll = EINA_INLIST_GET(rb->spans[yy]); ll;)\n {\n span = (Regionspan *)ll;\n ll = ll->next;\n if (span->x1 == sp_start->x1)\n {\n if ((span->x1 != sp_start->x1) ||\n (span->x2 != sp_start->x2))\n {\n goto coallate;\n }\n match = 1;\n rb->spans[yy] = eina_inlist_remove(rb->spans[yy], span);\n free(span);\n }\n }\n if (!match) goto coallate;\n }\n coallate:\n r = calloc(1, sizeof(Tilebuf_Rect));\n r->x = sp_start->x1;\n r->y = y;\n r->w = sp_start->x2 - sp_start->x1 + 1;\n r->h = yy - y;\n rects = eina_inlist_append(rects, r);\n free(sp_start);\n }\n }\n evas_common_regionbuf_clear(rb);\n return rects;\n}" ({) "{" (declaration) "Tilebuf_Rect *rects = NULL, *r;" (type_identifier) "Tilebuf_Rect" (init_declarator) "*rects = NULL" (pointer_declarator) "*rects" (*) "*" (identifier) "rects" (=) "=" (null) "NULL" (NULL) "NULL" (,) "," (pointer_declarator) "*r" (*) "*" (identifier) "r" (;) ";" (declaration) "int y;" (primitive_type) "int" (identifier) "y" (;) ";" (comment) "/* FIXME: take spans, make rects */" (for_statement) "for (y = 0; y < rb->h; y++)\n {\n Regionspan *sp_start;\n Eina_Inlist *l, *ll;\n\n for (l = EINA_INLIST_GET(rb->spans[y]); l;)\n {\n Regionspan *span;\n int yy;\n\n sp_start = (Regionspan *)l;\n l = l->next;\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n for (yy = y + 1; yy < rb->h; yy++)\n {\n int match = 0;\n\n for (ll = EINA_INLIST_GET(rb->spans[yy]); ll;)\n {\n span = (Regionspan *)ll;\n ll = ll->next;\n if (span->x1 == sp_start->x1)\n {\n if ((span->x1 != sp_start->x1) ||\n (span->x2 != sp_start->x2))\n {\n goto coallate;\n }\n match = 1;\n rb->spans[yy] = eina_inlist_remove(rb->spans[yy], span);\n free(span);\n }\n }\n if (!match) goto coallate;\n }\n coallate:\n r = calloc(1, sizeof(Tilebuf_Rect));\n r->x = sp_start->x1;\n r->y = y;\n r->w = sp_start->x2 - sp_start->x1 + 1;\n r->h = yy - y;\n rects = eina_inlist_append(rects, r);\n free(sp_start);\n }\n }" (for) "for" (() "(" (assignment_expression) "y = 0" (identifier) "y" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "y < rb->h" (identifier) "y" (<) "<" (field_expression) "rb->h" (identifier) "rb" (->) "->" (field_identifier) "h" (;) ";" (update_expression) "y++" (identifier) "y" (++) "++" ()) ")" (compound_statement) "{\n Regionspan *sp_start;\n Eina_Inlist *l, *ll;\n\n for (l = EINA_INLIST_GET(rb->spans[y]); l;)\n {\n Regionspan *span;\n int yy;\n\n sp_start = (Regionspan *)l;\n l = l->next;\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n for (yy = y + 1; yy < rb->h; yy++)\n {\n int match = 0;\n\n for (ll = EINA_INLIST_GET(rb->spans[yy]); ll;)\n {\n span = (Regionspan *)ll;\n ll = ll->next;\n if (span->x1 == sp_start->x1)\n {\n if ((span->x1 != sp_start->x1) ||\n (span->x2 != sp_start->x2))\n {\n goto coallate;\n }\n match = 1;\n rb->spans[yy] = eina_inlist_remove(rb->spans[yy], span);\n free(span);\n }\n }\n if (!match) goto coallate;\n }\n coallate:\n r = calloc(1, sizeof(Tilebuf_Rect));\n r->x = sp_start->x1;\n r->y = y;\n r->w = sp_start->x2 - sp_start->x1 + 1;\n r->h = yy - y;\n rects = eina_inlist_append(rects, r);\n free(sp_start);\n }\n }" ({) "{" (declaration) "Regionspan *sp_start;" (type_identifier) "Regionspan" (pointer_declarator) "*sp_start" (*) "*" (identifier) "sp_start" (;) ";" (declaration) "Eina_Inlist *l, *ll;" (type_identifier) "Eina_Inlist" (pointer_declarator) "*l" (*) "*" (identifier) "l" (,) "," (pointer_declarator) "*ll" (*) "*" (identifier) "ll" (;) ";" (for_statement) "for (l = EINA_INLIST_GET(rb->spans[y]); l;)\n {\n Regionspan *span;\n int yy;\n\n sp_start = (Regionspan *)l;\n l = l->next;\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n for (yy = y + 1; yy < rb->h; yy++)\n {\n int match = 0;\n\n for (ll = EINA_INLIST_GET(rb->spans[yy]); ll;)\n {\n span = (Regionspan *)ll;\n ll = ll->next;\n if (span->x1 == sp_start->x1)\n {\n if ((span->x1 != sp_start->x1) ||\n (span->x2 != sp_start->x2))\n {\n goto coallate;\n }\n match = 1;\n rb->spans[yy] = eina_inlist_remove(rb->spans[yy], span);\n free(span);\n }\n }\n if (!match) goto coallate;\n }\n coallate:\n r = calloc(1, sizeof(Tilebuf_Rect));\n r->x = sp_start->x1;\n r->y = y;\n r->w = sp_start->x2 - sp_start->x1 + 1;\n r->h = yy - y;\n rects = eina_inlist_append(rects, r);\n free(sp_start);\n }" (for) "for" (() "(" (assignment_expression) "l = EINA_INLIST_GET(rb->spans[y])" (identifier) "l" (=) "=" (call_expression) "EINA_INLIST_GET(rb->spans[y])" (identifier) "EINA_INLIST_GET" (argument_list) "(rb->spans[y])" (() "(" (subscript_expression) "rb->spans[y]" (field_expression) "rb->spans" (identifier) "rb" (->) "->" (field_identifier) "spans" ([) "[" (identifier) "y" (]) "]" ()) ")" (;) ";" (identifier) "l" (;) ";" ()) ")" (compound_statement) "{\n Regionspan *span;\n int yy;\n\n sp_start = (Regionspan *)l;\n l = l->next;\n rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n for (yy = y + 1; yy < rb->h; yy++)\n {\n int match = 0;\n\n for (ll = EINA_INLIST_GET(rb->spans[yy]); ll;)\n {\n span = (Regionspan *)ll;\n ll = ll->next;\n if (span->x1 == sp_start->x1)\n {\n if ((span->x1 != sp_start->x1) ||\n (span->x2 != sp_start->x2))\n {\n goto coallate;\n }\n match = 1;\n rb->spans[yy] = eina_inlist_remove(rb->spans[yy], span);\n free(span);\n }\n }\n if (!match) goto coallate;\n }\n coallate:\n r = calloc(1, sizeof(Tilebuf_Rect));\n r->x = sp_start->x1;\n r->y = y;\n r->w = sp_start->x2 - sp_start->x1 + 1;\n r->h = yy - y;\n rects = eina_inlist_append(rects, r);\n free(sp_start);\n }" ({) "{" (declaration) "Regionspan *span;" (type_identifier) "Regionspan" (pointer_declarator) "*span" (*) "*" (identifier) "span" (;) ";" (declaration) "int yy;" (primitive_type) "int" (identifier) "yy" (;) ";" (expression_statement) "sp_start = (Regionspan *)l;" (assignment_expression) "sp_start = (Regionspan *)l" (identifier) "sp_start" (=) "=" (cast_expression) "(Regionspan *)l" (() "(" (type_descriptor) "Regionspan *" (type_identifier) "Regionspan" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "l" (;) ";" (expression_statement) "l = l->next;" (assignment_expression) "l = l->next" (identifier) "l" (=) "=" (field_expression) "l->next" (identifier) "l" (->) "->" (field_identifier) "next" (;) ";" (expression_statement) "rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);" (assignment_expression) "rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start)" (subscript_expression) "rb->spans[y]" (field_expression) "rb->spans" (identifier) "rb" (->) "->" (field_identifier) "spans" ([) "[" (identifier) "y" (]) "]" (=) "=" (call_expression) "eina_inlist_remove(rb->spans[y], sp_start)" (identifier) "eina_inlist_remove" (argument_list) "(rb->spans[y], sp_start)" (() "(" (subscript_expression) "rb->spans[y]" (field_expression) "rb->spans" (identifier) "rb" (->) "->" (field_identifier) "spans" ([) "[" (identifier) "y" (]) "]" (,) "," (identifier) "sp_start" ()) ")" (;) ";" (for_statement) "for (yy = y + 1; yy < rb->h; yy++)\n {\n int match = 0;\n\n for (ll = EINA_INLIST_GET(rb->spans[yy]); ll;)\n {\n span = (Regionspan *)ll;\n ll = ll->next;\n if (span->x1 == sp_start->x1)\n {\n if ((span->x1 != sp_start->x1) ||\n (span->x2 != sp_start->x2))\n {\n goto coallate;\n }\n match = 1;\n rb->spans[yy] = eina_inlist_remove(rb->spans[yy], span);\n free(span);\n }\n }\n if (!match) goto coallate;\n }" (for) "for" (() "(" (assignment_expression) "yy = y + 1" (identifier) "yy" (=) "=" (binary_expression) "y + 1" (identifier) "y" (+) "+" (number_literal) "1" (;) ";" (binary_expression) "yy < rb->h" (identifier) "yy" (<) "<" (field_expression) "rb->h" (identifier) "rb" (->) "->" (field_identifier) "h" (;) ";" (update_expression) "yy++" (identifier) "yy" (++) "++" ()) ")" (compound_statement) "{\n int match = 0;\n\n for (ll = EINA_INLIST_GET(rb->spans[yy]); ll;)\n {\n span = (Regionspan *)ll;\n ll = ll->next;\n if (span->x1 == sp_start->x1)\n {\n if ((span->x1 != sp_start->x1) ||\n (span->x2 != sp_start->x2))\n {\n goto coallate;\n }\n match = 1;\n rb->spans[yy] = eina_inlist_remove(rb->spans[yy], span);\n free(span);\n }\n }\n if (!match) goto coallate;\n }" ({) "{" (declaration) "int match = 0;" (primitive_type) "int" (init_declarator) "match = 0" (identifier) "match" (=) "=" (number_literal) "0" (;) ";" (for_statement) "for (ll = EINA_INLIST_GET(rb->spans[yy]); ll;)\n {\n span = (Regionspan *)ll;\n ll = ll->next;\n if (span->x1 == sp_start->x1)\n {\n if ((span->x1 != sp_start->x1) ||\n (span->x2 != sp_start->x2))\n {\n goto coallate;\n }\n match = 1;\n rb->spans[yy] = eina_inlist_remove(rb->spans[yy], span);\n free(span);\n }\n }" (for) "for" (() "(" (assignment_expression) "ll = EINA_INLIST_GET(rb->spans[yy])" (identifier) "ll" (=) "=" (call_expression) "EINA_INLIST_GET(rb->spans[yy])" (identifier) "EINA_INLIST_GET" (argument_list) "(rb->spans[yy])" (() "(" (subscript_expression) "rb->spans[yy]" (field_expression) "rb->spans" (identifier) "rb" (->) "->" (field_identifier) "spans" ([) "[" (identifier) "yy" (]) "]" ()) ")" (;) ";" (identifier) "ll" (;) ";" ()) ")" (compound_statement) "{\n span = (Regionspan *)ll;\n ll = ll->next;\n if (span->x1 == sp_start->x1)\n {\n if ((span->x1 != sp_start->x1) ||\n (span->x2 != sp_start->x2))\n {\n goto coallate;\n }\n match = 1;\n rb->spans[yy] = eina_inlist_remove(rb->spans[yy], span);\n free(span);\n }\n }" ({) "{" (expression_statement) "span = (Regionspan *)ll;" (assignment_expression) "span = (Regionspan *)ll" (identifier) "span" (=) "=" (cast_expression) "(Regionspan *)ll" (() "(" (type_descriptor) "Regionspan *" (type_identifier) "Regionspan" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "ll" (;) ";" (expression_statement) "ll = ll->next;" (assignment_expression) "ll = ll->next" (identifier) "ll" (=) "=" (field_expression) "ll->next" (identifier) "ll" (->) "->" (field_identifier) "next" (;) ";" (if_statement) "if (span->x1 == sp_start->x1)\n {\n if ((span->x1 != sp_start->x1) ||\n (span->x2 != sp_start->x2))\n {\n goto coallate;\n }\n match = 1;\n rb->spans[yy] = eina_inlist_remove(rb->spans[yy], span);\n free(span);\n }" (if) "if" (parenthesized_expression) "(span->x1 == sp_start->x1)" (() "(" (binary_expression) "span->x1 == sp_start->x1" (field_expression) "span->x1" (identifier) "span" (->) "->" (field_identifier) "x1" (==) "==" (field_expression) "sp_start->x1" (identifier) "sp_start" (->) "->" (field_identifier) "x1" ()) ")" (compound_statement) "{\n if ((span->x1 != sp_start->x1) ||\n (span->x2 != sp_start->x2))\n {\n goto coallate;\n }\n match = 1;\n rb->spans[yy] = eina_inlist_remove(rb->spans[yy], span);\n free(span);\n }" ({) "{" (if_statement) "if ((span->x1 != sp_start->x1) ||\n (span->x2 != sp_start->x2))\n {\n goto coallate;\n }" (if) "if" (parenthesized_expression) "((span->x1 != sp_start->x1) ||\n (span->x2 != sp_start->x2))" (() "(" (binary_expression) "(span->x1 != sp_start->x1) ||\n (span->x2 != sp_start->x2)" (parenthesized_expression) "(span->x1 != sp_start->x1)" (() "(" (binary_expression) "span->x1 != sp_start->x1" (field_expression) "span->x1" (identifier) "span" (->) "->" (field_identifier) "x1" (!=) "!=" (field_expression) "sp_start->x1" (identifier) "sp_start" (->) "->" (field_identifier) "x1" ()) ")" (||) "||" (parenthesized_expression) "(span->x2 != sp_start->x2)" (() "(" (binary_expression) "span->x2 != sp_start->x2" (field_expression) "span->x2" (identifier) "span" (->) "->" (field_identifier) "x2" (!=) "!=" (field_expression) "sp_start->x2" (identifier) "sp_start" (->) "->" (field_identifier) "x2" ()) ")" ()) ")" (compound_statement) "{\n goto coallate;\n }" ({) "{" (goto_statement) "goto coallate;" (goto) "goto" (statement_identifier) "coallate" (;) ";" (}) "}" (expression_statement) "match = 1;" (assignment_expression) "match = 1" (identifier) "match" (=) "=" (number_literal) "1" (;) ";" (expression_statement) "rb->spans[yy] = eina_inlist_remove(rb->spans[yy], span);" (assignment_expression) "rb->spans[yy] = eina_inlist_remove(rb->spans[yy], span)" (subscript_expression) "rb->spans[yy]" (field_expression) "rb->spans" (identifier) "rb" (->) "->" (field_identifier) "spans" ([) "[" (identifier) "yy" (]) "]" (=) "=" (call_expression) "eina_inlist_remove(rb->spans[yy], span)" (identifier) "eina_inlist_remove" (argument_list) "(rb->spans[yy], span)" (() "(" (subscript_expression) "rb->spans[yy]" (field_expression) "rb->spans" (identifier) "rb" (->) "->" (field_identifier) "spans" ([) "[" (identifier) "yy" (]) "]" (,) "," (identifier) "span" ()) ")" (;) ";" (expression_statement) "free(span);" (call_expression) "free(span)" (identifier) "free" (argument_list) "(span)" (() "(" (identifier) "span" ()) ")" (;) ";" (}) "}" (}) "}" (if_statement) "if (!match) goto coallate;" (if) "if" (parenthesized_expression) "(!match)" (() "(" (unary_expression) "!match" (!) "!" (identifier) "match" ()) ")" (goto_statement) "goto coallate;" (goto) "goto" (statement_identifier) "coallate" (;) ";" (}) "}" (labeled_statement) "coallate:\n r = calloc(1, sizeof(Tilebuf_Rect));" (statement_identifier) "coallate" (:) ":" (expression_statement) "r = calloc(1, sizeof(Tilebuf_Rect));" (assignment_expression) "r = calloc(1, sizeof(Tilebuf_Rect))" (identifier) "r" (=) "=" (call_expression) "calloc(1, sizeof(Tilebuf_Rect))" (identifier) "calloc" (argument_list) "(1, sizeof(Tilebuf_Rect))" (() "(" (number_literal) "1" (,) "," (sizeof_expression) "sizeof(Tilebuf_Rect)" (sizeof) "sizeof" (parenthesized_expression) "(Tilebuf_Rect)" (() "(" (identifier) "Tilebuf_Rect" ()) ")" ()) ")" (;) ";" (expression_statement) "r->x = sp_start->x1;" (assignment_expression) "r->x = sp_start->x1" (field_expression) "r->x" (identifier) "r" (->) "->" (field_identifier) "x" (=) "=" (field_expression) "sp_start->x1" (identifier) "sp_start" (->) "->" (field_identifier) "x1" (;) ";" (expression_statement) "r->y = y;" (assignment_expression) "r->y = y" (field_expression) "r->y" (identifier) "r" (->) "->" (field_identifier) "y" (=) "=" (identifier) "y" (;) ";" (expression_statement) "r->w = sp_start->x2 - sp_start->x1 + 1;" (assignment_expression) "r->w = sp_start->x2 - sp_start->x1 + 1" (field_expression) "r->w" (identifier) "r" (->) "->" (field_identifier) "w" (=) "=" (binary_expression) "sp_start->x2 - sp_start->x1 + 1" (binary_expression) "sp_start->x2 - sp_start->x1" (field_expression) "sp_start->x2" (identifier) "sp_start" (->) "->" (field_identifier) "x2" (-) "-" (field_expression) "sp_start->x1" (identifier) "sp_start" (->) "->" (field_identifier) "x1" (+) "+" (number_literal) "1" (;) ";" (expression_statement) "r->h = yy - y;" (assignment_expression) "r->h = yy - y" (field_expression) "r->h" (identifier) "r" (->) "->" (field_identifier) "h" (=) "=" (binary_expression) "yy - y" (identifier) "yy" (-) "-" (identifier) "y" (;) ";" (expression_statement) "rects = eina_inlist_append(rects, r);" (assignment_expression) "rects = eina_inlist_append(rects, r)" (identifier) "rects" (=) "=" (call_expression) "eina_inlist_append(rects, r)" (identifier) "eina_inlist_append" (argument_list) "(rects, r)" (() "(" (identifier) "rects" (,) "," (identifier) "r" ()) ")" (;) ";" (expression_statement) "free(sp_start);" (call_expression) "free(sp_start)" (identifier) "free" (argument_list) "(sp_start)" (() "(" (identifier) "sp_start" ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) "evas_common_regionbuf_clear(rb);" (call_expression) "evas_common_regionbuf_clear(rb)" (identifier) "evas_common_regionbuf_clear" (argument_list) "(rb)" (() "(" (identifier) "rb" ()) ")" (;) ";" (return_statement) "return rects;" (return) "return" (identifier) "rects" (;) ";" (}) "}" (#endif) "#endif"
2,409
0
{"language": "c", "success": true, "metadata": {"lines": 340, "avg_line_length": 24.2, "nodes": 1437, "errors": 0, "source_hash": "bc6cee90d37283739519d25bdd7dcd2aa05761c826d507de673d6dca8c8dabd3", "categorized_nodes": 1087}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"evas_common.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": "\"evas_common.h\"", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 24}}, {"id": 3, "type": "preproc_if", "text": "#if 0\nRegionbuf *\nevas_common_regionbuf_new(int w, int h)\n{\n Regionbuf *rb;\n\n rb = calloc(1, sizeof(Regionbuf) + (h * sizeof(Regionspan)));\n if (!rb) return NULL;\n rb->spans = (Regionspan **)(rb + sizeof(Regionbuf));\n rb->w = w;\n rb->h = h;\n return rb;\n}\n\nvoid\nevas_common_regionbuf_free(Regionbuf *rb)\n{\n evas_common_regionbuf_clear(rb);\n free(rb);\n}\n\nvoid\nevas_common_regionbuf_clear(Regionbuf *rb)\n{\n int y;\n\n for (y = 0; y < rb->h; y++)\n {\n\twhile (rb->spans[y])\n\t {\n\t Regionspan *span;\n\n\t span = rb->spans[y];\n\t rb->spans[y] = eina_inlist_remove(rb->spans[y], rb->spans[y]);\n\t free(span);\n\t }\n }\n}\n\nvoid\nevas_common_regionbuf_span_add(Regionbuf *rb, int x1, int x2, int y)\n{\n Regionspan *span, *span2, *nspan, *sp_start, *sp_stop;\n\n /* abort if outside */\n if ((y < 0) ||\n (y >= rb->h) ||\n (x2 < 0) ||\n (x1 >= rb->w)) return;\n /* clip to horiz bounds */\n if (x1 < 0) x1 = 0;\n if (x2 < (rb->w - 1)) x2 = rb->w - 1;\n sp_start = NULL;\n sp_stop = NULL;\n EINA_INLIST_FOREACH(rb->spans[y], span)\n {\n\tnspan = (Regionspan *)(EINA_INLIST_GET(span))->next;\n\t/* we dont know what t do with the span yet */\n\tif (!sp_start)\n\t {\n\t /* if new span starts before or on this span or just after\n\t * with no gap */\n\t if (x1 <= (span->x2 + 1))\n\t sp_start = span;\n\t /* if there is no next span */\n\t if (!nspan)\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }\n\t /* if new span ends before the next span starts with a gap of\n\t * 1 pixel (or more) */\n\t else if (x2 < (nspan->x1 - 1))\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }\n\t }\n\t/* we already know it already starts before or in sp_start */\n\telse\n\t {\n\t /* there is no span after this one, so this has to be the stop */\n\t if (!nspan)\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }\n\t /* if new span ends before the next span starts with a gap of\n\t * 1 pixel (or more) */\n\t else if (x2 < (nspan->x1 - 1))\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }\n\t }\n }\n /* sp_start is where the new span starts in or before */\n /* sp_stop is where the new span stops in or after */\n if ((sp_start) && (sp_stop))\n {\n\t/* same start and stop */\n\tif (sp_start == sp_stop)\n\t {\n\t if (x2 < (sp_start->x1 - 1))\n\t {\n\t\t span2 = calloc(1, sizeof(Regionspan));\n\t\t span2->x1 = x1;\n\t\t span2->x2 = x2;\n\t\t rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);\n\t\t return;\n\t }\n\t if (x1 < sp_start->x1)\n\t sp_start->x1 = x1;\n\t if (x2 > sp_start->x2)\n\t sp_start->x2 = x2;\n\t return;\n\t }\n\telse\n\t {\n\t Eina_Inlist *l;\n\n\t /* remove all nodes after sp_start and before_sp_stop because\n\t * the new */\n\t for (l = (EINA_INLIST_GET(sp_start))->next; l != EINA_INLIST_GET(sp_stop);)\n\t {\n\t\t span = (Regionspan *)l;\n\t\t l = l->next;\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], span);\n\t\t free(span);\n\t }\n\t /* remove the end span */\n\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_stop);\n\t /* if the new span is before the start span - extend */\n\t if (x1 < sp_start->x1)\n\t sp_start->x1 = x1;\n\t /* if it goes beyond the stop span - extend stop span */\n\t if (x2 > sp_stop->x2)\n\t sp_stop->x2 = x2;\n\t /* extend start span to stop span */\n\t sp_start->x2 = sp_stop->x2;\n\t /* don't need stop span anymore */\n\t free(sp_stop);\n\t return;\n\t }\n }\n /* no start AND stop... just append */\n span2 = calloc(1, sizeof(Regionspan));\n span2->x1 = x1;\n span2->x2 = x2;\n rb->spans[y] = eina_inlist_append(rb->spans[y], span2);\n}\n\nvoid\nevas_common_regionbuf_span_del(Regionbuf *rb, int x1, int x2, int y)\n{\n /* FIXME: del span */\n Regionspan *span, *span2, *nspan, *sp_start, *sp_stop;\n\n /* abort if outside */\n if ((y < 0) ||\n (y >= rb->h) ||\n (x2 < 0) ||\n (x1 >= rb->w)) return;\n /* clip to horiz bounds */\n if (x1 < 0) x1 = 0;\n if (x2 < (rb->w - 1)) x2 = rb->w - 1;\n sp_start = NULL;\n sp_stop = NULL;\n EINA_INLIST_FOREACH(rb->spans[y], span)\n {\n\tnspan = (Regionspan *)(EINA_INLIST_GET(l))->next;\n\t/* we dont know what t do with the span yet */\n\tif (!sp_start)\n\t {\n\t /* if new span starts before or on this span or just after\n\t * with no gap */\n\t if (x1 <= (span->x2))\n\t sp_start = span;\n\t /* if there is no next span */\n\t if (!nspan)\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }\n\t /* if new span ends before the next span starts with a gap of\n\t * 1 pixel (or more) */\n\t else if (x2 < nspan->x1)\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }\n\t }\n\t/* we already know it already starts before or in sp_start */\n\telse\n\t {\n\t /* there is no span after this one, so this has to be the stop */\n\t if (!nspan)\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }\n\t /* if new span ends before the next span starts with a gap of\n\t * 1 pixel (or more) */\n\t else if (x2 < nspan->x1)\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }\n\t }\n }\n /* sp_start is where the new span starts in or before */\n /* sp_stop is where the new span stops in or after */\n if ((sp_start) && (sp_stop))\n {\n\t/* same start and stop */\n\tif (sp_start == sp_stop)\n\t {\n\t /* if it ends before this the span start starts... return */\n\t if (x2 < sp_start->x1)\n\t return;\n\t /* it starts on or before this span */\n\t else if (x1 <= sp_start->x1)\n\t {\n\t\t /* right edge is within the span */\n\t\t if (x2 < sp_start->x2)\n\t\t {\n\t\t sp_start->x2 = x2;\n\t\t return;\n\t\t }\n\t\t else\n\t\t {\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n\t\t return;\n\t\t }\n\t }\n\t /* it ends on or after the end of this span */\n\t else if (x2 >= sp_start->x2)\n\t {\n\t\t /* it starts after the start */\n\t\t if (x1 > sp_start->x1)\n\t\t {\n\t\t sp_start->x1 = x1;\n\t\t return;\n\t\t }\n\t\t /* remove it all */\n\t\t else\n\t\t {\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n\t\t return;\n\t\t }\n\t\t return;\n\t }\n\t /* this breaks the span into 2 */\n\t else\n\t {\n\t\t span2 = calloc(1, sizeof(Regionspan));\n\t\t span2->x1 = sp_start->x1;\n\t\t span2->x2 = x1 - 1;\n\t\t rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);\n\t\t sp_start->x1 = x2 + 1;\n\t\t return;\n\t }\n\t }\n\telse\n\t {\n\t Eina_Inlist *l;\n\n\t /* remove all nodes after sp_start and before_sp_stop because\n\t * the new */\n\t for (l = (EINA_INLIST_GET(sp_start))->next; l != EINA_INLIST_GET(sp_stop);)\n\t {\n\t\t span = (Regionspan *)l;\n\t\t l = l->next;\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], span);\n\t\t free(span);\n\t }\n\t /* all of the start span is cut out */\n\t if (x1 <= sp_start->x1)\n\t {\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n\t\t free(sp_start);\n\t }\n\t /* chup it off at the new span start */\n\t else\n\t sp_start->x2 = x1 - 1;\n\t /* all of the end span is cut out */\n\t if (x2 >= sp_stop->x2)\n\t {\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_stop);\n\t\t free(sp_stop);\n\t }\n\t /* chop it up at the end */\n\t else\n\t sp_stop->x1 = x2 + 1;\n\t return;\n\t }\n }\n}\n\nTilebuf_Rect *\nevas_common_regionbuf_rects_get(Regionbuf *rb)\n{\n Tilebuf_Rect *rects = NULL, *r;\n int y;\n\n /* FIXME: take spans, make rects */\n for (y = 0; y < rb->h; y++)\n {\n\tRegionspan *sp_start;\n\tEina_Inlist *l, *ll;\n\n\tfor (l = EINA_INLIST_GET(rb->spans[y]); l;)\n\t {\n\t Regionspan *span;\n\t int yy;\n\n\t sp_start = (Regionspan *)l;\n\t l = l->next;\n\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n\t for (yy = y + 1; yy < rb->h; yy++)\n\t {\n\t\t int match = 0;\n\n\t\t for (ll = EINA_INLIST_GET(rb->spans[yy]); ll;)\n\t\t {\n\t\t span = (Regionspan *)ll;\n\t\t ll = ll->next;\n\t\t if (span->x1 == sp_start->x1)\n\t\t\t {\n\t\t\t if ((span->x1 != sp_start->x1) ||\n\t\t\t\t(span->x2 != sp_start->x2))\n\t\t\t {\n\t\t\t\t goto coallate;\n\t\t\t }\n\t\t\t match = 1;\n\t\t\t rb->spans[yy] = eina_inlist_remove(rb->spans[yy], span);\n\t\t\t free(span);\n\t\t\t }\n\t\t }\n\t\t if (!match) goto coallate;\n\t }\n\t coallate:\n\t r = calloc(1, sizeof(Tilebuf_Rect));\n\t r->x = sp_start->x1;\n\t r->y = y;\n\t r->w = sp_start->x2 - sp_start->x1 + 1;\n\t r->h = yy - y;\n\t rects = eina_inlist_append(rects, r);\n\t free(sp_start);\n\t }\n }\n evas_common_regionbuf_clear(rb);\n return rects;\n}\n#endif", "parent": null, "children": [4, 5, 6, 7, 85, 103, 174, 639, 1143, 1436], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 356, "column": 6}}, {"id": 4, "type": "#if", "text": "#if", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 3}}, {"id": 5, "type": "number_literal", "text": "0", "parent": 3, "children": [], "start_point": {"row": 2, "column": 4}, "end_point": {"row": 2, "column": 5}}, {"id": 6, "type": "\n", "text": "\n", "parent": 3, "children": [], "start_point": {"row": 2, "column": 5}, "end_point": {"row": 3, "column": 0}}, {"id": 7, "type": "function_definition", "text": "Regionbuf *\nevas_common_regionbuf_new(int w, int h)\n{\n Regionbuf *rb;\n\n rb = calloc(1, sizeof(Regionbuf) + (h * sizeof(Regionspan)));\n if (!rb) return NULL;\n rb->spans = (Regionspan **)(rb + sizeof(Regionbuf));\n rb->w = w;\n rb->h = h;\n return rb;\n}", "parent": 3, "children": [8, 9], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 8, "type": "type_identifier", "text": "Regionbuf", "parent": 7, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 9}}, {"id": 9, "type": "pointer_declarator", "text": "*\nevas_common_regionbuf_new(int w, int h)", "parent": 7, "children": [10, 11], "start_point": {"row": 3, "column": 10}, "end_point": {"row": 4, "column": 39}}, {"id": 10, "type": "*", "text": "*", "parent": 9, "children": [], "start_point": {"row": 3, "column": 10}, "end_point": {"row": 3, "column": 11}}, {"id": 11, "type": "function_declarator", "text": "evas_common_regionbuf_new(int w, int h)", "parent": 9, "children": [12, 13], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 39}}, {"id": 12, "type": "identifier", "text": "evas_common_regionbuf_new", "parent": 11, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 25}}, {"id": 13, "type": "parameter_list", "text": "(int w, int h)", "parent": 11, "children": [14, 17], "start_point": {"row": 4, "column": 25}, "end_point": {"row": 4, "column": 39}}, {"id": 14, "type": "parameter_declaration", "text": "int w", "parent": 13, "children": [15, 16], "start_point": {"row": 4, "column": 26}, "end_point": {"row": 4, "column": 31}}, {"id": 15, "type": "primitive_type", "text": "int", "parent": 14, "children": [], "start_point": {"row": 4, "column": 26}, "end_point": {"row": 4, "column": 29}}, {"id": 16, "type": "identifier", "text": "w", "parent": 14, "children": [], "start_point": {"row": 4, "column": 30}, "end_point": {"row": 4, "column": 31}}, {"id": 17, "type": "parameter_declaration", "text": "int h", "parent": 13, "children": [18, 19], "start_point": {"row": 4, "column": 33}, "end_point": {"row": 4, "column": 38}}, {"id": 18, "type": "primitive_type", "text": "int", "parent": 17, "children": [], "start_point": {"row": 4, "column": 33}, "end_point": {"row": 4, "column": 36}}, {"id": 19, "type": "identifier", "text": "h", "parent": 17, "children": [], "start_point": {"row": 4, "column": 37}, "end_point": {"row": 4, "column": 38}}, {"id": 20, "type": "declaration", "text": "Regionbuf *rb;", "parent": 7, "children": [21, 22], "start_point": {"row": 6, "column": 3}, "end_point": {"row": 6, "column": 17}}, {"id": 21, "type": "type_identifier", "text": "Regionbuf", "parent": 20, "children": [], "start_point": {"row": 6, "column": 3}, "end_point": {"row": 6, "column": 12}}, {"id": 22, "type": "pointer_declarator", "text": "*rb", "parent": 20, "children": [23, 24], "start_point": {"row": 6, "column": 13}, "end_point": {"row": 6, "column": 16}}, {"id": 23, "type": "*", "text": "*", "parent": 22, "children": [], "start_point": {"row": 6, "column": 13}, "end_point": {"row": 6, "column": 14}}, {"id": 24, "type": "identifier", "text": "rb", "parent": 22, "children": [], "start_point": {"row": 6, "column": 14}, "end_point": {"row": 6, "column": 16}}, {"id": 25, "type": "assignment_expression", "text": "rb = calloc(1, sizeof(Regionbuf) + (h * sizeof(Regionspan)))", "parent": 7, "children": [26, 27, 28], "start_point": {"row": 8, "column": 3}, "end_point": {"row": 8, "column": 63}}, {"id": 26, "type": "identifier", "text": "rb", "parent": 25, "children": [], "start_point": {"row": 8, "column": 3}, "end_point": {"row": 8, "column": 5}}, {"id": 27, "type": "=", "text": "=", "parent": 25, "children": [], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 8, "column": 7}}, {"id": 28, "type": "call_expression", "text": "calloc(1, sizeof(Regionbuf) + (h * sizeof(Regionspan)))", "parent": 25, "children": [29, 30], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 63}}, {"id": 29, "type": "identifier", "text": "calloc", "parent": 28, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 14}}, {"id": 30, "type": "argument_list", "text": "(1, sizeof(Regionbuf) + (h * sizeof(Regionspan)))", "parent": 28, "children": [31, 32], "start_point": {"row": 8, "column": 14}, "end_point": {"row": 8, "column": 63}}, {"id": 31, "type": "number_literal", "text": "1", "parent": 30, "children": [], "start_point": {"row": 8, "column": 15}, "end_point": {"row": 8, "column": 16}}, {"id": 32, "type": "binary_expression", "text": "sizeof(Regionbuf) + (h * sizeof(Regionspan))", "parent": 30, "children": [33, 36, 37], "start_point": {"row": 8, "column": 18}, "end_point": {"row": 8, "column": 62}}, {"id": 33, "type": "sizeof_expression", "text": "sizeof(Regionbuf)", "parent": 32, "children": [34], "start_point": {"row": 8, "column": 18}, "end_point": {"row": 8, "column": 35}}, {"id": 34, "type": "parenthesized_expression", "text": "(Regionbuf)", "parent": 33, "children": [35], "start_point": {"row": 8, "column": 24}, "end_point": {"row": 8, "column": 35}}, {"id": 35, "type": "identifier", "text": "Regionbuf", "parent": 34, "children": [], "start_point": {"row": 8, "column": 25}, "end_point": {"row": 8, "column": 34}}, {"id": 36, "type": "+", "text": "+", "parent": 32, "children": [], "start_point": {"row": 8, "column": 36}, "end_point": {"row": 8, "column": 37}}, {"id": 37, "type": "parenthesized_expression", "text": "(h * sizeof(Regionspan))", "parent": 32, "children": [38], "start_point": {"row": 8, "column": 38}, "end_point": {"row": 8, "column": 62}}, {"id": 38, "type": "binary_expression", "text": "h * sizeof(Regionspan)", "parent": 37, "children": [39, 40, 41], "start_point": {"row": 8, "column": 39}, "end_point": {"row": 8, "column": 61}}, {"id": 39, "type": "identifier", "text": "h", "parent": 38, "children": [], "start_point": {"row": 8, "column": 39}, "end_point": {"row": 8, "column": 40}}, {"id": 40, "type": "*", "text": "*", "parent": 38, "children": [], "start_point": {"row": 8, "column": 41}, "end_point": {"row": 8, "column": 42}}, {"id": 41, "type": "sizeof_expression", "text": "sizeof(Regionspan)", "parent": 38, "children": [42], "start_point": {"row": 8, "column": 43}, "end_point": {"row": 8, "column": 61}}, {"id": 42, "type": "parenthesized_expression", "text": "(Regionspan)", "parent": 41, "children": [43], "start_point": {"row": 8, "column": 49}, "end_point": {"row": 8, "column": 61}}, {"id": 43, "type": "identifier", "text": "Regionspan", "parent": 42, "children": [], "start_point": {"row": 8, "column": 50}, "end_point": {"row": 8, "column": 60}}, {"id": 44, "type": "if_statement", "text": "if (!rb) return NULL;", "parent": 7, "children": [45, 49], "start_point": {"row": 9, "column": 3}, "end_point": {"row": 9, "column": 24}}, {"id": 45, "type": "parenthesized_expression", "text": "(!rb)", "parent": 44, "children": [46], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 11}}, {"id": 46, "type": "unary_expression", "text": "!rb", "parent": 45, "children": [47, 48], "start_point": {"row": 9, "column": 7}, "end_point": {"row": 9, "column": 10}}, {"id": 47, "type": "!", "text": "!", "parent": 46, "children": [], "start_point": {"row": 9, "column": 7}, "end_point": {"row": 9, "column": 8}}, {"id": 48, "type": "identifier", "text": "rb", "parent": 46, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 10}}, {"id": 49, "type": "return_statement", "text": "return NULL;", "parent": 44, "children": [50], "start_point": {"row": 9, "column": 12}, "end_point": {"row": 9, "column": 24}}, {"id": 50, "type": "null", "text": "NULL", "parent": 49, "children": [51], "start_point": {"row": 9, "column": 19}, "end_point": {"row": 9, "column": 23}}, {"id": 51, "type": "NULL", "text": "NULL", "parent": 50, "children": [], "start_point": {"row": 9, "column": 19}, "end_point": {"row": 9, "column": 23}}, {"id": 52, "type": "assignment_expression", "text": "rb->spans = (Regionspan **)(rb + sizeof(Regionbuf))", "parent": 7, "children": [53, 56, 57], "start_point": {"row": 10, "column": 3}, "end_point": {"row": 10, "column": 54}}, {"id": 53, "type": "field_expression", "text": "rb->spans", "parent": 52, "children": [54, 55], "start_point": {"row": 10, "column": 3}, "end_point": {"row": 10, "column": 12}}, {"id": 54, "type": "identifier", "text": "rb", "parent": 53, "children": [], "start_point": {"row": 10, "column": 3}, "end_point": {"row": 10, "column": 5}}, {"id": 55, "type": "field_identifier", "text": "spans", "parent": 53, "children": [], "start_point": {"row": 10, "column": 7}, "end_point": {"row": 10, "column": 12}}, {"id": 56, "type": "=", "text": "=", "parent": 52, "children": [], "start_point": {"row": 10, "column": 13}, "end_point": {"row": 10, "column": 14}}, {"id": 57, "type": "cast_expression", "text": "(Regionspan **)(rb + sizeof(Regionbuf))", "parent": 52, "children": [58, 64], "start_point": {"row": 10, "column": 15}, "end_point": {"row": 10, "column": 54}}, {"id": 58, "type": "type_descriptor", "text": "Regionspan **", "parent": 57, "children": [59, 60], "start_point": {"row": 10, "column": 16}, "end_point": {"row": 10, "column": 29}}, {"id": 59, "type": "type_identifier", "text": "Regionspan", "parent": 58, "children": [], "start_point": {"row": 10, "column": 16}, "end_point": {"row": 10, "column": 26}}, {"id": 60, "type": "abstract_pointer_declarator", "text": "**", "parent": 58, "children": [61, 62], "start_point": {"row": 10, "column": 27}, "end_point": {"row": 10, "column": 29}}, {"id": 61, "type": "*", "text": "*", "parent": 60, "children": [], "start_point": {"row": 10, "column": 27}, "end_point": {"row": 10, "column": 28}}, {"id": 62, "type": "abstract_pointer_declarator", "text": "*", "parent": 60, "children": [63], "start_point": {"row": 10, "column": 28}, "end_point": {"row": 10, "column": 29}}, {"id": 63, "type": "*", "text": "*", "parent": 62, "children": [], "start_point": {"row": 10, "column": 28}, "end_point": {"row": 10, "column": 29}}, {"id": 64, "type": "parenthesized_expression", "text": "(rb + sizeof(Regionbuf))", "parent": 57, "children": [65], "start_point": {"row": 10, "column": 30}, "end_point": {"row": 10, "column": 54}}, {"id": 65, "type": "binary_expression", "text": "rb + sizeof(Regionbuf)", "parent": 64, "children": [66, 67, 68], "start_point": {"row": 10, "column": 31}, "end_point": {"row": 10, "column": 53}}, {"id": 66, "type": "identifier", "text": "rb", "parent": 65, "children": [], "start_point": {"row": 10, "column": 31}, "end_point": {"row": 10, "column": 33}}, {"id": 67, "type": "+", "text": "+", "parent": 65, "children": [], "start_point": {"row": 10, "column": 34}, "end_point": {"row": 10, "column": 35}}, {"id": 68, "type": "sizeof_expression", "text": "sizeof(Regionbuf)", "parent": 65, "children": [69], "start_point": {"row": 10, "column": 36}, "end_point": {"row": 10, "column": 53}}, {"id": 69, "type": "parenthesized_expression", "text": "(Regionbuf)", "parent": 68, "children": [70], "start_point": {"row": 10, "column": 42}, "end_point": {"row": 10, "column": 53}}, {"id": 70, "type": "identifier", "text": "Regionbuf", "parent": 69, "children": [], "start_point": {"row": 10, "column": 43}, "end_point": {"row": 10, "column": 52}}, {"id": 71, "type": "assignment_expression", "text": "rb->w = w", "parent": 7, "children": [72, 75, 76], "start_point": {"row": 11, "column": 3}, "end_point": {"row": 11, "column": 12}}, {"id": 72, "type": "field_expression", "text": "rb->w", "parent": 71, "children": [73, 74], "start_point": {"row": 11, "column": 3}, "end_point": {"row": 11, "column": 8}}, {"id": 73, "type": "identifier", "text": "rb", "parent": 72, "children": [], "start_point": {"row": 11, "column": 3}, "end_point": {"row": 11, "column": 5}}, {"id": 74, "type": "field_identifier", "text": "w", "parent": 72, "children": [], "start_point": {"row": 11, "column": 7}, "end_point": {"row": 11, "column": 8}}, {"id": 75, "type": "=", "text": "=", "parent": 71, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 10}}, {"id": 76, "type": "identifier", "text": "w", "parent": 71, "children": [], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 12}}, {"id": 77, "type": "assignment_expression", "text": "rb->h = h", "parent": 7, "children": [78, 81, 82], "start_point": {"row": 12, "column": 3}, "end_point": {"row": 12, "column": 12}}, {"id": 78, "type": "field_expression", "text": "rb->h", "parent": 77, "children": [79, 80], "start_point": {"row": 12, "column": 3}, "end_point": {"row": 12, "column": 8}}, {"id": 79, "type": "identifier", "text": "rb", "parent": 78, "children": [], "start_point": {"row": 12, "column": 3}, "end_point": {"row": 12, "column": 5}}, {"id": 80, "type": "field_identifier", "text": "h", "parent": 78, "children": [], "start_point": {"row": 12, "column": 7}, "end_point": {"row": 12, "column": 8}}, {"id": 81, "type": "=", "text": "=", "parent": 77, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 10}}, {"id": 82, "type": "identifier", "text": "h", "parent": 77, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 12}}, {"id": 83, "type": "return_statement", "text": "return rb;", "parent": 7, "children": [84], "start_point": {"row": 13, "column": 3}, "end_point": {"row": 13, "column": 13}}, {"id": 84, "type": "identifier", "text": "rb", "parent": 83, "children": [], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 12}}, {"id": 85, "type": "function_definition", "text": "void\nevas_common_regionbuf_free(Regionbuf *rb)\n{\n evas_common_regionbuf_clear(rb);\n free(rb);\n}", "parent": 3, "children": [86, 87], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 86, "type": "primitive_type", "text": "void", "parent": 85, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 4}}, {"id": 87, "type": "function_declarator", "text": "evas_common_regionbuf_free(Regionbuf *rb)", "parent": 85, "children": [88, 89], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 41}}, {"id": 88, "type": "identifier", "text": "evas_common_regionbuf_free", "parent": 87, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 26}}, {"id": 89, "type": "parameter_list", "text": "(Regionbuf *rb)", "parent": 87, "children": [90], "start_point": {"row": 17, "column": 26}, "end_point": {"row": 17, "column": 41}}, {"id": 90, "type": "parameter_declaration", "text": "Regionbuf *rb", "parent": 89, "children": [91, 92], "start_point": {"row": 17, "column": 27}, "end_point": {"row": 17, "column": 40}}, {"id": 91, "type": "type_identifier", "text": "Regionbuf", "parent": 90, "children": [], "start_point": {"row": 17, "column": 27}, "end_point": {"row": 17, "column": 36}}, {"id": 92, "type": "pointer_declarator", "text": "*rb", "parent": 90, "children": [93, 94], "start_point": {"row": 17, "column": 37}, "end_point": {"row": 17, "column": 40}}, {"id": 93, "type": "*", "text": "*", "parent": 92, "children": [], "start_point": {"row": 17, "column": 37}, "end_point": {"row": 17, "column": 38}}, {"id": 94, "type": "identifier", "text": "rb", "parent": 92, "children": [], "start_point": {"row": 17, "column": 38}, "end_point": {"row": 17, "column": 40}}, {"id": 95, "type": "call_expression", "text": "evas_common_regionbuf_clear(rb)", "parent": 85, "children": [96, 97], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 34}}, {"id": 96, "type": "identifier", "text": "evas_common_regionbuf_clear", "parent": 95, "children": [], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 30}}, {"id": 97, "type": "argument_list", "text": "(rb)", "parent": 95, "children": [98], "start_point": {"row": 19, "column": 30}, "end_point": {"row": 19, "column": 34}}, {"id": 98, "type": "identifier", "text": "rb", "parent": 97, "children": [], "start_point": {"row": 19, "column": 31}, "end_point": {"row": 19, "column": 33}}, {"id": 99, "type": "call_expression", "text": "free(rb)", "parent": 85, "children": [100, 101], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 11}}, {"id": 100, "type": "identifier", "text": "free", "parent": 99, "children": [], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 7}}, {"id": 101, "type": "argument_list", "text": "(rb)", "parent": 99, "children": [102], "start_point": {"row": 20, "column": 7}, "end_point": {"row": 20, "column": 11}}, {"id": 102, "type": "identifier", "text": "rb", "parent": 101, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 10}}, {"id": 103, "type": "function_definition", "text": "void\nevas_common_regionbuf_clear(Regionbuf *rb)\n{\n int y;\n\n for (y = 0; y < rb->h; y++)\n {\n\twhile (rb->spans[y])\n\t {\n\t Regionspan *span;\n\n\t span = rb->spans[y];\n\t rb->spans[y] = eina_inlist_remove(rb->spans[y], rb->spans[y]);\n\t free(span);\n\t }\n }\n}", "parent": 3, "children": [104, 105], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 39, "column": 1}}, {"id": 104, "type": "primitive_type", "text": "void", "parent": 103, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 4}}, {"id": 105, "type": "function_declarator", "text": "evas_common_regionbuf_clear(Regionbuf *rb)", "parent": 103, "children": [106, 107], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 42}}, {"id": 106, "type": "identifier", "text": "evas_common_regionbuf_clear", "parent": 105, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 27}}, {"id": 107, "type": "parameter_list", "text": "(Regionbuf *rb)", "parent": 105, "children": [108], "start_point": {"row": 24, "column": 27}, "end_point": {"row": 24, "column": 42}}, {"id": 108, "type": "parameter_declaration", "text": "Regionbuf *rb", "parent": 107, "children": [109, 110], "start_point": {"row": 24, "column": 28}, "end_point": {"row": 24, "column": 41}}, {"id": 109, "type": "type_identifier", "text": "Regionbuf", "parent": 108, "children": [], "start_point": {"row": 24, "column": 28}, "end_point": {"row": 24, "column": 37}}, {"id": 110, "type": "pointer_declarator", "text": "*rb", "parent": 108, "children": [111, 112], "start_point": {"row": 24, "column": 38}, "end_point": {"row": 24, "column": 41}}, {"id": 111, "type": "*", "text": "*", "parent": 110, "children": [], "start_point": {"row": 24, "column": 38}, "end_point": {"row": 24, "column": 39}}, {"id": 112, "type": "identifier", "text": "rb", "parent": 110, "children": [], "start_point": {"row": 24, "column": 39}, "end_point": {"row": 24, "column": 41}}, {"id": 113, "type": "declaration", "text": "int y;", "parent": 103, "children": [114, 115], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 26, "column": 9}}, {"id": 114, "type": "primitive_type", "text": "int", "parent": 113, "children": [], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 26, "column": 6}}, {"id": 115, "type": "identifier", "text": "y", "parent": 113, "children": [], "start_point": {"row": 26, "column": 7}, "end_point": {"row": 26, "column": 8}}, {"id": 116, "type": "for_statement", "text": "for (y = 0; y < rb->h; y++)\n {\n\twhile (rb->spans[y])\n\t {\n\t Regionspan *span;\n\n\t span = rb->spans[y];\n\t rb->spans[y] = eina_inlist_remove(rb->spans[y], rb->spans[y]);\n\t free(span);\n\t }\n }", "parent": 103, "children": [117, 121, 127], "start_point": {"row": 28, "column": 3}, "end_point": {"row": 38, "column": 6}}, {"id": 117, "type": "assignment_expression", "text": "y = 0", "parent": 116, "children": [118, 119, 120], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 13}}, {"id": 118, "type": "identifier", "text": "y", "parent": 117, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 9}}, {"id": 119, "type": "=", "text": "=", "parent": 117, "children": [], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 11}}, {"id": 120, "type": "number_literal", "text": "0", "parent": 117, "children": [], "start_point": {"row": 28, "column": 12}, "end_point": {"row": 28, "column": 13}}, {"id": 121, "type": "binary_expression", "text": "y < rb->h", "parent": 116, "children": [122, 123, 124], "start_point": {"row": 28, "column": 15}, "end_point": {"row": 28, "column": 24}}, {"id": 122, "type": "identifier", "text": "y", "parent": 121, "children": [], "start_point": {"row": 28, "column": 15}, "end_point": {"row": 28, "column": 16}}, {"id": 123, "type": "<", "text": "<", "parent": 121, "children": [], "start_point": {"row": 28, "column": 17}, "end_point": {"row": 28, "column": 18}}, {"id": 124, "type": "field_expression", "text": "rb->h", "parent": 121, "children": [125, 126], "start_point": {"row": 28, "column": 19}, "end_point": {"row": 28, "column": 24}}, {"id": 125, "type": "identifier", "text": "rb", "parent": 124, "children": [], "start_point": {"row": 28, "column": 19}, "end_point": {"row": 28, "column": 21}}, {"id": 126, "type": "field_identifier", "text": "h", "parent": 124, "children": [], "start_point": {"row": 28, "column": 23}, "end_point": {"row": 28, "column": 24}}, {"id": 127, "type": "update_expression", "text": "y++", "parent": 116, "children": [128, 129], "start_point": {"row": 28, "column": 26}, "end_point": {"row": 28, "column": 29}}, {"id": 128, "type": "identifier", "text": "y", "parent": 127, "children": [], "start_point": {"row": 28, "column": 26}, "end_point": {"row": 28, "column": 27}}, {"id": 129, "type": "++", "text": "++", "parent": 127, "children": [], "start_point": {"row": 28, "column": 27}, "end_point": {"row": 28, "column": 29}}, {"id": 130, "type": "while_statement", "text": "while (rb->spans[y])\n\t {\n\t Regionspan *span;\n\n\t span = rb->spans[y];\n\t rb->spans[y] = eina_inlist_remove(rb->spans[y], rb->spans[y]);\n\t free(span);\n\t }", "parent": 116, "children": [131], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 37, "column": 4}}, {"id": 131, "type": "parenthesized_expression", "text": "(rb->spans[y])", "parent": 130, "children": [132], "start_point": {"row": 30, "column": 7}, "end_point": {"row": 30, "column": 21}}, {"id": 132, "type": "subscript_expression", "text": "rb->spans[y]", "parent": 131, "children": [133, 136], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 20}}, {"id": 133, "type": "field_expression", "text": "rb->spans", "parent": 132, "children": [134, 135], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 17}}, {"id": 134, "type": "identifier", "text": "rb", "parent": 133, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 10}}, {"id": 135, "type": "field_identifier", "text": "spans", "parent": 133, "children": [], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 30, "column": 17}}, {"id": 136, "type": "identifier", "text": "y", "parent": 132, "children": [], "start_point": {"row": 30, "column": 18}, "end_point": {"row": 30, "column": 19}}, {"id": 137, "type": "declaration", "text": "Regionspan *span;", "parent": 130, "children": [138, 139], "start_point": {"row": 32, "column": 6}, "end_point": {"row": 32, "column": 23}}, {"id": 138, "type": "type_identifier", "text": "Regionspan", "parent": 137, "children": [], "start_point": {"row": 32, "column": 6}, "end_point": {"row": 32, "column": 16}}, {"id": 139, "type": "pointer_declarator", "text": "*span", "parent": 137, "children": [140, 141], "start_point": {"row": 32, "column": 17}, "end_point": {"row": 32, "column": 22}}, {"id": 140, "type": "*", "text": "*", "parent": 139, "children": [], "start_point": {"row": 32, "column": 17}, "end_point": {"row": 32, "column": 18}}, {"id": 141, "type": "identifier", "text": "span", "parent": 139, "children": [], "start_point": {"row": 32, "column": 18}, "end_point": {"row": 32, "column": 22}}, {"id": 142, "type": "assignment_expression", "text": "span = rb->spans[y]", "parent": 130, "children": [143, 144, 145], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 25}}, {"id": 143, "type": "identifier", "text": "span", "parent": 142, "children": [], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 10}}, {"id": 144, "type": "=", "text": "=", "parent": 142, "children": [], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 12}}, {"id": 145, "type": "subscript_expression", "text": "rb->spans[y]", "parent": 142, "children": [146, 149], "start_point": {"row": 34, "column": 13}, "end_point": {"row": 34, "column": 25}}, {"id": 146, "type": "field_expression", "text": "rb->spans", "parent": 145, "children": [147, 148], "start_point": {"row": 34, "column": 13}, "end_point": {"row": 34, "column": 22}}, {"id": 147, "type": "identifier", "text": "rb", "parent": 146, "children": [], "start_point": {"row": 34, "column": 13}, "end_point": {"row": 34, "column": 15}}, {"id": 148, "type": "field_identifier", "text": "spans", "parent": 146, "children": [], "start_point": {"row": 34, "column": 17}, "end_point": {"row": 34, "column": 22}}, {"id": 149, "type": "identifier", "text": "y", "parent": 145, "children": [], "start_point": {"row": 34, "column": 23}, "end_point": {"row": 34, "column": 24}}, {"id": 150, "type": "assignment_expression", "text": "rb->spans[y] = eina_inlist_remove(rb->spans[y], rb->spans[y])", "parent": 130, "children": [151, 156, 157], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 67}}, {"id": 151, "type": "subscript_expression", "text": "rb->spans[y]", "parent": 150, "children": [152, 155], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 18}}, {"id": 152, "type": "field_expression", "text": "rb->spans", "parent": 151, "children": [153, 154], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 15}}, {"id": 153, "type": "identifier", "text": "rb", "parent": 152, "children": [], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 8}}, {"id": 154, "type": "field_identifier", "text": "spans", "parent": 152, "children": [], "start_point": {"row": 35, "column": 10}, "end_point": {"row": 35, "column": 15}}, {"id": 155, "type": "identifier", "text": "y", "parent": 151, "children": [], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 17}}, {"id": 156, "type": "=", "text": "=", "parent": 150, "children": [], "start_point": {"row": 35, "column": 19}, "end_point": {"row": 35, "column": 20}}, {"id": 157, "type": "call_expression", "text": "eina_inlist_remove(rb->spans[y], rb->spans[y])", "parent": 150, "children": [158, 159], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 67}}, {"id": 158, "type": "identifier", "text": "eina_inlist_remove", "parent": 157, "children": [], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 39}}, {"id": 159, "type": "argument_list", "text": "(rb->spans[y], rb->spans[y])", "parent": 157, "children": [160, 165], "start_point": {"row": 35, "column": 39}, "end_point": {"row": 35, "column": 67}}, {"id": 160, "type": "subscript_expression", "text": "rb->spans[y]", "parent": 159, "children": [161, 164], "start_point": {"row": 35, "column": 40}, "end_point": {"row": 35, "column": 52}}, {"id": 161, "type": "field_expression", "text": "rb->spans", "parent": 160, "children": [162, 163], "start_point": {"row": 35, "column": 40}, "end_point": {"row": 35, "column": 49}}, {"id": 162, "type": "identifier", "text": "rb", "parent": 161, "children": [], "start_point": {"row": 35, "column": 40}, "end_point": {"row": 35, "column": 42}}, {"id": 163, "type": "field_identifier", "text": "spans", "parent": 161, "children": [], "start_point": {"row": 35, "column": 44}, "end_point": {"row": 35, "column": 49}}, {"id": 164, "type": "identifier", "text": "y", "parent": 160, "children": [], "start_point": {"row": 35, "column": 50}, "end_point": {"row": 35, "column": 51}}, {"id": 165, "type": "subscript_expression", "text": "rb->spans[y]", "parent": 159, "children": [166, 169], "start_point": {"row": 35, "column": 54}, "end_point": {"row": 35, "column": 66}}, {"id": 166, "type": "field_expression", "text": "rb->spans", "parent": 165, "children": [167, 168], "start_point": {"row": 35, "column": 54}, "end_point": {"row": 35, "column": 63}}, {"id": 167, "type": "identifier", "text": "rb", "parent": 166, "children": [], "start_point": {"row": 35, "column": 54}, "end_point": {"row": 35, "column": 56}}, {"id": 168, "type": "field_identifier", "text": "spans", "parent": 166, "children": [], "start_point": {"row": 35, "column": 58}, "end_point": {"row": 35, "column": 63}}, {"id": 169, "type": "identifier", "text": "y", "parent": 165, "children": [], "start_point": {"row": 35, "column": 64}, "end_point": {"row": 35, "column": 65}}, {"id": 170, "type": "call_expression", "text": "free(span)", "parent": 130, "children": [171, 172], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 16}}, {"id": 171, "type": "identifier", "text": "free", "parent": 170, "children": [], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 10}}, {"id": 172, "type": "argument_list", "text": "(span)", "parent": 170, "children": [173], "start_point": {"row": 36, "column": 10}, "end_point": {"row": 36, "column": 16}}, {"id": 173, "type": "identifier", "text": "span", "parent": 172, "children": [], "start_point": {"row": 36, "column": 11}, "end_point": {"row": 36, "column": 15}}, {"id": 174, "type": "function_definition", "text": "void\nevas_common_regionbuf_span_add(Regionbuf *rb, int x1, int x2, int y)\n{\n Regionspan *span, *span2, *nspan, *sp_start, *sp_stop;\n\n /* abort if outside */\n if ((y < 0) ||\n (y >= rb->h) ||\n (x2 < 0) ||\n (x1 >= rb->w)) return;\n /* clip to horiz bounds */\n if (x1 < 0) x1 = 0;\n if (x2 < (rb->w - 1)) x2 = rb->w - 1;\n sp_start = NULL;\n sp_stop = NULL;\n EINA_INLIST_FOREACH(rb->spans[y], span)\n {\n\tnspan = (Regionspan *)(EINA_INLIST_GET(span))->next;\n\t/* we dont know what t do with the span yet */\n\tif (!sp_start)\n\t {\n\t /* if new span starts before or on this span or just after\n\t * with no gap */\n\t if (x1 <= (span->x2 + 1))\n\t sp_start = span;\n\t /* if there is no next span */\n\t if (!nspan)\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }\n\t /* if new span ends before the next span starts with a gap of\n\t * 1 pixel (or more) */\n\t else if (x2 < (nspan->x1 - 1))\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }\n\t }\n\t/* we already know it already starts before or in sp_start */\n\telse\n\t {\n\t /* there is no span after this one, so this has to be the stop */\n\t if (!nspan)\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }\n\t /* if new span ends before the next span starts with a gap of\n\t * 1 pixel (or more) */\n\t else if (x2 < (nspan->x1 - 1))\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }\n\t }\n }\n /* sp_start is where the new span starts in or before */\n /* sp_stop is where the new span stops in or after */\n if ((sp_start) && (sp_stop))\n {\n\t/* same start and stop */\n\tif (sp_start == sp_stop)\n\t {\n\t if (x2 < (sp_start->x1 - 1))\n\t {\n\t\t span2 = calloc(1, sizeof(Regionspan));\n\t\t span2->x1 = x1;\n\t\t span2->x2 = x2;\n\t\t rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);\n\t\t return;\n\t }\n\t if (x1 < sp_start->x1)\n\t sp_start->x1 = x1;\n\t if (x2 > sp_start->x2)\n\t sp_start->x2 = x2;\n\t return;\n\t }\n\telse\n\t {\n\t Eina_Inlist *l;\n\n\t /* remove all nodes after sp_start and before_sp_stop because\n\t * the new */\n\t for (l = (EINA_INLIST_GET(sp_start))->next; l != EINA_INLIST_GET(sp_stop);)\n\t {\n\t\t span = (Regionspan *)l;\n\t\t l = l->next;\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], span);\n\t\t free(span);\n\t }\n\t /* remove the end span */\n\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_stop);\n\t /* if the new span is before the start span - extend */\n\t if (x1 < sp_start->x1)\n\t sp_start->x1 = x1;\n\t /* if it goes beyond the stop span - extend stop span */\n\t if (x2 > sp_stop->x2)\n\t sp_stop->x2 = x2;\n\t /* extend start span to stop span */\n\t sp_start->x2 = sp_stop->x2;\n\t /* don't need stop span anymore */\n\t free(sp_stop);\n\t return;\n\t }\n }\n /* no start AND stop... just append */\n span2 = calloc(1, sizeof(Regionspan));\n span2->x1 = x1;\n span2->x2 = x2;\n rb->spans[y] = eina_inlist_append(rb->spans[y], span2);\n}", "parent": 3, "children": [175, 176], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 152, "column": 1}}, {"id": 175, "type": "primitive_type", "text": "void", "parent": 174, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 4}}, {"id": 176, "type": "function_declarator", "text": "evas_common_regionbuf_span_add(Regionbuf *rb, int x1, int x2, int y)", "parent": 174, "children": [177, 178], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 68}}, {"id": 177, "type": "identifier", "text": "evas_common_regionbuf_span_add", "parent": 176, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 30}}, {"id": 178, "type": "parameter_list", "text": "(Regionbuf *rb, int x1, int x2, int y)", "parent": 176, "children": [179, 184, 187, 190], "start_point": {"row": 42, "column": 30}, "end_point": {"row": 42, "column": 68}}, {"id": 179, "type": "parameter_declaration", "text": "Regionbuf *rb", "parent": 178, "children": [180, 181], "start_point": {"row": 42, "column": 31}, "end_point": {"row": 42, "column": 44}}, {"id": 180, "type": "type_identifier", "text": "Regionbuf", "parent": 179, "children": [], "start_point": {"row": 42, "column": 31}, "end_point": {"row": 42, "column": 40}}, {"id": 181, "type": "pointer_declarator", "text": "*rb", "parent": 179, "children": [182, 183], "start_point": {"row": 42, "column": 41}, "end_point": {"row": 42, "column": 44}}, {"id": 182, "type": "*", "text": "*", "parent": 181, "children": [], "start_point": {"row": 42, "column": 41}, "end_point": {"row": 42, "column": 42}}, {"id": 183, "type": "identifier", "text": "rb", "parent": 181, "children": [], "start_point": {"row": 42, "column": 42}, "end_point": {"row": 42, "column": 44}}, {"id": 184, "type": "parameter_declaration", "text": "int x1", "parent": 178, "children": [185, 186], "start_point": {"row": 42, "column": 46}, "end_point": {"row": 42, "column": 52}}, {"id": 185, "type": "primitive_type", "text": "int", "parent": 184, "children": [], "start_point": {"row": 42, "column": 46}, "end_point": {"row": 42, "column": 49}}, {"id": 186, "type": "identifier", "text": "x1", "parent": 184, "children": [], "start_point": {"row": 42, "column": 50}, "end_point": {"row": 42, "column": 52}}, {"id": 187, "type": "parameter_declaration", "text": "int x2", "parent": 178, "children": [188, 189], "start_point": {"row": 42, "column": 54}, "end_point": {"row": 42, "column": 60}}, {"id": 188, "type": "primitive_type", "text": "int", "parent": 187, "children": [], "start_point": {"row": 42, "column": 54}, "end_point": {"row": 42, "column": 57}}, {"id": 189, "type": "identifier", "text": "x2", "parent": 187, "children": [], "start_point": {"row": 42, "column": 58}, "end_point": {"row": 42, "column": 60}}, {"id": 190, "type": "parameter_declaration", "text": "int y", "parent": 178, "children": [191, 192], "start_point": {"row": 42, "column": 62}, "end_point": {"row": 42, "column": 67}}, {"id": 191, "type": "primitive_type", "text": "int", "parent": 190, "children": [], "start_point": {"row": 42, "column": 62}, "end_point": {"row": 42, "column": 65}}, {"id": 192, "type": "identifier", "text": "y", "parent": 190, "children": [], "start_point": {"row": 42, "column": 66}, "end_point": {"row": 42, "column": 67}}, {"id": 193, "type": "declaration", "text": "Regionspan *span, *span2, *nspan, *sp_start, *sp_stop;", "parent": 174, "children": [194, 195, 198, 201, 204, 207], "start_point": {"row": 44, "column": 3}, "end_point": {"row": 44, "column": 57}}, {"id": 194, "type": "type_identifier", "text": "Regionspan", "parent": 193, "children": [], "start_point": {"row": 44, "column": 3}, "end_point": {"row": 44, "column": 13}}, {"id": 195, "type": "pointer_declarator", "text": "*span", "parent": 193, "children": [196, 197], "start_point": {"row": 44, "column": 14}, "end_point": {"row": 44, "column": 19}}, {"id": 196, "type": "*", "text": "*", "parent": 195, "children": [], "start_point": {"row": 44, "column": 14}, "end_point": {"row": 44, "column": 15}}, {"id": 197, "type": "identifier", "text": "span", "parent": 195, "children": [], "start_point": {"row": 44, "column": 15}, "end_point": {"row": 44, "column": 19}}, {"id": 198, "type": "pointer_declarator", "text": "*span2", "parent": 193, "children": [199, 200], "start_point": {"row": 44, "column": 21}, "end_point": {"row": 44, "column": 27}}, {"id": 199, "type": "*", "text": "*", "parent": 198, "children": [], "start_point": {"row": 44, "column": 21}, "end_point": {"row": 44, "column": 22}}, {"id": 200, "type": "identifier", "text": "span2", "parent": 198, "children": [], "start_point": {"row": 44, "column": 22}, "end_point": {"row": 44, "column": 27}}, {"id": 201, "type": "pointer_declarator", "text": "*nspan", "parent": 193, "children": [202, 203], "start_point": {"row": 44, "column": 29}, "end_point": {"row": 44, "column": 35}}, {"id": 202, "type": "*", "text": "*", "parent": 201, "children": [], "start_point": {"row": 44, "column": 29}, "end_point": {"row": 44, "column": 30}}, {"id": 203, "type": "identifier", "text": "nspan", "parent": 201, "children": [], "start_point": {"row": 44, "column": 30}, "end_point": {"row": 44, "column": 35}}, {"id": 204, "type": "pointer_declarator", "text": "*sp_start", "parent": 193, "children": [205, 206], "start_point": {"row": 44, "column": 37}, "end_point": {"row": 44, "column": 46}}, {"id": 205, "type": "*", "text": "*", "parent": 204, "children": [], "start_point": {"row": 44, "column": 37}, "end_point": {"row": 44, "column": 38}}, {"id": 206, "type": "identifier", "text": "sp_start", "parent": 204, "children": [], "start_point": {"row": 44, "column": 38}, "end_point": {"row": 44, "column": 46}}, {"id": 207, "type": "pointer_declarator", "text": "*sp_stop", "parent": 193, "children": [208, 209], "start_point": {"row": 44, "column": 48}, "end_point": {"row": 44, "column": 56}}, {"id": 208, "type": "*", "text": "*", "parent": 207, "children": [], "start_point": {"row": 44, "column": 48}, "end_point": {"row": 44, "column": 49}}, {"id": 209, "type": "identifier", "text": "sp_stop", "parent": 207, "children": [], "start_point": {"row": 44, "column": 49}, "end_point": {"row": 44, "column": 56}}, {"id": 210, "type": "if_statement", "text": "if ((y < 0) ||\n (y >= rb->h) ||\n (x2 < 0) ||\n (x1 >= rb->w)) return;", "parent": 174, "children": [211, 242], "start_point": {"row": 47, "column": 3}, "end_point": {"row": 50, "column": 29}}, {"id": 211, "type": "parenthesized_expression", "text": "((y < 0) ||\n (y >= rb->h) ||\n (x2 < 0) ||\n (x1 >= rb->w))", "parent": 210, "children": [212], "start_point": {"row": 47, "column": 6}, "end_point": {"row": 50, "column": 21}}, {"id": 212, "type": "binary_expression", "text": "(y < 0) ||\n (y >= rb->h) ||\n (x2 < 0) ||\n (x1 >= rb->w)", "parent": 211, "children": [213, 234, 235], "start_point": {"row": 47, "column": 7}, "end_point": {"row": 50, "column": 20}}, {"id": 213, "type": "binary_expression", "text": "(y < 0) ||\n (y >= rb->h) ||\n (x2 < 0)", "parent": 212, "children": [214, 228, 229], "start_point": {"row": 47, "column": 7}, "end_point": {"row": 49, "column": 15}}, {"id": 214, "type": "binary_expression", "text": "(y < 0) ||\n (y >= rb->h)", "parent": 213, "children": [215, 220, 221], "start_point": {"row": 47, "column": 7}, "end_point": {"row": 48, "column": 19}}, {"id": 215, "type": "parenthesized_expression", "text": "(y < 0)", "parent": 214, "children": [216], "start_point": {"row": 47, "column": 7}, "end_point": {"row": 47, "column": 14}}, {"id": 216, "type": "binary_expression", "text": "y < 0", "parent": 215, "children": [217, 218, 219], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 13}}, {"id": 217, "type": "identifier", "text": "y", "parent": 216, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 9}}, {"id": 218, "type": "<", "text": "<", "parent": 216, "children": [], "start_point": {"row": 47, "column": 10}, "end_point": {"row": 47, "column": 11}}, {"id": 219, "type": "number_literal", "text": "0", "parent": 216, "children": [], "start_point": {"row": 47, "column": 12}, "end_point": {"row": 47, "column": 13}}, {"id": 220, "type": "||", "text": "||", "parent": 214, "children": [], "start_point": {"row": 47, "column": 15}, "end_point": {"row": 47, "column": 17}}, {"id": 221, "type": "parenthesized_expression", "text": "(y >= rb->h)", "parent": 214, "children": [222], "start_point": {"row": 48, "column": 7}, "end_point": {"row": 48, "column": 19}}, {"id": 222, "type": "binary_expression", "text": "y >= rb->h", "parent": 221, "children": [223, 224, 225], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 18}}, {"id": 223, "type": "identifier", "text": "y", "parent": 222, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 9}}, {"id": 224, "type": ">=", "text": ">=", "parent": 222, "children": [], "start_point": {"row": 48, "column": 10}, "end_point": {"row": 48, "column": 12}}, {"id": 225, "type": "field_expression", "text": "rb->h", "parent": 222, "children": [226, 227], "start_point": {"row": 48, "column": 13}, "end_point": {"row": 48, "column": 18}}, {"id": 226, "type": "identifier", "text": "rb", "parent": 225, "children": [], "start_point": {"row": 48, "column": 13}, "end_point": {"row": 48, "column": 15}}, {"id": 227, "type": "field_identifier", "text": "h", "parent": 225, "children": [], "start_point": {"row": 48, "column": 17}, "end_point": {"row": 48, "column": 18}}, {"id": 228, "type": "||", "text": "||", "parent": 213, "children": [], "start_point": {"row": 48, "column": 20}, "end_point": {"row": 48, "column": 22}}, {"id": 229, "type": "parenthesized_expression", "text": "(x2 < 0)", "parent": 213, "children": [230], "start_point": {"row": 49, "column": 7}, "end_point": {"row": 49, "column": 15}}, {"id": 230, "type": "binary_expression", "text": "x2 < 0", "parent": 229, "children": [231, 232, 233], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 14}}, {"id": 231, "type": "identifier", "text": "x2", "parent": 230, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 10}}, {"id": 232, "type": "<", "text": "<", "parent": 230, "children": [], "start_point": {"row": 49, "column": 11}, "end_point": {"row": 49, "column": 12}}, {"id": 233, "type": "number_literal", "text": "0", "parent": 230, "children": [], "start_point": {"row": 49, "column": 13}, "end_point": {"row": 49, "column": 14}}, {"id": 234, "type": "||", "text": "||", "parent": 212, "children": [], "start_point": {"row": 49, "column": 16}, "end_point": {"row": 49, "column": 18}}, {"id": 235, "type": "parenthesized_expression", "text": "(x1 >= rb->w)", "parent": 212, "children": [236], "start_point": {"row": 50, "column": 7}, "end_point": {"row": 50, "column": 20}}, {"id": 236, "type": "binary_expression", "text": "x1 >= rb->w", "parent": 235, "children": [237, 238, 239], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 19}}, {"id": 237, "type": "identifier", "text": "x1", "parent": 236, "children": [], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 10}}, {"id": 238, "type": ">=", "text": ">=", "parent": 236, "children": [], "start_point": {"row": 50, "column": 11}, "end_point": {"row": 50, "column": 13}}, {"id": 239, "type": "field_expression", "text": "rb->w", "parent": 236, "children": [240, 241], "start_point": {"row": 50, "column": 14}, "end_point": {"row": 50, "column": 19}}, {"id": 240, "type": "identifier", "text": "rb", "parent": 239, "children": [], "start_point": {"row": 50, "column": 14}, "end_point": {"row": 50, "column": 16}}, {"id": 241, "type": "field_identifier", "text": "w", "parent": 239, "children": [], "start_point": {"row": 50, "column": 18}, "end_point": {"row": 50, "column": 19}}, {"id": 242, "type": "return_statement", "text": "return;", "parent": 210, "children": [], "start_point": {"row": 50, "column": 22}, "end_point": {"row": 50, "column": 29}}, {"id": 243, "type": "if_statement", "text": "if (x1 < 0) x1 = 0;", "parent": 174, "children": [244], "start_point": {"row": 52, "column": 3}, "end_point": {"row": 52, "column": 22}}, {"id": 244, "type": "parenthesized_expression", "text": "(x1 < 0)", "parent": 243, "children": [245], "start_point": {"row": 52, "column": 6}, "end_point": {"row": 52, "column": 14}}, {"id": 245, "type": "binary_expression", "text": "x1 < 0", "parent": 244, "children": [246, 247, 248], "start_point": {"row": 52, "column": 7}, "end_point": {"row": 52, "column": 13}}, {"id": 246, "type": "identifier", "text": "x1", "parent": 245, "children": [], "start_point": {"row": 52, "column": 7}, "end_point": {"row": 52, "column": 9}}, {"id": 247, "type": "<", "text": "<", "parent": 245, "children": [], "start_point": {"row": 52, "column": 10}, "end_point": {"row": 52, "column": 11}}, {"id": 248, "type": "number_literal", "text": "0", "parent": 245, "children": [], "start_point": {"row": 52, "column": 12}, "end_point": {"row": 52, "column": 13}}, {"id": 249, "type": "assignment_expression", "text": "x1 = 0", "parent": 243, "children": [250, 251, 252], "start_point": {"row": 52, "column": 15}, "end_point": {"row": 52, "column": 21}}, {"id": 250, "type": "identifier", "text": "x1", "parent": 249, "children": [], "start_point": {"row": 52, "column": 15}, "end_point": {"row": 52, "column": 17}}, {"id": 251, "type": "=", "text": "=", "parent": 249, "children": [], "start_point": {"row": 52, "column": 18}, "end_point": {"row": 52, "column": 19}}, {"id": 252, "type": "number_literal", "text": "0", "parent": 249, "children": [], "start_point": {"row": 52, "column": 20}, "end_point": {"row": 52, "column": 21}}, {"id": 253, "type": "if_statement", "text": "if (x2 < (rb->w - 1)) x2 = rb->w - 1;", "parent": 174, "children": [254], "start_point": {"row": 53, "column": 3}, "end_point": {"row": 53, "column": 40}}, {"id": 254, "type": "parenthesized_expression", "text": "(x2 < (rb->w - 1))", "parent": 253, "children": [255], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 53, "column": 24}}, {"id": 255, "type": "binary_expression", "text": "x2 < (rb->w - 1)", "parent": 254, "children": [256, 257, 258], "start_point": {"row": 53, "column": 7}, "end_point": {"row": 53, "column": 23}}, {"id": 256, "type": "identifier", "text": "x2", "parent": 255, "children": [], "start_point": {"row": 53, "column": 7}, "end_point": {"row": 53, "column": 9}}, {"id": 257, "type": "<", "text": "<", "parent": 255, "children": [], "start_point": {"row": 53, "column": 10}, "end_point": {"row": 53, "column": 11}}, {"id": 258, "type": "parenthesized_expression", "text": "(rb->w - 1)", "parent": 255, "children": [259], "start_point": {"row": 53, "column": 12}, "end_point": {"row": 53, "column": 23}}, {"id": 259, "type": "binary_expression", "text": "rb->w - 1", "parent": 258, "children": [260, 263, 264], "start_point": {"row": 53, "column": 13}, "end_point": {"row": 53, "column": 22}}, {"id": 260, "type": "field_expression", "text": "rb->w", "parent": 259, "children": [261, 262], "start_point": {"row": 53, "column": 13}, "end_point": {"row": 53, "column": 18}}, {"id": 261, "type": "identifier", "text": "rb", "parent": 260, "children": [], "start_point": {"row": 53, "column": 13}, "end_point": {"row": 53, "column": 15}}, {"id": 262, "type": "field_identifier", "text": "w", "parent": 260, "children": [], "start_point": {"row": 53, "column": 17}, "end_point": {"row": 53, "column": 18}}, {"id": 263, "type": "-", "text": "-", "parent": 259, "children": [], "start_point": {"row": 53, "column": 19}, "end_point": {"row": 53, "column": 20}}, {"id": 264, "type": "number_literal", "text": "1", "parent": 259, "children": [], "start_point": {"row": 53, "column": 21}, "end_point": {"row": 53, "column": 22}}, {"id": 265, "type": "assignment_expression", "text": "x2 = rb->w - 1", "parent": 253, "children": [266, 267, 268], "start_point": {"row": 53, "column": 25}, "end_point": {"row": 53, "column": 39}}, {"id": 266, "type": "identifier", "text": "x2", "parent": 265, "children": [], "start_point": {"row": 53, "column": 25}, "end_point": {"row": 53, "column": 27}}, {"id": 267, "type": "=", "text": "=", "parent": 265, "children": [], "start_point": {"row": 53, "column": 28}, "end_point": {"row": 53, "column": 29}}, {"id": 268, "type": "binary_expression", "text": "rb->w - 1", "parent": 265, "children": [269, 272, 273], "start_point": {"row": 53, "column": 30}, "end_point": {"row": 53, "column": 39}}, {"id": 269, "type": "field_expression", "text": "rb->w", "parent": 268, "children": [270, 271], "start_point": {"row": 53, "column": 30}, "end_point": {"row": 53, "column": 35}}, {"id": 270, "type": "identifier", "text": "rb", "parent": 269, "children": [], "start_point": {"row": 53, "column": 30}, "end_point": {"row": 53, "column": 32}}, {"id": 271, "type": "field_identifier", "text": "w", "parent": 269, "children": [], "start_point": {"row": 53, "column": 34}, "end_point": {"row": 53, "column": 35}}, {"id": 272, "type": "-", "text": "-", "parent": 268, "children": [], "start_point": {"row": 53, "column": 36}, "end_point": {"row": 53, "column": 37}}, {"id": 273, "type": "number_literal", "text": "1", "parent": 268, "children": [], "start_point": {"row": 53, "column": 38}, "end_point": {"row": 53, "column": 39}}, {"id": 274, "type": "assignment_expression", "text": "sp_start = NULL", "parent": 174, "children": [275, 276, 277], "start_point": {"row": 54, "column": 3}, "end_point": {"row": 54, "column": 18}}, {"id": 275, "type": "identifier", "text": "sp_start", "parent": 274, "children": [], "start_point": {"row": 54, "column": 3}, "end_point": {"row": 54, "column": 11}}, {"id": 276, "type": "=", "text": "=", "parent": 274, "children": [], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 13}}, {"id": 277, "type": "null", "text": "NULL", "parent": 274, "children": [278], "start_point": {"row": 54, "column": 14}, "end_point": {"row": 54, "column": 18}}, {"id": 278, "type": "NULL", "text": "NULL", "parent": 277, "children": [], "start_point": {"row": 54, "column": 14}, "end_point": {"row": 54, "column": 18}}, {"id": 279, "type": "assignment_expression", "text": "sp_stop = NULL", "parent": 174, "children": [280, 281, 282], "start_point": {"row": 55, "column": 3}, "end_point": {"row": 55, "column": 17}}, {"id": 280, "type": "identifier", "text": "sp_stop", "parent": 279, "children": [], "start_point": {"row": 55, "column": 3}, "end_point": {"row": 55, "column": 10}}, {"id": 281, "type": "=", "text": "=", "parent": 279, "children": [], "start_point": {"row": 55, "column": 11}, "end_point": {"row": 55, "column": 12}}, {"id": 282, "type": "null", "text": "NULL", "parent": 279, "children": [283], "start_point": {"row": 55, "column": 13}, "end_point": {"row": 55, "column": 17}}, {"id": 283, "type": "NULL", "text": "NULL", "parent": 282, "children": [], "start_point": {"row": 55, "column": 13}, "end_point": {"row": 55, "column": 17}}, {"id": 284, "type": "call_expression", "text": "EINA_INLIST_FOREACH(rb->spans[y], span)", "parent": 174, "children": [285, 286], "start_point": {"row": 56, "column": 3}, "end_point": {"row": 56, "column": 42}}, {"id": 285, "type": "identifier", "text": "EINA_INLIST_FOREACH", "parent": 284, "children": [], "start_point": {"row": 56, "column": 3}, "end_point": {"row": 56, "column": 22}}, {"id": 286, "type": "argument_list", "text": "(rb->spans[y], span)", "parent": 284, "children": [287, 292], "start_point": {"row": 56, "column": 22}, "end_point": {"row": 56, "column": 42}}, {"id": 287, "type": "subscript_expression", "text": "rb->spans[y]", "parent": 286, "children": [288, 291], "start_point": {"row": 56, "column": 23}, "end_point": {"row": 56, "column": 35}}, {"id": 288, "type": "field_expression", "text": "rb->spans", "parent": 287, "children": [289, 290], "start_point": {"row": 56, "column": 23}, "end_point": {"row": 56, "column": 32}}, {"id": 289, "type": "identifier", "text": "rb", "parent": 288, "children": [], "start_point": {"row": 56, "column": 23}, "end_point": {"row": 56, "column": 25}}, {"id": 290, "type": "field_identifier", "text": "spans", "parent": 288, "children": [], "start_point": {"row": 56, "column": 27}, "end_point": {"row": 56, "column": 32}}, {"id": 291, "type": "identifier", "text": "y", "parent": 287, "children": [], "start_point": {"row": 56, "column": 33}, "end_point": {"row": 56, "column": 34}}, {"id": 292, "type": "identifier", "text": "span", "parent": 286, "children": [], "start_point": {"row": 56, "column": 37}, "end_point": {"row": 56, "column": 41}}, {"id": 293, "type": "assignment_expression", "text": "nspan = (Regionspan *)(EINA_INLIST_GET(span))->next", "parent": 174, "children": [294, 295, 296], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 52}}, {"id": 294, "type": "identifier", "text": "nspan", "parent": 293, "children": [], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 6}}, {"id": 295, "type": "=", "text": "=", "parent": 293, "children": [], "start_point": {"row": 58, "column": 7}, "end_point": {"row": 58, "column": 8}}, {"id": 296, "type": "cast_expression", "text": "(Regionspan *)(EINA_INLIST_GET(span))->next", "parent": 293, "children": [297, 301], "start_point": {"row": 58, "column": 9}, "end_point": {"row": 58, "column": 52}}, {"id": 297, "type": "type_descriptor", "text": "Regionspan *", "parent": 296, "children": [298, 299], "start_point": {"row": 58, "column": 10}, "end_point": {"row": 58, "column": 22}}, {"id": 298, "type": "type_identifier", "text": "Regionspan", "parent": 297, "children": [], "start_point": {"row": 58, "column": 10}, "end_point": {"row": 58, "column": 20}}, {"id": 299, "type": "abstract_pointer_declarator", "text": "*", "parent": 297, "children": [300], "start_point": {"row": 58, "column": 21}, "end_point": {"row": 58, "column": 22}}, {"id": 300, "type": "*", "text": "*", "parent": 299, "children": [], "start_point": {"row": 58, "column": 21}, "end_point": {"row": 58, "column": 22}}, {"id": 301, "type": "field_expression", "text": "(EINA_INLIST_GET(span))->next", "parent": 296, "children": [302, 307], "start_point": {"row": 58, "column": 23}, "end_point": {"row": 58, "column": 52}}, {"id": 302, "type": "parenthesized_expression", "text": "(EINA_INLIST_GET(span))", "parent": 301, "children": [303], "start_point": {"row": 58, "column": 23}, "end_point": {"row": 58, "column": 46}}, {"id": 303, "type": "call_expression", "text": "EINA_INLIST_GET(span)", "parent": 302, "children": [304, 305], "start_point": {"row": 58, "column": 24}, "end_point": {"row": 58, "column": 45}}, {"id": 304, "type": "identifier", "text": "EINA_INLIST_GET", "parent": 303, "children": [], "start_point": {"row": 58, "column": 24}, "end_point": {"row": 58, "column": 39}}, {"id": 305, "type": "argument_list", "text": "(span)", "parent": 303, "children": [306], "start_point": {"row": 58, "column": 39}, "end_point": {"row": 58, "column": 45}}, {"id": 306, "type": "identifier", "text": "span", "parent": 305, "children": [], "start_point": {"row": 58, "column": 40}, "end_point": {"row": 58, "column": 44}}, {"id": 307, "type": "field_identifier", "text": "next", "parent": 301, "children": [], "start_point": {"row": 58, "column": 48}, "end_point": {"row": 58, "column": 52}}, {"id": 308, "type": "if_statement", "text": "if (!sp_start)\n\t {\n\t /* if new span starts before or on this span or just after\n\t * with no gap */\n\t if (x1 <= (span->x2 + 1))\n\t sp_start = span;\n\t /* if there is no next span */\n\t if (!nspan)\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }\n\t /* if new span ends before the next span starts with a gap of\n\t * 1 pixel (or more) */\n\t else if (x2 < (nspan->x1 - 1))\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }\n\t }\n\t/* we already know it already starts before or in sp_start */\n\telse\n\t {\n\t /* there is no span after this one, so this has to be the stop */\n\t if (!nspan)\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }\n\t /* if new span ends before the next span starts with a gap of\n\t * 1 pixel (or more) */\n\t else if (x2 < (nspan->x1 - 1))\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }\n\t }", "parent": 174, "children": [309, 359], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 96, "column": 4}}, {"id": 309, "type": "parenthesized_expression", "text": "(!sp_start)", "parent": 308, "children": [310], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 15}}, {"id": 310, "type": "unary_expression", "text": "!sp_start", "parent": 309, "children": [311, 312], "start_point": {"row": 60, "column": 5}, "end_point": {"row": 60, "column": 14}}, {"id": 311, "type": "!", "text": "!", "parent": 310, "children": [], "start_point": {"row": 60, "column": 5}, "end_point": {"row": 60, "column": 6}}, {"id": 312, "type": "identifier", "text": "sp_start", "parent": 310, "children": [], "start_point": {"row": 60, "column": 6}, "end_point": {"row": 60, "column": 14}}, {"id": 313, "type": "if_statement", "text": "if (x1 <= (span->x2 + 1))\n\t sp_start = span;", "parent": 308, "children": [314], "start_point": {"row": 64, "column": 6}, "end_point": {"row": 65, "column": 24}}, {"id": 314, "type": "parenthesized_expression", "text": "(x1 <= (span->x2 + 1))", "parent": 313, "children": [315], "start_point": {"row": 64, "column": 9}, "end_point": {"row": 64, "column": 31}}, {"id": 315, "type": "binary_expression", "text": "x1 <= (span->x2 + 1)", "parent": 314, "children": [316, 317, 318], "start_point": {"row": 64, "column": 10}, "end_point": {"row": 64, "column": 30}}, {"id": 316, "type": "identifier", "text": "x1", "parent": 315, "children": [], "start_point": {"row": 64, "column": 10}, "end_point": {"row": 64, "column": 12}}, {"id": 317, "type": "<=", "text": "<=", "parent": 315, "children": [], "start_point": {"row": 64, "column": 13}, "end_point": {"row": 64, "column": 15}}, {"id": 318, "type": "parenthesized_expression", "text": "(span->x2 + 1)", "parent": 315, "children": [319], "start_point": {"row": 64, "column": 16}, "end_point": {"row": 64, "column": 30}}, {"id": 319, "type": "binary_expression", "text": "span->x2 + 1", "parent": 318, "children": [320, 323, 324], "start_point": {"row": 64, "column": 17}, "end_point": {"row": 64, "column": 29}}, {"id": 320, "type": "field_expression", "text": "span->x2", "parent": 319, "children": [321, 322], "start_point": {"row": 64, "column": 17}, "end_point": {"row": 64, "column": 25}}, {"id": 321, "type": "identifier", "text": "span", "parent": 320, "children": [], "start_point": {"row": 64, "column": 17}, "end_point": {"row": 64, "column": 21}}, {"id": 322, "type": "field_identifier", "text": "x2", "parent": 320, "children": [], "start_point": {"row": 64, "column": 23}, "end_point": {"row": 64, "column": 25}}, {"id": 323, "type": "+", "text": "+", "parent": 319, "children": [], "start_point": {"row": 64, "column": 26}, "end_point": {"row": 64, "column": 27}}, {"id": 324, "type": "number_literal", "text": "1", "parent": 319, "children": [], "start_point": {"row": 64, "column": 28}, "end_point": {"row": 64, "column": 29}}, {"id": 325, "type": "assignment_expression", "text": "sp_start = span", "parent": 313, "children": [326, 327, 328], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 23}}, {"id": 326, "type": "identifier", "text": "sp_start", "parent": 325, "children": [], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 16}}, {"id": 327, "type": "=", "text": "=", "parent": 325, "children": [], "start_point": {"row": 65, "column": 17}, "end_point": {"row": 65, "column": 18}}, {"id": 328, "type": "identifier", "text": "span", "parent": 325, "children": [], "start_point": {"row": 65, "column": 19}, "end_point": {"row": 65, "column": 23}}, {"id": 329, "type": "if_statement", "text": "if (!nspan)\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }\n\t /* if new span ends before the next span starts with a gap of\n\t * 1 pixel (or more) */\n\t else if (x2 < (nspan->x1 - 1))\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }", "parent": 308, "children": [330, 340], "start_point": {"row": 67, "column": 6}, "end_point": {"row": 78, "column": 9}}, {"id": 330, "type": "parenthesized_expression", "text": "(!nspan)", "parent": 329, "children": [331], "start_point": {"row": 67, "column": 9}, "end_point": {"row": 67, "column": 17}}, {"id": 331, "type": "unary_expression", "text": "!nspan", "parent": 330, "children": [332, 333], "start_point": {"row": 67, "column": 10}, "end_point": {"row": 67, "column": 16}}, {"id": 332, "type": "!", "text": "!", "parent": 331, "children": [], "start_point": {"row": 67, "column": 10}, "end_point": {"row": 67, "column": 11}}, {"id": 333, "type": "identifier", "text": "nspan", "parent": 331, "children": [], "start_point": {"row": 67, "column": 11}, "end_point": {"row": 67, "column": 16}}, {"id": 334, "type": "assignment_expression", "text": "sp_stop = span", "parent": 329, "children": [335, 336, 337], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 18}}, {"id": 335, "type": "identifier", "text": "sp_stop", "parent": 334, "children": [], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 11}}, {"id": 336, "type": "=", "text": "=", "parent": 334, "children": [], "start_point": {"row": 69, "column": 12}, "end_point": {"row": 69, "column": 13}}, {"id": 337, "type": "identifier", "text": "span", "parent": 334, "children": [], "start_point": {"row": 69, "column": 14}, "end_point": {"row": 69, "column": 18}}, {"id": 338, "type": "break_statement", "text": "break;", "parent": 329, "children": [339], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 10}}, {"id": 339, "type": "break", "text": "break", "parent": 338, "children": [], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 9}}, {"id": 340, "type": "else_clause", "text": "else if (x2 < (nspan->x1 - 1))\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }", "parent": 329, "children": [341], "start_point": {"row": 74, "column": 6}, "end_point": {"row": 78, "column": 9}}, {"id": 341, "type": "if_statement", "text": "if (x2 < (nspan->x1 - 1))\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }", "parent": 340, "children": [342], "start_point": {"row": 74, "column": 11}, "end_point": {"row": 78, "column": 9}}, {"id": 342, "type": "parenthesized_expression", "text": "(x2 < (nspan->x1 - 1))", "parent": 341, "children": [343], "start_point": {"row": 74, "column": 14}, "end_point": {"row": 74, "column": 36}}, {"id": 343, "type": "binary_expression", "text": "x2 < (nspan->x1 - 1)", "parent": 342, "children": [344, 345, 346], "start_point": {"row": 74, "column": 15}, "end_point": {"row": 74, "column": 35}}, {"id": 344, "type": "identifier", "text": "x2", "parent": 343, "children": [], "start_point": {"row": 74, "column": 15}, "end_point": {"row": 74, "column": 17}}, {"id": 345, "type": "<", "text": "<", "parent": 343, "children": [], "start_point": {"row": 74, "column": 18}, "end_point": {"row": 74, "column": 19}}, {"id": 346, "type": "parenthesized_expression", "text": "(nspan->x1 - 1)", "parent": 343, "children": [347], "start_point": {"row": 74, "column": 20}, "end_point": {"row": 74, "column": 35}}, {"id": 347, "type": "binary_expression", "text": "nspan->x1 - 1", "parent": 346, "children": [348, 351, 352], "start_point": {"row": 74, "column": 21}, "end_point": {"row": 74, "column": 34}}, {"id": 348, "type": "field_expression", "text": "nspan->x1", "parent": 347, "children": [349, 350], "start_point": {"row": 74, "column": 21}, "end_point": {"row": 74, "column": 30}}, {"id": 349, "type": "identifier", "text": "nspan", "parent": 348, "children": [], "start_point": {"row": 74, "column": 21}, "end_point": {"row": 74, "column": 26}}, {"id": 350, "type": "field_identifier", "text": "x1", "parent": 348, "children": [], "start_point": {"row": 74, "column": 28}, "end_point": {"row": 74, "column": 30}}, {"id": 351, "type": "-", "text": "-", "parent": 347, "children": [], "start_point": {"row": 74, "column": 31}, "end_point": {"row": 74, "column": 32}}, {"id": 352, "type": "number_literal", "text": "1", "parent": 347, "children": [], "start_point": {"row": 74, "column": 33}, "end_point": {"row": 74, "column": 34}}, {"id": 353, "type": "assignment_expression", "text": "sp_stop = span", "parent": 341, "children": [354, 355, 356], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 18}}, {"id": 354, "type": "identifier", "text": "sp_stop", "parent": 353, "children": [], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 11}}, {"id": 355, "type": "=", "text": "=", "parent": 353, "children": [], "start_point": {"row": 76, "column": 12}, "end_point": {"row": 76, "column": 13}}, {"id": 356, "type": "identifier", "text": "span", "parent": 353, "children": [], "start_point": {"row": 76, "column": 14}, "end_point": {"row": 76, "column": 18}}, {"id": 357, "type": "break_statement", "text": "break;", "parent": 341, "children": [358], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 10}}, {"id": 358, "type": "break", "text": "break", "parent": 357, "children": [], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 9}}, {"id": 359, "type": "else_clause", "text": "else\n\t {\n\t /* there is no span after this one, so this has to be the stop */\n\t if (!nspan)\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }\n\t /* if new span ends before the next span starts with a gap of\n\t * 1 pixel (or more) */\n\t else if (x2 < (nspan->x1 - 1))\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }\n\t }", "parent": 308, "children": [], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 96, "column": 4}}, {"id": 360, "type": "if_statement", "text": "if (!nspan)\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }\n\t /* if new span ends before the next span starts with a gap of\n\t * 1 pixel (or more) */\n\t else if (x2 < (nspan->x1 - 1))\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }", "parent": 359, "children": [361, 371], "start_point": {"row": 84, "column": 6}, "end_point": {"row": 95, "column": 9}}, {"id": 361, "type": "parenthesized_expression", "text": "(!nspan)", "parent": 360, "children": [362], "start_point": {"row": 84, "column": 9}, "end_point": {"row": 84, "column": 17}}, {"id": 362, "type": "unary_expression", "text": "!nspan", "parent": 361, "children": [363, 364], "start_point": {"row": 84, "column": 10}, "end_point": {"row": 84, "column": 16}}, {"id": 363, "type": "!", "text": "!", "parent": 362, "children": [], "start_point": {"row": 84, "column": 10}, "end_point": {"row": 84, "column": 11}}, {"id": 364, "type": "identifier", "text": "nspan", "parent": 362, "children": [], "start_point": {"row": 84, "column": 11}, "end_point": {"row": 84, "column": 16}}, {"id": 365, "type": "assignment_expression", "text": "sp_stop = span", "parent": 360, "children": [366, 367, 368], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 18}}, {"id": 366, "type": "identifier", "text": "sp_stop", "parent": 365, "children": [], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 11}}, {"id": 367, "type": "=", "text": "=", "parent": 365, "children": [], "start_point": {"row": 86, "column": 12}, "end_point": {"row": 86, "column": 13}}, {"id": 368, "type": "identifier", "text": "span", "parent": 365, "children": [], "start_point": {"row": 86, "column": 14}, "end_point": {"row": 86, "column": 18}}, {"id": 369, "type": "break_statement", "text": "break;", "parent": 360, "children": [370], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 10}}, {"id": 370, "type": "break", "text": "break", "parent": 369, "children": [], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 9}}, {"id": 371, "type": "else_clause", "text": "else if (x2 < (nspan->x1 - 1))\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }", "parent": 360, "children": [372], "start_point": {"row": 91, "column": 6}, "end_point": {"row": 95, "column": 9}}, {"id": 372, "type": "if_statement", "text": "if (x2 < (nspan->x1 - 1))\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }", "parent": 371, "children": [373], "start_point": {"row": 91, "column": 11}, "end_point": {"row": 95, "column": 9}}, {"id": 373, "type": "parenthesized_expression", "text": "(x2 < (nspan->x1 - 1))", "parent": 372, "children": [374], "start_point": {"row": 91, "column": 14}, "end_point": {"row": 91, "column": 36}}, {"id": 374, "type": "binary_expression", "text": "x2 < (nspan->x1 - 1)", "parent": 373, "children": [375, 376, 377], "start_point": {"row": 91, "column": 15}, "end_point": {"row": 91, "column": 35}}, {"id": 375, "type": "identifier", "text": "x2", "parent": 374, "children": [], "start_point": {"row": 91, "column": 15}, "end_point": {"row": 91, "column": 17}}, {"id": 376, "type": "<", "text": "<", "parent": 374, "children": [], "start_point": {"row": 91, "column": 18}, "end_point": {"row": 91, "column": 19}}, {"id": 377, "type": "parenthesized_expression", "text": "(nspan->x1 - 1)", "parent": 374, "children": [378], "start_point": {"row": 91, "column": 20}, "end_point": {"row": 91, "column": 35}}, {"id": 378, "type": "binary_expression", "text": "nspan->x1 - 1", "parent": 377, "children": [379, 382, 383], "start_point": {"row": 91, "column": 21}, "end_point": {"row": 91, "column": 34}}, {"id": 379, "type": "field_expression", "text": "nspan->x1", "parent": 378, "children": [380, 381], "start_point": {"row": 91, "column": 21}, "end_point": {"row": 91, "column": 30}}, {"id": 380, "type": "identifier", "text": "nspan", "parent": 379, "children": [], "start_point": {"row": 91, "column": 21}, "end_point": {"row": 91, "column": 26}}, {"id": 381, "type": "field_identifier", "text": "x1", "parent": 379, "children": [], "start_point": {"row": 91, "column": 28}, "end_point": {"row": 91, "column": 30}}, {"id": 382, "type": "-", "text": "-", "parent": 378, "children": [], "start_point": {"row": 91, "column": 31}, "end_point": {"row": 91, "column": 32}}, {"id": 383, "type": "number_literal", "text": "1", "parent": 378, "children": [], "start_point": {"row": 91, "column": 33}, "end_point": {"row": 91, "column": 34}}, {"id": 384, "type": "assignment_expression", "text": "sp_stop = span", "parent": 372, "children": [385, 386, 387], "start_point": {"row": 93, "column": 4}, "end_point": {"row": 93, "column": 18}}, {"id": 385, "type": "identifier", "text": "sp_stop", "parent": 384, "children": [], "start_point": {"row": 93, "column": 4}, "end_point": {"row": 93, "column": 11}}, {"id": 386, "type": "=", "text": "=", "parent": 384, "children": [], "start_point": {"row": 93, "column": 12}, "end_point": {"row": 93, "column": 13}}, {"id": 387, "type": "identifier", "text": "span", "parent": 384, "children": [], "start_point": {"row": 93, "column": 14}, "end_point": {"row": 93, "column": 18}}, {"id": 388, "type": "break_statement", "text": "break;", "parent": 372, "children": [389], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 10}}, {"id": 389, "type": "break", "text": "break", "parent": 388, "children": [], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 9}}, {"id": 390, "type": "if_statement", "text": "if ((sp_start) && (sp_stop))\n {\n\t/* same start and stop */\n\tif (sp_start == sp_stop)\n\t {\n\t if (x2 < (sp_start->x1 - 1))\n\t {\n\t\t span2 = calloc(1, sizeof(Regionspan));\n\t\t span2->x1 = x1;\n\t\t span2->x2 = x2;\n\t\t rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);\n\t\t return;\n\t }\n\t if (x1 < sp_start->x1)\n\t sp_start->x1 = x1;\n\t if (x2 > sp_start->x2)\n\t sp_start->x2 = x2;\n\t return;\n\t }\n\telse\n\t {\n\t Eina_Inlist *l;\n\n\t /* remove all nodes after sp_start and before_sp_stop because\n\t * the new */\n\t for (l = (EINA_INLIST_GET(sp_start))->next; l != EINA_INLIST_GET(sp_stop);)\n\t {\n\t\t span = (Regionspan *)l;\n\t\t l = l->next;\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], span);\n\t\t free(span);\n\t }\n\t /* remove the end span */\n\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_stop);\n\t /* if the new span is before the start span - extend */\n\t if (x1 < sp_start->x1)\n\t sp_start->x1 = x1;\n\t /* if it goes beyond the stop span - extend stop span */\n\t if (x2 > sp_stop->x2)\n\t sp_stop->x2 = x2;\n\t /* extend start span to stop span */\n\t sp_start->x2 = sp_stop->x2;\n\t /* don't need stop span anymore */\n\t free(sp_stop);\n\t return;\n\t }\n }", "parent": 174, "children": [391], "start_point": {"row": 100, "column": 3}, "end_point": {"row": 146, "column": 6}}, {"id": 391, "type": "parenthesized_expression", "text": "((sp_start) && (sp_stop))", "parent": 390, "children": [392], "start_point": {"row": 100, "column": 6}, "end_point": {"row": 100, "column": 31}}, {"id": 392, "type": "binary_expression", "text": "(sp_start) && (sp_stop)", "parent": 391, "children": [393, 395, 396], "start_point": {"row": 100, "column": 7}, "end_point": {"row": 100, "column": 30}}, {"id": 393, "type": "parenthesized_expression", "text": "(sp_start)", "parent": 392, "children": [394], "start_point": {"row": 100, "column": 7}, "end_point": {"row": 100, "column": 17}}, {"id": 394, "type": "identifier", "text": "sp_start", "parent": 393, "children": [], "start_point": {"row": 100, "column": 8}, "end_point": {"row": 100, "column": 16}}, {"id": 395, "type": "&&", "text": "&&", "parent": 392, "children": [], "start_point": {"row": 100, "column": 18}, "end_point": {"row": 100, "column": 20}}, {"id": 396, "type": "parenthesized_expression", "text": "(sp_stop)", "parent": 392, "children": [397], "start_point": {"row": 100, "column": 21}, "end_point": {"row": 100, "column": 30}}, {"id": 397, "type": "identifier", "text": "sp_stop", "parent": 396, "children": [], "start_point": {"row": 100, "column": 22}, "end_point": {"row": 100, "column": 29}}, {"id": 398, "type": "if_statement", "text": "if (sp_start == sp_stop)\n\t {\n\t if (x2 < (sp_start->x1 - 1))\n\t {\n\t\t span2 = calloc(1, sizeof(Regionspan));\n\t\t span2->x1 = x1;\n\t\t span2->x2 = x2;\n\t\t rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);\n\t\t return;\n\t }\n\t if (x1 < sp_start->x1)\n\t sp_start->x1 = x1;\n\t if (x2 > sp_start->x2)\n\t sp_start->x2 = x2;\n\t return;\n\t }\n\telse\n\t {\n\t Eina_Inlist *l;\n\n\t /* remove all nodes after sp_start and before_sp_stop because\n\t * the new */\n\t for (l = (EINA_INLIST_GET(sp_start))->next; l != EINA_INLIST_GET(sp_stop);)\n\t {\n\t\t span = (Regionspan *)l;\n\t\t l = l->next;\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], span);\n\t\t free(span);\n\t }\n\t /* remove the end span */\n\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_stop);\n\t /* if the new span is before the start span - extend */\n\t if (x1 < sp_start->x1)\n\t sp_start->x1 = x1;\n\t /* if it goes beyond the stop span - extend stop span */\n\t if (x2 > sp_stop->x2)\n\t sp_stop->x2 = x2;\n\t /* extend start span to stop span */\n\t sp_start->x2 = sp_stop->x2;\n\t /* don't need stop span anymore */\n\t free(sp_stop);\n\t return;\n\t }", "parent": 390, "children": [399, 485], "start_point": {"row": 103, "column": 1}, "end_point": {"row": 145, "column": 4}}, {"id": 399, "type": "parenthesized_expression", "text": "(sp_start == sp_stop)", "parent": 398, "children": [400], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 103, "column": 25}}, {"id": 400, "type": "binary_expression", "text": "sp_start == sp_stop", "parent": 399, "children": [401, 402, 403], "start_point": {"row": 103, "column": 5}, "end_point": {"row": 103, "column": 24}}, {"id": 401, "type": "identifier", "text": "sp_start", "parent": 400, "children": [], "start_point": {"row": 103, "column": 5}, "end_point": {"row": 103, "column": 13}}, {"id": 402, "type": "==", "text": "==", "parent": 400, "children": [], "start_point": {"row": 103, "column": 14}, "end_point": {"row": 103, "column": 16}}, {"id": 403, "type": "identifier", "text": "sp_stop", "parent": 400, "children": [], "start_point": {"row": 103, "column": 17}, "end_point": {"row": 103, "column": 24}}, {"id": 404, "type": "if_statement", "text": "if (x2 < (sp_start->x1 - 1))\n\t {\n\t\t span2 = calloc(1, sizeof(Regionspan));\n\t\t span2->x1 = x1;\n\t\t span2->x2 = x2;\n\t\t rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);\n\t\t return;\n\t }", "parent": 398, "children": [405], "start_point": {"row": 105, "column": 6}, "end_point": {"row": 112, "column": 9}}, {"id": 405, "type": "parenthesized_expression", "text": "(x2 < (sp_start->x1 - 1))", "parent": 404, "children": [406], "start_point": {"row": 105, "column": 9}, "end_point": {"row": 105, "column": 34}}, {"id": 406, "type": "binary_expression", "text": "x2 < (sp_start->x1 - 1)", "parent": 405, "children": [407, 408, 409], "start_point": {"row": 105, "column": 10}, "end_point": {"row": 105, "column": 33}}, {"id": 407, "type": "identifier", "text": "x2", "parent": 406, "children": [], "start_point": {"row": 105, "column": 10}, "end_point": {"row": 105, "column": 12}}, {"id": 408, "type": "<", "text": "<", "parent": 406, "children": [], "start_point": {"row": 105, "column": 13}, "end_point": {"row": 105, "column": 14}}, {"id": 409, "type": "parenthesized_expression", "text": "(sp_start->x1 - 1)", "parent": 406, "children": [410], "start_point": {"row": 105, "column": 15}, "end_point": {"row": 105, "column": 33}}, {"id": 410, "type": "binary_expression", "text": "sp_start->x1 - 1", "parent": 409, "children": [411, 414, 415], "start_point": {"row": 105, "column": 16}, "end_point": {"row": 105, "column": 32}}, {"id": 411, "type": "field_expression", "text": "sp_start->x1", "parent": 410, "children": [412, 413], "start_point": {"row": 105, "column": 16}, "end_point": {"row": 105, "column": 28}}, {"id": 412, "type": "identifier", "text": "sp_start", "parent": 411, "children": [], "start_point": {"row": 105, "column": 16}, "end_point": {"row": 105, "column": 24}}, {"id": 413, "type": "field_identifier", "text": "x1", "parent": 411, "children": [], "start_point": {"row": 105, "column": 26}, "end_point": {"row": 105, "column": 28}}, {"id": 414, "type": "-", "text": "-", "parent": 410, "children": [], "start_point": {"row": 105, "column": 29}, "end_point": {"row": 105, "column": 30}}, {"id": 415, "type": "number_literal", "text": "1", "parent": 410, "children": [], "start_point": {"row": 105, "column": 31}, "end_point": {"row": 105, "column": 32}}, {"id": 416, "type": "assignment_expression", "text": "span2 = calloc(1, sizeof(Regionspan))", "parent": 404, "children": [417, 418, 419], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 41}}, {"id": 417, "type": "identifier", "text": "span2", "parent": 416, "children": [], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 9}}, {"id": 418, "type": "=", "text": "=", "parent": 416, "children": [], "start_point": {"row": 107, "column": 10}, "end_point": {"row": 107, "column": 11}}, {"id": 419, "type": "call_expression", "text": "calloc(1, sizeof(Regionspan))", "parent": 416, "children": [420, 421], "start_point": {"row": 107, "column": 12}, "end_point": {"row": 107, "column": 41}}, {"id": 420, "type": "identifier", "text": "calloc", "parent": 419, "children": [], "start_point": {"row": 107, "column": 12}, "end_point": {"row": 107, "column": 18}}, {"id": 421, "type": "argument_list", "text": "(1, sizeof(Regionspan))", "parent": 419, "children": [422, 423], "start_point": {"row": 107, "column": 18}, "end_point": {"row": 107, "column": 41}}, {"id": 422, "type": "number_literal", "text": "1", "parent": 421, "children": [], "start_point": {"row": 107, "column": 19}, "end_point": {"row": 107, "column": 20}}, {"id": 423, "type": "sizeof_expression", "text": "sizeof(Regionspan)", "parent": 421, "children": [424], "start_point": {"row": 107, "column": 22}, "end_point": {"row": 107, "column": 40}}, {"id": 424, "type": "parenthesized_expression", "text": "(Regionspan)", "parent": 423, "children": [425], "start_point": {"row": 107, "column": 28}, "end_point": {"row": 107, "column": 40}}, {"id": 425, "type": "identifier", "text": "Regionspan", "parent": 424, "children": [], "start_point": {"row": 107, "column": 29}, "end_point": {"row": 107, "column": 39}}, {"id": 426, "type": "assignment_expression", "text": "span2->x1 = x1", "parent": 404, "children": [427, 430, 431], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 18}}, {"id": 427, "type": "field_expression", "text": "span2->x1", "parent": 426, "children": [428, 429], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 13}}, {"id": 428, "type": "identifier", "text": "span2", "parent": 427, "children": [], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 9}}, {"id": 429, "type": "field_identifier", "text": "x1", "parent": 427, "children": [], "start_point": {"row": 108, "column": 11}, "end_point": {"row": 108, "column": 13}}, {"id": 430, "type": "=", "text": "=", "parent": 426, "children": [], "start_point": {"row": 108, "column": 14}, "end_point": {"row": 108, "column": 15}}, {"id": 431, "type": "identifier", "text": "x1", "parent": 426, "children": [], "start_point": {"row": 108, "column": 16}, "end_point": {"row": 108, "column": 18}}, {"id": 432, "type": "assignment_expression", "text": "span2->x2 = x2", "parent": 404, "children": [433, 436, 437], "start_point": {"row": 109, "column": 4}, "end_point": {"row": 109, "column": 18}}, {"id": 433, "type": "field_expression", "text": "span2->x2", "parent": 432, "children": [434, 435], "start_point": {"row": 109, "column": 4}, "end_point": {"row": 109, "column": 13}}, {"id": 434, "type": "identifier", "text": "span2", "parent": 433, "children": [], "start_point": {"row": 109, "column": 4}, "end_point": {"row": 109, "column": 9}}, {"id": 435, "type": "field_identifier", "text": "x2", "parent": 433, "children": [], "start_point": {"row": 109, "column": 11}, "end_point": {"row": 109, "column": 13}}, {"id": 436, "type": "=", "text": "=", "parent": 432, "children": [], "start_point": {"row": 109, "column": 14}, "end_point": {"row": 109, "column": 15}}, {"id": 437, "type": "identifier", "text": "x2", "parent": 432, "children": [], "start_point": {"row": 109, "column": 16}, "end_point": {"row": 109, "column": 18}}, {"id": 438, "type": "assignment_expression", "text": "rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start)", "parent": 404, "children": [439, 444, 445], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 78}}, {"id": 439, "type": "subscript_expression", "text": "rb->spans[y]", "parent": 438, "children": [440, 443], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 16}}, {"id": 440, "type": "field_expression", "text": "rb->spans", "parent": 439, "children": [441, 442], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 13}}, {"id": 441, "type": "identifier", "text": "rb", "parent": 440, "children": [], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 6}}, {"id": 442, "type": "field_identifier", "text": "spans", "parent": 440, "children": [], "start_point": {"row": 110, "column": 8}, "end_point": {"row": 110, "column": 13}}, {"id": 443, "type": "identifier", "text": "y", "parent": 439, "children": [], "start_point": {"row": 110, "column": 14}, "end_point": {"row": 110, "column": 15}}, {"id": 444, "type": "=", "text": "=", "parent": 438, "children": [], "start_point": {"row": 110, "column": 17}, "end_point": {"row": 110, "column": 18}}, {"id": 445, "type": "call_expression", "text": "eina_inlist_prepend_relative(rb->spans[y], span2, sp_start)", "parent": 438, "children": [446, 447], "start_point": {"row": 110, "column": 19}, "end_point": {"row": 110, "column": 78}}, {"id": 446, "type": "identifier", "text": "eina_inlist_prepend_relative", "parent": 445, "children": [], "start_point": {"row": 110, "column": 19}, "end_point": {"row": 110, "column": 47}}, {"id": 447, "type": "argument_list", "text": "(rb->spans[y], span2, sp_start)", "parent": 445, "children": [448, 453, 454], "start_point": {"row": 110, "column": 47}, "end_point": {"row": 110, "column": 78}}, {"id": 448, "type": "subscript_expression", "text": "rb->spans[y]", "parent": 447, "children": [449, 452], "start_point": {"row": 110, "column": 48}, "end_point": {"row": 110, "column": 60}}, {"id": 449, "type": "field_expression", "text": "rb->spans", "parent": 448, "children": [450, 451], "start_point": {"row": 110, "column": 48}, "end_point": {"row": 110, "column": 57}}, {"id": 450, "type": "identifier", "text": "rb", "parent": 449, "children": [], "start_point": {"row": 110, "column": 48}, "end_point": {"row": 110, "column": 50}}, {"id": 451, "type": "field_identifier", "text": "spans", "parent": 449, "children": [], "start_point": {"row": 110, "column": 52}, "end_point": {"row": 110, "column": 57}}, {"id": 452, "type": "identifier", "text": "y", "parent": 448, "children": [], "start_point": {"row": 110, "column": 58}, "end_point": {"row": 110, "column": 59}}, {"id": 453, "type": "identifier", "text": "span2", "parent": 447, "children": [], "start_point": {"row": 110, "column": 62}, "end_point": {"row": 110, "column": 67}}, {"id": 454, "type": "identifier", "text": "sp_start", "parent": 447, "children": [], "start_point": {"row": 110, "column": 69}, "end_point": {"row": 110, "column": 77}}, {"id": 455, "type": "return_statement", "text": "return;", "parent": 404, "children": [], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 111, "column": 11}}, {"id": 456, "type": "if_statement", "text": "if (x1 < sp_start->x1)\n\t sp_start->x1 = x1;", "parent": 398, "children": [457], "start_point": {"row": 113, "column": 6}, "end_point": {"row": 114, "column": 26}}, {"id": 457, "type": "parenthesized_expression", "text": "(x1 < sp_start->x1)", "parent": 456, "children": [458], "start_point": {"row": 113, "column": 9}, "end_point": {"row": 113, "column": 28}}, {"id": 458, "type": "binary_expression", "text": "x1 < sp_start->x1", "parent": 457, "children": [459, 460, 461], "start_point": {"row": 113, "column": 10}, "end_point": {"row": 113, "column": 27}}, {"id": 459, "type": "identifier", "text": "x1", "parent": 458, "children": [], "start_point": {"row": 113, "column": 10}, "end_point": {"row": 113, "column": 12}}, {"id": 460, "type": "<", "text": "<", "parent": 458, "children": [], "start_point": {"row": 113, "column": 13}, "end_point": {"row": 113, "column": 14}}, {"id": 461, "type": "field_expression", "text": "sp_start->x1", "parent": 458, "children": [462, 463], "start_point": {"row": 113, "column": 15}, "end_point": {"row": 113, "column": 27}}, {"id": 462, "type": "identifier", "text": "sp_start", "parent": 461, "children": [], "start_point": {"row": 113, "column": 15}, "end_point": {"row": 113, "column": 23}}, {"id": 463, "type": "field_identifier", "text": "x1", "parent": 461, "children": [], "start_point": {"row": 113, "column": 25}, "end_point": {"row": 113, "column": 27}}, {"id": 464, "type": "assignment_expression", "text": "sp_start->x1 = x1", "parent": 456, "children": [465, 468, 469], "start_point": {"row": 114, "column": 8}, "end_point": {"row": 114, "column": 25}}, {"id": 465, "type": "field_expression", "text": "sp_start->x1", "parent": 464, "children": [466, 467], "start_point": {"row": 114, "column": 8}, "end_point": {"row": 114, "column": 20}}, {"id": 466, "type": "identifier", "text": "sp_start", "parent": 465, "children": [], "start_point": {"row": 114, "column": 8}, "end_point": {"row": 114, "column": 16}}, {"id": 467, "type": "field_identifier", "text": "x1", "parent": 465, "children": [], "start_point": {"row": 114, "column": 18}, "end_point": {"row": 114, "column": 20}}, {"id": 468, "type": "=", "text": "=", "parent": 464, "children": [], "start_point": {"row": 114, "column": 21}, "end_point": {"row": 114, "column": 22}}, {"id": 469, "type": "identifier", "text": "x1", "parent": 464, "children": [], "start_point": {"row": 114, "column": 23}, "end_point": {"row": 114, "column": 25}}, {"id": 470, "type": "if_statement", "text": "if (x2 > sp_start->x2)\n\t sp_start->x2 = x2;", "parent": 398, "children": [471], "start_point": {"row": 115, "column": 6}, "end_point": {"row": 116, "column": 26}}, {"id": 471, "type": "parenthesized_expression", "text": "(x2 > sp_start->x2)", "parent": 470, "children": [472], "start_point": {"row": 115, "column": 9}, "end_point": {"row": 115, "column": 28}}, {"id": 472, "type": "binary_expression", "text": "x2 > sp_start->x2", "parent": 471, "children": [473, 474, 475], "start_point": {"row": 115, "column": 10}, "end_point": {"row": 115, "column": 27}}, {"id": 473, "type": "identifier", "text": "x2", "parent": 472, "children": [], "start_point": {"row": 115, "column": 10}, "end_point": {"row": 115, "column": 12}}, {"id": 474, "type": ">", "text": ">", "parent": 472, "children": [], "start_point": {"row": 115, "column": 13}, "end_point": {"row": 115, "column": 14}}, {"id": 475, "type": "field_expression", "text": "sp_start->x2", "parent": 472, "children": [476, 477], "start_point": {"row": 115, "column": 15}, "end_point": {"row": 115, "column": 27}}, {"id": 476, "type": "identifier", "text": "sp_start", "parent": 475, "children": [], "start_point": {"row": 115, "column": 15}, "end_point": {"row": 115, "column": 23}}, {"id": 477, "type": "field_identifier", "text": "x2", "parent": 475, "children": [], "start_point": {"row": 115, "column": 25}, "end_point": {"row": 115, "column": 27}}, {"id": 478, "type": "assignment_expression", "text": "sp_start->x2 = x2", "parent": 470, "children": [479, 482, 483], "start_point": {"row": 116, "column": 8}, "end_point": {"row": 116, "column": 25}}, {"id": 479, "type": "field_expression", "text": "sp_start->x2", "parent": 478, "children": [480, 481], "start_point": {"row": 116, "column": 8}, "end_point": {"row": 116, "column": 20}}, {"id": 480, "type": "identifier", "text": "sp_start", "parent": 479, "children": [], "start_point": {"row": 116, "column": 8}, "end_point": {"row": 116, "column": 16}}, {"id": 481, "type": "field_identifier", "text": "x2", "parent": 479, "children": [], "start_point": {"row": 116, "column": 18}, "end_point": {"row": 116, "column": 20}}, {"id": 482, "type": "=", "text": "=", "parent": 478, "children": [], "start_point": {"row": 116, "column": 21}, "end_point": {"row": 116, "column": 22}}, {"id": 483, "type": "identifier", "text": "x2", "parent": 478, "children": [], "start_point": {"row": 116, "column": 23}, "end_point": {"row": 116, "column": 25}}, {"id": 484, "type": "return_statement", "text": "return;", "parent": 398, "children": [], "start_point": {"row": 117, "column": 6}, "end_point": {"row": 117, "column": 13}}, {"id": 485, "type": "else_clause", "text": "else\n\t {\n\t Eina_Inlist *l;\n\n\t /* remove all nodes after sp_start and before_sp_stop because\n\t * the new */\n\t for (l = (EINA_INLIST_GET(sp_start))->next; l != EINA_INLIST_GET(sp_stop);)\n\t {\n\t\t span = (Regionspan *)l;\n\t\t l = l->next;\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], span);\n\t\t free(span);\n\t }\n\t /* remove the end span */\n\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_stop);\n\t /* if the new span is before the start span - extend */\n\t if (x1 < sp_start->x1)\n\t sp_start->x1 = x1;\n\t /* if it goes beyond the stop span - extend stop span */\n\t if (x2 > sp_stop->x2)\n\t sp_stop->x2 = x2;\n\t /* extend start span to stop span */\n\t sp_start->x2 = sp_stop->x2;\n\t /* don't need stop span anymore */\n\t free(sp_stop);\n\t return;\n\t }", "parent": 398, "children": [], "start_point": {"row": 119, "column": 1}, "end_point": {"row": 145, "column": 4}}, {"id": 486, "type": "declaration", "text": "Eina_Inlist *l;", "parent": 485, "children": [487, 488], "start_point": {"row": 121, "column": 6}, "end_point": {"row": 121, "column": 21}}, {"id": 487, "type": "type_identifier", "text": "Eina_Inlist", "parent": 486, "children": [], "start_point": {"row": 121, "column": 6}, "end_point": {"row": 121, "column": 17}}, {"id": 488, "type": "pointer_declarator", "text": "*l", "parent": 486, "children": [489, 490], "start_point": {"row": 121, "column": 18}, "end_point": {"row": 121, "column": 20}}, {"id": 489, "type": "*", "text": "*", "parent": 488, "children": [], "start_point": {"row": 121, "column": 18}, "end_point": {"row": 121, "column": 19}}, {"id": 490, "type": "identifier", "text": "l", "parent": 488, "children": [], "start_point": {"row": 121, "column": 19}, "end_point": {"row": 121, "column": 20}}, {"id": 491, "type": "for_statement", "text": "for (l = (EINA_INLIST_GET(sp_start))->next; l != EINA_INLIST_GET(sp_stop);)\n\t {\n\t\t span = (Regionspan *)l;\n\t\t l = l->next;\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], span);\n\t\t free(span);\n\t }", "parent": 485, "children": [492, 502], "start_point": {"row": 125, "column": 6}, "end_point": {"row": 131, "column": 9}}, {"id": 492, "type": "assignment_expression", "text": "l = (EINA_INLIST_GET(sp_start))->next", "parent": 491, "children": [493, 494, 495], "start_point": {"row": 125, "column": 11}, "end_point": {"row": 125, "column": 48}}, {"id": 493, "type": "identifier", "text": "l", "parent": 492, "children": [], "start_point": {"row": 125, "column": 11}, "end_point": {"row": 125, "column": 12}}, {"id": 494, "type": "=", "text": "=", "parent": 492, "children": [], "start_point": {"row": 125, "column": 13}, "end_point": {"row": 125, "column": 14}}, {"id": 495, "type": "field_expression", "text": "(EINA_INLIST_GET(sp_start))->next", "parent": 492, "children": [496, 501], "start_point": {"row": 125, "column": 15}, "end_point": {"row": 125, "column": 48}}, {"id": 496, "type": "parenthesized_expression", "text": "(EINA_INLIST_GET(sp_start))", "parent": 495, "children": [497], "start_point": {"row": 125, "column": 15}, "end_point": {"row": 125, "column": 42}}, {"id": 497, "type": "call_expression", "text": "EINA_INLIST_GET(sp_start)", "parent": 496, "children": [498, 499], "start_point": {"row": 125, "column": 16}, "end_point": {"row": 125, "column": 41}}, {"id": 498, "type": "identifier", "text": "EINA_INLIST_GET", "parent": 497, "children": [], "start_point": {"row": 125, "column": 16}, "end_point": {"row": 125, "column": 31}}, {"id": 499, "type": "argument_list", "text": "(sp_start)", "parent": 497, "children": [500], "start_point": {"row": 125, "column": 31}, "end_point": {"row": 125, "column": 41}}, {"id": 500, "type": "identifier", "text": "sp_start", "parent": 499, "children": [], "start_point": {"row": 125, "column": 32}, "end_point": {"row": 125, "column": 40}}, {"id": 501, "type": "field_identifier", "text": "next", "parent": 495, "children": [], "start_point": {"row": 125, "column": 44}, "end_point": {"row": 125, "column": 48}}, {"id": 502, "type": "binary_expression", "text": "l != EINA_INLIST_GET(sp_stop)", "parent": 491, "children": [503, 504, 505], "start_point": {"row": 125, "column": 50}, "end_point": {"row": 125, "column": 79}}, {"id": 503, "type": "identifier", "text": "l", "parent": 502, "children": [], "start_point": {"row": 125, "column": 50}, "end_point": {"row": 125, "column": 51}}, {"id": 504, "type": "!=", "text": "!=", "parent": 502, "children": [], "start_point": {"row": 125, "column": 52}, "end_point": {"row": 125, "column": 54}}, {"id": 505, "type": "call_expression", "text": "EINA_INLIST_GET(sp_stop)", "parent": 502, "children": [506, 507], "start_point": {"row": 125, "column": 55}, "end_point": {"row": 125, "column": 79}}, {"id": 506, "type": "identifier", "text": "EINA_INLIST_GET", "parent": 505, "children": [], "start_point": {"row": 125, "column": 55}, "end_point": {"row": 125, "column": 70}}, {"id": 507, "type": "argument_list", "text": "(sp_stop)", "parent": 505, "children": [508], "start_point": {"row": 125, "column": 70}, "end_point": {"row": 125, "column": 79}}, {"id": 508, "type": "identifier", "text": "sp_stop", "parent": 507, "children": [], "start_point": {"row": 125, "column": 71}, "end_point": {"row": 125, "column": 78}}, {"id": 509, "type": "assignment_expression", "text": "span = (Regionspan *)l", "parent": 491, "children": [510, 511, 512], "start_point": {"row": 127, "column": 4}, "end_point": {"row": 127, "column": 26}}, {"id": 510, "type": "identifier", "text": "span", "parent": 509, "children": [], "start_point": {"row": 127, "column": 4}, "end_point": {"row": 127, "column": 8}}, {"id": 511, "type": "=", "text": "=", "parent": 509, "children": [], "start_point": {"row": 127, "column": 9}, "end_point": {"row": 127, "column": 10}}, {"id": 512, "type": "cast_expression", "text": "(Regionspan *)l", "parent": 509, "children": [513, 517], "start_point": {"row": 127, "column": 11}, "end_point": {"row": 127, "column": 26}}, {"id": 513, "type": "type_descriptor", "text": "Regionspan *", "parent": 512, "children": [514, 515], "start_point": {"row": 127, "column": 12}, "end_point": {"row": 127, "column": 24}}, {"id": 514, "type": "type_identifier", "text": "Regionspan", "parent": 513, "children": [], "start_point": {"row": 127, "column": 12}, "end_point": {"row": 127, "column": 22}}, {"id": 515, "type": "abstract_pointer_declarator", "text": "*", "parent": 513, "children": [516], "start_point": {"row": 127, "column": 23}, "end_point": {"row": 127, "column": 24}}, {"id": 516, "type": "*", "text": "*", "parent": 515, "children": [], "start_point": {"row": 127, "column": 23}, "end_point": {"row": 127, "column": 24}}, {"id": 517, "type": "identifier", "text": "l", "parent": 512, "children": [], "start_point": {"row": 127, "column": 25}, "end_point": {"row": 127, "column": 26}}, {"id": 518, "type": "assignment_expression", "text": "l = l->next", "parent": 491, "children": [519, 520, 521], "start_point": {"row": 128, "column": 4}, "end_point": {"row": 128, "column": 15}}, {"id": 519, "type": "identifier", "text": "l", "parent": 518, "children": [], "start_point": {"row": 128, "column": 4}, "end_point": {"row": 128, "column": 5}}, {"id": 520, "type": "=", "text": "=", "parent": 518, "children": [], "start_point": {"row": 128, "column": 6}, "end_point": {"row": 128, "column": 7}}, {"id": 521, "type": "field_expression", "text": "l->next", "parent": 518, "children": [522, 523], "start_point": {"row": 128, "column": 8}, "end_point": {"row": 128, "column": 15}}, {"id": 522, "type": "identifier", "text": "l", "parent": 521, "children": [], "start_point": {"row": 128, "column": 8}, "end_point": {"row": 128, "column": 9}}, {"id": 523, "type": "field_identifier", "text": "next", "parent": 521, "children": [], "start_point": {"row": 128, "column": 11}, "end_point": {"row": 128, "column": 15}}, {"id": 524, "type": "assignment_expression", "text": "rb->spans[y] = eina_inlist_remove(rb->spans[y], span)", "parent": 491, "children": [525, 530, 531], "start_point": {"row": 129, "column": 4}, "end_point": {"row": 129, "column": 57}}, {"id": 525, "type": "subscript_expression", "text": "rb->spans[y]", "parent": 524, "children": [526, 529], "start_point": {"row": 129, "column": 4}, "end_point": {"row": 129, "column": 16}}, {"id": 526, "type": "field_expression", "text": "rb->spans", "parent": 525, "children": [527, 528], "start_point": {"row": 129, "column": 4}, "end_point": {"row": 129, "column": 13}}, {"id": 527, "type": "identifier", "text": "rb", "parent": 526, "children": [], "start_point": {"row": 129, "column": 4}, "end_point": {"row": 129, "column": 6}}, {"id": 528, "type": "field_identifier", "text": "spans", "parent": 526, "children": [], "start_point": {"row": 129, "column": 8}, "end_point": {"row": 129, "column": 13}}, {"id": 529, "type": "identifier", "text": "y", "parent": 525, "children": [], "start_point": {"row": 129, "column": 14}, "end_point": {"row": 129, "column": 15}}, {"id": 530, "type": "=", "text": "=", "parent": 524, "children": [], "start_point": {"row": 129, "column": 17}, "end_point": {"row": 129, "column": 18}}, {"id": 531, "type": "call_expression", "text": "eina_inlist_remove(rb->spans[y], span)", "parent": 524, "children": [532, 533], "start_point": {"row": 129, "column": 19}, "end_point": {"row": 129, "column": 57}}, {"id": 532, "type": "identifier", "text": "eina_inlist_remove", "parent": 531, "children": [], "start_point": {"row": 129, "column": 19}, "end_point": {"row": 129, "column": 37}}, {"id": 533, "type": "argument_list", "text": "(rb->spans[y], span)", "parent": 531, "children": [534, 539], "start_point": {"row": 129, "column": 37}, "end_point": {"row": 129, "column": 57}}, {"id": 534, "type": "subscript_expression", "text": "rb->spans[y]", "parent": 533, "children": [535, 538], "start_point": {"row": 129, "column": 38}, "end_point": {"row": 129, "column": 50}}, {"id": 535, "type": "field_expression", "text": "rb->spans", "parent": 534, "children": [536, 537], "start_point": {"row": 129, "column": 38}, "end_point": {"row": 129, "column": 47}}, {"id": 536, "type": "identifier", "text": "rb", "parent": 535, "children": [], "start_point": {"row": 129, "column": 38}, "end_point": {"row": 129, "column": 40}}, {"id": 537, "type": "field_identifier", "text": "spans", "parent": 535, "children": [], "start_point": {"row": 129, "column": 42}, "end_point": {"row": 129, "column": 47}}, {"id": 538, "type": "identifier", "text": "y", "parent": 534, "children": [], "start_point": {"row": 129, "column": 48}, "end_point": {"row": 129, "column": 49}}, {"id": 539, "type": "identifier", "text": "span", "parent": 533, "children": [], "start_point": {"row": 129, "column": 52}, "end_point": {"row": 129, "column": 56}}, {"id": 540, "type": "call_expression", "text": "free(span)", "parent": 491, "children": [541, 542], "start_point": {"row": 130, "column": 4}, "end_point": {"row": 130, "column": 14}}, {"id": 541, "type": "identifier", "text": "free", "parent": 540, "children": [], "start_point": {"row": 130, "column": 4}, "end_point": {"row": 130, "column": 8}}, {"id": 542, "type": "argument_list", "text": "(span)", "parent": 540, "children": [543], "start_point": {"row": 130, "column": 8}, "end_point": {"row": 130, "column": 14}}, {"id": 543, "type": "identifier", "text": "span", "parent": 542, "children": [], "start_point": {"row": 130, "column": 9}, "end_point": {"row": 130, "column": 13}}, {"id": 544, "type": "assignment_expression", "text": "rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_stop)", "parent": 485, "children": [545, 550, 551], "start_point": {"row": 133, "column": 6}, "end_point": {"row": 133, "column": 62}}, {"id": 545, "type": "subscript_expression", "text": "rb->spans[y]", "parent": 544, "children": [546, 549], "start_point": {"row": 133, "column": 6}, "end_point": {"row": 133, "column": 18}}, {"id": 546, "type": "field_expression", "text": "rb->spans", "parent": 545, "children": [547, 548], "start_point": {"row": 133, "column": 6}, "end_point": {"row": 133, "column": 15}}, {"id": 547, "type": "identifier", "text": "rb", "parent": 546, "children": [], "start_point": {"row": 133, "column": 6}, "end_point": {"row": 133, "column": 8}}, {"id": 548, "type": "field_identifier", "text": "spans", "parent": 546, "children": [], "start_point": {"row": 133, "column": 10}, "end_point": {"row": 133, "column": 15}}, {"id": 549, "type": "identifier", "text": "y", "parent": 545, "children": [], "start_point": {"row": 133, "column": 16}, "end_point": {"row": 133, "column": 17}}, {"id": 550, "type": "=", "text": "=", "parent": 544, "children": [], "start_point": {"row": 133, "column": 19}, "end_point": {"row": 133, "column": 20}}, {"id": 551, "type": "call_expression", "text": "eina_inlist_remove(rb->spans[y], sp_stop)", "parent": 544, "children": [552, 553], "start_point": {"row": 133, "column": 21}, "end_point": {"row": 133, "column": 62}}, {"id": 552, "type": "identifier", "text": "eina_inlist_remove", "parent": 551, "children": [], "start_point": {"row": 133, "column": 21}, "end_point": {"row": 133, "column": 39}}, {"id": 553, "type": "argument_list", "text": "(rb->spans[y], sp_stop)", "parent": 551, "children": [554, 559], "start_point": {"row": 133, "column": 39}, "end_point": {"row": 133, "column": 62}}, {"id": 554, "type": "subscript_expression", "text": "rb->spans[y]", "parent": 553, "children": [555, 558], "start_point": {"row": 133, "column": 40}, "end_point": {"row": 133, "column": 52}}, {"id": 555, "type": "field_expression", "text": "rb->spans", "parent": 554, "children": [556, 557], "start_point": {"row": 133, "column": 40}, "end_point": {"row": 133, "column": 49}}, {"id": 556, "type": "identifier", "text": "rb", "parent": 555, "children": [], "start_point": {"row": 133, "column": 40}, "end_point": {"row": 133, "column": 42}}, {"id": 557, "type": "field_identifier", "text": "spans", "parent": 555, "children": [], "start_point": {"row": 133, "column": 44}, "end_point": {"row": 133, "column": 49}}, {"id": 558, "type": "identifier", "text": "y", "parent": 554, "children": [], "start_point": {"row": 133, "column": 50}, "end_point": {"row": 133, "column": 51}}, {"id": 559, "type": "identifier", "text": "sp_stop", "parent": 553, "children": [], "start_point": {"row": 133, "column": 54}, "end_point": {"row": 133, "column": 61}}, {"id": 560, "type": "if_statement", "text": "if (x1 < sp_start->x1)\n\t sp_start->x1 = x1;", "parent": 485, "children": [561], "start_point": {"row": 135, "column": 6}, "end_point": {"row": 136, "column": 26}}, {"id": 561, "type": "parenthesized_expression", "text": "(x1 < sp_start->x1)", "parent": 560, "children": [562], "start_point": {"row": 135, "column": 9}, "end_point": {"row": 135, "column": 28}}, {"id": 562, "type": "binary_expression", "text": "x1 < sp_start->x1", "parent": 561, "children": [563, 564, 565], "start_point": {"row": 135, "column": 10}, "end_point": {"row": 135, "column": 27}}, {"id": 563, "type": "identifier", "text": "x1", "parent": 562, "children": [], "start_point": {"row": 135, "column": 10}, "end_point": {"row": 135, "column": 12}}, {"id": 564, "type": "<", "text": "<", "parent": 562, "children": [], "start_point": {"row": 135, "column": 13}, "end_point": {"row": 135, "column": 14}}, {"id": 565, "type": "field_expression", "text": "sp_start->x1", "parent": 562, "children": [566, 567], "start_point": {"row": 135, "column": 15}, "end_point": {"row": 135, "column": 27}}, {"id": 566, "type": "identifier", "text": "sp_start", "parent": 565, "children": [], "start_point": {"row": 135, "column": 15}, "end_point": {"row": 135, "column": 23}}, {"id": 567, "type": "field_identifier", "text": "x1", "parent": 565, "children": [], "start_point": {"row": 135, "column": 25}, "end_point": {"row": 135, "column": 27}}, {"id": 568, "type": "assignment_expression", "text": "sp_start->x1 = x1", "parent": 560, "children": [569, 572, 573], "start_point": {"row": 136, "column": 8}, "end_point": {"row": 136, "column": 25}}, {"id": 569, "type": "field_expression", "text": "sp_start->x1", "parent": 568, "children": [570, 571], "start_point": {"row": 136, "column": 8}, "end_point": {"row": 136, "column": 20}}, {"id": 570, "type": "identifier", "text": "sp_start", "parent": 569, "children": [], "start_point": {"row": 136, "column": 8}, "end_point": {"row": 136, "column": 16}}, {"id": 571, "type": "field_identifier", "text": "x1", "parent": 569, "children": [], "start_point": {"row": 136, "column": 18}, "end_point": {"row": 136, "column": 20}}, {"id": 572, "type": "=", "text": "=", "parent": 568, "children": [], "start_point": {"row": 136, "column": 21}, "end_point": {"row": 136, "column": 22}}, {"id": 573, "type": "identifier", "text": "x1", "parent": 568, "children": [], "start_point": {"row": 136, "column": 23}, "end_point": {"row": 136, "column": 25}}, {"id": 574, "type": "if_statement", "text": "if (x2 > sp_stop->x2)\n\t sp_stop->x2 = x2;", "parent": 485, "children": [575], "start_point": {"row": 138, "column": 6}, "end_point": {"row": 139, "column": 25}}, {"id": 575, "type": "parenthesized_expression", "text": "(x2 > sp_stop->x2)", "parent": 574, "children": [576], "start_point": {"row": 138, "column": 9}, "end_point": {"row": 138, "column": 27}}, {"id": 576, "type": "binary_expression", "text": "x2 > sp_stop->x2", "parent": 575, "children": [577, 578, 579], "start_point": {"row": 138, "column": 10}, "end_point": {"row": 138, "column": 26}}, {"id": 577, "type": "identifier", "text": "x2", "parent": 576, "children": [], "start_point": {"row": 138, "column": 10}, "end_point": {"row": 138, "column": 12}}, {"id": 578, "type": ">", "text": ">", "parent": 576, "children": [], "start_point": {"row": 138, "column": 13}, "end_point": {"row": 138, "column": 14}}, {"id": 579, "type": "field_expression", "text": "sp_stop->x2", "parent": 576, "children": [580, 581], "start_point": {"row": 138, "column": 15}, "end_point": {"row": 138, "column": 26}}, {"id": 580, "type": "identifier", "text": "sp_stop", "parent": 579, "children": [], "start_point": {"row": 138, "column": 15}, "end_point": {"row": 138, "column": 22}}, {"id": 581, "type": "field_identifier", "text": "x2", "parent": 579, "children": [], "start_point": {"row": 138, "column": 24}, "end_point": {"row": 138, "column": 26}}, {"id": 582, "type": "assignment_expression", "text": "sp_stop->x2 = x2", "parent": 574, "children": [583, 586, 587], "start_point": {"row": 139, "column": 8}, "end_point": {"row": 139, "column": 24}}, {"id": 583, "type": "field_expression", "text": "sp_stop->x2", "parent": 582, "children": [584, 585], "start_point": {"row": 139, "column": 8}, "end_point": {"row": 139, "column": 19}}, {"id": 584, "type": "identifier", "text": "sp_stop", "parent": 583, "children": [], "start_point": {"row": 139, "column": 8}, "end_point": {"row": 139, "column": 15}}, {"id": 585, "type": "field_identifier", "text": "x2", "parent": 583, "children": [], "start_point": {"row": 139, "column": 17}, "end_point": {"row": 139, "column": 19}}, {"id": 586, "type": "=", "text": "=", "parent": 582, "children": [], "start_point": {"row": 139, "column": 20}, "end_point": {"row": 139, "column": 21}}, {"id": 587, "type": "identifier", "text": "x2", "parent": 582, "children": [], "start_point": {"row": 139, "column": 22}, "end_point": {"row": 139, "column": 24}}, {"id": 588, "type": "assignment_expression", "text": "sp_start->x2 = sp_stop->x2", "parent": 485, "children": [589, 592, 593], "start_point": {"row": 141, "column": 6}, "end_point": {"row": 141, "column": 32}}, {"id": 589, "type": "field_expression", "text": "sp_start->x2", "parent": 588, "children": [590, 591], "start_point": {"row": 141, "column": 6}, "end_point": {"row": 141, "column": 18}}, {"id": 590, "type": "identifier", "text": "sp_start", "parent": 589, "children": [], "start_point": {"row": 141, "column": 6}, "end_point": {"row": 141, "column": 14}}, {"id": 591, "type": "field_identifier", "text": "x2", "parent": 589, "children": [], "start_point": {"row": 141, "column": 16}, "end_point": {"row": 141, "column": 18}}, {"id": 592, "type": "=", "text": "=", "parent": 588, "children": [], "start_point": {"row": 141, "column": 19}, "end_point": {"row": 141, "column": 20}}, {"id": 593, "type": "field_expression", "text": "sp_stop->x2", "parent": 588, "children": [594, 595], "start_point": {"row": 141, "column": 21}, "end_point": {"row": 141, "column": 32}}, {"id": 594, "type": "identifier", "text": "sp_stop", "parent": 593, "children": [], "start_point": {"row": 141, "column": 21}, "end_point": {"row": 141, "column": 28}}, {"id": 595, "type": "field_identifier", "text": "x2", "parent": 593, "children": [], "start_point": {"row": 141, "column": 30}, "end_point": {"row": 141, "column": 32}}, {"id": 596, "type": "call_expression", "text": "free(sp_stop)", "parent": 485, "children": [597, 598], "start_point": {"row": 143, "column": 6}, "end_point": {"row": 143, "column": 19}}, {"id": 597, "type": "identifier", "text": "free", "parent": 596, "children": [], "start_point": {"row": 143, "column": 6}, "end_point": {"row": 143, "column": 10}}, {"id": 598, "type": "argument_list", "text": "(sp_stop)", "parent": 596, "children": [599], "start_point": {"row": 143, "column": 10}, "end_point": {"row": 143, "column": 19}}, {"id": 599, "type": "identifier", "text": "sp_stop", "parent": 598, "children": [], "start_point": {"row": 143, "column": 11}, "end_point": {"row": 143, "column": 18}}, {"id": 600, "type": "return_statement", "text": "return;", "parent": 485, "children": [], "start_point": {"row": 144, "column": 6}, "end_point": {"row": 144, "column": 13}}, {"id": 601, "type": "assignment_expression", "text": "span2 = calloc(1, sizeof(Regionspan))", "parent": 174, "children": [602, 603, 604], "start_point": {"row": 148, "column": 3}, "end_point": {"row": 148, "column": 40}}, {"id": 602, "type": "identifier", "text": "span2", "parent": 601, "children": [], "start_point": {"row": 148, "column": 3}, "end_point": {"row": 148, "column": 8}}, {"id": 603, "type": "=", "text": "=", "parent": 601, "children": [], "start_point": {"row": 148, "column": 9}, "end_point": {"row": 148, "column": 10}}, {"id": 604, "type": "call_expression", "text": "calloc(1, sizeof(Regionspan))", "parent": 601, "children": [605, 606], "start_point": {"row": 148, "column": 11}, "end_point": {"row": 148, "column": 40}}, {"id": 605, "type": "identifier", "text": "calloc", "parent": 604, "children": [], "start_point": {"row": 148, "column": 11}, "end_point": {"row": 148, "column": 17}}, {"id": 606, "type": "argument_list", "text": "(1, sizeof(Regionspan))", "parent": 604, "children": [607, 608], "start_point": {"row": 148, "column": 17}, "end_point": {"row": 148, "column": 40}}, {"id": 607, "type": "number_literal", "text": "1", "parent": 606, "children": [], "start_point": {"row": 148, "column": 18}, "end_point": {"row": 148, "column": 19}}, {"id": 608, "type": "sizeof_expression", "text": "sizeof(Regionspan)", "parent": 606, "children": [609], "start_point": {"row": 148, "column": 21}, "end_point": {"row": 148, "column": 39}}, {"id": 609, "type": "parenthesized_expression", "text": "(Regionspan)", "parent": 608, "children": [610], "start_point": {"row": 148, "column": 27}, "end_point": {"row": 148, "column": 39}}, {"id": 610, "type": "identifier", "text": "Regionspan", "parent": 609, "children": [], "start_point": {"row": 148, "column": 28}, "end_point": {"row": 148, "column": 38}}, {"id": 611, "type": "assignment_expression", "text": "span2->x1 = x1", "parent": 174, "children": [612, 615, 616], "start_point": {"row": 149, "column": 3}, "end_point": {"row": 149, "column": 17}}, {"id": 612, "type": "field_expression", "text": "span2->x1", "parent": 611, "children": [613, 614], "start_point": {"row": 149, "column": 3}, "end_point": {"row": 149, "column": 12}}, {"id": 613, "type": "identifier", "text": "span2", "parent": 612, "children": [], "start_point": {"row": 149, "column": 3}, "end_point": {"row": 149, "column": 8}}, {"id": 614, "type": "field_identifier", "text": "x1", "parent": 612, "children": [], "start_point": {"row": 149, "column": 10}, "end_point": {"row": 149, "column": 12}}, {"id": 615, "type": "=", "text": "=", "parent": 611, "children": [], "start_point": {"row": 149, "column": 13}, "end_point": {"row": 149, "column": 14}}, {"id": 616, "type": "identifier", "text": "x1", "parent": 611, "children": [], "start_point": {"row": 149, "column": 15}, "end_point": {"row": 149, "column": 17}}, {"id": 617, "type": "assignment_expression", "text": "span2->x2 = x2", "parent": 174, "children": [618, 621, 622], "start_point": {"row": 150, "column": 3}, "end_point": {"row": 150, "column": 17}}, {"id": 618, "type": "field_expression", "text": "span2->x2", "parent": 617, "children": [619, 620], "start_point": {"row": 150, "column": 3}, "end_point": {"row": 150, "column": 12}}, {"id": 619, "type": "identifier", "text": "span2", "parent": 618, "children": [], "start_point": {"row": 150, "column": 3}, "end_point": {"row": 150, "column": 8}}, {"id": 620, "type": "field_identifier", "text": "x2", "parent": 618, "children": [], "start_point": {"row": 150, "column": 10}, "end_point": {"row": 150, "column": 12}}, {"id": 621, "type": "=", "text": "=", "parent": 617, "children": [], "start_point": {"row": 150, "column": 13}, "end_point": {"row": 150, "column": 14}}, {"id": 622, "type": "identifier", "text": "x2", "parent": 617, "children": [], "start_point": {"row": 150, "column": 15}, "end_point": {"row": 150, "column": 17}}, {"id": 623, "type": "assignment_expression", "text": "rb->spans[y] = eina_inlist_append(rb->spans[y], span2)", "parent": 174, "children": [624, 629, 630], "start_point": {"row": 151, "column": 3}, "end_point": {"row": 151, "column": 57}}, {"id": 624, "type": "subscript_expression", "text": "rb->spans[y]", "parent": 623, "children": [625, 628], "start_point": {"row": 151, "column": 3}, "end_point": {"row": 151, "column": 15}}, {"id": 625, "type": "field_expression", "text": "rb->spans", "parent": 624, "children": [626, 627], "start_point": {"row": 151, "column": 3}, "end_point": {"row": 151, "column": 12}}, {"id": 626, "type": "identifier", "text": "rb", "parent": 625, "children": [], "start_point": {"row": 151, "column": 3}, "end_point": {"row": 151, "column": 5}}, {"id": 627, "type": "field_identifier", "text": "spans", "parent": 625, "children": [], "start_point": {"row": 151, "column": 7}, "end_point": {"row": 151, "column": 12}}, {"id": 628, "type": "identifier", "text": "y", "parent": 624, "children": [], "start_point": {"row": 151, "column": 13}, "end_point": {"row": 151, "column": 14}}, {"id": 629, "type": "=", "text": "=", "parent": 623, "children": [], "start_point": {"row": 151, "column": 16}, "end_point": {"row": 151, "column": 17}}, {"id": 630, "type": "call_expression", "text": "eina_inlist_append(rb->spans[y], span2)", "parent": 623, "children": [631, 632], "start_point": {"row": 151, "column": 18}, "end_point": {"row": 151, "column": 57}}, {"id": 631, "type": "identifier", "text": "eina_inlist_append", "parent": 630, "children": [], "start_point": {"row": 151, "column": 18}, "end_point": {"row": 151, "column": 36}}, {"id": 632, "type": "argument_list", "text": "(rb->spans[y], span2)", "parent": 630, "children": [633, 638], "start_point": {"row": 151, "column": 36}, "end_point": {"row": 151, "column": 57}}, {"id": 633, "type": "subscript_expression", "text": "rb->spans[y]", "parent": 632, "children": [634, 637], "start_point": {"row": 151, "column": 37}, "end_point": {"row": 151, "column": 49}}, {"id": 634, "type": "field_expression", "text": "rb->spans", "parent": 633, "children": [635, 636], "start_point": {"row": 151, "column": 37}, "end_point": {"row": 151, "column": 46}}, {"id": 635, "type": "identifier", "text": "rb", "parent": 634, "children": [], "start_point": {"row": 151, "column": 37}, "end_point": {"row": 151, "column": 39}}, {"id": 636, "type": "field_identifier", "text": "spans", "parent": 634, "children": [], "start_point": {"row": 151, "column": 41}, "end_point": {"row": 151, "column": 46}}, {"id": 637, "type": "identifier", "text": "y", "parent": 633, "children": [], "start_point": {"row": 151, "column": 47}, "end_point": {"row": 151, "column": 48}}, {"id": 638, "type": "identifier", "text": "span2", "parent": 632, "children": [], "start_point": {"row": 151, "column": 51}, "end_point": {"row": 151, "column": 56}}, {"id": 639, "type": "function_definition", "text": "void\nevas_common_regionbuf_span_del(Regionbuf *rb, int x1, int x2, int y)\n{\n /* FIXME: del span */\n Regionspan *span, *span2, *nspan, *sp_start, *sp_stop;\n\n /* abort if outside */\n if ((y < 0) ||\n (y >= rb->h) ||\n (x2 < 0) ||\n (x1 >= rb->w)) return;\n /* clip to horiz bounds */\n if (x1 < 0) x1 = 0;\n if (x2 < (rb->w - 1)) x2 = rb->w - 1;\n sp_start = NULL;\n sp_stop = NULL;\n EINA_INLIST_FOREACH(rb->spans[y], span)\n {\n\tnspan = (Regionspan *)(EINA_INLIST_GET(l))->next;\n\t/* we dont know what t do with the span yet */\n\tif (!sp_start)\n\t {\n\t /* if new span starts before or on this span or just after\n\t * with no gap */\n\t if (x1 <= (span->x2))\n\t sp_start = span;\n\t /* if there is no next span */\n\t if (!nspan)\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }\n\t /* if new span ends before the next span starts with a gap of\n\t * 1 pixel (or more) */\n\t else if (x2 < nspan->x1)\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }\n\t }\n\t/* we already know it already starts before or in sp_start */\n\telse\n\t {\n\t /* there is no span after this one, so this has to be the stop */\n\t if (!nspan)\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }\n\t /* if new span ends before the next span starts with a gap of\n\t * 1 pixel (or more) */\n\t else if (x2 < nspan->x1)\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }\n\t }\n }\n /* sp_start is where the new span starts in or before */\n /* sp_stop is where the new span stops in or after */\n if ((sp_start) && (sp_stop))\n {\n\t/* same start and stop */\n\tif (sp_start == sp_stop)\n\t {\n\t /* if it ends before this the span start starts... return */\n\t if (x2 < sp_start->x1)\n\t return;\n\t /* it starts on or before this span */\n\t else if (x1 <= sp_start->x1)\n\t {\n\t\t /* right edge is within the span */\n\t\t if (x2 < sp_start->x2)\n\t\t {\n\t\t sp_start->x2 = x2;\n\t\t return;\n\t\t }\n\t\t else\n\t\t {\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n\t\t return;\n\t\t }\n\t }\n\t /* it ends on or after the end of this span */\n\t else if (x2 >= sp_start->x2)\n\t {\n\t\t /* it starts after the start */\n\t\t if (x1 > sp_start->x1)\n\t\t {\n\t\t sp_start->x1 = x1;\n\t\t return;\n\t\t }\n\t\t /* remove it all */\n\t\t else\n\t\t {\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n\t\t return;\n\t\t }\n\t\t return;\n\t }\n\t /* this breaks the span into 2 */\n\t else\n\t {\n\t\t span2 = calloc(1, sizeof(Regionspan));\n\t\t span2->x1 = sp_start->x1;\n\t\t span2->x2 = x1 - 1;\n\t\t rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);\n\t\t sp_start->x1 = x2 + 1;\n\t\t return;\n\t }\n\t }\n\telse\n\t {\n\t Eina_Inlist *l;\n\n\t /* remove all nodes after sp_start and before_sp_stop because\n\t * the new */\n\t for (l = (EINA_INLIST_GET(sp_start))->next; l != EINA_INLIST_GET(sp_stop);)\n\t {\n\t\t span = (Regionspan *)l;\n\t\t l = l->next;\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], span);\n\t\t free(span);\n\t }\n\t /* all of the start span is cut out */\n\t if (x1 <= sp_start->x1)\n\t {\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n\t\t free(sp_start);\n\t }\n\t /* chup it off at the new span start */\n\t else\n\t sp_start->x2 = x1 - 1;\n\t /* all of the end span is cut out */\n\t if (x2 >= sp_stop->x2)\n\t {\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_stop);\n\t\t free(sp_stop);\n\t }\n\t /* chop it up at the end */\n\t else\n\t sp_stop->x1 = x2 + 1;\n\t return;\n\t }\n }\n}", "parent": 3, "children": [640, 641], "start_point": {"row": 154, "column": 0}, "end_point": {"row": 299, "column": 1}}, {"id": 640, "type": "primitive_type", "text": "void", "parent": 639, "children": [], "start_point": {"row": 154, "column": 0}, "end_point": {"row": 154, "column": 4}}, {"id": 641, "type": "function_declarator", "text": "evas_common_regionbuf_span_del(Regionbuf *rb, int x1, int x2, int y)", "parent": 639, "children": [642, 643], "start_point": {"row": 155, "column": 0}, "end_point": {"row": 155, "column": 68}}, {"id": 642, "type": "identifier", "text": "evas_common_regionbuf_span_del", "parent": 641, "children": [], "start_point": {"row": 155, "column": 0}, "end_point": {"row": 155, "column": 30}}, {"id": 643, "type": "parameter_list", "text": "(Regionbuf *rb, int x1, int x2, int y)", "parent": 641, "children": [644, 649, 652, 655], "start_point": {"row": 155, "column": 30}, "end_point": {"row": 155, "column": 68}}, {"id": 644, "type": "parameter_declaration", "text": "Regionbuf *rb", "parent": 643, "children": [645, 646], "start_point": {"row": 155, "column": 31}, "end_point": {"row": 155, "column": 44}}, {"id": 645, "type": "type_identifier", "text": "Regionbuf", "parent": 644, "children": [], "start_point": {"row": 155, "column": 31}, "end_point": {"row": 155, "column": 40}}, {"id": 646, "type": "pointer_declarator", "text": "*rb", "parent": 644, "children": [647, 648], "start_point": {"row": 155, "column": 41}, "end_point": {"row": 155, "column": 44}}, {"id": 647, "type": "*", "text": "*", "parent": 646, "children": [], "start_point": {"row": 155, "column": 41}, "end_point": {"row": 155, "column": 42}}, {"id": 648, "type": "identifier", "text": "rb", "parent": 646, "children": [], "start_point": {"row": 155, "column": 42}, "end_point": {"row": 155, "column": 44}}, {"id": 649, "type": "parameter_declaration", "text": "int x1", "parent": 643, "children": [650, 651], "start_point": {"row": 155, "column": 46}, "end_point": {"row": 155, "column": 52}}, {"id": 650, "type": "primitive_type", "text": "int", "parent": 649, "children": [], "start_point": {"row": 155, "column": 46}, "end_point": {"row": 155, "column": 49}}, {"id": 651, "type": "identifier", "text": "x1", "parent": 649, "children": [], "start_point": {"row": 155, "column": 50}, "end_point": {"row": 155, "column": 52}}, {"id": 652, "type": "parameter_declaration", "text": "int x2", "parent": 643, "children": [653, 654], "start_point": {"row": 155, "column": 54}, "end_point": {"row": 155, "column": 60}}, {"id": 653, "type": "primitive_type", "text": "int", "parent": 652, "children": [], "start_point": {"row": 155, "column": 54}, "end_point": {"row": 155, "column": 57}}, {"id": 654, "type": "identifier", "text": "x2", "parent": 652, "children": [], "start_point": {"row": 155, "column": 58}, "end_point": {"row": 155, "column": 60}}, {"id": 655, "type": "parameter_declaration", "text": "int y", "parent": 643, "children": [656, 657], "start_point": {"row": 155, "column": 62}, "end_point": {"row": 155, "column": 67}}, {"id": 656, "type": "primitive_type", "text": "int", "parent": 655, "children": [], "start_point": {"row": 155, "column": 62}, "end_point": {"row": 155, "column": 65}}, {"id": 657, "type": "identifier", "text": "y", "parent": 655, "children": [], "start_point": {"row": 155, "column": 66}, "end_point": {"row": 155, "column": 67}}, {"id": 658, "type": "declaration", "text": "Regionspan *span, *span2, *nspan, *sp_start, *sp_stop;", "parent": 639, "children": [659, 660, 663, 666, 669, 672], "start_point": {"row": 158, "column": 3}, "end_point": {"row": 158, "column": 57}}, {"id": 659, "type": "type_identifier", "text": "Regionspan", "parent": 658, "children": [], "start_point": {"row": 158, "column": 3}, "end_point": {"row": 158, "column": 13}}, {"id": 660, "type": "pointer_declarator", "text": "*span", "parent": 658, "children": [661, 662], "start_point": {"row": 158, "column": 14}, "end_point": {"row": 158, "column": 19}}, {"id": 661, "type": "*", "text": "*", "parent": 660, "children": [], "start_point": {"row": 158, "column": 14}, "end_point": {"row": 158, "column": 15}}, {"id": 662, "type": "identifier", "text": "span", "parent": 660, "children": [], "start_point": {"row": 158, "column": 15}, "end_point": {"row": 158, "column": 19}}, {"id": 663, "type": "pointer_declarator", "text": "*span2", "parent": 658, "children": [664, 665], "start_point": {"row": 158, "column": 21}, "end_point": {"row": 158, "column": 27}}, {"id": 664, "type": "*", "text": "*", "parent": 663, "children": [], "start_point": {"row": 158, "column": 21}, "end_point": {"row": 158, "column": 22}}, {"id": 665, "type": "identifier", "text": "span2", "parent": 663, "children": [], "start_point": {"row": 158, "column": 22}, "end_point": {"row": 158, "column": 27}}, {"id": 666, "type": "pointer_declarator", "text": "*nspan", "parent": 658, "children": [667, 668], "start_point": {"row": 158, "column": 29}, "end_point": {"row": 158, "column": 35}}, {"id": 667, "type": "*", "text": "*", "parent": 666, "children": [], "start_point": {"row": 158, "column": 29}, "end_point": {"row": 158, "column": 30}}, {"id": 668, "type": "identifier", "text": "nspan", "parent": 666, "children": [], "start_point": {"row": 158, "column": 30}, "end_point": {"row": 158, "column": 35}}, {"id": 669, "type": "pointer_declarator", "text": "*sp_start", "parent": 658, "children": [670, 671], "start_point": {"row": 158, "column": 37}, "end_point": {"row": 158, "column": 46}}, {"id": 670, "type": "*", "text": "*", "parent": 669, "children": [], "start_point": {"row": 158, "column": 37}, "end_point": {"row": 158, "column": 38}}, {"id": 671, "type": "identifier", "text": "sp_start", "parent": 669, "children": [], "start_point": {"row": 158, "column": 38}, "end_point": {"row": 158, "column": 46}}, {"id": 672, "type": "pointer_declarator", "text": "*sp_stop", "parent": 658, "children": [673, 674], "start_point": {"row": 158, "column": 48}, "end_point": {"row": 158, "column": 56}}, {"id": 673, "type": "*", "text": "*", "parent": 672, "children": [], "start_point": {"row": 158, "column": 48}, "end_point": {"row": 158, "column": 49}}, {"id": 674, "type": "identifier", "text": "sp_stop", "parent": 672, "children": [], "start_point": {"row": 158, "column": 49}, "end_point": {"row": 158, "column": 56}}, {"id": 675, "type": "if_statement", "text": "if ((y < 0) ||\n (y >= rb->h) ||\n (x2 < 0) ||\n (x1 >= rb->w)) return;", "parent": 639, "children": [676, 707], "start_point": {"row": 161, "column": 3}, "end_point": {"row": 164, "column": 29}}, {"id": 676, "type": "parenthesized_expression", "text": "((y < 0) ||\n (y >= rb->h) ||\n (x2 < 0) ||\n (x1 >= rb->w))", "parent": 675, "children": [677], "start_point": {"row": 161, "column": 6}, "end_point": {"row": 164, "column": 21}}, {"id": 677, "type": "binary_expression", "text": "(y < 0) ||\n (y >= rb->h) ||\n (x2 < 0) ||\n (x1 >= rb->w)", "parent": 676, "children": [678, 699, 700], "start_point": {"row": 161, "column": 7}, "end_point": {"row": 164, "column": 20}}, {"id": 678, "type": "binary_expression", "text": "(y < 0) ||\n (y >= rb->h) ||\n (x2 < 0)", "parent": 677, "children": [679, 693, 694], "start_point": {"row": 161, "column": 7}, "end_point": {"row": 163, "column": 15}}, {"id": 679, "type": "binary_expression", "text": "(y < 0) ||\n (y >= rb->h)", "parent": 678, "children": [680, 685, 686], "start_point": {"row": 161, "column": 7}, "end_point": {"row": 162, "column": 19}}, {"id": 680, "type": "parenthesized_expression", "text": "(y < 0)", "parent": 679, "children": [681], "start_point": {"row": 161, "column": 7}, "end_point": {"row": 161, "column": 14}}, {"id": 681, "type": "binary_expression", "text": "y < 0", "parent": 680, "children": [682, 683, 684], "start_point": {"row": 161, "column": 8}, "end_point": {"row": 161, "column": 13}}, {"id": 682, "type": "identifier", "text": "y", "parent": 681, "children": [], "start_point": {"row": 161, "column": 8}, "end_point": {"row": 161, "column": 9}}, {"id": 683, "type": "<", "text": "<", "parent": 681, "children": [], "start_point": {"row": 161, "column": 10}, "end_point": {"row": 161, "column": 11}}, {"id": 684, "type": "number_literal", "text": "0", "parent": 681, "children": [], "start_point": {"row": 161, "column": 12}, "end_point": {"row": 161, "column": 13}}, {"id": 685, "type": "||", "text": "||", "parent": 679, "children": [], "start_point": {"row": 161, "column": 15}, "end_point": {"row": 161, "column": 17}}, {"id": 686, "type": "parenthesized_expression", "text": "(y >= rb->h)", "parent": 679, "children": [687], "start_point": {"row": 162, "column": 7}, "end_point": {"row": 162, "column": 19}}, {"id": 687, "type": "binary_expression", "text": "y >= rb->h", "parent": 686, "children": [688, 689, 690], "start_point": {"row": 162, "column": 8}, "end_point": {"row": 162, "column": 18}}, {"id": 688, "type": "identifier", "text": "y", "parent": 687, "children": [], "start_point": {"row": 162, "column": 8}, "end_point": {"row": 162, "column": 9}}, {"id": 689, "type": ">=", "text": ">=", "parent": 687, "children": [], "start_point": {"row": 162, "column": 10}, "end_point": {"row": 162, "column": 12}}, {"id": 690, "type": "field_expression", "text": "rb->h", "parent": 687, "children": [691, 692], "start_point": {"row": 162, "column": 13}, "end_point": {"row": 162, "column": 18}}, {"id": 691, "type": "identifier", "text": "rb", "parent": 690, "children": [], "start_point": {"row": 162, "column": 13}, "end_point": {"row": 162, "column": 15}}, {"id": 692, "type": "field_identifier", "text": "h", "parent": 690, "children": [], "start_point": {"row": 162, "column": 17}, "end_point": {"row": 162, "column": 18}}, {"id": 693, "type": "||", "text": "||", "parent": 678, "children": [], "start_point": {"row": 162, "column": 20}, "end_point": {"row": 162, "column": 22}}, {"id": 694, "type": "parenthesized_expression", "text": "(x2 < 0)", "parent": 678, "children": [695], "start_point": {"row": 163, "column": 7}, "end_point": {"row": 163, "column": 15}}, {"id": 695, "type": "binary_expression", "text": "x2 < 0", "parent": 694, "children": [696, 697, 698], "start_point": {"row": 163, "column": 8}, "end_point": {"row": 163, "column": 14}}, {"id": 696, "type": "identifier", "text": "x2", "parent": 695, "children": [], "start_point": {"row": 163, "column": 8}, "end_point": {"row": 163, "column": 10}}, {"id": 697, "type": "<", "text": "<", "parent": 695, "children": [], "start_point": {"row": 163, "column": 11}, "end_point": {"row": 163, "column": 12}}, {"id": 698, "type": "number_literal", "text": "0", "parent": 695, "children": [], "start_point": {"row": 163, "column": 13}, "end_point": {"row": 163, "column": 14}}, {"id": 699, "type": "||", "text": "||", "parent": 677, "children": [], "start_point": {"row": 163, "column": 16}, "end_point": {"row": 163, "column": 18}}, {"id": 700, "type": "parenthesized_expression", "text": "(x1 >= rb->w)", "parent": 677, "children": [701], "start_point": {"row": 164, "column": 7}, "end_point": {"row": 164, "column": 20}}, {"id": 701, "type": "binary_expression", "text": "x1 >= rb->w", "parent": 700, "children": [702, 703, 704], "start_point": {"row": 164, "column": 8}, "end_point": {"row": 164, "column": 19}}, {"id": 702, "type": "identifier", "text": "x1", "parent": 701, "children": [], "start_point": {"row": 164, "column": 8}, "end_point": {"row": 164, "column": 10}}, {"id": 703, "type": ">=", "text": ">=", "parent": 701, "children": [], "start_point": {"row": 164, "column": 11}, "end_point": {"row": 164, "column": 13}}, {"id": 704, "type": "field_expression", "text": "rb->w", "parent": 701, "children": [705, 706], "start_point": {"row": 164, "column": 14}, "end_point": {"row": 164, "column": 19}}, {"id": 705, "type": "identifier", "text": "rb", "parent": 704, "children": [], "start_point": {"row": 164, "column": 14}, "end_point": {"row": 164, "column": 16}}, {"id": 706, "type": "field_identifier", "text": "w", "parent": 704, "children": [], "start_point": {"row": 164, "column": 18}, "end_point": {"row": 164, "column": 19}}, {"id": 707, "type": "return_statement", "text": "return;", "parent": 675, "children": [], "start_point": {"row": 164, "column": 22}, "end_point": {"row": 164, "column": 29}}, {"id": 708, "type": "if_statement", "text": "if (x1 < 0) x1 = 0;", "parent": 639, "children": [709], "start_point": {"row": 166, "column": 3}, "end_point": {"row": 166, "column": 22}}, {"id": 709, "type": "parenthesized_expression", "text": "(x1 < 0)", "parent": 708, "children": [710], "start_point": {"row": 166, "column": 6}, "end_point": {"row": 166, "column": 14}}, {"id": 710, "type": "binary_expression", "text": "x1 < 0", "parent": 709, "children": [711, 712, 713], "start_point": {"row": 166, "column": 7}, "end_point": {"row": 166, "column": 13}}, {"id": 711, "type": "identifier", "text": "x1", "parent": 710, "children": [], "start_point": {"row": 166, "column": 7}, "end_point": {"row": 166, "column": 9}}, {"id": 712, "type": "<", "text": "<", "parent": 710, "children": [], "start_point": {"row": 166, "column": 10}, "end_point": {"row": 166, "column": 11}}, {"id": 713, "type": "number_literal", "text": "0", "parent": 710, "children": [], "start_point": {"row": 166, "column": 12}, "end_point": {"row": 166, "column": 13}}, {"id": 714, "type": "assignment_expression", "text": "x1 = 0", "parent": 708, "children": [715, 716, 717], "start_point": {"row": 166, "column": 15}, "end_point": {"row": 166, "column": 21}}, {"id": 715, "type": "identifier", "text": "x1", "parent": 714, "children": [], "start_point": {"row": 166, "column": 15}, "end_point": {"row": 166, "column": 17}}, {"id": 716, "type": "=", "text": "=", "parent": 714, "children": [], "start_point": {"row": 166, "column": 18}, "end_point": {"row": 166, "column": 19}}, {"id": 717, "type": "number_literal", "text": "0", "parent": 714, "children": [], "start_point": {"row": 166, "column": 20}, "end_point": {"row": 166, "column": 21}}, {"id": 718, "type": "if_statement", "text": "if (x2 < (rb->w - 1)) x2 = rb->w - 1;", "parent": 639, "children": [719], "start_point": {"row": 167, "column": 3}, "end_point": {"row": 167, "column": 40}}, {"id": 719, "type": "parenthesized_expression", "text": "(x2 < (rb->w - 1))", "parent": 718, "children": [720], "start_point": {"row": 167, "column": 6}, "end_point": {"row": 167, "column": 24}}, {"id": 720, "type": "binary_expression", "text": "x2 < (rb->w - 1)", "parent": 719, "children": [721, 722, 723], "start_point": {"row": 167, "column": 7}, "end_point": {"row": 167, "column": 23}}, {"id": 721, "type": "identifier", "text": "x2", "parent": 720, "children": [], "start_point": {"row": 167, "column": 7}, "end_point": {"row": 167, "column": 9}}, {"id": 722, "type": "<", "text": "<", "parent": 720, "children": [], "start_point": {"row": 167, "column": 10}, "end_point": {"row": 167, "column": 11}}, {"id": 723, "type": "parenthesized_expression", "text": "(rb->w - 1)", "parent": 720, "children": [724], "start_point": {"row": 167, "column": 12}, "end_point": {"row": 167, "column": 23}}, {"id": 724, "type": "binary_expression", "text": "rb->w - 1", "parent": 723, "children": [725, 728, 729], "start_point": {"row": 167, "column": 13}, "end_point": {"row": 167, "column": 22}}, {"id": 725, "type": "field_expression", "text": "rb->w", "parent": 724, "children": [726, 727], "start_point": {"row": 167, "column": 13}, "end_point": {"row": 167, "column": 18}}, {"id": 726, "type": "identifier", "text": "rb", "parent": 725, "children": [], "start_point": {"row": 167, "column": 13}, "end_point": {"row": 167, "column": 15}}, {"id": 727, "type": "field_identifier", "text": "w", "parent": 725, "children": [], "start_point": {"row": 167, "column": 17}, "end_point": {"row": 167, "column": 18}}, {"id": 728, "type": "-", "text": "-", "parent": 724, "children": [], "start_point": {"row": 167, "column": 19}, "end_point": {"row": 167, "column": 20}}, {"id": 729, "type": "number_literal", "text": "1", "parent": 724, "children": [], "start_point": {"row": 167, "column": 21}, "end_point": {"row": 167, "column": 22}}, {"id": 730, "type": "assignment_expression", "text": "x2 = rb->w - 1", "parent": 718, "children": [731, 732, 733], "start_point": {"row": 167, "column": 25}, "end_point": {"row": 167, "column": 39}}, {"id": 731, "type": "identifier", "text": "x2", "parent": 730, "children": [], "start_point": {"row": 167, "column": 25}, "end_point": {"row": 167, "column": 27}}, {"id": 732, "type": "=", "text": "=", "parent": 730, "children": [], "start_point": {"row": 167, "column": 28}, "end_point": {"row": 167, "column": 29}}, {"id": 733, "type": "binary_expression", "text": "rb->w - 1", "parent": 730, "children": [734, 737, 738], "start_point": {"row": 167, "column": 30}, "end_point": {"row": 167, "column": 39}}, {"id": 734, "type": "field_expression", "text": "rb->w", "parent": 733, "children": [735, 736], "start_point": {"row": 167, "column": 30}, "end_point": {"row": 167, "column": 35}}, {"id": 735, "type": "identifier", "text": "rb", "parent": 734, "children": [], "start_point": {"row": 167, "column": 30}, "end_point": {"row": 167, "column": 32}}, {"id": 736, "type": "field_identifier", "text": "w", "parent": 734, "children": [], "start_point": {"row": 167, "column": 34}, "end_point": {"row": 167, "column": 35}}, {"id": 737, "type": "-", "text": "-", "parent": 733, "children": [], "start_point": {"row": 167, "column": 36}, "end_point": {"row": 167, "column": 37}}, {"id": 738, "type": "number_literal", "text": "1", "parent": 733, "children": [], "start_point": {"row": 167, "column": 38}, "end_point": {"row": 167, "column": 39}}, {"id": 739, "type": "assignment_expression", "text": "sp_start = NULL", "parent": 639, "children": [740, 741, 742], "start_point": {"row": 168, "column": 3}, "end_point": {"row": 168, "column": 18}}, {"id": 740, "type": "identifier", "text": "sp_start", "parent": 739, "children": [], "start_point": {"row": 168, "column": 3}, "end_point": {"row": 168, "column": 11}}, {"id": 741, "type": "=", "text": "=", "parent": 739, "children": [], "start_point": {"row": 168, "column": 12}, "end_point": {"row": 168, "column": 13}}, {"id": 742, "type": "null", "text": "NULL", "parent": 739, "children": [743], "start_point": {"row": 168, "column": 14}, "end_point": {"row": 168, "column": 18}}, {"id": 743, "type": "NULL", "text": "NULL", "parent": 742, "children": [], "start_point": {"row": 168, "column": 14}, "end_point": {"row": 168, "column": 18}}, {"id": 744, "type": "assignment_expression", "text": "sp_stop = NULL", "parent": 639, "children": [745, 746, 747], "start_point": {"row": 169, "column": 3}, "end_point": {"row": 169, "column": 17}}, {"id": 745, "type": "identifier", "text": "sp_stop", "parent": 744, "children": [], "start_point": {"row": 169, "column": 3}, "end_point": {"row": 169, "column": 10}}, {"id": 746, "type": "=", "text": "=", "parent": 744, "children": [], "start_point": {"row": 169, "column": 11}, "end_point": {"row": 169, "column": 12}}, {"id": 747, "type": "null", "text": "NULL", "parent": 744, "children": [748], "start_point": {"row": 169, "column": 13}, "end_point": {"row": 169, "column": 17}}, {"id": 748, "type": "NULL", "text": "NULL", "parent": 747, "children": [], "start_point": {"row": 169, "column": 13}, "end_point": {"row": 169, "column": 17}}, {"id": 749, "type": "call_expression", "text": "EINA_INLIST_FOREACH(rb->spans[y], span)", "parent": 639, "children": [750, 751], "start_point": {"row": 170, "column": 3}, "end_point": {"row": 170, "column": 42}}, {"id": 750, "type": "identifier", "text": "EINA_INLIST_FOREACH", "parent": 749, "children": [], "start_point": {"row": 170, "column": 3}, "end_point": {"row": 170, "column": 22}}, {"id": 751, "type": "argument_list", "text": "(rb->spans[y], span)", "parent": 749, "children": [752, 757], "start_point": {"row": 170, "column": 22}, "end_point": {"row": 170, "column": 42}}, {"id": 752, "type": "subscript_expression", "text": "rb->spans[y]", "parent": 751, "children": [753, 756], "start_point": {"row": 170, "column": 23}, "end_point": {"row": 170, "column": 35}}, {"id": 753, "type": "field_expression", "text": "rb->spans", "parent": 752, "children": [754, 755], "start_point": {"row": 170, "column": 23}, "end_point": {"row": 170, "column": 32}}, {"id": 754, "type": "identifier", "text": "rb", "parent": 753, "children": [], "start_point": {"row": 170, "column": 23}, "end_point": {"row": 170, "column": 25}}, {"id": 755, "type": "field_identifier", "text": "spans", "parent": 753, "children": [], "start_point": {"row": 170, "column": 27}, "end_point": {"row": 170, "column": 32}}, {"id": 756, "type": "identifier", "text": "y", "parent": 752, "children": [], "start_point": {"row": 170, "column": 33}, "end_point": {"row": 170, "column": 34}}, {"id": 757, "type": "identifier", "text": "span", "parent": 751, "children": [], "start_point": {"row": 170, "column": 37}, "end_point": {"row": 170, "column": 41}}, {"id": 758, "type": "assignment_expression", "text": "nspan = (Regionspan *)(EINA_INLIST_GET(l))->next", "parent": 639, "children": [759, 760, 761], "start_point": {"row": 172, "column": 1}, "end_point": {"row": 172, "column": 49}}, {"id": 759, "type": "identifier", "text": "nspan", "parent": 758, "children": [], "start_point": {"row": 172, "column": 1}, "end_point": {"row": 172, "column": 6}}, {"id": 760, "type": "=", "text": "=", "parent": 758, "children": [], "start_point": {"row": 172, "column": 7}, "end_point": {"row": 172, "column": 8}}, {"id": 761, "type": "cast_expression", "text": "(Regionspan *)(EINA_INLIST_GET(l))->next", "parent": 758, "children": [762, 766], "start_point": {"row": 172, "column": 9}, "end_point": {"row": 172, "column": 49}}, {"id": 762, "type": "type_descriptor", "text": "Regionspan *", "parent": 761, "children": [763, 764], "start_point": {"row": 172, "column": 10}, "end_point": {"row": 172, "column": 22}}, {"id": 763, "type": "type_identifier", "text": "Regionspan", "parent": 762, "children": [], "start_point": {"row": 172, "column": 10}, "end_point": {"row": 172, "column": 20}}, {"id": 764, "type": "abstract_pointer_declarator", "text": "*", "parent": 762, "children": [765], "start_point": {"row": 172, "column": 21}, "end_point": {"row": 172, "column": 22}}, {"id": 765, "type": "*", "text": "*", "parent": 764, "children": [], "start_point": {"row": 172, "column": 21}, "end_point": {"row": 172, "column": 22}}, {"id": 766, "type": "field_expression", "text": "(EINA_INLIST_GET(l))->next", "parent": 761, "children": [767, 772], "start_point": {"row": 172, "column": 23}, "end_point": {"row": 172, "column": 49}}, {"id": 767, "type": "parenthesized_expression", "text": "(EINA_INLIST_GET(l))", "parent": 766, "children": [768], "start_point": {"row": 172, "column": 23}, "end_point": {"row": 172, "column": 43}}, {"id": 768, "type": "call_expression", "text": "EINA_INLIST_GET(l)", "parent": 767, "children": [769, 770], "start_point": {"row": 172, "column": 24}, "end_point": {"row": 172, "column": 42}}, {"id": 769, "type": "identifier", "text": "EINA_INLIST_GET", "parent": 768, "children": [], "start_point": {"row": 172, "column": 24}, "end_point": {"row": 172, "column": 39}}, {"id": 770, "type": "argument_list", "text": "(l)", "parent": 768, "children": [771], "start_point": {"row": 172, "column": 39}, "end_point": {"row": 172, "column": 42}}, {"id": 771, "type": "identifier", "text": "l", "parent": 770, "children": [], "start_point": {"row": 172, "column": 40}, "end_point": {"row": 172, "column": 41}}, {"id": 772, "type": "field_identifier", "text": "next", "parent": 766, "children": [], "start_point": {"row": 172, "column": 45}, "end_point": {"row": 172, "column": 49}}, {"id": 773, "type": "if_statement", "text": "if (!sp_start)\n\t {\n\t /* if new span starts before or on this span or just after\n\t * with no gap */\n\t if (x1 <= (span->x2))\n\t sp_start = span;\n\t /* if there is no next span */\n\t if (!nspan)\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }\n\t /* if new span ends before the next span starts with a gap of\n\t * 1 pixel (or more) */\n\t else if (x2 < nspan->x1)\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }\n\t }\n\t/* we already know it already starts before or in sp_start */\n\telse\n\t {\n\t /* there is no span after this one, so this has to be the stop */\n\t if (!nspan)\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }\n\t /* if new span ends before the next span starts with a gap of\n\t * 1 pixel (or more) */\n\t else if (x2 < nspan->x1)\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }\n\t }", "parent": 639, "children": [774, 817], "start_point": {"row": 174, "column": 1}, "end_point": {"row": 210, "column": 4}}, {"id": 774, "type": "parenthesized_expression", "text": "(!sp_start)", "parent": 773, "children": [775], "start_point": {"row": 174, "column": 4}, "end_point": {"row": 174, "column": 15}}, {"id": 775, "type": "unary_expression", "text": "!sp_start", "parent": 774, "children": [776, 777], "start_point": {"row": 174, "column": 5}, "end_point": {"row": 174, "column": 14}}, {"id": 776, "type": "!", "text": "!", "parent": 775, "children": [], "start_point": {"row": 174, "column": 5}, "end_point": {"row": 174, "column": 6}}, {"id": 777, "type": "identifier", "text": "sp_start", "parent": 775, "children": [], "start_point": {"row": 174, "column": 6}, "end_point": {"row": 174, "column": 14}}, {"id": 778, "type": "if_statement", "text": "if (x1 <= (span->x2))\n\t sp_start = span;", "parent": 773, "children": [779], "start_point": {"row": 178, "column": 6}, "end_point": {"row": 179, "column": 24}}, {"id": 779, "type": "parenthesized_expression", "text": "(x1 <= (span->x2))", "parent": 778, "children": [780], "start_point": {"row": 178, "column": 9}, "end_point": {"row": 178, "column": 27}}, {"id": 780, "type": "binary_expression", "text": "x1 <= (span->x2)", "parent": 779, "children": [781, 782, 783], "start_point": {"row": 178, "column": 10}, "end_point": {"row": 178, "column": 26}}, {"id": 781, "type": "identifier", "text": "x1", "parent": 780, "children": [], "start_point": {"row": 178, "column": 10}, "end_point": {"row": 178, "column": 12}}, {"id": 782, "type": "<=", "text": "<=", "parent": 780, "children": [], "start_point": {"row": 178, "column": 13}, "end_point": {"row": 178, "column": 15}}, {"id": 783, "type": "parenthesized_expression", "text": "(span->x2)", "parent": 780, "children": [784], "start_point": {"row": 178, "column": 16}, "end_point": {"row": 178, "column": 26}}, {"id": 784, "type": "field_expression", "text": "span->x2", "parent": 783, "children": [785, 786], "start_point": {"row": 178, "column": 17}, "end_point": {"row": 178, "column": 25}}, {"id": 785, "type": "identifier", "text": "span", "parent": 784, "children": [], "start_point": {"row": 178, "column": 17}, "end_point": {"row": 178, "column": 21}}, {"id": 786, "type": "field_identifier", "text": "x2", "parent": 784, "children": [], "start_point": {"row": 178, "column": 23}, "end_point": {"row": 178, "column": 25}}, {"id": 787, "type": "assignment_expression", "text": "sp_start = span", "parent": 778, "children": [788, 789, 790], "start_point": {"row": 179, "column": 8}, "end_point": {"row": 179, "column": 23}}, {"id": 788, "type": "identifier", "text": "sp_start", "parent": 787, "children": [], "start_point": {"row": 179, "column": 8}, "end_point": {"row": 179, "column": 16}}, {"id": 789, "type": "=", "text": "=", "parent": 787, "children": [], "start_point": {"row": 179, "column": 17}, "end_point": {"row": 179, "column": 18}}, {"id": 790, "type": "identifier", "text": "span", "parent": 787, "children": [], "start_point": {"row": 179, "column": 19}, "end_point": {"row": 179, "column": 23}}, {"id": 791, "type": "if_statement", "text": "if (!nspan)\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }\n\t /* if new span ends before the next span starts with a gap of\n\t * 1 pixel (or more) */\n\t else if (x2 < nspan->x1)\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }", "parent": 773, "children": [792, 802], "start_point": {"row": 181, "column": 6}, "end_point": {"row": 192, "column": 9}}, {"id": 792, "type": "parenthesized_expression", "text": "(!nspan)", "parent": 791, "children": [793], "start_point": {"row": 181, "column": 9}, "end_point": {"row": 181, "column": 17}}, {"id": 793, "type": "unary_expression", "text": "!nspan", "parent": 792, "children": [794, 795], "start_point": {"row": 181, "column": 10}, "end_point": {"row": 181, "column": 16}}, {"id": 794, "type": "!", "text": "!", "parent": 793, "children": [], "start_point": {"row": 181, "column": 10}, "end_point": {"row": 181, "column": 11}}, {"id": 795, "type": "identifier", "text": "nspan", "parent": 793, "children": [], "start_point": {"row": 181, "column": 11}, "end_point": {"row": 181, "column": 16}}, {"id": 796, "type": "assignment_expression", "text": "sp_stop = span", "parent": 791, "children": [797, 798, 799], "start_point": {"row": 183, "column": 4}, "end_point": {"row": 183, "column": 18}}, {"id": 797, "type": "identifier", "text": "sp_stop", "parent": 796, "children": [], "start_point": {"row": 183, "column": 4}, "end_point": {"row": 183, "column": 11}}, {"id": 798, "type": "=", "text": "=", "parent": 796, "children": [], "start_point": {"row": 183, "column": 12}, "end_point": {"row": 183, "column": 13}}, {"id": 799, "type": "identifier", "text": "span", "parent": 796, "children": [], "start_point": {"row": 183, "column": 14}, "end_point": {"row": 183, "column": 18}}, {"id": 800, "type": "break_statement", "text": "break;", "parent": 791, "children": [801], "start_point": {"row": 184, "column": 4}, "end_point": {"row": 184, "column": 10}}, {"id": 801, "type": "break", "text": "break", "parent": 800, "children": [], "start_point": {"row": 184, "column": 4}, "end_point": {"row": 184, "column": 9}}, {"id": 802, "type": "else_clause", "text": "else if (x2 < nspan->x1)\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }", "parent": 791, "children": [803], "start_point": {"row": 188, "column": 6}, "end_point": {"row": 192, "column": 9}}, {"id": 803, "type": "if_statement", "text": "if (x2 < nspan->x1)\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }", "parent": 802, "children": [804], "start_point": {"row": 188, "column": 11}, "end_point": {"row": 192, "column": 9}}, {"id": 804, "type": "parenthesized_expression", "text": "(x2 < nspan->x1)", "parent": 803, "children": [805], "start_point": {"row": 188, "column": 14}, "end_point": {"row": 188, "column": 30}}, {"id": 805, "type": "binary_expression", "text": "x2 < nspan->x1", "parent": 804, "children": [806, 807, 808], "start_point": {"row": 188, "column": 15}, "end_point": {"row": 188, "column": 29}}, {"id": 806, "type": "identifier", "text": "x2", "parent": 805, "children": [], "start_point": {"row": 188, "column": 15}, "end_point": {"row": 188, "column": 17}}, {"id": 807, "type": "<", "text": "<", "parent": 805, "children": [], "start_point": {"row": 188, "column": 18}, "end_point": {"row": 188, "column": 19}}, {"id": 808, "type": "field_expression", "text": "nspan->x1", "parent": 805, "children": [809, 810], "start_point": {"row": 188, "column": 20}, "end_point": {"row": 188, "column": 29}}, {"id": 809, "type": "identifier", "text": "nspan", "parent": 808, "children": [], "start_point": {"row": 188, "column": 20}, "end_point": {"row": 188, "column": 25}}, {"id": 810, "type": "field_identifier", "text": "x1", "parent": 808, "children": [], "start_point": {"row": 188, "column": 27}, "end_point": {"row": 188, "column": 29}}, {"id": 811, "type": "assignment_expression", "text": "sp_stop = span", "parent": 803, "children": [812, 813, 814], "start_point": {"row": 190, "column": 4}, "end_point": {"row": 190, "column": 18}}, {"id": 812, "type": "identifier", "text": "sp_stop", "parent": 811, "children": [], "start_point": {"row": 190, "column": 4}, "end_point": {"row": 190, "column": 11}}, {"id": 813, "type": "=", "text": "=", "parent": 811, "children": [], "start_point": {"row": 190, "column": 12}, "end_point": {"row": 190, "column": 13}}, {"id": 814, "type": "identifier", "text": "span", "parent": 811, "children": [], "start_point": {"row": 190, "column": 14}, "end_point": {"row": 190, "column": 18}}, {"id": 815, "type": "break_statement", "text": "break;", "parent": 803, "children": [816], "start_point": {"row": 191, "column": 4}, "end_point": {"row": 191, "column": 10}}, {"id": 816, "type": "break", "text": "break", "parent": 815, "children": [], "start_point": {"row": 191, "column": 4}, "end_point": {"row": 191, "column": 9}}, {"id": 817, "type": "else_clause", "text": "else\n\t {\n\t /* there is no span after this one, so this has to be the stop */\n\t if (!nspan)\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }\n\t /* if new span ends before the next span starts with a gap of\n\t * 1 pixel (or more) */\n\t else if (x2 < nspan->x1)\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }\n\t }", "parent": 773, "children": [], "start_point": {"row": 195, "column": 1}, "end_point": {"row": 210, "column": 4}}, {"id": 818, "type": "if_statement", "text": "if (!nspan)\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }\n\t /* if new span ends before the next span starts with a gap of\n\t * 1 pixel (or more) */\n\t else if (x2 < nspan->x1)\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }", "parent": 817, "children": [819, 829], "start_point": {"row": 198, "column": 6}, "end_point": {"row": 209, "column": 9}}, {"id": 819, "type": "parenthesized_expression", "text": "(!nspan)", "parent": 818, "children": [820], "start_point": {"row": 198, "column": 9}, "end_point": {"row": 198, "column": 17}}, {"id": 820, "type": "unary_expression", "text": "!nspan", "parent": 819, "children": [821, 822], "start_point": {"row": 198, "column": 10}, "end_point": {"row": 198, "column": 16}}, {"id": 821, "type": "!", "text": "!", "parent": 820, "children": [], "start_point": {"row": 198, "column": 10}, "end_point": {"row": 198, "column": 11}}, {"id": 822, "type": "identifier", "text": "nspan", "parent": 820, "children": [], "start_point": {"row": 198, "column": 11}, "end_point": {"row": 198, "column": 16}}, {"id": 823, "type": "assignment_expression", "text": "sp_stop = span", "parent": 818, "children": [824, 825, 826], "start_point": {"row": 200, "column": 4}, "end_point": {"row": 200, "column": 18}}, {"id": 824, "type": "identifier", "text": "sp_stop", "parent": 823, "children": [], "start_point": {"row": 200, "column": 4}, "end_point": {"row": 200, "column": 11}}, {"id": 825, "type": "=", "text": "=", "parent": 823, "children": [], "start_point": {"row": 200, "column": 12}, "end_point": {"row": 200, "column": 13}}, {"id": 826, "type": "identifier", "text": "span", "parent": 823, "children": [], "start_point": {"row": 200, "column": 14}, "end_point": {"row": 200, "column": 18}}, {"id": 827, "type": "break_statement", "text": "break;", "parent": 818, "children": [828], "start_point": {"row": 201, "column": 4}, "end_point": {"row": 201, "column": 10}}, {"id": 828, "type": "break", "text": "break", "parent": 827, "children": [], "start_point": {"row": 201, "column": 4}, "end_point": {"row": 201, "column": 9}}, {"id": 829, "type": "else_clause", "text": "else if (x2 < nspan->x1)\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }", "parent": 818, "children": [830], "start_point": {"row": 205, "column": 6}, "end_point": {"row": 209, "column": 9}}, {"id": 830, "type": "if_statement", "text": "if (x2 < nspan->x1)\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }", "parent": 829, "children": [831], "start_point": {"row": 205, "column": 11}, "end_point": {"row": 209, "column": 9}}, {"id": 831, "type": "parenthesized_expression", "text": "(x2 < nspan->x1)", "parent": 830, "children": [832], "start_point": {"row": 205, "column": 14}, "end_point": {"row": 205, "column": 30}}, {"id": 832, "type": "binary_expression", "text": "x2 < nspan->x1", "parent": 831, "children": [833, 834, 835], "start_point": {"row": 205, "column": 15}, "end_point": {"row": 205, "column": 29}}, {"id": 833, "type": "identifier", "text": "x2", "parent": 832, "children": [], "start_point": {"row": 205, "column": 15}, "end_point": {"row": 205, "column": 17}}, {"id": 834, "type": "<", "text": "<", "parent": 832, "children": [], "start_point": {"row": 205, "column": 18}, "end_point": {"row": 205, "column": 19}}, {"id": 835, "type": "field_expression", "text": "nspan->x1", "parent": 832, "children": [836, 837], "start_point": {"row": 205, "column": 20}, "end_point": {"row": 205, "column": 29}}, {"id": 836, "type": "identifier", "text": "nspan", "parent": 835, "children": [], "start_point": {"row": 205, "column": 20}, "end_point": {"row": 205, "column": 25}}, {"id": 837, "type": "field_identifier", "text": "x1", "parent": 835, "children": [], "start_point": {"row": 205, "column": 27}, "end_point": {"row": 205, "column": 29}}, {"id": 838, "type": "assignment_expression", "text": "sp_stop = span", "parent": 830, "children": [839, 840, 841], "start_point": {"row": 207, "column": 4}, "end_point": {"row": 207, "column": 18}}, {"id": 839, "type": "identifier", "text": "sp_stop", "parent": 838, "children": [], "start_point": {"row": 207, "column": 4}, "end_point": {"row": 207, "column": 11}}, {"id": 840, "type": "=", "text": "=", "parent": 838, "children": [], "start_point": {"row": 207, "column": 12}, "end_point": {"row": 207, "column": 13}}, {"id": 841, "type": "identifier", "text": "span", "parent": 838, "children": [], "start_point": {"row": 207, "column": 14}, "end_point": {"row": 207, "column": 18}}, {"id": 842, "type": "break_statement", "text": "break;", "parent": 830, "children": [843], "start_point": {"row": 208, "column": 4}, "end_point": {"row": 208, "column": 10}}, {"id": 843, "type": "break", "text": "break", "parent": 842, "children": [], "start_point": {"row": 208, "column": 4}, "end_point": {"row": 208, "column": 9}}, {"id": 844, "type": "if_statement", "text": "if ((sp_start) && (sp_stop))\n {\n\t/* same start and stop */\n\tif (sp_start == sp_stop)\n\t {\n\t /* if it ends before this the span start starts... return */\n\t if (x2 < sp_start->x1)\n\t return;\n\t /* it starts on or before this span */\n\t else if (x1 <= sp_start->x1)\n\t {\n\t\t /* right edge is within the span */\n\t\t if (x2 < sp_start->x2)\n\t\t {\n\t\t sp_start->x2 = x2;\n\t\t return;\n\t\t }\n\t\t else\n\t\t {\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n\t\t return;\n\t\t }\n\t }\n\t /* it ends on or after the end of this span */\n\t else if (x2 >= sp_start->x2)\n\t {\n\t\t /* it starts after the start */\n\t\t if (x1 > sp_start->x1)\n\t\t {\n\t\t sp_start->x1 = x1;\n\t\t return;\n\t\t }\n\t\t /* remove it all */\n\t\t else\n\t\t {\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n\t\t return;\n\t\t }\n\t\t return;\n\t }\n\t /* this breaks the span into 2 */\n\t else\n\t {\n\t\t span2 = calloc(1, sizeof(Regionspan));\n\t\t span2->x1 = sp_start->x1;\n\t\t span2->x2 = x1 - 1;\n\t\t rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);\n\t\t sp_start->x1 = x2 + 1;\n\t\t return;\n\t }\n\t }\n\telse\n\t {\n\t Eina_Inlist *l;\n\n\t /* remove all nodes after sp_start and before_sp_stop because\n\t * the new */\n\t for (l = (EINA_INLIST_GET(sp_start))->next; l != EINA_INLIST_GET(sp_stop);)\n\t {\n\t\t span = (Regionspan *)l;\n\t\t l = l->next;\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], span);\n\t\t free(span);\n\t }\n\t /* all of the start span is cut out */\n\t if (x1 <= sp_start->x1)\n\t {\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n\t\t free(sp_start);\n\t }\n\t /* chup it off at the new span start */\n\t else\n\t sp_start->x2 = x1 - 1;\n\t /* all of the end span is cut out */\n\t if (x2 >= sp_stop->x2)\n\t {\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_stop);\n\t\t free(sp_stop);\n\t }\n\t /* chop it up at the end */\n\t else\n\t sp_stop->x1 = x2 + 1;\n\t return;\n\t }\n }", "parent": 639, "children": [845], "start_point": {"row": 214, "column": 3}, "end_point": {"row": 298, "column": 6}}, {"id": 845, "type": "parenthesized_expression", "text": "((sp_start) && (sp_stop))", "parent": 844, "children": [846], "start_point": {"row": 214, "column": 6}, "end_point": {"row": 214, "column": 31}}, {"id": 846, "type": "binary_expression", "text": "(sp_start) && (sp_stop)", "parent": 845, "children": [847, 849, 850], "start_point": {"row": 214, "column": 7}, "end_point": {"row": 214, "column": 30}}, {"id": 847, "type": "parenthesized_expression", "text": "(sp_start)", "parent": 846, "children": [848], "start_point": {"row": 214, "column": 7}, "end_point": {"row": 214, "column": 17}}, {"id": 848, "type": "identifier", "text": "sp_start", "parent": 847, "children": [], "start_point": {"row": 214, "column": 8}, "end_point": {"row": 214, "column": 16}}, {"id": 849, "type": "&&", "text": "&&", "parent": 846, "children": [], "start_point": {"row": 214, "column": 18}, "end_point": {"row": 214, "column": 20}}, {"id": 850, "type": "parenthesized_expression", "text": "(sp_stop)", "parent": 846, "children": [851], "start_point": {"row": 214, "column": 21}, "end_point": {"row": 214, "column": 30}}, {"id": 851, "type": "identifier", "text": "sp_stop", "parent": 850, "children": [], "start_point": {"row": 214, "column": 22}, "end_point": {"row": 214, "column": 29}}, {"id": 852, "type": "if_statement", "text": "if (sp_start == sp_stop)\n\t {\n\t /* if it ends before this the span start starts... return */\n\t if (x2 < sp_start->x1)\n\t return;\n\t /* it starts on or before this span */\n\t else if (x1 <= sp_start->x1)\n\t {\n\t\t /* right edge is within the span */\n\t\t if (x2 < sp_start->x2)\n\t\t {\n\t\t sp_start->x2 = x2;\n\t\t return;\n\t\t }\n\t\t else\n\t\t {\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n\t\t return;\n\t\t }\n\t }\n\t /* it ends on or after the end of this span */\n\t else if (x2 >= sp_start->x2)\n\t {\n\t\t /* it starts after the start */\n\t\t if (x1 > sp_start->x1)\n\t\t {\n\t\t sp_start->x1 = x1;\n\t\t return;\n\t\t }\n\t\t /* remove it all */\n\t\t else\n\t\t {\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n\t\t return;\n\t\t }\n\t\t return;\n\t }\n\t /* this breaks the span into 2 */\n\t else\n\t {\n\t\t span2 = calloc(1, sizeof(Regionspan));\n\t\t span2->x1 = sp_start->x1;\n\t\t span2->x2 = x1 - 1;\n\t\t rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);\n\t\t sp_start->x1 = x2 + 1;\n\t\t return;\n\t }\n\t }\n\telse\n\t {\n\t Eina_Inlist *l;\n\n\t /* remove all nodes after sp_start and before_sp_stop because\n\t * the new */\n\t for (l = (EINA_INLIST_GET(sp_start))->next; l != EINA_INLIST_GET(sp_stop);)\n\t {\n\t\t span = (Regionspan *)l;\n\t\t l = l->next;\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], span);\n\t\t free(span);\n\t }\n\t /* all of the start span is cut out */\n\t if (x1 <= sp_start->x1)\n\t {\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n\t\t free(sp_start);\n\t }\n\t /* chup it off at the new span start */\n\t else\n\t sp_start->x2 = x1 - 1;\n\t /* all of the end span is cut out */\n\t if (x2 >= sp_stop->x2)\n\t {\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_stop);\n\t\t free(sp_stop);\n\t }\n\t /* chop it up at the end */\n\t else\n\t sp_stop->x1 = x2 + 1;\n\t return;\n\t }", "parent": 844, "children": [853, 1007], "start_point": {"row": 217, "column": 1}, "end_point": {"row": 297, "column": 4}}, {"id": 853, "type": "parenthesized_expression", "text": "(sp_start == sp_stop)", "parent": 852, "children": [854], "start_point": {"row": 217, "column": 4}, "end_point": {"row": 217, "column": 25}}, {"id": 854, "type": "binary_expression", "text": "sp_start == sp_stop", "parent": 853, "children": [855, 856, 857], "start_point": {"row": 217, "column": 5}, "end_point": {"row": 217, "column": 24}}, {"id": 855, "type": "identifier", "text": "sp_start", "parent": 854, "children": [], "start_point": {"row": 217, "column": 5}, "end_point": {"row": 217, "column": 13}}, {"id": 856, "type": "==", "text": "==", "parent": 854, "children": [], "start_point": {"row": 217, "column": 14}, "end_point": {"row": 217, "column": 16}}, {"id": 857, "type": "identifier", "text": "sp_stop", "parent": 854, "children": [], "start_point": {"row": 217, "column": 17}, "end_point": {"row": 217, "column": 24}}, {"id": 858, "type": "if_statement", "text": "if (x2 < sp_start->x1)\n\t return;\n\t /* it starts on or before this span */\n\t else if (x1 <= sp_start->x1)\n\t {\n\t\t /* right edge is within the span */\n\t\t if (x2 < sp_start->x2)\n\t\t {\n\t\t sp_start->x2 = x2;\n\t\t return;\n\t\t }\n\t\t else\n\t\t {\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n\t\t return;\n\t\t }\n\t }\n\t /* it ends on or after the end of this span */\n\t else if (x2 >= sp_start->x2)\n\t {\n\t\t /* it starts after the start */\n\t\t if (x1 > sp_start->x1)\n\t\t {\n\t\t sp_start->x1 = x1;\n\t\t return;\n\t\t }\n\t\t /* remove it all */\n\t\t else\n\t\t {\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n\t\t return;\n\t\t }\n\t\t return;\n\t }\n\t /* this breaks the span into 2 */\n\t else\n\t {\n\t\t span2 = calloc(1, sizeof(Regionspan));\n\t\t span2->x1 = sp_start->x1;\n\t\t span2->x2 = x1 - 1;\n\t\t rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);\n\t\t sp_start->x1 = x2 + 1;\n\t\t return;\n\t }", "parent": 852, "children": [859, 866, 867], "start_point": {"row": 220, "column": 6}, "end_point": {"row": 263, "column": 9}}, {"id": 859, "type": "parenthesized_expression", "text": "(x2 < sp_start->x1)", "parent": 858, "children": [860], "start_point": {"row": 220, "column": 9}, "end_point": {"row": 220, "column": 28}}, {"id": 860, "type": "binary_expression", "text": "x2 < sp_start->x1", "parent": 859, "children": [861, 862, 863], "start_point": {"row": 220, "column": 10}, "end_point": {"row": 220, "column": 27}}, {"id": 861, "type": "identifier", "text": "x2", "parent": 860, "children": [], "start_point": {"row": 220, "column": 10}, "end_point": {"row": 220, "column": 12}}, {"id": 862, "type": "<", "text": "<", "parent": 860, "children": [], "start_point": {"row": 220, "column": 13}, "end_point": {"row": 220, "column": 14}}, {"id": 863, "type": "field_expression", "text": "sp_start->x1", "parent": 860, "children": [864, 865], "start_point": {"row": 220, "column": 15}, "end_point": {"row": 220, "column": 27}}, {"id": 864, "type": "identifier", "text": "sp_start", "parent": 863, "children": [], "start_point": {"row": 220, "column": 15}, "end_point": {"row": 220, "column": 23}}, {"id": 865, "type": "field_identifier", "text": "x1", "parent": 863, "children": [], "start_point": {"row": 220, "column": 25}, "end_point": {"row": 220, "column": 27}}, {"id": 866, "type": "return_statement", "text": "return;", "parent": 858, "children": [], "start_point": {"row": 221, "column": 8}, "end_point": {"row": 221, "column": 15}}, {"id": 867, "type": "else_clause", "text": "else if (x1 <= sp_start->x1)\n\t {\n\t\t /* right edge is within the span */\n\t\t if (x2 < sp_start->x2)\n\t\t {\n\t\t sp_start->x2 = x2;\n\t\t return;\n\t\t }\n\t\t else\n\t\t {\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n\t\t return;\n\t\t }\n\t }\n\t /* it ends on or after the end of this span */\n\t else if (x2 >= sp_start->x2)\n\t {\n\t\t /* it starts after the start */\n\t\t if (x1 > sp_start->x1)\n\t\t {\n\t\t sp_start->x1 = x1;\n\t\t return;\n\t\t }\n\t\t /* remove it all */\n\t\t else\n\t\t {\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n\t\t return;\n\t\t }\n\t\t return;\n\t }\n\t /* this breaks the span into 2 */\n\t else\n\t {\n\t\t span2 = calloc(1, sizeof(Regionspan));\n\t\t span2->x1 = sp_start->x1;\n\t\t span2->x2 = x1 - 1;\n\t\t rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);\n\t\t sp_start->x1 = x2 + 1;\n\t\t return;\n\t }", "parent": 858, "children": [868], "start_point": {"row": 223, "column": 6}, "end_point": {"row": 263, "column": 9}}, {"id": 868, "type": "if_statement", "text": "if (x1 <= sp_start->x1)\n\t {\n\t\t /* right edge is within the span */\n\t\t if (x2 < sp_start->x2)\n\t\t {\n\t\t sp_start->x2 = x2;\n\t\t return;\n\t\t }\n\t\t else\n\t\t {\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n\t\t return;\n\t\t }\n\t }\n\t /* it ends on or after the end of this span */\n\t else if (x2 >= sp_start->x2)\n\t {\n\t\t /* it starts after the start */\n\t\t if (x1 > sp_start->x1)\n\t\t {\n\t\t sp_start->x1 = x1;\n\t\t return;\n\t\t }\n\t\t /* remove it all */\n\t\t else\n\t\t {\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n\t\t return;\n\t\t }\n\t\t return;\n\t }\n\t /* this breaks the span into 2 */\n\t else\n\t {\n\t\t span2 = calloc(1, sizeof(Regionspan));\n\t\t span2->x1 = sp_start->x1;\n\t\t span2->x2 = x1 - 1;\n\t\t rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);\n\t\t sp_start->x1 = x2 + 1;\n\t\t return;\n\t }", "parent": 867, "children": [869, 909], "start_point": {"row": 223, "column": 11}, "end_point": {"row": 263, "column": 9}}, {"id": 869, "type": "parenthesized_expression", "text": "(x1 <= sp_start->x1)", "parent": 868, "children": [870], "start_point": {"row": 223, "column": 14}, "end_point": {"row": 223, "column": 34}}, {"id": 870, "type": "binary_expression", "text": "x1 <= sp_start->x1", "parent": 869, "children": [871, 872, 873], "start_point": {"row": 223, "column": 15}, "end_point": {"row": 223, "column": 33}}, {"id": 871, "type": "identifier", "text": "x1", "parent": 870, "children": [], "start_point": {"row": 223, "column": 15}, "end_point": {"row": 223, "column": 17}}, {"id": 872, "type": "<=", "text": "<=", "parent": 870, "children": [], "start_point": {"row": 223, "column": 18}, "end_point": {"row": 223, "column": 20}}, {"id": 873, "type": "field_expression", "text": "sp_start->x1", "parent": 870, "children": [874, 875], "start_point": {"row": 223, "column": 21}, "end_point": {"row": 223, "column": 33}}, {"id": 874, "type": "identifier", "text": "sp_start", "parent": 873, "children": [], "start_point": {"row": 223, "column": 21}, "end_point": {"row": 223, "column": 29}}, {"id": 875, "type": "field_identifier", "text": "x1", "parent": 873, "children": [], "start_point": {"row": 223, "column": 31}, "end_point": {"row": 223, "column": 33}}, {"id": 876, "type": "if_statement", "text": "if (x2 < sp_start->x2)\n\t\t {\n\t\t sp_start->x2 = x2;\n\t\t return;\n\t\t }\n\t\t else\n\t\t {\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n\t\t return;\n\t\t }", "parent": 868, "children": [877, 891], "start_point": {"row": 226, "column": 4}, "end_point": {"row": 235, "column": 7}}, {"id": 877, "type": "parenthesized_expression", "text": "(x2 < sp_start->x2)", "parent": 876, "children": [878], "start_point": {"row": 226, "column": 7}, "end_point": {"row": 226, "column": 26}}, {"id": 878, "type": "binary_expression", "text": "x2 < sp_start->x2", "parent": 877, "children": [879, 880, 881], "start_point": {"row": 226, "column": 8}, "end_point": {"row": 226, "column": 25}}, {"id": 879, "type": "identifier", "text": "x2", "parent": 878, "children": [], "start_point": {"row": 226, "column": 8}, "end_point": {"row": 226, "column": 10}}, {"id": 880, "type": "<", "text": "<", "parent": 878, "children": [], "start_point": {"row": 226, "column": 11}, "end_point": {"row": 226, "column": 12}}, {"id": 881, "type": "field_expression", "text": "sp_start->x2", "parent": 878, "children": [882, 883], "start_point": {"row": 226, "column": 13}, "end_point": {"row": 226, "column": 25}}, {"id": 882, "type": "identifier", "text": "sp_start", "parent": 881, "children": [], "start_point": {"row": 226, "column": 13}, "end_point": {"row": 226, "column": 21}}, {"id": 883, "type": "field_identifier", "text": "x2", "parent": 881, "children": [], "start_point": {"row": 226, "column": 23}, "end_point": {"row": 226, "column": 25}}, {"id": 884, "type": "assignment_expression", "text": "sp_start->x2 = x2", "parent": 876, "children": [885, 888, 889], "start_point": {"row": 228, "column": 9}, "end_point": {"row": 228, "column": 26}}, {"id": 885, "type": "field_expression", "text": "sp_start->x2", "parent": 884, "children": [886, 887], "start_point": {"row": 228, "column": 9}, "end_point": {"row": 228, "column": 21}}, {"id": 886, "type": "identifier", "text": "sp_start", "parent": 885, "children": [], "start_point": {"row": 228, "column": 9}, "end_point": {"row": 228, "column": 17}}, {"id": 887, "type": "field_identifier", "text": "x2", "parent": 885, "children": [], "start_point": {"row": 228, "column": 19}, "end_point": {"row": 228, "column": 21}}, {"id": 888, "type": "=", "text": "=", "parent": 884, "children": [], "start_point": {"row": 228, "column": 22}, "end_point": {"row": 228, "column": 23}}, {"id": 889, "type": "identifier", "text": "x2", "parent": 884, "children": [], "start_point": {"row": 228, "column": 24}, "end_point": {"row": 228, "column": 26}}, {"id": 890, "type": "return_statement", "text": "return;", "parent": 876, "children": [], "start_point": {"row": 229, "column": 9}, "end_point": {"row": 229, "column": 16}}, {"id": 891, "type": "else_clause", "text": "else\n\t\t {\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n\t\t return;\n\t\t }", "parent": 876, "children": [], "start_point": {"row": 231, "column": 4}, "end_point": {"row": 235, "column": 7}}, {"id": 892, "type": "assignment_expression", "text": "rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start)", "parent": 891, "children": [893, 898, 899], "start_point": {"row": 233, "column": 9}, "end_point": {"row": 233, "column": 66}}, {"id": 893, "type": "subscript_expression", "text": "rb->spans[y]", "parent": 892, "children": [894, 897], "start_point": {"row": 233, "column": 9}, "end_point": {"row": 233, "column": 21}}, {"id": 894, "type": "field_expression", "text": "rb->spans", "parent": 893, "children": [895, 896], "start_point": {"row": 233, "column": 9}, "end_point": {"row": 233, "column": 18}}, {"id": 895, "type": "identifier", "text": "rb", "parent": 894, "children": [], "start_point": {"row": 233, "column": 9}, "end_point": {"row": 233, "column": 11}}, {"id": 896, "type": "field_identifier", "text": "spans", "parent": 894, "children": [], "start_point": {"row": 233, "column": 13}, "end_point": {"row": 233, "column": 18}}, {"id": 897, "type": "identifier", "text": "y", "parent": 893, "children": [], "start_point": {"row": 233, "column": 19}, "end_point": {"row": 233, "column": 20}}, {"id": 898, "type": "=", "text": "=", "parent": 892, "children": [], "start_point": {"row": 233, "column": 22}, "end_point": {"row": 233, "column": 23}}, {"id": 899, "type": "call_expression", "text": "eina_inlist_remove(rb->spans[y], sp_start)", "parent": 892, "children": [900, 901], "start_point": {"row": 233, "column": 24}, "end_point": {"row": 233, "column": 66}}, {"id": 900, "type": "identifier", "text": "eina_inlist_remove", "parent": 899, "children": [], "start_point": {"row": 233, "column": 24}, "end_point": {"row": 233, "column": 42}}, {"id": 901, "type": "argument_list", "text": "(rb->spans[y], sp_start)", "parent": 899, "children": [902, 907], "start_point": {"row": 233, "column": 42}, "end_point": {"row": 233, "column": 66}}, {"id": 902, "type": "subscript_expression", "text": "rb->spans[y]", "parent": 901, "children": [903, 906], "start_point": {"row": 233, "column": 43}, "end_point": {"row": 233, "column": 55}}, {"id": 903, "type": "field_expression", "text": "rb->spans", "parent": 902, "children": [904, 905], "start_point": {"row": 233, "column": 43}, "end_point": {"row": 233, "column": 52}}, {"id": 904, "type": "identifier", "text": "rb", "parent": 903, "children": [], "start_point": {"row": 233, "column": 43}, "end_point": {"row": 233, "column": 45}}, {"id": 905, "type": "field_identifier", "text": "spans", "parent": 903, "children": [], "start_point": {"row": 233, "column": 47}, "end_point": {"row": 233, "column": 52}}, {"id": 906, "type": "identifier", "text": "y", "parent": 902, "children": [], "start_point": {"row": 233, "column": 53}, "end_point": {"row": 233, "column": 54}}, {"id": 907, "type": "identifier", "text": "sp_start", "parent": 901, "children": [], "start_point": {"row": 233, "column": 57}, "end_point": {"row": 233, "column": 65}}, {"id": 908, "type": "return_statement", "text": "return;", "parent": 891, "children": [], "start_point": {"row": 234, "column": 9}, "end_point": {"row": 234, "column": 16}}, {"id": 909, "type": "else_clause", "text": "else if (x2 >= sp_start->x2)\n\t {\n\t\t /* it starts after the start */\n\t\t if (x1 > sp_start->x1)\n\t\t {\n\t\t sp_start->x1 = x1;\n\t\t return;\n\t\t }\n\t\t /* remove it all */\n\t\t else\n\t\t {\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n\t\t return;\n\t\t }\n\t\t return;\n\t }\n\t /* this breaks the span into 2 */\n\t else\n\t {\n\t\t span2 = calloc(1, sizeof(Regionspan));\n\t\t span2->x1 = sp_start->x1;\n\t\t span2->x2 = x1 - 1;\n\t\t rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);\n\t\t sp_start->x1 = x2 + 1;\n\t\t return;\n\t }", "parent": 868, "children": [910], "start_point": {"row": 238, "column": 6}, "end_point": {"row": 263, "column": 9}}, {"id": 910, "type": "if_statement", "text": "if (x2 >= sp_start->x2)\n\t {\n\t\t /* it starts after the start */\n\t\t if (x1 > sp_start->x1)\n\t\t {\n\t\t sp_start->x1 = x1;\n\t\t return;\n\t\t }\n\t\t /* remove it all */\n\t\t else\n\t\t {\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n\t\t return;\n\t\t }\n\t\t return;\n\t }\n\t /* this breaks the span into 2 */\n\t else\n\t {\n\t\t span2 = calloc(1, sizeof(Regionspan));\n\t\t span2->x1 = sp_start->x1;\n\t\t span2->x2 = x1 - 1;\n\t\t rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);\n\t\t sp_start->x1 = x2 + 1;\n\t\t return;\n\t }", "parent": 909, "children": [911, 952], "start_point": {"row": 238, "column": 11}, "end_point": {"row": 263, "column": 9}}, {"id": 911, "type": "parenthesized_expression", "text": "(x2 >= sp_start->x2)", "parent": 910, "children": [912], "start_point": {"row": 238, "column": 14}, "end_point": {"row": 238, "column": 34}}, {"id": 912, "type": "binary_expression", "text": "x2 >= sp_start->x2", "parent": 911, "children": [913, 914, 915], "start_point": {"row": 238, "column": 15}, "end_point": {"row": 238, "column": 33}}, {"id": 913, "type": "identifier", "text": "x2", "parent": 912, "children": [], "start_point": {"row": 238, "column": 15}, "end_point": {"row": 238, "column": 17}}, {"id": 914, "type": ">=", "text": ">=", "parent": 912, "children": [], "start_point": {"row": 238, "column": 18}, "end_point": {"row": 238, "column": 20}}, {"id": 915, "type": "field_expression", "text": "sp_start->x2", "parent": 912, "children": [916, 917], "start_point": {"row": 238, "column": 21}, "end_point": {"row": 238, "column": 33}}, {"id": 916, "type": "identifier", "text": "sp_start", "parent": 915, "children": [], "start_point": {"row": 238, "column": 21}, "end_point": {"row": 238, "column": 29}}, {"id": 917, "type": "field_identifier", "text": "x2", "parent": 915, "children": [], "start_point": {"row": 238, "column": 31}, "end_point": {"row": 238, "column": 33}}, {"id": 918, "type": "if_statement", "text": "if (x1 > sp_start->x1)\n\t\t {\n\t\t sp_start->x1 = x1;\n\t\t return;\n\t\t }\n\t\t /* remove it all */\n\t\t else\n\t\t {\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n\t\t return;\n\t\t }", "parent": 910, "children": [919, 933], "start_point": {"row": 241, "column": 4}, "end_point": {"row": 251, "column": 7}}, {"id": 919, "type": "parenthesized_expression", "text": "(x1 > sp_start->x1)", "parent": 918, "children": [920], "start_point": {"row": 241, "column": 7}, "end_point": {"row": 241, "column": 26}}, {"id": 920, "type": "binary_expression", "text": "x1 > sp_start->x1", "parent": 919, "children": [921, 922, 923], "start_point": {"row": 241, "column": 8}, "end_point": {"row": 241, "column": 25}}, {"id": 921, "type": "identifier", "text": "x1", "parent": 920, "children": [], "start_point": {"row": 241, "column": 8}, "end_point": {"row": 241, "column": 10}}, {"id": 922, "type": ">", "text": ">", "parent": 920, "children": [], "start_point": {"row": 241, "column": 11}, "end_point": {"row": 241, "column": 12}}, {"id": 923, "type": "field_expression", "text": "sp_start->x1", "parent": 920, "children": [924, 925], "start_point": {"row": 241, "column": 13}, "end_point": {"row": 241, "column": 25}}, {"id": 924, "type": "identifier", "text": "sp_start", "parent": 923, "children": [], "start_point": {"row": 241, "column": 13}, "end_point": {"row": 241, "column": 21}}, {"id": 925, "type": "field_identifier", "text": "x1", "parent": 923, "children": [], "start_point": {"row": 241, "column": 23}, "end_point": {"row": 241, "column": 25}}, {"id": 926, "type": "assignment_expression", "text": "sp_start->x1 = x1", "parent": 918, "children": [927, 930, 931], "start_point": {"row": 243, "column": 9}, "end_point": {"row": 243, "column": 26}}, {"id": 927, "type": "field_expression", "text": "sp_start->x1", "parent": 926, "children": [928, 929], "start_point": {"row": 243, "column": 9}, "end_point": {"row": 243, "column": 21}}, {"id": 928, "type": "identifier", "text": "sp_start", "parent": 927, "children": [], "start_point": {"row": 243, "column": 9}, "end_point": {"row": 243, "column": 17}}, {"id": 929, "type": "field_identifier", "text": "x1", "parent": 927, "children": [], "start_point": {"row": 243, "column": 19}, "end_point": {"row": 243, "column": 21}}, {"id": 930, "type": "=", "text": "=", "parent": 926, "children": [], "start_point": {"row": 243, "column": 22}, "end_point": {"row": 243, "column": 23}}, {"id": 931, "type": "identifier", "text": "x1", "parent": 926, "children": [], "start_point": {"row": 243, "column": 24}, "end_point": {"row": 243, "column": 26}}, {"id": 932, "type": "return_statement", "text": "return;", "parent": 918, "children": [], "start_point": {"row": 244, "column": 9}, "end_point": {"row": 244, "column": 16}}, {"id": 933, "type": "else_clause", "text": "else\n\t\t {\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n\t\t return;\n\t\t }", "parent": 918, "children": [], "start_point": {"row": 247, "column": 4}, "end_point": {"row": 251, "column": 7}}, {"id": 934, "type": "assignment_expression", "text": "rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start)", "parent": 933, "children": [935, 940, 941], "start_point": {"row": 249, "column": 9}, "end_point": {"row": 249, "column": 66}}, {"id": 935, "type": "subscript_expression", "text": "rb->spans[y]", "parent": 934, "children": [936, 939], "start_point": {"row": 249, "column": 9}, "end_point": {"row": 249, "column": 21}}, {"id": 936, "type": "field_expression", "text": "rb->spans", "parent": 935, "children": [937, 938], "start_point": {"row": 249, "column": 9}, "end_point": {"row": 249, "column": 18}}, {"id": 937, "type": "identifier", "text": "rb", "parent": 936, "children": [], "start_point": {"row": 249, "column": 9}, "end_point": {"row": 249, "column": 11}}, {"id": 938, "type": "field_identifier", "text": "spans", "parent": 936, "children": [], "start_point": {"row": 249, "column": 13}, "end_point": {"row": 249, "column": 18}}, {"id": 939, "type": "identifier", "text": "y", "parent": 935, "children": [], "start_point": {"row": 249, "column": 19}, "end_point": {"row": 249, "column": 20}}, {"id": 940, "type": "=", "text": "=", "parent": 934, "children": [], "start_point": {"row": 249, "column": 22}, "end_point": {"row": 249, "column": 23}}, {"id": 941, "type": "call_expression", "text": "eina_inlist_remove(rb->spans[y], sp_start)", "parent": 934, "children": [942, 943], "start_point": {"row": 249, "column": 24}, "end_point": {"row": 249, "column": 66}}, {"id": 942, "type": "identifier", "text": "eina_inlist_remove", "parent": 941, "children": [], "start_point": {"row": 249, "column": 24}, "end_point": {"row": 249, "column": 42}}, {"id": 943, "type": "argument_list", "text": "(rb->spans[y], sp_start)", "parent": 941, "children": [944, 949], "start_point": {"row": 249, "column": 42}, "end_point": {"row": 249, "column": 66}}, {"id": 944, "type": "subscript_expression", "text": "rb->spans[y]", "parent": 943, "children": [945, 948], "start_point": {"row": 249, "column": 43}, "end_point": {"row": 249, "column": 55}}, {"id": 945, "type": "field_expression", "text": "rb->spans", "parent": 944, "children": [946, 947], "start_point": {"row": 249, "column": 43}, "end_point": {"row": 249, "column": 52}}, {"id": 946, "type": "identifier", "text": "rb", "parent": 945, "children": [], "start_point": {"row": 249, "column": 43}, "end_point": {"row": 249, "column": 45}}, {"id": 947, "type": "field_identifier", "text": "spans", "parent": 945, "children": [], "start_point": {"row": 249, "column": 47}, "end_point": {"row": 249, "column": 52}}, {"id": 948, "type": "identifier", "text": "y", "parent": 944, "children": [], "start_point": {"row": 249, "column": 53}, "end_point": {"row": 249, "column": 54}}, {"id": 949, "type": "identifier", "text": "sp_start", "parent": 943, "children": [], "start_point": {"row": 249, "column": 57}, "end_point": {"row": 249, "column": 65}}, {"id": 950, "type": "return_statement", "text": "return;", "parent": 933, "children": [], "start_point": {"row": 250, "column": 9}, "end_point": {"row": 250, "column": 16}}, {"id": 951, "type": "return_statement", "text": "return;", "parent": 910, "children": [], "start_point": {"row": 252, "column": 4}, "end_point": {"row": 252, "column": 11}}, {"id": 952, "type": "else_clause", "text": "else\n\t {\n\t\t span2 = calloc(1, sizeof(Regionspan));\n\t\t span2->x1 = sp_start->x1;\n\t\t span2->x2 = x1 - 1;\n\t\t rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);\n\t\t sp_start->x1 = x2 + 1;\n\t\t return;\n\t }", "parent": 910, "children": [], "start_point": {"row": 255, "column": 6}, "end_point": {"row": 263, "column": 9}}, {"id": 953, "type": "assignment_expression", "text": "span2 = calloc(1, sizeof(Regionspan))", "parent": 952, "children": [954, 955, 956], "start_point": {"row": 257, "column": 4}, "end_point": {"row": 257, "column": 41}}, {"id": 954, "type": "identifier", "text": "span2", "parent": 953, "children": [], "start_point": {"row": 257, "column": 4}, "end_point": {"row": 257, "column": 9}}, {"id": 955, "type": "=", "text": "=", "parent": 953, "children": [], "start_point": {"row": 257, "column": 10}, "end_point": {"row": 257, "column": 11}}, {"id": 956, "type": "call_expression", "text": "calloc(1, sizeof(Regionspan))", "parent": 953, "children": [957, 958], "start_point": {"row": 257, "column": 12}, "end_point": {"row": 257, "column": 41}}, {"id": 957, "type": "identifier", "text": "calloc", "parent": 956, "children": [], "start_point": {"row": 257, "column": 12}, "end_point": {"row": 257, "column": 18}}, {"id": 958, "type": "argument_list", "text": "(1, sizeof(Regionspan))", "parent": 956, "children": [959, 960], "start_point": {"row": 257, "column": 18}, "end_point": {"row": 257, "column": 41}}, {"id": 959, "type": "number_literal", "text": "1", "parent": 958, "children": [], "start_point": {"row": 257, "column": 19}, "end_point": {"row": 257, "column": 20}}, {"id": 960, "type": "sizeof_expression", "text": "sizeof(Regionspan)", "parent": 958, "children": [961], "start_point": {"row": 257, "column": 22}, "end_point": {"row": 257, "column": 40}}, {"id": 961, "type": "parenthesized_expression", "text": "(Regionspan)", "parent": 960, "children": [962], "start_point": {"row": 257, "column": 28}, "end_point": {"row": 257, "column": 40}}, {"id": 962, "type": "identifier", "text": "Regionspan", "parent": 961, "children": [], "start_point": {"row": 257, "column": 29}, "end_point": {"row": 257, "column": 39}}, {"id": 963, "type": "assignment_expression", "text": "span2->x1 = sp_start->x1", "parent": 952, "children": [964, 967, 968], "start_point": {"row": 258, "column": 4}, "end_point": {"row": 258, "column": 28}}, {"id": 964, "type": "field_expression", "text": "span2->x1", "parent": 963, "children": [965, 966], "start_point": {"row": 258, "column": 4}, "end_point": {"row": 258, "column": 13}}, {"id": 965, "type": "identifier", "text": "span2", "parent": 964, "children": [], "start_point": {"row": 258, "column": 4}, "end_point": {"row": 258, "column": 9}}, {"id": 966, "type": "field_identifier", "text": "x1", "parent": 964, "children": [], "start_point": {"row": 258, "column": 11}, "end_point": {"row": 258, "column": 13}}, {"id": 967, "type": "=", "text": "=", "parent": 963, "children": [], "start_point": {"row": 258, "column": 14}, "end_point": {"row": 258, "column": 15}}, {"id": 968, "type": "field_expression", "text": "sp_start->x1", "parent": 963, "children": [969, 970], "start_point": {"row": 258, "column": 16}, "end_point": {"row": 258, "column": 28}}, {"id": 969, "type": "identifier", "text": "sp_start", "parent": 968, "children": [], "start_point": {"row": 258, "column": 16}, "end_point": {"row": 258, "column": 24}}, {"id": 970, "type": "field_identifier", "text": "x1", "parent": 968, "children": [], "start_point": {"row": 258, "column": 26}, "end_point": {"row": 258, "column": 28}}, {"id": 971, "type": "assignment_expression", "text": "span2->x2 = x1 - 1", "parent": 952, "children": [972, 975, 976], "start_point": {"row": 259, "column": 4}, "end_point": {"row": 259, "column": 22}}, {"id": 972, "type": "field_expression", "text": "span2->x2", "parent": 971, "children": [973, 974], "start_point": {"row": 259, "column": 4}, "end_point": {"row": 259, "column": 13}}, {"id": 973, "type": "identifier", "text": "span2", "parent": 972, "children": [], "start_point": {"row": 259, "column": 4}, "end_point": {"row": 259, "column": 9}}, {"id": 974, "type": "field_identifier", "text": "x2", "parent": 972, "children": [], "start_point": {"row": 259, "column": 11}, "end_point": {"row": 259, "column": 13}}, {"id": 975, "type": "=", "text": "=", "parent": 971, "children": [], "start_point": {"row": 259, "column": 14}, "end_point": {"row": 259, "column": 15}}, {"id": 976, "type": "binary_expression", "text": "x1 - 1", "parent": 971, "children": [977, 978, 979], "start_point": {"row": 259, "column": 16}, "end_point": {"row": 259, "column": 22}}, {"id": 977, "type": "identifier", "text": "x1", "parent": 976, "children": [], "start_point": {"row": 259, "column": 16}, "end_point": {"row": 259, "column": 18}}, {"id": 978, "type": "-", "text": "-", "parent": 976, "children": [], "start_point": {"row": 259, "column": 19}, "end_point": {"row": 259, "column": 20}}, {"id": 979, "type": "number_literal", "text": "1", "parent": 976, "children": [], "start_point": {"row": 259, "column": 21}, "end_point": {"row": 259, "column": 22}}, {"id": 980, "type": "assignment_expression", "text": "rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start)", "parent": 952, "children": [981, 986, 987], "start_point": {"row": 260, "column": 4}, "end_point": {"row": 260, "column": 78}}, {"id": 981, "type": "subscript_expression", "text": "rb->spans[y]", "parent": 980, "children": [982, 985], "start_point": {"row": 260, "column": 4}, "end_point": {"row": 260, "column": 16}}, {"id": 982, "type": "field_expression", "text": "rb->spans", "parent": 981, "children": [983, 984], "start_point": {"row": 260, "column": 4}, "end_point": {"row": 260, "column": 13}}, {"id": 983, "type": "identifier", "text": "rb", "parent": 982, "children": [], "start_point": {"row": 260, "column": 4}, "end_point": {"row": 260, "column": 6}}, {"id": 984, "type": "field_identifier", "text": "spans", "parent": 982, "children": [], "start_point": {"row": 260, "column": 8}, "end_point": {"row": 260, "column": 13}}, {"id": 985, "type": "identifier", "text": "y", "parent": 981, "children": [], "start_point": {"row": 260, "column": 14}, "end_point": {"row": 260, "column": 15}}, {"id": 986, "type": "=", "text": "=", "parent": 980, "children": [], "start_point": {"row": 260, "column": 17}, "end_point": {"row": 260, "column": 18}}, {"id": 987, "type": "call_expression", "text": "eina_inlist_prepend_relative(rb->spans[y], span2, sp_start)", "parent": 980, "children": [988, 989], "start_point": {"row": 260, "column": 19}, "end_point": {"row": 260, "column": 78}}, {"id": 988, "type": "identifier", "text": "eina_inlist_prepend_relative", "parent": 987, "children": [], "start_point": {"row": 260, "column": 19}, "end_point": {"row": 260, "column": 47}}, {"id": 989, "type": "argument_list", "text": "(rb->spans[y], span2, sp_start)", "parent": 987, "children": [990, 995, 996], "start_point": {"row": 260, "column": 47}, "end_point": {"row": 260, "column": 78}}, {"id": 990, "type": "subscript_expression", "text": "rb->spans[y]", "parent": 989, "children": [991, 994], "start_point": {"row": 260, "column": 48}, "end_point": {"row": 260, "column": 60}}, {"id": 991, "type": "field_expression", "text": "rb->spans", "parent": 990, "children": [992, 993], "start_point": {"row": 260, "column": 48}, "end_point": {"row": 260, "column": 57}}, {"id": 992, "type": "identifier", "text": "rb", "parent": 991, "children": [], "start_point": {"row": 260, "column": 48}, "end_point": {"row": 260, "column": 50}}, {"id": 993, "type": "field_identifier", "text": "spans", "parent": 991, "children": [], "start_point": {"row": 260, "column": 52}, "end_point": {"row": 260, "column": 57}}, {"id": 994, "type": "identifier", "text": "y", "parent": 990, "children": [], "start_point": {"row": 260, "column": 58}, "end_point": {"row": 260, "column": 59}}, {"id": 995, "type": "identifier", "text": "span2", "parent": 989, "children": [], "start_point": {"row": 260, "column": 62}, "end_point": {"row": 260, "column": 67}}, {"id": 996, "type": "identifier", "text": "sp_start", "parent": 989, "children": [], "start_point": {"row": 260, "column": 69}, "end_point": {"row": 260, "column": 77}}, {"id": 997, "type": "assignment_expression", "text": "sp_start->x1 = x2 + 1", "parent": 952, "children": [998, 1001, 1002], "start_point": {"row": 261, "column": 4}, "end_point": {"row": 261, "column": 25}}, {"id": 998, "type": "field_expression", "text": "sp_start->x1", "parent": 997, "children": [999, 1000], "start_point": {"row": 261, "column": 4}, "end_point": {"row": 261, "column": 16}}, {"id": 999, "type": "identifier", "text": "sp_start", "parent": 998, "children": [], "start_point": {"row": 261, "column": 4}, "end_point": {"row": 261, "column": 12}}, {"id": 1000, "type": "field_identifier", "text": "x1", "parent": 998, "children": [], "start_point": {"row": 261, "column": 14}, "end_point": {"row": 261, "column": 16}}, {"id": 1001, "type": "=", "text": "=", "parent": 997, "children": [], "start_point": {"row": 261, "column": 17}, "end_point": {"row": 261, "column": 18}}, {"id": 1002, "type": "binary_expression", "text": "x2 + 1", "parent": 997, "children": [1003, 1004, 1005], "start_point": {"row": 261, "column": 19}, "end_point": {"row": 261, "column": 25}}, {"id": 1003, "type": "identifier", "text": "x2", "parent": 1002, "children": [], "start_point": {"row": 261, "column": 19}, "end_point": {"row": 261, "column": 21}}, {"id": 1004, "type": "+", "text": "+", "parent": 1002, "children": [], "start_point": {"row": 261, "column": 22}, "end_point": {"row": 261, "column": 23}}, {"id": 1005, "type": "number_literal", "text": "1", "parent": 1002, "children": [], "start_point": {"row": 261, "column": 24}, "end_point": {"row": 261, "column": 25}}, {"id": 1006, "type": "return_statement", "text": "return;", "parent": 952, "children": [], "start_point": {"row": 262, "column": 4}, "end_point": {"row": 262, "column": 11}}, {"id": 1007, "type": "else_clause", "text": "else\n\t {\n\t Eina_Inlist *l;\n\n\t /* remove all nodes after sp_start and before_sp_stop because\n\t * the new */\n\t for (l = (EINA_INLIST_GET(sp_start))->next; l != EINA_INLIST_GET(sp_stop);)\n\t {\n\t\t span = (Regionspan *)l;\n\t\t l = l->next;\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], span);\n\t\t free(span);\n\t }\n\t /* all of the start span is cut out */\n\t if (x1 <= sp_start->x1)\n\t {\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n\t\t free(sp_start);\n\t }\n\t /* chup it off at the new span start */\n\t else\n\t sp_start->x2 = x1 - 1;\n\t /* all of the end span is cut out */\n\t if (x2 >= sp_stop->x2)\n\t {\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_stop);\n\t\t free(sp_stop);\n\t }\n\t /* chop it up at the end */\n\t else\n\t sp_stop->x1 = x2 + 1;\n\t return;\n\t }", "parent": 852, "children": [], "start_point": {"row": 265, "column": 1}, "end_point": {"row": 297, "column": 4}}, {"id": 1008, "type": "declaration", "text": "Eina_Inlist *l;", "parent": 1007, "children": [1009, 1010], "start_point": {"row": 267, "column": 6}, "end_point": {"row": 267, "column": 21}}, {"id": 1009, "type": "type_identifier", "text": "Eina_Inlist", "parent": 1008, "children": [], "start_point": {"row": 267, "column": 6}, "end_point": {"row": 267, "column": 17}}, {"id": 1010, "type": "pointer_declarator", "text": "*l", "parent": 1008, "children": [1011, 1012], "start_point": {"row": 267, "column": 18}, "end_point": {"row": 267, "column": 20}}, {"id": 1011, "type": "*", "text": "*", "parent": 1010, "children": [], "start_point": {"row": 267, "column": 18}, "end_point": {"row": 267, "column": 19}}, {"id": 1012, "type": "identifier", "text": "l", "parent": 1010, "children": [], "start_point": {"row": 267, "column": 19}, "end_point": {"row": 267, "column": 20}}, {"id": 1013, "type": "for_statement", "text": "for (l = (EINA_INLIST_GET(sp_start))->next; l != EINA_INLIST_GET(sp_stop);)\n\t {\n\t\t span = (Regionspan *)l;\n\t\t l = l->next;\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], span);\n\t\t free(span);\n\t }", "parent": 1007, "children": [1014, 1024], "start_point": {"row": 271, "column": 6}, "end_point": {"row": 277, "column": 9}}, {"id": 1014, "type": "assignment_expression", "text": "l = (EINA_INLIST_GET(sp_start))->next", "parent": 1013, "children": [1015, 1016, 1017], "start_point": {"row": 271, "column": 11}, "end_point": {"row": 271, "column": 48}}, {"id": 1015, "type": "identifier", "text": "l", "parent": 1014, "children": [], "start_point": {"row": 271, "column": 11}, "end_point": {"row": 271, "column": 12}}, {"id": 1016, "type": "=", "text": "=", "parent": 1014, "children": [], "start_point": {"row": 271, "column": 13}, "end_point": {"row": 271, "column": 14}}, {"id": 1017, "type": "field_expression", "text": "(EINA_INLIST_GET(sp_start))->next", "parent": 1014, "children": [1018, 1023], "start_point": {"row": 271, "column": 15}, "end_point": {"row": 271, "column": 48}}, {"id": 1018, "type": "parenthesized_expression", "text": "(EINA_INLIST_GET(sp_start))", "parent": 1017, "children": [1019], "start_point": {"row": 271, "column": 15}, "end_point": {"row": 271, "column": 42}}, {"id": 1019, "type": "call_expression", "text": "EINA_INLIST_GET(sp_start)", "parent": 1018, "children": [1020, 1021], "start_point": {"row": 271, "column": 16}, "end_point": {"row": 271, "column": 41}}, {"id": 1020, "type": "identifier", "text": "EINA_INLIST_GET", "parent": 1019, "children": [], "start_point": {"row": 271, "column": 16}, "end_point": {"row": 271, "column": 31}}, {"id": 1021, "type": "argument_list", "text": "(sp_start)", "parent": 1019, "children": [1022], "start_point": {"row": 271, "column": 31}, "end_point": {"row": 271, "column": 41}}, {"id": 1022, "type": "identifier", "text": "sp_start", "parent": 1021, "children": [], "start_point": {"row": 271, "column": 32}, "end_point": {"row": 271, "column": 40}}, {"id": 1023, "type": "field_identifier", "text": "next", "parent": 1017, "children": [], "start_point": {"row": 271, "column": 44}, "end_point": {"row": 271, "column": 48}}, {"id": 1024, "type": "binary_expression", "text": "l != EINA_INLIST_GET(sp_stop)", "parent": 1013, "children": [1025, 1026, 1027], "start_point": {"row": 271, "column": 50}, "end_point": {"row": 271, "column": 79}}, {"id": 1025, "type": "identifier", "text": "l", "parent": 1024, "children": [], "start_point": {"row": 271, "column": 50}, "end_point": {"row": 271, "column": 51}}, {"id": 1026, "type": "!=", "text": "!=", "parent": 1024, "children": [], "start_point": {"row": 271, "column": 52}, "end_point": {"row": 271, "column": 54}}, {"id": 1027, "type": "call_expression", "text": "EINA_INLIST_GET(sp_stop)", "parent": 1024, "children": [1028, 1029], "start_point": {"row": 271, "column": 55}, "end_point": {"row": 271, "column": 79}}, {"id": 1028, "type": "identifier", "text": "EINA_INLIST_GET", "parent": 1027, "children": [], "start_point": {"row": 271, "column": 55}, "end_point": {"row": 271, "column": 70}}, {"id": 1029, "type": "argument_list", "text": "(sp_stop)", "parent": 1027, "children": [1030], "start_point": {"row": 271, "column": 70}, "end_point": {"row": 271, "column": 79}}, {"id": 1030, "type": "identifier", "text": "sp_stop", "parent": 1029, "children": [], "start_point": {"row": 271, "column": 71}, "end_point": {"row": 271, "column": 78}}, {"id": 1031, "type": "assignment_expression", "text": "span = (Regionspan *)l", "parent": 1013, "children": [1032, 1033, 1034], "start_point": {"row": 273, "column": 4}, "end_point": {"row": 273, "column": 26}}, {"id": 1032, "type": "identifier", "text": "span", "parent": 1031, "children": [], "start_point": {"row": 273, "column": 4}, "end_point": {"row": 273, "column": 8}}, {"id": 1033, "type": "=", "text": "=", "parent": 1031, "children": [], "start_point": {"row": 273, "column": 9}, "end_point": {"row": 273, "column": 10}}, {"id": 1034, "type": "cast_expression", "text": "(Regionspan *)l", "parent": 1031, "children": [1035, 1039], "start_point": {"row": 273, "column": 11}, "end_point": {"row": 273, "column": 26}}, {"id": 1035, "type": "type_descriptor", "text": "Regionspan *", "parent": 1034, "children": [1036, 1037], "start_point": {"row": 273, "column": 12}, "end_point": {"row": 273, "column": 24}}, {"id": 1036, "type": "type_identifier", "text": "Regionspan", "parent": 1035, "children": [], "start_point": {"row": 273, "column": 12}, "end_point": {"row": 273, "column": 22}}, {"id": 1037, "type": "abstract_pointer_declarator", "text": "*", "parent": 1035, "children": [1038], "start_point": {"row": 273, "column": 23}, "end_point": {"row": 273, "column": 24}}, {"id": 1038, "type": "*", "text": "*", "parent": 1037, "children": [], "start_point": {"row": 273, "column": 23}, "end_point": {"row": 273, "column": 24}}, {"id": 1039, "type": "identifier", "text": "l", "parent": 1034, "children": [], "start_point": {"row": 273, "column": 25}, "end_point": {"row": 273, "column": 26}}, {"id": 1040, "type": "assignment_expression", "text": "l = l->next", "parent": 1013, "children": [1041, 1042, 1043], "start_point": {"row": 274, "column": 4}, "end_point": {"row": 274, "column": 15}}, {"id": 1041, "type": "identifier", "text": "l", "parent": 1040, "children": [], "start_point": {"row": 274, "column": 4}, "end_point": {"row": 274, "column": 5}}, {"id": 1042, "type": "=", "text": "=", "parent": 1040, "children": [], "start_point": {"row": 274, "column": 6}, "end_point": {"row": 274, "column": 7}}, {"id": 1043, "type": "field_expression", "text": "l->next", "parent": 1040, "children": [1044, 1045], "start_point": {"row": 274, "column": 8}, "end_point": {"row": 274, "column": 15}}, {"id": 1044, "type": "identifier", "text": "l", "parent": 1043, "children": [], "start_point": {"row": 274, "column": 8}, "end_point": {"row": 274, "column": 9}}, {"id": 1045, "type": "field_identifier", "text": "next", "parent": 1043, "children": [], "start_point": {"row": 274, "column": 11}, "end_point": {"row": 274, "column": 15}}, {"id": 1046, "type": "assignment_expression", "text": "rb->spans[y] = eina_inlist_remove(rb->spans[y], span)", "parent": 1013, "children": [1047, 1052, 1053], "start_point": {"row": 275, "column": 4}, "end_point": {"row": 275, "column": 57}}, {"id": 1047, "type": "subscript_expression", "text": "rb->spans[y]", "parent": 1046, "children": [1048, 1051], "start_point": {"row": 275, "column": 4}, "end_point": {"row": 275, "column": 16}}, {"id": 1048, "type": "field_expression", "text": "rb->spans", "parent": 1047, "children": [1049, 1050], "start_point": {"row": 275, "column": 4}, "end_point": {"row": 275, "column": 13}}, {"id": 1049, "type": "identifier", "text": "rb", "parent": 1048, "children": [], "start_point": {"row": 275, "column": 4}, "end_point": {"row": 275, "column": 6}}, {"id": 1050, "type": "field_identifier", "text": "spans", "parent": 1048, "children": [], "start_point": {"row": 275, "column": 8}, "end_point": {"row": 275, "column": 13}}, {"id": 1051, "type": "identifier", "text": "y", "parent": 1047, "children": [], "start_point": {"row": 275, "column": 14}, "end_point": {"row": 275, "column": 15}}, {"id": 1052, "type": "=", "text": "=", "parent": 1046, "children": [], "start_point": {"row": 275, "column": 17}, "end_point": {"row": 275, "column": 18}}, {"id": 1053, "type": "call_expression", "text": "eina_inlist_remove(rb->spans[y], span)", "parent": 1046, "children": [1054, 1055], "start_point": {"row": 275, "column": 19}, "end_point": {"row": 275, "column": 57}}, {"id": 1054, "type": "identifier", "text": "eina_inlist_remove", "parent": 1053, "children": [], "start_point": {"row": 275, "column": 19}, "end_point": {"row": 275, "column": 37}}, {"id": 1055, "type": "argument_list", "text": "(rb->spans[y], span)", "parent": 1053, "children": [1056, 1061], "start_point": {"row": 275, "column": 37}, "end_point": {"row": 275, "column": 57}}, {"id": 1056, "type": "subscript_expression", "text": "rb->spans[y]", "parent": 1055, "children": [1057, 1060], "start_point": {"row": 275, "column": 38}, "end_point": {"row": 275, "column": 50}}, {"id": 1057, "type": "field_expression", "text": "rb->spans", "parent": 1056, "children": [1058, 1059], "start_point": {"row": 275, "column": 38}, "end_point": {"row": 275, "column": 47}}, {"id": 1058, "type": "identifier", "text": "rb", "parent": 1057, "children": [], "start_point": {"row": 275, "column": 38}, "end_point": {"row": 275, "column": 40}}, {"id": 1059, "type": "field_identifier", "text": "spans", "parent": 1057, "children": [], "start_point": {"row": 275, "column": 42}, "end_point": {"row": 275, "column": 47}}, {"id": 1060, "type": "identifier", "text": "y", "parent": 1056, "children": [], "start_point": {"row": 275, "column": 48}, "end_point": {"row": 275, "column": 49}}, {"id": 1061, "type": "identifier", "text": "span", "parent": 1055, "children": [], "start_point": {"row": 275, "column": 52}, "end_point": {"row": 275, "column": 56}}, {"id": 1062, "type": "call_expression", "text": "free(span)", "parent": 1013, "children": [1063, 1064], "start_point": {"row": 276, "column": 4}, "end_point": {"row": 276, "column": 14}}, {"id": 1063, "type": "identifier", "text": "free", "parent": 1062, "children": [], "start_point": {"row": 276, "column": 4}, "end_point": {"row": 276, "column": 8}}, {"id": 1064, "type": "argument_list", "text": "(span)", "parent": 1062, "children": [1065], "start_point": {"row": 276, "column": 8}, "end_point": {"row": 276, "column": 14}}, {"id": 1065, "type": "identifier", "text": "span", "parent": 1064, "children": [], "start_point": {"row": 276, "column": 9}, "end_point": {"row": 276, "column": 13}}, {"id": 1066, "type": "if_statement", "text": "if (x1 <= sp_start->x1)\n\t {\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n\t\t free(sp_start);\n\t }\n\t /* chup it off at the new span start */\n\t else\n\t sp_start->x2 = x1 - 1;", "parent": 1007, "children": [1067, 1094], "start_point": {"row": 279, "column": 6}, "end_point": {"row": 286, "column": 30}}, {"id": 1067, "type": "parenthesized_expression", "text": "(x1 <= sp_start->x1)", "parent": 1066, "children": [1068], "start_point": {"row": 279, "column": 9}, "end_point": {"row": 279, "column": 29}}, {"id": 1068, "type": "binary_expression", "text": "x1 <= sp_start->x1", "parent": 1067, "children": [1069, 1070, 1071], "start_point": {"row": 279, "column": 10}, "end_point": {"row": 279, "column": 28}}, {"id": 1069, "type": "identifier", "text": "x1", "parent": 1068, "children": [], "start_point": {"row": 279, "column": 10}, "end_point": {"row": 279, "column": 12}}, {"id": 1070, "type": "<=", "text": "<=", "parent": 1068, "children": [], "start_point": {"row": 279, "column": 13}, "end_point": {"row": 279, "column": 15}}, {"id": 1071, "type": "field_expression", "text": "sp_start->x1", "parent": 1068, "children": [1072, 1073], "start_point": {"row": 279, "column": 16}, "end_point": {"row": 279, "column": 28}}, {"id": 1072, "type": "identifier", "text": "sp_start", "parent": 1071, "children": [], "start_point": {"row": 279, "column": 16}, "end_point": {"row": 279, "column": 24}}, {"id": 1073, "type": "field_identifier", "text": "x1", "parent": 1071, "children": [], "start_point": {"row": 279, "column": 26}, "end_point": {"row": 279, "column": 28}}, {"id": 1074, "type": "assignment_expression", "text": "rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start)", "parent": 1066, "children": [1075, 1080, 1081], "start_point": {"row": 281, "column": 4}, "end_point": {"row": 281, "column": 61}}, {"id": 1075, "type": "subscript_expression", "text": "rb->spans[y]", "parent": 1074, "children": [1076, 1079], "start_point": {"row": 281, "column": 4}, "end_point": {"row": 281, "column": 16}}, {"id": 1076, "type": "field_expression", "text": "rb->spans", "parent": 1075, "children": [1077, 1078], "start_point": {"row": 281, "column": 4}, "end_point": {"row": 281, "column": 13}}, {"id": 1077, "type": "identifier", "text": "rb", "parent": 1076, "children": [], "start_point": {"row": 281, "column": 4}, "end_point": {"row": 281, "column": 6}}, {"id": 1078, "type": "field_identifier", "text": "spans", "parent": 1076, "children": [], "start_point": {"row": 281, "column": 8}, "end_point": {"row": 281, "column": 13}}, {"id": 1079, "type": "identifier", "text": "y", "parent": 1075, "children": [], "start_point": {"row": 281, "column": 14}, "end_point": {"row": 281, "column": 15}}, {"id": 1080, "type": "=", "text": "=", "parent": 1074, "children": [], "start_point": {"row": 281, "column": 17}, "end_point": {"row": 281, "column": 18}}, {"id": 1081, "type": "call_expression", "text": "eina_inlist_remove(rb->spans[y], sp_start)", "parent": 1074, "children": [1082, 1083], "start_point": {"row": 281, "column": 19}, "end_point": {"row": 281, "column": 61}}, {"id": 1082, "type": "identifier", "text": "eina_inlist_remove", "parent": 1081, "children": [], "start_point": {"row": 281, "column": 19}, "end_point": {"row": 281, "column": 37}}, {"id": 1083, "type": "argument_list", "text": "(rb->spans[y], sp_start)", "parent": 1081, "children": [1084, 1089], "start_point": {"row": 281, "column": 37}, "end_point": {"row": 281, "column": 61}}, {"id": 1084, "type": "subscript_expression", "text": "rb->spans[y]", "parent": 1083, "children": [1085, 1088], "start_point": {"row": 281, "column": 38}, "end_point": {"row": 281, "column": 50}}, {"id": 1085, "type": "field_expression", "text": "rb->spans", "parent": 1084, "children": [1086, 1087], "start_point": {"row": 281, "column": 38}, "end_point": {"row": 281, "column": 47}}, {"id": 1086, "type": "identifier", "text": "rb", "parent": 1085, "children": [], "start_point": {"row": 281, "column": 38}, "end_point": {"row": 281, "column": 40}}, {"id": 1087, "type": "field_identifier", "text": "spans", "parent": 1085, "children": [], "start_point": {"row": 281, "column": 42}, "end_point": {"row": 281, "column": 47}}, {"id": 1088, "type": "identifier", "text": "y", "parent": 1084, "children": [], "start_point": {"row": 281, "column": 48}, "end_point": {"row": 281, "column": 49}}, {"id": 1089, "type": "identifier", "text": "sp_start", "parent": 1083, "children": [], "start_point": {"row": 281, "column": 52}, "end_point": {"row": 281, "column": 60}}, {"id": 1090, "type": "call_expression", "text": "free(sp_start)", "parent": 1066, "children": [1091, 1092], "start_point": {"row": 282, "column": 4}, "end_point": {"row": 282, "column": 18}}, {"id": 1091, "type": "identifier", "text": "free", "parent": 1090, "children": [], "start_point": {"row": 282, "column": 4}, "end_point": {"row": 282, "column": 8}}, {"id": 1092, "type": "argument_list", "text": "(sp_start)", "parent": 1090, "children": [1093], "start_point": {"row": 282, "column": 8}, "end_point": {"row": 282, "column": 18}}, {"id": 1093, "type": "identifier", "text": "sp_start", "parent": 1092, "children": [], "start_point": {"row": 282, "column": 9}, "end_point": {"row": 282, "column": 17}}, {"id": 1094, "type": "else_clause", "text": "else\n\t sp_start->x2 = x1 - 1;", "parent": 1066, "children": [], "start_point": {"row": 285, "column": 6}, "end_point": {"row": 286, "column": 30}}, {"id": 1095, "type": "assignment_expression", "text": "sp_start->x2 = x1 - 1", "parent": 1094, "children": [1096, 1099, 1100], "start_point": {"row": 286, "column": 8}, "end_point": {"row": 286, "column": 29}}, {"id": 1096, "type": "field_expression", "text": "sp_start->x2", "parent": 1095, "children": [1097, 1098], "start_point": {"row": 286, "column": 8}, "end_point": {"row": 286, "column": 20}}, {"id": 1097, "type": "identifier", "text": "sp_start", "parent": 1096, "children": [], "start_point": {"row": 286, "column": 8}, "end_point": {"row": 286, "column": 16}}, {"id": 1098, "type": "field_identifier", "text": "x2", "parent": 1096, "children": [], "start_point": {"row": 286, "column": 18}, "end_point": {"row": 286, "column": 20}}, {"id": 1099, "type": "=", "text": "=", "parent": 1095, "children": [], "start_point": {"row": 286, "column": 21}, "end_point": {"row": 286, "column": 22}}, {"id": 1100, "type": "binary_expression", "text": "x1 - 1", "parent": 1095, "children": [1101, 1102, 1103], "start_point": {"row": 286, "column": 23}, "end_point": {"row": 286, "column": 29}}, {"id": 1101, "type": "identifier", "text": "x1", "parent": 1100, "children": [], "start_point": {"row": 286, "column": 23}, "end_point": {"row": 286, "column": 25}}, {"id": 1102, "type": "-", "text": "-", "parent": 1100, "children": [], "start_point": {"row": 286, "column": 26}, "end_point": {"row": 286, "column": 27}}, {"id": 1103, "type": "number_literal", "text": "1", "parent": 1100, "children": [], "start_point": {"row": 286, "column": 28}, "end_point": {"row": 286, "column": 29}}, {"id": 1104, "type": "if_statement", "text": "if (x2 >= sp_stop->x2)\n\t {\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_stop);\n\t\t free(sp_stop);\n\t }\n\t /* chop it up at the end */\n\t else\n\t sp_stop->x1 = x2 + 1;", "parent": 1007, "children": [1105, 1132], "start_point": {"row": 288, "column": 6}, "end_point": {"row": 295, "column": 29}}, {"id": 1105, "type": "parenthesized_expression", "text": "(x2 >= sp_stop->x2)", "parent": 1104, "children": [1106], "start_point": {"row": 288, "column": 9}, "end_point": {"row": 288, "column": 28}}, {"id": 1106, "type": "binary_expression", "text": "x2 >= sp_stop->x2", "parent": 1105, "children": [1107, 1108, 1109], "start_point": {"row": 288, "column": 10}, "end_point": {"row": 288, "column": 27}}, {"id": 1107, "type": "identifier", "text": "x2", "parent": 1106, "children": [], "start_point": {"row": 288, "column": 10}, "end_point": {"row": 288, "column": 12}}, {"id": 1108, "type": ">=", "text": ">=", "parent": 1106, "children": [], "start_point": {"row": 288, "column": 13}, "end_point": {"row": 288, "column": 15}}, {"id": 1109, "type": "field_expression", "text": "sp_stop->x2", "parent": 1106, "children": [1110, 1111], "start_point": {"row": 288, "column": 16}, "end_point": {"row": 288, "column": 27}}, {"id": 1110, "type": "identifier", "text": "sp_stop", "parent": 1109, "children": [], "start_point": {"row": 288, "column": 16}, "end_point": {"row": 288, "column": 23}}, {"id": 1111, "type": "field_identifier", "text": "x2", "parent": 1109, "children": [], "start_point": {"row": 288, "column": 25}, "end_point": {"row": 288, "column": 27}}, {"id": 1112, "type": "assignment_expression", "text": "rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_stop)", "parent": 1104, "children": [1113, 1118, 1119], "start_point": {"row": 290, "column": 4}, "end_point": {"row": 290, "column": 60}}, {"id": 1113, "type": "subscript_expression", "text": "rb->spans[y]", "parent": 1112, "children": [1114, 1117], "start_point": {"row": 290, "column": 4}, "end_point": {"row": 290, "column": 16}}, {"id": 1114, "type": "field_expression", "text": "rb->spans", "parent": 1113, "children": [1115, 1116], "start_point": {"row": 290, "column": 4}, "end_point": {"row": 290, "column": 13}}, {"id": 1115, "type": "identifier", "text": "rb", "parent": 1114, "children": [], "start_point": {"row": 290, "column": 4}, "end_point": {"row": 290, "column": 6}}, {"id": 1116, "type": "field_identifier", "text": "spans", "parent": 1114, "children": [], "start_point": {"row": 290, "column": 8}, "end_point": {"row": 290, "column": 13}}, {"id": 1117, "type": "identifier", "text": "y", "parent": 1113, "children": [], "start_point": {"row": 290, "column": 14}, "end_point": {"row": 290, "column": 15}}, {"id": 1118, "type": "=", "text": "=", "parent": 1112, "children": [], "start_point": {"row": 290, "column": 17}, "end_point": {"row": 290, "column": 18}}, {"id": 1119, "type": "call_expression", "text": "eina_inlist_remove(rb->spans[y], sp_stop)", "parent": 1112, "children": [1120, 1121], "start_point": {"row": 290, "column": 19}, "end_point": {"row": 290, "column": 60}}, {"id": 1120, "type": "identifier", "text": "eina_inlist_remove", "parent": 1119, "children": [], "start_point": {"row": 290, "column": 19}, "end_point": {"row": 290, "column": 37}}, {"id": 1121, "type": "argument_list", "text": "(rb->spans[y], sp_stop)", "parent": 1119, "children": [1122, 1127], "start_point": {"row": 290, "column": 37}, "end_point": {"row": 290, "column": 60}}, {"id": 1122, "type": "subscript_expression", "text": "rb->spans[y]", "parent": 1121, "children": [1123, 1126], "start_point": {"row": 290, "column": 38}, "end_point": {"row": 290, "column": 50}}, {"id": 1123, "type": "field_expression", "text": "rb->spans", "parent": 1122, "children": [1124, 1125], "start_point": {"row": 290, "column": 38}, "end_point": {"row": 290, "column": 47}}, {"id": 1124, "type": "identifier", "text": "rb", "parent": 1123, "children": [], "start_point": {"row": 290, "column": 38}, "end_point": {"row": 290, "column": 40}}, {"id": 1125, "type": "field_identifier", "text": "spans", "parent": 1123, "children": [], "start_point": {"row": 290, "column": 42}, "end_point": {"row": 290, "column": 47}}, {"id": 1126, "type": "identifier", "text": "y", "parent": 1122, "children": [], "start_point": {"row": 290, "column": 48}, "end_point": {"row": 290, "column": 49}}, {"id": 1127, "type": "identifier", "text": "sp_stop", "parent": 1121, "children": [], "start_point": {"row": 290, "column": 52}, "end_point": {"row": 290, "column": 59}}, {"id": 1128, "type": "call_expression", "text": "free(sp_stop)", "parent": 1104, "children": [1129, 1130], "start_point": {"row": 291, "column": 4}, "end_point": {"row": 291, "column": 17}}, {"id": 1129, "type": "identifier", "text": "free", "parent": 1128, "children": [], "start_point": {"row": 291, "column": 4}, "end_point": {"row": 291, "column": 8}}, {"id": 1130, "type": "argument_list", "text": "(sp_stop)", "parent": 1128, "children": [1131], "start_point": {"row": 291, "column": 8}, "end_point": {"row": 291, "column": 17}}, {"id": 1131, "type": "identifier", "text": "sp_stop", "parent": 1130, "children": [], "start_point": {"row": 291, "column": 9}, "end_point": {"row": 291, "column": 16}}, {"id": 1132, "type": "else_clause", "text": "else\n\t sp_stop->x1 = x2 + 1;", "parent": 1104, "children": [], "start_point": {"row": 294, "column": 6}, "end_point": {"row": 295, "column": 29}}, {"id": 1133, "type": "assignment_expression", "text": "sp_stop->x1 = x2 + 1", "parent": 1132, "children": [1134, 1137, 1138], "start_point": {"row": 295, "column": 8}, "end_point": {"row": 295, "column": 28}}, {"id": 1134, "type": "field_expression", "text": "sp_stop->x1", "parent": 1133, "children": [1135, 1136], "start_point": {"row": 295, "column": 8}, "end_point": {"row": 295, "column": 19}}, {"id": 1135, "type": "identifier", "text": "sp_stop", "parent": 1134, "children": [], "start_point": {"row": 295, "column": 8}, "end_point": {"row": 295, "column": 15}}, {"id": 1136, "type": "field_identifier", "text": "x1", "parent": 1134, "children": [], "start_point": {"row": 295, "column": 17}, "end_point": {"row": 295, "column": 19}}, {"id": 1137, "type": "=", "text": "=", "parent": 1133, "children": [], "start_point": {"row": 295, "column": 20}, "end_point": {"row": 295, "column": 21}}, {"id": 1138, "type": "binary_expression", "text": "x2 + 1", "parent": 1133, "children": [1139, 1140, 1141], "start_point": {"row": 295, "column": 22}, "end_point": {"row": 295, "column": 28}}, {"id": 1139, "type": "identifier", "text": "x2", "parent": 1138, "children": [], "start_point": {"row": 295, "column": 22}, "end_point": {"row": 295, "column": 24}}, {"id": 1140, "type": "+", "text": "+", "parent": 1138, "children": [], "start_point": {"row": 295, "column": 25}, "end_point": {"row": 295, "column": 26}}, {"id": 1141, "type": "number_literal", "text": "1", "parent": 1138, "children": [], "start_point": {"row": 295, "column": 27}, "end_point": {"row": 295, "column": 28}}, {"id": 1142, "type": "return_statement", "text": "return;", "parent": 1007, "children": [], "start_point": {"row": 296, "column": 6}, "end_point": {"row": 296, "column": 13}}, {"id": 1143, "type": "function_definition", "text": "Tilebuf_Rect *\nevas_common_regionbuf_rects_get(Regionbuf *rb)\n{\n Tilebuf_Rect *rects = NULL, *r;\n int y;\n\n /* FIXME: take spans, make rects */\n for (y = 0; y < rb->h; y++)\n {\n\tRegionspan *sp_start;\n\tEina_Inlist *l, *ll;\n\n\tfor (l = EINA_INLIST_GET(rb->spans[y]); l;)\n\t {\n\t Regionspan *span;\n\t int yy;\n\n\t sp_start = (Regionspan *)l;\n\t l = l->next;\n\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n\t for (yy = y + 1; yy < rb->h; yy++)\n\t {\n\t\t int match = 0;\n\n\t\t for (ll = EINA_INLIST_GET(rb->spans[yy]); ll;)\n\t\t {\n\t\t span = (Regionspan *)ll;\n\t\t ll = ll->next;\n\t\t if (span->x1 == sp_start->x1)\n\t\t\t {\n\t\t\t if ((span->x1 != sp_start->x1) ||\n\t\t\t\t(span->x2 != sp_start->x2))\n\t\t\t {\n\t\t\t\t goto coallate;\n\t\t\t }\n\t\t\t match = 1;\n\t\t\t rb->spans[yy] = eina_inlist_remove(rb->spans[yy], span);\n\t\t\t free(span);\n\t\t\t }\n\t\t }\n\t\t if (!match) goto coallate;\n\t }\n\t coallate:\n\t r = calloc(1, sizeof(Tilebuf_Rect));\n\t r->x = sp_start->x1;\n\t r->y = y;\n\t r->w = sp_start->x2 - sp_start->x1 + 1;\n\t r->h = yy - y;\n\t rects = eina_inlist_append(rects, r);\n\t free(sp_start);\n\t }\n }\n evas_common_regionbuf_clear(rb);\n return rects;\n}", "parent": 3, "children": [1144, 1145], "start_point": {"row": 301, "column": 0}, "end_point": {"row": 355, "column": 1}}, {"id": 1144, "type": "type_identifier", "text": "Tilebuf_Rect", "parent": 1143, "children": [], "start_point": {"row": 301, "column": 0}, "end_point": {"row": 301, "column": 12}}, {"id": 1145, "type": "pointer_declarator", "text": "*\nevas_common_regionbuf_rects_get(Regionbuf *rb)", "parent": 1143, "children": [1146, 1147], "start_point": {"row": 301, "column": 13}, "end_point": {"row": 302, "column": 46}}, {"id": 1146, "type": "*", "text": "*", "parent": 1145, "children": [], "start_point": {"row": 301, "column": 13}, "end_point": {"row": 301, "column": 14}}, {"id": 1147, "type": "function_declarator", "text": "evas_common_regionbuf_rects_get(Regionbuf *rb)", "parent": 1145, "children": [1148, 1149], "start_point": {"row": 302, "column": 0}, "end_point": {"row": 302, "column": 46}}, {"id": 1148, "type": "identifier", "text": "evas_common_regionbuf_rects_get", "parent": 1147, "children": [], "start_point": {"row": 302, "column": 0}, "end_point": {"row": 302, "column": 31}}, {"id": 1149, "type": "parameter_list", "text": "(Regionbuf *rb)", "parent": 1147, "children": [1150], "start_point": {"row": 302, "column": 31}, "end_point": {"row": 302, "column": 46}}, {"id": 1150, "type": "parameter_declaration", "text": "Regionbuf *rb", "parent": 1149, "children": [1151, 1152], "start_point": {"row": 302, "column": 32}, "end_point": {"row": 302, "column": 45}}, {"id": 1151, "type": "type_identifier", "text": "Regionbuf", "parent": 1150, "children": [], "start_point": {"row": 302, "column": 32}, "end_point": {"row": 302, "column": 41}}, {"id": 1152, "type": "pointer_declarator", "text": "*rb", "parent": 1150, "children": [1153, 1154], "start_point": {"row": 302, "column": 42}, "end_point": {"row": 302, "column": 45}}, {"id": 1153, "type": "*", "text": "*", "parent": 1152, "children": [], "start_point": {"row": 302, "column": 42}, "end_point": {"row": 302, "column": 43}}, {"id": 1154, "type": "identifier", "text": "rb", "parent": 1152, "children": [], "start_point": {"row": 302, "column": 43}, "end_point": {"row": 302, "column": 45}}, {"id": 1155, "type": "declaration", "text": "Tilebuf_Rect *rects = NULL, *r;", "parent": 1143, "children": [1156, 1157, 1164], "start_point": {"row": 304, "column": 3}, "end_point": {"row": 304, "column": 34}}, {"id": 1156, "type": "type_identifier", "text": "Tilebuf_Rect", "parent": 1155, "children": [], "start_point": {"row": 304, "column": 3}, "end_point": {"row": 304, "column": 15}}, {"id": 1157, "type": "init_declarator", "text": "*rects = NULL", "parent": 1155, "children": [1158, 1161, 1162], "start_point": {"row": 304, "column": 16}, "end_point": {"row": 304, "column": 29}}, {"id": 1158, "type": "pointer_declarator", "text": "*rects", "parent": 1157, "children": [1159, 1160], "start_point": {"row": 304, "column": 16}, "end_point": {"row": 304, "column": 22}}, {"id": 1159, "type": "*", "text": "*", "parent": 1158, "children": [], "start_point": {"row": 304, "column": 16}, "end_point": {"row": 304, "column": 17}}, {"id": 1160, "type": "identifier", "text": "rects", "parent": 1158, "children": [], "start_point": {"row": 304, "column": 17}, "end_point": {"row": 304, "column": 22}}, {"id": 1161, "type": "=", "text": "=", "parent": 1157, "children": [], "start_point": {"row": 304, "column": 23}, "end_point": {"row": 304, "column": 24}}, {"id": 1162, "type": "null", "text": "NULL", "parent": 1157, "children": [1163], "start_point": {"row": 304, "column": 25}, "end_point": {"row": 304, "column": 29}}, {"id": 1163, "type": "NULL", "text": "NULL", "parent": 1162, "children": [], "start_point": {"row": 304, "column": 25}, "end_point": {"row": 304, "column": 29}}, {"id": 1164, "type": "pointer_declarator", "text": "*r", "parent": 1155, "children": [1165, 1166], "start_point": {"row": 304, "column": 31}, "end_point": {"row": 304, "column": 33}}, {"id": 1165, "type": "*", "text": "*", "parent": 1164, "children": [], "start_point": {"row": 304, "column": 31}, "end_point": {"row": 304, "column": 32}}, {"id": 1166, "type": "identifier", "text": "r", "parent": 1164, "children": [], "start_point": {"row": 304, "column": 32}, "end_point": {"row": 304, "column": 33}}, {"id": 1167, "type": "declaration", "text": "int y;", "parent": 1143, "children": [1168, 1169], "start_point": {"row": 305, "column": 3}, "end_point": {"row": 305, "column": 9}}, {"id": 1168, "type": "primitive_type", "text": "int", "parent": 1167, "children": [], "start_point": {"row": 305, "column": 3}, "end_point": {"row": 305, "column": 6}}, {"id": 1169, "type": "identifier", "text": "y", "parent": 1167, "children": [], "start_point": {"row": 305, "column": 7}, "end_point": {"row": 305, "column": 8}}, {"id": 1170, "type": "for_statement", "text": "for (y = 0; y < rb->h; y++)\n {\n\tRegionspan *sp_start;\n\tEina_Inlist *l, *ll;\n\n\tfor (l = EINA_INLIST_GET(rb->spans[y]); l;)\n\t {\n\t Regionspan *span;\n\t int yy;\n\n\t sp_start = (Regionspan *)l;\n\t l = l->next;\n\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n\t for (yy = y + 1; yy < rb->h; yy++)\n\t {\n\t\t int match = 0;\n\n\t\t for (ll = EINA_INLIST_GET(rb->spans[yy]); ll;)\n\t\t {\n\t\t span = (Regionspan *)ll;\n\t\t ll = ll->next;\n\t\t if (span->x1 == sp_start->x1)\n\t\t\t {\n\t\t\t if ((span->x1 != sp_start->x1) ||\n\t\t\t\t(span->x2 != sp_start->x2))\n\t\t\t {\n\t\t\t\t goto coallate;\n\t\t\t }\n\t\t\t match = 1;\n\t\t\t rb->spans[yy] = eina_inlist_remove(rb->spans[yy], span);\n\t\t\t free(span);\n\t\t\t }\n\t\t }\n\t\t if (!match) goto coallate;\n\t }\n\t coallate:\n\t r = calloc(1, sizeof(Tilebuf_Rect));\n\t r->x = sp_start->x1;\n\t r->y = y;\n\t r->w = sp_start->x2 - sp_start->x1 + 1;\n\t r->h = yy - y;\n\t rects = eina_inlist_append(rects, r);\n\t free(sp_start);\n\t }\n }", "parent": 1143, "children": [1171, 1175, 1181], "start_point": {"row": 308, "column": 3}, "end_point": {"row": 352, "column": 6}}, {"id": 1171, "type": "assignment_expression", "text": "y = 0", "parent": 1170, "children": [1172, 1173, 1174], "start_point": {"row": 308, "column": 8}, "end_point": {"row": 308, "column": 13}}, {"id": 1172, "type": "identifier", "text": "y", "parent": 1171, "children": [], "start_point": {"row": 308, "column": 8}, "end_point": {"row": 308, "column": 9}}, {"id": 1173, "type": "=", "text": "=", "parent": 1171, "children": [], "start_point": {"row": 308, "column": 10}, "end_point": {"row": 308, "column": 11}}, {"id": 1174, "type": "number_literal", "text": "0", "parent": 1171, "children": [], "start_point": {"row": 308, "column": 12}, "end_point": {"row": 308, "column": 13}}, {"id": 1175, "type": "binary_expression", "text": "y < rb->h", "parent": 1170, "children": [1176, 1177, 1178], "start_point": {"row": 308, "column": 15}, "end_point": {"row": 308, "column": 24}}, {"id": 1176, "type": "identifier", "text": "y", "parent": 1175, "children": [], "start_point": {"row": 308, "column": 15}, "end_point": {"row": 308, "column": 16}}, {"id": 1177, "type": "<", "text": "<", "parent": 1175, "children": [], "start_point": {"row": 308, "column": 17}, "end_point": {"row": 308, "column": 18}}, {"id": 1178, "type": "field_expression", "text": "rb->h", "parent": 1175, "children": [1179, 1180], "start_point": {"row": 308, "column": 19}, "end_point": {"row": 308, "column": 24}}, {"id": 1179, "type": "identifier", "text": "rb", "parent": 1178, "children": [], "start_point": {"row": 308, "column": 19}, "end_point": {"row": 308, "column": 21}}, {"id": 1180, "type": "field_identifier", "text": "h", "parent": 1178, "children": [], "start_point": {"row": 308, "column": 23}, "end_point": {"row": 308, "column": 24}}, {"id": 1181, "type": "update_expression", "text": "y++", "parent": 1170, "children": [1182, 1183], "start_point": {"row": 308, "column": 26}, "end_point": {"row": 308, "column": 29}}, {"id": 1182, "type": "identifier", "text": "y", "parent": 1181, "children": [], "start_point": {"row": 308, "column": 26}, "end_point": {"row": 308, "column": 27}}, {"id": 1183, "type": "++", "text": "++", "parent": 1181, "children": [], "start_point": {"row": 308, "column": 27}, "end_point": {"row": 308, "column": 29}}, {"id": 1184, "type": "declaration", "text": "Regionspan *sp_start;", "parent": 1170, "children": [1185, 1186], "start_point": {"row": 310, "column": 1}, "end_point": {"row": 310, "column": 22}}, {"id": 1185, "type": "type_identifier", "text": "Regionspan", "parent": 1184, "children": [], "start_point": {"row": 310, "column": 1}, "end_point": {"row": 310, "column": 11}}, {"id": 1186, "type": "pointer_declarator", "text": "*sp_start", "parent": 1184, "children": [1187, 1188], "start_point": {"row": 310, "column": 12}, "end_point": {"row": 310, "column": 21}}, {"id": 1187, "type": "*", "text": "*", "parent": 1186, "children": [], "start_point": {"row": 310, "column": 12}, "end_point": {"row": 310, "column": 13}}, {"id": 1188, "type": "identifier", "text": "sp_start", "parent": 1186, "children": [], "start_point": {"row": 310, "column": 13}, "end_point": {"row": 310, "column": 21}}, {"id": 1189, "type": "declaration", "text": "Eina_Inlist *l, *ll;", "parent": 1170, "children": [1190, 1191, 1194], "start_point": {"row": 311, "column": 1}, "end_point": {"row": 311, "column": 21}}, {"id": 1190, "type": "type_identifier", "text": "Eina_Inlist", "parent": 1189, "children": [], "start_point": {"row": 311, "column": 1}, "end_point": {"row": 311, "column": 12}}, {"id": 1191, "type": "pointer_declarator", "text": "*l", "parent": 1189, "children": [1192, 1193], "start_point": {"row": 311, "column": 13}, "end_point": {"row": 311, "column": 15}}, {"id": 1192, "type": "*", "text": "*", "parent": 1191, "children": [], "start_point": {"row": 311, "column": 13}, "end_point": {"row": 311, "column": 14}}, {"id": 1193, "type": "identifier", "text": "l", "parent": 1191, "children": [], "start_point": {"row": 311, "column": 14}, "end_point": {"row": 311, "column": 15}}, {"id": 1194, "type": "pointer_declarator", "text": "*ll", "parent": 1189, "children": [1195, 1196], "start_point": {"row": 311, "column": 17}, "end_point": {"row": 311, "column": 20}}, {"id": 1195, "type": "*", "text": "*", "parent": 1194, "children": [], "start_point": {"row": 311, "column": 17}, "end_point": {"row": 311, "column": 18}}, {"id": 1196, "type": "identifier", "text": "ll", "parent": 1194, "children": [], "start_point": {"row": 311, "column": 18}, "end_point": {"row": 311, "column": 20}}, {"id": 1197, "type": "for_statement", "text": "for (l = EINA_INLIST_GET(rb->spans[y]); l;)\n\t {\n\t Regionspan *span;\n\t int yy;\n\n\t sp_start = (Regionspan *)l;\n\t l = l->next;\n\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n\t for (yy = y + 1; yy < rb->h; yy++)\n\t {\n\t\t int match = 0;\n\n\t\t for (ll = EINA_INLIST_GET(rb->spans[yy]); ll;)\n\t\t {\n\t\t span = (Regionspan *)ll;\n\t\t ll = ll->next;\n\t\t if (span->x1 == sp_start->x1)\n\t\t\t {\n\t\t\t if ((span->x1 != sp_start->x1) ||\n\t\t\t\t(span->x2 != sp_start->x2))\n\t\t\t {\n\t\t\t\t goto coallate;\n\t\t\t }\n\t\t\t match = 1;\n\t\t\t rb->spans[yy] = eina_inlist_remove(rb->spans[yy], span);\n\t\t\t free(span);\n\t\t\t }\n\t\t }\n\t\t if (!match) goto coallate;\n\t }\n\t coallate:\n\t r = calloc(1, sizeof(Tilebuf_Rect));\n\t r->x = sp_start->x1;\n\t r->y = y;\n\t r->w = sp_start->x2 - sp_start->x1 + 1;\n\t r->h = yy - y;\n\t rects = eina_inlist_append(rects, r);\n\t free(sp_start);\n\t }", "parent": 1170, "children": [1198, 1209], "start_point": {"row": 313, "column": 1}, "end_point": {"row": 351, "column": 4}}, {"id": 1198, "type": "assignment_expression", "text": "l = EINA_INLIST_GET(rb->spans[y])", "parent": 1197, "children": [1199, 1200, 1201], "start_point": {"row": 313, "column": 6}, "end_point": {"row": 313, "column": 39}}, {"id": 1199, "type": "identifier", "text": "l", "parent": 1198, "children": [], "start_point": {"row": 313, "column": 6}, "end_point": {"row": 313, "column": 7}}, {"id": 1200, "type": "=", "text": "=", "parent": 1198, "children": [], "start_point": {"row": 313, "column": 8}, "end_point": {"row": 313, "column": 9}}, {"id": 1201, "type": "call_expression", "text": "EINA_INLIST_GET(rb->spans[y])", "parent": 1198, "children": [1202, 1203], "start_point": {"row": 313, "column": 10}, "end_point": {"row": 313, "column": 39}}, {"id": 1202, "type": "identifier", "text": "EINA_INLIST_GET", "parent": 1201, "children": [], "start_point": {"row": 313, "column": 10}, "end_point": {"row": 313, "column": 25}}, {"id": 1203, "type": "argument_list", "text": "(rb->spans[y])", "parent": 1201, "children": [1204], "start_point": {"row": 313, "column": 25}, "end_point": {"row": 313, "column": 39}}, {"id": 1204, "type": "subscript_expression", "text": "rb->spans[y]", "parent": 1203, "children": [1205, 1208], "start_point": {"row": 313, "column": 26}, "end_point": {"row": 313, "column": 38}}, {"id": 1205, "type": "field_expression", "text": "rb->spans", "parent": 1204, "children": [1206, 1207], "start_point": {"row": 313, "column": 26}, "end_point": {"row": 313, "column": 35}}, {"id": 1206, "type": "identifier", "text": "rb", "parent": 1205, "children": [], "start_point": {"row": 313, "column": 26}, "end_point": {"row": 313, "column": 28}}, {"id": 1207, "type": "field_identifier", "text": "spans", "parent": 1205, "children": [], "start_point": {"row": 313, "column": 30}, "end_point": {"row": 313, "column": 35}}, {"id": 1208, "type": "identifier", "text": "y", "parent": 1204, "children": [], "start_point": {"row": 313, "column": 36}, "end_point": {"row": 313, "column": 37}}, {"id": 1209, "type": "identifier", "text": "l", "parent": 1197, "children": [], "start_point": {"row": 313, "column": 41}, "end_point": {"row": 313, "column": 42}}, {"id": 1210, "type": "declaration", "text": "Regionspan *span;", "parent": 1197, "children": [1211, 1212], "start_point": {"row": 315, "column": 6}, "end_point": {"row": 315, "column": 23}}, {"id": 1211, "type": "type_identifier", "text": "Regionspan", "parent": 1210, "children": [], "start_point": {"row": 315, "column": 6}, "end_point": {"row": 315, "column": 16}}, {"id": 1212, "type": "pointer_declarator", "text": "*span", "parent": 1210, "children": [1213, 1214], "start_point": {"row": 315, "column": 17}, "end_point": {"row": 315, "column": 22}}, {"id": 1213, "type": "*", "text": "*", "parent": 1212, "children": [], "start_point": {"row": 315, "column": 17}, "end_point": {"row": 315, "column": 18}}, {"id": 1214, "type": "identifier", "text": "span", "parent": 1212, "children": [], "start_point": {"row": 315, "column": 18}, "end_point": {"row": 315, "column": 22}}, {"id": 1215, "type": "declaration", "text": "int yy;", "parent": 1197, "children": [1216, 1217], "start_point": {"row": 316, "column": 6}, "end_point": {"row": 316, "column": 13}}, {"id": 1216, "type": "primitive_type", "text": "int", "parent": 1215, "children": [], "start_point": {"row": 316, "column": 6}, "end_point": {"row": 316, "column": 9}}, {"id": 1217, "type": "identifier", "text": "yy", "parent": 1215, "children": [], "start_point": {"row": 316, "column": 10}, "end_point": {"row": 316, "column": 12}}, {"id": 1218, "type": "assignment_expression", "text": "sp_start = (Regionspan *)l", "parent": 1197, "children": [1219, 1220, 1221], "start_point": {"row": 318, "column": 6}, "end_point": {"row": 318, "column": 32}}, {"id": 1219, "type": "identifier", "text": "sp_start", "parent": 1218, "children": [], "start_point": {"row": 318, "column": 6}, "end_point": {"row": 318, "column": 14}}, {"id": 1220, "type": "=", "text": "=", "parent": 1218, "children": [], "start_point": {"row": 318, "column": 15}, "end_point": {"row": 318, "column": 16}}, {"id": 1221, "type": "cast_expression", "text": "(Regionspan *)l", "parent": 1218, "children": [1222, 1226], "start_point": {"row": 318, "column": 17}, "end_point": {"row": 318, "column": 32}}, {"id": 1222, "type": "type_descriptor", "text": "Regionspan *", "parent": 1221, "children": [1223, 1224], "start_point": {"row": 318, "column": 18}, "end_point": {"row": 318, "column": 30}}, {"id": 1223, "type": "type_identifier", "text": "Regionspan", "parent": 1222, "children": [], "start_point": {"row": 318, "column": 18}, "end_point": {"row": 318, "column": 28}}, {"id": 1224, "type": "abstract_pointer_declarator", "text": "*", "parent": 1222, "children": [1225], "start_point": {"row": 318, "column": 29}, "end_point": {"row": 318, "column": 30}}, {"id": 1225, "type": "*", "text": "*", "parent": 1224, "children": [], "start_point": {"row": 318, "column": 29}, "end_point": {"row": 318, "column": 30}}, {"id": 1226, "type": "identifier", "text": "l", "parent": 1221, "children": [], "start_point": {"row": 318, "column": 31}, "end_point": {"row": 318, "column": 32}}, {"id": 1227, "type": "assignment_expression", "text": "l = l->next", "parent": 1197, "children": [1228, 1229, 1230], "start_point": {"row": 319, "column": 6}, "end_point": {"row": 319, "column": 17}}, {"id": 1228, "type": "identifier", "text": "l", "parent": 1227, "children": [], "start_point": {"row": 319, "column": 6}, "end_point": {"row": 319, "column": 7}}, {"id": 1229, "type": "=", "text": "=", "parent": 1227, "children": [], "start_point": {"row": 319, "column": 8}, "end_point": {"row": 319, "column": 9}}, {"id": 1230, "type": "field_expression", "text": "l->next", "parent": 1227, "children": [1231, 1232], "start_point": {"row": 319, "column": 10}, "end_point": {"row": 319, "column": 17}}, {"id": 1231, "type": "identifier", "text": "l", "parent": 1230, "children": [], "start_point": {"row": 319, "column": 10}, "end_point": {"row": 319, "column": 11}}, {"id": 1232, "type": "field_identifier", "text": "next", "parent": 1230, "children": [], "start_point": {"row": 319, "column": 13}, "end_point": {"row": 319, "column": 17}}, {"id": 1233, "type": "assignment_expression", "text": "rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start)", "parent": 1197, "children": [1234, 1239, 1240], "start_point": {"row": 320, "column": 6}, "end_point": {"row": 320, "column": 63}}, {"id": 1234, "type": "subscript_expression", "text": "rb->spans[y]", "parent": 1233, "children": [1235, 1238], "start_point": {"row": 320, "column": 6}, "end_point": {"row": 320, "column": 18}}, {"id": 1235, "type": "field_expression", "text": "rb->spans", "parent": 1234, "children": [1236, 1237], "start_point": {"row": 320, "column": 6}, "end_point": {"row": 320, "column": 15}}, {"id": 1236, "type": "identifier", "text": "rb", "parent": 1235, "children": [], "start_point": {"row": 320, "column": 6}, "end_point": {"row": 320, "column": 8}}, {"id": 1237, "type": "field_identifier", "text": "spans", "parent": 1235, "children": [], "start_point": {"row": 320, "column": 10}, "end_point": {"row": 320, "column": 15}}, {"id": 1238, "type": "identifier", "text": "y", "parent": 1234, "children": [], "start_point": {"row": 320, "column": 16}, "end_point": {"row": 320, "column": 17}}, {"id": 1239, "type": "=", "text": "=", "parent": 1233, "children": [], "start_point": {"row": 320, "column": 19}, "end_point": {"row": 320, "column": 20}}, {"id": 1240, "type": "call_expression", "text": "eina_inlist_remove(rb->spans[y], sp_start)", "parent": 1233, "children": [1241, 1242], "start_point": {"row": 320, "column": 21}, "end_point": {"row": 320, "column": 63}}, {"id": 1241, "type": "identifier", "text": "eina_inlist_remove", "parent": 1240, "children": [], "start_point": {"row": 320, "column": 21}, "end_point": {"row": 320, "column": 39}}, {"id": 1242, "type": "argument_list", "text": "(rb->spans[y], sp_start)", "parent": 1240, "children": [1243, 1248], "start_point": {"row": 320, "column": 39}, "end_point": {"row": 320, "column": 63}}, {"id": 1243, "type": "subscript_expression", "text": "rb->spans[y]", "parent": 1242, "children": [1244, 1247], "start_point": {"row": 320, "column": 40}, "end_point": {"row": 320, "column": 52}}, {"id": 1244, "type": "field_expression", "text": "rb->spans", "parent": 1243, "children": [1245, 1246], "start_point": {"row": 320, "column": 40}, "end_point": {"row": 320, "column": 49}}, {"id": 1245, "type": "identifier", "text": "rb", "parent": 1244, "children": [], "start_point": {"row": 320, "column": 40}, "end_point": {"row": 320, "column": 42}}, {"id": 1246, "type": "field_identifier", "text": "spans", "parent": 1244, "children": [], "start_point": {"row": 320, "column": 44}, "end_point": {"row": 320, "column": 49}}, {"id": 1247, "type": "identifier", "text": "y", "parent": 1243, "children": [], "start_point": {"row": 320, "column": 50}, "end_point": {"row": 320, "column": 51}}, {"id": 1248, "type": "identifier", "text": "sp_start", "parent": 1242, "children": [], "start_point": {"row": 320, "column": 54}, "end_point": {"row": 320, "column": 62}}, {"id": 1249, "type": "for_statement", "text": "for (yy = y + 1; yy < rb->h; yy++)\n\t {\n\t\t int match = 0;\n\n\t\t for (ll = EINA_INLIST_GET(rb->spans[yy]); ll;)\n\t\t {\n\t\t span = (Regionspan *)ll;\n\t\t ll = ll->next;\n\t\t if (span->x1 == sp_start->x1)\n\t\t\t {\n\t\t\t if ((span->x1 != sp_start->x1) ||\n\t\t\t\t(span->x2 != sp_start->x2))\n\t\t\t {\n\t\t\t\t goto coallate;\n\t\t\t }\n\t\t\t match = 1;\n\t\t\t rb->spans[yy] = eina_inlist_remove(rb->spans[yy], span);\n\t\t\t free(span);\n\t\t\t }\n\t\t }\n\t\t if (!match) goto coallate;\n\t }", "parent": 1197, "children": [1250, 1257, 1263], "start_point": {"row": 321, "column": 6}, "end_point": {"row": 342, "column": 9}}, {"id": 1250, "type": "assignment_expression", "text": "yy = y + 1", "parent": 1249, "children": [1251, 1252, 1253], "start_point": {"row": 321, "column": 11}, "end_point": {"row": 321, "column": 21}}, {"id": 1251, "type": "identifier", "text": "yy", "parent": 1250, "children": [], "start_point": {"row": 321, "column": 11}, "end_point": {"row": 321, "column": 13}}, {"id": 1252, "type": "=", "text": "=", "parent": 1250, "children": [], "start_point": {"row": 321, "column": 14}, "end_point": {"row": 321, "column": 15}}, {"id": 1253, "type": "binary_expression", "text": "y + 1", "parent": 1250, "children": [1254, 1255, 1256], "start_point": {"row": 321, "column": 16}, "end_point": {"row": 321, "column": 21}}, {"id": 1254, "type": "identifier", "text": "y", "parent": 1253, "children": [], "start_point": {"row": 321, "column": 16}, "end_point": {"row": 321, "column": 17}}, {"id": 1255, "type": "+", "text": "+", "parent": 1253, "children": [], "start_point": {"row": 321, "column": 18}, "end_point": {"row": 321, "column": 19}}, {"id": 1256, "type": "number_literal", "text": "1", "parent": 1253, "children": [], "start_point": {"row": 321, "column": 20}, "end_point": {"row": 321, "column": 21}}, {"id": 1257, "type": "binary_expression", "text": "yy < rb->h", "parent": 1249, "children": [1258, 1259, 1260], "start_point": {"row": 321, "column": 23}, "end_point": {"row": 321, "column": 33}}, {"id": 1258, "type": "identifier", "text": "yy", "parent": 1257, "children": [], "start_point": {"row": 321, "column": 23}, "end_point": {"row": 321, "column": 25}}, {"id": 1259, "type": "<", "text": "<", "parent": 1257, "children": [], "start_point": {"row": 321, "column": 26}, "end_point": {"row": 321, "column": 27}}, {"id": 1260, "type": "field_expression", "text": "rb->h", "parent": 1257, "children": [1261, 1262], "start_point": {"row": 321, "column": 28}, "end_point": {"row": 321, "column": 33}}, {"id": 1261, "type": "identifier", "text": "rb", "parent": 1260, "children": [], "start_point": {"row": 321, "column": 28}, "end_point": {"row": 321, "column": 30}}, {"id": 1262, "type": "field_identifier", "text": "h", "parent": 1260, "children": [], "start_point": {"row": 321, "column": 32}, "end_point": {"row": 321, "column": 33}}, {"id": 1263, "type": "update_expression", "text": "yy++", "parent": 1249, "children": [1264, 1265], "start_point": {"row": 321, "column": 35}, "end_point": {"row": 321, "column": 39}}, {"id": 1264, "type": "identifier", "text": "yy", "parent": 1263, "children": [], "start_point": {"row": 321, "column": 35}, "end_point": {"row": 321, "column": 37}}, {"id": 1265, "type": "++", "text": "++", "parent": 1263, "children": [], "start_point": {"row": 321, "column": 37}, "end_point": {"row": 321, "column": 39}}, {"id": 1266, "type": "declaration", "text": "int match = 0;", "parent": 1249, "children": [1267, 1268], "start_point": {"row": 323, "column": 4}, "end_point": {"row": 323, "column": 18}}, {"id": 1267, "type": "primitive_type", "text": "int", "parent": 1266, "children": [], "start_point": {"row": 323, "column": 4}, "end_point": {"row": 323, "column": 7}}, {"id": 1268, "type": "init_declarator", "text": "match = 0", "parent": 1266, "children": [1269, 1270, 1271], "start_point": {"row": 323, "column": 8}, "end_point": {"row": 323, "column": 17}}, {"id": 1269, "type": "identifier", "text": "match", "parent": 1268, "children": [], "start_point": {"row": 323, "column": 8}, "end_point": {"row": 323, "column": 13}}, {"id": 1270, "type": "=", "text": "=", "parent": 1268, "children": [], "start_point": {"row": 323, "column": 14}, "end_point": {"row": 323, "column": 15}}, {"id": 1271, "type": "number_literal", "text": "0", "parent": 1268, "children": [], "start_point": {"row": 323, "column": 16}, "end_point": {"row": 323, "column": 17}}, {"id": 1272, "type": "for_statement", "text": "for (ll = EINA_INLIST_GET(rb->spans[yy]); ll;)\n\t\t {\n\t\t span = (Regionspan *)ll;\n\t\t ll = ll->next;\n\t\t if (span->x1 == sp_start->x1)\n\t\t\t {\n\t\t\t if ((span->x1 != sp_start->x1) ||\n\t\t\t\t(span->x2 != sp_start->x2))\n\t\t\t {\n\t\t\t\t goto coallate;\n\t\t\t }\n\t\t\t match = 1;\n\t\t\t rb->spans[yy] = eina_inlist_remove(rb->spans[yy], span);\n\t\t\t free(span);\n\t\t\t }\n\t\t }", "parent": 1249, "children": [1273, 1284], "start_point": {"row": 325, "column": 4}, "end_point": {"row": 340, "column": 7}}, {"id": 1273, "type": "assignment_expression", "text": "ll = EINA_INLIST_GET(rb->spans[yy])", "parent": 1272, "children": [1274, 1275, 1276], "start_point": {"row": 325, "column": 9}, "end_point": {"row": 325, "column": 44}}, {"id": 1274, "type": "identifier", "text": "ll", "parent": 1273, "children": [], "start_point": {"row": 325, "column": 9}, "end_point": {"row": 325, "column": 11}}, {"id": 1275, "type": "=", "text": "=", "parent": 1273, "children": [], "start_point": {"row": 325, "column": 12}, "end_point": {"row": 325, "column": 13}}, {"id": 1276, "type": "call_expression", "text": "EINA_INLIST_GET(rb->spans[yy])", "parent": 1273, "children": [1277, 1278], "start_point": {"row": 325, "column": 14}, "end_point": {"row": 325, "column": 44}}, {"id": 1277, "type": "identifier", "text": "EINA_INLIST_GET", "parent": 1276, "children": [], "start_point": {"row": 325, "column": 14}, "end_point": {"row": 325, "column": 29}}, {"id": 1278, "type": "argument_list", "text": "(rb->spans[yy])", "parent": 1276, "children": [1279], "start_point": {"row": 325, "column": 29}, "end_point": {"row": 325, "column": 44}}, {"id": 1279, "type": "subscript_expression", "text": "rb->spans[yy]", "parent": 1278, "children": [1280, 1283], "start_point": {"row": 325, "column": 30}, "end_point": {"row": 325, "column": 43}}, {"id": 1280, "type": "field_expression", "text": "rb->spans", "parent": 1279, "children": [1281, 1282], "start_point": {"row": 325, "column": 30}, "end_point": {"row": 325, "column": 39}}, {"id": 1281, "type": "identifier", "text": "rb", "parent": 1280, "children": [], "start_point": {"row": 325, "column": 30}, "end_point": {"row": 325, "column": 32}}, {"id": 1282, "type": "field_identifier", "text": "spans", "parent": 1280, "children": [], "start_point": {"row": 325, "column": 34}, "end_point": {"row": 325, "column": 39}}, {"id": 1283, "type": "identifier", "text": "yy", "parent": 1279, "children": [], "start_point": {"row": 325, "column": 40}, "end_point": {"row": 325, "column": 42}}, {"id": 1284, "type": "identifier", "text": "ll", "parent": 1272, "children": [], "start_point": {"row": 325, "column": 46}, "end_point": {"row": 325, "column": 48}}, {"id": 1285, "type": "assignment_expression", "text": "span = (Regionspan *)ll", "parent": 1272, "children": [1286, 1287, 1288], "start_point": {"row": 327, "column": 9}, "end_point": {"row": 327, "column": 32}}, {"id": 1286, "type": "identifier", "text": "span", "parent": 1285, "children": [], "start_point": {"row": 327, "column": 9}, "end_point": {"row": 327, "column": 13}}, {"id": 1287, "type": "=", "text": "=", "parent": 1285, "children": [], "start_point": {"row": 327, "column": 14}, "end_point": {"row": 327, "column": 15}}, {"id": 1288, "type": "cast_expression", "text": "(Regionspan *)ll", "parent": 1285, "children": [1289, 1293], "start_point": {"row": 327, "column": 16}, "end_point": {"row": 327, "column": 32}}, {"id": 1289, "type": "type_descriptor", "text": "Regionspan *", "parent": 1288, "children": [1290, 1291], "start_point": {"row": 327, "column": 17}, "end_point": {"row": 327, "column": 29}}, {"id": 1290, "type": "type_identifier", "text": "Regionspan", "parent": 1289, "children": [], "start_point": {"row": 327, "column": 17}, "end_point": {"row": 327, "column": 27}}, {"id": 1291, "type": "abstract_pointer_declarator", "text": "*", "parent": 1289, "children": [1292], "start_point": {"row": 327, "column": 28}, "end_point": {"row": 327, "column": 29}}, {"id": 1292, "type": "*", "text": "*", "parent": 1291, "children": [], "start_point": {"row": 327, "column": 28}, "end_point": {"row": 327, "column": 29}}, {"id": 1293, "type": "identifier", "text": "ll", "parent": 1288, "children": [], "start_point": {"row": 327, "column": 30}, "end_point": {"row": 327, "column": 32}}, {"id": 1294, "type": "assignment_expression", "text": "ll = ll->next", "parent": 1272, "children": [1295, 1296, 1297], "start_point": {"row": 328, "column": 9}, "end_point": {"row": 328, "column": 22}}, {"id": 1295, "type": "identifier", "text": "ll", "parent": 1294, "children": [], "start_point": {"row": 328, "column": 9}, "end_point": {"row": 328, "column": 11}}, {"id": 1296, "type": "=", "text": "=", "parent": 1294, "children": [], "start_point": {"row": 328, "column": 12}, "end_point": {"row": 328, "column": 13}}, {"id": 1297, "type": "field_expression", "text": "ll->next", "parent": 1294, "children": [1298, 1299], "start_point": {"row": 328, "column": 14}, "end_point": {"row": 328, "column": 22}}, {"id": 1298, "type": "identifier", "text": "ll", "parent": 1297, "children": [], "start_point": {"row": 328, "column": 14}, "end_point": {"row": 328, "column": 16}}, {"id": 1299, "type": "field_identifier", "text": "next", "parent": 1297, "children": [], "start_point": {"row": 328, "column": 18}, "end_point": {"row": 328, "column": 22}}, {"id": 1300, "type": "if_statement", "text": "if (span->x1 == sp_start->x1)\n\t\t\t {\n\t\t\t if ((span->x1 != sp_start->x1) ||\n\t\t\t\t(span->x2 != sp_start->x2))\n\t\t\t {\n\t\t\t\t goto coallate;\n\t\t\t }\n\t\t\t match = 1;\n\t\t\t rb->spans[yy] = eina_inlist_remove(rb->spans[yy], span);\n\t\t\t free(span);\n\t\t\t }", "parent": 1272, "children": [1301], "start_point": {"row": 329, "column": 9}, "end_point": {"row": 339, "column": 5}}, {"id": 1301, "type": "parenthesized_expression", "text": "(span->x1 == sp_start->x1)", "parent": 1300, "children": [1302], "start_point": {"row": 329, "column": 12}, "end_point": {"row": 329, "column": 38}}, {"id": 1302, "type": "binary_expression", "text": "span->x1 == sp_start->x1", "parent": 1301, "children": [1303, 1306, 1307], "start_point": {"row": 329, "column": 13}, "end_point": {"row": 329, "column": 37}}, {"id": 1303, "type": "field_expression", "text": "span->x1", "parent": 1302, "children": [1304, 1305], "start_point": {"row": 329, "column": 13}, "end_point": {"row": 329, "column": 21}}, {"id": 1304, "type": "identifier", "text": "span", "parent": 1303, "children": [], "start_point": {"row": 329, "column": 13}, "end_point": {"row": 329, "column": 17}}, {"id": 1305, "type": "field_identifier", "text": "x1", "parent": 1303, "children": [], "start_point": {"row": 329, "column": 19}, "end_point": {"row": 329, "column": 21}}, {"id": 1306, "type": "==", "text": "==", "parent": 1302, "children": [], "start_point": {"row": 329, "column": 22}, "end_point": {"row": 329, "column": 24}}, {"id": 1307, "type": "field_expression", "text": "sp_start->x1", "parent": 1302, "children": [1308, 1309], "start_point": {"row": 329, "column": 25}, "end_point": {"row": 329, "column": 37}}, {"id": 1308, "type": "identifier", "text": "sp_start", "parent": 1307, "children": [], "start_point": {"row": 329, "column": 25}, "end_point": {"row": 329, "column": 33}}, {"id": 1309, "type": "field_identifier", "text": "x1", "parent": 1307, "children": [], "start_point": {"row": 329, "column": 35}, "end_point": {"row": 329, "column": 37}}, {"id": 1310, "type": "if_statement", "text": "if ((span->x1 != sp_start->x1) ||\n\t\t\t\t(span->x2 != sp_start->x2))\n\t\t\t {\n\t\t\t\t goto coallate;\n\t\t\t }", "parent": 1300, "children": [1311], "start_point": {"row": 331, "column": 7}, "end_point": {"row": 335, "column": 10}}, {"id": 1311, "type": "parenthesized_expression", "text": "((span->x1 != sp_start->x1) ||\n\t\t\t\t(span->x2 != sp_start->x2))", "parent": 1310, "children": [1312], "start_point": {"row": 331, "column": 10}, "end_point": {"row": 332, "column": 31}}, {"id": 1312, "type": "binary_expression", "text": "(span->x1 != sp_start->x1) ||\n\t\t\t\t(span->x2 != sp_start->x2)", "parent": 1311, "children": [1313, 1322, 1323], "start_point": {"row": 331, "column": 11}, "end_point": {"row": 332, "column": 30}}, {"id": 1313, "type": "parenthesized_expression", "text": "(span->x1 != sp_start->x1)", "parent": 1312, "children": [1314], "start_point": {"row": 331, "column": 11}, "end_point": {"row": 331, "column": 37}}, {"id": 1314, "type": "binary_expression", "text": "span->x1 != sp_start->x1", "parent": 1313, "children": [1315, 1318, 1319], "start_point": {"row": 331, "column": 12}, "end_point": {"row": 331, "column": 36}}, {"id": 1315, "type": "field_expression", "text": "span->x1", "parent": 1314, "children": [1316, 1317], "start_point": {"row": 331, "column": 12}, "end_point": {"row": 331, "column": 20}}, {"id": 1316, "type": "identifier", "text": "span", "parent": 1315, "children": [], "start_point": {"row": 331, "column": 12}, "end_point": {"row": 331, "column": 16}}, {"id": 1317, "type": "field_identifier", "text": "x1", "parent": 1315, "children": [], "start_point": {"row": 331, "column": 18}, "end_point": {"row": 331, "column": 20}}, {"id": 1318, "type": "!=", "text": "!=", "parent": 1314, "children": [], "start_point": {"row": 331, "column": 21}, "end_point": {"row": 331, "column": 23}}, {"id": 1319, "type": "field_expression", "text": "sp_start->x1", "parent": 1314, "children": [1320, 1321], "start_point": {"row": 331, "column": 24}, "end_point": {"row": 331, "column": 36}}, {"id": 1320, "type": "identifier", "text": "sp_start", "parent": 1319, "children": [], "start_point": {"row": 331, "column": 24}, "end_point": {"row": 331, "column": 32}}, {"id": 1321, "type": "field_identifier", "text": "x1", "parent": 1319, "children": [], "start_point": {"row": 331, "column": 34}, "end_point": {"row": 331, "column": 36}}, {"id": 1322, "type": "||", "text": "||", "parent": 1312, "children": [], "start_point": {"row": 331, "column": 38}, "end_point": {"row": 331, "column": 40}}, {"id": 1323, "type": "parenthesized_expression", "text": "(span->x2 != sp_start->x2)", "parent": 1312, "children": [1324], "start_point": {"row": 332, "column": 4}, "end_point": {"row": 332, "column": 30}}, {"id": 1324, "type": "binary_expression", "text": "span->x2 != sp_start->x2", "parent": 1323, "children": [1325, 1328, 1329], "start_point": {"row": 332, "column": 5}, "end_point": {"row": 332, "column": 29}}, {"id": 1325, "type": "field_expression", "text": "span->x2", "parent": 1324, "children": [1326, 1327], "start_point": {"row": 332, "column": 5}, "end_point": {"row": 332, "column": 13}}, {"id": 1326, "type": "identifier", "text": "span", "parent": 1325, "children": [], "start_point": {"row": 332, "column": 5}, "end_point": {"row": 332, "column": 9}}, {"id": 1327, "type": "field_identifier", "text": "x2", "parent": 1325, "children": [], "start_point": {"row": 332, "column": 11}, "end_point": {"row": 332, "column": 13}}, {"id": 1328, "type": "!=", "text": "!=", "parent": 1324, "children": [], "start_point": {"row": 332, "column": 14}, "end_point": {"row": 332, "column": 16}}, {"id": 1329, "type": "field_expression", "text": "sp_start->x2", "parent": 1324, "children": [1330, 1331], "start_point": {"row": 332, "column": 17}, "end_point": {"row": 332, "column": 29}}, {"id": 1330, "type": "identifier", "text": "sp_start", "parent": 1329, "children": [], "start_point": {"row": 332, "column": 17}, "end_point": {"row": 332, "column": 25}}, {"id": 1331, "type": "field_identifier", "text": "x2", "parent": 1329, "children": [], "start_point": {"row": 332, "column": 27}, "end_point": {"row": 332, "column": 29}}, {"id": 1332, "type": "goto_statement", "text": "goto coallate;", "parent": 1310, "children": [1333, 1334], "start_point": {"row": 334, "column": 5}, "end_point": {"row": 334, "column": 19}}, {"id": 1333, "type": "goto", "text": "goto", "parent": 1332, "children": [], "start_point": {"row": 334, "column": 5}, "end_point": {"row": 334, "column": 9}}, {"id": 1334, "type": "statement_identifier", "text": "coallate", "parent": 1332, "children": [], "start_point": {"row": 334, "column": 10}, "end_point": {"row": 334, "column": 18}}, {"id": 1335, "type": "assignment_expression", "text": "match = 1", "parent": 1300, "children": [1336, 1337, 1338], "start_point": {"row": 336, "column": 7}, "end_point": {"row": 336, "column": 16}}, {"id": 1336, "type": "identifier", "text": "match", "parent": 1335, "children": [], "start_point": {"row": 336, "column": 7}, "end_point": {"row": 336, "column": 12}}, {"id": 1337, "type": "=", "text": "=", "parent": 1335, "children": [], "start_point": {"row": 336, "column": 13}, "end_point": {"row": 336, "column": 14}}, {"id": 1338, "type": "number_literal", "text": "1", "parent": 1335, "children": [], "start_point": {"row": 336, "column": 15}, "end_point": {"row": 336, "column": 16}}, {"id": 1339, "type": "assignment_expression", "text": "rb->spans[yy] = eina_inlist_remove(rb->spans[yy], span)", "parent": 1300, "children": [1340, 1345, 1346], "start_point": {"row": 337, "column": 7}, "end_point": {"row": 337, "column": 62}}, {"id": 1340, "type": "subscript_expression", "text": "rb->spans[yy]", "parent": 1339, "children": [1341, 1344], "start_point": {"row": 337, "column": 7}, "end_point": {"row": 337, "column": 20}}, {"id": 1341, "type": "field_expression", "text": "rb->spans", "parent": 1340, "children": [1342, 1343], "start_point": {"row": 337, "column": 7}, "end_point": {"row": 337, "column": 16}}, {"id": 1342, "type": "identifier", "text": "rb", "parent": 1341, "children": [], "start_point": {"row": 337, "column": 7}, "end_point": {"row": 337, "column": 9}}, {"id": 1343, "type": "field_identifier", "text": "spans", "parent": 1341, "children": [], "start_point": {"row": 337, "column": 11}, "end_point": {"row": 337, "column": 16}}, {"id": 1344, "type": "identifier", "text": "yy", "parent": 1340, "children": [], "start_point": {"row": 337, "column": 17}, "end_point": {"row": 337, "column": 19}}, {"id": 1345, "type": "=", "text": "=", "parent": 1339, "children": [], "start_point": {"row": 337, "column": 21}, "end_point": {"row": 337, "column": 22}}, {"id": 1346, "type": "call_expression", "text": "eina_inlist_remove(rb->spans[yy], span)", "parent": 1339, "children": [1347, 1348], "start_point": {"row": 337, "column": 23}, "end_point": {"row": 337, "column": 62}}, {"id": 1347, "type": "identifier", "text": "eina_inlist_remove", "parent": 1346, "children": [], "start_point": {"row": 337, "column": 23}, "end_point": {"row": 337, "column": 41}}, {"id": 1348, "type": "argument_list", "text": "(rb->spans[yy], span)", "parent": 1346, "children": [1349, 1354], "start_point": {"row": 337, "column": 41}, "end_point": {"row": 337, "column": 62}}, {"id": 1349, "type": "subscript_expression", "text": "rb->spans[yy]", "parent": 1348, "children": [1350, 1353], "start_point": {"row": 337, "column": 42}, "end_point": {"row": 337, "column": 55}}, {"id": 1350, "type": "field_expression", "text": "rb->spans", "parent": 1349, "children": [1351, 1352], "start_point": {"row": 337, "column": 42}, "end_point": {"row": 337, "column": 51}}, {"id": 1351, "type": "identifier", "text": "rb", "parent": 1350, "children": [], "start_point": {"row": 337, "column": 42}, "end_point": {"row": 337, "column": 44}}, {"id": 1352, "type": "field_identifier", "text": "spans", "parent": 1350, "children": [], "start_point": {"row": 337, "column": 46}, "end_point": {"row": 337, "column": 51}}, {"id": 1353, "type": "identifier", "text": "yy", "parent": 1349, "children": [], "start_point": {"row": 337, "column": 52}, "end_point": {"row": 337, "column": 54}}, {"id": 1354, "type": "identifier", "text": "span", "parent": 1348, "children": [], "start_point": {"row": 337, "column": 57}, "end_point": {"row": 337, "column": 61}}, {"id": 1355, "type": "call_expression", "text": "free(span)", "parent": 1300, "children": [1356, 1357], "start_point": {"row": 338, "column": 7}, "end_point": {"row": 338, "column": 17}}, {"id": 1356, "type": "identifier", "text": "free", "parent": 1355, "children": [], "start_point": {"row": 338, "column": 7}, "end_point": {"row": 338, "column": 11}}, {"id": 1357, "type": "argument_list", "text": "(span)", "parent": 1355, "children": [1358], "start_point": {"row": 338, "column": 11}, "end_point": {"row": 338, "column": 17}}, {"id": 1358, "type": "identifier", "text": "span", "parent": 1357, "children": [], "start_point": {"row": 338, "column": 12}, "end_point": {"row": 338, "column": 16}}, {"id": 1359, "type": "if_statement", "text": "if (!match) goto coallate;", "parent": 1249, "children": [1360, 1364], "start_point": {"row": 341, "column": 4}, "end_point": {"row": 341, "column": 30}}, {"id": 1360, "type": "parenthesized_expression", "text": "(!match)", "parent": 1359, "children": [1361], "start_point": {"row": 341, "column": 7}, "end_point": {"row": 341, "column": 15}}, {"id": 1361, "type": "unary_expression", "text": "!match", "parent": 1360, "children": [1362, 1363], "start_point": {"row": 341, "column": 8}, "end_point": {"row": 341, "column": 14}}, {"id": 1362, "type": "!", "text": "!", "parent": 1361, "children": [], "start_point": {"row": 341, "column": 8}, "end_point": {"row": 341, "column": 9}}, {"id": 1363, "type": "identifier", "text": "match", "parent": 1361, "children": [], "start_point": {"row": 341, "column": 9}, "end_point": {"row": 341, "column": 14}}, {"id": 1364, "type": "goto_statement", "text": "goto coallate;", "parent": 1359, "children": [1365, 1366], "start_point": {"row": 341, "column": 16}, "end_point": {"row": 341, "column": 30}}, {"id": 1365, "type": "goto", "text": "goto", "parent": 1364, "children": [], "start_point": {"row": 341, "column": 16}, "end_point": {"row": 341, "column": 20}}, {"id": 1366, "type": "statement_identifier", "text": "coallate", "parent": 1364, "children": [], "start_point": {"row": 341, "column": 21}, "end_point": {"row": 341, "column": 29}}, {"id": 1367, "type": "labeled_statement", "text": "coallate:\n\t r = calloc(1, sizeof(Tilebuf_Rect));", "parent": 1197, "children": [1368], "start_point": {"row": 343, "column": 6}, "end_point": {"row": 344, "column": 42}}, {"id": 1368, "type": "statement_identifier", "text": "coallate", "parent": 1367, "children": [], "start_point": {"row": 343, "column": 6}, "end_point": {"row": 343, "column": 14}}, {"id": 1369, "type": "assignment_expression", "text": "r = calloc(1, sizeof(Tilebuf_Rect))", "parent": 1367, "children": [1370, 1371, 1372], "start_point": {"row": 344, "column": 6}, "end_point": {"row": 344, "column": 41}}, {"id": 1370, "type": "identifier", "text": "r", "parent": 1369, "children": [], "start_point": {"row": 344, "column": 6}, "end_point": {"row": 344, "column": 7}}, {"id": 1371, "type": "=", "text": "=", "parent": 1369, "children": [], "start_point": {"row": 344, "column": 8}, "end_point": {"row": 344, "column": 9}}, {"id": 1372, "type": "call_expression", "text": "calloc(1, sizeof(Tilebuf_Rect))", "parent": 1369, "children": [1373, 1374], "start_point": {"row": 344, "column": 10}, "end_point": {"row": 344, "column": 41}}, {"id": 1373, "type": "identifier", "text": "calloc", "parent": 1372, "children": [], "start_point": {"row": 344, "column": 10}, "end_point": {"row": 344, "column": 16}}, {"id": 1374, "type": "argument_list", "text": "(1, sizeof(Tilebuf_Rect))", "parent": 1372, "children": [1375, 1376], "start_point": {"row": 344, "column": 16}, "end_point": {"row": 344, "column": 41}}, {"id": 1375, "type": "number_literal", "text": "1", "parent": 1374, "children": [], "start_point": {"row": 344, "column": 17}, "end_point": {"row": 344, "column": 18}}, {"id": 1376, "type": "sizeof_expression", "text": "sizeof(Tilebuf_Rect)", "parent": 1374, "children": [1377], "start_point": {"row": 344, "column": 20}, "end_point": {"row": 344, "column": 40}}, {"id": 1377, "type": "parenthesized_expression", "text": "(Tilebuf_Rect)", "parent": 1376, "children": [1378], "start_point": {"row": 344, "column": 26}, "end_point": {"row": 344, "column": 40}}, {"id": 1378, "type": "identifier", "text": "Tilebuf_Rect", "parent": 1377, "children": [], "start_point": {"row": 344, "column": 27}, "end_point": {"row": 344, "column": 39}}, {"id": 1379, "type": "assignment_expression", "text": "r->x = sp_start->x1", "parent": 1197, "children": [1380, 1383, 1384], "start_point": {"row": 345, "column": 6}, "end_point": {"row": 345, "column": 25}}, {"id": 1380, "type": "field_expression", "text": "r->x", "parent": 1379, "children": [1381, 1382], "start_point": {"row": 345, "column": 6}, "end_point": {"row": 345, "column": 10}}, {"id": 1381, "type": "identifier", "text": "r", "parent": 1380, "children": [], "start_point": {"row": 345, "column": 6}, "end_point": {"row": 345, "column": 7}}, {"id": 1382, "type": "field_identifier", "text": "x", "parent": 1380, "children": [], "start_point": {"row": 345, "column": 9}, "end_point": {"row": 345, "column": 10}}, {"id": 1383, "type": "=", "text": "=", "parent": 1379, "children": [], "start_point": {"row": 345, "column": 11}, "end_point": {"row": 345, "column": 12}}, {"id": 1384, "type": "field_expression", "text": "sp_start->x1", "parent": 1379, "children": [1385, 1386], "start_point": {"row": 345, "column": 13}, "end_point": {"row": 345, "column": 25}}, {"id": 1385, "type": "identifier", "text": "sp_start", "parent": 1384, "children": [], "start_point": {"row": 345, "column": 13}, "end_point": {"row": 345, "column": 21}}, {"id": 1386, "type": "field_identifier", "text": "x1", "parent": 1384, "children": [], "start_point": {"row": 345, "column": 23}, "end_point": {"row": 345, "column": 25}}, {"id": 1387, "type": "assignment_expression", "text": "r->y = y", "parent": 1197, "children": [1388, 1391, 1392], "start_point": {"row": 346, "column": 6}, "end_point": {"row": 346, "column": 14}}, {"id": 1388, "type": "field_expression", "text": "r->y", "parent": 1387, "children": [1389, 1390], "start_point": {"row": 346, "column": 6}, "end_point": {"row": 346, "column": 10}}, {"id": 1389, "type": "identifier", "text": "r", "parent": 1388, "children": [], "start_point": {"row": 346, "column": 6}, "end_point": {"row": 346, "column": 7}}, {"id": 1390, "type": "field_identifier", "text": "y", "parent": 1388, "children": [], "start_point": {"row": 346, "column": 9}, "end_point": {"row": 346, "column": 10}}, {"id": 1391, "type": "=", "text": "=", "parent": 1387, "children": [], "start_point": {"row": 346, "column": 11}, "end_point": {"row": 346, "column": 12}}, {"id": 1392, "type": "identifier", "text": "y", "parent": 1387, "children": [], "start_point": {"row": 346, "column": 13}, "end_point": {"row": 346, "column": 14}}, {"id": 1393, "type": "assignment_expression", "text": "r->w = sp_start->x2 - sp_start->x1 + 1", "parent": 1197, "children": [1394, 1397, 1398], "start_point": {"row": 347, "column": 6}, "end_point": {"row": 347, "column": 44}}, {"id": 1394, "type": "field_expression", "text": "r->w", "parent": 1393, "children": [1395, 1396], "start_point": {"row": 347, "column": 6}, "end_point": {"row": 347, "column": 10}}, {"id": 1395, "type": "identifier", "text": "r", "parent": 1394, "children": [], "start_point": {"row": 347, "column": 6}, "end_point": {"row": 347, "column": 7}}, {"id": 1396, "type": "field_identifier", "text": "w", "parent": 1394, "children": [], "start_point": {"row": 347, "column": 9}, "end_point": {"row": 347, "column": 10}}, {"id": 1397, "type": "=", "text": "=", "parent": 1393, "children": [], "start_point": {"row": 347, "column": 11}, "end_point": {"row": 347, "column": 12}}, {"id": 1398, "type": "binary_expression", "text": "sp_start->x2 - sp_start->x1 + 1", "parent": 1393, "children": [1399, 1407, 1408], "start_point": {"row": 347, "column": 13}, "end_point": {"row": 347, "column": 44}}, {"id": 1399, "type": "binary_expression", "text": "sp_start->x2 - sp_start->x1", "parent": 1398, "children": [1400, 1403, 1404], "start_point": {"row": 347, "column": 13}, "end_point": {"row": 347, "column": 40}}, {"id": 1400, "type": "field_expression", "text": "sp_start->x2", "parent": 1399, "children": [1401, 1402], "start_point": {"row": 347, "column": 13}, "end_point": {"row": 347, "column": 25}}, {"id": 1401, "type": "identifier", "text": "sp_start", "parent": 1400, "children": [], "start_point": {"row": 347, "column": 13}, "end_point": {"row": 347, "column": 21}}, {"id": 1402, "type": "field_identifier", "text": "x2", "parent": 1400, "children": [], "start_point": {"row": 347, "column": 23}, "end_point": {"row": 347, "column": 25}}, {"id": 1403, "type": "-", "text": "-", "parent": 1399, "children": [], "start_point": {"row": 347, "column": 26}, "end_point": {"row": 347, "column": 27}}, {"id": 1404, "type": "field_expression", "text": "sp_start->x1", "parent": 1399, "children": [1405, 1406], "start_point": {"row": 347, "column": 28}, "end_point": {"row": 347, "column": 40}}, {"id": 1405, "type": "identifier", "text": "sp_start", "parent": 1404, "children": [], "start_point": {"row": 347, "column": 28}, "end_point": {"row": 347, "column": 36}}, {"id": 1406, "type": "field_identifier", "text": "x1", "parent": 1404, "children": [], "start_point": {"row": 347, "column": 38}, "end_point": {"row": 347, "column": 40}}, {"id": 1407, "type": "+", "text": "+", "parent": 1398, "children": [], "start_point": {"row": 347, "column": 41}, "end_point": {"row": 347, "column": 42}}, {"id": 1408, "type": "number_literal", "text": "1", "parent": 1398, "children": [], "start_point": {"row": 347, "column": 43}, "end_point": {"row": 347, "column": 44}}, {"id": 1409, "type": "assignment_expression", "text": "r->h = yy - y", "parent": 1197, "children": [1410, 1413, 1414], "start_point": {"row": 348, "column": 6}, "end_point": {"row": 348, "column": 19}}, {"id": 1410, "type": "field_expression", "text": "r->h", "parent": 1409, "children": [1411, 1412], "start_point": {"row": 348, "column": 6}, "end_point": {"row": 348, "column": 10}}, {"id": 1411, "type": "identifier", "text": "r", "parent": 1410, "children": [], "start_point": {"row": 348, "column": 6}, "end_point": {"row": 348, "column": 7}}, {"id": 1412, "type": "field_identifier", "text": "h", "parent": 1410, "children": [], "start_point": {"row": 348, "column": 9}, "end_point": {"row": 348, "column": 10}}, {"id": 1413, "type": "=", "text": "=", "parent": 1409, "children": [], "start_point": {"row": 348, "column": 11}, "end_point": {"row": 348, "column": 12}}, {"id": 1414, "type": "binary_expression", "text": "yy - y", "parent": 1409, "children": [1415, 1416, 1417], "start_point": {"row": 348, "column": 13}, "end_point": {"row": 348, "column": 19}}, {"id": 1415, "type": "identifier", "text": "yy", "parent": 1414, "children": [], "start_point": {"row": 348, "column": 13}, "end_point": {"row": 348, "column": 15}}, {"id": 1416, "type": "-", "text": "-", "parent": 1414, "children": [], "start_point": {"row": 348, "column": 16}, "end_point": {"row": 348, "column": 17}}, {"id": 1417, "type": "identifier", "text": "y", "parent": 1414, "children": [], "start_point": {"row": 348, "column": 18}, "end_point": {"row": 348, "column": 19}}, {"id": 1418, "type": "assignment_expression", "text": "rects = eina_inlist_append(rects, r)", "parent": 1197, "children": [1419, 1420, 1421], "start_point": {"row": 349, "column": 6}, "end_point": {"row": 349, "column": 42}}, {"id": 1419, "type": "identifier", "text": "rects", "parent": 1418, "children": [], "start_point": {"row": 349, "column": 6}, "end_point": {"row": 349, "column": 11}}, {"id": 1420, "type": "=", "text": "=", "parent": 1418, "children": [], "start_point": {"row": 349, "column": 12}, "end_point": {"row": 349, "column": 13}}, {"id": 1421, "type": "call_expression", "text": "eina_inlist_append(rects, r)", "parent": 1418, "children": [1422, 1423], "start_point": {"row": 349, "column": 14}, "end_point": {"row": 349, "column": 42}}, {"id": 1422, "type": "identifier", "text": "eina_inlist_append", "parent": 1421, "children": [], "start_point": {"row": 349, "column": 14}, "end_point": {"row": 349, "column": 32}}, {"id": 1423, "type": "argument_list", "text": "(rects, r)", "parent": 1421, "children": [1424, 1425], "start_point": {"row": 349, "column": 32}, "end_point": {"row": 349, "column": 42}}, {"id": 1424, "type": "identifier", "text": "rects", "parent": 1423, "children": [], "start_point": {"row": 349, "column": 33}, "end_point": {"row": 349, "column": 38}}, {"id": 1425, "type": "identifier", "text": "r", "parent": 1423, "children": [], "start_point": {"row": 349, "column": 40}, "end_point": {"row": 349, "column": 41}}, {"id": 1426, "type": "call_expression", "text": "free(sp_start)", "parent": 1197, "children": [1427, 1428], "start_point": {"row": 350, "column": 6}, "end_point": {"row": 350, "column": 20}}, {"id": 1427, "type": "identifier", "text": "free", "parent": 1426, "children": [], "start_point": {"row": 350, "column": 6}, "end_point": {"row": 350, "column": 10}}, {"id": 1428, "type": "argument_list", "text": "(sp_start)", "parent": 1426, "children": [1429], "start_point": {"row": 350, "column": 10}, "end_point": {"row": 350, "column": 20}}, {"id": 1429, "type": "identifier", "text": "sp_start", "parent": 1428, "children": [], "start_point": {"row": 350, "column": 11}, "end_point": {"row": 350, "column": 19}}, {"id": 1430, "type": "call_expression", "text": "evas_common_regionbuf_clear(rb)", "parent": 1143, "children": [1431, 1432], "start_point": {"row": 353, "column": 3}, "end_point": {"row": 353, "column": 34}}, {"id": 1431, "type": "identifier", "text": "evas_common_regionbuf_clear", "parent": 1430, "children": [], "start_point": {"row": 353, "column": 3}, "end_point": {"row": 353, "column": 30}}, {"id": 1432, "type": "argument_list", "text": "(rb)", "parent": 1430, "children": [1433], "start_point": {"row": 353, "column": 30}, "end_point": {"row": 353, "column": 34}}, {"id": 1433, "type": "identifier", "text": "rb", "parent": 1432, "children": [], "start_point": {"row": 353, "column": 31}, "end_point": {"row": 353, "column": 33}}, {"id": 1434, "type": "return_statement", "text": "return rects;", "parent": 1143, "children": [1435], "start_point": {"row": 354, "column": 3}, "end_point": {"row": 354, "column": 16}}, {"id": 1435, "type": "identifier", "text": "rects", "parent": 1434, "children": [], "start_point": {"row": 354, "column": 10}, "end_point": {"row": 354, "column": 15}}, {"id": 1436, "type": "#endif", "text": "#endif", "parent": 3, "children": [], "start_point": {"row": 356, "column": 0}, "end_point": {"row": 356, "column": 6}}]}, "node_categories": {"declarations": {"functions": [7, 11, 85, 87, 103, 105, 174, 176, 639, 641, 1143, 1147], "variables": [14, 17, 20, 90, 108, 113, 137, 179, 184, 187, 190, 193, 486, 644, 649, 652, 655, 658, 1008, 1150, 1155, 1167, 1184, 1189, 1210, 1215, 1266], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [28, 32, 33, 34, 37, 38, 41, 42, 45, 46, 53, 57, 64, 65, 68, 69, 72, 78, 95, 99, 121, 124, 127, 131, 132, 133, 145, 146, 151, 152, 157, 160, 161, 165, 166, 170, 211, 212, 213, 214, 215, 216, 221, 222, 225, 229, 230, 235, 236, 239, 244, 245, 254, 255, 258, 259, 260, 268, 269, 284, 287, 288, 296, 301, 302, 303, 309, 310, 314, 315, 318, 319, 320, 330, 331, 342, 343, 346, 347, 348, 361, 362, 373, 374, 377, 378, 379, 391, 392, 393, 396, 399, 400, 405, 406, 409, 410, 411, 419, 423, 424, 427, 433, 439, 440, 445, 448, 449, 457, 458, 461, 465, 471, 472, 475, 479, 495, 496, 497, 502, 505, 512, 521, 525, 526, 531, 534, 535, 540, 545, 546, 551, 554, 555, 561, 562, 565, 569, 575, 576, 579, 583, 589, 593, 596, 604, 608, 609, 612, 618, 624, 625, 630, 633, 634, 676, 677, 678, 679, 680, 681, 686, 687, 690, 694, 695, 700, 701, 704, 709, 710, 719, 720, 723, 724, 725, 733, 734, 749, 752, 753, 761, 766, 767, 768, 774, 775, 779, 780, 783, 784, 792, 793, 804, 805, 808, 819, 820, 831, 832, 835, 845, 846, 847, 850, 853, 854, 859, 860, 863, 869, 870, 873, 877, 878, 881, 885, 893, 894, 899, 902, 903, 911, 912, 915, 919, 920, 923, 927, 935, 936, 941, 944, 945, 956, 960, 961, 964, 968, 972, 976, 981, 982, 987, 990, 991, 998, 1002, 1017, 1018, 1019, 1024, 1027, 1034, 1043, 1047, 1048, 1053, 1056, 1057, 1062, 1067, 1068, 1071, 1075, 1076, 1081, 1084, 1085, 1090, 1096, 1100, 1105, 1106, 1109, 1113, 1114, 1119, 1122, 1123, 1128, 1134, 1138, 1175, 1178, 1181, 1201, 1204, 1205, 1221, 1230, 1234, 1235, 1240, 1243, 1244, 1253, 1257, 1260, 1263, 1276, 1279, 1280, 1288, 1297, 1301, 1302, 1303, 1307, 1311, 1312, 1313, 1314, 1315, 1319, 1323, 1324, 1325, 1329, 1340, 1341, 1346, 1349, 1350, 1355, 1360, 1361, 1372, 1376, 1377, 1380, 1384, 1388, 1394, 1398, 1399, 1400, 1404, 1410, 1414, 1421, 1426, 1430], "assignments": [25, 52, 71, 77, 117, 142, 150, 249, 265, 274, 279, 293, 325, 334, 353, 365, 384, 416, 426, 432, 438, 464, 478, 492, 509, 518, 524, 544, 568, 582, 588, 601, 611, 617, 623, 714, 730, 739, 744, 758, 787, 796, 811, 823, 838, 884, 892, 926, 934, 953, 963, 971, 980, 997, 1014, 1031, 1040, 1046, 1074, 1095, 1112, 1133, 1171, 1198, 1218, 1227, 1233, 1250, 1273, 1285, 1294, 1335, 1339, 1369, 1379, 1387, 1393, 1409, 1418], "loops": [116, 130, 491, 1013, 1170, 1197, 1249, 1272], "conditionals": [3, 4, 8, 12, 16, 19, 21, 24, 26, 29, 35, 39, 43, 44, 48, 54, 55, 59, 66, 70, 73, 74, 76, 79, 80, 82, 84, 88, 91, 94, 96, 98, 100, 102, 106, 109, 112, 115, 118, 122, 125, 126, 128, 134, 135, 136, 138, 141, 143, 147, 148, 149, 153, 154, 155, 158, 162, 163, 164, 167, 168, 169, 171, 173, 177, 180, 183, 186, 189, 192, 194, 197, 200, 203, 206, 209, 210, 217, 223, 226, 227, 231, 237, 240, 241, 243, 246, 250, 253, 256, 261, 262, 266, 270, 271, 275, 280, 285, 289, 290, 291, 292, 294, 298, 304, 306, 307, 308, 312, 313, 316, 321, 322, 326, 328, 329, 333, 335, 337, 341, 344, 349, 350, 354, 356, 360, 364, 366, 368, 372, 375, 380, 381, 385, 387, 390, 394, 397, 398, 401, 403, 404, 407, 412, 413, 417, 420, 425, 428, 429, 431, 434, 435, 437, 441, 442, 443, 446, 450, 451, 452, 453, 454, 456, 459, 462, 463, 466, 467, 469, 470, 473, 476, 477, 480, 481, 483, 487, 490, 493, 498, 500, 501, 503, 506, 508, 510, 514, 517, 519, 522, 523, 527, 528, 529, 532, 536, 537, 538, 539, 541, 543, 547, 548, 549, 552, 556, 557, 558, 559, 560, 563, 566, 567, 570, 571, 573, 574, 577, 580, 581, 584, 585, 587, 590, 591, 594, 595, 597, 599, 602, 605, 610, 613, 614, 616, 619, 620, 622, 626, 627, 628, 631, 635, 636, 637, 638, 642, 645, 648, 651, 654, 657, 659, 662, 665, 668, 671, 674, 675, 682, 688, 691, 692, 696, 702, 705, 706, 708, 711, 715, 718, 721, 726, 727, 731, 735, 736, 740, 745, 750, 754, 755, 756, 757, 759, 763, 769, 771, 772, 773, 777, 778, 781, 785, 786, 788, 790, 791, 795, 797, 799, 803, 806, 809, 810, 812, 814, 818, 822, 824, 826, 830, 833, 836, 837, 839, 841, 844, 848, 851, 852, 855, 857, 858, 861, 864, 865, 868, 871, 874, 875, 876, 879, 882, 883, 886, 887, 889, 895, 896, 897, 900, 904, 905, 906, 907, 910, 913, 916, 917, 918, 921, 924, 925, 928, 929, 931, 937, 938, 939, 942, 946, 947, 948, 949, 954, 957, 962, 965, 966, 969, 970, 973, 974, 977, 983, 984, 985, 988, 992, 993, 994, 995, 996, 999, 1000, 1003, 1009, 1012, 1015, 1020, 1022, 1023, 1025, 1028, 1030, 1032, 1036, 1039, 1041, 1044, 1045, 1049, 1050, 1051, 1054, 1058, 1059, 1060, 1061, 1063, 1065, 1066, 1069, 1072, 1073, 1077, 1078, 1079, 1082, 1086, 1087, 1088, 1089, 1091, 1093, 1097, 1098, 1101, 1104, 1107, 1110, 1111, 1115, 1116, 1117, 1120, 1124, 1125, 1126, 1127, 1129, 1131, 1135, 1136, 1139, 1144, 1148, 1151, 1154, 1156, 1160, 1166, 1169, 1172, 1176, 1179, 1180, 1182, 1185, 1188, 1190, 1193, 1196, 1199, 1202, 1206, 1207, 1208, 1209, 1211, 1214, 1217, 1219, 1223, 1226, 1228, 1231, 1232, 1236, 1237, 1238, 1241, 1245, 1246, 1247, 1248, 1251, 1254, 1258, 1261, 1262, 1264, 1269, 1274, 1277, 1281, 1282, 1283, 1284, 1286, 1290, 1293, 1295, 1298, 1299, 1300, 1304, 1305, 1308, 1309, 1310, 1316, 1317, 1320, 1321, 1326, 1327, 1330, 1331, 1334, 1336, 1342, 1343, 1344, 1347, 1351, 1352, 1353, 1354, 1356, 1358, 1359, 1363, 1366, 1368, 1370, 1373, 1378, 1381, 1382, 1385, 1386, 1389, 1390, 1392, 1395, 1396, 1401, 1402, 1405, 1406, 1411, 1412, 1415, 1417, 1419, 1422, 1424, 1425, 1427, 1429, 1431, 1433, 1435, 1436], "returns": [49, 83, 242, 455, 484, 600, 707, 866, 890, 908, 932, 950, 951, 1006, 1142, 1434], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 31, 120, 219, 233, 248, 252, 264, 273, 324, 352, 383, 415, 422, 607, 684, 698, 713, 717, 729, 738, 959, 979, 1005, 1103, 1141, 1174, 1256, 1271, 1338, 1375, 1408], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 7, "universal_type": "function", "name": "h)", "text_snippet": "Regionbuf *\nevas_common_regionbuf_new(int w, int h)\n{\n Regionbuf *rb;\n\n rb = calloc(1, sizeof(Re"}, {"node_id": 11, "universal_type": "function", "name": "h)", "text_snippet": "evas_common_regionbuf_new(int w, int h)"}, {"node_id": 85, "universal_type": "function", "name": "evas_common_regionbuf_free", "text_snippet": "void\nevas_common_regionbuf_free(Regionbuf *rb)\n{\n evas_common_regionbuf_clear(rb);\n free(rb);\n}"}, {"node_id": 87, "universal_type": "function", "name": "unknown", "text_snippet": "evas_common_regionbuf_free(Regionbuf *rb)"}, {"node_id": 103, "universal_type": "function", "name": "evas_common_regionbuf_clear", "text_snippet": "void\nevas_common_regionbuf_clear(Regionbuf *rb)\n{\n int y;\n\n for (y = 0; y < rb->h; y++)\n {\n\t"}, {"node_id": 105, "universal_type": "function", "name": "unknown", "text_snippet": "evas_common_regionbuf_clear(Regionbuf *rb)"}, {"node_id": 174, "universal_type": "function", "name": "evas_common_regionbuf_span_add", "text_snippet": "void\nevas_common_regionbuf_span_add(Regionbuf *rb, int x1, int x2, int y)\n{\n Regionspan *span, *sp"}, {"node_id": 176, "universal_type": "function", "name": "x1,", "text_snippet": "evas_common_regionbuf_span_add(Regionbuf *rb, int x1, int x2, int y)"}, {"node_id": 639, "universal_type": "function", "name": "evas_common_regionbuf_span_del", "text_snippet": "void\nevas_common_regionbuf_span_del(Regionbuf *rb, int x1, int x2, int y)\n{\n /* FIXME: del span */"}, {"node_id": 641, "universal_type": "function", "name": "x1,", "text_snippet": "evas_common_regionbuf_span_del(Regionbuf *rb, int x1, int x2, int y)"}, {"node_id": 1143, "universal_type": "function", "name": "y;", "text_snippet": "Tilebuf_Rect *\nevas_common_regionbuf_rects_get(Regionbuf *rb)\n{\n Tilebuf_Rect *rects = NULL, *r;\n "}, {"node_id": 1147, "universal_type": "function", "name": "unknown", "text_snippet": "evas_common_regionbuf_rects_get(Regionbuf *rb)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"evas_common.h\"\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "#include \"evas_common.h\"\n\n#if 0\nRegionbuf *\nevas_common_regionbuf_new(int w, int h)\n{\n Regionbuf *rb;\n\n rb = calloc(1, sizeof(Regionbuf) + (h * sizeof(Regionspan)));\n if (!rb) return NULL;\n rb->spans = (Regionspan **)(rb + sizeof(Regionbuf));\n rb->w = w;\n rb->h = h;\n return rb;\n}\n\nvoid\nevas_common_regionbuf_free(Regionbuf *rb)\n{\n evas_common_regionbuf_clear(rb);\n free(rb);\n}\n\nvoid\nevas_common_regionbuf_clear(Regionbuf *rb)\n{\n int y;\n\n for (y = 0; y < rb->h; y++)\n {\n\twhile (rb->spans[y])\n\t {\n\t Regionspan *span;\n\n\t span = rb->spans[y];\n\t rb->spans[y] = eina_inlist_remove(rb->spans[y], rb->spans[y]);\n\t free(span);\n\t }\n }\n}\n\nvoid\nevas_common_regionbuf_span_add(Regionbuf *rb, int x1, int x2, int y)\n{\n Regionspan *span, *span2, *nspan, *sp_start, *sp_stop;\n\n /* abort if outside */\n if ((y < 0) ||\n (y >= rb->h) ||\n (x2 < 0) ||\n (x1 >= rb->w)) return;\n /* clip to horiz bounds */\n if (x1 < 0) x1 = 0;\n if (x2 < (rb->w - 1)) x2 = rb->w - 1;\n sp_start = NULL;\n sp_stop = NULL;\n EINA_INLIST_FOREACH(rb->spans[y], span)\n {\n\tnspan = (Regionspan *)(EINA_INLIST_GET(span))->next;\n\t/* we dont know what t do with the span yet */\n\tif (!sp_start)\n\t {\n\t /* if new span starts before or on this span or just after\n\t * with no gap */\n\t if (x1 <= (span->x2 + 1))\n\t sp_start = span;\n\t /* if there is no next span */\n\t if (!nspan)\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }\n\t /* if new span ends before the next span starts with a gap of\n\t * 1 pixel (or more) */\n\t else if (x2 < (nspan->x1 - 1))\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }\n\t }\n\t/* we already know it already starts before or in sp_start */\n\telse\n\t {\n\t /* there is no span after this one, so this has to be the stop */\n\t if (!nspan)\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }\n\t /* if new span ends before the next span starts with a gap of\n\t * 1 pixel (or more) */\n\t else if (x2 < (nspan->x1 - 1))\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }\n\t }\n }\n /* sp_start is where the new span starts in or before */\n /* sp_stop is where the new span stops in or after */\n if ((sp_start) && (sp_stop))\n {\n\t/* same start and stop */\n\tif (sp_start == sp_stop)\n\t {\n\t if (x2 < (sp_start->x1 - 1))\n\t {\n\t\t span2 = calloc(1, sizeof(Regionspan));\n\t\t span2->x1 = x1;\n\t\t span2->x2 = x2;\n\t\t rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);\n\t\t return;\n\t }\n\t if (x1 < sp_start->x1)\n\t sp_start->x1 = x1;\n\t if (x2 > sp_start->x2)\n\t sp_start->x2 = x2;\n\t return;\n\t }\n\telse\n\t {\n\t Eina_Inlist *l;\n\n\t /* remove all nodes after sp_start and before_sp_stop because\n\t * the new */\n\t for (l = (EINA_INLIST_GET(sp_start))->next; l != EINA_INLIST_GET(sp_stop);)\n\t {\n\t\t span = (Regionspan *)l;\n\t\t l = l->next;\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], span);\n\t\t free(span);\n\t }\n\t /* remove the end span */\n\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_stop);\n\t /* if the new span is before the start span - extend */\n\t if (x1 < sp_start->x1)\n\t sp_start->x1 = x1;\n\t /* if it goes beyond the stop span - extend stop span */\n\t if (x2 > sp_stop->x2)\n\t sp_stop->x2 = x2;\n\t /* extend start span to stop span */\n\t sp_start->x2 = sp_stop->x2;\n\t /* don't need stop span anymore */\n\t free(sp_stop);\n\t return;\n\t }\n }\n /* no start AND stop... just append */\n span2 = calloc(1, sizeof(Regionspan));\n span2->x1 = x1;\n span2->x2 = x2;\n rb->spans[y] = eina_inlist_append(rb->spans[y], span2);\n}\n\nvoid\nevas_common_regionbuf_span_del(Regionbuf *rb, int x1, int x2, int y)\n{\n /* FIXME: del span */\n Regionspan *span, *span2, *nspan, *sp_start, *sp_stop;\n\n /* abort if outside */\n if ((y < 0) ||\n (y >= rb->h) ||\n (x2 < 0) ||\n (x1 >= rb->w)) return;\n /* clip to horiz bounds */\n if (x1 < 0) x1 = 0;\n if (x2 < (rb->w - 1)) x2 = rb->w - 1;\n sp_start = NULL;\n sp_stop = NULL;\n EINA_INLIST_FOREACH(rb->spans[y], span)\n {\n\tnspan = (Regionspan *)(EINA_INLIST_GET(l))->next;\n\t/* we dont know what t do with the span yet */\n\tif (!sp_start)\n\t {\n\t /* if new span starts before or on this span or just after\n\t * with no gap */\n\t if (x1 <= (span->x2))\n\t sp_start = span;\n\t /* if there is no next span */\n\t if (!nspan)\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }\n\t /* if new span ends before the next span starts with a gap of\n\t * 1 pixel (or more) */\n\t else if (x2 < nspan->x1)\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }\n\t }\n\t/* we already know it already starts before or in sp_start */\n\telse\n\t {\n\t /* there is no span after this one, so this has to be the stop */\n\t if (!nspan)\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }\n\t /* if new span ends before the next span starts with a gap of\n\t * 1 pixel (or more) */\n\t else if (x2 < nspan->x1)\n\t {\n\t\t sp_stop = span;\n\t\t break;\n\t }\n\t }\n }\n /* sp_start is where the new span starts in or before */\n /* sp_stop is where the new span stops in or after */\n if ((sp_start) && (sp_stop))\n {\n\t/* same start and stop */\n\tif (sp_start == sp_stop)\n\t {\n\t /* if it ends before this the span start starts... return */\n\t if (x2 < sp_start->x1)\n\t return;\n\t /* it starts on or before this span */\n\t else if (x1 <= sp_start->x1)\n\t {\n\t\t /* right edge is within the span */\n\t\t if (x2 < sp_start->x2)\n\t\t {\n\t\t sp_start->x2 = x2;\n\t\t return;\n\t\t }\n\t\t else\n\t\t {\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n\t\t return;\n\t\t }\n\t }\n\t /* it ends on or after the end of this span */\n\t else if (x2 >= sp_start->x2)\n\t {\n\t\t /* it starts after the start */\n\t\t if (x1 > sp_start->x1)\n\t\t {\n\t\t sp_start->x1 = x1;\n\t\t return;\n\t\t }\n\t\t /* remove it all */\n\t\t else\n\t\t {\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n\t\t return;\n\t\t }\n\t\t return;\n\t }\n\t /* this breaks the span into 2 */\n\t else\n\t {\n\t\t span2 = calloc(1, sizeof(Regionspan));\n\t\t span2->x1 = sp_start->x1;\n\t\t span2->x2 = x1 - 1;\n\t\t rb->spans[y] = eina_inlist_prepend_relative(rb->spans[y], span2, sp_start);\n\t\t sp_start->x1 = x2 + 1;\n\t\t return;\n\t }\n\t }\n\telse\n\t {\n\t Eina_Inlist *l;\n\n\t /* remove all nodes after sp_start and before_sp_stop because\n\t * the new */\n\t for (l = (EINA_INLIST_GET(sp_start))->next; l != EINA_INLIST_GET(sp_stop);)\n\t {\n\t\t span = (Regionspan *)l;\n\t\t l = l->next;\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], span);\n\t\t free(span);\n\t }\n\t /* all of the start span is cut out */\n\t if (x1 <= sp_start->x1)\n\t {\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n\t\t free(sp_start);\n\t }\n\t /* chup it off at the new span start */\n\t else\n\t sp_start->x2 = x1 - 1;\n\t /* all of the end span is cut out */\n\t if (x2 >= sp_stop->x2)\n\t {\n\t\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_stop);\n\t\t free(sp_stop);\n\t }\n\t /* chop it up at the end */\n\t else\n\t sp_stop->x1 = x2 + 1;\n\t return;\n\t }\n }\n}\n\nTilebuf_Rect *\nevas_common_regionbuf_rects_get(Regionbuf *rb)\n{\n Tilebuf_Rect *rects = NULL, *r;\n int y;\n\n /* FIXME: take spans, make rects */\n for (y = 0; y < rb->h; y++)\n {\n\tRegionspan *sp_start;\n\tEina_Inlist *l, *ll;\n\n\tfor (l = EINA_INLIST_GET(rb->spans[y]); l;)\n\t {\n\t Regionspan *span;\n\t int yy;\n\n\t sp_start = (Regionspan *)l;\n\t l = l->next;\n\t rb->spans[y] = eina_inlist_remove(rb->spans[y], sp_start);\n\t for (yy = y + 1; yy < rb->h; yy++)\n\t {\n\t\t int match = 0;\n\n\t\t for (ll = EINA_INLIST_GET(rb->spans[yy]); ll;)\n\t\t {\n\t\t span = (Regionspan *)ll;\n\t\t ll = ll->next;\n\t\t if (span->x1 == sp_start->x1)\n\t\t\t {\n\t\t\t if ((span->x1 != sp_start->x1) ||\n\t\t\t\t(span->x2 != sp_start->x2))\n\t\t\t {\n\t\t\t\t goto coallate;\n\t\t\t }\n\t\t\t match = 1;\n\t\t\t rb->spans[yy] = eina_inlist_remove(rb->spans[yy], span);\n\t\t\t free(span);\n\t\t\t }\n\t\t }\n\t\t if (!match) goto coallate;\n\t }\n\t coallate:\n\t r = calloc(1, sizeof(Tilebuf_Rect));\n\t r->x = sp_start->x1;\n\t r->y = y;\n\t r->w = sp_start->x2 - sp_start->x1 + 1;\n\t r->h = yy - y;\n\t rects = eina_inlist_append(rects, r);\n\t free(sp_start);\n\t }\n }\n evas_common_regionbuf_clear(rb);\n return rects;\n}\n#endif\n"}
80,248
c
#include "9pm.h" enum { Hashmul = 151, Hashmod = 1000000007, }; static void addrlock(RWlock *q); static void subrlock(RWlock *q); void rlock(RWlock *q) { Thread *t; for(;;) { lock(&q->lk); if(q->hold == 0) break; q->nwait++; pm_queue(q); unlock(&q->lk); pm_tsleep(); } q->readers++; addrlock(q); if(q->nwait == 0) { unlock(&q->lk); return; } q->nwait--; t = pm_dequeue(q); unlock(&q->lk); pm_twakeup(t); } int canrlock(RWlock *q) { lock(&q->lk); if(q->hold == 0) { q->readers++; addrlock(q); unlock(&q->lk); return 1; } unlock(&q->lk); return 0; } void runlock(RWlock *q) { int n; lock(&q->lk); q->readers--; subrlock(q); n = q->readers; assert(n >= 0); if(n == 0 && q->hold) { unlock(&q->lk); pm_twakeup(q->hold); return; } unlock(&q->lk); } void wlock(RWlock *q) { for(;;) { lock(&q->lk); if(q->hold == 0) break; q->nwait++; pm_queue(q); unlock(&q->lk); pm_tsleep(); } q->hold = CT; if(q->readers) { unlock(&q->lk); pm_tsleep(); return; } unlock(&q->lk); } int canwlock(RWlock *q) { lock(&q->lk); if(q->hold == 0 && q->readers == 0) { q->hold = CT; unlock(&q->lk); return 1; } unlock(&q->lk); return 0; } void wunlock(RWlock *q) { Thread * t; lock(&q->lk); assert(q->hold == CT); q->hold = 0; if(q->nwait == 0) { unlock(&q->lk); return; } q->nwait--; t = pm_dequeue(q); unlock(&q->lk); pm_twakeup(t); } int holdwlock(RWlock *q) { return q->hold == CT; } static void addrlock(RWlock *q) { uint h; int i, n; Thread *ct; RWlock **p; ct = CT; n = ct->nrtab; h = q->hash; if(h == 0) { h = (((int)q * Hashmul) % Hashmod); h &= n-1; h++; q->hash = h; } p = ct->rtab+h; for(i = 0; i < Nrlook; i++, p++) assert(*p != q); p = ct->rtab+h; for(i=0; i < Nrlook; i++, p++) { if(*p) continue; *p = q; return; } /* expand table */ p = ct->rtab; ct->nrtab *= 4; ct->rtab = sbrk((ct->nrtab+Nrlook+1)*sizeof(RWlock*)); n += Nrlook+1; for(i=0; i<n; i++) { if(p[i] == 0) continue; p[i]->hash = 0; addrlock(p[i]); } /* free(p); */ } static void subrlock(RWlock *q) { uint h; int i; Thread *ct; RWlock **p; ct = CT; h = q->hash; p = ct->rtab+h; for(i = 0; i < Nrlook; i++, p++) { if(*p == q) { *p = 0; return; } } assert(0); } int holdrlock(RWlock *q) { uint h; int i; Thread *ct; RWlock **p; ct = CT; h = q->hash; p = ct->rtab+h; for(i = 0; i < Nrlook; i++, p++) { if(*p == q) return 1; } return 0; } int holdrwlock(RWlock *q) { return holdwlock(q) | holdrlock(q); }
12.23
194
(translation_unit) "#include "9pm.h"\n\nenum {\n Hashmul = 151,\n Hashmod = 1000000007, \n};\n\nstatic void addrlock(RWlock *q);\nstatic void subrlock(RWlock *q);\n\nvoid\nrlock(RWlock *q)\n{\n Thread *t;\n\n for(;;) {\n lock(&q->lk);\n\n if(q->hold == 0)\n break; \n q->nwait++;\n pm_queue(q);\n unlock(&q->lk);\n pm_tsleep();\n }\n\n q->readers++;\n addrlock(q); \n if(q->nwait == 0) { \n unlock(&q->lk); \n return; \n } \n \n q->nwait--;\n t = pm_dequeue(q);\n unlock(&q->lk); \n\n pm_twakeup(t);\n}\n\nint\ncanrlock(RWlock *q)\n{\n lock(&q->lk);\n if(q->hold == 0) {\n q->readers++;\n addrlock(q);\n unlock(&q->lk);\n return 1;\n }\n unlock(&q->lk);\n return 0;\n}\n\nvoid\nrunlock(RWlock *q)\n{\n int n;\n\n lock(&q->lk);\n\n q->readers--;\n subrlock(q);\n\n n = q->readers;\n assert(n >= 0);\n\n if(n == 0 && q->hold) {\n unlock(&q->lk);\n pm_twakeup(q->hold);\n return;\n }\n\n unlock(&q->lk);\n}\n\nvoid\nwlock(RWlock *q)\n{\n for(;;) {\n lock(&q->lk);\n\n if(q->hold == 0)\n break; \n q->nwait++;\n pm_queue(q);\n unlock(&q->lk);\n pm_tsleep();\n }\n\n q->hold = CT;\n\n if(q->readers) {\n unlock(&q->lk);\n pm_tsleep();\n return;\n }\n\n unlock(&q->lk);\n}\n\nint\ncanwlock(RWlock *q)\n{\n lock(&q->lk);\n if(q->hold == 0 && q->readers == 0) {\n q->hold = CT;\n unlock(&q->lk);\n return 1;\n }\n unlock(&q->lk);\n return 0;\n}\n\nvoid\nwunlock(RWlock *q)\n{\n Thread * t;\n\n lock(&q->lk);\n assert(q->hold == CT);\n q->hold = 0; \n if(q->nwait == 0) { \n unlock(&q->lk); \n return; \n } \n q->nwait--;\n t = pm_dequeue(q);\n unlock(&q->lk);\n pm_twakeup(t);\n}\n\nint\nholdwlock(RWlock *q)\n{\n return q->hold == CT;\n}\n\nstatic void\naddrlock(RWlock *q)\n{\n uint h;\n int i, n;\n Thread *ct;\n RWlock **p;\n\n\n ct = CT;\n\n n = ct->nrtab;\n\n h = q->hash;\n if(h == 0) {\n h = (((int)q * Hashmul) % Hashmod);\n h &= n-1;\n h++;\n q->hash = h;\n }\n\n p = ct->rtab+h;\n for(i = 0; i < Nrlook; i++, p++)\n assert(*p != q);\n\n p = ct->rtab+h;\n for(i=0; i < Nrlook; i++, p++) {\n if(*p)\n continue;\n *p = q;\n return;\n }\n\n /* expand table */\n p = ct->rtab;\n ct->nrtab *= 4;\n ct->rtab = sbrk((ct->nrtab+Nrlook+1)*sizeof(RWlock*));\n n += Nrlook+1;\n for(i=0; i<n; i++) {\n if(p[i] == 0)\n continue;\n p[i]->hash = 0;\n addrlock(p[i]);\n } \n \n /* free(p); */\n}\n\nstatic void\nsubrlock(RWlock *q)\n{\n uint h;\n int i;\n Thread *ct;\n RWlock **p;\n\n ct = CT;\n\n h = q->hash;\n\n p = ct->rtab+h;\n for(i = 0; i < Nrlook; i++, p++) {\n if(*p == q) {\n *p = 0;\n return;\n }\n }\n\n assert(0);\n}\n\nint\nholdrlock(RWlock *q)\n{\n uint h;\n int i;\n Thread *ct;\n RWlock **p;\n\n ct = CT;\n\n h = q->hash;\n\n p = ct->rtab+h;\n for(i = 0; i < Nrlook; i++, p++) {\n if(*p == q)\n return 1;\n }\n\n return 0;\n}\n\nint\nholdrwlock(RWlock *q)\n{\n return holdwlock(q) | holdrlock(q);\n}\n\n" (preproc_include) "#include "9pm.h"\n" (#include) "#include" (string_literal) ""9pm.h"" (") """ (string_content) "9pm.h" (") """ (enum_specifier) "enum {\n Hashmul = 151,\n Hashmod = 1000000007, \n}" (enum) "enum" (enumerator_list) "{\n Hashmul = 151,\n Hashmod = 1000000007, \n}" ({) "{" (enumerator) "Hashmul = 151" (identifier) "Hashmul" (=) "=" (number_literal) "151" (,) "," (enumerator) "Hashmod = 1000000007" (identifier) "Hashmod" (=) "=" (number_literal) "1000000007" (,) "," (}) "}" (;) ";" (declaration) "static void addrlock(RWlock *q);" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "addrlock(RWlock *q)" (identifier) "addrlock" (parameter_list) "(RWlock *q)" (() "(" (parameter_declaration) "RWlock *q" (type_identifier) "RWlock" (pointer_declarator) "*q" (*) "*" (identifier) "q" ()) ")" (;) ";" (declaration) "static void subrlock(RWlock *q);" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "subrlock(RWlock *q)" (identifier) "subrlock" (parameter_list) "(RWlock *q)" (() "(" (parameter_declaration) "RWlock *q" (type_identifier) "RWlock" (pointer_declarator) "*q" (*) "*" (identifier) "q" ()) ")" (;) ";" (function_definition) "void\nrlock(RWlock *q)\n{\n Thread *t;\n\n for(;;) {\n lock(&q->lk);\n\n if(q->hold == 0)\n break; \n q->nwait++;\n pm_queue(q);\n unlock(&q->lk);\n pm_tsleep();\n }\n\n q->readers++;\n addrlock(q); \n if(q->nwait == 0) { \n unlock(&q->lk); \n return; \n } \n \n q->nwait--;\n t = pm_dequeue(q);\n unlock(&q->lk); \n\n pm_twakeup(t);\n}" (primitive_type) "void" (function_declarator) "rlock(RWlock *q)" (identifier) "rlock" (parameter_list) "(RWlock *q)" (() "(" (parameter_declaration) "RWlock *q" (type_identifier) "RWlock" (pointer_declarator) "*q" (*) "*" (identifier) "q" ()) ")" (compound_statement) "{\n Thread *t;\n\n for(;;) {\n lock(&q->lk);\n\n if(q->hold == 0)\n break; \n q->nwait++;\n pm_queue(q);\n unlock(&q->lk);\n pm_tsleep();\n }\n\n q->readers++;\n addrlock(q); \n if(q->nwait == 0) { \n unlock(&q->lk); \n return; \n } \n \n q->nwait--;\n t = pm_dequeue(q);\n unlock(&q->lk); \n\n pm_twakeup(t);\n}" ({) "{" (declaration) "Thread *t;" (type_identifier) "Thread" (pointer_declarator) "*t" (*) "*" (identifier) "t" (;) ";" (for_statement) "for(;;) {\n lock(&q->lk);\n\n if(q->hold == 0)\n break; \n q->nwait++;\n pm_queue(q);\n unlock(&q->lk);\n pm_tsleep();\n }" (for) "for" (() "(" (;) ";" (;) ";" ()) ")" (compound_statement) "{\n lock(&q->lk);\n\n if(q->hold == 0)\n break; \n q->nwait++;\n pm_queue(q);\n unlock(&q->lk);\n pm_tsleep();\n }" ({) "{" (expression_statement) "lock(&q->lk);" (call_expression) "lock(&q->lk)" (identifier) "lock" (argument_list) "(&q->lk)" (() "(" (pointer_expression) "&q->lk" (&) "&" (field_expression) "q->lk" (identifier) "q" (->) "->" (field_identifier) "lk" ()) ")" (;) ";" (if_statement) "if(q->hold == 0)\n break;" (if) "if" (parenthesized_expression) "(q->hold == 0)" (() "(" (binary_expression) "q->hold == 0" (field_expression) "q->hold" (identifier) "q" (->) "->" (field_identifier) "hold" (==) "==" (number_literal) "0" ()) ")" (break_statement) "break;" (break) "break" (;) ";" (expression_statement) "q->nwait++;" (update_expression) "q->nwait++" (field_expression) "q->nwait" (identifier) "q" (->) "->" (field_identifier) "nwait" (++) "++" (;) ";" (expression_statement) "pm_queue(q);" (call_expression) "pm_queue(q)" (identifier) "pm_queue" (argument_list) "(q)" (() "(" (identifier) "q" ()) ")" (;) ";" (expression_statement) "unlock(&q->lk);" (call_expression) "unlock(&q->lk)" (identifier) "unlock" (argument_list) "(&q->lk)" (() "(" (pointer_expression) "&q->lk" (&) "&" (field_expression) "q->lk" (identifier) "q" (->) "->" (field_identifier) "lk" ()) ")" (;) ";" (expression_statement) "pm_tsleep();" (call_expression) "pm_tsleep()" (identifier) "pm_tsleep" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (expression_statement) "q->readers++;" (update_expression) "q->readers++" (field_expression) "q->readers" (identifier) "q" (->) "->" (field_identifier) "readers" (++) "++" (;) ";" (expression_statement) "addrlock(q);" (call_expression) "addrlock(q)" (identifier) "addrlock" (argument_list) "(q)" (() "(" (identifier) "q" ()) ")" (;) ";" (if_statement) "if(q->nwait == 0) { \n unlock(&q->lk); \n return; \n }" (if) "if" (parenthesized_expression) "(q->nwait == 0)" (() "(" (binary_expression) "q->nwait == 0" (field_expression) "q->nwait" (identifier) "q" (->) "->" (field_identifier) "nwait" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{ \n unlock(&q->lk); \n return; \n }" ({) "{" (expression_statement) "unlock(&q->lk);" (call_expression) "unlock(&q->lk)" (identifier) "unlock" (argument_list) "(&q->lk)" (() "(" (pointer_expression) "&q->lk" (&) "&" (field_expression) "q->lk" (identifier) "q" (->) "->" (field_identifier) "lk" ()) ")" (;) ";" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (expression_statement) "q->nwait--;" (update_expression) "q->nwait--" (field_expression) "q->nwait" (identifier) "q" (->) "->" (field_identifier) "nwait" (--) "--" (;) ";" (expression_statement) "t = pm_dequeue(q);" (assignment_expression) "t = pm_dequeue(q)" (identifier) "t" (=) "=" (call_expression) "pm_dequeue(q)" (identifier) "pm_dequeue" (argument_list) "(q)" (() "(" (identifier) "q" ()) ")" (;) ";" (expression_statement) "unlock(&q->lk);" (call_expression) "unlock(&q->lk)" (identifier) "unlock" (argument_list) "(&q->lk)" (() "(" (pointer_expression) "&q->lk" (&) "&" (field_expression) "q->lk" (identifier) "q" (->) "->" (field_identifier) "lk" ()) ")" (;) ";" (expression_statement) "pm_twakeup(t);" (call_expression) "pm_twakeup(t)" (identifier) "pm_twakeup" (argument_list) "(t)" (() "(" (identifier) "t" ()) ")" (;) ";" (}) "}" (function_definition) "int\ncanrlock(RWlock *q)\n{\n lock(&q->lk);\n if(q->hold == 0) {\n q->readers++;\n addrlock(q);\n unlock(&q->lk);\n return 1;\n }\n unlock(&q->lk);\n return 0;\n}" (primitive_type) "int" (function_declarator) "canrlock(RWlock *q)" (identifier) "canrlock" (parameter_list) "(RWlock *q)" (() "(" (parameter_declaration) "RWlock *q" (type_identifier) "RWlock" (pointer_declarator) "*q" (*) "*" (identifier) "q" ()) ")" (compound_statement) "{\n lock(&q->lk);\n if(q->hold == 0) {\n q->readers++;\n addrlock(q);\n unlock(&q->lk);\n return 1;\n }\n unlock(&q->lk);\n return 0;\n}" ({) "{" (expression_statement) "lock(&q->lk);" (call_expression) "lock(&q->lk)" (identifier) "lock" (argument_list) "(&q->lk)" (() "(" (pointer_expression) "&q->lk" (&) "&" (field_expression) "q->lk" (identifier) "q" (->) "->" (field_identifier) "lk" ()) ")" (;) ";" (if_statement) "if(q->hold == 0) {\n q->readers++;\n addrlock(q);\n unlock(&q->lk);\n return 1;\n }" (if) "if" (parenthesized_expression) "(q->hold == 0)" (() "(" (binary_expression) "q->hold == 0" (field_expression) "q->hold" (identifier) "q" (->) "->" (field_identifier) "hold" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n q->readers++;\n addrlock(q);\n unlock(&q->lk);\n return 1;\n }" ({) "{" (expression_statement) "q->readers++;" (update_expression) "q->readers++" (field_expression) "q->readers" (identifier) "q" (->) "->" (field_identifier) "readers" (++) "++" (;) ";" (expression_statement) "addrlock(q);" (call_expression) "addrlock(q)" (identifier) "addrlock" (argument_list) "(q)" (() "(" (identifier) "q" ()) ")" (;) ";" (expression_statement) "unlock(&q->lk);" (call_expression) "unlock(&q->lk)" (identifier) "unlock" (argument_list) "(&q->lk)" (() "(" (pointer_expression) "&q->lk" (&) "&" (field_expression) "q->lk" (identifier) "q" (->) "->" (field_identifier) "lk" ()) ")" (;) ";" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (expression_statement) "unlock(&q->lk);" (call_expression) "unlock(&q->lk)" (identifier) "unlock" (argument_list) "(&q->lk)" (() "(" (pointer_expression) "&q->lk" (&) "&" (field_expression) "q->lk" (identifier) "q" (->) "->" (field_identifier) "lk" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "void\nrunlock(RWlock *q)\n{\n int n;\n\n lock(&q->lk);\n\n q->readers--;\n subrlock(q);\n\n n = q->readers;\n assert(n >= 0);\n\n if(n == 0 && q->hold) {\n unlock(&q->lk);\n pm_twakeup(q->hold);\n return;\n }\n\n unlock(&q->lk);\n}" (primitive_type) "void" (function_declarator) "runlock(RWlock *q)" (identifier) "runlock" (parameter_list) "(RWlock *q)" (() "(" (parameter_declaration) "RWlock *q" (type_identifier) "RWlock" (pointer_declarator) "*q" (*) "*" (identifier) "q" ()) ")" (compound_statement) "{\n int n;\n\n lock(&q->lk);\n\n q->readers--;\n subrlock(q);\n\n n = q->readers;\n assert(n >= 0);\n\n if(n == 0 && q->hold) {\n unlock(&q->lk);\n pm_twakeup(q->hold);\n return;\n }\n\n unlock(&q->lk);\n}" ({) "{" (declaration) "int n;" (primitive_type) "int" (identifier) "n" (;) ";" (expression_statement) "lock(&q->lk);" (call_expression) "lock(&q->lk)" (identifier) "lock" (argument_list) "(&q->lk)" (() "(" (pointer_expression) "&q->lk" (&) "&" (field_expression) "q->lk" (identifier) "q" (->) "->" (field_identifier) "lk" ()) ")" (;) ";" (expression_statement) "q->readers--;" (update_expression) "q->readers--" (field_expression) "q->readers" (identifier) "q" (->) "->" (field_identifier) "readers" (--) "--" (;) ";" (expression_statement) "subrlock(q);" (call_expression) "subrlock(q)" (identifier) "subrlock" (argument_list) "(q)" (() "(" (identifier) "q" ()) ")" (;) ";" (expression_statement) "n = q->readers;" (assignment_expression) "n = q->readers" (identifier) "n" (=) "=" (field_expression) "q->readers" (identifier) "q" (->) "->" (field_identifier) "readers" (;) ";" (expression_statement) "assert(n >= 0);" (call_expression) "assert(n >= 0)" (identifier) "assert" (argument_list) "(n >= 0)" (() "(" (binary_expression) "n >= 0" (identifier) "n" (>=) ">=" (number_literal) "0" ()) ")" (;) ";" (if_statement) "if(n == 0 && q->hold) {\n unlock(&q->lk);\n pm_twakeup(q->hold);\n return;\n }" (if) "if" (parenthesized_expression) "(n == 0 && q->hold)" (() "(" (binary_expression) "n == 0 && q->hold" (binary_expression) "n == 0" (identifier) "n" (==) "==" (number_literal) "0" (&&) "&&" (field_expression) "q->hold" (identifier) "q" (->) "->" (field_identifier) "hold" ()) ")" (compound_statement) "{\n unlock(&q->lk);\n pm_twakeup(q->hold);\n return;\n }" ({) "{" (expression_statement) "unlock(&q->lk);" (call_expression) "unlock(&q->lk)" (identifier) "unlock" (argument_list) "(&q->lk)" (() "(" (pointer_expression) "&q->lk" (&) "&" (field_expression) "q->lk" (identifier) "q" (->) "->" (field_identifier) "lk" ()) ")" (;) ";" (expression_statement) "pm_twakeup(q->hold);" (call_expression) "pm_twakeup(q->hold)" (identifier) "pm_twakeup" (argument_list) "(q->hold)" (() "(" (field_expression) "q->hold" (identifier) "q" (->) "->" (field_identifier) "hold" ()) ")" (;) ";" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (expression_statement) "unlock(&q->lk);" (call_expression) "unlock(&q->lk)" (identifier) "unlock" (argument_list) "(&q->lk)" (() "(" (pointer_expression) "&q->lk" (&) "&" (field_expression) "q->lk" (identifier) "q" (->) "->" (field_identifier) "lk" ()) ")" (;) ";" (}) "}" (function_definition) "void\nwlock(RWlock *q)\n{\n for(;;) {\n lock(&q->lk);\n\n if(q->hold == 0)\n break; \n q->nwait++;\n pm_queue(q);\n unlock(&q->lk);\n pm_tsleep();\n }\n\n q->hold = CT;\n\n if(q->readers) {\n unlock(&q->lk);\n pm_tsleep();\n return;\n }\n\n unlock(&q->lk);\n}" (primitive_type) "void" (function_declarator) "wlock(RWlock *q)" (identifier) "wlock" (parameter_list) "(RWlock *q)" (() "(" (parameter_declaration) "RWlock *q" (type_identifier) "RWlock" (pointer_declarator) "*q" (*) "*" (identifier) "q" ()) ")" (compound_statement) "{\n for(;;) {\n lock(&q->lk);\n\n if(q->hold == 0)\n break; \n q->nwait++;\n pm_queue(q);\n unlock(&q->lk);\n pm_tsleep();\n }\n\n q->hold = CT;\n\n if(q->readers) {\n unlock(&q->lk);\n pm_tsleep();\n return;\n }\n\n unlock(&q->lk);\n}" ({) "{" (for_statement) "for(;;) {\n lock(&q->lk);\n\n if(q->hold == 0)\n break; \n q->nwait++;\n pm_queue(q);\n unlock(&q->lk);\n pm_tsleep();\n }" (for) "for" (() "(" (;) ";" (;) ";" ()) ")" (compound_statement) "{\n lock(&q->lk);\n\n if(q->hold == 0)\n break; \n q->nwait++;\n pm_queue(q);\n unlock(&q->lk);\n pm_tsleep();\n }" ({) "{" (expression_statement) "lock(&q->lk);" (call_expression) "lock(&q->lk)" (identifier) "lock" (argument_list) "(&q->lk)" (() "(" (pointer_expression) "&q->lk" (&) "&" (field_expression) "q->lk" (identifier) "q" (->) "->" (field_identifier) "lk" ()) ")" (;) ";" (if_statement) "if(q->hold == 0)\n break;" (if) "if" (parenthesized_expression) "(q->hold == 0)" (() "(" (binary_expression) "q->hold == 0" (field_expression) "q->hold" (identifier) "q" (->) "->" (field_identifier) "hold" (==) "==" (number_literal) "0" ()) ")" (break_statement) "break;" (break) "break" (;) ";" (expression_statement) "q->nwait++;" (update_expression) "q->nwait++" (field_expression) "q->nwait" (identifier) "q" (->) "->" (field_identifier) "nwait" (++) "++" (;) ";" (expression_statement) "pm_queue(q);" (call_expression) "pm_queue(q)" (identifier) "pm_queue" (argument_list) "(q)" (() "(" (identifier) "q" ()) ")" (;) ";" (expression_statement) "unlock(&q->lk);" (call_expression) "unlock(&q->lk)" (identifier) "unlock" (argument_list) "(&q->lk)" (() "(" (pointer_expression) "&q->lk" (&) "&" (field_expression) "q->lk" (identifier) "q" (->) "->" (field_identifier) "lk" ()) ")" (;) ";" (expression_statement) "pm_tsleep();" (call_expression) "pm_tsleep()" (identifier) "pm_tsleep" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (expression_statement) "q->hold = CT;" (assignment_expression) "q->hold = CT" (field_expression) "q->hold" (identifier) "q" (->) "->" (field_identifier) "hold" (=) "=" (identifier) "CT" (;) ";" (if_statement) "if(q->readers) {\n unlock(&q->lk);\n pm_tsleep();\n return;\n }" (if) "if" (parenthesized_expression) "(q->readers)" (() "(" (field_expression) "q->readers" (identifier) "q" (->) "->" (field_identifier) "readers" ()) ")" (compound_statement) "{\n unlock(&q->lk);\n pm_tsleep();\n return;\n }" ({) "{" (expression_statement) "unlock(&q->lk);" (call_expression) "unlock(&q->lk)" (identifier) "unlock" (argument_list) "(&q->lk)" (() "(" (pointer_expression) "&q->lk" (&) "&" (field_expression) "q->lk" (identifier) "q" (->) "->" (field_identifier) "lk" ()) ")" (;) ";" (expression_statement) "pm_tsleep();" (call_expression) "pm_tsleep()" (identifier) "pm_tsleep" (argument_list) "()" (() "(" ()) ")" (;) ";" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (expression_statement) "unlock(&q->lk);" (call_expression) "unlock(&q->lk)" (identifier) "unlock" (argument_list) "(&q->lk)" (() "(" (pointer_expression) "&q->lk" (&) "&" (field_expression) "q->lk" (identifier) "q" (->) "->" (field_identifier) "lk" ()) ")" (;) ";" (}) "}" (function_definition) "int\ncanwlock(RWlock *q)\n{\n lock(&q->lk);\n if(q->hold == 0 && q->readers == 0) {\n q->hold = CT;\n unlock(&q->lk);\n return 1;\n }\n unlock(&q->lk);\n return 0;\n}" (primitive_type) "int" (function_declarator) "canwlock(RWlock *q)" (identifier) "canwlock" (parameter_list) "(RWlock *q)" (() "(" (parameter_declaration) "RWlock *q" (type_identifier) "RWlock" (pointer_declarator) "*q" (*) "*" (identifier) "q" ()) ")" (compound_statement) "{\n lock(&q->lk);\n if(q->hold == 0 && q->readers == 0) {\n q->hold = CT;\n unlock(&q->lk);\n return 1;\n }\n unlock(&q->lk);\n return 0;\n}" ({) "{" (expression_statement) "lock(&q->lk);" (call_expression) "lock(&q->lk)" (identifier) "lock" (argument_list) "(&q->lk)" (() "(" (pointer_expression) "&q->lk" (&) "&" (field_expression) "q->lk" (identifier) "q" (->) "->" (field_identifier) "lk" ()) ")" (;) ";" (if_statement) "if(q->hold == 0 && q->readers == 0) {\n q->hold = CT;\n unlock(&q->lk);\n return 1;\n }" (if) "if" (parenthesized_expression) "(q->hold == 0 && q->readers == 0)" (() "(" (binary_expression) "q->hold == 0 && q->readers == 0" (binary_expression) "q->hold == 0" (field_expression) "q->hold" (identifier) "q" (->) "->" (field_identifier) "hold" (==) "==" (number_literal) "0" (&&) "&&" (binary_expression) "q->readers == 0" (field_expression) "q->readers" (identifier) "q" (->) "->" (field_identifier) "readers" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n q->hold = CT;\n unlock(&q->lk);\n return 1;\n }" ({) "{" (expression_statement) "q->hold = CT;" (assignment_expression) "q->hold = CT" (field_expression) "q->hold" (identifier) "q" (->) "->" (field_identifier) "hold" (=) "=" (identifier) "CT" (;) ";" (expression_statement) "unlock(&q->lk);" (call_expression) "unlock(&q->lk)" (identifier) "unlock" (argument_list) "(&q->lk)" (() "(" (pointer_expression) "&q->lk" (&) "&" (field_expression) "q->lk" (identifier) "q" (->) "->" (field_identifier) "lk" ()) ")" (;) ";" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (expression_statement) "unlock(&q->lk);" (call_expression) "unlock(&q->lk)" (identifier) "unlock" (argument_list) "(&q->lk)" (() "(" (pointer_expression) "&q->lk" (&) "&" (field_expression) "q->lk" (identifier) "q" (->) "->" (field_identifier) "lk" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "void\nwunlock(RWlock *q)\n{\n Thread * t;\n\n lock(&q->lk);\n assert(q->hold == CT);\n q->hold = 0; \n if(q->nwait == 0) { \n unlock(&q->lk); \n return; \n } \n q->nwait--;\n t = pm_dequeue(q);\n unlock(&q->lk);\n pm_twakeup(t);\n}" (primitive_type) "void" (function_declarator) "wunlock(RWlock *q)" (identifier) "wunlock" (parameter_list) "(RWlock *q)" (() "(" (parameter_declaration) "RWlock *q" (type_identifier) "RWlock" (pointer_declarator) "*q" (*) "*" (identifier) "q" ()) ")" (compound_statement) "{\n Thread * t;\n\n lock(&q->lk);\n assert(q->hold == CT);\n q->hold = 0; \n if(q->nwait == 0) { \n unlock(&q->lk); \n return; \n } \n q->nwait--;\n t = pm_dequeue(q);\n unlock(&q->lk);\n pm_twakeup(t);\n}" ({) "{" (declaration) "Thread * t;" (type_identifier) "Thread" (pointer_declarator) "* t" (*) "*" (identifier) "t" (;) ";" (expression_statement) "lock(&q->lk);" (call_expression) "lock(&q->lk)" (identifier) "lock" (argument_list) "(&q->lk)" (() "(" (pointer_expression) "&q->lk" (&) "&" (field_expression) "q->lk" (identifier) "q" (->) "->" (field_identifier) "lk" ()) ")" (;) ";" (expression_statement) "assert(q->hold == CT);" (call_expression) "assert(q->hold == CT)" (identifier) "assert" (argument_list) "(q->hold == CT)" (() "(" (binary_expression) "q->hold == CT" (field_expression) "q->hold" (identifier) "q" (->) "->" (field_identifier) "hold" (==) "==" (identifier) "CT" ()) ")" (;) ";" (expression_statement) "q->hold = 0;" (assignment_expression) "q->hold = 0" (field_expression) "q->hold" (identifier) "q" (->) "->" (field_identifier) "hold" (=) "=" (number_literal) "0" (;) ";" (if_statement) "if(q->nwait == 0) { \n unlock(&q->lk); \n return; \n }" (if) "if" (parenthesized_expression) "(q->nwait == 0)" (() "(" (binary_expression) "q->nwait == 0" (field_expression) "q->nwait" (identifier) "q" (->) "->" (field_identifier) "nwait" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{ \n unlock(&q->lk); \n return; \n }" ({) "{" (expression_statement) "unlock(&q->lk);" (call_expression) "unlock(&q->lk)" (identifier) "unlock" (argument_list) "(&q->lk)" (() "(" (pointer_expression) "&q->lk" (&) "&" (field_expression) "q->lk" (identifier) "q" (->) "->" (field_identifier) "lk" ()) ")" (;) ";" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (expression_statement) "q->nwait--;" (update_expression) "q->nwait--" (field_expression) "q->nwait" (identifier) "q" (->) "->" (field_identifier) "nwait" (--) "--" (;) ";" (expression_statement) "t = pm_dequeue(q);" (assignment_expression) "t = pm_dequeue(q)" (identifier) "t" (=) "=" (call_expression) "pm_dequeue(q)" (identifier) "pm_dequeue" (argument_list) "(q)" (() "(" (identifier) "q" ()) ")" (;) ";" (expression_statement) "unlock(&q->lk);" (call_expression) "unlock(&q->lk)" (identifier) "unlock" (argument_list) "(&q->lk)" (() "(" (pointer_expression) "&q->lk" (&) "&" (field_expression) "q->lk" (identifier) "q" (->) "->" (field_identifier) "lk" ()) ")" (;) ";" (expression_statement) "pm_twakeup(t);" (call_expression) "pm_twakeup(t)" (identifier) "pm_twakeup" (argument_list) "(t)" (() "(" (identifier) "t" ()) ")" (;) ";" (}) "}" (function_definition) "int\nholdwlock(RWlock *q)\n{\n return q->hold == CT;\n}" (primitive_type) "int" (function_declarator) "holdwlock(RWlock *q)" (identifier) "holdwlock" (parameter_list) "(RWlock *q)" (() "(" (parameter_declaration) "RWlock *q" (type_identifier) "RWlock" (pointer_declarator) "*q" (*) "*" (identifier) "q" ()) ")" (compound_statement) "{\n return q->hold == CT;\n}" ({) "{" (return_statement) "return q->hold == CT;" (return) "return" (binary_expression) "q->hold == CT" (field_expression) "q->hold" (identifier) "q" (->) "->" (field_identifier) "hold" (==) "==" (identifier) "CT" (;) ";" (}) "}" (function_definition) "static void\naddrlock(RWlock *q)\n{\n uint h;\n int i, n;\n Thread *ct;\n RWlock **p;\n\n\n ct = CT;\n\n n = ct->nrtab;\n\n h = q->hash;\n if(h == 0) {\n h = (((int)q * Hashmul) % Hashmod);\n h &= n-1;\n h++;\n q->hash = h;\n }\n\n p = ct->rtab+h;\n for(i = 0; i < Nrlook; i++, p++)\n assert(*p != q);\n\n p = ct->rtab+h;\n for(i=0; i < Nrlook; i++, p++) {\n if(*p)\n continue;\n *p = q;\n return;\n }\n\n /* expand table */\n p = ct->rtab;\n ct->nrtab *= 4;\n ct->rtab = sbrk((ct->nrtab+Nrlook+1)*sizeof(RWlock*));\n n += Nrlook+1;\n for(i=0; i<n; i++) {\n if(p[i] == 0)\n continue;\n p[i]->hash = 0;\n addrlock(p[i]);\n } \n \n /* free(p); */\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "addrlock(RWlock *q)" (identifier) "addrlock" (parameter_list) "(RWlock *q)" (() "(" (parameter_declaration) "RWlock *q" (type_identifier) "RWlock" (pointer_declarator) "*q" (*) "*" (identifier) "q" ()) ")" (compound_statement) "{\n uint h;\n int i, n;\n Thread *ct;\n RWlock **p;\n\n\n ct = CT;\n\n n = ct->nrtab;\n\n h = q->hash;\n if(h == 0) {\n h = (((int)q * Hashmul) % Hashmod);\n h &= n-1;\n h++;\n q->hash = h;\n }\n\n p = ct->rtab+h;\n for(i = 0; i < Nrlook; i++, p++)\n assert(*p != q);\n\n p = ct->rtab+h;\n for(i=0; i < Nrlook; i++, p++) {\n if(*p)\n continue;\n *p = q;\n return;\n }\n\n /* expand table */\n p = ct->rtab;\n ct->nrtab *= 4;\n ct->rtab = sbrk((ct->nrtab+Nrlook+1)*sizeof(RWlock*));\n n += Nrlook+1;\n for(i=0; i<n; i++) {\n if(p[i] == 0)\n continue;\n p[i]->hash = 0;\n addrlock(p[i]);\n } \n \n /* free(p); */\n}" ({) "{" (declaration) "uint h;" (type_identifier) "uint" (identifier) "h" (;) ";" (declaration) "int i, n;" (primitive_type) "int" (identifier) "i" (,) "," (identifier) "n" (;) ";" (declaration) "Thread *ct;" (type_identifier) "Thread" (pointer_declarator) "*ct" (*) "*" (identifier) "ct" (;) ";" (declaration) "RWlock **p;" (type_identifier) "RWlock" (pointer_declarator) "**p" (*) "*" (pointer_declarator) "*p" (*) "*" (identifier) "p" (;) ";" (expression_statement) "ct = CT;" (assignment_expression) "ct = CT" (identifier) "ct" (=) "=" (identifier) "CT" (;) ";" (expression_statement) "n = ct->nrtab;" (assignment_expression) "n = ct->nrtab" (identifier) "n" (=) "=" (field_expression) "ct->nrtab" (identifier) "ct" (->) "->" (field_identifier) "nrtab" (;) ";" (expression_statement) "h = q->hash;" (assignment_expression) "h = q->hash" (identifier) "h" (=) "=" (field_expression) "q->hash" (identifier) "q" (->) "->" (field_identifier) "hash" (;) ";" (if_statement) "if(h == 0) {\n h = (((int)q * Hashmul) % Hashmod);\n h &= n-1;\n h++;\n q->hash = h;\n }" (if) "if" (parenthesized_expression) "(h == 0)" (() "(" (binary_expression) "h == 0" (identifier) "h" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n h = (((int)q * Hashmul) % Hashmod);\n h &= n-1;\n h++;\n q->hash = h;\n }" ({) "{" (expression_statement) "h = (((int)q * Hashmul) % Hashmod);" (assignment_expression) "h = (((int)q * Hashmul) % Hashmod)" (identifier) "h" (=) "=" (parenthesized_expression) "(((int)q * Hashmul) % Hashmod)" (() "(" (binary_expression) "((int)q * Hashmul) % Hashmod" (parenthesized_expression) "((int)q * Hashmul)" (() "(" (binary_expression) "(int)q * Hashmul" (cast_expression) "(int)q" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (identifier) "q" (*) "*" (identifier) "Hashmul" ()) ")" (%) "%" (identifier) "Hashmod" ()) ")" (;) ";" (expression_statement) "h &= n-1;" (assignment_expression) "h &= n-1" (identifier) "h" (&=) "&=" (binary_expression) "n-1" (identifier) "n" (-) "-" (number_literal) "1" (;) ";" (expression_statement) "h++;" (update_expression) "h++" (identifier) "h" (++) "++" (;) ";" (expression_statement) "q->hash = h;" (assignment_expression) "q->hash = h" (field_expression) "q->hash" (identifier) "q" (->) "->" (field_identifier) "hash" (=) "=" (identifier) "h" (;) ";" (}) "}" (expression_statement) "p = ct->rtab+h;" (assignment_expression) "p = ct->rtab+h" (identifier) "p" (=) "=" (binary_expression) "ct->rtab+h" (field_expression) "ct->rtab" (identifier) "ct" (->) "->" (field_identifier) "rtab" (+) "+" (identifier) "h" (;) ";" (for_statement) "for(i = 0; i < Nrlook; i++, p++)\n assert(*p != q);" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < Nrlook" (identifier) "i" (<) "<" (identifier) "Nrlook" (;) ";" (comma_expression) "i++, p++" (update_expression) "i++" (identifier) "i" (++) "++" (,) "," (update_expression) "p++" (identifier) "p" (++) "++" ()) ")" (expression_statement) "assert(*p != q);" (call_expression) "assert(*p != q)" (identifier) "assert" (argument_list) "(*p != q)" (() "(" (binary_expression) "*p != q" (pointer_expression) "*p" (*) "*" (identifier) "p" (!=) "!=" (identifier) "q" ()) ")" (;) ";" (expression_statement) "p = ct->rtab+h;" (assignment_expression) "p = ct->rtab+h" (identifier) "p" (=) "=" (binary_expression) "ct->rtab+h" (field_expression) "ct->rtab" (identifier) "ct" (->) "->" (field_identifier) "rtab" (+) "+" (identifier) "h" (;) ";" (for_statement) "for(i=0; i < Nrlook; i++, p++) {\n if(*p)\n continue;\n *p = q;\n return;\n }" (for) "for" (() "(" (assignment_expression) "i=0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < Nrlook" (identifier) "i" (<) "<" (identifier) "Nrlook" (;) ";" (comma_expression) "i++, p++" (update_expression) "i++" (identifier) "i" (++) "++" (,) "," (update_expression) "p++" (identifier) "p" (++) "++" ()) ")" (compound_statement) "{\n if(*p)\n continue;\n *p = q;\n return;\n }" ({) "{" (if_statement) "if(*p)\n continue;" (if) "if" (parenthesized_expression) "(*p)" (() "(" (pointer_expression) "*p" (*) "*" (identifier) "p" ()) ")" (continue_statement) "continue;" (continue) "continue" (;) ";" (expression_statement) "*p = q;" (assignment_expression) "*p = q" (pointer_expression) "*p" (*) "*" (identifier) "p" (=) "=" (identifier) "q" (;) ";" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (comment) "/* expand table */" (expression_statement) "p = ct->rtab;" (assignment_expression) "p = ct->rtab" (identifier) "p" (=) "=" (field_expression) "ct->rtab" (identifier) "ct" (->) "->" (field_identifier) "rtab" (;) ";" (expression_statement) "ct->nrtab *= 4;" (assignment_expression) "ct->nrtab *= 4" (field_expression) "ct->nrtab" (identifier) "ct" (->) "->" (field_identifier) "nrtab" (*=) "*=" (number_literal) "4" (;) ";" (expression_statement) "ct->rtab = sbrk((ct->nrtab+Nrlook+1)*sizeof(RWlock*));" (assignment_expression) "ct->rtab = sbrk((ct->nrtab+Nrlook+1)*sizeof(RWlock*))" (field_expression) "ct->rtab" (identifier) "ct" (->) "->" (field_identifier) "rtab" (=) "=" (call_expression) "sbrk((ct->nrtab+Nrlook+1)*sizeof(RWlock*))" (identifier) "sbrk" (argument_list) "((ct->nrtab+Nrlook+1)*sizeof(RWlock*))" (() "(" (binary_expression) "(ct->nrtab+Nrlook+1)*sizeof(RWlock*)" (parenthesized_expression) "(ct->nrtab+Nrlook+1)" (() "(" (binary_expression) "ct->nrtab+Nrlook+1" (binary_expression) "ct->nrtab+Nrlook" (field_expression) "ct->nrtab" (identifier) "ct" (->) "->" (field_identifier) "nrtab" (+) "+" (identifier) "Nrlook" (+) "+" (number_literal) "1" ()) ")" (*) "*" (sizeof_expression) "sizeof(RWlock*)" (sizeof) "sizeof" (() "(" (type_descriptor) "RWlock*" (type_identifier) "RWlock" (abstract_pointer_declarator) "*" (*) "*" ()) ")" ()) ")" (;) ";" (expression_statement) "n += Nrlook+1;" (assignment_expression) "n += Nrlook+1" (identifier) "n" (+=) "+=" (binary_expression) "Nrlook+1" (identifier) "Nrlook" (+) "+" (number_literal) "1" (;) ";" (for_statement) "for(i=0; i<n; i++) {\n if(p[i] == 0)\n continue;\n p[i]->hash = 0;\n addrlock(p[i]);\n }" (for) "for" (() "(" (assignment_expression) "i=0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i<n" (identifier) "i" (<) "<" (identifier) "n" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n if(p[i] == 0)\n continue;\n p[i]->hash = 0;\n addrlock(p[i]);\n }" ({) "{" (if_statement) "if(p[i] == 0)\n continue;" (if) "if" (parenthesized_expression) "(p[i] == 0)" (() "(" (binary_expression) "p[i] == 0" (subscript_expression) "p[i]" (identifier) "p" ([) "[" (identifier) "i" (]) "]" (==) "==" (number_literal) "0" ()) ")" (continue_statement) "continue;" (continue) "continue" (;) ";" (expression_statement) "p[i]->hash = 0;" (assignment_expression) "p[i]->hash = 0" (field_expression) "p[i]->hash" (subscript_expression) "p[i]" (identifier) "p" ([) "[" (identifier) "i" (]) "]" (->) "->" (field_identifier) "hash" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "addrlock(p[i]);" (call_expression) "addrlock(p[i])" (identifier) "addrlock" (argument_list) "(p[i])" (() "(" (subscript_expression) "p[i]" (identifier) "p" ([) "[" (identifier) "i" (]) "]" ()) ")" (;) ";" (}) "}" (comment) "/* free(p); */" (}) "}" (function_definition) "static void\nsubrlock(RWlock *q)\n{\n uint h;\n int i;\n Thread *ct;\n RWlock **p;\n\n ct = CT;\n\n h = q->hash;\n\n p = ct->rtab+h;\n for(i = 0; i < Nrlook; i++, p++) {\n if(*p == q) {\n *p = 0;\n return;\n }\n }\n\n assert(0);\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "subrlock(RWlock *q)" (identifier) "subrlock" (parameter_list) "(RWlock *q)" (() "(" (parameter_declaration) "RWlock *q" (type_identifier) "RWlock" (pointer_declarator) "*q" (*) "*" (identifier) "q" ()) ")" (compound_statement) "{\n uint h;\n int i;\n Thread *ct;\n RWlock **p;\n\n ct = CT;\n\n h = q->hash;\n\n p = ct->rtab+h;\n for(i = 0; i < Nrlook; i++, p++) {\n if(*p == q) {\n *p = 0;\n return;\n }\n }\n\n assert(0);\n}" ({) "{" (declaration) "uint h;" (type_identifier) "uint" (identifier) "h" (;) ";" (declaration) "int i;" (primitive_type) "int" (identifier) "i" (;) ";" (declaration) "Thread *ct;" (type_identifier) "Thread" (pointer_declarator) "*ct" (*) "*" (identifier) "ct" (;) ";" (declaration) "RWlock **p;" (type_identifier) "RWlock" (pointer_declarator) "**p" (*) "*" (pointer_declarator) "*p" (*) "*" (identifier) "p" (;) ";" (expression_statement) "ct = CT;" (assignment_expression) "ct = CT" (identifier) "ct" (=) "=" (identifier) "CT" (;) ";" (expression_statement) "h = q->hash;" (assignment_expression) "h = q->hash" (identifier) "h" (=) "=" (field_expression) "q->hash" (identifier) "q" (->) "->" (field_identifier) "hash" (;) ";" (expression_statement) "p = ct->rtab+h;" (assignment_expression) "p = ct->rtab+h" (identifier) "p" (=) "=" (binary_expression) "ct->rtab+h" (field_expression) "ct->rtab" (identifier) "ct" (->) "->" (field_identifier) "rtab" (+) "+" (identifier) "h" (;) ";" (for_statement) "for(i = 0; i < Nrlook; i++, p++) {\n if(*p == q) {\n *p = 0;\n return;\n }\n }" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < Nrlook" (identifier) "i" (<) "<" (identifier) "Nrlook" (;) ";" (comma_expression) "i++, p++" (update_expression) "i++" (identifier) "i" (++) "++" (,) "," (update_expression) "p++" (identifier) "p" (++) "++" ()) ")" (compound_statement) "{\n if(*p == q) {\n *p = 0;\n return;\n }\n }" ({) "{" (if_statement) "if(*p == q) {\n *p = 0;\n return;\n }" (if) "if" (parenthesized_expression) "(*p == q)" (() "(" (binary_expression) "*p == q" (pointer_expression) "*p" (*) "*" (identifier) "p" (==) "==" (identifier) "q" ()) ")" (compound_statement) "{\n *p = 0;\n return;\n }" ({) "{" (expression_statement) "*p = 0;" (assignment_expression) "*p = 0" (pointer_expression) "*p" (*) "*" (identifier) "p" (=) "=" (number_literal) "0" (;) ";" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (}) "}" (expression_statement) "assert(0);" (call_expression) "assert(0)" (identifier) "assert" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (;) ";" (}) "}" (function_definition) "int\nholdrlock(RWlock *q)\n{\n uint h;\n int i;\n Thread *ct;\n RWlock **p;\n\n ct = CT;\n\n h = q->hash;\n\n p = ct->rtab+h;\n for(i = 0; i < Nrlook; i++, p++) {\n if(*p == q)\n return 1;\n }\n\n return 0;\n}" (primitive_type) "int" (function_declarator) "holdrlock(RWlock *q)" (identifier) "holdrlock" (parameter_list) "(RWlock *q)" (() "(" (parameter_declaration) "RWlock *q" (type_identifier) "RWlock" (pointer_declarator) "*q" (*) "*" (identifier) "q" ()) ")" (compound_statement) "{\n uint h;\n int i;\n Thread *ct;\n RWlock **p;\n\n ct = CT;\n\n h = q->hash;\n\n p = ct->rtab+h;\n for(i = 0; i < Nrlook; i++, p++) {\n if(*p == q)\n return 1;\n }\n\n return 0;\n}" ({) "{" (declaration) "uint h;" (type_identifier) "uint" (identifier) "h" (;) ";" (declaration) "int i;" (primitive_type) "int" (identifier) "i" (;) ";" (declaration) "Thread *ct;" (type_identifier) "Thread" (pointer_declarator) "*ct" (*) "*" (identifier) "ct" (;) ";" (declaration) "RWlock **p;" (type_identifier) "RWlock" (pointer_declarator) "**p" (*) "*" (pointer_declarator) "*p" (*) "*" (identifier) "p" (;) ";" (expression_statement) "ct = CT;" (assignment_expression) "ct = CT" (identifier) "ct" (=) "=" (identifier) "CT" (;) ";" (expression_statement) "h = q->hash;" (assignment_expression) "h = q->hash" (identifier) "h" (=) "=" (field_expression) "q->hash" (identifier) "q" (->) "->" (field_identifier) "hash" (;) ";" (expression_statement) "p = ct->rtab+h;" (assignment_expression) "p = ct->rtab+h" (identifier) "p" (=) "=" (binary_expression) "ct->rtab+h" (field_expression) "ct->rtab" (identifier) "ct" (->) "->" (field_identifier) "rtab" (+) "+" (identifier) "h" (;) ";" (for_statement) "for(i = 0; i < Nrlook; i++, p++) {\n if(*p == q)\n return 1;\n }" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < Nrlook" (identifier) "i" (<) "<" (identifier) "Nrlook" (;) ";" (comma_expression) "i++, p++" (update_expression) "i++" (identifier) "i" (++) "++" (,) "," (update_expression) "p++" (identifier) "p" (++) "++" ()) ")" (compound_statement) "{\n if(*p == q)\n return 1;\n }" ({) "{" (if_statement) "if(*p == q)\n return 1;" (if) "if" (parenthesized_expression) "(*p == q)" (() "(" (binary_expression) "*p == q" (pointer_expression) "*p" (*) "*" (identifier) "p" (==) "==" (identifier) "q" ()) ")" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "int\nholdrwlock(RWlock *q)\n{\n return holdwlock(q) | holdrlock(q);\n}" (primitive_type) "int" (function_declarator) "holdrwlock(RWlock *q)" (identifier) "holdrwlock" (parameter_list) "(RWlock *q)" (() "(" (parameter_declaration) "RWlock *q" (type_identifier) "RWlock" (pointer_declarator) "*q" (*) "*" (identifier) "q" ()) ")" (compound_statement) "{\n return holdwlock(q) | holdrlock(q);\n}" ({) "{" (return_statement) "return holdwlock(q) | holdrlock(q);" (return) "return" (binary_expression) "holdwlock(q) | holdrlock(q)" (call_expression) "holdwlock(q)" (identifier) "holdwlock" (argument_list) "(q)" (() "(" (identifier) "q" ()) ")" (|) "|" (call_expression) "holdrlock(q)" (identifier) "holdrlock" (argument_list) "(q)" (() "(" (identifier) "q" ()) ")" (;) ";" (}) "}"
1,465
0
{"language": "c", "success": true, "metadata": {"lines": 194, "avg_line_length": 12.23, "nodes": 898, "errors": 0, "source_hash": "2513ba3957e57c0a92613ef66b9bde1fd9d25d76438568f1b8e737631659c4cb", "categorized_nodes": 675}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"9pm.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": "\"9pm.h\"", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 16}}, {"id": 3, "type": "enum_specifier", "text": "enum {\n\tHashmul = 151,\n\tHashmod\t= 1000000007,\r\n}", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 5, "column": 1}}, {"id": 4, "type": "enum", "text": "enum", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 4}}, {"id": 5, "type": "enumerator_list", "text": "{\n\tHashmul = 151,\n\tHashmod\t= 1000000007,\r\n}", "parent": 3, "children": [6, 10], "start_point": {"row": 2, "column": 5}, "end_point": {"row": 5, "column": 1}}, {"id": 6, "type": "enumerator", "text": "Hashmul = 151", "parent": 5, "children": [7, 8, 9], "start_point": {"row": 3, "column": 1}, "end_point": {"row": 3, "column": 14}}, {"id": 7, "type": "identifier", "text": "Hashmul", "parent": 6, "children": [], "start_point": {"row": 3, "column": 1}, "end_point": {"row": 3, "column": 8}}, {"id": 8, "type": "=", "text": "=", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 10}}, {"id": 9, "type": "number_literal", "text": "151", "parent": 6, "children": [], "start_point": {"row": 3, "column": 11}, "end_point": {"row": 3, "column": 14}}, {"id": 10, "type": "enumerator", "text": "Hashmod\t= 1000000007", "parent": 5, "children": [11, 12, 13], "start_point": {"row": 4, "column": 1}, "end_point": {"row": 4, "column": 21}}, {"id": 11, "type": "identifier", "text": "Hashmod", "parent": 10, "children": [], "start_point": {"row": 4, "column": 1}, "end_point": {"row": 4, "column": 8}}, {"id": 12, "type": "=", "text": "=", "parent": 10, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 10}}, {"id": 13, "type": "number_literal", "text": "1000000007", "parent": 10, "children": [], "start_point": {"row": 4, "column": 11}, "end_point": {"row": 4, "column": 21}}, {"id": 14, "type": "declaration", "text": "static void\taddrlock(RWlock *q);", "parent": null, "children": [15, 16], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 32}}, {"id": 15, "type": "primitive_type", "text": "void", "parent": 14, "children": [], "start_point": {"row": 7, "column": 7}, "end_point": {"row": 7, "column": 11}}, {"id": 16, "type": "function_declarator", "text": "addrlock(RWlock *q)", "parent": 14, "children": [17, 18], "start_point": {"row": 7, "column": 12}, "end_point": {"row": 7, "column": 31}}, {"id": 17, "type": "identifier", "text": "addrlock", "parent": 16, "children": [], "start_point": {"row": 7, "column": 12}, "end_point": {"row": 7, "column": 20}}, {"id": 18, "type": "parameter_list", "text": "(RWlock *q)", "parent": 16, "children": [19], "start_point": {"row": 7, "column": 20}, "end_point": {"row": 7, "column": 31}}, {"id": 19, "type": "parameter_declaration", "text": "RWlock *q", "parent": 18, "children": [20, 21], "start_point": {"row": 7, "column": 21}, "end_point": {"row": 7, "column": 30}}, {"id": 20, "type": "type_identifier", "text": "RWlock", "parent": 19, "children": [], "start_point": {"row": 7, "column": 21}, "end_point": {"row": 7, "column": 27}}, {"id": 21, "type": "pointer_declarator", "text": "*q", "parent": 19, "children": [22, 23], "start_point": {"row": 7, "column": 28}, "end_point": {"row": 7, "column": 30}}, {"id": 22, "type": "*", "text": "*", "parent": 21, "children": [], "start_point": {"row": 7, "column": 28}, "end_point": {"row": 7, "column": 29}}, {"id": 23, "type": "identifier", "text": "q", "parent": 21, "children": [], "start_point": {"row": 7, "column": 29}, "end_point": {"row": 7, "column": 30}}, {"id": 24, "type": "declaration", "text": "static void\tsubrlock(RWlock *q);", "parent": null, "children": [25, 26], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 32}}, {"id": 25, "type": "primitive_type", "text": "void", "parent": 24, "children": [], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 11}}, {"id": 26, "type": "function_declarator", "text": "subrlock(RWlock *q)", "parent": 24, "children": [27, 28], "start_point": {"row": 8, "column": 12}, "end_point": {"row": 8, "column": 31}}, {"id": 27, "type": "identifier", "text": "subrlock", "parent": 26, "children": [], "start_point": {"row": 8, "column": 12}, "end_point": {"row": 8, "column": 20}}, {"id": 28, "type": "parameter_list", "text": "(RWlock *q)", "parent": 26, "children": [29], "start_point": {"row": 8, "column": 20}, "end_point": {"row": 8, "column": 31}}, {"id": 29, "type": "parameter_declaration", "text": "RWlock *q", "parent": 28, "children": [30, 31], "start_point": {"row": 8, "column": 21}, "end_point": {"row": 8, "column": 30}}, {"id": 30, "type": "type_identifier", "text": "RWlock", "parent": 29, "children": [], "start_point": {"row": 8, "column": 21}, "end_point": {"row": 8, "column": 27}}, {"id": 31, "type": "pointer_declarator", "text": "*q", "parent": 29, "children": [32, 33], "start_point": {"row": 8, "column": 28}, "end_point": {"row": 8, "column": 30}}, {"id": 32, "type": "*", "text": "*", "parent": 31, "children": [], "start_point": {"row": 8, "column": 28}, "end_point": {"row": 8, "column": 29}}, {"id": 33, "type": "identifier", "text": "q", "parent": 31, "children": [], "start_point": {"row": 8, "column": 29}, "end_point": {"row": 8, "column": 30}}, {"id": 34, "type": "function_definition", "text": "void\nrlock(RWlock *q)\n{\n\tThread *t;\n\n\tfor(;;) {\n\t\tlock(&q->lk);\n\n\t\tif(q->hold == 0)\n\t\t\tbreak;\r\n\t\tq->nwait++;\n\t\tpm_queue(q);\n\t\tunlock(&q->lk);\n\t\tpm_tsleep();\n\t}\n\n\tq->readers++;\n\taddrlock(q);\r\n\tif(q->nwait == 0) {\r\n\t\tunlock(&q->lk);\r\n\t\treturn;\r\n\t}\r\n\r\n\tq->nwait--;\n\tt = pm_dequeue(q);\n\tunlock(&q->lk);\r\n\n\tpm_twakeup(t);\n}", "parent": null, "children": [35, 36], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 38, "column": 1}}, {"id": 35, "type": "primitive_type", "text": "void", "parent": 34, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 4}}, {"id": 36, "type": "function_declarator", "text": "rlock(RWlock *q)", "parent": 34, "children": [37, 38], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 16}}, {"id": 37, "type": "identifier", "text": "rlock", "parent": 36, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 5}}, {"id": 38, "type": "parameter_list", "text": "(RWlock *q)", "parent": 36, "children": [39], "start_point": {"row": 11, "column": 5}, "end_point": {"row": 11, "column": 16}}, {"id": 39, "type": "parameter_declaration", "text": "RWlock *q", "parent": 38, "children": [40, 41], "start_point": {"row": 11, "column": 6}, "end_point": {"row": 11, "column": 15}}, {"id": 40, "type": "type_identifier", "text": "RWlock", "parent": 39, "children": [], "start_point": {"row": 11, "column": 6}, "end_point": {"row": 11, "column": 12}}, {"id": 41, "type": "pointer_declarator", "text": "*q", "parent": 39, "children": [42, 43], "start_point": {"row": 11, "column": 13}, "end_point": {"row": 11, "column": 15}}, {"id": 42, "type": "*", "text": "*", "parent": 41, "children": [], "start_point": {"row": 11, "column": 13}, "end_point": {"row": 11, "column": 14}}, {"id": 43, "type": "identifier", "text": "q", "parent": 41, "children": [], "start_point": {"row": 11, "column": 14}, "end_point": {"row": 11, "column": 15}}, {"id": 44, "type": "declaration", "text": "Thread *t;", "parent": 34, "children": [45, 46], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 11}}, {"id": 45, "type": "type_identifier", "text": "Thread", "parent": 44, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 7}}, {"id": 46, "type": "pointer_declarator", "text": "*t", "parent": 44, "children": [47, 48], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 10}}, {"id": 47, "type": "*", "text": "*", "parent": 46, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 9}}, {"id": 48, "type": "identifier", "text": "t", "parent": 46, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 10}}, {"id": 49, "type": "for_statement", "text": "for(;;) {\n\t\tlock(&q->lk);\n\n\t\tif(q->hold == 0)\n\t\t\tbreak;\r\n\t\tq->nwait++;\n\t\tpm_queue(q);\n\t\tunlock(&q->lk);\n\t\tpm_tsleep();\n\t}", "parent": 34, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 24, "column": 2}}, {"id": 50, "type": "call_expression", "text": "lock(&q->lk)", "parent": 49, "children": [51, 52], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 14}}, {"id": 51, "type": "identifier", "text": "lock", "parent": 50, "children": [], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 6}}, {"id": 52, "type": "argument_list", "text": "(&q->lk)", "parent": 50, "children": [53], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 14}}, {"id": 53, "type": "pointer_expression", "text": "&q->lk", "parent": 52, "children": [54], "start_point": {"row": 16, "column": 7}, "end_point": {"row": 16, "column": 13}}, {"id": 54, "type": "field_expression", "text": "q->lk", "parent": 53, "children": [55, 56], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 13}}, {"id": 55, "type": "identifier", "text": "q", "parent": 54, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 9}}, {"id": 56, "type": "field_identifier", "text": "lk", "parent": 54, "children": [], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 13}}, {"id": 57, "type": "if_statement", "text": "if(q->hold == 0)\n\t\t\tbreak;", "parent": 49, "children": [58, 65], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 19, "column": 9}}, {"id": 58, "type": "parenthesized_expression", "text": "(q->hold == 0)", "parent": 57, "children": [59], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 18}}, {"id": 59, "type": "binary_expression", "text": "q->hold == 0", "parent": 58, "children": [60, 63, 64], "start_point": {"row": 18, "column": 5}, "end_point": {"row": 18, "column": 17}}, {"id": 60, "type": "field_expression", "text": "q->hold", "parent": 59, "children": [61, 62], "start_point": {"row": 18, "column": 5}, "end_point": {"row": 18, "column": 12}}, {"id": 61, "type": "identifier", "text": "q", "parent": 60, "children": [], "start_point": {"row": 18, "column": 5}, "end_point": {"row": 18, "column": 6}}, {"id": 62, "type": "field_identifier", "text": "hold", "parent": 60, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 12}}, {"id": 63, "type": "==", "text": "==", "parent": 59, "children": [], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 15}}, {"id": 64, "type": "number_literal", "text": "0", "parent": 59, "children": [], "start_point": {"row": 18, "column": 16}, "end_point": {"row": 18, "column": 17}}, {"id": 65, "type": "break_statement", "text": "break;", "parent": 57, "children": [66], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 9}}, {"id": 66, "type": "break", "text": "break", "parent": 65, "children": [], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 8}}, {"id": 67, "type": "update_expression", "text": "q->nwait++", "parent": 49, "children": [68, 71], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 12}}, {"id": 68, "type": "field_expression", "text": "q->nwait", "parent": 67, "children": [69, 70], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 10}}, {"id": 69, "type": "identifier", "text": "q", "parent": 68, "children": [], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 3}}, {"id": 70, "type": "field_identifier", "text": "nwait", "parent": 68, "children": [], "start_point": {"row": 20, "column": 5}, "end_point": {"row": 20, "column": 10}}, {"id": 71, "type": "++", "text": "++", "parent": 67, "children": [], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 12}}, {"id": 72, "type": "call_expression", "text": "pm_queue(q)", "parent": 49, "children": [73, 74], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 13}}, {"id": 73, "type": "identifier", "text": "pm_queue", "parent": 72, "children": [], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 10}}, {"id": 74, "type": "argument_list", "text": "(q)", "parent": 72, "children": [75], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 13}}, {"id": 75, "type": "identifier", "text": "q", "parent": 74, "children": [], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 12}}, {"id": 76, "type": "call_expression", "text": "unlock(&q->lk)", "parent": 49, "children": [77, 78], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 16}}, {"id": 77, "type": "identifier", "text": "unlock", "parent": 76, "children": [], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 8}}, {"id": 78, "type": "argument_list", "text": "(&q->lk)", "parent": 76, "children": [79], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 16}}, {"id": 79, "type": "pointer_expression", "text": "&q->lk", "parent": 78, "children": [80], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 15}}, {"id": 80, "type": "field_expression", "text": "q->lk", "parent": 79, "children": [81, 82], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 15}}, {"id": 81, "type": "identifier", "text": "q", "parent": 80, "children": [], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 11}}, {"id": 82, "type": "field_identifier", "text": "lk", "parent": 80, "children": [], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 15}}, {"id": 83, "type": "call_expression", "text": "pm_tsleep()", "parent": 49, "children": [84, 85], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 13}}, {"id": 84, "type": "identifier", "text": "pm_tsleep", "parent": 83, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 11}}, {"id": 85, "type": "argument_list", "text": "()", "parent": 83, "children": [], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 13}}, {"id": 86, "type": "update_expression", "text": "q->readers++", "parent": 34, "children": [87, 90], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 13}}, {"id": 87, "type": "field_expression", "text": "q->readers", "parent": 86, "children": [88, 89], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 11}}, {"id": 88, "type": "identifier", "text": "q", "parent": 87, "children": [], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 2}}, {"id": 89, "type": "field_identifier", "text": "readers", "parent": 87, "children": [], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 11}}, {"id": 90, "type": "++", "text": "++", "parent": 86, "children": [], "start_point": {"row": 26, "column": 11}, "end_point": {"row": 26, "column": 13}}, {"id": 91, "type": "call_expression", "text": "addrlock(q)", "parent": 34, "children": [92, 93], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 12}}, {"id": 92, "type": "identifier", "text": "addrlock", "parent": 91, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 9}}, {"id": 93, "type": "argument_list", "text": "(q)", "parent": 91, "children": [94], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 12}}, {"id": 94, "type": "identifier", "text": "q", "parent": 93, "children": [], "start_point": {"row": 27, "column": 10}, "end_point": {"row": 27, "column": 11}}, {"id": 95, "type": "if_statement", "text": "if(q->nwait == 0) {\r\n\t\tunlock(&q->lk);\r\n\t\treturn;\r\n\t}", "parent": 34, "children": [96], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 31, "column": 2}}, {"id": 96, "type": "parenthesized_expression", "text": "(q->nwait == 0)", "parent": 95, "children": [97], "start_point": {"row": 28, "column": 3}, "end_point": {"row": 28, "column": 18}}, {"id": 97, "type": "binary_expression", "text": "q->nwait == 0", "parent": 96, "children": [98, 101, 102], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 17}}, {"id": 98, "type": "field_expression", "text": "q->nwait", "parent": 97, "children": [99, 100], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 12}}, {"id": 99, "type": "identifier", "text": "q", "parent": 98, "children": [], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 5}}, {"id": 100, "type": "field_identifier", "text": "nwait", "parent": 98, "children": [], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 12}}, {"id": 101, "type": "==", "text": "==", "parent": 97, "children": [], "start_point": {"row": 28, "column": 13}, "end_point": {"row": 28, "column": 15}}, {"id": 102, "type": "number_literal", "text": "0", "parent": 97, "children": [], "start_point": {"row": 28, "column": 16}, "end_point": {"row": 28, "column": 17}}, {"id": 103, "type": "call_expression", "text": "unlock(&q->lk)", "parent": 95, "children": [104, 105], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 16}}, {"id": 104, "type": "identifier", "text": "unlock", "parent": 103, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 8}}, {"id": 105, "type": "argument_list", "text": "(&q->lk)", "parent": 103, "children": [106], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 16}}, {"id": 106, "type": "pointer_expression", "text": "&q->lk", "parent": 105, "children": [107], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 15}}, {"id": 107, "type": "field_expression", "text": "q->lk", "parent": 106, "children": [108, 109], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 15}}, {"id": 108, "type": "identifier", "text": "q", "parent": 107, "children": [], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 11}}, {"id": 109, "type": "field_identifier", "text": "lk", "parent": 107, "children": [], "start_point": {"row": 29, "column": 13}, "end_point": {"row": 29, "column": 15}}, {"id": 110, "type": "return_statement", "text": "return;", "parent": 95, "children": [], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 9}}, {"id": 111, "type": "update_expression", "text": "q->nwait--", "parent": 34, "children": [112, 115], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 11}}, {"id": 112, "type": "field_expression", "text": "q->nwait", "parent": 111, "children": [113, 114], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 9}}, {"id": 113, "type": "identifier", "text": "q", "parent": 112, "children": [], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 2}}, {"id": 114, "type": "field_identifier", "text": "nwait", "parent": 112, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 9}}, {"id": 115, "type": "--", "text": "--", "parent": 111, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 11}}, {"id": 116, "type": "assignment_expression", "text": "t = pm_dequeue(q)", "parent": 34, "children": [117, 118, 119], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 18}}, {"id": 117, "type": "identifier", "text": "t", "parent": 116, "children": [], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 2}}, {"id": 118, "type": "=", "text": "=", "parent": 116, "children": [], "start_point": {"row": 34, "column": 3}, "end_point": {"row": 34, "column": 4}}, {"id": 119, "type": "call_expression", "text": "pm_dequeue(q)", "parent": 116, "children": [120, 121], "start_point": {"row": 34, "column": 5}, "end_point": {"row": 34, "column": 18}}, {"id": 120, "type": "identifier", "text": "pm_dequeue", "parent": 119, "children": [], "start_point": {"row": 34, "column": 5}, "end_point": {"row": 34, "column": 15}}, {"id": 121, "type": "argument_list", "text": "(q)", "parent": 119, "children": [122], "start_point": {"row": 34, "column": 15}, "end_point": {"row": 34, "column": 18}}, {"id": 122, "type": "identifier", "text": "q", "parent": 121, "children": [], "start_point": {"row": 34, "column": 16}, "end_point": {"row": 34, "column": 17}}, {"id": 123, "type": "call_expression", "text": "unlock(&q->lk)", "parent": 34, "children": [124, 125], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 15}}, {"id": 124, "type": "identifier", "text": "unlock", "parent": 123, "children": [], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 7}}, {"id": 125, "type": "argument_list", "text": "(&q->lk)", "parent": 123, "children": [126], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 15}}, {"id": 126, "type": "pointer_expression", "text": "&q->lk", "parent": 125, "children": [127], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 14}}, {"id": 127, "type": "field_expression", "text": "q->lk", "parent": 126, "children": [128, 129], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 14}}, {"id": 128, "type": "identifier", "text": "q", "parent": 127, "children": [], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 10}}, {"id": 129, "type": "field_identifier", "text": "lk", "parent": 127, "children": [], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 14}}, {"id": 130, "type": "call_expression", "text": "pm_twakeup(t)", "parent": 34, "children": [131, 132], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 14}}, {"id": 131, "type": "identifier", "text": "pm_twakeup", "parent": 130, "children": [], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 11}}, {"id": 132, "type": "argument_list", "text": "(t)", "parent": 130, "children": [133], "start_point": {"row": 37, "column": 11}, "end_point": {"row": 37, "column": 14}}, {"id": 133, "type": "identifier", "text": "t", "parent": 132, "children": [], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 13}}, {"id": 134, "type": "function_definition", "text": "int\ncanrlock(RWlock *q)\n{\n\tlock(&q->lk);\n\tif(q->hold == 0) {\n\t\tq->readers++;\n\t\taddrlock(q);\n\t\tunlock(&q->lk);\n\t\treturn 1;\n\t}\n\tunlock(&q->lk);\n\treturn 0;\n}", "parent": null, "children": [135, 136], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 52, "column": 1}}, {"id": 135, "type": "primitive_type", "text": "int", "parent": 134, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 3}}, {"id": 136, "type": "function_declarator", "text": "canrlock(RWlock *q)", "parent": 134, "children": [137, 138], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 19}}, {"id": 137, "type": "identifier", "text": "canrlock", "parent": 136, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 8}}, {"id": 138, "type": "parameter_list", "text": "(RWlock *q)", "parent": 136, "children": [139], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 19}}, {"id": 139, "type": "parameter_declaration", "text": "RWlock *q", "parent": 138, "children": [140, 141], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 18}}, {"id": 140, "type": "type_identifier", "text": "RWlock", "parent": 139, "children": [], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 15}}, {"id": 141, "type": "pointer_declarator", "text": "*q", "parent": 139, "children": [142, 143], "start_point": {"row": 41, "column": 16}, "end_point": {"row": 41, "column": 18}}, {"id": 142, "type": "*", "text": "*", "parent": 141, "children": [], "start_point": {"row": 41, "column": 16}, "end_point": {"row": 41, "column": 17}}, {"id": 143, "type": "identifier", "text": "q", "parent": 141, "children": [], "start_point": {"row": 41, "column": 17}, "end_point": {"row": 41, "column": 18}}, {"id": 144, "type": "call_expression", "text": "lock(&q->lk)", "parent": 134, "children": [145, 146], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 13}}, {"id": 145, "type": "identifier", "text": "lock", "parent": 144, "children": [], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 5}}, {"id": 146, "type": "argument_list", "text": "(&q->lk)", "parent": 144, "children": [147], "start_point": {"row": 43, "column": 5}, "end_point": {"row": 43, "column": 13}}, {"id": 147, "type": "pointer_expression", "text": "&q->lk", "parent": 146, "children": [148], "start_point": {"row": 43, "column": 6}, "end_point": {"row": 43, "column": 12}}, {"id": 148, "type": "field_expression", "text": "q->lk", "parent": 147, "children": [149, 150], "start_point": {"row": 43, "column": 7}, "end_point": {"row": 43, "column": 12}}, {"id": 149, "type": "identifier", "text": "q", "parent": 148, "children": [], "start_point": {"row": 43, "column": 7}, "end_point": {"row": 43, "column": 8}}, {"id": 150, "type": "field_identifier", "text": "lk", "parent": 148, "children": [], "start_point": {"row": 43, "column": 10}, "end_point": {"row": 43, "column": 12}}, {"id": 151, "type": "if_statement", "text": "if(q->hold == 0) {\n\t\tq->readers++;\n\t\taddrlock(q);\n\t\tunlock(&q->lk);\n\t\treturn 1;\n\t}", "parent": 134, "children": [152], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 49, "column": 2}}, {"id": 152, "type": "parenthesized_expression", "text": "(q->hold == 0)", "parent": 151, "children": [153], "start_point": {"row": 44, "column": 3}, "end_point": {"row": 44, "column": 17}}, {"id": 153, "type": "binary_expression", "text": "q->hold == 0", "parent": 152, "children": [154, 157, 158], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 16}}, {"id": 154, "type": "field_expression", "text": "q->hold", "parent": 153, "children": [155, 156], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 11}}, {"id": 155, "type": "identifier", "text": "q", "parent": 154, "children": [], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 5}}, {"id": 156, "type": "field_identifier", "text": "hold", "parent": 154, "children": [], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 11}}, {"id": 157, "type": "==", "text": "==", "parent": 153, "children": [], "start_point": {"row": 44, "column": 12}, "end_point": {"row": 44, "column": 14}}, {"id": 158, "type": "number_literal", "text": "0", "parent": 153, "children": [], "start_point": {"row": 44, "column": 15}, "end_point": {"row": 44, "column": 16}}, {"id": 159, "type": "update_expression", "text": "q->readers++", "parent": 151, "children": [160, 163], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 14}}, {"id": 160, "type": "field_expression", "text": "q->readers", "parent": 159, "children": [161, 162], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 12}}, {"id": 161, "type": "identifier", "text": "q", "parent": 160, "children": [], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 3}}, {"id": 162, "type": "field_identifier", "text": "readers", "parent": 160, "children": [], "start_point": {"row": 45, "column": 5}, "end_point": {"row": 45, "column": 12}}, {"id": 163, "type": "++", "text": "++", "parent": 159, "children": [], "start_point": {"row": 45, "column": 12}, "end_point": {"row": 45, "column": 14}}, {"id": 164, "type": "call_expression", "text": "addrlock(q)", "parent": 151, "children": [165, 166], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 13}}, {"id": 165, "type": "identifier", "text": "addrlock", "parent": 164, "children": [], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 10}}, {"id": 166, "type": "argument_list", "text": "(q)", "parent": 164, "children": [167], "start_point": {"row": 46, "column": 10}, "end_point": {"row": 46, "column": 13}}, {"id": 167, "type": "identifier", "text": "q", "parent": 166, "children": [], "start_point": {"row": 46, "column": 11}, "end_point": {"row": 46, "column": 12}}, {"id": 168, "type": "call_expression", "text": "unlock(&q->lk)", "parent": 151, "children": [169, 170], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 16}}, {"id": 169, "type": "identifier", "text": "unlock", "parent": 168, "children": [], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 8}}, {"id": 170, "type": "argument_list", "text": "(&q->lk)", "parent": 168, "children": [171], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 16}}, {"id": 171, "type": "pointer_expression", "text": "&q->lk", "parent": 170, "children": [172], "start_point": {"row": 47, "column": 9}, "end_point": {"row": 47, "column": 15}}, {"id": 172, "type": "field_expression", "text": "q->lk", "parent": 171, "children": [173, 174], "start_point": {"row": 47, "column": 10}, "end_point": {"row": 47, "column": 15}}, {"id": 173, "type": "identifier", "text": "q", "parent": 172, "children": [], "start_point": {"row": 47, "column": 10}, "end_point": {"row": 47, "column": 11}}, {"id": 174, "type": "field_identifier", "text": "lk", "parent": 172, "children": [], "start_point": {"row": 47, "column": 13}, "end_point": {"row": 47, "column": 15}}, {"id": 175, "type": "return_statement", "text": "return 1;", "parent": 151, "children": [176], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 11}}, {"id": 176, "type": "number_literal", "text": "1", "parent": 175, "children": [], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 10}}, {"id": 177, "type": "call_expression", "text": "unlock(&q->lk)", "parent": 134, "children": [178, 179], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 15}}, {"id": 178, "type": "identifier", "text": "unlock", "parent": 177, "children": [], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 7}}, {"id": 179, "type": "argument_list", "text": "(&q->lk)", "parent": 177, "children": [180], "start_point": {"row": 50, "column": 7}, "end_point": {"row": 50, "column": 15}}, {"id": 180, "type": "pointer_expression", "text": "&q->lk", "parent": 179, "children": [181], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 14}}, {"id": 181, "type": "field_expression", "text": "q->lk", "parent": 180, "children": [182, 183], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 14}}, {"id": 182, "type": "identifier", "text": "q", "parent": 181, "children": [], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 10}}, {"id": 183, "type": "field_identifier", "text": "lk", "parent": 181, "children": [], "start_point": {"row": 50, "column": 12}, "end_point": {"row": 50, "column": 14}}, {"id": 184, "type": "return_statement", "text": "return 0;", "parent": 134, "children": [185], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 10}}, {"id": 185, "type": "number_literal", "text": "0", "parent": 184, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 9}}, {"id": 186, "type": "function_definition", "text": "void\nrunlock(RWlock *q)\n{\n\tint n;\n\n\tlock(&q->lk);\n\n\tq->readers--;\n\tsubrlock(q);\n\n\tn = q->readers;\n\tassert(n >= 0);\n\n\tif(n == 0 && q->hold) {\n\t\tunlock(&q->lk);\n\t\tpm_twakeup(q->hold);\n\t\treturn;\n\t}\n\n\tunlock(&q->lk);\n}", "parent": null, "children": [187, 188], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 74, "column": 1}}, {"id": 187, "type": "primitive_type", "text": "void", "parent": 186, "children": [], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 4}}, {"id": 188, "type": "function_declarator", "text": "runlock(RWlock *q)", "parent": 186, "children": [189, 190], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 18}}, {"id": 189, "type": "identifier", "text": "runlock", "parent": 188, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 7}}, {"id": 190, "type": "parameter_list", "text": "(RWlock *q)", "parent": 188, "children": [191], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 55, "column": 18}}, {"id": 191, "type": "parameter_declaration", "text": "RWlock *q", "parent": 190, "children": [192, 193], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 17}}, {"id": 192, "type": "type_identifier", "text": "RWlock", "parent": 191, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 14}}, {"id": 193, "type": "pointer_declarator", "text": "*q", "parent": 191, "children": [194, 195], "start_point": {"row": 55, "column": 15}, "end_point": {"row": 55, "column": 17}}, {"id": 194, "type": "*", "text": "*", "parent": 193, "children": [], "start_point": {"row": 55, "column": 15}, "end_point": {"row": 55, "column": 16}}, {"id": 195, "type": "identifier", "text": "q", "parent": 193, "children": [], "start_point": {"row": 55, "column": 16}, "end_point": {"row": 55, "column": 17}}, {"id": 196, "type": "declaration", "text": "int n;", "parent": 186, "children": [197, 198], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 7}}, {"id": 197, "type": "primitive_type", "text": "int", "parent": 196, "children": [], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 4}}, {"id": 198, "type": "identifier", "text": "n", "parent": 196, "children": [], "start_point": {"row": 57, "column": 5}, "end_point": {"row": 57, "column": 6}}, {"id": 199, "type": "call_expression", "text": "lock(&q->lk)", "parent": 186, "children": [200, 201], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 13}}, {"id": 200, "type": "identifier", "text": "lock", "parent": 199, "children": [], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 5}}, {"id": 201, "type": "argument_list", "text": "(&q->lk)", "parent": 199, "children": [202], "start_point": {"row": 59, "column": 5}, "end_point": {"row": 59, "column": 13}}, {"id": 202, "type": "pointer_expression", "text": "&q->lk", "parent": 201, "children": [203], "start_point": {"row": 59, "column": 6}, "end_point": {"row": 59, "column": 12}}, {"id": 203, "type": "field_expression", "text": "q->lk", "parent": 202, "children": [204, 205], "start_point": {"row": 59, "column": 7}, "end_point": {"row": 59, "column": 12}}, {"id": 204, "type": "identifier", "text": "q", "parent": 203, "children": [], "start_point": {"row": 59, "column": 7}, "end_point": {"row": 59, "column": 8}}, {"id": 205, "type": "field_identifier", "text": "lk", "parent": 203, "children": [], "start_point": {"row": 59, "column": 10}, "end_point": {"row": 59, "column": 12}}, {"id": 206, "type": "update_expression", "text": "q->readers--", "parent": 186, "children": [207, 210], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 13}}, {"id": 207, "type": "field_expression", "text": "q->readers", "parent": 206, "children": [208, 209], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 11}}, {"id": 208, "type": "identifier", "text": "q", "parent": 207, "children": [], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 2}}, {"id": 209, "type": "field_identifier", "text": "readers", "parent": 207, "children": [], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 11}}, {"id": 210, "type": "--", "text": "--", "parent": 206, "children": [], "start_point": {"row": 61, "column": 11}, "end_point": {"row": 61, "column": 13}}, {"id": 211, "type": "call_expression", "text": "subrlock(q)", "parent": 186, "children": [212, 213], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 12}}, {"id": 212, "type": "identifier", "text": "subrlock", "parent": 211, "children": [], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 9}}, {"id": 213, "type": "argument_list", "text": "(q)", "parent": 211, "children": [214], "start_point": {"row": 62, "column": 9}, "end_point": {"row": 62, "column": 12}}, {"id": 214, "type": "identifier", "text": "q", "parent": 213, "children": [], "start_point": {"row": 62, "column": 10}, "end_point": {"row": 62, "column": 11}}, {"id": 215, "type": "assignment_expression", "text": "n = q->readers", "parent": 186, "children": [216, 217, 218], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 15}}, {"id": 216, "type": "identifier", "text": "n", "parent": 215, "children": [], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 2}}, {"id": 217, "type": "=", "text": "=", "parent": 215, "children": [], "start_point": {"row": 64, "column": 3}, "end_point": {"row": 64, "column": 4}}, {"id": 218, "type": "field_expression", "text": "q->readers", "parent": 215, "children": [219, 220], "start_point": {"row": 64, "column": 5}, "end_point": {"row": 64, "column": 15}}, {"id": 219, "type": "identifier", "text": "q", "parent": 218, "children": [], "start_point": {"row": 64, "column": 5}, "end_point": {"row": 64, "column": 6}}, {"id": 220, "type": "field_identifier", "text": "readers", "parent": 218, "children": [], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 15}}, {"id": 221, "type": "call_expression", "text": "assert(n >= 0)", "parent": 186, "children": [222, 223], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 15}}, {"id": 222, "type": "identifier", "text": "assert", "parent": 221, "children": [], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 7}}, {"id": 223, "type": "argument_list", "text": "(n >= 0)", "parent": 221, "children": [224], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 65, "column": 15}}, {"id": 224, "type": "binary_expression", "text": "n >= 0", "parent": 223, "children": [225, 226, 227], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 14}}, {"id": 225, "type": "identifier", "text": "n", "parent": 224, "children": [], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 9}}, {"id": 226, "type": ">=", "text": ">=", "parent": 224, "children": [], "start_point": {"row": 65, "column": 10}, "end_point": {"row": 65, "column": 12}}, {"id": 227, "type": "number_literal", "text": "0", "parent": 224, "children": [], "start_point": {"row": 65, "column": 13}, "end_point": {"row": 65, "column": 14}}, {"id": 228, "type": "if_statement", "text": "if(n == 0 && q->hold) {\n\t\tunlock(&q->lk);\n\t\tpm_twakeup(q->hold);\n\t\treturn;\n\t}", "parent": 186, "children": [229], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 71, "column": 2}}, {"id": 229, "type": "parenthesized_expression", "text": "(n == 0 && q->hold)", "parent": 228, "children": [230], "start_point": {"row": 67, "column": 3}, "end_point": {"row": 67, "column": 22}}, {"id": 230, "type": "binary_expression", "text": "n == 0 && q->hold", "parent": 229, "children": [231, 235, 236], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 21}}, {"id": 231, "type": "binary_expression", "text": "n == 0", "parent": 230, "children": [232, 233, 234], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 10}}, {"id": 232, "type": "identifier", "text": "n", "parent": 231, "children": [], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 5}}, {"id": 233, "type": "==", "text": "==", "parent": 231, "children": [], "start_point": {"row": 67, "column": 6}, "end_point": {"row": 67, "column": 8}}, {"id": 234, "type": "number_literal", "text": "0", "parent": 231, "children": [], "start_point": {"row": 67, "column": 9}, "end_point": {"row": 67, "column": 10}}, {"id": 235, "type": "&&", "text": "&&", "parent": 230, "children": [], "start_point": {"row": 67, "column": 11}, "end_point": {"row": 67, "column": 13}}, {"id": 236, "type": "field_expression", "text": "q->hold", "parent": 230, "children": [237, 238], "start_point": {"row": 67, "column": 14}, "end_point": {"row": 67, "column": 21}}, {"id": 237, "type": "identifier", "text": "q", "parent": 236, "children": [], "start_point": {"row": 67, "column": 14}, "end_point": {"row": 67, "column": 15}}, {"id": 238, "type": "field_identifier", "text": "hold", "parent": 236, "children": [], "start_point": {"row": 67, "column": 17}, "end_point": {"row": 67, "column": 21}}, {"id": 239, "type": "call_expression", "text": "unlock(&q->lk)", "parent": 228, "children": [240, 241], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 16}}, {"id": 240, "type": "identifier", "text": "unlock", "parent": 239, "children": [], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 8}}, {"id": 241, "type": "argument_list", "text": "(&q->lk)", "parent": 239, "children": [242], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 16}}, {"id": 242, "type": "pointer_expression", "text": "&q->lk", "parent": 241, "children": [243], "start_point": {"row": 68, "column": 9}, "end_point": {"row": 68, "column": 15}}, {"id": 243, "type": "field_expression", "text": "q->lk", "parent": 242, "children": [244, 245], "start_point": {"row": 68, "column": 10}, "end_point": {"row": 68, "column": 15}}, {"id": 244, "type": "identifier", "text": "q", "parent": 243, "children": [], "start_point": {"row": 68, "column": 10}, "end_point": {"row": 68, "column": 11}}, {"id": 245, "type": "field_identifier", "text": "lk", "parent": 243, "children": [], "start_point": {"row": 68, "column": 13}, "end_point": {"row": 68, "column": 15}}, {"id": 246, "type": "call_expression", "text": "pm_twakeup(q->hold)", "parent": 228, "children": [247, 248], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 21}}, {"id": 247, "type": "identifier", "text": "pm_twakeup", "parent": 246, "children": [], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 12}}, {"id": 248, "type": "argument_list", "text": "(q->hold)", "parent": 246, "children": [249], "start_point": {"row": 69, "column": 12}, "end_point": {"row": 69, "column": 21}}, {"id": 249, "type": "field_expression", "text": "q->hold", "parent": 248, "children": [250, 251], "start_point": {"row": 69, "column": 13}, "end_point": {"row": 69, "column": 20}}, {"id": 250, "type": "identifier", "text": "q", "parent": 249, "children": [], "start_point": {"row": 69, "column": 13}, "end_point": {"row": 69, "column": 14}}, {"id": 251, "type": "field_identifier", "text": "hold", "parent": 249, "children": [], "start_point": {"row": 69, "column": 16}, "end_point": {"row": 69, "column": 20}}, {"id": 252, "type": "return_statement", "text": "return;", "parent": 228, "children": [], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 9}}, {"id": 253, "type": "call_expression", "text": "unlock(&q->lk)", "parent": 186, "children": [254, 255], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 15}}, {"id": 254, "type": "identifier", "text": "unlock", "parent": 253, "children": [], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 7}}, {"id": 255, "type": "argument_list", "text": "(&q->lk)", "parent": 253, "children": [256], "start_point": {"row": 73, "column": 7}, "end_point": {"row": 73, "column": 15}}, {"id": 256, "type": "pointer_expression", "text": "&q->lk", "parent": 255, "children": [257], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 14}}, {"id": 257, "type": "field_expression", "text": "q->lk", "parent": 256, "children": [258, 259], "start_point": {"row": 73, "column": 9}, "end_point": {"row": 73, "column": 14}}, {"id": 258, "type": "identifier", "text": "q", "parent": 257, "children": [], "start_point": {"row": 73, "column": 9}, "end_point": {"row": 73, "column": 10}}, {"id": 259, "type": "field_identifier", "text": "lk", "parent": 257, "children": [], "start_point": {"row": 73, "column": 12}, "end_point": {"row": 73, "column": 14}}, {"id": 260, "type": "function_definition", "text": "void\nwlock(RWlock *q)\n{\n\tfor(;;) {\n\t\tlock(&q->lk);\n\n\t\tif(q->hold == 0)\n\t\t\tbreak;\r\n\t\tq->nwait++;\n\t\tpm_queue(q);\n\t\tunlock(&q->lk);\n\t\tpm_tsleep();\n\t}\n\n\tq->hold = CT;\n\n\tif(q->readers) {\n\t\tunlock(&q->lk);\n\t\tpm_tsleep();\n\t\treturn;\n\t}\n\n\tunlock(&q->lk);\n}", "parent": null, "children": [261, 262], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 99, "column": 1}}, {"id": 261, "type": "primitive_type", "text": "void", "parent": 260, "children": [], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 76, "column": 4}}, {"id": 262, "type": "function_declarator", "text": "wlock(RWlock *q)", "parent": 260, "children": [263, 264], "start_point": {"row": 77, "column": 0}, "end_point": {"row": 77, "column": 16}}, {"id": 263, "type": "identifier", "text": "wlock", "parent": 262, "children": [], "start_point": {"row": 77, "column": 0}, "end_point": {"row": 77, "column": 5}}, {"id": 264, "type": "parameter_list", "text": "(RWlock *q)", "parent": 262, "children": [265], "start_point": {"row": 77, "column": 5}, "end_point": {"row": 77, "column": 16}}, {"id": 265, "type": "parameter_declaration", "text": "RWlock *q", "parent": 264, "children": [266, 267], "start_point": {"row": 77, "column": 6}, "end_point": {"row": 77, "column": 15}}, {"id": 266, "type": "type_identifier", "text": "RWlock", "parent": 265, "children": [], "start_point": {"row": 77, "column": 6}, "end_point": {"row": 77, "column": 12}}, {"id": 267, "type": "pointer_declarator", "text": "*q", "parent": 265, "children": [268, 269], "start_point": {"row": 77, "column": 13}, "end_point": {"row": 77, "column": 15}}, {"id": 268, "type": "*", "text": "*", "parent": 267, "children": [], "start_point": {"row": 77, "column": 13}, "end_point": {"row": 77, "column": 14}}, {"id": 269, "type": "identifier", "text": "q", "parent": 267, "children": [], "start_point": {"row": 77, "column": 14}, "end_point": {"row": 77, "column": 15}}, {"id": 270, "type": "for_statement", "text": "for(;;) {\n\t\tlock(&q->lk);\n\n\t\tif(q->hold == 0)\n\t\t\tbreak;\r\n\t\tq->nwait++;\n\t\tpm_queue(q);\n\t\tunlock(&q->lk);\n\t\tpm_tsleep();\n\t}", "parent": 260, "children": [], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 88, "column": 2}}, {"id": 271, "type": "call_expression", "text": "lock(&q->lk)", "parent": 270, "children": [272, 273], "start_point": {"row": 80, "column": 2}, "end_point": {"row": 80, "column": 14}}, {"id": 272, "type": "identifier", "text": "lock", "parent": 271, "children": [], "start_point": {"row": 80, "column": 2}, "end_point": {"row": 80, "column": 6}}, {"id": 273, "type": "argument_list", "text": "(&q->lk)", "parent": 271, "children": [274], "start_point": {"row": 80, "column": 6}, "end_point": {"row": 80, "column": 14}}, {"id": 274, "type": "pointer_expression", "text": "&q->lk", "parent": 273, "children": [275], "start_point": {"row": 80, "column": 7}, "end_point": {"row": 80, "column": 13}}, {"id": 275, "type": "field_expression", "text": "q->lk", "parent": 274, "children": [276, 277], "start_point": {"row": 80, "column": 8}, "end_point": {"row": 80, "column": 13}}, {"id": 276, "type": "identifier", "text": "q", "parent": 275, "children": [], "start_point": {"row": 80, "column": 8}, "end_point": {"row": 80, "column": 9}}, {"id": 277, "type": "field_identifier", "text": "lk", "parent": 275, "children": [], "start_point": {"row": 80, "column": 11}, "end_point": {"row": 80, "column": 13}}, {"id": 278, "type": "if_statement", "text": "if(q->hold == 0)\n\t\t\tbreak;", "parent": 270, "children": [279, 286], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 83, "column": 9}}, {"id": 279, "type": "parenthesized_expression", "text": "(q->hold == 0)", "parent": 278, "children": [280], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 18}}, {"id": 280, "type": "binary_expression", "text": "q->hold == 0", "parent": 279, "children": [281, 284, 285], "start_point": {"row": 82, "column": 5}, "end_point": {"row": 82, "column": 17}}, {"id": 281, "type": "field_expression", "text": "q->hold", "parent": 280, "children": [282, 283], "start_point": {"row": 82, "column": 5}, "end_point": {"row": 82, "column": 12}}, {"id": 282, "type": "identifier", "text": "q", "parent": 281, "children": [], "start_point": {"row": 82, "column": 5}, "end_point": {"row": 82, "column": 6}}, {"id": 283, "type": "field_identifier", "text": "hold", "parent": 281, "children": [], "start_point": {"row": 82, "column": 8}, "end_point": {"row": 82, "column": 12}}, {"id": 284, "type": "==", "text": "==", "parent": 280, "children": [], "start_point": {"row": 82, "column": 13}, "end_point": {"row": 82, "column": 15}}, {"id": 285, "type": "number_literal", "text": "0", "parent": 280, "children": [], "start_point": {"row": 82, "column": 16}, "end_point": {"row": 82, "column": 17}}, {"id": 286, "type": "break_statement", "text": "break;", "parent": 278, "children": [287], "start_point": {"row": 83, "column": 3}, "end_point": {"row": 83, "column": 9}}, {"id": 287, "type": "break", "text": "break", "parent": 286, "children": [], "start_point": {"row": 83, "column": 3}, "end_point": {"row": 83, "column": 8}}, {"id": 288, "type": "update_expression", "text": "q->nwait++", "parent": 270, "children": [289, 292], "start_point": {"row": 84, "column": 2}, "end_point": {"row": 84, "column": 12}}, {"id": 289, "type": "field_expression", "text": "q->nwait", "parent": 288, "children": [290, 291], "start_point": {"row": 84, "column": 2}, "end_point": {"row": 84, "column": 10}}, {"id": 290, "type": "identifier", "text": "q", "parent": 289, "children": [], "start_point": {"row": 84, "column": 2}, "end_point": {"row": 84, "column": 3}}, {"id": 291, "type": "field_identifier", "text": "nwait", "parent": 289, "children": [], "start_point": {"row": 84, "column": 5}, "end_point": {"row": 84, "column": 10}}, {"id": 292, "type": "++", "text": "++", "parent": 288, "children": [], "start_point": {"row": 84, "column": 10}, "end_point": {"row": 84, "column": 12}}, {"id": 293, "type": "call_expression", "text": "pm_queue(q)", "parent": 270, "children": [294, 295], "start_point": {"row": 85, "column": 2}, "end_point": {"row": 85, "column": 13}}, {"id": 294, "type": "identifier", "text": "pm_queue", "parent": 293, "children": [], "start_point": {"row": 85, "column": 2}, "end_point": {"row": 85, "column": 10}}, {"id": 295, "type": "argument_list", "text": "(q)", "parent": 293, "children": [296], "start_point": {"row": 85, "column": 10}, "end_point": {"row": 85, "column": 13}}, {"id": 296, "type": "identifier", "text": "q", "parent": 295, "children": [], "start_point": {"row": 85, "column": 11}, "end_point": {"row": 85, "column": 12}}, {"id": 297, "type": "call_expression", "text": "unlock(&q->lk)", "parent": 270, "children": [298, 299], "start_point": {"row": 86, "column": 2}, "end_point": {"row": 86, "column": 16}}, {"id": 298, "type": "identifier", "text": "unlock", "parent": 297, "children": [], "start_point": {"row": 86, "column": 2}, "end_point": {"row": 86, "column": 8}}, {"id": 299, "type": "argument_list", "text": "(&q->lk)", "parent": 297, "children": [300], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 16}}, {"id": 300, "type": "pointer_expression", "text": "&q->lk", "parent": 299, "children": [301], "start_point": {"row": 86, "column": 9}, "end_point": {"row": 86, "column": 15}}, {"id": 301, "type": "field_expression", "text": "q->lk", "parent": 300, "children": [302, 303], "start_point": {"row": 86, "column": 10}, "end_point": {"row": 86, "column": 15}}, {"id": 302, "type": "identifier", "text": "q", "parent": 301, "children": [], "start_point": {"row": 86, "column": 10}, "end_point": {"row": 86, "column": 11}}, {"id": 303, "type": "field_identifier", "text": "lk", "parent": 301, "children": [], "start_point": {"row": 86, "column": 13}, "end_point": {"row": 86, "column": 15}}, {"id": 304, "type": "call_expression", "text": "pm_tsleep()", "parent": 270, "children": [305, 306], "start_point": {"row": 87, "column": 2}, "end_point": {"row": 87, "column": 13}}, {"id": 305, "type": "identifier", "text": "pm_tsleep", "parent": 304, "children": [], "start_point": {"row": 87, "column": 2}, "end_point": {"row": 87, "column": 11}}, {"id": 306, "type": "argument_list", "text": "()", "parent": 304, "children": [], "start_point": {"row": 87, "column": 11}, "end_point": {"row": 87, "column": 13}}, {"id": 307, "type": "assignment_expression", "text": "q->hold = CT", "parent": 260, "children": [308, 311, 312], "start_point": {"row": 90, "column": 1}, "end_point": {"row": 90, "column": 13}}, {"id": 308, "type": "field_expression", "text": "q->hold", "parent": 307, "children": [309, 310], "start_point": {"row": 90, "column": 1}, "end_point": {"row": 90, "column": 8}}, {"id": 309, "type": "identifier", "text": "q", "parent": 308, "children": [], "start_point": {"row": 90, "column": 1}, "end_point": {"row": 90, "column": 2}}, {"id": 310, "type": "field_identifier", "text": "hold", "parent": 308, "children": [], "start_point": {"row": 90, "column": 4}, "end_point": {"row": 90, "column": 8}}, {"id": 311, "type": "=", "text": "=", "parent": 307, "children": [], "start_point": {"row": 90, "column": 9}, "end_point": {"row": 90, "column": 10}}, {"id": 312, "type": "identifier", "text": "CT", "parent": 307, "children": [], "start_point": {"row": 90, "column": 11}, "end_point": {"row": 90, "column": 13}}, {"id": 313, "type": "if_statement", "text": "if(q->readers) {\n\t\tunlock(&q->lk);\n\t\tpm_tsleep();\n\t\treturn;\n\t}", "parent": 260, "children": [314], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 96, "column": 2}}, {"id": 314, "type": "parenthesized_expression", "text": "(q->readers)", "parent": 313, "children": [315], "start_point": {"row": 92, "column": 3}, "end_point": {"row": 92, "column": 15}}, {"id": 315, "type": "field_expression", "text": "q->readers", "parent": 314, "children": [316, 317], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 14}}, {"id": 316, "type": "identifier", "text": "q", "parent": 315, "children": [], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 5}}, {"id": 317, "type": "field_identifier", "text": "readers", "parent": 315, "children": [], "start_point": {"row": 92, "column": 7}, "end_point": {"row": 92, "column": 14}}, {"id": 318, "type": "call_expression", "text": "unlock(&q->lk)", "parent": 313, "children": [319, 320], "start_point": {"row": 93, "column": 2}, "end_point": {"row": 93, "column": 16}}, {"id": 319, "type": "identifier", "text": "unlock", "parent": 318, "children": [], "start_point": {"row": 93, "column": 2}, "end_point": {"row": 93, "column": 8}}, {"id": 320, "type": "argument_list", "text": "(&q->lk)", "parent": 318, "children": [321], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 93, "column": 16}}, {"id": 321, "type": "pointer_expression", "text": "&q->lk", "parent": 320, "children": [322], "start_point": {"row": 93, "column": 9}, "end_point": {"row": 93, "column": 15}}, {"id": 322, "type": "field_expression", "text": "q->lk", "parent": 321, "children": [323, 324], "start_point": {"row": 93, "column": 10}, "end_point": {"row": 93, "column": 15}}, {"id": 323, "type": "identifier", "text": "q", "parent": 322, "children": [], "start_point": {"row": 93, "column": 10}, "end_point": {"row": 93, "column": 11}}, {"id": 324, "type": "field_identifier", "text": "lk", "parent": 322, "children": [], "start_point": {"row": 93, "column": 13}, "end_point": {"row": 93, "column": 15}}, {"id": 325, "type": "call_expression", "text": "pm_tsleep()", "parent": 313, "children": [326, 327], "start_point": {"row": 94, "column": 2}, "end_point": {"row": 94, "column": 13}}, {"id": 326, "type": "identifier", "text": "pm_tsleep", "parent": 325, "children": [], "start_point": {"row": 94, "column": 2}, "end_point": {"row": 94, "column": 11}}, {"id": 327, "type": "argument_list", "text": "()", "parent": 325, "children": [], "start_point": {"row": 94, "column": 11}, "end_point": {"row": 94, "column": 13}}, {"id": 328, "type": "return_statement", "text": "return;", "parent": 313, "children": [], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 9}}, {"id": 329, "type": "call_expression", "text": "unlock(&q->lk)", "parent": 260, "children": [330, 331], "start_point": {"row": 98, "column": 1}, "end_point": {"row": 98, "column": 15}}, {"id": 330, "type": "identifier", "text": "unlock", "parent": 329, "children": [], "start_point": {"row": 98, "column": 1}, "end_point": {"row": 98, "column": 7}}, {"id": 331, "type": "argument_list", "text": "(&q->lk)", "parent": 329, "children": [332], "start_point": {"row": 98, "column": 7}, "end_point": {"row": 98, "column": 15}}, {"id": 332, "type": "pointer_expression", "text": "&q->lk", "parent": 331, "children": [333], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 14}}, {"id": 333, "type": "field_expression", "text": "q->lk", "parent": 332, "children": [334, 335], "start_point": {"row": 98, "column": 9}, "end_point": {"row": 98, "column": 14}}, {"id": 334, "type": "identifier", "text": "q", "parent": 333, "children": [], "start_point": {"row": 98, "column": 9}, "end_point": {"row": 98, "column": 10}}, {"id": 335, "type": "field_identifier", "text": "lk", "parent": 333, "children": [], "start_point": {"row": 98, "column": 12}, "end_point": {"row": 98, "column": 14}}, {"id": 336, "type": "function_definition", "text": "int\ncanwlock(RWlock *q)\n{\n\tlock(&q->lk);\n\tif(q->hold == 0 && q->readers == 0) {\n\t\tq->hold = CT;\n\t\tunlock(&q->lk);\n\t\treturn 1;\n\t}\n\tunlock(&q->lk);\n\treturn 0;\n}", "parent": null, "children": [337, 338], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 112, "column": 1}}, {"id": 337, "type": "primitive_type", "text": "int", "parent": 336, "children": [], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 101, "column": 3}}, {"id": 338, "type": "function_declarator", "text": "canwlock(RWlock *q)", "parent": 336, "children": [339, 340], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 102, "column": 19}}, {"id": 339, "type": "identifier", "text": "canwlock", "parent": 338, "children": [], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 102, "column": 8}}, {"id": 340, "type": "parameter_list", "text": "(RWlock *q)", "parent": 338, "children": [341], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 19}}, {"id": 341, "type": "parameter_declaration", "text": "RWlock *q", "parent": 340, "children": [342, 343], "start_point": {"row": 102, "column": 9}, "end_point": {"row": 102, "column": 18}}, {"id": 342, "type": "type_identifier", "text": "RWlock", "parent": 341, "children": [], "start_point": {"row": 102, "column": 9}, "end_point": {"row": 102, "column": 15}}, {"id": 343, "type": "pointer_declarator", "text": "*q", "parent": 341, "children": [344, 345], "start_point": {"row": 102, "column": 16}, "end_point": {"row": 102, "column": 18}}, {"id": 344, "type": "*", "text": "*", "parent": 343, "children": [], "start_point": {"row": 102, "column": 16}, "end_point": {"row": 102, "column": 17}}, {"id": 345, "type": "identifier", "text": "q", "parent": 343, "children": [], "start_point": {"row": 102, "column": 17}, "end_point": {"row": 102, "column": 18}}, {"id": 346, "type": "call_expression", "text": "lock(&q->lk)", "parent": 336, "children": [347, 348], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 13}}, {"id": 347, "type": "identifier", "text": "lock", "parent": 346, "children": [], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 5}}, {"id": 348, "type": "argument_list", "text": "(&q->lk)", "parent": 346, "children": [349], "start_point": {"row": 104, "column": 5}, "end_point": {"row": 104, "column": 13}}, {"id": 349, "type": "pointer_expression", "text": "&q->lk", "parent": 348, "children": [350], "start_point": {"row": 104, "column": 6}, "end_point": {"row": 104, "column": 12}}, {"id": 350, "type": "field_expression", "text": "q->lk", "parent": 349, "children": [351, 352], "start_point": {"row": 104, "column": 7}, "end_point": {"row": 104, "column": 12}}, {"id": 351, "type": "identifier", "text": "q", "parent": 350, "children": [], "start_point": {"row": 104, "column": 7}, "end_point": {"row": 104, "column": 8}}, {"id": 352, "type": "field_identifier", "text": "lk", "parent": 350, "children": [], "start_point": {"row": 104, "column": 10}, "end_point": {"row": 104, "column": 12}}, {"id": 353, "type": "if_statement", "text": "if(q->hold == 0 && q->readers == 0) {\n\t\tq->hold = CT;\n\t\tunlock(&q->lk);\n\t\treturn 1;\n\t}", "parent": 336, "children": [354], "start_point": {"row": 105, "column": 1}, "end_point": {"row": 109, "column": 2}}, {"id": 354, "type": "parenthesized_expression", "text": "(q->hold == 0 && q->readers == 0)", "parent": 353, "children": [355], "start_point": {"row": 105, "column": 3}, "end_point": {"row": 105, "column": 36}}, {"id": 355, "type": "binary_expression", "text": "q->hold == 0 && q->readers == 0", "parent": 354, "children": [356, 362, 363], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 35}}, {"id": 356, "type": "binary_expression", "text": "q->hold == 0", "parent": 355, "children": [357, 360, 361], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 16}}, {"id": 357, "type": "field_expression", "text": "q->hold", "parent": 356, "children": [358, 359], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 11}}, {"id": 358, "type": "identifier", "text": "q", "parent": 357, "children": [], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 5}}, {"id": 359, "type": "field_identifier", "text": "hold", "parent": 357, "children": [], "start_point": {"row": 105, "column": 7}, "end_point": {"row": 105, "column": 11}}, {"id": 360, "type": "==", "text": "==", "parent": 356, "children": [], "start_point": {"row": 105, "column": 12}, "end_point": {"row": 105, "column": 14}}, {"id": 361, "type": "number_literal", "text": "0", "parent": 356, "children": [], "start_point": {"row": 105, "column": 15}, "end_point": {"row": 105, "column": 16}}, {"id": 362, "type": "&&", "text": "&&", "parent": 355, "children": [], "start_point": {"row": 105, "column": 17}, "end_point": {"row": 105, "column": 19}}, {"id": 363, "type": "binary_expression", "text": "q->readers == 0", "parent": 355, "children": [364, 367, 368], "start_point": {"row": 105, "column": 20}, "end_point": {"row": 105, "column": 35}}, {"id": 364, "type": "field_expression", "text": "q->readers", "parent": 363, "children": [365, 366], "start_point": {"row": 105, "column": 20}, "end_point": {"row": 105, "column": 30}}, {"id": 365, "type": "identifier", "text": "q", "parent": 364, "children": [], "start_point": {"row": 105, "column": 20}, "end_point": {"row": 105, "column": 21}}, {"id": 366, "type": "field_identifier", "text": "readers", "parent": 364, "children": [], "start_point": {"row": 105, "column": 23}, "end_point": {"row": 105, "column": 30}}, {"id": 367, "type": "==", "text": "==", "parent": 363, "children": [], "start_point": {"row": 105, "column": 31}, "end_point": {"row": 105, "column": 33}}, {"id": 368, "type": "number_literal", "text": "0", "parent": 363, "children": [], "start_point": {"row": 105, "column": 34}, "end_point": {"row": 105, "column": 35}}, {"id": 369, "type": "assignment_expression", "text": "q->hold = CT", "parent": 353, "children": [370, 373, 374], "start_point": {"row": 106, "column": 2}, "end_point": {"row": 106, "column": 14}}, {"id": 370, "type": "field_expression", "text": "q->hold", "parent": 369, "children": [371, 372], "start_point": {"row": 106, "column": 2}, "end_point": {"row": 106, "column": 9}}, {"id": 371, "type": "identifier", "text": "q", "parent": 370, "children": [], "start_point": {"row": 106, "column": 2}, "end_point": {"row": 106, "column": 3}}, {"id": 372, "type": "field_identifier", "text": "hold", "parent": 370, "children": [], "start_point": {"row": 106, "column": 5}, "end_point": {"row": 106, "column": 9}}, {"id": 373, "type": "=", "text": "=", "parent": 369, "children": [], "start_point": {"row": 106, "column": 10}, "end_point": {"row": 106, "column": 11}}, {"id": 374, "type": "identifier", "text": "CT", "parent": 369, "children": [], "start_point": {"row": 106, "column": 12}, "end_point": {"row": 106, "column": 14}}, {"id": 375, "type": "call_expression", "text": "unlock(&q->lk)", "parent": 353, "children": [376, 377], "start_point": {"row": 107, "column": 2}, "end_point": {"row": 107, "column": 16}}, {"id": 376, "type": "identifier", "text": "unlock", "parent": 375, "children": [], "start_point": {"row": 107, "column": 2}, "end_point": {"row": 107, "column": 8}}, {"id": 377, "type": "argument_list", "text": "(&q->lk)", "parent": 375, "children": [378], "start_point": {"row": 107, "column": 8}, "end_point": {"row": 107, "column": 16}}, {"id": 378, "type": "pointer_expression", "text": "&q->lk", "parent": 377, "children": [379], "start_point": {"row": 107, "column": 9}, "end_point": {"row": 107, "column": 15}}, {"id": 379, "type": "field_expression", "text": "q->lk", "parent": 378, "children": [380, 381], "start_point": {"row": 107, "column": 10}, "end_point": {"row": 107, "column": 15}}, {"id": 380, "type": "identifier", "text": "q", "parent": 379, "children": [], "start_point": {"row": 107, "column": 10}, "end_point": {"row": 107, "column": 11}}, {"id": 381, "type": "field_identifier", "text": "lk", "parent": 379, "children": [], "start_point": {"row": 107, "column": 13}, "end_point": {"row": 107, "column": 15}}, {"id": 382, "type": "return_statement", "text": "return 1;", "parent": 353, "children": [383], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 108, "column": 11}}, {"id": 383, "type": "number_literal", "text": "1", "parent": 382, "children": [], "start_point": {"row": 108, "column": 9}, "end_point": {"row": 108, "column": 10}}, {"id": 384, "type": "call_expression", "text": "unlock(&q->lk)", "parent": 336, "children": [385, 386], "start_point": {"row": 110, "column": 1}, "end_point": {"row": 110, "column": 15}}, {"id": 385, "type": "identifier", "text": "unlock", "parent": 384, "children": [], "start_point": {"row": 110, "column": 1}, "end_point": {"row": 110, "column": 7}}, {"id": 386, "type": "argument_list", "text": "(&q->lk)", "parent": 384, "children": [387], "start_point": {"row": 110, "column": 7}, "end_point": {"row": 110, "column": 15}}, {"id": 387, "type": "pointer_expression", "text": "&q->lk", "parent": 386, "children": [388], "start_point": {"row": 110, "column": 8}, "end_point": {"row": 110, "column": 14}}, {"id": 388, "type": "field_expression", "text": "q->lk", "parent": 387, "children": [389, 390], "start_point": {"row": 110, "column": 9}, "end_point": {"row": 110, "column": 14}}, {"id": 389, "type": "identifier", "text": "q", "parent": 388, "children": [], "start_point": {"row": 110, "column": 9}, "end_point": {"row": 110, "column": 10}}, {"id": 390, "type": "field_identifier", "text": "lk", "parent": 388, "children": [], "start_point": {"row": 110, "column": 12}, "end_point": {"row": 110, "column": 14}}, {"id": 391, "type": "return_statement", "text": "return 0;", "parent": 336, "children": [392], "start_point": {"row": 111, "column": 1}, "end_point": {"row": 111, "column": 10}}, {"id": 392, "type": "number_literal", "text": "0", "parent": 391, "children": [], "start_point": {"row": 111, "column": 8}, "end_point": {"row": 111, "column": 9}}, {"id": 393, "type": "function_definition", "text": "void\nwunlock(RWlock *q)\n{\n\tThread * t;\n\n\tlock(&q->lk);\n\tassert(q->hold == CT);\n\tq->hold = 0;\r\n\tif(q->nwait == 0) {\r\n\t\tunlock(&q->lk);\r\n\t\treturn;\r\n\t}\r\n\tq->nwait--;\n\tt = pm_dequeue(q);\n\tunlock(&q->lk);\n\tpm_twakeup(t);\n}", "parent": null, "children": [394, 395], "start_point": {"row": 114, "column": 0}, "end_point": {"row": 130, "column": 1}}, {"id": 394, "type": "primitive_type", "text": "void", "parent": 393, "children": [], "start_point": {"row": 114, "column": 0}, "end_point": {"row": 114, "column": 4}}, {"id": 395, "type": "function_declarator", "text": "wunlock(RWlock *q)", "parent": 393, "children": [396, 397], "start_point": {"row": 115, "column": 0}, "end_point": {"row": 115, "column": 18}}, {"id": 396, "type": "identifier", "text": "wunlock", "parent": 395, "children": [], "start_point": {"row": 115, "column": 0}, "end_point": {"row": 115, "column": 7}}, {"id": 397, "type": "parameter_list", "text": "(RWlock *q)", "parent": 395, "children": [398], "start_point": {"row": 115, "column": 7}, "end_point": {"row": 115, "column": 18}}, {"id": 398, "type": "parameter_declaration", "text": "RWlock *q", "parent": 397, "children": [399, 400], "start_point": {"row": 115, "column": 8}, "end_point": {"row": 115, "column": 17}}, {"id": 399, "type": "type_identifier", "text": "RWlock", "parent": 398, "children": [], "start_point": {"row": 115, "column": 8}, "end_point": {"row": 115, "column": 14}}, {"id": 400, "type": "pointer_declarator", "text": "*q", "parent": 398, "children": [401, 402], "start_point": {"row": 115, "column": 15}, "end_point": {"row": 115, "column": 17}}, {"id": 401, "type": "*", "text": "*", "parent": 400, "children": [], "start_point": {"row": 115, "column": 15}, "end_point": {"row": 115, "column": 16}}, {"id": 402, "type": "identifier", "text": "q", "parent": 400, "children": [], "start_point": {"row": 115, "column": 16}, "end_point": {"row": 115, "column": 17}}, {"id": 403, "type": "declaration", "text": "Thread * t;", "parent": 393, "children": [404, 405], "start_point": {"row": 117, "column": 1}, "end_point": {"row": 117, "column": 12}}, {"id": 404, "type": "type_identifier", "text": "Thread", "parent": 403, "children": [], "start_point": {"row": 117, "column": 1}, "end_point": {"row": 117, "column": 7}}, {"id": 405, "type": "pointer_declarator", "text": "* t", "parent": 403, "children": [406, 407], "start_point": {"row": 117, "column": 8}, "end_point": {"row": 117, "column": 11}}, {"id": 406, "type": "*", "text": "*", "parent": 405, "children": [], "start_point": {"row": 117, "column": 8}, "end_point": {"row": 117, "column": 9}}, {"id": 407, "type": "identifier", "text": "t", "parent": 405, "children": [], "start_point": {"row": 117, "column": 10}, "end_point": {"row": 117, "column": 11}}, {"id": 408, "type": "call_expression", "text": "lock(&q->lk)", "parent": 393, "children": [409, 410], "start_point": {"row": 119, "column": 1}, "end_point": {"row": 119, "column": 13}}, {"id": 409, "type": "identifier", "text": "lock", "parent": 408, "children": [], "start_point": {"row": 119, "column": 1}, "end_point": {"row": 119, "column": 5}}, {"id": 410, "type": "argument_list", "text": "(&q->lk)", "parent": 408, "children": [411], "start_point": {"row": 119, "column": 5}, "end_point": {"row": 119, "column": 13}}, {"id": 411, "type": "pointer_expression", "text": "&q->lk", "parent": 410, "children": [412], "start_point": {"row": 119, "column": 6}, "end_point": {"row": 119, "column": 12}}, {"id": 412, "type": "field_expression", "text": "q->lk", "parent": 411, "children": [413, 414], "start_point": {"row": 119, "column": 7}, "end_point": {"row": 119, "column": 12}}, {"id": 413, "type": "identifier", "text": "q", "parent": 412, "children": [], "start_point": {"row": 119, "column": 7}, "end_point": {"row": 119, "column": 8}}, {"id": 414, "type": "field_identifier", "text": "lk", "parent": 412, "children": [], "start_point": {"row": 119, "column": 10}, "end_point": {"row": 119, "column": 12}}, {"id": 415, "type": "call_expression", "text": "assert(q->hold == CT)", "parent": 393, "children": [416, 417], "start_point": {"row": 120, "column": 1}, "end_point": {"row": 120, "column": 22}}, {"id": 416, "type": "identifier", "text": "assert", "parent": 415, "children": [], "start_point": {"row": 120, "column": 1}, "end_point": {"row": 120, "column": 7}}, {"id": 417, "type": "argument_list", "text": "(q->hold == CT)", "parent": 415, "children": [418], "start_point": {"row": 120, "column": 7}, "end_point": {"row": 120, "column": 22}}, {"id": 418, "type": "binary_expression", "text": "q->hold == CT", "parent": 417, "children": [419, 422, 423], "start_point": {"row": 120, "column": 8}, "end_point": {"row": 120, "column": 21}}, {"id": 419, "type": "field_expression", "text": "q->hold", "parent": 418, "children": [420, 421], "start_point": {"row": 120, "column": 8}, "end_point": {"row": 120, "column": 15}}, {"id": 420, "type": "identifier", "text": "q", "parent": 419, "children": [], "start_point": {"row": 120, "column": 8}, "end_point": {"row": 120, "column": 9}}, {"id": 421, "type": "field_identifier", "text": "hold", "parent": 419, "children": [], "start_point": {"row": 120, "column": 11}, "end_point": {"row": 120, "column": 15}}, {"id": 422, "type": "==", "text": "==", "parent": 418, "children": [], "start_point": {"row": 120, "column": 16}, "end_point": {"row": 120, "column": 18}}, {"id": 423, "type": "identifier", "text": "CT", "parent": 418, "children": [], "start_point": {"row": 120, "column": 19}, "end_point": {"row": 120, "column": 21}}, {"id": 424, "type": "assignment_expression", "text": "q->hold = 0", "parent": 393, "children": [425, 428, 429], "start_point": {"row": 121, "column": 1}, "end_point": {"row": 121, "column": 12}}, {"id": 425, "type": "field_expression", "text": "q->hold", "parent": 424, "children": [426, 427], "start_point": {"row": 121, "column": 1}, "end_point": {"row": 121, "column": 8}}, {"id": 426, "type": "identifier", "text": "q", "parent": 425, "children": [], "start_point": {"row": 121, "column": 1}, "end_point": {"row": 121, "column": 2}}, {"id": 427, "type": "field_identifier", "text": "hold", "parent": 425, "children": [], "start_point": {"row": 121, "column": 4}, "end_point": {"row": 121, "column": 8}}, {"id": 428, "type": "=", "text": "=", "parent": 424, "children": [], "start_point": {"row": 121, "column": 9}, "end_point": {"row": 121, "column": 10}}, {"id": 429, "type": "number_literal", "text": "0", "parent": 424, "children": [], "start_point": {"row": 121, "column": 11}, "end_point": {"row": 121, "column": 12}}, {"id": 430, "type": "if_statement", "text": "if(q->nwait == 0) {\r\n\t\tunlock(&q->lk);\r\n\t\treturn;\r\n\t}", "parent": 393, "children": [431], "start_point": {"row": 122, "column": 1}, "end_point": {"row": 125, "column": 2}}, {"id": 431, "type": "parenthesized_expression", "text": "(q->nwait == 0)", "parent": 430, "children": [432], "start_point": {"row": 122, "column": 3}, "end_point": {"row": 122, "column": 18}}, {"id": 432, "type": "binary_expression", "text": "q->nwait == 0", "parent": 431, "children": [433, 436, 437], "start_point": {"row": 122, "column": 4}, "end_point": {"row": 122, "column": 17}}, {"id": 433, "type": "field_expression", "text": "q->nwait", "parent": 432, "children": [434, 435], "start_point": {"row": 122, "column": 4}, "end_point": {"row": 122, "column": 12}}, {"id": 434, "type": "identifier", "text": "q", "parent": 433, "children": [], "start_point": {"row": 122, "column": 4}, "end_point": {"row": 122, "column": 5}}, {"id": 435, "type": "field_identifier", "text": "nwait", "parent": 433, "children": [], "start_point": {"row": 122, "column": 7}, "end_point": {"row": 122, "column": 12}}, {"id": 436, "type": "==", "text": "==", "parent": 432, "children": [], "start_point": {"row": 122, "column": 13}, "end_point": {"row": 122, "column": 15}}, {"id": 437, "type": "number_literal", "text": "0", "parent": 432, "children": [], "start_point": {"row": 122, "column": 16}, "end_point": {"row": 122, "column": 17}}, {"id": 438, "type": "call_expression", "text": "unlock(&q->lk)", "parent": 430, "children": [439, 440], "start_point": {"row": 123, "column": 2}, "end_point": {"row": 123, "column": 16}}, {"id": 439, "type": "identifier", "text": "unlock", "parent": 438, "children": [], "start_point": {"row": 123, "column": 2}, "end_point": {"row": 123, "column": 8}}, {"id": 440, "type": "argument_list", "text": "(&q->lk)", "parent": 438, "children": [441], "start_point": {"row": 123, "column": 8}, "end_point": {"row": 123, "column": 16}}, {"id": 441, "type": "pointer_expression", "text": "&q->lk", "parent": 440, "children": [442], "start_point": {"row": 123, "column": 9}, "end_point": {"row": 123, "column": 15}}, {"id": 442, "type": "field_expression", "text": "q->lk", "parent": 441, "children": [443, 444], "start_point": {"row": 123, "column": 10}, "end_point": {"row": 123, "column": 15}}, {"id": 443, "type": "identifier", "text": "q", "parent": 442, "children": [], "start_point": {"row": 123, "column": 10}, "end_point": {"row": 123, "column": 11}}, {"id": 444, "type": "field_identifier", "text": "lk", "parent": 442, "children": [], "start_point": {"row": 123, "column": 13}, "end_point": {"row": 123, "column": 15}}, {"id": 445, "type": "return_statement", "text": "return;", "parent": 430, "children": [], "start_point": {"row": 124, "column": 2}, "end_point": {"row": 124, "column": 9}}, {"id": 446, "type": "update_expression", "text": "q->nwait--", "parent": 393, "children": [447, 450], "start_point": {"row": 126, "column": 1}, "end_point": {"row": 126, "column": 11}}, {"id": 447, "type": "field_expression", "text": "q->nwait", "parent": 446, "children": [448, 449], "start_point": {"row": 126, "column": 1}, "end_point": {"row": 126, "column": 9}}, {"id": 448, "type": "identifier", "text": "q", "parent": 447, "children": [], "start_point": {"row": 126, "column": 1}, "end_point": {"row": 126, "column": 2}}, {"id": 449, "type": "field_identifier", "text": "nwait", "parent": 447, "children": [], "start_point": {"row": 126, "column": 4}, "end_point": {"row": 126, "column": 9}}, {"id": 450, "type": "--", "text": "--", "parent": 446, "children": [], "start_point": {"row": 126, "column": 9}, "end_point": {"row": 126, "column": 11}}, {"id": 451, "type": "assignment_expression", "text": "t = pm_dequeue(q)", "parent": 393, "children": [452, 453, 454], "start_point": {"row": 127, "column": 1}, "end_point": {"row": 127, "column": 18}}, {"id": 452, "type": "identifier", "text": "t", "parent": 451, "children": [], "start_point": {"row": 127, "column": 1}, "end_point": {"row": 127, "column": 2}}, {"id": 453, "type": "=", "text": "=", "parent": 451, "children": [], "start_point": {"row": 127, "column": 3}, "end_point": {"row": 127, "column": 4}}, {"id": 454, "type": "call_expression", "text": "pm_dequeue(q)", "parent": 451, "children": [455, 456], "start_point": {"row": 127, "column": 5}, "end_point": {"row": 127, "column": 18}}, {"id": 455, "type": "identifier", "text": "pm_dequeue", "parent": 454, "children": [], "start_point": {"row": 127, "column": 5}, "end_point": {"row": 127, "column": 15}}, {"id": 456, "type": "argument_list", "text": "(q)", "parent": 454, "children": [457], "start_point": {"row": 127, "column": 15}, "end_point": {"row": 127, "column": 18}}, {"id": 457, "type": "identifier", "text": "q", "parent": 456, "children": [], "start_point": {"row": 127, "column": 16}, "end_point": {"row": 127, "column": 17}}, {"id": 458, "type": "call_expression", "text": "unlock(&q->lk)", "parent": 393, "children": [459, 460], "start_point": {"row": 128, "column": 1}, "end_point": {"row": 128, "column": 15}}, {"id": 459, "type": "identifier", "text": "unlock", "parent": 458, "children": [], "start_point": {"row": 128, "column": 1}, "end_point": {"row": 128, "column": 7}}, {"id": 460, "type": "argument_list", "text": "(&q->lk)", "parent": 458, "children": [461], "start_point": {"row": 128, "column": 7}, "end_point": {"row": 128, "column": 15}}, {"id": 461, "type": "pointer_expression", "text": "&q->lk", "parent": 460, "children": [462], "start_point": {"row": 128, "column": 8}, "end_point": {"row": 128, "column": 14}}, {"id": 462, "type": "field_expression", "text": "q->lk", "parent": 461, "children": [463, 464], "start_point": {"row": 128, "column": 9}, "end_point": {"row": 128, "column": 14}}, {"id": 463, "type": "identifier", "text": "q", "parent": 462, "children": [], "start_point": {"row": 128, "column": 9}, "end_point": {"row": 128, "column": 10}}, {"id": 464, "type": "field_identifier", "text": "lk", "parent": 462, "children": [], "start_point": {"row": 128, "column": 12}, "end_point": {"row": 128, "column": 14}}, {"id": 465, "type": "call_expression", "text": "pm_twakeup(t)", "parent": 393, "children": [466, 467], "start_point": {"row": 129, "column": 1}, "end_point": {"row": 129, "column": 14}}, {"id": 466, "type": "identifier", "text": "pm_twakeup", "parent": 465, "children": [], "start_point": {"row": 129, "column": 1}, "end_point": {"row": 129, "column": 11}}, {"id": 467, "type": "argument_list", "text": "(t)", "parent": 465, "children": [468], "start_point": {"row": 129, "column": 11}, "end_point": {"row": 129, "column": 14}}, {"id": 468, "type": "identifier", "text": "t", "parent": 467, "children": [], "start_point": {"row": 129, "column": 12}, "end_point": {"row": 129, "column": 13}}, {"id": 469, "type": "function_definition", "text": "int\nholdwlock(RWlock *q)\n{\n\treturn q->hold == CT;\n}", "parent": null, "children": [470, 471], "start_point": {"row": 132, "column": 0}, "end_point": {"row": 136, "column": 1}}, {"id": 470, "type": "primitive_type", "text": "int", "parent": 469, "children": [], "start_point": {"row": 132, "column": 0}, "end_point": {"row": 132, "column": 3}}, {"id": 471, "type": "function_declarator", "text": "holdwlock(RWlock *q)", "parent": 469, "children": [472, 473], "start_point": {"row": 133, "column": 0}, "end_point": {"row": 133, "column": 20}}, {"id": 472, "type": "identifier", "text": "holdwlock", "parent": 471, "children": [], "start_point": {"row": 133, "column": 0}, "end_point": {"row": 133, "column": 9}}, {"id": 473, "type": "parameter_list", "text": "(RWlock *q)", "parent": 471, "children": [474], "start_point": {"row": 133, "column": 9}, "end_point": {"row": 133, "column": 20}}, {"id": 474, "type": "parameter_declaration", "text": "RWlock *q", "parent": 473, "children": [475, 476], "start_point": {"row": 133, "column": 10}, "end_point": {"row": 133, "column": 19}}, {"id": 475, "type": "type_identifier", "text": "RWlock", "parent": 474, "children": [], "start_point": {"row": 133, "column": 10}, "end_point": {"row": 133, "column": 16}}, {"id": 476, "type": "pointer_declarator", "text": "*q", "parent": 474, "children": [477, 478], "start_point": {"row": 133, "column": 17}, "end_point": {"row": 133, "column": 19}}, {"id": 477, "type": "*", "text": "*", "parent": 476, "children": [], "start_point": {"row": 133, "column": 17}, "end_point": {"row": 133, "column": 18}}, {"id": 478, "type": "identifier", "text": "q", "parent": 476, "children": [], "start_point": {"row": 133, "column": 18}, "end_point": {"row": 133, "column": 19}}, {"id": 479, "type": "return_statement", "text": "return q->hold == CT;", "parent": 469, "children": [480], "start_point": {"row": 135, "column": 1}, "end_point": {"row": 135, "column": 22}}, {"id": 480, "type": "binary_expression", "text": "q->hold == CT", "parent": 479, "children": [481, 484, 485], "start_point": {"row": 135, "column": 8}, "end_point": {"row": 135, "column": 21}}, {"id": 481, "type": "field_expression", "text": "q->hold", "parent": 480, "children": [482, 483], "start_point": {"row": 135, "column": 8}, "end_point": {"row": 135, "column": 15}}, {"id": 482, "type": "identifier", "text": "q", "parent": 481, "children": [], "start_point": {"row": 135, "column": 8}, "end_point": {"row": 135, "column": 9}}, {"id": 483, "type": "field_identifier", "text": "hold", "parent": 481, "children": [], "start_point": {"row": 135, "column": 11}, "end_point": {"row": 135, "column": 15}}, {"id": 484, "type": "==", "text": "==", "parent": 480, "children": [], "start_point": {"row": 135, "column": 16}, "end_point": {"row": 135, "column": 18}}, {"id": 485, "type": "identifier", "text": "CT", "parent": 480, "children": [], "start_point": {"row": 135, "column": 19}, "end_point": {"row": 135, "column": 21}}, {"id": 486, "type": "function_definition", "text": "static void\naddrlock(RWlock *q)\n{\n\tuint h;\n\tint i, n;\n\tThread *ct;\n\tRWlock **p;\n\n\n\tct = CT;\n\n\tn = ct->nrtab;\n\n\th = q->hash;\n\tif(h == 0) {\n\t\th = (((int)q * Hashmul) % Hashmod);\n\t\th &= n-1;\n\t\th++;\n\t\tq->hash = h;\n\t}\n\n\tp = ct->rtab+h;\n\tfor(i = 0; i < Nrlook; i++, p++)\n\t\tassert(*p != q);\n\n\tp = ct->rtab+h;\n\tfor(i=0; i < Nrlook; i++, p++) {\n\t\tif(*p)\n\t\t\tcontinue;\n\t\t*p = q;\n\t\treturn;\n\t}\n\n\t/* expand table */\n\tp = ct->rtab;\n\tct->nrtab *= 4;\n\tct->rtab = sbrk((ct->nrtab+Nrlook+1)*sizeof(RWlock*));\n\tn += Nrlook+1;\n\tfor(i=0; i<n; i++) {\n\t\tif(p[i] == 0)\n\t\t\tcontinue;\n\t\tp[i]->hash = 0;\n\t\taddrlock(p[i]);\n\t}\r\n\r\n\t/* free(p); */\n}", "parent": null, "children": [487, 488], "start_point": {"row": 138, "column": 0}, "end_point": {"row": 184, "column": 1}}, {"id": 487, "type": "primitive_type", "text": "void", "parent": 486, "children": [], "start_point": {"row": 138, "column": 7}, "end_point": {"row": 138, "column": 11}}, {"id": 488, "type": "function_declarator", "text": "addrlock(RWlock *q)", "parent": 486, "children": [489, 490], "start_point": {"row": 139, "column": 0}, "end_point": {"row": 139, "column": 19}}, {"id": 489, "type": "identifier", "text": "addrlock", "parent": 488, "children": [], "start_point": {"row": 139, "column": 0}, "end_point": {"row": 139, "column": 8}}, {"id": 490, "type": "parameter_list", "text": "(RWlock *q)", "parent": 488, "children": [491], "start_point": {"row": 139, "column": 8}, "end_point": {"row": 139, "column": 19}}, {"id": 491, "type": "parameter_declaration", "text": "RWlock *q", "parent": 490, "children": [492, 493], "start_point": {"row": 139, "column": 9}, "end_point": {"row": 139, "column": 18}}, {"id": 492, "type": "type_identifier", "text": "RWlock", "parent": 491, "children": [], "start_point": {"row": 139, "column": 9}, "end_point": {"row": 139, "column": 15}}, {"id": 493, "type": "pointer_declarator", "text": "*q", "parent": 491, "children": [494, 495], "start_point": {"row": 139, "column": 16}, "end_point": {"row": 139, "column": 18}}, {"id": 494, "type": "*", "text": "*", "parent": 493, "children": [], "start_point": {"row": 139, "column": 16}, "end_point": {"row": 139, "column": 17}}, {"id": 495, "type": "identifier", "text": "q", "parent": 493, "children": [], "start_point": {"row": 139, "column": 17}, "end_point": {"row": 139, "column": 18}}, {"id": 496, "type": "declaration", "text": "uint h;", "parent": 486, "children": [497, 498], "start_point": {"row": 141, "column": 1}, "end_point": {"row": 141, "column": 8}}, {"id": 497, "type": "type_identifier", "text": "uint", "parent": 496, "children": [], "start_point": {"row": 141, "column": 1}, "end_point": {"row": 141, "column": 5}}, {"id": 498, "type": "identifier", "text": "h", "parent": 496, "children": [], "start_point": {"row": 141, "column": 6}, "end_point": {"row": 141, "column": 7}}, {"id": 499, "type": "declaration", "text": "int i, n;", "parent": 486, "children": [500, 501, 502], "start_point": {"row": 142, "column": 1}, "end_point": {"row": 142, "column": 10}}, {"id": 500, "type": "primitive_type", "text": "int", "parent": 499, "children": [], "start_point": {"row": 142, "column": 1}, "end_point": {"row": 142, "column": 4}}, {"id": 501, "type": "identifier", "text": "i", "parent": 499, "children": [], "start_point": {"row": 142, "column": 5}, "end_point": {"row": 142, "column": 6}}, {"id": 502, "type": "identifier", "text": "n", "parent": 499, "children": [], "start_point": {"row": 142, "column": 8}, "end_point": {"row": 142, "column": 9}}, {"id": 503, "type": "declaration", "text": "Thread *ct;", "parent": 486, "children": [504, 505], "start_point": {"row": 143, "column": 1}, "end_point": {"row": 143, "column": 12}}, {"id": 504, "type": "type_identifier", "text": "Thread", "parent": 503, "children": [], "start_point": {"row": 143, "column": 1}, "end_point": {"row": 143, "column": 7}}, {"id": 505, "type": "pointer_declarator", "text": "*ct", "parent": 503, "children": [506, 507], "start_point": {"row": 143, "column": 8}, "end_point": {"row": 143, "column": 11}}, {"id": 506, "type": "*", "text": "*", "parent": 505, "children": [], "start_point": {"row": 143, "column": 8}, "end_point": {"row": 143, "column": 9}}, {"id": 507, "type": "identifier", "text": "ct", "parent": 505, "children": [], "start_point": {"row": 143, "column": 9}, "end_point": {"row": 143, "column": 11}}, {"id": 508, "type": "declaration", "text": "RWlock **p;", "parent": 486, "children": [509, 510], "start_point": {"row": 144, "column": 1}, "end_point": {"row": 144, "column": 12}}, {"id": 509, "type": "type_identifier", "text": "RWlock", "parent": 508, "children": [], "start_point": {"row": 144, "column": 1}, "end_point": {"row": 144, "column": 7}}, {"id": 510, "type": "pointer_declarator", "text": "**p", "parent": 508, "children": [511, 512], "start_point": {"row": 144, "column": 8}, "end_point": {"row": 144, "column": 11}}, {"id": 511, "type": "*", "text": "*", "parent": 510, "children": [], "start_point": {"row": 144, "column": 8}, "end_point": {"row": 144, "column": 9}}, {"id": 512, "type": "pointer_declarator", "text": "*p", "parent": 510, "children": [513, 514], "start_point": {"row": 144, "column": 9}, "end_point": {"row": 144, "column": 11}}, {"id": 513, "type": "*", "text": "*", "parent": 512, "children": [], "start_point": {"row": 144, "column": 9}, "end_point": {"row": 144, "column": 10}}, {"id": 514, "type": "identifier", "text": "p", "parent": 512, "children": [], "start_point": {"row": 144, "column": 10}, "end_point": {"row": 144, "column": 11}}, {"id": 515, "type": "assignment_expression", "text": "ct = CT", "parent": 486, "children": [516, 517, 518], "start_point": {"row": 147, "column": 1}, "end_point": {"row": 147, "column": 8}}, {"id": 516, "type": "identifier", "text": "ct", "parent": 515, "children": [], "start_point": {"row": 147, "column": 1}, "end_point": {"row": 147, "column": 3}}, {"id": 517, "type": "=", "text": "=", "parent": 515, "children": [], "start_point": {"row": 147, "column": 4}, "end_point": {"row": 147, "column": 5}}, {"id": 518, "type": "identifier", "text": "CT", "parent": 515, "children": [], "start_point": {"row": 147, "column": 6}, "end_point": {"row": 147, "column": 8}}, {"id": 519, "type": "assignment_expression", "text": "n = ct->nrtab", "parent": 486, "children": [520, 521, 522], "start_point": {"row": 149, "column": 1}, "end_point": {"row": 149, "column": 14}}, {"id": 520, "type": "identifier", "text": "n", "parent": 519, "children": [], "start_point": {"row": 149, "column": 1}, "end_point": {"row": 149, "column": 2}}, {"id": 521, "type": "=", "text": "=", "parent": 519, "children": [], "start_point": {"row": 149, "column": 3}, "end_point": {"row": 149, "column": 4}}, {"id": 522, "type": "field_expression", "text": "ct->nrtab", "parent": 519, "children": [523, 524], "start_point": {"row": 149, "column": 5}, "end_point": {"row": 149, "column": 14}}, {"id": 523, "type": "identifier", "text": "ct", "parent": 522, "children": [], "start_point": {"row": 149, "column": 5}, "end_point": {"row": 149, "column": 7}}, {"id": 524, "type": "field_identifier", "text": "nrtab", "parent": 522, "children": [], "start_point": {"row": 149, "column": 9}, "end_point": {"row": 149, "column": 14}}, {"id": 525, "type": "assignment_expression", "text": "h = q->hash", "parent": 486, "children": [526, 527, 528], "start_point": {"row": 151, "column": 1}, "end_point": {"row": 151, "column": 12}}, {"id": 526, "type": "identifier", "text": "h", "parent": 525, "children": [], "start_point": {"row": 151, "column": 1}, "end_point": {"row": 151, "column": 2}}, {"id": 527, "type": "=", "text": "=", "parent": 525, "children": [], "start_point": {"row": 151, "column": 3}, "end_point": {"row": 151, "column": 4}}, {"id": 528, "type": "field_expression", "text": "q->hash", "parent": 525, "children": [529, 530], "start_point": {"row": 151, "column": 5}, "end_point": {"row": 151, "column": 12}}, {"id": 529, "type": "identifier", "text": "q", "parent": 528, "children": [], "start_point": {"row": 151, "column": 5}, "end_point": {"row": 151, "column": 6}}, {"id": 530, "type": "field_identifier", "text": "hash", "parent": 528, "children": [], "start_point": {"row": 151, "column": 8}, "end_point": {"row": 151, "column": 12}}, {"id": 531, "type": "if_statement", "text": "if(h == 0) {\n\t\th = (((int)q * Hashmul) % Hashmod);\n\t\th &= n-1;\n\t\th++;\n\t\tq->hash = h;\n\t}", "parent": 486, "children": [532], "start_point": {"row": 152, "column": 1}, "end_point": {"row": 157, "column": 2}}, {"id": 532, "type": "parenthesized_expression", "text": "(h == 0)", "parent": 531, "children": [533], "start_point": {"row": 152, "column": 3}, "end_point": {"row": 152, "column": 11}}, {"id": 533, "type": "binary_expression", "text": "h == 0", "parent": 532, "children": [534, 535, 536], "start_point": {"row": 152, "column": 4}, "end_point": {"row": 152, "column": 10}}, {"id": 534, "type": "identifier", "text": "h", "parent": 533, "children": [], "start_point": {"row": 152, "column": 4}, "end_point": {"row": 152, "column": 5}}, {"id": 535, "type": "==", "text": "==", "parent": 533, "children": [], "start_point": {"row": 152, "column": 6}, "end_point": {"row": 152, "column": 8}}, {"id": 536, "type": "number_literal", "text": "0", "parent": 533, "children": [], "start_point": {"row": 152, "column": 9}, "end_point": {"row": 152, "column": 10}}, {"id": 537, "type": "assignment_expression", "text": "h = (((int)q * Hashmul) % Hashmod)", "parent": 531, "children": [538, 539, 540], "start_point": {"row": 153, "column": 2}, "end_point": {"row": 153, "column": 36}}, {"id": 538, "type": "identifier", "text": "h", "parent": 537, "children": [], "start_point": {"row": 153, "column": 2}, "end_point": {"row": 153, "column": 3}}, {"id": 539, "type": "=", "text": "=", "parent": 537, "children": [], "start_point": {"row": 153, "column": 4}, "end_point": {"row": 153, "column": 5}}, {"id": 540, "type": "parenthesized_expression", "text": "(((int)q * Hashmul) % Hashmod)", "parent": 537, "children": [541], "start_point": {"row": 153, "column": 6}, "end_point": {"row": 153, "column": 36}}, {"id": 541, "type": "binary_expression", "text": "((int)q * Hashmul) % Hashmod", "parent": 540, "children": [542, 550, 551], "start_point": {"row": 153, "column": 7}, "end_point": {"row": 153, "column": 35}}, {"id": 542, "type": "parenthesized_expression", "text": "((int)q * Hashmul)", "parent": 541, "children": [543], "start_point": {"row": 153, "column": 7}, "end_point": {"row": 153, "column": 25}}, {"id": 543, "type": "binary_expression", "text": "(int)q * Hashmul", "parent": 542, "children": [544, 548, 549], "start_point": {"row": 153, "column": 8}, "end_point": {"row": 153, "column": 24}}, {"id": 544, "type": "cast_expression", "text": "(int)q", "parent": 543, "children": [545, 547], "start_point": {"row": 153, "column": 8}, "end_point": {"row": 153, "column": 14}}, {"id": 545, "type": "type_descriptor", "text": "int", "parent": 544, "children": [546], "start_point": {"row": 153, "column": 9}, "end_point": {"row": 153, "column": 12}}, {"id": 546, "type": "primitive_type", "text": "int", "parent": 545, "children": [], "start_point": {"row": 153, "column": 9}, "end_point": {"row": 153, "column": 12}}, {"id": 547, "type": "identifier", "text": "q", "parent": 544, "children": [], "start_point": {"row": 153, "column": 13}, "end_point": {"row": 153, "column": 14}}, {"id": 548, "type": "*", "text": "*", "parent": 543, "children": [], "start_point": {"row": 153, "column": 15}, "end_point": {"row": 153, "column": 16}}, {"id": 549, "type": "identifier", "text": "Hashmul", "parent": 543, "children": [], "start_point": {"row": 153, "column": 17}, "end_point": {"row": 153, "column": 24}}, {"id": 550, "type": "%", "text": "%", "parent": 541, "children": [], "start_point": {"row": 153, "column": 26}, "end_point": {"row": 153, "column": 27}}, {"id": 551, "type": "identifier", "text": "Hashmod", "parent": 541, "children": [], "start_point": {"row": 153, "column": 28}, "end_point": {"row": 153, "column": 35}}, {"id": 552, "type": "assignment_expression", "text": "h &= n-1", "parent": 531, "children": [553, 554, 555], "start_point": {"row": 154, "column": 2}, "end_point": {"row": 154, "column": 10}}, {"id": 553, "type": "identifier", "text": "h", "parent": 552, "children": [], "start_point": {"row": 154, "column": 2}, "end_point": {"row": 154, "column": 3}}, {"id": 554, "type": "&=", "text": "&=", "parent": 552, "children": [], "start_point": {"row": 154, "column": 4}, "end_point": {"row": 154, "column": 6}}, {"id": 555, "type": "binary_expression", "text": "n-1", "parent": 552, "children": [556, 557, 558], "start_point": {"row": 154, "column": 7}, "end_point": {"row": 154, "column": 10}}, {"id": 556, "type": "identifier", "text": "n", "parent": 555, "children": [], "start_point": {"row": 154, "column": 7}, "end_point": {"row": 154, "column": 8}}, {"id": 557, "type": "-", "text": "-", "parent": 555, "children": [], "start_point": {"row": 154, "column": 8}, "end_point": {"row": 154, "column": 9}}, {"id": 558, "type": "number_literal", "text": "1", "parent": 555, "children": [], "start_point": {"row": 154, "column": 9}, "end_point": {"row": 154, "column": 10}}, {"id": 559, "type": "update_expression", "text": "h++", "parent": 531, "children": [560, 561], "start_point": {"row": 155, "column": 2}, "end_point": {"row": 155, "column": 5}}, {"id": 560, "type": "identifier", "text": "h", "parent": 559, "children": [], "start_point": {"row": 155, "column": 2}, "end_point": {"row": 155, "column": 3}}, {"id": 561, "type": "++", "text": "++", "parent": 559, "children": [], "start_point": {"row": 155, "column": 3}, "end_point": {"row": 155, "column": 5}}, {"id": 562, "type": "assignment_expression", "text": "q->hash = h", "parent": 531, "children": [563, 566, 567], "start_point": {"row": 156, "column": 2}, "end_point": {"row": 156, "column": 13}}, {"id": 563, "type": "field_expression", "text": "q->hash", "parent": 562, "children": [564, 565], "start_point": {"row": 156, "column": 2}, "end_point": {"row": 156, "column": 9}}, {"id": 564, "type": "identifier", "text": "q", "parent": 563, "children": [], "start_point": {"row": 156, "column": 2}, "end_point": {"row": 156, "column": 3}}, {"id": 565, "type": "field_identifier", "text": "hash", "parent": 563, "children": [], "start_point": {"row": 156, "column": 5}, "end_point": {"row": 156, "column": 9}}, {"id": 566, "type": "=", "text": "=", "parent": 562, "children": [], "start_point": {"row": 156, "column": 10}, "end_point": {"row": 156, "column": 11}}, {"id": 567, "type": "identifier", "text": "h", "parent": 562, "children": [], "start_point": {"row": 156, "column": 12}, "end_point": {"row": 156, "column": 13}}, {"id": 568, "type": "assignment_expression", "text": "p = ct->rtab+h", "parent": 486, "children": [569, 570, 571], "start_point": {"row": 159, "column": 1}, "end_point": {"row": 159, "column": 15}}, {"id": 569, "type": "identifier", "text": "p", "parent": 568, "children": [], "start_point": {"row": 159, "column": 1}, "end_point": {"row": 159, "column": 2}}, {"id": 570, "type": "=", "text": "=", "parent": 568, "children": [], "start_point": {"row": 159, "column": 3}, "end_point": {"row": 159, "column": 4}}, {"id": 571, "type": "binary_expression", "text": "ct->rtab+h", "parent": 568, "children": [572, 575, 576], "start_point": {"row": 159, "column": 5}, "end_point": {"row": 159, "column": 15}}, {"id": 572, "type": "field_expression", "text": "ct->rtab", "parent": 571, "children": [573, 574], "start_point": {"row": 159, "column": 5}, "end_point": {"row": 159, "column": 13}}, {"id": 573, "type": "identifier", "text": "ct", "parent": 572, "children": [], "start_point": {"row": 159, "column": 5}, "end_point": {"row": 159, "column": 7}}, {"id": 574, "type": "field_identifier", "text": "rtab", "parent": 572, "children": [], "start_point": {"row": 159, "column": 9}, "end_point": {"row": 159, "column": 13}}, {"id": 575, "type": "+", "text": "+", "parent": 571, "children": [], "start_point": {"row": 159, "column": 13}, "end_point": {"row": 159, "column": 14}}, {"id": 576, "type": "identifier", "text": "h", "parent": 571, "children": [], "start_point": {"row": 159, "column": 14}, "end_point": {"row": 159, "column": 15}}, {"id": 577, "type": "for_statement", "text": "for(i = 0; i < Nrlook; i++, p++)\n\t\tassert(*p != q);", "parent": 486, "children": [578, 582, 586], "start_point": {"row": 160, "column": 1}, "end_point": {"row": 161, "column": 18}}, {"id": 578, "type": "assignment_expression", "text": "i = 0", "parent": 577, "children": [579, 580, 581], "start_point": {"row": 160, "column": 5}, "end_point": {"row": 160, "column": 10}}, {"id": 579, "type": "identifier", "text": "i", "parent": 578, "children": [], "start_point": {"row": 160, "column": 5}, "end_point": {"row": 160, "column": 6}}, {"id": 580, "type": "=", "text": "=", "parent": 578, "children": [], "start_point": {"row": 160, "column": 7}, "end_point": {"row": 160, "column": 8}}, {"id": 581, "type": "number_literal", "text": "0", "parent": 578, "children": [], "start_point": {"row": 160, "column": 9}, "end_point": {"row": 160, "column": 10}}, {"id": 582, "type": "binary_expression", "text": "i < Nrlook", "parent": 577, "children": [583, 584, 585], "start_point": {"row": 160, "column": 12}, "end_point": {"row": 160, "column": 22}}, {"id": 583, "type": "identifier", "text": "i", "parent": 582, "children": [], "start_point": {"row": 160, "column": 12}, "end_point": {"row": 160, "column": 13}}, {"id": 584, "type": "<", "text": "<", "parent": 582, "children": [], "start_point": {"row": 160, "column": 14}, "end_point": {"row": 160, "column": 15}}, {"id": 585, "type": "identifier", "text": "Nrlook", "parent": 582, "children": [], "start_point": {"row": 160, "column": 16}, "end_point": {"row": 160, "column": 22}}, {"id": 586, "type": "comma_expression", "text": "i++, p++", "parent": 577, "children": [587, 590], "start_point": {"row": 160, "column": 24}, "end_point": {"row": 160, "column": 32}}, {"id": 587, "type": "update_expression", "text": "i++", "parent": 586, "children": [588, 589], "start_point": {"row": 160, "column": 24}, "end_point": {"row": 160, "column": 27}}, {"id": 588, "type": "identifier", "text": "i", "parent": 587, "children": [], "start_point": {"row": 160, "column": 24}, "end_point": {"row": 160, "column": 25}}, {"id": 589, "type": "++", "text": "++", "parent": 587, "children": [], "start_point": {"row": 160, "column": 25}, "end_point": {"row": 160, "column": 27}}, {"id": 590, "type": "update_expression", "text": "p++", "parent": 586, "children": [591, 592], "start_point": {"row": 160, "column": 29}, "end_point": {"row": 160, "column": 32}}, {"id": 591, "type": "identifier", "text": "p", "parent": 590, "children": [], "start_point": {"row": 160, "column": 29}, "end_point": {"row": 160, "column": 30}}, {"id": 592, "type": "++", "text": "++", "parent": 590, "children": [], "start_point": {"row": 160, "column": 30}, "end_point": {"row": 160, "column": 32}}, {"id": 593, "type": "call_expression", "text": "assert(*p != q)", "parent": 577, "children": [594, 595], "start_point": {"row": 161, "column": 2}, "end_point": {"row": 161, "column": 17}}, {"id": 594, "type": "identifier", "text": "assert", "parent": 593, "children": [], "start_point": {"row": 161, "column": 2}, "end_point": {"row": 161, "column": 8}}, {"id": 595, "type": "argument_list", "text": "(*p != q)", "parent": 593, "children": [596], "start_point": {"row": 161, "column": 8}, "end_point": {"row": 161, "column": 17}}, {"id": 596, "type": "binary_expression", "text": "*p != q", "parent": 595, "children": [597, 600, 601], "start_point": {"row": 161, "column": 9}, "end_point": {"row": 161, "column": 16}}, {"id": 597, "type": "pointer_expression", "text": "*p", "parent": 596, "children": [598, 599], "start_point": {"row": 161, "column": 9}, "end_point": {"row": 161, "column": 11}}, {"id": 598, "type": "*", "text": "*", "parent": 597, "children": [], "start_point": {"row": 161, "column": 9}, "end_point": {"row": 161, "column": 10}}, {"id": 599, "type": "identifier", "text": "p", "parent": 597, "children": [], "start_point": {"row": 161, "column": 10}, "end_point": {"row": 161, "column": 11}}, {"id": 600, "type": "!=", "text": "!=", "parent": 596, "children": [], "start_point": {"row": 161, "column": 12}, "end_point": {"row": 161, "column": 14}}, {"id": 601, "type": "identifier", "text": "q", "parent": 596, "children": [], "start_point": {"row": 161, "column": 15}, "end_point": {"row": 161, "column": 16}}, {"id": 602, "type": "assignment_expression", "text": "p = ct->rtab+h", "parent": 486, "children": [603, 604, 605], "start_point": {"row": 163, "column": 1}, "end_point": {"row": 163, "column": 15}}, {"id": 603, "type": "identifier", "text": "p", "parent": 602, "children": [], "start_point": {"row": 163, "column": 1}, "end_point": {"row": 163, "column": 2}}, {"id": 604, "type": "=", "text": "=", "parent": 602, "children": [], "start_point": {"row": 163, "column": 3}, "end_point": {"row": 163, "column": 4}}, {"id": 605, "type": "binary_expression", "text": "ct->rtab+h", "parent": 602, "children": [606, 609, 610], "start_point": {"row": 163, "column": 5}, "end_point": {"row": 163, "column": 15}}, {"id": 606, "type": "field_expression", "text": "ct->rtab", "parent": 605, "children": [607, 608], "start_point": {"row": 163, "column": 5}, "end_point": {"row": 163, "column": 13}}, {"id": 607, "type": "identifier", "text": "ct", "parent": 606, "children": [], "start_point": {"row": 163, "column": 5}, "end_point": {"row": 163, "column": 7}}, {"id": 608, "type": "field_identifier", "text": "rtab", "parent": 606, "children": [], "start_point": {"row": 163, "column": 9}, "end_point": {"row": 163, "column": 13}}, {"id": 609, "type": "+", "text": "+", "parent": 605, "children": [], "start_point": {"row": 163, "column": 13}, "end_point": {"row": 163, "column": 14}}, {"id": 610, "type": "identifier", "text": "h", "parent": 605, "children": [], "start_point": {"row": 163, "column": 14}, "end_point": {"row": 163, "column": 15}}, {"id": 611, "type": "for_statement", "text": "for(i=0; i < Nrlook; i++, p++) {\n\t\tif(*p)\n\t\t\tcontinue;\n\t\t*p = q;\n\t\treturn;\n\t}", "parent": 486, "children": [612, 616, 620], "start_point": {"row": 164, "column": 1}, "end_point": {"row": 169, "column": 2}}, {"id": 612, "type": "assignment_expression", "text": "i=0", "parent": 611, "children": [613, 614, 615], "start_point": {"row": 164, "column": 5}, "end_point": {"row": 164, "column": 8}}, {"id": 613, "type": "identifier", "text": "i", "parent": 612, "children": [], "start_point": {"row": 164, "column": 5}, "end_point": {"row": 164, "column": 6}}, {"id": 614, "type": "=", "text": "=", "parent": 612, "children": [], "start_point": {"row": 164, "column": 6}, "end_point": {"row": 164, "column": 7}}, {"id": 615, "type": "number_literal", "text": "0", "parent": 612, "children": [], "start_point": {"row": 164, "column": 7}, "end_point": {"row": 164, "column": 8}}, {"id": 616, "type": "binary_expression", "text": "i < Nrlook", "parent": 611, "children": [617, 618, 619], "start_point": {"row": 164, "column": 10}, "end_point": {"row": 164, "column": 20}}, {"id": 617, "type": "identifier", "text": "i", "parent": 616, "children": [], "start_point": {"row": 164, "column": 10}, "end_point": {"row": 164, "column": 11}}, {"id": 618, "type": "<", "text": "<", "parent": 616, "children": [], "start_point": {"row": 164, "column": 12}, "end_point": {"row": 164, "column": 13}}, {"id": 619, "type": "identifier", "text": "Nrlook", "parent": 616, "children": [], "start_point": {"row": 164, "column": 14}, "end_point": {"row": 164, "column": 20}}, {"id": 620, "type": "comma_expression", "text": "i++, p++", "parent": 611, "children": [621, 624], "start_point": {"row": 164, "column": 22}, "end_point": {"row": 164, "column": 30}}, {"id": 621, "type": "update_expression", "text": "i++", "parent": 620, "children": [622, 623], "start_point": {"row": 164, "column": 22}, "end_point": {"row": 164, "column": 25}}, {"id": 622, "type": "identifier", "text": "i", "parent": 621, "children": [], "start_point": {"row": 164, "column": 22}, "end_point": {"row": 164, "column": 23}}, {"id": 623, "type": "++", "text": "++", "parent": 621, "children": [], "start_point": {"row": 164, "column": 23}, "end_point": {"row": 164, "column": 25}}, {"id": 624, "type": "update_expression", "text": "p++", "parent": 620, "children": [625, 626], "start_point": {"row": 164, "column": 27}, "end_point": {"row": 164, "column": 30}}, {"id": 625, "type": "identifier", "text": "p", "parent": 624, "children": [], "start_point": {"row": 164, "column": 27}, "end_point": {"row": 164, "column": 28}}, {"id": 626, "type": "++", "text": "++", "parent": 624, "children": [], "start_point": {"row": 164, "column": 28}, "end_point": {"row": 164, "column": 30}}, {"id": 627, "type": "if_statement", "text": "if(*p)\n\t\t\tcontinue;", "parent": 611, "children": [628, 632], "start_point": {"row": 165, "column": 2}, "end_point": {"row": 166, "column": 12}}, {"id": 628, "type": "parenthesized_expression", "text": "(*p)", "parent": 627, "children": [629], "start_point": {"row": 165, "column": 4}, "end_point": {"row": 165, "column": 8}}, {"id": 629, "type": "pointer_expression", "text": "*p", "parent": 628, "children": [630, 631], "start_point": {"row": 165, "column": 5}, "end_point": {"row": 165, "column": 7}}, {"id": 630, "type": "*", "text": "*", "parent": 629, "children": [], "start_point": {"row": 165, "column": 5}, "end_point": {"row": 165, "column": 6}}, {"id": 631, "type": "identifier", "text": "p", "parent": 629, "children": [], "start_point": {"row": 165, "column": 6}, "end_point": {"row": 165, "column": 7}}, {"id": 632, "type": "continue_statement", "text": "continue;", "parent": 627, "children": [633], "start_point": {"row": 166, "column": 3}, "end_point": {"row": 166, "column": 12}}, {"id": 633, "type": "continue", "text": "continue", "parent": 632, "children": [], "start_point": {"row": 166, "column": 3}, "end_point": {"row": 166, "column": 11}}, {"id": 634, "type": "assignment_expression", "text": "*p = q", "parent": 611, "children": [635, 638, 639], "start_point": {"row": 167, "column": 2}, "end_point": {"row": 167, "column": 8}}, {"id": 635, "type": "pointer_expression", "text": "*p", "parent": 634, "children": [636, 637], "start_point": {"row": 167, "column": 2}, "end_point": {"row": 167, "column": 4}}, {"id": 636, "type": "*", "text": "*", "parent": 635, "children": [], "start_point": {"row": 167, "column": 2}, "end_point": {"row": 167, "column": 3}}, {"id": 637, "type": "identifier", "text": "p", "parent": 635, "children": [], "start_point": {"row": 167, "column": 3}, "end_point": {"row": 167, "column": 4}}, {"id": 638, "type": "=", "text": "=", "parent": 634, "children": [], "start_point": {"row": 167, "column": 5}, "end_point": {"row": 167, "column": 6}}, {"id": 639, "type": "identifier", "text": "q", "parent": 634, "children": [], "start_point": {"row": 167, "column": 7}, "end_point": {"row": 167, "column": 8}}, {"id": 640, "type": "return_statement", "text": "return;", "parent": 611, "children": [], "start_point": {"row": 168, "column": 2}, "end_point": {"row": 168, "column": 9}}, {"id": 641, "type": "assignment_expression", "text": "p = ct->rtab", "parent": 486, "children": [642, 643, 644], "start_point": {"row": 172, "column": 1}, "end_point": {"row": 172, "column": 13}}, {"id": 642, "type": "identifier", "text": "p", "parent": 641, "children": [], "start_point": {"row": 172, "column": 1}, "end_point": {"row": 172, "column": 2}}, {"id": 643, "type": "=", "text": "=", "parent": 641, "children": [], "start_point": {"row": 172, "column": 3}, "end_point": {"row": 172, "column": 4}}, {"id": 644, "type": "field_expression", "text": "ct->rtab", "parent": 641, "children": [645, 646], "start_point": {"row": 172, "column": 5}, "end_point": {"row": 172, "column": 13}}, {"id": 645, "type": "identifier", "text": "ct", "parent": 644, "children": [], "start_point": {"row": 172, "column": 5}, "end_point": {"row": 172, "column": 7}}, {"id": 646, "type": "field_identifier", "text": "rtab", "parent": 644, "children": [], "start_point": {"row": 172, "column": 9}, "end_point": {"row": 172, "column": 13}}, {"id": 647, "type": "assignment_expression", "text": "ct->nrtab *= 4", "parent": 486, "children": [648, 651, 652], "start_point": {"row": 173, "column": 1}, "end_point": {"row": 173, "column": 15}}, {"id": 648, "type": "field_expression", "text": "ct->nrtab", "parent": 647, "children": [649, 650], "start_point": {"row": 173, "column": 1}, "end_point": {"row": 173, "column": 10}}, {"id": 649, "type": "identifier", "text": "ct", "parent": 648, "children": [], "start_point": {"row": 173, "column": 1}, "end_point": {"row": 173, "column": 3}}, {"id": 650, "type": "field_identifier", "text": "nrtab", "parent": 648, "children": [], "start_point": {"row": 173, "column": 5}, "end_point": {"row": 173, "column": 10}}, {"id": 651, "type": "*=", "text": "*=", "parent": 647, "children": [], "start_point": {"row": 173, "column": 11}, "end_point": {"row": 173, "column": 13}}, {"id": 652, "type": "number_literal", "text": "4", "parent": 647, "children": [], "start_point": {"row": 173, "column": 14}, "end_point": {"row": 173, "column": 15}}, {"id": 653, "type": "assignment_expression", "text": "ct->rtab = sbrk((ct->nrtab+Nrlook+1)*sizeof(RWlock*))", "parent": 486, "children": [654, 657, 658], "start_point": {"row": 174, "column": 1}, "end_point": {"row": 174, "column": 54}}, {"id": 654, "type": "field_expression", "text": "ct->rtab", "parent": 653, "children": [655, 656], "start_point": {"row": 174, "column": 1}, "end_point": {"row": 174, "column": 9}}, {"id": 655, "type": "identifier", "text": "ct", "parent": 654, "children": [], "start_point": {"row": 174, "column": 1}, "end_point": {"row": 174, "column": 3}}, {"id": 656, "type": "field_identifier", "text": "rtab", "parent": 654, "children": [], "start_point": {"row": 174, "column": 5}, "end_point": {"row": 174, "column": 9}}, {"id": 657, "type": "=", "text": "=", "parent": 653, "children": [], "start_point": {"row": 174, "column": 10}, "end_point": {"row": 174, "column": 11}}, {"id": 658, "type": "call_expression", "text": "sbrk((ct->nrtab+Nrlook+1)*sizeof(RWlock*))", "parent": 653, "children": [659, 660], "start_point": {"row": 174, "column": 12}, "end_point": {"row": 174, "column": 54}}, {"id": 659, "type": "identifier", "text": "sbrk", "parent": 658, "children": [], "start_point": {"row": 174, "column": 12}, "end_point": {"row": 174, "column": 16}}, {"id": 660, "type": "argument_list", "text": "((ct->nrtab+Nrlook+1)*sizeof(RWlock*))", "parent": 658, "children": [661], "start_point": {"row": 174, "column": 16}, "end_point": {"row": 174, "column": 54}}, {"id": 661, "type": "binary_expression", "text": "(ct->nrtab+Nrlook+1)*sizeof(RWlock*)", "parent": 660, "children": [662, 672, 673], "start_point": {"row": 174, "column": 17}, "end_point": {"row": 174, "column": 53}}, {"id": 662, "type": "parenthesized_expression", "text": "(ct->nrtab+Nrlook+1)", "parent": 661, "children": [663], "start_point": {"row": 174, "column": 17}, "end_point": {"row": 174, "column": 37}}, {"id": 663, "type": "binary_expression", "text": "ct->nrtab+Nrlook+1", "parent": 662, "children": [664, 670, 671], "start_point": {"row": 174, "column": 18}, "end_point": {"row": 174, "column": 36}}, {"id": 664, "type": "binary_expression", "text": "ct->nrtab+Nrlook", "parent": 663, "children": [665, 668, 669], "start_point": {"row": 174, "column": 18}, "end_point": {"row": 174, "column": 34}}, {"id": 665, "type": "field_expression", "text": "ct->nrtab", "parent": 664, "children": [666, 667], "start_point": {"row": 174, "column": 18}, "end_point": {"row": 174, "column": 27}}, {"id": 666, "type": "identifier", "text": "ct", "parent": 665, "children": [], "start_point": {"row": 174, "column": 18}, "end_point": {"row": 174, "column": 20}}, {"id": 667, "type": "field_identifier", "text": "nrtab", "parent": 665, "children": [], "start_point": {"row": 174, "column": 22}, "end_point": {"row": 174, "column": 27}}, {"id": 668, "type": "+", "text": "+", "parent": 664, "children": [], "start_point": {"row": 174, "column": 27}, "end_point": {"row": 174, "column": 28}}, {"id": 669, "type": "identifier", "text": "Nrlook", "parent": 664, "children": [], "start_point": {"row": 174, "column": 28}, "end_point": {"row": 174, "column": 34}}, {"id": 670, "type": "+", "text": "+", "parent": 663, "children": [], "start_point": {"row": 174, "column": 34}, "end_point": {"row": 174, "column": 35}}, {"id": 671, "type": "number_literal", "text": "1", "parent": 663, "children": [], "start_point": {"row": 174, "column": 35}, "end_point": {"row": 174, "column": 36}}, {"id": 672, "type": "*", "text": "*", "parent": 661, "children": [], "start_point": {"row": 174, "column": 37}, "end_point": {"row": 174, "column": 38}}, {"id": 673, "type": "sizeof_expression", "text": "sizeof(RWlock*)", "parent": 661, "children": [674], "start_point": {"row": 174, "column": 38}, "end_point": {"row": 174, "column": 53}}, {"id": 674, "type": "type_descriptor", "text": "RWlock*", "parent": 673, "children": [675, 676], "start_point": {"row": 174, "column": 45}, "end_point": {"row": 174, "column": 52}}, {"id": 675, "type": "type_identifier", "text": "RWlock", "parent": 674, "children": [], "start_point": {"row": 174, "column": 45}, "end_point": {"row": 174, "column": 51}}, {"id": 676, "type": "abstract_pointer_declarator", "text": "*", "parent": 674, "children": [677], "start_point": {"row": 174, "column": 51}, "end_point": {"row": 174, "column": 52}}, {"id": 677, "type": "*", "text": "*", "parent": 676, "children": [], "start_point": {"row": 174, "column": 51}, "end_point": {"row": 174, "column": 52}}, {"id": 678, "type": "assignment_expression", "text": "n += Nrlook+1", "parent": 486, "children": [679, 680, 681], "start_point": {"row": 175, "column": 1}, "end_point": {"row": 175, "column": 14}}, {"id": 679, "type": "identifier", "text": "n", "parent": 678, "children": [], "start_point": {"row": 175, "column": 1}, "end_point": {"row": 175, "column": 2}}, {"id": 680, "type": "+=", "text": "+=", "parent": 678, "children": [], "start_point": {"row": 175, "column": 3}, "end_point": {"row": 175, "column": 5}}, {"id": 681, "type": "binary_expression", "text": "Nrlook+1", "parent": 678, "children": [682, 683, 684], "start_point": {"row": 175, "column": 6}, "end_point": {"row": 175, "column": 14}}, {"id": 682, "type": "identifier", "text": "Nrlook", "parent": 681, "children": [], "start_point": {"row": 175, "column": 6}, "end_point": {"row": 175, "column": 12}}, {"id": 683, "type": "+", "text": "+", "parent": 681, "children": [], "start_point": {"row": 175, "column": 12}, "end_point": {"row": 175, "column": 13}}, {"id": 684, "type": "number_literal", "text": "1", "parent": 681, "children": [], "start_point": {"row": 175, "column": 13}, "end_point": {"row": 175, "column": 14}}, {"id": 685, "type": "for_statement", "text": "for(i=0; i<n; i++) {\n\t\tif(p[i] == 0)\n\t\t\tcontinue;\n\t\tp[i]->hash = 0;\n\t\taddrlock(p[i]);\n\t}", "parent": 486, "children": [686, 690, 694], "start_point": {"row": 176, "column": 1}, "end_point": {"row": 181, "column": 2}}, {"id": 686, "type": "assignment_expression", "text": "i=0", "parent": 685, "children": [687, 688, 689], "start_point": {"row": 176, "column": 5}, "end_point": {"row": 176, "column": 8}}, {"id": 687, "type": "identifier", "text": "i", "parent": 686, "children": [], "start_point": {"row": 176, "column": 5}, "end_point": {"row": 176, "column": 6}}, {"id": 688, "type": "=", "text": "=", "parent": 686, "children": [], "start_point": {"row": 176, "column": 6}, "end_point": {"row": 176, "column": 7}}, {"id": 689, "type": "number_literal", "text": "0", "parent": 686, "children": [], "start_point": {"row": 176, "column": 7}, "end_point": {"row": 176, "column": 8}}, {"id": 690, "type": "binary_expression", "text": "i<n", "parent": 685, "children": [691, 692, 693], "start_point": {"row": 176, "column": 10}, "end_point": {"row": 176, "column": 13}}, {"id": 691, "type": "identifier", "text": "i", "parent": 690, "children": [], "start_point": {"row": 176, "column": 10}, "end_point": {"row": 176, "column": 11}}, {"id": 692, "type": "<", "text": "<", "parent": 690, "children": [], "start_point": {"row": 176, "column": 11}, "end_point": {"row": 176, "column": 12}}, {"id": 693, "type": "identifier", "text": "n", "parent": 690, "children": [], "start_point": {"row": 176, "column": 12}, "end_point": {"row": 176, "column": 13}}, {"id": 694, "type": "update_expression", "text": "i++", "parent": 685, "children": [695, 696], "start_point": {"row": 176, "column": 15}, "end_point": {"row": 176, "column": 18}}, {"id": 695, "type": "identifier", "text": "i", "parent": 694, "children": [], "start_point": {"row": 176, "column": 15}, "end_point": {"row": 176, "column": 16}}, {"id": 696, "type": "++", "text": "++", "parent": 694, "children": [], "start_point": {"row": 176, "column": 16}, "end_point": {"row": 176, "column": 18}}, {"id": 697, "type": "if_statement", "text": "if(p[i] == 0)\n\t\t\tcontinue;", "parent": 685, "children": [698, 705], "start_point": {"row": 177, "column": 2}, "end_point": {"row": 178, "column": 12}}, {"id": 698, "type": "parenthesized_expression", "text": "(p[i] == 0)", "parent": 697, "children": [699], "start_point": {"row": 177, "column": 4}, "end_point": {"row": 177, "column": 15}}, {"id": 699, "type": "binary_expression", "text": "p[i] == 0", "parent": 698, "children": [700, 703, 704], "start_point": {"row": 177, "column": 5}, "end_point": {"row": 177, "column": 14}}, {"id": 700, "type": "subscript_expression", "text": "p[i]", "parent": 699, "children": [701, 702], "start_point": {"row": 177, "column": 5}, "end_point": {"row": 177, "column": 9}}, {"id": 701, "type": "identifier", "text": "p", "parent": 700, "children": [], "start_point": {"row": 177, "column": 5}, "end_point": {"row": 177, "column": 6}}, {"id": 702, "type": "identifier", "text": "i", "parent": 700, "children": [], "start_point": {"row": 177, "column": 7}, "end_point": {"row": 177, "column": 8}}, {"id": 703, "type": "==", "text": "==", "parent": 699, "children": [], "start_point": {"row": 177, "column": 10}, "end_point": {"row": 177, "column": 12}}, {"id": 704, "type": "number_literal", "text": "0", "parent": 699, "children": [], "start_point": {"row": 177, "column": 13}, "end_point": {"row": 177, "column": 14}}, {"id": 705, "type": "continue_statement", "text": "continue;", "parent": 697, "children": [706], "start_point": {"row": 178, "column": 3}, "end_point": {"row": 178, "column": 12}}, {"id": 706, "type": "continue", "text": "continue", "parent": 705, "children": [], "start_point": {"row": 178, "column": 3}, "end_point": {"row": 178, "column": 11}}, {"id": 707, "type": "assignment_expression", "text": "p[i]->hash = 0", "parent": 685, "children": [708, 713, 714], "start_point": {"row": 179, "column": 2}, "end_point": {"row": 179, "column": 16}}, {"id": 708, "type": "field_expression", "text": "p[i]->hash", "parent": 707, "children": [709, 712], "start_point": {"row": 179, "column": 2}, "end_point": {"row": 179, "column": 12}}, {"id": 709, "type": "subscript_expression", "text": "p[i]", "parent": 708, "children": [710, 711], "start_point": {"row": 179, "column": 2}, "end_point": {"row": 179, "column": 6}}, {"id": 710, "type": "identifier", "text": "p", "parent": 709, "children": [], "start_point": {"row": 179, "column": 2}, "end_point": {"row": 179, "column": 3}}, {"id": 711, "type": "identifier", "text": "i", "parent": 709, "children": [], "start_point": {"row": 179, "column": 4}, "end_point": {"row": 179, "column": 5}}, {"id": 712, "type": "field_identifier", "text": "hash", "parent": 708, "children": [], "start_point": {"row": 179, "column": 8}, "end_point": {"row": 179, "column": 12}}, {"id": 713, "type": "=", "text": "=", "parent": 707, "children": [], "start_point": {"row": 179, "column": 13}, "end_point": {"row": 179, "column": 14}}, {"id": 714, "type": "number_literal", "text": "0", "parent": 707, "children": [], "start_point": {"row": 179, "column": 15}, "end_point": {"row": 179, "column": 16}}, {"id": 715, "type": "call_expression", "text": "addrlock(p[i])", "parent": 685, "children": [716, 717], "start_point": {"row": 180, "column": 2}, "end_point": {"row": 180, "column": 16}}, {"id": 716, "type": "identifier", "text": "addrlock", "parent": 715, "children": [], "start_point": {"row": 180, "column": 2}, "end_point": {"row": 180, "column": 10}}, {"id": 717, "type": "argument_list", "text": "(p[i])", "parent": 715, "children": [718], "start_point": {"row": 180, "column": 10}, "end_point": {"row": 180, "column": 16}}, {"id": 718, "type": "subscript_expression", "text": "p[i]", "parent": 717, "children": [719, 720], "start_point": {"row": 180, "column": 11}, "end_point": {"row": 180, "column": 15}}, {"id": 719, "type": "identifier", "text": "p", "parent": 718, "children": [], "start_point": {"row": 180, "column": 11}, "end_point": {"row": 180, "column": 12}}, {"id": 720, "type": "identifier", "text": "i", "parent": 718, "children": [], "start_point": {"row": 180, "column": 13}, "end_point": {"row": 180, "column": 14}}, {"id": 721, "type": "function_definition", "text": "static void\nsubrlock(RWlock *q)\n{\n\tuint h;\n\tint i;\n\tThread *ct;\n\tRWlock **p;\n\n\tct = CT;\n\n\th = q->hash;\n\n\tp = ct->rtab+h;\n\tfor(i = 0; i < Nrlook; i++, p++) {\n\t\tif(*p == q) {\n\t\t\t*p = 0;\n\t\t\treturn;\n\t\t}\n\t}\n\n\tassert(0);\n}", "parent": null, "children": [722, 723], "start_point": {"row": 186, "column": 0}, "end_point": {"row": 207, "column": 1}}, {"id": 722, "type": "primitive_type", "text": "void", "parent": 721, "children": [], "start_point": {"row": 186, "column": 7}, "end_point": {"row": 186, "column": 11}}, {"id": 723, "type": "function_declarator", "text": "subrlock(RWlock *q)", "parent": 721, "children": [724, 725], "start_point": {"row": 187, "column": 0}, "end_point": {"row": 187, "column": 19}}, {"id": 724, "type": "identifier", "text": "subrlock", "parent": 723, "children": [], "start_point": {"row": 187, "column": 0}, "end_point": {"row": 187, "column": 8}}, {"id": 725, "type": "parameter_list", "text": "(RWlock *q)", "parent": 723, "children": [726], "start_point": {"row": 187, "column": 8}, "end_point": {"row": 187, "column": 19}}, {"id": 726, "type": "parameter_declaration", "text": "RWlock *q", "parent": 725, "children": [727, 728], "start_point": {"row": 187, "column": 9}, "end_point": {"row": 187, "column": 18}}, {"id": 727, "type": "type_identifier", "text": "RWlock", "parent": 726, "children": [], "start_point": {"row": 187, "column": 9}, "end_point": {"row": 187, "column": 15}}, {"id": 728, "type": "pointer_declarator", "text": "*q", "parent": 726, "children": [729, 730], "start_point": {"row": 187, "column": 16}, "end_point": {"row": 187, "column": 18}}, {"id": 729, "type": "*", "text": "*", "parent": 728, "children": [], "start_point": {"row": 187, "column": 16}, "end_point": {"row": 187, "column": 17}}, {"id": 730, "type": "identifier", "text": "q", "parent": 728, "children": [], "start_point": {"row": 187, "column": 17}, "end_point": {"row": 187, "column": 18}}, {"id": 731, "type": "declaration", "text": "uint h;", "parent": 721, "children": [732, 733], "start_point": {"row": 189, "column": 1}, "end_point": {"row": 189, "column": 8}}, {"id": 732, "type": "type_identifier", "text": "uint", "parent": 731, "children": [], "start_point": {"row": 189, "column": 1}, "end_point": {"row": 189, "column": 5}}, {"id": 733, "type": "identifier", "text": "h", "parent": 731, "children": [], "start_point": {"row": 189, "column": 6}, "end_point": {"row": 189, "column": 7}}, {"id": 734, "type": "declaration", "text": "int i;", "parent": 721, "children": [735, 736], "start_point": {"row": 190, "column": 1}, "end_point": {"row": 190, "column": 7}}, {"id": 735, "type": "primitive_type", "text": "int", "parent": 734, "children": [], "start_point": {"row": 190, "column": 1}, "end_point": {"row": 190, "column": 4}}, {"id": 736, "type": "identifier", "text": "i", "parent": 734, "children": [], "start_point": {"row": 190, "column": 5}, "end_point": {"row": 190, "column": 6}}, {"id": 737, "type": "declaration", "text": "Thread *ct;", "parent": 721, "children": [738, 739], "start_point": {"row": 191, "column": 1}, "end_point": {"row": 191, "column": 12}}, {"id": 738, "type": "type_identifier", "text": "Thread", "parent": 737, "children": [], "start_point": {"row": 191, "column": 1}, "end_point": {"row": 191, "column": 7}}, {"id": 739, "type": "pointer_declarator", "text": "*ct", "parent": 737, "children": [740, 741], "start_point": {"row": 191, "column": 8}, "end_point": {"row": 191, "column": 11}}, {"id": 740, "type": "*", "text": "*", "parent": 739, "children": [], "start_point": {"row": 191, "column": 8}, "end_point": {"row": 191, "column": 9}}, {"id": 741, "type": "identifier", "text": "ct", "parent": 739, "children": [], "start_point": {"row": 191, "column": 9}, "end_point": {"row": 191, "column": 11}}, {"id": 742, "type": "declaration", "text": "RWlock **p;", "parent": 721, "children": [743, 744], "start_point": {"row": 192, "column": 1}, "end_point": {"row": 192, "column": 12}}, {"id": 743, "type": "type_identifier", "text": "RWlock", "parent": 742, "children": [], "start_point": {"row": 192, "column": 1}, "end_point": {"row": 192, "column": 7}}, {"id": 744, "type": "pointer_declarator", "text": "**p", "parent": 742, "children": [745, 746], "start_point": {"row": 192, "column": 8}, "end_point": {"row": 192, "column": 11}}, {"id": 745, "type": "*", "text": "*", "parent": 744, "children": [], "start_point": {"row": 192, "column": 8}, "end_point": {"row": 192, "column": 9}}, {"id": 746, "type": "pointer_declarator", "text": "*p", "parent": 744, "children": [747, 748], "start_point": {"row": 192, "column": 9}, "end_point": {"row": 192, "column": 11}}, {"id": 747, "type": "*", "text": "*", "parent": 746, "children": [], "start_point": {"row": 192, "column": 9}, "end_point": {"row": 192, "column": 10}}, {"id": 748, "type": "identifier", "text": "p", "parent": 746, "children": [], "start_point": {"row": 192, "column": 10}, "end_point": {"row": 192, "column": 11}}, {"id": 749, "type": "assignment_expression", "text": "ct = CT", "parent": 721, "children": [750, 751, 752], "start_point": {"row": 194, "column": 1}, "end_point": {"row": 194, "column": 8}}, {"id": 750, "type": "identifier", "text": "ct", "parent": 749, "children": [], "start_point": {"row": 194, "column": 1}, "end_point": {"row": 194, "column": 3}}, {"id": 751, "type": "=", "text": "=", "parent": 749, "children": [], "start_point": {"row": 194, "column": 4}, "end_point": {"row": 194, "column": 5}}, {"id": 752, "type": "identifier", "text": "CT", "parent": 749, "children": [], "start_point": {"row": 194, "column": 6}, "end_point": {"row": 194, "column": 8}}, {"id": 753, "type": "assignment_expression", "text": "h = q->hash", "parent": 721, "children": [754, 755, 756], "start_point": {"row": 196, "column": 1}, "end_point": {"row": 196, "column": 12}}, {"id": 754, "type": "identifier", "text": "h", "parent": 753, "children": [], "start_point": {"row": 196, "column": 1}, "end_point": {"row": 196, "column": 2}}, {"id": 755, "type": "=", "text": "=", "parent": 753, "children": [], "start_point": {"row": 196, "column": 3}, "end_point": {"row": 196, "column": 4}}, {"id": 756, "type": "field_expression", "text": "q->hash", "parent": 753, "children": [757, 758], "start_point": {"row": 196, "column": 5}, "end_point": {"row": 196, "column": 12}}, {"id": 757, "type": "identifier", "text": "q", "parent": 756, "children": [], "start_point": {"row": 196, "column": 5}, "end_point": {"row": 196, "column": 6}}, {"id": 758, "type": "field_identifier", "text": "hash", "parent": 756, "children": [], "start_point": {"row": 196, "column": 8}, "end_point": {"row": 196, "column": 12}}, {"id": 759, "type": "assignment_expression", "text": "p = ct->rtab+h", "parent": 721, "children": [760, 761, 762], "start_point": {"row": 198, "column": 1}, "end_point": {"row": 198, "column": 15}}, {"id": 760, "type": "identifier", "text": "p", "parent": 759, "children": [], "start_point": {"row": 198, "column": 1}, "end_point": {"row": 198, "column": 2}}, {"id": 761, "type": "=", "text": "=", "parent": 759, "children": [], "start_point": {"row": 198, "column": 3}, "end_point": {"row": 198, "column": 4}}, {"id": 762, "type": "binary_expression", "text": "ct->rtab+h", "parent": 759, "children": [763, 766, 767], "start_point": {"row": 198, "column": 5}, "end_point": {"row": 198, "column": 15}}, {"id": 763, "type": "field_expression", "text": "ct->rtab", "parent": 762, "children": [764, 765], "start_point": {"row": 198, "column": 5}, "end_point": {"row": 198, "column": 13}}, {"id": 764, "type": "identifier", "text": "ct", "parent": 763, "children": [], "start_point": {"row": 198, "column": 5}, "end_point": {"row": 198, "column": 7}}, {"id": 765, "type": "field_identifier", "text": "rtab", "parent": 763, "children": [], "start_point": {"row": 198, "column": 9}, "end_point": {"row": 198, "column": 13}}, {"id": 766, "type": "+", "text": "+", "parent": 762, "children": [], "start_point": {"row": 198, "column": 13}, "end_point": {"row": 198, "column": 14}}, {"id": 767, "type": "identifier", "text": "h", "parent": 762, "children": [], "start_point": {"row": 198, "column": 14}, "end_point": {"row": 198, "column": 15}}, {"id": 768, "type": "for_statement", "text": "for(i = 0; i < Nrlook; i++, p++) {\n\t\tif(*p == q) {\n\t\t\t*p = 0;\n\t\t\treturn;\n\t\t}\n\t}", "parent": 721, "children": [769, 773, 777], "start_point": {"row": 199, "column": 1}, "end_point": {"row": 204, "column": 2}}, {"id": 769, "type": "assignment_expression", "text": "i = 0", "parent": 768, "children": [770, 771, 772], "start_point": {"row": 199, "column": 5}, "end_point": {"row": 199, "column": 10}}, {"id": 770, "type": "identifier", "text": "i", "parent": 769, "children": [], "start_point": {"row": 199, "column": 5}, "end_point": {"row": 199, "column": 6}}, {"id": 771, "type": "=", "text": "=", "parent": 769, "children": [], "start_point": {"row": 199, "column": 7}, "end_point": {"row": 199, "column": 8}}, {"id": 772, "type": "number_literal", "text": "0", "parent": 769, "children": [], "start_point": {"row": 199, "column": 9}, "end_point": {"row": 199, "column": 10}}, {"id": 773, "type": "binary_expression", "text": "i < Nrlook", "parent": 768, "children": [774, 775, 776], "start_point": {"row": 199, "column": 12}, "end_point": {"row": 199, "column": 22}}, {"id": 774, "type": "identifier", "text": "i", "parent": 773, "children": [], "start_point": {"row": 199, "column": 12}, "end_point": {"row": 199, "column": 13}}, {"id": 775, "type": "<", "text": "<", "parent": 773, "children": [], "start_point": {"row": 199, "column": 14}, "end_point": {"row": 199, "column": 15}}, {"id": 776, "type": "identifier", "text": "Nrlook", "parent": 773, "children": [], "start_point": {"row": 199, "column": 16}, "end_point": {"row": 199, "column": 22}}, {"id": 777, "type": "comma_expression", "text": "i++, p++", "parent": 768, "children": [778, 781], "start_point": {"row": 199, "column": 24}, "end_point": {"row": 199, "column": 32}}, {"id": 778, "type": "update_expression", "text": "i++", "parent": 777, "children": [779, 780], "start_point": {"row": 199, "column": 24}, "end_point": {"row": 199, "column": 27}}, {"id": 779, "type": "identifier", "text": "i", "parent": 778, "children": [], "start_point": {"row": 199, "column": 24}, "end_point": {"row": 199, "column": 25}}, {"id": 780, "type": "++", "text": "++", "parent": 778, "children": [], "start_point": {"row": 199, "column": 25}, "end_point": {"row": 199, "column": 27}}, {"id": 781, "type": "update_expression", "text": "p++", "parent": 777, "children": [782, 783], "start_point": {"row": 199, "column": 29}, "end_point": {"row": 199, "column": 32}}, {"id": 782, "type": "identifier", "text": "p", "parent": 781, "children": [], "start_point": {"row": 199, "column": 29}, "end_point": {"row": 199, "column": 30}}, {"id": 783, "type": "++", "text": "++", "parent": 781, "children": [], "start_point": {"row": 199, "column": 30}, "end_point": {"row": 199, "column": 32}}, {"id": 784, "type": "if_statement", "text": "if(*p == q) {\n\t\t\t*p = 0;\n\t\t\treturn;\n\t\t}", "parent": 768, "children": [785], "start_point": {"row": 200, "column": 2}, "end_point": {"row": 203, "column": 3}}, {"id": 785, "type": "parenthesized_expression", "text": "(*p == q)", "parent": 784, "children": [786], "start_point": {"row": 200, "column": 4}, "end_point": {"row": 200, "column": 13}}, {"id": 786, "type": "binary_expression", "text": "*p == q", "parent": 785, "children": [787, 790, 791], "start_point": {"row": 200, "column": 5}, "end_point": {"row": 200, "column": 12}}, {"id": 787, "type": "pointer_expression", "text": "*p", "parent": 786, "children": [788, 789], "start_point": {"row": 200, "column": 5}, "end_point": {"row": 200, "column": 7}}, {"id": 788, "type": "*", "text": "*", "parent": 787, "children": [], "start_point": {"row": 200, "column": 5}, "end_point": {"row": 200, "column": 6}}, {"id": 789, "type": "identifier", "text": "p", "parent": 787, "children": [], "start_point": {"row": 200, "column": 6}, "end_point": {"row": 200, "column": 7}}, {"id": 790, "type": "==", "text": "==", "parent": 786, "children": [], "start_point": {"row": 200, "column": 8}, "end_point": {"row": 200, "column": 10}}, {"id": 791, "type": "identifier", "text": "q", "parent": 786, "children": [], "start_point": {"row": 200, "column": 11}, "end_point": {"row": 200, "column": 12}}, {"id": 792, "type": "assignment_expression", "text": "*p = 0", "parent": 784, "children": [793, 796, 797], "start_point": {"row": 201, "column": 3}, "end_point": {"row": 201, "column": 9}}, {"id": 793, "type": "pointer_expression", "text": "*p", "parent": 792, "children": [794, 795], "start_point": {"row": 201, "column": 3}, "end_point": {"row": 201, "column": 5}}, {"id": 794, "type": "*", "text": "*", "parent": 793, "children": [], "start_point": {"row": 201, "column": 3}, "end_point": {"row": 201, "column": 4}}, {"id": 795, "type": "identifier", "text": "p", "parent": 793, "children": [], "start_point": {"row": 201, "column": 4}, "end_point": {"row": 201, "column": 5}}, {"id": 796, "type": "=", "text": "=", "parent": 792, "children": [], "start_point": {"row": 201, "column": 6}, "end_point": {"row": 201, "column": 7}}, {"id": 797, "type": "number_literal", "text": "0", "parent": 792, "children": [], "start_point": {"row": 201, "column": 8}, "end_point": {"row": 201, "column": 9}}, {"id": 798, "type": "return_statement", "text": "return;", "parent": 784, "children": [], "start_point": {"row": 202, "column": 3}, "end_point": {"row": 202, "column": 10}}, {"id": 799, "type": "call_expression", "text": "assert(0)", "parent": 721, "children": [800, 801], "start_point": {"row": 206, "column": 1}, "end_point": {"row": 206, "column": 10}}, {"id": 800, "type": "identifier", "text": "assert", "parent": 799, "children": [], "start_point": {"row": 206, "column": 1}, "end_point": {"row": 206, "column": 7}}, {"id": 801, "type": "argument_list", "text": "(0)", "parent": 799, "children": [802], "start_point": {"row": 206, "column": 7}, "end_point": {"row": 206, "column": 10}}, {"id": 802, "type": "number_literal", "text": "0", "parent": 801, "children": [], "start_point": {"row": 206, "column": 8}, "end_point": {"row": 206, "column": 9}}, {"id": 803, "type": "function_definition", "text": "int\nholdrlock(RWlock *q)\n{\n\tuint h;\n\tint i;\n\tThread *ct;\n\tRWlock **p;\n\n\tct = CT;\n\n\th = q->hash;\n\n\tp = ct->rtab+h;\n\tfor(i = 0; i < Nrlook; i++, p++) {\n\t\tif(*p == q)\n\t\t\treturn 1;\n\t}\n\n\treturn 0;\n}", "parent": null, "children": [804, 805], "start_point": {"row": 209, "column": 0}, "end_point": {"row": 228, "column": 1}}, {"id": 804, "type": "primitive_type", "text": "int", "parent": 803, "children": [], "start_point": {"row": 209, "column": 0}, "end_point": {"row": 209, "column": 3}}, {"id": 805, "type": "function_declarator", "text": "holdrlock(RWlock *q)", "parent": 803, "children": [806, 807], "start_point": {"row": 210, "column": 0}, "end_point": {"row": 210, "column": 20}}, {"id": 806, "type": "identifier", "text": "holdrlock", "parent": 805, "children": [], "start_point": {"row": 210, "column": 0}, "end_point": {"row": 210, "column": 9}}, {"id": 807, "type": "parameter_list", "text": "(RWlock *q)", "parent": 805, "children": [808], "start_point": {"row": 210, "column": 9}, "end_point": {"row": 210, "column": 20}}, {"id": 808, "type": "parameter_declaration", "text": "RWlock *q", "parent": 807, "children": [809, 810], "start_point": {"row": 210, "column": 10}, "end_point": {"row": 210, "column": 19}}, {"id": 809, "type": "type_identifier", "text": "RWlock", "parent": 808, "children": [], "start_point": {"row": 210, "column": 10}, "end_point": {"row": 210, "column": 16}}, {"id": 810, "type": "pointer_declarator", "text": "*q", "parent": 808, "children": [811, 812], "start_point": {"row": 210, "column": 17}, "end_point": {"row": 210, "column": 19}}, {"id": 811, "type": "*", "text": "*", "parent": 810, "children": [], "start_point": {"row": 210, "column": 17}, "end_point": {"row": 210, "column": 18}}, {"id": 812, "type": "identifier", "text": "q", "parent": 810, "children": [], "start_point": {"row": 210, "column": 18}, "end_point": {"row": 210, "column": 19}}, {"id": 813, "type": "declaration", "text": "uint h;", "parent": 803, "children": [814, 815], "start_point": {"row": 212, "column": 1}, "end_point": {"row": 212, "column": 8}}, {"id": 814, "type": "type_identifier", "text": "uint", "parent": 813, "children": [], "start_point": {"row": 212, "column": 1}, "end_point": {"row": 212, "column": 5}}, {"id": 815, "type": "identifier", "text": "h", "parent": 813, "children": [], "start_point": {"row": 212, "column": 6}, "end_point": {"row": 212, "column": 7}}, {"id": 816, "type": "declaration", "text": "int i;", "parent": 803, "children": [817, 818], "start_point": {"row": 213, "column": 1}, "end_point": {"row": 213, "column": 7}}, {"id": 817, "type": "primitive_type", "text": "int", "parent": 816, "children": [], "start_point": {"row": 213, "column": 1}, "end_point": {"row": 213, "column": 4}}, {"id": 818, "type": "identifier", "text": "i", "parent": 816, "children": [], "start_point": {"row": 213, "column": 5}, "end_point": {"row": 213, "column": 6}}, {"id": 819, "type": "declaration", "text": "Thread *ct;", "parent": 803, "children": [820, 821], "start_point": {"row": 214, "column": 1}, "end_point": {"row": 214, "column": 12}}, {"id": 820, "type": "type_identifier", "text": "Thread", "parent": 819, "children": [], "start_point": {"row": 214, "column": 1}, "end_point": {"row": 214, "column": 7}}, {"id": 821, "type": "pointer_declarator", "text": "*ct", "parent": 819, "children": [822, 823], "start_point": {"row": 214, "column": 8}, "end_point": {"row": 214, "column": 11}}, {"id": 822, "type": "*", "text": "*", "parent": 821, "children": [], "start_point": {"row": 214, "column": 8}, "end_point": {"row": 214, "column": 9}}, {"id": 823, "type": "identifier", "text": "ct", "parent": 821, "children": [], "start_point": {"row": 214, "column": 9}, "end_point": {"row": 214, "column": 11}}, {"id": 824, "type": "declaration", "text": "RWlock **p;", "parent": 803, "children": [825, 826], "start_point": {"row": 215, "column": 1}, "end_point": {"row": 215, "column": 12}}, {"id": 825, "type": "type_identifier", "text": "RWlock", "parent": 824, "children": [], "start_point": {"row": 215, "column": 1}, "end_point": {"row": 215, "column": 7}}, {"id": 826, "type": "pointer_declarator", "text": "**p", "parent": 824, "children": [827, 828], "start_point": {"row": 215, "column": 8}, "end_point": {"row": 215, "column": 11}}, {"id": 827, "type": "*", "text": "*", "parent": 826, "children": [], "start_point": {"row": 215, "column": 8}, "end_point": {"row": 215, "column": 9}}, {"id": 828, "type": "pointer_declarator", "text": "*p", "parent": 826, "children": [829, 830], "start_point": {"row": 215, "column": 9}, "end_point": {"row": 215, "column": 11}}, {"id": 829, "type": "*", "text": "*", "parent": 828, "children": [], "start_point": {"row": 215, "column": 9}, "end_point": {"row": 215, "column": 10}}, {"id": 830, "type": "identifier", "text": "p", "parent": 828, "children": [], "start_point": {"row": 215, "column": 10}, "end_point": {"row": 215, "column": 11}}, {"id": 831, "type": "assignment_expression", "text": "ct = CT", "parent": 803, "children": [832, 833, 834], "start_point": {"row": 217, "column": 1}, "end_point": {"row": 217, "column": 8}}, {"id": 832, "type": "identifier", "text": "ct", "parent": 831, "children": [], "start_point": {"row": 217, "column": 1}, "end_point": {"row": 217, "column": 3}}, {"id": 833, "type": "=", "text": "=", "parent": 831, "children": [], "start_point": {"row": 217, "column": 4}, "end_point": {"row": 217, "column": 5}}, {"id": 834, "type": "identifier", "text": "CT", "parent": 831, "children": [], "start_point": {"row": 217, "column": 6}, "end_point": {"row": 217, "column": 8}}, {"id": 835, "type": "assignment_expression", "text": "h = q->hash", "parent": 803, "children": [836, 837, 838], "start_point": {"row": 219, "column": 1}, "end_point": {"row": 219, "column": 12}}, {"id": 836, "type": "identifier", "text": "h", "parent": 835, "children": [], "start_point": {"row": 219, "column": 1}, "end_point": {"row": 219, "column": 2}}, {"id": 837, "type": "=", "text": "=", "parent": 835, "children": [], "start_point": {"row": 219, "column": 3}, "end_point": {"row": 219, "column": 4}}, {"id": 838, "type": "field_expression", "text": "q->hash", "parent": 835, "children": [839, 840], "start_point": {"row": 219, "column": 5}, "end_point": {"row": 219, "column": 12}}, {"id": 839, "type": "identifier", "text": "q", "parent": 838, "children": [], "start_point": {"row": 219, "column": 5}, "end_point": {"row": 219, "column": 6}}, {"id": 840, "type": "field_identifier", "text": "hash", "parent": 838, "children": [], "start_point": {"row": 219, "column": 8}, "end_point": {"row": 219, "column": 12}}, {"id": 841, "type": "assignment_expression", "text": "p = ct->rtab+h", "parent": 803, "children": [842, 843, 844], "start_point": {"row": 221, "column": 1}, "end_point": {"row": 221, "column": 15}}, {"id": 842, "type": "identifier", "text": "p", "parent": 841, "children": [], "start_point": {"row": 221, "column": 1}, "end_point": {"row": 221, "column": 2}}, {"id": 843, "type": "=", "text": "=", "parent": 841, "children": [], "start_point": {"row": 221, "column": 3}, "end_point": {"row": 221, "column": 4}}, {"id": 844, "type": "binary_expression", "text": "ct->rtab+h", "parent": 841, "children": [845, 848, 849], "start_point": {"row": 221, "column": 5}, "end_point": {"row": 221, "column": 15}}, {"id": 845, "type": "field_expression", "text": "ct->rtab", "parent": 844, "children": [846, 847], "start_point": {"row": 221, "column": 5}, "end_point": {"row": 221, "column": 13}}, {"id": 846, "type": "identifier", "text": "ct", "parent": 845, "children": [], "start_point": {"row": 221, "column": 5}, "end_point": {"row": 221, "column": 7}}, {"id": 847, "type": "field_identifier", "text": "rtab", "parent": 845, "children": [], "start_point": {"row": 221, "column": 9}, "end_point": {"row": 221, "column": 13}}, {"id": 848, "type": "+", "text": "+", "parent": 844, "children": [], "start_point": {"row": 221, "column": 13}, "end_point": {"row": 221, "column": 14}}, {"id": 849, "type": "identifier", "text": "h", "parent": 844, "children": [], "start_point": {"row": 221, "column": 14}, "end_point": {"row": 221, "column": 15}}, {"id": 850, "type": "for_statement", "text": "for(i = 0; i < Nrlook; i++, p++) {\n\t\tif(*p == q)\n\t\t\treturn 1;\n\t}", "parent": 803, "children": [851, 855, 859], "start_point": {"row": 222, "column": 1}, "end_point": {"row": 225, "column": 2}}, {"id": 851, "type": "assignment_expression", "text": "i = 0", "parent": 850, "children": [852, 853, 854], "start_point": {"row": 222, "column": 5}, "end_point": {"row": 222, "column": 10}}, {"id": 852, "type": "identifier", "text": "i", "parent": 851, "children": [], "start_point": {"row": 222, "column": 5}, "end_point": {"row": 222, "column": 6}}, {"id": 853, "type": "=", "text": "=", "parent": 851, "children": [], "start_point": {"row": 222, "column": 7}, "end_point": {"row": 222, "column": 8}}, {"id": 854, "type": "number_literal", "text": "0", "parent": 851, "children": [], "start_point": {"row": 222, "column": 9}, "end_point": {"row": 222, "column": 10}}, {"id": 855, "type": "binary_expression", "text": "i < Nrlook", "parent": 850, "children": [856, 857, 858], "start_point": {"row": 222, "column": 12}, "end_point": {"row": 222, "column": 22}}, {"id": 856, "type": "identifier", "text": "i", "parent": 855, "children": [], "start_point": {"row": 222, "column": 12}, "end_point": {"row": 222, "column": 13}}, {"id": 857, "type": "<", "text": "<", "parent": 855, "children": [], "start_point": {"row": 222, "column": 14}, "end_point": {"row": 222, "column": 15}}, {"id": 858, "type": "identifier", "text": "Nrlook", "parent": 855, "children": [], "start_point": {"row": 222, "column": 16}, "end_point": {"row": 222, "column": 22}}, {"id": 859, "type": "comma_expression", "text": "i++, p++", "parent": 850, "children": [860, 863], "start_point": {"row": 222, "column": 24}, "end_point": {"row": 222, "column": 32}}, {"id": 860, "type": "update_expression", "text": "i++", "parent": 859, "children": [861, 862], "start_point": {"row": 222, "column": 24}, "end_point": {"row": 222, "column": 27}}, {"id": 861, "type": "identifier", "text": "i", "parent": 860, "children": [], "start_point": {"row": 222, "column": 24}, "end_point": {"row": 222, "column": 25}}, {"id": 862, "type": "++", "text": "++", "parent": 860, "children": [], "start_point": {"row": 222, "column": 25}, "end_point": {"row": 222, "column": 27}}, {"id": 863, "type": "update_expression", "text": "p++", "parent": 859, "children": [864, 865], "start_point": {"row": 222, "column": 29}, "end_point": {"row": 222, "column": 32}}, {"id": 864, "type": "identifier", "text": "p", "parent": 863, "children": [], "start_point": {"row": 222, "column": 29}, "end_point": {"row": 222, "column": 30}}, {"id": 865, "type": "++", "text": "++", "parent": 863, "children": [], "start_point": {"row": 222, "column": 30}, "end_point": {"row": 222, "column": 32}}, {"id": 866, "type": "if_statement", "text": "if(*p == q)\n\t\t\treturn 1;", "parent": 850, "children": [867, 874], "start_point": {"row": 223, "column": 2}, "end_point": {"row": 224, "column": 12}}, {"id": 867, "type": "parenthesized_expression", "text": "(*p == q)", "parent": 866, "children": [868], "start_point": {"row": 223, "column": 4}, "end_point": {"row": 223, "column": 13}}, {"id": 868, "type": "binary_expression", "text": "*p == q", "parent": 867, "children": [869, 872, 873], "start_point": {"row": 223, "column": 5}, "end_point": {"row": 223, "column": 12}}, {"id": 869, "type": "pointer_expression", "text": "*p", "parent": 868, "children": [870, 871], "start_point": {"row": 223, "column": 5}, "end_point": {"row": 223, "column": 7}}, {"id": 870, "type": "*", "text": "*", "parent": 869, "children": [], "start_point": {"row": 223, "column": 5}, "end_point": {"row": 223, "column": 6}}, {"id": 871, "type": "identifier", "text": "p", "parent": 869, "children": [], "start_point": {"row": 223, "column": 6}, "end_point": {"row": 223, "column": 7}}, {"id": 872, "type": "==", "text": "==", "parent": 868, "children": [], "start_point": {"row": 223, "column": 8}, "end_point": {"row": 223, "column": 10}}, {"id": 873, "type": "identifier", "text": "q", "parent": 868, "children": [], "start_point": {"row": 223, "column": 11}, "end_point": {"row": 223, "column": 12}}, {"id": 874, "type": "return_statement", "text": "return 1;", "parent": 866, "children": [875], "start_point": {"row": 224, "column": 3}, "end_point": {"row": 224, "column": 12}}, {"id": 875, "type": "number_literal", "text": "1", "parent": 874, "children": [], "start_point": {"row": 224, "column": 10}, "end_point": {"row": 224, "column": 11}}, {"id": 876, "type": "return_statement", "text": "return 0;", "parent": 803, "children": [877], "start_point": {"row": 227, "column": 1}, "end_point": {"row": 227, "column": 10}}, {"id": 877, "type": "number_literal", "text": "0", "parent": 876, "children": [], "start_point": {"row": 227, "column": 8}, "end_point": {"row": 227, "column": 9}}, {"id": 878, "type": "function_definition", "text": "int\nholdrwlock(RWlock *q)\n{\n\treturn holdwlock(q) | holdrlock(q);\n}", "parent": null, "children": [879, 880], "start_point": {"row": 230, "column": 0}, "end_point": {"row": 234, "column": 1}}, {"id": 879, "type": "primitive_type", "text": "int", "parent": 878, "children": [], "start_point": {"row": 230, "column": 0}, "end_point": {"row": 230, "column": 3}}, {"id": 880, "type": "function_declarator", "text": "holdrwlock(RWlock *q)", "parent": 878, "children": [881, 882], "start_point": {"row": 231, "column": 0}, "end_point": {"row": 231, "column": 21}}, {"id": 881, "type": "identifier", "text": "holdrwlock", "parent": 880, "children": [], "start_point": {"row": 231, "column": 0}, "end_point": {"row": 231, "column": 10}}, {"id": 882, "type": "parameter_list", "text": "(RWlock *q)", "parent": 880, "children": [883], "start_point": {"row": 231, "column": 10}, "end_point": {"row": 231, "column": 21}}, {"id": 883, "type": "parameter_declaration", "text": "RWlock *q", "parent": 882, "children": [884, 885], "start_point": {"row": 231, "column": 11}, "end_point": {"row": 231, "column": 20}}, {"id": 884, "type": "type_identifier", "text": "RWlock", "parent": 883, "children": [], "start_point": {"row": 231, "column": 11}, "end_point": {"row": 231, "column": 17}}, {"id": 885, "type": "pointer_declarator", "text": "*q", "parent": 883, "children": [886, 887], "start_point": {"row": 231, "column": 18}, "end_point": {"row": 231, "column": 20}}, {"id": 886, "type": "*", "text": "*", "parent": 885, "children": [], "start_point": {"row": 231, "column": 18}, "end_point": {"row": 231, "column": 19}}, {"id": 887, "type": "identifier", "text": "q", "parent": 885, "children": [], "start_point": {"row": 231, "column": 19}, "end_point": {"row": 231, "column": 20}}, {"id": 888, "type": "return_statement", "text": "return holdwlock(q) | holdrlock(q);", "parent": 878, "children": [889], "start_point": {"row": 233, "column": 1}, "end_point": {"row": 233, "column": 36}}, {"id": 889, "type": "binary_expression", "text": "holdwlock(q) | holdrlock(q)", "parent": 888, "children": [890, 894], "start_point": {"row": 233, "column": 8}, "end_point": {"row": 233, "column": 35}}, {"id": 890, "type": "call_expression", "text": "holdwlock(q)", "parent": 889, "children": [891, 892], "start_point": {"row": 233, "column": 8}, "end_point": {"row": 233, "column": 20}}, {"id": 891, "type": "identifier", "text": "holdwlock", "parent": 890, "children": [], "start_point": {"row": 233, "column": 8}, "end_point": {"row": 233, "column": 17}}, {"id": 892, "type": "argument_list", "text": "(q)", "parent": 890, "children": [893], "start_point": {"row": 233, "column": 17}, "end_point": {"row": 233, "column": 20}}, {"id": 893, "type": "identifier", "text": "q", "parent": 892, "children": [], "start_point": {"row": 233, "column": 18}, "end_point": {"row": 233, "column": 19}}, {"id": 894, "type": "call_expression", "text": "holdrlock(q)", "parent": 889, "children": [895, 896], "start_point": {"row": 233, "column": 23}, "end_point": {"row": 233, "column": 35}}, {"id": 895, "type": "identifier", "text": "holdrlock", "parent": 894, "children": [], "start_point": {"row": 233, "column": 23}, "end_point": {"row": 233, "column": 32}}, {"id": 896, "type": "argument_list", "text": "(q)", "parent": 894, "children": [897], "start_point": {"row": 233, "column": 32}, "end_point": {"row": 233, "column": 35}}, {"id": 897, "type": "identifier", "text": "q", "parent": 896, "children": [], "start_point": {"row": 233, "column": 33}, "end_point": {"row": 233, "column": 34}}]}, "node_categories": {"declarations": {"functions": [16, 26, 34, 36, 134, 136, 186, 188, 260, 262, 336, 338, 393, 395, 469, 471, 486, 488, 721, 723, 803, 805, 878, 880], "variables": [14, 19, 24, 29, 39, 44, 139, 191, 196, 265, 341, 398, 403, 474, 491, 496, 499, 503, 508, 726, 731, 734, 737, 742, 808, 813, 816, 819, 824, 883], "classes": [], "imports": [0, 1], "modules": [], "enums": [3, 4, 5, 6, 10]}, "statements": {"expressions": [50, 53, 54, 58, 59, 60, 67, 68, 72, 76, 79, 80, 83, 86, 87, 91, 96, 97, 98, 103, 106, 107, 111, 112, 119, 123, 126, 127, 130, 144, 147, 148, 152, 153, 154, 159, 160, 164, 168, 171, 172, 177, 180, 181, 199, 202, 203, 206, 207, 211, 218, 221, 224, 229, 230, 231, 236, 239, 242, 243, 246, 249, 253, 256, 257, 271, 274, 275, 279, 280, 281, 288, 289, 293, 297, 300, 301, 304, 308, 314, 315, 318, 321, 322, 325, 329, 332, 333, 346, 349, 350, 354, 355, 356, 357, 363, 364, 370, 375, 378, 379, 384, 387, 388, 408, 411, 412, 415, 418, 419, 425, 431, 432, 433, 438, 441, 442, 446, 447, 454, 458, 461, 462, 465, 480, 481, 522, 528, 532, 533, 540, 541, 542, 543, 544, 555, 559, 563, 571, 572, 582, 586, 587, 590, 593, 596, 597, 605, 606, 616, 620, 621, 624, 628, 629, 635, 644, 648, 654, 658, 661, 662, 663, 664, 665, 673, 681, 690, 694, 698, 699, 700, 708, 709, 715, 718, 756, 762, 763, 773, 777, 778, 781, 785, 786, 787, 793, 799, 838, 844, 845, 855, 859, 860, 863, 867, 868, 869, 889, 890, 894], "assignments": [116, 215, 307, 369, 424, 451, 515, 519, 525, 537, 552, 562, 568, 578, 602, 612, 634, 641, 647, 653, 678, 686, 707, 749, 753, 759, 769, 792, 831, 835, 841, 851], "loops": [49, 270, 577, 611, 685, 768, 850], "conditionals": [7, 11, 17, 20, 23, 27, 30, 33, 37, 40, 43, 45, 48, 51, 55, 56, 57, 61, 62, 69, 70, 73, 75, 77, 81, 82, 84, 88, 89, 92, 94, 95, 99, 100, 104, 108, 109, 113, 114, 117, 120, 122, 124, 128, 129, 131, 133, 137, 140, 143, 145, 149, 150, 151, 155, 156, 161, 162, 165, 167, 169, 173, 174, 178, 182, 183, 189, 192, 195, 198, 200, 204, 205, 208, 209, 212, 214, 216, 219, 220, 222, 225, 228, 232, 237, 238, 240, 244, 245, 247, 250, 251, 254, 258, 259, 263, 266, 269, 272, 276, 277, 278, 282, 283, 290, 291, 294, 296, 298, 302, 303, 305, 309, 310, 312, 313, 316, 317, 319, 323, 324, 326, 330, 334, 335, 339, 342, 345, 347, 351, 352, 353, 358, 359, 365, 366, 371, 372, 374, 376, 380, 381, 385, 389, 390, 396, 399, 402, 404, 407, 409, 413, 414, 416, 420, 421, 423, 426, 427, 430, 434, 435, 439, 443, 444, 448, 449, 452, 455, 457, 459, 463, 464, 466, 468, 472, 475, 478, 482, 483, 485, 489, 492, 495, 497, 498, 501, 502, 504, 507, 509, 514, 516, 518, 520, 523, 524, 526, 529, 530, 531, 534, 538, 547, 549, 551, 553, 556, 560, 564, 565, 567, 569, 573, 574, 576, 579, 583, 585, 588, 591, 594, 599, 601, 603, 607, 608, 610, 613, 617, 619, 622, 625, 627, 631, 637, 639, 642, 645, 646, 649, 650, 655, 656, 659, 666, 667, 669, 675, 679, 682, 687, 691, 693, 695, 697, 701, 702, 710, 711, 712, 716, 719, 720, 724, 727, 730, 732, 733, 736, 738, 741, 743, 748, 750, 752, 754, 757, 758, 760, 764, 765, 767, 770, 774, 776, 779, 782, 784, 789, 791, 795, 800, 806, 809, 812, 814, 815, 818, 820, 823, 825, 830, 832, 834, 836, 839, 840, 842, 846, 847, 849, 852, 856, 858, 861, 864, 866, 871, 873, 881, 884, 887, 891, 893, 895, 897], "returns": [110, 175, 184, 252, 328, 382, 391, 445, 479, 640, 798, 874, 876, 888], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 9, 13, 64, 102, 158, 176, 185, 227, 234, 285, 361, 368, 383, 392, 429, 437, 536, 558, 581, 615, 652, 671, 684, 689, 704, 714, 772, 797, 802, 854, 875, 877], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 16, "universal_type": "function", "name": "unknown", "text_snippet": "addrlock(RWlock *q)"}, {"node_id": 26, "universal_type": "function", "name": "unknown", "text_snippet": "subrlock(RWlock *q)"}, {"node_id": 34, "universal_type": "function", "name": "rlock", "text_snippet": "void\nrlock(RWlock *q)\n{\n\tThread *t;\n\n\tfor(;;) {\n\t\tlock(&q->lk);\n\n\t\tif(q->hold == 0)\n\t\t\tbreak;\r\n\t\tq->"}, {"node_id": 36, "universal_type": "function", "name": "unknown", "text_snippet": "rlock(RWlock *q)"}, {"node_id": 134, "universal_type": "function", "name": "canrlock", "text_snippet": "int\ncanrlock(RWlock *q)\n{\n\tlock(&q->lk);\n\tif(q->hold == 0) {\n\t\tq->readers++;\n\t\taddrlock(q);\n\t\tunlock"}, {"node_id": 136, "universal_type": "function", "name": "unknown", "text_snippet": "canrlock(RWlock *q)"}, {"node_id": 186, "universal_type": "function", "name": "runlock", "text_snippet": "void\nrunlock(RWlock *q)\n{\n\tint n;\n\n\tlock(&q->lk);\n\n\tq->readers--;\n\tsubrlock(q);\n\n\tn = q->readers;\n\ta"}, {"node_id": 188, "universal_type": "function", "name": "unknown", "text_snippet": "runlock(RWlock *q)"}, {"node_id": 260, "universal_type": "function", "name": "wlock", "text_snippet": "void\nwlock(RWlock *q)\n{\n\tfor(;;) {\n\t\tlock(&q->lk);\n\n\t\tif(q->hold == 0)\n\t\t\tbreak;\r\n\t\tq->nwait++;\n\t\tpm"}, {"node_id": 262, "universal_type": "function", "name": "unknown", "text_snippet": "wlock(RWlock *q)"}, {"node_id": 336, "universal_type": "function", "name": "canwlock", "text_snippet": "int\ncanwlock(RWlock *q)\n{\n\tlock(&q->lk);\n\tif(q->hold == 0 && q->readers == 0) {\n\t\tq->hold = CT;\n\t\tun"}, {"node_id": 338, "universal_type": "function", "name": "unknown", "text_snippet": "canwlock(RWlock *q)"}, {"node_id": 393, "universal_type": "function", "name": "wunlock", "text_snippet": "void\nwunlock(RWlock *q)\n{\n\tThread * t;\n\n\tlock(&q->lk);\n\tassert(q->hold == CT);\n\tq->hold = 0;\r\n\tif(q-"}, {"node_id": 395, "universal_type": "function", "name": "unknown", "text_snippet": "wunlock(RWlock *q)"}, {"node_id": 469, "universal_type": "function", "name": "holdwlock", "text_snippet": "int\nholdwlock(RWlock *q)\n{\n\treturn q->hold == CT;\n}"}, {"node_id": 471, "universal_type": "function", "name": "unknown", "text_snippet": "holdwlock(RWlock *q)"}, {"node_id": 486, "universal_type": "function", "name": "addrlock", "text_snippet": "static void\naddrlock(RWlock *q)\n{\n\tuint h;\n\tint i, n;\n\tThread *ct;\n\tRWlock **p;\n\n\n\tct = CT;\n\n\tn = ct"}, {"node_id": 488, "universal_type": "function", "name": "unknown", "text_snippet": "addrlock(RWlock *q)"}, {"node_id": 721, "universal_type": "function", "name": "subrlock", "text_snippet": "static void\nsubrlock(RWlock *q)\n{\n\tuint h;\n\tint i;\n\tThread *ct;\n\tRWlock **p;\n\n\tct = CT;\n\n\th = q->has"}, {"node_id": 723, "universal_type": "function", "name": "unknown", "text_snippet": "subrlock(RWlock *q)"}, {"node_id": 803, "universal_type": "function", "name": "holdrlock", "text_snippet": "int\nholdrlock(RWlock *q)\n{\n\tuint h;\n\tint i;\n\tThread *ct;\n\tRWlock **p;\n\n\tct = CT;\n\n\th = q->hash;\n\n\tp "}, {"node_id": 805, "universal_type": "function", "name": "unknown", "text_snippet": "holdrlock(RWlock *q)"}, {"node_id": 878, "universal_type": "function", "name": "holdrwlock", "text_snippet": "int\nholdrwlock(RWlock *q)\n{\n\treturn holdwlock(q) | holdrlock(q);\n}"}, {"node_id": 880, "universal_type": "function", "name": "unknown", "text_snippet": "holdrwlock(RWlock *q)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"9pm.h\"\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "#include \"9pm.h\"\n\nenum {\n\tHashmul = 151,\n\tHashmod\t= 1000000007,\r\n};\n\nstatic void\taddrlock(RWlock *q);\nstatic void\tsubrlock(RWlock *q);\n\nvoid\nrlock(RWlock *q)\n{\n\tThread *t;\n\n\tfor(;;) {\n\t\tlock(&q->lk);\n\n\t\tif(q->hold == 0)\n\t\t\tbreak;\r\n\t\tq->nwait++;\n\t\tpm_queue(q);\n\t\tunlock(&q->lk);\n\t\tpm_tsleep();\n\t}\n\n\tq->readers++;\n\taddrlock(q);\r\n\tif(q->nwait == 0) {\r\n\t\tunlock(&q->lk);\r\n\t\treturn;\r\n\t}\r\n\r\n\tq->nwait--;\n\tt = pm_dequeue(q);\n\tunlock(&q->lk);\r\n\n\tpm_twakeup(t);\n}\n\nint\ncanrlock(RWlock *q)\n{\n\tlock(&q->lk);\n\tif(q->hold == 0) {\n\t\tq->readers++;\n\t\taddrlock(q);\n\t\tunlock(&q->lk);\n\t\treturn 1;\n\t}\n\tunlock(&q->lk);\n\treturn 0;\n}\n\nvoid\nrunlock(RWlock *q)\n{\n\tint n;\n\n\tlock(&q->lk);\n\n\tq->readers--;\n\tsubrlock(q);\n\n\tn = q->readers;\n\tassert(n >= 0);\n\n\tif(n == 0 && q->hold) {\n\t\tunlock(&q->lk);\n\t\tpm_twakeup(q->hold);\n\t\treturn;\n\t}\n\n\tunlock(&q->lk);\n}\n\nvoid\nwlock(RWlock *q)\n{\n\tfor(;;) {\n\t\tlock(&q->lk);\n\n\t\tif(q->hold == 0)\n\t\t\tbreak;\r\n\t\tq->nwait++;\n\t\tpm_queue(q);\n\t\tunlock(&q->lk);\n\t\tpm_tsleep();\n\t}\n\n\tq->hold = CT;\n\n\tif(q->readers) {\n\t\tunlock(&q->lk);\n\t\tpm_tsleep();\n\t\treturn;\n\t}\n\n\tunlock(&q->lk);\n}\n\nint\ncanwlock(RWlock *q)\n{\n\tlock(&q->lk);\n\tif(q->hold == 0 && q->readers == 0) {\n\t\tq->hold = CT;\n\t\tunlock(&q->lk);\n\t\treturn 1;\n\t}\n\tunlock(&q->lk);\n\treturn 0;\n}\n\nvoid\nwunlock(RWlock *q)\n{\n\tThread * t;\n\n\tlock(&q->lk);\n\tassert(q->hold == CT);\n\tq->hold = 0;\r\n\tif(q->nwait == 0) {\r\n\t\tunlock(&q->lk);\r\n\t\treturn;\r\n\t}\r\n\tq->nwait--;\n\tt = pm_dequeue(q);\n\tunlock(&q->lk);\n\tpm_twakeup(t);\n}\n\nint\nholdwlock(RWlock *q)\n{\n\treturn q->hold == CT;\n}\n\nstatic void\naddrlock(RWlock *q)\n{\n\tuint h;\n\tint i, n;\n\tThread *ct;\n\tRWlock **p;\n\n\n\tct = CT;\n\n\tn = ct->nrtab;\n\n\th = q->hash;\n\tif(h == 0) {\n\t\th = (((int)q * Hashmul) % Hashmod);\n\t\th &= n-1;\n\t\th++;\n\t\tq->hash = h;\n\t}\n\n\tp = ct->rtab+h;\n\tfor(i = 0; i < Nrlook; i++, p++)\n\t\tassert(*p != q);\n\n\tp = ct->rtab+h;\n\tfor(i=0; i < Nrlook; i++, p++) {\n\t\tif(*p)\n\t\t\tcontinue;\n\t\t*p = q;\n\t\treturn;\n\t}\n\n\t/* expand table */\n\tp = ct->rtab;\n\tct->nrtab *= 4;\n\tct->rtab = sbrk((ct->nrtab+Nrlook+1)*sizeof(RWlock*));\n\tn += Nrlook+1;\n\tfor(i=0; i<n; i++) {\n\t\tif(p[i] == 0)\n\t\t\tcontinue;\n\t\tp[i]->hash = 0;\n\t\taddrlock(p[i]);\n\t}\r\n\r\n\t/* free(p); */\n}\n\nstatic void\nsubrlock(RWlock *q)\n{\n\tuint h;\n\tint i;\n\tThread *ct;\n\tRWlock **p;\n\n\tct = CT;\n\n\th = q->hash;\n\n\tp = ct->rtab+h;\n\tfor(i = 0; i < Nrlook; i++, p++) {\n\t\tif(*p == q) {\n\t\t\t*p = 0;\n\t\t\treturn;\n\t\t}\n\t}\n\n\tassert(0);\n}\n\nint\nholdrlock(RWlock *q)\n{\n\tuint h;\n\tint i;\n\tThread *ct;\n\tRWlock **p;\n\n\tct = CT;\n\n\th = q->hash;\n\n\tp = ct->rtab+h;\n\tfor(i = 0; i < Nrlook; i++, p++) {\n\t\tif(*p == q)\n\t\t\treturn 1;\n\t}\n\n\treturn 0;\n}\n\nint\nholdrwlock(RWlock *q)\n{\n\treturn holdwlock(q) | holdrlock(q);\n}\n\n"}
80,249
c
#ifndef MATH_H #define MATH_H int add_demo(int a, int b); #endif
15.25
4
(translation_unit) "#ifndef MATH_H\n#define MATH_H\n\nint add_demo(int a, int b);\n\n#endif\n" (preproc_ifdef) "#ifndef MATH_H\n#define MATH_H\n\nint add_demo(int a, int b);\n\n#endif" (#ifndef) "#ifndef" (identifier) "MATH_H" (preproc_def) "#define MATH_H\n" (#define) "#define" (identifier) "MATH_H" (declaration) "int add_demo(int a, int b);" (primitive_type) "int" (function_declarator) "add_demo(int a, int b)" (identifier) "add_demo" (parameter_list) "(int a, int b)" (() "(" (parameter_declaration) "int a" (primitive_type) "int" (identifier) "a" (,) "," (parameter_declaration) "int b" (primitive_type) "int" (identifier) "b" ()) ")" (;) ";" (#endif) "#endif"
23
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 15.25, "nodes": 18, "errors": 0, "source_hash": "030bc2213335a2e3e4618e46ecae0e199789d1b37d88538f8b57fbc0505d9deb", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef MATH_H\n#define MATH_H\n\nint add_demo(int a, int b);\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 17], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 5, "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": "MATH_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 14}}, {"id": 3, "type": "preproc_def", "text": "#define MATH_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": "MATH_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 14}}, {"id": 6, "type": "declaration", "text": "int add_demo(int a, int b);", "parent": 0, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 27}}, {"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": "add_demo(int a, int b)", "parent": 6, "children": [9, 10], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 26}}, {"id": 9, "type": "identifier", "text": "add_demo", "parent": 8, "children": [], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 12}}, {"id": 10, "type": "parameter_list", "text": "(int a, int b)", "parent": 8, "children": [11, 14], "start_point": {"row": 3, "column": 12}, "end_point": {"row": 3, "column": 26}}, {"id": 11, "type": "parameter_declaration", "text": "int a", "parent": 10, "children": [12, 13], "start_point": {"row": 3, "column": 13}, "end_point": {"row": 3, "column": 18}}, {"id": 12, "type": "primitive_type", "text": "int", "parent": 11, "children": [], "start_point": {"row": 3, "column": 13}, "end_point": {"row": 3, "column": 16}}, {"id": 13, "type": "identifier", "text": "a", "parent": 11, "children": [], "start_point": {"row": 3, "column": 17}, "end_point": {"row": 3, "column": 18}}, {"id": 14, "type": "parameter_declaration", "text": "int b", "parent": 10, "children": [15, 16], "start_point": {"row": 3, "column": 20}, "end_point": {"row": 3, "column": 25}}, {"id": 15, "type": "primitive_type", "text": "int", "parent": 14, "children": [], "start_point": {"row": 3, "column": 20}, "end_point": {"row": 3, "column": 23}}, {"id": 16, "type": "identifier", "text": "b", "parent": 14, "children": [], "start_point": {"row": 3, "column": 24}, "end_point": {"row": 3, "column": 25}}, {"id": 17, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 6}}]}, "node_categories": {"declarations": {"functions": [8], "variables": [6, 11, 14], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 9, 13, 16, 17], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 8, "universal_type": "function", "name": "b)", "text_snippet": "add_demo(int a, int b)"}], "class_declarations": [], "import_statements": []}, "original_source_code": "#ifndef MATH_H\n#define MATH_H\n\nint add_demo(int a, int b);\n\n#endif\n"}
80,250
c
#ifndef CODE_bam_cat #define CODE_bam_cat #include "htslib/htslib/sam.h" int bam_cat(int nfn, char * const *fn, const bam_hdr_t *h, const char* outbam); #endif
31
5
(translation_unit) "#ifndef CODE_bam_cat\n#define CODE_bam_cat\n\n#include "htslib/htslib/sam.h"\n\nint bam_cat(int nfn, char * const *fn, const bam_hdr_t *h, const char* outbam);\n\n#endif\n" (preproc_ifdef) "#ifndef CODE_bam_cat\n#define CODE_bam_cat\n\n#include "htslib/htslib/sam.h"\n\nint bam_cat(int nfn, char * const *fn, const bam_hdr_t *h, const char* outbam);\n\n#endif" (#ifndef) "#ifndef" (identifier) "CODE_bam_cat" (preproc_def) "#define CODE_bam_cat\n" (#define) "#define" (identifier) "CODE_bam_cat" (preproc_include) "#include "htslib/htslib/sam.h"\n" (#include) "#include" (string_literal) ""htslib/htslib/sam.h"" (") """ (string_content) "htslib/htslib/sam.h" (") """ (declaration) "int bam_cat(int nfn, char * const *fn, const bam_hdr_t *h, const char* outbam);" (primitive_type) "int" (function_declarator) "bam_cat(int nfn, char * const *fn, const bam_hdr_t *h, const char* outbam)" (identifier) "bam_cat" (parameter_list) "(int nfn, char * const *fn, const bam_hdr_t *h, const char* outbam)" (() "(" (parameter_declaration) "int nfn" (primitive_type) "int" (identifier) "nfn" (,) "," (parameter_declaration) "char * const *fn" (primitive_type) "char" (pointer_declarator) "* const *fn" (*) "*" (type_qualifier) "const" (const) "const" (pointer_declarator) "*fn" (*) "*" (identifier) "fn" (,) "," (parameter_declaration) "const bam_hdr_t *h" (type_qualifier) "const" (const) "const" (type_identifier) "bam_hdr_t" (pointer_declarator) "*h" (*) "*" (identifier) "h" (,) "," (parameter_declaration) "const char* outbam" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* outbam" (*) "*" (identifier) "outbam" ()) ")" (;) ";" (#endif) "#endif"
51
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 31.0, "nodes": 35, "errors": 0, "source_hash": "d730a66e4059292b7fc2d00b4666facb3eb28637a89fef8754ba6189f7f2ebc7", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef CODE_bam_cat\n#define CODE_bam_cat\n\n#include \"htslib/htslib/sam.h\"\n\nint bam_cat(int nfn, char * const *fn, const bam_hdr_t *h, const char* outbam);\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 34], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 7, "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": "CODE_bam_cat", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 20}}, {"id": 3, "type": "preproc_def", "text": "#define CODE_bam_cat\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": "CODE_bam_cat", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 20}}, {"id": 6, "type": "preproc_include", "text": "#include \"htslib/htslib/sam.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": "\"htslib/htslib/sam.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 30}}, {"id": 9, "type": "declaration", "text": "int bam_cat(int nfn, char * const *fn, const bam_hdr_t *h, const char* outbam);", "parent": 0, "children": [10, 11], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 79}}, {"id": 10, "type": "primitive_type", "text": "int", "parent": 9, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 3}}, {"id": 11, "type": "function_declarator", "text": "bam_cat(int nfn, char * const *fn, const bam_hdr_t *h, const char* outbam)", "parent": 9, "children": [12, 13], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 78}}, {"id": 12, "type": "identifier", "text": "bam_cat", "parent": 11, "children": [], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 11}}, {"id": 13, "type": "parameter_list", "text": "(int nfn, char * const *fn, const bam_hdr_t *h, const char* outbam)", "parent": 11, "children": [14, 17, 24, 29], "start_point": {"row": 5, "column": 11}, "end_point": {"row": 5, "column": 78}}, {"id": 14, "type": "parameter_declaration", "text": "int nfn", "parent": 13, "children": [15, 16], "start_point": {"row": 5, "column": 12}, "end_point": {"row": 5, "column": 19}}, {"id": 15, "type": "primitive_type", "text": "int", "parent": 14, "children": [], "start_point": {"row": 5, "column": 12}, "end_point": {"row": 5, "column": 15}}, {"id": 16, "type": "identifier", "text": "nfn", "parent": 14, "children": [], "start_point": {"row": 5, "column": 16}, "end_point": {"row": 5, "column": 19}}, {"id": 17, "type": "parameter_declaration", "text": "char * const *fn", "parent": 13, "children": [18, 19], "start_point": {"row": 5, "column": 21}, "end_point": {"row": 5, "column": 37}}, {"id": 18, "type": "primitive_type", "text": "char", "parent": 17, "children": [], "start_point": {"row": 5, "column": 21}, "end_point": {"row": 5, "column": 25}}, {"id": 19, "type": "pointer_declarator", "text": "* const *fn", "parent": 17, "children": [20, 21], "start_point": {"row": 5, "column": 26}, "end_point": {"row": 5, "column": 37}}, {"id": 20, "type": "*", "text": "*", "parent": 19, "children": [], "start_point": {"row": 5, "column": 26}, "end_point": {"row": 5, "column": 27}}, {"id": 21, "type": "pointer_declarator", "text": "*fn", "parent": 19, "children": [22, 23], "start_point": {"row": 5, "column": 34}, "end_point": {"row": 5, "column": 37}}, {"id": 22, "type": "*", "text": "*", "parent": 21, "children": [], "start_point": {"row": 5, "column": 34}, "end_point": {"row": 5, "column": 35}}, {"id": 23, "type": "identifier", "text": "fn", "parent": 21, "children": [], "start_point": {"row": 5, "column": 35}, "end_point": {"row": 5, "column": 37}}, {"id": 24, "type": "parameter_declaration", "text": "const bam_hdr_t *h", "parent": 13, "children": [25, 26], "start_point": {"row": 5, "column": 39}, "end_point": {"row": 5, "column": 57}}, {"id": 25, "type": "type_identifier", "text": "bam_hdr_t", "parent": 24, "children": [], "start_point": {"row": 5, "column": 45}, "end_point": {"row": 5, "column": 54}}, {"id": 26, "type": "pointer_declarator", "text": "*h", "parent": 24, "children": [27, 28], "start_point": {"row": 5, "column": 55}, "end_point": {"row": 5, "column": 57}}, {"id": 27, "type": "*", "text": "*", "parent": 26, "children": [], "start_point": {"row": 5, "column": 55}, "end_point": {"row": 5, "column": 56}}, {"id": 28, "type": "identifier", "text": "h", "parent": 26, "children": [], "start_point": {"row": 5, "column": 56}, "end_point": {"row": 5, "column": 57}}, {"id": 29, "type": "parameter_declaration", "text": "const char* outbam", "parent": 13, "children": [30, 31], "start_point": {"row": 5, "column": 59}, "end_point": {"row": 5, "column": 77}}, {"id": 30, "type": "primitive_type", "text": "char", "parent": 29, "children": [], "start_point": {"row": 5, "column": 65}, "end_point": {"row": 5, "column": 69}}, {"id": 31, "type": "pointer_declarator", "text": "* outbam", "parent": 29, "children": [32, 33], "start_point": {"row": 5, "column": 69}, "end_point": {"row": 5, "column": 77}}, {"id": 32, "type": "*", "text": "*", "parent": 31, "children": [], "start_point": {"row": 5, "column": 69}, "end_point": {"row": 5, "column": 70}}, {"id": 33, "type": "identifier", "text": "outbam", "parent": 31, "children": [], "start_point": {"row": 5, "column": 71}, "end_point": {"row": 5, "column": 77}}, {"id": 34, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 6}}]}, "node_categories": {"declarations": {"functions": [11], "variables": [9, 14, 17, 24, 29], "classes": [], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 12, 16, 23, 25, 28, 33, 34], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 11, "universal_type": "function", "name": "unknown", "text_snippet": "bam_cat(int nfn, char * const *fn, const bam_hdr_t *h, const char* outbam)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"htslib/htslib/sam.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#ifndef CODE_bam_cat\n#define CODE_bam_cat\n\n#include \"htslib/htslib/sam.h\"\n\nint bam_cat(int nfn, char * const *fn, const bam_hdr_t *h, const char* outbam);\n\n#endif\n"}
80,251
c
extern int getenv(const char *name); extern int foo(); extern int bar(); int main() { int taint = foo() == 0 ? getenv("gude") : bar(); int a = taint; int nt; if (nt == 0) { int a = 0; } return 0; }
15.43
14
(translation_unit) "extern int getenv(const char *name);\nextern int foo();\nextern int bar();\n\nint\nmain()\n{\n int taint = foo() == 0 ? getenv("gude") : bar();\n int a = taint;\n\n int nt;\n if (nt == 0) {\n int a = 0;\n }\n\n return 0;\n}\n\n" (declaration) "extern int getenv(const char *name);" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (function_declarator) "getenv(const char *name)" (identifier) "getenv" (parameter_list) "(const char *name)" (() "(" (parameter_declaration) "const char *name" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*name" (*) "*" (identifier) "name" ()) ")" (;) ";" (declaration) "extern int foo();" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (function_declarator) "foo()" (identifier) "foo" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "extern int bar();" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (function_declarator) "bar()" (identifier) "bar" (parameter_list) "()" (() "(" ()) ")" (;) ";" (function_definition) "int\nmain()\n{\n int taint = foo() == 0 ? getenv("gude") : bar();\n int a = taint;\n\n int nt;\n if (nt == 0) {\n int a = 0;\n }\n\n return 0;\n}" (primitive_type) "int" (function_declarator) "main()" (identifier) "main" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n int taint = foo() == 0 ? getenv("gude") : bar();\n int a = taint;\n\n int nt;\n if (nt == 0) {\n int a = 0;\n }\n\n return 0;\n}" ({) "{" (declaration) "int taint = foo() == 0 ? getenv("gude") : bar();" (primitive_type) "int" (init_declarator) "taint = foo() == 0 ? getenv("gude") : bar()" (identifier) "taint" (=) "=" (conditional_expression) "foo() == 0 ? getenv("gude") : bar()" (binary_expression) "foo() == 0" (call_expression) "foo()" (identifier) "foo" (argument_list) "()" (() "(" ()) ")" (==) "==" (number_literal) "0" (?) "?" (call_expression) "getenv("gude")" (identifier) "getenv" (argument_list) "("gude")" (() "(" (string_literal) ""gude"" (") """ (string_content) "gude" (") """ ()) ")" (:) ":" (call_expression) "bar()" (identifier) "bar" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "int a = taint;" (primitive_type) "int" (init_declarator) "a = taint" (identifier) "a" (=) "=" (identifier) "taint" (;) ";" (declaration) "int nt;" (primitive_type) "int" (identifier) "nt" (;) ";" (if_statement) "if (nt == 0) {\n int a = 0;\n }" (if) "if" (parenthesized_expression) "(nt == 0)" (() "(" (binary_expression) "nt == 0" (identifier) "nt" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n int a = 0;\n }" ({) "{" (declaration) "int a = 0;" (primitive_type) "int" (init_declarator) "a = 0" (identifier) "a" (=) "=" (number_literal) "0" (;) ";" (}) "}" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
113
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 15.43, "nodes": 74, "errors": 0, "source_hash": "0f5327bd93c5225f13040e95ac0ca0d0dba3c55a367b6173ebc4acf97660d9f8", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "extern int getenv(const char *name);", "parent": null, "children": [1, 3, 4], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 36}}, {"id": 1, "type": "storage_class_specifier", "text": "extern", "parent": 0, "children": [2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 6}}, {"id": 2, "type": "extern", "text": "extern", "parent": 1, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 6}}, {"id": 3, "type": "primitive_type", "text": "int", "parent": 0, "children": [], "start_point": {"row": 0, "column": 7}, "end_point": {"row": 0, "column": 10}}, {"id": 4, "type": "function_declarator", "text": "getenv(const char *name)", "parent": 0, "children": [5, 6], "start_point": {"row": 0, "column": 11}, "end_point": {"row": 0, "column": 35}}, {"id": 5, "type": "identifier", "text": "getenv", "parent": 4, "children": [], "start_point": {"row": 0, "column": 11}, "end_point": {"row": 0, "column": 17}}, {"id": 6, "type": "parameter_list", "text": "(const char *name)", "parent": 4, "children": [7], "start_point": {"row": 0, "column": 17}, "end_point": {"row": 0, "column": 35}}, {"id": 7, "type": "parameter_declaration", "text": "const char *name", "parent": 6, "children": [8, 9], "start_point": {"row": 0, "column": 18}, "end_point": {"row": 0, "column": 34}}, {"id": 8, "type": "primitive_type", "text": "char", "parent": 7, "children": [], "start_point": {"row": 0, "column": 24}, "end_point": {"row": 0, "column": 28}}, {"id": 9, "type": "pointer_declarator", "text": "*name", "parent": 7, "children": [10, 11], "start_point": {"row": 0, "column": 29}, "end_point": {"row": 0, "column": 34}}, {"id": 10, "type": "*", "text": "*", "parent": 9, "children": [], "start_point": {"row": 0, "column": 29}, "end_point": {"row": 0, "column": 30}}, {"id": 11, "type": "identifier", "text": "name", "parent": 9, "children": [], "start_point": {"row": 0, "column": 30}, "end_point": {"row": 0, "column": 34}}, {"id": 12, "type": "declaration", "text": "extern int foo();", "parent": null, "children": [13, 15, 16], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 17}}, {"id": 13, "type": "storage_class_specifier", "text": "extern", "parent": 12, "children": [14], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 6}}, {"id": 14, "type": "extern", "text": "extern", "parent": 13, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 6}}, {"id": 15, "type": "primitive_type", "text": "int", "parent": 12, "children": [], "start_point": {"row": 1, "column": 7}, "end_point": {"row": 1, "column": 10}}, {"id": 16, "type": "function_declarator", "text": "foo()", "parent": 12, "children": [17, 18], "start_point": {"row": 1, "column": 11}, "end_point": {"row": 1, "column": 16}}, {"id": 17, "type": "identifier", "text": "foo", "parent": 16, "children": [], "start_point": {"row": 1, "column": 11}, "end_point": {"row": 1, "column": 14}}, {"id": 18, "type": "parameter_list", "text": "()", "parent": 16, "children": [], "start_point": {"row": 1, "column": 14}, "end_point": {"row": 1, "column": 16}}, {"id": 19, "type": "declaration", "text": "extern int bar();", "parent": null, "children": [20, 22, 23], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 17}}, {"id": 20, "type": "storage_class_specifier", "text": "extern", "parent": 19, "children": [21], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 6}}, {"id": 21, "type": "extern", "text": "extern", "parent": 20, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 6}}, {"id": 22, "type": "primitive_type", "text": "int", "parent": 19, "children": [], "start_point": {"row": 2, "column": 7}, "end_point": {"row": 2, "column": 10}}, {"id": 23, "type": "function_declarator", "text": "bar()", "parent": 19, "children": [24, 25], "start_point": {"row": 2, "column": 11}, "end_point": {"row": 2, "column": 16}}, {"id": 24, "type": "identifier", "text": "bar", "parent": 23, "children": [], "start_point": {"row": 2, "column": 11}, "end_point": {"row": 2, "column": 14}}, {"id": 25, "type": "parameter_list", "text": "()", "parent": 23, "children": [], "start_point": {"row": 2, "column": 14}, "end_point": {"row": 2, "column": 16}}, {"id": 26, "type": "function_definition", "text": "int\nmain()\n{\n int taint = foo() == 0 ? getenv(\"gude\") : bar();\n int a = taint;\n\n int nt;\n if (nt == 0) {\n int a = 0;\n }\n\n return 0;\n}", "parent": null, "children": [27, 28], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 27, "type": "primitive_type", "text": "int", "parent": 26, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 3}}, {"id": 28, "type": "function_declarator", "text": "main()", "parent": 26, "children": [29, 30], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 6}}, {"id": 29, "type": "identifier", "text": "main", "parent": 28, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 4}}, {"id": 30, "type": "parameter_list", "text": "()", "parent": 28, "children": [], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 6}}, {"id": 31, "type": "declaration", "text": "int taint = foo() == 0 ? getenv(\"gude\") : bar();", "parent": 26, "children": [32, 33], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 52}}, {"id": 32, "type": "primitive_type", "text": "int", "parent": 31, "children": [], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 7}}, {"id": 33, "type": "init_declarator", "text": "taint = foo() == 0 ? getenv(\"gude\") : bar()", "parent": 31, "children": [34, 35, 36], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 51}}, {"id": 34, "type": "identifier", "text": "taint", "parent": 33, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 13}}, {"id": 35, "type": "=", "text": "=", "parent": 33, "children": [], "start_point": {"row": 7, "column": 14}, "end_point": {"row": 7, "column": 15}}, {"id": 36, "type": "conditional_expression", "text": "foo() == 0 ? getenv(\"gude\") : bar()", "parent": 33, "children": [37, 43, 44, 48], "start_point": {"row": 7, "column": 16}, "end_point": {"row": 7, "column": 51}}, {"id": 37, "type": "binary_expression", "text": "foo() == 0", "parent": 36, "children": [38, 41, 42], "start_point": {"row": 7, "column": 16}, "end_point": {"row": 7, "column": 26}}, {"id": 38, "type": "call_expression", "text": "foo()", "parent": 37, "children": [39, 40], "start_point": {"row": 7, "column": 16}, "end_point": {"row": 7, "column": 21}}, {"id": 39, "type": "identifier", "text": "foo", "parent": 38, "children": [], "start_point": {"row": 7, "column": 16}, "end_point": {"row": 7, "column": 19}}, {"id": 40, "type": "argument_list", "text": "()", "parent": 38, "children": [], "start_point": {"row": 7, "column": 19}, "end_point": {"row": 7, "column": 21}}, {"id": 41, "type": "==", "text": "==", "parent": 37, "children": [], "start_point": {"row": 7, "column": 22}, "end_point": {"row": 7, "column": 24}}, {"id": 42, "type": "number_literal", "text": "0", "parent": 37, "children": [], "start_point": {"row": 7, "column": 25}, "end_point": {"row": 7, "column": 26}}, {"id": 43, "type": "?", "text": "?", "parent": 36, "children": [], "start_point": {"row": 7, "column": 27}, "end_point": {"row": 7, "column": 28}}, {"id": 44, "type": "call_expression", "text": "getenv(\"gude\")", "parent": 36, "children": [45, 46], "start_point": {"row": 7, "column": 29}, "end_point": {"row": 7, "column": 43}}, {"id": 45, "type": "identifier", "text": "getenv", "parent": 44, "children": [], "start_point": {"row": 7, "column": 29}, "end_point": {"row": 7, "column": 35}}, {"id": 46, "type": "argument_list", "text": "(\"gude\")", "parent": 44, "children": [47], "start_point": {"row": 7, "column": 35}, "end_point": {"row": 7, "column": 43}}, {"id": 47, "type": "string_literal", "text": "\"gude\"", "parent": 46, "children": [], "start_point": {"row": 7, "column": 36}, "end_point": {"row": 7, "column": 42}}, {"id": 48, "type": "call_expression", "text": "bar()", "parent": 36, "children": [49, 50], "start_point": {"row": 7, "column": 46}, "end_point": {"row": 7, "column": 51}}, {"id": 49, "type": "identifier", "text": "bar", "parent": 48, "children": [], "start_point": {"row": 7, "column": 46}, "end_point": {"row": 7, "column": 49}}, {"id": 50, "type": "argument_list", "text": "()", "parent": 48, "children": [], "start_point": {"row": 7, "column": 49}, "end_point": {"row": 7, "column": 51}}, {"id": 51, "type": "declaration", "text": "int a = taint;", "parent": 26, "children": [52, 53], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 18}}, {"id": 52, "type": "primitive_type", "text": "int", "parent": 51, "children": [], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 7}}, {"id": 53, "type": "init_declarator", "text": "a = taint", "parent": 51, "children": [54, 55, 56], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 17}}, {"id": 54, "type": "identifier", "text": "a", "parent": 53, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 9}}, {"id": 55, "type": "=", "text": "=", "parent": 53, "children": [], "start_point": {"row": 8, "column": 10}, "end_point": {"row": 8, "column": 11}}, {"id": 56, "type": "identifier", "text": "taint", "parent": 53, "children": [], "start_point": {"row": 8, "column": 12}, "end_point": {"row": 8, "column": 17}}, {"id": 57, "type": "declaration", "text": "int nt;", "parent": 26, "children": [58, 59], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 11}}, {"id": 58, "type": "primitive_type", "text": "int", "parent": 57, "children": [], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 7}}, {"id": 59, "type": "identifier", "text": "nt", "parent": 57, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 10}}, {"id": 60, "type": "if_statement", "text": "if (nt == 0) {\n int a = 0;\n }", "parent": 26, "children": [61], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 13, "column": 5}}, {"id": 61, "type": "parenthesized_expression", "text": "(nt == 0)", "parent": 60, "children": [62], "start_point": {"row": 11, "column": 7}, "end_point": {"row": 11, "column": 16}}, {"id": 62, "type": "binary_expression", "text": "nt == 0", "parent": 61, "children": [63, 64, 65], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 15}}, {"id": 63, "type": "identifier", "text": "nt", "parent": 62, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 10}}, {"id": 64, "type": "==", "text": "==", "parent": 62, "children": [], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 13}}, {"id": 65, "type": "number_literal", "text": "0", "parent": 62, "children": [], "start_point": {"row": 11, "column": 14}, "end_point": {"row": 11, "column": 15}}, {"id": 66, "type": "declaration", "text": "int a = 0;", "parent": 60, "children": [67, 68], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 18}}, {"id": 67, "type": "primitive_type", "text": "int", "parent": 66, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 11}}, {"id": 68, "type": "init_declarator", "text": "a = 0", "parent": 66, "children": [69, 70, 71], "start_point": {"row": 12, "column": 12}, "end_point": {"row": 12, "column": 17}}, {"id": 69, "type": "identifier", "text": "a", "parent": 68, "children": [], "start_point": {"row": 12, "column": 12}, "end_point": {"row": 12, "column": 13}}, {"id": 70, "type": "=", "text": "=", "parent": 68, "children": [], "start_point": {"row": 12, "column": 14}, "end_point": {"row": 12, "column": 15}}, {"id": 71, "type": "number_literal", "text": "0", "parent": 68, "children": [], "start_point": {"row": 12, "column": 16}, "end_point": {"row": 12, "column": 17}}, {"id": 72, "type": "return_statement", "text": "return 0;", "parent": 26, "children": [73], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 13}}, {"id": 73, "type": "number_literal", "text": "0", "parent": 72, "children": [], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 12}}]}, "node_categories": {"declarations": {"functions": [4, 16, 23, 26, 28], "variables": [0, 7, 12, 19, 31, 51, 57, 66], "classes": [1, 13, 20], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [37, 38, 44, 48, 61, 62], "assignments": [], "loops": [], "conditionals": [5, 11, 17, 24, 29, 34, 36, 39, 45, 49, 54, 56, 59, 60, 63, 69], "returns": [72], "exceptions": []}, "expressions": {"calls": [], "literals": [42, 47, 65, 71, 73], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 4, "universal_type": "function", "name": "unknown", "text_snippet": "getenv(const char *name)"}, {"node_id": 16, "universal_type": "function", "name": "unknown", "text_snippet": "foo()"}, {"node_id": 23, "universal_type": "function", "name": "unknown", "text_snippet": "bar()"}, {"node_id": 26, "universal_type": "function", "name": "main", "text_snippet": "int\nmain()\n{\n int taint = foo() == 0 ? getenv(\"gude\") : bar();\n int a = taint;\n\n int nt;\n "}, {"node_id": 28, "universal_type": "function", "name": "unknown", "text_snippet": "main()"}], "class_declarations": [{"node_id": 1, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 13, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 20, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}], "import_statements": []}, "original_source_code": "extern int getenv(const char *name);\nextern int foo();\nextern int bar();\n\nint\nmain()\n{\n int taint = foo() == 0 ? getenv(\"gude\") : bar();\n int a = taint;\n\n int nt;\n if (nt == 0) {\n int a = 0;\n }\n\n return 0;\n}\n\n"}
80,252
c
// Attempts to set 1500 Hz squarewave on OC2 (PD7) and displays the actual value on LCD #include "mh-timer.c" #include "mh-lcd.c" int main() { uint32_t f; lcd_init(); f = set_sqr_tc2(1500); lcd_put_long(f); return 0; }
19
11
(translation_unit) "// Attempts to set 1500 Hz squarewave on OC2 (PD7) and displays the actual value on LCD\n#include "mh-timer.c"\n#include "mh-lcd.c"\n\nint main()\n{\nuint32_t f;\n\nlcd_init();\nf = set_sqr_tc2(1500); \nlcd_put_long(f);\nreturn 0;\n}\n" (comment) "// Attempts to set 1500 Hz squarewave on OC2 (PD7) and displays the actual value on LCD" (preproc_include) "#include "mh-timer.c"\n" (#include) "#include" (string_literal) ""mh-timer.c"" (") """ (string_content) "mh-timer.c" (") """ (preproc_include) "#include "mh-lcd.c"\n" (#include) "#include" (string_literal) ""mh-lcd.c"" (") """ (string_content) "mh-lcd.c" (") """ (function_definition) "int main()\n{\nuint32_t f;\n\nlcd_init();\nf = set_sqr_tc2(1500); \nlcd_put_long(f);\nreturn 0;\n}" (primitive_type) "int" (function_declarator) "main()" (identifier) "main" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\nuint32_t f;\n\nlcd_init();\nf = set_sqr_tc2(1500); \nlcd_put_long(f);\nreturn 0;\n}" ({) "{" (declaration) "uint32_t f;" (primitive_type) "uint32_t" (identifier) "f" (;) ";" (expression_statement) "lcd_init();" (call_expression) "lcd_init()" (identifier) "lcd_init" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "f = set_sqr_tc2(1500);" (assignment_expression) "f = set_sqr_tc2(1500)" (identifier) "f" (=) "=" (call_expression) "set_sqr_tc2(1500)" (identifier) "set_sqr_tc2" (argument_list) "(1500)" (() "(" (number_literal) "1500" ()) ")" (;) ";" (expression_statement) "lcd_put_long(f);" (call_expression) "lcd_put_long(f)" (identifier) "lcd_put_long" (argument_list) "(f)" (() "(" (identifier) "f" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
58
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 19.0, "nodes": 30, "errors": 0, "source_hash": "aa00e634d0af4ad1b40b6e637b386b82015cc74341285694c38cd670ba388c35", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"mh-timer.c\"\n", "parent": null, "children": [1, 2], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 8}}, {"id": 2, "type": "string_literal", "text": "\"mh-timer.c\"", "parent": 0, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 21}}, {"id": 3, "type": "preproc_include", "text": "#include \"mh-lcd.c\"\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": "\"mh-lcd.c\"", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 19}}, {"id": 6, "type": "function_definition", "text": "int main()\n{\nuint32_t f;\n\nlcd_init();\nf = set_sqr_tc2(1500); \nlcd_put_long(f);\nreturn 0;\n}", "parent": null, "children": [7, 8], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 7, "type": "primitive_type", "text": "int", "parent": 6, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 3}}, {"id": 8, "type": "function_declarator", "text": "main()", "parent": 6, "children": [9, 10], "start_point": {"row": 4, "column": 4}, "end_point": {"row": 4, "column": 10}}, {"id": 9, "type": "identifier", "text": "main", "parent": 8, "children": [], "start_point": {"row": 4, "column": 4}, "end_point": {"row": 4, "column": 8}}, {"id": 10, "type": "parameter_list", "text": "()", "parent": 8, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 10}}, {"id": 11, "type": "declaration", "text": "uint32_t f;", "parent": 6, "children": [12, 13], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 11}}, {"id": 12, "type": "primitive_type", "text": "uint32_t", "parent": 11, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 13, "type": "identifier", "text": "f", "parent": 11, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 10}}, {"id": 14, "type": "call_expression", "text": "lcd_init()", "parent": 6, "children": [15, 16], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 10}}, {"id": 15, "type": "identifier", "text": "lcd_init", "parent": 14, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 16, "type": "argument_list", "text": "()", "parent": 14, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 10}}, {"id": 17, "type": "assignment_expression", "text": "f = set_sqr_tc2(1500)", "parent": 6, "children": [18, 19, 20], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 21}}, {"id": 18, "type": "identifier", "text": "f", "parent": 17, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 1}}, {"id": 19, "type": "=", "text": "=", "parent": 17, "children": [], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 9, "column": 3}}, {"id": 20, "type": "call_expression", "text": "set_sqr_tc2(1500)", "parent": 17, "children": [21, 22], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 21}}, {"id": 21, "type": "identifier", "text": "set_sqr_tc2", "parent": 20, "children": [], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 15}}, {"id": 22, "type": "argument_list", "text": "(1500)", "parent": 20, "children": [23], "start_point": {"row": 9, "column": 15}, "end_point": {"row": 9, "column": 21}}, {"id": 23, "type": "number_literal", "text": "1500", "parent": 22, "children": [], "start_point": {"row": 9, "column": 16}, "end_point": {"row": 9, "column": 20}}, {"id": 24, "type": "call_expression", "text": "lcd_put_long(f)", "parent": 6, "children": [25, 26], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 15}}, {"id": 25, "type": "identifier", "text": "lcd_put_long", "parent": 24, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 12}}, {"id": 26, "type": "argument_list", "text": "(f)", "parent": 24, "children": [27], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 10, "column": 15}}, {"id": 27, "type": "identifier", "text": "f", "parent": 26, "children": [], "start_point": {"row": 10, "column": 13}, "end_point": {"row": 10, "column": 14}}, {"id": 28, "type": "return_statement", "text": "return 0;", "parent": 6, "children": [29], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 9}}, {"id": 29, "type": "number_literal", "text": "0", "parent": 28, "children": [], "start_point": {"row": 11, "column": 7}, "end_point": {"row": 11, "column": 8}}]}, "node_categories": {"declarations": {"functions": [6, 8], "variables": [11], "classes": [], "imports": [0, 1, 3, 4], "modules": [], "enums": []}, "statements": {"expressions": [14, 20, 24], "assignments": [17], "loops": [], "conditionals": [9, 13, 15, 18, 21, 25, 27], "returns": [28], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 23, 29], "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{\nuint32_t f;\n\nlcd_init();\nf = set_sqr_tc2(1500); \nlcd_put_long(f);\nreturn 0;\n}"}, {"node_id": 8, "universal_type": "function", "name": "unknown", "text_snippet": "main()"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"mh-timer.c\"\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include \"mh-lcd.c\"\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "// Attempts to set 1500 Hz squarewave on OC2 (PD7) and displays the actual value on LCD\n#include \"mh-timer.c\"\n#include \"mh-lcd.c\"\n\nint main()\n{\nuint32_t f;\n\nlcd_init();\nf = set_sqr_tc2(1500); \nlcd_put_long(f);\nreturn 0;\n}\n"}
80,253
c
#ifndef QAK_ENV_PRIVATE_H #define QAK_ENV_PRIVATE_H #include <QDebug> #include <QStandardPaths> #include <QDir> #include <QFile> #include <QVariant> #include <QMoveEvent> #include <QWindow> #include <QApplication> #include <QResource> #include <QTranslator> #include <QQuickItem> #include <QQmlEngine> #include <QQmlContext> #include <QtGui/QGuiApplication> #if defined(Q_OS_ANDROID) #include <QAndroidJniEnvironment> #include <QAndroidJniObject> #include <QtAndroid> #if QT_VERSION < QT_VERSION_CHECK(5, 10, 0) #include "permissions.h" #endif #endif namespace Qak { class AndroidEnv : public QObject { Q_OBJECT public: AndroidEnv(QObject *parent = 0); Q_INVOKABLE static QString obbPath(); Q_INVOKABLE static bool checkPermission(const QString &permission); private: }; } namespace Qak { class MouseEnv : public QObject { Q_OBJECT public: MouseEnv(QObject *parent = 0); Q_INVOKABLE static void press(QObject *target, const QPointF &point); Q_INVOKABLE static void release(QObject *target, const QPointF &point); Q_INVOKABLE static void move(QObject *target, const QPointF &point); private: }; } class EnvPrivate : public QObject { Q_OBJECT Q_PROPERTY(Qak::AndroidEnv *android READ androidEnv) Q_PROPERTY(Qak::MouseEnv *mouse READ mouseEnv) public: EnvPrivate(QObject* parent = nullptr); Q_INVOKABLE static QString appPath(); Q_INVOKABLE static QString dataPath(); Q_INVOKABLE static QString cachePath(); Q_INVOKABLE static QString configPath(); Q_INVOKABLE static QString tempPath(); Q_INVOKABLE static bool copy(const QString &src, const QString &dst); Q_INVOKABLE static bool copy(const QString &src, const QString &dst, bool recursively); Q_INVOKABLE static bool remove(const QString &path); Q_INVOKABLE QString read(const QString &path); Q_INVOKABLE bool write(const QString& data, const QString &path); Q_INVOKABLE bool write(const QString& data, const QString &path, bool overwrite); Q_INVOKABLE static QStringList list(const QString &dir); Q_INVOKABLE static QStringList list(const QString &dir, bool recursively); Q_INVOKABLE static bool ensure(const QString &path); Q_INVOKABLE static bool exists(const QString &path); Q_INVOKABLE static bool isFile(const QString &path); Q_INVOKABLE static bool isDir(const QString &path); Q_INVOKABLE static qint64 size(const QString &path); Q_INVOKABLE static bool registerResource(const QString &rccFilename, const QString &resourceRoot=QString()); Q_INVOKABLE static bool unregisterResource(const QString &rccFilename, const QString &resourceRoot=QString()); Q_INVOKABLE void setLanguage(const QString &languageCode); // TODO move to seperate type / remove ? //Q_INVOKABLE static void click(const QPointF point); Qak::AndroidEnv *androidEnv(); Qak::MouseEnv *mouseEnv(); private: static QString subEnvPath(); Qak::AndroidEnv _androidEnv; Qak::MouseEnv _mouseEnv; QTranslator m_translator; }; #endif // QAK_ENV_PRIVATE_H
35.19
86
(translation_unit) "#ifndef QAK_ENV_PRIVATE_H\n#define QAK_ENV_PRIVATE_H\n\n#include <QDebug>\n#include <QStandardPaths>\n#include <QDir>\n#include <QFile>\n#include <QVariant>\n#include <QMoveEvent>\n#include <QWindow>\n#include <QApplication>\n#include <QResource>\n#include <QTranslator>\n#include <QQuickItem>\n#include <QQmlEngine>\n#include <QQmlContext>\n\n#include <QtGui/QGuiApplication>\n\n#if defined(Q_OS_ANDROID)\n#include <QAndroidJniEnvironment>\n#include <QAndroidJniObject>\n#include <QtAndroid>\n\n#if QT_VERSION < QT_VERSION_CHECK(5, 10, 0)\n#include "permissions.h"\n#endif\n\n#endif\n\nnamespace Qak {\n class AndroidEnv : public QObject\n {\n Q_OBJECT\n public:\n AndroidEnv(QObject *parent = 0);\n\n Q_INVOKABLE static QString obbPath();\n\n Q_INVOKABLE static bool checkPermission(const QString &permission);\n\n private:\n\n };\n}\n\nnamespace Qak {\n class MouseEnv : public QObject\n {\n Q_OBJECT\n\n public:\n MouseEnv(QObject *parent = 0);\n\n Q_INVOKABLE static void press(QObject *target, const QPointF &point);\n Q_INVOKABLE static void release(QObject *target, const QPointF &point);\n Q_INVOKABLE static void move(QObject *target, const QPointF &point);\n\n private:\n\n };\n}\n\nclass EnvPrivate : public QObject\n{\n Q_OBJECT\n Q_PROPERTY(Qak::AndroidEnv *android READ androidEnv)\n Q_PROPERTY(Qak::MouseEnv *mouse READ mouseEnv)\n\npublic:\n EnvPrivate(QObject* parent = nullptr);\n\n Q_INVOKABLE static QString appPath();\n Q_INVOKABLE static QString dataPath();\n Q_INVOKABLE static QString cachePath();\n Q_INVOKABLE static QString configPath();\n Q_INVOKABLE static QString tempPath();\n\n Q_INVOKABLE static bool copy(const QString &src, const QString &dst);\n Q_INVOKABLE static bool copy(const QString &src, const QString &dst, bool recursively);\n\n Q_INVOKABLE static bool remove(const QString &path);\n\n Q_INVOKABLE QString read(const QString &path);\n\n Q_INVOKABLE bool write(const QString& data, const QString &path);\n Q_INVOKABLE bool write(const QString& data, const QString &path, bool overwrite);\n\n Q_INVOKABLE static QStringList list(const QString &dir);\n Q_INVOKABLE static QStringList list(const QString &dir, bool recursively);\n\n Q_INVOKABLE static bool ensure(const QString &path);\n\n Q_INVOKABLE static bool exists(const QString &path);\n Q_INVOKABLE static bool isFile(const QString &path);\n Q_INVOKABLE static bool isDir(const QString &path);\n\n Q_INVOKABLE static qint64 size(const QString &path);\n\n Q_INVOKABLE static bool registerResource(const QString &rccFilename, const QString &resourceRoot=QString());\n Q_INVOKABLE static bool unregisterResource(const QString &rccFilename, const QString &resourceRoot=QString());\n\n Q_INVOKABLE void setLanguage(const QString &languageCode);\n // TODO move to seperate type / remove ?\n //Q_INVOKABLE static void click(const QPointF point);\n\n Qak::AndroidEnv *androidEnv();\n Qak::MouseEnv *mouseEnv();\n\nprivate:\n static QString subEnvPath();\n Qak::AndroidEnv _androidEnv;\n Qak::MouseEnv _mouseEnv;\n\n QTranslator m_translator;\n};\n\n#endif // QAK_ENV_PRIVATE_H\n" (ERROR) "#ifndef QAK_ENV_PRIVATE_H\n#define QAK_ENV_PRIVATE_H\n\n#include <QDebug>\n#include <QStandardPaths>\n#include <QDir>\n#include <QFile>\n#include <QVariant>\n#include <QMoveEvent>\n#include <QWindow>\n#include <QApplication>\n#include <QResource>\n#include <QTranslator>\n#include <QQuickItem>\n#include <QQmlEngine>\n#include <QQmlContext>\n\n#include <QtGui/QGuiApplication>\n\n#if defined(Q_OS_ANDROID)\n#include <QAndroidJniEnvironment>\n#include <QAndroidJniObject>\n#include <QtAndroid>\n\n#if QT_VERSION < QT_VERSION_CHECK(5, 10, 0)\n#include "permissions.h"\n#endif\n\n#endif\n\nnamespace Qak {\n class AndroidEnv : public QObject\n {\n Q_OBJECT\n public:\n AndroidEnv(QObject *parent = 0);\n\n Q_INVOKABLE static QString obbPath();\n\n Q_INVOKABLE static bool checkPermission(const QString &permission);\n\n private:\n\n };\n}\n\nnamespace Qak {\n class MouseEnv : public QObject\n {\n Q_OBJECT\n\n public:\n MouseEnv(QObject *parent = 0);\n\n Q_INVOKABLE static void press(QObject *target, const QPointF &point);\n Q_INVOKABLE static void release(QObject *target, const QPointF &point);\n Q_INVOKABLE static void move(QObject *target, const QPointF &point);\n\n private:\n\n };\n}\n\nclass EnvPrivate : public QObject\n{\n Q_OBJECT\n Q_PROPERTY(Qak::AndroidEnv *android READ androidEnv)\n Q_PROPERTY(Qak::MouseEnv *mouse READ mouseEnv)\n\npublic:\n EnvPrivate(QObject* parent = nullptr);\n\n Q_INVOKABLE static QString appPath();\n Q_INVOKABLE static QString dataPath();\n Q_INVOKABLE static QString cachePath();\n Q_INVOKABLE static QString configPath();\n Q_INVOKABLE static QString tempPath();\n\n Q_INVOKABLE static bool copy(const QString &src, const QString &dst);\n Q_INVOKABLE static bool copy(const QString &src, const QString &dst, bool recursively);\n\n Q_INVOKABLE static bool remove(const QString &path);\n\n Q_INVOKABLE QString read(const QString &path);\n\n Q_INVOKABLE bool write(const QString& data, const QString &path);\n Q_INVOKABLE bool write(const QString& data, const QString &path, bool overwrite);\n\n Q_INVOKABLE static QStringList list(const QString &dir);\n Q_INVOKABLE static QStringList list(const QString &dir, bool recursively);\n\n Q_INVOKABLE static bool ensure(const QString &path);\n\n Q_INVOKABLE static bool exists(const QString &path);\n Q_INVOKABLE static bool isFile(const QString &path);\n Q_INVOKABLE static bool isDir(const QString &path);\n\n Q_INVOKABLE static qint64 size(const QString &path);\n\n Q_INVOKABLE static bool registerResource(const QString &rccFilename, const QString &resourceRoot=QString());\n Q_INVOKABLE static bool unregisterResource(const QString &rccFilename, const QString &resourceRoot=QString());\n\n Q_INVOKABLE void setLanguage(const QString &languageCode);\n // TODO move to seperate type / remove ?\n //Q_INVOKABLE static void click(const QPointF point);\n\n Qak::AndroidEnv *androidEnv();\n Qak::MouseEnv *mouseEnv();\n\nprivate:\n static QString subEnvPath();\n Qak::AndroidEnv _androidEnv;\n Qak::MouseEnv _mouseEnv;\n\n QTranslator m_translator;\n};\n\n#endif // QAK_ENV_PRIVATE_H\n" (#ifndef) "#ifndef" (identifier) "QAK_ENV_PRIVATE_H" (preproc_def) "#define QAK_ENV_PRIVATE_H\n" (#define) "#define" (identifier) "QAK_ENV_PRIVATE_H" (preproc_include) "#include <QDebug>\n" (#include) "#include" (system_lib_string) "<QDebug>" (preproc_include) "#include <QStandardPaths>\n" (#include) "#include" (system_lib_string) "<QStandardPaths>" (preproc_include) "#include <QDir>\n" (#include) "#include" (system_lib_string) "<QDir>" (preproc_include) "#include <QFile>\n" (#include) "#include" (system_lib_string) "<QFile>" (preproc_include) "#include <QVariant>\n" (#include) "#include" (system_lib_string) "<QVariant>" (preproc_include) "#include <QMoveEvent>\n" (#include) "#include" (system_lib_string) "<QMoveEvent>" (preproc_include) "#include <QWindow>\n" (#include) "#include" (system_lib_string) "<QWindow>" (preproc_include) "#include <QApplication>\n" (#include) "#include" (system_lib_string) "<QApplication>" (preproc_include) "#include <QResource>\n" (#include) "#include" (system_lib_string) "<QResource>" (preproc_include) "#include <QTranslator>\n" (#include) "#include" (system_lib_string) "<QTranslator>" (preproc_include) "#include <QQuickItem>\n" (#include) "#include" (system_lib_string) "<QQuickItem>" (preproc_include) "#include <QQmlEngine>\n" (#include) "#include" (system_lib_string) "<QQmlEngine>" (preproc_include) "#include <QQmlContext>\n" (#include) "#include" (system_lib_string) "<QQmlContext>" (preproc_include) "#include <QtGui/QGuiApplication>\n" (#include) "#include" (system_lib_string) "<QtGui/QGuiApplication>" (preproc_if) "#if defined(Q_OS_ANDROID)\n#include <QAndroidJniEnvironment>\n#include <QAndroidJniObject>\n#include <QtAndroid>\n\n#if QT_VERSION < QT_VERSION_CHECK(5, 10, 0)\n#include "permissions.h"\n#endif\n\n#endif" (#if) "#if" (preproc_defined) "defined(Q_OS_ANDROID)" (defined) "defined" (() "(" (identifier) "Q_OS_ANDROID" ()) ")" ( ) "\n" (preproc_include) "#include <QAndroidJniEnvironment>\n" (#include) "#include" (system_lib_string) "<QAndroidJniEnvironment>" (preproc_include) "#include <QAndroidJniObject>\n" (#include) "#include" (system_lib_string) "<QAndroidJniObject>" (preproc_include) "#include <QtAndroid>\n" (#include) "#include" (system_lib_string) "<QtAndroid>" (preproc_if) "#if QT_VERSION < QT_VERSION_CHECK(5, 10, 0)\n#include "permissions.h"\n#endif" (#if) "#if" (binary_expression) "QT_VERSION < QT_VERSION_CHECK(5, 10, 0)" (identifier) "QT_VERSION" (<) "<" (call_expression) "QT_VERSION_CHECK(5, 10, 0)" (identifier) "QT_VERSION_CHECK" (argument_list) "(5, 10, 0)" (() "(" (number_literal) "5" (,) "," (number_literal) "10" (,) "," (number_literal) "0" ()) ")" ( ) "\n" (preproc_include) "#include "permissions.h"\n" (#include) "#include" (string_literal) ""permissions.h"" (") """ (string_content) "permissions.h" (") """ (#endif) "#endif" (#endif) "#endif" (type_identifier) "namespace" (identifier) "Qak" ({) "{" (function_definition) "class AndroidEnv : public QObject\n {\n Q_OBJECT\n public:\n AndroidEnv(QObject *parent = 0);\n\n Q_INVOKABLE static QString obbPath();\n\n Q_INVOKABLE static bool checkPermission(const QString &permission);\n\n private:\n\n };\n}" (type_identifier) "class" (identifier) "AndroidEnv" (ERROR) ": public QObject" (:) ":" (identifier) "public" (identifier) "QObject" (compound_statement) "{\n Q_OBJECT\n public:\n AndroidEnv(QObject *parent = 0);\n\n Q_INVOKABLE static QString obbPath();\n\n Q_INVOKABLE static bool checkPermission(const QString &permission);\n\n private:\n\n };\n}" ({) "{" (declaration) "Q_OBJECT\n public:\n AndroidEnv(QObject *parent = 0);" (type_identifier) "Q_OBJECT" (ERROR) "public:" (identifier) "public" (:) ":" (init_declarator) "AndroidEnv(QObject *parent = 0" (function_declarator) "AndroidEnv(QObject *parent" (identifier) "AndroidEnv" (parameter_list) "(QObject *parent" (() "(" (parameter_declaration) "QObject *parent" (type_identifier) "QObject" (pointer_declarator) "*parent" (*) "*" (identifier) "parent" ()) "" (=) "=" (number_literal) "0" (ERROR) ")" ()) ")" (;) ";" (declaration) "Q_INVOKABLE static QString obbPath();" (type_identifier) "Q_INVOKABLE" (storage_class_specifier) "static" (static) "static" (ERROR) "QString" (identifier) "QString" (function_declarator) "obbPath()" (identifier) "obbPath" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "Q_INVOKABLE static bool checkPermission(const QString &permission);" (type_identifier) "Q_INVOKABLE" (storage_class_specifier) "static" (static) "static" (ERROR) "bool" (identifier) "bool" (function_declarator) "checkPermission(const QString &permission)" (identifier) "checkPermission" (parameter_list) "(const QString &permission)" (() "(" (parameter_declaration) "const QString &permission" (type_qualifier) "const" (const) "const" (type_identifier) "QString" (ERROR) "&" (&) "&" (identifier) "permission" ()) ")" (;) ";" (labeled_statement) "private:\n\n };" (statement_identifier) "private" (:) ":" (ERROR) "}" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (type_identifier) "namespace" (identifier) "Qak" ({) "{" (function_definition) "class MouseEnv : public QObject\n {\n Q_OBJECT\n\n public:\n MouseEnv(QObject *parent = 0);\n\n Q_INVOKABLE static void press(QObject *target, const QPointF &point);\n Q_INVOKABLE static void release(QObject *target, const QPointF &point);\n Q_INVOKABLE static void move(QObject *target, const QPointF &point);\n\n private:\n\n };\n}" (type_identifier) "class" (identifier) "MouseEnv" (ERROR) ": public QObject" (:) ":" (identifier) "public" (identifier) "QObject" (compound_statement) "{\n Q_OBJECT\n\n public:\n MouseEnv(QObject *parent = 0);\n\n Q_INVOKABLE static void press(QObject *target, const QPointF &point);\n Q_INVOKABLE static void release(QObject *target, const QPointF &point);\n Q_INVOKABLE static void move(QObject *target, const QPointF &point);\n\n private:\n\n };\n}" ({) "{" (declaration) "Q_OBJECT\n\n public:\n MouseEnv(QObject *parent = 0);" (type_identifier) "Q_OBJECT" (ERROR) "public:" (identifier) "public" (:) ":" (init_declarator) "MouseEnv(QObject *parent = 0" (function_declarator) "MouseEnv(QObject *parent" (identifier) "MouseEnv" (parameter_list) "(QObject *parent" (() "(" (parameter_declaration) "QObject *parent" (type_identifier) "QObject" (pointer_declarator) "*parent" (*) "*" (identifier) "parent" ()) "" (=) "=" (number_literal) "0" (ERROR) ")" ()) ")" (;) ";" (declaration) "Q_INVOKABLE static void press(QObject *target, const QPointF &point);" (type_identifier) "Q_INVOKABLE" (storage_class_specifier) "static" (static) "static" (ERROR) "void" (identifier) "void" (function_declarator) "press(QObject *target, const QPointF &point)" (identifier) "press" (parameter_list) "(QObject *target, const QPointF &point)" (() "(" (parameter_declaration) "QObject *target" (type_identifier) "QObject" (pointer_declarator) "*target" (*) "*" (identifier) "target" (,) "," (parameter_declaration) "const QPointF &point" (type_qualifier) "const" (const) "const" (type_identifier) "QPointF" (ERROR) "&" (&) "&" (identifier) "point" ()) ")" (;) ";" (declaration) "Q_INVOKABLE static void release(QObject *target, const QPointF &point);" (type_identifier) "Q_INVOKABLE" (storage_class_specifier) "static" (static) "static" (ERROR) "void" (identifier) "void" (function_declarator) "release(QObject *target, const QPointF &point)" (identifier) "release" (parameter_list) "(QObject *target, const QPointF &point)" (() "(" (parameter_declaration) "QObject *target" (type_identifier) "QObject" (pointer_declarator) "*target" (*) "*" (identifier) "target" (,) "," (parameter_declaration) "const QPointF &point" (type_qualifier) "const" (const) "const" (type_identifier) "QPointF" (ERROR) "&" (&) "&" (identifier) "point" ()) ")" (;) ";" (declaration) "Q_INVOKABLE static void move(QObject *target, const QPointF &point);" (type_identifier) "Q_INVOKABLE" (storage_class_specifier) "static" (static) "static" (ERROR) "void" (identifier) "void" (function_declarator) "move(QObject *target, const QPointF &point)" (identifier) "move" (parameter_list) "(QObject *target, const QPointF &point)" (() "(" (parameter_declaration) "QObject *target" (type_identifier) "QObject" (pointer_declarator) "*target" (*) "*" (identifier) "target" (,) "," (parameter_declaration) "const QPointF &point" (type_qualifier) "const" (const) "const" (type_identifier) "QPointF" (ERROR) "&" (&) "&" (identifier) "point" ()) ")" (;) ";" (labeled_statement) "private:\n\n };" (statement_identifier) "private" (:) ":" (ERROR) "}" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (function_definition) "class EnvPrivate : public QObject\n{\n Q_OBJECT\n Q_PROPERTY(Qak::AndroidEnv *android READ androidEnv)\n Q_PROPERTY(Qak::MouseEnv *mouse READ mouseEnv)\n\npublic:\n EnvPrivate(QObject* parent = nullptr);\n\n Q_INVOKABLE static QString appPath();\n Q_INVOKABLE static QString dataPath();\n Q_INVOKABLE static QString cachePath();\n Q_INVOKABLE static QString configPath();\n Q_INVOKABLE static QString tempPath();\n\n Q_INVOKABLE static bool copy(const QString &src, const QString &dst);\n Q_INVOKABLE static bool copy(const QString &src, const QString &dst, bool recursively);\n\n Q_INVOKABLE static bool remove(const QString &path);\n\n Q_INVOKABLE QString read(const QString &path);\n\n Q_INVOKABLE bool write(const QString& data, const QString &path);\n Q_INVOKABLE bool write(const QString& data, const QString &path, bool overwrite);\n\n Q_INVOKABLE static QStringList list(const QString &dir);\n Q_INVOKABLE static QStringList list(const QString &dir, bool recursively);\n\n Q_INVOKABLE static bool ensure(const QString &path);\n\n Q_INVOKABLE static bool exists(const QString &path);\n Q_INVOKABLE static bool isFile(const QString &path);\n Q_INVOKABLE static bool isDir(const QString &path);\n\n Q_INVOKABLE static qint64 size(const QString &path);\n\n Q_INVOKABLE static bool registerResource(const QString &rccFilename, const QString &resourceRoot=QString());\n Q_INVOKABLE static bool unregisterResource(const QString &rccFilename, const QString &resourceRoot=QString());\n\n Q_INVOKABLE void setLanguage(const QString &languageCode);\n // TODO move to seperate type / remove ?\n //Q_INVOKABLE static void click(const QPointF point);\n\n Qak::AndroidEnv *androidEnv();\n Qak::MouseEnv *mouseEnv();\n\nprivate:\n static QString subEnvPath();\n Qak::AndroidEnv _androidEnv;\n Qak::MouseEnv _mouseEnv;\n\n QTranslator m_translator;\n}" (type_identifier) "class" (identifier) "EnvPrivate" (ERROR) ": public QObject" (:) ":" (identifier) "public" (identifier) "QObject" (compound_statement) "{\n Q_OBJECT\n Q_PROPERTY(Qak::AndroidEnv *android READ androidEnv)\n Q_PROPERTY(Qak::MouseEnv *mouse READ mouseEnv)\n\npublic:\n EnvPrivate(QObject* parent = nullptr);\n\n Q_INVOKABLE static QString appPath();\n Q_INVOKABLE static QString dataPath();\n Q_INVOKABLE static QString cachePath();\n Q_INVOKABLE static QString configPath();\n Q_INVOKABLE static QString tempPath();\n\n Q_INVOKABLE static bool copy(const QString &src, const QString &dst);\n Q_INVOKABLE static bool copy(const QString &src, const QString &dst, bool recursively);\n\n Q_INVOKABLE static bool remove(const QString &path);\n\n Q_INVOKABLE QString read(const QString &path);\n\n Q_INVOKABLE bool write(const QString& data, const QString &path);\n Q_INVOKABLE bool write(const QString& data, const QString &path, bool overwrite);\n\n Q_INVOKABLE static QStringList list(const QString &dir);\n Q_INVOKABLE static QStringList list(const QString &dir, bool recursively);\n\n Q_INVOKABLE static bool ensure(const QString &path);\n\n Q_INVOKABLE static bool exists(const QString &path);\n Q_INVOKABLE static bool isFile(const QString &path);\n Q_INVOKABLE static bool isDir(const QString &path);\n\n Q_INVOKABLE static qint64 size(const QString &path);\n\n Q_INVOKABLE static bool registerResource(const QString &rccFilename, const QString &resourceRoot=QString());\n Q_INVOKABLE static bool unregisterResource(const QString &rccFilename, const QString &resourceRoot=QString());\n\n Q_INVOKABLE void setLanguage(const QString &languageCode);\n // TODO move to seperate type / remove ?\n //Q_INVOKABLE static void click(const QPointF point);\n\n Qak::AndroidEnv *androidEnv();\n Qak::MouseEnv *mouseEnv();\n\nprivate:\n static QString subEnvPath();\n Qak::AndroidEnv _androidEnv;\n Qak::MouseEnv _mouseEnv;\n\n QTranslator m_translator;\n}" ({) "{" (declaration) "Q_OBJECT\n Q_PROPERTY(Qak::AndroidEnv *android READ androidEnv)\n Q_PROPERTY(Qak::MouseEnv *mouse READ mouseEnv)\n\npublic:\n EnvPrivate(QObject* parent = nullptr);" (type_identifier) "Q_OBJECT" (init_declarator) "Q_PROPERTY(Qak::AndroidEnv *android READ androidEnv)\n Q_PROPERTY(Qak::MouseEnv *mouse READ mouseEnv)\n\npublic:\n EnvPrivate(QObject* parent = nullptr" (function_declarator) "Q_PROPERTY(Qak::AndroidEnv *android READ androidEnv)\n Q_PROPERTY(Qak::MouseEnv *mouse READ mouseEnv)\n\npublic:\n EnvPrivate(QObject* parent" (identifier) "Q_PROPERTY" (parameter_list) "(Qak::AndroidEnv *android READ androidEnv)" (() "(" (parameter_declaration) "Qak::AndroidEnv *android READ androidEnv" (type_identifier) "Qak" (ERROR) "::AndroidEnv" (:) ":" (:) ":" (identifier) "AndroidEnv" (pointer_declarator) "*android READ androidEnv" (*) "*" (ERROR) "android READ" (identifier) "android" (identifier) "READ" (identifier) "androidEnv" ()) ")" (call_expression) "Q_PROPERTY(Qak::MouseEnv *mouse READ mouseEnv)" (identifier) "Q_PROPERTY" (argument_list) "(Qak::MouseEnv *mouse READ mouseEnv)" (() "(" (ERROR) "Qak::" (identifier) "Qak" (:) ":" (:) ":" (binary_expression) "MouseEnv *mouse READ mouseEnv" (identifier) "MouseEnv" (*) "*" (ERROR) "mouse READ" (identifier) "mouse" (identifier) "READ" (identifier) "mouseEnv" ()) ")" (identifier) "public" (ERROR) ":" (:) ":" (call_expression) "EnvPrivate(QObject* parent" (identifier) "EnvPrivate" (argument_list) "(QObject* parent" (() "(" (binary_expression) "QObject* parent" (identifier) "QObject" (*) "*" (identifier) "parent" ()) "" (=) "=" (null) "nullptr" (nullptr) "nullptr" (ERROR) ")" ()) ")" (;) ";" (declaration) "Q_INVOKABLE static QString appPath();" (type_identifier) "Q_INVOKABLE" (storage_class_specifier) "static" (static) "static" (ERROR) "QString" (identifier) "QString" (function_declarator) "appPath()" (identifier) "appPath" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "Q_INVOKABLE static QString dataPath();" (type_identifier) "Q_INVOKABLE" (storage_class_specifier) "static" (static) "static" (ERROR) "QString" (identifier) "QString" (function_declarator) "dataPath()" (identifier) "dataPath" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "Q_INVOKABLE static QString cachePath();" (type_identifier) "Q_INVOKABLE" (storage_class_specifier) "static" (static) "static" (ERROR) "QString" (identifier) "QString" (function_declarator) "cachePath()" (identifier) "cachePath" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "Q_INVOKABLE static QString configPath();" (type_identifier) "Q_INVOKABLE" (storage_class_specifier) "static" (static) "static" (ERROR) "QString" (identifier) "QString" (function_declarator) "configPath()" (identifier) "configPath" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "Q_INVOKABLE static QString tempPath();" (type_identifier) "Q_INVOKABLE" (storage_class_specifier) "static" (static) "static" (ERROR) "QString" (identifier) "QString" (function_declarator) "tempPath()" (identifier) "tempPath" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "Q_INVOKABLE static bool copy(const QString &src, const QString &dst);" (type_identifier) "Q_INVOKABLE" (storage_class_specifier) "static" (static) "static" (ERROR) "bool" (identifier) "bool" (function_declarator) "copy(const QString &src, const QString &dst)" (identifier) "copy" (parameter_list) "(const QString &src, const QString &dst)" (() "(" (parameter_declaration) "const QString &src" (type_qualifier) "const" (const) "const" (type_identifier) "QString" (ERROR) "&" (&) "&" (identifier) "src" (,) "," (parameter_declaration) "const QString &dst" (type_qualifier) "const" (const) "const" (type_identifier) "QString" (ERROR) "&" (&) "&" (identifier) "dst" ()) ")" (;) ";" (declaration) "Q_INVOKABLE static bool copy(const QString &src, const QString &dst, bool recursively);" (type_identifier) "Q_INVOKABLE" (storage_class_specifier) "static" (static) "static" (ERROR) "bool" (identifier) "bool" (function_declarator) "copy(const QString &src, const QString &dst, bool recursively)" (identifier) "copy" (parameter_list) "(const QString &src, const QString &dst, bool recursively)" (() "(" (parameter_declaration) "const QString &src" (type_qualifier) "const" (const) "const" (type_identifier) "QString" (ERROR) "&" (&) "&" (identifier) "src" (,) "," (parameter_declaration) "const QString &dst" (type_qualifier) "const" (const) "const" (type_identifier) "QString" (ERROR) "&" (&) "&" (identifier) "dst" (,) "," (parameter_declaration) "bool recursively" (primitive_type) "bool" (identifier) "recursively" ()) ")" (;) ";" (declaration) "Q_INVOKABLE static bool remove(const QString &path);" (type_identifier) "Q_INVOKABLE" (storage_class_specifier) "static" (static) "static" (ERROR) "bool" (identifier) "bool" (function_declarator) "remove(const QString &path)" (identifier) "remove" (parameter_list) "(const QString &path)" (() "(" (parameter_declaration) "const QString &path" (type_qualifier) "const" (const) "const" (type_identifier) "QString" (ERROR) "&" (&) "&" (identifier) "path" ()) ")" (;) ";" (declaration) "Q_INVOKABLE QString read(const QString &path);" (type_identifier) "Q_INVOKABLE" (ERROR) "QString" (identifier) "QString" (function_declarator) "read(const QString &path)" (identifier) "read" (parameter_list) "(const QString &path)" (() "(" (parameter_declaration) "const QString &path" (type_qualifier) "const" (const) "const" (type_identifier) "QString" (ERROR) "&" (&) "&" (identifier) "path" ()) ")" (;) ";" (declaration) "Q_INVOKABLE bool write(const QString& data, const QString &path);" (type_identifier) "Q_INVOKABLE" (ERROR) "bool" (identifier) "bool" (function_declarator) "write(const QString& data, const QString &path)" (identifier) "write" (parameter_list) "(const QString& data, const QString &path)" (() "(" (parameter_declaration) "const QString& data" (type_qualifier) "const" (const) "const" (type_identifier) "QString" (ERROR) "&" (&) "&" (identifier) "data" (,) "," (parameter_declaration) "const QString &path" (type_qualifier) "const" (const) "const" (type_identifier) "QString" (ERROR) "&" (&) "&" (identifier) "path" ()) ")" (;) ";" (declaration) "Q_INVOKABLE bool write(const QString& data, const QString &path, bool overwrite);" (type_identifier) "Q_INVOKABLE" (ERROR) "bool" (identifier) "bool" (function_declarator) "write(const QString& data, const QString &path, bool overwrite)" (identifier) "write" (parameter_list) "(const QString& data, const QString &path, bool overwrite)" (() "(" (parameter_declaration) "const QString& data" (type_qualifier) "const" (const) "const" (type_identifier) "QString" (ERROR) "&" (&) "&" (identifier) "data" (,) "," (parameter_declaration) "const QString &path" (type_qualifier) "const" (const) "const" (type_identifier) "QString" (ERROR) "&" (&) "&" (identifier) "path" (,) "," (parameter_declaration) "bool overwrite" (primitive_type) "bool" (identifier) "overwrite" ()) ")" (;) ";" (declaration) "Q_INVOKABLE static QStringList" (type_identifier) "Q_INVOKABLE" (storage_class_specifier) "static" (static) "static" (identifier) "QStringList" (;) "" (macro_type_specifier) "list(const QString &dir)" (identifier) "list" (() "(" (type_descriptor) "const QString" (type_qualifier) "const" (const) "const" (type_identifier) "QString" (ERROR) "&dir" (&) "&" (identifier) "dir" ()) ")" (;) ";" (declaration) "Q_INVOKABLE static QStringList" (type_identifier) "Q_INVOKABLE" (storage_class_specifier) "static" (static) "static" (identifier) "QStringList" (;) "" (expression_statement) "list(const QString &dir, bool recursively);" (comma_expression) "list(const QString &dir, bool" (binary_expression) "list(const QString &dir" (identifier) "list" (ERROR) "(const QString" (() "(" (type_descriptor) "const QString" (type_qualifier) "const" (const) "const" (type_identifier) "QString" (&) "&" (identifier) "dir" (,) "," (identifier) "bool" (ERROR) "recursively)" (identifier) "recursively" ()) ")" (;) ";" (declaration) "Q_INVOKABLE static bool ensure(const QString &path);" (type_identifier) "Q_INVOKABLE" (storage_class_specifier) "static" (static) "static" (ERROR) "bool" (identifier) "bool" (function_declarator) "ensure(const QString &path)" (identifier) "ensure" (parameter_list) "(const QString &path)" (() "(" (parameter_declaration) "const QString &path" (type_qualifier) "const" (const) "const" (type_identifier) "QString" (ERROR) "&" (&) "&" (identifier) "path" ()) ")" (;) ";" (declaration) "Q_INVOKABLE static bool exists(const QString &path);" (type_identifier) "Q_INVOKABLE" (storage_class_specifier) "static" (static) "static" (ERROR) "bool" (identifier) "bool" (function_declarator) "exists(const QString &path)" (identifier) "exists" (parameter_list) "(const QString &path)" (() "(" (parameter_declaration) "const QString &path" (type_qualifier) "const" (const) "const" (type_identifier) "QString" (ERROR) "&" (&) "&" (identifier) "path" ()) ")" (;) ";" (declaration) "Q_INVOKABLE static bool isFile(const QString &path);" (type_identifier) "Q_INVOKABLE" (storage_class_specifier) "static" (static) "static" (ERROR) "bool" (identifier) "bool" (function_declarator) "isFile(const QString &path)" (identifier) "isFile" (parameter_list) "(const QString &path)" (() "(" (parameter_declaration) "const QString &path" (type_qualifier) "const" (const) "const" (type_identifier) "QString" (ERROR) "&" (&) "&" (identifier) "path" ()) ")" (;) ";" (declaration) "Q_INVOKABLE static bool isDir(const QString &path);" (type_identifier) "Q_INVOKABLE" (storage_class_specifier) "static" (static) "static" (ERROR) "bool" (identifier) "bool" (function_declarator) "isDir(const QString &path)" (identifier) "isDir" (parameter_list) "(const QString &path)" (() "(" (parameter_declaration) "const QString &path" (type_qualifier) "const" (const) "const" (type_identifier) "QString" (ERROR) "&" (&) "&" (identifier) "path" ()) ")" (;) ";" (declaration) "Q_INVOKABLE static qint64 size(const QString &path);" (type_identifier) "Q_INVOKABLE" (storage_class_specifier) "static" (static) "static" (ERROR) "qint64" (identifier) "qint64" (function_declarator) "size(const QString &path)" (identifier) "size" (parameter_list) "(const QString &path)" (() "(" (parameter_declaration) "const QString &path" (type_qualifier) "const" (const) "const" (type_identifier) "QString" (ERROR) "&" (&) "&" (identifier) "path" ()) ")" (;) ";" (declaration) "Q_INVOKABLE static bool registerResource(const QString &rccFilename, const QString &resourceRoot=QString());" (type_identifier) "Q_INVOKABLE" (storage_class_specifier) "static" (static) "static" (ERROR) "bool" (identifier) "bool" (function_declarator) "registerResource(const QString &rccFilename, const QString &resourceRoot=QString())" (identifier) "registerResource" (parameter_list) "(const QString &rccFilename, const QString &resourceRoot=QString())" (() "(" (parameter_declaration) "const QString &rccFilename" (type_qualifier) "const" (const) "const" (type_identifier) "QString" (ERROR) "&" (&) "&" (identifier) "rccFilename" (,) "," (parameter_declaration) "const QString &resourceRoot=QString()" (type_qualifier) "const" (const) "const" (type_identifier) "QString" (ERROR) "&resourceRoot=" (&) "&" (identifier) "resourceRoot" (=) "=" (function_declarator) "QString()" (identifier) "QString" (parameter_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (declaration) "Q_INVOKABLE static bool unregisterResource(const QString &rccFilename, const QString &resourceRoot=QString());" (type_identifier) "Q_INVOKABLE" (storage_class_specifier) "static" (static) "static" (ERROR) "bool" (identifier) "bool" (function_declarator) "unregisterResource(const QString &rccFilename, const QString &resourceRoot=QString())" (identifier) "unregisterResource" (parameter_list) "(const QString &rccFilename, const QString &resourceRoot=QString())" (() "(" (parameter_declaration) "const QString &rccFilename" (type_qualifier) "const" (const) "const" (type_identifier) "QString" (ERROR) "&" (&) "&" (identifier) "rccFilename" (,) "," (parameter_declaration) "const QString &resourceRoot=QString()" (type_qualifier) "const" (const) "const" (type_identifier) "QString" (ERROR) "&resourceRoot=" (&) "&" (identifier) "resourceRoot" (=) "=" (function_declarator) "QString()" (identifier) "QString" (parameter_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (declaration) "Q_INVOKABLE void setLanguage(const QString &languageCode);" (type_identifier) "Q_INVOKABLE" (ERROR) "void" (identifier) "void" (function_declarator) "setLanguage(const QString &languageCode)" (identifier) "setLanguage" (parameter_list) "(const QString &languageCode)" (() "(" (parameter_declaration) "const QString &languageCode" (type_qualifier) "const" (const) "const" (type_identifier) "QString" (ERROR) "&" (&) "&" (identifier) "languageCode" ()) ")" (;) ";" (comment) "// TODO move to seperate type / remove ?" (comment) "//Q_INVOKABLE static void click(const QPointF point);" (labeled_statement) "Qak::AndroidEnv *androidEnv();" (statement_identifier) "Qak" (:) ":" (ERROR) ":" (:) ":" (declaration) "AndroidEnv *androidEnv();" (type_identifier) "AndroidEnv" (pointer_declarator) "*androidEnv()" (*) "*" (function_declarator) "androidEnv()" (identifier) "androidEnv" (parameter_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "Qak::MouseEnv *mouseEnv();" (statement_identifier) "Qak" (:) ":" (ERROR) ":" (:) ":" (declaration) "MouseEnv *mouseEnv();" (type_identifier) "MouseEnv" (pointer_declarator) "*mouseEnv()" (*) "*" (function_declarator) "mouseEnv()" (identifier) "mouseEnv" (parameter_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "private:\n static QString subEnvPath();" (statement_identifier) "private" (:) ":" (declaration) "static QString subEnvPath();" (storage_class_specifier) "static" (static) "static" (type_identifier) "QString" (function_declarator) "subEnvPath()" (identifier) "subEnvPath" (parameter_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "Qak::AndroidEnv _androidEnv;" (statement_identifier) "Qak" (:) ":" (ERROR) ":" (:) ":" (declaration) "AndroidEnv _androidEnv;" (type_identifier) "AndroidEnv" (identifier) "_androidEnv" (;) ";" (labeled_statement) "Qak::MouseEnv _mouseEnv;" (statement_identifier) "Qak" (:) ":" (ERROR) ":" (:) ":" (declaration) "MouseEnv _mouseEnv;" (type_identifier) "MouseEnv" (identifier) "_mouseEnv" (;) ";" (declaration) "QTranslator m_translator;" (type_identifier) "QTranslator" (identifier) "m_translator" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (preproc_call) "#endif // QAK_ENV_PRIVATE_H\n" (preproc_directive) "#endif" (comment) "// QAK_ENV_PRIVATE_H"
842
71
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 35.19, "nodes": 496, "errors": 0, "source_hash": "ca2f00a4d5154a9adf7f770ab91fb622c44c8d126231bc7332c0457990c71dab", "categorized_nodes": 375}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef QAK_ENV_PRIVATE_H\n#define QAK_ENV_PRIVATE_H\n\n#include <QDebug>\n#include <QStandardPaths>\n#include <QDir>\n#include <QFile>\n#include <QVariant>\n#include <QMoveEvent>\n#include <QWindow>\n#include <QApplication>\n#include <QResource>\n#include <QTranslator>\n#include <QQuickItem>\n#include <QQmlEngine>\n#include <QQmlContext>\n\n#include <QtGui/QGuiApplication>\n\n#if defined(Q_OS_ANDROID)\n#include <QAndroidJniEnvironment>\n#include <QAndroidJniObject>\n#include <QtAndroid>\n\n#if QT_VERSION < QT_VERSION_CHECK(5, 10, 0)\n#include \"permissions.h\"\n#endif\n\n#endif\n\nnamespace Qak {\n class AndroidEnv : public QObject\n {\n Q_OBJECT\n public:\n AndroidEnv(QObject *parent = 0);\n\n Q_INVOKABLE static QString obbPath();\n\n Q_INVOKABLE static bool checkPermission(const QString &permission);\n\n private:\n\n };\n}\n\nnamespace Qak {\n class MouseEnv : public QObject\n {\n Q_OBJECT\n\n public:\n MouseEnv(QObject *parent = 0);\n\n Q_INVOKABLE static void press(QObject *target, const QPointF &point);\n Q_INVOKABLE static void release(QObject *target, const QPointF &point);\n Q_INVOKABLE static void move(QObject *target, const QPointF &point);\n\n private:\n\n };\n}\n\nclass EnvPrivate : public QObject\n{\n Q_OBJECT\n Q_PROPERTY(Qak::AndroidEnv *android READ androidEnv)\n Q_PROPERTY(Qak::MouseEnv *mouse READ mouseEnv)\n\npublic:\n EnvPrivate(QObject* parent = nullptr);\n\n Q_INVOKABLE static QString appPath();\n Q_INVOKABLE static QString dataPath();\n Q_INVOKABLE static QString cachePath();\n Q_INVOKABLE static QString configPath();\n Q_INVOKABLE static QString tempPath();\n\n Q_INVOKABLE static bool copy(const QString &src, const QString &dst);\n Q_INVOKABLE static bool copy(const QString &src, const QString &dst, bool recursively);\n\n Q_INVOKABLE static bool remove(const QString &path);\n\n Q_INVOKABLE QString read(const QString &path);\n\n Q_INVOKABLE bool write(const QString& data, const QString &path);\n Q_INVOKABLE bool write(const QString& data, const QString &path, bool overwrite);\n\n Q_INVOKABLE static QStringList list(const QString &dir);\n Q_INVOKABLE static QStringList list(const QString &dir, bool recursively);\n\n Q_INVOKABLE static bool ensure(const QString &path);\n\n Q_INVOKABLE static bool exists(const QString &path);\n Q_INVOKABLE static bool isFile(const QString &path);\n Q_INVOKABLE static bool isDir(const QString &path);\n\n Q_INVOKABLE static qint64 size(const QString &path);\n\n Q_INVOKABLE static bool registerResource(const QString &rccFilename, const QString &resourceRoot=QString());\n Q_INVOKABLE static bool unregisterResource(const QString &rccFilename, const QString &resourceRoot=QString());\n\n Q_INVOKABLE void setLanguage(const QString &languageCode);\n // TODO move to seperate type / remove ?\n //Q_INVOKABLE static void click(const QPointF point);\n\n Qak::AndroidEnv *androidEnv();\n Qak::MouseEnv *mouseEnv();\n\nprivate:\n static QString subEnvPath();\n Qak::AndroidEnv _androidEnv;\n Qak::MouseEnv _mouseEnv;\n\n QTranslator m_translator;\n};\n\n#endif // QAK_ENV_PRIVATE_H\n", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42, 45, 48, 80, 81, 82, 118, 119, 120, 184, 494], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 118, "column": 0}}, {"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": "QAK_ENV_PRIVATE_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 25}}, {"id": 3, "type": "preproc_def", "text": "#define QAK_ENV_PRIVATE_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": "QAK_ENV_PRIVATE_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 25}}, {"id": 6, "type": "preproc_include", "text": "#include <QDebug>\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": "<QDebug>", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 17}}, {"id": 9, "type": "preproc_include", "text": "#include <QStandardPaths>\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": "<QStandardPaths>", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 25}}, {"id": 12, "type": "preproc_include", "text": "#include <QDir>\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": "system_lib_string", "text": "<QDir>", "parent": 12, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 15}}, {"id": 15, "type": "preproc_include", "text": "#include <QFile>\n", "parent": 0, "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": "<QFile>", "parent": 15, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 16}}, {"id": 18, "type": "preproc_include", "text": "#include <QVariant>\n", "parent": 0, "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": "<QVariant>", "parent": 18, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 19}}, {"id": 21, "type": "preproc_include", "text": "#include <QMoveEvent>\n", "parent": 0, "children": [22, 23], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 23, "type": "system_lib_string", "text": "<QMoveEvent>", "parent": 21, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 21}}, {"id": 24, "type": "preproc_include", "text": "#include <QWindow>\n", "parent": 0, "children": [25, 26], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 26, "type": "system_lib_string", "text": "<QWindow>", "parent": 24, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 18}}, {"id": 27, "type": "preproc_include", "text": "#include <QApplication>\n", "parent": 0, "children": [28, 29], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 28, "type": "#include", "text": "#include", "parent": 27, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 29, "type": "system_lib_string", "text": "<QApplication>", "parent": 27, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 23}}, {"id": 30, "type": "preproc_include", "text": "#include <QResource>\n", "parent": 0, "children": [31, 32], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 31, "type": "#include", "text": "#include", "parent": 30, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 32, "type": "system_lib_string", "text": "<QResource>", "parent": 30, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 20}}, {"id": 33, "type": "preproc_include", "text": "#include <QTranslator>\n", "parent": 0, "children": [34, 35], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 34, "type": "#include", "text": "#include", "parent": 33, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 35, "type": "system_lib_string", "text": "<QTranslator>", "parent": 33, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 22}}, {"id": 36, "type": "preproc_include", "text": "#include <QQuickItem>\n", "parent": 0, "children": [37, 38], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 37, "type": "#include", "text": "#include", "parent": 36, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 38, "type": "system_lib_string", "text": "<QQuickItem>", "parent": 36, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 21}}, {"id": 39, "type": "preproc_include", "text": "#include <QQmlEngine>\n", "parent": 0, "children": [40, 41], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 40, "type": "#include", "text": "#include", "parent": 39, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 8}}, {"id": 41, "type": "system_lib_string", "text": "<QQmlEngine>", "parent": 39, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 21}}, {"id": 42, "type": "preproc_include", "text": "#include <QQmlContext>\n", "parent": 0, "children": [43, 44], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 43, "type": "#include", "text": "#include", "parent": 42, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 8}}, {"id": 44, "type": "system_lib_string", "text": "<QQmlContext>", "parent": 42, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 22}}, {"id": 45, "type": "preproc_include", "text": "#include <QtGui/QGuiApplication>\n", "parent": 0, "children": [46, 47], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 46, "type": "#include", "text": "#include", "parent": 45, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 8}}, {"id": 47, "type": "system_lib_string", "text": "<QtGui/QGuiApplication>", "parent": 45, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 32}}, {"id": 48, "type": "preproc_if", "text": "#if defined(Q_OS_ANDROID)\n#include <QAndroidJniEnvironment>\n#include <QAndroidJniObject>\n#include <QtAndroid>\n\n#if QT_VERSION < QT_VERSION_CHECK(5, 10, 0)\n#include \"permissions.h\"\n#endif\n\n#endif", "parent": 0, "children": [49, 50, 53, 54, 57, 60, 63, 79], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 28, "column": 6}}, {"id": 49, "type": "#if", "text": "#if", "parent": 48, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 3}}, {"id": 50, "type": "preproc_defined", "text": "defined(Q_OS_ANDROID)", "parent": 48, "children": [51, 52], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 25}}, {"id": 51, "type": "defined", "text": "defined", "parent": 50, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 11}}, {"id": 52, "type": "identifier", "text": "Q_OS_ANDROID", "parent": 50, "children": [], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 24}}, {"id": 53, "type": "\n", "text": "\n", "parent": 48, "children": [], "start_point": {"row": 19, "column": 25}, "end_point": {"row": 20, "column": 0}}, {"id": 54, "type": "preproc_include", "text": "#include <QAndroidJniEnvironment>\n", "parent": 48, "children": [55, 56], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 55, "type": "#include", "text": "#include", "parent": 54, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 8}}, {"id": 56, "type": "system_lib_string", "text": "<QAndroidJniEnvironment>", "parent": 54, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 33}}, {"id": 57, "type": "preproc_include", "text": "#include <QAndroidJniObject>\n", "parent": 48, "children": [58, 59], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 58, "type": "#include", "text": "#include", "parent": 57, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 8}}, {"id": 59, "type": "system_lib_string", "text": "<QAndroidJniObject>", "parent": 57, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 28}}, {"id": 60, "type": "preproc_include", "text": "#include <QtAndroid>\n", "parent": 48, "children": [61, 62], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 61, "type": "#include", "text": "#include", "parent": 60, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 8}}, {"id": 62, "type": "system_lib_string", "text": "<QtAndroid>", "parent": 60, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 20}}, {"id": 63, "type": "preproc_if", "text": "#if QT_VERSION < QT_VERSION_CHECK(5, 10, 0)\n#include \"permissions.h\"\n#endif", "parent": 48, "children": [64, 65, 74, 75, 78], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 26, "column": 6}}, {"id": 64, "type": "#if", "text": "#if", "parent": 63, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 3}}, {"id": 65, "type": "binary_expression", "text": "QT_VERSION < QT_VERSION_CHECK(5, 10, 0)", "parent": 63, "children": [66, 67, 68], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 43}}, {"id": 66, "type": "identifier", "text": "QT_VERSION", "parent": 65, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 14}}, {"id": 67, "type": "<", "text": "<", "parent": 65, "children": [], "start_point": {"row": 24, "column": 15}, "end_point": {"row": 24, "column": 16}}, {"id": 68, "type": "call_expression", "text": "QT_VERSION_CHECK(5, 10, 0)", "parent": 65, "children": [69, 70], "start_point": {"row": 24, "column": 17}, "end_point": {"row": 24, "column": 43}}, {"id": 69, "type": "identifier", "text": "QT_VERSION_CHECK", "parent": 68, "children": [], "start_point": {"row": 24, "column": 17}, "end_point": {"row": 24, "column": 33}}, {"id": 70, "type": "argument_list", "text": "(5, 10, 0)", "parent": 68, "children": [71, 72, 73], "start_point": {"row": 24, "column": 33}, "end_point": {"row": 24, "column": 43}}, {"id": 71, "type": "number_literal", "text": "5", "parent": 70, "children": [], "start_point": {"row": 24, "column": 34}, "end_point": {"row": 24, "column": 35}}, {"id": 72, "type": "number_literal", "text": "10", "parent": 70, "children": [], "start_point": {"row": 24, "column": 37}, "end_point": {"row": 24, "column": 39}}, {"id": 73, "type": "number_literal", "text": "0", "parent": 70, "children": [], "start_point": {"row": 24, "column": 41}, "end_point": {"row": 24, "column": 42}}, {"id": 74, "type": "\n", "text": "\n", "parent": 63, "children": [], "start_point": {"row": 24, "column": 43}, "end_point": {"row": 25, "column": 0}}, {"id": 75, "type": "preproc_include", "text": "#include \"permissions.h\"\n", "parent": 63, "children": [76, 77], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 76, "type": "#include", "text": "#include", "parent": 75, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 8}}, {"id": 77, "type": "string_literal", "text": "\"permissions.h\"", "parent": 75, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 24}}, {"id": 78, "type": "#endif", "text": "#endif", "parent": 63, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 6}}, {"id": 79, "type": "#endif", "text": "#endif", "parent": 48, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 6}}, {"id": 80, "type": "type_identifier", "text": "namespace", "parent": 0, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 9}}, {"id": 81, "type": "identifier", "text": "Qak", "parent": 0, "children": [], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 13}}, {"id": 82, "type": "function_definition", "text": "class AndroidEnv : public QObject\n {\n Q_OBJECT\n public:\n AndroidEnv(QObject *parent = 0);\n\n Q_INVOKABLE static QString obbPath();\n\n Q_INVOKABLE static bool checkPermission(const QString &permission);\n\n private:\n\n };\n}", "parent": 0, "children": [83, 84], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 44, "column": 1}}, {"id": 83, "type": "identifier", "text": "AndroidEnv", "parent": 82, "children": [], "start_point": {"row": 31, "column": 10}, "end_point": {"row": 31, "column": 20}}, {"id": 84, "type": "ERROR", "text": ": public QObject", "parent": 82, "children": [85], "start_point": {"row": 31, "column": 21}, "end_point": {"row": 31, "column": 37}}, {"id": 85, "type": "identifier", "text": "QObject", "parent": 84, "children": [], "start_point": {"row": 31, "column": 30}, "end_point": {"row": 31, "column": 37}}, {"id": 86, "type": "declaration", "text": "Q_OBJECT\n public:\n AndroidEnv(QObject *parent = 0);", "parent": 82, "children": [87, 88, 89], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 35, "column": 40}}, {"id": 87, "type": "type_identifier", "text": "Q_OBJECT", "parent": 86, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 16}}, {"id": 88, "type": "ERROR", "text": "public:", "parent": 86, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 11}}, {"id": 89, "type": "init_declarator", "text": "AndroidEnv(QObject *parent = 0", "parent": 86, "children": [90, 98, 99], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 38}}, {"id": 90, "type": "function_declarator", "text": "AndroidEnv(QObject *parent", "parent": 89, "children": [91, 92], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 34}}, {"id": 91, "type": "identifier", "text": "AndroidEnv", "parent": 90, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 18}}, {"id": 92, "type": "parameter_list", "text": "(QObject *parent", "parent": 90, "children": [93], "start_point": {"row": 35, "column": 18}, "end_point": {"row": 35, "column": 34}}, {"id": 93, "type": "parameter_declaration", "text": "QObject *parent", "parent": 92, "children": [94, 95], "start_point": {"row": 35, "column": 19}, "end_point": {"row": 35, "column": 34}}, {"id": 94, "type": "type_identifier", "text": "QObject", "parent": 93, "children": [], "start_point": {"row": 35, "column": 19}, "end_point": {"row": 35, "column": 26}}, {"id": 95, "type": "pointer_declarator", "text": "*parent", "parent": 93, "children": [96, 97], "start_point": {"row": 35, "column": 27}, "end_point": {"row": 35, "column": 34}}, {"id": 96, "type": "*", "text": "*", "parent": 95, "children": [], "start_point": {"row": 35, "column": 27}, "end_point": {"row": 35, "column": 28}}, {"id": 97, "type": "identifier", "text": "parent", "parent": 95, "children": [], "start_point": {"row": 35, "column": 28}, "end_point": {"row": 35, "column": 34}}, {"id": 98, "type": "=", "text": "=", "parent": 89, "children": [], "start_point": {"row": 35, "column": 35}, "end_point": {"row": 35, "column": 36}}, {"id": 99, "type": "number_literal", "text": "0", "parent": 89, "children": [], "start_point": {"row": 35, "column": 37}, "end_point": {"row": 35, "column": 38}}, {"id": 100, "type": "declaration", "text": "Q_INVOKABLE static QString obbPath();", "parent": 82, "children": [101, 102, 104], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 45}}, {"id": 101, "type": "type_identifier", "text": "Q_INVOKABLE", "parent": 100, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 19}}, {"id": 102, "type": "ERROR", "text": "QString", "parent": 100, "children": [103], "start_point": {"row": 37, "column": 27}, "end_point": {"row": 37, "column": 34}}, {"id": 103, "type": "identifier", "text": "QString", "parent": 102, "children": [], "start_point": {"row": 37, "column": 27}, "end_point": {"row": 37, "column": 34}}, {"id": 104, "type": "function_declarator", "text": "obbPath()", "parent": 100, "children": [105, 106], "start_point": {"row": 37, "column": 35}, "end_point": {"row": 37, "column": 44}}, {"id": 105, "type": "identifier", "text": "obbPath", "parent": 104, "children": [], "start_point": {"row": 37, "column": 35}, "end_point": {"row": 37, "column": 42}}, {"id": 106, "type": "parameter_list", "text": "()", "parent": 104, "children": [], "start_point": {"row": 37, "column": 42}, "end_point": {"row": 37, "column": 44}}, {"id": 107, "type": "declaration", "text": "Q_INVOKABLE static bool checkPermission(const QString &permission);", "parent": 82, "children": [108, 109, 111], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 75}}, {"id": 108, "type": "type_identifier", "text": "Q_INVOKABLE", "parent": 107, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 19}}, {"id": 109, "type": "ERROR", "text": "bool", "parent": 107, "children": [110], "start_point": {"row": 39, "column": 27}, "end_point": {"row": 39, "column": 31}}, {"id": 110, "type": "identifier", "text": "bool", "parent": 109, "children": [], "start_point": {"row": 39, "column": 27}, "end_point": {"row": 39, "column": 31}}, {"id": 111, "type": "function_declarator", "text": "checkPermission(const QString &permission)", "parent": 107, "children": [112, 113], "start_point": {"row": 39, "column": 32}, "end_point": {"row": 39, "column": 74}}, {"id": 112, "type": "identifier", "text": "checkPermission", "parent": 111, "children": [], "start_point": {"row": 39, "column": 32}, "end_point": {"row": 39, "column": 47}}, {"id": 113, "type": "parameter_list", "text": "(const QString &permission)", "parent": 111, "children": [114], "start_point": {"row": 39, "column": 47}, "end_point": {"row": 39, "column": 74}}, {"id": 114, "type": "parameter_declaration", "text": "const QString &permission", "parent": 113, "children": [115, 116], "start_point": {"row": 39, "column": 48}, "end_point": {"row": 39, "column": 73}}, {"id": 115, "type": "type_identifier", "text": "QString", "parent": 114, "children": [], "start_point": {"row": 39, "column": 54}, "end_point": {"row": 39, "column": 61}}, {"id": 116, "type": "identifier", "text": "permission", "parent": 114, "children": [], "start_point": {"row": 39, "column": 63}, "end_point": {"row": 39, "column": 73}}, {"id": 117, "type": "labeled_statement", "text": "private:\n\n };", "parent": 82, "children": [], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 43, "column": 6}}, {"id": 118, "type": "type_identifier", "text": "namespace", "parent": 0, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 9}}, {"id": 119, "type": "identifier", "text": "Qak", "parent": 0, "children": [], "start_point": {"row": 46, "column": 10}, "end_point": {"row": 46, "column": 13}}, {"id": 120, "type": "function_definition", "text": "class MouseEnv : public QObject\n {\n Q_OBJECT\n\n public:\n MouseEnv(QObject *parent = 0);\n\n Q_INVOKABLE static void press(QObject *target, const QPointF &point);\n Q_INVOKABLE static void release(QObject *target, const QPointF &point);\n Q_INVOKABLE static void move(QObject *target, const QPointF &point);\n\n private:\n\n };\n}", "parent": 0, "children": [121, 122], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 61, "column": 1}}, {"id": 121, "type": "identifier", "text": "MouseEnv", "parent": 120, "children": [], "start_point": {"row": 47, "column": 10}, "end_point": {"row": 47, "column": 18}}, {"id": 122, "type": "ERROR", "text": ": public QObject", "parent": 120, "children": [123], "start_point": {"row": 47, "column": 19}, "end_point": {"row": 47, "column": 35}}, {"id": 123, "type": "identifier", "text": "QObject", "parent": 122, "children": [], "start_point": {"row": 47, "column": 28}, "end_point": {"row": 47, "column": 35}}, {"id": 124, "type": "declaration", "text": "Q_OBJECT\n\n public:\n MouseEnv(QObject *parent = 0);", "parent": 120, "children": [125, 126, 127], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 52, "column": 38}}, {"id": 125, "type": "type_identifier", "text": "Q_OBJECT", "parent": 124, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 16}}, {"id": 126, "type": "ERROR", "text": "public:", "parent": 124, "children": [], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 11}}, {"id": 127, "type": "init_declarator", "text": "MouseEnv(QObject *parent = 0", "parent": 124, "children": [128, 136, 137], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 36}}, {"id": 128, "type": "function_declarator", "text": "MouseEnv(QObject *parent", "parent": 127, "children": [129, 130], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 32}}, {"id": 129, "type": "identifier", "text": "MouseEnv", "parent": 128, "children": [], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 16}}, {"id": 130, "type": "parameter_list", "text": "(QObject *parent", "parent": 128, "children": [131], "start_point": {"row": 52, "column": 16}, "end_point": {"row": 52, "column": 32}}, {"id": 131, "type": "parameter_declaration", "text": "QObject *parent", "parent": 130, "children": [132, 133], "start_point": {"row": 52, "column": 17}, "end_point": {"row": 52, "column": 32}}, {"id": 132, "type": "type_identifier", "text": "QObject", "parent": 131, "children": [], "start_point": {"row": 52, "column": 17}, "end_point": {"row": 52, "column": 24}}, {"id": 133, "type": "pointer_declarator", "text": "*parent", "parent": 131, "children": [134, 135], "start_point": {"row": 52, "column": 25}, "end_point": {"row": 52, "column": 32}}, {"id": 134, "type": "*", "text": "*", "parent": 133, "children": [], "start_point": {"row": 52, "column": 25}, "end_point": {"row": 52, "column": 26}}, {"id": 135, "type": "identifier", "text": "parent", "parent": 133, "children": [], "start_point": {"row": 52, "column": 26}, "end_point": {"row": 52, "column": 32}}, {"id": 136, "type": "=", "text": "=", "parent": 127, "children": [], "start_point": {"row": 52, "column": 33}, "end_point": {"row": 52, "column": 34}}, {"id": 137, "type": "number_literal", "text": "0", "parent": 127, "children": [], "start_point": {"row": 52, "column": 35}, "end_point": {"row": 52, "column": 36}}, {"id": 138, "type": "declaration", "text": "Q_INVOKABLE static void press(QObject *target, const QPointF &point);", "parent": 120, "children": [139, 140, 142], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 77}}, {"id": 139, "type": "type_identifier", "text": "Q_INVOKABLE", "parent": 138, "children": [], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 19}}, {"id": 140, "type": "ERROR", "text": "void", "parent": 138, "children": [141], "start_point": {"row": 54, "column": 27}, "end_point": {"row": 54, "column": 31}}, {"id": 141, "type": "identifier", "text": "void", "parent": 140, "children": [], "start_point": {"row": 54, "column": 27}, "end_point": {"row": 54, "column": 31}}, {"id": 142, "type": "function_declarator", "text": "press(QObject *target, const QPointF &point)", "parent": 138, "children": [143, 144], "start_point": {"row": 54, "column": 32}, "end_point": {"row": 54, "column": 76}}, {"id": 143, "type": "identifier", "text": "press", "parent": 142, "children": [], "start_point": {"row": 54, "column": 32}, "end_point": {"row": 54, "column": 37}}, {"id": 144, "type": "parameter_list", "text": "(QObject *target, const QPointF &point)", "parent": 142, "children": [145, 150], "start_point": {"row": 54, "column": 37}, "end_point": {"row": 54, "column": 76}}, {"id": 145, "type": "parameter_declaration", "text": "QObject *target", "parent": 144, "children": [146, 147], "start_point": {"row": 54, "column": 38}, "end_point": {"row": 54, "column": 53}}, {"id": 146, "type": "type_identifier", "text": "QObject", "parent": 145, "children": [], "start_point": {"row": 54, "column": 38}, "end_point": {"row": 54, "column": 45}}, {"id": 147, "type": "pointer_declarator", "text": "*target", "parent": 145, "children": [148, 149], "start_point": {"row": 54, "column": 46}, "end_point": {"row": 54, "column": 53}}, {"id": 148, "type": "*", "text": "*", "parent": 147, "children": [], "start_point": {"row": 54, "column": 46}, "end_point": {"row": 54, "column": 47}}, {"id": 149, "type": "identifier", "text": "target", "parent": 147, "children": [], "start_point": {"row": 54, "column": 47}, "end_point": {"row": 54, "column": 53}}, {"id": 150, "type": "parameter_declaration", "text": "const QPointF &point", "parent": 144, "children": [151, 152], "start_point": {"row": 54, "column": 55}, "end_point": {"row": 54, "column": 75}}, {"id": 151, "type": "type_identifier", "text": "QPointF", "parent": 150, "children": [], "start_point": {"row": 54, "column": 61}, "end_point": {"row": 54, "column": 68}}, {"id": 152, "type": "identifier", "text": "point", "parent": 150, "children": [], "start_point": {"row": 54, "column": 70}, "end_point": {"row": 54, "column": 75}}, {"id": 153, "type": "declaration", "text": "Q_INVOKABLE static void release(QObject *target, const QPointF &point);", "parent": 120, "children": [154, 155, 157], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 79}}, {"id": 154, "type": "type_identifier", "text": "Q_INVOKABLE", "parent": 153, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 19}}, {"id": 155, "type": "ERROR", "text": "void", "parent": 153, "children": [156], "start_point": {"row": 55, "column": 27}, "end_point": {"row": 55, "column": 31}}, {"id": 156, "type": "identifier", "text": "void", "parent": 155, "children": [], "start_point": {"row": 55, "column": 27}, "end_point": {"row": 55, "column": 31}}, {"id": 157, "type": "function_declarator", "text": "release(QObject *target, const QPointF &point)", "parent": 153, "children": [158, 159], "start_point": {"row": 55, "column": 32}, "end_point": {"row": 55, "column": 78}}, {"id": 158, "type": "identifier", "text": "release", "parent": 157, "children": [], "start_point": {"row": 55, "column": 32}, "end_point": {"row": 55, "column": 39}}, {"id": 159, "type": "parameter_list", "text": "(QObject *target, const QPointF &point)", "parent": 157, "children": [160, 165], "start_point": {"row": 55, "column": 39}, "end_point": {"row": 55, "column": 78}}, {"id": 160, "type": "parameter_declaration", "text": "QObject *target", "parent": 159, "children": [161, 162], "start_point": {"row": 55, "column": 40}, "end_point": {"row": 55, "column": 55}}, {"id": 161, "type": "type_identifier", "text": "QObject", "parent": 160, "children": [], "start_point": {"row": 55, "column": 40}, "end_point": {"row": 55, "column": 47}}, {"id": 162, "type": "pointer_declarator", "text": "*target", "parent": 160, "children": [163, 164], "start_point": {"row": 55, "column": 48}, "end_point": {"row": 55, "column": 55}}, {"id": 163, "type": "*", "text": "*", "parent": 162, "children": [], "start_point": {"row": 55, "column": 48}, "end_point": {"row": 55, "column": 49}}, {"id": 164, "type": "identifier", "text": "target", "parent": 162, "children": [], "start_point": {"row": 55, "column": 49}, "end_point": {"row": 55, "column": 55}}, {"id": 165, "type": "parameter_declaration", "text": "const QPointF &point", "parent": 159, "children": [166, 167], "start_point": {"row": 55, "column": 57}, "end_point": {"row": 55, "column": 77}}, {"id": 166, "type": "type_identifier", "text": "QPointF", "parent": 165, "children": [], "start_point": {"row": 55, "column": 63}, "end_point": {"row": 55, "column": 70}}, {"id": 167, "type": "identifier", "text": "point", "parent": 165, "children": [], "start_point": {"row": 55, "column": 72}, "end_point": {"row": 55, "column": 77}}, {"id": 168, "type": "declaration", "text": "Q_INVOKABLE static void move(QObject *target, const QPointF &point);", "parent": 120, "children": [169, 170, 172], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 76}}, {"id": 169, "type": "type_identifier", "text": "Q_INVOKABLE", "parent": 168, "children": [], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 19}}, {"id": 170, "type": "ERROR", "text": "void", "parent": 168, "children": [171], "start_point": {"row": 56, "column": 27}, "end_point": {"row": 56, "column": 31}}, {"id": 171, "type": "identifier", "text": "void", "parent": 170, "children": [], "start_point": {"row": 56, "column": 27}, "end_point": {"row": 56, "column": 31}}, {"id": 172, "type": "function_declarator", "text": "move(QObject *target, const QPointF &point)", "parent": 168, "children": [173, 174], "start_point": {"row": 56, "column": 32}, "end_point": {"row": 56, "column": 75}}, {"id": 173, "type": "identifier", "text": "move", "parent": 172, "children": [], "start_point": {"row": 56, "column": 32}, "end_point": {"row": 56, "column": 36}}, {"id": 174, "type": "parameter_list", "text": "(QObject *target, const QPointF &point)", "parent": 172, "children": [175, 180], "start_point": {"row": 56, "column": 36}, "end_point": {"row": 56, "column": 75}}, {"id": 175, "type": "parameter_declaration", "text": "QObject *target", "parent": 174, "children": [176, 177], "start_point": {"row": 56, "column": 37}, "end_point": {"row": 56, "column": 52}}, {"id": 176, "type": "type_identifier", "text": "QObject", "parent": 175, "children": [], "start_point": {"row": 56, "column": 37}, "end_point": {"row": 56, "column": 44}}, {"id": 177, "type": "pointer_declarator", "text": "*target", "parent": 175, "children": [178, 179], "start_point": {"row": 56, "column": 45}, "end_point": {"row": 56, "column": 52}}, {"id": 178, "type": "*", "text": "*", "parent": 177, "children": [], "start_point": {"row": 56, "column": 45}, "end_point": {"row": 56, "column": 46}}, {"id": 179, "type": "identifier", "text": "target", "parent": 177, "children": [], "start_point": {"row": 56, "column": 46}, "end_point": {"row": 56, "column": 52}}, {"id": 180, "type": "parameter_declaration", "text": "const QPointF &point", "parent": 174, "children": [181, 182], "start_point": {"row": 56, "column": 54}, "end_point": {"row": 56, "column": 74}}, {"id": 181, "type": "type_identifier", "text": "QPointF", "parent": 180, "children": [], "start_point": {"row": 56, "column": 60}, "end_point": {"row": 56, "column": 67}}, {"id": 182, "type": "identifier", "text": "point", "parent": 180, "children": [], "start_point": {"row": 56, "column": 69}, "end_point": {"row": 56, "column": 74}}, {"id": 183, "type": "labeled_statement", "text": "private:\n\n };", "parent": 120, "children": [], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 60, "column": 6}}, {"id": 184, "type": "function_definition", "text": "class EnvPrivate : public QObject\n{\n Q_OBJECT\n Q_PROPERTY(Qak::AndroidEnv *android READ androidEnv)\n Q_PROPERTY(Qak::MouseEnv *mouse READ mouseEnv)\n\npublic:\n EnvPrivate(QObject* parent = nullptr);\n\n Q_INVOKABLE static QString appPath();\n Q_INVOKABLE static QString dataPath();\n Q_INVOKABLE static QString cachePath();\n Q_INVOKABLE static QString configPath();\n Q_INVOKABLE static QString tempPath();\n\n Q_INVOKABLE static bool copy(const QString &src, const QString &dst);\n Q_INVOKABLE static bool copy(const QString &src, const QString &dst, bool recursively);\n\n Q_INVOKABLE static bool remove(const QString &path);\n\n Q_INVOKABLE QString read(const QString &path);\n\n Q_INVOKABLE bool write(const QString& data, const QString &path);\n Q_INVOKABLE bool write(const QString& data, const QString &path, bool overwrite);\n\n Q_INVOKABLE static QStringList list(const QString &dir);\n Q_INVOKABLE static QStringList list(const QString &dir, bool recursively);\n\n Q_INVOKABLE static bool ensure(const QString &path);\n\n Q_INVOKABLE static bool exists(const QString &path);\n Q_INVOKABLE static bool isFile(const QString &path);\n Q_INVOKABLE static bool isDir(const QString &path);\n\n Q_INVOKABLE static qint64 size(const QString &path);\n\n Q_INVOKABLE static bool registerResource(const QString &rccFilename, const QString &resourceRoot=QString());\n Q_INVOKABLE static bool unregisterResource(const QString &rccFilename, const QString &resourceRoot=QString());\n\n Q_INVOKABLE void setLanguage(const QString &languageCode);\n // TODO move to seperate type / remove ?\n //Q_INVOKABLE static void click(const QPointF point);\n\n Qak::AndroidEnv *androidEnv();\n Qak::MouseEnv *mouseEnv();\n\nprivate:\n static QString subEnvPath();\n Qak::AndroidEnv _androidEnv;\n Qak::MouseEnv _mouseEnv;\n\n QTranslator m_translator;\n}", "parent": 0, "children": [185, 186], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 115, "column": 1}}, {"id": 185, "type": "identifier", "text": "EnvPrivate", "parent": 184, "children": [], "start_point": {"row": 63, "column": 6}, "end_point": {"row": 63, "column": 16}}, {"id": 186, "type": "ERROR", "text": ": public QObject", "parent": 184, "children": [187], "start_point": {"row": 63, "column": 17}, "end_point": {"row": 63, "column": 33}}, {"id": 187, "type": "identifier", "text": "QObject", "parent": 186, "children": [], "start_point": {"row": 63, "column": 26}, "end_point": {"row": 63, "column": 33}}, {"id": 188, "type": "declaration", "text": "Q_OBJECT\n Q_PROPERTY(Qak::AndroidEnv *android READ androidEnv)\n Q_PROPERTY(Qak::MouseEnv *mouse READ mouseEnv)\n\npublic:\n EnvPrivate(QObject* parent = nullptr);", "parent": 184, "children": [189, 190], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 70, "column": 42}}, {"id": 189, "type": "type_identifier", "text": "Q_OBJECT", "parent": 188, "children": [], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 12}}, {"id": 190, "type": "init_declarator", "text": "Q_PROPERTY(Qak::AndroidEnv *android READ androidEnv)\n Q_PROPERTY(Qak::MouseEnv *mouse READ mouseEnv)\n\npublic:\n EnvPrivate(QObject* parent = nullptr", "parent": 188, "children": [191, 223, 224], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 70, "column": 40}}, {"id": 191, "type": "function_declarator", "text": "Q_PROPERTY(Qak::AndroidEnv *android READ androidEnv)\n Q_PROPERTY(Qak::MouseEnv *mouse READ mouseEnv)\n\npublic:\n EnvPrivate(QObject* parent", "parent": 190, "children": [192, 193, 204, 216], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 70, "column": 30}}, {"id": 192, "type": "identifier", "text": "Q_PROPERTY", "parent": 191, "children": [], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 14}}, {"id": 193, "type": "parameter_list", "text": "(Qak::AndroidEnv *android READ androidEnv)", "parent": 191, "children": [194], "start_point": {"row": 66, "column": 14}, "end_point": {"row": 66, "column": 56}}, {"id": 194, "type": "parameter_declaration", "text": "Qak::AndroidEnv *android READ androidEnv", "parent": 193, "children": [195, 196, 198], "start_point": {"row": 66, "column": 15}, "end_point": {"row": 66, "column": 55}}, {"id": 195, "type": "type_identifier", "text": "Qak", "parent": 194, "children": [], "start_point": {"row": 66, "column": 15}, "end_point": {"row": 66, "column": 18}}, {"id": 196, "type": "ERROR", "text": "::AndroidEnv", "parent": 194, "children": [197], "start_point": {"row": 66, "column": 18}, "end_point": {"row": 66, "column": 30}}, {"id": 197, "type": "identifier", "text": "AndroidEnv", "parent": 196, "children": [], "start_point": {"row": 66, "column": 20}, "end_point": {"row": 66, "column": 30}}, {"id": 198, "type": "pointer_declarator", "text": "*android READ androidEnv", "parent": 194, "children": [199, 200, 203], "start_point": {"row": 66, "column": 31}, "end_point": {"row": 66, "column": 55}}, {"id": 199, "type": "*", "text": "*", "parent": 198, "children": [], "start_point": {"row": 66, "column": 31}, "end_point": {"row": 66, "column": 32}}, {"id": 200, "type": "ERROR", "text": "android READ", "parent": 198, "children": [201, 202], "start_point": {"row": 66, "column": 32}, "end_point": {"row": 66, "column": 44}}, {"id": 201, "type": "identifier", "text": "android", "parent": 200, "children": [], "start_point": {"row": 66, "column": 32}, "end_point": {"row": 66, "column": 39}}, {"id": 202, "type": "identifier", "text": "READ", "parent": 200, "children": [], "start_point": {"row": 66, "column": 40}, "end_point": {"row": 66, "column": 44}}, {"id": 203, "type": "identifier", "text": "androidEnv", "parent": 198, "children": [], "start_point": {"row": 66, "column": 45}, "end_point": {"row": 66, "column": 55}}, {"id": 204, "type": "call_expression", "text": "Q_PROPERTY(Qak::MouseEnv *mouse READ mouseEnv)", "parent": 191, "children": [205, 206], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 50}}, {"id": 205, "type": "identifier", "text": "Q_PROPERTY", "parent": 204, "children": [], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 14}}, {"id": 206, "type": "argument_list", "text": "(Qak::MouseEnv *mouse READ mouseEnv)", "parent": 204, "children": [207, 209], "start_point": {"row": 67, "column": 14}, "end_point": {"row": 67, "column": 50}}, {"id": 207, "type": "ERROR", "text": "Qak::", "parent": 206, "children": [208], "start_point": {"row": 67, "column": 15}, "end_point": {"row": 67, "column": 20}}, {"id": 208, "type": "identifier", "text": "Qak", "parent": 207, "children": [], "start_point": {"row": 67, "column": 15}, "end_point": {"row": 67, "column": 18}}, {"id": 209, "type": "binary_expression", "text": "MouseEnv *mouse READ mouseEnv", "parent": 206, "children": [210, 211, 212, 215], "start_point": {"row": 67, "column": 20}, "end_point": {"row": 67, "column": 49}}, {"id": 210, "type": "identifier", "text": "MouseEnv", "parent": 209, "children": [], "start_point": {"row": 67, "column": 20}, "end_point": {"row": 67, "column": 28}}, {"id": 211, "type": "*", "text": "*", "parent": 209, "children": [], "start_point": {"row": 67, "column": 29}, "end_point": {"row": 67, "column": 30}}, {"id": 212, "type": "ERROR", "text": "mouse READ", "parent": 209, "children": [213, 214], "start_point": {"row": 67, "column": 30}, "end_point": {"row": 67, "column": 40}}, {"id": 213, "type": "identifier", "text": "mouse", "parent": 212, "children": [], "start_point": {"row": 67, "column": 30}, "end_point": {"row": 67, "column": 35}}, {"id": 214, "type": "identifier", "text": "READ", "parent": 212, "children": [], "start_point": {"row": 67, "column": 36}, "end_point": {"row": 67, "column": 40}}, {"id": 215, "type": "identifier", "text": "mouseEnv", "parent": 209, "children": [], "start_point": {"row": 67, "column": 41}, "end_point": {"row": 67, "column": 49}}, {"id": 216, "type": "call_expression", "text": "EnvPrivate(QObject* parent", "parent": 191, "children": [217, 218], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 30}}, {"id": 217, "type": "identifier", "text": "EnvPrivate", "parent": 216, "children": [], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 14}}, {"id": 218, "type": "argument_list", "text": "(QObject* parent", "parent": 216, "children": [219], "start_point": {"row": 70, "column": 14}, "end_point": {"row": 70, "column": 30}}, {"id": 219, "type": "binary_expression", "text": "QObject* parent", "parent": 218, "children": [220, 221, 222], "start_point": {"row": 70, "column": 15}, "end_point": {"row": 70, "column": 30}}, {"id": 220, "type": "identifier", "text": "QObject", "parent": 219, "children": [], "start_point": {"row": 70, "column": 15}, "end_point": {"row": 70, "column": 22}}, {"id": 221, "type": "*", "text": "*", "parent": 219, "children": [], "start_point": {"row": 70, "column": 22}, "end_point": {"row": 70, "column": 23}}, {"id": 222, "type": "identifier", "text": "parent", "parent": 219, "children": [], "start_point": {"row": 70, "column": 24}, "end_point": {"row": 70, "column": 30}}, {"id": 223, "type": "=", "text": "=", "parent": 190, "children": [], "start_point": {"row": 70, "column": 31}, "end_point": {"row": 70, "column": 32}}, {"id": 224, "type": "null", "text": "nullptr", "parent": 190, "children": [225], "start_point": {"row": 70, "column": 33}, "end_point": {"row": 70, "column": 40}}, {"id": 225, "type": "nullptr", "text": "nullptr", "parent": 224, "children": [], "start_point": {"row": 70, "column": 33}, "end_point": {"row": 70, "column": 40}}, {"id": 226, "type": "declaration", "text": "Q_INVOKABLE static QString appPath();", "parent": 184, "children": [227, 228, 230], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 41}}, {"id": 227, "type": "type_identifier", "text": "Q_INVOKABLE", "parent": 226, "children": [], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 15}}, {"id": 228, "type": "ERROR", "text": "QString", "parent": 226, "children": [229], "start_point": {"row": 72, "column": 23}, "end_point": {"row": 72, "column": 30}}, {"id": 229, "type": "identifier", "text": "QString", "parent": 228, "children": [], "start_point": {"row": 72, "column": 23}, "end_point": {"row": 72, "column": 30}}, {"id": 230, "type": "function_declarator", "text": "appPath()", "parent": 226, "children": [231, 232], "start_point": {"row": 72, "column": 31}, "end_point": {"row": 72, "column": 40}}, {"id": 231, "type": "identifier", "text": "appPath", "parent": 230, "children": [], "start_point": {"row": 72, "column": 31}, "end_point": {"row": 72, "column": 38}}, {"id": 232, "type": "parameter_list", "text": "()", "parent": 230, "children": [], "start_point": {"row": 72, "column": 38}, "end_point": {"row": 72, "column": 40}}, {"id": 233, "type": "declaration", "text": "Q_INVOKABLE static QString dataPath();", "parent": 184, "children": [234, 235, 237], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 42}}, {"id": 234, "type": "type_identifier", "text": "Q_INVOKABLE", "parent": 233, "children": [], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 15}}, {"id": 235, "type": "ERROR", "text": "QString", "parent": 233, "children": [236], "start_point": {"row": 73, "column": 23}, "end_point": {"row": 73, "column": 30}}, {"id": 236, "type": "identifier", "text": "QString", "parent": 235, "children": [], "start_point": {"row": 73, "column": 23}, "end_point": {"row": 73, "column": 30}}, {"id": 237, "type": "function_declarator", "text": "dataPath()", "parent": 233, "children": [238, 239], "start_point": {"row": 73, "column": 31}, "end_point": {"row": 73, "column": 41}}, {"id": 238, "type": "identifier", "text": "dataPath", "parent": 237, "children": [], "start_point": {"row": 73, "column": 31}, "end_point": {"row": 73, "column": 39}}, {"id": 239, "type": "parameter_list", "text": "()", "parent": 237, "children": [], "start_point": {"row": 73, "column": 39}, "end_point": {"row": 73, "column": 41}}, {"id": 240, "type": "declaration", "text": "Q_INVOKABLE static QString cachePath();", "parent": 184, "children": [241, 242, 244], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 43}}, {"id": 241, "type": "type_identifier", "text": "Q_INVOKABLE", "parent": 240, "children": [], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 15}}, {"id": 242, "type": "ERROR", "text": "QString", "parent": 240, "children": [243], "start_point": {"row": 74, "column": 23}, "end_point": {"row": 74, "column": 30}}, {"id": 243, "type": "identifier", "text": "QString", "parent": 242, "children": [], "start_point": {"row": 74, "column": 23}, "end_point": {"row": 74, "column": 30}}, {"id": 244, "type": "function_declarator", "text": "cachePath()", "parent": 240, "children": [245, 246], "start_point": {"row": 74, "column": 31}, "end_point": {"row": 74, "column": 42}}, {"id": 245, "type": "identifier", "text": "cachePath", "parent": 244, "children": [], "start_point": {"row": 74, "column": 31}, "end_point": {"row": 74, "column": 40}}, {"id": 246, "type": "parameter_list", "text": "()", "parent": 244, "children": [], "start_point": {"row": 74, "column": 40}, "end_point": {"row": 74, "column": 42}}, {"id": 247, "type": "declaration", "text": "Q_INVOKABLE static QString configPath();", "parent": 184, "children": [248, 249, 251], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 44}}, {"id": 248, "type": "type_identifier", "text": "Q_INVOKABLE", "parent": 247, "children": [], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 15}}, {"id": 249, "type": "ERROR", "text": "QString", "parent": 247, "children": [250], "start_point": {"row": 75, "column": 23}, "end_point": {"row": 75, "column": 30}}, {"id": 250, "type": "identifier", "text": "QString", "parent": 249, "children": [], "start_point": {"row": 75, "column": 23}, "end_point": {"row": 75, "column": 30}}, {"id": 251, "type": "function_declarator", "text": "configPath()", "parent": 247, "children": [252, 253], "start_point": {"row": 75, "column": 31}, "end_point": {"row": 75, "column": 43}}, {"id": 252, "type": "identifier", "text": "configPath", "parent": 251, "children": [], "start_point": {"row": 75, "column": 31}, "end_point": {"row": 75, "column": 41}}, {"id": 253, "type": "parameter_list", "text": "()", "parent": 251, "children": [], "start_point": {"row": 75, "column": 41}, "end_point": {"row": 75, "column": 43}}, {"id": 254, "type": "declaration", "text": "Q_INVOKABLE static QString tempPath();", "parent": 184, "children": [255, 256, 258], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 42}}, {"id": 255, "type": "type_identifier", "text": "Q_INVOKABLE", "parent": 254, "children": [], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 15}}, {"id": 256, "type": "ERROR", "text": "QString", "parent": 254, "children": [257], "start_point": {"row": 76, "column": 23}, "end_point": {"row": 76, "column": 30}}, {"id": 257, "type": "identifier", "text": "QString", "parent": 256, "children": [], "start_point": {"row": 76, "column": 23}, "end_point": {"row": 76, "column": 30}}, {"id": 258, "type": "function_declarator", "text": "tempPath()", "parent": 254, "children": [259, 260], "start_point": {"row": 76, "column": 31}, "end_point": {"row": 76, "column": 41}}, {"id": 259, "type": "identifier", "text": "tempPath", "parent": 258, "children": [], "start_point": {"row": 76, "column": 31}, "end_point": {"row": 76, "column": 39}}, {"id": 260, "type": "parameter_list", "text": "()", "parent": 258, "children": [], "start_point": {"row": 76, "column": 39}, "end_point": {"row": 76, "column": 41}}, {"id": 261, "type": "declaration", "text": "Q_INVOKABLE static bool copy(const QString &src, const QString &dst);", "parent": 184, "children": [262, 263, 265], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 73}}, {"id": 262, "type": "type_identifier", "text": "Q_INVOKABLE", "parent": 261, "children": [], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 15}}, {"id": 263, "type": "ERROR", "text": "bool", "parent": 261, "children": [264], "start_point": {"row": 78, "column": 23}, "end_point": {"row": 78, "column": 27}}, {"id": 264, "type": "identifier", "text": "bool", "parent": 263, "children": [], "start_point": {"row": 78, "column": 23}, "end_point": {"row": 78, "column": 27}}, {"id": 265, "type": "function_declarator", "text": "copy(const QString &src, const QString &dst)", "parent": 261, "children": [266, 267], "start_point": {"row": 78, "column": 28}, "end_point": {"row": 78, "column": 72}}, {"id": 266, "type": "identifier", "text": "copy", "parent": 265, "children": [], "start_point": {"row": 78, "column": 28}, "end_point": {"row": 78, "column": 32}}, {"id": 267, "type": "parameter_list", "text": "(const QString &src, const QString &dst)", "parent": 265, "children": [268, 271], "start_point": {"row": 78, "column": 32}, "end_point": {"row": 78, "column": 72}}, {"id": 268, "type": "parameter_declaration", "text": "const QString &src", "parent": 267, "children": [269, 270], "start_point": {"row": 78, "column": 33}, "end_point": {"row": 78, "column": 51}}, {"id": 269, "type": "type_identifier", "text": "QString", "parent": 268, "children": [], "start_point": {"row": 78, "column": 39}, "end_point": {"row": 78, "column": 46}}, {"id": 270, "type": "identifier", "text": "src", "parent": 268, "children": [], "start_point": {"row": 78, "column": 48}, "end_point": {"row": 78, "column": 51}}, {"id": 271, "type": "parameter_declaration", "text": "const QString &dst", "parent": 267, "children": [272, 273], "start_point": {"row": 78, "column": 53}, "end_point": {"row": 78, "column": 71}}, {"id": 272, "type": "type_identifier", "text": "QString", "parent": 271, "children": [], "start_point": {"row": 78, "column": 59}, "end_point": {"row": 78, "column": 66}}, {"id": 273, "type": "identifier", "text": "dst", "parent": 271, "children": [], "start_point": {"row": 78, "column": 68}, "end_point": {"row": 78, "column": 71}}, {"id": 274, "type": "declaration", "text": "Q_INVOKABLE static bool copy(const QString &src, const QString &dst, bool recursively);", "parent": 184, "children": [275, 276, 278], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 91}}, {"id": 275, "type": "type_identifier", "text": "Q_INVOKABLE", "parent": 274, "children": [], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 15}}, {"id": 276, "type": "ERROR", "text": "bool", "parent": 274, "children": [277], "start_point": {"row": 79, "column": 23}, "end_point": {"row": 79, "column": 27}}, {"id": 277, "type": "identifier", "text": "bool", "parent": 276, "children": [], "start_point": {"row": 79, "column": 23}, "end_point": {"row": 79, "column": 27}}, {"id": 278, "type": "function_declarator", "text": "copy(const QString &src, const QString &dst, bool recursively)", "parent": 274, "children": [279, 280], "start_point": {"row": 79, "column": 28}, "end_point": {"row": 79, "column": 90}}, {"id": 279, "type": "identifier", "text": "copy", "parent": 278, "children": [], "start_point": {"row": 79, "column": 28}, "end_point": {"row": 79, "column": 32}}, {"id": 280, "type": "parameter_list", "text": "(const QString &src, const QString &dst, bool recursively)", "parent": 278, "children": [281, 284, 287], "start_point": {"row": 79, "column": 32}, "end_point": {"row": 79, "column": 90}}, {"id": 281, "type": "parameter_declaration", "text": "const QString &src", "parent": 280, "children": [282, 283], "start_point": {"row": 79, "column": 33}, "end_point": {"row": 79, "column": 51}}, {"id": 282, "type": "type_identifier", "text": "QString", "parent": 281, "children": [], "start_point": {"row": 79, "column": 39}, "end_point": {"row": 79, "column": 46}}, {"id": 283, "type": "identifier", "text": "src", "parent": 281, "children": [], "start_point": {"row": 79, "column": 48}, "end_point": {"row": 79, "column": 51}}, {"id": 284, "type": "parameter_declaration", "text": "const QString &dst", "parent": 280, "children": [285, 286], "start_point": {"row": 79, "column": 53}, "end_point": {"row": 79, "column": 71}}, {"id": 285, "type": "type_identifier", "text": "QString", "parent": 284, "children": [], "start_point": {"row": 79, "column": 59}, "end_point": {"row": 79, "column": 66}}, {"id": 286, "type": "identifier", "text": "dst", "parent": 284, "children": [], "start_point": {"row": 79, "column": 68}, "end_point": {"row": 79, "column": 71}}, {"id": 287, "type": "parameter_declaration", "text": "bool recursively", "parent": 280, "children": [288, 289], "start_point": {"row": 79, "column": 73}, "end_point": {"row": 79, "column": 89}}, {"id": 288, "type": "primitive_type", "text": "bool", "parent": 287, "children": [], "start_point": {"row": 79, "column": 73}, "end_point": {"row": 79, "column": 77}}, {"id": 289, "type": "identifier", "text": "recursively", "parent": 287, "children": [], "start_point": {"row": 79, "column": 78}, "end_point": {"row": 79, "column": 89}}, {"id": 290, "type": "declaration", "text": "Q_INVOKABLE static bool remove(const QString &path);", "parent": 184, "children": [291, 292, 294], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 56}}, {"id": 291, "type": "type_identifier", "text": "Q_INVOKABLE", "parent": 290, "children": [], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 15}}, {"id": 292, "type": "ERROR", "text": "bool", "parent": 290, "children": [293], "start_point": {"row": 81, "column": 23}, "end_point": {"row": 81, "column": 27}}, {"id": 293, "type": "identifier", "text": "bool", "parent": 292, "children": [], "start_point": {"row": 81, "column": 23}, "end_point": {"row": 81, "column": 27}}, {"id": 294, "type": "function_declarator", "text": "remove(const QString &path)", "parent": 290, "children": [295, 296], "start_point": {"row": 81, "column": 28}, "end_point": {"row": 81, "column": 55}}, {"id": 295, "type": "identifier", "text": "remove", "parent": 294, "children": [], "start_point": {"row": 81, "column": 28}, "end_point": {"row": 81, "column": 34}}, {"id": 296, "type": "parameter_list", "text": "(const QString &path)", "parent": 294, "children": [297], "start_point": {"row": 81, "column": 34}, "end_point": {"row": 81, "column": 55}}, {"id": 297, "type": "parameter_declaration", "text": "const QString &path", "parent": 296, "children": [298, 299], "start_point": {"row": 81, "column": 35}, "end_point": {"row": 81, "column": 54}}, {"id": 298, "type": "type_identifier", "text": "QString", "parent": 297, "children": [], "start_point": {"row": 81, "column": 41}, "end_point": {"row": 81, "column": 48}}, {"id": 299, "type": "identifier", "text": "path", "parent": 297, "children": [], "start_point": {"row": 81, "column": 50}, "end_point": {"row": 81, "column": 54}}, {"id": 300, "type": "declaration", "text": "Q_INVOKABLE QString read(const QString &path);", "parent": 184, "children": [301, 302, 304], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 50}}, {"id": 301, "type": "type_identifier", "text": "Q_INVOKABLE", "parent": 300, "children": [], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 15}}, {"id": 302, "type": "ERROR", "text": "QString", "parent": 300, "children": [303], "start_point": {"row": 83, "column": 16}, "end_point": {"row": 83, "column": 23}}, {"id": 303, "type": "identifier", "text": "QString", "parent": 302, "children": [], "start_point": {"row": 83, "column": 16}, "end_point": {"row": 83, "column": 23}}, {"id": 304, "type": "function_declarator", "text": "read(const QString &path)", "parent": 300, "children": [305, 306], "start_point": {"row": 83, "column": 24}, "end_point": {"row": 83, "column": 49}}, {"id": 305, "type": "identifier", "text": "read", "parent": 304, "children": [], "start_point": {"row": 83, "column": 24}, "end_point": {"row": 83, "column": 28}}, {"id": 306, "type": "parameter_list", "text": "(const QString &path)", "parent": 304, "children": [307], "start_point": {"row": 83, "column": 28}, "end_point": {"row": 83, "column": 49}}, {"id": 307, "type": "parameter_declaration", "text": "const QString &path", "parent": 306, "children": [308, 309], "start_point": {"row": 83, "column": 29}, "end_point": {"row": 83, "column": 48}}, {"id": 308, "type": "type_identifier", "text": "QString", "parent": 307, "children": [], "start_point": {"row": 83, "column": 35}, "end_point": {"row": 83, "column": 42}}, {"id": 309, "type": "identifier", "text": "path", "parent": 307, "children": [], "start_point": {"row": 83, "column": 44}, "end_point": {"row": 83, "column": 48}}, {"id": 310, "type": "declaration", "text": "Q_INVOKABLE bool write(const QString& data, const QString &path);", "parent": 184, "children": [311, 312, 314], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 69}}, {"id": 311, "type": "type_identifier", "text": "Q_INVOKABLE", "parent": 310, "children": [], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 15}}, {"id": 312, "type": "ERROR", "text": "bool", "parent": 310, "children": [313], "start_point": {"row": 85, "column": 16}, "end_point": {"row": 85, "column": 20}}, {"id": 313, "type": "identifier", "text": "bool", "parent": 312, "children": [], "start_point": {"row": 85, "column": 16}, "end_point": {"row": 85, "column": 20}}, {"id": 314, "type": "function_declarator", "text": "write(const QString& data, const QString &path)", "parent": 310, "children": [315, 316], "start_point": {"row": 85, "column": 21}, "end_point": {"row": 85, "column": 68}}, {"id": 315, "type": "identifier", "text": "write", "parent": 314, "children": [], "start_point": {"row": 85, "column": 21}, "end_point": {"row": 85, "column": 26}}, {"id": 316, "type": "parameter_list", "text": "(const QString& data, const QString &path)", "parent": 314, "children": [317, 320], "start_point": {"row": 85, "column": 26}, "end_point": {"row": 85, "column": 68}}, {"id": 317, "type": "parameter_declaration", "text": "const QString& data", "parent": 316, "children": [318, 319], "start_point": {"row": 85, "column": 27}, "end_point": {"row": 85, "column": 46}}, {"id": 318, "type": "type_identifier", "text": "QString", "parent": 317, "children": [], "start_point": {"row": 85, "column": 33}, "end_point": {"row": 85, "column": 40}}, {"id": 319, "type": "identifier", "text": "data", "parent": 317, "children": [], "start_point": {"row": 85, "column": 42}, "end_point": {"row": 85, "column": 46}}, {"id": 320, "type": "parameter_declaration", "text": "const QString &path", "parent": 316, "children": [321, 322], "start_point": {"row": 85, "column": 48}, "end_point": {"row": 85, "column": 67}}, {"id": 321, "type": "type_identifier", "text": "QString", "parent": 320, "children": [], "start_point": {"row": 85, "column": 54}, "end_point": {"row": 85, "column": 61}}, {"id": 322, "type": "identifier", "text": "path", "parent": 320, "children": [], "start_point": {"row": 85, "column": 63}, "end_point": {"row": 85, "column": 67}}, {"id": 323, "type": "declaration", "text": "Q_INVOKABLE bool write(const QString& data, const QString &path, bool overwrite);", "parent": 184, "children": [324, 325, 327], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 85}}, {"id": 324, "type": "type_identifier", "text": "Q_INVOKABLE", "parent": 323, "children": [], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 15}}, {"id": 325, "type": "ERROR", "text": "bool", "parent": 323, "children": [326], "start_point": {"row": 86, "column": 16}, "end_point": {"row": 86, "column": 20}}, {"id": 326, "type": "identifier", "text": "bool", "parent": 325, "children": [], "start_point": {"row": 86, "column": 16}, "end_point": {"row": 86, "column": 20}}, {"id": 327, "type": "function_declarator", "text": "write(const QString& data, const QString &path, bool overwrite)", "parent": 323, "children": [328, 329], "start_point": {"row": 86, "column": 21}, "end_point": {"row": 86, "column": 84}}, {"id": 328, "type": "identifier", "text": "write", "parent": 327, "children": [], "start_point": {"row": 86, "column": 21}, "end_point": {"row": 86, "column": 26}}, {"id": 329, "type": "parameter_list", "text": "(const QString& data, const QString &path, bool overwrite)", "parent": 327, "children": [330, 333, 336], "start_point": {"row": 86, "column": 26}, "end_point": {"row": 86, "column": 84}}, {"id": 330, "type": "parameter_declaration", "text": "const QString& data", "parent": 329, "children": [331, 332], "start_point": {"row": 86, "column": 27}, "end_point": {"row": 86, "column": 46}}, {"id": 331, "type": "type_identifier", "text": "QString", "parent": 330, "children": [], "start_point": {"row": 86, "column": 33}, "end_point": {"row": 86, "column": 40}}, {"id": 332, "type": "identifier", "text": "data", "parent": 330, "children": [], "start_point": {"row": 86, "column": 42}, "end_point": {"row": 86, "column": 46}}, {"id": 333, "type": "parameter_declaration", "text": "const QString &path", "parent": 329, "children": [334, 335], "start_point": {"row": 86, "column": 48}, "end_point": {"row": 86, "column": 67}}, {"id": 334, "type": "type_identifier", "text": "QString", "parent": 333, "children": [], "start_point": {"row": 86, "column": 54}, "end_point": {"row": 86, "column": 61}}, {"id": 335, "type": "identifier", "text": "path", "parent": 333, "children": [], "start_point": {"row": 86, "column": 63}, "end_point": {"row": 86, "column": 67}}, {"id": 336, "type": "parameter_declaration", "text": "bool overwrite", "parent": 329, "children": [337, 338], "start_point": {"row": 86, "column": 69}, "end_point": {"row": 86, "column": 83}}, {"id": 337, "type": "primitive_type", "text": "bool", "parent": 336, "children": [], "start_point": {"row": 86, "column": 69}, "end_point": {"row": 86, "column": 73}}, {"id": 338, "type": "identifier", "text": "overwrite", "parent": 336, "children": [], "start_point": {"row": 86, "column": 74}, "end_point": {"row": 86, "column": 83}}, {"id": 339, "type": "declaration", "text": "Q_INVOKABLE static QStringList", "parent": 184, "children": [340, 341], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 34}}, {"id": 340, "type": "type_identifier", "text": "Q_INVOKABLE", "parent": 339, "children": [], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 15}}, {"id": 341, "type": "identifier", "text": "QStringList", "parent": 339, "children": [], "start_point": {"row": 88, "column": 23}, "end_point": {"row": 88, "column": 34}}, {"id": 342, "type": "macro_type_specifier", "text": "list(const QString &dir)", "parent": 184, "children": [343, 344, 346], "start_point": {"row": 88, "column": 35}, "end_point": {"row": 88, "column": 59}}, {"id": 343, "type": "identifier", "text": "list", "parent": 342, "children": [], "start_point": {"row": 88, "column": 35}, "end_point": {"row": 88, "column": 39}}, {"id": 344, "type": "type_descriptor", "text": "const QString", "parent": 342, "children": [345], "start_point": {"row": 88, "column": 40}, "end_point": {"row": 88, "column": 53}}, {"id": 345, "type": "type_identifier", "text": "QString", "parent": 344, "children": [], "start_point": {"row": 88, "column": 46}, "end_point": {"row": 88, "column": 53}}, {"id": 346, "type": "ERROR", "text": "&dir", "parent": 342, "children": [347], "start_point": {"row": 88, "column": 54}, "end_point": {"row": 88, "column": 58}}, {"id": 347, "type": "identifier", "text": "dir", "parent": 346, "children": [], "start_point": {"row": 88, "column": 55}, "end_point": {"row": 88, "column": 58}}, {"id": 348, "type": "declaration", "text": "Q_INVOKABLE static QStringList", "parent": 184, "children": [349, 350], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 34}}, {"id": 349, "type": "type_identifier", "text": "Q_INVOKABLE", "parent": 348, "children": [], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 15}}, {"id": 350, "type": "identifier", "text": "QStringList", "parent": 348, "children": [], "start_point": {"row": 89, "column": 23}, "end_point": {"row": 89, "column": 34}}, {"id": 351, "type": "comma_expression", "text": "list(const QString &dir, bool", "parent": 184, "children": [352, 358], "start_point": {"row": 89, "column": 35}, "end_point": {"row": 89, "column": 64}}, {"id": 352, "type": "binary_expression", "text": "list(const QString &dir", "parent": 351, "children": [353, 354, 357], "start_point": {"row": 89, "column": 35}, "end_point": {"row": 89, "column": 58}}, {"id": 353, "type": "identifier", "text": "list", "parent": 352, "children": [], "start_point": {"row": 89, "column": 35}, "end_point": {"row": 89, "column": 39}}, {"id": 354, "type": "ERROR", "text": "(const QString", "parent": 352, "children": [355], "start_point": {"row": 89, "column": 39}, "end_point": {"row": 89, "column": 53}}, {"id": 355, "type": "type_descriptor", "text": "const QString", "parent": 354, "children": [356], "start_point": {"row": 89, "column": 40}, "end_point": {"row": 89, "column": 53}}, {"id": 356, "type": "type_identifier", "text": "QString", "parent": 355, "children": [], "start_point": {"row": 89, "column": 46}, "end_point": {"row": 89, "column": 53}}, {"id": 357, "type": "identifier", "text": "dir", "parent": 352, "children": [], "start_point": {"row": 89, "column": 55}, "end_point": {"row": 89, "column": 58}}, {"id": 358, "type": "identifier", "text": "bool", "parent": 351, "children": [], "start_point": {"row": 89, "column": 60}, "end_point": {"row": 89, "column": 64}}, {"id": 359, "type": "ERROR", "text": "recursively)", "parent": 184, "children": [360], "start_point": {"row": 89, "column": 65}, "end_point": {"row": 89, "column": 77}}, {"id": 360, "type": "identifier", "text": "recursively", "parent": 359, "children": [], "start_point": {"row": 89, "column": 65}, "end_point": {"row": 89, "column": 76}}, {"id": 361, "type": "declaration", "text": "Q_INVOKABLE static bool ensure(const QString &path);", "parent": 184, "children": [362, 363, 365], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 91, "column": 56}}, {"id": 362, "type": "type_identifier", "text": "Q_INVOKABLE", "parent": 361, "children": [], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 91, "column": 15}}, {"id": 363, "type": "ERROR", "text": "bool", "parent": 361, "children": [364], "start_point": {"row": 91, "column": 23}, "end_point": {"row": 91, "column": 27}}, {"id": 364, "type": "identifier", "text": "bool", "parent": 363, "children": [], "start_point": {"row": 91, "column": 23}, "end_point": {"row": 91, "column": 27}}, {"id": 365, "type": "function_declarator", "text": "ensure(const QString &path)", "parent": 361, "children": [366, 367], "start_point": {"row": 91, "column": 28}, "end_point": {"row": 91, "column": 55}}, {"id": 366, "type": "identifier", "text": "ensure", "parent": 365, "children": [], "start_point": {"row": 91, "column": 28}, "end_point": {"row": 91, "column": 34}}, {"id": 367, "type": "parameter_list", "text": "(const QString &path)", "parent": 365, "children": [368], "start_point": {"row": 91, "column": 34}, "end_point": {"row": 91, "column": 55}}, {"id": 368, "type": "parameter_declaration", "text": "const QString &path", "parent": 367, "children": [369, 370], "start_point": {"row": 91, "column": 35}, "end_point": {"row": 91, "column": 54}}, {"id": 369, "type": "type_identifier", "text": "QString", "parent": 368, "children": [], "start_point": {"row": 91, "column": 41}, "end_point": {"row": 91, "column": 48}}, {"id": 370, "type": "identifier", "text": "path", "parent": 368, "children": [], "start_point": {"row": 91, "column": 50}, "end_point": {"row": 91, "column": 54}}, {"id": 371, "type": "declaration", "text": "Q_INVOKABLE static bool exists(const QString &path);", "parent": 184, "children": [372, 373, 375], "start_point": {"row": 93, "column": 4}, "end_point": {"row": 93, "column": 56}}, {"id": 372, "type": "type_identifier", "text": "Q_INVOKABLE", "parent": 371, "children": [], "start_point": {"row": 93, "column": 4}, "end_point": {"row": 93, "column": 15}}, {"id": 373, "type": "ERROR", "text": "bool", "parent": 371, "children": [374], "start_point": {"row": 93, "column": 23}, "end_point": {"row": 93, "column": 27}}, {"id": 374, "type": "identifier", "text": "bool", "parent": 373, "children": [], "start_point": {"row": 93, "column": 23}, "end_point": {"row": 93, "column": 27}}, {"id": 375, "type": "function_declarator", "text": "exists(const QString &path)", "parent": 371, "children": [376, 377], "start_point": {"row": 93, "column": 28}, "end_point": {"row": 93, "column": 55}}, {"id": 376, "type": "identifier", "text": "exists", "parent": 375, "children": [], "start_point": {"row": 93, "column": 28}, "end_point": {"row": 93, "column": 34}}, {"id": 377, "type": "parameter_list", "text": "(const QString &path)", "parent": 375, "children": [378], "start_point": {"row": 93, "column": 34}, "end_point": {"row": 93, "column": 55}}, {"id": 378, "type": "parameter_declaration", "text": "const QString &path", "parent": 377, "children": [379, 380], "start_point": {"row": 93, "column": 35}, "end_point": {"row": 93, "column": 54}}, {"id": 379, "type": "type_identifier", "text": "QString", "parent": 378, "children": [], "start_point": {"row": 93, "column": 41}, "end_point": {"row": 93, "column": 48}}, {"id": 380, "type": "identifier", "text": "path", "parent": 378, "children": [], "start_point": {"row": 93, "column": 50}, "end_point": {"row": 93, "column": 54}}, {"id": 381, "type": "declaration", "text": "Q_INVOKABLE static bool isFile(const QString &path);", "parent": 184, "children": [382, 383, 385], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 56}}, {"id": 382, "type": "type_identifier", "text": "Q_INVOKABLE", "parent": 381, "children": [], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 15}}, {"id": 383, "type": "ERROR", "text": "bool", "parent": 381, "children": [384], "start_point": {"row": 94, "column": 23}, "end_point": {"row": 94, "column": 27}}, {"id": 384, "type": "identifier", "text": "bool", "parent": 383, "children": [], "start_point": {"row": 94, "column": 23}, "end_point": {"row": 94, "column": 27}}, {"id": 385, "type": "function_declarator", "text": "isFile(const QString &path)", "parent": 381, "children": [386, 387], "start_point": {"row": 94, "column": 28}, "end_point": {"row": 94, "column": 55}}, {"id": 386, "type": "identifier", "text": "isFile", "parent": 385, "children": [], "start_point": {"row": 94, "column": 28}, "end_point": {"row": 94, "column": 34}}, {"id": 387, "type": "parameter_list", "text": "(const QString &path)", "parent": 385, "children": [388], "start_point": {"row": 94, "column": 34}, "end_point": {"row": 94, "column": 55}}, {"id": 388, "type": "parameter_declaration", "text": "const QString &path", "parent": 387, "children": [389, 390], "start_point": {"row": 94, "column": 35}, "end_point": {"row": 94, "column": 54}}, {"id": 389, "type": "type_identifier", "text": "QString", "parent": 388, "children": [], "start_point": {"row": 94, "column": 41}, "end_point": {"row": 94, "column": 48}}, {"id": 390, "type": "identifier", "text": "path", "parent": 388, "children": [], "start_point": {"row": 94, "column": 50}, "end_point": {"row": 94, "column": 54}}, {"id": 391, "type": "declaration", "text": "Q_INVOKABLE static bool isDir(const QString &path);", "parent": 184, "children": [392, 393, 395], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 55}}, {"id": 392, "type": "type_identifier", "text": "Q_INVOKABLE", "parent": 391, "children": [], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 15}}, {"id": 393, "type": "ERROR", "text": "bool", "parent": 391, "children": [394], "start_point": {"row": 95, "column": 23}, "end_point": {"row": 95, "column": 27}}, {"id": 394, "type": "identifier", "text": "bool", "parent": 393, "children": [], "start_point": {"row": 95, "column": 23}, "end_point": {"row": 95, "column": 27}}, {"id": 395, "type": "function_declarator", "text": "isDir(const QString &path)", "parent": 391, "children": [396, 397], "start_point": {"row": 95, "column": 28}, "end_point": {"row": 95, "column": 54}}, {"id": 396, "type": "identifier", "text": "isDir", "parent": 395, "children": [], "start_point": {"row": 95, "column": 28}, "end_point": {"row": 95, "column": 33}}, {"id": 397, "type": "parameter_list", "text": "(const QString &path)", "parent": 395, "children": [398], "start_point": {"row": 95, "column": 33}, "end_point": {"row": 95, "column": 54}}, {"id": 398, "type": "parameter_declaration", "text": "const QString &path", "parent": 397, "children": [399, 400], "start_point": {"row": 95, "column": 34}, "end_point": {"row": 95, "column": 53}}, {"id": 399, "type": "type_identifier", "text": "QString", "parent": 398, "children": [], "start_point": {"row": 95, "column": 40}, "end_point": {"row": 95, "column": 47}}, {"id": 400, "type": "identifier", "text": "path", "parent": 398, "children": [], "start_point": {"row": 95, "column": 49}, "end_point": {"row": 95, "column": 53}}, {"id": 401, "type": "declaration", "text": "Q_INVOKABLE static qint64 size(const QString &path);", "parent": 184, "children": [402, 403, 405], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 56}}, {"id": 402, "type": "type_identifier", "text": "Q_INVOKABLE", "parent": 401, "children": [], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 15}}, {"id": 403, "type": "ERROR", "text": "qint64", "parent": 401, "children": [404], "start_point": {"row": 97, "column": 23}, "end_point": {"row": 97, "column": 29}}, {"id": 404, "type": "identifier", "text": "qint64", "parent": 403, "children": [], "start_point": {"row": 97, "column": 23}, "end_point": {"row": 97, "column": 29}}, {"id": 405, "type": "function_declarator", "text": "size(const QString &path)", "parent": 401, "children": [406, 407], "start_point": {"row": 97, "column": 30}, "end_point": {"row": 97, "column": 55}}, {"id": 406, "type": "identifier", "text": "size", "parent": 405, "children": [], "start_point": {"row": 97, "column": 30}, "end_point": {"row": 97, "column": 34}}, {"id": 407, "type": "parameter_list", "text": "(const QString &path)", "parent": 405, "children": [408], "start_point": {"row": 97, "column": 34}, "end_point": {"row": 97, "column": 55}}, {"id": 408, "type": "parameter_declaration", "text": "const QString &path", "parent": 407, "children": [409, 410], "start_point": {"row": 97, "column": 35}, "end_point": {"row": 97, "column": 54}}, {"id": 409, "type": "type_identifier", "text": "QString", "parent": 408, "children": [], "start_point": {"row": 97, "column": 41}, "end_point": {"row": 97, "column": 48}}, {"id": 410, "type": "identifier", "text": "path", "parent": 408, "children": [], "start_point": {"row": 97, "column": 50}, "end_point": {"row": 97, "column": 54}}, {"id": 411, "type": "declaration", "text": "Q_INVOKABLE static bool registerResource(const QString &rccFilename, const QString &resourceRoot=QString());", "parent": 184, "children": [412, 413, 415], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 112}}, {"id": 412, "type": "type_identifier", "text": "Q_INVOKABLE", "parent": 411, "children": [], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 15}}, {"id": 413, "type": "ERROR", "text": "bool", "parent": 411, "children": [414], "start_point": {"row": 99, "column": 23}, "end_point": {"row": 99, "column": 27}}, {"id": 414, "type": "identifier", "text": "bool", "parent": 413, "children": [], "start_point": {"row": 99, "column": 23}, "end_point": {"row": 99, "column": 27}}, {"id": 415, "type": "function_declarator", "text": "registerResource(const QString &rccFilename, const QString &resourceRoot=QString())", "parent": 411, "children": [416, 417], "start_point": {"row": 99, "column": 28}, "end_point": {"row": 99, "column": 111}}, {"id": 416, "type": "identifier", "text": "registerResource", "parent": 415, "children": [], "start_point": {"row": 99, "column": 28}, "end_point": {"row": 99, "column": 44}}, {"id": 417, "type": "parameter_list", "text": "(const QString &rccFilename, const QString &resourceRoot=QString())", "parent": 415, "children": [418, 421], "start_point": {"row": 99, "column": 44}, "end_point": {"row": 99, "column": 111}}, {"id": 418, "type": "parameter_declaration", "text": "const QString &rccFilename", "parent": 417, "children": [419, 420], "start_point": {"row": 99, "column": 45}, "end_point": {"row": 99, "column": 71}}, {"id": 419, "type": "type_identifier", "text": "QString", "parent": 418, "children": [], "start_point": {"row": 99, "column": 51}, "end_point": {"row": 99, "column": 58}}, {"id": 420, "type": "identifier", "text": "rccFilename", "parent": 418, "children": [], "start_point": {"row": 99, "column": 60}, "end_point": {"row": 99, "column": 71}}, {"id": 421, "type": "parameter_declaration", "text": "const QString &resourceRoot=QString()", "parent": 417, "children": [422, 423, 426], "start_point": {"row": 99, "column": 73}, "end_point": {"row": 99, "column": 110}}, {"id": 422, "type": "type_identifier", "text": "QString", "parent": 421, "children": [], "start_point": {"row": 99, "column": 79}, "end_point": {"row": 99, "column": 86}}, {"id": 423, "type": "ERROR", "text": "&resourceRoot=", "parent": 421, "children": [424, 425], "start_point": {"row": 99, "column": 87}, "end_point": {"row": 99, "column": 101}}, {"id": 424, "type": "identifier", "text": "resourceRoot", "parent": 423, "children": [], "start_point": {"row": 99, "column": 88}, "end_point": {"row": 99, "column": 100}}, {"id": 425, "type": "=", "text": "=", "parent": 423, "children": [], "start_point": {"row": 99, "column": 100}, "end_point": {"row": 99, "column": 101}}, {"id": 426, "type": "function_declarator", "text": "QString()", "parent": 421, "children": [427, 428], "start_point": {"row": 99, "column": 101}, "end_point": {"row": 99, "column": 110}}, {"id": 427, "type": "identifier", "text": "QString", "parent": 426, "children": [], "start_point": {"row": 99, "column": 101}, "end_point": {"row": 99, "column": 108}}, {"id": 428, "type": "parameter_list", "text": "()", "parent": 426, "children": [], "start_point": {"row": 99, "column": 108}, "end_point": {"row": 99, "column": 110}}, {"id": 429, "type": "declaration", "text": "Q_INVOKABLE static bool unregisterResource(const QString &rccFilename, const QString &resourceRoot=QString());", "parent": 184, "children": [430, 431, 433], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 114}}, {"id": 430, "type": "type_identifier", "text": "Q_INVOKABLE", "parent": 429, "children": [], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 15}}, {"id": 431, "type": "ERROR", "text": "bool", "parent": 429, "children": [432], "start_point": {"row": 100, "column": 23}, "end_point": {"row": 100, "column": 27}}, {"id": 432, "type": "identifier", "text": "bool", "parent": 431, "children": [], "start_point": {"row": 100, "column": 23}, "end_point": {"row": 100, "column": 27}}, {"id": 433, "type": "function_declarator", "text": "unregisterResource(const QString &rccFilename, const QString &resourceRoot=QString())", "parent": 429, "children": [434, 435], "start_point": {"row": 100, "column": 28}, "end_point": {"row": 100, "column": 113}}, {"id": 434, "type": "identifier", "text": "unregisterResource", "parent": 433, "children": [], "start_point": {"row": 100, "column": 28}, "end_point": {"row": 100, "column": 46}}, {"id": 435, "type": "parameter_list", "text": "(const QString &rccFilename, const QString &resourceRoot=QString())", "parent": 433, "children": [436, 439], "start_point": {"row": 100, "column": 46}, "end_point": {"row": 100, "column": 113}}, {"id": 436, "type": "parameter_declaration", "text": "const QString &rccFilename", "parent": 435, "children": [437, 438], "start_point": {"row": 100, "column": 47}, "end_point": {"row": 100, "column": 73}}, {"id": 437, "type": "type_identifier", "text": "QString", "parent": 436, "children": [], "start_point": {"row": 100, "column": 53}, "end_point": {"row": 100, "column": 60}}, {"id": 438, "type": "identifier", "text": "rccFilename", "parent": 436, "children": [], "start_point": {"row": 100, "column": 62}, "end_point": {"row": 100, "column": 73}}, {"id": 439, "type": "parameter_declaration", "text": "const QString &resourceRoot=QString()", "parent": 435, "children": [440, 441, 444], "start_point": {"row": 100, "column": 75}, "end_point": {"row": 100, "column": 112}}, {"id": 440, "type": "type_identifier", "text": "QString", "parent": 439, "children": [], "start_point": {"row": 100, "column": 81}, "end_point": {"row": 100, "column": 88}}, {"id": 441, "type": "ERROR", "text": "&resourceRoot=", "parent": 439, "children": [442, 443], "start_point": {"row": 100, "column": 89}, "end_point": {"row": 100, "column": 103}}, {"id": 442, "type": "identifier", "text": "resourceRoot", "parent": 441, "children": [], "start_point": {"row": 100, "column": 90}, "end_point": {"row": 100, "column": 102}}, {"id": 443, "type": "=", "text": "=", "parent": 441, "children": [], "start_point": {"row": 100, "column": 102}, "end_point": {"row": 100, "column": 103}}, {"id": 444, "type": "function_declarator", "text": "QString()", "parent": 439, "children": [445, 446], "start_point": {"row": 100, "column": 103}, "end_point": {"row": 100, "column": 112}}, {"id": 445, "type": "identifier", "text": "QString", "parent": 444, "children": [], "start_point": {"row": 100, "column": 103}, "end_point": {"row": 100, "column": 110}}, {"id": 446, "type": "parameter_list", "text": "()", "parent": 444, "children": [], "start_point": {"row": 100, "column": 110}, "end_point": {"row": 100, "column": 112}}, {"id": 447, "type": "declaration", "text": "Q_INVOKABLE void setLanguage(const QString &languageCode);", "parent": 184, "children": [448, 449, 451], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 62}}, {"id": 448, "type": "type_identifier", "text": "Q_INVOKABLE", "parent": 447, "children": [], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 15}}, {"id": 449, "type": "ERROR", "text": "void", "parent": 447, "children": [450], "start_point": {"row": 102, "column": 16}, "end_point": {"row": 102, "column": 20}}, {"id": 450, "type": "identifier", "text": "void", "parent": 449, "children": [], "start_point": {"row": 102, "column": 16}, "end_point": {"row": 102, "column": 20}}, {"id": 451, "type": "function_declarator", "text": "setLanguage(const QString &languageCode)", "parent": 447, "children": [452, 453], "start_point": {"row": 102, "column": 21}, "end_point": {"row": 102, "column": 61}}, {"id": 452, "type": "identifier", "text": "setLanguage", "parent": 451, "children": [], "start_point": {"row": 102, "column": 21}, "end_point": {"row": 102, "column": 32}}, {"id": 453, "type": "parameter_list", "text": "(const QString &languageCode)", "parent": 451, "children": [454], "start_point": {"row": 102, "column": 32}, "end_point": {"row": 102, "column": 61}}, {"id": 454, "type": "parameter_declaration", "text": "const QString &languageCode", "parent": 453, "children": [455, 456], "start_point": {"row": 102, "column": 33}, "end_point": {"row": 102, "column": 60}}, {"id": 455, "type": "type_identifier", "text": "QString", "parent": 454, "children": [], "start_point": {"row": 102, "column": 39}, "end_point": {"row": 102, "column": 46}}, {"id": 456, "type": "identifier", "text": "languageCode", "parent": 454, "children": [], "start_point": {"row": 102, "column": 48}, "end_point": {"row": 102, "column": 60}}, {"id": 457, "type": "labeled_statement", "text": "Qak::AndroidEnv *androidEnv();", "parent": 184, "children": [458, 459], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 106, "column": 34}}, {"id": 458, "type": "statement_identifier", "text": "Qak", "parent": 457, "children": [], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 106, "column": 7}}, {"id": 459, "type": "declaration", "text": "AndroidEnv *androidEnv();", "parent": 457, "children": [460, 461], "start_point": {"row": 106, "column": 9}, "end_point": {"row": 106, "column": 34}}, {"id": 460, "type": "type_identifier", "text": "AndroidEnv", "parent": 459, "children": [], "start_point": {"row": 106, "column": 9}, "end_point": {"row": 106, "column": 19}}, {"id": 461, "type": "pointer_declarator", "text": "*androidEnv()", "parent": 459, "children": [462, 463], "start_point": {"row": 106, "column": 20}, "end_point": {"row": 106, "column": 33}}, {"id": 462, "type": "*", "text": "*", "parent": 461, "children": [], "start_point": {"row": 106, "column": 20}, "end_point": {"row": 106, "column": 21}}, {"id": 463, "type": "function_declarator", "text": "androidEnv()", "parent": 461, "children": [464, 465], "start_point": {"row": 106, "column": 21}, "end_point": {"row": 106, "column": 33}}, {"id": 464, "type": "identifier", "text": "androidEnv", "parent": 463, "children": [], "start_point": {"row": 106, "column": 21}, "end_point": {"row": 106, "column": 31}}, {"id": 465, "type": "parameter_list", "text": "()", "parent": 463, "children": [], "start_point": {"row": 106, "column": 31}, "end_point": {"row": 106, "column": 33}}, {"id": 466, "type": "labeled_statement", "text": "Qak::MouseEnv *mouseEnv();", "parent": 184, "children": [467, 468], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 30}}, {"id": 467, "type": "statement_identifier", "text": "Qak", "parent": 466, "children": [], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 7}}, {"id": 468, "type": "declaration", "text": "MouseEnv *mouseEnv();", "parent": 466, "children": [469, 470], "start_point": {"row": 107, "column": 9}, "end_point": {"row": 107, "column": 30}}, {"id": 469, "type": "type_identifier", "text": "MouseEnv", "parent": 468, "children": [], "start_point": {"row": 107, "column": 9}, "end_point": {"row": 107, "column": 17}}, {"id": 470, "type": "pointer_declarator", "text": "*mouseEnv()", "parent": 468, "children": [471, 472], "start_point": {"row": 107, "column": 18}, "end_point": {"row": 107, "column": 29}}, {"id": 471, "type": "*", "text": "*", "parent": 470, "children": [], "start_point": {"row": 107, "column": 18}, "end_point": {"row": 107, "column": 19}}, {"id": 472, "type": "function_declarator", "text": "mouseEnv()", "parent": 470, "children": [473, 474], "start_point": {"row": 107, "column": 19}, "end_point": {"row": 107, "column": 29}}, {"id": 473, "type": "identifier", "text": "mouseEnv", "parent": 472, "children": [], "start_point": {"row": 107, "column": 19}, "end_point": {"row": 107, "column": 27}}, {"id": 474, "type": "parameter_list", "text": "()", "parent": 472, "children": [], "start_point": {"row": 107, "column": 27}, "end_point": {"row": 107, "column": 29}}, {"id": 475, "type": "labeled_statement", "text": "private:\n static QString subEnvPath();", "parent": 184, "children": [476], "start_point": {"row": 109, "column": 0}, "end_point": {"row": 110, "column": 32}}, {"id": 476, "type": "declaration", "text": "static QString subEnvPath();", "parent": 475, "children": [477, 478], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 32}}, {"id": 477, "type": "type_identifier", "text": "QString", "parent": 476, "children": [], "start_point": {"row": 110, "column": 11}, "end_point": {"row": 110, "column": 18}}, {"id": 478, "type": "function_declarator", "text": "subEnvPath()", "parent": 476, "children": [479, 480], "start_point": {"row": 110, "column": 19}, "end_point": {"row": 110, "column": 31}}, {"id": 479, "type": "identifier", "text": "subEnvPath", "parent": 478, "children": [], "start_point": {"row": 110, "column": 19}, "end_point": {"row": 110, "column": 29}}, {"id": 480, "type": "parameter_list", "text": "()", "parent": 478, "children": [], "start_point": {"row": 110, "column": 29}, "end_point": {"row": 110, "column": 31}}, {"id": 481, "type": "labeled_statement", "text": "Qak::AndroidEnv _androidEnv;", "parent": 184, "children": [482, 483], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 111, "column": 32}}, {"id": 482, "type": "statement_identifier", "text": "Qak", "parent": 481, "children": [], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 111, "column": 7}}, {"id": 483, "type": "declaration", "text": "AndroidEnv _androidEnv;", "parent": 481, "children": [484, 485], "start_point": {"row": 111, "column": 9}, "end_point": {"row": 111, "column": 32}}, {"id": 484, "type": "type_identifier", "text": "AndroidEnv", "parent": 483, "children": [], "start_point": {"row": 111, "column": 9}, "end_point": {"row": 111, "column": 19}}, {"id": 485, "type": "identifier", "text": "_androidEnv", "parent": 483, "children": [], "start_point": {"row": 111, "column": 20}, "end_point": {"row": 111, "column": 31}}, {"id": 486, "type": "labeled_statement", "text": "Qak::MouseEnv _mouseEnv;", "parent": 184, "children": [487, 488], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 112, "column": 28}}, {"id": 487, "type": "statement_identifier", "text": "Qak", "parent": 486, "children": [], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 112, "column": 7}}, {"id": 488, "type": "declaration", "text": "MouseEnv _mouseEnv;", "parent": 486, "children": [489, 490], "start_point": {"row": 112, "column": 9}, "end_point": {"row": 112, "column": 28}}, {"id": 489, "type": "type_identifier", "text": "MouseEnv", "parent": 488, "children": [], "start_point": {"row": 112, "column": 9}, "end_point": {"row": 112, "column": 17}}, {"id": 490, "type": "identifier", "text": "_mouseEnv", "parent": 488, "children": [], "start_point": {"row": 112, "column": 18}, "end_point": {"row": 112, "column": 27}}, {"id": 491, "type": "declaration", "text": "QTranslator m_translator;", "parent": 184, "children": [492, 493], "start_point": {"row": 114, "column": 4}, "end_point": {"row": 114, "column": 29}}, {"id": 492, "type": "type_identifier", "text": "QTranslator", "parent": 491, "children": [], "start_point": {"row": 114, "column": 4}, "end_point": {"row": 114, "column": 15}}, {"id": 493, "type": "identifier", "text": "m_translator", "parent": 491, "children": [], "start_point": {"row": 114, "column": 16}, "end_point": {"row": 114, "column": 28}}, {"id": 494, "type": "preproc_call", "text": "#endif // QAK_ENV_PRIVATE_H\n", "parent": 0, "children": [495], "start_point": {"row": 117, "column": 0}, "end_point": {"row": 118, "column": 0}}, {"id": 495, "type": "preproc_directive", "text": "#endif", "parent": 494, "children": [], "start_point": {"row": 117, "column": 0}, "end_point": {"row": 117, "column": 6}}]}, "node_categories": {"declarations": {"functions": [82, 90, 104, 111, 120, 128, 142, 157, 172, 184, 191, 230, 237, 244, 251, 258, 265, 278, 294, 304, 314, 327, 365, 375, 385, 395, 405, 415, 426, 433, 444, 451, 463, 472, 478], "variables": [86, 93, 100, 107, 114, 124, 131, 138, 145, 150, 153, 160, 165, 168, 175, 180, 188, 194, 226, 233, 240, 247, 254, 261, 268, 271, 274, 281, 284, 287, 290, 297, 300, 307, 310, 317, 320, 323, 330, 333, 336, 339, 348, 361, 368, 371, 378, 381, 388, 391, 398, 401, 408, 411, 418, 421, 429, 436, 439, 447, 454, 459, 468, 476, 483, 488, 491], "classes": [], "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, 45, 46, 54, 55, 57, 58, 60, 61, 75, 76], "modules": [], "enums": []}, "statements": {"expressions": [65, 68, 204, 209, 216, 219, 351, 352], "assignments": [], "loops": [], "conditionals": [1, 2, 5, 48, 49, 52, 63, 64, 66, 69, 78, 79, 80, 81, 83, 85, 87, 91, 94, 97, 101, 103, 105, 108, 110, 112, 115, 116, 118, 119, 121, 123, 125, 129, 132, 135, 139, 141, 143, 146, 149, 151, 152, 154, 156, 158, 161, 164, 166, 167, 169, 171, 173, 176, 179, 181, 182, 185, 187, 189, 192, 195, 197, 201, 202, 203, 205, 208, 210, 213, 214, 215, 217, 220, 222, 227, 229, 231, 234, 236, 238, 241, 243, 245, 248, 250, 252, 255, 257, 259, 262, 264, 266, 269, 270, 272, 273, 275, 277, 279, 282, 283, 285, 286, 289, 291, 293, 295, 298, 299, 301, 303, 305, 308, 309, 311, 313, 315, 318, 319, 321, 322, 324, 326, 328, 331, 332, 334, 335, 338, 340, 341, 342, 343, 345, 347, 349, 350, 353, 356, 357, 358, 360, 362, 364, 366, 369, 370, 372, 374, 376, 379, 380, 382, 384, 386, 389, 390, 392, 394, 396, 399, 400, 402, 404, 406, 409, 410, 412, 414, 416, 419, 420, 422, 424, 427, 430, 432, 434, 437, 438, 440, 442, 445, 448, 450, 452, 455, 456, 458, 460, 464, 467, 469, 473, 477, 479, 482, 484, 485, 487, 489, 490, 492, 493], "returns": [], "exceptions": []}, "expressions": {"calls": [494], "literals": [8, 11, 14, 17, 20, 23, 26, 29, 32, 35, 38, 41, 44, 47, 56, 59, 62, 71, 72, 73, 77, 99, 137], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 82, "universal_type": "function", "name": "AndroidEnv", "text_snippet": "class AndroidEnv : public QObject\n {\n Q_OBJECT\n public:\n AndroidEnv(QObject *par"}, {"node_id": 90, "universal_type": "function", "name": "unknown", "text_snippet": "AndroidEnv(QObject *parent"}, {"node_id": 104, "universal_type": "function", "name": "unknown", "text_snippet": "obbPath()"}, {"node_id": 111, "universal_type": "function", "name": "unknown", "text_snippet": "checkPermission(const QString &permission)"}, {"node_id": 120, "universal_type": "function", "name": "MouseEnv", "text_snippet": "class MouseEnv : public QObject\n {\n Q_OBJECT\n\n public:\n MouseEnv(QObject *parent"}, {"node_id": 128, "universal_type": "function", "name": "unknown", "text_snippet": "MouseEnv(QObject *parent"}, {"node_id": 142, "universal_type": "function", "name": "unknown", "text_snippet": "press(QObject *target, const QPointF &point)"}, {"node_id": 157, "universal_type": "function", "name": "unknown", "text_snippet": "release(QObject *target, const QPointF &point)"}, {"node_id": 172, "universal_type": "function", "name": "unknown", "text_snippet": "move(QObject *target, const QPointF &point)"}, {"node_id": 184, "universal_type": "function", "name": "EnvPrivate", "text_snippet": "class EnvPrivate : public QObject\n{\n Q_OBJECT\n Q_PROPERTY(Qak::AndroidEnv *android READ androi"}, {"node_id": 191, "universal_type": "function", "name": "unknown", "text_snippet": "Q_PROPERTY(Qak::AndroidEnv *android READ androidEnv)\n Q_PROPERTY(Qak::MouseEnv *mouse READ mouseE"}, {"node_id": 230, "universal_type": "function", "name": "unknown", "text_snippet": "appPath()"}, {"node_id": 237, "universal_type": "function", "name": "unknown", "text_snippet": "dataPath()"}, {"node_id": 244, "universal_type": "function", "name": "unknown", "text_snippet": "cachePath()"}, {"node_id": 251, "universal_type": "function", "name": "unknown", "text_snippet": "configPath()"}, {"node_id": 258, "universal_type": "function", "name": "unknown", "text_snippet": "tempPath()"}, {"node_id": 265, "universal_type": "function", "name": "unknown", "text_snippet": "copy(const QString &src, const QString &dst)"}, {"node_id": 278, "universal_type": "function", "name": "recursively)", "text_snippet": "copy(const QString &src, const QString &dst, bool recursively)"}, {"node_id": 294, "universal_type": "function", "name": "unknown", "text_snippet": "remove(const QString &path)"}, {"node_id": 304, "universal_type": "function", "name": "unknown", "text_snippet": "read(const QString &path)"}, {"node_id": 314, "universal_type": "function", "name": "unknown", "text_snippet": "write(const QString& data, const QString &path)"}, {"node_id": 327, "universal_type": "function", "name": "overwrite)", "text_snippet": "write(const QString& data, const QString &path, bool overwrite)"}, {"node_id": 365, "universal_type": "function", "name": "unknown", "text_snippet": "ensure(const QString &path)"}, {"node_id": 375, "universal_type": "function", "name": "unknown", "text_snippet": "exists(const QString &path)"}, {"node_id": 385, "universal_type": "function", "name": "unknown", "text_snippet": "isFile(const QString &path)"}, {"node_id": 395, "universal_type": "function", "name": "unknown", "text_snippet": "isDir(const QString &path)"}, {"node_id": 405, "universal_type": "function", "name": "unknown", "text_snippet": "size(const QString &path)"}, {"node_id": 415, "universal_type": "function", "name": "unknown", "text_snippet": "registerResource(const QString &rccFilename, const QString &resourceRoot=QString())"}, {"node_id": 426, "universal_type": "function", "name": "unknown", "text_snippet": "QString()"}, {"node_id": 433, "universal_type": "function", "name": "unknown", "text_snippet": "unregisterResource(const QString &rccFilename, const QString &resourceRoot=QString())"}, {"node_id": 444, "universal_type": "function", "name": "unknown", "text_snippet": "QString()"}, {"node_id": 451, "universal_type": "function", "name": "unknown", "text_snippet": "setLanguage(const QString &languageCode)"}, {"node_id": 463, "universal_type": "function", "name": "unknown", "text_snippet": "androidEnv()"}, {"node_id": 472, "universal_type": "function", "name": "unknown", "text_snippet": "mouseEnv()"}, {"node_id": 478, "universal_type": "function", "name": "unknown", "text_snippet": "subEnvPath()"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <QDebug>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <QStandardPaths>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <QDir>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <QFile>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <QVariant>\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include <QMoveEvent>\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include <QWindow>\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include <QApplication>\n"}, {"node_id": 28, "text": "#include"}, {"node_id": 30, "text": "#include <QResource>\n"}, {"node_id": 31, "text": "#include"}, {"node_id": 33, "text": "#include <QTranslator>\n"}, {"node_id": 34, "text": "#include"}, {"node_id": 36, "text": "#include <QQuickItem>\n"}, {"node_id": 37, "text": "#include"}, {"node_id": 39, "text": "#include <QQmlEngine>\n"}, {"node_id": 40, "text": "#include"}, {"node_id": 42, "text": "#include <QQmlContext>\n"}, {"node_id": 43, "text": "#include"}, {"node_id": 45, "text": "#include <QtGui/QGuiApplication>\n"}, {"node_id": 46, "text": "#include"}, {"node_id": 54, "text": "#include <QAndroidJniEnvironment>\n"}, {"node_id": 55, "text": "#include"}, {"node_id": 57, "text": "#include <QAndroidJniObject>\n"}, {"node_id": 58, "text": "#include"}, {"node_id": 60, "text": "#include <QtAndroid>\n"}, {"node_id": 61, "text": "#include"}, {"node_id": 75, "text": "#include \"permissions.h\"\n"}, {"node_id": 76, "text": "#include"}]}, "original_source_code": "#ifndef QAK_ENV_PRIVATE_H\n#define QAK_ENV_PRIVATE_H\n\n#include <QDebug>\n#include <QStandardPaths>\n#include <QDir>\n#include <QFile>\n#include <QVariant>\n#include <QMoveEvent>\n#include <QWindow>\n#include <QApplication>\n#include <QResource>\n#include <QTranslator>\n#include <QQuickItem>\n#include <QQmlEngine>\n#include <QQmlContext>\n\n#include <QtGui/QGuiApplication>\n\n#if defined(Q_OS_ANDROID)\n#include <QAndroidJniEnvironment>\n#include <QAndroidJniObject>\n#include <QtAndroid>\n\n#if QT_VERSION < QT_VERSION_CHECK(5, 10, 0)\n#include \"permissions.h\"\n#endif\n\n#endif\n\nnamespace Qak {\n class AndroidEnv : public QObject\n {\n Q_OBJECT\n public:\n AndroidEnv(QObject *parent = 0);\n\n Q_INVOKABLE static QString obbPath();\n\n Q_INVOKABLE static bool checkPermission(const QString &permission);\n\n private:\n\n };\n}\n\nnamespace Qak {\n class MouseEnv : public QObject\n {\n Q_OBJECT\n\n public:\n MouseEnv(QObject *parent = 0);\n\n Q_INVOKABLE static void press(QObject *target, const QPointF &point);\n Q_INVOKABLE static void release(QObject *target, const QPointF &point);\n Q_INVOKABLE static void move(QObject *target, const QPointF &point);\n\n private:\n\n };\n}\n\nclass EnvPrivate : public QObject\n{\n Q_OBJECT\n Q_PROPERTY(Qak::AndroidEnv *android READ androidEnv)\n Q_PROPERTY(Qak::MouseEnv *mouse READ mouseEnv)\n\npublic:\n EnvPrivate(QObject* parent = nullptr);\n\n Q_INVOKABLE static QString appPath();\n Q_INVOKABLE static QString dataPath();\n Q_INVOKABLE static QString cachePath();\n Q_INVOKABLE static QString configPath();\n Q_INVOKABLE static QString tempPath();\n\n Q_INVOKABLE static bool copy(const QString &src, const QString &dst);\n Q_INVOKABLE static bool copy(const QString &src, const QString &dst, bool recursively);\n\n Q_INVOKABLE static bool remove(const QString &path);\n\n Q_INVOKABLE QString read(const QString &path);\n\n Q_INVOKABLE bool write(const QString& data, const QString &path);\n Q_INVOKABLE bool write(const QString& data, const QString &path, bool overwrite);\n\n Q_INVOKABLE static QStringList list(const QString &dir);\n Q_INVOKABLE static QStringList list(const QString &dir, bool recursively);\n\n Q_INVOKABLE static bool ensure(const QString &path);\n\n Q_INVOKABLE static bool exists(const QString &path);\n Q_INVOKABLE static bool isFile(const QString &path);\n Q_INVOKABLE static bool isDir(const QString &path);\n\n Q_INVOKABLE static qint64 size(const QString &path);\n\n Q_INVOKABLE static bool registerResource(const QString &rccFilename, const QString &resourceRoot=QString());\n Q_INVOKABLE static bool unregisterResource(const QString &rccFilename, const QString &resourceRoot=QString());\n\n Q_INVOKABLE void setLanguage(const QString &languageCode);\n // TODO move to seperate type / remove ?\n //Q_INVOKABLE static void click(const QPointF point);\n\n Qak::AndroidEnv *androidEnv();\n Qak::MouseEnv *mouseEnv();\n\nprivate:\n static QString subEnvPath();\n Qak::AndroidEnv _androidEnv;\n Qak::MouseEnv _mouseEnv;\n\n QTranslator m_translator;\n};\n\n#endif // QAK_ENV_PRIVATE_H\n"}
80,254
c
#include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <syslog.h> #include <string.h> #include <signal.h> #include <stdint.h> #include <sys/wait.h> #ifdef SDK_NEW #define WPS_OFF 8 #endif void terminate_apps(char *appname,int forcekill) { int ret=-1; uint8_t first_time = 0; char cmd[64]=""; if(strcmp(appname,"")) { if(forcekill == 0) sprintf(cmd, "killall -q %s",appname); else sprintf(cmd, "killall -q -9 %s",appname); ret=system(cmd); } if((WIFEXITED(ret)) && (WEXITSTATUS(ret) == 0)) { sprintf(cmd, "pgrep -l -x %s > /dev/null",appname); while(1) { ret = system(cmd); if((WIFEXITED(ret)) && (WEXITSTATUS(ret) != 0)) { printf(" %s Succesfully Terminated \n",appname); break; } else { if(first_time == 0) { if(strcmp(appname,"usbd") == 0){ printf("Please wait while terminating %s [Termination can take time if USB-PURGE is going on]\n",appname); } else printf("Please wait while terminating %s \n",appname); first_time = 1; } } usleep(100000); } } } int main(int argc,char *argv[]) { int i,status,UmntSts=1,LcmKillSts=1; char name[64]={0},tmp_buf[100]={0},appname[20]={0},tmpstr[80]={0}; char *str_end,cmd[30]="pidof quiethandler"; FILE *status_ptr,*appname_ptr,*fp; uint16_t pid1=0,pid2=0; fp = popen(cmd,"r"); //This test avoids the execution if(fp != NULL) //of 2 quiethandlers when user press fscanf(fp,"%hu %hu",&pid1,&pid2);//sequentially IGNITION OFF, ON else printf("popen failed\n"); if(pid1 && pid2) { close(fp); exit(0); } if(fp) close(fp); if(argc >= 3) LcmKillSts=atoi(argv[2]); if(argc >= 4) UmntSts=atoi(argv[3]); for(i=1; i <= 8; i++) { sprintf(name,"conf_get system:applicationSettings:app%dStatus",i); status_ptr = popen(name,"r"); fgets(tmp_buf,90,status_ptr); sscanf(tmp_buf, "%s %d", tmpstr, &status); pclose(status_ptr); if(status) { sprintf(name,"conf_get system:applicationSettings:app%dName",i); appname_ptr = popen(name,"r"); fgets(tmp_buf,90,appname_ptr); sscanf(tmp_buf, "%s %s", tmpstr, appname); pclose(appname_ptr); str_end = strrchr(appname, '/'); terminate_apps(str_end + 1,0); } } system("killall -q capture_app"); if(argv[1] != NULL && ((strcmp(argv[1], "eventlog") == 0)||(strcmp(argv[1], "powercycle") == 0))) terminate_apps("Asm.bin",1); else terminate_apps("Asm.bin",0); if(LcmKillSts == 1) terminate_apps("lcmd",0); terminate_apps("eth_app",0); terminate_apps("auto_off_load",0); terminate_apps("hbrtc",0); terminate_apps("capture_app",0); terminate_apps("usbd",0); system("rm -f /tmp/udp_*"); terminate_apps("application",0); if(argv[1] != NULL && ((strcmp(argv[1], "eventlog") == 0)||(strcmp(argv[1], "powercycle") == 0))) { syslog(LOG_INFO,"APHALT interrupt IGN_OFF\n"); syslog(LOG_INFO,"ST,\t Quiet,\n"); syslog(LOG_INFO,"RM,\t Unmounted,\n"); system("/usr/local/bin/system_event_log"); system("nohup umount /tmp/usb > /dev/null"); system("nohup umount /dev/sda1 > /dev/null"); system("rm -f /tmp/SystemEvents.log"); system("rm -f /tmp/first_time.txt"); /* to resume the transmission if the ignition is ON again before power cut after ignition-OFF */ if(strcmp(argv[1], "powercycle") != 0){ sleep(16); system("/usr/local/bin/application < /var/config > /dev/null"); } } else { syslog(LOG_INFO,"ST,\t Halt,\n"); if(UmntSts == 1) { syslog(LOG_INFO,"RM,\t Unmounted,\n"); system("nohup umount /tmp/usb > /dev/null"); system("nohup umount /dev/sda1 2> /dev/null"); } } #ifdef SDK_NEW system("/usr/bin/panel_led WPS_OFF > /dev/null 2>&1 "); #endif return 0; }
30.24
135
(translation_unit) "#include <unistd.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <syslog.h>\n#include <string.h>\n#include <signal.h>\n#include <stdint.h>\n#include <sys/wait.h>\n#ifdef SDK_NEW\n#define WPS_OFF 8\n#endif\n\nvoid terminate_apps(char *appname,int forcekill)\n{\n int ret=-1;\n uint8_t first_time = 0;\n char cmd[64]="";\n \n if(strcmp(appname,"")) {\n if(forcekill == 0)\n sprintf(cmd, "killall -q %s",appname); \n else\n sprintf(cmd, "killall -q -9 %s",appname);\n ret=system(cmd);\n }\n if((WIFEXITED(ret)) && (WEXITSTATUS(ret) == 0))\n {\n sprintf(cmd, "pgrep -l -x %s > /dev/null",appname);\n while(1)\n {\n ret = system(cmd);\n if((WIFEXITED(ret)) && (WEXITSTATUS(ret) != 0))\n {\n printf(" %s Succesfully Terminated \n",appname);\n break;\n }\n else\n {\n if(first_time == 0)\n {\n if(strcmp(appname,"usbd") == 0){\n printf("Please wait while terminating %s [Termination can take time if USB-PURGE is going on]\n",appname);\n }\n else\n printf("Please wait while terminating %s \n",appname);\n first_time = 1;\n }\n }\n usleep(100000);\n }\n }\n}\n\nint main(int argc,char *argv[])\n{\n int i,status,UmntSts=1,LcmKillSts=1;\n char name[64]={0},tmp_buf[100]={0},appname[20]={0},tmpstr[80]={0};\n char *str_end,cmd[30]="pidof quiethandler";\n FILE *status_ptr,*appname_ptr,*fp;\n uint16_t pid1=0,pid2=0; \n\n fp = popen(cmd,"r"); //This test avoids the execution\n if(fp != NULL) //of 2 quiethandlers when user press\n fscanf(fp,"%hu %hu",&pid1,&pid2);//sequentially IGNITION OFF, ON \n else\n printf("popen failed\n");\n \n if(pid1 && pid2)\n {\n close(fp);\n exit(0);\n }\n if(fp)\n close(fp);\n if(argc >= 3) \n LcmKillSts=atoi(argv[2]);\n\n if(argc >= 4) \n UmntSts=atoi(argv[3]);\n\n for(i=1; i <= 8; i++) {\n sprintf(name,"conf_get system:applicationSettings:app%dStatus",i);\n status_ptr = popen(name,"r");\n fgets(tmp_buf,90,status_ptr);\n sscanf(tmp_buf, "%s %d", tmpstr, &status);\n pclose(status_ptr);\n if(status)\n {\n sprintf(name,"conf_get system:applicationSettings:app%dName",i);\n appname_ptr = popen(name,"r");\n fgets(tmp_buf,90,appname_ptr);\n sscanf(tmp_buf, "%s %s", tmpstr, appname);\n pclose(appname_ptr);\n str_end = strrchr(appname, '/');\n terminate_apps(str_end + 1,0);\n }\n }\n system("killall -q capture_app");\n if(argv[1] != NULL && ((strcmp(argv[1], "eventlog") == 0)||(strcmp(argv[1], "powercycle") == 0)))\n terminate_apps("Asm.bin",1);\n else \n terminate_apps("Asm.bin",0);\n if(LcmKillSts == 1)\n terminate_apps("lcmd",0);\n terminate_apps("eth_app",0);\n terminate_apps("auto_off_load",0);\n terminate_apps("hbrtc",0);\n terminate_apps("capture_app",0);\n terminate_apps("usbd",0);\n system("rm -f /tmp/udp_*");\n terminate_apps("application",0);\n\n if(argv[1] != NULL && ((strcmp(argv[1], "eventlog") == 0)||(strcmp(argv[1], "powercycle") == 0))) \n {\n syslog(LOG_INFO,"APHALT interrupt IGN_OFF\n");\n syslog(LOG_INFO,"ST,\t Quiet,\n");\n syslog(LOG_INFO,"RM,\t Unmounted,\n");\n system("/usr/local/bin/system_event_log");\n system("nohup umount /tmp/usb > /dev/null");\n system("nohup umount /dev/sda1 > /dev/null");\n system("rm -f /tmp/SystemEvents.log");\n system("rm -f /tmp/first_time.txt");\n /* to resume the transmission if the ignition is ON again before power cut after ignition-OFF */\n if(strcmp(argv[1], "powercycle") != 0){\n sleep(16);\n system("/usr/local/bin/application < /var/config > /dev/null");\n }\n } else {\n syslog(LOG_INFO,"ST,\t Halt,\n");\n if(UmntSts == 1)\n { \n syslog(LOG_INFO,"RM,\t Unmounted,\n");\n system("nohup umount /tmp/usb > /dev/null");\n system("nohup umount /dev/sda1 2> /dev/null");\n } \n }\n#ifdef SDK_NEW\n system("/usr/bin/panel_led WPS_OFF > /dev/null 2>&1 ");\n#endif\n return 0;\n}\n" (preproc_include) "#include <unistd.h>\n" (#include) "#include" (system_lib_string) "<unistd.h>" (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 <syslog.h>\n" (#include) "#include" (system_lib_string) "<syslog.h>" (preproc_include) "#include <string.h>\n" (#include) "#include" (system_lib_string) "<string.h>" (preproc_include) "#include <signal.h>\n" (#include) "#include" (system_lib_string) "<signal.h>" (preproc_include) "#include <stdint.h>\n" (#include) "#include" (system_lib_string) "<stdint.h>" (preproc_include) "#include <sys/wait.h>\n" (#include) "#include" (system_lib_string) "<sys/wait.h>" (preproc_ifdef) "#ifdef SDK_NEW\n#define WPS_OFF 8\n#endif" (#ifdef) "#ifdef" (identifier) "SDK_NEW" (preproc_def) "#define WPS_OFF 8\n" (#define) "#define" (identifier) "WPS_OFF" (preproc_arg) "8" (#endif) "#endif" (function_definition) "void terminate_apps(char *appname,int forcekill)\n{\n int ret=-1;\n uint8_t first_time = 0;\n char cmd[64]="";\n \n if(strcmp(appname,"")) {\n if(forcekill == 0)\n sprintf(cmd, "killall -q %s",appname); \n else\n sprintf(cmd, "killall -q -9 %s",appname);\n ret=system(cmd);\n }\n if((WIFEXITED(ret)) && (WEXITSTATUS(ret) == 0))\n {\n sprintf(cmd, "pgrep -l -x %s > /dev/null",appname);\n while(1)\n {\n ret = system(cmd);\n if((WIFEXITED(ret)) && (WEXITSTATUS(ret) != 0))\n {\n printf(" %s Succesfully Terminated \n",appname);\n break;\n }\n else\n {\n if(first_time == 0)\n {\n if(strcmp(appname,"usbd") == 0){\n printf("Please wait while terminating %s [Termination can take time if USB-PURGE is going on]\n",appname);\n }\n else\n printf("Please wait while terminating %s \n",appname);\n first_time = 1;\n }\n }\n usleep(100000);\n }\n }\n}" (primitive_type) "void" (function_declarator) "terminate_apps(char *appname,int forcekill)" (identifier) "terminate_apps" (parameter_list) "(char *appname,int forcekill)" (() "(" (parameter_declaration) "char *appname" (primitive_type) "char" (pointer_declarator) "*appname" (*) "*" (identifier) "appname" (,) "," (parameter_declaration) "int forcekill" (primitive_type) "int" (identifier) "forcekill" ()) ")" (compound_statement) "{\n int ret=-1;\n uint8_t first_time = 0;\n char cmd[64]="";\n \n if(strcmp(appname,"")) {\n if(forcekill == 0)\n sprintf(cmd, "killall -q %s",appname); \n else\n sprintf(cmd, "killall -q -9 %s",appname);\n ret=system(cmd);\n }\n if((WIFEXITED(ret)) && (WEXITSTATUS(ret) == 0))\n {\n sprintf(cmd, "pgrep -l -x %s > /dev/null",appname);\n while(1)\n {\n ret = system(cmd);\n if((WIFEXITED(ret)) && (WEXITSTATUS(ret) != 0))\n {\n printf(" %s Succesfully Terminated \n",appname);\n break;\n }\n else\n {\n if(first_time == 0)\n {\n if(strcmp(appname,"usbd") == 0){\n printf("Please wait while terminating %s [Termination can take time if USB-PURGE is going on]\n",appname);\n }\n else\n printf("Please wait while terminating %s \n",appname);\n first_time = 1;\n }\n }\n usleep(100000);\n }\n }\n}" ({) "{" (declaration) "int ret=-1;" (primitive_type) "int" (init_declarator) "ret=-1" (identifier) "ret" (=) "=" (number_literal) "-1" (;) ";" (declaration) "uint8_t first_time = 0;" (primitive_type) "uint8_t" (init_declarator) "first_time = 0" (identifier) "first_time" (=) "=" (number_literal) "0" (;) ";" (declaration) "char cmd[64]="";" (primitive_type) "char" (init_declarator) "cmd[64]=""" (array_declarator) "cmd[64]" (identifier) "cmd" ([) "[" (number_literal) "64" (]) "]" (=) "=" (string_literal) """" (") """ (") """ (;) ";" (if_statement) "if(strcmp(appname,"")) {\n if(forcekill == 0)\n sprintf(cmd, "killall -q %s",appname); \n else\n sprintf(cmd, "killall -q -9 %s",appname);\n ret=system(cmd);\n }" (if) "if" (parenthesized_expression) "(strcmp(appname,""))" (() "(" (call_expression) "strcmp(appname,"")" (identifier) "strcmp" (argument_list) "(appname,"")" (() "(" (identifier) "appname" (,) "," (string_literal) """" (") """ (") """ ()) ")" ()) ")" (compound_statement) "{\n if(forcekill == 0)\n sprintf(cmd, "killall -q %s",appname); \n else\n sprintf(cmd, "killall -q -9 %s",appname);\n ret=system(cmd);\n }" ({) "{" (if_statement) "if(forcekill == 0)\n sprintf(cmd, "killall -q %s",appname); \n else\n sprintf(cmd, "killall -q -9 %s",appname);" (if) "if" (parenthesized_expression) "(forcekill == 0)" (() "(" (binary_expression) "forcekill == 0" (identifier) "forcekill" (==) "==" (number_literal) "0" ()) ")" (expression_statement) "sprintf(cmd, "killall -q %s",appname);" (call_expression) "sprintf(cmd, "killall -q %s",appname)" (identifier) "sprintf" (argument_list) "(cmd, "killall -q %s",appname)" (() "(" (identifier) "cmd" (,) "," (string_literal) ""killall -q %s"" (") """ (string_content) "killall -q %s" (") """ (,) "," (identifier) "appname" ()) ")" (;) ";" (else_clause) "else\n sprintf(cmd, "killall -q -9 %s",appname);" (else) "else" (expression_statement) "sprintf(cmd, "killall -q -9 %s",appname);" (call_expression) "sprintf(cmd, "killall -q -9 %s",appname)" (identifier) "sprintf" (argument_list) "(cmd, "killall -q -9 %s",appname)" (() "(" (identifier) "cmd" (,) "," (string_literal) ""killall -q -9 %s"" (") """ (string_content) "killall -q -9 %s" (") """ (,) "," (identifier) "appname" ()) ")" (;) ";" (expression_statement) "ret=system(cmd);" (assignment_expression) "ret=system(cmd)" (identifier) "ret" (=) "=" (call_expression) "system(cmd)" (identifier) "system" (argument_list) "(cmd)" (() "(" (identifier) "cmd" ()) ")" (;) ";" (}) "}" (if_statement) "if((WIFEXITED(ret)) && (WEXITSTATUS(ret) == 0))\n {\n sprintf(cmd, "pgrep -l -x %s > /dev/null",appname);\n while(1)\n {\n ret = system(cmd);\n if((WIFEXITED(ret)) && (WEXITSTATUS(ret) != 0))\n {\n printf(" %s Succesfully Terminated \n",appname);\n break;\n }\n else\n {\n if(first_time == 0)\n {\n if(strcmp(appname,"usbd") == 0){\n printf("Please wait while terminating %s [Termination can take time if USB-PURGE is going on]\n",appname);\n }\n else\n printf("Please wait while terminating %s \n",appname);\n first_time = 1;\n }\n }\n usleep(100000);\n }\n }" (if) "if" (parenthesized_expression) "((WIFEXITED(ret)) && (WEXITSTATUS(ret) == 0))" (() "(" (binary_expression) "(WIFEXITED(ret)) && (WEXITSTATUS(ret) == 0)" (parenthesized_expression) "(WIFEXITED(ret))" (() "(" (call_expression) "WIFEXITED(ret)" (identifier) "WIFEXITED" (argument_list) "(ret)" (() "(" (identifier) "ret" ()) ")" ()) ")" (&&) "&&" (parenthesized_expression) "(WEXITSTATUS(ret) == 0)" (() "(" (binary_expression) "WEXITSTATUS(ret) == 0" (call_expression) "WEXITSTATUS(ret)" (identifier) "WEXITSTATUS" (argument_list) "(ret)" (() "(" (identifier) "ret" ()) ")" (==) "==" (number_literal) "0" ()) ")" ()) ")" (compound_statement) "{\n sprintf(cmd, "pgrep -l -x %s > /dev/null",appname);\n while(1)\n {\n ret = system(cmd);\n if((WIFEXITED(ret)) && (WEXITSTATUS(ret) != 0))\n {\n printf(" %s Succesfully Terminated \n",appname);\n break;\n }\n else\n {\n if(first_time == 0)\n {\n if(strcmp(appname,"usbd") == 0){\n printf("Please wait while terminating %s [Termination can take time if USB-PURGE is going on]\n",appname);\n }\n else\n printf("Please wait while terminating %s \n",appname);\n first_time = 1;\n }\n }\n usleep(100000);\n }\n }" ({) "{" (expression_statement) "sprintf(cmd, "pgrep -l -x %s > /dev/null",appname);" (call_expression) "sprintf(cmd, "pgrep -l -x %s > /dev/null",appname)" (identifier) "sprintf" (argument_list) "(cmd, "pgrep -l -x %s > /dev/null",appname)" (() "(" (identifier) "cmd" (,) "," (string_literal) ""pgrep -l -x %s > /dev/null"" (") """ (string_content) "pgrep -l -x %s > /dev/null" (") """ (,) "," (identifier) "appname" ()) ")" (;) ";" (while_statement) "while(1)\n {\n ret = system(cmd);\n if((WIFEXITED(ret)) && (WEXITSTATUS(ret) != 0))\n {\n printf(" %s Succesfully Terminated \n",appname);\n break;\n }\n else\n {\n if(first_time == 0)\n {\n if(strcmp(appname,"usbd") == 0){\n printf("Please wait while terminating %s [Termination can take time if USB-PURGE is going on]\n",appname);\n }\n else\n printf("Please wait while terminating %s \n",appname);\n first_time = 1;\n }\n }\n usleep(100000);\n }" (while) "while" (parenthesized_expression) "(1)" (() "(" (number_literal) "1" ()) ")" (compound_statement) "{\n ret = system(cmd);\n if((WIFEXITED(ret)) && (WEXITSTATUS(ret) != 0))\n {\n printf(" %s Succesfully Terminated \n",appname);\n break;\n }\n else\n {\n if(first_time == 0)\n {\n if(strcmp(appname,"usbd") == 0){\n printf("Please wait while terminating %s [Termination can take time if USB-PURGE is going on]\n",appname);\n }\n else\n printf("Please wait while terminating %s \n",appname);\n first_time = 1;\n }\n }\n usleep(100000);\n }" ({) "{" (expression_statement) "ret = system(cmd);" (assignment_expression) "ret = system(cmd)" (identifier) "ret" (=) "=" (call_expression) "system(cmd)" (identifier) "system" (argument_list) "(cmd)" (() "(" (identifier) "cmd" ()) ")" (;) ";" (if_statement) "if((WIFEXITED(ret)) && (WEXITSTATUS(ret) != 0))\n {\n printf(" %s Succesfully Terminated \n",appname);\n break;\n }\n else\n {\n if(first_time == 0)\n {\n if(strcmp(appname,"usbd") == 0){\n printf("Please wait while terminating %s [Termination can take time if USB-PURGE is going on]\n",appname);\n }\n else\n printf("Please wait while terminating %s \n",appname);\n first_time = 1;\n }\n }" (if) "if" (parenthesized_expression) "((WIFEXITED(ret)) && (WEXITSTATUS(ret) != 0))" (() "(" (binary_expression) "(WIFEXITED(ret)) && (WEXITSTATUS(ret) != 0)" (parenthesized_expression) "(WIFEXITED(ret))" (() "(" (call_expression) "WIFEXITED(ret)" (identifier) "WIFEXITED" (argument_list) "(ret)" (() "(" (identifier) "ret" ()) ")" ()) ")" (&&) "&&" (parenthesized_expression) "(WEXITSTATUS(ret) != 0)" (() "(" (binary_expression) "WEXITSTATUS(ret) != 0" (call_expression) "WEXITSTATUS(ret)" (identifier) "WEXITSTATUS" (argument_list) "(ret)" (() "(" (identifier) "ret" ()) ")" (!=) "!=" (number_literal) "0" ()) ")" ()) ")" (compound_statement) "{\n printf(" %s Succesfully Terminated \n",appname);\n break;\n }" ({) "{" (expression_statement) "printf(" %s Succesfully Terminated \n",appname);" (call_expression) "printf(" %s Succesfully Terminated \n",appname)" (identifier) "printf" (argument_list) "(" %s Succesfully Terminated \n",appname)" (() "(" (string_literal) "" %s Succesfully Terminated \n"" (") """ (string_content) " %s Succesfully Terminated " (escape_sequence) "\n" (") """ (,) "," (identifier) "appname" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (else_clause) "else\n {\n if(first_time == 0)\n {\n if(strcmp(appname,"usbd") == 0){\n printf("Please wait while terminating %s [Termination can take time if USB-PURGE is going on]\n",appname);\n }\n else\n printf("Please wait while terminating %s \n",appname);\n first_time = 1;\n }\n }" (else) "else" (compound_statement) "{\n if(first_time == 0)\n {\n if(strcmp(appname,"usbd") == 0){\n printf("Please wait while terminating %s [Termination can take time if USB-PURGE is going on]\n",appname);\n }\n else\n printf("Please wait while terminating %s \n",appname);\n first_time = 1;\n }\n }" ({) "{" (if_statement) "if(first_time == 0)\n {\n if(strcmp(appname,"usbd") == 0){\n printf("Please wait while terminating %s [Termination can take time if USB-PURGE is going on]\n",appname);\n }\n else\n printf("Please wait while terminating %s \n",appname);\n first_time = 1;\n }" (if) "if" (parenthesized_expression) "(first_time == 0)" (() "(" (binary_expression) "first_time == 0" (identifier) "first_time" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n if(strcmp(appname,"usbd") == 0){\n printf("Please wait while terminating %s [Termination can take time if USB-PURGE is going on]\n",appname);\n }\n else\n printf("Please wait while terminating %s \n",appname);\n first_time = 1;\n }" ({) "{" (if_statement) "if(strcmp(appname,"usbd") == 0){\n printf("Please wait while terminating %s [Termination can take time if USB-PURGE is going on]\n",appname);\n }\n else\n printf("Please wait while terminating %s \n",appname);" (if) "if" (parenthesized_expression) "(strcmp(appname,"usbd") == 0)" (() "(" (binary_expression) "strcmp(appname,"usbd") == 0" (call_expression) "strcmp(appname,"usbd")" (identifier) "strcmp" (argument_list) "(appname,"usbd")" (() "(" (identifier) "appname" (,) "," (string_literal) ""usbd"" (") """ (string_content) "usbd" (") """ ()) ")" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n printf("Please wait while terminating %s [Termination can take time if USB-PURGE is going on]\n",appname);\n }" ({) "{" (expression_statement) "printf("Please wait while terminating %s [Termination can take time if USB-PURGE is going on]\n",appname);" (call_expression) "printf("Please wait while terminating %s [Termination can take time if USB-PURGE is going on]\n",appname)" (identifier) "printf" (argument_list) "("Please wait while terminating %s [Termination can take time if USB-PURGE is going on]\n",appname)" (() "(" (string_literal) ""Please wait while terminating %s [Termination can take time if USB-PURGE is going on]\n"" (") """ (string_content) "Please wait while terminating %s [Termination can take time if USB-PURGE is going on]" (escape_sequence) "\n" (") """ (,) "," (identifier) "appname" ()) ")" (;) ";" (}) "}" (else_clause) "else\n printf("Please wait while terminating %s \n",appname);" (else) "else" (expression_statement) "printf("Please wait while terminating %s \n",appname);" (call_expression) "printf("Please wait while terminating %s \n",appname)" (identifier) "printf" (argument_list) "("Please wait while terminating %s \n",appname)" (() "(" (string_literal) ""Please wait while terminating %s \n"" (") """ (string_content) "Please wait while terminating %s " (escape_sequence) "\n" (") """ (,) "," (identifier) "appname" ()) ")" (;) ";" (expression_statement) "first_time = 1;" (assignment_expression) "first_time = 1" (identifier) "first_time" (=) "=" (number_literal) "1" (;) ";" (}) "}" (}) "}" (expression_statement) "usleep(100000);" (call_expression) "usleep(100000)" (identifier) "usleep" (argument_list) "(100000)" (() "(" (number_literal) "100000" ()) ")" (;) ";" (}) "}" (}) "}" (}) "}" (function_definition) "int main(int argc,char *argv[])\n{\n int i,status,UmntSts=1,LcmKillSts=1;\n char name[64]={0},tmp_buf[100]={0},appname[20]={0},tmpstr[80]={0};\n char *str_end,cmd[30]="pidof quiethandler";\n FILE *status_ptr,*appname_ptr,*fp;\n uint16_t pid1=0,pid2=0; \n\n fp = popen(cmd,"r"); //This test avoids the execution\n if(fp != NULL) //of 2 quiethandlers when user press\n fscanf(fp,"%hu %hu",&pid1,&pid2);//sequentially IGNITION OFF, ON \n else\n printf("popen failed\n");\n \n if(pid1 && pid2)\n {\n close(fp);\n exit(0);\n }\n if(fp)\n close(fp);\n if(argc >= 3) \n LcmKillSts=atoi(argv[2]);\n\n if(argc >= 4) \n UmntSts=atoi(argv[3]);\n\n for(i=1; i <= 8; i++) {\n sprintf(name,"conf_get system:applicationSettings:app%dStatus",i);\n status_ptr = popen(name,"r");\n fgets(tmp_buf,90,status_ptr);\n sscanf(tmp_buf, "%s %d", tmpstr, &status);\n pclose(status_ptr);\n if(status)\n {\n sprintf(name,"conf_get system:applicationSettings:app%dName",i);\n appname_ptr = popen(name,"r");\n fgets(tmp_buf,90,appname_ptr);\n sscanf(tmp_buf, "%s %s", tmpstr, appname);\n pclose(appname_ptr);\n str_end = strrchr(appname, '/');\n terminate_apps(str_end + 1,0);\n }\n }\n system("killall -q capture_app");\n if(argv[1] != NULL && ((strcmp(argv[1], "eventlog") == 0)||(strcmp(argv[1], "powercycle") == 0)))\n terminate_apps("Asm.bin",1);\n else \n terminate_apps("Asm.bin",0);\n if(LcmKillSts == 1)\n terminate_apps("lcmd",0);\n terminate_apps("eth_app",0);\n terminate_apps("auto_off_load",0);\n terminate_apps("hbrtc",0);\n terminate_apps("capture_app",0);\n terminate_apps("usbd",0);\n system("rm -f /tmp/udp_*");\n terminate_apps("application",0);\n\n if(argv[1] != NULL && ((strcmp(argv[1], "eventlog") == 0)||(strcmp(argv[1], "powercycle") == 0))) \n {\n syslog(LOG_INFO,"APHALT interrupt IGN_OFF\n");\n syslog(LOG_INFO,"ST,\t Quiet,\n");\n syslog(LOG_INFO,"RM,\t Unmounted,\n");\n system("/usr/local/bin/system_event_log");\n system("nohup umount /tmp/usb > /dev/null");\n system("nohup umount /dev/sda1 > /dev/null");\n system("rm -f /tmp/SystemEvents.log");\n system("rm -f /tmp/first_time.txt");\n /* to resume the transmission if the ignition is ON again before power cut after ignition-OFF */\n if(strcmp(argv[1], "powercycle") != 0){\n sleep(16);\n system("/usr/local/bin/application < /var/config > /dev/null");\n }\n } else {\n syslog(LOG_INFO,"ST,\t Halt,\n");\n if(UmntSts == 1)\n { \n syslog(LOG_INFO,"RM,\t Unmounted,\n");\n system("nohup umount /tmp/usb > /dev/null");\n system("nohup umount /dev/sda1 2> /dev/null");\n } \n }\n#ifdef SDK_NEW\n system("/usr/bin/panel_led WPS_OFF > /dev/null 2>&1 ");\n#endif\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 int i,status,UmntSts=1,LcmKillSts=1;\n char name[64]={0},tmp_buf[100]={0},appname[20]={0},tmpstr[80]={0};\n char *str_end,cmd[30]="pidof quiethandler";\n FILE *status_ptr,*appname_ptr,*fp;\n uint16_t pid1=0,pid2=0; \n\n fp = popen(cmd,"r"); //This test avoids the execution\n if(fp != NULL) //of 2 quiethandlers when user press\n fscanf(fp,"%hu %hu",&pid1,&pid2);//sequentially IGNITION OFF, ON \n else\n printf("popen failed\n");\n \n if(pid1 && pid2)\n {\n close(fp);\n exit(0);\n }\n if(fp)\n close(fp);\n if(argc >= 3) \n LcmKillSts=atoi(argv[2]);\n\n if(argc >= 4) \n UmntSts=atoi(argv[3]);\n\n for(i=1; i <= 8; i++) {\n sprintf(name,"conf_get system:applicationSettings:app%dStatus",i);\n status_ptr = popen(name,"r");\n fgets(tmp_buf,90,status_ptr);\n sscanf(tmp_buf, "%s %d", tmpstr, &status);\n pclose(status_ptr);\n if(status)\n {\n sprintf(name,"conf_get system:applicationSettings:app%dName",i);\n appname_ptr = popen(name,"r");\n fgets(tmp_buf,90,appname_ptr);\n sscanf(tmp_buf, "%s %s", tmpstr, appname);\n pclose(appname_ptr);\n str_end = strrchr(appname, '/');\n terminate_apps(str_end + 1,0);\n }\n }\n system("killall -q capture_app");\n if(argv[1] != NULL && ((strcmp(argv[1], "eventlog") == 0)||(strcmp(argv[1], "powercycle") == 0)))\n terminate_apps("Asm.bin",1);\n else \n terminate_apps("Asm.bin",0);\n if(LcmKillSts == 1)\n terminate_apps("lcmd",0);\n terminate_apps("eth_app",0);\n terminate_apps("auto_off_load",0);\n terminate_apps("hbrtc",0);\n terminate_apps("capture_app",0);\n terminate_apps("usbd",0);\n system("rm -f /tmp/udp_*");\n terminate_apps("application",0);\n\n if(argv[1] != NULL && ((strcmp(argv[1], "eventlog") == 0)||(strcmp(argv[1], "powercycle") == 0))) \n {\n syslog(LOG_INFO,"APHALT interrupt IGN_OFF\n");\n syslog(LOG_INFO,"ST,\t Quiet,\n");\n syslog(LOG_INFO,"RM,\t Unmounted,\n");\n system("/usr/local/bin/system_event_log");\n system("nohup umount /tmp/usb > /dev/null");\n system("nohup umount /dev/sda1 > /dev/null");\n system("rm -f /tmp/SystemEvents.log");\n system("rm -f /tmp/first_time.txt");\n /* to resume the transmission if the ignition is ON again before power cut after ignition-OFF */\n if(strcmp(argv[1], "powercycle") != 0){\n sleep(16);\n system("/usr/local/bin/application < /var/config > /dev/null");\n }\n } else {\n syslog(LOG_INFO,"ST,\t Halt,\n");\n if(UmntSts == 1)\n { \n syslog(LOG_INFO,"RM,\t Unmounted,\n");\n system("nohup umount /tmp/usb > /dev/null");\n system("nohup umount /dev/sda1 2> /dev/null");\n } \n }\n#ifdef SDK_NEW\n system("/usr/bin/panel_led WPS_OFF > /dev/null 2>&1 ");\n#endif\n return 0;\n}" ({) "{" (declaration) "int i,status,UmntSts=1,LcmKillSts=1;" (primitive_type) "int" (identifier) "i" (,) "," (identifier) "status" (,) "," (init_declarator) "UmntSts=1" (identifier) "UmntSts" (=) "=" (number_literal) "1" (,) "," (init_declarator) "LcmKillSts=1" (identifier) "LcmKillSts" (=) "=" (number_literal) "1" (;) ";" (declaration) "char name[64]={0},tmp_buf[100]={0},appname[20]={0},tmpstr[80]={0};" (primitive_type) "char" (init_declarator) "name[64]={0}" (array_declarator) "name[64]" (identifier) "name" ([) "[" (number_literal) "64" (]) "]" (=) "=" (initializer_list) "{0}" ({) "{" (number_literal) "0" (}) "}" (,) "," (init_declarator) "tmp_buf[100]={0}" (array_declarator) "tmp_buf[100]" (identifier) "tmp_buf" ([) "[" (number_literal) "100" (]) "]" (=) "=" (initializer_list) "{0}" ({) "{" (number_literal) "0" (}) "}" (,) "," (init_declarator) "appname[20]={0}" (array_declarator) "appname[20]" (identifier) "appname" ([) "[" (number_literal) "20" (]) "]" (=) "=" (initializer_list) "{0}" ({) "{" (number_literal) "0" (}) "}" (,) "," (init_declarator) "tmpstr[80]={0}" (array_declarator) "tmpstr[80]" (identifier) "tmpstr" ([) "[" (number_literal) "80" (]) "]" (=) "=" (initializer_list) "{0}" ({) "{" (number_literal) "0" (}) "}" (;) ";" (declaration) "char *str_end,cmd[30]="pidof quiethandler";" (primitive_type) "char" (pointer_declarator) "*str_end" (*) "*" (identifier) "str_end" (,) "," (init_declarator) "cmd[30]="pidof quiethandler"" (array_declarator) "cmd[30]" (identifier) "cmd" ([) "[" (number_literal) "30" (]) "]" (=) "=" (string_literal) ""pidof quiethandler"" (") """ (string_content) "pidof quiethandler" (") """ (;) ";" (declaration) "FILE *status_ptr,*appname_ptr,*fp;" (type_identifier) "FILE" (pointer_declarator) "*status_ptr" (*) "*" (identifier) "status_ptr" (,) "," (pointer_declarator) "*appname_ptr" (*) "*" (identifier) "appname_ptr" (,) "," (pointer_declarator) "*fp" (*) "*" (identifier) "fp" (;) ";" (declaration) "uint16_t pid1=0,pid2=0;" (primitive_type) "uint16_t" (init_declarator) "pid1=0" (identifier) "pid1" (=) "=" (number_literal) "0" (,) "," (init_declarator) "pid2=0" (identifier) "pid2" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "fp = popen(cmd,"r");" (assignment_expression) "fp = popen(cmd,"r")" (identifier) "fp" (=) "=" (call_expression) "popen(cmd,"r")" (identifier) "popen" (argument_list) "(cmd,"r")" (() "(" (identifier) "cmd" (,) "," (string_literal) ""r"" (") """ (string_content) "r" (") """ ()) ")" (;) ";" (comment) "//This test avoids the execution" (if_statement) "if(fp != NULL) //of 2 quiethandlers when user press\n fscanf(fp,"%hu %hu",&pid1,&pid2);//sequentially IGNITION OFF, ON \n else\n printf("popen failed\n");" (if) "if" (parenthesized_expression) "(fp != NULL)" (() "(" (binary_expression) "fp != NULL" (identifier) "fp" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (comment) "//of 2 quiethandlers when user press" (expression_statement) "fscanf(fp,"%hu %hu",&pid1,&pid2);" (call_expression) "fscanf(fp,"%hu %hu",&pid1,&pid2)" (identifier) "fscanf" (argument_list) "(fp,"%hu %hu",&pid1,&pid2)" (() "(" (identifier) "fp" (,) "," (string_literal) ""%hu %hu"" (") """ (string_content) "%hu %hu" (") """ (,) "," (pointer_expression) "&pid1" (&) "&" (identifier) "pid1" (,) "," (pointer_expression) "&pid2" (&) "&" (identifier) "pid2" ()) ")" (;) ";" (comment) "//sequentially IGNITION OFF, ON " (else_clause) "else\n printf("popen failed\n");" (else) "else" (expression_statement) "printf("popen failed\n");" (call_expression) "printf("popen failed\n")" (identifier) "printf" (argument_list) "("popen failed\n")" (() "(" (string_literal) ""popen failed\n"" (") """ (string_content) "popen failed" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (if_statement) "if(pid1 && pid2)\n {\n close(fp);\n exit(0);\n }" (if) "if" (parenthesized_expression) "(pid1 && pid2)" (() "(" (binary_expression) "pid1 && pid2" (identifier) "pid1" (&&) "&&" (identifier) "pid2" ()) ")" (compound_statement) "{\n close(fp);\n exit(0);\n }" ({) "{" (expression_statement) "close(fp);" (call_expression) "close(fp)" (identifier) "close" (argument_list) "(fp)" (() "(" (identifier) "fp" ()) ")" (;) ";" (expression_statement) "exit(0);" (call_expression) "exit(0)" (identifier) "exit" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (;) ";" (}) "}" (if_statement) "if(fp)\n close(fp);" (if) "if" (parenthesized_expression) "(fp)" (() "(" (identifier) "fp" ()) ")" (expression_statement) "close(fp);" (call_expression) "close(fp)" (identifier) "close" (argument_list) "(fp)" (() "(" (identifier) "fp" ()) ")" (;) ";" (if_statement) "if(argc >= 3) \n LcmKillSts=atoi(argv[2]);" (if) "if" (parenthesized_expression) "(argc >= 3)" (() "(" (binary_expression) "argc >= 3" (identifier) "argc" (>=) ">=" (number_literal) "3" ()) ")" (expression_statement) "LcmKillSts=atoi(argv[2]);" (assignment_expression) "LcmKillSts=atoi(argv[2])" (identifier) "LcmKillSts" (=) "=" (call_expression) "atoi(argv[2])" (identifier) "atoi" (argument_list) "(argv[2])" (() "(" (subscript_expression) "argv[2]" (identifier) "argv" ([) "[" (number_literal) "2" (]) "]" ()) ")" (;) ";" (if_statement) "if(argc >= 4) \n UmntSts=atoi(argv[3]);" (if) "if" (parenthesized_expression) "(argc >= 4)" (() "(" (binary_expression) "argc >= 4" (identifier) "argc" (>=) ">=" (number_literal) "4" ()) ")" (expression_statement) "UmntSts=atoi(argv[3]);" (assignment_expression) "UmntSts=atoi(argv[3])" (identifier) "UmntSts" (=) "=" (call_expression) "atoi(argv[3])" (identifier) "atoi" (argument_list) "(argv[3])" (() "(" (subscript_expression) "argv[3]" (identifier) "argv" ([) "[" (number_literal) "3" (]) "]" ()) ")" (;) ";" (for_statement) "for(i=1; i <= 8; i++) {\n sprintf(name,"conf_get system:applicationSettings:app%dStatus",i);\n status_ptr = popen(name,"r");\n fgets(tmp_buf,90,status_ptr);\n sscanf(tmp_buf, "%s %d", tmpstr, &status);\n pclose(status_ptr);\n if(status)\n {\n sprintf(name,"conf_get system:applicationSettings:app%dName",i);\n appname_ptr = popen(name,"r");\n fgets(tmp_buf,90,appname_ptr);\n sscanf(tmp_buf, "%s %s", tmpstr, appname);\n pclose(appname_ptr);\n str_end = strrchr(appname, '/');\n terminate_apps(str_end + 1,0);\n }\n }" (for) "for" (() "(" (assignment_expression) "i=1" (identifier) "i" (=) "=" (number_literal) "1" (;) ";" (binary_expression) "i <= 8" (identifier) "i" (<=) "<=" (number_literal) "8" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n sprintf(name,"conf_get system:applicationSettings:app%dStatus",i);\n status_ptr = popen(name,"r");\n fgets(tmp_buf,90,status_ptr);\n sscanf(tmp_buf, "%s %d", tmpstr, &status);\n pclose(status_ptr);\n if(status)\n {\n sprintf(name,"conf_get system:applicationSettings:app%dName",i);\n appname_ptr = popen(name,"r");\n fgets(tmp_buf,90,appname_ptr);\n sscanf(tmp_buf, "%s %s", tmpstr, appname);\n pclose(appname_ptr);\n str_end = strrchr(appname, '/');\n terminate_apps(str_end + 1,0);\n }\n }" ({) "{" (expression_statement) "sprintf(name,"conf_get system:applicationSettings:app%dStatus",i);" (call_expression) "sprintf(name,"conf_get system:applicationSettings:app%dStatus",i)" (identifier) "sprintf" (argument_list) "(name,"conf_get system:applicationSettings:app%dStatus",i)" (() "(" (identifier) "name" (,) "," (string_literal) ""conf_get system:applicationSettings:app%dStatus"" (") """ (string_content) "conf_get system:applicationSettings:app%dStatus" (") """ (,) "," (identifier) "i" ()) ")" (;) ";" (expression_statement) "status_ptr = popen(name,"r");" (assignment_expression) "status_ptr = popen(name,"r")" (identifier) "status_ptr" (=) "=" (call_expression) "popen(name,"r")" (identifier) "popen" (argument_list) "(name,"r")" (() "(" (identifier) "name" (,) "," (string_literal) ""r"" (") """ (string_content) "r" (") """ ()) ")" (;) ";" (expression_statement) "fgets(tmp_buf,90,status_ptr);" (call_expression) "fgets(tmp_buf,90,status_ptr)" (identifier) "fgets" (argument_list) "(tmp_buf,90,status_ptr)" (() "(" (identifier) "tmp_buf" (,) "," (number_literal) "90" (,) "," (identifier) "status_ptr" ()) ")" (;) ";" (expression_statement) "sscanf(tmp_buf, "%s %d", tmpstr, &status);" (call_expression) "sscanf(tmp_buf, "%s %d", tmpstr, &status)" (identifier) "sscanf" (argument_list) "(tmp_buf, "%s %d", tmpstr, &status)" (() "(" (identifier) "tmp_buf" (,) "," (string_literal) ""%s %d"" (") """ (string_content) "%s %d" (") """ (,) "," (identifier) "tmpstr" (,) "," (pointer_expression) "&status" (&) "&" (identifier) "status" ()) ")" (;) ";" (expression_statement) "pclose(status_ptr);" (call_expression) "pclose(status_ptr)" (identifier) "pclose" (argument_list) "(status_ptr)" (() "(" (identifier) "status_ptr" ()) ")" (;) ";" (if_statement) "if(status)\n {\n sprintf(name,"conf_get system:applicationSettings:app%dName",i);\n appname_ptr = popen(name,"r");\n fgets(tmp_buf,90,appname_ptr);\n sscanf(tmp_buf, "%s %s", tmpstr, appname);\n pclose(appname_ptr);\n str_end = strrchr(appname, '/');\n terminate_apps(str_end + 1,0);\n }" (if) "if" (parenthesized_expression) "(status)" (() "(" (identifier) "status" ()) ")" (compound_statement) "{\n sprintf(name,"conf_get system:applicationSettings:app%dName",i);\n appname_ptr = popen(name,"r");\n fgets(tmp_buf,90,appname_ptr);\n sscanf(tmp_buf, "%s %s", tmpstr, appname);\n pclose(appname_ptr);\n str_end = strrchr(appname, '/');\n terminate_apps(str_end + 1,0);\n }" ({) "{" (expression_statement) "sprintf(name,"conf_get system:applicationSettings:app%dName",i);" (call_expression) "sprintf(name,"conf_get system:applicationSettings:app%dName",i)" (identifier) "sprintf" (argument_list) "(name,"conf_get system:applicationSettings:app%dName",i)" (() "(" (identifier) "name" (,) "," (string_literal) ""conf_get system:applicationSettings:app%dName"" (") """ (string_content) "conf_get system:applicationSettings:app%dName" (") """ (,) "," (identifier) "i" ()) ")" (;) ";" (expression_statement) "appname_ptr = popen(name,"r");" (assignment_expression) "appname_ptr = popen(name,"r")" (identifier) "appname_ptr" (=) "=" (call_expression) "popen(name,"r")" (identifier) "popen" (argument_list) "(name,"r")" (() "(" (identifier) "name" (,) "," (string_literal) ""r"" (") """ (string_content) "r" (") """ ()) ")" (;) ";" (expression_statement) "fgets(tmp_buf,90,appname_ptr);" (call_expression) "fgets(tmp_buf,90,appname_ptr)" (identifier) "fgets" (argument_list) "(tmp_buf,90,appname_ptr)" (() "(" (identifier) "tmp_buf" (,) "," (number_literal) "90" (,) "," (identifier) "appname_ptr" ()) ")" (;) ";" (expression_statement) "sscanf(tmp_buf, "%s %s", tmpstr, appname);" (call_expression) "sscanf(tmp_buf, "%s %s", tmpstr, appname)" (identifier) "sscanf" (argument_list) "(tmp_buf, "%s %s", tmpstr, appname)" (() "(" (identifier) "tmp_buf" (,) "," (string_literal) ""%s %s"" (") """ (string_content) "%s %s" (") """ (,) "," (identifier) "tmpstr" (,) "," (identifier) "appname" ()) ")" (;) ";" (expression_statement) "pclose(appname_ptr);" (call_expression) "pclose(appname_ptr)" (identifier) "pclose" (argument_list) "(appname_ptr)" (() "(" (identifier) "appname_ptr" ()) ")" (;) ";" (expression_statement) "str_end = strrchr(appname, '/');" (assignment_expression) "str_end = strrchr(appname, '/')" (identifier) "str_end" (=) "=" (call_expression) "strrchr(appname, '/')" (identifier) "strrchr" (argument_list) "(appname, '/')" (() "(" (identifier) "appname" (,) "," (char_literal) "'/'" (') "'" (character) "/" (') "'" ()) ")" (;) ";" (expression_statement) "terminate_apps(str_end + 1,0);" (call_expression) "terminate_apps(str_end + 1,0)" (identifier) "terminate_apps" (argument_list) "(str_end + 1,0)" (() "(" (binary_expression) "str_end + 1" (identifier) "str_end" (+) "+" (number_literal) "1" (,) "," (number_literal) "0" ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) "system("killall -q capture_app");" (call_expression) "system("killall -q capture_app")" (identifier) "system" (argument_list) "("killall -q capture_app")" (() "(" (string_literal) ""killall -q capture_app"" (") """ (string_content) "killall -q capture_app" (") """ ()) ")" (;) ";" (if_statement) "if(argv[1] != NULL && ((strcmp(argv[1], "eventlog") == 0)||(strcmp(argv[1], "powercycle") == 0)))\n terminate_apps("Asm.bin",1);\n else \n terminate_apps("Asm.bin",0);" (if) "if" (parenthesized_expression) "(argv[1] != NULL && ((strcmp(argv[1], "eventlog") == 0)||(strcmp(argv[1], "powercycle") == 0)))" (() "(" (binary_expression) "argv[1] != NULL && ((strcmp(argv[1], "eventlog") == 0)||(strcmp(argv[1], "powercycle") == 0))" (binary_expression) "argv[1] != NULL" (subscript_expression) "argv[1]" (identifier) "argv" ([) "[" (number_literal) "1" (]) "]" (!=) "!=" (null) "NULL" (NULL) "NULL" (&&) "&&" (parenthesized_expression) "((strcmp(argv[1], "eventlog") == 0)||(strcmp(argv[1], "powercycle") == 0))" (() "(" (binary_expression) "(strcmp(argv[1], "eventlog") == 0)||(strcmp(argv[1], "powercycle") == 0)" (parenthesized_expression) "(strcmp(argv[1], "eventlog") == 0)" (() "(" (binary_expression) "strcmp(argv[1], "eventlog") == 0" (call_expression) "strcmp(argv[1], "eventlog")" (identifier) "strcmp" (argument_list) "(argv[1], "eventlog")" (() "(" (subscript_expression) "argv[1]" (identifier) "argv" ([) "[" (number_literal) "1" (]) "]" (,) "," (string_literal) ""eventlog"" (") """ (string_content) "eventlog" (") """ ()) ")" (==) "==" (number_literal) "0" ()) ")" (||) "||" (parenthesized_expression) "(strcmp(argv[1], "powercycle") == 0)" (() "(" (binary_expression) "strcmp(argv[1], "powercycle") == 0" (call_expression) "strcmp(argv[1], "powercycle")" (identifier) "strcmp" (argument_list) "(argv[1], "powercycle")" (() "(" (subscript_expression) "argv[1]" (identifier) "argv" ([) "[" (number_literal) "1" (]) "]" (,) "," (string_literal) ""powercycle"" (") """ (string_content) "powercycle" (") """ ()) ")" (==) "==" (number_literal) "0" ()) ")" ()) ")" ()) ")" (expression_statement) "terminate_apps("Asm.bin",1);" (call_expression) "terminate_apps("Asm.bin",1)" (identifier) "terminate_apps" (argument_list) "("Asm.bin",1)" (() "(" (string_literal) ""Asm.bin"" (") """ (string_content) "Asm.bin" (") """ (,) "," (number_literal) "1" ()) ")" (;) ";" (else_clause) "else \n terminate_apps("Asm.bin",0);" (else) "else" (expression_statement) "terminate_apps("Asm.bin",0);" (call_expression) "terminate_apps("Asm.bin",0)" (identifier) "terminate_apps" (argument_list) "("Asm.bin",0)" (() "(" (string_literal) ""Asm.bin"" (") """ (string_content) "Asm.bin" (") """ (,) "," (number_literal) "0" ()) ")" (;) ";" (if_statement) "if(LcmKillSts == 1)\n terminate_apps("lcmd",0);" (if) "if" (parenthesized_expression) "(LcmKillSts == 1)" (() "(" (binary_expression) "LcmKillSts == 1" (identifier) "LcmKillSts" (==) "==" (number_literal) "1" ()) ")" (expression_statement) "terminate_apps("lcmd",0);" (call_expression) "terminate_apps("lcmd",0)" (identifier) "terminate_apps" (argument_list) "("lcmd",0)" (() "(" (string_literal) ""lcmd"" (") """ (string_content) "lcmd" (") """ (,) "," (number_literal) "0" ()) ")" (;) ";" (expression_statement) "terminate_apps("eth_app",0);" (call_expression) "terminate_apps("eth_app",0)" (identifier) "terminate_apps" (argument_list) "("eth_app",0)" (() "(" (string_literal) ""eth_app"" (") """ (string_content) "eth_app" (") """ (,) "," (number_literal) "0" ()) ")" (;) ";" (expression_statement) "terminate_apps("auto_off_load",0);" (call_expression) "terminate_apps("auto_off_load",0)" (identifier) "terminate_apps" (argument_list) "("auto_off_load",0)" (() "(" (string_literal) ""auto_off_load"" (") """ (string_content) "auto_off_load" (") """ (,) "," (number_literal) "0" ()) ")" (;) ";" (expression_statement) "terminate_apps("hbrtc",0);" (call_expression) "terminate_apps("hbrtc",0)" (identifier) "terminate_apps" (argument_list) "("hbrtc",0)" (() "(" (string_literal) ""hbrtc"" (") """ (string_content) "hbrtc" (") """ (,) "," (number_literal) "0" ()) ")" (;) ";" (expression_statement) "terminate_apps("capture_app",0);" (call_expression) "terminate_apps("capture_app",0)" (identifier) "terminate_apps" (argument_list) "("capture_app",0)" (() "(" (string_literal) ""capture_app"" (") """ (string_content) "capture_app" (") """ (,) "," (number_literal) "0" ()) ")" (;) ";" (expression_statement) "terminate_apps("usbd",0);" (call_expression) "terminate_apps("usbd",0)" (identifier) "terminate_apps" (argument_list) "("usbd",0)" (() "(" (string_literal) ""usbd"" (") """ (string_content) "usbd" (") """ (,) "," (number_literal) "0" ()) ")" (;) ";" (expression_statement) "system("rm -f /tmp/udp_*");" (call_expression) "system("rm -f /tmp/udp_*")" (identifier) "system" (argument_list) "("rm -f /tmp/udp_*")" (() "(" (string_literal) ""rm -f /tmp/udp_*"" (") """ (string_content) "rm -f /tmp/udp_*" (") """ ()) ")" (;) ";" (expression_statement) "terminate_apps("application",0);" (call_expression) "terminate_apps("application",0)" (identifier) "terminate_apps" (argument_list) "("application",0)" (() "(" (string_literal) ""application"" (") """ (string_content) "application" (") """ (,) "," (number_literal) "0" ()) ")" (;) ";" (if_statement) "if(argv[1] != NULL && ((strcmp(argv[1], "eventlog") == 0)||(strcmp(argv[1], "powercycle") == 0))) \n {\n syslog(LOG_INFO,"APHALT interrupt IGN_OFF\n");\n syslog(LOG_INFO,"ST,\t Quiet,\n");\n syslog(LOG_INFO,"RM,\t Unmounted,\n");\n system("/usr/local/bin/system_event_log");\n system("nohup umount /tmp/usb > /dev/null");\n system("nohup umount /dev/sda1 > /dev/null");\n system("rm -f /tmp/SystemEvents.log");\n system("rm -f /tmp/first_time.txt");\n /* to resume the transmission if the ignition is ON again before power cut after ignition-OFF */\n if(strcmp(argv[1], "powercycle") != 0){\n sleep(16);\n system("/usr/local/bin/application < /var/config > /dev/null");\n }\n } else {\n syslog(LOG_INFO,"ST,\t Halt,\n");\n if(UmntSts == 1)\n { \n syslog(LOG_INFO,"RM,\t Unmounted,\n");\n system("nohup umount /tmp/usb > /dev/null");\n system("nohup umount /dev/sda1 2> /dev/null");\n } \n }" (if) "if" (parenthesized_expression) "(argv[1] != NULL && ((strcmp(argv[1], "eventlog") == 0)||(strcmp(argv[1], "powercycle") == 0)))" (() "(" (binary_expression) "argv[1] != NULL && ((strcmp(argv[1], "eventlog") == 0)||(strcmp(argv[1], "powercycle") == 0))" (binary_expression) "argv[1] != NULL" (subscript_expression) "argv[1]" (identifier) "argv" ([) "[" (number_literal) "1" (]) "]" (!=) "!=" (null) "NULL" (NULL) "NULL" (&&) "&&" (parenthesized_expression) "((strcmp(argv[1], "eventlog") == 0)||(strcmp(argv[1], "powercycle") == 0))" (() "(" (binary_expression) "(strcmp(argv[1], "eventlog") == 0)||(strcmp(argv[1], "powercycle") == 0)" (parenthesized_expression) "(strcmp(argv[1], "eventlog") == 0)" (() "(" (binary_expression) "strcmp(argv[1], "eventlog") == 0" (call_expression) "strcmp(argv[1], "eventlog")" (identifier) "strcmp" (argument_list) "(argv[1], "eventlog")" (() "(" (subscript_expression) "argv[1]" (identifier) "argv" ([) "[" (number_literal) "1" (]) "]" (,) "," (string_literal) ""eventlog"" (") """ (string_content) "eventlog" (") """ ()) ")" (==) "==" (number_literal) "0" ()) ")" (||) "||" (parenthesized_expression) "(strcmp(argv[1], "powercycle") == 0)" (() "(" (binary_expression) "strcmp(argv[1], "powercycle") == 0" (call_expression) "strcmp(argv[1], "powercycle")" (identifier) "strcmp" (argument_list) "(argv[1], "powercycle")" (() "(" (subscript_expression) "argv[1]" (identifier) "argv" ([) "[" (number_literal) "1" (]) "]" (,) "," (string_literal) ""powercycle"" (") """ (string_content) "powercycle" (") """ ()) ")" (==) "==" (number_literal) "0" ()) ")" ()) ")" ()) ")" (compound_statement) "{\n syslog(LOG_INFO,"APHALT interrupt IGN_OFF\n");\n syslog(LOG_INFO,"ST,\t Quiet,\n");\n syslog(LOG_INFO,"RM,\t Unmounted,\n");\n system("/usr/local/bin/system_event_log");\n system("nohup umount /tmp/usb > /dev/null");\n system("nohup umount /dev/sda1 > /dev/null");\n system("rm -f /tmp/SystemEvents.log");\n system("rm -f /tmp/first_time.txt");\n /* to resume the transmission if the ignition is ON again before power cut after ignition-OFF */\n if(strcmp(argv[1], "powercycle") != 0){\n sleep(16);\n system("/usr/local/bin/application < /var/config > /dev/null");\n }\n }" ({) "{" (expression_statement) "syslog(LOG_INFO,"APHALT interrupt IGN_OFF\n");" (call_expression) "syslog(LOG_INFO,"APHALT interrupt IGN_OFF\n")" (identifier) "syslog" (argument_list) "(LOG_INFO,"APHALT interrupt IGN_OFF\n")" (() "(" (identifier) "LOG_INFO" (,) "," (string_literal) ""APHALT interrupt IGN_OFF\n"" (") """ (string_content) "APHALT interrupt IGN_OFF" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "syslog(LOG_INFO,"ST,\t Quiet,\n");" (call_expression) "syslog(LOG_INFO,"ST,\t Quiet,\n")" (identifier) "syslog" (argument_list) "(LOG_INFO,"ST,\t Quiet,\n")" (() "(" (identifier) "LOG_INFO" (,) "," (string_literal) ""ST,\t Quiet,\n"" (") """ (string_content) "ST," (escape_sequence) "\t" (string_content) " Quiet," (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "syslog(LOG_INFO,"RM,\t Unmounted,\n");" (call_expression) "syslog(LOG_INFO,"RM,\t Unmounted,\n")" (identifier) "syslog" (argument_list) "(LOG_INFO,"RM,\t Unmounted,\n")" (() "(" (identifier) "LOG_INFO" (,) "," (string_literal) ""RM,\t Unmounted,\n"" (") """ (string_content) "RM," (escape_sequence) "\t" (string_content) " Unmounted," (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "system("/usr/local/bin/system_event_log");" (call_expression) "system("/usr/local/bin/system_event_log")" (identifier) "system" (argument_list) "("/usr/local/bin/system_event_log")" (() "(" (string_literal) ""/usr/local/bin/system_event_log"" (") """ (string_content) "/usr/local/bin/system_event_log" (") """ ()) ")" (;) ";" (expression_statement) "system("nohup umount /tmp/usb > /dev/null");" (call_expression) "system("nohup umount /tmp/usb > /dev/null")" (identifier) "system" (argument_list) "("nohup umount /tmp/usb > /dev/null")" (() "(" (string_literal) ""nohup umount /tmp/usb > /dev/null"" (") """ (string_content) "nohup umount /tmp/usb > /dev/null" (") """ ()) ")" (;) ";" (expression_statement) "system("nohup umount /dev/sda1 > /dev/null");" (call_expression) "system("nohup umount /dev/sda1 > /dev/null")" (identifier) "system" (argument_list) "("nohup umount /dev/sda1 > /dev/null")" (() "(" (string_literal) ""nohup umount /dev/sda1 > /dev/null"" (") """ (string_content) "nohup umount /dev/sda1 > /dev/null" (") """ ()) ")" (;) ";" (expression_statement) "system("rm -f /tmp/SystemEvents.log");" (call_expression) "system("rm -f /tmp/SystemEvents.log")" (identifier) "system" (argument_list) "("rm -f /tmp/SystemEvents.log")" (() "(" (string_literal) ""rm -f /tmp/SystemEvents.log"" (") """ (string_content) "rm -f /tmp/SystemEvents.log" (") """ ()) ")" (;) ";" (expression_statement) "system("rm -f /tmp/first_time.txt");" (call_expression) "system("rm -f /tmp/first_time.txt")" (identifier) "system" (argument_list) "("rm -f /tmp/first_time.txt")" (() "(" (string_literal) ""rm -f /tmp/first_time.txt"" (") """ (string_content) "rm -f /tmp/first_time.txt" (") """ ()) ")" (;) ";" (comment) "/* to resume the transmission if the ignition is ON again before power cut after ignition-OFF */" (if_statement) "if(strcmp(argv[1], "powercycle") != 0){\n sleep(16);\n system("/usr/local/bin/application < /var/config > /dev/null");\n }" (if) "if" (parenthesized_expression) "(strcmp(argv[1], "powercycle") != 0)" (() "(" (binary_expression) "strcmp(argv[1], "powercycle") != 0" (call_expression) "strcmp(argv[1], "powercycle")" (identifier) "strcmp" (argument_list) "(argv[1], "powercycle")" (() "(" (subscript_expression) "argv[1]" (identifier) "argv" ([) "[" (number_literal) "1" (]) "]" (,) "," (string_literal) ""powercycle"" (") """ (string_content) "powercycle" (") """ ()) ")" (!=) "!=" (number_literal) "0" ()) ")" (compound_statement) "{\n sleep(16);\n system("/usr/local/bin/application < /var/config > /dev/null");\n }" ({) "{" (expression_statement) "sleep(16);" (call_expression) "sleep(16)" (identifier) "sleep" (argument_list) "(16)" (() "(" (number_literal) "16" ()) ")" (;) ";" (expression_statement) "system("/usr/local/bin/application < /var/config > /dev/null");" (call_expression) "system("/usr/local/bin/application < /var/config > /dev/null")" (identifier) "system" (argument_list) "("/usr/local/bin/application < /var/config > /dev/null")" (() "(" (string_literal) ""/usr/local/bin/application < /var/config > /dev/null"" (") """ (string_content) "/usr/local/bin/application < /var/config > /dev/null" (") """ ()) ")" (;) ";" (}) "}" (}) "}" (else_clause) "else {\n syslog(LOG_INFO,"ST,\t Halt,\n");\n if(UmntSts == 1)\n { \n syslog(LOG_INFO,"RM,\t Unmounted,\n");\n system("nohup umount /tmp/usb > /dev/null");\n system("nohup umount /dev/sda1 2> /dev/null");\n } \n }" (else) "else" (compound_statement) "{\n syslog(LOG_INFO,"ST,\t Halt,\n");\n if(UmntSts == 1)\n { \n syslog(LOG_INFO,"RM,\t Unmounted,\n");\n system("nohup umount /tmp/usb > /dev/null");\n system("nohup umount /dev/sda1 2> /dev/null");\n } \n }" ({) "{" (expression_statement) "syslog(LOG_INFO,"ST,\t Halt,\n");" (call_expression) "syslog(LOG_INFO,"ST,\t Halt,\n")" (identifier) "syslog" (argument_list) "(LOG_INFO,"ST,\t Halt,\n")" (() "(" (identifier) "LOG_INFO" (,) "," (string_literal) ""ST,\t Halt,\n"" (") """ (string_content) "ST," (escape_sequence) "\t" (string_content) " Halt," (escape_sequence) "\n" (") """ ()) ")" (;) ";" (if_statement) "if(UmntSts == 1)\n { \n syslog(LOG_INFO,"RM,\t Unmounted,\n");\n system("nohup umount /tmp/usb > /dev/null");\n system("nohup umount /dev/sda1 2> /dev/null");\n }" (if) "if" (parenthesized_expression) "(UmntSts == 1)" (() "(" (binary_expression) "UmntSts == 1" (identifier) "UmntSts" (==) "==" (number_literal) "1" ()) ")" (compound_statement) "{ \n syslog(LOG_INFO,"RM,\t Unmounted,\n");\n system("nohup umount /tmp/usb > /dev/null");\n system("nohup umount /dev/sda1 2> /dev/null");\n }" ({) "{" (expression_statement) "syslog(LOG_INFO,"RM,\t Unmounted,\n");" (call_expression) "syslog(LOG_INFO,"RM,\t Unmounted,\n")" (identifier) "syslog" (argument_list) "(LOG_INFO,"RM,\t Unmounted,\n")" (() "(" (identifier) "LOG_INFO" (,) "," (string_literal) ""RM,\t Unmounted,\n"" (") """ (string_content) "RM," (escape_sequence) "\t" (string_content) " Unmounted," (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "system("nohup umount /tmp/usb > /dev/null");" (call_expression) "system("nohup umount /tmp/usb > /dev/null")" (identifier) "system" (argument_list) "("nohup umount /tmp/usb > /dev/null")" (() "(" (string_literal) ""nohup umount /tmp/usb > /dev/null"" (") """ (string_content) "nohup umount /tmp/usb > /dev/null" (") """ ()) ")" (;) ";" (expression_statement) "system("nohup umount /dev/sda1 2> /dev/null");" (call_expression) "system("nohup umount /dev/sda1 2> /dev/null")" (identifier) "system" (argument_list) "("nohup umount /dev/sda1 2> /dev/null")" (() "(" (string_literal) ""nohup umount /dev/sda1 2> /dev/null"" (") """ (string_content) "nohup umount /dev/sda1 2> /dev/null" (") """ ()) ")" (;) ";" (}) "}" (}) "}" (preproc_ifdef) "#ifdef SDK_NEW\n system("/usr/bin/panel_led WPS_OFF > /dev/null 2>&1 ");\n#endif" (#ifdef) "#ifdef" (identifier) "SDK_NEW" (expression_statement) "system("/usr/bin/panel_led WPS_OFF > /dev/null 2>&1 ");" (call_expression) "system("/usr/bin/panel_led WPS_OFF > /dev/null 2>&1 ")" (identifier) "system" (argument_list) "("/usr/bin/panel_led WPS_OFF > /dev/null 2>&1 ")" (() "(" (string_literal) ""/usr/bin/panel_led WPS_OFF > /dev/null 2>&1 "" (") """ (string_content) "/usr/bin/panel_led WPS_OFF > /dev/null 2>&1 " (") """ ()) ")" (;) ";" (#endif) "#endif" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
1,344
0
{"language": "c", "success": true, "metadata": {"lines": 135, "avg_line_length": 30.24, "nodes": 691, "errors": 0, "source_hash": "fa08e9cb7ce4c9c3e56f872ecd77de72ac487df408c90392ad64bc0091d07613", "categorized_nodes": 493}, "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": 9}, "end_point": {"row": 0, "column": 19}}, {"id": 3, "type": "preproc_include", "text": "#include <stdio.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": "<stdio.h>", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 18}}, {"id": 6, "type": "preproc_include", "text": "#include <stdlib.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": "<stdlib.h>", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 19}}, {"id": 9, "type": "preproc_include", "text": "#include <syslog.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": "<syslog.h>", "parent": 9, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 19}}, {"id": 12, "type": "preproc_include", "text": "#include <string.h>\n", "parent": null, "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": "<string.h>", "parent": 12, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 19}}, {"id": 15, "type": "preproc_include", "text": "#include <signal.h>\n", "parent": null, "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": "<signal.h>", "parent": 15, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 19}}, {"id": 18, "type": "preproc_include", "text": "#include <stdint.h>\n", "parent": null, "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": "system_lib_string", "text": "<stdint.h>", "parent": 18, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 19}}, {"id": 21, "type": "preproc_include", "text": "#include <sys/wait.h>\n", "parent": null, "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": "system_lib_string", "text": "<sys/wait.h>", "parent": 21, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 21}}, {"id": 24, "type": "preproc_ifdef", "text": "#ifdef SDK_NEW\n#define WPS_OFF 8\n#endif", "parent": null, "children": [25, 26, 27, 31], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 10, "column": 6}}, {"id": 25, "type": "#ifdef", "text": "#ifdef", "parent": 24, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 6}}, {"id": 26, "type": "identifier", "text": "SDK_NEW", "parent": 24, "children": [], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 14}}, {"id": 27, "type": "preproc_def", "text": "#define WPS_OFF 8\n", "parent": 24, "children": [28, 29, 30], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 28, "type": "#define", "text": "#define", "parent": 27, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 29, "type": "identifier", "text": "WPS_OFF", "parent": 27, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 15}}, {"id": 30, "type": "preproc_arg", "text": "8", "parent": 27, "children": [], "start_point": {"row": 9, "column": 16}, "end_point": {"row": 9, "column": 17}}, {"id": 31, "type": "#endif", "text": "#endif", "parent": 24, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 6}}, {"id": 32, "type": "function_definition", "text": "void terminate_apps(char *appname,int forcekill)\n{\n int ret=-1;\n uint8_t first_time = 0;\n char cmd[64]=\"\";\n \n if(strcmp(appname,\"\")) {\n\tif(forcekill == 0)\n\t sprintf(cmd, \"killall -q %s\",appname);\t\n\telse\n\t sprintf(cmd, \"killall -q -9 %s\",appname);\n ret=system(cmd);\n \t}\n if((WIFEXITED(ret)) && (WEXITSTATUS(ret) == 0))\n {\n\tsprintf(cmd, \"pgrep -l -x %s > /dev/null\",appname);\n while(1)\n {\n ret = system(cmd);\n \t if((WIFEXITED(ret)) && (WEXITSTATUS(ret) != 0))\n {\n\t printf(\" %s Succesfully Terminated \\n\",appname);\n break;\n }\n else\n {\n if(first_time == 0)\n {\n\t\t if(strcmp(appname,\"usbd\") == 0){\n\t\t\tprintf(\"Please wait while terminating %s [Termination can take time if USB-PURGE is going on]\\n\",appname);\n\t\t }\n\t\t else\n\t\t\tprintf(\"Please wait while terminating %s \\n\",appname);\n first_time = 1;\n }\n }\n usleep(100000);\n }\n }\n}", "parent": null, "children": [33, 34], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 51, "column": 1}}, {"id": 33, "type": "primitive_type", "text": "void", "parent": 32, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 4}}, {"id": 34, "type": "function_declarator", "text": "terminate_apps(char *appname,int forcekill)", "parent": 32, "children": [35, 36], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 48}}, {"id": 35, "type": "identifier", "text": "terminate_apps", "parent": 34, "children": [], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 19}}, {"id": 36, "type": "parameter_list", "text": "(char *appname,int forcekill)", "parent": 34, "children": [37, 42], "start_point": {"row": 12, "column": 19}, "end_point": {"row": 12, "column": 48}}, {"id": 37, "type": "parameter_declaration", "text": "char *appname", "parent": 36, "children": [38, 39], "start_point": {"row": 12, "column": 20}, "end_point": {"row": 12, "column": 33}}, {"id": 38, "type": "primitive_type", "text": "char", "parent": 37, "children": [], "start_point": {"row": 12, "column": 20}, "end_point": {"row": 12, "column": 24}}, {"id": 39, "type": "pointer_declarator", "text": "*appname", "parent": 37, "children": [40, 41], "start_point": {"row": 12, "column": 25}, "end_point": {"row": 12, "column": 33}}, {"id": 40, "type": "*", "text": "*", "parent": 39, "children": [], "start_point": {"row": 12, "column": 25}, "end_point": {"row": 12, "column": 26}}, {"id": 41, "type": "identifier", "text": "appname", "parent": 39, "children": [], "start_point": {"row": 12, "column": 26}, "end_point": {"row": 12, "column": 33}}, {"id": 42, "type": "parameter_declaration", "text": "int forcekill", "parent": 36, "children": [43, 44], "start_point": {"row": 12, "column": 34}, "end_point": {"row": 12, "column": 47}}, {"id": 43, "type": "primitive_type", "text": "int", "parent": 42, "children": [], "start_point": {"row": 12, "column": 34}, "end_point": {"row": 12, "column": 37}}, {"id": 44, "type": "identifier", "text": "forcekill", "parent": 42, "children": [], "start_point": {"row": 12, "column": 38}, "end_point": {"row": 12, "column": 47}}, {"id": 45, "type": "declaration", "text": "int ret=-1;", "parent": 32, "children": [46, 47], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 15}}, {"id": 46, "type": "primitive_type", "text": "int", "parent": 45, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 7}}, {"id": 47, "type": "init_declarator", "text": "ret=-1", "parent": 45, "children": [48, 49, 50], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 14}}, {"id": 48, "type": "identifier", "text": "ret", "parent": 47, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 11}}, {"id": 49, "type": "=", "text": "=", "parent": 47, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 12}}, {"id": 50, "type": "number_literal", "text": "-1", "parent": 47, "children": [], "start_point": {"row": 14, "column": 12}, "end_point": {"row": 14, "column": 14}}, {"id": 51, "type": "declaration", "text": "uint8_t first_time = 0;", "parent": 32, "children": [52, 53], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 27}}, {"id": 52, "type": "primitive_type", "text": "uint8_t", "parent": 51, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 11}}, {"id": 53, "type": "init_declarator", "text": "first_time = 0", "parent": 51, "children": [54, 55, 56], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 26}}, {"id": 54, "type": "identifier", "text": "first_time", "parent": 53, "children": [], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 22}}, {"id": 55, "type": "=", "text": "=", "parent": 53, "children": [], "start_point": {"row": 15, "column": 23}, "end_point": {"row": 15, "column": 24}}, {"id": 56, "type": "number_literal", "text": "0", "parent": 53, "children": [], "start_point": {"row": 15, "column": 25}, "end_point": {"row": 15, "column": 26}}, {"id": 57, "type": "declaration", "text": "char cmd[64]=\"\";", "parent": 32, "children": [58, 59], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 20}}, {"id": 58, "type": "primitive_type", "text": "char", "parent": 57, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 8}}, {"id": 59, "type": "init_declarator", "text": "cmd[64]=\"\"", "parent": 57, "children": [60, 63, 64], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 19}}, {"id": 60, "type": "array_declarator", "text": "cmd[64]", "parent": 59, "children": [61, 62], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 16}}, {"id": 61, "type": "identifier", "text": "cmd", "parent": 60, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 12}}, {"id": 62, "type": "number_literal", "text": "64", "parent": 60, "children": [], "start_point": {"row": 16, "column": 13}, "end_point": {"row": 16, "column": 15}}, {"id": 63, "type": "=", "text": "=", "parent": 59, "children": [], "start_point": {"row": 16, "column": 16}, "end_point": {"row": 16, "column": 17}}, {"id": 64, "type": "string_literal", "text": "\"\"", "parent": 59, "children": [], "start_point": {"row": 16, "column": 17}, "end_point": {"row": 16, "column": 19}}, {"id": 65, "type": "if_statement", "text": "if(strcmp(appname,\"\")) {\n\tif(forcekill == 0)\n\t sprintf(cmd, \"killall -q %s\",appname);\t\n\telse\n\t sprintf(cmd, \"killall -q -9 %s\",appname);\n ret=system(cmd);\n \t}", "parent": 32, "children": [66], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 24, "column": 6}}, {"id": 66, "type": "parenthesized_expression", "text": "(strcmp(appname,\"\"))", "parent": 65, "children": [67], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 26}}, {"id": 67, "type": "call_expression", "text": "strcmp(appname,\"\")", "parent": 66, "children": [68, 69], "start_point": {"row": 18, "column": 7}, "end_point": {"row": 18, "column": 25}}, {"id": 68, "type": "identifier", "text": "strcmp", "parent": 67, "children": [], "start_point": {"row": 18, "column": 7}, "end_point": {"row": 18, "column": 13}}, {"id": 69, "type": "argument_list", "text": "(appname,\"\")", "parent": 67, "children": [70, 71], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 25}}, {"id": 70, "type": "identifier", "text": "appname", "parent": 69, "children": [], "start_point": {"row": 18, "column": 14}, "end_point": {"row": 18, "column": 21}}, {"id": 71, "type": "string_literal", "text": "\"\"", "parent": 69, "children": [], "start_point": {"row": 18, "column": 22}, "end_point": {"row": 18, "column": 24}}, {"id": 72, "type": "if_statement", "text": "if(forcekill == 0)\n\t sprintf(cmd, \"killall -q %s\",appname);\t\n\telse\n\t sprintf(cmd, \"killall -q -9 %s\",appname);", "parent": 65, "children": [73, 84], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 22, "column": 46}}, {"id": 73, "type": "parenthesized_expression", "text": "(forcekill == 0)", "parent": 72, "children": [74], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 19}}, {"id": 74, "type": "binary_expression", "text": "forcekill == 0", "parent": 73, "children": [75, 76, 77], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 18}}, {"id": 75, "type": "identifier", "text": "forcekill", "parent": 74, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 13}}, {"id": 76, "type": "==", "text": "==", "parent": 74, "children": [], "start_point": {"row": 19, "column": 14}, "end_point": {"row": 19, "column": 16}}, {"id": 77, "type": "number_literal", "text": "0", "parent": 74, "children": [], "start_point": {"row": 19, "column": 17}, "end_point": {"row": 19, "column": 18}}, {"id": 78, "type": "call_expression", "text": "sprintf(cmd, \"killall -q %s\",appname)", "parent": 72, "children": [79, 80], "start_point": {"row": 20, "column": 5}, "end_point": {"row": 20, "column": 43}}, {"id": 79, "type": "identifier", "text": "sprintf", "parent": 78, "children": [], "start_point": {"row": 20, "column": 5}, "end_point": {"row": 20, "column": 12}}, {"id": 80, "type": "argument_list", "text": "(cmd, \"killall -q %s\",appname)", "parent": 78, "children": [81, 82, 83], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 43}}, {"id": 81, "type": "identifier", "text": "cmd", "parent": 80, "children": [], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 16}}, {"id": 82, "type": "string_literal", "text": "\"killall -q %s\"", "parent": 80, "children": [], "start_point": {"row": 20, "column": 18}, "end_point": {"row": 20, "column": 34}}, {"id": 83, "type": "identifier", "text": "appname", "parent": 80, "children": [], "start_point": {"row": 20, "column": 35}, "end_point": {"row": 20, "column": 42}}, {"id": 84, "type": "else_clause", "text": "else\n\t sprintf(cmd, \"killall -q -9 %s\",appname);", "parent": 72, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 22, "column": 46}}, {"id": 85, "type": "call_expression", "text": "sprintf(cmd, \"killall -q -9 %s\",appname)", "parent": 84, "children": [86, 87], "start_point": {"row": 22, "column": 5}, "end_point": {"row": 22, "column": 45}}, {"id": 86, "type": "identifier", "text": "sprintf", "parent": 85, "children": [], "start_point": {"row": 22, "column": 5}, "end_point": {"row": 22, "column": 12}}, {"id": 87, "type": "argument_list", "text": "(cmd, \"killall -q -9 %s\",appname)", "parent": 85, "children": [88, 89, 90], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 45}}, {"id": 88, "type": "identifier", "text": "cmd", "parent": 87, "children": [], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 16}}, {"id": 89, "type": "string_literal", "text": "\"killall -q -9 %s\"", "parent": 87, "children": [], "start_point": {"row": 22, "column": 18}, "end_point": {"row": 22, "column": 36}}, {"id": 90, "type": "identifier", "text": "appname", "parent": 87, "children": [], "start_point": {"row": 22, "column": 37}, "end_point": {"row": 22, "column": 44}}, {"id": 91, "type": "assignment_expression", "text": "ret=system(cmd)", "parent": 65, "children": [92, 93, 94], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 23}}, {"id": 92, "type": "identifier", "text": "ret", "parent": 91, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 11}}, {"id": 93, "type": "=", "text": "=", "parent": 91, "children": [], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 12}}, {"id": 94, "type": "call_expression", "text": "system(cmd)", "parent": 91, "children": [95, 96], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 23}}, {"id": 95, "type": "identifier", "text": "system", "parent": 94, "children": [], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 18}}, {"id": 96, "type": "argument_list", "text": "(cmd)", "parent": 94, "children": [97], "start_point": {"row": 23, "column": 18}, "end_point": {"row": 23, "column": 23}}, {"id": 97, "type": "identifier", "text": "cmd", "parent": 96, "children": [], "start_point": {"row": 23, "column": 19}, "end_point": {"row": 23, "column": 22}}, {"id": 98, "type": "if_statement", "text": "if((WIFEXITED(ret)) && (WEXITSTATUS(ret) == 0))\n {\n\tsprintf(cmd, \"pgrep -l -x %s > /dev/null\",appname);\n while(1)\n {\n ret = system(cmd);\n \t if((WIFEXITED(ret)) && (WEXITSTATUS(ret) != 0))\n {\n\t printf(\" %s Succesfully Terminated \\n\",appname);\n break;\n }\n else\n {\n if(first_time == 0)\n {\n\t\t if(strcmp(appname,\"usbd\") == 0){\n\t\t\tprintf(\"Please wait while terminating %s [Termination can take time if USB-PURGE is going on]\\n\",appname);\n\t\t }\n\t\t else\n\t\t\tprintf(\"Please wait while terminating %s \\n\",appname);\n first_time = 1;\n }\n }\n usleep(100000);\n }\n }", "parent": 32, "children": [99], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 50, "column": 5}}, {"id": 99, "type": "parenthesized_expression", "text": "((WIFEXITED(ret)) && (WEXITSTATUS(ret) == 0))", "parent": 98, "children": [100], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 51}}, {"id": 100, "type": "binary_expression", "text": "(WIFEXITED(ret)) && (WEXITSTATUS(ret) == 0)", "parent": 99, "children": [101, 106, 107], "start_point": {"row": 25, "column": 7}, "end_point": {"row": 25, "column": 50}}, {"id": 101, "type": "parenthesized_expression", "text": "(WIFEXITED(ret))", "parent": 100, "children": [102], "start_point": {"row": 25, "column": 7}, "end_point": {"row": 25, "column": 23}}, {"id": 102, "type": "call_expression", "text": "WIFEXITED(ret)", "parent": 101, "children": [103, 104], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 22}}, {"id": 103, "type": "identifier", "text": "WIFEXITED", "parent": 102, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 17}}, {"id": 104, "type": "argument_list", "text": "(ret)", "parent": 102, "children": [105], "start_point": {"row": 25, "column": 17}, "end_point": {"row": 25, "column": 22}}, {"id": 105, "type": "identifier", "text": "ret", "parent": 104, "children": [], "start_point": {"row": 25, "column": 18}, "end_point": {"row": 25, "column": 21}}, {"id": 106, "type": "&&", "text": "&&", "parent": 100, "children": [], "start_point": {"row": 25, "column": 24}, "end_point": {"row": 25, "column": 26}}, {"id": 107, "type": "parenthesized_expression", "text": "(WEXITSTATUS(ret) == 0)", "parent": 100, "children": [108], "start_point": {"row": 25, "column": 27}, "end_point": {"row": 25, "column": 50}}, {"id": 108, "type": "binary_expression", "text": "WEXITSTATUS(ret) == 0", "parent": 107, "children": [109, 113, 114], "start_point": {"row": 25, "column": 28}, "end_point": {"row": 25, "column": 49}}, {"id": 109, "type": "call_expression", "text": "WEXITSTATUS(ret)", "parent": 108, "children": [110, 111], "start_point": {"row": 25, "column": 28}, "end_point": {"row": 25, "column": 44}}, {"id": 110, "type": "identifier", "text": "WEXITSTATUS", "parent": 109, "children": [], "start_point": {"row": 25, "column": 28}, "end_point": {"row": 25, "column": 39}}, {"id": 111, "type": "argument_list", "text": "(ret)", "parent": 109, "children": [112], "start_point": {"row": 25, "column": 39}, "end_point": {"row": 25, "column": 44}}, {"id": 112, "type": "identifier", "text": "ret", "parent": 111, "children": [], "start_point": {"row": 25, "column": 40}, "end_point": {"row": 25, "column": 43}}, {"id": 113, "type": "==", "text": "==", "parent": 108, "children": [], "start_point": {"row": 25, "column": 45}, "end_point": {"row": 25, "column": 47}}, {"id": 114, "type": "number_literal", "text": "0", "parent": 108, "children": [], "start_point": {"row": 25, "column": 48}, "end_point": {"row": 25, "column": 49}}, {"id": 115, "type": "call_expression", "text": "sprintf(cmd, \"pgrep -l -x %s > /dev/null\",appname)", "parent": 98, "children": [116, 117], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 51}}, {"id": 116, "type": "identifier", "text": "sprintf", "parent": 115, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 8}}, {"id": 117, "type": "argument_list", "text": "(cmd, \"pgrep -l -x %s > /dev/null\",appname)", "parent": 115, "children": [118, 119, 120], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 51}}, {"id": 118, "type": "identifier", "text": "cmd", "parent": 117, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 12}}, {"id": 119, "type": "string_literal", "text": "\"pgrep -l -x %s > /dev/null\"", "parent": 117, "children": [], "start_point": {"row": 27, "column": 14}, "end_point": {"row": 27, "column": 42}}, {"id": 120, "type": "identifier", "text": "appname", "parent": 117, "children": [], "start_point": {"row": 27, "column": 43}, "end_point": {"row": 27, "column": 50}}, {"id": 121, "type": "while_statement", "text": "while(1)\n {\n ret = system(cmd);\n \t if((WIFEXITED(ret)) && (WEXITSTATUS(ret) != 0))\n {\n\t printf(\" %s Succesfully Terminated \\n\",appname);\n break;\n }\n else\n {\n if(first_time == 0)\n {\n\t\t if(strcmp(appname,\"usbd\") == 0){\n\t\t\tprintf(\"Please wait while terminating %s [Termination can take time if USB-PURGE is going on]\\n\",appname);\n\t\t }\n\t\t else\n\t\t\tprintf(\"Please wait while terminating %s \\n\",appname);\n first_time = 1;\n }\n }\n usleep(100000);\n }", "parent": 98, "children": [122], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 49, "column": 8}}, {"id": 122, "type": "parenthesized_expression", "text": "(1)", "parent": 121, "children": [123], "start_point": {"row": 28, "column": 13}, "end_point": {"row": 28, "column": 16}}, {"id": 123, "type": "number_literal", "text": "1", "parent": 122, "children": [], "start_point": {"row": 28, "column": 14}, "end_point": {"row": 28, "column": 15}}, {"id": 124, "type": "assignment_expression", "text": "ret = system(cmd)", "parent": 121, "children": [125, 126, 127], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 30, "column": 29}}, {"id": 125, "type": "identifier", "text": "ret", "parent": 124, "children": [], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 30, "column": 15}}, {"id": 126, "type": "=", "text": "=", "parent": 124, "children": [], "start_point": {"row": 30, "column": 16}, "end_point": {"row": 30, "column": 17}}, {"id": 127, "type": "call_expression", "text": "system(cmd)", "parent": 124, "children": [128, 129], "start_point": {"row": 30, "column": 18}, "end_point": {"row": 30, "column": 29}}, {"id": 128, "type": "identifier", "text": "system", "parent": 127, "children": [], "start_point": {"row": 30, "column": 18}, "end_point": {"row": 30, "column": 24}}, {"id": 129, "type": "argument_list", "text": "(cmd)", "parent": 127, "children": [130], "start_point": {"row": 30, "column": 24}, "end_point": {"row": 30, "column": 29}}, {"id": 130, "type": "identifier", "text": "cmd", "parent": 129, "children": [], "start_point": {"row": 30, "column": 25}, "end_point": {"row": 30, "column": 28}}, {"id": 131, "type": "if_statement", "text": "if((WIFEXITED(ret)) && (WEXITSTATUS(ret) != 0))\n {\n\t printf(\" %s Succesfully Terminated \\n\",appname);\n break;\n }\n else\n {\n if(first_time == 0)\n {\n\t\t if(strcmp(appname,\"usbd\") == 0){\n\t\t\tprintf(\"Please wait while terminating %s [Termination can take time if USB-PURGE is going on]\\n\",appname);\n\t\t }\n\t\t else\n\t\t\tprintf(\"Please wait while terminating %s \\n\",appname);\n first_time = 1;\n }\n }", "parent": 121, "children": [132, 156], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 47, "column": 13}}, {"id": 132, "type": "parenthesized_expression", "text": "((WIFEXITED(ret)) && (WEXITSTATUS(ret) != 0))", "parent": 131, "children": [133], "start_point": {"row": 31, "column": 11}, "end_point": {"row": 31, "column": 56}}, {"id": 133, "type": "binary_expression", "text": "(WIFEXITED(ret)) && (WEXITSTATUS(ret) != 0)", "parent": 132, "children": [134, 139, 140], "start_point": {"row": 31, "column": 12}, "end_point": {"row": 31, "column": 55}}, {"id": 134, "type": "parenthesized_expression", "text": "(WIFEXITED(ret))", "parent": 133, "children": [135], "start_point": {"row": 31, "column": 12}, "end_point": {"row": 31, "column": 28}}, {"id": 135, "type": "call_expression", "text": "WIFEXITED(ret)", "parent": 134, "children": [136, 137], "start_point": {"row": 31, "column": 13}, "end_point": {"row": 31, "column": 27}}, {"id": 136, "type": "identifier", "text": "WIFEXITED", "parent": 135, "children": [], "start_point": {"row": 31, "column": 13}, "end_point": {"row": 31, "column": 22}}, {"id": 137, "type": "argument_list", "text": "(ret)", "parent": 135, "children": [138], "start_point": {"row": 31, "column": 22}, "end_point": {"row": 31, "column": 27}}, {"id": 138, "type": "identifier", "text": "ret", "parent": 137, "children": [], "start_point": {"row": 31, "column": 23}, "end_point": {"row": 31, "column": 26}}, {"id": 139, "type": "&&", "text": "&&", "parent": 133, "children": [], "start_point": {"row": 31, "column": 29}, "end_point": {"row": 31, "column": 31}}, {"id": 140, "type": "parenthesized_expression", "text": "(WEXITSTATUS(ret) != 0)", "parent": 133, "children": [141], "start_point": {"row": 31, "column": 32}, "end_point": {"row": 31, "column": 55}}, {"id": 141, "type": "binary_expression", "text": "WEXITSTATUS(ret) != 0", "parent": 140, "children": [142, 146, 147], "start_point": {"row": 31, "column": 33}, "end_point": {"row": 31, "column": 54}}, {"id": 142, "type": "call_expression", "text": "WEXITSTATUS(ret)", "parent": 141, "children": [143, 144], "start_point": {"row": 31, "column": 33}, "end_point": {"row": 31, "column": 49}}, {"id": 143, "type": "identifier", "text": "WEXITSTATUS", "parent": 142, "children": [], "start_point": {"row": 31, "column": 33}, "end_point": {"row": 31, "column": 44}}, {"id": 144, "type": "argument_list", "text": "(ret)", "parent": 142, "children": [145], "start_point": {"row": 31, "column": 44}, "end_point": {"row": 31, "column": 49}}, {"id": 145, "type": "identifier", "text": "ret", "parent": 144, "children": [], "start_point": {"row": 31, "column": 45}, "end_point": {"row": 31, "column": 48}}, {"id": 146, "type": "!=", "text": "!=", "parent": 141, "children": [], "start_point": {"row": 31, "column": 50}, "end_point": {"row": 31, "column": 52}}, {"id": 147, "type": "number_literal", "text": "0", "parent": 141, "children": [], "start_point": {"row": 31, "column": 53}, "end_point": {"row": 31, "column": 54}}, {"id": 148, "type": "call_expression", "text": "printf(\" %s Succesfully Terminated \\n\",appname)", "parent": 131, "children": [149, 150], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 56}}, {"id": 149, "type": "identifier", "text": "printf", "parent": 148, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 15}}, {"id": 150, "type": "argument_list", "text": "(\" %s Succesfully Terminated \\n\",appname)", "parent": 148, "children": [151, 153], "start_point": {"row": 33, "column": 15}, "end_point": {"row": 33, "column": 56}}, {"id": 151, "type": "string_literal", "text": "\" %s Succesfully Terminated \\n\"", "parent": 150, "children": [152], "start_point": {"row": 33, "column": 16}, "end_point": {"row": 33, "column": 47}}, {"id": 152, "type": "escape_sequence", "text": "\\n", "parent": 151, "children": [], "start_point": {"row": 33, "column": 44}, "end_point": {"row": 33, "column": 46}}, {"id": 153, "type": "identifier", "text": "appname", "parent": 150, "children": [], "start_point": {"row": 33, "column": 48}, "end_point": {"row": 33, "column": 55}}, {"id": 154, "type": "break_statement", "text": "break;", "parent": 131, "children": [155], "start_point": {"row": 34, "column": 16}, "end_point": {"row": 34, "column": 22}}, {"id": 155, "type": "break", "text": "break", "parent": 154, "children": [], "start_point": {"row": 34, "column": 16}, "end_point": {"row": 34, "column": 21}}, {"id": 156, "type": "else_clause", "text": "else\n {\n if(first_time == 0)\n {\n\t\t if(strcmp(appname,\"usbd\") == 0){\n\t\t\tprintf(\"Please wait while terminating %s [Termination can take time if USB-PURGE is going on]\\n\",appname);\n\t\t }\n\t\t else\n\t\t\tprintf(\"Please wait while terminating %s \\n\",appname);\n first_time = 1;\n }\n }", "parent": 131, "children": [], "start_point": {"row": 36, "column": 12}, "end_point": {"row": 47, "column": 13}}, {"id": 157, "type": "if_statement", "text": "if(first_time == 0)\n {\n\t\t if(strcmp(appname,\"usbd\") == 0){\n\t\t\tprintf(\"Please wait while terminating %s [Termination can take time if USB-PURGE is going on]\\n\",appname);\n\t\t }\n\t\t else\n\t\t\tprintf(\"Please wait while terminating %s \\n\",appname);\n first_time = 1;\n }", "parent": 156, "children": [158], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 46, "column": 17}}, {"id": 158, "type": "parenthesized_expression", "text": "(first_time == 0)", "parent": 157, "children": [159], "start_point": {"row": 38, "column": 18}, "end_point": {"row": 38, "column": 35}}, {"id": 159, "type": "binary_expression", "text": "first_time == 0", "parent": 158, "children": [160, 161, 162], "start_point": {"row": 38, "column": 19}, "end_point": {"row": 38, "column": 34}}, {"id": 160, "type": "identifier", "text": "first_time", "parent": 159, "children": [], "start_point": {"row": 38, "column": 19}, "end_point": {"row": 38, "column": 29}}, {"id": 161, "type": "==", "text": "==", "parent": 159, "children": [], "start_point": {"row": 38, "column": 30}, "end_point": {"row": 38, "column": 32}}, {"id": 162, "type": "number_literal", "text": "0", "parent": 159, "children": [], "start_point": {"row": 38, "column": 33}, "end_point": {"row": 38, "column": 34}}, {"id": 163, "type": "if_statement", "text": "if(strcmp(appname,\"usbd\") == 0){\n\t\t\tprintf(\"Please wait while terminating %s [Termination can take time if USB-PURGE is going on]\\n\",appname);\n\t\t }\n\t\t else\n\t\t\tprintf(\"Please wait while terminating %s \\n\",appname);", "parent": 157, "children": [164, 179], "start_point": {"row": 40, "column": 6}, "end_point": {"row": 44, "column": 57}}, {"id": 164, "type": "parenthesized_expression", "text": "(strcmp(appname,\"usbd\") == 0)", "parent": 163, "children": [165], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 37}}, {"id": 165, "type": "binary_expression", "text": "strcmp(appname,\"usbd\") == 0", "parent": 164, "children": [166, 171, 172], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 36}}, {"id": 166, "type": "call_expression", "text": "strcmp(appname,\"usbd\")", "parent": 165, "children": [167, 168], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 31}}, {"id": 167, "type": "identifier", "text": "strcmp", "parent": 166, "children": [], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 15}}, {"id": 168, "type": "argument_list", "text": "(appname,\"usbd\")", "parent": 166, "children": [169, 170], "start_point": {"row": 40, "column": 15}, "end_point": {"row": 40, "column": 31}}, {"id": 169, "type": "identifier", "text": "appname", "parent": 168, "children": [], "start_point": {"row": 40, "column": 16}, "end_point": {"row": 40, "column": 23}}, {"id": 170, "type": "string_literal", "text": "\"usbd\"", "parent": 168, "children": [], "start_point": {"row": 40, "column": 24}, "end_point": {"row": 40, "column": 30}}, {"id": 171, "type": "==", "text": "==", "parent": 165, "children": [], "start_point": {"row": 40, "column": 32}, "end_point": {"row": 40, "column": 34}}, {"id": 172, "type": "number_literal", "text": "0", "parent": 165, "children": [], "start_point": {"row": 40, "column": 35}, "end_point": {"row": 40, "column": 36}}, {"id": 173, "type": "call_expression", "text": "printf(\"Please wait while terminating %s [Termination can take time if USB-PURGE is going on]\\n\",appname)", "parent": 163, "children": [174, 175], "start_point": {"row": 41, "column": 3}, "end_point": {"row": 41, "column": 108}}, {"id": 174, "type": "identifier", "text": "printf", "parent": 173, "children": [], "start_point": {"row": 41, "column": 3}, "end_point": {"row": 41, "column": 9}}, {"id": 175, "type": "argument_list", "text": "(\"Please wait while terminating %s [Termination can take time if USB-PURGE is going on]\\n\",appname)", "parent": 173, "children": [176, 178], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 108}}, {"id": 176, "type": "string_literal", "text": "\"Please wait while terminating %s [Termination can take time if USB-PURGE is going on]\\n\"", "parent": 175, "children": [177], "start_point": {"row": 41, "column": 10}, "end_point": {"row": 41, "column": 99}}, {"id": 177, "type": "escape_sequence", "text": "\\n", "parent": 176, "children": [], "start_point": {"row": 41, "column": 96}, "end_point": {"row": 41, "column": 98}}, {"id": 178, "type": "identifier", "text": "appname", "parent": 175, "children": [], "start_point": {"row": 41, "column": 100}, "end_point": {"row": 41, "column": 107}}, {"id": 179, "type": "else_clause", "text": "else\n\t\t\tprintf(\"Please wait while terminating %s \\n\",appname);", "parent": 163, "children": [], "start_point": {"row": 43, "column": 6}, "end_point": {"row": 44, "column": 57}}, {"id": 180, "type": "call_expression", "text": "printf(\"Please wait while terminating %s \\n\",appname)", "parent": 179, "children": [181, 182], "start_point": {"row": 44, "column": 3}, "end_point": {"row": 44, "column": 56}}, {"id": 181, "type": "identifier", "text": "printf", "parent": 180, "children": [], "start_point": {"row": 44, "column": 3}, "end_point": {"row": 44, "column": 9}}, {"id": 182, "type": "argument_list", "text": "(\"Please wait while terminating %s \\n\",appname)", "parent": 180, "children": [183, 185], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 56}}, {"id": 183, "type": "string_literal", "text": "\"Please wait while terminating %s \\n\"", "parent": 182, "children": [184], "start_point": {"row": 44, "column": 10}, "end_point": {"row": 44, "column": 47}}, {"id": 184, "type": "escape_sequence", "text": "\\n", "parent": 183, "children": [], "start_point": {"row": 44, "column": 44}, "end_point": {"row": 44, "column": 46}}, {"id": 185, "type": "identifier", "text": "appname", "parent": 182, "children": [], "start_point": {"row": 44, "column": 48}, "end_point": {"row": 44, "column": 55}}, {"id": 186, "type": "assignment_expression", "text": "first_time = 1", "parent": 157, "children": [187, 188, 189], "start_point": {"row": 45, "column": 20}, "end_point": {"row": 45, "column": 34}}, {"id": 187, "type": "identifier", "text": "first_time", "parent": 186, "children": [], "start_point": {"row": 45, "column": 20}, "end_point": {"row": 45, "column": 30}}, {"id": 188, "type": "=", "text": "=", "parent": 186, "children": [], "start_point": {"row": 45, "column": 31}, "end_point": {"row": 45, "column": 32}}, {"id": 189, "type": "number_literal", "text": "1", "parent": 186, "children": [], "start_point": {"row": 45, "column": 33}, "end_point": {"row": 45, "column": 34}}, {"id": 190, "type": "call_expression", "text": "usleep(100000)", "parent": 121, "children": [191, 192], "start_point": {"row": 48, "column": 11}, "end_point": {"row": 48, "column": 25}}, {"id": 191, "type": "identifier", "text": "usleep", "parent": 190, "children": [], "start_point": {"row": 48, "column": 11}, "end_point": {"row": 48, "column": 17}}, {"id": 192, "type": "argument_list", "text": "(100000)", "parent": 190, "children": [193], "start_point": {"row": 48, "column": 17}, "end_point": {"row": 48, "column": 25}}, {"id": 193, "type": "number_literal", "text": "100000", "parent": 192, "children": [], "start_point": {"row": 48, "column": 18}, "end_point": {"row": 48, "column": 24}}, {"id": 194, "type": "function_definition", "text": "int main(int argc,char *argv[])\n{\n int i,status,UmntSts=1,LcmKillSts=1;\n char name[64]={0},tmp_buf[100]={0},appname[20]={0},tmpstr[80]={0};\n char *str_end,cmd[30]=\"pidof quiethandler\";\n FILE *status_ptr,*appname_ptr,*fp;\n uint16_t pid1=0,pid2=0; \n\n fp = popen(cmd,\"r\"); //This test avoids the execution\n if(fp != NULL) //of 2 quiethandlers when user press\n fscanf(fp,\"%hu %hu\",&pid1,&pid2);//sequentially IGNITION OFF, ON \n else\n printf(\"popen failed\\n\");\n \n if(pid1 && pid2)\n {\n close(fp);\n exit(0);\n }\n if(fp)\n close(fp);\n\tif(argc >= 3) \n \t LcmKillSts=atoi(argv[2]);\n\n\tif(argc >= 4) \n\t UmntSts=atoi(argv[3]);\n\n for(i=1; i <= 8; i++) {\n sprintf(name,\"conf_get system:applicationSettings:app%dStatus\",i);\n status_ptr = popen(name,\"r\");\n fgets(tmp_buf,90,status_ptr);\n sscanf(tmp_buf, \"%s %d\", tmpstr, &status);\n pclose(status_ptr);\n if(status)\n {\n sprintf(name,\"conf_get system:applicationSettings:app%dName\",i);\n appname_ptr = popen(name,\"r\");\n fgets(tmp_buf,90,appname_ptr);\n sscanf(tmp_buf, \"%s %s\", tmpstr, appname);\n pclose(appname_ptr);\n str_end = strrchr(appname, '/');\n terminate_apps(str_end + 1,0);\n }\n }\n system(\"killall -q capture_app\");\n if(argv[1] != NULL && ((strcmp(argv[1], \"eventlog\") == 0)||(strcmp(argv[1], \"powercycle\") == 0)))\n\tterminate_apps(\"Asm.bin\",1);\n else\t\n\tterminate_apps(\"Asm.bin\",0);\n if(LcmKillSts == 1)\n \tterminate_apps(\"lcmd\",0);\n terminate_apps(\"eth_app\",0);\n terminate_apps(\"auto_off_load\",0);\n terminate_apps(\"hbrtc\",0);\n terminate_apps(\"capture_app\",0);\n terminate_apps(\"usbd\",0);\n system(\"rm -f /tmp/udp_*\");\n terminate_apps(\"application\",0);\n\n if(argv[1] != NULL && ((strcmp(argv[1], \"eventlog\") == 0)||(strcmp(argv[1], \"powercycle\") == 0)))\t\n {\n syslog(LOG_INFO,\"APHALT interrupt IGN_OFF\\n\");\n syslog(LOG_INFO,\"ST,\\t Quiet,\\n\");\n syslog(LOG_INFO,\"RM,\\t Unmounted,\\n\");\n system(\"/usr/local/bin/system_event_log\");\n system(\"nohup umount /tmp/usb > /dev/null\");\n system(\"nohup umount /dev/sda1 > /dev/null\");\n system(\"rm -f /tmp/SystemEvents.log\");\n system(\"rm -f /tmp/first_time.txt\");\n /* to resume the transmission if the ignition is ON again before power cut after ignition-OFF */\n\tif(strcmp(argv[1], \"powercycle\") != 0){\n sleep(16);\n system(\"/usr/local/bin/application < /var/config > /dev/null\");\n\t}\n } else {\n syslog(LOG_INFO,\"ST,\\t Halt,\\n\");\n if(UmntSts == 1)\n\t{\t\n\t syslog(LOG_INFO,\"RM,\\t Unmounted,\\n\");\n\t system(\"nohup umount /tmp/usb > /dev/null\");\n\t system(\"nohup umount /dev/sda1 2> /dev/null\");\n \t} \n }\n#ifdef SDK_NEW\n system(\"/usr/bin/panel_led WPS_OFF > /dev/null 2>&1 \");\n#endif\n return 0;\n}", "parent": null, "children": [195, 196], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 140, "column": 1}}, {"id": 195, "type": "primitive_type", "text": "int", "parent": 194, "children": [], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 3}}, {"id": 196, "type": "function_declarator", "text": "main(int argc,char *argv[])", "parent": 194, "children": [197, 198], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 31}}, {"id": 197, "type": "identifier", "text": "main", "parent": 196, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 8}}, {"id": 198, "type": "parameter_list", "text": "(int argc,char *argv[])", "parent": 196, "children": [199, 202], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 31}}, {"id": 199, "type": "parameter_declaration", "text": "int argc", "parent": 198, "children": [200, 201], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 17}}, {"id": 200, "type": "primitive_type", "text": "int", "parent": 199, "children": [], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 12}}, {"id": 201, "type": "identifier", "text": "argc", "parent": 199, "children": [], "start_point": {"row": 53, "column": 13}, "end_point": {"row": 53, "column": 17}}, {"id": 202, "type": "parameter_declaration", "text": "char *argv[]", "parent": 198, "children": [203, 204], "start_point": {"row": 53, "column": 18}, "end_point": {"row": 53, "column": 30}}, {"id": 203, "type": "primitive_type", "text": "char", "parent": 202, "children": [], "start_point": {"row": 53, "column": 18}, "end_point": {"row": 53, "column": 22}}, {"id": 204, "type": "pointer_declarator", "text": "*argv[]", "parent": 202, "children": [205, 206], "start_point": {"row": 53, "column": 23}, "end_point": {"row": 53, "column": 30}}, {"id": 205, "type": "*", "text": "*", "parent": 204, "children": [], "start_point": {"row": 53, "column": 23}, "end_point": {"row": 53, "column": 24}}, {"id": 206, "type": "array_declarator", "text": "argv[]", "parent": 204, "children": [207], "start_point": {"row": 53, "column": 24}, "end_point": {"row": 53, "column": 30}}, {"id": 207, "type": "identifier", "text": "argv", "parent": 206, "children": [], "start_point": {"row": 53, "column": 24}, "end_point": {"row": 53, "column": 28}}, {"id": 208, "type": "declaration", "text": "int i,status,UmntSts=1,LcmKillSts=1;", "parent": 194, "children": [209, 210, 211, 212, 216], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 40}}, {"id": 209, "type": "primitive_type", "text": "int", "parent": 208, "children": [], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 7}}, {"id": 210, "type": "identifier", "text": "i", "parent": 208, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 9}}, {"id": 211, "type": "identifier", "text": "status", "parent": 208, "children": [], "start_point": {"row": 55, "column": 10}, "end_point": {"row": 55, "column": 16}}, {"id": 212, "type": "init_declarator", "text": "UmntSts=1", "parent": 208, "children": [213, 214, 215], "start_point": {"row": 55, "column": 17}, "end_point": {"row": 55, "column": 26}}, {"id": 213, "type": "identifier", "text": "UmntSts", "parent": 212, "children": [], "start_point": {"row": 55, "column": 17}, "end_point": {"row": 55, "column": 24}}, {"id": 214, "type": "=", "text": "=", "parent": 212, "children": [], "start_point": {"row": 55, "column": 24}, "end_point": {"row": 55, "column": 25}}, {"id": 215, "type": "number_literal", "text": "1", "parent": 212, "children": [], "start_point": {"row": 55, "column": 25}, "end_point": {"row": 55, "column": 26}}, {"id": 216, "type": "init_declarator", "text": "LcmKillSts=1", "parent": 208, "children": [217, 218, 219], "start_point": {"row": 55, "column": 27}, "end_point": {"row": 55, "column": 39}}, {"id": 217, "type": "identifier", "text": "LcmKillSts", "parent": 216, "children": [], "start_point": {"row": 55, "column": 27}, "end_point": {"row": 55, "column": 37}}, {"id": 218, "type": "=", "text": "=", "parent": 216, "children": [], "start_point": {"row": 55, "column": 37}, "end_point": {"row": 55, "column": 38}}, {"id": 219, "type": "number_literal", "text": "1", "parent": 216, "children": [], "start_point": {"row": 55, "column": 38}, "end_point": {"row": 55, "column": 39}}, {"id": 220, "type": "declaration", "text": "char name[64]={0},tmp_buf[100]={0},appname[20]={0},tmpstr[80]={0};", "parent": 194, "children": [221, 222, 229, 236, 243], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 70}}, {"id": 221, "type": "primitive_type", "text": "char", "parent": 220, "children": [], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 8}}, {"id": 222, "type": "init_declarator", "text": "name[64]={0}", "parent": 220, "children": [223, 226, 227], "start_point": {"row": 56, "column": 9}, "end_point": {"row": 56, "column": 21}}, {"id": 223, "type": "array_declarator", "text": "name[64]", "parent": 222, "children": [224, 225], "start_point": {"row": 56, "column": 9}, "end_point": {"row": 56, "column": 17}}, {"id": 224, "type": "identifier", "text": "name", "parent": 223, "children": [], "start_point": {"row": 56, "column": 9}, "end_point": {"row": 56, "column": 13}}, {"id": 225, "type": "number_literal", "text": "64", "parent": 223, "children": [], "start_point": {"row": 56, "column": 14}, "end_point": {"row": 56, "column": 16}}, {"id": 226, "type": "=", "text": "=", "parent": 222, "children": [], "start_point": {"row": 56, "column": 17}, "end_point": {"row": 56, "column": 18}}, {"id": 227, "type": "initializer_list", "text": "{0}", "parent": 222, "children": [228], "start_point": {"row": 56, "column": 18}, "end_point": {"row": 56, "column": 21}}, {"id": 228, "type": "number_literal", "text": "0", "parent": 227, "children": [], "start_point": {"row": 56, "column": 19}, "end_point": {"row": 56, "column": 20}}, {"id": 229, "type": "init_declarator", "text": "tmp_buf[100]={0}", "parent": 220, "children": [230, 233, 234], "start_point": {"row": 56, "column": 22}, "end_point": {"row": 56, "column": 38}}, {"id": 230, "type": "array_declarator", "text": "tmp_buf[100]", "parent": 229, "children": [231, 232], "start_point": {"row": 56, "column": 22}, "end_point": {"row": 56, "column": 34}}, {"id": 231, "type": "identifier", "text": "tmp_buf", "parent": 230, "children": [], "start_point": {"row": 56, "column": 22}, "end_point": {"row": 56, "column": 29}}, {"id": 232, "type": "number_literal", "text": "100", "parent": 230, "children": [], "start_point": {"row": 56, "column": 30}, "end_point": {"row": 56, "column": 33}}, {"id": 233, "type": "=", "text": "=", "parent": 229, "children": [], "start_point": {"row": 56, "column": 34}, "end_point": {"row": 56, "column": 35}}, {"id": 234, "type": "initializer_list", "text": "{0}", "parent": 229, "children": [235], "start_point": {"row": 56, "column": 35}, "end_point": {"row": 56, "column": 38}}, {"id": 235, "type": "number_literal", "text": "0", "parent": 234, "children": [], "start_point": {"row": 56, "column": 36}, "end_point": {"row": 56, "column": 37}}, {"id": 236, "type": "init_declarator", "text": "appname[20]={0}", "parent": 220, "children": [237, 240, 241], "start_point": {"row": 56, "column": 39}, "end_point": {"row": 56, "column": 54}}, {"id": 237, "type": "array_declarator", "text": "appname[20]", "parent": 236, "children": [238, 239], "start_point": {"row": 56, "column": 39}, "end_point": {"row": 56, "column": 50}}, {"id": 238, "type": "identifier", "text": "appname", "parent": 237, "children": [], "start_point": {"row": 56, "column": 39}, "end_point": {"row": 56, "column": 46}}, {"id": 239, "type": "number_literal", "text": "20", "parent": 237, "children": [], "start_point": {"row": 56, "column": 47}, "end_point": {"row": 56, "column": 49}}, {"id": 240, "type": "=", "text": "=", "parent": 236, "children": [], "start_point": {"row": 56, "column": 50}, "end_point": {"row": 56, "column": 51}}, {"id": 241, "type": "initializer_list", "text": "{0}", "parent": 236, "children": [242], "start_point": {"row": 56, "column": 51}, "end_point": {"row": 56, "column": 54}}, {"id": 242, "type": "number_literal", "text": "0", "parent": 241, "children": [], "start_point": {"row": 56, "column": 52}, "end_point": {"row": 56, "column": 53}}, {"id": 243, "type": "init_declarator", "text": "tmpstr[80]={0}", "parent": 220, "children": [244, 247, 248], "start_point": {"row": 56, "column": 55}, "end_point": {"row": 56, "column": 69}}, {"id": 244, "type": "array_declarator", "text": "tmpstr[80]", "parent": 243, "children": [245, 246], "start_point": {"row": 56, "column": 55}, "end_point": {"row": 56, "column": 65}}, {"id": 245, "type": "identifier", "text": "tmpstr", "parent": 244, "children": [], "start_point": {"row": 56, "column": 55}, "end_point": {"row": 56, "column": 61}}, {"id": 246, "type": "number_literal", "text": "80", "parent": 244, "children": [], "start_point": {"row": 56, "column": 62}, "end_point": {"row": 56, "column": 64}}, {"id": 247, "type": "=", "text": "=", "parent": 243, "children": [], "start_point": {"row": 56, "column": 65}, "end_point": {"row": 56, "column": 66}}, {"id": 248, "type": "initializer_list", "text": "{0}", "parent": 243, "children": [249], "start_point": {"row": 56, "column": 66}, "end_point": {"row": 56, "column": 69}}, {"id": 249, "type": "number_literal", "text": "0", "parent": 248, "children": [], "start_point": {"row": 56, "column": 67}, "end_point": {"row": 56, "column": 68}}, {"id": 250, "type": "declaration", "text": "char *str_end,cmd[30]=\"pidof quiethandler\";", "parent": 194, "children": [251, 252, 255], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 47}}, {"id": 251, "type": "primitive_type", "text": "char", "parent": 250, "children": [], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 8}}, {"id": 252, "type": "pointer_declarator", "text": "*str_end", "parent": 250, "children": [253, 254], "start_point": {"row": 57, "column": 9}, "end_point": {"row": 57, "column": 17}}, {"id": 253, "type": "*", "text": "*", "parent": 252, "children": [], "start_point": {"row": 57, "column": 9}, "end_point": {"row": 57, "column": 10}}, {"id": 254, "type": "identifier", "text": "str_end", "parent": 252, "children": [], "start_point": {"row": 57, "column": 10}, "end_point": {"row": 57, "column": 17}}, {"id": 255, "type": "init_declarator", "text": "cmd[30]=\"pidof quiethandler\"", "parent": 250, "children": [256, 259, 260], "start_point": {"row": 57, "column": 18}, "end_point": {"row": 57, "column": 46}}, {"id": 256, "type": "array_declarator", "text": "cmd[30]", "parent": 255, "children": [257, 258], "start_point": {"row": 57, "column": 18}, "end_point": {"row": 57, "column": 25}}, {"id": 257, "type": "identifier", "text": "cmd", "parent": 256, "children": [], "start_point": {"row": 57, "column": 18}, "end_point": {"row": 57, "column": 21}}, {"id": 258, "type": "number_literal", "text": "30", "parent": 256, "children": [], "start_point": {"row": 57, "column": 22}, "end_point": {"row": 57, "column": 24}}, {"id": 259, "type": "=", "text": "=", "parent": 255, "children": [], "start_point": {"row": 57, "column": 25}, "end_point": {"row": 57, "column": 26}}, {"id": 260, "type": "string_literal", "text": "\"pidof quiethandler\"", "parent": 255, "children": [], "start_point": {"row": 57, "column": 26}, "end_point": {"row": 57, "column": 46}}, {"id": 261, "type": "declaration", "text": "FILE *status_ptr,*appname_ptr,*fp;", "parent": 194, "children": [262, 263, 266, 269], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 38}}, {"id": 262, "type": "type_identifier", "text": "FILE", "parent": 261, "children": [], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 8}}, {"id": 263, "type": "pointer_declarator", "text": "*status_ptr", "parent": 261, "children": [264, 265], "start_point": {"row": 58, "column": 9}, "end_point": {"row": 58, "column": 20}}, {"id": 264, "type": "*", "text": "*", "parent": 263, "children": [], "start_point": {"row": 58, "column": 9}, "end_point": {"row": 58, "column": 10}}, {"id": 265, "type": "identifier", "text": "status_ptr", "parent": 263, "children": [], "start_point": {"row": 58, "column": 10}, "end_point": {"row": 58, "column": 20}}, {"id": 266, "type": "pointer_declarator", "text": "*appname_ptr", "parent": 261, "children": [267, 268], "start_point": {"row": 58, "column": 21}, "end_point": {"row": 58, "column": 33}}, {"id": 267, "type": "*", "text": "*", "parent": 266, "children": [], "start_point": {"row": 58, "column": 21}, "end_point": {"row": 58, "column": 22}}, {"id": 268, "type": "identifier", "text": "appname_ptr", "parent": 266, "children": [], "start_point": {"row": 58, "column": 22}, "end_point": {"row": 58, "column": 33}}, {"id": 269, "type": "pointer_declarator", "text": "*fp", "parent": 261, "children": [270, 271], "start_point": {"row": 58, "column": 34}, "end_point": {"row": 58, "column": 37}}, {"id": 270, "type": "*", "text": "*", "parent": 269, "children": [], "start_point": {"row": 58, "column": 34}, "end_point": {"row": 58, "column": 35}}, {"id": 271, "type": "identifier", "text": "fp", "parent": 269, "children": [], "start_point": {"row": 58, "column": 35}, "end_point": {"row": 58, "column": 37}}, {"id": 272, "type": "declaration", "text": "uint16_t pid1=0,pid2=0;", "parent": 194, "children": [273, 274, 278], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 27}}, {"id": 273, "type": "primitive_type", "text": "uint16_t", "parent": 272, "children": [], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 12}}, {"id": 274, "type": "init_declarator", "text": "pid1=0", "parent": 272, "children": [275, 276, 277], "start_point": {"row": 59, "column": 13}, "end_point": {"row": 59, "column": 19}}, {"id": 275, "type": "identifier", "text": "pid1", "parent": 274, "children": [], "start_point": {"row": 59, "column": 13}, "end_point": {"row": 59, "column": 17}}, {"id": 276, "type": "=", "text": "=", "parent": 274, "children": [], "start_point": {"row": 59, "column": 17}, "end_point": {"row": 59, "column": 18}}, {"id": 277, "type": "number_literal", "text": "0", "parent": 274, "children": [], "start_point": {"row": 59, "column": 18}, "end_point": {"row": 59, "column": 19}}, {"id": 278, "type": "init_declarator", "text": "pid2=0", "parent": 272, "children": [279, 280, 281], "start_point": {"row": 59, "column": 20}, "end_point": {"row": 59, "column": 26}}, {"id": 279, "type": "identifier", "text": "pid2", "parent": 278, "children": [], "start_point": {"row": 59, "column": 20}, "end_point": {"row": 59, "column": 24}}, {"id": 280, "type": "=", "text": "=", "parent": 278, "children": [], "start_point": {"row": 59, "column": 24}, "end_point": {"row": 59, "column": 25}}, {"id": 281, "type": "number_literal", "text": "0", "parent": 278, "children": [], "start_point": {"row": 59, "column": 25}, "end_point": {"row": 59, "column": 26}}, {"id": 282, "type": "assignment_expression", "text": "fp = popen(cmd,\"r\")", "parent": 194, "children": [283, 284, 285], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 23}}, {"id": 283, "type": "identifier", "text": "fp", "parent": 282, "children": [], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 6}}, {"id": 284, "type": "=", "text": "=", "parent": 282, "children": [], "start_point": {"row": 61, "column": 7}, "end_point": {"row": 61, "column": 8}}, {"id": 285, "type": "call_expression", "text": "popen(cmd,\"r\")", "parent": 282, "children": [286, 287], "start_point": {"row": 61, "column": 9}, "end_point": {"row": 61, "column": 23}}, {"id": 286, "type": "identifier", "text": "popen", "parent": 285, "children": [], "start_point": {"row": 61, "column": 9}, "end_point": {"row": 61, "column": 14}}, {"id": 287, "type": "argument_list", "text": "(cmd,\"r\")", "parent": 285, "children": [288, 289], "start_point": {"row": 61, "column": 14}, "end_point": {"row": 61, "column": 23}}, {"id": 288, "type": "identifier", "text": "cmd", "parent": 287, "children": [], "start_point": {"row": 61, "column": 15}, "end_point": {"row": 61, "column": 18}}, {"id": 289, "type": "string_literal", "text": "\"r\"", "parent": 287, "children": [], "start_point": {"row": 61, "column": 19}, "end_point": {"row": 61, "column": 22}}, {"id": 290, "type": "if_statement", "text": "if(fp != NULL) //of 2 quiethandlers when user press\n fscanf(fp,\"%hu %hu\",&pid1,&pid2);//sequentially IGNITION OFF, ON \n else\n printf(\"popen failed\\n\");", "parent": 194, "children": [291, 306], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 65, "column": 33}}, {"id": 291, "type": "parenthesized_expression", "text": "(fp != NULL)", "parent": 290, "children": [292], "start_point": {"row": 62, "column": 6}, "end_point": {"row": 62, "column": 18}}, {"id": 292, "type": "binary_expression", "text": "fp != NULL", "parent": 291, "children": [293, 294, 295], "start_point": {"row": 62, "column": 7}, "end_point": {"row": 62, "column": 17}}, {"id": 293, "type": "identifier", "text": "fp", "parent": 292, "children": [], "start_point": {"row": 62, "column": 7}, "end_point": {"row": 62, "column": 9}}, {"id": 294, "type": "!=", "text": "!=", "parent": 292, "children": [], "start_point": {"row": 62, "column": 10}, "end_point": {"row": 62, "column": 12}}, {"id": 295, "type": "null", "text": "NULL", "parent": 292, "children": [296], "start_point": {"row": 62, "column": 13}, "end_point": {"row": 62, "column": 17}}, {"id": 296, "type": "NULL", "text": "NULL", "parent": 295, "children": [], "start_point": {"row": 62, "column": 13}, "end_point": {"row": 62, "column": 17}}, {"id": 297, "type": "call_expression", "text": "fscanf(fp,\"%hu %hu\",&pid1,&pid2)", "parent": 290, "children": [298, 299], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 40}}, {"id": 298, "type": "identifier", "text": "fscanf", "parent": 297, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 14}}, {"id": 299, "type": "argument_list", "text": "(fp,\"%hu %hu\",&pid1,&pid2)", "parent": 297, "children": [300, 301, 302, 304], "start_point": {"row": 63, "column": 14}, "end_point": {"row": 63, "column": 40}}, {"id": 300, "type": "identifier", "text": "fp", "parent": 299, "children": [], "start_point": {"row": 63, "column": 15}, "end_point": {"row": 63, "column": 17}}, {"id": 301, "type": "string_literal", "text": "\"%hu %hu\"", "parent": 299, "children": [], "start_point": {"row": 63, "column": 18}, "end_point": {"row": 63, "column": 27}}, {"id": 302, "type": "pointer_expression", "text": "&pid1", "parent": 299, "children": [303], "start_point": {"row": 63, "column": 28}, "end_point": {"row": 63, "column": 33}}, {"id": 303, "type": "identifier", "text": "pid1", "parent": 302, "children": [], "start_point": {"row": 63, "column": 29}, "end_point": {"row": 63, "column": 33}}, {"id": 304, "type": "pointer_expression", "text": "&pid2", "parent": 299, "children": [305], "start_point": {"row": 63, "column": 34}, "end_point": {"row": 63, "column": 39}}, {"id": 305, "type": "identifier", "text": "pid2", "parent": 304, "children": [], "start_point": {"row": 63, "column": 35}, "end_point": {"row": 63, "column": 39}}, {"id": 306, "type": "else_clause", "text": "else\n printf(\"popen failed\\n\");", "parent": 290, "children": [], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 65, "column": 33}}, {"id": 307, "type": "call_expression", "text": "printf(\"popen failed\\n\")", "parent": 306, "children": [308, 309], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 32}}, {"id": 308, "type": "identifier", "text": "printf", "parent": 307, "children": [], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 14}}, {"id": 309, "type": "argument_list", "text": "(\"popen failed\\n\")", "parent": 307, "children": [310], "start_point": {"row": 65, "column": 14}, "end_point": {"row": 65, "column": 32}}, {"id": 310, "type": "string_literal", "text": "\"popen failed\\n\"", "parent": 309, "children": [311], "start_point": {"row": 65, "column": 15}, "end_point": {"row": 65, "column": 31}}, {"id": 311, "type": "escape_sequence", "text": "\\n", "parent": 310, "children": [], "start_point": {"row": 65, "column": 28}, "end_point": {"row": 65, "column": 30}}, {"id": 312, "type": "if_statement", "text": "if(pid1 && pid2)\n {\n close(fp);\n exit(0);\n }", "parent": 194, "children": [313], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 71, "column": 5}}, {"id": 313, "type": "parenthesized_expression", "text": "(pid1 && pid2)", "parent": 312, "children": [314], "start_point": {"row": 67, "column": 6}, "end_point": {"row": 67, "column": 20}}, {"id": 314, "type": "binary_expression", "text": "pid1 && pid2", "parent": 313, "children": [315, 316, 317], "start_point": {"row": 67, "column": 7}, "end_point": {"row": 67, "column": 19}}, {"id": 315, "type": "identifier", "text": "pid1", "parent": 314, "children": [], "start_point": {"row": 67, "column": 7}, "end_point": {"row": 67, "column": 11}}, {"id": 316, "type": "&&", "text": "&&", "parent": 314, "children": [], "start_point": {"row": 67, "column": 12}, "end_point": {"row": 67, "column": 14}}, {"id": 317, "type": "identifier", "text": "pid2", "parent": 314, "children": [], "start_point": {"row": 67, "column": 15}, "end_point": {"row": 67, "column": 19}}, {"id": 318, "type": "call_expression", "text": "close(fp)", "parent": 312, "children": [319, 320], "start_point": {"row": 69, "column": 8}, "end_point": {"row": 69, "column": 17}}, {"id": 319, "type": "identifier", "text": "close", "parent": 318, "children": [], "start_point": {"row": 69, "column": 8}, "end_point": {"row": 69, "column": 13}}, {"id": 320, "type": "argument_list", "text": "(fp)", "parent": 318, "children": [321], "start_point": {"row": 69, "column": 13}, "end_point": {"row": 69, "column": 17}}, {"id": 321, "type": "identifier", "text": "fp", "parent": 320, "children": [], "start_point": {"row": 69, "column": 14}, "end_point": {"row": 69, "column": 16}}, {"id": 322, "type": "call_expression", "text": "exit(0)", "parent": 312, "children": [323, 324], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 15}}, {"id": 323, "type": "identifier", "text": "exit", "parent": 322, "children": [], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 12}}, {"id": 324, "type": "argument_list", "text": "(0)", "parent": 322, "children": [325], "start_point": {"row": 70, "column": 12}, "end_point": {"row": 70, "column": 15}}, {"id": 325, "type": "number_literal", "text": "0", "parent": 324, "children": [], "start_point": {"row": 70, "column": 13}, "end_point": {"row": 70, "column": 14}}, {"id": 326, "type": "if_statement", "text": "if(fp)\n close(fp);", "parent": 194, "children": [327], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 73, "column": 18}}, {"id": 327, "type": "parenthesized_expression", "text": "(fp)", "parent": 326, "children": [328], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 10}}, {"id": 328, "type": "identifier", "text": "fp", "parent": 327, "children": [], "start_point": {"row": 72, "column": 7}, "end_point": {"row": 72, "column": 9}}, {"id": 329, "type": "call_expression", "text": "close(fp)", "parent": 326, "children": [330, 331], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 17}}, {"id": 330, "type": "identifier", "text": "close", "parent": 329, "children": [], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 13}}, {"id": 331, "type": "argument_list", "text": "(fp)", "parent": 329, "children": [332], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 17}}, {"id": 332, "type": "identifier", "text": "fp", "parent": 331, "children": [], "start_point": {"row": 73, "column": 14}, "end_point": {"row": 73, "column": 16}}, {"id": 333, "type": "if_statement", "text": "if(argc >= 3) \n \t LcmKillSts=atoi(argv[2]);", "parent": 194, "children": [334], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 75, "column": 30}}, {"id": 334, "type": "parenthesized_expression", "text": "(argc >= 3)", "parent": 333, "children": [335], "start_point": {"row": 74, "column": 3}, "end_point": {"row": 74, "column": 14}}, {"id": 335, "type": "binary_expression", "text": "argc >= 3", "parent": 334, "children": [336, 337, 338], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 13}}, {"id": 336, "type": "identifier", "text": "argc", "parent": 335, "children": [], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 8}}, {"id": 337, "type": ">=", "text": ">=", "parent": 335, "children": [], "start_point": {"row": 74, "column": 9}, "end_point": {"row": 74, "column": 11}}, {"id": 338, "type": "number_literal", "text": "3", "parent": 335, "children": [], "start_point": {"row": 74, "column": 12}, "end_point": {"row": 74, "column": 13}}, {"id": 339, "type": "assignment_expression", "text": "LcmKillSts=atoi(argv[2])", "parent": 333, "children": [340, 341, 342], "start_point": {"row": 75, "column": 5}, "end_point": {"row": 75, "column": 29}}, {"id": 340, "type": "identifier", "text": "LcmKillSts", "parent": 339, "children": [], "start_point": {"row": 75, "column": 5}, "end_point": {"row": 75, "column": 15}}, {"id": 341, "type": "=", "text": "=", "parent": 339, "children": [], "start_point": {"row": 75, "column": 15}, "end_point": {"row": 75, "column": 16}}, {"id": 342, "type": "call_expression", "text": "atoi(argv[2])", "parent": 339, "children": [343, 344], "start_point": {"row": 75, "column": 16}, "end_point": {"row": 75, "column": 29}}, {"id": 343, "type": "identifier", "text": "atoi", "parent": 342, "children": [], "start_point": {"row": 75, "column": 16}, "end_point": {"row": 75, "column": 20}}, {"id": 344, "type": "argument_list", "text": "(argv[2])", "parent": 342, "children": [345], "start_point": {"row": 75, "column": 20}, "end_point": {"row": 75, "column": 29}}, {"id": 345, "type": "subscript_expression", "text": "argv[2]", "parent": 344, "children": [346, 347], "start_point": {"row": 75, "column": 21}, "end_point": {"row": 75, "column": 28}}, {"id": 346, "type": "identifier", "text": "argv", "parent": 345, "children": [], "start_point": {"row": 75, "column": 21}, "end_point": {"row": 75, "column": 25}}, {"id": 347, "type": "number_literal", "text": "2", "parent": 345, "children": [], "start_point": {"row": 75, "column": 26}, "end_point": {"row": 75, "column": 27}}, {"id": 348, "type": "if_statement", "text": "if(argc >= 4) \n\t UmntSts=atoi(argv[3]);", "parent": 194, "children": [349], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 78, "column": 26}}, {"id": 349, "type": "parenthesized_expression", "text": "(argc >= 4)", "parent": 348, "children": [350], "start_point": {"row": 77, "column": 3}, "end_point": {"row": 77, "column": 14}}, {"id": 350, "type": "binary_expression", "text": "argc >= 4", "parent": 349, "children": [351, 352, 353], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 13}}, {"id": 351, "type": "identifier", "text": "argc", "parent": 350, "children": [], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 8}}, {"id": 352, "type": ">=", "text": ">=", "parent": 350, "children": [], "start_point": {"row": 77, "column": 9}, "end_point": {"row": 77, "column": 11}}, {"id": 353, "type": "number_literal", "text": "4", "parent": 350, "children": [], "start_point": {"row": 77, "column": 12}, "end_point": {"row": 77, "column": 13}}, {"id": 354, "type": "assignment_expression", "text": "UmntSts=atoi(argv[3])", "parent": 348, "children": [355, 356, 357], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 25}}, {"id": 355, "type": "identifier", "text": "UmntSts", "parent": 354, "children": [], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 11}}, {"id": 356, "type": "=", "text": "=", "parent": 354, "children": [], "start_point": {"row": 78, "column": 11}, "end_point": {"row": 78, "column": 12}}, {"id": 357, "type": "call_expression", "text": "atoi(argv[3])", "parent": 354, "children": [358, 359], "start_point": {"row": 78, "column": 12}, "end_point": {"row": 78, "column": 25}}, {"id": 358, "type": "identifier", "text": "atoi", "parent": 357, "children": [], "start_point": {"row": 78, "column": 12}, "end_point": {"row": 78, "column": 16}}, {"id": 359, "type": "argument_list", "text": "(argv[3])", "parent": 357, "children": [360], "start_point": {"row": 78, "column": 16}, "end_point": {"row": 78, "column": 25}}, {"id": 360, "type": "subscript_expression", "text": "argv[3]", "parent": 359, "children": [361, 362], "start_point": {"row": 78, "column": 17}, "end_point": {"row": 78, "column": 24}}, {"id": 361, "type": "identifier", "text": "argv", "parent": 360, "children": [], "start_point": {"row": 78, "column": 17}, "end_point": {"row": 78, "column": 21}}, {"id": 362, "type": "number_literal", "text": "3", "parent": 360, "children": [], "start_point": {"row": 78, "column": 22}, "end_point": {"row": 78, "column": 23}}, {"id": 363, "type": "for_statement", "text": "for(i=1; i <= 8; i++) {\n sprintf(name,\"conf_get system:applicationSettings:app%dStatus\",i);\n status_ptr = popen(name,\"r\");\n fgets(tmp_buf,90,status_ptr);\n sscanf(tmp_buf, \"%s %d\", tmpstr, &status);\n pclose(status_ptr);\n if(status)\n {\n sprintf(name,\"conf_get system:applicationSettings:app%dName\",i);\n appname_ptr = popen(name,\"r\");\n fgets(tmp_buf,90,appname_ptr);\n sscanf(tmp_buf, \"%s %s\", tmpstr, appname);\n pclose(appname_ptr);\n str_end = strrchr(appname, '/');\n terminate_apps(str_end + 1,0);\n }\n }", "parent": 194, "children": [364, 368, 372], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 96, "column": 5}}, {"id": 364, "type": "assignment_expression", "text": "i=1", "parent": 363, "children": [365, 366, 367], "start_point": {"row": 80, "column": 8}, "end_point": {"row": 80, "column": 11}}, {"id": 365, "type": "identifier", "text": "i", "parent": 364, "children": [], "start_point": {"row": 80, "column": 8}, "end_point": {"row": 80, "column": 9}}, {"id": 366, "type": "=", "text": "=", "parent": 364, "children": [], "start_point": {"row": 80, "column": 9}, "end_point": {"row": 80, "column": 10}}, {"id": 367, "type": "number_literal", "text": "1", "parent": 364, "children": [], "start_point": {"row": 80, "column": 10}, "end_point": {"row": 80, "column": 11}}, {"id": 368, "type": "binary_expression", "text": "i <= 8", "parent": 363, "children": [369, 370, 371], "start_point": {"row": 80, "column": 13}, "end_point": {"row": 80, "column": 19}}, {"id": 369, "type": "identifier", "text": "i", "parent": 368, "children": [], "start_point": {"row": 80, "column": 13}, "end_point": {"row": 80, "column": 14}}, {"id": 370, "type": "<=", "text": "<=", "parent": 368, "children": [], "start_point": {"row": 80, "column": 15}, "end_point": {"row": 80, "column": 17}}, {"id": 371, "type": "number_literal", "text": "8", "parent": 368, "children": [], "start_point": {"row": 80, "column": 18}, "end_point": {"row": 80, "column": 19}}, {"id": 372, "type": "update_expression", "text": "i++", "parent": 363, "children": [373, 374], "start_point": {"row": 80, "column": 21}, "end_point": {"row": 80, "column": 24}}, {"id": 373, "type": "identifier", "text": "i", "parent": 372, "children": [], "start_point": {"row": 80, "column": 21}, "end_point": {"row": 80, "column": 22}}, {"id": 374, "type": "++", "text": "++", "parent": 372, "children": [], "start_point": {"row": 80, "column": 22}, "end_point": {"row": 80, "column": 24}}, {"id": 375, "type": "call_expression", "text": "sprintf(name,\"conf_get system:applicationSettings:app%dStatus\",i)", "parent": 363, "children": [376, 377], "start_point": {"row": 81, "column": 8}, "end_point": {"row": 81, "column": 73}}, {"id": 376, "type": "identifier", "text": "sprintf", "parent": 375, "children": [], "start_point": {"row": 81, "column": 8}, "end_point": {"row": 81, "column": 15}}, {"id": 377, "type": "argument_list", "text": "(name,\"conf_get system:applicationSettings:app%dStatus\",i)", "parent": 375, "children": [378, 379, 380], "start_point": {"row": 81, "column": 15}, "end_point": {"row": 81, "column": 73}}, {"id": 378, "type": "identifier", "text": "name", "parent": 377, "children": [], "start_point": {"row": 81, "column": 16}, "end_point": {"row": 81, "column": 20}}, {"id": 379, "type": "string_literal", "text": "\"conf_get system:applicationSettings:app%dStatus\"", "parent": 377, "children": [], "start_point": {"row": 81, "column": 21}, "end_point": {"row": 81, "column": 70}}, {"id": 380, "type": "identifier", "text": "i", "parent": 377, "children": [], "start_point": {"row": 81, "column": 71}, "end_point": {"row": 81, "column": 72}}, {"id": 381, "type": "assignment_expression", "text": "status_ptr = popen(name,\"r\")", "parent": 363, "children": [382, 383, 384], "start_point": {"row": 82, "column": 8}, "end_point": {"row": 82, "column": 36}}, {"id": 382, "type": "identifier", "text": "status_ptr", "parent": 381, "children": [], "start_point": {"row": 82, "column": 8}, "end_point": {"row": 82, "column": 18}}, {"id": 383, "type": "=", "text": "=", "parent": 381, "children": [], "start_point": {"row": 82, "column": 19}, "end_point": {"row": 82, "column": 20}}, {"id": 384, "type": "call_expression", "text": "popen(name,\"r\")", "parent": 381, "children": [385, 386], "start_point": {"row": 82, "column": 21}, "end_point": {"row": 82, "column": 36}}, {"id": 385, "type": "identifier", "text": "popen", "parent": 384, "children": [], "start_point": {"row": 82, "column": 21}, "end_point": {"row": 82, "column": 26}}, {"id": 386, "type": "argument_list", "text": "(name,\"r\")", "parent": 384, "children": [387, 388], "start_point": {"row": 82, "column": 26}, "end_point": {"row": 82, "column": 36}}, {"id": 387, "type": "identifier", "text": "name", "parent": 386, "children": [], "start_point": {"row": 82, "column": 27}, "end_point": {"row": 82, "column": 31}}, {"id": 388, "type": "string_literal", "text": "\"r\"", "parent": 386, "children": [], "start_point": {"row": 82, "column": 32}, "end_point": {"row": 82, "column": 35}}, {"id": 389, "type": "call_expression", "text": "fgets(tmp_buf,90,status_ptr)", "parent": 363, "children": [390, 391], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 83, "column": 36}}, {"id": 390, "type": "identifier", "text": "fgets", "parent": 389, "children": [], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 83, "column": 13}}, {"id": 391, "type": "argument_list", "text": "(tmp_buf,90,status_ptr)", "parent": 389, "children": [392, 393, 394], "start_point": {"row": 83, "column": 13}, "end_point": {"row": 83, "column": 36}}, {"id": 392, "type": "identifier", "text": "tmp_buf", "parent": 391, "children": [], "start_point": {"row": 83, "column": 14}, "end_point": {"row": 83, "column": 21}}, {"id": 393, "type": "number_literal", "text": "90", "parent": 391, "children": [], "start_point": {"row": 83, "column": 22}, "end_point": {"row": 83, "column": 24}}, {"id": 394, "type": "identifier", "text": "status_ptr", "parent": 391, "children": [], "start_point": {"row": 83, "column": 25}, "end_point": {"row": 83, "column": 35}}, {"id": 395, "type": "call_expression", "text": "sscanf(tmp_buf, \"%s %d\", tmpstr, &status)", "parent": 363, "children": [396, 397], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 49}}, {"id": 396, "type": "identifier", "text": "sscanf", "parent": 395, "children": [], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 14}}, {"id": 397, "type": "argument_list", "text": "(tmp_buf, \"%s %d\", tmpstr, &status)", "parent": 395, "children": [398, 399, 400, 401], "start_point": {"row": 84, "column": 14}, "end_point": {"row": 84, "column": 49}}, {"id": 398, "type": "identifier", "text": "tmp_buf", "parent": 397, "children": [], "start_point": {"row": 84, "column": 15}, "end_point": {"row": 84, "column": 22}}, {"id": 399, "type": "string_literal", "text": "\"%s %d\"", "parent": 397, "children": [], "start_point": {"row": 84, "column": 24}, "end_point": {"row": 84, "column": 31}}, {"id": 400, "type": "identifier", "text": "tmpstr", "parent": 397, "children": [], "start_point": {"row": 84, "column": 33}, "end_point": {"row": 84, "column": 39}}, {"id": 401, "type": "pointer_expression", "text": "&status", "parent": 397, "children": [402], "start_point": {"row": 84, "column": 41}, "end_point": {"row": 84, "column": 48}}, {"id": 402, "type": "identifier", "text": "status", "parent": 401, "children": [], "start_point": {"row": 84, "column": 42}, "end_point": {"row": 84, "column": 48}}, {"id": 403, "type": "call_expression", "text": "pclose(status_ptr)", "parent": 363, "children": [404, 405], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 85, "column": 26}}, {"id": 404, "type": "identifier", "text": "pclose", "parent": 403, "children": [], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 85, "column": 14}}, {"id": 405, "type": "argument_list", "text": "(status_ptr)", "parent": 403, "children": [406], "start_point": {"row": 85, "column": 14}, "end_point": {"row": 85, "column": 26}}, {"id": 406, "type": "identifier", "text": "status_ptr", "parent": 405, "children": [], "start_point": {"row": 85, "column": 15}, "end_point": {"row": 85, "column": 25}}, {"id": 407, "type": "if_statement", "text": "if(status)\n {\n sprintf(name,\"conf_get system:applicationSettings:app%dName\",i);\n appname_ptr = popen(name,\"r\");\n fgets(tmp_buf,90,appname_ptr);\n sscanf(tmp_buf, \"%s %s\", tmpstr, appname);\n pclose(appname_ptr);\n str_end = strrchr(appname, '/');\n terminate_apps(str_end + 1,0);\n }", "parent": 363, "children": [408], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 95, "column": 9}}, {"id": 408, "type": "parenthesized_expression", "text": "(status)", "parent": 407, "children": [409], "start_point": {"row": 86, "column": 10}, "end_point": {"row": 86, "column": 18}}, {"id": 409, "type": "identifier", "text": "status", "parent": 408, "children": [], "start_point": {"row": 86, "column": 11}, "end_point": {"row": 86, "column": 17}}, {"id": 410, "type": "call_expression", "text": "sprintf(name,\"conf_get system:applicationSettings:app%dName\",i)", "parent": 407, "children": [411, 412], "start_point": {"row": 88, "column": 12}, "end_point": {"row": 88, "column": 75}}, {"id": 411, "type": "identifier", "text": "sprintf", "parent": 410, "children": [], "start_point": {"row": 88, "column": 12}, "end_point": {"row": 88, "column": 19}}, {"id": 412, "type": "argument_list", "text": "(name,\"conf_get system:applicationSettings:app%dName\",i)", "parent": 410, "children": [413, 414, 415], "start_point": {"row": 88, "column": 19}, "end_point": {"row": 88, "column": 75}}, {"id": 413, "type": "identifier", "text": "name", "parent": 412, "children": [], "start_point": {"row": 88, "column": 20}, "end_point": {"row": 88, "column": 24}}, {"id": 414, "type": "string_literal", "text": "\"conf_get system:applicationSettings:app%dName\"", "parent": 412, "children": [], "start_point": {"row": 88, "column": 25}, "end_point": {"row": 88, "column": 72}}, {"id": 415, "type": "identifier", "text": "i", "parent": 412, "children": [], "start_point": {"row": 88, "column": 73}, "end_point": {"row": 88, "column": 74}}, {"id": 416, "type": "assignment_expression", "text": "appname_ptr = popen(name,\"r\")", "parent": 407, "children": [417, 418, 419], "start_point": {"row": 89, "column": 12}, "end_point": {"row": 89, "column": 41}}, {"id": 417, "type": "identifier", "text": "appname_ptr", "parent": 416, "children": [], "start_point": {"row": 89, "column": 12}, "end_point": {"row": 89, "column": 23}}, {"id": 418, "type": "=", "text": "=", "parent": 416, "children": [], "start_point": {"row": 89, "column": 24}, "end_point": {"row": 89, "column": 25}}, {"id": 419, "type": "call_expression", "text": "popen(name,\"r\")", "parent": 416, "children": [420, 421], "start_point": {"row": 89, "column": 26}, "end_point": {"row": 89, "column": 41}}, {"id": 420, "type": "identifier", "text": "popen", "parent": 419, "children": [], "start_point": {"row": 89, "column": 26}, "end_point": {"row": 89, "column": 31}}, {"id": 421, "type": "argument_list", "text": "(name,\"r\")", "parent": 419, "children": [422, 423], "start_point": {"row": 89, "column": 31}, "end_point": {"row": 89, "column": 41}}, {"id": 422, "type": "identifier", "text": "name", "parent": 421, "children": [], "start_point": {"row": 89, "column": 32}, "end_point": {"row": 89, "column": 36}}, {"id": 423, "type": "string_literal", "text": "\"r\"", "parent": 421, "children": [], "start_point": {"row": 89, "column": 37}, "end_point": {"row": 89, "column": 40}}, {"id": 424, "type": "call_expression", "text": "fgets(tmp_buf,90,appname_ptr)", "parent": 407, "children": [425, 426], "start_point": {"row": 90, "column": 12}, "end_point": {"row": 90, "column": 41}}, {"id": 425, "type": "identifier", "text": "fgets", "parent": 424, "children": [], "start_point": {"row": 90, "column": 12}, "end_point": {"row": 90, "column": 17}}, {"id": 426, "type": "argument_list", "text": "(tmp_buf,90,appname_ptr)", "parent": 424, "children": [427, 428, 429], "start_point": {"row": 90, "column": 17}, "end_point": {"row": 90, "column": 41}}, {"id": 427, "type": "identifier", "text": "tmp_buf", "parent": 426, "children": [], "start_point": {"row": 90, "column": 18}, "end_point": {"row": 90, "column": 25}}, {"id": 428, "type": "number_literal", "text": "90", "parent": 426, "children": [], "start_point": {"row": 90, "column": 26}, "end_point": {"row": 90, "column": 28}}, {"id": 429, "type": "identifier", "text": "appname_ptr", "parent": 426, "children": [], "start_point": {"row": 90, "column": 29}, "end_point": {"row": 90, "column": 40}}, {"id": 430, "type": "call_expression", "text": "sscanf(tmp_buf, \"%s %s\", tmpstr, appname)", "parent": 407, "children": [431, 432], "start_point": {"row": 91, "column": 12}, "end_point": {"row": 91, "column": 53}}, {"id": 431, "type": "identifier", "text": "sscanf", "parent": 430, "children": [], "start_point": {"row": 91, "column": 12}, "end_point": {"row": 91, "column": 18}}, {"id": 432, "type": "argument_list", "text": "(tmp_buf, \"%s %s\", tmpstr, appname)", "parent": 430, "children": [433, 434, 435, 436], "start_point": {"row": 91, "column": 18}, "end_point": {"row": 91, "column": 53}}, {"id": 433, "type": "identifier", "text": "tmp_buf", "parent": 432, "children": [], "start_point": {"row": 91, "column": 19}, "end_point": {"row": 91, "column": 26}}, {"id": 434, "type": "string_literal", "text": "\"%s %s\"", "parent": 432, "children": [], "start_point": {"row": 91, "column": 28}, "end_point": {"row": 91, "column": 35}}, {"id": 435, "type": "identifier", "text": "tmpstr", "parent": 432, "children": [], "start_point": {"row": 91, "column": 37}, "end_point": {"row": 91, "column": 43}}, {"id": 436, "type": "identifier", "text": "appname", "parent": 432, "children": [], "start_point": {"row": 91, "column": 45}, "end_point": {"row": 91, "column": 52}}, {"id": 437, "type": "call_expression", "text": "pclose(appname_ptr)", "parent": 407, "children": [438, 439], "start_point": {"row": 92, "column": 12}, "end_point": {"row": 92, "column": 31}}, {"id": 438, "type": "identifier", "text": "pclose", "parent": 437, "children": [], "start_point": {"row": 92, "column": 12}, "end_point": {"row": 92, "column": 18}}, {"id": 439, "type": "argument_list", "text": "(appname_ptr)", "parent": 437, "children": [440], "start_point": {"row": 92, "column": 18}, "end_point": {"row": 92, "column": 31}}, {"id": 440, "type": "identifier", "text": "appname_ptr", "parent": 439, "children": [], "start_point": {"row": 92, "column": 19}, "end_point": {"row": 92, "column": 30}}, {"id": 441, "type": "assignment_expression", "text": "str_end = strrchr(appname, '/')", "parent": 407, "children": [442, 443, 444], "start_point": {"row": 93, "column": 12}, "end_point": {"row": 93, "column": 43}}, {"id": 442, "type": "identifier", "text": "str_end", "parent": 441, "children": [], "start_point": {"row": 93, "column": 12}, "end_point": {"row": 93, "column": 19}}, {"id": 443, "type": "=", "text": "=", "parent": 441, "children": [], "start_point": {"row": 93, "column": 20}, "end_point": {"row": 93, "column": 21}}, {"id": 444, "type": "call_expression", "text": "strrchr(appname, '/')", "parent": 441, "children": [445, 446], "start_point": {"row": 93, "column": 22}, "end_point": {"row": 93, "column": 43}}, {"id": 445, "type": "identifier", "text": "strrchr", "parent": 444, "children": [], "start_point": {"row": 93, "column": 22}, "end_point": {"row": 93, "column": 29}}, {"id": 446, "type": "argument_list", "text": "(appname, '/')", "parent": 444, "children": [447, 448], "start_point": {"row": 93, "column": 29}, "end_point": {"row": 93, "column": 43}}, {"id": 447, "type": "identifier", "text": "appname", "parent": 446, "children": [], "start_point": {"row": 93, "column": 30}, "end_point": {"row": 93, "column": 37}}, {"id": 448, "type": "char_literal", "text": "'/'", "parent": 446, "children": [449, 450, 451], "start_point": {"row": 93, "column": 39}, "end_point": {"row": 93, "column": 42}}, {"id": 449, "type": "'", "text": "'", "parent": 448, "children": [], "start_point": {"row": 93, "column": 39}, "end_point": {"row": 93, "column": 40}}, {"id": 450, "type": "character", "text": "/", "parent": 448, "children": [], "start_point": {"row": 93, "column": 40}, "end_point": {"row": 93, "column": 41}}, {"id": 451, "type": "'", "text": "'", "parent": 448, "children": [], "start_point": {"row": 93, "column": 41}, "end_point": {"row": 93, "column": 42}}, {"id": 452, "type": "call_expression", "text": "terminate_apps(str_end + 1,0)", "parent": 407, "children": [453, 454], "start_point": {"row": 94, "column": 12}, "end_point": {"row": 94, "column": 41}}, {"id": 453, "type": "identifier", "text": "terminate_apps", "parent": 452, "children": [], "start_point": {"row": 94, "column": 12}, "end_point": {"row": 94, "column": 26}}, {"id": 454, "type": "argument_list", "text": "(str_end + 1,0)", "parent": 452, "children": [455, 459], "start_point": {"row": 94, "column": 26}, "end_point": {"row": 94, "column": 41}}, {"id": 455, "type": "binary_expression", "text": "str_end + 1", "parent": 454, "children": [456, 457, 458], "start_point": {"row": 94, "column": 27}, "end_point": {"row": 94, "column": 38}}, {"id": 456, "type": "identifier", "text": "str_end", "parent": 455, "children": [], "start_point": {"row": 94, "column": 27}, "end_point": {"row": 94, "column": 34}}, {"id": 457, "type": "+", "text": "+", "parent": 455, "children": [], "start_point": {"row": 94, "column": 35}, "end_point": {"row": 94, "column": 36}}, {"id": 458, "type": "number_literal", "text": "1", "parent": 455, "children": [], "start_point": {"row": 94, "column": 37}, "end_point": {"row": 94, "column": 38}}, {"id": 459, "type": "number_literal", "text": "0", "parent": 454, "children": [], "start_point": {"row": 94, "column": 39}, "end_point": {"row": 94, "column": 40}}, {"id": 460, "type": "call_expression", "text": "system(\"killall -q capture_app\")", "parent": 194, "children": [461, 462], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 36}}, {"id": 461, "type": "identifier", "text": "system", "parent": 460, "children": [], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 10}}, {"id": 462, "type": "argument_list", "text": "(\"killall -q capture_app\")", "parent": 460, "children": [463], "start_point": {"row": 97, "column": 10}, "end_point": {"row": 97, "column": 36}}, {"id": 463, "type": "string_literal", "text": "\"killall -q capture_app\"", "parent": 462, "children": [], "start_point": {"row": 97, "column": 11}, "end_point": {"row": 97, "column": 35}}, {"id": 464, "type": "if_statement", "text": "if(argv[1] != NULL && ((strcmp(argv[1], \"eventlog\") == 0)||(strcmp(argv[1], \"powercycle\") == 0)))\n\tterminate_apps(\"Asm.bin\",1);\n else\t\n\tterminate_apps(\"Asm.bin\",0);", "parent": 194, "children": [465, 505], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 101, "column": 29}}, {"id": 465, "type": "parenthesized_expression", "text": "(argv[1] != NULL && ((strcmp(argv[1], \"eventlog\") == 0)||(strcmp(argv[1], \"powercycle\") == 0)))", "parent": 464, "children": [466], "start_point": {"row": 98, "column": 6}, "end_point": {"row": 98, "column": 101}}, {"id": 466, "type": "binary_expression", "text": "argv[1] != NULL && ((strcmp(argv[1], \"eventlog\") == 0)||(strcmp(argv[1], \"powercycle\") == 0))", "parent": 465, "children": [467, 474, 475], "start_point": {"row": 98, "column": 7}, "end_point": {"row": 98, "column": 100}}, {"id": 467, "type": "binary_expression", "text": "argv[1] != NULL", "parent": 466, "children": [468, 471, 472], "start_point": {"row": 98, "column": 7}, "end_point": {"row": 98, "column": 22}}, {"id": 468, "type": "subscript_expression", "text": "argv[1]", "parent": 467, "children": [469, 470], "start_point": {"row": 98, "column": 7}, "end_point": {"row": 98, "column": 14}}, {"id": 469, "type": "identifier", "text": "argv", "parent": 468, "children": [], "start_point": {"row": 98, "column": 7}, "end_point": {"row": 98, "column": 11}}, {"id": 470, "type": "number_literal", "text": "1", "parent": 468, "children": [], "start_point": {"row": 98, "column": 12}, "end_point": {"row": 98, "column": 13}}, {"id": 471, "type": "!=", "text": "!=", "parent": 467, "children": [], "start_point": {"row": 98, "column": 15}, "end_point": {"row": 98, "column": 17}}, {"id": 472, "type": "null", "text": "NULL", "parent": 467, "children": [473], "start_point": {"row": 98, "column": 18}, "end_point": {"row": 98, "column": 22}}, {"id": 473, "type": "NULL", "text": "NULL", "parent": 472, "children": [], "start_point": {"row": 98, "column": 18}, "end_point": {"row": 98, "column": 22}}, {"id": 474, "type": "&&", "text": "&&", "parent": 466, "children": [], "start_point": {"row": 98, "column": 23}, "end_point": {"row": 98, "column": 25}}, {"id": 475, "type": "parenthesized_expression", "text": "((strcmp(argv[1], \"eventlog\") == 0)||(strcmp(argv[1], \"powercycle\") == 0))", "parent": 466, "children": [476], "start_point": {"row": 98, "column": 26}, "end_point": {"row": 98, "column": 100}}, {"id": 476, "type": "binary_expression", "text": "(strcmp(argv[1], \"eventlog\") == 0)||(strcmp(argv[1], \"powercycle\") == 0)", "parent": 475, "children": [477, 488, 489], "start_point": {"row": 98, "column": 27}, "end_point": {"row": 98, "column": 99}}, {"id": 477, "type": "parenthesized_expression", "text": "(strcmp(argv[1], \"eventlog\") == 0)", "parent": 476, "children": [478], "start_point": {"row": 98, "column": 27}, "end_point": {"row": 98, "column": 61}}, {"id": 478, "type": "binary_expression", "text": "strcmp(argv[1], \"eventlog\") == 0", "parent": 477, "children": [479, 486, 487], "start_point": {"row": 98, "column": 28}, "end_point": {"row": 98, "column": 60}}, {"id": 479, "type": "call_expression", "text": "strcmp(argv[1], \"eventlog\")", "parent": 478, "children": [480, 481], "start_point": {"row": 98, "column": 28}, "end_point": {"row": 98, "column": 55}}, {"id": 480, "type": "identifier", "text": "strcmp", "parent": 479, "children": [], "start_point": {"row": 98, "column": 28}, "end_point": {"row": 98, "column": 34}}, {"id": 481, "type": "argument_list", "text": "(argv[1], \"eventlog\")", "parent": 479, "children": [482, 485], "start_point": {"row": 98, "column": 34}, "end_point": {"row": 98, "column": 55}}, {"id": 482, "type": "subscript_expression", "text": "argv[1]", "parent": 481, "children": [483, 484], "start_point": {"row": 98, "column": 35}, "end_point": {"row": 98, "column": 42}}, {"id": 483, "type": "identifier", "text": "argv", "parent": 482, "children": [], "start_point": {"row": 98, "column": 35}, "end_point": {"row": 98, "column": 39}}, {"id": 484, "type": "number_literal", "text": "1", "parent": 482, "children": [], "start_point": {"row": 98, "column": 40}, "end_point": {"row": 98, "column": 41}}, {"id": 485, "type": "string_literal", "text": "\"eventlog\"", "parent": 481, "children": [], "start_point": {"row": 98, "column": 44}, "end_point": {"row": 98, "column": 54}}, {"id": 486, "type": "==", "text": "==", "parent": 478, "children": [], "start_point": {"row": 98, "column": 56}, "end_point": {"row": 98, "column": 58}}, {"id": 487, "type": "number_literal", "text": "0", "parent": 478, "children": [], "start_point": {"row": 98, "column": 59}, "end_point": {"row": 98, "column": 60}}, {"id": 488, "type": "||", "text": "||", "parent": 476, "children": [], "start_point": {"row": 98, "column": 61}, "end_point": {"row": 98, "column": 63}}, {"id": 489, "type": "parenthesized_expression", "text": "(strcmp(argv[1], \"powercycle\") == 0)", "parent": 476, "children": [490], "start_point": {"row": 98, "column": 63}, "end_point": {"row": 98, "column": 99}}, {"id": 490, "type": "binary_expression", "text": "strcmp(argv[1], \"powercycle\") == 0", "parent": 489, "children": [491, 498, 499], "start_point": {"row": 98, "column": 64}, "end_point": {"row": 98, "column": 98}}, {"id": 491, "type": "call_expression", "text": "strcmp(argv[1], \"powercycle\")", "parent": 490, "children": [492, 493], "start_point": {"row": 98, "column": 64}, "end_point": {"row": 98, "column": 93}}, {"id": 492, "type": "identifier", "text": "strcmp", "parent": 491, "children": [], "start_point": {"row": 98, "column": 64}, "end_point": {"row": 98, "column": 70}}, {"id": 493, "type": "argument_list", "text": "(argv[1], \"powercycle\")", "parent": 491, "children": [494, 497], "start_point": {"row": 98, "column": 70}, "end_point": {"row": 98, "column": 93}}, {"id": 494, "type": "subscript_expression", "text": "argv[1]", "parent": 493, "children": [495, 496], "start_point": {"row": 98, "column": 71}, "end_point": {"row": 98, "column": 78}}, {"id": 495, "type": "identifier", "text": "argv", "parent": 494, "children": [], "start_point": {"row": 98, "column": 71}, "end_point": {"row": 98, "column": 75}}, {"id": 496, "type": "number_literal", "text": "1", "parent": 494, "children": [], "start_point": {"row": 98, "column": 76}, "end_point": {"row": 98, "column": 77}}, {"id": 497, "type": "string_literal", "text": "\"powercycle\"", "parent": 493, "children": [], "start_point": {"row": 98, "column": 80}, "end_point": {"row": 98, "column": 92}}, {"id": 498, "type": "==", "text": "==", "parent": 490, "children": [], "start_point": {"row": 98, "column": 94}, "end_point": {"row": 98, "column": 96}}, {"id": 499, "type": "number_literal", "text": "0", "parent": 490, "children": [], "start_point": {"row": 98, "column": 97}, "end_point": {"row": 98, "column": 98}}, {"id": 500, "type": "call_expression", "text": "terminate_apps(\"Asm.bin\",1)", "parent": 464, "children": [501, 502], "start_point": {"row": 99, "column": 1}, "end_point": {"row": 99, "column": 28}}, {"id": 501, "type": "identifier", "text": "terminate_apps", "parent": 500, "children": [], "start_point": {"row": 99, "column": 1}, "end_point": {"row": 99, "column": 15}}, {"id": 502, "type": "argument_list", "text": "(\"Asm.bin\",1)", "parent": 500, "children": [503, 504], "start_point": {"row": 99, "column": 15}, "end_point": {"row": 99, "column": 28}}, {"id": 503, "type": "string_literal", "text": "\"Asm.bin\"", "parent": 502, "children": [], "start_point": {"row": 99, "column": 16}, "end_point": {"row": 99, "column": 25}}, {"id": 504, "type": "number_literal", "text": "1", "parent": 502, "children": [], "start_point": {"row": 99, "column": 26}, "end_point": {"row": 99, "column": 27}}, {"id": 505, "type": "else_clause", "text": "else\t\n\tterminate_apps(\"Asm.bin\",0);", "parent": 464, "children": [], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 101, "column": 29}}, {"id": 506, "type": "call_expression", "text": "terminate_apps(\"Asm.bin\",0)", "parent": 505, "children": [507, 508], "start_point": {"row": 101, "column": 1}, "end_point": {"row": 101, "column": 28}}, {"id": 507, "type": "identifier", "text": "terminate_apps", "parent": 506, "children": [], "start_point": {"row": 101, "column": 1}, "end_point": {"row": 101, "column": 15}}, {"id": 508, "type": "argument_list", "text": "(\"Asm.bin\",0)", "parent": 506, "children": [509, 510], "start_point": {"row": 101, "column": 15}, "end_point": {"row": 101, "column": 28}}, {"id": 509, "type": "string_literal", "text": "\"Asm.bin\"", "parent": 508, "children": [], "start_point": {"row": 101, "column": 16}, "end_point": {"row": 101, "column": 25}}, {"id": 510, "type": "number_literal", "text": "0", "parent": 508, "children": [], "start_point": {"row": 101, "column": 26}, "end_point": {"row": 101, "column": 27}}, {"id": 511, "type": "if_statement", "text": "if(LcmKillSts == 1)\n \tterminate_apps(\"lcmd\",0);", "parent": 194, "children": [512], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 103, "column": 30}}, {"id": 512, "type": "parenthesized_expression", "text": "(LcmKillSts == 1)", "parent": 511, "children": [513], "start_point": {"row": 102, "column": 6}, "end_point": {"row": 102, "column": 23}}, {"id": 513, "type": "binary_expression", "text": "LcmKillSts == 1", "parent": 512, "children": [514, 515, 516], "start_point": {"row": 102, "column": 7}, "end_point": {"row": 102, "column": 22}}, {"id": 514, "type": "identifier", "text": "LcmKillSts", "parent": 513, "children": [], "start_point": {"row": 102, "column": 7}, "end_point": {"row": 102, "column": 17}}, {"id": 515, "type": "==", "text": "==", "parent": 513, "children": [], "start_point": {"row": 102, "column": 18}, "end_point": {"row": 102, "column": 20}}, {"id": 516, "type": "number_literal", "text": "1", "parent": 513, "children": [], "start_point": {"row": 102, "column": 21}, "end_point": {"row": 102, "column": 22}}, {"id": 517, "type": "call_expression", "text": "terminate_apps(\"lcmd\",0)", "parent": 511, "children": [518, 519], "start_point": {"row": 103, "column": 5}, "end_point": {"row": 103, "column": 29}}, {"id": 518, "type": "identifier", "text": "terminate_apps", "parent": 517, "children": [], "start_point": {"row": 103, "column": 5}, "end_point": {"row": 103, "column": 19}}, {"id": 519, "type": "argument_list", "text": "(\"lcmd\",0)", "parent": 517, "children": [520, 521], "start_point": {"row": 103, "column": 19}, "end_point": {"row": 103, "column": 29}}, {"id": 520, "type": "string_literal", "text": "\"lcmd\"", "parent": 519, "children": [], "start_point": {"row": 103, "column": 20}, "end_point": {"row": 103, "column": 26}}, {"id": 521, "type": "number_literal", "text": "0", "parent": 519, "children": [], "start_point": {"row": 103, "column": 27}, "end_point": {"row": 103, "column": 28}}, {"id": 522, "type": "call_expression", "text": "terminate_apps(\"eth_app\",0)", "parent": 194, "children": [523, 524], "start_point": {"row": 104, "column": 4}, "end_point": {"row": 104, "column": 31}}, {"id": 523, "type": "identifier", "text": "terminate_apps", "parent": 522, "children": [], "start_point": {"row": 104, "column": 4}, "end_point": {"row": 104, "column": 18}}, {"id": 524, "type": "argument_list", "text": "(\"eth_app\",0)", "parent": 522, "children": [525, 526], "start_point": {"row": 104, "column": 18}, "end_point": {"row": 104, "column": 31}}, {"id": 525, "type": "string_literal", "text": "\"eth_app\"", "parent": 524, "children": [], "start_point": {"row": 104, "column": 19}, "end_point": {"row": 104, "column": 28}}, {"id": 526, "type": "number_literal", "text": "0", "parent": 524, "children": [], "start_point": {"row": 104, "column": 29}, "end_point": {"row": 104, "column": 30}}, {"id": 527, "type": "call_expression", "text": "terminate_apps(\"auto_off_load\",0)", "parent": 194, "children": [528, 529], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 37}}, {"id": 528, "type": "identifier", "text": "terminate_apps", "parent": 527, "children": [], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 18}}, {"id": 529, "type": "argument_list", "text": "(\"auto_off_load\",0)", "parent": 527, "children": [530, 531], "start_point": {"row": 105, "column": 18}, "end_point": {"row": 105, "column": 37}}, {"id": 530, "type": "string_literal", "text": "\"auto_off_load\"", "parent": 529, "children": [], "start_point": {"row": 105, "column": 19}, "end_point": {"row": 105, "column": 34}}, {"id": 531, "type": "number_literal", "text": "0", "parent": 529, "children": [], "start_point": {"row": 105, "column": 35}, "end_point": {"row": 105, "column": 36}}, {"id": 532, "type": "call_expression", "text": "terminate_apps(\"hbrtc\",0)", "parent": 194, "children": [533, 534], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 106, "column": 29}}, {"id": 533, "type": "identifier", "text": "terminate_apps", "parent": 532, "children": [], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 106, "column": 18}}, {"id": 534, "type": "argument_list", "text": "(\"hbrtc\",0)", "parent": 532, "children": [535, 536], "start_point": {"row": 106, "column": 18}, "end_point": {"row": 106, "column": 29}}, {"id": 535, "type": "string_literal", "text": "\"hbrtc\"", "parent": 534, "children": [], "start_point": {"row": 106, "column": 19}, "end_point": {"row": 106, "column": 26}}, {"id": 536, "type": "number_literal", "text": "0", "parent": 534, "children": [], "start_point": {"row": 106, "column": 27}, "end_point": {"row": 106, "column": 28}}, {"id": 537, "type": "call_expression", "text": "terminate_apps(\"capture_app\",0)", "parent": 194, "children": [538, 539], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 35}}, {"id": 538, "type": "identifier", "text": "terminate_apps", "parent": 537, "children": [], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 18}}, {"id": 539, "type": "argument_list", "text": "(\"capture_app\",0)", "parent": 537, "children": [540, 541], "start_point": {"row": 107, "column": 18}, "end_point": {"row": 107, "column": 35}}, {"id": 540, "type": "string_literal", "text": "\"capture_app\"", "parent": 539, "children": [], "start_point": {"row": 107, "column": 19}, "end_point": {"row": 107, "column": 32}}, {"id": 541, "type": "number_literal", "text": "0", "parent": 539, "children": [], "start_point": {"row": 107, "column": 33}, "end_point": {"row": 107, "column": 34}}, {"id": 542, "type": "call_expression", "text": "terminate_apps(\"usbd\",0)", "parent": 194, "children": [543, 544], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 28}}, {"id": 543, "type": "identifier", "text": "terminate_apps", "parent": 542, "children": [], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 18}}, {"id": 544, "type": "argument_list", "text": "(\"usbd\",0)", "parent": 542, "children": [545, 546], "start_point": {"row": 108, "column": 18}, "end_point": {"row": 108, "column": 28}}, {"id": 545, "type": "string_literal", "text": "\"usbd\"", "parent": 544, "children": [], "start_point": {"row": 108, "column": 19}, "end_point": {"row": 108, "column": 25}}, {"id": 546, "type": "number_literal", "text": "0", "parent": 544, "children": [], "start_point": {"row": 108, "column": 26}, "end_point": {"row": 108, "column": 27}}, {"id": 547, "type": "call_expression", "text": "system(\"rm -f /tmp/udp_*\")", "parent": 194, "children": [548, 549], "start_point": {"row": 109, "column": 4}, "end_point": {"row": 109, "column": 30}}, {"id": 548, "type": "identifier", "text": "system", "parent": 547, "children": [], "start_point": {"row": 109, "column": 4}, "end_point": {"row": 109, "column": 10}}, {"id": 549, "type": "argument_list", "text": "(\"rm -f /tmp/udp_*\")", "parent": 547, "children": [550], "start_point": {"row": 109, "column": 10}, "end_point": {"row": 109, "column": 30}}, {"id": 550, "type": "string_literal", "text": "\"rm -f /tmp/udp_*\"", "parent": 549, "children": [], "start_point": {"row": 109, "column": 11}, "end_point": {"row": 109, "column": 29}}, {"id": 551, "type": "call_expression", "text": "terminate_apps(\"application\",0)", "parent": 194, "children": [552, 553], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 35}}, {"id": 552, "type": "identifier", "text": "terminate_apps", "parent": 551, "children": [], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 18}}, {"id": 553, "type": "argument_list", "text": "(\"application\",0)", "parent": 551, "children": [554, 555], "start_point": {"row": 110, "column": 18}, "end_point": {"row": 110, "column": 35}}, {"id": 554, "type": "string_literal", "text": "\"application\"", "parent": 553, "children": [], "start_point": {"row": 110, "column": 19}, "end_point": {"row": 110, "column": 32}}, {"id": 555, "type": "number_literal", "text": "0", "parent": 553, "children": [], "start_point": {"row": 110, "column": 33}, "end_point": {"row": 110, "column": 34}}, {"id": 556, "type": "if_statement", "text": "if(argv[1] != NULL && ((strcmp(argv[1], \"eventlog\") == 0)||(strcmp(argv[1], \"powercycle\") == 0)))\t\n {\n syslog(LOG_INFO,\"APHALT interrupt IGN_OFF\\n\");\n syslog(LOG_INFO,\"ST,\\t Quiet,\\n\");\n syslog(LOG_INFO,\"RM,\\t Unmounted,\\n\");\n system(\"/usr/local/bin/system_event_log\");\n system(\"nohup umount /tmp/usb > /dev/null\");\n system(\"nohup umount /dev/sda1 > /dev/null\");\n system(\"rm -f /tmp/SystemEvents.log\");\n system(\"rm -f /tmp/first_time.txt\");\n /* to resume the transmission if the ignition is ON again before power cut after ignition-OFF */\n\tif(strcmp(argv[1], \"powercycle\") != 0){\n sleep(16);\n system(\"/usr/local/bin/application < /var/config > /dev/null\");\n\t}\n } else {\n syslog(LOG_INFO,\"ST,\\t Halt,\\n\");\n if(UmntSts == 1)\n\t{\t\n\t syslog(LOG_INFO,\"RM,\\t Unmounted,\\n\");\n\t system(\"nohup umount /tmp/usb > /dev/null\");\n\t system(\"nohup umount /dev/sda1 2> /dev/null\");\n \t} \n }", "parent": 194, "children": [557, 652], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 135, "column": 5}}, {"id": 557, "type": "parenthesized_expression", "text": "(argv[1] != NULL && ((strcmp(argv[1], \"eventlog\") == 0)||(strcmp(argv[1], \"powercycle\") == 0)))", "parent": 556, "children": [558], "start_point": {"row": 112, "column": 6}, "end_point": {"row": 112, "column": 101}}, {"id": 558, "type": "binary_expression", "text": "argv[1] != NULL && ((strcmp(argv[1], \"eventlog\") == 0)||(strcmp(argv[1], \"powercycle\") == 0))", "parent": 557, "children": [559, 566, 567], "start_point": {"row": 112, "column": 7}, "end_point": {"row": 112, "column": 100}}, {"id": 559, "type": "binary_expression", "text": "argv[1] != NULL", "parent": 558, "children": [560, 563, 564], "start_point": {"row": 112, "column": 7}, "end_point": {"row": 112, "column": 22}}, {"id": 560, "type": "subscript_expression", "text": "argv[1]", "parent": 559, "children": [561, 562], "start_point": {"row": 112, "column": 7}, "end_point": {"row": 112, "column": 14}}, {"id": 561, "type": "identifier", "text": "argv", "parent": 560, "children": [], "start_point": {"row": 112, "column": 7}, "end_point": {"row": 112, "column": 11}}, {"id": 562, "type": "number_literal", "text": "1", "parent": 560, "children": [], "start_point": {"row": 112, "column": 12}, "end_point": {"row": 112, "column": 13}}, {"id": 563, "type": "!=", "text": "!=", "parent": 559, "children": [], "start_point": {"row": 112, "column": 15}, "end_point": {"row": 112, "column": 17}}, {"id": 564, "type": "null", "text": "NULL", "parent": 559, "children": [565], "start_point": {"row": 112, "column": 18}, "end_point": {"row": 112, "column": 22}}, {"id": 565, "type": "NULL", "text": "NULL", "parent": 564, "children": [], "start_point": {"row": 112, "column": 18}, "end_point": {"row": 112, "column": 22}}, {"id": 566, "type": "&&", "text": "&&", "parent": 558, "children": [], "start_point": {"row": 112, "column": 23}, "end_point": {"row": 112, "column": 25}}, {"id": 567, "type": "parenthesized_expression", "text": "((strcmp(argv[1], \"eventlog\") == 0)||(strcmp(argv[1], \"powercycle\") == 0))", "parent": 558, "children": [568], "start_point": {"row": 112, "column": 26}, "end_point": {"row": 112, "column": 100}}, {"id": 568, "type": "binary_expression", "text": "(strcmp(argv[1], \"eventlog\") == 0)||(strcmp(argv[1], \"powercycle\") == 0)", "parent": 567, "children": [569, 580, 581], "start_point": {"row": 112, "column": 27}, "end_point": {"row": 112, "column": 99}}, {"id": 569, "type": "parenthesized_expression", "text": "(strcmp(argv[1], \"eventlog\") == 0)", "parent": 568, "children": [570], "start_point": {"row": 112, "column": 27}, "end_point": {"row": 112, "column": 61}}, {"id": 570, "type": "binary_expression", "text": "strcmp(argv[1], \"eventlog\") == 0", "parent": 569, "children": [571, 578, 579], "start_point": {"row": 112, "column": 28}, "end_point": {"row": 112, "column": 60}}, {"id": 571, "type": "call_expression", "text": "strcmp(argv[1], \"eventlog\")", "parent": 570, "children": [572, 573], "start_point": {"row": 112, "column": 28}, "end_point": {"row": 112, "column": 55}}, {"id": 572, "type": "identifier", "text": "strcmp", "parent": 571, "children": [], "start_point": {"row": 112, "column": 28}, "end_point": {"row": 112, "column": 34}}, {"id": 573, "type": "argument_list", "text": "(argv[1], \"eventlog\")", "parent": 571, "children": [574, 577], "start_point": {"row": 112, "column": 34}, "end_point": {"row": 112, "column": 55}}, {"id": 574, "type": "subscript_expression", "text": "argv[1]", "parent": 573, "children": [575, 576], "start_point": {"row": 112, "column": 35}, "end_point": {"row": 112, "column": 42}}, {"id": 575, "type": "identifier", "text": "argv", "parent": 574, "children": [], "start_point": {"row": 112, "column": 35}, "end_point": {"row": 112, "column": 39}}, {"id": 576, "type": "number_literal", "text": "1", "parent": 574, "children": [], "start_point": {"row": 112, "column": 40}, "end_point": {"row": 112, "column": 41}}, {"id": 577, "type": "string_literal", "text": "\"eventlog\"", "parent": 573, "children": [], "start_point": {"row": 112, "column": 44}, "end_point": {"row": 112, "column": 54}}, {"id": 578, "type": "==", "text": "==", "parent": 570, "children": [], "start_point": {"row": 112, "column": 56}, "end_point": {"row": 112, "column": 58}}, {"id": 579, "type": "number_literal", "text": "0", "parent": 570, "children": [], "start_point": {"row": 112, "column": 59}, "end_point": {"row": 112, "column": 60}}, {"id": 580, "type": "||", "text": "||", "parent": 568, "children": [], "start_point": {"row": 112, "column": 61}, "end_point": {"row": 112, "column": 63}}, {"id": 581, "type": "parenthesized_expression", "text": "(strcmp(argv[1], \"powercycle\") == 0)", "parent": 568, "children": [582], "start_point": {"row": 112, "column": 63}, "end_point": {"row": 112, "column": 99}}, {"id": 582, "type": "binary_expression", "text": "strcmp(argv[1], \"powercycle\") == 0", "parent": 581, "children": [583, 590, 591], "start_point": {"row": 112, "column": 64}, "end_point": {"row": 112, "column": 98}}, {"id": 583, "type": "call_expression", "text": "strcmp(argv[1], \"powercycle\")", "parent": 582, "children": [584, 585], "start_point": {"row": 112, "column": 64}, "end_point": {"row": 112, "column": 93}}, {"id": 584, "type": "identifier", "text": "strcmp", "parent": 583, "children": [], "start_point": {"row": 112, "column": 64}, "end_point": {"row": 112, "column": 70}}, {"id": 585, "type": "argument_list", "text": "(argv[1], \"powercycle\")", "parent": 583, "children": [586, 589], "start_point": {"row": 112, "column": 70}, "end_point": {"row": 112, "column": 93}}, {"id": 586, "type": "subscript_expression", "text": "argv[1]", "parent": 585, "children": [587, 588], "start_point": {"row": 112, "column": 71}, "end_point": {"row": 112, "column": 78}}, {"id": 587, "type": "identifier", "text": "argv", "parent": 586, "children": [], "start_point": {"row": 112, "column": 71}, "end_point": {"row": 112, "column": 75}}, {"id": 588, "type": "number_literal", "text": "1", "parent": 586, "children": [], "start_point": {"row": 112, "column": 76}, "end_point": {"row": 112, "column": 77}}, {"id": 589, "type": "string_literal", "text": "\"powercycle\"", "parent": 585, "children": [], "start_point": {"row": 112, "column": 80}, "end_point": {"row": 112, "column": 92}}, {"id": 590, "type": "==", "text": "==", "parent": 582, "children": [], "start_point": {"row": 112, "column": 94}, "end_point": {"row": 112, "column": 96}}, {"id": 591, "type": "number_literal", "text": "0", "parent": 582, "children": [], "start_point": {"row": 112, "column": 97}, "end_point": {"row": 112, "column": 98}}, {"id": 592, "type": "call_expression", "text": "syslog(LOG_INFO,\"APHALT interrupt IGN_OFF\\n\")", "parent": 556, "children": [593, 594], "start_point": {"row": 114, "column": 8}, "end_point": {"row": 114, "column": 53}}, {"id": 593, "type": "identifier", "text": "syslog", "parent": 592, "children": [], "start_point": {"row": 114, "column": 8}, "end_point": {"row": 114, "column": 14}}, {"id": 594, "type": "argument_list", "text": "(LOG_INFO,\"APHALT interrupt IGN_OFF\\n\")", "parent": 592, "children": [595, 596], "start_point": {"row": 114, "column": 14}, "end_point": {"row": 114, "column": 53}}, {"id": 595, "type": "identifier", "text": "LOG_INFO", "parent": 594, "children": [], "start_point": {"row": 114, "column": 15}, "end_point": {"row": 114, "column": 23}}, {"id": 596, "type": "string_literal", "text": "\"APHALT interrupt IGN_OFF\\n\"", "parent": 594, "children": [597], "start_point": {"row": 114, "column": 24}, "end_point": {"row": 114, "column": 52}}, {"id": 597, "type": "escape_sequence", "text": "\\n", "parent": 596, "children": [], "start_point": {"row": 114, "column": 49}, "end_point": {"row": 114, "column": 51}}, {"id": 598, "type": "call_expression", "text": "syslog(LOG_INFO,\"ST,\\t Quiet,\\n\")", "parent": 556, "children": [599, 600], "start_point": {"row": 115, "column": 8}, "end_point": {"row": 115, "column": 41}}, {"id": 599, "type": "identifier", "text": "syslog", "parent": 598, "children": [], "start_point": {"row": 115, "column": 8}, "end_point": {"row": 115, "column": 14}}, {"id": 600, "type": "argument_list", "text": "(LOG_INFO,\"ST,\\t Quiet,\\n\")", "parent": 598, "children": [601, 602], "start_point": {"row": 115, "column": 14}, "end_point": {"row": 115, "column": 41}}, {"id": 601, "type": "identifier", "text": "LOG_INFO", "parent": 600, "children": [], "start_point": {"row": 115, "column": 15}, "end_point": {"row": 115, "column": 23}}, {"id": 602, "type": "string_literal", "text": "\"ST,\\t Quiet,\\n\"", "parent": 600, "children": [603, 604], "start_point": {"row": 115, "column": 24}, "end_point": {"row": 115, "column": 40}}, {"id": 603, "type": "escape_sequence", "text": "\\t", "parent": 602, "children": [], "start_point": {"row": 115, "column": 28}, "end_point": {"row": 115, "column": 30}}, {"id": 604, "type": "escape_sequence", "text": "\\n", "parent": 602, "children": [], "start_point": {"row": 115, "column": 37}, "end_point": {"row": 115, "column": 39}}, {"id": 605, "type": "call_expression", "text": "syslog(LOG_INFO,\"RM,\\t Unmounted,\\n\")", "parent": 556, "children": [606, 607], "start_point": {"row": 116, "column": 8}, "end_point": {"row": 116, "column": 45}}, {"id": 606, "type": "identifier", "text": "syslog", "parent": 605, "children": [], "start_point": {"row": 116, "column": 8}, "end_point": {"row": 116, "column": 14}}, {"id": 607, "type": "argument_list", "text": "(LOG_INFO,\"RM,\\t Unmounted,\\n\")", "parent": 605, "children": [608, 609], "start_point": {"row": 116, "column": 14}, "end_point": {"row": 116, "column": 45}}, {"id": 608, "type": "identifier", "text": "LOG_INFO", "parent": 607, "children": [], "start_point": {"row": 116, "column": 15}, "end_point": {"row": 116, "column": 23}}, {"id": 609, "type": "string_literal", "text": "\"RM,\\t Unmounted,\\n\"", "parent": 607, "children": [610, 611], "start_point": {"row": 116, "column": 24}, "end_point": {"row": 116, "column": 44}}, {"id": 610, "type": "escape_sequence", "text": "\\t", "parent": 609, "children": [], "start_point": {"row": 116, "column": 28}, "end_point": {"row": 116, "column": 30}}, {"id": 611, "type": "escape_sequence", "text": "\\n", "parent": 609, "children": [], "start_point": {"row": 116, "column": 41}, "end_point": {"row": 116, "column": 43}}, {"id": 612, "type": "call_expression", "text": "system(\"/usr/local/bin/system_event_log\")", "parent": 556, "children": [613, 614], "start_point": {"row": 117, "column": 8}, "end_point": {"row": 117, "column": 49}}, {"id": 613, "type": "identifier", "text": "system", "parent": 612, "children": [], "start_point": {"row": 117, "column": 8}, "end_point": {"row": 117, "column": 14}}, {"id": 614, "type": "argument_list", "text": "(\"/usr/local/bin/system_event_log\")", "parent": 612, "children": [615], "start_point": {"row": 117, "column": 14}, "end_point": {"row": 117, "column": 49}}, {"id": 615, "type": "string_literal", "text": "\"/usr/local/bin/system_event_log\"", "parent": 614, "children": [], "start_point": {"row": 117, "column": 15}, "end_point": {"row": 117, "column": 48}}, {"id": 616, "type": "call_expression", "text": "system(\"nohup umount /tmp/usb > /dev/null\")", "parent": 556, "children": [617, 618], "start_point": {"row": 118, "column": 8}, "end_point": {"row": 118, "column": 51}}, {"id": 617, "type": "identifier", "text": "system", "parent": 616, "children": [], "start_point": {"row": 118, "column": 8}, "end_point": {"row": 118, "column": 14}}, {"id": 618, "type": "argument_list", "text": "(\"nohup umount /tmp/usb > /dev/null\")", "parent": 616, "children": [619], "start_point": {"row": 118, "column": 14}, "end_point": {"row": 118, "column": 51}}, {"id": 619, "type": "string_literal", "text": "\"nohup umount /tmp/usb > /dev/null\"", "parent": 618, "children": [], "start_point": {"row": 118, "column": 15}, "end_point": {"row": 118, "column": 50}}, {"id": 620, "type": "call_expression", "text": "system(\"nohup umount /dev/sda1 > /dev/null\")", "parent": 556, "children": [621, 622], "start_point": {"row": 119, "column": 8}, "end_point": {"row": 119, "column": 52}}, {"id": 621, "type": "identifier", "text": "system", "parent": 620, "children": [], "start_point": {"row": 119, "column": 8}, "end_point": {"row": 119, "column": 14}}, {"id": 622, "type": "argument_list", "text": "(\"nohup umount /dev/sda1 > /dev/null\")", "parent": 620, "children": [623], "start_point": {"row": 119, "column": 14}, "end_point": {"row": 119, "column": 52}}, {"id": 623, "type": "string_literal", "text": "\"nohup umount /dev/sda1 > /dev/null\"", "parent": 622, "children": [], "start_point": {"row": 119, "column": 15}, "end_point": {"row": 119, "column": 51}}, {"id": 624, "type": "call_expression", "text": "system(\"rm -f /tmp/SystemEvents.log\")", "parent": 556, "children": [625, 626], "start_point": {"row": 120, "column": 8}, "end_point": {"row": 120, "column": 45}}, {"id": 625, "type": "identifier", "text": "system", "parent": 624, "children": [], "start_point": {"row": 120, "column": 8}, "end_point": {"row": 120, "column": 14}}, {"id": 626, "type": "argument_list", "text": "(\"rm -f /tmp/SystemEvents.log\")", "parent": 624, "children": [627], "start_point": {"row": 120, "column": 14}, "end_point": {"row": 120, "column": 45}}, {"id": 627, "type": "string_literal", "text": "\"rm -f /tmp/SystemEvents.log\"", "parent": 626, "children": [], "start_point": {"row": 120, "column": 15}, "end_point": {"row": 120, "column": 44}}, {"id": 628, "type": "call_expression", "text": "system(\"rm -f /tmp/first_time.txt\")", "parent": 556, "children": [629, 630], "start_point": {"row": 121, "column": 8}, "end_point": {"row": 121, "column": 43}}, {"id": 629, "type": "identifier", "text": "system", "parent": 628, "children": [], "start_point": {"row": 121, "column": 8}, "end_point": {"row": 121, "column": 14}}, {"id": 630, "type": "argument_list", "text": "(\"rm -f /tmp/first_time.txt\")", "parent": 628, "children": [631], "start_point": {"row": 121, "column": 14}, "end_point": {"row": 121, "column": 43}}, {"id": 631, "type": "string_literal", "text": "\"rm -f /tmp/first_time.txt\"", "parent": 630, "children": [], "start_point": {"row": 121, "column": 15}, "end_point": {"row": 121, "column": 42}}, {"id": 632, "type": "if_statement", "text": "if(strcmp(argv[1], \"powercycle\") != 0){\n sleep(16);\n system(\"/usr/local/bin/application < /var/config > /dev/null\");\n\t}", "parent": 556, "children": [633], "start_point": {"row": 123, "column": 1}, "end_point": {"row": 126, "column": 2}}, {"id": 633, "type": "parenthesized_expression", "text": "(strcmp(argv[1], \"powercycle\") != 0)", "parent": 632, "children": [634], "start_point": {"row": 123, "column": 3}, "end_point": {"row": 123, "column": 39}}, {"id": 634, "type": "binary_expression", "text": "strcmp(argv[1], \"powercycle\") != 0", "parent": 633, "children": [635, 642, 643], "start_point": {"row": 123, "column": 4}, "end_point": {"row": 123, "column": 38}}, {"id": 635, "type": "call_expression", "text": "strcmp(argv[1], \"powercycle\")", "parent": 634, "children": [636, 637], "start_point": {"row": 123, "column": 4}, "end_point": {"row": 123, "column": 33}}, {"id": 636, "type": "identifier", "text": "strcmp", "parent": 635, "children": [], "start_point": {"row": 123, "column": 4}, "end_point": {"row": 123, "column": 10}}, {"id": 637, "type": "argument_list", "text": "(argv[1], \"powercycle\")", "parent": 635, "children": [638, 641], "start_point": {"row": 123, "column": 10}, "end_point": {"row": 123, "column": 33}}, {"id": 638, "type": "subscript_expression", "text": "argv[1]", "parent": 637, "children": [639, 640], "start_point": {"row": 123, "column": 11}, "end_point": {"row": 123, "column": 18}}, {"id": 639, "type": "identifier", "text": "argv", "parent": 638, "children": [], "start_point": {"row": 123, "column": 11}, "end_point": {"row": 123, "column": 15}}, {"id": 640, "type": "number_literal", "text": "1", "parent": 638, "children": [], "start_point": {"row": 123, "column": 16}, "end_point": {"row": 123, "column": 17}}, {"id": 641, "type": "string_literal", "text": "\"powercycle\"", "parent": 637, "children": [], "start_point": {"row": 123, "column": 20}, "end_point": {"row": 123, "column": 32}}, {"id": 642, "type": "!=", "text": "!=", "parent": 634, "children": [], "start_point": {"row": 123, "column": 34}, "end_point": {"row": 123, "column": 36}}, {"id": 643, "type": "number_literal", "text": "0", "parent": 634, "children": [], "start_point": {"row": 123, "column": 37}, "end_point": {"row": 123, "column": 38}}, {"id": 644, "type": "call_expression", "text": "sleep(16)", "parent": 632, "children": [645, 646], "start_point": {"row": 124, "column": 8}, "end_point": {"row": 124, "column": 17}}, {"id": 645, "type": "identifier", "text": "sleep", "parent": 644, "children": [], "start_point": {"row": 124, "column": 8}, "end_point": {"row": 124, "column": 13}}, {"id": 646, "type": "argument_list", "text": "(16)", "parent": 644, "children": [647], "start_point": {"row": 124, "column": 13}, "end_point": {"row": 124, "column": 17}}, {"id": 647, "type": "number_literal", "text": "16", "parent": 646, "children": [], "start_point": {"row": 124, "column": 14}, "end_point": {"row": 124, "column": 16}}, {"id": 648, "type": "call_expression", "text": "system(\"/usr/local/bin/application < /var/config > /dev/null\")", "parent": 632, "children": [649, 650], "start_point": {"row": 125, "column": 8}, "end_point": {"row": 125, "column": 70}}, {"id": 649, "type": "identifier", "text": "system", "parent": 648, "children": [], "start_point": {"row": 125, "column": 8}, "end_point": {"row": 125, "column": 14}}, {"id": 650, "type": "argument_list", "text": "(\"/usr/local/bin/application < /var/config > /dev/null\")", "parent": 648, "children": [651], "start_point": {"row": 125, "column": 14}, "end_point": {"row": 125, "column": 70}}, {"id": 651, "type": "string_literal", "text": "\"/usr/local/bin/application < /var/config > /dev/null\"", "parent": 650, "children": [], "start_point": {"row": 125, "column": 15}, "end_point": {"row": 125, "column": 69}}, {"id": 652, "type": "else_clause", "text": "else {\n syslog(LOG_INFO,\"ST,\\t Halt,\\n\");\n if(UmntSts == 1)\n\t{\t\n\t syslog(LOG_INFO,\"RM,\\t Unmounted,\\n\");\n\t system(\"nohup umount /tmp/usb > /dev/null\");\n\t system(\"nohup umount /dev/sda1 2> /dev/null\");\n \t} \n }", "parent": 556, "children": [], "start_point": {"row": 127, "column": 6}, "end_point": {"row": 135, "column": 5}}, {"id": 653, "type": "call_expression", "text": "syslog(LOG_INFO,\"ST,\\t Halt,\\n\")", "parent": 652, "children": [654, 655], "start_point": {"row": 128, "column": 8}, "end_point": {"row": 128, "column": 40}}, {"id": 654, "type": "identifier", "text": "syslog", "parent": 653, "children": [], "start_point": {"row": 128, "column": 8}, "end_point": {"row": 128, "column": 14}}, {"id": 655, "type": "argument_list", "text": "(LOG_INFO,\"ST,\\t Halt,\\n\")", "parent": 653, "children": [656, 657], "start_point": {"row": 128, "column": 14}, "end_point": {"row": 128, "column": 40}}, {"id": 656, "type": "identifier", "text": "LOG_INFO", "parent": 655, "children": [], "start_point": {"row": 128, "column": 15}, "end_point": {"row": 128, "column": 23}}, {"id": 657, "type": "string_literal", "text": "\"ST,\\t Halt,\\n\"", "parent": 655, "children": [658, 659], "start_point": {"row": 128, "column": 24}, "end_point": {"row": 128, "column": 39}}, {"id": 658, "type": "escape_sequence", "text": "\\t", "parent": 657, "children": [], "start_point": {"row": 128, "column": 28}, "end_point": {"row": 128, "column": 30}}, {"id": 659, "type": "escape_sequence", "text": "\\n", "parent": 657, "children": [], "start_point": {"row": 128, "column": 36}, "end_point": {"row": 128, "column": 38}}, {"id": 660, "type": "if_statement", "text": "if(UmntSts == 1)\n\t{\t\n\t syslog(LOG_INFO,\"RM,\\t Unmounted,\\n\");\n\t system(\"nohup umount /tmp/usb > /dev/null\");\n\t system(\"nohup umount /dev/sda1 2> /dev/null\");\n \t}", "parent": 652, "children": [661], "start_point": {"row": 129, "column": 8}, "end_point": {"row": 134, "column": 4}}, {"id": 661, "type": "parenthesized_expression", "text": "(UmntSts == 1)", "parent": 660, "children": [662], "start_point": {"row": 129, "column": 10}, "end_point": {"row": 129, "column": 24}}, {"id": 662, "type": "binary_expression", "text": "UmntSts == 1", "parent": 661, "children": [663, 664, 665], "start_point": {"row": 129, "column": 11}, "end_point": {"row": 129, "column": 23}}, {"id": 663, "type": "identifier", "text": "UmntSts", "parent": 662, "children": [], "start_point": {"row": 129, "column": 11}, "end_point": {"row": 129, "column": 18}}, {"id": 664, "type": "==", "text": "==", "parent": 662, "children": [], "start_point": {"row": 129, "column": 19}, "end_point": {"row": 129, "column": 21}}, {"id": 665, "type": "number_literal", "text": "1", "parent": 662, "children": [], "start_point": {"row": 129, "column": 22}, "end_point": {"row": 129, "column": 23}}, {"id": 666, "type": "call_expression", "text": "syslog(LOG_INFO,\"RM,\\t Unmounted,\\n\")", "parent": 660, "children": [667, 668], "start_point": {"row": 131, "column": 3}, "end_point": {"row": 131, "column": 40}}, {"id": 667, "type": "identifier", "text": "syslog", "parent": 666, "children": [], "start_point": {"row": 131, "column": 3}, "end_point": {"row": 131, "column": 9}}, {"id": 668, "type": "argument_list", "text": "(LOG_INFO,\"RM,\\t Unmounted,\\n\")", "parent": 666, "children": [669, 670], "start_point": {"row": 131, "column": 9}, "end_point": {"row": 131, "column": 40}}, {"id": 669, "type": "identifier", "text": "LOG_INFO", "parent": 668, "children": [], "start_point": {"row": 131, "column": 10}, "end_point": {"row": 131, "column": 18}}, {"id": 670, "type": "string_literal", "text": "\"RM,\\t Unmounted,\\n\"", "parent": 668, "children": [671, 672], "start_point": {"row": 131, "column": 19}, "end_point": {"row": 131, "column": 39}}, {"id": 671, "type": "escape_sequence", "text": "\\t", "parent": 670, "children": [], "start_point": {"row": 131, "column": 23}, "end_point": {"row": 131, "column": 25}}, {"id": 672, "type": "escape_sequence", "text": "\\n", "parent": 670, "children": [], "start_point": {"row": 131, "column": 36}, "end_point": {"row": 131, "column": 38}}, {"id": 673, "type": "call_expression", "text": "system(\"nohup umount /tmp/usb > /dev/null\")", "parent": 660, "children": [674, 675], "start_point": {"row": 132, "column": 3}, "end_point": {"row": 132, "column": 46}}, {"id": 674, "type": "identifier", "text": "system", "parent": 673, "children": [], "start_point": {"row": 132, "column": 3}, "end_point": {"row": 132, "column": 9}}, {"id": 675, "type": "argument_list", "text": "(\"nohup umount /tmp/usb > /dev/null\")", "parent": 673, "children": [676], "start_point": {"row": 132, "column": 9}, "end_point": {"row": 132, "column": 46}}, {"id": 676, "type": "string_literal", "text": "\"nohup umount /tmp/usb > /dev/null\"", "parent": 675, "children": [], "start_point": {"row": 132, "column": 10}, "end_point": {"row": 132, "column": 45}}, {"id": 677, "type": "call_expression", "text": "system(\"nohup umount /dev/sda1 2> /dev/null\")", "parent": 660, "children": [678, 679], "start_point": {"row": 133, "column": 3}, "end_point": {"row": 133, "column": 48}}, {"id": 678, "type": "identifier", "text": "system", "parent": 677, "children": [], "start_point": {"row": 133, "column": 3}, "end_point": {"row": 133, "column": 9}}, {"id": 679, "type": "argument_list", "text": "(\"nohup umount /dev/sda1 2> /dev/null\")", "parent": 677, "children": [680], "start_point": {"row": 133, "column": 9}, "end_point": {"row": 133, "column": 48}}, {"id": 680, "type": "string_literal", "text": "\"nohup umount /dev/sda1 2> /dev/null\"", "parent": 679, "children": [], "start_point": {"row": 133, "column": 10}, "end_point": {"row": 133, "column": 47}}, {"id": 681, "type": "preproc_ifdef", "text": "#ifdef SDK_NEW\n system(\"/usr/bin/panel_led WPS_OFF > /dev/null 2>&1 \");\n#endif", "parent": 194, "children": [682, 683, 688], "start_point": {"row": 136, "column": 0}, "end_point": {"row": 138, "column": 6}}, {"id": 682, "type": "#ifdef", "text": "#ifdef", "parent": 681, "children": [], "start_point": {"row": 136, "column": 0}, "end_point": {"row": 136, "column": 6}}, {"id": 683, "type": "identifier", "text": "SDK_NEW", "parent": 681, "children": [], "start_point": {"row": 136, "column": 7}, "end_point": {"row": 136, "column": 14}}, {"id": 684, "type": "call_expression", "text": "system(\"/usr/bin/panel_led WPS_OFF > /dev/null 2>&1 \")", "parent": 681, "children": [685, 686], "start_point": {"row": 137, "column": 4}, "end_point": {"row": 137, "column": 58}}, {"id": 685, "type": "identifier", "text": "system", "parent": 684, "children": [], "start_point": {"row": 137, "column": 4}, "end_point": {"row": 137, "column": 10}}, {"id": 686, "type": "argument_list", "text": "(\"/usr/bin/panel_led WPS_OFF > /dev/null 2>&1 \")", "parent": 684, "children": [687], "start_point": {"row": 137, "column": 10}, "end_point": {"row": 137, "column": 58}}, {"id": 687, "type": "string_literal", "text": "\"/usr/bin/panel_led WPS_OFF > /dev/null 2>&1 \"", "parent": 686, "children": [], "start_point": {"row": 137, "column": 11}, "end_point": {"row": 137, "column": 57}}, {"id": 688, "type": "#endif", "text": "#endif", "parent": 681, "children": [], "start_point": {"row": 138, "column": 0}, "end_point": {"row": 138, "column": 6}}, {"id": 689, "type": "return_statement", "text": "return 0;", "parent": 194, "children": [690], "start_point": {"row": 139, "column": 4}, "end_point": {"row": 139, "column": 13}}, {"id": 690, "type": "number_literal", "text": "0", "parent": 689, "children": [], "start_point": {"row": 139, "column": 11}, "end_point": {"row": 139, "column": 12}}]}, "node_categories": {"declarations": {"functions": [32, 34, 194, 196], "variables": [37, 42, 45, 51, 57, 199, 202, 208, 220, 250, 261, 272], "classes": [], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22], "modules": [], "enums": []}, "statements": {"expressions": [66, 67, 73, 74, 78, 85, 94, 99, 100, 101, 102, 107, 108, 109, 115, 122, 127, 132, 133, 134, 135, 140, 141, 142, 148, 158, 159, 164, 165, 166, 173, 180, 190, 285, 291, 292, 297, 302, 304, 307, 313, 314, 318, 322, 327, 329, 334, 335, 342, 345, 349, 350, 357, 360, 368, 372, 375, 384, 389, 395, 401, 403, 408, 410, 419, 424, 430, 437, 444, 452, 455, 460, 465, 466, 467, 468, 475, 476, 477, 478, 479, 482, 489, 490, 491, 494, 500, 506, 512, 513, 517, 522, 527, 532, 537, 542, 547, 551, 557, 558, 559, 560, 567, 568, 569, 570, 571, 574, 581, 582, 583, 586, 592, 598, 605, 612, 616, 620, 624, 628, 633, 634, 635, 638, 644, 648, 653, 661, 662, 666, 673, 677, 684], "assignments": [91, 124, 186, 282, 339, 354, 364, 381, 416, 441], "loops": [121, 363], "conditionals": [24, 25, 26, 29, 31, 35, 41, 44, 48, 54, 61, 65, 68, 70, 72, 75, 79, 81, 83, 86, 88, 90, 92, 95, 97, 98, 103, 105, 110, 112, 116, 118, 120, 125, 128, 130, 131, 136, 138, 143, 145, 149, 153, 157, 160, 163, 167, 169, 174, 178, 181, 185, 187, 191, 197, 201, 207, 210, 211, 213, 217, 224, 231, 238, 245, 254, 257, 262, 265, 268, 271, 275, 279, 283, 286, 288, 290, 293, 298, 300, 303, 305, 308, 312, 315, 317, 319, 321, 323, 326, 328, 330, 332, 333, 336, 340, 343, 346, 348, 351, 355, 358, 361, 365, 369, 373, 376, 378, 380, 382, 385, 387, 390, 392, 394, 396, 398, 400, 402, 404, 406, 407, 409, 411, 413, 415, 417, 420, 422, 425, 427, 429, 431, 433, 435, 436, 438, 440, 442, 445, 447, 453, 456, 461, 464, 469, 480, 483, 492, 495, 501, 507, 511, 514, 518, 523, 528, 533, 538, 543, 548, 552, 556, 561, 572, 575, 584, 587, 593, 595, 599, 601, 606, 608, 613, 617, 621, 625, 629, 632, 636, 639, 645, 649, 654, 656, 660, 663, 667, 669, 674, 678, 681, 682, 683, 685, 688], "returns": [689], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 20, 23, 50, 56, 62, 64, 71, 77, 82, 89, 114, 119, 123, 147, 151, 162, 170, 172, 176, 183, 189, 193, 215, 219, 225, 228, 232, 235, 239, 242, 246, 249, 258, 260, 277, 281, 289, 301, 310, 325, 338, 347, 353, 362, 367, 371, 379, 388, 393, 399, 414, 423, 428, 434, 448, 458, 459, 463, 470, 484, 485, 487, 496, 497, 499, 503, 504, 509, 510, 516, 520, 521, 525, 526, 530, 531, 535, 536, 540, 541, 545, 546, 550, 554, 555, 562, 576, 577, 579, 588, 589, 591, 596, 602, 609, 615, 619, 623, 627, 631, 640, 641, 643, 647, 651, 657, 665, 670, 676, 680, 687, 690], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 32, "universal_type": "function", "name": "terminate_apps", "text_snippet": "void terminate_apps(char *appname,int forcekill)\n{\n int ret=-1;\n uint8_t first_time = 0;\n c"}, {"node_id": 34, "universal_type": "function", "name": "unknown", "text_snippet": "terminate_apps(char *appname,int forcekill)"}, {"node_id": 194, "universal_type": "function", "name": "main", "text_snippet": "int main(int argc,char *argv[])\n{\n int i,status,UmntSts=1,LcmKillSts=1;\n char name[64]={0},tmp"}, {"node_id": 196, "universal_type": "function", "name": "unknown", "text_snippet": "main(int argc,char *argv[])"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <unistd.h>\n"}, {"node_id": 1, "text": "#include"}, {"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 <syslog.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <string.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <signal.h>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <stdint.h>\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include <sys/wait.h>\n"}, {"node_id": 22, "text": "#include"}]}, "original_source_code": "#include <unistd.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <syslog.h>\n#include <string.h>\n#include <signal.h>\n#include <stdint.h>\n#include <sys/wait.h>\n#ifdef SDK_NEW\n#define WPS_OFF 8\n#endif\n\nvoid terminate_apps(char *appname,int forcekill)\n{\n int ret=-1;\n uint8_t first_time = 0;\n char cmd[64]=\"\";\n \n if(strcmp(appname,\"\")) {\n\tif(forcekill == 0)\n\t sprintf(cmd, \"killall -q %s\",appname);\t\n\telse\n\t sprintf(cmd, \"killall -q -9 %s\",appname);\n ret=system(cmd);\n \t}\n if((WIFEXITED(ret)) && (WEXITSTATUS(ret) == 0))\n {\n\tsprintf(cmd, \"pgrep -l -x %s > /dev/null\",appname);\n while(1)\n {\n ret = system(cmd);\n \t if((WIFEXITED(ret)) && (WEXITSTATUS(ret) != 0))\n {\n\t printf(\" %s Succesfully Terminated \\n\",appname);\n break;\n }\n else\n {\n if(first_time == 0)\n {\n\t\t if(strcmp(appname,\"usbd\") == 0){\n\t\t\tprintf(\"Please wait while terminating %s [Termination can take time if USB-PURGE is going on]\\n\",appname);\n\t\t }\n\t\t else\n\t\t\tprintf(\"Please wait while terminating %s \\n\",appname);\n first_time = 1;\n }\n }\n usleep(100000);\n }\n }\n}\n\nint main(int argc,char *argv[])\n{\n int i,status,UmntSts=1,LcmKillSts=1;\n char name[64]={0},tmp_buf[100]={0},appname[20]={0},tmpstr[80]={0};\n char *str_end,cmd[30]=\"pidof quiethandler\";\n FILE *status_ptr,*appname_ptr,*fp;\n uint16_t pid1=0,pid2=0; \n\n fp = popen(cmd,\"r\"); //This test avoids the execution\n if(fp != NULL) //of 2 quiethandlers when user press\n fscanf(fp,\"%hu %hu\",&pid1,&pid2);//sequentially IGNITION OFF, ON \n else\n printf(\"popen failed\\n\");\n \n if(pid1 && pid2)\n {\n close(fp);\n exit(0);\n }\n if(fp)\n close(fp);\n\tif(argc >= 3) \n \t LcmKillSts=atoi(argv[2]);\n\n\tif(argc >= 4) \n\t UmntSts=atoi(argv[3]);\n\n for(i=1; i <= 8; i++) {\n sprintf(name,\"conf_get system:applicationSettings:app%dStatus\",i);\n status_ptr = popen(name,\"r\");\n fgets(tmp_buf,90,status_ptr);\n sscanf(tmp_buf, \"%s %d\", tmpstr, &status);\n pclose(status_ptr);\n if(status)\n {\n sprintf(name,\"conf_get system:applicationSettings:app%dName\",i);\n appname_ptr = popen(name,\"r\");\n fgets(tmp_buf,90,appname_ptr);\n sscanf(tmp_buf, \"%s %s\", tmpstr, appname);\n pclose(appname_ptr);\n str_end = strrchr(appname, '/');\n terminate_apps(str_end + 1,0);\n }\n }\n system(\"killall -q capture_app\");\n if(argv[1] != NULL && ((strcmp(argv[1], \"eventlog\") == 0)||(strcmp(argv[1], \"powercycle\") == 0)))\n\tterminate_apps(\"Asm.bin\",1);\n else\t\n\tterminate_apps(\"Asm.bin\",0);\n if(LcmKillSts == 1)\n \tterminate_apps(\"lcmd\",0);\n terminate_apps(\"eth_app\",0);\n terminate_apps(\"auto_off_load\",0);\n terminate_apps(\"hbrtc\",0);\n terminate_apps(\"capture_app\",0);\n terminate_apps(\"usbd\",0);\n system(\"rm -f /tmp/udp_*\");\n terminate_apps(\"application\",0);\n\n if(argv[1] != NULL && ((strcmp(argv[1], \"eventlog\") == 0)||(strcmp(argv[1], \"powercycle\") == 0)))\t\n {\n syslog(LOG_INFO,\"APHALT interrupt IGN_OFF\\n\");\n syslog(LOG_INFO,\"ST,\\t Quiet,\\n\");\n syslog(LOG_INFO,\"RM,\\t Unmounted,\\n\");\n system(\"/usr/local/bin/system_event_log\");\n system(\"nohup umount /tmp/usb > /dev/null\");\n system(\"nohup umount /dev/sda1 > /dev/null\");\n system(\"rm -f /tmp/SystemEvents.log\");\n system(\"rm -f /tmp/first_time.txt\");\n /* to resume the transmission if the ignition is ON again before power cut after ignition-OFF */\n\tif(strcmp(argv[1], \"powercycle\") != 0){\n sleep(16);\n system(\"/usr/local/bin/application < /var/config > /dev/null\");\n\t}\n } else {\n syslog(LOG_INFO,\"ST,\\t Halt,\\n\");\n if(UmntSts == 1)\n\t{\t\n\t syslog(LOG_INFO,\"RM,\\t Unmounted,\\n\");\n\t system(\"nohup umount /tmp/usb > /dev/null\");\n\t system(\"nohup umount /dev/sda1 2> /dev/null\");\n \t} \n }\n#ifdef SDK_NEW\n system(\"/usr/bin/panel_led WPS_OFF > /dev/null 2>&1 \");\n#endif\n return 0;\n}\n"}
80,255
c
// // Created by <NAME> on 31.5.2018 г.. // #ifndef ARDUINOMID_ADTFUNC_H #define ARDUINOMID_ADTFUNC_H #include <Arduino.h> /////////////////////////////////////////////////////////// //// DRL /////////////////////////////////////////////////////////// #ifndef DRL_PWM_PIN #define DRL_PWM_PIN 7 #endif #ifndef DRL_PWR_PIN #define DRL_PWR_PIN 10 #endif /////////////////////////////////////////////////////////// //// RTC /////////////////////////////////////////////////////////// #ifdef USE_CLOCK_MODULE #include <Wire.h> #include <RTClib.h> #endif #include "../glob.h" boolean flashTgl = false; uint8_t fadeIDrl = 0; class AptService { AmpTime *amp; CarSens *car; // // Clock boolean noClock = true; #ifdef USE_CLOCK_MODULE DS3231 rtc; #endif public: /** * * @param _amp * @param _car */ AptService(AmpTime &_amp, CarSens &_car) : amp(&_amp), car(&_car) { #ifdef USE_CLOCK_MODULE rtc = DS3231(); #endif } void begin() { setupDRL(); setupRTC(); } void listener() { listenDRL(); } /******************************************************************************* * RTC */ void setupRTC() { #ifdef USE_CLOCK_MODULE if (!rtc.begin()) { Serial.println(F("Couldn't find RTC")); } if (!rtc.isrunning()) { Serial.println(F("RTC lost power, resetting the time!")); // following line sets the RTC to the date & time this sketch was compiled rtc.adjust(DateTime(F(__DATE__), F(__TIME__))); } noClock = (!rtc.isrunning()) ? true : false; #endif } /** * * @param h * @param m */ void setClock(byte h, byte m) { if (noClock) return; #ifdef USE_CLOCK_MODULE rtc.adjust(DateTime(0, 0, 0, h, m, 0)); #endif } /** * * @return char */ const char *getClock() { if (noClock) return getPGM(0); char buf[60]; #ifdef USE_CLOCK_MODULE // // Get clock DateTime now = rtc.now(); strncpy(buf, pgm7, 60); Serial.println(now.format(buf)); return now.format(buf); #endif } /** * * @return float */ float getTemperature() { if (noClock) return 0; #ifdef USE_CLOCK_MODULE return rtc.getTemp(); #endif } protected: /******************************************************************************* * DRL */ void setupDRL() { pinMode(DRL_PWM_PIN, OUTPUT); pinMode(DRL_PWR_PIN, OUTPUT); } /** * Testing method * @param amp * @param car */ void listenDRL() { // // Initial demo if (millis() < 1600) { analogWrite(DRL_PWR_PIN, 255); if (amp->isBig()) { analogWrite(DRL_PWM_PIN, 0); } if (amp->isMax()) { analogWrite(DRL_PWM_PIN, 255); } } if (millis() < 2200 & millis() > 1800) { analogWrite(DRL_PWR_PIN, 0); } // // Regular work if (amp->isSecond()) { if (car->isRunEng()) { if (car->isDimOn()) { analogWrite(DRL_PWR_PIN, 0); analogWrite(DRL_PWM_PIN, 0); } else if (car->getVss() > 1) { analogWrite(DRL_PWR_PIN, 255); analogWrite(DRL_PWM_PIN, 255); } else { analogWrite(DRL_PWR_PIN, 255); analogWrite(DRL_PWM_PIN, 230); } } else { // analogWrite(DRL_PWR_PIN, 255); // if (amp->is5Seconds()) { // analogWrite(DRL_PWM_PIN, 255); // } else if (amp->isBig()) // analogWrite(DRL_PWM_PIN, 0); } } // // Flash DRL attention if (amp->isSec() && car->isEmgBreak()) { analogWrite(DRL_PWR_PIN, 255); if (amp->isBig()) { analogWrite(DRL_PWM_PIN, 0); } if (amp->isMax()) { analogWrite(DRL_PWM_PIN, 255); } } } }; #endif //ARDUINOMID_ADTFUNC_H
22.84
176
(translation_unit) "//\n// Created by <NAME> on 31.5.2018 г..\n//\n\n#ifndef ARDUINOMID_ADTFUNC_H\n#define ARDUINOMID_ADTFUNC_H\n\n#include <Arduino.h>\n\n///////////////////////////////////////////////////////////\n//// DRL\n///////////////////////////////////////////////////////////\n#ifndef DRL_PWM_PIN\n#define DRL_PWM_PIN 7\n#endif\n#ifndef DRL_PWR_PIN\n#define DRL_PWR_PIN 10\n#endif\n\n///////////////////////////////////////////////////////////\n//// RTC\n///////////////////////////////////////////////////////////\n\n#ifdef USE_CLOCK_MODULE\n#include <Wire.h>\n#include <RTClib.h>\n#endif\n\n#include "../glob.h"\n\nboolean flashTgl = false;\nuint8_t fadeIDrl = 0;\n\n\nclass AptService {\n\n AmpTime *amp;\n CarSens *car;\n//\n// Clock\n boolean noClock = true;\n#ifdef USE_CLOCK_MODULE\n DS3231 rtc;\n#endif\n\npublic:\n/**\n *\n * @param _amp\n * @param _car\n */\n AptService(AmpTime &_amp, CarSens &_car) : amp(&_amp), car(&_car) {\n#ifdef USE_CLOCK_MODULE\n rtc = DS3231();\n#endif\n }\n\n void begin() {\n setupDRL();\n setupRTC();\n\n }\n\n\n void listener() {\n listenDRL();\n }\n\n/*******************************************************************************\n * RTC\n */\n\n void setupRTC() {\n#ifdef USE_CLOCK_MODULE\n if (!rtc.begin()) {\n Serial.println(F("Couldn't find RTC"));\n }\n\n if (!rtc.isrunning()) {\n Serial.println(F("RTC lost power, resetting the time!"));\n // following line sets the RTC to the date & time this sketch was compiled\n rtc.adjust(DateTime(F(__DATE__), F(__TIME__)));\n }\n noClock = (!rtc.isrunning()) ? true : false;\n#endif\n }\n\n/**\n *\n * @param h\n * @param m\n */\n void setClock(byte h, byte m) {\n if (noClock)\n return;\n#ifdef USE_CLOCK_MODULE\n rtc.adjust(DateTime(0, 0, 0, h, m, 0));\n#endif\n }\n\n/**\n *\n * @return char\n */\n const char *getClock() {\n\n if (noClock)\n return getPGM(0);\n\n char buf[60];\n#ifdef USE_CLOCK_MODULE\n //\n // Get clock\n DateTime now = rtc.now();\n strncpy(buf, pgm7, 60);\n Serial.println(now.format(buf));\n return now.format(buf);\n#endif\n }\n\n/**\n *\n * @return float\n */\n float getTemperature() {\n if (noClock)\n return 0;\n#ifdef USE_CLOCK_MODULE\n return rtc.getTemp();\n#endif\n }\n\nprotected:\n\n/*******************************************************************************\n * DRL\n */\n void setupDRL() {\n pinMode(DRL_PWM_PIN, OUTPUT);\n pinMode(DRL_PWR_PIN, OUTPUT);\n }\n\n/**\n * Testing method\n * @param amp\n * @param car\n */\n void listenDRL() {\n\n\n //\n // Initial demo\n if (millis() < 1600) {\n analogWrite(DRL_PWR_PIN, 255);\n if (amp->isBig()) {\n analogWrite(DRL_PWM_PIN, 0);\n }\n if (amp->isMax()) {\n analogWrite(DRL_PWM_PIN, 255);\n }\n }\n if (millis() < 2200 & millis() > 1800) {\n analogWrite(DRL_PWR_PIN, 0);\n }\n\n //\n // Regular work\n if (amp->isSecond()) {\n if (car->isRunEng()) {\n if (car->isDimOn()) {\n analogWrite(DRL_PWR_PIN, 0);\n analogWrite(DRL_PWM_PIN, 0);\n } else if (car->getVss() > 1) {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 255);\n } else {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 230);\n }\n } else {\n// analogWrite(DRL_PWR_PIN, 255);\n// if (amp->is5Seconds()) {\n// analogWrite(DRL_PWM_PIN, 255);\n// } else if (amp->isBig())\n// analogWrite(DRL_PWM_PIN, 0);\n }\n }\n\n //\n // Flash DRL attention\n if (amp->isSec() && car->isEmgBreak()) {\n analogWrite(DRL_PWR_PIN, 255);\n if (amp->isBig()) {\n analogWrite(DRL_PWM_PIN, 0);\n }\n if (amp->isMax()) {\n analogWrite(DRL_PWM_PIN, 255);\n }\n }\n }\n\n};\n\n\n#endif //ARDUINOMID_ADTFUNC_H\n" (comment) "//" (comment) "// Created by <NAME> on 31.5.2018 г..\n" (comment) "/\n" (preproc_ifdef) "ifndef ARDUINOMID_ADTFUNC_H\n#define ARDUINOMID_ADTFUNC_H\n\n#include <Arduino.h>\n\n///////////////////////////////////////////////////////////\n//// DRL\n///////////////////////////////////////////////////////////\n#ifndef DRL_PWM_PIN\n#define DRL_PWM_PIN 7\n#endif\n#ifndef DRL_PWR_PIN\n#define DRL_PWR_PIN 10\n#endif\n\n///////////////////////////////////////////////////////////\n//// RTC\n///////////////////////////////////////////////////////////\n\n#ifdef USE_CLOCK_MODULE\n#include <Wire.h>\n#include <RTClib.h>\n#endif\n\n#include "../glob.h"\n\nboolean flashTgl = false;\nuint8_t fadeIDrl = 0;\n\n\nclass AptService {\n\n AmpTime *amp;\n CarSens *car;\n//\n// Clock\n boolean noClock = true;\n#ifdef USE_CLOCK_MODULE\n DS3231 rtc;\n#endif\n\npublic:\n/**\n *\n * @param _amp\n * @param _car\n */\n AptService(AmpTime &_amp, CarSens &_car) : amp(&_amp), car(&_car) {\n#ifdef USE_CLOCK_MODULE\n rtc = DS3231();\n#endif\n }\n\n void begin() {\n setupDRL();\n setupRTC();\n\n }\n\n\n void listener() {\n listenDRL();\n }\n\n/*******************************************************************************\n * RTC\n */\n\n void setupRTC() {\n#ifdef USE_CLOCK_MODULE\n if (!rtc.begin()) {\n Serial.println(F("Couldn't find RTC"));\n }\n\n if (!rtc.isrunning()) {\n Serial.println(F("RTC lost power, resetting the time!"));\n // following line sets the RTC to the date & time this sketch was compiled\n rtc.adjust(DateTime(F(__DATE__), F(__TIME__)));\n }\n noClock = (!rtc.isrunning()) ? true : false;\n#endif\n }\n\n/**\n *\n * @param h\n * @param m\n */\n void setClock(byte h, byte m) {\n if (noClock)\n return;\n#ifdef USE_CLOCK_MODULE\n rtc.adjust(DateTime(0, 0, 0, h, m, 0));\n#endif\n }\n\n/**\n *\n * @return char\n */\n const char *getClock() {\n\n if (noClock)\n return getPGM(0);\n\n char buf[60];\n#ifdef USE_CLOCK_MODULE\n //\n // Get clock\n DateTime now = rtc.now();\n strncpy(buf, pgm7, 60);\n Serial.println(now.format(buf));\n return now.format(buf);\n#endif\n }\n\n/**\n *\n * @return float\n */\n float getTemperature() {\n if (noClock)\n return 0;\n#ifdef USE_CLOCK_MODULE\n return rtc.getTemp();\n#endif\n }\n\nprotected:\n\n/*******************************************************************************\n * DRL\n */\n void setupDRL() {\n pinMode(DRL_PWM_PIN, OUTPUT);\n pinMode(DRL_PWR_PIN, OUTPUT);\n }\n\n/**\n * Testing method\n * @param amp\n * @param car\n */\n void listenDRL() {\n\n\n //\n // Initial demo\n if (millis() < 1600) {\n analogWrite(DRL_PWR_PIN, 255);\n if (amp->isBig()) {\n analogWrite(DRL_PWM_PIN, 0);\n }\n if (amp->isMax()) {\n analogWrite(DRL_PWM_PIN, 255);\n }\n }\n if (millis() < 2200 & millis() > 1800) {\n analogWrite(DRL_PWR_PIN, 0);\n }\n\n //\n // Regular work\n if (amp->isSecond()) {\n if (car->isRunEng()) {\n if (car->isDimOn()) {\n analogWrite(DRL_PWR_PIN, 0);\n analogWrite(DRL_PWM_PIN, 0);\n } else if (car->getVss() > 1) {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 255);\n } else {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 230);\n }\n } else {\n// analogWrite(DRL_PWR_PIN, 255);\n// if (amp->is5Seconds()) {\n// analogWrite(DRL_PWM_PIN, 255);\n// } else if (amp->isBig())\n// analogWrite(DRL_PWM_PIN, 0);\n }\n }\n\n //\n // Flash DRL attention\n if (amp->isSec() && car->isEmgBreak()) {\n analogWrite(DRL_PWR_PIN, 255);\n if (amp->isBig()) {\n analogWrite(DRL_PWM_PIN, 0);\n }\n if (amp->isMax()) {\n analogWrite(DRL_PWM_PIN, 255);\n }\n }\n }\n\n};\n\n\n#endif " (#ifndef) "ifndef " (identifier) "RDUINOMID_ADTFUNC_H\n" (preproc_def) "define ARDUINOMID_ADTFUNC_H\n\n" (#define) "define " (identifier) "RDUINOMID_ADTFUNC_H\n" (preproc_include) "include <Arduino.h>\n\n" (#include) "include " (system_lib_string) "Arduino.h>\n" (comment) "//////////////////////////////////////////////////////////\n" (comment) "/// DRL\n" (comment) "//////////////////////////////////////////////////////////\n" (preproc_ifdef) "ifndef DRL_PWM_PIN\n#define DRL_PWM_PIN 7\n#endif\n" (#ifndef) "ifndef " (identifier) "RL_PWM_PIN\n" (preproc_def) "define DRL_PWM_PIN 7\n#" (#define) "define " (identifier) "RL_PWM_PIN " (preproc_arg) "\n" (#endif) "endif\n" (preproc_ifdef) "ifndef DRL_PWR_PIN\n#define DRL_PWR_PIN 10\n#endif\n" (#ifndef) "ifndef " (identifier) "RL_PWR_PIN\n" (preproc_def) "define DRL_PWR_PIN 10\n#" (#define) "define " (identifier) "RL_PWR_PIN " (preproc_arg) "0\n" (#endif) "endif\n" (comment) "//////////////////////////////////////////////////////////\n" (comment) "/// RTC\n" (comment) "//////////////////////////////////////////////////////////\n" (preproc_ifdef) "ifdef USE_CLOCK_MODULE\n#include <Wire.h>\n#include <RTClib.h>\n#endif\n" (#ifdef) "ifdef " (identifier) "SE_CLOCK_MODULE\n" (preproc_include) "include <Wire.h>\n#" (#include) "include " (system_lib_string) "Wire.h>\n" (preproc_include) "include <RTClib.h>\n#" (#include) "include " (system_lib_string) "RTClib.h>\n" (#endif) "endif\n" (preproc_include) "include "../glob.h"\n\n" (#include) "include " (string_literal) "../glob.h"\n" (") "." (string_content) "./glob.h"" (") "\n" (declaration) "oolean flashTgl = false;\n" (type_identifier) "oolean " (init_declarator) "lashTgl = false;" (identifier) "lashTgl " (=) " " (false) "alse;" (;) "\n" (declaration) "int8_t fadeIDrl = 0;\n" (primitive_type) "int8_t " (init_declarator) "adeIDrl = 0;" (identifier) "adeIDrl " (=) " " (number_literal) ";" (;) "\n" (function_definition) "lass AptService {\n\n AmpTime *amp;\n CarSens *car;\n//\n// Clock\n boolean noClock = true;\n#ifdef USE_CLOCK_MODULE\n DS3231 rtc;\n#endif\n\npublic:\n/**\n *\n * @param _amp\n * @param _car\n */\n AptService(AmpTime &_amp, CarSens &_car) : amp(&_amp), car(&_car) {\n#ifdef USE_CLOCK_MODULE\n rtc = DS3231();\n#endif\n }\n\n void begin() {\n setupDRL();\n setupRTC();\n\n }\n\n\n void listener() {\n listenDRL();\n }\n\n/*******************************************************************************\n * RTC\n */\n\n void setupRTC() {\n#ifdef USE_CLOCK_MODULE\n if (!rtc.begin()) {\n Serial.println(F("Couldn't find RTC"));\n }\n\n if (!rtc.isrunning()) {\n Serial.println(F("RTC lost power, resetting the time!"));\n // following line sets the RTC to the date & time this sketch was compiled\n rtc.adjust(DateTime(F(__DATE__), F(__TIME__)));\n }\n noClock = (!rtc.isrunning()) ? true : false;\n#endif\n }\n\n/**\n *\n * @param h\n * @param m\n */\n void setClock(byte h, byte m) {\n if (noClock)\n return;\n#ifdef USE_CLOCK_MODULE\n rtc.adjust(DateTime(0, 0, 0, h, m, 0));\n#endif\n }\n\n/**\n *\n * @return char\n */\n const char *getClock() {\n\n if (noClock)\n return getPGM(0);\n\n char buf[60];\n#ifdef USE_CLOCK_MODULE\n //\n // Get clock\n DateTime now = rtc.now();\n strncpy(buf, pgm7, 60);\n Serial.println(now.format(buf));\n return now.format(buf);\n#endif\n }\n\n/**\n *\n * @return float\n */\n float getTemperature() {\n if (noClock)\n return 0;\n#ifdef USE_CLOCK_MODULE\n return rtc.getTemp();\n#endif\n }\n\nprotected:\n\n/*******************************************************************************\n * DRL\n */\n void setupDRL() {\n pinMode(DRL_PWM_PIN, OUTPUT);\n pinMode(DRL_PWR_PIN, OUTPUT);\n }\n\n/**\n * Testing method\n * @param amp\n * @param car\n */\n void listenDRL() {\n\n\n //\n // Initial demo\n if (millis() < 1600) {\n analogWrite(DRL_PWR_PIN, 255);\n if (amp->isBig()) {\n analogWrite(DRL_PWM_PIN, 0);\n }\n if (amp->isMax()) {\n analogWrite(DRL_PWM_PIN, 255);\n }\n }\n if (millis() < 2200 & millis() > 1800) {\n analogWrite(DRL_PWR_PIN, 0);\n }\n\n //\n // Regular work\n if (amp->isSecond()) {\n if (car->isRunEng()) {\n if (car->isDimOn()) {\n analogWrite(DRL_PWR_PIN, 0);\n analogWrite(DRL_PWM_PIN, 0);\n } else if (car->getVss() > 1) {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 255);\n } else {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 230);\n }\n } else {\n// analogWrite(DRL_PWR_PIN, 255);\n// if (amp->is5Seconds()) {\n// analogWrite(DRL_PWM_PIN, 255);\n// } else if (amp->isBig())\n// analogWrite(DRL_PWM_PIN, 0);\n }\n }\n\n //\n // Flash DRL attention\n if (amp->isSec() && car->isEmgBreak()) {\n analogWrite(DRL_PWR_PIN, 255);\n if (amp->isBig()) {\n analogWrite(DRL_PWM_PIN, 0);\n }\n if (amp->isMax()) {\n analogWrite(DRL_PWM_PIN, 255);\n }\n }\n }\n\n};" (type_identifier) "lass " (identifier) "ptService " (compound_statement) "\n\n AmpTime *amp;\n CarSens *car;\n//\n// Clock\n boolean noClock = true;\n#ifdef USE_CLOCK_MODULE\n DS3231 rtc;\n#endif\n\npublic:\n/**\n *\n * @param _amp\n * @param _car\n */\n AptService(AmpTime &_amp, CarSens &_car) : amp(&_amp), car(&_car) {\n#ifdef USE_CLOCK_MODULE\n rtc = DS3231();\n#endif\n }\n\n void begin() {\n setupDRL();\n setupRTC();\n\n }\n\n\n void listener() {\n listenDRL();\n }\n\n/*******************************************************************************\n * RTC\n */\n\n void setupRTC() {\n#ifdef USE_CLOCK_MODULE\n if (!rtc.begin()) {\n Serial.println(F("Couldn't find RTC"));\n }\n\n if (!rtc.isrunning()) {\n Serial.println(F("RTC lost power, resetting the time!"));\n // following line sets the RTC to the date & time this sketch was compiled\n rtc.adjust(DateTime(F(__DATE__), F(__TIME__)));\n }\n noClock = (!rtc.isrunning()) ? true : false;\n#endif\n }\n\n/**\n *\n * @param h\n * @param m\n */\n void setClock(byte h, byte m) {\n if (noClock)\n return;\n#ifdef USE_CLOCK_MODULE\n rtc.adjust(DateTime(0, 0, 0, h, m, 0));\n#endif\n }\n\n/**\n *\n * @return char\n */\n const char *getClock() {\n\n if (noClock)\n return getPGM(0);\n\n char buf[60];\n#ifdef USE_CLOCK_MODULE\n //\n // Get clock\n DateTime now = rtc.now();\n strncpy(buf, pgm7, 60);\n Serial.println(now.format(buf));\n return now.format(buf);\n#endif\n }\n\n/**\n *\n * @return float\n */\n float getTemperature() {\n if (noClock)\n return 0;\n#ifdef USE_CLOCK_MODULE\n return rtc.getTemp();\n#endif\n }\n\nprotected:\n\n/*******************************************************************************\n * DRL\n */\n void setupDRL() {\n pinMode(DRL_PWM_PIN, OUTPUT);\n pinMode(DRL_PWR_PIN, OUTPUT);\n }\n\n/**\n * Testing method\n * @param amp\n * @param car\n */\n void listenDRL() {\n\n\n //\n // Initial demo\n if (millis() < 1600) {\n analogWrite(DRL_PWR_PIN, 255);\n if (amp->isBig()) {\n analogWrite(DRL_PWM_PIN, 0);\n }\n if (amp->isMax()) {\n analogWrite(DRL_PWM_PIN, 255);\n }\n }\n if (millis() < 2200 & millis() > 1800) {\n analogWrite(DRL_PWR_PIN, 0);\n }\n\n //\n // Regular work\n if (amp->isSecond()) {\n if (car->isRunEng()) {\n if (car->isDimOn()) {\n analogWrite(DRL_PWR_PIN, 0);\n analogWrite(DRL_PWM_PIN, 0);\n } else if (car->getVss() > 1) {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 255);\n } else {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 230);\n }\n } else {\n// analogWrite(DRL_PWR_PIN, 255);\n// if (amp->is5Seconds()) {\n// analogWrite(DRL_PWM_PIN, 255);\n// } else if (amp->isBig())\n// analogWrite(DRL_PWM_PIN, 0);\n }\n }\n\n //\n // Flash DRL attention\n if (amp->isSec() && car->isEmgBreak()) {\n analogWrite(DRL_PWR_PIN, 255);\n if (amp->isBig()) {\n analogWrite(DRL_PWM_PIN, 0);\n }\n if (amp->isMax()) {\n analogWrite(DRL_PWM_PIN, 255);\n }\n }\n }\n\n};" ({) "\n" (declaration) "mpTime *amp;\n" (type_identifier) "mpTime " (pointer_declarator) "amp;" (*) "a" (identifier) "mp;" (;) "\n" (declaration) "arSens *car;\n" (type_identifier) "arSens " (pointer_declarator) "car;" (*) "c" (identifier) "ar;" (;) "\n" (comment) "/\n" (comment) "/ Clock\n" (declaration) "oolean noClock = true;\n" (type_identifier) "oolean " (init_declarator) "oClock = true;" (identifier) "oClock " (=) " " (true) "rue;" (;) "\n" (preproc_ifdef) "ifdef USE_CLOCK_MODULE\n DS3231 rtc;\n#endif\n" (#ifdef) "ifdef " (identifier) "SE_CLOCK_MODULE\n" (declaration) "S3231 rtc;\n" (type_identifier) "S3231 " (identifier) "tc;" (;) "\n" (#endif) "endif\n" (labeled_statement) "ublic:\n/**\n *\n * @param _amp\n * @param _car\n */\n AptService(AmpTime &_amp, CarSens &_car) : amp(&_amp), car(&_car) {\n#ifdef USE_CLOCK_MODULE\n rtc = DS3231();\n#endif\n }\n" (statement_identifier) "ublic:" (:) "\n" (comment) "**\n *\n * @param _amp\n * @param _car\n */\n" (ERROR) "ptService(AmpTime &_amp, CarSens &_car) : amp(&_amp), car(&_car) " (call_expression) "ptService(AmpTime &_amp, CarSens &_car) " (identifier) "ptService(" (argument_list) "AmpTime &_amp, CarSens &_car) " (() "A" (binary_expression) "mpTime &_amp," (identifier) "mpTime " (&) "_" (identifier) "amp," (,) " " (binary_expression) "arSens &_car)" (identifier) "arSens " (&) "_" (identifier) "car)" ()) " " (:) " " (comma_expression) "mp(&_amp), car(&_car) " (call_expression) "mp(&_amp)," (identifier) "mp(" (argument_list) "&_amp)," (() "&" (pointer_expression) "_amp)" (&) "_" (identifier) "amp)" ()) "," (,) " " (call_expression) "ar(&_car) " (identifier) "ar(" (argument_list) "&_car) " (() "&" (pointer_expression) "_car)" (&) "_" (identifier) "car)" ()) " " (compound_statement) "\n#ifdef USE_CLOCK_MODULE\n rtc = DS3231();\n#endif\n }\n" ({) "\n" (preproc_ifdef) "ifdef USE_CLOCK_MODULE\n rtc = DS3231();\n#endif\n" (#ifdef) "ifdef " (identifier) "SE_CLOCK_MODULE\n" (expression_statement) "tc = DS3231();\n" (assignment_expression) "tc = DS3231();" (identifier) "tc " (=) " " (call_expression) "S3231();" (identifier) "S3231(" (argument_list) ");" (() ")" ()) ";" (;) "\n" (#endif) "endif\n" (}) "\n" (function_definition) "oid begin() {\n setupDRL();\n setupRTC();\n\n }\n" (primitive_type) "oid " (function_declarator) "egin() " (identifier) "egin(" (parameter_list) ") " (() ")" ()) " " (compound_statement) "\n setupDRL();\n setupRTC();\n\n }\n" ({) "\n" (expression_statement) "etupDRL();\n" (call_expression) "etupDRL();" (identifier) "etupDRL(" (argument_list) ");" (() ")" ()) ";" (;) "\n" (expression_statement) "etupRTC();\n" (call_expression) "etupRTC();" (identifier) "etupRTC(" (argument_list) ");" (() ")" ()) ";" (;) "\n" (}) "\n" (function_definition) "oid listener() {\n listenDRL();\n }\n" (primitive_type) "oid " (function_declarator) "istener() " (identifier) "istener(" (parameter_list) ") " (() ")" ()) " " (compound_statement) "\n listenDRL();\n }\n" ({) "\n" (expression_statement) "istenDRL();\n" (call_expression) "istenDRL();" (identifier) "istenDRL(" (argument_list) ");" (() ")" ()) ";" (;) "\n" (}) "\n" (comment) "*******************************************************************************\n * RTC\n */\n" (function_definition) "oid setupRTC() {\n#ifdef USE_CLOCK_MODULE\n if (!rtc.begin()) {\n Serial.println(F("Couldn't find RTC"));\n }\n\n if (!rtc.isrunning()) {\n Serial.println(F("RTC lost power, resetting the time!"));\n // following line sets the RTC to the date & time this sketch was compiled\n rtc.adjust(DateTime(F(__DATE__), F(__TIME__)));\n }\n noClock = (!rtc.isrunning()) ? true : false;\n#endif\n }\n" (primitive_type) "oid " (function_declarator) "etupRTC() " (identifier) "etupRTC(" (parameter_list) ") " (() ")" ()) " " (compound_statement) "\n#ifdef USE_CLOCK_MODULE\n if (!rtc.begin()) {\n Serial.println(F("Couldn't find RTC"));\n }\n\n if (!rtc.isrunning()) {\n Serial.println(F("RTC lost power, resetting the time!"));\n // following line sets the RTC to the date & time this sketch was compiled\n rtc.adjust(DateTime(F(__DATE__), F(__TIME__)));\n }\n noClock = (!rtc.isrunning()) ? true : false;\n#endif\n }\n" ({) "\n" (preproc_ifdef) "ifdef USE_CLOCK_MODULE\n if (!rtc.begin()) {\n Serial.println(F("Couldn't find RTC"));\n }\n\n if (!rtc.isrunning()) {\n Serial.println(F("RTC lost power, resetting the time!"));\n // following line sets the RTC to the date & time this sketch was compiled\n rtc.adjust(DateTime(F(__DATE__), F(__TIME__)));\n }\n noClock = (!rtc.isrunning()) ? true : false;\n#endif\n" (#ifdef) "ifdef " (identifier) "SE_CLOCK_MODULE\n" (if_statement) "f (!rtc.begin()) {\n Serial.println(F("Couldn't find RTC"));\n }\n" (if) "f " (parenthesized_expression) "!rtc.begin()) " (() "!" (unary_expression) "rtc.begin())" (!) "r" (call_expression) "tc.begin())" (field_expression) "tc.begin(" (identifier) "tc." (.) "b" (field_identifier) "egin(" (argument_list) "))" (() ")" ()) ")" ()) " " (compound_statement) "\n Serial.println(F("Couldn't find RTC"));\n }\n" ({) "\n" (expression_statement) "erial.println(F("Couldn't find RTC"));\n" (call_expression) "erial.println(F("Couldn't find RTC"));" (field_expression) "erial.println(" (identifier) "erial." (.) "p" (field_identifier) "rintln(" (argument_list) "F("Couldn't find RTC"));" (() "F" (call_expression) "("Couldn't find RTC"))" (identifier) "(" (argument_list) ""Couldn't find RTC"))" (() """ (string_literal) "Couldn't find RTC")" (") "C" (string_content) "ouldn't find RTC"" (") ")" ()) ")" ()) ";" (;) "\n" (}) "\n" (if_statement) "f (!rtc.isrunning()) {\n Serial.println(F("RTC lost power, resetting the time!"));\n // following line sets the RTC to the date & time this sketch was compiled\n rtc.adjust(DateTime(F(__DATE__), F(__TIME__)));\n }\n" (if) "f " (parenthesized_expression) "!rtc.isrunning()) " (() "!" (unary_expression) "rtc.isrunning())" (!) "r" (call_expression) "tc.isrunning())" (field_expression) "tc.isrunning(" (identifier) "tc." (.) "i" (field_identifier) "srunning(" (argument_list) "))" (() ")" ()) ")" ()) " " (compound_statement) "\n Serial.println(F("RTC lost power, resetting the time!"));\n // following line sets the RTC to the date & time this sketch was compiled\n rtc.adjust(DateTime(F(__DATE__), F(__TIME__)));\n }\n" ({) "\n" (expression_statement) "erial.println(F("RTC lost power, resetting the time!"));\n" (call_expression) "erial.println(F("RTC lost power, resetting the time!"));" (field_expression) "erial.println(" (identifier) "erial." (.) "p" (field_identifier) "rintln(" (argument_list) "F("RTC lost power, resetting the time!"));" (() "F" (call_expression) "("RTC lost power, resetting the time!"))" (identifier) "(" (argument_list) ""RTC lost power, resetting the time!"))" (() """ (string_literal) "RTC lost power, resetting the time!")" (") "R" (string_content) "TC lost power, resetting the time!"" (") ")" ()) ")" ()) ";" (;) "\n" (comment) "/ following line sets the RTC to the date & time this sketch was compiled\n" (expression_statement) "tc.adjust(DateTime(F(__DATE__), F(__TIME__)));\n" (call_expression) "tc.adjust(DateTime(F(__DATE__), F(__TIME__)));" (field_expression) "tc.adjust(" (identifier) "tc." (.) "a" (field_identifier) "djust(" (argument_list) "DateTime(F(__DATE__), F(__TIME__)));" (() "D" (call_expression) "ateTime(F(__DATE__), F(__TIME__)))" (identifier) "ateTime(" (argument_list) "F(__DATE__), F(__TIME__)))" (() "F" (call_expression) "(__DATE__)," (identifier) "(" (argument_list) "__DATE__)," (() "_" (identifier) "_DATE__)" ()) "," (,) " " (call_expression) "(__TIME__))" (identifier) "(" (argument_list) "__TIME__))" (() "_" (identifier) "_TIME__)" ()) ")" ()) ")" ()) ";" (;) "\n" (}) "\n" (expression_statement) "oClock = (!rtc.isrunning()) ? true : false;\n" (assignment_expression) "oClock = (!rtc.isrunning()) ? true : false;" (identifier) "oClock " (=) " " (conditional_expression) "!rtc.isrunning()) ? true : false;" (parenthesized_expression) "!rtc.isrunning()) " (() "!" (unary_expression) "rtc.isrunning())" (!) "r" (call_expression) "tc.isrunning())" (field_expression) "tc.isrunning(" (identifier) "tc." (.) "i" (field_identifier) "srunning(" (argument_list) "))" (() ")" ()) ")" ()) " " (?) " " (true) "rue " (:) " " (false) "alse;" (;) "\n" (#endif) "endif\n" (}) "\n" (comment) "**\n *\n * @param h\n * @param m\n */\n" (function_definition) "oid setClock(byte h, byte m) {\n if (noClock)\n return;\n#ifdef USE_CLOCK_MODULE\n rtc.adjust(DateTime(0, 0, 0, h, m, 0));\n#endif\n }\n" (primitive_type) "oid " (function_declarator) "etClock(byte h, byte m) " (identifier) "etClock(" (parameter_list) "byte h, byte m) " (() "b" (parameter_declaration) "yte h," (type_identifier) "yte " (identifier) "," (,) " " (parameter_declaration) "yte m)" (type_identifier) "yte " (identifier) ")" ()) " " (compound_statement) "\n if (noClock)\n return;\n#ifdef USE_CLOCK_MODULE\n rtc.adjust(DateTime(0, 0, 0, h, m, 0));\n#endif\n }\n" ({) "\n" (if_statement) "f (noClock)\n return;\n" (if) "f " (parenthesized_expression) "noClock)\n" (() "n" (identifier) "oClock)" ()) "\n" (return_statement) "eturn;\n" (return) "eturn;" (;) "\n" (preproc_ifdef) "ifdef USE_CLOCK_MODULE\n rtc.adjust(DateTime(0, 0, 0, h, m, 0));\n#endif\n" (#ifdef) "ifdef " (identifier) "SE_CLOCK_MODULE\n" (expression_statement) "tc.adjust(DateTime(0, 0, 0, h, m, 0));\n" (call_expression) "tc.adjust(DateTime(0, 0, 0, h, m, 0));" (field_expression) "tc.adjust(" (identifier) "tc." (.) "a" (field_identifier) "djust(" (argument_list) "DateTime(0, 0, 0, h, m, 0));" (() "D" (call_expression) "ateTime(0, 0, 0, h, m, 0))" (identifier) "ateTime(" (argument_list) "0, 0, 0, h, m, 0))" (() "0" (number_literal) "," (,) " " (number_literal) "," (,) " " (number_literal) "," (,) " " (identifier) "," (,) " " (identifier) "," (,) " " (number_literal) ")" ()) ")" ()) ";" (;) "\n" (#endif) "endif\n" (}) "\n" (comment) "**\n *\n * @return char\n */\n" (function_definition) "onst char *getClock() {\n\n if (noClock)\n return getPGM(0);\n\n char buf[60];\n#ifdef USE_CLOCK_MODULE\n //\n // Get clock\n DateTime now = rtc.now();\n strncpy(buf, pgm7, 60);\n Serial.println(now.format(buf));\n return now.format(buf);\n#endif\n }\n" (type_qualifier) "onst " (const) "onst " (primitive_type) "har " (pointer_declarator) "getClock() " (*) "g" (function_declarator) "etClock() " (identifier) "etClock(" (parameter_list) ") " (() ")" ()) " " (compound_statement) "\n\n if (noClock)\n return getPGM(0);\n\n char buf[60];\n#ifdef USE_CLOCK_MODULE\n //\n // Get clock\n DateTime now = rtc.now();\n strncpy(buf, pgm7, 60);\n Serial.println(now.format(buf));\n return now.format(buf);\n#endif\n }\n" ({) "\n" (if_statement) "f (noClock)\n return getPGM(0);\n" (if) "f " (parenthesized_expression) "noClock)\n" (() "n" (identifier) "oClock)" ()) "\n" (return_statement) "eturn getPGM(0);\n" (return) "eturn " (call_expression) "etPGM(0);" (identifier) "etPGM(" (argument_list) "0);" (() "0" (number_literal) ")" ()) ";" (;) "\n" (declaration) "har buf[60];\n" (primitive_type) "har " (array_declarator) "uf[60];" (identifier) "uf[" ([) "6" (number_literal) "0]" (]) ";" (;) "\n" (preproc_ifdef) "ifdef USE_CLOCK_MODULE\n //\n // Get clock\n DateTime now = rtc.now();\n strncpy(buf, pgm7, 60);\n Serial.println(now.format(buf));\n return now.format(buf);\n#endif\n" (#ifdef) "ifdef " (identifier) "SE_CLOCK_MODULE\n" (comment) "/\n" (comment) "/ Get clock\n" (declaration) "ateTime now = rtc.now();\n" (type_identifier) "ateTime " (init_declarator) "ow = rtc.now();" (identifier) "ow " (=) " " (call_expression) "tc.now();" (field_expression) "tc.now(" (identifier) "tc." (.) "n" (field_identifier) "ow(" (argument_list) ");" (() ")" ()) ";" (;) "\n" (expression_statement) "trncpy(buf, pgm7, 60);\n" (call_expression) "trncpy(buf, pgm7, 60);" (identifier) "trncpy(" (argument_list) "buf, pgm7, 60);" (() "b" (identifier) "uf," (,) " " (identifier) "gm7," (,) " " (number_literal) "0)" ()) ";" (;) "\n" (expression_statement) "erial.println(now.format(buf));\n" (call_expression) "erial.println(now.format(buf));" (field_expression) "erial.println(" (identifier) "erial." (.) "p" (field_identifier) "rintln(" (argument_list) "now.format(buf));" (() "n" (call_expression) "ow.format(buf))" (field_expression) "ow.format(" (identifier) "ow." (.) "f" (field_identifier) "ormat(" (argument_list) "buf))" (() "b" (identifier) "uf)" ()) ")" ()) ";" (;) "\n" (return_statement) "eturn now.format(buf);\n" (return) "eturn " (call_expression) "ow.format(buf);" (field_expression) "ow.format(" (identifier) "ow." (.) "f" (field_identifier) "ormat(" (argument_list) "buf);" (() "b" (identifier) "uf)" ()) ";" (;) "\n" (#endif) "endif\n" (}) "\n" (comment) "**\n *\n * @return float\n */\n" (function_definition) "loat getTemperature() {\n if (noClock)\n return 0;\n#ifdef USE_CLOCK_MODULE\n return rtc.getTemp();\n#endif\n }\n" (primitive_type) "loat " (function_declarator) "etTemperature() " (identifier) "etTemperature(" (parameter_list) ") " (() ")" ()) " " (compound_statement) "\n if (noClock)\n return 0;\n#ifdef USE_CLOCK_MODULE\n return rtc.getTemp();\n#endif\n }\n" ({) "\n" (if_statement) "f (noClock)\n return 0;\n" (if) "f " (parenthesized_expression) "noClock)\n" (() "n" (identifier) "oClock)" ()) "\n" (return_statement) "eturn 0;\n" (return) "eturn " (number_literal) ";" (;) "\n" (preproc_ifdef) "ifdef USE_CLOCK_MODULE\n return rtc.getTemp();\n#endif\n" (#ifdef) "ifdef " (identifier) "SE_CLOCK_MODULE\n" (return_statement) "eturn rtc.getTemp();\n" (return) "eturn " (call_expression) "tc.getTemp();" (field_expression) "tc.getTemp(" (identifier) "tc." (.) "g" (field_identifier) "etTemp(" (argument_list) ");" (() ")" ()) ";" (;) "\n" (#endif) "endif\n" (}) "\n" (labeled_statement) "rotected:\n\n/*******************************************************************************\n * DRL\n */\n void setupDRL() {\n pinMode(DRL_PWM_PIN, OUTPUT);\n pinMode(DRL_PWR_PIN, OUTPUT);\n }\n" (statement_identifier) "rotected:" (:) "\n" (comment) "*******************************************************************************\n * DRL\n */\n" (ERROR) "oid setupDRL() " (primitive_type) "oid " (function_declarator) "etupDRL() " (identifier) "etupDRL(" (parameter_list) ") " (() ")" ()) " " (compound_statement) "\n pinMode(DRL_PWM_PIN, OUTPUT);\n pinMode(DRL_PWR_PIN, OUTPUT);\n }\n" ({) "\n" (expression_statement) "inMode(DRL_PWM_PIN, OUTPUT);\n" (call_expression) "inMode(DRL_PWM_PIN, OUTPUT);" (identifier) "inMode(" (argument_list) "DRL_PWM_PIN, OUTPUT);" (() "D" (identifier) "RL_PWM_PIN," (,) " " (identifier) "UTPUT)" ()) ";" (;) "\n" (expression_statement) "inMode(DRL_PWR_PIN, OUTPUT);\n" (call_expression) "inMode(DRL_PWR_PIN, OUTPUT);" (identifier) "inMode(" (argument_list) "DRL_PWR_PIN, OUTPUT);" (() "D" (identifier) "RL_PWR_PIN," (,) " " (identifier) "UTPUT)" ()) ";" (;) "\n" (}) "\n" (comment) "**\n * Testing method\n * @param amp\n * @param car\n */\n" (function_definition) "oid listenDRL() {\n\n\n //\n // Initial demo\n if (millis() < 1600) {\n analogWrite(DRL_PWR_PIN, 255);\n if (amp->isBig()) {\n analogWrite(DRL_PWM_PIN, 0);\n }\n if (amp->isMax()) {\n analogWrite(DRL_PWM_PIN, 255);\n }\n }\n if (millis() < 2200 & millis() > 1800) {\n analogWrite(DRL_PWR_PIN, 0);\n }\n\n //\n // Regular work\n if (amp->isSecond()) {\n if (car->isRunEng()) {\n if (car->isDimOn()) {\n analogWrite(DRL_PWR_PIN, 0);\n analogWrite(DRL_PWM_PIN, 0);\n } else if (car->getVss() > 1) {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 255);\n } else {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 230);\n }\n } else {\n// analogWrite(DRL_PWR_PIN, 255);\n// if (amp->is5Seconds()) {\n// analogWrite(DRL_PWM_PIN, 255);\n// } else if (amp->isBig())\n// analogWrite(DRL_PWM_PIN, 0);\n }\n }\n\n //\n // Flash DRL attention\n if (amp->isSec() && car->isEmgBreak()) {\n analogWrite(DRL_PWR_PIN, 255);\n if (amp->isBig()) {\n analogWrite(DRL_PWM_PIN, 0);\n }\n if (amp->isMax()) {\n analogWrite(DRL_PWM_PIN, 255);\n }\n }\n }\n" (primitive_type) "oid " (function_declarator) "istenDRL() " (identifier) "istenDRL(" (parameter_list) ") " (() ")" ()) " " (compound_statement) "\n\n\n //\n // Initial demo\n if (millis() < 1600) {\n analogWrite(DRL_PWR_PIN, 255);\n if (amp->isBig()) {\n analogWrite(DRL_PWM_PIN, 0);\n }\n if (amp->isMax()) {\n analogWrite(DRL_PWM_PIN, 255);\n }\n }\n if (millis() < 2200 & millis() > 1800) {\n analogWrite(DRL_PWR_PIN, 0);\n }\n\n //\n // Regular work\n if (amp->isSecond()) {\n if (car->isRunEng()) {\n if (car->isDimOn()) {\n analogWrite(DRL_PWR_PIN, 0);\n analogWrite(DRL_PWM_PIN, 0);\n } else if (car->getVss() > 1) {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 255);\n } else {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 230);\n }\n } else {\n// analogWrite(DRL_PWR_PIN, 255);\n// if (amp->is5Seconds()) {\n// analogWrite(DRL_PWM_PIN, 255);\n// } else if (amp->isBig())\n// analogWrite(DRL_PWM_PIN, 0);\n }\n }\n\n //\n // Flash DRL attention\n if (amp->isSec() && car->isEmgBreak()) {\n analogWrite(DRL_PWR_PIN, 255);\n if (amp->isBig()) {\n analogWrite(DRL_PWM_PIN, 0);\n }\n if (amp->isMax()) {\n analogWrite(DRL_PWM_PIN, 255);\n }\n }\n }\n" ({) "\n" (comment) "/\n" (comment) "/ Initial demo\n" (if_statement) "f (millis() < 1600) {\n analogWrite(DRL_PWR_PIN, 255);\n if (amp->isBig()) {\n analogWrite(DRL_PWM_PIN, 0);\n }\n if (amp->isMax()) {\n analogWrite(DRL_PWM_PIN, 255);\n }\n }\n" (if) "f " (parenthesized_expression) "millis() < 1600) " (() "m" (binary_expression) "illis() < 1600)" (call_expression) "illis() " (identifier) "illis(" (argument_list) ") " (() ")" ()) " " (<) " " (number_literal) "600)" ()) " " (compound_statement) "\n analogWrite(DRL_PWR_PIN, 255);\n if (amp->isBig()) {\n analogWrite(DRL_PWM_PIN, 0);\n }\n if (amp->isMax()) {\n analogWrite(DRL_PWM_PIN, 255);\n }\n }\n" ({) "\n" (expression_statement) "nalogWrite(DRL_PWR_PIN, 255);\n" (call_expression) "nalogWrite(DRL_PWR_PIN, 255);" (identifier) "nalogWrite(" (argument_list) "DRL_PWR_PIN, 255);" (() "D" (identifier) "RL_PWR_PIN," (,) " " (number_literal) "55)" ()) ";" (;) "\n" (if_statement) "f (amp->isBig()) {\n analogWrite(DRL_PWM_PIN, 0);\n }\n" (if) "f " (parenthesized_expression) "amp->isBig()) " (() "a" (call_expression) "mp->isBig())" (field_expression) "mp->isBig(" (identifier) "mp-" (->) ">i" (field_identifier) "sBig(" (argument_list) "))" (() ")" ()) ")" ()) " " (compound_statement) "\n analogWrite(DRL_PWM_PIN, 0);\n }\n" ({) "\n" (expression_statement) "nalogWrite(DRL_PWM_PIN, 0);\n" (call_expression) "nalogWrite(DRL_PWM_PIN, 0);" (identifier) "nalogWrite(" (argument_list) "DRL_PWM_PIN, 0);" (() "D" (identifier) "RL_PWM_PIN," (,) " " (number_literal) ")" ()) ";" (;) "\n" (}) "\n" (if_statement) "f (amp->isMax()) {\n analogWrite(DRL_PWM_PIN, 255);\n }\n" (if) "f " (parenthesized_expression) "amp->isMax()) " (() "a" (call_expression) "mp->isMax())" (field_expression) "mp->isMax(" (identifier) "mp-" (->) ">i" (field_identifier) "sMax(" (argument_list) "))" (() ")" ()) ")" ()) " " (compound_statement) "\n analogWrite(DRL_PWM_PIN, 255);\n }\n" ({) "\n" (expression_statement) "nalogWrite(DRL_PWM_PIN, 255);\n" (call_expression) "nalogWrite(DRL_PWM_PIN, 255);" (identifier) "nalogWrite(" (argument_list) "DRL_PWM_PIN, 255);" (() "D" (identifier) "RL_PWM_PIN," (,) " " (number_literal) "55)" ()) ";" (;) "\n" (}) "\n" (}) "\n" (if_statement) "f (millis() < 2200 & millis() > 1800) {\n analogWrite(DRL_PWR_PIN, 0);\n }\n" (if) "f " (parenthesized_expression) "millis() < 2200 & millis() > 1800) " (() "m" (binary_expression) "illis() < 2200 & millis() > 1800)" (binary_expression) "illis() < 2200 " (call_expression) "illis() " (identifier) "illis(" (argument_list) ") " (() ")" ()) " " (<) " " (number_literal) "200 " (&) " " (binary_expression) "illis() > 1800)" (call_expression) "illis() " (identifier) "illis(" (argument_list) ") " (() ")" ()) " " (>) " " (number_literal) "800)" ()) " " (compound_statement) "\n analogWrite(DRL_PWR_PIN, 0);\n }\n" ({) "\n" (expression_statement) "nalogWrite(DRL_PWR_PIN, 0);\n" (call_expression) "nalogWrite(DRL_PWR_PIN, 0);" (identifier) "nalogWrite(" (argument_list) "DRL_PWR_PIN, 0);" (() "D" (identifier) "RL_PWR_PIN," (,) " " (number_literal) ")" ()) ";" (;) "\n" (}) "\n" (comment) "/\n" (comment) "/ Regular work\n" (if_statement) "f (amp->isSecond()) {\n if (car->isRunEng()) {\n if (car->isDimOn()) {\n analogWrite(DRL_PWR_PIN, 0);\n analogWrite(DRL_PWM_PIN, 0);\n } else if (car->getVss() > 1) {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 255);\n } else {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 230);\n }\n } else {\n// analogWrite(DRL_PWR_PIN, 255);\n// if (amp->is5Seconds()) {\n// analogWrite(DRL_PWM_PIN, 255);\n// } else if (amp->isBig())\n// analogWrite(DRL_PWM_PIN, 0);\n }\n }\n" (if) "f " (parenthesized_expression) "amp->isSecond()) " (() "a" (call_expression) "mp->isSecond())" (field_expression) "mp->isSecond(" (identifier) "mp-" (->) ">i" (field_identifier) "sSecond(" (argument_list) "))" (() ")" ()) ")" ()) " " (compound_statement) "\n if (car->isRunEng()) {\n if (car->isDimOn()) {\n analogWrite(DRL_PWR_PIN, 0);\n analogWrite(DRL_PWM_PIN, 0);\n } else if (car->getVss() > 1) {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 255);\n } else {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 230);\n }\n } else {\n// analogWrite(DRL_PWR_PIN, 255);\n// if (amp->is5Seconds()) {\n// analogWrite(DRL_PWM_PIN, 255);\n// } else if (amp->isBig())\n// analogWrite(DRL_PWM_PIN, 0);\n }\n }\n" ({) "\n" (if_statement) "f (car->isRunEng()) {\n if (car->isDimOn()) {\n analogWrite(DRL_PWR_PIN, 0);\n analogWrite(DRL_PWM_PIN, 0);\n } else if (car->getVss() > 1) {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 255);\n } else {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 230);\n }\n } else {\n// analogWrite(DRL_PWR_PIN, 255);\n// if (amp->is5Seconds()) {\n// analogWrite(DRL_PWM_PIN, 255);\n// } else if (amp->isBig())\n// analogWrite(DRL_PWM_PIN, 0);\n }\n" (if) "f " (parenthesized_expression) "car->isRunEng()) " (() "c" (call_expression) "ar->isRunEng())" (field_expression) "ar->isRunEng(" (identifier) "ar-" (->) ">i" (field_identifier) "sRunEng(" (argument_list) "))" (() ")" ()) ")" ()) " " (compound_statement) "\n if (car->isDimOn()) {\n analogWrite(DRL_PWR_PIN, 0);\n analogWrite(DRL_PWM_PIN, 0);\n } else if (car->getVss() > 1) {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 255);\n } else {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 230);\n }\n } " ({) "\n" (if_statement) "f (car->isDimOn()) {\n analogWrite(DRL_PWR_PIN, 0);\n analogWrite(DRL_PWM_PIN, 0);\n } else if (car->getVss() > 1) {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 255);\n } else {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 230);\n }\n" (if) "f " (parenthesized_expression) "car->isDimOn()) " (() "c" (call_expression) "ar->isDimOn())" (field_expression) "ar->isDimOn(" (identifier) "ar-" (->) ">i" (field_identifier) "sDimOn(" (argument_list) "))" (() ")" ()) ")" ()) " " (compound_statement) "\n analogWrite(DRL_PWR_PIN, 0);\n analogWrite(DRL_PWM_PIN, 0);\n } " ({) "\n" (expression_statement) "nalogWrite(DRL_PWR_PIN, 0);\n" (call_expression) "nalogWrite(DRL_PWR_PIN, 0);" (identifier) "nalogWrite(" (argument_list) "DRL_PWR_PIN, 0);" (() "D" (identifier) "RL_PWR_PIN," (,) " " (number_literal) ")" ()) ";" (;) "\n" (expression_statement) "nalogWrite(DRL_PWM_PIN, 0);\n" (call_expression) "nalogWrite(DRL_PWM_PIN, 0);" (identifier) "nalogWrite(" (argument_list) "DRL_PWM_PIN, 0);" (() "D" (identifier) "RL_PWM_PIN," (,) " " (number_literal) ")" ()) ";" (;) "\n" (}) " " (else_clause) "lse if (car->getVss() > 1) {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 255);\n } else {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 230);\n }\n" (else) "lse " (if_statement) "f (car->getVss() > 1) {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 255);\n } else {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 230);\n }\n" (if) "f " (parenthesized_expression) "car->getVss() > 1) " (() "c" (binary_expression) "ar->getVss() > 1)" (call_expression) "ar->getVss() " (field_expression) "ar->getVss(" (identifier) "ar-" (->) ">g" (field_identifier) "etVss(" (argument_list) ") " (() ")" ()) " " (>) " " (number_literal) ")" ()) " " (compound_statement) "\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 255);\n } " ({) "\n" (expression_statement) "nalogWrite(DRL_PWR_PIN, 255);\n" (call_expression) "nalogWrite(DRL_PWR_PIN, 255);" (identifier) "nalogWrite(" (argument_list) "DRL_PWR_PIN, 255);" (() "D" (identifier) "RL_PWR_PIN," (,) " " (number_literal) "55)" ()) ";" (;) "\n" (expression_statement) "nalogWrite(DRL_PWM_PIN, 255);\n" (call_expression) "nalogWrite(DRL_PWM_PIN, 255);" (identifier) "nalogWrite(" (argument_list) "DRL_PWM_PIN, 255);" (() "D" (identifier) "RL_PWM_PIN," (,) " " (number_literal) "55)" ()) ";" (;) "\n" (}) " " (else_clause) "lse {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 230);\n }\n" (else) "lse " (compound_statement) "\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 230);\n }\n" ({) "\n" (expression_statement) "nalogWrite(DRL_PWR_PIN, 255);\n" (call_expression) "nalogWrite(DRL_PWR_PIN, 255);" (identifier) "nalogWrite(" (argument_list) "DRL_PWR_PIN, 255);" (() "D" (identifier) "RL_PWR_PIN," (,) " " (number_literal) "55)" ()) ";" (;) "\n" (expression_statement) "nalogWrite(DRL_PWM_PIN, 230);\n" (call_expression) "nalogWrite(DRL_PWM_PIN, 230);" (identifier) "nalogWrite(" (argument_list) "DRL_PWM_PIN, 230);" (() "D" (identifier) "RL_PWM_PIN," (,) " " (number_literal) "30)" ()) ";" (;) "\n" (}) "\n" (}) " " (else_clause) "lse {\n// analogWrite(DRL_PWR_PIN, 255);\n// if (amp->is5Seconds()) {\n// analogWrite(DRL_PWM_PIN, 255);\n// } else if (amp->isBig())\n// analogWrite(DRL_PWM_PIN, 0);\n }\n" (else) "lse " (compound_statement) "\n// analogWrite(DRL_PWR_PIN, 255);\n// if (amp->is5Seconds()) {\n// analogWrite(DRL_PWM_PIN, 255);\n// } else if (amp->isBig())\n// analogWrite(DRL_PWM_PIN, 0);\n }\n" ({) "\n" (comment) "/ analogWrite(DRL_PWR_PIN, 255);\n" (comment) "/ if (amp->is5Seconds()) {\n" (comment) "/ analogWrite(DRL_PWM_PIN, 255);\n" (comment) "/ } else if (amp->isBig())\n" (comment) "/ analogWrite(DRL_PWM_PIN, 0);\n" (}) "\n" (}) "\n" (comment) "/\n" (comment) "/ Flash DRL attention\n" (if_statement) "f (amp->isSec() && car->isEmgBreak()) {\n analogWrite(DRL_PWR_PIN, 255);\n if (amp->isBig()) {\n analogWrite(DRL_PWM_PIN, 0);\n }\n if (amp->isMax()) {\n analogWrite(DRL_PWM_PIN, 255);\n }\n }\n" (if) "f " (parenthesized_expression) "amp->isSec() && car->isEmgBreak()) " (() "a" (binary_expression) "mp->isSec() && car->isEmgBreak())" (call_expression) "mp->isSec() " (field_expression) "mp->isSec(" (identifier) "mp-" (->) ">i" (field_identifier) "sSec(" (argument_list) ") " (() ")" ()) " " (&&) "& " (call_expression) "ar->isEmgBreak())" (field_expression) "ar->isEmgBreak(" (identifier) "ar-" (->) ">i" (field_identifier) "sEmgBreak(" (argument_list) "))" (() ")" ()) ")" ()) " " (compound_statement) "\n analogWrite(DRL_PWR_PIN, 255);\n if (amp->isBig()) {\n analogWrite(DRL_PWM_PIN, 0);\n }\n if (amp->isMax()) {\n analogWrite(DRL_PWM_PIN, 255);\n }\n }\n" ({) "\n" (expression_statement) "nalogWrite(DRL_PWR_PIN, 255);\n" (call_expression) "nalogWrite(DRL_PWR_PIN, 255);" (identifier) "nalogWrite(" (argument_list) "DRL_PWR_PIN, 255);" (() "D" (identifier) "RL_PWR_PIN," (,) " " (number_literal) "55)" ()) ";" (;) "\n" (if_statement) "f (amp->isBig()) {\n analogWrite(DRL_PWM_PIN, 0);\n }\n" (if) "f " (parenthesized_expression) "amp->isBig()) " (() "a" (call_expression) "mp->isBig())" (field_expression) "mp->isBig(" (identifier) "mp-" (->) ">i" (field_identifier) "sBig(" (argument_list) "))" (() ")" ()) ")" ()) " " (compound_statement) "\n analogWrite(DRL_PWM_PIN, 0);\n }\n" ({) "\n" (expression_statement) "nalogWrite(DRL_PWM_PIN, 0);\n" (call_expression) "nalogWrite(DRL_PWM_PIN, 0);" (identifier) "nalogWrite(" (argument_list) "DRL_PWM_PIN, 0);" (() "D" (identifier) "RL_PWM_PIN," (,) " " (number_literal) ")" ()) ";" (;) "\n" (}) "\n" (if_statement) "f (amp->isMax()) {\n analogWrite(DRL_PWM_PIN, 255);\n }\n" (if) "f " (parenthesized_expression) "amp->isMax()) " (() "a" (call_expression) "mp->isMax())" (field_expression) "mp->isMax(" (identifier) "mp-" (->) ">i" (field_identifier) "sMax(" (argument_list) "))" (() ")" ()) ")" ()) " " (compound_statement) "\n analogWrite(DRL_PWM_PIN, 255);\n }\n" ({) "\n" (expression_statement) "nalogWrite(DRL_PWM_PIN, 255);\n" (call_expression) "nalogWrite(DRL_PWM_PIN, 255);" (identifier) "nalogWrite(" (argument_list) "DRL_PWM_PIN, 255);" (() "D" (identifier) "RL_PWM_PIN," (,) " " (number_literal) "55)" ()) ";" (;) "\n" (}) "\n" (}) "\n" (}) "\n" (}) ";" (expression_statement) "\n" (;) "\n" (#endif) "endif " (comment) "/ARDUINOMID_ADTFUNC_H\n"
932
2
{"language": "c", "success": true, "metadata": {"lines": 176, "avg_line_length": 22.84, "nodes": 484, "errors": 0, "source_hash": "cf2a50be322154ef4cd7a1ff383e83509e9988df3cf8e7a7fe812a052eff5d84", "categorized_nodes": 364}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef ARDUINOMID_ADTFUNC_H\n#define ARDUINOMID_ADTFUNC_H\n\n#include <Arduino.h>\n\n///////////////////////////////////////////////////////////\n//// DRL\n///////////////////////////////////////////////////////////\n#ifndef DRL_PWM_PIN\n#define DRL_PWM_PIN 7\n#endif\n#ifndef DRL_PWR_PIN\n#define DRL_PWR_PIN 10\n#endif\n\n///////////////////////////////////////////////////////////\n//// RTC\n///////////////////////////////////////////////////////////\n\n#ifdef USE_CLOCK_MODULE\n#include <Wire.h>\n#include <RTClib.h>\n#endif\n\n#include \"../glob.h\"\n\nboolean flashTgl = false;\nuint8_t fadeIDrl = 0;\n\n\nclass AptService {\n\n AmpTime *amp;\n CarSens *car;\n//\n// Clock\n boolean noClock = true;\n#ifdef USE_CLOCK_MODULE\n DS3231 rtc;\n#endif\n\npublic:\n/**\n *\n * @param _amp\n * @param _car\n */\n AptService(AmpTime &_amp, CarSens &_car) : amp(&_amp), car(&_car) {\n#ifdef USE_CLOCK_MODULE\n rtc = DS3231();\n#endif\n }\n\n void begin() {\n setupDRL();\n setupRTC();\n\n }\n\n\n void listener() {\n listenDRL();\n }\n\n/*******************************************************************************\n * RTC\n */\n\n void setupRTC() {\n#ifdef USE_CLOCK_MODULE\n if (!rtc.begin()) {\n Serial.println(F(\"Couldn't find RTC\"));\n }\n\n if (!rtc.isrunning()) {\n Serial.println(F(\"RTC lost power, resetting the time!\"));\n // following line sets the RTC to the date & time this sketch was compiled\n rtc.adjust(DateTime(F(__DATE__), F(__TIME__)));\n }\n noClock = (!rtc.isrunning()) ? true : false;\n#endif\n }\n\n/**\n *\n * @param h\n * @param m\n */\n void setClock(byte h, byte m) {\n if (noClock)\n return;\n#ifdef USE_CLOCK_MODULE\n rtc.adjust(DateTime(0, 0, 0, h, m, 0));\n#endif\n }\n\n/**\n *\n * @return char\n */\n const char *getClock() {\n\n if (noClock)\n return getPGM(0);\n\n char buf[60];\n#ifdef USE_CLOCK_MODULE\n //\n // Get clock\n DateTime now = rtc.now();\n strncpy(buf, pgm7, 60);\n Serial.println(now.format(buf));\n return now.format(buf);\n#endif\n }\n\n/**\n *\n * @return float\n */\n float getTemperature() {\n if (noClock)\n return 0;\n#ifdef USE_CLOCK_MODULE\n return rtc.getTemp();\n#endif\n }\n\nprotected:\n\n/*******************************************************************************\n * DRL\n */\n void setupDRL() {\n pinMode(DRL_PWM_PIN, OUTPUT);\n pinMode(DRL_PWR_PIN, OUTPUT);\n }\n\n/**\n * Testing method\n * @param amp\n * @param car\n */\n void listenDRL() {\n\n\n //\n // Initial demo\n if (millis() < 1600) {\n analogWrite(DRL_PWR_PIN, 255);\n if (amp->isBig()) {\n analogWrite(DRL_PWM_PIN, 0);\n }\n if (amp->isMax()) {\n analogWrite(DRL_PWM_PIN, 255);\n }\n }\n if (millis() < 2200 & millis() > 1800) {\n analogWrite(DRL_PWR_PIN, 0);\n }\n\n //\n // Regular work\n if (amp->isSecond()) {\n if (car->isRunEng()) {\n if (car->isDimOn()) {\n analogWrite(DRL_PWR_PIN, 0);\n analogWrite(DRL_PWM_PIN, 0);\n } else if (car->getVss() > 1) {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 255);\n } else {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 230);\n }\n } else {\n// analogWrite(DRL_PWR_PIN, 255);\n// if (amp->is5Seconds()) {\n// analogWrite(DRL_PWM_PIN, 255);\n// } else if (amp->isBig())\n// analogWrite(DRL_PWM_PIN, 0);\n }\n }\n\n //\n // Flash DRL attention\n if (amp->isSec() && car->isEmgBreak()) {\n analogWrite(DRL_PWR_PIN, 255);\n if (amp->isBig()) {\n analogWrite(DRL_PWM_PIN, 0);\n }\n if (amp->isMax()) {\n analogWrite(DRL_PWM_PIN, 255);\n }\n }\n }\n\n};\n\n\n#endif ", "parent": null, "children": [1, 2, 3, 6, 9, 17, 25, 35, 38, 44, 49, 483], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 204, "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": "RDUINOMID_ADTFUNC_H\n", "parent": 0, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 28}}, {"id": 3, "type": "preproc_def", "text": "define ARDUINOMID_ADTFUNC_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": "define ", "parent": 3, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 5, "type": "identifier", "text": "RDUINOMID_ADTFUNC_H\n", "parent": 3, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 28}}, {"id": 6, "type": "preproc_include", "text": "include <Arduino.h>\n\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": "Arduino.h>\n", "parent": 6, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 20}}, {"id": 9, "type": "preproc_ifdef", "text": "ifndef DRL_PWM_PIN\n#define DRL_PWM_PIN 7\n#endif\n", "parent": 0, "children": [10, 11, 12, 16], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 14, "column": 6}}, {"id": 10, "type": "#ifndef", "text": "ifndef ", "parent": 9, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 7}}, {"id": 11, "type": "identifier", "text": "RL_PWM_PIN\n", "parent": 9, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 19}}, {"id": 12, "type": "preproc_def", "text": "define DRL_PWM_PIN 7\n#", "parent": 9, "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": "RL_PWM_PIN ", "parent": 12, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 19}}, {"id": 15, "type": "preproc_arg", "text": "\n", "parent": 12, "children": [], "start_point": {"row": 13, "column": 20}, "end_point": {"row": 13, "column": 21}}, {"id": 16, "type": "#endif", "text": "endif\n", "parent": 9, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 6}}, {"id": 17, "type": "preproc_ifdef", "text": "ifndef DRL_PWR_PIN\n#define DRL_PWR_PIN 10\n#endif\n", "parent": 0, "children": [18, 19, 20, 24], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 17, "column": 6}}, {"id": 18, "type": "#ifndef", "text": "ifndef ", "parent": 17, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 7}}, {"id": 19, "type": "identifier", "text": "RL_PWR_PIN\n", "parent": 17, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 19}}, {"id": 20, "type": "preproc_def", "text": "define DRL_PWR_PIN 10\n#", "parent": 17, "children": [21, 22, 23], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 21, "type": "#define", "text": "define ", "parent": 20, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 7}}, {"id": 22, "type": "identifier", "text": "RL_PWR_PIN ", "parent": 20, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 19}}, {"id": 23, "type": "preproc_arg", "text": "0\n", "parent": 20, "children": [], "start_point": {"row": 16, "column": 20}, "end_point": {"row": 16, "column": 22}}, {"id": 24, "type": "#endif", "text": "endif\n", "parent": 17, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 6}}, {"id": 25, "type": "preproc_ifdef", "text": "ifdef USE_CLOCK_MODULE\n#include <Wire.h>\n#include <RTClib.h>\n#endif\n", "parent": 0, "children": [26, 27, 28, 31, 34], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 26, "column": 6}}, {"id": 26, "type": "#ifdef", "text": "ifdef ", "parent": 25, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 6}}, {"id": 27, "type": "identifier", "text": "SE_CLOCK_MODULE\n", "parent": 25, "children": [], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 23}}, {"id": 28, "type": "preproc_include", "text": "include <Wire.h>\n#", "parent": 25, "children": [29, 30], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 29, "type": "#include", "text": "include ", "parent": 28, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 8}}, {"id": 30, "type": "system_lib_string", "text": "Wire.h>\n", "parent": 28, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 17}}, {"id": 31, "type": "preproc_include", "text": "include <RTClib.h>\n#", "parent": 25, "children": [32, 33], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 32, "type": "#include", "text": "include ", "parent": 31, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 8}}, {"id": 33, "type": "system_lib_string", "text": "RTClib.h>\n", "parent": 31, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 19}}, {"id": 34, "type": "#endif", "text": "endif\n", "parent": 25, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 6}}, {"id": 35, "type": "preproc_include", "text": "include \"../glob.h\"\n\n", "parent": 0, "children": [36, 37], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 36, "type": "#include", "text": "include ", "parent": 35, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 8}}, {"id": 37, "type": "string_literal", "text": "../glob.h\"\n", "parent": 35, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 20}}, {"id": 38, "type": "declaration", "text": "oolean flashTgl = false;\n", "parent": 0, "children": [39, 40], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 25}}, {"id": 39, "type": "type_identifier", "text": "oolean ", "parent": 38, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 7}}, {"id": 40, "type": "init_declarator", "text": "lashTgl = false;", "parent": 38, "children": [41, 42, 43], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 24}}, {"id": 41, "type": "identifier", "text": "lashTgl ", "parent": 40, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 16}}, {"id": 42, "type": "=", "text": " ", "parent": 40, "children": [], "start_point": {"row": 30, "column": 17}, "end_point": {"row": 30, "column": 18}}, {"id": 43, "type": "false", "text": "alse;", "parent": 40, "children": [], "start_point": {"row": 30, "column": 19}, "end_point": {"row": 30, "column": 24}}, {"id": 44, "type": "declaration", "text": "int8_t fadeIDrl = 0;\n", "parent": 0, "children": [45, 46], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 21}}, {"id": 45, "type": "primitive_type", "text": "int8_t ", "parent": 44, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 7}}, {"id": 46, "type": "init_declarator", "text": "adeIDrl = 0;", "parent": 44, "children": [47, 48], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 20}}, {"id": 47, "type": "identifier", "text": "adeIDrl ", "parent": 46, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 16}}, {"id": 48, "type": "=", "text": " ", "parent": 46, "children": [], "start_point": {"row": 31, "column": 17}, "end_point": {"row": 31, "column": 18}}, {"id": 49, "type": "function_definition", "text": "lass AptService {\n\n AmpTime *amp;\n CarSens *car;\n//\n// Clock\n boolean noClock = true;\n#ifdef USE_CLOCK_MODULE\n DS3231 rtc;\n#endif\n\npublic:\n/**\n *\n * @param _amp\n * @param _car\n */\n AptService(AmpTime &_amp, CarSens &_car) : amp(&_amp), car(&_car) {\n#ifdef USE_CLOCK_MODULE\n rtc = DS3231();\n#endif\n }\n\n void begin() {\n setupDRL();\n setupRTC();\n\n }\n\n\n void listener() {\n listenDRL();\n }\n\n/*******************************************************************************\n * RTC\n */\n\n void setupRTC() {\n#ifdef USE_CLOCK_MODULE\n if (!rtc.begin()) {\n Serial.println(F(\"Couldn't find RTC\"));\n }\n\n if (!rtc.isrunning()) {\n Serial.println(F(\"RTC lost power, resetting the time!\"));\n // following line sets the RTC to the date & time this sketch was compiled\n rtc.adjust(DateTime(F(__DATE__), F(__TIME__)));\n }\n noClock = (!rtc.isrunning()) ? true : false;\n#endif\n }\n\n/**\n *\n * @param h\n * @param m\n */\n void setClock(byte h, byte m) {\n if (noClock)\n return;\n#ifdef USE_CLOCK_MODULE\n rtc.adjust(DateTime(0, 0, 0, h, m, 0));\n#endif\n }\n\n/**\n *\n * @return char\n */\n const char *getClock() {\n\n if (noClock)\n return getPGM(0);\n\n char buf[60];\n#ifdef USE_CLOCK_MODULE\n //\n // Get clock\n DateTime now = rtc.now();\n strncpy(buf, pgm7, 60);\n Serial.println(now.format(buf));\n return now.format(buf);\n#endif\n }\n\n/**\n *\n * @return float\n */\n float getTemperature() {\n if (noClock)\n return 0;\n#ifdef USE_CLOCK_MODULE\n return rtc.getTemp();\n#endif\n }\n\nprotected:\n\n/*******************************************************************************\n * DRL\n */\n void setupDRL() {\n pinMode(DRL_PWM_PIN, OUTPUT);\n pinMode(DRL_PWR_PIN, OUTPUT);\n }\n\n/**\n * Testing method\n * @param amp\n * @param car\n */\n void listenDRL() {\n\n\n //\n // Initial demo\n if (millis() < 1600) {\n analogWrite(DRL_PWR_PIN, 255);\n if (amp->isBig()) {\n analogWrite(DRL_PWM_PIN, 0);\n }\n if (amp->isMax()) {\n analogWrite(DRL_PWM_PIN, 255);\n }\n }\n if (millis() < 2200 & millis() > 1800) {\n analogWrite(DRL_PWR_PIN, 0);\n }\n\n //\n // Regular work\n if (amp->isSecond()) {\n if (car->isRunEng()) {\n if (car->isDimOn()) {\n analogWrite(DRL_PWR_PIN, 0);\n analogWrite(DRL_PWM_PIN, 0);\n } else if (car->getVss() > 1) {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 255);\n } else {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 230);\n }\n } else {\n// analogWrite(DRL_PWR_PIN, 255);\n// if (amp->is5Seconds()) {\n// analogWrite(DRL_PWM_PIN, 255);\n// } else if (amp->isBig())\n// analogWrite(DRL_PWM_PIN, 0);\n }\n }\n\n //\n // Flash DRL attention\n if (amp->isSec() && car->isEmgBreak()) {\n analogWrite(DRL_PWR_PIN, 255);\n if (amp->isBig()) {\n analogWrite(DRL_PWM_PIN, 0);\n }\n if (amp->isMax()) {\n analogWrite(DRL_PWM_PIN, 255);\n }\n }\n }\n\n};", "parent": 0, "children": [50, 51], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 201, "column": 1}}, {"id": 50, "type": "type_identifier", "text": "lass ", "parent": 49, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 5}}, {"id": 51, "type": "identifier", "text": "ptService ", "parent": 49, "children": [], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 16}}, {"id": 52, "type": "declaration", "text": "mpTime *amp;\n", "parent": 49, "children": [53, 54], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 17}}, {"id": 53, "type": "type_identifier", "text": "mpTime ", "parent": 52, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 11}}, {"id": 54, "type": "pointer_declarator", "text": "amp;", "parent": 52, "children": [55, 56], "start_point": {"row": 36, "column": 12}, "end_point": {"row": 36, "column": 16}}, {"id": 55, "type": "*", "text": "a", "parent": 54, "children": [], "start_point": {"row": 36, "column": 12}, "end_point": {"row": 36, "column": 13}}, {"id": 56, "type": "identifier", "text": "mp;", "parent": 54, "children": [], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 16}}, {"id": 57, "type": "declaration", "text": "arSens *car;\n", "parent": 49, "children": [58, 59], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 17}}, {"id": 58, "type": "type_identifier", "text": "arSens ", "parent": 57, "children": [], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 11}}, {"id": 59, "type": "pointer_declarator", "text": "car;", "parent": 57, "children": [60, 61], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 16}}, {"id": 60, "type": "*", "text": "c", "parent": 59, "children": [], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 13}}, {"id": 61, "type": "identifier", "text": "ar;", "parent": 59, "children": [], "start_point": {"row": 37, "column": 13}, "end_point": {"row": 37, "column": 16}}, {"id": 62, "type": "declaration", "text": "oolean noClock = true;\n", "parent": 49, "children": [63, 64], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 27}}, {"id": 63, "type": "type_identifier", "text": "oolean ", "parent": 62, "children": [], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 11}}, {"id": 64, "type": "init_declarator", "text": "oClock = true;", "parent": 62, "children": [65, 66, 67], "start_point": {"row": 40, "column": 12}, "end_point": {"row": 40, "column": 26}}, {"id": 65, "type": "identifier", "text": "oClock ", "parent": 64, "children": [], "start_point": {"row": 40, "column": 12}, "end_point": {"row": 40, "column": 19}}, {"id": 66, "type": "=", "text": " ", "parent": 64, "children": [], "start_point": {"row": 40, "column": 20}, "end_point": {"row": 40, "column": 21}}, {"id": 67, "type": "true", "text": "rue;", "parent": 64, "children": [], "start_point": {"row": 40, "column": 22}, "end_point": {"row": 40, "column": 26}}, {"id": 68, "type": "preproc_ifdef", "text": "ifdef USE_CLOCK_MODULE\n DS3231 rtc;\n#endif\n", "parent": 49, "children": [69, 70, 71, 74], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 43, "column": 6}}, {"id": 69, "type": "#ifdef", "text": "ifdef ", "parent": 68, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 6}}, {"id": 70, "type": "identifier", "text": "SE_CLOCK_MODULE\n", "parent": 68, "children": [], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 41, "column": 23}}, {"id": 71, "type": "declaration", "text": "S3231 rtc;\n", "parent": 68, "children": [72, 73], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 15}}, {"id": 72, "type": "type_identifier", "text": "S3231 ", "parent": 71, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 10}}, {"id": 73, "type": "identifier", "text": "tc;", "parent": 71, "children": [], "start_point": {"row": 42, "column": 11}, "end_point": {"row": 42, "column": 14}}, {"id": 74, "type": "#endif", "text": "endif\n", "parent": 68, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 6}}, {"id": 75, "type": "labeled_statement", "text": "ublic:\n/**\n *\n * @param _amp\n * @param _car\n */\n AptService(AmpTime &_amp, CarSens &_car) : amp(&_amp), car(&_car) {\n#ifdef USE_CLOCK_MODULE\n rtc = DS3231();\n#endif\n }\n", "parent": 49, "children": [76, 77], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 55, "column": 5}}, {"id": 76, "type": "statement_identifier", "text": "ublic:", "parent": 75, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 6}}, {"id": 77, "type": "ERROR", "text": "ptService(AmpTime &_amp, CarSens &_car) : amp(&_amp), car(&_car) ", "parent": 75, "children": [78, 89], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 69}}, {"id": 78, "type": "call_expression", "text": "ptService(AmpTime &_amp, CarSens &_car) ", "parent": 77, "children": [79, 80], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 44}}, {"id": 79, "type": "identifier", "text": "ptService(", "parent": 78, "children": [], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 14}}, {"id": 80, "type": "argument_list", "text": "AmpTime &_amp, CarSens &_car) ", "parent": 78, "children": [81, 85], "start_point": {"row": 51, "column": 14}, "end_point": {"row": 51, "column": 44}}, {"id": 81, "type": "binary_expression", "text": "mpTime &_amp,", "parent": 80, "children": [82, 83, 84], "start_point": {"row": 51, "column": 15}, "end_point": {"row": 51, "column": 28}}, {"id": 82, "type": "identifier", "text": "mpTime ", "parent": 81, "children": [], "start_point": {"row": 51, "column": 15}, "end_point": {"row": 51, "column": 22}}, {"id": 83, "type": "&", "text": "_", "parent": 81, "children": [], "start_point": {"row": 51, "column": 23}, "end_point": {"row": 51, "column": 24}}, {"id": 84, "type": "identifier", "text": "amp,", "parent": 81, "children": [], "start_point": {"row": 51, "column": 24}, "end_point": {"row": 51, "column": 28}}, {"id": 85, "type": "binary_expression", "text": "arSens &_car)", "parent": 80, "children": [86, 87, 88], "start_point": {"row": 51, "column": 30}, "end_point": {"row": 51, "column": 43}}, {"id": 86, "type": "identifier", "text": "arSens ", "parent": 85, "children": [], "start_point": {"row": 51, "column": 30}, "end_point": {"row": 51, "column": 37}}, {"id": 87, "type": "&", "text": "_", "parent": 85, "children": [], "start_point": {"row": 51, "column": 38}, "end_point": {"row": 51, "column": 39}}, {"id": 88, "type": "identifier", "text": "car)", "parent": 85, "children": [], "start_point": {"row": 51, "column": 39}, "end_point": {"row": 51, "column": 43}}, {"id": 89, "type": "comma_expression", "text": "mp(&_amp), car(&_car) ", "parent": 77, "children": [90, 96], "start_point": {"row": 51, "column": 47}, "end_point": {"row": 51, "column": 69}}, {"id": 90, "type": "call_expression", "text": "mp(&_amp),", "parent": 89, "children": [91, 92], "start_point": {"row": 51, "column": 47}, "end_point": {"row": 51, "column": 57}}, {"id": 91, "type": "identifier", "text": "mp(", "parent": 90, "children": [], "start_point": {"row": 51, "column": 47}, "end_point": {"row": 51, "column": 50}}, {"id": 92, "type": "argument_list", "text": "&_amp),", "parent": 90, "children": [93], "start_point": {"row": 51, "column": 50}, "end_point": {"row": 51, "column": 57}}, {"id": 93, "type": "pointer_expression", "text": "_amp)", "parent": 92, "children": [94, 95], "start_point": {"row": 51, "column": 51}, "end_point": {"row": 51, "column": 56}}, {"id": 94, "type": "&", "text": "_", "parent": 93, "children": [], "start_point": {"row": 51, "column": 51}, "end_point": {"row": 51, "column": 52}}, {"id": 95, "type": "identifier", "text": "amp)", "parent": 93, "children": [], "start_point": {"row": 51, "column": 52}, "end_point": {"row": 51, "column": 56}}, {"id": 96, "type": "call_expression", "text": "ar(&_car) ", "parent": 89, "children": [97, 98], "start_point": {"row": 51, "column": 59}, "end_point": {"row": 51, "column": 69}}, {"id": 97, "type": "identifier", "text": "ar(", "parent": 96, "children": [], "start_point": {"row": 51, "column": 59}, "end_point": {"row": 51, "column": 62}}, {"id": 98, "type": "argument_list", "text": "&_car) ", "parent": 96, "children": [99], "start_point": {"row": 51, "column": 62}, "end_point": {"row": 51, "column": 69}}, {"id": 99, "type": "pointer_expression", "text": "_car)", "parent": 98, "children": [100, 101], "start_point": {"row": 51, "column": 63}, "end_point": {"row": 51, "column": 68}}, {"id": 100, "type": "&", "text": "_", "parent": 99, "children": [], "start_point": {"row": 51, "column": 63}, "end_point": {"row": 51, "column": 64}}, {"id": 101, "type": "identifier", "text": "car)", "parent": 99, "children": [], "start_point": {"row": 51, "column": 64}, "end_point": {"row": 51, "column": 68}}, {"id": 102, "type": "preproc_ifdef", "text": "ifdef USE_CLOCK_MODULE\n rtc = DS3231();\n#endif\n", "parent": 75, "children": [103, 104, 111], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 54, "column": 6}}, {"id": 103, "type": "#ifdef", "text": "ifdef ", "parent": 102, "children": [], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 6}}, {"id": 104, "type": "identifier", "text": "SE_CLOCK_MODULE\n", "parent": 102, "children": [], "start_point": {"row": 52, "column": 7}, "end_point": {"row": 52, "column": 23}}, {"id": 105, "type": "assignment_expression", "text": "tc = DS3231();", "parent": 102, "children": [106, 107, 108], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 22}}, {"id": 106, "type": "identifier", "text": "tc ", "parent": 105, "children": [], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 11}}, {"id": 107, "type": "=", "text": " ", "parent": 105, "children": [], "start_point": {"row": 53, "column": 12}, "end_point": {"row": 53, "column": 13}}, {"id": 108, "type": "call_expression", "text": "S3231();", "parent": 105, "children": [109, 110], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 22}}, {"id": 109, "type": "identifier", "text": "S3231(", "parent": 108, "children": [], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 20}}, {"id": 110, "type": "argument_list", "text": ");", "parent": 108, "children": [], "start_point": {"row": 53, "column": 20}, "end_point": {"row": 53, "column": 22}}, {"id": 111, "type": "#endif", "text": "endif\n", "parent": 102, "children": [], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 6}}, {"id": 112, "type": "function_definition", "text": "oid begin() {\n setupDRL();\n setupRTC();\n\n }\n", "parent": 49, "children": [113, 114], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 61, "column": 5}}, {"id": 113, "type": "primitive_type", "text": "oid ", "parent": 112, "children": [], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 8}}, {"id": 114, "type": "function_declarator", "text": "egin() ", "parent": 112, "children": [115], "start_point": {"row": 57, "column": 9}, "end_point": {"row": 57, "column": 16}}, {"id": 115, "type": "identifier", "text": "egin(", "parent": 114, "children": [], "start_point": {"row": 57, "column": 9}, "end_point": {"row": 57, "column": 14}}, {"id": 116, "type": "call_expression", "text": "etupDRL();", "parent": 112, "children": [117, 118], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 18}}, {"id": 117, "type": "identifier", "text": "etupDRL(", "parent": 116, "children": [], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 16}}, {"id": 118, "type": "argument_list", "text": ");", "parent": 116, "children": [], "start_point": {"row": 58, "column": 16}, "end_point": {"row": 58, "column": 18}}, {"id": 119, "type": "call_expression", "text": "etupRTC();", "parent": 112, "children": [120, 121], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 18}}, {"id": 120, "type": "identifier", "text": "etupRTC(", "parent": 119, "children": [], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 16}}, {"id": 121, "type": "argument_list", "text": ");", "parent": 119, "children": [], "start_point": {"row": 59, "column": 16}, "end_point": {"row": 59, "column": 18}}, {"id": 122, "type": "function_definition", "text": "oid listener() {\n listenDRL();\n }\n", "parent": 49, "children": [123, 124], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 66, "column": 5}}, {"id": 123, "type": "primitive_type", "text": "oid ", "parent": 122, "children": [], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 8}}, {"id": 124, "type": "function_declarator", "text": "istener() ", "parent": 122, "children": [125], "start_point": {"row": 64, "column": 9}, "end_point": {"row": 64, "column": 19}}, {"id": 125, "type": "identifier", "text": "istener(", "parent": 124, "children": [], "start_point": {"row": 64, "column": 9}, "end_point": {"row": 64, "column": 17}}, {"id": 126, "type": "call_expression", "text": "istenDRL();", "parent": 122, "children": [127, 128], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 19}}, {"id": 127, "type": "identifier", "text": "istenDRL(", "parent": 126, "children": [], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 17}}, {"id": 128, "type": "argument_list", "text": ");", "parent": 126, "children": [], "start_point": {"row": 65, "column": 17}, "end_point": {"row": 65, "column": 19}}, {"id": 129, "type": "function_definition", "text": "oid setupRTC() {\n#ifdef USE_CLOCK_MODULE\n if (!rtc.begin()) {\n Serial.println(F(\"Couldn't find RTC\"));\n }\n\n if (!rtc.isrunning()) {\n Serial.println(F(\"RTC lost power, resetting the time!\"));\n // following line sets the RTC to the date & time this sketch was compiled\n rtc.adjust(DateTime(F(__DATE__), F(__TIME__)));\n }\n noClock = (!rtc.isrunning()) ? true : false;\n#endif\n }\n", "parent": 49, "children": [130, 131], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 85, "column": 5}}, {"id": 130, "type": "primitive_type", "text": "oid ", "parent": 129, "children": [], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 8}}, {"id": 131, "type": "function_declarator", "text": "etupRTC() ", "parent": 129, "children": [132], "start_point": {"row": 72, "column": 9}, "end_point": {"row": 72, "column": 19}}, {"id": 132, "type": "identifier", "text": "etupRTC(", "parent": 131, "children": [], "start_point": {"row": 72, "column": 9}, "end_point": {"row": 72, "column": 17}}, {"id": 133, "type": "preproc_ifdef", "text": "ifdef USE_CLOCK_MODULE\n if (!rtc.begin()) {\n Serial.println(F(\"Couldn't find RTC\"));\n }\n\n if (!rtc.isrunning()) {\n Serial.println(F(\"RTC lost power, resetting the time!\"));\n // following line sets the RTC to the date & time this sketch was compiled\n rtc.adjust(DateTime(F(__DATE__), F(__TIME__)));\n }\n noClock = (!rtc.isrunning()) ? true : false;\n#endif\n", "parent": 129, "children": [134, 135, 136, 153, 199], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 84, "column": 6}}, {"id": 134, "type": "#ifdef", "text": "ifdef ", "parent": 133, "children": [], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 6}}, {"id": 135, "type": "identifier", "text": "SE_CLOCK_MODULE\n", "parent": 133, "children": [], "start_point": {"row": 73, "column": 7}, "end_point": {"row": 73, "column": 23}}, {"id": 136, "type": "if_statement", "text": "f (!rtc.begin()) {\n Serial.println(F(\"Couldn't find RTC\"));\n }\n", "parent": 133, "children": [137], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 76, "column": 9}}, {"id": 137, "type": "parenthesized_expression", "text": "!rtc.begin()) ", "parent": 136, "children": [138], "start_point": {"row": 74, "column": 11}, "end_point": {"row": 74, "column": 25}}, {"id": 138, "type": "unary_expression", "text": "rtc.begin())", "parent": 137, "children": [139, 140], "start_point": {"row": 74, "column": 12}, "end_point": {"row": 74, "column": 24}}, {"id": 139, "type": "!", "text": "r", "parent": 138, "children": [], "start_point": {"row": 74, "column": 12}, "end_point": {"row": 74, "column": 13}}, {"id": 140, "type": "call_expression", "text": "tc.begin())", "parent": 138, "children": [141, 144], "start_point": {"row": 74, "column": 13}, "end_point": {"row": 74, "column": 24}}, {"id": 141, "type": "field_expression", "text": "tc.begin(", "parent": 140, "children": [142, 143], "start_point": {"row": 74, "column": 13}, "end_point": {"row": 74, "column": 22}}, {"id": 142, "type": "identifier", "text": "tc.", "parent": 141, "children": [], "start_point": {"row": 74, "column": 13}, "end_point": {"row": 74, "column": 16}}, {"id": 143, "type": "field_identifier", "text": "egin(", "parent": 141, "children": [], "start_point": {"row": 74, "column": 17}, "end_point": {"row": 74, "column": 22}}, {"id": 144, "type": "argument_list", "text": "))", "parent": 140, "children": [], "start_point": {"row": 74, "column": 22}, "end_point": {"row": 74, "column": 24}}, {"id": 145, "type": "call_expression", "text": "erial.println(F(\"Couldn't find RTC\"));", "parent": 136, "children": [146, 149], "start_point": {"row": 75, "column": 12}, "end_point": {"row": 75, "column": 50}}, {"id": 146, "type": "field_expression", "text": "erial.println(", "parent": 145, "children": [147, 148], "start_point": {"row": 75, "column": 12}, "end_point": {"row": 75, "column": 26}}, {"id": 147, "type": "identifier", "text": "erial.", "parent": 146, "children": [], "start_point": {"row": 75, "column": 12}, "end_point": {"row": 75, "column": 18}}, {"id": 148, "type": "field_identifier", "text": "rintln(", "parent": 146, "children": [], "start_point": {"row": 75, "column": 19}, "end_point": {"row": 75, "column": 26}}, {"id": 149, "type": "argument_list", "text": "F(\"Couldn't find RTC\"));", "parent": 145, "children": [150], "start_point": {"row": 75, "column": 26}, "end_point": {"row": 75, "column": 50}}, {"id": 150, "type": "call_expression", "text": "(\"Couldn't find RTC\"))", "parent": 149, "children": [151], "start_point": {"row": 75, "column": 27}, "end_point": {"row": 75, "column": 49}}, {"id": 151, "type": "argument_list", "text": "\"Couldn't find RTC\"))", "parent": 150, "children": [152], "start_point": {"row": 75, "column": 28}, "end_point": {"row": 75, "column": 49}}, {"id": 152, "type": "string_literal", "text": "Couldn't find RTC\")", "parent": 151, "children": [], "start_point": {"row": 75, "column": 29}, "end_point": {"row": 75, "column": 48}}, {"id": 153, "type": "if_statement", "text": "f (!rtc.isrunning()) {\n Serial.println(F(\"RTC lost power, resetting the time!\"));\n // following line sets the RTC to the date & time this sketch was compiled\n rtc.adjust(DateTime(F(__DATE__), F(__TIME__)));\n }\n", "parent": 133, "children": [154], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 82, "column": 9}}, {"id": 154, "type": "parenthesized_expression", "text": "!rtc.isrunning()) ", "parent": 153, "children": [155], "start_point": {"row": 78, "column": 11}, "end_point": {"row": 78, "column": 29}}, {"id": 155, "type": "unary_expression", "text": "rtc.isrunning())", "parent": 154, "children": [156, 157], "start_point": {"row": 78, "column": 12}, "end_point": {"row": 78, "column": 28}}, {"id": 156, "type": "!", "text": "r", "parent": 155, "children": [], "start_point": {"row": 78, "column": 12}, "end_point": {"row": 78, "column": 13}}, {"id": 157, "type": "call_expression", "text": "tc.isrunning())", "parent": 155, "children": [158, 161], "start_point": {"row": 78, "column": 13}, "end_point": {"row": 78, "column": 28}}, {"id": 158, "type": "field_expression", "text": "tc.isrunning(", "parent": 157, "children": [159, 160], "start_point": {"row": 78, "column": 13}, "end_point": {"row": 78, "column": 26}}, {"id": 159, "type": "identifier", "text": "tc.", "parent": 158, "children": [], "start_point": {"row": 78, "column": 13}, "end_point": {"row": 78, "column": 16}}, {"id": 160, "type": "field_identifier", "text": "srunning(", "parent": 158, "children": [], "start_point": {"row": 78, "column": 17}, "end_point": {"row": 78, "column": 26}}, {"id": 161, "type": "argument_list", "text": "))", "parent": 157, "children": [], "start_point": {"row": 78, "column": 26}, "end_point": {"row": 78, "column": 28}}, {"id": 162, "type": "call_expression", "text": "erial.println(F(\"RTC lost power, resetting the time!\"));", "parent": 153, "children": [163, 166], "start_point": {"row": 79, "column": 12}, "end_point": {"row": 79, "column": 69}}, {"id": 163, "type": "field_expression", "text": "erial.println(", "parent": 162, "children": [164, 165], "start_point": {"row": 79, "column": 12}, "end_point": {"row": 79, "column": 26}}, {"id": 164, "type": "identifier", "text": "erial.", "parent": 163, "children": [], "start_point": {"row": 79, "column": 12}, "end_point": {"row": 79, "column": 18}}, {"id": 165, "type": "field_identifier", "text": "rintln(", "parent": 163, "children": [], "start_point": {"row": 79, "column": 19}, "end_point": {"row": 79, "column": 26}}, {"id": 166, "type": "argument_list", "text": "F(\"RTC lost power, resetting the time!\"));", "parent": 162, "children": [167], "start_point": {"row": 79, "column": 26}, "end_point": {"row": 79, "column": 69}}, {"id": 167, "type": "call_expression", "text": "(\"RTC lost power, resetting the time!\"))", "parent": 166, "children": [168], "start_point": {"row": 79, "column": 27}, "end_point": {"row": 79, "column": 68}}, {"id": 168, "type": "argument_list", "text": "\"RTC lost power, resetting the time!\"))", "parent": 167, "children": [169], "start_point": {"row": 79, "column": 28}, "end_point": {"row": 79, "column": 68}}, {"id": 169, "type": "string_literal", "text": "RTC lost power, resetting the time!\")", "parent": 168, "children": [], "start_point": {"row": 79, "column": 29}, "end_point": {"row": 79, "column": 67}}, {"id": 170, "type": "call_expression", "text": "tc.adjust(DateTime(F(__DATE__), F(__TIME__)));", "parent": 153, "children": [171, 174], "start_point": {"row": 81, "column": 12}, "end_point": {"row": 81, "column": 58}}, {"id": 171, "type": "field_expression", "text": "tc.adjust(", "parent": 170, "children": [172, 173], "start_point": {"row": 81, "column": 12}, "end_point": {"row": 81, "column": 22}}, {"id": 172, "type": "identifier", "text": "tc.", "parent": 171, "children": [], "start_point": {"row": 81, "column": 12}, "end_point": {"row": 81, "column": 15}}, {"id": 173, "type": "field_identifier", "text": "djust(", "parent": 171, "children": [], "start_point": {"row": 81, "column": 16}, "end_point": {"row": 81, "column": 22}}, {"id": 174, "type": "argument_list", "text": "DateTime(F(__DATE__), F(__TIME__)));", "parent": 170, "children": [175], "start_point": {"row": 81, "column": 22}, "end_point": {"row": 81, "column": 58}}, {"id": 175, "type": "call_expression", "text": "ateTime(F(__DATE__), F(__TIME__)))", "parent": 174, "children": [176, 177], "start_point": {"row": 81, "column": 23}, "end_point": {"row": 81, "column": 57}}, {"id": 176, "type": "identifier", "text": "ateTime(", "parent": 175, "children": [], "start_point": {"row": 81, "column": 23}, "end_point": {"row": 81, "column": 31}}, {"id": 177, "type": "argument_list", "text": "F(__DATE__), F(__TIME__)))", "parent": 175, "children": [178, 181], "start_point": {"row": 81, "column": 31}, "end_point": {"row": 81, "column": 57}}, {"id": 178, "type": "call_expression", "text": "(__DATE__),", "parent": 177, "children": [179], "start_point": {"row": 81, "column": 32}, "end_point": {"row": 81, "column": 43}}, {"id": 179, "type": "argument_list", "text": "__DATE__),", "parent": 178, "children": [180], "start_point": {"row": 81, "column": 33}, "end_point": {"row": 81, "column": 43}}, {"id": 180, "type": "identifier", "text": "_DATE__)", "parent": 179, "children": [], "start_point": {"row": 81, "column": 34}, "end_point": {"row": 81, "column": 42}}, {"id": 181, "type": "call_expression", "text": "(__TIME__))", "parent": 177, "children": [182], "start_point": {"row": 81, "column": 45}, "end_point": {"row": 81, "column": 56}}, {"id": 182, "type": "argument_list", "text": "__TIME__))", "parent": 181, "children": [183], "start_point": {"row": 81, "column": 46}, "end_point": {"row": 81, "column": 56}}, {"id": 183, "type": "identifier", "text": "_TIME__)", "parent": 182, "children": [], "start_point": {"row": 81, "column": 47}, "end_point": {"row": 81, "column": 55}}, {"id": 184, "type": "assignment_expression", "text": "oClock = (!rtc.isrunning()) ? true : false;", "parent": 133, "children": [185, 186, 187], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 83, "column": 51}}, {"id": 185, "type": "identifier", "text": "oClock ", "parent": 184, "children": [], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 83, "column": 15}}, {"id": 186, "type": "=", "text": " ", "parent": 184, "children": [], "start_point": {"row": 83, "column": 16}, "end_point": {"row": 83, "column": 17}}, {"id": 187, "type": "conditional_expression", "text": "!rtc.isrunning()) ? true : false;", "parent": 184, "children": [188, 196, 197, 198], "start_point": {"row": 83, "column": 18}, "end_point": {"row": 83, "column": 51}}, {"id": 188, "type": "parenthesized_expression", "text": "!rtc.isrunning()) ", "parent": 187, "children": [189], "start_point": {"row": 83, "column": 18}, "end_point": {"row": 83, "column": 36}}, {"id": 189, "type": "unary_expression", "text": "rtc.isrunning())", "parent": 188, "children": [190, 191], "start_point": {"row": 83, "column": 19}, "end_point": {"row": 83, "column": 35}}, {"id": 190, "type": "!", "text": "r", "parent": 189, "children": [], "start_point": {"row": 83, "column": 19}, "end_point": {"row": 83, "column": 20}}, {"id": 191, "type": "call_expression", "text": "tc.isrunning())", "parent": 189, "children": [192, 195], "start_point": {"row": 83, "column": 20}, "end_point": {"row": 83, "column": 35}}, {"id": 192, "type": "field_expression", "text": "tc.isrunning(", "parent": 191, "children": [193, 194], "start_point": {"row": 83, "column": 20}, "end_point": {"row": 83, "column": 33}}, {"id": 193, "type": "identifier", "text": "tc.", "parent": 192, "children": [], "start_point": {"row": 83, "column": 20}, "end_point": {"row": 83, "column": 23}}, {"id": 194, "type": "field_identifier", "text": "srunning(", "parent": 192, "children": [], "start_point": {"row": 83, "column": 24}, "end_point": {"row": 83, "column": 33}}, {"id": 195, "type": "argument_list", "text": "))", "parent": 191, "children": [], "start_point": {"row": 83, "column": 33}, "end_point": {"row": 83, "column": 35}}, {"id": 196, "type": "?", "text": " ", "parent": 187, "children": [], "start_point": {"row": 83, "column": 37}, "end_point": {"row": 83, "column": 38}}, {"id": 197, "type": "true", "text": "rue ", "parent": 187, "children": [], "start_point": {"row": 83, "column": 39}, "end_point": {"row": 83, "column": 43}}, {"id": 198, "type": "false", "text": "alse;", "parent": 187, "children": [], "start_point": {"row": 83, "column": 46}, "end_point": {"row": 83, "column": 51}}, {"id": 199, "type": "#endif", "text": "endif\n", "parent": 133, "children": [], "start_point": {"row": 84, "column": 0}, "end_point": {"row": 84, "column": 6}}, {"id": 200, "type": "function_definition", "text": "oid setClock(byte h, byte m) {\n if (noClock)\n return;\n#ifdef USE_CLOCK_MODULE\n rtc.adjust(DateTime(0, 0, 0, h, m, 0));\n#endif\n }\n", "parent": 49, "children": [201, 202], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 98, "column": 5}}, {"id": 201, "type": "primitive_type", "text": "oid ", "parent": 200, "children": [], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 8}}, {"id": 202, "type": "function_declarator", "text": "etClock(byte h, byte m) ", "parent": 200, "children": [203, 204], "start_point": {"row": 92, "column": 9}, "end_point": {"row": 92, "column": 33}}, {"id": 203, "type": "identifier", "text": "etClock(", "parent": 202, "children": [], "start_point": {"row": 92, "column": 9}, "end_point": {"row": 92, "column": 17}}, {"id": 204, "type": "parameter_list", "text": "byte h, byte m) ", "parent": 202, "children": [205, 207], "start_point": {"row": 92, "column": 17}, "end_point": {"row": 92, "column": 33}}, {"id": 205, "type": "parameter_declaration", "text": "yte h,", "parent": 204, "children": [206], "start_point": {"row": 92, "column": 18}, "end_point": {"row": 92, "column": 24}}, {"id": 206, "type": "type_identifier", "text": "yte ", "parent": 205, "children": [], "start_point": {"row": 92, "column": 18}, "end_point": {"row": 92, "column": 22}}, {"id": 207, "type": "parameter_declaration", "text": "yte m)", "parent": 204, "children": [208], "start_point": {"row": 92, "column": 26}, "end_point": {"row": 92, "column": 32}}, {"id": 208, "type": "type_identifier", "text": "yte ", "parent": 207, "children": [], "start_point": {"row": 92, "column": 26}, "end_point": {"row": 92, "column": 30}}, {"id": 209, "type": "if_statement", "text": "f (noClock)\n return;\n", "parent": 200, "children": [210, 212], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 94, "column": 19}}, {"id": 210, "type": "parenthesized_expression", "text": "noClock)\n", "parent": 209, "children": [211], "start_point": {"row": 93, "column": 11}, "end_point": {"row": 93, "column": 20}}, {"id": 211, "type": "identifier", "text": "oClock)", "parent": 210, "children": [], "start_point": {"row": 93, "column": 12}, "end_point": {"row": 93, "column": 19}}, {"id": 212, "type": "return_statement", "text": "eturn;\n", "parent": 209, "children": [], "start_point": {"row": 94, "column": 12}, "end_point": {"row": 94, "column": 19}}, {"id": 213, "type": "preproc_ifdef", "text": "ifdef USE_CLOCK_MODULE\n rtc.adjust(DateTime(0, 0, 0, h, m, 0));\n#endif\n", "parent": 200, "children": [214, 215, 224], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 97, "column": 6}}, {"id": 214, "type": "#ifdef", "text": "ifdef ", "parent": 213, "children": [], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 95, "column": 6}}, {"id": 215, "type": "identifier", "text": "SE_CLOCK_MODULE\n", "parent": 213, "children": [], "start_point": {"row": 95, "column": 7}, "end_point": {"row": 95, "column": 23}}, {"id": 216, "type": "call_expression", "text": "tc.adjust(DateTime(0, 0, 0, h, m, 0));", "parent": 213, "children": [217, 220], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 46}}, {"id": 217, "type": "field_expression", "text": "tc.adjust(", "parent": 216, "children": [218, 219], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 18}}, {"id": 218, "type": "identifier", "text": "tc.", "parent": 217, "children": [], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 11}}, {"id": 219, "type": "field_identifier", "text": "djust(", "parent": 217, "children": [], "start_point": {"row": 96, "column": 12}, "end_point": {"row": 96, "column": 18}}, {"id": 220, "type": "argument_list", "text": "DateTime(0, 0, 0, h, m, 0));", "parent": 216, "children": [221], "start_point": {"row": 96, "column": 18}, "end_point": {"row": 96, "column": 46}}, {"id": 221, "type": "call_expression", "text": "ateTime(0, 0, 0, h, m, 0))", "parent": 220, "children": [222, 223], "start_point": {"row": 96, "column": 19}, "end_point": {"row": 96, "column": 45}}, {"id": 222, "type": "identifier", "text": "ateTime(", "parent": 221, "children": [], "start_point": {"row": 96, "column": 19}, "end_point": {"row": 96, "column": 27}}, {"id": 223, "type": "argument_list", "text": "0, 0, 0, h, m, 0))", "parent": 221, "children": [], "start_point": {"row": 96, "column": 27}, "end_point": {"row": 96, "column": 45}}, {"id": 224, "type": "#endif", "text": "endif\n", "parent": 213, "children": [], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 97, "column": 6}}, {"id": 225, "type": "function_definition", "text": "onst char *getClock() {\n\n if (noClock)\n return getPGM(0);\n\n char buf[60];\n#ifdef USE_CLOCK_MODULE\n //\n // Get clock\n DateTime now = rtc.now();\n strncpy(buf, pgm7, 60);\n Serial.println(now.format(buf));\n return now.format(buf);\n#endif\n }\n", "parent": 49, "children": [226, 227, 228], "start_point": {"row": 104, "column": 4}, "end_point": {"row": 118, "column": 5}}, {"id": 226, "type": "type_qualifier", "text": "onst ", "parent": 225, "children": [], "start_point": {"row": 104, "column": 4}, "end_point": {"row": 104, "column": 9}}, {"id": 227, "type": "primitive_type", "text": "har ", "parent": 225, "children": [], "start_point": {"row": 104, "column": 10}, "end_point": {"row": 104, "column": 14}}, {"id": 228, "type": "pointer_declarator", "text": "getClock() ", "parent": 225, "children": [229, 230], "start_point": {"row": 104, "column": 15}, "end_point": {"row": 104, "column": 26}}, {"id": 229, "type": "*", "text": "g", "parent": 228, "children": [], "start_point": {"row": 104, "column": 15}, "end_point": {"row": 104, "column": 16}}, {"id": 230, "type": "function_declarator", "text": "etClock() ", "parent": 228, "children": [231], "start_point": {"row": 104, "column": 16}, "end_point": {"row": 104, "column": 26}}, {"id": 231, "type": "identifier", "text": "etClock(", "parent": 230, "children": [], "start_point": {"row": 104, "column": 16}, "end_point": {"row": 104, "column": 24}}, {"id": 232, "type": "if_statement", "text": "f (noClock)\n return getPGM(0);\n", "parent": 225, "children": [233, 235], "start_point": {"row": 106, "column": 8}, "end_point": {"row": 107, "column": 29}}, {"id": 233, "type": "parenthesized_expression", "text": "noClock)\n", "parent": 232, "children": [234], "start_point": {"row": 106, "column": 11}, "end_point": {"row": 106, "column": 20}}, {"id": 234, "type": "identifier", "text": "oClock)", "parent": 233, "children": [], "start_point": {"row": 106, "column": 12}, "end_point": {"row": 106, "column": 19}}, {"id": 235, "type": "return_statement", "text": "eturn getPGM(0);\n", "parent": 232, "children": [236], "start_point": {"row": 107, "column": 12}, "end_point": {"row": 107, "column": 29}}, {"id": 236, "type": "call_expression", "text": "etPGM(0);", "parent": 235, "children": [237, 238], "start_point": {"row": 107, "column": 19}, "end_point": {"row": 107, "column": 28}}, {"id": 237, "type": "identifier", "text": "etPGM(", "parent": 236, "children": [], "start_point": {"row": 107, "column": 19}, "end_point": {"row": 107, "column": 25}}, {"id": 238, "type": "argument_list", "text": "0);", "parent": 236, "children": [], "start_point": {"row": 107, "column": 25}, "end_point": {"row": 107, "column": 28}}, {"id": 239, "type": "declaration", "text": "har buf[60];\n", "parent": 225, "children": [240, 241], "start_point": {"row": 109, "column": 8}, "end_point": {"row": 109, "column": 21}}, {"id": 240, "type": "primitive_type", "text": "har ", "parent": 239, "children": [], "start_point": {"row": 109, "column": 8}, "end_point": {"row": 109, "column": 12}}, {"id": 241, "type": "array_declarator", "text": "uf[60];", "parent": 239, "children": [242, 243], "start_point": {"row": 109, "column": 13}, "end_point": {"row": 109, "column": 20}}, {"id": 242, "type": "identifier", "text": "uf[", "parent": 241, "children": [], "start_point": {"row": 109, "column": 13}, "end_point": {"row": 109, "column": 16}}, {"id": 243, "type": "number_literal", "text": "0]", "parent": 241, "children": [], "start_point": {"row": 109, "column": 17}, "end_point": {"row": 109, "column": 19}}, {"id": 244, "type": "preproc_ifdef", "text": "ifdef USE_CLOCK_MODULE\n //\n // Get clock\n DateTime now = rtc.now();\n strncpy(buf, pgm7, 60);\n Serial.println(now.format(buf));\n return now.format(buf);\n#endif\n", "parent": 225, "children": [245, 246, 247, 274, 281], "start_point": {"row": 110, "column": 0}, "end_point": {"row": 117, "column": 6}}, {"id": 245, "type": "#ifdef", "text": "ifdef ", "parent": 244, "children": [], "start_point": {"row": 110, "column": 0}, "end_point": {"row": 110, "column": 6}}, {"id": 246, "type": "identifier", "text": "SE_CLOCK_MODULE\n", "parent": 244, "children": [], "start_point": {"row": 110, "column": 7}, "end_point": {"row": 110, "column": 23}}, {"id": 247, "type": "declaration", "text": "ateTime now = rtc.now();\n", "parent": 244, "children": [248, 249], "start_point": {"row": 113, "column": 8}, "end_point": {"row": 113, "column": 33}}, {"id": 248, "type": "type_identifier", "text": "ateTime ", "parent": 247, "children": [], "start_point": {"row": 113, "column": 8}, "end_point": {"row": 113, "column": 16}}, {"id": 249, "type": "init_declarator", "text": "ow = rtc.now();", "parent": 247, "children": [250, 251, 252], "start_point": {"row": 113, "column": 17}, "end_point": {"row": 113, "column": 32}}, {"id": 250, "type": "identifier", "text": "ow ", "parent": 249, "children": [], "start_point": {"row": 113, "column": 17}, "end_point": {"row": 113, "column": 20}}, {"id": 251, "type": "=", "text": " ", "parent": 249, "children": [], "start_point": {"row": 113, "column": 21}, "end_point": {"row": 113, "column": 22}}, {"id": 252, "type": "call_expression", "text": "tc.now();", "parent": 249, "children": [253, 256], "start_point": {"row": 113, "column": 23}, "end_point": {"row": 113, "column": 32}}, {"id": 253, "type": "field_expression", "text": "tc.now(", "parent": 252, "children": [254, 255], "start_point": {"row": 113, "column": 23}, "end_point": {"row": 113, "column": 30}}, {"id": 254, "type": "identifier", "text": "tc.", "parent": 253, "children": [], "start_point": {"row": 113, "column": 23}, "end_point": {"row": 113, "column": 26}}, {"id": 255, "type": "field_identifier", "text": "ow(", "parent": 253, "children": [], "start_point": {"row": 113, "column": 27}, "end_point": {"row": 113, "column": 30}}, {"id": 256, "type": "argument_list", "text": ");", "parent": 252, "children": [], "start_point": {"row": 113, "column": 30}, "end_point": {"row": 113, "column": 32}}, {"id": 257, "type": "call_expression", "text": "trncpy(buf, pgm7, 60);", "parent": 244, "children": [258, 259], "start_point": {"row": 114, "column": 8}, "end_point": {"row": 114, "column": 30}}, {"id": 258, "type": "identifier", "text": "trncpy(", "parent": 257, "children": [], "start_point": {"row": 114, "column": 8}, "end_point": {"row": 114, "column": 15}}, {"id": 259, "type": "argument_list", "text": "buf, pgm7, 60);", "parent": 257, "children": [260, 261, 262], "start_point": {"row": 114, "column": 15}, "end_point": {"row": 114, "column": 30}}, {"id": 260, "type": "identifier", "text": "uf,", "parent": 259, "children": [], "start_point": {"row": 114, "column": 16}, "end_point": {"row": 114, "column": 19}}, {"id": 261, "type": "identifier", "text": "gm7,", "parent": 259, "children": [], "start_point": {"row": 114, "column": 21}, "end_point": {"row": 114, "column": 25}}, {"id": 262, "type": "number_literal", "text": "0)", "parent": 259, "children": [], "start_point": {"row": 114, "column": 27}, "end_point": {"row": 114, "column": 29}}, {"id": 263, "type": "call_expression", "text": "erial.println(now.format(buf));", "parent": 244, "children": [264, 267], "start_point": {"row": 115, "column": 8}, "end_point": {"row": 115, "column": 39}}, {"id": 264, "type": "field_expression", "text": "erial.println(", "parent": 263, "children": [265, 266], "start_point": {"row": 115, "column": 8}, "end_point": {"row": 115, "column": 22}}, {"id": 265, "type": "identifier", "text": "erial.", "parent": 264, "children": [], "start_point": {"row": 115, "column": 8}, "end_point": {"row": 115, "column": 14}}, {"id": 266, "type": "field_identifier", "text": "rintln(", "parent": 264, "children": [], "start_point": {"row": 115, "column": 15}, "end_point": {"row": 115, "column": 22}}, {"id": 267, "type": "argument_list", "text": "now.format(buf));", "parent": 263, "children": [268], "start_point": {"row": 115, "column": 22}, "end_point": {"row": 115, "column": 39}}, {"id": 268, "type": "call_expression", "text": "ow.format(buf))", "parent": 267, "children": [269, 272], "start_point": {"row": 115, "column": 23}, "end_point": {"row": 115, "column": 38}}, {"id": 269, "type": "field_expression", "text": "ow.format(", "parent": 268, "children": [270, 271], "start_point": {"row": 115, "column": 23}, "end_point": {"row": 115, "column": 33}}, {"id": 270, "type": "identifier", "text": "ow.", "parent": 269, "children": [], "start_point": {"row": 115, "column": 23}, "end_point": {"row": 115, "column": 26}}, {"id": 271, "type": "field_identifier", "text": "ormat(", "parent": 269, "children": [], "start_point": {"row": 115, "column": 27}, "end_point": {"row": 115, "column": 33}}, {"id": 272, "type": "argument_list", "text": "buf))", "parent": 268, "children": [273], "start_point": {"row": 115, "column": 33}, "end_point": {"row": 115, "column": 38}}, {"id": 273, "type": "identifier", "text": "uf)", "parent": 272, "children": [], "start_point": {"row": 115, "column": 34}, "end_point": {"row": 115, "column": 37}}, {"id": 274, "type": "return_statement", "text": "eturn now.format(buf);\n", "parent": 244, "children": [275], "start_point": {"row": 116, "column": 8}, "end_point": {"row": 116, "column": 31}}, {"id": 275, "type": "call_expression", "text": "ow.format(buf);", "parent": 274, "children": [276, 279], "start_point": {"row": 116, "column": 15}, "end_point": {"row": 116, "column": 30}}, {"id": 276, "type": "field_expression", "text": "ow.format(", "parent": 275, "children": [277, 278], "start_point": {"row": 116, "column": 15}, "end_point": {"row": 116, "column": 25}}, {"id": 277, "type": "identifier", "text": "ow.", "parent": 276, "children": [], "start_point": {"row": 116, "column": 15}, "end_point": {"row": 116, "column": 18}}, {"id": 278, "type": "field_identifier", "text": "ormat(", "parent": 276, "children": [], "start_point": {"row": 116, "column": 19}, "end_point": {"row": 116, "column": 25}}, {"id": 279, "type": "argument_list", "text": "buf);", "parent": 275, "children": [280], "start_point": {"row": 116, "column": 25}, "end_point": {"row": 116, "column": 30}}, {"id": 280, "type": "identifier", "text": "uf)", "parent": 279, "children": [], "start_point": {"row": 116, "column": 26}, "end_point": {"row": 116, "column": 29}}, {"id": 281, "type": "#endif", "text": "endif\n", "parent": 244, "children": [], "start_point": {"row": 117, "column": 0}, "end_point": {"row": 117, "column": 6}}, {"id": 282, "type": "function_definition", "text": "loat getTemperature() {\n if (noClock)\n return 0;\n#ifdef USE_CLOCK_MODULE\n return rtc.getTemp();\n#endif\n }\n", "parent": 49, "children": [283, 284], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 130, "column": 5}}, {"id": 283, "type": "primitive_type", "text": "loat ", "parent": 282, "children": [], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 124, "column": 9}}, {"id": 284, "type": "function_declarator", "text": "etTemperature() ", "parent": 282, "children": [285], "start_point": {"row": 124, "column": 10}, "end_point": {"row": 124, "column": 26}}, {"id": 285, "type": "identifier", "text": "etTemperature(", "parent": 284, "children": [], "start_point": {"row": 124, "column": 10}, "end_point": {"row": 124, "column": 24}}, {"id": 286, "type": "if_statement", "text": "f (noClock)\n return 0;\n", "parent": 282, "children": [287, 289], "start_point": {"row": 125, "column": 8}, "end_point": {"row": 126, "column": 21}}, {"id": 287, "type": "parenthesized_expression", "text": "noClock)\n", "parent": 286, "children": [288], "start_point": {"row": 125, "column": 11}, "end_point": {"row": 125, "column": 20}}, {"id": 288, "type": "identifier", "text": "oClock)", "parent": 287, "children": [], "start_point": {"row": 125, "column": 12}, "end_point": {"row": 125, "column": 19}}, {"id": 289, "type": "return_statement", "text": "eturn 0;\n", "parent": 286, "children": [], "start_point": {"row": 126, "column": 12}, "end_point": {"row": 126, "column": 21}}, {"id": 290, "type": "preproc_ifdef", "text": "ifdef USE_CLOCK_MODULE\n return rtc.getTemp();\n#endif\n", "parent": 282, "children": [291, 292, 293, 299], "start_point": {"row": 127, "column": 0}, "end_point": {"row": 129, "column": 6}}, {"id": 291, "type": "#ifdef", "text": "ifdef ", "parent": 290, "children": [], "start_point": {"row": 127, "column": 0}, "end_point": {"row": 127, "column": 6}}, {"id": 292, "type": "identifier", "text": "SE_CLOCK_MODULE\n", "parent": 290, "children": [], "start_point": {"row": 127, "column": 7}, "end_point": {"row": 127, "column": 23}}, {"id": 293, "type": "return_statement", "text": "eturn rtc.getTemp();\n", "parent": 290, "children": [294], "start_point": {"row": 128, "column": 8}, "end_point": {"row": 128, "column": 29}}, {"id": 294, "type": "call_expression", "text": "tc.getTemp();", "parent": 293, "children": [295, 298], "start_point": {"row": 128, "column": 15}, "end_point": {"row": 128, "column": 28}}, {"id": 295, "type": "field_expression", "text": "tc.getTemp(", "parent": 294, "children": [296, 297], "start_point": {"row": 128, "column": 15}, "end_point": {"row": 128, "column": 26}}, {"id": 296, "type": "identifier", "text": "tc.", "parent": 295, "children": [], "start_point": {"row": 128, "column": 15}, "end_point": {"row": 128, "column": 18}}, {"id": 297, "type": "field_identifier", "text": "etTemp(", "parent": 295, "children": [], "start_point": {"row": 128, "column": 19}, "end_point": {"row": 128, "column": 26}}, {"id": 298, "type": "argument_list", "text": ");", "parent": 294, "children": [], "start_point": {"row": 128, "column": 26}, "end_point": {"row": 128, "column": 28}}, {"id": 299, "type": "#endif", "text": "endif\n", "parent": 290, "children": [], "start_point": {"row": 129, "column": 0}, "end_point": {"row": 129, "column": 6}}, {"id": 300, "type": "labeled_statement", "text": "rotected:\n\n/*******************************************************************************\n * DRL\n */\n void setupDRL() {\n pinMode(DRL_PWM_PIN, OUTPUT);\n pinMode(DRL_PWR_PIN, OUTPUT);\n }\n", "parent": 49, "children": [301, 302], "start_point": {"row": 132, "column": 0}, "end_point": {"row": 140, "column": 5}}, {"id": 301, "type": "statement_identifier", "text": "rotected:", "parent": 300, "children": [], "start_point": {"row": 132, "column": 0}, "end_point": {"row": 132, "column": 9}}, {"id": 302, "type": "ERROR", "text": "oid setupDRL() ", "parent": 300, "children": [303, 304], "start_point": {"row": 137, "column": 4}, "end_point": {"row": 137, "column": 19}}, {"id": 303, "type": "primitive_type", "text": "oid ", "parent": 302, "children": [], "start_point": {"row": 137, "column": 4}, "end_point": {"row": 137, "column": 8}}, {"id": 304, "type": "function_declarator", "text": "etupDRL() ", "parent": 302, "children": [305], "start_point": {"row": 137, "column": 9}, "end_point": {"row": 137, "column": 19}}, {"id": 305, "type": "identifier", "text": "etupDRL(", "parent": 304, "children": [], "start_point": {"row": 137, "column": 9}, "end_point": {"row": 137, "column": 17}}, {"id": 306, "type": "call_expression", "text": "inMode(DRL_PWM_PIN, OUTPUT);", "parent": 300, "children": [307, 308], "start_point": {"row": 138, "column": 8}, "end_point": {"row": 138, "column": 36}}, {"id": 307, "type": "identifier", "text": "inMode(", "parent": 306, "children": [], "start_point": {"row": 138, "column": 8}, "end_point": {"row": 138, "column": 15}}, {"id": 308, "type": "argument_list", "text": "DRL_PWM_PIN, OUTPUT);", "parent": 306, "children": [309, 310], "start_point": {"row": 138, "column": 15}, "end_point": {"row": 138, "column": 36}}, {"id": 309, "type": "identifier", "text": "RL_PWM_PIN,", "parent": 308, "children": [], "start_point": {"row": 138, "column": 16}, "end_point": {"row": 138, "column": 27}}, {"id": 310, "type": "identifier", "text": "UTPUT)", "parent": 308, "children": [], "start_point": {"row": 138, "column": 29}, "end_point": {"row": 138, "column": 35}}, {"id": 311, "type": "call_expression", "text": "inMode(DRL_PWR_PIN, OUTPUT);", "parent": 300, "children": [312, 313], "start_point": {"row": 139, "column": 8}, "end_point": {"row": 139, "column": 36}}, {"id": 312, "type": "identifier", "text": "inMode(", "parent": 311, "children": [], "start_point": {"row": 139, "column": 8}, "end_point": {"row": 139, "column": 15}}, {"id": 313, "type": "argument_list", "text": "DRL_PWR_PIN, OUTPUT);", "parent": 311, "children": [314, 315], "start_point": {"row": 139, "column": 15}, "end_point": {"row": 139, "column": 36}}, {"id": 314, "type": "identifier", "text": "RL_PWR_PIN,", "parent": 313, "children": [], "start_point": {"row": 139, "column": 16}, "end_point": {"row": 139, "column": 27}}, {"id": 315, "type": "identifier", "text": "UTPUT)", "parent": 313, "children": [], "start_point": {"row": 139, "column": 29}, "end_point": {"row": 139, "column": 35}}, {"id": 316, "type": "function_definition", "text": "oid listenDRL() {\n\n\n //\n // Initial demo\n if (millis() < 1600) {\n analogWrite(DRL_PWR_PIN, 255);\n if (amp->isBig()) {\n analogWrite(DRL_PWM_PIN, 0);\n }\n if (amp->isMax()) {\n analogWrite(DRL_PWM_PIN, 255);\n }\n }\n if (millis() < 2200 & millis() > 1800) {\n analogWrite(DRL_PWR_PIN, 0);\n }\n\n //\n // Regular work\n if (amp->isSecond()) {\n if (car->isRunEng()) {\n if (car->isDimOn()) {\n analogWrite(DRL_PWR_PIN, 0);\n analogWrite(DRL_PWM_PIN, 0);\n } else if (car->getVss() > 1) {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 255);\n } else {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 230);\n }\n } else {\n// analogWrite(DRL_PWR_PIN, 255);\n// if (amp->is5Seconds()) {\n// analogWrite(DRL_PWM_PIN, 255);\n// } else if (amp->isBig())\n// analogWrite(DRL_PWM_PIN, 0);\n }\n }\n\n //\n // Flash DRL attention\n if (amp->isSec() && car->isEmgBreak()) {\n analogWrite(DRL_PWR_PIN, 255);\n if (amp->isBig()) {\n analogWrite(DRL_PWM_PIN, 0);\n }\n if (amp->isMax()) {\n analogWrite(DRL_PWM_PIN, 255);\n }\n }\n }\n", "parent": 49, "children": [317, 318], "start_point": {"row": 147, "column": 4}, "end_point": {"row": 199, "column": 5}}, {"id": 317, "type": "primitive_type", "text": "oid ", "parent": 316, "children": [], "start_point": {"row": 147, "column": 4}, "end_point": {"row": 147, "column": 8}}, {"id": 318, "type": "function_declarator", "text": "istenDRL() ", "parent": 316, "children": [319], "start_point": {"row": 147, "column": 9}, "end_point": {"row": 147, "column": 20}}, {"id": 319, "type": "identifier", "text": "istenDRL(", "parent": 318, "children": [], "start_point": {"row": 147, "column": 9}, "end_point": {"row": 147, "column": 18}}, {"id": 320, "type": "if_statement", "text": "f (millis() < 1600) {\n analogWrite(DRL_PWR_PIN, 255);\n if (amp->isBig()) {\n analogWrite(DRL_PWM_PIN, 0);\n }\n if (amp->isMax()) {\n analogWrite(DRL_PWM_PIN, 255);\n }\n }\n", "parent": 316, "children": [321], "start_point": {"row": 152, "column": 8}, "end_point": {"row": 160, "column": 9}}, {"id": 321, "type": "parenthesized_expression", "text": "millis() < 1600) ", "parent": 320, "children": [322], "start_point": {"row": 152, "column": 11}, "end_point": {"row": 152, "column": 28}}, {"id": 322, "type": "binary_expression", "text": "illis() < 1600)", "parent": 321, "children": [323, 325, 326], "start_point": {"row": 152, "column": 12}, "end_point": {"row": 152, "column": 27}}, {"id": 323, "type": "call_expression", "text": "illis() ", "parent": 322, "children": [324], "start_point": {"row": 152, "column": 12}, "end_point": {"row": 152, "column": 20}}, {"id": 324, "type": "identifier", "text": "illis(", "parent": 323, "children": [], "start_point": {"row": 152, "column": 12}, "end_point": {"row": 152, "column": 18}}, {"id": 325, "type": "<", "text": " ", "parent": 322, "children": [], "start_point": {"row": 152, "column": 21}, "end_point": {"row": 152, "column": 22}}, {"id": 326, "type": "number_literal", "text": "600)", "parent": 322, "children": [], "start_point": {"row": 152, "column": 23}, "end_point": {"row": 152, "column": 27}}, {"id": 327, "type": "call_expression", "text": "nalogWrite(DRL_PWR_PIN, 255);", "parent": 320, "children": [328, 329], "start_point": {"row": 153, "column": 12}, "end_point": {"row": 153, "column": 41}}, {"id": 328, "type": "identifier", "text": "nalogWrite(", "parent": 327, "children": [], "start_point": {"row": 153, "column": 12}, "end_point": {"row": 153, "column": 23}}, {"id": 329, "type": "argument_list", "text": "DRL_PWR_PIN, 255);", "parent": 327, "children": [330, 331], "start_point": {"row": 153, "column": 23}, "end_point": {"row": 153, "column": 41}}, {"id": 330, "type": "identifier", "text": "RL_PWR_PIN,", "parent": 329, "children": [], "start_point": {"row": 153, "column": 24}, "end_point": {"row": 153, "column": 35}}, {"id": 331, "type": "number_literal", "text": "55)", "parent": 329, "children": [], "start_point": {"row": 153, "column": 37}, "end_point": {"row": 153, "column": 40}}, {"id": 332, "type": "if_statement", "text": "f (amp->isBig()) {\n analogWrite(DRL_PWM_PIN, 0);\n }\n", "parent": 320, "children": [333], "start_point": {"row": 154, "column": 12}, "end_point": {"row": 156, "column": 13}}, {"id": 333, "type": "parenthesized_expression", "text": "amp->isBig()) ", "parent": 332, "children": [334], "start_point": {"row": 154, "column": 15}, "end_point": {"row": 154, "column": 29}}, {"id": 334, "type": "call_expression", "text": "mp->isBig())", "parent": 333, "children": [335, 339], "start_point": {"row": 154, "column": 16}, "end_point": {"row": 154, "column": 28}}, {"id": 335, "type": "field_expression", "text": "mp->isBig(", "parent": 334, "children": [336, 337, 338], "start_point": {"row": 154, "column": 16}, "end_point": {"row": 154, "column": 26}}, {"id": 336, "type": "identifier", "text": "mp-", "parent": 335, "children": [], "start_point": {"row": 154, "column": 16}, "end_point": {"row": 154, "column": 19}}, {"id": 337, "type": "->", "text": ">i", "parent": 335, "children": [], "start_point": {"row": 154, "column": 19}, "end_point": {"row": 154, "column": 21}}, {"id": 338, "type": "field_identifier", "text": "sBig(", "parent": 335, "children": [], "start_point": {"row": 154, "column": 21}, "end_point": {"row": 154, "column": 26}}, {"id": 339, "type": "argument_list", "text": "))", "parent": 334, "children": [], "start_point": {"row": 154, "column": 26}, "end_point": {"row": 154, "column": 28}}, {"id": 340, "type": "call_expression", "text": "nalogWrite(DRL_PWM_PIN, 0);", "parent": 332, "children": [341, 342], "start_point": {"row": 155, "column": 16}, "end_point": {"row": 155, "column": 43}}, {"id": 341, "type": "identifier", "text": "nalogWrite(", "parent": 340, "children": [], "start_point": {"row": 155, "column": 16}, "end_point": {"row": 155, "column": 27}}, {"id": 342, "type": "argument_list", "text": "DRL_PWM_PIN, 0);", "parent": 340, "children": [343], "start_point": {"row": 155, "column": 27}, "end_point": {"row": 155, "column": 43}}, {"id": 343, "type": "identifier", "text": "RL_PWM_PIN,", "parent": 342, "children": [], "start_point": {"row": 155, "column": 28}, "end_point": {"row": 155, "column": 39}}, {"id": 344, "type": "if_statement", "text": "f (amp->isMax()) {\n analogWrite(DRL_PWM_PIN, 255);\n }\n", "parent": 320, "children": [345], "start_point": {"row": 157, "column": 12}, "end_point": {"row": 159, "column": 13}}, {"id": 345, "type": "parenthesized_expression", "text": "amp->isMax()) ", "parent": 344, "children": [346], "start_point": {"row": 157, "column": 15}, "end_point": {"row": 157, "column": 29}}, {"id": 346, "type": "call_expression", "text": "mp->isMax())", "parent": 345, "children": [347, 351], "start_point": {"row": 157, "column": 16}, "end_point": {"row": 157, "column": 28}}, {"id": 347, "type": "field_expression", "text": "mp->isMax(", "parent": 346, "children": [348, 349, 350], "start_point": {"row": 157, "column": 16}, "end_point": {"row": 157, "column": 26}}, {"id": 348, "type": "identifier", "text": "mp-", "parent": 347, "children": [], "start_point": {"row": 157, "column": 16}, "end_point": {"row": 157, "column": 19}}, {"id": 349, "type": "->", "text": ">i", "parent": 347, "children": [], "start_point": {"row": 157, "column": 19}, "end_point": {"row": 157, "column": 21}}, {"id": 350, "type": "field_identifier", "text": "sMax(", "parent": 347, "children": [], "start_point": {"row": 157, "column": 21}, "end_point": {"row": 157, "column": 26}}, {"id": 351, "type": "argument_list", "text": "))", "parent": 346, "children": [], "start_point": {"row": 157, "column": 26}, "end_point": {"row": 157, "column": 28}}, {"id": 352, "type": "call_expression", "text": "nalogWrite(DRL_PWM_PIN, 255);", "parent": 344, "children": [353, 354], "start_point": {"row": 158, "column": 16}, "end_point": {"row": 158, "column": 45}}, {"id": 353, "type": "identifier", "text": "nalogWrite(", "parent": 352, "children": [], "start_point": {"row": 158, "column": 16}, "end_point": {"row": 158, "column": 27}}, {"id": 354, "type": "argument_list", "text": "DRL_PWM_PIN, 255);", "parent": 352, "children": [355, 356], "start_point": {"row": 158, "column": 27}, "end_point": {"row": 158, "column": 45}}, {"id": 355, "type": "identifier", "text": "RL_PWM_PIN,", "parent": 354, "children": [], "start_point": {"row": 158, "column": 28}, "end_point": {"row": 158, "column": 39}}, {"id": 356, "type": "number_literal", "text": "55)", "parent": 354, "children": [], "start_point": {"row": 158, "column": 41}, "end_point": {"row": 158, "column": 44}}, {"id": 357, "type": "if_statement", "text": "f (millis() < 2200 & millis() > 1800) {\n analogWrite(DRL_PWR_PIN, 0);\n }\n", "parent": 316, "children": [358], "start_point": {"row": 161, "column": 8}, "end_point": {"row": 163, "column": 9}}, {"id": 358, "type": "parenthesized_expression", "text": "millis() < 2200 & millis() > 1800) ", "parent": 357, "children": [359], "start_point": {"row": 161, "column": 11}, "end_point": {"row": 161, "column": 46}}, {"id": 359, "type": "binary_expression", "text": "illis() < 2200 & millis() > 1800)", "parent": 358, "children": [360, 365, 366], "start_point": {"row": 161, "column": 12}, "end_point": {"row": 161, "column": 45}}, {"id": 360, "type": "binary_expression", "text": "illis() < 2200 ", "parent": 359, "children": [361, 363, 364], "start_point": {"row": 161, "column": 12}, "end_point": {"row": 161, "column": 27}}, {"id": 361, "type": "call_expression", "text": "illis() ", "parent": 360, "children": [362], "start_point": {"row": 161, "column": 12}, "end_point": {"row": 161, "column": 20}}, {"id": 362, "type": "identifier", "text": "illis(", "parent": 361, "children": [], "start_point": {"row": 161, "column": 12}, "end_point": {"row": 161, "column": 18}}, {"id": 363, "type": "<", "text": " ", "parent": 360, "children": [], "start_point": {"row": 161, "column": 21}, "end_point": {"row": 161, "column": 22}}, {"id": 364, "type": "number_literal", "text": "200 ", "parent": 360, "children": [], "start_point": {"row": 161, "column": 23}, "end_point": {"row": 161, "column": 27}}, {"id": 365, "type": "&", "text": " ", "parent": 359, "children": [], "start_point": {"row": 161, "column": 28}, "end_point": {"row": 161, "column": 29}}, {"id": 366, "type": "binary_expression", "text": "illis() > 1800)", "parent": 359, "children": [367, 369, 370], "start_point": {"row": 161, "column": 30}, "end_point": {"row": 161, "column": 45}}, {"id": 367, "type": "call_expression", "text": "illis() ", "parent": 366, "children": [368], "start_point": {"row": 161, "column": 30}, "end_point": {"row": 161, "column": 38}}, {"id": 368, "type": "identifier", "text": "illis(", "parent": 367, "children": [], "start_point": {"row": 161, "column": 30}, "end_point": {"row": 161, "column": 36}}, {"id": 369, "type": ">", "text": " ", "parent": 366, "children": [], "start_point": {"row": 161, "column": 39}, "end_point": {"row": 161, "column": 40}}, {"id": 370, "type": "number_literal", "text": "800)", "parent": 366, "children": [], "start_point": {"row": 161, "column": 41}, "end_point": {"row": 161, "column": 45}}, {"id": 371, "type": "call_expression", "text": "nalogWrite(DRL_PWR_PIN, 0);", "parent": 357, "children": [372, 373], "start_point": {"row": 162, "column": 12}, "end_point": {"row": 162, "column": 39}}, {"id": 372, "type": "identifier", "text": "nalogWrite(", "parent": 371, "children": [], "start_point": {"row": 162, "column": 12}, "end_point": {"row": 162, "column": 23}}, {"id": 373, "type": "argument_list", "text": "DRL_PWR_PIN, 0);", "parent": 371, "children": [374], "start_point": {"row": 162, "column": 23}, "end_point": {"row": 162, "column": 39}}, {"id": 374, "type": "identifier", "text": "RL_PWR_PIN,", "parent": 373, "children": [], "start_point": {"row": 162, "column": 24}, "end_point": {"row": 162, "column": 35}}, {"id": 375, "type": "if_statement", "text": "f (amp->isSecond()) {\n if (car->isRunEng()) {\n if (car->isDimOn()) {\n analogWrite(DRL_PWR_PIN, 0);\n analogWrite(DRL_PWM_PIN, 0);\n } else if (car->getVss() > 1) {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 255);\n } else {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 230);\n }\n } else {\n// analogWrite(DRL_PWR_PIN, 255);\n// if (amp->is5Seconds()) {\n// analogWrite(DRL_PWM_PIN, 255);\n// } else if (amp->isBig())\n// analogWrite(DRL_PWM_PIN, 0);\n }\n }\n", "parent": 316, "children": [376], "start_point": {"row": 167, "column": 8}, "end_point": {"row": 186, "column": 9}}, {"id": 376, "type": "parenthesized_expression", "text": "amp->isSecond()) ", "parent": 375, "children": [377], "start_point": {"row": 167, "column": 11}, "end_point": {"row": 167, "column": 28}}, {"id": 377, "type": "call_expression", "text": "mp->isSecond())", "parent": 376, "children": [378, 382], "start_point": {"row": 167, "column": 12}, "end_point": {"row": 167, "column": 27}}, {"id": 378, "type": "field_expression", "text": "mp->isSecond(", "parent": 377, "children": [379, 380, 381], "start_point": {"row": 167, "column": 12}, "end_point": {"row": 167, "column": 25}}, {"id": 379, "type": "identifier", "text": "mp-", "parent": 378, "children": [], "start_point": {"row": 167, "column": 12}, "end_point": {"row": 167, "column": 15}}, {"id": 380, "type": "->", "text": ">i", "parent": 378, "children": [], "start_point": {"row": 167, "column": 15}, "end_point": {"row": 167, "column": 17}}, {"id": 381, "type": "field_identifier", "text": "sSecond(", "parent": 378, "children": [], "start_point": {"row": 167, "column": 17}, "end_point": {"row": 167, "column": 25}}, {"id": 382, "type": "argument_list", "text": "))", "parent": 377, "children": [], "start_point": {"row": 167, "column": 25}, "end_point": {"row": 167, "column": 27}}, {"id": 383, "type": "if_statement", "text": "f (car->isRunEng()) {\n if (car->isDimOn()) {\n analogWrite(DRL_PWR_PIN, 0);\n analogWrite(DRL_PWM_PIN, 0);\n } else if (car->getVss() > 1) {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 255);\n } else {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 230);\n }\n } else {\n// analogWrite(DRL_PWR_PIN, 255);\n// if (amp->is5Seconds()) {\n// analogWrite(DRL_PWM_PIN, 255);\n// } else if (amp->isBig())\n// analogWrite(DRL_PWM_PIN, 0);\n }\n", "parent": 375, "children": [384, 438], "start_point": {"row": 168, "column": 12}, "end_point": {"row": 185, "column": 13}}, {"id": 384, "type": "parenthesized_expression", "text": "car->isRunEng()) ", "parent": 383, "children": [385], "start_point": {"row": 168, "column": 15}, "end_point": {"row": 168, "column": 32}}, {"id": 385, "type": "call_expression", "text": "ar->isRunEng())", "parent": 384, "children": [386, 390], "start_point": {"row": 168, "column": 16}, "end_point": {"row": 168, "column": 31}}, {"id": 386, "type": "field_expression", "text": "ar->isRunEng(", "parent": 385, "children": [387, 388, 389], "start_point": {"row": 168, "column": 16}, "end_point": {"row": 168, "column": 29}}, {"id": 387, "type": "identifier", "text": "ar-", "parent": 386, "children": [], "start_point": {"row": 168, "column": 16}, "end_point": {"row": 168, "column": 19}}, {"id": 388, "type": "->", "text": ">i", "parent": 386, "children": [], "start_point": {"row": 168, "column": 19}, "end_point": {"row": 168, "column": 21}}, {"id": 389, "type": "field_identifier", "text": "sRunEng(", "parent": 386, "children": [], "start_point": {"row": 168, "column": 21}, "end_point": {"row": 168, "column": 29}}, {"id": 390, "type": "argument_list", "text": "))", "parent": 385, "children": [], "start_point": {"row": 168, "column": 29}, "end_point": {"row": 168, "column": 31}}, {"id": 391, "type": "if_statement", "text": "f (car->isDimOn()) {\n analogWrite(DRL_PWR_PIN, 0);\n analogWrite(DRL_PWM_PIN, 0);\n } else if (car->getVss() > 1) {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 255);\n } else {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 230);\n }\n", "parent": 383, "children": [392, 407], "start_point": {"row": 169, "column": 16}, "end_point": {"row": 178, "column": 17}}, {"id": 392, "type": "parenthesized_expression", "text": "car->isDimOn()) ", "parent": 391, "children": [393], "start_point": {"row": 169, "column": 19}, "end_point": {"row": 169, "column": 35}}, {"id": 393, "type": "call_expression", "text": "ar->isDimOn())", "parent": 392, "children": [394, 398], "start_point": {"row": 169, "column": 20}, "end_point": {"row": 169, "column": 34}}, {"id": 394, "type": "field_expression", "text": "ar->isDimOn(", "parent": 393, "children": [395, 396, 397], "start_point": {"row": 169, "column": 20}, "end_point": {"row": 169, "column": 32}}, {"id": 395, "type": "identifier", "text": "ar-", "parent": 394, "children": [], "start_point": {"row": 169, "column": 20}, "end_point": {"row": 169, "column": 23}}, {"id": 396, "type": "->", "text": ">i", "parent": 394, "children": [], "start_point": {"row": 169, "column": 23}, "end_point": {"row": 169, "column": 25}}, {"id": 397, "type": "field_identifier", "text": "sDimOn(", "parent": 394, "children": [], "start_point": {"row": 169, "column": 25}, "end_point": {"row": 169, "column": 32}}, {"id": 398, "type": "argument_list", "text": "))", "parent": 393, "children": [], "start_point": {"row": 169, "column": 32}, "end_point": {"row": 169, "column": 34}}, {"id": 399, "type": "call_expression", "text": "nalogWrite(DRL_PWR_PIN, 0);", "parent": 391, "children": [400, 401], "start_point": {"row": 170, "column": 20}, "end_point": {"row": 170, "column": 47}}, {"id": 400, "type": "identifier", "text": "nalogWrite(", "parent": 399, "children": [], "start_point": {"row": 170, "column": 20}, "end_point": {"row": 170, "column": 31}}, {"id": 401, "type": "argument_list", "text": "DRL_PWR_PIN, 0);", "parent": 399, "children": [402], "start_point": {"row": 170, "column": 31}, "end_point": {"row": 170, "column": 47}}, {"id": 402, "type": "identifier", "text": "RL_PWR_PIN,", "parent": 401, "children": [], "start_point": {"row": 170, "column": 32}, "end_point": {"row": 170, "column": 43}}, {"id": 403, "type": "call_expression", "text": "nalogWrite(DRL_PWM_PIN, 0);", "parent": 391, "children": [404, 405], "start_point": {"row": 171, "column": 20}, "end_point": {"row": 171, "column": 47}}, {"id": 404, "type": "identifier", "text": "nalogWrite(", "parent": 403, "children": [], "start_point": {"row": 171, "column": 20}, "end_point": {"row": 171, "column": 31}}, {"id": 405, "type": "argument_list", "text": "DRL_PWM_PIN, 0);", "parent": 403, "children": [406], "start_point": {"row": 171, "column": 31}, "end_point": {"row": 171, "column": 47}}, {"id": 406, "type": "identifier", "text": "RL_PWM_PIN,", "parent": 405, "children": [], "start_point": {"row": 171, "column": 32}, "end_point": {"row": 171, "column": 43}}, {"id": 407, "type": "else_clause", "text": "lse if (car->getVss() > 1) {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 255);\n } else {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 230);\n }\n", "parent": 391, "children": [408], "start_point": {"row": 172, "column": 18}, "end_point": {"row": 178, "column": 17}}, {"id": 408, "type": "if_statement", "text": "f (car->getVss() > 1) {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 255);\n } else {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 230);\n }\n", "parent": 407, "children": [409, 427], "start_point": {"row": 172, "column": 23}, "end_point": {"row": 178, "column": 17}}, {"id": 409, "type": "parenthesized_expression", "text": "car->getVss() > 1) ", "parent": 408, "children": [410], "start_point": {"row": 172, "column": 26}, "end_point": {"row": 172, "column": 45}}, {"id": 410, "type": "binary_expression", "text": "ar->getVss() > 1)", "parent": 409, "children": [411, 416], "start_point": {"row": 172, "column": 27}, "end_point": {"row": 172, "column": 44}}, {"id": 411, "type": "call_expression", "text": "ar->getVss() ", "parent": 410, "children": [412], "start_point": {"row": 172, "column": 27}, "end_point": {"row": 172, "column": 40}}, {"id": 412, "type": "field_expression", "text": "ar->getVss(", "parent": 411, "children": [413, 414, 415], "start_point": {"row": 172, "column": 27}, "end_point": {"row": 172, "column": 38}}, {"id": 413, "type": "identifier", "text": "ar-", "parent": 412, "children": [], "start_point": {"row": 172, "column": 27}, "end_point": {"row": 172, "column": 30}}, {"id": 414, "type": "->", "text": ">g", "parent": 412, "children": [], "start_point": {"row": 172, "column": 30}, "end_point": {"row": 172, "column": 32}}, {"id": 415, "type": "field_identifier", "text": "etVss(", "parent": 412, "children": [], "start_point": {"row": 172, "column": 32}, "end_point": {"row": 172, "column": 38}}, {"id": 416, "type": ">", "text": " ", "parent": 410, "children": [], "start_point": {"row": 172, "column": 41}, "end_point": {"row": 172, "column": 42}}, {"id": 417, "type": "call_expression", "text": "nalogWrite(DRL_PWR_PIN, 255);", "parent": 408, "children": [418, 419], "start_point": {"row": 173, "column": 20}, "end_point": {"row": 173, "column": 49}}, {"id": 418, "type": "identifier", "text": "nalogWrite(", "parent": 417, "children": [], "start_point": {"row": 173, "column": 20}, "end_point": {"row": 173, "column": 31}}, {"id": 419, "type": "argument_list", "text": "DRL_PWR_PIN, 255);", "parent": 417, "children": [420, 421], "start_point": {"row": 173, "column": 31}, "end_point": {"row": 173, "column": 49}}, {"id": 420, "type": "identifier", "text": "RL_PWR_PIN,", "parent": 419, "children": [], "start_point": {"row": 173, "column": 32}, "end_point": {"row": 173, "column": 43}}, {"id": 421, "type": "number_literal", "text": "55)", "parent": 419, "children": [], "start_point": {"row": 173, "column": 45}, "end_point": {"row": 173, "column": 48}}, {"id": 422, "type": "call_expression", "text": "nalogWrite(DRL_PWM_PIN, 255);", "parent": 408, "children": [423, 424], "start_point": {"row": 174, "column": 20}, "end_point": {"row": 174, "column": 49}}, {"id": 423, "type": "identifier", "text": "nalogWrite(", "parent": 422, "children": [], "start_point": {"row": 174, "column": 20}, "end_point": {"row": 174, "column": 31}}, {"id": 424, "type": "argument_list", "text": "DRL_PWM_PIN, 255);", "parent": 422, "children": [425, 426], "start_point": {"row": 174, "column": 31}, "end_point": {"row": 174, "column": 49}}, {"id": 425, "type": "identifier", "text": "RL_PWM_PIN,", "parent": 424, "children": [], "start_point": {"row": 174, "column": 32}, "end_point": {"row": 174, "column": 43}}, {"id": 426, "type": "number_literal", "text": "55)", "parent": 424, "children": [], "start_point": {"row": 174, "column": 45}, "end_point": {"row": 174, "column": 48}}, {"id": 427, "type": "else_clause", "text": "lse {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 230);\n }\n", "parent": 408, "children": [], "start_point": {"row": 175, "column": 18}, "end_point": {"row": 178, "column": 17}}, {"id": 428, "type": "call_expression", "text": "nalogWrite(DRL_PWR_PIN, 255);", "parent": 427, "children": [429, 430], "start_point": {"row": 176, "column": 20}, "end_point": {"row": 176, "column": 49}}, {"id": 429, "type": "identifier", "text": "nalogWrite(", "parent": 428, "children": [], "start_point": {"row": 176, "column": 20}, "end_point": {"row": 176, "column": 31}}, {"id": 430, "type": "argument_list", "text": "DRL_PWR_PIN, 255);", "parent": 428, "children": [431, 432], "start_point": {"row": 176, "column": 31}, "end_point": {"row": 176, "column": 49}}, {"id": 431, "type": "identifier", "text": "RL_PWR_PIN,", "parent": 430, "children": [], "start_point": {"row": 176, "column": 32}, "end_point": {"row": 176, "column": 43}}, {"id": 432, "type": "number_literal", "text": "55)", "parent": 430, "children": [], "start_point": {"row": 176, "column": 45}, "end_point": {"row": 176, "column": 48}}, {"id": 433, "type": "call_expression", "text": "nalogWrite(DRL_PWM_PIN, 230);", "parent": 427, "children": [434, 435], "start_point": {"row": 177, "column": 20}, "end_point": {"row": 177, "column": 49}}, {"id": 434, "type": "identifier", "text": "nalogWrite(", "parent": 433, "children": [], "start_point": {"row": 177, "column": 20}, "end_point": {"row": 177, "column": 31}}, {"id": 435, "type": "argument_list", "text": "DRL_PWM_PIN, 230);", "parent": 433, "children": [436, 437], "start_point": {"row": 177, "column": 31}, "end_point": {"row": 177, "column": 49}}, {"id": 436, "type": "identifier", "text": "RL_PWM_PIN,", "parent": 435, "children": [], "start_point": {"row": 177, "column": 32}, "end_point": {"row": 177, "column": 43}}, {"id": 437, "type": "number_literal", "text": "30)", "parent": 435, "children": [], "start_point": {"row": 177, "column": 45}, "end_point": {"row": 177, "column": 48}}, {"id": 438, "type": "else_clause", "text": "lse {\n// analogWrite(DRL_PWR_PIN, 255);\n// if (amp->is5Seconds()) {\n// analogWrite(DRL_PWM_PIN, 255);\n// } else if (amp->isBig())\n// analogWrite(DRL_PWM_PIN, 0);\n }\n", "parent": 383, "children": [], "start_point": {"row": 179, "column": 14}, "end_point": {"row": 185, "column": 13}}, {"id": 439, "type": "if_statement", "text": "f (amp->isSec() && car->isEmgBreak()) {\n analogWrite(DRL_PWR_PIN, 255);\n if (amp->isBig()) {\n analogWrite(DRL_PWM_PIN, 0);\n }\n if (amp->isMax()) {\n analogWrite(DRL_PWM_PIN, 255);\n }\n }\n", "parent": 316, "children": [440], "start_point": {"row": 190, "column": 8}, "end_point": {"row": 198, "column": 9}}, {"id": 440, "type": "parenthesized_expression", "text": "amp->isSec() && car->isEmgBreak()) ", "parent": 439, "children": [441], "start_point": {"row": 190, "column": 11}, "end_point": {"row": 190, "column": 46}}, {"id": 441, "type": "binary_expression", "text": "mp->isSec() && car->isEmgBreak())", "parent": 440, "children": [442, 447], "start_point": {"row": 190, "column": 12}, "end_point": {"row": 190, "column": 45}}, {"id": 442, "type": "call_expression", "text": "mp->isSec() ", "parent": 441, "children": [443], "start_point": {"row": 190, "column": 12}, "end_point": {"row": 190, "column": 24}}, {"id": 443, "type": "field_expression", "text": "mp->isSec(", "parent": 442, "children": [444, 445, 446], "start_point": {"row": 190, "column": 12}, "end_point": {"row": 190, "column": 22}}, {"id": 444, "type": "identifier", "text": "mp-", "parent": 443, "children": [], "start_point": {"row": 190, "column": 12}, "end_point": {"row": 190, "column": 15}}, {"id": 445, "type": "->", "text": ">i", "parent": 443, "children": [], "start_point": {"row": 190, "column": 15}, "end_point": {"row": 190, "column": 17}}, {"id": 446, "type": "field_identifier", "text": "sSec(", "parent": 443, "children": [], "start_point": {"row": 190, "column": 17}, "end_point": {"row": 190, "column": 22}}, {"id": 447, "type": "call_expression", "text": "ar->isEmgBreak())", "parent": 441, "children": [448, 452], "start_point": {"row": 190, "column": 28}, "end_point": {"row": 190, "column": 45}}, {"id": 448, "type": "field_expression", "text": "ar->isEmgBreak(", "parent": 447, "children": [449, 450, 451], "start_point": {"row": 190, "column": 28}, "end_point": {"row": 190, "column": 43}}, {"id": 449, "type": "identifier", "text": "ar-", "parent": 448, "children": [], "start_point": {"row": 190, "column": 28}, "end_point": {"row": 190, "column": 31}}, {"id": 450, "type": "->", "text": ">i", "parent": 448, "children": [], "start_point": {"row": 190, "column": 31}, "end_point": {"row": 190, "column": 33}}, {"id": 451, "type": "field_identifier", "text": "sEmgBreak(", "parent": 448, "children": [], "start_point": {"row": 190, "column": 33}, "end_point": {"row": 190, "column": 43}}, {"id": 452, "type": "argument_list", "text": "))", "parent": 447, "children": [], "start_point": {"row": 190, "column": 43}, "end_point": {"row": 190, "column": 45}}, {"id": 453, "type": "call_expression", "text": "nalogWrite(DRL_PWR_PIN, 255);", "parent": 439, "children": [454, 455], "start_point": {"row": 191, "column": 12}, "end_point": {"row": 191, "column": 41}}, {"id": 454, "type": "identifier", "text": "nalogWrite(", "parent": 453, "children": [], "start_point": {"row": 191, "column": 12}, "end_point": {"row": 191, "column": 23}}, {"id": 455, "type": "argument_list", "text": "DRL_PWR_PIN, 255);", "parent": 453, "children": [456, 457], "start_point": {"row": 191, "column": 23}, "end_point": {"row": 191, "column": 41}}, {"id": 456, "type": "identifier", "text": "RL_PWR_PIN,", "parent": 455, "children": [], "start_point": {"row": 191, "column": 24}, "end_point": {"row": 191, "column": 35}}, {"id": 457, "type": "number_literal", "text": "55)", "parent": 455, "children": [], "start_point": {"row": 191, "column": 37}, "end_point": {"row": 191, "column": 40}}, {"id": 458, "type": "if_statement", "text": "f (amp->isBig()) {\n analogWrite(DRL_PWM_PIN, 0);\n }\n", "parent": 439, "children": [459], "start_point": {"row": 192, "column": 12}, "end_point": {"row": 194, "column": 13}}, {"id": 459, "type": "parenthesized_expression", "text": "amp->isBig()) ", "parent": 458, "children": [460], "start_point": {"row": 192, "column": 15}, "end_point": {"row": 192, "column": 29}}, {"id": 460, "type": "call_expression", "text": "mp->isBig())", "parent": 459, "children": [461, 465], "start_point": {"row": 192, "column": 16}, "end_point": {"row": 192, "column": 28}}, {"id": 461, "type": "field_expression", "text": "mp->isBig(", "parent": 460, "children": [462, 463, 464], "start_point": {"row": 192, "column": 16}, "end_point": {"row": 192, "column": 26}}, {"id": 462, "type": "identifier", "text": "mp-", "parent": 461, "children": [], "start_point": {"row": 192, "column": 16}, "end_point": {"row": 192, "column": 19}}, {"id": 463, "type": "->", "text": ">i", "parent": 461, "children": [], "start_point": {"row": 192, "column": 19}, "end_point": {"row": 192, "column": 21}}, {"id": 464, "type": "field_identifier", "text": "sBig(", "parent": 461, "children": [], "start_point": {"row": 192, "column": 21}, "end_point": {"row": 192, "column": 26}}, {"id": 465, "type": "argument_list", "text": "))", "parent": 460, "children": [], "start_point": {"row": 192, "column": 26}, "end_point": {"row": 192, "column": 28}}, {"id": 466, "type": "call_expression", "text": "nalogWrite(DRL_PWM_PIN, 0);", "parent": 458, "children": [467, 468], "start_point": {"row": 193, "column": 16}, "end_point": {"row": 193, "column": 43}}, {"id": 467, "type": "identifier", "text": "nalogWrite(", "parent": 466, "children": [], "start_point": {"row": 193, "column": 16}, "end_point": {"row": 193, "column": 27}}, {"id": 468, "type": "argument_list", "text": "DRL_PWM_PIN, 0);", "parent": 466, "children": [469], "start_point": {"row": 193, "column": 27}, "end_point": {"row": 193, "column": 43}}, {"id": 469, "type": "identifier", "text": "RL_PWM_PIN,", "parent": 468, "children": [], "start_point": {"row": 193, "column": 28}, "end_point": {"row": 193, "column": 39}}, {"id": 470, "type": "if_statement", "text": "f (amp->isMax()) {\n analogWrite(DRL_PWM_PIN, 255);\n }\n", "parent": 439, "children": [471], "start_point": {"row": 195, "column": 12}, "end_point": {"row": 197, "column": 13}}, {"id": 471, "type": "parenthesized_expression", "text": "amp->isMax()) ", "parent": 470, "children": [472], "start_point": {"row": 195, "column": 15}, "end_point": {"row": 195, "column": 29}}, {"id": 472, "type": "call_expression", "text": "mp->isMax())", "parent": 471, "children": [473, 477], "start_point": {"row": 195, "column": 16}, "end_point": {"row": 195, "column": 28}}, {"id": 473, "type": "field_expression", "text": "mp->isMax(", "parent": 472, "children": [474, 475, 476], "start_point": {"row": 195, "column": 16}, "end_point": {"row": 195, "column": 26}}, {"id": 474, "type": "identifier", "text": "mp-", "parent": 473, "children": [], "start_point": {"row": 195, "column": 16}, "end_point": {"row": 195, "column": 19}}, {"id": 475, "type": "->", "text": ">i", "parent": 473, "children": [], "start_point": {"row": 195, "column": 19}, "end_point": {"row": 195, "column": 21}}, {"id": 476, "type": "field_identifier", "text": "sMax(", "parent": 473, "children": [], "start_point": {"row": 195, "column": 21}, "end_point": {"row": 195, "column": 26}}, {"id": 477, "type": "argument_list", "text": "))", "parent": 472, "children": [], "start_point": {"row": 195, "column": 26}, "end_point": {"row": 195, "column": 28}}, {"id": 478, "type": "call_expression", "text": "nalogWrite(DRL_PWM_PIN, 255);", "parent": 470, "children": [479, 480], "start_point": {"row": 196, "column": 16}, "end_point": {"row": 196, "column": 45}}, {"id": 479, "type": "identifier", "text": "nalogWrite(", "parent": 478, "children": [], "start_point": {"row": 196, "column": 16}, "end_point": {"row": 196, "column": 27}}, {"id": 480, "type": "argument_list", "text": "DRL_PWM_PIN, 255);", "parent": 478, "children": [481, 482], "start_point": {"row": 196, "column": 27}, "end_point": {"row": 196, "column": 45}}, {"id": 481, "type": "identifier", "text": "RL_PWM_PIN,", "parent": 480, "children": [], "start_point": {"row": 196, "column": 28}, "end_point": {"row": 196, "column": 39}}, {"id": 482, "type": "number_literal", "text": "55)", "parent": 480, "children": [], "start_point": {"row": 196, "column": 41}, "end_point": {"row": 196, "column": 44}}, {"id": 483, "type": "#endif", "text": "endif ", "parent": 0, "children": [], "start_point": {"row": 204, "column": 0}, "end_point": {"row": 204, "column": 6}}]}, "node_categories": {"declarations": {"functions": [49, 112, 114, 122, 124, 129, 131, 200, 202, 225, 230, 282, 284, 304, 316, 318], "variables": [38, 44, 52, 57, 62, 71, 205, 207, 239, 247], "classes": [], "imports": [6, 7, 28, 29, 31, 32, 35, 36], "modules": [], "enums": []}, "statements": {"expressions": [78, 81, 85, 89, 90, 93, 96, 99, 108, 116, 119, 126, 137, 138, 140, 141, 145, 146, 150, 154, 155, 157, 158, 162, 163, 167, 170, 171, 175, 178, 181, 188, 189, 191, 192, 210, 216, 217, 221, 233, 236, 252, 253, 257, 263, 264, 268, 269, 275, 276, 287, 294, 295, 306, 311, 321, 322, 323, 327, 333, 334, 335, 340, 345, 346, 347, 352, 358, 359, 360, 361, 366, 367, 371, 376, 377, 378, 384, 385, 386, 392, 393, 394, 399, 403, 409, 410, 411, 412, 417, 422, 428, 433, 440, 441, 442, 443, 447, 448, 453, 459, 460, 461, 466, 471, 472, 473, 478], "assignments": [105, 184], "loops": [], "conditionals": [0, 1, 2, 5, 9, 10, 11, 14, 16, 17, 18, 19, 22, 24, 25, 26, 27, 34, 39, 41, 47, 50, 51, 53, 56, 58, 61, 63, 65, 68, 69, 70, 72, 73, 74, 76, 79, 82, 84, 86, 88, 91, 95, 97, 101, 102, 103, 104, 106, 109, 111, 115, 117, 120, 125, 127, 132, 133, 134, 135, 136, 142, 143, 147, 148, 153, 159, 160, 164, 165, 172, 173, 176, 180, 183, 185, 187, 193, 194, 199, 203, 206, 208, 209, 211, 213, 214, 215, 218, 219, 222, 224, 226, 231, 232, 234, 237, 242, 244, 245, 246, 248, 250, 254, 255, 258, 260, 261, 265, 266, 270, 271, 273, 277, 278, 280, 281, 285, 286, 288, 290, 291, 292, 296, 297, 299, 301, 305, 307, 309, 310, 312, 314, 315, 319, 320, 324, 328, 330, 332, 336, 338, 341, 343, 344, 348, 350, 353, 355, 357, 362, 368, 372, 374, 375, 379, 381, 383, 387, 389, 391, 395, 397, 400, 402, 404, 406, 408, 413, 415, 418, 420, 423, 425, 429, 431, 434, 436, 439, 444, 446, 449, 451, 454, 456, 458, 462, 464, 467, 469, 470, 474, 476, 479, 481, 483], "returns": [212, 235, 274, 289, 293], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 30, 33, 37, 152, 169, 243, 262, 326, 331, 356, 364, 370, 421, 426, 432, 437, 457, 482], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 49, "universal_type": "function", "name": "begin", "text_snippet": "lass AptService {\n\n AmpTime *amp;\n CarSens *car;\n//\n// Clock\n boolean noClock = true;\n#ifde"}, {"node_id": 112, "universal_type": "function", "name": "unknown", "text_snippet": "oid begin() {\n setupDRL();\n setupRTC();\n\n }\n"}, {"node_id": 114, "universal_type": "function", "name": "unknown", "text_snippet": "egin() "}, {"node_id": 122, "universal_type": "function", "name": "unknown", "text_snippet": "oid listener() {\n listenDRL();\n }\n"}, {"node_id": 124, "universal_type": "function", "name": "unknown", "text_snippet": "istener() "}, {"node_id": 129, "universal_type": "function", "name": "unknown", "text_snippet": "oid setupRTC() {\n#ifdef USE_CLOCK_MODULE\n if (!rtc.begin()) {\n Serial.println(F(\"C"}, {"node_id": 131, "universal_type": "function", "name": "unknown", "text_snippet": "etupRTC() "}, {"node_id": 200, "universal_type": "function", "name": "unknown", "text_snippet": "oid setClock(byte h, byte m) {\n if (noClock)\n return;\n#ifdef USE_CLOCK_MODULE\n "}, {"node_id": 202, "universal_type": "function", "name": "unknown", "text_snippet": "etClock(byte h, byte m) "}, {"node_id": 225, "universal_type": "function", "name": "unknown", "text_snippet": "onst char *getClock() {\n\n if (noClock)\n return getPGM(0);\n\n char buf[60];\n#"}, {"node_id": 230, "universal_type": "function", "name": "unknown", "text_snippet": "etClock() "}, {"node_id": 282, "universal_type": "function", "name": "unknown", "text_snippet": "loat getTemperature() {\n if (noClock)\n return 0;\n#ifdef USE_CLOCK_MODULE\n r"}, {"node_id": 284, "universal_type": "function", "name": "unknown", "text_snippet": "etTemperature() "}, {"node_id": 304, "universal_type": "function", "name": "unknown", "text_snippet": "etupDRL() "}, {"node_id": 316, "universal_type": "function", "name": "unknown", "text_snippet": "oid listenDRL() {\n\n\n //\n // Initial demo\n if (millis() < 1600) {\n an"}, {"node_id": 318, "universal_type": "function", "name": "unknown", "text_snippet": "istenDRL() "}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "include <Arduino.h>\n\n"}, {"node_id": 7, "text": "include "}, {"node_id": 28, "text": "include <Wire.h>\n#"}, {"node_id": 29, "text": "include "}, {"node_id": 31, "text": "include <RTClib.h>\n#"}, {"node_id": 32, "text": "include "}, {"node_id": 35, "text": "include \"../glob.h\"\n\n"}, {"node_id": 36, "text": "include "}]}, "original_source_code": "//\n// Created by <NAME> on 31.5.2018 \u0433..\n//\n\n#ifndef ARDUINOMID_ADTFUNC_H\n#define ARDUINOMID_ADTFUNC_H\n\n#include <Arduino.h>\n\n///////////////////////////////////////////////////////////\n//// DRL\n///////////////////////////////////////////////////////////\n#ifndef DRL_PWM_PIN\n#define DRL_PWM_PIN 7\n#endif\n#ifndef DRL_PWR_PIN\n#define DRL_PWR_PIN 10\n#endif\n\n///////////////////////////////////////////////////////////\n//// RTC\n///////////////////////////////////////////////////////////\n\n#ifdef USE_CLOCK_MODULE\n#include <Wire.h>\n#include <RTClib.h>\n#endif\n\n#include \"../glob.h\"\n\nboolean flashTgl = false;\nuint8_t fadeIDrl = 0;\n\n\nclass AptService {\n\n AmpTime *amp;\n CarSens *car;\n//\n// Clock\n boolean noClock = true;\n#ifdef USE_CLOCK_MODULE\n DS3231 rtc;\n#endif\n\npublic:\n/**\n *\n * @param _amp\n * @param _car\n */\n AptService(AmpTime &_amp, CarSens &_car) : amp(&_amp), car(&_car) {\n#ifdef USE_CLOCK_MODULE\n rtc = DS3231();\n#endif\n }\n\n void begin() {\n setupDRL();\n setupRTC();\n\n }\n\n\n void listener() {\n listenDRL();\n }\n\n/*******************************************************************************\n * RTC\n */\n\n void setupRTC() {\n#ifdef USE_CLOCK_MODULE\n if (!rtc.begin()) {\n Serial.println(F(\"Couldn't find RTC\"));\n }\n\n if (!rtc.isrunning()) {\n Serial.println(F(\"RTC lost power, resetting the time!\"));\n // following line sets the RTC to the date & time this sketch was compiled\n rtc.adjust(DateTime(F(__DATE__), F(__TIME__)));\n }\n noClock = (!rtc.isrunning()) ? true : false;\n#endif\n }\n\n/**\n *\n * @param h\n * @param m\n */\n void setClock(byte h, byte m) {\n if (noClock)\n return;\n#ifdef USE_CLOCK_MODULE\n rtc.adjust(DateTime(0, 0, 0, h, m, 0));\n#endif\n }\n\n/**\n *\n * @return char\n */\n const char *getClock() {\n\n if (noClock)\n return getPGM(0);\n\n char buf[60];\n#ifdef USE_CLOCK_MODULE\n //\n // Get clock\n DateTime now = rtc.now();\n strncpy(buf, pgm7, 60);\n Serial.println(now.format(buf));\n return now.format(buf);\n#endif\n }\n\n/**\n *\n * @return float\n */\n float getTemperature() {\n if (noClock)\n return 0;\n#ifdef USE_CLOCK_MODULE\n return rtc.getTemp();\n#endif\n }\n\nprotected:\n\n/*******************************************************************************\n * DRL\n */\n void setupDRL() {\n pinMode(DRL_PWM_PIN, OUTPUT);\n pinMode(DRL_PWR_PIN, OUTPUT);\n }\n\n/**\n * Testing method\n * @param amp\n * @param car\n */\n void listenDRL() {\n\n\n //\n // Initial demo\n if (millis() < 1600) {\n analogWrite(DRL_PWR_PIN, 255);\n if (amp->isBig()) {\n analogWrite(DRL_PWM_PIN, 0);\n }\n if (amp->isMax()) {\n analogWrite(DRL_PWM_PIN, 255);\n }\n }\n if (millis() < 2200 & millis() > 1800) {\n analogWrite(DRL_PWR_PIN, 0);\n }\n\n //\n // Regular work\n if (amp->isSecond()) {\n if (car->isRunEng()) {\n if (car->isDimOn()) {\n analogWrite(DRL_PWR_PIN, 0);\n analogWrite(DRL_PWM_PIN, 0);\n } else if (car->getVss() > 1) {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 255);\n } else {\n analogWrite(DRL_PWR_PIN, 255);\n analogWrite(DRL_PWM_PIN, 230);\n }\n } else {\n// analogWrite(DRL_PWR_PIN, 255);\n// if (amp->is5Seconds()) {\n// analogWrite(DRL_PWM_PIN, 255);\n// } else if (amp->isBig())\n// analogWrite(DRL_PWM_PIN, 0);\n }\n }\n\n //\n // Flash DRL attention\n if (amp->isSec() && car->isEmgBreak()) {\n analogWrite(DRL_PWR_PIN, 255);\n if (amp->isBig()) {\n analogWrite(DRL_PWM_PIN, 0);\n }\n if (amp->isMax()) {\n analogWrite(DRL_PWM_PIN, 255);\n }\n }\n }\n\n};\n\n\n#endif //ARDUINOMID_ADTFUNC_H\n"}
80,256
c
#include<stdio.h> #include<stdlib.h> typedef struct stack { int top; unsigned capacity; int *array; } ST; ST* create() { int cap; printf("What is the stack capacity: "); scanf("%d", &cap); ST *s = (ST*)malloc(sizeof(ST)); s->top = -1; s->capacity = cap; int *arr = (int*)malloc(sizeof(int) * cap); s->array = arr; return(s); } int isFull(ST *s) { if(s->top == s->capacity-1) return 1; else return 0; } int isEmp(ST *s) { if(s->top == -1) return 1; else return 0; } void push(ST *s) { int x, p; if(!isFull(s)) { printf("Enter a value: "); scanf("%d", &x); s->top++; p = s->top; s->array[p] = x; printf("%d added to the stack\n", x); } else printf("Stack full\n"); } void pop(ST *s) { if(!isEmp(s)) { int x, p; p = s->top; x = s->array[p]; s->top--; printf("%d popped outta the stack\n", x); } else printf("Empty stack\n"); } int menu() { int c; printf("Enter choice: "); scanf("%d", &c); char ch; while( ( ch = getchar() ) != '\n' && ch != EOF ); //Input buffer cleared return(c); } int main() { ST *s; s = create(); printf("1. Push items\n2. Pop items\n3. Exit\n"); while(1) { switch(menu()) { case 1: push(s); break; case 2: pop(s); break; case 3: exit(0); default: printf("Invalid choice\n"); } } }
20.04
71
(translation_unit) "#include<stdio.h>\n#include<stdlib.h>\n\ntypedef struct stack {\n int top;\n unsigned capacity;\n int *array;\n} ST;\n\n\n\nST* create() {\n int cap;\n printf("What is the stack capacity: ");\n scanf("%d", &cap);\n ST *s = (ST*)malloc(sizeof(ST));\n s->top = -1;\n s->capacity = cap;\n int *arr = (int*)malloc(sizeof(int) * cap);\n s->array = arr;\n return(s);\n}\nint isFull(ST *s) {\n if(s->top == s->capacity-1) return 1;\n else return 0;\n}\n\nint isEmp(ST *s) {\n if(s->top == -1) return 1;\n else return 0;\n}\n\nvoid push(ST *s) {\n int x, p;\n if(!isFull(s)) {\n printf("Enter a value: ");\n scanf("%d", &x);\n s->top++;\n p = s->top;\n s->array[p] = x;\n printf("%d added to the stack\n", x);\n }\n else printf("Stack full\n");\n}\n\nvoid pop(ST *s) {\n if(!isEmp(s)) {\n int x, p;\n p = s->top;\n x = s->array[p];\n s->top--;\n printf("%d popped outta the stack\n", x);\n }\n else printf("Empty stack\n");\n}\n\nint menu() {\n int c;\n printf("Enter choice: ");\n scanf("%d", &c);\n char ch;\n while( ( ch = getchar() ) != '\n' && ch != EOF );\n //Input buffer cleared\n return(c);\n}\n\nint main() {\n ST *s;\n s = create();\n printf("1. Push items\n2. Pop items\n3. Exit\n");\n while(1) {\n switch(menu()) {\n case 1: push(s); break;\n case 2: pop(s); break;\n case 3: exit(0);\n default: printf("Invalid choice\n");\n }\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>" (type_definition) "typedef struct stack {\n int top;\n unsigned capacity;\n int *array;\n} ST;" (typedef) "typedef" (struct_specifier) "struct stack {\n int top;\n unsigned capacity;\n int *array;\n}" (struct) "struct" (type_identifier) "stack" (field_declaration_list) "{\n int top;\n unsigned capacity;\n int *array;\n}" ({) "{" (field_declaration) "int top;" (primitive_type) "int" (field_identifier) "top" (;) ";" (field_declaration) "unsigned capacity;" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (field_identifier) "capacity" (;) ";" (field_declaration) "int *array;" (primitive_type) "int" (pointer_declarator) "*array" (*) "*" (field_identifier) "array" (;) ";" (}) "}" (type_identifier) "ST" (;) ";" (function_definition) "ST* create() {\n int cap;\n printf("What is the stack capacity: ");\n scanf("%d", &cap);\n ST *s = (ST*)malloc(sizeof(ST));\n s->top = -1;\n s->capacity = cap;\n int *arr = (int*)malloc(sizeof(int) * cap);\n s->array = arr;\n return(s);\n}" (type_identifier) "ST" (pointer_declarator) "* create()" (*) "*" (function_declarator) "create()" (identifier) "create" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n int cap;\n printf("What is the stack capacity: ");\n scanf("%d", &cap);\n ST *s = (ST*)malloc(sizeof(ST));\n s->top = -1;\n s->capacity = cap;\n int *arr = (int*)malloc(sizeof(int) * cap);\n s->array = arr;\n return(s);\n}" ({) "{" (declaration) "int cap;" (primitive_type) "int" (identifier) "cap" (;) ";" (expression_statement) "printf("What is the stack capacity: ");" (call_expression) "printf("What is the stack capacity: ")" (identifier) "printf" (argument_list) "("What is the stack capacity: ")" (() "(" (string_literal) ""What is the stack capacity: "" (") """ (string_content) "What is the stack capacity: " (") """ ()) ")" (;) ";" (expression_statement) "scanf("%d", &cap);" (call_expression) "scanf("%d", &cap)" (identifier) "scanf" (argument_list) "("%d", &cap)" (() "(" (string_literal) ""%d"" (") """ (string_content) "%d" (") """ (,) "," (pointer_expression) "&cap" (&) "&" (identifier) "cap" ()) ")" (;) ";" (declaration) "ST *s = (ST*)malloc(sizeof(ST));" (type_identifier) "ST" (init_declarator) "*s = (ST*)malloc(sizeof(ST))" (pointer_declarator) "*s" (*) "*" (identifier) "s" (=) "=" (cast_expression) "(ST*)malloc(sizeof(ST))" (() "(" (type_descriptor) "ST*" (type_identifier) "ST" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "malloc(sizeof(ST))" (identifier) "malloc" (argument_list) "(sizeof(ST))" (() "(" (sizeof_expression) "sizeof(ST)" (sizeof) "sizeof" (parenthesized_expression) "(ST)" (() "(" (identifier) "ST" ()) ")" ()) ")" (;) ";" (expression_statement) "s->top = -1;" (assignment_expression) "s->top = -1" (field_expression) "s->top" (identifier) "s" (->) "->" (field_identifier) "top" (=) "=" (number_literal) "-1" (;) ";" (expression_statement) "s->capacity = cap;" (assignment_expression) "s->capacity = cap" (field_expression) "s->capacity" (identifier) "s" (->) "->" (field_identifier) "capacity" (=) "=" (identifier) "cap" (;) ";" (declaration) "int *arr = (int*)malloc(sizeof(int) * cap);" (primitive_type) "int" (init_declarator) "*arr = (int*)malloc(sizeof(int) * cap)" (pointer_declarator) "*arr" (*) "*" (identifier) "arr" (=) "=" (cast_expression) "(int*)malloc(sizeof(int) * cap)" (() "(" (type_descriptor) "int*" (primitive_type) "int" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "malloc(sizeof(int) * cap)" (identifier) "malloc" (argument_list) "(sizeof(int) * cap)" (() "(" (binary_expression) "sizeof(int) * cap" (sizeof_expression) "sizeof(int)" (sizeof) "sizeof" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (*) "*" (identifier) "cap" ()) ")" (;) ";" (expression_statement) "s->array = arr;" (assignment_expression) "s->array = arr" (field_expression) "s->array" (identifier) "s" (->) "->" (field_identifier) "array" (=) "=" (identifier) "arr" (;) ";" (return_statement) "return(s);" (return) "return" (parenthesized_expression) "(s)" (() "(" (identifier) "s" ()) ")" (;) ";" (}) "}" (function_definition) "int isFull(ST *s) {\n if(s->top == s->capacity-1) return 1;\n else return 0;\n}" (primitive_type) "int" (function_declarator) "isFull(ST *s)" (identifier) "isFull" (parameter_list) "(ST *s)" (() "(" (parameter_declaration) "ST *s" (type_identifier) "ST" (pointer_declarator) "*s" (*) "*" (identifier) "s" ()) ")" (compound_statement) "{\n if(s->top == s->capacity-1) return 1;\n else return 0;\n}" ({) "{" (if_statement) "if(s->top == s->capacity-1) return 1;\n else return 0;" (if) "if" (parenthesized_expression) "(s->top == s->capacity-1)" (() "(" (binary_expression) "s->top == s->capacity-1" (field_expression) "s->top" (identifier) "s" (->) "->" (field_identifier) "top" (==) "==" (binary_expression) "s->capacity-1" (field_expression) "s->capacity" (identifier) "s" (->) "->" (field_identifier) "capacity" (-) "-" (number_literal) "1" ()) ")" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (else_clause) "else return 0;" (else) "else" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "int isEmp(ST *s) {\n if(s->top == -1) return 1;\n else return 0;\n}" (primitive_type) "int" (function_declarator) "isEmp(ST *s)" (identifier) "isEmp" (parameter_list) "(ST *s)" (() "(" (parameter_declaration) "ST *s" (type_identifier) "ST" (pointer_declarator) "*s" (*) "*" (identifier) "s" ()) ")" (compound_statement) "{\n if(s->top == -1) return 1;\n else return 0;\n}" ({) "{" (if_statement) "if(s->top == -1) return 1;\n else return 0;" (if) "if" (parenthesized_expression) "(s->top == -1)" (() "(" (binary_expression) "s->top == -1" (field_expression) "s->top" (identifier) "s" (->) "->" (field_identifier) "top" (==) "==" (number_literal) "-1" ()) ")" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (else_clause) "else return 0;" (else) "else" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "void push(ST *s) {\n int x, p;\n if(!isFull(s)) {\n printf("Enter a value: ");\n scanf("%d", &x);\n s->top++;\n p = s->top;\n s->array[p] = x;\n printf("%d added to the stack\n", x);\n }\n else printf("Stack full\n");\n}" (primitive_type) "void" (function_declarator) "push(ST *s)" (identifier) "push" (parameter_list) "(ST *s)" (() "(" (parameter_declaration) "ST *s" (type_identifier) "ST" (pointer_declarator) "*s" (*) "*" (identifier) "s" ()) ")" (compound_statement) "{\n int x, p;\n if(!isFull(s)) {\n printf("Enter a value: ");\n scanf("%d", &x);\n s->top++;\n p = s->top;\n s->array[p] = x;\n printf("%d added to the stack\n", x);\n }\n else printf("Stack full\n");\n}" ({) "{" (declaration) "int x, p;" (primitive_type) "int" (identifier) "x" (,) "," (identifier) "p" (;) ";" (if_statement) "if(!isFull(s)) {\n printf("Enter a value: ");\n scanf("%d", &x);\n s->top++;\n p = s->top;\n s->array[p] = x;\n printf("%d added to the stack\n", x);\n }\n else printf("Stack full\n");" (if) "if" (parenthesized_expression) "(!isFull(s))" (() "(" (unary_expression) "!isFull(s)" (!) "!" (call_expression) "isFull(s)" (identifier) "isFull" (argument_list) "(s)" (() "(" (identifier) "s" ()) ")" ()) ")" (compound_statement) "{\n printf("Enter a value: ");\n scanf("%d", &x);\n s->top++;\n p = s->top;\n s->array[p] = x;\n printf("%d added to the stack\n", x);\n }" ({) "{" (expression_statement) "printf("Enter a value: ");" (call_expression) "printf("Enter a value: ")" (identifier) "printf" (argument_list) "("Enter a value: ")" (() "(" (string_literal) ""Enter a value: "" (") """ (string_content) "Enter a value: " (") """ ()) ")" (;) ";" (expression_statement) "scanf("%d", &x);" (call_expression) "scanf("%d", &x)" (identifier) "scanf" (argument_list) "("%d", &x)" (() "(" (string_literal) ""%d"" (") """ (string_content) "%d" (") """ (,) "," (pointer_expression) "&x" (&) "&" (identifier) "x" ()) ")" (;) ";" (expression_statement) "s->top++;" (update_expression) "s->top++" (field_expression) "s->top" (identifier) "s" (->) "->" (field_identifier) "top" (++) "++" (;) ";" (expression_statement) "p = s->top;" (assignment_expression) "p = s->top" (identifier) "p" (=) "=" (field_expression) "s->top" (identifier) "s" (->) "->" (field_identifier) "top" (;) ";" (expression_statement) "s->array[p] = x;" (assignment_expression) "s->array[p] = x" (subscript_expression) "s->array[p]" (field_expression) "s->array" (identifier) "s" (->) "->" (field_identifier) "array" ([) "[" (identifier) "p" (]) "]" (=) "=" (identifier) "x" (;) ";" (expression_statement) "printf("%d added to the stack\n", x);" (call_expression) "printf("%d added to the stack\n", x)" (identifier) "printf" (argument_list) "("%d added to the stack\n", x)" (() "(" (string_literal) ""%d added to the stack\n"" (") """ (string_content) "%d added to the stack" (escape_sequence) "\n" (") """ (,) "," (identifier) "x" ()) ")" (;) ";" (}) "}" (else_clause) "else printf("Stack full\n");" (else) "else" (expression_statement) "printf("Stack full\n");" (call_expression) "printf("Stack full\n")" (identifier) "printf" (argument_list) "("Stack full\n")" (() "(" (string_literal) ""Stack full\n"" (") """ (string_content) "Stack full" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (}) "}" (function_definition) "void pop(ST *s) {\n if(!isEmp(s)) {\n int x, p;\n p = s->top;\n x = s->array[p];\n s->top--;\n printf("%d popped outta the stack\n", x);\n }\n else printf("Empty stack\n");\n}" (primitive_type) "void" (function_declarator) "pop(ST *s)" (identifier) "pop" (parameter_list) "(ST *s)" (() "(" (parameter_declaration) "ST *s" (type_identifier) "ST" (pointer_declarator) "*s" (*) "*" (identifier) "s" ()) ")" (compound_statement) "{\n if(!isEmp(s)) {\n int x, p;\n p = s->top;\n x = s->array[p];\n s->top--;\n printf("%d popped outta the stack\n", x);\n }\n else printf("Empty stack\n");\n}" ({) "{" (if_statement) "if(!isEmp(s)) {\n int x, p;\n p = s->top;\n x = s->array[p];\n s->top--;\n printf("%d popped outta the stack\n", x);\n }\n else printf("Empty stack\n");" (if) "if" (parenthesized_expression) "(!isEmp(s))" (() "(" (unary_expression) "!isEmp(s)" (!) "!" (call_expression) "isEmp(s)" (identifier) "isEmp" (argument_list) "(s)" (() "(" (identifier) "s" ()) ")" ()) ")" (compound_statement) "{\n int x, p;\n p = s->top;\n x = s->array[p];\n s->top--;\n printf("%d popped outta the stack\n", x);\n }" ({) "{" (declaration) "int x, p;" (primitive_type) "int" (identifier) "x" (,) "," (identifier) "p" (;) ";" (expression_statement) "p = s->top;" (assignment_expression) "p = s->top" (identifier) "p" (=) "=" (field_expression) "s->top" (identifier) "s" (->) "->" (field_identifier) "top" (;) ";" (expression_statement) "x = s->array[p];" (assignment_expression) "x = s->array[p]" (identifier) "x" (=) "=" (subscript_expression) "s->array[p]" (field_expression) "s->array" (identifier) "s" (->) "->" (field_identifier) "array" ([) "[" (identifier) "p" (]) "]" (;) ";" (expression_statement) "s->top--;" (update_expression) "s->top--" (field_expression) "s->top" (identifier) "s" (->) "->" (field_identifier) "top" (--) "--" (;) ";" (expression_statement) "printf("%d popped outta the stack\n", x);" (call_expression) "printf("%d popped outta the stack\n", x)" (identifier) "printf" (argument_list) "("%d popped outta the stack\n", x)" (() "(" (string_literal) ""%d popped outta the stack\n"" (") """ (string_content) "%d popped outta the stack" (escape_sequence) "\n" (") """ (,) "," (identifier) "x" ()) ")" (;) ";" (}) "}" (else_clause) "else printf("Empty stack\n");" (else) "else" (expression_statement) "printf("Empty stack\n");" (call_expression) "printf("Empty stack\n")" (identifier) "printf" (argument_list) "("Empty stack\n")" (() "(" (string_literal) ""Empty stack\n"" (") """ (string_content) "Empty stack" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (}) "}" (function_definition) "int menu() {\n int c;\n printf("Enter choice: ");\n scanf("%d", &c);\n char ch;\n while( ( ch = getchar() ) != '\n' && ch != EOF );\n //Input buffer cleared\n return(c);\n}" (primitive_type) "int" (function_declarator) "menu()" (identifier) "menu" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n int c;\n printf("Enter choice: ");\n scanf("%d", &c);\n char ch;\n while( ( ch = getchar() ) != '\n' && ch != EOF );\n //Input buffer cleared\n return(c);\n}" ({) "{" (declaration) "int c;" (primitive_type) "int" (identifier) "c" (;) ";" (expression_statement) "printf("Enter choice: ");" (call_expression) "printf("Enter choice: ")" (identifier) "printf" (argument_list) "("Enter choice: ")" (() "(" (string_literal) ""Enter choice: "" (") """ (string_content) "Enter choice: " (") """ ()) ")" (;) ";" (expression_statement) "scanf("%d", &c);" (call_expression) "scanf("%d", &c)" (identifier) "scanf" (argument_list) "("%d", &c)" (() "(" (string_literal) ""%d"" (") """ (string_content) "%d" (") """ (,) "," (pointer_expression) "&c" (&) "&" (identifier) "c" ()) ")" (;) ";" (declaration) "char ch;" (primitive_type) "char" (identifier) "ch" (;) ";" (while_statement) "while( ( ch = getchar() ) != '\n' && ch != EOF );" (while) "while" (parenthesized_expression) "( ( ch = getchar() ) != '\n' && ch != EOF )" (() "(" (binary_expression) "( ch = getchar() ) != '\n' && ch != EOF" (binary_expression) "( ch = getchar() ) != '\n'" (parenthesized_expression) "( ch = getchar() )" (() "(" (assignment_expression) "ch = getchar()" (identifier) "ch" (=) "=" (call_expression) "getchar()" (identifier) "getchar" (argument_list) "()" (() "(" ()) ")" ()) ")" (!=) "!=" (char_literal) "'\n'" (') "'" (escape_sequence) "\n" (') "'" (&&) "&&" (binary_expression) "ch != EOF" (identifier) "ch" (!=) "!=" (identifier) "EOF" ()) ")" (expression_statement) ";" (;) ";" (comment) "//Input buffer cleared" (return_statement) "return(c);" (return) "return" (parenthesized_expression) "(c)" (() "(" (identifier) "c" ()) ")" (;) ";" (}) "}" (function_definition) "int main() {\n ST *s;\n s = create();\n printf("1. Push items\n2. Pop items\n3. Exit\n");\n while(1) {\n switch(menu()) {\n case 1: push(s); break;\n case 2: pop(s); break;\n case 3: exit(0);\n default: printf("Invalid choice\n");\n }\n }\n}" (primitive_type) "int" (function_declarator) "main()" (identifier) "main" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n ST *s;\n s = create();\n printf("1. Push items\n2. Pop items\n3. Exit\n");\n while(1) {\n switch(menu()) {\n case 1: push(s); break;\n case 2: pop(s); break;\n case 3: exit(0);\n default: printf("Invalid choice\n");\n }\n }\n}" ({) "{" (declaration) "ST *s;" (type_identifier) "ST" (pointer_declarator) "*s" (*) "*" (identifier) "s" (;) ";" (expression_statement) "s = create();" (assignment_expression) "s = create()" (identifier) "s" (=) "=" (call_expression) "create()" (identifier) "create" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "printf("1. Push items\n2. Pop items\n3. Exit\n");" (call_expression) "printf("1. Push items\n2. Pop items\n3. Exit\n")" (identifier) "printf" (argument_list) "("1. Push items\n2. Pop items\n3. Exit\n")" (() "(" (string_literal) ""1. Push items\n2. Pop items\n3. Exit\n"" (") """ (string_content) "1. Push items" (escape_sequence) "\n" (string_content) "2. Pop items" (escape_sequence) "\n" (string_content) "3. Exit" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (while_statement) "while(1) {\n switch(menu()) {\n case 1: push(s); break;\n case 2: pop(s); break;\n case 3: exit(0);\n default: printf("Invalid choice\n");\n }\n }" (while) "while" (parenthesized_expression) "(1)" (() "(" (number_literal) "1" ()) ")" (compound_statement) "{\n switch(menu()) {\n case 1: push(s); break;\n case 2: pop(s); break;\n case 3: exit(0);\n default: printf("Invalid choice\n");\n }\n }" ({) "{" (switch_statement) "switch(menu()) {\n case 1: push(s); break;\n case 2: pop(s); break;\n case 3: exit(0);\n default: printf("Invalid choice\n");\n }" (switch) "switch" (parenthesized_expression) "(menu())" (() "(" (call_expression) "menu()" (identifier) "menu" (argument_list) "()" (() "(" ()) ")" ()) ")" (compound_statement) "{\n case 1: push(s); break;\n case 2: pop(s); break;\n case 3: exit(0);\n default: printf("Invalid choice\n");\n }" ({) "{" (case_statement) "case 1: push(s); break;" (case) "case" (number_literal) "1" (:) ":" (expression_statement) "push(s);" (call_expression) "push(s)" (identifier) "push" (argument_list) "(s)" (() "(" (identifier) "s" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case 2: pop(s); break;" (case) "case" (number_literal) "2" (:) ":" (expression_statement) "pop(s);" (call_expression) "pop(s)" (identifier) "pop" (argument_list) "(s)" (() "(" (identifier) "s" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case 3: exit(0);" (case) "case" (number_literal) "3" (:) ":" (expression_statement) "exit(0);" (call_expression) "exit(0)" (identifier) "exit" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (;) ";" (case_statement) "default: printf("Invalid choice\n");" (default) "default" (:) ":" (expression_statement) "printf("Invalid choice\n");" (call_expression) "printf("Invalid choice\n")" (identifier) "printf" (argument_list) "("Invalid choice\n")" (() "(" (string_literal) ""Invalid choice\n"" (") """ (string_content) "Invalid choice" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (}) "}" (}) "}" (}) "}"
662
0
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 20.04, "nodes": 380, "errors": 0, "source_hash": "5ff35256d85f3055c05275ba77ed2f6186e7600054b49c76c7355bb32e86c911", "categorized_nodes": 264}, "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": 8}, "end_point": {"row": 0, "column": 17}}, {"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": 8}, "end_point": {"row": 1, "column": 18}}, {"id": 6, "type": "type_definition", "text": "typedef struct stack {\n int top;\n unsigned capacity;\n int *array;\n} ST;", "parent": null, "children": [7, 8, 23], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 7, "column": 5}}, {"id": 7, "type": "typedef", "text": "typedef", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 7}}, {"id": 8, "type": "struct_specifier", "text": "struct stack {\n int top;\n unsigned capacity;\n int *array;\n}", "parent": 6, "children": [9, 10], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 7, "column": 1}}, {"id": 9, "type": "struct", "text": "struct", "parent": 8, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 14}}, {"id": 10, "type": "type_identifier", "text": "stack", "parent": 8, "children": [], "start_point": {"row": 3, "column": 15}, "end_point": {"row": 3, "column": 20}}, {"id": 11, "type": "field_declaration", "text": "int top;", "parent": 8, "children": [12, 13], "start_point": {"row": 4, "column": 4}, "end_point": {"row": 4, "column": 12}}, {"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": "field_identifier", "text": "top", "parent": 11, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 11}}, {"id": 14, "type": "field_declaration", "text": "unsigned capacity;", "parent": 8, "children": [15, 17], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 22}}, {"id": 15, "type": "sized_type_specifier", "text": "unsigned", "parent": 14, "children": [16], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 12}}, {"id": 16, "type": "unsigned", "text": "unsigned", "parent": 15, "children": [], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 12}}, {"id": 17, "type": "field_identifier", "text": "capacity", "parent": 14, "children": [], "start_point": {"row": 5, "column": 13}, "end_point": {"row": 5, "column": 21}}, {"id": 18, "type": "field_declaration", "text": "int *array;", "parent": 8, "children": [19, 20], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 15}}, {"id": 19, "type": "primitive_type", "text": "int", "parent": 18, "children": [], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 7}}, {"id": 20, "type": "pointer_declarator", "text": "*array", "parent": 18, "children": [21, 22], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 14}}, {"id": 21, "type": "*", "text": "*", "parent": 20, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 9}}, {"id": 22, "type": "field_identifier", "text": "array", "parent": 20, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 14}}, {"id": 23, "type": "type_identifier", "text": "ST", "parent": 6, "children": [], "start_point": {"row": 7, "column": 2}, "end_point": {"row": 7, "column": 4}}, {"id": 24, "type": "function_definition", "text": "ST* create() {\n int cap;\n printf(\"What is the stack capacity: \");\n scanf(\"%d\", &cap);\n ST *s = (ST*)malloc(sizeof(ST));\n s->top = -1;\n s->capacity = cap;\n int *arr = (int*)malloc(sizeof(int) * cap);\n s->array = arr;\n return(s);\n}", "parent": null, "children": [25, 26], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 25, "type": "type_identifier", "text": "ST", "parent": 24, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 2}}, {"id": 26, "type": "pointer_declarator", "text": "* create()", "parent": 24, "children": [27, 28], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 11, "column": 12}}, {"id": 27, "type": "*", "text": "*", "parent": 26, "children": [], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 11, "column": 3}}, {"id": 28, "type": "function_declarator", "text": "create()", "parent": 26, "children": [29, 30], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 12}}, {"id": 29, "type": "identifier", "text": "create", "parent": 28, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 10}}, {"id": 30, "type": "parameter_list", "text": "()", "parent": 28, "children": [], "start_point": {"row": 11, "column": 10}, "end_point": {"row": 11, "column": 12}}, {"id": 31, "type": "declaration", "text": "int cap;", "parent": 24, "children": [32, 33], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 12}}, {"id": 32, "type": "primitive_type", "text": "int", "parent": 31, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 7}}, {"id": 33, "type": "identifier", "text": "cap", "parent": 31, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 11}}, {"id": 34, "type": "call_expression", "text": "printf(\"What is the stack capacity: \")", "parent": 24, "children": [35, 36], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 42}}, {"id": 35, "type": "identifier", "text": "printf", "parent": 34, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 10}}, {"id": 36, "type": "argument_list", "text": "(\"What is the stack capacity: \")", "parent": 34, "children": [37], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 42}}, {"id": 37, "type": "string_literal", "text": "\"What is the stack capacity: \"", "parent": 36, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 41}}, {"id": 38, "type": "call_expression", "text": "scanf(\"%d\", &cap)", "parent": 24, "children": [39, 40], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 21}}, {"id": 39, "type": "identifier", "text": "scanf", "parent": 38, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 9}}, {"id": 40, "type": "argument_list", "text": "(\"%d\", &cap)", "parent": 38, "children": [41, 42], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 21}}, {"id": 41, "type": "string_literal", "text": "\"%d\"", "parent": 40, "children": [], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 14}}, {"id": 42, "type": "pointer_expression", "text": "&cap", "parent": 40, "children": [43], "start_point": {"row": 14, "column": 16}, "end_point": {"row": 14, "column": 20}}, {"id": 43, "type": "identifier", "text": "cap", "parent": 42, "children": [], "start_point": {"row": 14, "column": 17}, "end_point": {"row": 14, "column": 20}}, {"id": 44, "type": "declaration", "text": "ST *s = (ST*)malloc(sizeof(ST));", "parent": 24, "children": [45, 46], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 36}}, {"id": 45, "type": "type_identifier", "text": "ST", "parent": 44, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 6}}, {"id": 46, "type": "init_declarator", "text": "*s = (ST*)malloc(sizeof(ST))", "parent": 44, "children": [47, 50, 51], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 35}}, {"id": 47, "type": "pointer_declarator", "text": "*s", "parent": 46, "children": [48, 49], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 9}}, {"id": 48, "type": "*", "text": "*", "parent": 47, "children": [], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 8}}, {"id": 49, "type": "identifier", "text": "s", "parent": 47, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 9}}, {"id": 50, "type": "=", "text": "=", "parent": 46, "children": [], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 11}}, {"id": 51, "type": "cast_expression", "text": "(ST*)malloc(sizeof(ST))", "parent": 46, "children": [52, 56], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 35}}, {"id": 52, "type": "type_descriptor", "text": "ST*", "parent": 51, "children": [53, 54], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 16}}, {"id": 53, "type": "type_identifier", "text": "ST", "parent": 52, "children": [], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 15}}, {"id": 54, "type": "abstract_pointer_declarator", "text": "*", "parent": 52, "children": [55], "start_point": {"row": 15, "column": 15}, "end_point": {"row": 15, "column": 16}}, {"id": 55, "type": "*", "text": "*", "parent": 54, "children": [], "start_point": {"row": 15, "column": 15}, "end_point": {"row": 15, "column": 16}}, {"id": 56, "type": "call_expression", "text": "malloc(sizeof(ST))", "parent": 51, "children": [57, 58], "start_point": {"row": 15, "column": 17}, "end_point": {"row": 15, "column": 35}}, {"id": 57, "type": "identifier", "text": "malloc", "parent": 56, "children": [], "start_point": {"row": 15, "column": 17}, "end_point": {"row": 15, "column": 23}}, {"id": 58, "type": "argument_list", "text": "(sizeof(ST))", "parent": 56, "children": [59], "start_point": {"row": 15, "column": 23}, "end_point": {"row": 15, "column": 35}}, {"id": 59, "type": "sizeof_expression", "text": "sizeof(ST)", "parent": 58, "children": [60], "start_point": {"row": 15, "column": 24}, "end_point": {"row": 15, "column": 34}}, {"id": 60, "type": "parenthesized_expression", "text": "(ST)", "parent": 59, "children": [61], "start_point": {"row": 15, "column": 30}, "end_point": {"row": 15, "column": 34}}, {"id": 61, "type": "identifier", "text": "ST", "parent": 60, "children": [], "start_point": {"row": 15, "column": 31}, "end_point": {"row": 15, "column": 33}}, {"id": 62, "type": "assignment_expression", "text": "s->top = -1", "parent": 24, "children": [63, 66, 67], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 15}}, {"id": 63, "type": "field_expression", "text": "s->top", "parent": 62, "children": [64, 65], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 10}}, {"id": 64, "type": "identifier", "text": "s", "parent": 63, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 5}}, {"id": 65, "type": "field_identifier", "text": "top", "parent": 63, "children": [], "start_point": {"row": 16, "column": 7}, "end_point": {"row": 16, "column": 10}}, {"id": 66, "type": "=", "text": "=", "parent": 62, "children": [], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 12}}, {"id": 67, "type": "number_literal", "text": "-1", "parent": 62, "children": [], "start_point": {"row": 16, "column": 13}, "end_point": {"row": 16, "column": 15}}, {"id": 68, "type": "assignment_expression", "text": "s->capacity = cap", "parent": 24, "children": [69, 72, 73], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 21}}, {"id": 69, "type": "field_expression", "text": "s->capacity", "parent": 68, "children": [70, 71], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 15}}, {"id": 70, "type": "identifier", "text": "s", "parent": 69, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 5}}, {"id": 71, "type": "field_identifier", "text": "capacity", "parent": 69, "children": [], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 15}}, {"id": 72, "type": "=", "text": "=", "parent": 68, "children": [], "start_point": {"row": 17, "column": 16}, "end_point": {"row": 17, "column": 17}}, {"id": 73, "type": "identifier", "text": "cap", "parent": 68, "children": [], "start_point": {"row": 17, "column": 18}, "end_point": {"row": 17, "column": 21}}, {"id": 74, "type": "declaration", "text": "int *arr = (int*)malloc(sizeof(int) * cap);", "parent": 24, "children": [75, 76], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 47}}, {"id": 75, "type": "primitive_type", "text": "int", "parent": 74, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 7}}, {"id": 76, "type": "init_declarator", "text": "*arr = (int*)malloc(sizeof(int) * cap)", "parent": 74, "children": [77, 80, 81], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 46}}, {"id": 77, "type": "pointer_declarator", "text": "*arr", "parent": 76, "children": [78, 79], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 12}}, {"id": 78, "type": "*", "text": "*", "parent": 77, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 9}}, {"id": 79, "type": "identifier", "text": "arr", "parent": 77, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 12}}, {"id": 80, "type": "=", "text": "=", "parent": 76, "children": [], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 14}}, {"id": 81, "type": "cast_expression", "text": "(int*)malloc(sizeof(int) * cap)", "parent": 76, "children": [82, 86], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 46}}, {"id": 82, "type": "type_descriptor", "text": "int*", "parent": 81, "children": [83, 84], "start_point": {"row": 18, "column": 16}, "end_point": {"row": 18, "column": 20}}, {"id": 83, "type": "primitive_type", "text": "int", "parent": 82, "children": [], "start_point": {"row": 18, "column": 16}, "end_point": {"row": 18, "column": 19}}, {"id": 84, "type": "abstract_pointer_declarator", "text": "*", "parent": 82, "children": [85], "start_point": {"row": 18, "column": 19}, "end_point": {"row": 18, "column": 20}}, {"id": 85, "type": "*", "text": "*", "parent": 84, "children": [], "start_point": {"row": 18, "column": 19}, "end_point": {"row": 18, "column": 20}}, {"id": 86, "type": "call_expression", "text": "malloc(sizeof(int) * cap)", "parent": 81, "children": [87, 88], "start_point": {"row": 18, "column": 21}, "end_point": {"row": 18, "column": 46}}, {"id": 87, "type": "identifier", "text": "malloc", "parent": 86, "children": [], "start_point": {"row": 18, "column": 21}, "end_point": {"row": 18, "column": 27}}, {"id": 88, "type": "argument_list", "text": "(sizeof(int) * cap)", "parent": 86, "children": [89], "start_point": {"row": 18, "column": 27}, "end_point": {"row": 18, "column": 46}}, {"id": 89, "type": "binary_expression", "text": "sizeof(int) * cap", "parent": 88, "children": [90, 93, 94], "start_point": {"row": 18, "column": 28}, "end_point": {"row": 18, "column": 45}}, {"id": 90, "type": "sizeof_expression", "text": "sizeof(int)", "parent": 89, "children": [91], "start_point": {"row": 18, "column": 28}, "end_point": {"row": 18, "column": 39}}, {"id": 91, "type": "type_descriptor", "text": "int", "parent": 90, "children": [92], "start_point": {"row": 18, "column": 35}, "end_point": {"row": 18, "column": 38}}, {"id": 92, "type": "primitive_type", "text": "int", "parent": 91, "children": [], "start_point": {"row": 18, "column": 35}, "end_point": {"row": 18, "column": 38}}, {"id": 93, "type": "*", "text": "*", "parent": 89, "children": [], "start_point": {"row": 18, "column": 40}, "end_point": {"row": 18, "column": 41}}, {"id": 94, "type": "identifier", "text": "cap", "parent": 89, "children": [], "start_point": {"row": 18, "column": 42}, "end_point": {"row": 18, "column": 45}}, {"id": 95, "type": "assignment_expression", "text": "s->array = arr", "parent": 24, "children": [96, 99, 100], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 18}}, {"id": 96, "type": "field_expression", "text": "s->array", "parent": 95, "children": [97, 98], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 12}}, {"id": 97, "type": "identifier", "text": "s", "parent": 96, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 5}}, {"id": 98, "type": "field_identifier", "text": "array", "parent": 96, "children": [], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 12}}, {"id": 99, "type": "=", "text": "=", "parent": 95, "children": [], "start_point": {"row": 19, "column": 13}, "end_point": {"row": 19, "column": 14}}, {"id": 100, "type": "identifier", "text": "arr", "parent": 95, "children": [], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 18}}, {"id": 101, "type": "return_statement", "text": "return(s);", "parent": 24, "children": [102], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 14}}, {"id": 102, "type": "parenthesized_expression", "text": "(s)", "parent": 101, "children": [103], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 13}}, {"id": 103, "type": "identifier", "text": "s", "parent": 102, "children": [], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 12}}, {"id": 104, "type": "function_definition", "text": "int isFull(ST *s) {\n if(s->top == s->capacity-1) return 1;\n else return 0;\n}", "parent": null, "children": [105, 106], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 105, "type": "primitive_type", "text": "int", "parent": 104, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 3}}, {"id": 106, "type": "function_declarator", "text": "isFull(ST *s)", "parent": 104, "children": [107, 108], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 17}}, {"id": 107, "type": "identifier", "text": "isFull", "parent": 106, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 10}}, {"id": 108, "type": "parameter_list", "text": "(ST *s)", "parent": 106, "children": [109], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 17}}, {"id": 109, "type": "parameter_declaration", "text": "ST *s", "parent": 108, "children": [110, 111], "start_point": {"row": 22, "column": 11}, "end_point": {"row": 22, "column": 16}}, {"id": 110, "type": "type_identifier", "text": "ST", "parent": 109, "children": [], "start_point": {"row": 22, "column": 11}, "end_point": {"row": 22, "column": 13}}, {"id": 111, "type": "pointer_declarator", "text": "*s", "parent": 109, "children": [112, 113], "start_point": {"row": 22, "column": 14}, "end_point": {"row": 22, "column": 16}}, {"id": 112, "type": "*", "text": "*", "parent": 111, "children": [], "start_point": {"row": 22, "column": 14}, "end_point": {"row": 22, "column": 15}}, {"id": 113, "type": "identifier", "text": "s", "parent": 111, "children": [], "start_point": {"row": 22, "column": 15}, "end_point": {"row": 22, "column": 16}}, {"id": 114, "type": "if_statement", "text": "if(s->top == s->capacity-1) return 1;\n else return 0;", "parent": 104, "children": [115, 127, 129], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 24, "column": 18}}, {"id": 115, "type": "parenthesized_expression", "text": "(s->top == s->capacity-1)", "parent": 114, "children": [116], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 31}}, {"id": 116, "type": "binary_expression", "text": "s->top == s->capacity-1", "parent": 115, "children": [117, 120, 121], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 30}}, {"id": 117, "type": "field_expression", "text": "s->top", "parent": 116, "children": [118, 119], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 13}}, {"id": 118, "type": "identifier", "text": "s", "parent": 117, "children": [], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 8}}, {"id": 119, "type": "field_identifier", "text": "top", "parent": 117, "children": [], "start_point": {"row": 23, "column": 10}, "end_point": {"row": 23, "column": 13}}, {"id": 120, "type": "==", "text": "==", "parent": 116, "children": [], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 16}}, {"id": 121, "type": "binary_expression", "text": "s->capacity-1", "parent": 116, "children": [122, 125, 126], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 30}}, {"id": 122, "type": "field_expression", "text": "s->capacity", "parent": 121, "children": [123, 124], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 28}}, {"id": 123, "type": "identifier", "text": "s", "parent": 122, "children": [], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 18}}, {"id": 124, "type": "field_identifier", "text": "capacity", "parent": 122, "children": [], "start_point": {"row": 23, "column": 20}, "end_point": {"row": 23, "column": 28}}, {"id": 125, "type": "-", "text": "-", "parent": 121, "children": [], "start_point": {"row": 23, "column": 28}, "end_point": {"row": 23, "column": 29}}, {"id": 126, "type": "number_literal", "text": "1", "parent": 121, "children": [], "start_point": {"row": 23, "column": 29}, "end_point": {"row": 23, "column": 30}}, {"id": 127, "type": "return_statement", "text": "return 1;", "parent": 114, "children": [128], "start_point": {"row": 23, "column": 32}, "end_point": {"row": 23, "column": 41}}, {"id": 128, "type": "number_literal", "text": "1", "parent": 127, "children": [], "start_point": {"row": 23, "column": 39}, "end_point": {"row": 23, "column": 40}}, {"id": 129, "type": "else_clause", "text": "else return 0;", "parent": 114, "children": [130], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 18}}, {"id": 130, "type": "return_statement", "text": "return 0;", "parent": 129, "children": [131], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 18}}, {"id": 131, "type": "number_literal", "text": "0", "parent": 130, "children": [], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 17}}, {"id": 132, "type": "function_definition", "text": "int isEmp(ST *s) {\n if(s->top == -1) return 1;\n else return 0;\n}", "parent": null, "children": [133, 134], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 30, "column": 1}}, {"id": 133, "type": "primitive_type", "text": "int", "parent": 132, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 3}}, {"id": 134, "type": "function_declarator", "text": "isEmp(ST *s)", "parent": 132, "children": [135, 136], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 16}}, {"id": 135, "type": "identifier", "text": "isEmp", "parent": 134, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 9}}, {"id": 136, "type": "parameter_list", "text": "(ST *s)", "parent": 134, "children": [137], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 16}}, {"id": 137, "type": "parameter_declaration", "text": "ST *s", "parent": 136, "children": [138, 139], "start_point": {"row": 27, "column": 10}, "end_point": {"row": 27, "column": 15}}, {"id": 138, "type": "type_identifier", "text": "ST", "parent": 137, "children": [], "start_point": {"row": 27, "column": 10}, "end_point": {"row": 27, "column": 12}}, {"id": 139, "type": "pointer_declarator", "text": "*s", "parent": 137, "children": [140, 141], "start_point": {"row": 27, "column": 13}, "end_point": {"row": 27, "column": 15}}, {"id": 140, "type": "*", "text": "*", "parent": 139, "children": [], "start_point": {"row": 27, "column": 13}, "end_point": {"row": 27, "column": 14}}, {"id": 141, "type": "identifier", "text": "s", "parent": 139, "children": [], "start_point": {"row": 27, "column": 14}, "end_point": {"row": 27, "column": 15}}, {"id": 142, "type": "if_statement", "text": "if(s->top == -1) return 1;\n else return 0;", "parent": 132, "children": [143, 150, 152], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 29, "column": 18}}, {"id": 143, "type": "parenthesized_expression", "text": "(s->top == -1)", "parent": 142, "children": [144], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 20}}, {"id": 144, "type": "binary_expression", "text": "s->top == -1", "parent": 143, "children": [145, 148, 149], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 19}}, {"id": 145, "type": "field_expression", "text": "s->top", "parent": 144, "children": [146, 147], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 13}}, {"id": 146, "type": "identifier", "text": "s", "parent": 145, "children": [], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 8}}, {"id": 147, "type": "field_identifier", "text": "top", "parent": 145, "children": [], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 13}}, {"id": 148, "type": "==", "text": "==", "parent": 144, "children": [], "start_point": {"row": 28, "column": 14}, "end_point": {"row": 28, "column": 16}}, {"id": 149, "type": "number_literal", "text": "-1", "parent": 144, "children": [], "start_point": {"row": 28, "column": 17}, "end_point": {"row": 28, "column": 19}}, {"id": 150, "type": "return_statement", "text": "return 1;", "parent": 142, "children": [151], "start_point": {"row": 28, "column": 21}, "end_point": {"row": 28, "column": 30}}, {"id": 151, "type": "number_literal", "text": "1", "parent": 150, "children": [], "start_point": {"row": 28, "column": 28}, "end_point": {"row": 28, "column": 29}}, {"id": 152, "type": "else_clause", "text": "else return 0;", "parent": 142, "children": [153], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 18}}, {"id": 153, "type": "return_statement", "text": "return 0;", "parent": 152, "children": [154], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 18}}, {"id": 154, "type": "number_literal", "text": "0", "parent": 153, "children": [], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 29, "column": 17}}, {"id": 155, "type": "function_definition", "text": "void push(ST *s) {\n int x, p;\n if(!isFull(s)) {\n printf(\"Enter a value: \");\n scanf(\"%d\", &x);\n s->top++;\n p = s->top;\n s->array[p] = x;\n printf(\"%d added to the stack\\n\", x);\n }\n else printf(\"Stack full\\n\");\n}", "parent": null, "children": [156, 157], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 43, "column": 1}}, {"id": 156, "type": "primitive_type", "text": "void", "parent": 155, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 4}}, {"id": 157, "type": "function_declarator", "text": "push(ST *s)", "parent": 155, "children": [158, 159], "start_point": {"row": 32, "column": 5}, "end_point": {"row": 32, "column": 16}}, {"id": 158, "type": "identifier", "text": "push", "parent": 157, "children": [], "start_point": {"row": 32, "column": 5}, "end_point": {"row": 32, "column": 9}}, {"id": 159, "type": "parameter_list", "text": "(ST *s)", "parent": 157, "children": [160], "start_point": {"row": 32, "column": 9}, "end_point": {"row": 32, "column": 16}}, {"id": 160, "type": "parameter_declaration", "text": "ST *s", "parent": 159, "children": [161, 162], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 15}}, {"id": 161, "type": "type_identifier", "text": "ST", "parent": 160, "children": [], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 12}}, {"id": 162, "type": "pointer_declarator", "text": "*s", "parent": 160, "children": [163, 164], "start_point": {"row": 32, "column": 13}, "end_point": {"row": 32, "column": 15}}, {"id": 163, "type": "*", "text": "*", "parent": 162, "children": [], "start_point": {"row": 32, "column": 13}, "end_point": {"row": 32, "column": 14}}, {"id": 164, "type": "identifier", "text": "s", "parent": 162, "children": [], "start_point": {"row": 32, "column": 14}, "end_point": {"row": 32, "column": 15}}, {"id": 165, "type": "declaration", "text": "int x, p;", "parent": 155, "children": [166, 167, 168], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 13}}, {"id": 166, "type": "primitive_type", "text": "int", "parent": 165, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 7}}, {"id": 167, "type": "identifier", "text": "x", "parent": 165, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 9}}, {"id": 168, "type": "identifier", "text": "p", "parent": 165, "children": [], "start_point": {"row": 33, "column": 11}, "end_point": {"row": 33, "column": 12}}, {"id": 169, "type": "if_statement", "text": "if(!isFull(s)) {\n printf(\"Enter a value: \");\n scanf(\"%d\", &x);\n s->top++;\n p = s->top;\n s->array[p] = x;\n printf(\"%d added to the stack\\n\", x);\n }\n else printf(\"Stack full\\n\");", "parent": 155, "children": [170, 212], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 42, "column": 32}}, {"id": 170, "type": "parenthesized_expression", "text": "(!isFull(s))", "parent": 169, "children": [171], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 18}}, {"id": 171, "type": "unary_expression", "text": "!isFull(s)", "parent": 170, "children": [172, 173], "start_point": {"row": 34, "column": 7}, "end_point": {"row": 34, "column": 17}}, {"id": 172, "type": "!", "text": "!", "parent": 171, "children": [], "start_point": {"row": 34, "column": 7}, "end_point": {"row": 34, "column": 8}}, {"id": 173, "type": "call_expression", "text": "isFull(s)", "parent": 171, "children": [174, 175], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 17}}, {"id": 174, "type": "identifier", "text": "isFull", "parent": 173, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 14}}, {"id": 175, "type": "argument_list", "text": "(s)", "parent": 173, "children": [176], "start_point": {"row": 34, "column": 14}, "end_point": {"row": 34, "column": 17}}, {"id": 176, "type": "identifier", "text": "s", "parent": 175, "children": [], "start_point": {"row": 34, "column": 15}, "end_point": {"row": 34, "column": 16}}, {"id": 177, "type": "call_expression", "text": "printf(\"Enter a value: \")", "parent": 169, "children": [178, 179], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 33}}, {"id": 178, "type": "identifier", "text": "printf", "parent": 177, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 14}}, {"id": 179, "type": "argument_list", "text": "(\"Enter a value: \")", "parent": 177, "children": [180], "start_point": {"row": 35, "column": 14}, "end_point": {"row": 35, "column": 33}}, {"id": 180, "type": "string_literal", "text": "\"Enter a value: \"", "parent": 179, "children": [], "start_point": {"row": 35, "column": 15}, "end_point": {"row": 35, "column": 32}}, {"id": 181, "type": "call_expression", "text": "scanf(\"%d\", &x)", "parent": 169, "children": [182, 183], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 23}}, {"id": 182, "type": "identifier", "text": "scanf", "parent": 181, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 13}}, {"id": 183, "type": "argument_list", "text": "(\"%d\", &x)", "parent": 181, "children": [184, 185], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 23}}, {"id": 184, "type": "string_literal", "text": "\"%d\"", "parent": 183, "children": [], "start_point": {"row": 36, "column": 14}, "end_point": {"row": 36, "column": 18}}, {"id": 185, "type": "pointer_expression", "text": "&x", "parent": 183, "children": [186], "start_point": {"row": 36, "column": 20}, "end_point": {"row": 36, "column": 22}}, {"id": 186, "type": "identifier", "text": "x", "parent": 185, "children": [], "start_point": {"row": 36, "column": 21}, "end_point": {"row": 36, "column": 22}}, {"id": 187, "type": "update_expression", "text": "s->top++", "parent": 169, "children": [188, 191], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 16}}, {"id": 188, "type": "field_expression", "text": "s->top", "parent": 187, "children": [189, 190], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 14}}, {"id": 189, "type": "identifier", "text": "s", "parent": 188, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 9}}, {"id": 190, "type": "field_identifier", "text": "top", "parent": 188, "children": [], "start_point": {"row": 37, "column": 11}, "end_point": {"row": 37, "column": 14}}, {"id": 191, "type": "++", "text": "++", "parent": 187, "children": [], "start_point": {"row": 37, "column": 14}, "end_point": {"row": 37, "column": 16}}, {"id": 192, "type": "assignment_expression", "text": "p = s->top", "parent": 169, "children": [193, 194, 195], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 18}}, {"id": 193, "type": "identifier", "text": "p", "parent": 192, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 9}}, {"id": 194, "type": "=", "text": "=", "parent": 192, "children": [], "start_point": {"row": 38, "column": 10}, "end_point": {"row": 38, "column": 11}}, {"id": 195, "type": "field_expression", "text": "s->top", "parent": 192, "children": [196, 197], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 18}}, {"id": 196, "type": "identifier", "text": "s", "parent": 195, "children": [], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 13}}, {"id": 197, "type": "field_identifier", "text": "top", "parent": 195, "children": [], "start_point": {"row": 38, "column": 15}, "end_point": {"row": 38, "column": 18}}, {"id": 198, "type": "assignment_expression", "text": "s->array[p] = x", "parent": 169, "children": [199, 204, 205], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 23}}, {"id": 199, "type": "subscript_expression", "text": "s->array[p]", "parent": 198, "children": [200, 203], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 19}}, {"id": 200, "type": "field_expression", "text": "s->array", "parent": 199, "children": [201, 202], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 16}}, {"id": 201, "type": "identifier", "text": "s", "parent": 200, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 9}}, {"id": 202, "type": "field_identifier", "text": "array", "parent": 200, "children": [], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 16}}, {"id": 203, "type": "identifier", "text": "p", "parent": 199, "children": [], "start_point": {"row": 39, "column": 17}, "end_point": {"row": 39, "column": 18}}, {"id": 204, "type": "=", "text": "=", "parent": 198, "children": [], "start_point": {"row": 39, "column": 20}, "end_point": {"row": 39, "column": 21}}, {"id": 205, "type": "identifier", "text": "x", "parent": 198, "children": [], "start_point": {"row": 39, "column": 22}, "end_point": {"row": 39, "column": 23}}, {"id": 206, "type": "call_expression", "text": "printf(\"%d added to the stack\\n\", x)", "parent": 169, "children": [207, 208], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 44}}, {"id": 207, "type": "identifier", "text": "printf", "parent": 206, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 14}}, {"id": 208, "type": "argument_list", "text": "(\"%d added to the stack\\n\", x)", "parent": 206, "children": [209, 211], "start_point": {"row": 40, "column": 14}, "end_point": {"row": 40, "column": 44}}, {"id": 209, "type": "string_literal", "text": "\"%d added to the stack\\n\"", "parent": 208, "children": [210], "start_point": {"row": 40, "column": 15}, "end_point": {"row": 40, "column": 40}}, {"id": 210, "type": "escape_sequence", "text": "\\n", "parent": 209, "children": [], "start_point": {"row": 40, "column": 37}, "end_point": {"row": 40, "column": 39}}, {"id": 211, "type": "identifier", "text": "x", "parent": 208, "children": [], "start_point": {"row": 40, "column": 42}, "end_point": {"row": 40, "column": 43}}, {"id": 212, "type": "else_clause", "text": "else printf(\"Stack full\\n\");", "parent": 169, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 32}}, {"id": 213, "type": "call_expression", "text": "printf(\"Stack full\\n\")", "parent": 212, "children": [214, 215], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 42, "column": 31}}, {"id": 214, "type": "identifier", "text": "printf", "parent": 213, "children": [], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 42, "column": 15}}, {"id": 215, "type": "argument_list", "text": "(\"Stack full\\n\")", "parent": 213, "children": [216], "start_point": {"row": 42, "column": 15}, "end_point": {"row": 42, "column": 31}}, {"id": 216, "type": "string_literal", "text": "\"Stack full\\n\"", "parent": 215, "children": [217], "start_point": {"row": 42, "column": 16}, "end_point": {"row": 42, "column": 30}}, {"id": 217, "type": "escape_sequence", "text": "\\n", "parent": 216, "children": [], "start_point": {"row": 42, "column": 27}, "end_point": {"row": 42, "column": 29}}, {"id": 218, "type": "function_definition", "text": "void pop(ST *s) {\n if(!isEmp(s)) {\n int x, p;\n p = s->top;\n x = s->array[p];\n s->top--;\n printf(\"%d popped outta the stack\\n\", x);\n }\n else printf(\"Empty stack\\n\");\n}", "parent": null, "children": [219, 220], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 54, "column": 1}}, {"id": 219, "type": "primitive_type", "text": "void", "parent": 218, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 4}}, {"id": 220, "type": "function_declarator", "text": "pop(ST *s)", "parent": 218, "children": [221, 222], "start_point": {"row": 45, "column": 5}, "end_point": {"row": 45, "column": 15}}, {"id": 221, "type": "identifier", "text": "pop", "parent": 220, "children": [], "start_point": {"row": 45, "column": 5}, "end_point": {"row": 45, "column": 8}}, {"id": 222, "type": "parameter_list", "text": "(ST *s)", "parent": 220, "children": [223], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 15}}, {"id": 223, "type": "parameter_declaration", "text": "ST *s", "parent": 222, "children": [224, 225], "start_point": {"row": 45, "column": 9}, "end_point": {"row": 45, "column": 14}}, {"id": 224, "type": "type_identifier", "text": "ST", "parent": 223, "children": [], "start_point": {"row": 45, "column": 9}, "end_point": {"row": 45, "column": 11}}, {"id": 225, "type": "pointer_declarator", "text": "*s", "parent": 223, "children": [226, 227], "start_point": {"row": 45, "column": 12}, "end_point": {"row": 45, "column": 14}}, {"id": 226, "type": "*", "text": "*", "parent": 225, "children": [], "start_point": {"row": 45, "column": 12}, "end_point": {"row": 45, "column": 13}}, {"id": 227, "type": "identifier", "text": "s", "parent": 225, "children": [], "start_point": {"row": 45, "column": 13}, "end_point": {"row": 45, "column": 14}}, {"id": 228, "type": "if_statement", "text": "if(!isEmp(s)) {\n int x, p;\n p = s->top;\n x = s->array[p];\n s->top--;\n printf(\"%d popped outta the stack\\n\", x);\n }\n else printf(\"Empty stack\\n\");", "parent": 218, "children": [229, 265], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 53, "column": 33}}, {"id": 229, "type": "parenthesized_expression", "text": "(!isEmp(s))", "parent": 228, "children": [230], "start_point": {"row": 46, "column": 6}, "end_point": {"row": 46, "column": 17}}, {"id": 230, "type": "unary_expression", "text": "!isEmp(s)", "parent": 229, "children": [231, 232], "start_point": {"row": 46, "column": 7}, "end_point": {"row": 46, "column": 16}}, {"id": 231, "type": "!", "text": "!", "parent": 230, "children": [], "start_point": {"row": 46, "column": 7}, "end_point": {"row": 46, "column": 8}}, {"id": 232, "type": "call_expression", "text": "isEmp(s)", "parent": 230, "children": [233, 234], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 16}}, {"id": 233, "type": "identifier", "text": "isEmp", "parent": 232, "children": [], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 13}}, {"id": 234, "type": "argument_list", "text": "(s)", "parent": 232, "children": [235], "start_point": {"row": 46, "column": 13}, "end_point": {"row": 46, "column": 16}}, {"id": 235, "type": "identifier", "text": "s", "parent": 234, "children": [], "start_point": {"row": 46, "column": 14}, "end_point": {"row": 46, "column": 15}}, {"id": 236, "type": "declaration", "text": "int x, p;", "parent": 228, "children": [237, 238, 239], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 17}}, {"id": 237, "type": "primitive_type", "text": "int", "parent": 236, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 11}}, {"id": 238, "type": "identifier", "text": "x", "parent": 236, "children": [], "start_point": {"row": 47, "column": 12}, "end_point": {"row": 47, "column": 13}}, {"id": 239, "type": "identifier", "text": "p", "parent": 236, "children": [], "start_point": {"row": 47, "column": 15}, "end_point": {"row": 47, "column": 16}}, {"id": 240, "type": "assignment_expression", "text": "p = s->top", "parent": 228, "children": [241, 242, 243], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 18}}, {"id": 241, "type": "identifier", "text": "p", "parent": 240, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 9}}, {"id": 242, "type": "=", "text": "=", "parent": 240, "children": [], "start_point": {"row": 48, "column": 10}, "end_point": {"row": 48, "column": 11}}, {"id": 243, "type": "field_expression", "text": "s->top", "parent": 240, "children": [244, 245], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 18}}, {"id": 244, "type": "identifier", "text": "s", "parent": 243, "children": [], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 13}}, {"id": 245, "type": "field_identifier", "text": "top", "parent": 243, "children": [], "start_point": {"row": 48, "column": 15}, "end_point": {"row": 48, "column": 18}}, {"id": 246, "type": "assignment_expression", "text": "x = s->array[p]", "parent": 228, "children": [247, 248, 249], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 23}}, {"id": 247, "type": "identifier", "text": "x", "parent": 246, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 9}}, {"id": 248, "type": "=", "text": "=", "parent": 246, "children": [], "start_point": {"row": 49, "column": 10}, "end_point": {"row": 49, "column": 11}}, {"id": 249, "type": "subscript_expression", "text": "s->array[p]", "parent": 246, "children": [250, 253], "start_point": {"row": 49, "column": 12}, "end_point": {"row": 49, "column": 23}}, {"id": 250, "type": "field_expression", "text": "s->array", "parent": 249, "children": [251, 252], "start_point": {"row": 49, "column": 12}, "end_point": {"row": 49, "column": 20}}, {"id": 251, "type": "identifier", "text": "s", "parent": 250, "children": [], "start_point": {"row": 49, "column": 12}, "end_point": {"row": 49, "column": 13}}, {"id": 252, "type": "field_identifier", "text": "array", "parent": 250, "children": [], "start_point": {"row": 49, "column": 15}, "end_point": {"row": 49, "column": 20}}, {"id": 253, "type": "identifier", "text": "p", "parent": 249, "children": [], "start_point": {"row": 49, "column": 21}, "end_point": {"row": 49, "column": 22}}, {"id": 254, "type": "update_expression", "text": "s->top--", "parent": 228, "children": [255, 258], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 16}}, {"id": 255, "type": "field_expression", "text": "s->top", "parent": 254, "children": [256, 257], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 14}}, {"id": 256, "type": "identifier", "text": "s", "parent": 255, "children": [], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 9}}, {"id": 257, "type": "field_identifier", "text": "top", "parent": 255, "children": [], "start_point": {"row": 50, "column": 11}, "end_point": {"row": 50, "column": 14}}, {"id": 258, "type": "--", "text": "--", "parent": 254, "children": [], "start_point": {"row": 50, "column": 14}, "end_point": {"row": 50, "column": 16}}, {"id": 259, "type": "call_expression", "text": "printf(\"%d popped outta the stack\\n\", x)", "parent": 228, "children": [260, 261], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 48}}, {"id": 260, "type": "identifier", "text": "printf", "parent": 259, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 14}}, {"id": 261, "type": "argument_list", "text": "(\"%d popped outta the stack\\n\", x)", "parent": 259, "children": [262, 264], "start_point": {"row": 51, "column": 14}, "end_point": {"row": 51, "column": 48}}, {"id": 262, "type": "string_literal", "text": "\"%d popped outta the stack\\n\"", "parent": 261, "children": [263], "start_point": {"row": 51, "column": 15}, "end_point": {"row": 51, "column": 44}}, {"id": 263, "type": "escape_sequence", "text": "\\n", "parent": 262, "children": [], "start_point": {"row": 51, "column": 41}, "end_point": {"row": 51, "column": 43}}, {"id": 264, "type": "identifier", "text": "x", "parent": 261, "children": [], "start_point": {"row": 51, "column": 46}, "end_point": {"row": 51, "column": 47}}, {"id": 265, "type": "else_clause", "text": "else printf(\"Empty stack\\n\");", "parent": 228, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 33}}, {"id": 266, "type": "call_expression", "text": "printf(\"Empty stack\\n\")", "parent": 265, "children": [267, 268], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 32}}, {"id": 267, "type": "identifier", "text": "printf", "parent": 266, "children": [], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 15}}, {"id": 268, "type": "argument_list", "text": "(\"Empty stack\\n\")", "parent": 266, "children": [269], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 32}}, {"id": 269, "type": "string_literal", "text": "\"Empty stack\\n\"", "parent": 268, "children": [270], "start_point": {"row": 53, "column": 16}, "end_point": {"row": 53, "column": 31}}, {"id": 270, "type": "escape_sequence", "text": "\\n", "parent": 269, "children": [], "start_point": {"row": 53, "column": 28}, "end_point": {"row": 53, "column": 30}}, {"id": 271, "type": "function_definition", "text": "int menu() {\n int c;\n printf(\"Enter choice: \");\n scanf(\"%d\", &c);\n char ch;\n while( ( ch = getchar() ) != '\\n' && ch != EOF );\n //Input buffer cleared\n return(c);\n}", "parent": null, "children": [272, 273], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 64, "column": 1}}, {"id": 272, "type": "primitive_type", "text": "int", "parent": 271, "children": [], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 3}}, {"id": 273, "type": "function_declarator", "text": "menu()", "parent": 271, "children": [274, 275], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 10}}, {"id": 274, "type": "identifier", "text": "menu", "parent": 273, "children": [], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 8}}, {"id": 275, "type": "parameter_list", "text": "()", "parent": 273, "children": [], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 10}}, {"id": 276, "type": "declaration", "text": "int c;", "parent": 271, "children": [277, 278], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 10}}, {"id": 277, "type": "primitive_type", "text": "int", "parent": 276, "children": [], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 7}}, {"id": 278, "type": "identifier", "text": "c", "parent": 276, "children": [], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 9}}, {"id": 279, "type": "call_expression", "text": "printf(\"Enter choice: \")", "parent": 271, "children": [280, 281], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 28}}, {"id": 280, "type": "identifier", "text": "printf", "parent": 279, "children": [], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 10}}, {"id": 281, "type": "argument_list", "text": "(\"Enter choice: \")", "parent": 279, "children": [282], "start_point": {"row": 58, "column": 10}, "end_point": {"row": 58, "column": 28}}, {"id": 282, "type": "string_literal", "text": "\"Enter choice: \"", "parent": 281, "children": [], "start_point": {"row": 58, "column": 11}, "end_point": {"row": 58, "column": 27}}, {"id": 283, "type": "call_expression", "text": "scanf(\"%d\", &c)", "parent": 271, "children": [284, 285], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 19}}, {"id": 284, "type": "identifier", "text": "scanf", "parent": 283, "children": [], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 9}}, {"id": 285, "type": "argument_list", "text": "(\"%d\", &c)", "parent": 283, "children": [286, 287], "start_point": {"row": 59, "column": 9}, "end_point": {"row": 59, "column": 19}}, {"id": 286, "type": "string_literal", "text": "\"%d\"", "parent": 285, "children": [], "start_point": {"row": 59, "column": 10}, "end_point": {"row": 59, "column": 14}}, {"id": 287, "type": "pointer_expression", "text": "&c", "parent": 285, "children": [288], "start_point": {"row": 59, "column": 16}, "end_point": {"row": 59, "column": 18}}, {"id": 288, "type": "identifier", "text": "c", "parent": 287, "children": [], "start_point": {"row": 59, "column": 17}, "end_point": {"row": 59, "column": 18}}, {"id": 289, "type": "declaration", "text": "char ch;", "parent": 271, "children": [290, 291], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 12}}, {"id": 290, "type": "primitive_type", "text": "char", "parent": 289, "children": [], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 8}}, {"id": 291, "type": "identifier", "text": "ch", "parent": 289, "children": [], "start_point": {"row": 60, "column": 9}, "end_point": {"row": 60, "column": 11}}, {"id": 292, "type": "while_statement", "text": "while( ( ch = getchar() ) != '\\n' && ch != EOF );", "parent": 271, "children": [293], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 53}}, {"id": 293, "type": "parenthesized_expression", "text": "( ( ch = getchar() ) != '\\n' && ch != EOF )", "parent": 292, "children": [294], "start_point": {"row": 61, "column": 9}, "end_point": {"row": 61, "column": 52}}, {"id": 294, "type": "binary_expression", "text": "( ch = getchar() ) != '\\n' && ch != EOF", "parent": 293, "children": [295, 308, 309], "start_point": {"row": 61, "column": 11}, "end_point": {"row": 61, "column": 50}}, {"id": 295, "type": "binary_expression", "text": "( ch = getchar() ) != '\\n'", "parent": 294, "children": [296, 303, 304], "start_point": {"row": 61, "column": 11}, "end_point": {"row": 61, "column": 37}}, {"id": 296, "type": "parenthesized_expression", "text": "( ch = getchar() )", "parent": 295, "children": [297], "start_point": {"row": 61, "column": 11}, "end_point": {"row": 61, "column": 29}}, {"id": 297, "type": "assignment_expression", "text": "ch = getchar()", "parent": 296, "children": [298, 299, 300], "start_point": {"row": 61, "column": 13}, "end_point": {"row": 61, "column": 27}}, {"id": 298, "type": "identifier", "text": "ch", "parent": 297, "children": [], "start_point": {"row": 61, "column": 13}, "end_point": {"row": 61, "column": 15}}, {"id": 299, "type": "=", "text": "=", "parent": 297, "children": [], "start_point": {"row": 61, "column": 16}, "end_point": {"row": 61, "column": 17}}, {"id": 300, "type": "call_expression", "text": "getchar()", "parent": 297, "children": [301, 302], "start_point": {"row": 61, "column": 18}, "end_point": {"row": 61, "column": 27}}, {"id": 301, "type": "identifier", "text": "getchar", "parent": 300, "children": [], "start_point": {"row": 61, "column": 18}, "end_point": {"row": 61, "column": 25}}, {"id": 302, "type": "argument_list", "text": "()", "parent": 300, "children": [], "start_point": {"row": 61, "column": 25}, "end_point": {"row": 61, "column": 27}}, {"id": 303, "type": "!=", "text": "!=", "parent": 295, "children": [], "start_point": {"row": 61, "column": 30}, "end_point": {"row": 61, "column": 32}}, {"id": 304, "type": "char_literal", "text": "'\\n'", "parent": 295, "children": [305, 306, 307], "start_point": {"row": 61, "column": 33}, "end_point": {"row": 61, "column": 37}}, {"id": 305, "type": "'", "text": "'", "parent": 304, "children": [], "start_point": {"row": 61, "column": 33}, "end_point": {"row": 61, "column": 34}}, {"id": 306, "type": "escape_sequence", "text": "\\n", "parent": 304, "children": [], "start_point": {"row": 61, "column": 34}, "end_point": {"row": 61, "column": 36}}, {"id": 307, "type": "'", "text": "'", "parent": 304, "children": [], "start_point": {"row": 61, "column": 36}, "end_point": {"row": 61, "column": 37}}, {"id": 308, "type": "&&", "text": "&&", "parent": 294, "children": [], "start_point": {"row": 61, "column": 38}, "end_point": {"row": 61, "column": 40}}, {"id": 309, "type": "binary_expression", "text": "ch != EOF", "parent": 294, "children": [310, 311, 312], "start_point": {"row": 61, "column": 41}, "end_point": {"row": 61, "column": 50}}, {"id": 310, "type": "identifier", "text": "ch", "parent": 309, "children": [], "start_point": {"row": 61, "column": 41}, "end_point": {"row": 61, "column": 43}}, {"id": 311, "type": "!=", "text": "!=", "parent": 309, "children": [], "start_point": {"row": 61, "column": 44}, "end_point": {"row": 61, "column": 46}}, {"id": 312, "type": "identifier", "text": "EOF", "parent": 309, "children": [], "start_point": {"row": 61, "column": 47}, "end_point": {"row": 61, "column": 50}}, {"id": 313, "type": "return_statement", "text": "return(c);", "parent": 271, "children": [314], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 14}}, {"id": 314, "type": "parenthesized_expression", "text": "(c)", "parent": 313, "children": [315], "start_point": {"row": 63, "column": 10}, "end_point": {"row": 63, "column": 13}}, {"id": 315, "type": "identifier", "text": "c", "parent": 314, "children": [], "start_point": {"row": 63, "column": 11}, "end_point": {"row": 63, "column": 12}}, {"id": 316, "type": "function_definition", "text": "int main() {\n ST *s;\n s = create();\n printf(\"1. Push items\\n2. Pop items\\n3. Exit\\n\");\n while(1) {\n switch(menu()) {\n case 1: push(s); break;\n case 2: pop(s); break;\n case 3: exit(0);\n default: printf(\"Invalid choice\\n\");\n }\n }\n}", "parent": null, "children": [317, 318], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 78, "column": 1}}, {"id": 317, "type": "primitive_type", "text": "int", "parent": 316, "children": [], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 3}}, {"id": 318, "type": "function_declarator", "text": "main()", "parent": 316, "children": [319, 320], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 10}}, {"id": 319, "type": "identifier", "text": "main", "parent": 318, "children": [], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 8}}, {"id": 320, "type": "parameter_list", "text": "()", "parent": 318, "children": [], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 10}}, {"id": 321, "type": "declaration", "text": "ST *s;", "parent": 316, "children": [322, 323], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 10}}, {"id": 322, "type": "type_identifier", "text": "ST", "parent": 321, "children": [], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 6}}, {"id": 323, "type": "pointer_declarator", "text": "*s", "parent": 321, "children": [324, 325], "start_point": {"row": 67, "column": 7}, "end_point": {"row": 67, "column": 9}}, {"id": 324, "type": "*", "text": "*", "parent": 323, "children": [], "start_point": {"row": 67, "column": 7}, "end_point": {"row": 67, "column": 8}}, {"id": 325, "type": "identifier", "text": "s", "parent": 323, "children": [], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 9}}, {"id": 326, "type": "assignment_expression", "text": "s = create()", "parent": 316, "children": [327, 328, 329], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 16}}, {"id": 327, "type": "identifier", "text": "s", "parent": 326, "children": [], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 5}}, {"id": 328, "type": "=", "text": "=", "parent": 326, "children": [], "start_point": {"row": 68, "column": 6}, "end_point": {"row": 68, "column": 7}}, {"id": 329, "type": "call_expression", "text": "create()", "parent": 326, "children": [330, 331], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 16}}, {"id": 330, "type": "identifier", "text": "create", "parent": 329, "children": [], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 14}}, {"id": 331, "type": "argument_list", "text": "()", "parent": 329, "children": [], "start_point": {"row": 68, "column": 14}, "end_point": {"row": 68, "column": 16}}, {"id": 332, "type": "call_expression", "text": "printf(\"1. Push items\\n2. Pop items\\n3. Exit\\n\")", "parent": 316, "children": [333, 334], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 52}}, {"id": 333, "type": "identifier", "text": "printf", "parent": 332, "children": [], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 10}}, {"id": 334, "type": "argument_list", "text": "(\"1. Push items\\n2. Pop items\\n3. Exit\\n\")", "parent": 332, "children": [335], "start_point": {"row": 69, "column": 10}, "end_point": {"row": 69, "column": 52}}, {"id": 335, "type": "string_literal", "text": "\"1. Push items\\n2. Pop items\\n3. Exit\\n\"", "parent": 334, "children": [336, 337, 338], "start_point": {"row": 69, "column": 11}, "end_point": {"row": 69, "column": 51}}, {"id": 336, "type": "escape_sequence", "text": "\\n", "parent": 335, "children": [], "start_point": {"row": 69, "column": 25}, "end_point": {"row": 69, "column": 27}}, {"id": 337, "type": "escape_sequence", "text": "\\n", "parent": 335, "children": [], "start_point": {"row": 69, "column": 39}, "end_point": {"row": 69, "column": 41}}, {"id": 338, "type": "escape_sequence", "text": "\\n", "parent": 335, "children": [], "start_point": {"row": 69, "column": 48}, "end_point": {"row": 69, "column": 50}}, {"id": 339, "type": "while_statement", "text": "while(1) {\n switch(menu()) {\n case 1: push(s); break;\n case 2: pop(s); break;\n case 3: exit(0);\n default: printf(\"Invalid choice\\n\");\n }\n }", "parent": 316, "children": [340], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 77, "column": 5}}, {"id": 340, "type": "parenthesized_expression", "text": "(1)", "parent": 339, "children": [341], "start_point": {"row": 70, "column": 9}, "end_point": {"row": 70, "column": 12}}, {"id": 341, "type": "number_literal", "text": "1", "parent": 340, "children": [], "start_point": {"row": 70, "column": 10}, "end_point": {"row": 70, "column": 11}}, {"id": 342, "type": "switch_statement", "text": "switch(menu()) {\n case 1: push(s); break;\n case 2: pop(s); break;\n case 3: exit(0);\n default: printf(\"Invalid choice\\n\");\n }", "parent": 339, "children": [343, 344], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 76, "column": 9}}, {"id": 343, "type": "switch", "text": "switch", "parent": 342, "children": [], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 14}}, {"id": 344, "type": "parenthesized_expression", "text": "(menu())", "parent": 342, "children": [345], "start_point": {"row": 71, "column": 14}, "end_point": {"row": 71, "column": 22}}, {"id": 345, "type": "call_expression", "text": "menu()", "parent": 344, "children": [346, 347], "start_point": {"row": 71, "column": 15}, "end_point": {"row": 71, "column": 21}}, {"id": 346, "type": "identifier", "text": "menu", "parent": 345, "children": [], "start_point": {"row": 71, "column": 15}, "end_point": {"row": 71, "column": 19}}, {"id": 347, "type": "argument_list", "text": "()", "parent": 345, "children": [], "start_point": {"row": 71, "column": 19}, "end_point": {"row": 71, "column": 21}}, {"id": 348, "type": "case_statement", "text": "case 1: push(s); break;", "parent": 342, "children": [349, 350, 355], "start_point": {"row": 72, "column": 12}, "end_point": {"row": 72, "column": 35}}, {"id": 349, "type": "case", "text": "case", "parent": 348, "children": [], "start_point": {"row": 72, "column": 12}, "end_point": {"row": 72, "column": 16}}, {"id": 350, "type": "number_literal", "text": "1", "parent": 348, "children": [], "start_point": {"row": 72, "column": 17}, "end_point": {"row": 72, "column": 18}}, {"id": 351, "type": "call_expression", "text": "push(s)", "parent": 348, "children": [352, 353], "start_point": {"row": 72, "column": 20}, "end_point": {"row": 72, "column": 27}}, {"id": 352, "type": "identifier", "text": "push", "parent": 351, "children": [], "start_point": {"row": 72, "column": 20}, "end_point": {"row": 72, "column": 24}}, {"id": 353, "type": "argument_list", "text": "(s)", "parent": 351, "children": [354], "start_point": {"row": 72, "column": 24}, "end_point": {"row": 72, "column": 27}}, {"id": 354, "type": "identifier", "text": "s", "parent": 353, "children": [], "start_point": {"row": 72, "column": 25}, "end_point": {"row": 72, "column": 26}}, {"id": 355, "type": "break_statement", "text": "break;", "parent": 348, "children": [356], "start_point": {"row": 72, "column": 29}, "end_point": {"row": 72, "column": 35}}, {"id": 356, "type": "break", "text": "break", "parent": 355, "children": [], "start_point": {"row": 72, "column": 29}, "end_point": {"row": 72, "column": 34}}, {"id": 357, "type": "case_statement", "text": "case 2: pop(s); break;", "parent": 342, "children": [358, 359, 364], "start_point": {"row": 73, "column": 12}, "end_point": {"row": 73, "column": 34}}, {"id": 358, "type": "case", "text": "case", "parent": 357, "children": [], "start_point": {"row": 73, "column": 12}, "end_point": {"row": 73, "column": 16}}, {"id": 359, "type": "number_literal", "text": "2", "parent": 357, "children": [], "start_point": {"row": 73, "column": 17}, "end_point": {"row": 73, "column": 18}}, {"id": 360, "type": "call_expression", "text": "pop(s)", "parent": 357, "children": [361, 362], "start_point": {"row": 73, "column": 20}, "end_point": {"row": 73, "column": 26}}, {"id": 361, "type": "identifier", "text": "pop", "parent": 360, "children": [], "start_point": {"row": 73, "column": 20}, "end_point": {"row": 73, "column": 23}}, {"id": 362, "type": "argument_list", "text": "(s)", "parent": 360, "children": [363], "start_point": {"row": 73, "column": 23}, "end_point": {"row": 73, "column": 26}}, {"id": 363, "type": "identifier", "text": "s", "parent": 362, "children": [], "start_point": {"row": 73, "column": 24}, "end_point": {"row": 73, "column": 25}}, {"id": 364, "type": "break_statement", "text": "break;", "parent": 357, "children": [365], "start_point": {"row": 73, "column": 28}, "end_point": {"row": 73, "column": 34}}, {"id": 365, "type": "break", "text": "break", "parent": 364, "children": [], "start_point": {"row": 73, "column": 28}, "end_point": {"row": 73, "column": 33}}, {"id": 366, "type": "case_statement", "text": "case 3: exit(0);", "parent": 342, "children": [367, 368], "start_point": {"row": 74, "column": 12}, "end_point": {"row": 74, "column": 28}}, {"id": 367, "type": "case", "text": "case", "parent": 366, "children": [], "start_point": {"row": 74, "column": 12}, "end_point": {"row": 74, "column": 16}}, {"id": 368, "type": "number_literal", "text": "3", "parent": 366, "children": [], "start_point": {"row": 74, "column": 17}, "end_point": {"row": 74, "column": 18}}, {"id": 369, "type": "call_expression", "text": "exit(0)", "parent": 366, "children": [370, 371], "start_point": {"row": 74, "column": 20}, "end_point": {"row": 74, "column": 27}}, {"id": 370, "type": "identifier", "text": "exit", "parent": 369, "children": [], "start_point": {"row": 74, "column": 20}, "end_point": {"row": 74, "column": 24}}, {"id": 371, "type": "argument_list", "text": "(0)", "parent": 369, "children": [372], "start_point": {"row": 74, "column": 24}, "end_point": {"row": 74, "column": 27}}, {"id": 372, "type": "number_literal", "text": "0", "parent": 371, "children": [], "start_point": {"row": 74, "column": 25}, "end_point": {"row": 74, "column": 26}}, {"id": 373, "type": "case_statement", "text": "default: printf(\"Invalid choice\\n\");", "parent": 342, "children": [374], "start_point": {"row": 75, "column": 12}, "end_point": {"row": 75, "column": 48}}, {"id": 374, "type": "default", "text": "default", "parent": 373, "children": [], "start_point": {"row": 75, "column": 12}, "end_point": {"row": 75, "column": 19}}, {"id": 375, "type": "call_expression", "text": "printf(\"Invalid choice\\n\")", "parent": 373, "children": [376, 377], "start_point": {"row": 75, "column": 21}, "end_point": {"row": 75, "column": 47}}, {"id": 376, "type": "identifier", "text": "printf", "parent": 375, "children": [], "start_point": {"row": 75, "column": 21}, "end_point": {"row": 75, "column": 27}}, {"id": 377, "type": "argument_list", "text": "(\"Invalid choice\\n\")", "parent": 375, "children": [378], "start_point": {"row": 75, "column": 27}, "end_point": {"row": 75, "column": 47}}, {"id": 378, "type": "string_literal", "text": "\"Invalid choice\\n\"", "parent": 377, "children": [379], "start_point": {"row": 75, "column": 28}, "end_point": {"row": 75, "column": 46}}, {"id": 379, "type": "escape_sequence", "text": "\\n", "parent": 378, "children": [], "start_point": {"row": 75, "column": 43}, "end_point": {"row": 75, "column": 45}}]}, "node_categories": {"declarations": {"functions": [24, 28, 104, 106, 132, 134, 155, 157, 218, 220, 271, 273, 316, 318], "variables": [6, 11, 14, 18, 31, 44, 74, 109, 137, 160, 165, 223, 236, 276, 289, 321], "classes": [8, 9], "imports": [0, 1, 3, 4], "modules": [], "enums": []}, "statements": {"expressions": [34, 38, 42, 51, 56, 59, 60, 63, 69, 81, 86, 89, 90, 96, 102, 115, 116, 117, 121, 122, 143, 144, 145, 170, 171, 173, 177, 181, 185, 187, 188, 195, 199, 200, 206, 213, 229, 230, 232, 243, 249, 250, 254, 255, 259, 266, 279, 283, 287, 293, 294, 295, 296, 300, 309, 314, 329, 332, 340, 344, 345, 351, 360, 369, 375], "assignments": [62, 68, 95, 192, 198, 240, 246, 297, 326], "loops": [292, 339], "conditionals": [10, 13, 15, 17, 22, 23, 25, 29, 33, 35, 39, 43, 45, 49, 53, 57, 61, 64, 65, 70, 71, 73, 79, 87, 94, 97, 98, 100, 103, 107, 110, 113, 114, 118, 119, 123, 124, 135, 138, 141, 142, 146, 147, 158, 161, 164, 167, 168, 169, 174, 176, 178, 182, 186, 189, 190, 193, 196, 197, 201, 202, 203, 205, 207, 211, 214, 221, 224, 227, 228, 233, 235, 238, 239, 241, 244, 245, 247, 251, 252, 253, 256, 257, 260, 264, 267, 274, 278, 280, 284, 288, 291, 298, 301, 310, 312, 315, 319, 322, 325, 327, 330, 333, 342, 343, 346, 348, 349, 352, 354, 357, 358, 361, 363, 366, 367, 370, 373, 376], "returns": [101, 127, 130, 150, 153, 313], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 37, 41, 67, 126, 128, 131, 149, 151, 154, 180, 184, 209, 216, 262, 269, 282, 286, 304, 335, 341, 350, 359, 368, 372, 378], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 24, "universal_type": "function", "name": "cap;", "text_snippet": "ST* create() {\n int cap;\n printf(\"What is the stack capacity: \");\n scanf(\"%d\", &cap);\n S"}, {"node_id": 28, "universal_type": "function", "name": "unknown", "text_snippet": "create()"}, {"node_id": 104, "universal_type": "function", "name": "isFull", "text_snippet": "int isFull(ST *s) {\n if(s->top == s->capacity-1) return 1;\n else return 0;\n}"}, {"node_id": 106, "universal_type": "function", "name": "unknown", "text_snippet": "isFull(ST *s)"}, {"node_id": 132, "universal_type": "function", "name": "isEmp", "text_snippet": "int isEmp(ST *s) {\n if(s->top == -1) return 1;\n else return 0;\n}"}, {"node_id": 134, "universal_type": "function", "name": "unknown", "text_snippet": "isEmp(ST *s)"}, {"node_id": 155, "universal_type": "function", "name": "push", "text_snippet": "void push(ST *s) {\n int x, p;\n if(!isFull(s)) {\n printf(\"Enter a value: \");\n sca"}, {"node_id": 157, "universal_type": "function", "name": "unknown", "text_snippet": "push(ST *s)"}, {"node_id": 218, "universal_type": "function", "name": "pop", "text_snippet": "void pop(ST *s) {\n if(!isEmp(s)) {\n int x, p;\n p = s->top;\n x = s->array[p];"}, {"node_id": 220, "universal_type": "function", "name": "unknown", "text_snippet": "pop(ST *s)"}, {"node_id": 271, "universal_type": "function", "name": "menu", "text_snippet": "int menu() {\n int c;\n printf(\"Enter choice: \");\n scanf(\"%d\", &c);\n char ch;\n while( ("}, {"node_id": 273, "universal_type": "function", "name": "unknown", "text_snippet": "menu()"}, {"node_id": 316, "universal_type": "function", "name": "main", "text_snippet": "int main() {\n ST *s;\n s = create();\n printf(\"1. Push items\\n2. Pop items\\n3. Exit\\n\");\n "}, {"node_id": 318, "universal_type": "function", "name": "unknown", "text_snippet": "main()"}], "class_declarations": [{"node_id": 8, "universal_type": "class", "name": "stack", "text_snippet": "struct stack {\n int top;\n unsigned capacity;\n int *array;\n}"}, {"node_id": 9, "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\ntypedef struct stack {\n int top;\n unsigned capacity;\n int *array;\n} ST;\n\n\n\nST* create() {\n int cap;\n printf(\"What is the stack capacity: \");\n scanf(\"%d\", &cap);\n ST *s = (ST*)malloc(sizeof(ST));\n s->top = -1;\n s->capacity = cap;\n int *arr = (int*)malloc(sizeof(int) * cap);\n s->array = arr;\n return(s);\n}\nint isFull(ST *s) {\n if(s->top == s->capacity-1) return 1;\n else return 0;\n}\n\nint isEmp(ST *s) {\n if(s->top == -1) return 1;\n else return 0;\n}\n\nvoid push(ST *s) {\n int x, p;\n if(!isFull(s)) {\n printf(\"Enter a value: \");\n scanf(\"%d\", &x);\n s->top++;\n p = s->top;\n s->array[p] = x;\n printf(\"%d added to the stack\\n\", x);\n }\n else printf(\"Stack full\\n\");\n}\n\nvoid pop(ST *s) {\n if(!isEmp(s)) {\n int x, p;\n p = s->top;\n x = s->array[p];\n s->top--;\n printf(\"%d popped outta the stack\\n\", x);\n }\n else printf(\"Empty stack\\n\");\n}\n\nint menu() {\n int c;\n printf(\"Enter choice: \");\n scanf(\"%d\", &c);\n char ch;\n while( ( ch = getchar() ) != '\\n' && ch != EOF );\n //Input buffer cleared\n return(c);\n}\n\nint main() {\n ST *s;\n s = create();\n printf(\"1. Push items\\n2. Pop items\\n3. Exit\\n\");\n while(1) {\n switch(menu()) {\n case 1: push(s); break;\n case 2: pop(s); break;\n case 3: exit(0);\n default: printf(\"Invalid choice\\n\");\n }\n }\n}"}
80,257
c
#import <Cocoa/Cocoa.h> @interface ArtHUDView : NSWindow @property (nonatomic, assign) CGFloat cornerRadius; @end
27.5
4
(translation_unit) "#import <Cocoa/Cocoa.h>\n\n@interface ArtHUDView : NSWindow\n@property (nonatomic, assign) CGFloat cornerRadius;\n@end\n" (preproc_call) "#import <Cocoa/Cocoa.h>\n" (preproc_directive) "#import" (preproc_arg) "<Cocoa/Cocoa.h>" (ERROR) "@interface ArtHUDView : NSWindow\n@property (nonatomic, assign) CGFloat cornerRadius;\n@end" (ERROR) "@" (type_identifier) "interface" (function_declarator) "ArtHUDView : NSWindow\n@property (nonatomic, assign)" (identifier) "ArtHUDView" (ERROR) ": NSWindow\n@property" (:) ":" (identifier) "NSWindow" (ERROR) "@" (identifier) "property" (parameter_list) "(nonatomic, assign)" (() "(" (identifier) "nonatomic" (,) "," (identifier) "assign" ()) ")" (declaration) "CGFloat cornerRadius;" (type_identifier) "CGFloat" (identifier) "cornerRadius" (;) ";" (ERROR) "@" (ERROR) "@" (identifier) "end"
27
6
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 27.5, "nodes": 20, "errors": 0, "source_hash": "8f34bbdfcdfb97e16ecb0bf3d208b2a8d28a431307d562cc2b5cf608db1a5285", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Cocoa/Cocoa.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": "<Cocoa/Cocoa.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 23}}, {"id": 3, "type": "ERROR", "text": "@interface ArtHUDView : NSWindow\n@property (nonatomic, assign) CGFloat cornerRadius;\n@end", "parent": null, "children": [4, 5, 6, 15, 18], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 4, "column": 4}}, {"id": 4, "type": "ERROR", "text": "@", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 1}}, {"id": 5, "type": "type_identifier", "text": "interface", "parent": 3, "children": [], "start_point": {"row": 2, "column": 1}, "end_point": {"row": 2, "column": 10}}, {"id": 6, "type": "function_declarator", "text": "ArtHUDView : NSWindow\n@property (nonatomic, assign)", "parent": 3, "children": [7, 8, 12], "start_point": {"row": 2, "column": 11}, "end_point": {"row": 3, "column": 29}}, {"id": 7, "type": "identifier", "text": "ArtHUDView", "parent": 6, "children": [], "start_point": {"row": 2, "column": 11}, "end_point": {"row": 2, "column": 21}}, {"id": 8, "type": "ERROR", "text": ": NSWindow\n@property", "parent": 6, "children": [9, 10, 11], "start_point": {"row": 2, "column": 22}, "end_point": {"row": 3, "column": 9}}, {"id": 9, "type": "identifier", "text": "NSWindow", "parent": 8, "children": [], "start_point": {"row": 2, "column": 24}, "end_point": {"row": 2, "column": 32}}, {"id": 10, "type": "ERROR", "text": "@", "parent": 8, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 1}}, {"id": 11, "type": "identifier", "text": "property", "parent": 8, "children": [], "start_point": {"row": 3, "column": 1}, "end_point": {"row": 3, "column": 9}}, {"id": 12, "type": "parameter_list", "text": "(nonatomic, assign)", "parent": 6, "children": [13, 14], "start_point": {"row": 3, "column": 10}, "end_point": {"row": 3, "column": 29}}, {"id": 13, "type": "identifier", "text": "nonatomic", "parent": 12, "children": [], "start_point": {"row": 3, "column": 11}, "end_point": {"row": 3, "column": 20}}, {"id": 14, "type": "identifier", "text": "assign", "parent": 12, "children": [], "start_point": {"row": 3, "column": 22}, "end_point": {"row": 3, "column": 28}}, {"id": 15, "type": "declaration", "text": "CGFloat cornerRadius;", "parent": 3, "children": [16, 17], "start_point": {"row": 3, "column": 30}, "end_point": {"row": 3, "column": 51}}, {"id": 16, "type": "type_identifier", "text": "CGFloat", "parent": 15, "children": [], "start_point": {"row": 3, "column": 30}, "end_point": {"row": 3, "column": 37}}, {"id": 17, "type": "identifier", "text": "cornerRadius", "parent": 15, "children": [], "start_point": {"row": 3, "column": 38}, "end_point": {"row": 3, "column": 50}}, {"id": 18, "type": "ERROR", "text": "@", "parent": 3, "children": [19], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 1}}, {"id": 19, "type": "ERROR", "text": "@", "parent": 18, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 1}}]}, "node_categories": {"declarations": {"functions": [6], "variables": [15], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [5, 7, 9, 11, 13, 14, 16, 17], "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": "ArtHUDView : NSWindow\n@property (nonatomic, assign)"}], "class_declarations": [], "import_statements": []}, "original_source_code": "#import <Cocoa/Cocoa.h>\n\n@interface ArtHUDView : NSWindow\n@property (nonatomic, assign) CGFloat cornerRadius;\n@end\n"}
80,258
c
// Copyright (c) 2019-2020 LG Electronics, Inc. // // 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. // // SPDX-License-Identifier: Apache-2.0 #pragma once #include "plugin.h" #include "logging.h" #include <upnp.h> #include <functional> /// UPnP plugin class definition. class Upnp : public Plugin { public: /// Base uri of this plugin. static std::string uri; /** * \brief Get UPnP plugin singleton instance. * * \return Singleton object in std::shared_ptr. */ static std::shared_ptr<Plugin> instance(); /// We cannot make this private because it is used from std::make_shared() Upnp(); virtual ~Upnp(); /** * \brief Export client handle. * * \return Client handle. */ UpnpClient_Handle upnpHandle(void) const; /// Use standard device scan method void scan(const std::string &uri); /// From base class. void extractMeta(MediaItem &mediaItem, bool expand = false); /// From base class. std::optional<std::string> getPlaybackUri(const std::string &uri); private: /// Get message id. LOG_MSGID; /// Singleton object. static std::shared_ptr<Plugin> instance_; /// Type of UPnP devices we are looking for. static const char *upnpDeviceCategory_; /// Service of UPnP devices we are looking for. static const char *upnpServiceCategory_; /// Time in seconds to wait for responses. static const int upnpSearchTimeout_; /// UPnP event callback. static int eventCallback(Upnp_EventType eventType, const void *event, void *cookie); /** * \brief Get result DIDL from action response. * * \param[in] event The action completed event. * \return The DIDL document or nullptr. */ static IXML_Document *actionResult(UpnpActionComplete *event); /** * \brief Get device meta data and push it into the device. * * \param[in] plugin The plugin instance. * \param[in] uri The device uri. * \param[in] location The location information from discovery. * response. */ static void getDeviceMeta(Upnp *plugin, std::string uri, std::string location); /// From plugin base class. int runDeviceDetection(bool start); /** * Register newly found service. * * \param[in] event A DISCOVERY event. */ void serviceFound(const void *event); /** * Called if service says byebye. * * \param[in] event A DISCOVERY event. */ void serviceLost(const void *event); /** * \brief Replace whitespace and ':' with '-', remove leading * 'uuid:'. * * \param[in] deviceId The unmangled DeviceID from discovery reponse. * \return The mangled string. */ std::string mangleUri(const UpnpString *deviceId); /** * \brief Get child node from node. * * \param[in] node The IXML node structure. * \param[in] tagName The tag name. * \return The node or nullptr if no text found. */ IXML_Node *getChildNode(IXML_Node *node, const char *tagName) const; /** * \brief Get text content from node. * * The node must be unique within the document. * * \param[in] doc The IXML document structure. * \param[in] tagName The tag name. * \return The text or nullptr if no text found. */ const DOMString getNodeText(IXML_Document *doc, const char *tagName) const; /** * \brief Get text content from node. * * \param[in] node The node structure. * \param[in] tagName The tag name. * \return The text or nullptr if no text found. */ const DOMString getNodeText(IXML_Node *node, const char *tagName) const; /** * \brief Get text content from node. * * \param[in] node The node structure. * \return The text or nullptr if no text found. */ const DOMString getNodeText(IXML_Node *node) const; /** * \brief Get text content from an attribute. * * Caller has to free returned memory. * * \param[in] node The node structure. * \param[in] attrName The name of the attribute. * \return The text or nullptr if no text found. */ DOMString getAttributeText(IXML_Node *node, const char *attrName) const; /** * \brief Get text content from node. * * The node must be unique within the document. * * \param[in] doc The IXML document structure. * \param[in] tagName The tag name. * \param[in] func Function to call within iteration. */ void iterateOnTag(IXML_Document *doc, const char *tagName, const std::function<void(IXML_Node*)> &func) const; /** * \brief Check if service category matches. * * The caller must free the returned Url. * * \param[in] doc The IXML document structure. * \return The control Url if matching service found, else nullptr. */ const char *checkServiceCategory(IXML_Document *doc) const; /** * \brief Request meta data for object. * * \param[in] id The object id. * \param[in] mediaItem The media item to request meta data for. * \return True on success, else false. */ bool sendMetaRequest(const std::string &id, MediaItem &mediaItem) const; /** * \brief Send browse request. * * \param[in] id The object id. * \param[in] count The expected number of matches. * \param[in] device The device to browse. * \return True on success, else false. */ bool sendBrowseRequest(const std::string &id, int count, std::shared_ptr<Device> device) const; /** * \brief Browse chunk of items. * * \param[in] id The object id. * \param[in] start The start index. * \param[in] count The number of items to request. * \param[in] device The device to browse for scan mode. * \return The number of items found or -1 on error. */ int browseChunk(const std::string &id, int start, int count, std::shared_ptr<Device> device) const; /** * \brief Handle browse response. * * \param[in] doc The DIDL doc. * \param[in] device The device. * \return True on success, else false. */ bool parseBrowseResponse(IXML_Document *doc, std::shared_ptr<Device> device) const; /** * \brief Handle meta data response. * * \param[in] doc The DIDL doc. * \param[in] mediaItem The mediaItem to parse into. * \return True on success, else false. */ bool parseMetaDataResponse(IXML_Document *doc, MediaItem &mediaItem) const; /** * \brief Read the requested meta from upnp response. * * \param[in] doc The DIDL doc. * \param[in] mediaItem The media item. * \param[in] meta The meta tag. */ void setMetaOnMediaItem(IXML_Document *doc, MediaItem &mediaItem, MediaItem::Meta meta) const; /** * \brief Try to generate hash from item tag. * * \param[in] item The item to hash. * \return The hash value. */ unsigned long generateItemHash(IXML_Node *item) const; /** * \brief Get the meta data of an opject. * * If a DIDL document is returned it must be free'd using * ixmlDocument_free(). * * \param[in] id The object id. * \param[in] device The device to work on. * \return The DIDL document or nullptr. */ IXML_Document *getObjectMeta(const std::string &id, std::shared_ptr<Device> device) const; /** * \brief Generate simple MIME identifier from UPNP class type. * * \param[in] upnpClass The UPNP class string. * \return A MIME string. */ std::string upnpClassToMime(const std::string &upnpClass) const; /** * \brief Check if we want to dive into this type of container. * * \param[in] upnpClass The UPNP class string. * \return True or false. */ bool upnpClassCheck(const std::string &upnpClass) const; /// UPnP client handle. UpnpClient_Handle upnpHandle_; /// List of upnp devices know to not be ContentDir providers. std::list<std::string> blacklist_; /// Lock for the blacklist. mutable std::mutex blacklistLock_; /// Lock for concurrent server access. mutable std::mutex browseLock_; };
32.74
261
(translation_unit) "// Copyright (c) 2019-2020 LG Electronics, Inc.\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// SPDX-License-Identifier: Apache-2.0\n\n#pragma once\n\n#include "plugin.h"\n#include "logging.h"\n\n#include <upnp.h>\n\n#include <functional>\n\n/// UPnP plugin class definition.\nclass Upnp : public Plugin\n{\npublic:\n /// Base uri of this plugin.\n static std::string uri;\n\n /**\n * \brief Get UPnP plugin singleton instance.\n *\n * \return Singleton object in std::shared_ptr.\n */\n static std::shared_ptr<Plugin> instance();\n\n /// We cannot make this private because it is used from std::make_shared()\n Upnp();\n virtual ~Upnp();\n\n /**\n * \brief Export client handle.\n *\n * \return Client handle.\n */\n UpnpClient_Handle upnpHandle(void) const;\n\n /// Use standard device scan method\n void scan(const std::string &uri);\n\n /// From base class.\n void extractMeta(MediaItem &mediaItem, bool expand = false);\n\n /// From base class.\n std::optional<std::string> getPlaybackUri(const std::string &uri);\n\nprivate:\n /// Get message id.\n LOG_MSGID;\n\n /// Singleton object.\n static std::shared_ptr<Plugin> instance_;\n /// Type of UPnP devices we are looking for.\n static const char *upnpDeviceCategory_;\n /// Service of UPnP devices we are looking for.\n static const char *upnpServiceCategory_;\n /// Time in seconds to wait for responses.\n static const int upnpSearchTimeout_;\n\n /// UPnP event callback.\n static int eventCallback(Upnp_EventType eventType, const void *event,\n void *cookie);\n\n /**\n * \brief Get result DIDL from action response.\n *\n * \param[in] event The action completed event.\n * \return The DIDL document or nullptr.\n */\n static IXML_Document *actionResult(UpnpActionComplete *event);\n\n /**\n * \brief Get device meta data and push it into the device.\n *\n * \param[in] plugin The plugin instance.\n * \param[in] uri The device uri.\n * \param[in] location The location information from discovery.\n * response.\n */\n static void getDeviceMeta(Upnp *plugin, std::string uri,\n std::string location);\n\n /// From plugin base class.\n int runDeviceDetection(bool start);\n\n /**\n * Register newly found service.\n *\n * \param[in] event A DISCOVERY event.\n */\n void serviceFound(const void *event);\n\n /**\n * Called if service says byebye.\n *\n * \param[in] event A DISCOVERY event.\n */\n void serviceLost(const void *event);\n\n /**\n * \brief Replace whitespace and ':' with '-', remove leading\n * 'uuid:'.\n *\n * \param[in] deviceId The unmangled DeviceID from discovery reponse.\n * \return The mangled string.\n */\n std::string mangleUri(const UpnpString *deviceId);\n\n /**\n * \brief Get child node from node.\n *\n * \param[in] node The IXML node structure.\n * \param[in] tagName The tag name.\n * \return The node or nullptr if no text found.\n */\n IXML_Node *getChildNode(IXML_Node *node, const char *tagName) const; \n\n /**\n * \brief Get text content from node.\n *\n * The node must be unique within the document.\n *\n * \param[in] doc The IXML document structure.\n * \param[in] tagName The tag name.\n * \return The text or nullptr if no text found.\n */\n const DOMString getNodeText(IXML_Document *doc, const char *tagName) const;\n\n /**\n * \brief Get text content from node.\n *\n * \param[in] node The node structure.\n * \param[in] tagName The tag name.\n * \return The text or nullptr if no text found.\n */\n const DOMString getNodeText(IXML_Node *node, const char *tagName) const;\n\n /**\n * \brief Get text content from node.\n *\n * \param[in] node The node structure.\n * \return The text or nullptr if no text found.\n */\n const DOMString getNodeText(IXML_Node *node) const;\n\n /**\n * \brief Get text content from an attribute.\n *\n * Caller has to free returned memory.\n *\n * \param[in] node The node structure.\n * \param[in] attrName The name of the attribute.\n * \return The text or nullptr if no text found.\n */\n DOMString getAttributeText(IXML_Node *node, const char *attrName) const;\n\n /**\n * \brief Get text content from node.\n *\n * The node must be unique within the document.\n *\n * \param[in] doc The IXML document structure.\n * \param[in] tagName The tag name.\n * \param[in] func Function to call within iteration.\n */\n void iterateOnTag(IXML_Document *doc, const char *tagName,\n const std::function<void(IXML_Node*)> &func) const;\n\n /**\n * \brief Check if service category matches.\n *\n * The caller must free the returned Url.\n *\n * \param[in] doc The IXML document structure.\n * \return The control Url if matching service found, else nullptr.\n */\n const char *checkServiceCategory(IXML_Document *doc) const;\n\n /**\n * \brief Request meta data for object.\n *\n * \param[in] id The object id.\n * \param[in] mediaItem The media item to request meta data for.\n * \return True on success, else false.\n */\n bool sendMetaRequest(const std::string &id, MediaItem &mediaItem) const;\n\n /**\n * \brief Send browse request.\n *\n * \param[in] id The object id.\n * \param[in] count The expected number of matches.\n * \param[in] device The device to browse.\n * \return True on success, else false.\n */\n bool sendBrowseRequest(const std::string &id, int count,\n std::shared_ptr<Device> device) const;\n\n /**\n * \brief Browse chunk of items.\n *\n * \param[in] id The object id.\n * \param[in] start The start index.\n * \param[in] count The number of items to request.\n * \param[in] device The device to browse for scan mode.\n * \return The number of items found or -1 on error.\n */\n int browseChunk(const std::string &id, int start, int count,\n std::shared_ptr<Device> device) const;\n\n /**\n * \brief Handle browse response.\n *\n * \param[in] doc The DIDL doc.\n * \param[in] device The device.\n * \return True on success, else false.\n */\n bool parseBrowseResponse(IXML_Document *doc,\n std::shared_ptr<Device> device) const;\n\n /**\n * \brief Handle meta data response.\n *\n * \param[in] doc The DIDL doc.\n * \param[in] mediaItem The mediaItem to parse into.\n * \return True on success, else false.\n */\n bool parseMetaDataResponse(IXML_Document *doc,\n MediaItem &mediaItem) const;\n\n /**\n * \brief Read the requested meta from upnp response.\n *\n * \param[in] doc The DIDL doc.\n * \param[in] mediaItem The media item.\n * \param[in] meta The meta tag.\n */\n void setMetaOnMediaItem(IXML_Document *doc, MediaItem &mediaItem,\n MediaItem::Meta meta) const;\n\n /**\n * \brief Try to generate hash from item tag.\n *\n * \param[in] item The item to hash.\n * \return The hash value.\n */\n unsigned long generateItemHash(IXML_Node *item) const;\n\n /**\n * \brief Get the meta data of an opject.\n *\n * If a DIDL document is returned it must be free'd using\n * ixmlDocument_free().\n *\n * \param[in] id The object id.\n * \param[in] device The device to work on.\n * \return The DIDL document or nullptr.\n */\n IXML_Document *getObjectMeta(const std::string &id,\n std::shared_ptr<Device> device) const;\n\n /**\n * \brief Generate simple MIME identifier from UPNP class type.\n *\n * \param[in] upnpClass The UPNP class string.\n * \return A MIME string.\n */\n std::string upnpClassToMime(const std::string &upnpClass) const;\n\n /**\n * \brief Check if we want to dive into this type of container.\n *\n * \param[in] upnpClass The UPNP class string.\n * \return True or false.\n */\n bool upnpClassCheck(const std::string &upnpClass) const;\n\n /// UPnP client handle.\n UpnpClient_Handle upnpHandle_;\n\n /// List of upnp devices know to not be ContentDir providers.\n std::list<std::string> blacklist_;\n\n /// Lock for the blacklist.\n mutable std::mutex blacklistLock_;\n\n /// Lock for concurrent server access.\n mutable std::mutex browseLock_;\n};\n" (comment) "// Copyright (c) 2019-2020 LG Electronics, Inc." (comment) "//" (comment) "// Licensed under the Apache License, Version 2.0 (the "License");" (comment) "// you may not use this file except in compliance with the License." (comment) "// 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" (comment) "// distributed under the License is distributed on an "AS IS" BASIS," (comment) "// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied." (comment) "// See the License for the specific language governing permissions and" (comment) "// limitations under the License." (comment) "//" (comment) "// SPDX-License-Identifier: Apache-2.0" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "plugin.h"\n" (#include) "#include" (string_literal) ""plugin.h"" (") """ (string_content) "plugin.h" (") """ (preproc_include) "#include "logging.h"\n" (#include) "#include" (string_literal) ""logging.h"" (") """ (string_content) "logging.h" (") """ (preproc_include) "#include <upnp.h>\n" (#include) "#include" (system_lib_string) "<upnp.h>" (preproc_include) "#include <functional>\n" (#include) "#include" (system_lib_string) "<functional>" (comment) "/// UPnP plugin class definition." (function_definition) "class Upnp : public Plugin\n{\npublic:\n /// Base uri of this plugin.\n static std::string uri;\n\n /**\n * \brief Get UPnP plugin singleton instance.\n *\n * \return Singleton object in std::shared_ptr.\n */\n static std::shared_ptr<Plugin> instance();\n\n /// We cannot make this private because it is used from std::make_shared()\n Upnp();\n virtual ~Upnp();\n\n /**\n * \brief Export client handle.\n *\n * \return Client handle.\n */\n UpnpClient_Handle upnpHandle(void) const;\n\n /// Use standard device scan method\n void scan(const std::string &uri);\n\n /// From base class.\n void extractMeta(MediaItem &mediaItem, bool expand = false);\n\n /// From base class.\n std::optional<std::string> getPlaybackUri(const std::string &uri);\n\nprivate:\n /// Get message id.\n LOG_MSGID;\n\n /// Singleton object.\n static std::shared_ptr<Plugin> instance_;\n /// Type of UPnP devices we are looking for.\n static const char *upnpDeviceCategory_;\n /// Service of UPnP devices we are looking for.\n static const char *upnpServiceCategory_;\n /// Time in seconds to wait for responses.\n static const int upnpSearchTimeout_;\n\n /// UPnP event callback.\n static int eventCallback(Upnp_EventType eventType, const void *event,\n void *cookie);\n\n /**\n * \brief Get result DIDL from action response.\n *\n * \param[in] event The action completed event.\n * \return The DIDL document or nullptr.\n */\n static IXML_Document *actionResult(UpnpActionComplete *event);\n\n /**\n * \brief Get device meta data and push it into the device.\n *\n * \param[in] plugin The plugin instance.\n * \param[in] uri The device uri.\n * \param[in] location The location information from discovery.\n * response.\n */\n static void getDeviceMeta(Upnp *plugin, std::string uri,\n std::string location);\n\n /// From plugin base class.\n int runDeviceDetection(bool start);\n\n /**\n * Register newly found service.\n *\n * \param[in] event A DISCOVERY event.\n */\n void serviceFound(const void *event);\n\n /**\n * Called if service says byebye.\n *\n * \param[in] event A DISCOVERY event.\n */\n void serviceLost(const void *event);\n\n /**\n * \brief Replace whitespace and ':' with '-', remove leading\n * 'uuid:'.\n *\n * \param[in] deviceId The unmangled DeviceID from discovery reponse.\n * \return The mangled string.\n */\n std::string mangleUri(const UpnpString *deviceId);\n\n /**\n * \brief Get child node from node.\n *\n * \param[in] node The IXML node structure.\n * \param[in] tagName The tag name.\n * \return The node or nullptr if no text found.\n */\n IXML_Node *getChildNode(IXML_Node *node, const char *tagName) const; \n\n /**\n * \brief Get text content from node.\n *\n * The node must be unique within the document.\n *\n * \param[in] doc The IXML document structure.\n * \param[in] tagName The tag name.\n * \return The text or nullptr if no text found.\n */\n const DOMString getNodeText(IXML_Document *doc, const char *tagName) const;\n\n /**\n * \brief Get text content from node.\n *\n * \param[in] node The node structure.\n * \param[in] tagName The tag name.\n * \return The text or nullptr if no text found.\n */\n const DOMString getNodeText(IXML_Node *node, const char *tagName) const;\n\n /**\n * \brief Get text content from node.\n *\n * \param[in] node The node structure.\n * \return The text or nullptr if no text found.\n */\n const DOMString getNodeText(IXML_Node *node) const;\n\n /**\n * \brief Get text content from an attribute.\n *\n * Caller has to free returned memory.\n *\n * \param[in] node The node structure.\n * \param[in] attrName The name of the attribute.\n * \return The text or nullptr if no text found.\n */\n DOMString getAttributeText(IXML_Node *node, const char *attrName) const;\n\n /**\n * \brief Get text content from node.\n *\n * The node must be unique within the document.\n *\n * \param[in] doc The IXML document structure.\n * \param[in] tagName The tag name.\n * \param[in] func Function to call within iteration.\n */\n void iterateOnTag(IXML_Document *doc, const char *tagName,\n const std::function<void(IXML_Node*)> &func) const;\n\n /**\n * \brief Check if service category matches.\n *\n * The caller must free the returned Url.\n *\n * \param[in] doc The IXML document structure.\n * \return The control Url if matching service found, else nullptr.\n */\n const char *checkServiceCategory(IXML_Document *doc) const;\n\n /**\n * \brief Request meta data for object.\n *\n * \param[in] id The object id.\n * \param[in] mediaItem The media item to request meta data for.\n * \return True on success, else false.\n */\n bool sendMetaRequest(const std::string &id, MediaItem &mediaItem) const;\n\n /**\n * \brief Send browse request.\n *\n * \param[in] id The object id.\n * \param[in] count The expected number of matches.\n * \param[in] device The device to browse.\n * \return True on success, else false.\n */\n bool sendBrowseRequest(const std::string &id, int count,\n std::shared_ptr<Device> device) const;\n\n /**\n * \brief Browse chunk of items.\n *\n * \param[in] id The object id.\n * \param[in] start The start index.\n * \param[in] count The number of items to request.\n * \param[in] device The device to browse for scan mode.\n * \return The number of items found or -1 on error.\n */\n int browseChunk(const std::string &id, int start, int count,\n std::shared_ptr<Device> device) const;\n\n /**\n * \brief Handle browse response.\n *\n * \param[in] doc The DIDL doc.\n * \param[in] device The device.\n * \return True on success, else false.\n */\n bool parseBrowseResponse(IXML_Document *doc,\n std::shared_ptr<Device> device) const;\n\n /**\n * \brief Handle meta data response.\n *\n * \param[in] doc The DIDL doc.\n * \param[in] mediaItem The mediaItem to parse into.\n * \return True on success, else false.\n */\n bool parseMetaDataResponse(IXML_Document *doc,\n MediaItem &mediaItem) const;\n\n /**\n * \brief Read the requested meta from upnp response.\n *\n * \param[in] doc The DIDL doc.\n * \param[in] mediaItem The media item.\n * \param[in] meta The meta tag.\n */\n void setMetaOnMediaItem(IXML_Document *doc, MediaItem &mediaItem,\n MediaItem::Meta meta) const;\n\n /**\n * \brief Try to generate hash from item tag.\n *\n * \param[in] item The item to hash.\n * \return The hash value.\n */\n unsigned long generateItemHash(IXML_Node *item) const;\n\n /**\n * \brief Get the meta data of an opject.\n *\n * If a DIDL document is returned it must be free'd using\n * ixmlDocument_free().\n *\n * \param[in] id The object id.\n * \param[in] device The device to work on.\n * \return The DIDL document or nullptr.\n */\n IXML_Document *getObjectMeta(const std::string &id,\n std::shared_ptr<Device> device) const;\n\n /**\n * \brief Generate simple MIME identifier from UPNP class type.\n *\n * \param[in] upnpClass The UPNP class string.\n * \return A MIME string.\n */\n std::string upnpClassToMime(const std::string &upnpClass) const;\n\n /**\n * \brief Check if we want to dive into this type of container.\n *\n * \param[in] upnpClass The UPNP class string.\n * \return True or false.\n */\n bool upnpClassCheck(const std::string &upnpClass) const;\n\n /// UPnP client handle.\n UpnpClient_Handle upnpHandle_;\n\n /// List of upnp devices know to not be ContentDir providers.\n std::list<std::string> blacklist_;\n\n /// Lock for the blacklist.\n mutable std::mutex blacklistLock_;\n\n /// Lock for concurrent server access.\n mutable std::mutex browseLock_;\n}" (type_identifier) "class" (ERROR) "Upnp : public" (identifier) "Upnp" (:) ":" (identifier) "public" (identifier) "Plugin" (compound_statement) "{\npublic:\n /// Base uri of this plugin.\n static std::string uri;\n\n /**\n * \brief Get UPnP plugin singleton instance.\n *\n * \return Singleton object in std::shared_ptr.\n */\n static std::shared_ptr<Plugin> instance();\n\n /// We cannot make this private because it is used from std::make_shared()\n Upnp();\n virtual ~Upnp();\n\n /**\n * \brief Export client handle.\n *\n * \return Client handle.\n */\n UpnpClient_Handle upnpHandle(void) const;\n\n /// Use standard device scan method\n void scan(const std::string &uri);\n\n /// From base class.\n void extractMeta(MediaItem &mediaItem, bool expand = false);\n\n /// From base class.\n std::optional<std::string> getPlaybackUri(const std::string &uri);\n\nprivate:\n /// Get message id.\n LOG_MSGID;\n\n /// Singleton object.\n static std::shared_ptr<Plugin> instance_;\n /// Type of UPnP devices we are looking for.\n static const char *upnpDeviceCategory_;\n /// Service of UPnP devices we are looking for.\n static const char *upnpServiceCategory_;\n /// Time in seconds to wait for responses.\n static const int upnpSearchTimeout_;\n\n /// UPnP event callback.\n static int eventCallback(Upnp_EventType eventType, const void *event,\n void *cookie);\n\n /**\n * \brief Get result DIDL from action response.\n *\n * \param[in] event The action completed event.\n * \return The DIDL document or nullptr.\n */\n static IXML_Document *actionResult(UpnpActionComplete *event);\n\n /**\n * \brief Get device meta data and push it into the device.\n *\n * \param[in] plugin The plugin instance.\n * \param[in] uri The device uri.\n * \param[in] location The location information from discovery.\n * response.\n */\n static void getDeviceMeta(Upnp *plugin, std::string uri,\n std::string location);\n\n /// From plugin base class.\n int runDeviceDetection(bool start);\n\n /**\n * Register newly found service.\n *\n * \param[in] event A DISCOVERY event.\n */\n void serviceFound(const void *event);\n\n /**\n * Called if service says byebye.\n *\n * \param[in] event A DISCOVERY event.\n */\n void serviceLost(const void *event);\n\n /**\n * \brief Replace whitespace and ':' with '-', remove leading\n * 'uuid:'.\n *\n * \param[in] deviceId The unmangled DeviceID from discovery reponse.\n * \return The mangled string.\n */\n std::string mangleUri(const UpnpString *deviceId);\n\n /**\n * \brief Get child node from node.\n *\n * \param[in] node The IXML node structure.\n * \param[in] tagName The tag name.\n * \return The node or nullptr if no text found.\n */\n IXML_Node *getChildNode(IXML_Node *node, const char *tagName) const; \n\n /**\n * \brief Get text content from node.\n *\n * The node must be unique within the document.\n *\n * \param[in] doc The IXML document structure.\n * \param[in] tagName The tag name.\n * \return The text or nullptr if no text found.\n */\n const DOMString getNodeText(IXML_Document *doc, const char *tagName) const;\n\n /**\n * \brief Get text content from node.\n *\n * \param[in] node The node structure.\n * \param[in] tagName The tag name.\n * \return The text or nullptr if no text found.\n */\n const DOMString getNodeText(IXML_Node *node, const char *tagName) const;\n\n /**\n * \brief Get text content from node.\n *\n * \param[in] node The node structure.\n * \return The text or nullptr if no text found.\n */\n const DOMString getNodeText(IXML_Node *node) const;\n\n /**\n * \brief Get text content from an attribute.\n *\n * Caller has to free returned memory.\n *\n * \param[in] node The node structure.\n * \param[in] attrName The name of the attribute.\n * \return The text or nullptr if no text found.\n */\n DOMString getAttributeText(IXML_Node *node, const char *attrName) const;\n\n /**\n * \brief Get text content from node.\n *\n * The node must be unique within the document.\n *\n * \param[in] doc The IXML document structure.\n * \param[in] tagName The tag name.\n * \param[in] func Function to call within iteration.\n */\n void iterateOnTag(IXML_Document *doc, const char *tagName,\n const std::function<void(IXML_Node*)> &func) const;\n\n /**\n * \brief Check if service category matches.\n *\n * The caller must free the returned Url.\n *\n * \param[in] doc The IXML document structure.\n * \return The control Url if matching service found, else nullptr.\n */\n const char *checkServiceCategory(IXML_Document *doc) const;\n\n /**\n * \brief Request meta data for object.\n *\n * \param[in] id The object id.\n * \param[in] mediaItem The media item to request meta data for.\n * \return True on success, else false.\n */\n bool sendMetaRequest(const std::string &id, MediaItem &mediaItem) const;\n\n /**\n * \brief Send browse request.\n *\n * \param[in] id The object id.\n * \param[in] count The expected number of matches.\n * \param[in] device The device to browse.\n * \return True on success, else false.\n */\n bool sendBrowseRequest(const std::string &id, int count,\n std::shared_ptr<Device> device) const;\n\n /**\n * \brief Browse chunk of items.\n *\n * \param[in] id The object id.\n * \param[in] start The start index.\n * \param[in] count The number of items to request.\n * \param[in] device The device to browse for scan mode.\n * \return The number of items found or -1 on error.\n */\n int browseChunk(const std::string &id, int start, int count,\n std::shared_ptr<Device> device) const;\n\n /**\n * \brief Handle browse response.\n *\n * \param[in] doc The DIDL doc.\n * \param[in] device The device.\n * \return True on success, else false.\n */\n bool parseBrowseResponse(IXML_Document *doc,\n std::shared_ptr<Device> device) const;\n\n /**\n * \brief Handle meta data response.\n *\n * \param[in] doc The DIDL doc.\n * \param[in] mediaItem The mediaItem to parse into.\n * \return True on success, else false.\n */\n bool parseMetaDataResponse(IXML_Document *doc,\n MediaItem &mediaItem) const;\n\n /**\n * \brief Read the requested meta from upnp response.\n *\n * \param[in] doc The DIDL doc.\n * \param[in] mediaItem The media item.\n * \param[in] meta The meta tag.\n */\n void setMetaOnMediaItem(IXML_Document *doc, MediaItem &mediaItem,\n MediaItem::Meta meta) const;\n\n /**\n * \brief Try to generate hash from item tag.\n *\n * \param[in] item The item to hash.\n * \return The hash value.\n */\n unsigned long generateItemHash(IXML_Node *item) const;\n\n /**\n * \brief Get the meta data of an opject.\n *\n * If a DIDL document is returned it must be free'd using\n * ixmlDocument_free().\n *\n * \param[in] id The object id.\n * \param[in] device The device to work on.\n * \return The DIDL document or nullptr.\n */\n IXML_Document *getObjectMeta(const std::string &id,\n std::shared_ptr<Device> device) const;\n\n /**\n * \brief Generate simple MIME identifier from UPNP class type.\n *\n * \param[in] upnpClass The UPNP class string.\n * \return A MIME string.\n */\n std::string upnpClassToMime(const std::string &upnpClass) const;\n\n /**\n * \brief Check if we want to dive into this type of container.\n *\n * \param[in] upnpClass The UPNP class string.\n * \return True or false.\n */\n bool upnpClassCheck(const std::string &upnpClass) const;\n\n /// UPnP client handle.\n UpnpClient_Handle upnpHandle_;\n\n /// List of upnp devices know to not be ContentDir providers.\n std::list<std::string> blacklist_;\n\n /// Lock for the blacklist.\n mutable std::mutex blacklistLock_;\n\n /// Lock for concurrent server access.\n mutable std::mutex browseLock_;\n}" ({) "{" (labeled_statement) "public:\n /// Base uri of this plugin.\n static std::string uri;" (statement_identifier) "public" (ERROR) ":\n /// Base uri of this plugin.\n static std:" (:) ":" (comment) "/// Base uri of this plugin." (storage_class_specifier) "static" (static) "static" (type_identifier) "std" (:) ":" (:) ":" (declaration) "string uri;" (type_identifier) "string" (identifier) "uri" (;) ";" (comment) "/**\n * \brief Get UPnP plugin singleton instance.\n *\n * \return Singleton object in std::shared_ptr.\n */" (declaration) "static std::shared_ptr<Plugin> instance();" (storage_class_specifier) "static" (static) "static" (type_identifier) "std" (ERROR) "::shared_ptr<Plugin>" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "Plugin" (>) ">" (function_declarator) "instance()" (identifier) "instance" (parameter_list) "()" (() "(" ()) ")" (;) ";" (comment) "/// We cannot make this private because it is used from std::make_shared()" (expression_statement) "Upnp();" (call_expression) "Upnp()" (identifier) "Upnp" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual ~Upnp();" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "Upnp()" (identifier) "Upnp" (parameter_list) "()" (() "(" ()) ")" (;) ";" (comment) "/**\n * \brief Export client handle.\n *\n * \return Client handle.\n */" (ERROR) "UpnpClient_Handle upnpHandle(void) const" (type_identifier) "UpnpClient_Handle" (function_declarator) "upnpHandle(void) const" (identifier) "upnpHandle" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (comment) "/// Use standard device scan method" (declaration) "void scan(const std::string &uri);" (primitive_type) "void" (function_declarator) "scan(const std::string &uri)" (identifier) "scan" (parameter_list) "(const std::string &uri)" (() "(" (parameter_declaration) "const std::string &uri" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string &" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "uri" ()) ")" (;) ";" (comment) "/// From base class." (declaration) "void extractMeta(MediaItem &mediaItem, bool expand = false);" (primitive_type) "void" (init_declarator) "extractMeta(MediaItem &mediaItem, bool expand = false" (function_declarator) "extractMeta(MediaItem &mediaItem, bool expand" (identifier) "extractMeta" (parameter_list) "(MediaItem &mediaItem, bool expand" (() "(" (parameter_declaration) "MediaItem &mediaItem" (type_identifier) "MediaItem" (ERROR) "&" (&) "&" (identifier) "mediaItem" (,) "," (parameter_declaration) "bool expand" (primitive_type) "bool" (identifier) "expand" ()) "" (=) "=" (false) "false" (ERROR) ")" ()) ")" (;) ";" (comment) "/// From base class." (labeled_statement) "std::optional<std::string> getPlaybackUri(const std::string &uri);" (statement_identifier) "std" (ERROR) "::optional<std:" (:) ":" (:) ":" (binary_expression) "optional<std" (identifier) "optional" (<) "<" (identifier) "std" (:) ":" (:) ":" (expression_statement) "string> getPlaybackUri(const std::string &uri);" (binary_expression) "string> getPlaybackUri(const std::string &uri)" (identifier) "string" (>) ">" (call_expression) "getPlaybackUri(const std::string &uri)" (identifier) "getPlaybackUri" (argument_list) "(const std::string &uri)" (() "(" (ERROR) "const std::" (identifier) "const" (identifier) "std" (:) ":" (:) ":" (binary_expression) "string &uri" (identifier) "string" (&) "&" (identifier) "uri" ()) ")" (;) ";" (labeled_statement) "private:\n /// Get message id.\n LOG_MSGID;" (statement_identifier) "private" (:) ":" (comment) "/// Get message id." (expression_statement) "LOG_MSGID;" (identifier) "LOG_MSGID" (;) ";" (comment) "/// Singleton object." (declaration) "static std::shared_ptr<Plugin> instance_;" (storage_class_specifier) "static" (static) "static" (type_identifier) "std" (ERROR) "::shared_ptr<Plugin>" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "Plugin" (>) ">" (identifier) "instance_" (;) ";" (comment) "/// Type of UPnP devices we are looking for." (declaration) "static const char *upnpDeviceCategory_;" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*upnpDeviceCategory_" (*) "*" (identifier) "upnpDeviceCategory_" (;) ";" (comment) "/// Service of UPnP devices we are looking for." (declaration) "static const char *upnpServiceCategory_;" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*upnpServiceCategory_" (*) "*" (identifier) "upnpServiceCategory_" (;) ";" (comment) "/// Time in seconds to wait for responses." (declaration) "static const int upnpSearchTimeout_;" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "int" (identifier) "upnpSearchTimeout_" (;) ";" (comment) "/// UPnP event callback." (declaration) "static int eventCallback(Upnp_EventType eventType, const void *event,\n void *cookie);" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "eventCallback(Upnp_EventType eventType, const void *event,\n void *cookie)" (identifier) "eventCallback" (parameter_list) "(Upnp_EventType eventType, const void *event,\n void *cookie)" (() "(" (parameter_declaration) "Upnp_EventType eventType" (type_identifier) "Upnp_EventType" (identifier) "eventType" (,) "," (parameter_declaration) "const void *event" (type_qualifier) "const" (const) "const" (primitive_type) "void" (pointer_declarator) "*event" (*) "*" (identifier) "event" (,) "," (parameter_declaration) "void *cookie" (primitive_type) "void" (pointer_declarator) "*cookie" (*) "*" (identifier) "cookie" ()) ")" (;) ";" (comment) "/**\n * \brief Get result DIDL from action response.\n *\n * \param[in] event The action completed event.\n * \return The DIDL document or nullptr.\n */" (declaration) "static IXML_Document *actionResult(UpnpActionComplete *event);" (storage_class_specifier) "static" (static) "static" (type_identifier) "IXML_Document" (pointer_declarator) "*actionResult(UpnpActionComplete *event)" (*) "*" (function_declarator) "actionResult(UpnpActionComplete *event)" (identifier) "actionResult" (parameter_list) "(UpnpActionComplete *event)" (() "(" (parameter_declaration) "UpnpActionComplete *event" (type_identifier) "UpnpActionComplete" (pointer_declarator) "*event" (*) "*" (identifier) "event" ()) ")" (;) ";" (comment) "/**\n * \brief Get device meta data and push it into the device.\n *\n * \param[in] plugin The plugin instance.\n * \param[in] uri The device uri.\n * \param[in] location The location information from discovery.\n * response.\n */" (declaration) "static void getDeviceMeta(Upnp *plugin, std::string uri,\n std::string location);" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "getDeviceMeta(Upnp *plugin, std::string uri,\n std::string location)" (identifier) "getDeviceMeta" (parameter_list) "(Upnp *plugin, std::string uri,\n std::string location)" (() "(" (parameter_declaration) "Upnp *plugin" (type_identifier) "Upnp" (pointer_declarator) "*plugin" (*) "*" (identifier) "plugin" (,) "," (parameter_declaration) "std::string uri" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (identifier) "uri" (,) "," (parameter_declaration) "std::string location" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (identifier) "location" ()) ")" (;) ";" (comment) "/// From plugin base class." (declaration) "int runDeviceDetection(bool start);" (primitive_type) "int" (function_declarator) "runDeviceDetection(bool start)" (identifier) "runDeviceDetection" (parameter_list) "(bool start)" (() "(" (parameter_declaration) "bool start" (primitive_type) "bool" (identifier) "start" ()) ")" (;) ";" (comment) "/**\n * Register newly found service.\n *\n * \param[in] event A DISCOVERY event.\n */" (declaration) "void serviceFound(const void *event);" (primitive_type) "void" (function_declarator) "serviceFound(const void *event)" (identifier) "serviceFound" (parameter_list) "(const void *event)" (() "(" (parameter_declaration) "const void *event" (type_qualifier) "const" (const) "const" (primitive_type) "void" (pointer_declarator) "*event" (*) "*" (identifier) "event" ()) ")" (;) ";" (comment) "/**\n * Called if service says byebye.\n *\n * \param[in] event A DISCOVERY event.\n */" (declaration) "void serviceLost(const void *event);" (primitive_type) "void" (function_declarator) "serviceLost(const void *event)" (identifier) "serviceLost" (parameter_list) "(const void *event)" (() "(" (parameter_declaration) "const void *event" (type_qualifier) "const" (const) "const" (primitive_type) "void" (pointer_declarator) "*event" (*) "*" (identifier) "event" ()) ")" (;) ";" (comment) "/**\n * \brief Replace whitespace and ':' with '-', remove leading\n * 'uuid:'.\n *\n * \param[in] deviceId The unmangled DeviceID from discovery reponse.\n * \return The mangled string.\n */" (labeled_statement) "std::string mangleUri(const UpnpString *deviceId);" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (declaration) "string mangleUri(const UpnpString *deviceId);" (type_identifier) "string" (function_declarator) "mangleUri(const UpnpString *deviceId)" (identifier) "mangleUri" (parameter_list) "(const UpnpString *deviceId)" (() "(" (parameter_declaration) "const UpnpString *deviceId" (type_qualifier) "const" (const) "const" (type_identifier) "UpnpString" (pointer_declarator) "*deviceId" (*) "*" (identifier) "deviceId" ()) ")" (;) ";" (comment) "/**\n * \brief Get child node from node.\n *\n * \param[in] node The IXML node structure.\n * \param[in] tagName The tag name.\n * \return The node or nullptr if no text found.\n */" (declaration) "IXML_Node *getChildNode(IXML_Node *node, const char *tagName) const;" (type_identifier) "IXML_Node" (pointer_declarator) "*getChildNode(IXML_Node *node, const char *tagName) const" (*) "*" (function_declarator) "getChildNode(IXML_Node *node, const char *tagName) const" (identifier) "getChildNode" (parameter_list) "(IXML_Node *node, const char *tagName)" (() "(" (parameter_declaration) "IXML_Node *node" (type_identifier) "IXML_Node" (pointer_declarator) "*node" (*) "*" (identifier) "node" (,) "," (parameter_declaration) "const char *tagName" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*tagName" (*) "*" (identifier) "tagName" ()) ")" (identifier) "const" (;) ";" (comment) "/**\n * \brief Get text content from node.\n *\n * The node must be unique within the document.\n *\n * \param[in] doc The IXML document structure.\n * \param[in] tagName The tag name.\n * \return The text or nullptr if no text found.\n */" (ERROR) "const DOMString getNodeText(IXML_Document *doc, const char *tagName) const" (type_qualifier) "const" (const) "const" (type_identifier) "DOMString" (function_declarator) "getNodeText(IXML_Document *doc, const char *tagName) const" (identifier) "getNodeText" (parameter_list) "(IXML_Document *doc, const char *tagName)" (() "(" (parameter_declaration) "IXML_Document *doc" (type_identifier) "IXML_Document" (pointer_declarator) "*doc" (*) "*" (identifier) "doc" (,) "," (parameter_declaration) "const char *tagName" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*tagName" (*) "*" (identifier) "tagName" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (comment) "/**\n * \brief Get text content from node.\n *\n * \param[in] node The node structure.\n * \param[in] tagName The tag name.\n * \return The text or nullptr if no text found.\n */" (ERROR) "const DOMString getNodeText(IXML_Node *node, const char *tagName) const" (type_qualifier) "const" (const) "const" (type_identifier) "DOMString" (function_declarator) "getNodeText(IXML_Node *node, const char *tagName) const" (identifier) "getNodeText" (parameter_list) "(IXML_Node *node, const char *tagName)" (() "(" (parameter_declaration) "IXML_Node *node" (type_identifier) "IXML_Node" (pointer_declarator) "*node" (*) "*" (identifier) "node" (,) "," (parameter_declaration) "const char *tagName" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*tagName" (*) "*" (identifier) "tagName" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (comment) "/**\n * \brief Get text content from node.\n *\n * \param[in] node The node structure.\n * \return The text or nullptr if no text found.\n */" (ERROR) "const DOMString getNodeText(IXML_Node *node) const" (type_qualifier) "const" (const) "const" (type_identifier) "DOMString" (function_declarator) "getNodeText(IXML_Node *node) const" (identifier) "getNodeText" (parameter_list) "(IXML_Node *node)" (() "(" (parameter_declaration) "IXML_Node *node" (type_identifier) "IXML_Node" (pointer_declarator) "*node" (*) "*" (identifier) "node" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (comment) "/**\n * \brief Get text content from an attribute.\n *\n * Caller has to free returned memory.\n *\n * \param[in] node The node structure.\n * \param[in] attrName The name of the attribute.\n * \return The text or nullptr if no text found.\n */" (ERROR) "DOMString getAttributeText(IXML_Node *node, const char *attrName) const" (type_identifier) "DOMString" (function_declarator) "getAttributeText(IXML_Node *node, const char *attrName) const" (identifier) "getAttributeText" (parameter_list) "(IXML_Node *node, const char *attrName)" (() "(" (parameter_declaration) "IXML_Node *node" (type_identifier) "IXML_Node" (pointer_declarator) "*node" (*) "*" (identifier) "node" (,) "," (parameter_declaration) "const char *attrName" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*attrName" (*) "*" (identifier) "attrName" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (comment) "/**\n * \brief Get text content from node.\n *\n * The node must be unique within the document.\n *\n * \param[in] doc The IXML document structure.\n * \param[in] tagName The tag name.\n * \param[in] func Function to call within iteration.\n */" (ERROR) "void iterateOnTag(IXML_Document *doc, const char *tagName,\n const std::function<void(IXML_Node*)> &func) const" (primitive_type) "void" (function_declarator) "iterateOnTag(IXML_Document *doc, const char *tagName,\n const std::function<void(IXML_Node*)> &func" (identifier) "iterateOnTag" (parameter_list) "(IXML_Document *doc, const char *tagName,\n const std::function<void(IXML_Node*)" (() "(" (parameter_declaration) "IXML_Document *doc" (type_identifier) "IXML_Document" (pointer_declarator) "*doc" (*) "*" (identifier) "doc" (,) "," (parameter_declaration) "const char *tagName" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*tagName" (*) "*" (identifier) "tagName" (,) "," (parameter_declaration) "const std::function<void(IXML_Node*" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::function<void(IXML_Node" (:) ":" (:) ":" (identifier) "function" (<) "<" (primitive_type) "void" (() "(" (identifier) "IXML_Node" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (ERROR) "> &" (>) ">" (&) "&" (identifier) "func" ()) ")" (const) "const" (expression_statement) ";" (;) ";" (comment) "/**\n * \brief Check if service category matches.\n *\n * The caller must free the returned Url.\n *\n * \param[in] doc The IXML document structure.\n * \return The control Url if matching service found, else nullptr.\n */" (declaration) "const char *checkServiceCategory(IXML_Document *doc) const;" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*checkServiceCategory(IXML_Document *doc) const" (*) "*" (function_declarator) "checkServiceCategory(IXML_Document *doc) const" (identifier) "checkServiceCategory" (parameter_list) "(IXML_Document *doc)" (() "(" (parameter_declaration) "IXML_Document *doc" (type_identifier) "IXML_Document" (pointer_declarator) "*doc" (*) "*" (identifier) "doc" ()) ")" (identifier) "const" (;) ";" (comment) "/**\n * \brief Request meta data for object.\n *\n * \param[in] id The object id.\n * \param[in] mediaItem The media item to request meta data for.\n * \return True on success, else false.\n */" (ERROR) "bool sendMetaRequest(const std::string &id, MediaItem &mediaItem) const" (primitive_type) "bool" (function_declarator) "sendMetaRequest(const std::string &id, MediaItem &mediaItem) const" (identifier) "sendMetaRequest" (parameter_list) "(const std::string &id, MediaItem &mediaItem)" (() "(" (parameter_declaration) "const std::string &id" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string &" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "id" (,) "," (parameter_declaration) "MediaItem &mediaItem" (type_identifier) "MediaItem" (ERROR) "&" (&) "&" (identifier) "mediaItem" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (comment) "/**\n * \brief Send browse request.\n *\n * \param[in] id The object id.\n * \param[in] count The expected number of matches.\n * \param[in] device The device to browse.\n * \return True on success, else false.\n */" (ERROR) "bool sendBrowseRequest(const std::string &id, int count,\n std::shared_ptr<Device> device) const" (primitive_type) "bool" (function_declarator) "sendBrowseRequest(const std::string &id, int count,\n std::shared_ptr<Device> device) const" (identifier) "sendBrowseRequest" (parameter_list) "(const std::string &id, int count,\n std::shared_ptr<Device> device)" (() "(" (parameter_declaration) "const std::string &id" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string &" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "id" (,) "," (parameter_declaration) "int count" (primitive_type) "int" (identifier) "count" (,) "," (parameter_declaration) "std::shared_ptr<Device> device" (type_identifier) "std" (ERROR) "::shared_ptr<Device>" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "Device" (>) ">" (identifier) "device" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (comment) "/**\n * \brief Browse chunk of items.\n *\n * \param[in] id The object id.\n * \param[in] start The start index.\n * \param[in] count The number of items to request.\n * \param[in] device The device to browse for scan mode.\n * \return The number of items found or -1 on error.\n */" (ERROR) "int browseChunk(const std::string &id, int start, int count,\n std::shared_ptr<Device> device) const" (primitive_type) "int" (function_declarator) "browseChunk(const std::string &id, int start, int count,\n std::shared_ptr<Device> device) const" (identifier) "browseChunk" (parameter_list) "(const std::string &id, int start, int count,\n std::shared_ptr<Device> device)" (() "(" (parameter_declaration) "const std::string &id" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string &" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "id" (,) "," (parameter_declaration) "int start" (primitive_type) "int" (identifier) "start" (,) "," (parameter_declaration) "int count" (primitive_type) "int" (identifier) "count" (,) "," (parameter_declaration) "std::shared_ptr<Device> device" (type_identifier) "std" (ERROR) "::shared_ptr<Device>" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "Device" (>) ">" (identifier) "device" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (comment) "/**\n * \brief Handle browse response.\n *\n * \param[in] doc The DIDL doc.\n * \param[in] device The device.\n * \return True on success, else false.\n */" (ERROR) "bool parseBrowseResponse(IXML_Document *doc,\n std::shared_ptr<Device> device) const" (primitive_type) "bool" (function_declarator) "parseBrowseResponse(IXML_Document *doc,\n std::shared_ptr<Device> device) const" (identifier) "parseBrowseResponse" (parameter_list) "(IXML_Document *doc,\n std::shared_ptr<Device> device)" (() "(" (parameter_declaration) "IXML_Document *doc" (type_identifier) "IXML_Document" (pointer_declarator) "*doc" (*) "*" (identifier) "doc" (,) "," (parameter_declaration) "std::shared_ptr<Device> device" (type_identifier) "std" (ERROR) "::shared_ptr<Device>" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "Device" (>) ">" (identifier) "device" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (comment) "/**\n * \brief Handle meta data response.\n *\n * \param[in] doc The DIDL doc.\n * \param[in] mediaItem The mediaItem to parse into.\n * \return True on success, else false.\n */" (ERROR) "bool parseMetaDataResponse(IXML_Document *doc,\n MediaItem &mediaItem) const" (primitive_type) "bool" (function_declarator) "parseMetaDataResponse(IXML_Document *doc,\n MediaItem &mediaItem) const" (identifier) "parseMetaDataResponse" (parameter_list) "(IXML_Document *doc,\n MediaItem &mediaItem)" (() "(" (parameter_declaration) "IXML_Document *doc" (type_identifier) "IXML_Document" (pointer_declarator) "*doc" (*) "*" (identifier) "doc" (,) "," (parameter_declaration) "MediaItem &mediaItem" (type_identifier) "MediaItem" (ERROR) "&" (&) "&" (identifier) "mediaItem" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (comment) "/**\n * \brief Read the requested meta from upnp response.\n *\n * \param[in] doc The DIDL doc.\n * \param[in] mediaItem The media item.\n * \param[in] meta The meta tag.\n */" (ERROR) "void setMetaOnMediaItem(IXML_Document *doc, MediaItem &mediaItem,\n MediaItem::Meta meta) const" (primitive_type) "void" (function_declarator) "setMetaOnMediaItem(IXML_Document *doc, MediaItem &mediaItem,\n MediaItem::Meta meta) const" (identifier) "setMetaOnMediaItem" (parameter_list) "(IXML_Document *doc, MediaItem &mediaItem,\n MediaItem::Meta meta)" (() "(" (parameter_declaration) "IXML_Document *doc" (type_identifier) "IXML_Document" (pointer_declarator) "*doc" (*) "*" (identifier) "doc" (,) "," (parameter_declaration) "MediaItem &mediaItem" (type_identifier) "MediaItem" (ERROR) "&" (&) "&" (identifier) "mediaItem" (,) "," (parameter_declaration) "MediaItem::Meta meta" (type_identifier) "MediaItem" (ERROR) "::Meta" (:) ":" (:) ":" (identifier) "Meta" (identifier) "meta" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (comment) "/**\n * \brief Try to generate hash from item tag.\n *\n * \param[in] item The item to hash.\n * \return The hash value.\n */" (ERROR) "unsigned long generateItemHash(IXML_Node *item) const" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (function_declarator) "generateItemHash(IXML_Node *item) const" (identifier) "generateItemHash" (parameter_list) "(IXML_Node *item)" (() "(" (parameter_declaration) "IXML_Node *item" (type_identifier) "IXML_Node" (pointer_declarator) "*item" (*) "*" (identifier) "item" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (comment) "/**\n * \brief Get the meta data of an opject.\n *\n * If a DIDL document is returned it must be free'd using\n * ixmlDocument_free().\n *\n * \param[in] id The object id.\n * \param[in] device The device to work on.\n * \return The DIDL document or nullptr.\n */" (declaration) "IXML_Document *getObjectMeta(const std::string &id,\n std::shared_ptr<Device> device) const;" (type_identifier) "IXML_Document" (pointer_declarator) "*getObjectMeta(const std::string &id,\n std::shared_ptr<Device> device) const" (*) "*" (function_declarator) "getObjectMeta(const std::string &id,\n std::shared_ptr<Device> device) const" (identifier) "getObjectMeta" (parameter_list) "(const std::string &id,\n std::shared_ptr<Device> device)" (() "(" (parameter_declaration) "const std::string &id" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string &" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "id" (,) "," (parameter_declaration) "std::shared_ptr<Device> device" (type_identifier) "std" (ERROR) "::shared_ptr<Device>" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "Device" (>) ">" (identifier) "device" ()) ")" (identifier) "const" (;) ";" (comment) "/**\n * \brief Generate simple MIME identifier from UPNP class type.\n *\n * \param[in] upnpClass The UPNP class string.\n * \return A MIME string.\n */" (labeled_statement) "std::string upnpClassToMime(const std::string &upnpClass) const;" (statement_identifier) "std" (ERROR) "::string upnpClassToMime(const std:" (:) ":" (:) ":" (type_identifier) "string" (identifier) "upnpClassToMime" (() "(" (type_qualifier) "const" (const) "const" (type_identifier) "std" (:) ":" (:) ":" (expression_statement) "string &upnpClass) const;" (binary_expression) "string &upnpClass" (identifier) "string" (&) "&" (identifier) "upnpClass" (ERROR) ") const" ()) ")" (const) "const" (;) ";" (comment) "/**\n * \brief Check if we want to dive into this type of container.\n *\n * \param[in] upnpClass The UPNP class string.\n * \return True or false.\n */" (ERROR) "bool upnpClassCheck(const std::string &upnpClass) const" (primitive_type) "bool" (function_declarator) "upnpClassCheck(const std::string &upnpClass) const" (identifier) "upnpClassCheck" (parameter_list) "(const std::string &upnpClass)" (() "(" (parameter_declaration) "const std::string &upnpClass" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string &" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "upnpClass" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (comment) "/// UPnP client handle." (declaration) "UpnpClient_Handle upnpHandle_;" (type_identifier) "UpnpClient_Handle" (identifier) "upnpHandle_" (;) ";" (comment) "/// List of upnp devices know to not be ContentDir providers." (labeled_statement) "std::list<std::string> blacklist_;" (statement_identifier) "std" (ERROR) "::list<std:" (:) ":" (:) ":" (binary_expression) "list<std" (identifier) "list" (<) "<" (identifier) "std" (:) ":" (:) ":" (expression_statement) "string> blacklist_;" (binary_expression) "string> blacklist_" (identifier) "string" (>) ">" (identifier) "blacklist_" (;) ";" (comment) "/// Lock for the blacklist." (declaration) "mutable std::mutex blacklistLock_;" (type_identifier) "mutable" (ERROR) "std::mutex" (identifier) "std" (:) ":" (:) ":" (identifier) "mutex" (identifier) "blacklistLock_" (;) ";" (comment) "/// Lock for concurrent server access." (declaration) "mutable std::mutex browseLock_;" (type_identifier) "mutable" (ERROR) "std::mutex" (identifier) "std" (:) ":" (:) ":" (identifier) "mutex" (identifier) "browseLock_" (;) ";" (}) "}" (expression_statement) ";" (;) ";"
883
47
{"language": "c", "success": true, "metadata": {"lines": 261, "avg_line_length": 32.74, "nodes": 502, "errors": 0, "source_hash": "711566eb4a5aae1e2105b027c1b8b60389394d82285b6bc6cc797e4c81ab5f30", "categorized_nodes": 304}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once", "parent": 0, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 12}}, {"id": 3, "type": "preproc_include", "text": "#include \"plugin.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": "\"plugin.h\"", "parent": 3, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 19}}, {"id": 6, "type": "preproc_include", "text": "#include \"logging.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": "\"logging.h\"", "parent": 6, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 20}}, {"id": 9, "type": "preproc_include", "text": "#include <upnp.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": "<upnp.h>", "parent": 9, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 17}}, {"id": 12, "type": "preproc_include", "text": "#include <functional>\n", "parent": null, "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": "<functional>", "parent": 12, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 21}}, {"id": 15, "type": "function_definition", "text": "class Upnp : public Plugin\n{\npublic:\n /// Base uri of this plugin.\n static std::string uri;\n\n /**\n * \\brief Get UPnP plugin singleton instance.\n *\n * \\return Singleton object in std::shared_ptr.\n */\n static std::shared_ptr<Plugin> instance();\n\n /// We cannot make this private because it is used from std::make_shared()\n Upnp();\n virtual ~Upnp();\n\n /**\n * \\brief Export client handle.\n *\n * \\return Client handle.\n */\n UpnpClient_Handle upnpHandle(void) const;\n\n /// Use standard device scan method\n void scan(const std::string &uri);\n\n /// From base class.\n void extractMeta(MediaItem &mediaItem, bool expand = false);\n\n /// From base class.\n std::optional<std::string> getPlaybackUri(const std::string &uri);\n\nprivate:\n /// Get message id.\n LOG_MSGID;\n\n /// Singleton object.\n static std::shared_ptr<Plugin> instance_;\n /// Type of UPnP devices we are looking for.\n static const char *upnpDeviceCategory_;\n /// Service of UPnP devices we are looking for.\n static const char *upnpServiceCategory_;\n /// Time in seconds to wait for responses.\n static const int upnpSearchTimeout_;\n\n /// UPnP event callback.\n static int eventCallback(Upnp_EventType eventType, const void *event,\n void *cookie);\n\n /**\n * \\brief Get result DIDL from action response.\n *\n * \\param[in] event The action completed event.\n * \\return The DIDL document or nullptr.\n */\n static IXML_Document *actionResult(UpnpActionComplete *event);\n\n /**\n * \\brief Get device meta data and push it into the device.\n *\n * \\param[in] plugin The plugin instance.\n * \\param[in] uri The device uri.\n * \\param[in] location The location information from discovery.\n * response.\n */\n static void getDeviceMeta(Upnp *plugin, std::string uri,\n std::string location);\n\n /// From plugin base class.\n int runDeviceDetection(bool start);\n\n /**\n * Register newly found service.\n *\n * \\param[in] event A DISCOVERY event.\n */\n void serviceFound(const void *event);\n\n /**\n * Called if service says byebye.\n *\n * \\param[in] event A DISCOVERY event.\n */\n void serviceLost(const void *event);\n\n /**\n * \\brief Replace whitespace and ':' with '-', remove leading\n * 'uuid:'.\n *\n * \\param[in] deviceId The unmangled DeviceID from discovery reponse.\n * \\return The mangled string.\n */\n std::string mangleUri(const UpnpString *deviceId);\n\n /**\n * \\brief Get child node from node.\n *\n * \\param[in] node The IXML node structure.\n * \\param[in] tagName The tag name.\n * \\return The node or nullptr if no text found.\n */\n IXML_Node *getChildNode(IXML_Node *node, const char *tagName) const; \n\n /**\n * \\brief Get text content from node.\n *\n * The node must be unique within the document.\n *\n * \\param[in] doc The IXML document structure.\n * \\param[in] tagName The tag name.\n * \\return The text or nullptr if no text found.\n */\n const DOMString getNodeText(IXML_Document *doc, const char *tagName) const;\n\n /**\n * \\brief Get text content from node.\n *\n * \\param[in] node The node structure.\n * \\param[in] tagName The tag name.\n * \\return The text or nullptr if no text found.\n */\n const DOMString getNodeText(IXML_Node *node, const char *tagName) const;\n\n /**\n * \\brief Get text content from node.\n *\n * \\param[in] node The node structure.\n * \\return The text or nullptr if no text found.\n */\n const DOMString getNodeText(IXML_Node *node) const;\n\n /**\n * \\brief Get text content from an attribute.\n *\n * Caller has to free returned memory.\n *\n * \\param[in] node The node structure.\n * \\param[in] attrName The name of the attribute.\n * \\return The text or nullptr if no text found.\n */\n DOMString getAttributeText(IXML_Node *node, const char *attrName) const;\n\n /**\n * \\brief Get text content from node.\n *\n * The node must be unique within the document.\n *\n * \\param[in] doc The IXML document structure.\n * \\param[in] tagName The tag name.\n * \\param[in] func Function to call within iteration.\n */\n void iterateOnTag(IXML_Document *doc, const char *tagName,\n const std::function<void(IXML_Node*)> &func) const;\n\n /**\n * \\brief Check if service category matches.\n *\n * The caller must free the returned Url.\n *\n * \\param[in] doc The IXML document structure.\n * \\return The control Url if matching service found, else nullptr.\n */\n const char *checkServiceCategory(IXML_Document *doc) const;\n\n /**\n * \\brief Request meta data for object.\n *\n * \\param[in] id The object id.\n * \\param[in] mediaItem The media item to request meta data for.\n * \\return True on success, else false.\n */\n bool sendMetaRequest(const std::string &id, MediaItem &mediaItem) const;\n\n /**\n * \\brief Send browse request.\n *\n * \\param[in] id The object id.\n * \\param[in] count The expected number of matches.\n * \\param[in] device The device to browse.\n * \\return True on success, else false.\n */\n bool sendBrowseRequest(const std::string &id, int count,\n std::shared_ptr<Device> device) const;\n\n /**\n * \\brief Browse chunk of items.\n *\n * \\param[in] id The object id.\n * \\param[in] start The start index.\n * \\param[in] count The number of items to request.\n * \\param[in] device The device to browse for scan mode.\n * \\return The number of items found or -1 on error.\n */\n int browseChunk(const std::string &id, int start, int count,\n std::shared_ptr<Device> device) const;\n\n /**\n * \\brief Handle browse response.\n *\n * \\param[in] doc The DIDL doc.\n * \\param[in] device The device.\n * \\return True on success, else false.\n */\n bool parseBrowseResponse(IXML_Document *doc,\n std::shared_ptr<Device> device) const;\n\n /**\n * \\brief Handle meta data response.\n *\n * \\param[in] doc The DIDL doc.\n * \\param[in] mediaItem The mediaItem to parse into.\n * \\return True on success, else false.\n */\n bool parseMetaDataResponse(IXML_Document *doc,\n MediaItem &mediaItem) const;\n\n /**\n * \\brief Read the requested meta from upnp response.\n *\n * \\param[in] doc The DIDL doc.\n * \\param[in] mediaItem The media item.\n * \\param[in] meta The meta tag.\n */\n void setMetaOnMediaItem(IXML_Document *doc, MediaItem &mediaItem,\n MediaItem::Meta meta) const;\n\n /**\n * \\brief Try to generate hash from item tag.\n *\n * \\param[in] item The item to hash.\n * \\return The hash value.\n */\n unsigned long generateItemHash(IXML_Node *item) const;\n\n /**\n * \\brief Get the meta data of an opject.\n *\n * If a DIDL document is returned it must be free'd using\n * ixmlDocument_free().\n *\n * \\param[in] id The object id.\n * \\param[in] device The device to work on.\n * \\return The DIDL document or nullptr.\n */\n IXML_Document *getObjectMeta(const std::string &id,\n std::shared_ptr<Device> device) const;\n\n /**\n * \\brief Generate simple MIME identifier from UPNP class type.\n *\n * \\param[in] upnpClass The UPNP class string.\n * \\return A MIME string.\n */\n std::string upnpClassToMime(const std::string &upnpClass) const;\n\n /**\n * \\brief Check if we want to dive into this type of container.\n *\n * \\param[in] upnpClass The UPNP class string.\n * \\return True or false.\n */\n bool upnpClassCheck(const std::string &upnpClass) const;\n\n /// UPnP client handle.\n UpnpClient_Handle upnpHandle_;\n\n /// List of upnp devices know to not be ContentDir providers.\n std::list<std::string> blacklist_;\n\n /// Lock for the blacklist.\n mutable std::mutex blacklistLock_;\n\n /// Lock for concurrent server access.\n mutable std::mutex browseLock_;\n}", "parent": null, "children": [16, 18], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 301, "column": 1}}, {"id": 16, "type": "ERROR", "text": "Upnp : public", "parent": 15, "children": [17], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 19}}, {"id": 17, "type": "identifier", "text": "Upnp", "parent": 16, "children": [], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 10}}, {"id": 18, "type": "identifier", "text": "Plugin", "parent": 15, "children": [], "start_point": {"row": 26, "column": 20}, "end_point": {"row": 26, "column": 26}}, {"id": 19, "type": "labeled_statement", "text": "public:\n /// Base uri of this plugin.\n static std::string uri;", "parent": 15, "children": [20, 22], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 30, "column": 27}}, {"id": 20, "type": "ERROR", "text": ":\n /// Base uri of this plugin.\n static std:", "parent": 19, "children": [21], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 30, "column": 15}}, {"id": 21, "type": "type_identifier", "text": "std", "parent": 20, "children": [], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 14}}, {"id": 22, "type": "declaration", "text": "string uri;", "parent": 19, "children": [23, 24], "start_point": {"row": 30, "column": 16}, "end_point": {"row": 30, "column": 27}}, {"id": 23, "type": "type_identifier", "text": "string", "parent": 22, "children": [], "start_point": {"row": 30, "column": 16}, "end_point": {"row": 30, "column": 22}}, {"id": 24, "type": "identifier", "text": "uri", "parent": 22, "children": [], "start_point": {"row": 30, "column": 23}, "end_point": {"row": 30, "column": 26}}, {"id": 25, "type": "declaration", "text": "static std::shared_ptr<Plugin> instance();", "parent": 15, "children": [26, 27, 32], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 46}}, {"id": 26, "type": "type_identifier", "text": "std", "parent": 25, "children": [], "start_point": {"row": 37, "column": 11}, "end_point": {"row": 37, "column": 14}}, {"id": 27, "type": "ERROR", "text": "::shared_ptr<Plugin>", "parent": 25, "children": [28, 29, 30, 31], "start_point": {"row": 37, "column": 14}, "end_point": {"row": 37, "column": 34}}, {"id": 28, "type": "identifier", "text": "shared_ptr", "parent": 27, "children": [], "start_point": {"row": 37, "column": 16}, "end_point": {"row": 37, "column": 26}}, {"id": 29, "type": "<", "text": "<", "parent": 27, "children": [], "start_point": {"row": 37, "column": 26}, "end_point": {"row": 37, "column": 27}}, {"id": 30, "type": "identifier", "text": "Plugin", "parent": 27, "children": [], "start_point": {"row": 37, "column": 27}, "end_point": {"row": 37, "column": 33}}, {"id": 31, "type": ">", "text": ">", "parent": 27, "children": [], "start_point": {"row": 37, "column": 33}, "end_point": {"row": 37, "column": 34}}, {"id": 32, "type": "function_declarator", "text": "instance()", "parent": 25, "children": [33, 34], "start_point": {"row": 37, "column": 35}, "end_point": {"row": 37, "column": 45}}, {"id": 33, "type": "identifier", "text": "instance", "parent": 32, "children": [], "start_point": {"row": 37, "column": 35}, "end_point": {"row": 37, "column": 43}}, {"id": 34, "type": "parameter_list", "text": "()", "parent": 32, "children": [], "start_point": {"row": 37, "column": 43}, "end_point": {"row": 37, "column": 45}}, {"id": 35, "type": "call_expression", "text": "Upnp()", "parent": 15, "children": [36, 37], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 10}}, {"id": 36, "type": "identifier", "text": "Upnp", "parent": 35, "children": [], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 8}}, {"id": 37, "type": "argument_list", "text": "()", "parent": 35, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 10}}, {"id": 38, "type": "declaration", "text": "virtual ~Upnp();", "parent": 15, "children": [39, 40, 42], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 20}}, {"id": 39, "type": "type_identifier", "text": "virtual", "parent": 38, "children": [], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 11}}, {"id": 40, "type": "ERROR", "text": "~", "parent": 38, "children": [41], "start_point": {"row": 41, "column": 12}, "end_point": {"row": 41, "column": 13}}, {"id": 41, "type": "~", "text": "~", "parent": 40, "children": [], "start_point": {"row": 41, "column": 12}, "end_point": {"row": 41, "column": 13}}, {"id": 42, "type": "function_declarator", "text": "Upnp()", "parent": 38, "children": [43, 44], "start_point": {"row": 41, "column": 13}, "end_point": {"row": 41, "column": 19}}, {"id": 43, "type": "identifier", "text": "Upnp", "parent": 42, "children": [], "start_point": {"row": 41, "column": 13}, "end_point": {"row": 41, "column": 17}}, {"id": 44, "type": "parameter_list", "text": "()", "parent": 42, "children": [], "start_point": {"row": 41, "column": 17}, "end_point": {"row": 41, "column": 19}}, {"id": 45, "type": "ERROR", "text": "UpnpClient_Handle upnpHandle(void) const", "parent": 15, "children": [46, 47], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 44}}, {"id": 46, "type": "type_identifier", "text": "UpnpClient_Handle", "parent": 45, "children": [], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 21}}, {"id": 47, "type": "function_declarator", "text": "upnpHandle(void) const", "parent": 45, "children": [48, 49], "start_point": {"row": 48, "column": 22}, "end_point": {"row": 48, "column": 44}}, {"id": 48, "type": "identifier", "text": "upnpHandle", "parent": 47, "children": [], "start_point": {"row": 48, "column": 22}, "end_point": {"row": 48, "column": 32}}, {"id": 49, "type": "parameter_list", "text": "(void)", "parent": 47, "children": [50], "start_point": {"row": 48, "column": 32}, "end_point": {"row": 48, "column": 38}}, {"id": 50, "type": "parameter_declaration", "text": "void", "parent": 49, "children": [51], "start_point": {"row": 48, "column": 33}, "end_point": {"row": 48, "column": 37}}, {"id": 51, "type": "primitive_type", "text": "void", "parent": 50, "children": [], "start_point": {"row": 48, "column": 33}, "end_point": {"row": 48, "column": 37}}, {"id": 52, "type": "declaration", "text": "void scan(const std::string &uri);", "parent": 15, "children": [53, 54], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 38}}, {"id": 53, "type": "primitive_type", "text": "void", "parent": 52, "children": [], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 8}}, {"id": 54, "type": "function_declarator", "text": "scan(const std::string &uri)", "parent": 52, "children": [55, 56], "start_point": {"row": 51, "column": 9}, "end_point": {"row": 51, "column": 37}}, {"id": 55, "type": "identifier", "text": "scan", "parent": 54, "children": [], "start_point": {"row": 51, "column": 9}, "end_point": {"row": 51, "column": 13}}, {"id": 56, "type": "parameter_list", "text": "(const std::string &uri)", "parent": 54, "children": [57], "start_point": {"row": 51, "column": 13}, "end_point": {"row": 51, "column": 37}}, {"id": 57, "type": "parameter_declaration", "text": "const std::string &uri", "parent": 56, "children": [58, 59, 61], "start_point": {"row": 51, "column": 14}, "end_point": {"row": 51, "column": 36}}, {"id": 58, "type": "type_identifier", "text": "std", "parent": 57, "children": [], "start_point": {"row": 51, "column": 20}, "end_point": {"row": 51, "column": 23}}, {"id": 59, "type": "ERROR", "text": "::string &", "parent": 57, "children": [60], "start_point": {"row": 51, "column": 23}, "end_point": {"row": 51, "column": 33}}, {"id": 60, "type": "identifier", "text": "string", "parent": 59, "children": [], "start_point": {"row": 51, "column": 25}, "end_point": {"row": 51, "column": 31}}, {"id": 61, "type": "identifier", "text": "uri", "parent": 57, "children": [], "start_point": {"row": 51, "column": 33}, "end_point": {"row": 51, "column": 36}}, {"id": 62, "type": "declaration", "text": "void extractMeta(MediaItem &mediaItem, bool expand = false);", "parent": 15, "children": [63, 64], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 64}}, {"id": 63, "type": "primitive_type", "text": "void", "parent": 62, "children": [], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 8}}, {"id": 64, "type": "init_declarator", "text": "extractMeta(MediaItem &mediaItem, bool expand = false", "parent": 62, "children": [65, 74, 75], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 62}}, {"id": 65, "type": "function_declarator", "text": "extractMeta(MediaItem &mediaItem, bool expand", "parent": 64, "children": [66, 67], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 54}}, {"id": 66, "type": "identifier", "text": "extractMeta", "parent": 65, "children": [], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 20}}, {"id": 67, "type": "parameter_list", "text": "(MediaItem &mediaItem, bool expand", "parent": 65, "children": [68, 71], "start_point": {"row": 54, "column": 20}, "end_point": {"row": 54, "column": 54}}, {"id": 68, "type": "parameter_declaration", "text": "MediaItem &mediaItem", "parent": 67, "children": [69, 70], "start_point": {"row": 54, "column": 21}, "end_point": {"row": 54, "column": 41}}, {"id": 69, "type": "type_identifier", "text": "MediaItem", "parent": 68, "children": [], "start_point": {"row": 54, "column": 21}, "end_point": {"row": 54, "column": 30}}, {"id": 70, "type": "identifier", "text": "mediaItem", "parent": 68, "children": [], "start_point": {"row": 54, "column": 32}, "end_point": {"row": 54, "column": 41}}, {"id": 71, "type": "parameter_declaration", "text": "bool expand", "parent": 67, "children": [72, 73], "start_point": {"row": 54, "column": 43}, "end_point": {"row": 54, "column": 54}}, {"id": 72, "type": "primitive_type", "text": "bool", "parent": 71, "children": [], "start_point": {"row": 54, "column": 43}, "end_point": {"row": 54, "column": 47}}, {"id": 73, "type": "identifier", "text": "expand", "parent": 71, "children": [], "start_point": {"row": 54, "column": 48}, "end_point": {"row": 54, "column": 54}}, {"id": 74, "type": "=", "text": "=", "parent": 64, "children": [], "start_point": {"row": 54, "column": 55}, "end_point": {"row": 54, "column": 56}}, {"id": 75, "type": "false", "text": "false", "parent": 64, "children": [], "start_point": {"row": 54, "column": 57}, "end_point": {"row": 54, "column": 62}}, {"id": 76, "type": "labeled_statement", "text": "std::optional<std::string> getPlaybackUri(const std::string &uri);", "parent": 15, "children": [77, 78], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 70}}, {"id": 77, "type": "statement_identifier", "text": "std", "parent": 76, "children": [], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 7}}, {"id": 78, "type": "ERROR", "text": "::optional<std:", "parent": 76, "children": [79], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 22}}, {"id": 79, "type": "binary_expression", "text": "optional<std", "parent": 78, "children": [80, 81, 82], "start_point": {"row": 57, "column": 9}, "end_point": {"row": 57, "column": 21}}, {"id": 80, "type": "identifier", "text": "optional", "parent": 79, "children": [], "start_point": {"row": 57, "column": 9}, "end_point": {"row": 57, "column": 17}}, {"id": 81, "type": "<", "text": "<", "parent": 79, "children": [], "start_point": {"row": 57, "column": 17}, "end_point": {"row": 57, "column": 18}}, {"id": 82, "type": "identifier", "text": "std", "parent": 79, "children": [], "start_point": {"row": 57, "column": 18}, "end_point": {"row": 57, "column": 21}}, {"id": 83, "type": "binary_expression", "text": "string> getPlaybackUri(const std::string &uri)", "parent": 76, "children": [84, 85, 86], "start_point": {"row": 57, "column": 23}, "end_point": {"row": 57, "column": 69}}, {"id": 84, "type": "identifier", "text": "string", "parent": 83, "children": [], "start_point": {"row": 57, "column": 23}, "end_point": {"row": 57, "column": 29}}, {"id": 85, "type": ">", "text": ">", "parent": 83, "children": [], "start_point": {"row": 57, "column": 29}, "end_point": {"row": 57, "column": 30}}, {"id": 86, "type": "call_expression", "text": "getPlaybackUri(const std::string &uri)", "parent": 83, "children": [87, 88], "start_point": {"row": 57, "column": 31}, "end_point": {"row": 57, "column": 69}}, {"id": 87, "type": "identifier", "text": "getPlaybackUri", "parent": 86, "children": [], "start_point": {"row": 57, "column": 31}, "end_point": {"row": 57, "column": 45}}, {"id": 88, "type": "argument_list", "text": "(const std::string &uri)", "parent": 86, "children": [89, 91], "start_point": {"row": 57, "column": 45}, "end_point": {"row": 57, "column": 69}}, {"id": 89, "type": "ERROR", "text": "const std::", "parent": 88, "children": [90], "start_point": {"row": 57, "column": 46}, "end_point": {"row": 57, "column": 57}}, {"id": 90, "type": "identifier", "text": "std", "parent": 89, "children": [], "start_point": {"row": 57, "column": 52}, "end_point": {"row": 57, "column": 55}}, {"id": 91, "type": "binary_expression", "text": "string &uri", "parent": 88, "children": [92, 93], "start_point": {"row": 57, "column": 57}, "end_point": {"row": 57, "column": 68}}, {"id": 92, "type": "identifier", "text": "string", "parent": 91, "children": [], "start_point": {"row": 57, "column": 57}, "end_point": {"row": 57, "column": 63}}, {"id": 93, "type": "identifier", "text": "uri", "parent": 91, "children": [], "start_point": {"row": 57, "column": 65}, "end_point": {"row": 57, "column": 68}}, {"id": 94, "type": "labeled_statement", "text": "private:\n /// Get message id.\n LOG_MSGID;", "parent": 15, "children": [], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 61, "column": 14}}, {"id": 95, "type": "identifier", "text": "LOG_MSGID", "parent": 94, "children": [], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 13}}, {"id": 96, "type": "declaration", "text": "static std::shared_ptr<Plugin> instance_;", "parent": 15, "children": [97, 98, 103], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 45}}, {"id": 97, "type": "type_identifier", "text": "std", "parent": 96, "children": [], "start_point": {"row": 64, "column": 11}, "end_point": {"row": 64, "column": 14}}, {"id": 98, "type": "ERROR", "text": "::shared_ptr<Plugin>", "parent": 96, "children": [99, 100, 101, 102], "start_point": {"row": 64, "column": 14}, "end_point": {"row": 64, "column": 34}}, {"id": 99, "type": "identifier", "text": "shared_ptr", "parent": 98, "children": [], "start_point": {"row": 64, "column": 16}, "end_point": {"row": 64, "column": 26}}, {"id": 100, "type": "<", "text": "<", "parent": 98, "children": [], "start_point": {"row": 64, "column": 26}, "end_point": {"row": 64, "column": 27}}, {"id": 101, "type": "identifier", "text": "Plugin", "parent": 98, "children": [], "start_point": {"row": 64, "column": 27}, "end_point": {"row": 64, "column": 33}}, {"id": 102, "type": ">", "text": ">", "parent": 98, "children": [], "start_point": {"row": 64, "column": 33}, "end_point": {"row": 64, "column": 34}}, {"id": 103, "type": "identifier", "text": "instance_", "parent": 96, "children": [], "start_point": {"row": 64, "column": 35}, "end_point": {"row": 64, "column": 44}}, {"id": 104, "type": "declaration", "text": "static const char *upnpDeviceCategory_;", "parent": 15, "children": [105, 106], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 43}}, {"id": 105, "type": "primitive_type", "text": "char", "parent": 104, "children": [], "start_point": {"row": 66, "column": 17}, "end_point": {"row": 66, "column": 21}}, {"id": 106, "type": "pointer_declarator", "text": "*upnpDeviceCategory_", "parent": 104, "children": [107, 108], "start_point": {"row": 66, "column": 22}, "end_point": {"row": 66, "column": 42}}, {"id": 107, "type": "*", "text": "*", "parent": 106, "children": [], "start_point": {"row": 66, "column": 22}, "end_point": {"row": 66, "column": 23}}, {"id": 108, "type": "identifier", "text": "upnpDeviceCategory_", "parent": 106, "children": [], "start_point": {"row": 66, "column": 23}, "end_point": {"row": 66, "column": 42}}, {"id": 109, "type": "declaration", "text": "static const char *upnpServiceCategory_;", "parent": 15, "children": [110, 111], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 44}}, {"id": 110, "type": "primitive_type", "text": "char", "parent": 109, "children": [], "start_point": {"row": 68, "column": 17}, "end_point": {"row": 68, "column": 21}}, {"id": 111, "type": "pointer_declarator", "text": "*upnpServiceCategory_", "parent": 109, "children": [112, 113], "start_point": {"row": 68, "column": 22}, "end_point": {"row": 68, "column": 43}}, {"id": 112, "type": "*", "text": "*", "parent": 111, "children": [], "start_point": {"row": 68, "column": 22}, "end_point": {"row": 68, "column": 23}}, {"id": 113, "type": "identifier", "text": "upnpServiceCategory_", "parent": 111, "children": [], "start_point": {"row": 68, "column": 23}, "end_point": {"row": 68, "column": 43}}, {"id": 114, "type": "declaration", "text": "static const int upnpSearchTimeout_;", "parent": 15, "children": [115, 116], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 40}}, {"id": 115, "type": "primitive_type", "text": "int", "parent": 114, "children": [], "start_point": {"row": 70, "column": 17}, "end_point": {"row": 70, "column": 20}}, {"id": 116, "type": "identifier", "text": "upnpSearchTimeout_", "parent": 114, "children": [], "start_point": {"row": 70, "column": 21}, "end_point": {"row": 70, "column": 39}}, {"id": 117, "type": "declaration", "text": "static int eventCallback(Upnp_EventType eventType, const void *event,\n void *cookie);", "parent": 15, "children": [118, 119], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 74, "column": 22}}, {"id": 118, "type": "primitive_type", "text": "int", "parent": 117, "children": [], "start_point": {"row": 73, "column": 11}, "end_point": {"row": 73, "column": 14}}, {"id": 119, "type": "function_declarator", "text": "eventCallback(Upnp_EventType eventType, const void *event,\n void *cookie)", "parent": 117, "children": [120, 121], "start_point": {"row": 73, "column": 15}, "end_point": {"row": 74, "column": 21}}, {"id": 120, "type": "identifier", "text": "eventCallback", "parent": 119, "children": [], "start_point": {"row": 73, "column": 15}, "end_point": {"row": 73, "column": 28}}, {"id": 121, "type": "parameter_list", "text": "(Upnp_EventType eventType, const void *event,\n void *cookie)", "parent": 119, "children": [122, 125, 130], "start_point": {"row": 73, "column": 28}, "end_point": {"row": 74, "column": 21}}, {"id": 122, "type": "parameter_declaration", "text": "Upnp_EventType eventType", "parent": 121, "children": [123, 124], "start_point": {"row": 73, "column": 29}, "end_point": {"row": 73, "column": 53}}, {"id": 123, "type": "type_identifier", "text": "Upnp_EventType", "parent": 122, "children": [], "start_point": {"row": 73, "column": 29}, "end_point": {"row": 73, "column": 43}}, {"id": 124, "type": "identifier", "text": "eventType", "parent": 122, "children": [], "start_point": {"row": 73, "column": 44}, "end_point": {"row": 73, "column": 53}}, {"id": 125, "type": "parameter_declaration", "text": "const void *event", "parent": 121, "children": [126, 127], "start_point": {"row": 73, "column": 55}, "end_point": {"row": 73, "column": 72}}, {"id": 126, "type": "primitive_type", "text": "void", "parent": 125, "children": [], "start_point": {"row": 73, "column": 61}, "end_point": {"row": 73, "column": 65}}, {"id": 127, "type": "pointer_declarator", "text": "*event", "parent": 125, "children": [128, 129], "start_point": {"row": 73, "column": 66}, "end_point": {"row": 73, "column": 72}}, {"id": 128, "type": "*", "text": "*", "parent": 127, "children": [], "start_point": {"row": 73, "column": 66}, "end_point": {"row": 73, "column": 67}}, {"id": 129, "type": "identifier", "text": "event", "parent": 127, "children": [], "start_point": {"row": 73, "column": 67}, "end_point": {"row": 73, "column": 72}}, {"id": 130, "type": "parameter_declaration", "text": "void *cookie", "parent": 121, "children": [131, 132], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 20}}, {"id": 131, "type": "primitive_type", "text": "void", "parent": 130, "children": [], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 12}}, {"id": 132, "type": "pointer_declarator", "text": "*cookie", "parent": 130, "children": [133, 134], "start_point": {"row": 74, "column": 13}, "end_point": {"row": 74, "column": 20}}, {"id": 133, "type": "*", "text": "*", "parent": 132, "children": [], "start_point": {"row": 74, "column": 13}, "end_point": {"row": 74, "column": 14}}, {"id": 134, "type": "identifier", "text": "cookie", "parent": 132, "children": [], "start_point": {"row": 74, "column": 14}, "end_point": {"row": 74, "column": 20}}, {"id": 135, "type": "declaration", "text": "static IXML_Document *actionResult(UpnpActionComplete *event);", "parent": 15, "children": [136, 137], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 66}}, {"id": 136, "type": "type_identifier", "text": "IXML_Document", "parent": 135, "children": [], "start_point": {"row": 82, "column": 11}, "end_point": {"row": 82, "column": 24}}, {"id": 137, "type": "pointer_declarator", "text": "*actionResult(UpnpActionComplete *event)", "parent": 135, "children": [138, 139], "start_point": {"row": 82, "column": 25}, "end_point": {"row": 82, "column": 65}}, {"id": 138, "type": "*", "text": "*", "parent": 137, "children": [], "start_point": {"row": 82, "column": 25}, "end_point": {"row": 82, "column": 26}}, {"id": 139, "type": "function_declarator", "text": "actionResult(UpnpActionComplete *event)", "parent": 137, "children": [140, 141], "start_point": {"row": 82, "column": 26}, "end_point": {"row": 82, "column": 65}}, {"id": 140, "type": "identifier", "text": "actionResult", "parent": 139, "children": [], "start_point": {"row": 82, "column": 26}, "end_point": {"row": 82, "column": 38}}, {"id": 141, "type": "parameter_list", "text": "(UpnpActionComplete *event)", "parent": 139, "children": [142], "start_point": {"row": 82, "column": 38}, "end_point": {"row": 82, "column": 65}}, {"id": 142, "type": "parameter_declaration", "text": "UpnpActionComplete *event", "parent": 141, "children": [143, 144], "start_point": {"row": 82, "column": 39}, "end_point": {"row": 82, "column": 64}}, {"id": 143, "type": "type_identifier", "text": "UpnpActionComplete", "parent": 142, "children": [], "start_point": {"row": 82, "column": 39}, "end_point": {"row": 82, "column": 57}}, {"id": 144, "type": "pointer_declarator", "text": "*event", "parent": 142, "children": [145, 146], "start_point": {"row": 82, "column": 58}, "end_point": {"row": 82, "column": 64}}, {"id": 145, "type": "*", "text": "*", "parent": 144, "children": [], "start_point": {"row": 82, "column": 58}, "end_point": {"row": 82, "column": 59}}, {"id": 146, "type": "identifier", "text": "event", "parent": 144, "children": [], "start_point": {"row": 82, "column": 59}, "end_point": {"row": 82, "column": 64}}, {"id": 147, "type": "declaration", "text": "static void getDeviceMeta(Upnp *plugin, std::string uri,\n std::string location);", "parent": 15, "children": [148, 149], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 93, "column": 30}}, {"id": 148, "type": "primitive_type", "text": "void", "parent": 147, "children": [], "start_point": {"row": 92, "column": 11}, "end_point": {"row": 92, "column": 15}}, {"id": 149, "type": "function_declarator", "text": "getDeviceMeta(Upnp *plugin, std::string uri,\n std::string location)", "parent": 147, "children": [150, 151], "start_point": {"row": 92, "column": 16}, "end_point": {"row": 93, "column": 29}}, {"id": 150, "type": "identifier", "text": "getDeviceMeta", "parent": 149, "children": [], "start_point": {"row": 92, "column": 16}, "end_point": {"row": 92, "column": 29}}, {"id": 151, "type": "parameter_list", "text": "(Upnp *plugin, std::string uri,\n std::string location)", "parent": 149, "children": [152, 157, 162], "start_point": {"row": 92, "column": 29}, "end_point": {"row": 93, "column": 29}}, {"id": 152, "type": "parameter_declaration", "text": "Upnp *plugin", "parent": 151, "children": [153, 154], "start_point": {"row": 92, "column": 30}, "end_point": {"row": 92, "column": 42}}, {"id": 153, "type": "type_identifier", "text": "Upnp", "parent": 152, "children": [], "start_point": {"row": 92, "column": 30}, "end_point": {"row": 92, "column": 34}}, {"id": 154, "type": "pointer_declarator", "text": "*plugin", "parent": 152, "children": [155, 156], "start_point": {"row": 92, "column": 35}, "end_point": {"row": 92, "column": 42}}, {"id": 155, "type": "*", "text": "*", "parent": 154, "children": [], "start_point": {"row": 92, "column": 35}, "end_point": {"row": 92, "column": 36}}, {"id": 156, "type": "identifier", "text": "plugin", "parent": 154, "children": [], "start_point": {"row": 92, "column": 36}, "end_point": {"row": 92, "column": 42}}, {"id": 157, "type": "parameter_declaration", "text": "std::string uri", "parent": 151, "children": [158, 159, 161], "start_point": {"row": 92, "column": 44}, "end_point": {"row": 92, "column": 59}}, {"id": 158, "type": "type_identifier", "text": "std", "parent": 157, "children": [], "start_point": {"row": 92, "column": 44}, "end_point": {"row": 92, "column": 47}}, {"id": 159, "type": "ERROR", "text": "::string", "parent": 157, "children": [160], "start_point": {"row": 92, "column": 47}, "end_point": {"row": 92, "column": 55}}, {"id": 160, "type": "identifier", "text": "string", "parent": 159, "children": [], "start_point": {"row": 92, "column": 49}, "end_point": {"row": 92, "column": 55}}, {"id": 161, "type": "identifier", "text": "uri", "parent": 157, "children": [], "start_point": {"row": 92, "column": 56}, "end_point": {"row": 92, "column": 59}}, {"id": 162, "type": "parameter_declaration", "text": "std::string location", "parent": 151, "children": [163, 164, 166], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 93, "column": 28}}, {"id": 163, "type": "type_identifier", "text": "std", "parent": 162, "children": [], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 93, "column": 11}}, {"id": 164, "type": "ERROR", "text": "::string", "parent": 162, "children": [165], "start_point": {"row": 93, "column": 11}, "end_point": {"row": 93, "column": 19}}, {"id": 165, "type": "identifier", "text": "string", "parent": 164, "children": [], "start_point": {"row": 93, "column": 13}, "end_point": {"row": 93, "column": 19}}, {"id": 166, "type": "identifier", "text": "location", "parent": 162, "children": [], "start_point": {"row": 93, "column": 20}, "end_point": {"row": 93, "column": 28}}, {"id": 167, "type": "declaration", "text": "int runDeviceDetection(bool start);", "parent": 15, "children": [168, 169], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 39}}, {"id": 168, "type": "primitive_type", "text": "int", "parent": 167, "children": [], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 7}}, {"id": 169, "type": "function_declarator", "text": "runDeviceDetection(bool start)", "parent": 167, "children": [170, 171], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 38}}, {"id": 170, "type": "identifier", "text": "runDeviceDetection", "parent": 169, "children": [], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 26}}, {"id": 171, "type": "parameter_list", "text": "(bool start)", "parent": 169, "children": [172], "start_point": {"row": 96, "column": 26}, "end_point": {"row": 96, "column": 38}}, {"id": 172, "type": "parameter_declaration", "text": "bool start", "parent": 171, "children": [173, 174], "start_point": {"row": 96, "column": 27}, "end_point": {"row": 96, "column": 37}}, {"id": 173, "type": "primitive_type", "text": "bool", "parent": 172, "children": [], "start_point": {"row": 96, "column": 27}, "end_point": {"row": 96, "column": 31}}, {"id": 174, "type": "identifier", "text": "start", "parent": 172, "children": [], "start_point": {"row": 96, "column": 32}, "end_point": {"row": 96, "column": 37}}, {"id": 175, "type": "declaration", "text": "void serviceFound(const void *event);", "parent": 15, "children": [176, 177], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 103, "column": 41}}, {"id": 176, "type": "primitive_type", "text": "void", "parent": 175, "children": [], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 103, "column": 8}}, {"id": 177, "type": "function_declarator", "text": "serviceFound(const void *event)", "parent": 175, "children": [178, 179], "start_point": {"row": 103, "column": 9}, "end_point": {"row": 103, "column": 40}}, {"id": 178, "type": "identifier", "text": "serviceFound", "parent": 177, "children": [], "start_point": {"row": 103, "column": 9}, "end_point": {"row": 103, "column": 21}}, {"id": 179, "type": "parameter_list", "text": "(const void *event)", "parent": 177, "children": [180], "start_point": {"row": 103, "column": 21}, "end_point": {"row": 103, "column": 40}}, {"id": 180, "type": "parameter_declaration", "text": "const void *event", "parent": 179, "children": [181, 182], "start_point": {"row": 103, "column": 22}, "end_point": {"row": 103, "column": 39}}, {"id": 181, "type": "primitive_type", "text": "void", "parent": 180, "children": [], "start_point": {"row": 103, "column": 28}, "end_point": {"row": 103, "column": 32}}, {"id": 182, "type": "pointer_declarator", "text": "*event", "parent": 180, "children": [183, 184], "start_point": {"row": 103, "column": 33}, "end_point": {"row": 103, "column": 39}}, {"id": 183, "type": "*", "text": "*", "parent": 182, "children": [], "start_point": {"row": 103, "column": 33}, "end_point": {"row": 103, "column": 34}}, {"id": 184, "type": "identifier", "text": "event", "parent": 182, "children": [], "start_point": {"row": 103, "column": 34}, "end_point": {"row": 103, "column": 39}}, {"id": 185, "type": "declaration", "text": "void serviceLost(const void *event);", "parent": 15, "children": [186, 187], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 40}}, {"id": 186, "type": "primitive_type", "text": "void", "parent": 185, "children": [], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 8}}, {"id": 187, "type": "function_declarator", "text": "serviceLost(const void *event)", "parent": 185, "children": [188, 189], "start_point": {"row": 110, "column": 9}, "end_point": {"row": 110, "column": 39}}, {"id": 188, "type": "identifier", "text": "serviceLost", "parent": 187, "children": [], "start_point": {"row": 110, "column": 9}, "end_point": {"row": 110, "column": 20}}, {"id": 189, "type": "parameter_list", "text": "(const void *event)", "parent": 187, "children": [190], "start_point": {"row": 110, "column": 20}, "end_point": {"row": 110, "column": 39}}, {"id": 190, "type": "parameter_declaration", "text": "const void *event", "parent": 189, "children": [191, 192], "start_point": {"row": 110, "column": 21}, "end_point": {"row": 110, "column": 38}}, {"id": 191, "type": "primitive_type", "text": "void", "parent": 190, "children": [], "start_point": {"row": 110, "column": 27}, "end_point": {"row": 110, "column": 31}}, {"id": 192, "type": "pointer_declarator", "text": "*event", "parent": 190, "children": [193, 194], "start_point": {"row": 110, "column": 32}, "end_point": {"row": 110, "column": 38}}, {"id": 193, "type": "*", "text": "*", "parent": 192, "children": [], "start_point": {"row": 110, "column": 32}, "end_point": {"row": 110, "column": 33}}, {"id": 194, "type": "identifier", "text": "event", "parent": 192, "children": [], "start_point": {"row": 110, "column": 33}, "end_point": {"row": 110, "column": 38}}, {"id": 195, "type": "labeled_statement", "text": "std::string mangleUri(const UpnpString *deviceId);", "parent": 15, "children": [196, 197], "start_point": {"row": 119, "column": 4}, "end_point": {"row": 119, "column": 54}}, {"id": 196, "type": "statement_identifier", "text": "std", "parent": 195, "children": [], "start_point": {"row": 119, "column": 4}, "end_point": {"row": 119, "column": 7}}, {"id": 197, "type": "declaration", "text": "string mangleUri(const UpnpString *deviceId);", "parent": 195, "children": [198, 199], "start_point": {"row": 119, "column": 9}, "end_point": {"row": 119, "column": 54}}, {"id": 198, "type": "type_identifier", "text": "string", "parent": 197, "children": [], "start_point": {"row": 119, "column": 9}, "end_point": {"row": 119, "column": 15}}, {"id": 199, "type": "function_declarator", "text": "mangleUri(const UpnpString *deviceId)", "parent": 197, "children": [200, 201], "start_point": {"row": 119, "column": 16}, "end_point": {"row": 119, "column": 53}}, {"id": 200, "type": "identifier", "text": "mangleUri", "parent": 199, "children": [], "start_point": {"row": 119, "column": 16}, "end_point": {"row": 119, "column": 25}}, {"id": 201, "type": "parameter_list", "text": "(const UpnpString *deviceId)", "parent": 199, "children": [202], "start_point": {"row": 119, "column": 25}, "end_point": {"row": 119, "column": 53}}, {"id": 202, "type": "parameter_declaration", "text": "const UpnpString *deviceId", "parent": 201, "children": [203, 204], "start_point": {"row": 119, "column": 26}, "end_point": {"row": 119, "column": 52}}, {"id": 203, "type": "type_identifier", "text": "UpnpString", "parent": 202, "children": [], "start_point": {"row": 119, "column": 32}, "end_point": {"row": 119, "column": 42}}, {"id": 204, "type": "pointer_declarator", "text": "*deviceId", "parent": 202, "children": [205, 206], "start_point": {"row": 119, "column": 43}, "end_point": {"row": 119, "column": 52}}, {"id": 205, "type": "*", "text": "*", "parent": 204, "children": [], "start_point": {"row": 119, "column": 43}, "end_point": {"row": 119, "column": 44}}, {"id": 206, "type": "identifier", "text": "deviceId", "parent": 204, "children": [], "start_point": {"row": 119, "column": 44}, "end_point": {"row": 119, "column": 52}}, {"id": 207, "type": "declaration", "text": "IXML_Node *getChildNode(IXML_Node *node, const char *tagName) const;", "parent": 15, "children": [208, 209], "start_point": {"row": 128, "column": 4}, "end_point": {"row": 128, "column": 72}}, {"id": 208, "type": "type_identifier", "text": "IXML_Node", "parent": 207, "children": [], "start_point": {"row": 128, "column": 4}, "end_point": {"row": 128, "column": 13}}, {"id": 209, "type": "pointer_declarator", "text": "*getChildNode(IXML_Node *node, const char *tagName) const", "parent": 207, "children": [210, 211], "start_point": {"row": 128, "column": 14}, "end_point": {"row": 128, "column": 71}}, {"id": 210, "type": "*", "text": "*", "parent": 209, "children": [], "start_point": {"row": 128, "column": 14}, "end_point": {"row": 128, "column": 15}}, {"id": 211, "type": "function_declarator", "text": "getChildNode(IXML_Node *node, const char *tagName) const", "parent": 209, "children": [212, 213], "start_point": {"row": 128, "column": 15}, "end_point": {"row": 128, "column": 71}}, {"id": 212, "type": "identifier", "text": "getChildNode", "parent": 211, "children": [], "start_point": {"row": 128, "column": 15}, "end_point": {"row": 128, "column": 27}}, {"id": 213, "type": "parameter_list", "text": "(IXML_Node *node, const char *tagName)", "parent": 211, "children": [214, 219], "start_point": {"row": 128, "column": 27}, "end_point": {"row": 128, "column": 65}}, {"id": 214, "type": "parameter_declaration", "text": "IXML_Node *node", "parent": 213, "children": [215, 216], "start_point": {"row": 128, "column": 28}, "end_point": {"row": 128, "column": 43}}, {"id": 215, "type": "type_identifier", "text": "IXML_Node", "parent": 214, "children": [], "start_point": {"row": 128, "column": 28}, "end_point": {"row": 128, "column": 37}}, {"id": 216, "type": "pointer_declarator", "text": "*node", "parent": 214, "children": [217, 218], "start_point": {"row": 128, "column": 38}, "end_point": {"row": 128, "column": 43}}, {"id": 217, "type": "*", "text": "*", "parent": 216, "children": [], "start_point": {"row": 128, "column": 38}, "end_point": {"row": 128, "column": 39}}, {"id": 218, "type": "identifier", "text": "node", "parent": 216, "children": [], "start_point": {"row": 128, "column": 39}, "end_point": {"row": 128, "column": 43}}, {"id": 219, "type": "parameter_declaration", "text": "const char *tagName", "parent": 213, "children": [220, 221], "start_point": {"row": 128, "column": 45}, "end_point": {"row": 128, "column": 64}}, {"id": 220, "type": "primitive_type", "text": "char", "parent": 219, "children": [], "start_point": {"row": 128, "column": 51}, "end_point": {"row": 128, "column": 55}}, {"id": 221, "type": "pointer_declarator", "text": "*tagName", "parent": 219, "children": [222, 223], "start_point": {"row": 128, "column": 56}, "end_point": {"row": 128, "column": 64}}, {"id": 222, "type": "*", "text": "*", "parent": 221, "children": [], "start_point": {"row": 128, "column": 56}, "end_point": {"row": 128, "column": 57}}, {"id": 223, "type": "identifier", "text": "tagName", "parent": 221, "children": [], "start_point": {"row": 128, "column": 57}, "end_point": {"row": 128, "column": 64}}, {"id": 224, "type": "ERROR", "text": "const DOMString getNodeText(IXML_Document *doc, const char *tagName) const", "parent": 15, "children": [225, 226], "start_point": {"row": 139, "column": 4}, "end_point": {"row": 139, "column": 78}}, {"id": 225, "type": "type_identifier", "text": "DOMString", "parent": 224, "children": [], "start_point": {"row": 139, "column": 10}, "end_point": {"row": 139, "column": 19}}, {"id": 226, "type": "function_declarator", "text": "getNodeText(IXML_Document *doc, const char *tagName) const", "parent": 224, "children": [227, 228], "start_point": {"row": 139, "column": 20}, "end_point": {"row": 139, "column": 78}}, {"id": 227, "type": "identifier", "text": "getNodeText", "parent": 226, "children": [], "start_point": {"row": 139, "column": 20}, "end_point": {"row": 139, "column": 31}}, {"id": 228, "type": "parameter_list", "text": "(IXML_Document *doc, const char *tagName)", "parent": 226, "children": [229, 234], "start_point": {"row": 139, "column": 31}, "end_point": {"row": 139, "column": 72}}, {"id": 229, "type": "parameter_declaration", "text": "IXML_Document *doc", "parent": 228, "children": [230, 231], "start_point": {"row": 139, "column": 32}, "end_point": {"row": 139, "column": 50}}, {"id": 230, "type": "type_identifier", "text": "IXML_Document", "parent": 229, "children": [], "start_point": {"row": 139, "column": 32}, "end_point": {"row": 139, "column": 45}}, {"id": 231, "type": "pointer_declarator", "text": "*doc", "parent": 229, "children": [232, 233], "start_point": {"row": 139, "column": 46}, "end_point": {"row": 139, "column": 50}}, {"id": 232, "type": "*", "text": "*", "parent": 231, "children": [], "start_point": {"row": 139, "column": 46}, "end_point": {"row": 139, "column": 47}}, {"id": 233, "type": "identifier", "text": "doc", "parent": 231, "children": [], "start_point": {"row": 139, "column": 47}, "end_point": {"row": 139, "column": 50}}, {"id": 234, "type": "parameter_declaration", "text": "const char *tagName", "parent": 228, "children": [235, 236], "start_point": {"row": 139, "column": 52}, "end_point": {"row": 139, "column": 71}}, {"id": 235, "type": "primitive_type", "text": "char", "parent": 234, "children": [], "start_point": {"row": 139, "column": 58}, "end_point": {"row": 139, "column": 62}}, {"id": 236, "type": "pointer_declarator", "text": "*tagName", "parent": 234, "children": [237, 238], "start_point": {"row": 139, "column": 63}, "end_point": {"row": 139, "column": 71}}, {"id": 237, "type": "*", "text": "*", "parent": 236, "children": [], "start_point": {"row": 139, "column": 63}, "end_point": {"row": 139, "column": 64}}, {"id": 238, "type": "identifier", "text": "tagName", "parent": 236, "children": [], "start_point": {"row": 139, "column": 64}, "end_point": {"row": 139, "column": 71}}, {"id": 239, "type": "ERROR", "text": "const DOMString getNodeText(IXML_Node *node, const char *tagName) const", "parent": 15, "children": [240, 241], "start_point": {"row": 148, "column": 4}, "end_point": {"row": 148, "column": 75}}, {"id": 240, "type": "type_identifier", "text": "DOMString", "parent": 239, "children": [], "start_point": {"row": 148, "column": 10}, "end_point": {"row": 148, "column": 19}}, {"id": 241, "type": "function_declarator", "text": "getNodeText(IXML_Node *node, const char *tagName) const", "parent": 239, "children": [242, 243], "start_point": {"row": 148, "column": 20}, "end_point": {"row": 148, "column": 75}}, {"id": 242, "type": "identifier", "text": "getNodeText", "parent": 241, "children": [], "start_point": {"row": 148, "column": 20}, "end_point": {"row": 148, "column": 31}}, {"id": 243, "type": "parameter_list", "text": "(IXML_Node *node, const char *tagName)", "parent": 241, "children": [244, 249], "start_point": {"row": 148, "column": 31}, "end_point": {"row": 148, "column": 69}}, {"id": 244, "type": "parameter_declaration", "text": "IXML_Node *node", "parent": 243, "children": [245, 246], "start_point": {"row": 148, "column": 32}, "end_point": {"row": 148, "column": 47}}, {"id": 245, "type": "type_identifier", "text": "IXML_Node", "parent": 244, "children": [], "start_point": {"row": 148, "column": 32}, "end_point": {"row": 148, "column": 41}}, {"id": 246, "type": "pointer_declarator", "text": "*node", "parent": 244, "children": [247, 248], "start_point": {"row": 148, "column": 42}, "end_point": {"row": 148, "column": 47}}, {"id": 247, "type": "*", "text": "*", "parent": 246, "children": [], "start_point": {"row": 148, "column": 42}, "end_point": {"row": 148, "column": 43}}, {"id": 248, "type": "identifier", "text": "node", "parent": 246, "children": [], "start_point": {"row": 148, "column": 43}, "end_point": {"row": 148, "column": 47}}, {"id": 249, "type": "parameter_declaration", "text": "const char *tagName", "parent": 243, "children": [250, 251], "start_point": {"row": 148, "column": 49}, "end_point": {"row": 148, "column": 68}}, {"id": 250, "type": "primitive_type", "text": "char", "parent": 249, "children": [], "start_point": {"row": 148, "column": 55}, "end_point": {"row": 148, "column": 59}}, {"id": 251, "type": "pointer_declarator", "text": "*tagName", "parent": 249, "children": [252, 253], "start_point": {"row": 148, "column": 60}, "end_point": {"row": 148, "column": 68}}, {"id": 252, "type": "*", "text": "*", "parent": 251, "children": [], "start_point": {"row": 148, "column": 60}, "end_point": {"row": 148, "column": 61}}, {"id": 253, "type": "identifier", "text": "tagName", "parent": 251, "children": [], "start_point": {"row": 148, "column": 61}, "end_point": {"row": 148, "column": 68}}, {"id": 254, "type": "ERROR", "text": "const DOMString getNodeText(IXML_Node *node) const", "parent": 15, "children": [255, 256], "start_point": {"row": 156, "column": 4}, "end_point": {"row": 156, "column": 54}}, {"id": 255, "type": "type_identifier", "text": "DOMString", "parent": 254, "children": [], "start_point": {"row": 156, "column": 10}, "end_point": {"row": 156, "column": 19}}, {"id": 256, "type": "function_declarator", "text": "getNodeText(IXML_Node *node) const", "parent": 254, "children": [257, 258], "start_point": {"row": 156, "column": 20}, "end_point": {"row": 156, "column": 54}}, {"id": 257, "type": "identifier", "text": "getNodeText", "parent": 256, "children": [], "start_point": {"row": 156, "column": 20}, "end_point": {"row": 156, "column": 31}}, {"id": 258, "type": "parameter_list", "text": "(IXML_Node *node)", "parent": 256, "children": [259], "start_point": {"row": 156, "column": 31}, "end_point": {"row": 156, "column": 48}}, {"id": 259, "type": "parameter_declaration", "text": "IXML_Node *node", "parent": 258, "children": [260, 261], "start_point": {"row": 156, "column": 32}, "end_point": {"row": 156, "column": 47}}, {"id": 260, "type": "type_identifier", "text": "IXML_Node", "parent": 259, "children": [], "start_point": {"row": 156, "column": 32}, "end_point": {"row": 156, "column": 41}}, {"id": 261, "type": "pointer_declarator", "text": "*node", "parent": 259, "children": [262, 263], "start_point": {"row": 156, "column": 42}, "end_point": {"row": 156, "column": 47}}, {"id": 262, "type": "*", "text": "*", "parent": 261, "children": [], "start_point": {"row": 156, "column": 42}, "end_point": {"row": 156, "column": 43}}, {"id": 263, "type": "identifier", "text": "node", "parent": 261, "children": [], "start_point": {"row": 156, "column": 43}, "end_point": {"row": 156, "column": 47}}, {"id": 264, "type": "ERROR", "text": "DOMString getAttributeText(IXML_Node *node, const char *attrName) const", "parent": 15, "children": [265, 266], "start_point": {"row": 167, "column": 4}, "end_point": {"row": 167, "column": 75}}, {"id": 265, "type": "type_identifier", "text": "DOMString", "parent": 264, "children": [], "start_point": {"row": 167, "column": 4}, "end_point": {"row": 167, "column": 13}}, {"id": 266, "type": "function_declarator", "text": "getAttributeText(IXML_Node *node, const char *attrName) const", "parent": 264, "children": [267, 268], "start_point": {"row": 167, "column": 14}, "end_point": {"row": 167, "column": 75}}, {"id": 267, "type": "identifier", "text": "getAttributeText", "parent": 266, "children": [], "start_point": {"row": 167, "column": 14}, "end_point": {"row": 167, "column": 30}}, {"id": 268, "type": "parameter_list", "text": "(IXML_Node *node, const char *attrName)", "parent": 266, "children": [269, 274], "start_point": {"row": 167, "column": 30}, "end_point": {"row": 167, "column": 69}}, {"id": 269, "type": "parameter_declaration", "text": "IXML_Node *node", "parent": 268, "children": [270, 271], "start_point": {"row": 167, "column": 31}, "end_point": {"row": 167, "column": 46}}, {"id": 270, "type": "type_identifier", "text": "IXML_Node", "parent": 269, "children": [], "start_point": {"row": 167, "column": 31}, "end_point": {"row": 167, "column": 40}}, {"id": 271, "type": "pointer_declarator", "text": "*node", "parent": 269, "children": [272, 273], "start_point": {"row": 167, "column": 41}, "end_point": {"row": 167, "column": 46}}, {"id": 272, "type": "*", "text": "*", "parent": 271, "children": [], "start_point": {"row": 167, "column": 41}, "end_point": {"row": 167, "column": 42}}, {"id": 273, "type": "identifier", "text": "node", "parent": 271, "children": [], "start_point": {"row": 167, "column": 42}, "end_point": {"row": 167, "column": 46}}, {"id": 274, "type": "parameter_declaration", "text": "const char *attrName", "parent": 268, "children": [275, 276], "start_point": {"row": 167, "column": 48}, "end_point": {"row": 167, "column": 68}}, {"id": 275, "type": "primitive_type", "text": "char", "parent": 274, "children": [], "start_point": {"row": 167, "column": 54}, "end_point": {"row": 167, "column": 58}}, {"id": 276, "type": "pointer_declarator", "text": "*attrName", "parent": 274, "children": [277, 278], "start_point": {"row": 167, "column": 59}, "end_point": {"row": 167, "column": 68}}, {"id": 277, "type": "*", "text": "*", "parent": 276, "children": [], "start_point": {"row": 167, "column": 59}, "end_point": {"row": 167, "column": 60}}, {"id": 278, "type": "identifier", "text": "attrName", "parent": 276, "children": [], "start_point": {"row": 167, "column": 60}, "end_point": {"row": 167, "column": 68}}, {"id": 279, "type": "ERROR", "text": "void iterateOnTag(IXML_Document *doc, const char *tagName,\n const std::function<void(IXML_Node*)> &func) const", "parent": 15, "children": [280, 281], "start_point": {"row": 178, "column": 4}, "end_point": {"row": 179, "column": 58}}, {"id": 280, "type": "primitive_type", "text": "void", "parent": 279, "children": [], "start_point": {"row": 178, "column": 4}, "end_point": {"row": 178, "column": 8}}, {"id": 281, "type": "function_declarator", "text": "iterateOnTag(IXML_Document *doc, const char *tagName,\n const std::function<void(IXML_Node*)> &func", "parent": 279, "children": [282, 283, 302, 304], "start_point": {"row": 178, "column": 9}, "end_point": {"row": 179, "column": 51}}, {"id": 282, "type": "identifier", "text": "iterateOnTag", "parent": 281, "children": [], "start_point": {"row": 178, "column": 9}, "end_point": {"row": 178, "column": 21}}, {"id": 283, "type": "parameter_list", "text": "(IXML_Document *doc, const char *tagName,\n const std::function<void(IXML_Node*)", "parent": 281, "children": [284, 289, 294], "start_point": {"row": 178, "column": 21}, "end_point": {"row": 179, "column": 44}}, {"id": 284, "type": "parameter_declaration", "text": "IXML_Document *doc", "parent": 283, "children": [285, 286], "start_point": {"row": 178, "column": 22}, "end_point": {"row": 178, "column": 40}}, {"id": 285, "type": "type_identifier", "text": "IXML_Document", "parent": 284, "children": [], "start_point": {"row": 178, "column": 22}, "end_point": {"row": 178, "column": 35}}, {"id": 286, "type": "pointer_declarator", "text": "*doc", "parent": 284, "children": [287, 288], "start_point": {"row": 178, "column": 36}, "end_point": {"row": 178, "column": 40}}, {"id": 287, "type": "*", "text": "*", "parent": 286, "children": [], "start_point": {"row": 178, "column": 36}, "end_point": {"row": 178, "column": 37}}, {"id": 288, "type": "identifier", "text": "doc", "parent": 286, "children": [], "start_point": {"row": 178, "column": 37}, "end_point": {"row": 178, "column": 40}}, {"id": 289, "type": "parameter_declaration", "text": "const char *tagName", "parent": 283, "children": [290, 291], "start_point": {"row": 178, "column": 42}, "end_point": {"row": 178, "column": 61}}, {"id": 290, "type": "primitive_type", "text": "char", "parent": 289, "children": [], "start_point": {"row": 178, "column": 48}, "end_point": {"row": 178, "column": 52}}, {"id": 291, "type": "pointer_declarator", "text": "*tagName", "parent": 289, "children": [292, 293], "start_point": {"row": 178, "column": 53}, "end_point": {"row": 178, "column": 61}}, {"id": 292, "type": "*", "text": "*", "parent": 291, "children": [], "start_point": {"row": 178, "column": 53}, "end_point": {"row": 178, "column": 54}}, {"id": 293, "type": "identifier", "text": "tagName", "parent": 291, "children": [], "start_point": {"row": 178, "column": 54}, "end_point": {"row": 178, "column": 61}}, {"id": 294, "type": "parameter_declaration", "text": "const std::function<void(IXML_Node*", "parent": 283, "children": [295, 296, 300], "start_point": {"row": 179, "column": 8}, "end_point": {"row": 179, "column": 43}}, {"id": 295, "type": "type_identifier", "text": "std", "parent": 294, "children": [], "start_point": {"row": 179, "column": 14}, "end_point": {"row": 179, "column": 17}}, {"id": 296, "type": "ERROR", "text": "::function<void(IXML_Node", "parent": 294, "children": [297, 298, 299], "start_point": {"row": 179, "column": 17}, "end_point": {"row": 179, "column": 42}}, {"id": 297, "type": "<", "text": "<", "parent": 296, "children": [], "start_point": {"row": 179, "column": 27}, "end_point": {"row": 179, "column": 28}}, {"id": 298, "type": "primitive_type", "text": "void", "parent": 296, "children": [], "start_point": {"row": 179, "column": 28}, "end_point": {"row": 179, "column": 32}}, {"id": 299, "type": "identifier", "text": "IXML_Node", "parent": 296, "children": [], "start_point": {"row": 179, "column": 33}, "end_point": {"row": 179, "column": 42}}, {"id": 300, "type": "abstract_pointer_declarator", "text": "*", "parent": 294, "children": [301], "start_point": {"row": 179, "column": 42}, "end_point": {"row": 179, "column": 43}}, {"id": 301, "type": "*", "text": "*", "parent": 300, "children": [], "start_point": {"row": 179, "column": 42}, "end_point": {"row": 179, "column": 43}}, {"id": 302, "type": "ERROR", "text": "> &", "parent": 281, "children": [303], "start_point": {"row": 179, "column": 44}, "end_point": {"row": 179, "column": 47}}, {"id": 303, "type": ">", "text": ">", "parent": 302, "children": [], "start_point": {"row": 179, "column": 44}, "end_point": {"row": 179, "column": 45}}, {"id": 304, "type": "identifier", "text": "func", "parent": 281, "children": [], "start_point": {"row": 179, "column": 47}, "end_point": {"row": 179, "column": 51}}, {"id": 305, "type": "declaration", "text": "const char *checkServiceCategory(IXML_Document *doc) const;", "parent": 15, "children": [306, 307], "start_point": {"row": 189, "column": 4}, "end_point": {"row": 189, "column": 63}}, {"id": 306, "type": "primitive_type", "text": "char", "parent": 305, "children": [], "start_point": {"row": 189, "column": 10}, "end_point": {"row": 189, "column": 14}}, {"id": 307, "type": "pointer_declarator", "text": "*checkServiceCategory(IXML_Document *doc) const", "parent": 305, "children": [308, 309], "start_point": {"row": 189, "column": 15}, "end_point": {"row": 189, "column": 62}}, {"id": 308, "type": "*", "text": "*", "parent": 307, "children": [], "start_point": {"row": 189, "column": 15}, "end_point": {"row": 189, "column": 16}}, {"id": 309, "type": "function_declarator", "text": "checkServiceCategory(IXML_Document *doc) const", "parent": 307, "children": [310, 311], "start_point": {"row": 189, "column": 16}, "end_point": {"row": 189, "column": 62}}, {"id": 310, "type": "identifier", "text": "checkServiceCategory", "parent": 309, "children": [], "start_point": {"row": 189, "column": 16}, "end_point": {"row": 189, "column": 36}}, {"id": 311, "type": "parameter_list", "text": "(IXML_Document *doc)", "parent": 309, "children": [312], "start_point": {"row": 189, "column": 36}, "end_point": {"row": 189, "column": 56}}, {"id": 312, "type": "parameter_declaration", "text": "IXML_Document *doc", "parent": 311, "children": [313, 314], "start_point": {"row": 189, "column": 37}, "end_point": {"row": 189, "column": 55}}, {"id": 313, "type": "type_identifier", "text": "IXML_Document", "parent": 312, "children": [], "start_point": {"row": 189, "column": 37}, "end_point": {"row": 189, "column": 50}}, {"id": 314, "type": "pointer_declarator", "text": "*doc", "parent": 312, "children": [315, 316], "start_point": {"row": 189, "column": 51}, "end_point": {"row": 189, "column": 55}}, {"id": 315, "type": "*", "text": "*", "parent": 314, "children": [], "start_point": {"row": 189, "column": 51}, "end_point": {"row": 189, "column": 52}}, {"id": 316, "type": "identifier", "text": "doc", "parent": 314, "children": [], "start_point": {"row": 189, "column": 52}, "end_point": {"row": 189, "column": 55}}, {"id": 317, "type": "ERROR", "text": "bool sendMetaRequest(const std::string &id, MediaItem &mediaItem) const", "parent": 15, "children": [318, 319], "start_point": {"row": 198, "column": 4}, "end_point": {"row": 198, "column": 75}}, {"id": 318, "type": "primitive_type", "text": "bool", "parent": 317, "children": [], "start_point": {"row": 198, "column": 4}, "end_point": {"row": 198, "column": 8}}, {"id": 319, "type": "function_declarator", "text": "sendMetaRequest(const std::string &id, MediaItem &mediaItem) const", "parent": 317, "children": [320, 321], "start_point": {"row": 198, "column": 9}, "end_point": {"row": 198, "column": 75}}, {"id": 320, "type": "identifier", "text": "sendMetaRequest", "parent": 319, "children": [], "start_point": {"row": 198, "column": 9}, "end_point": {"row": 198, "column": 24}}, {"id": 321, "type": "parameter_list", "text": "(const std::string &id, MediaItem &mediaItem)", "parent": 319, "children": [322, 327], "start_point": {"row": 198, "column": 24}, "end_point": {"row": 198, "column": 69}}, {"id": 322, "type": "parameter_declaration", "text": "const std::string &id", "parent": 321, "children": [323, 324, 326], "start_point": {"row": 198, "column": 25}, "end_point": {"row": 198, "column": 46}}, {"id": 323, "type": "type_identifier", "text": "std", "parent": 322, "children": [], "start_point": {"row": 198, "column": 31}, "end_point": {"row": 198, "column": 34}}, {"id": 324, "type": "ERROR", "text": "::string &", "parent": 322, "children": [325], "start_point": {"row": 198, "column": 34}, "end_point": {"row": 198, "column": 44}}, {"id": 325, "type": "identifier", "text": "string", "parent": 324, "children": [], "start_point": {"row": 198, "column": 36}, "end_point": {"row": 198, "column": 42}}, {"id": 326, "type": "identifier", "text": "id", "parent": 322, "children": [], "start_point": {"row": 198, "column": 44}, "end_point": {"row": 198, "column": 46}}, {"id": 327, "type": "parameter_declaration", "text": "MediaItem &mediaItem", "parent": 321, "children": [328, 329], "start_point": {"row": 198, "column": 48}, "end_point": {"row": 198, "column": 68}}, {"id": 328, "type": "type_identifier", "text": "MediaItem", "parent": 327, "children": [], "start_point": {"row": 198, "column": 48}, "end_point": {"row": 198, "column": 57}}, {"id": 329, "type": "identifier", "text": "mediaItem", "parent": 327, "children": [], "start_point": {"row": 198, "column": 59}, "end_point": {"row": 198, "column": 68}}, {"id": 330, "type": "ERROR", "text": "bool sendBrowseRequest(const std::string &id, int count,\n std::shared_ptr<Device> device) const", "parent": 15, "children": [331, 332], "start_point": {"row": 208, "column": 4}, "end_point": {"row": 209, "column": 45}}, {"id": 331, "type": "primitive_type", "text": "bool", "parent": 330, "children": [], "start_point": {"row": 208, "column": 4}, "end_point": {"row": 208, "column": 8}}, {"id": 332, "type": "function_declarator", "text": "sendBrowseRequest(const std::string &id, int count,\n std::shared_ptr<Device> device) const", "parent": 330, "children": [333, 334], "start_point": {"row": 208, "column": 9}, "end_point": {"row": 209, "column": 45}}, {"id": 333, "type": "identifier", "text": "sendBrowseRequest", "parent": 332, "children": [], "start_point": {"row": 208, "column": 9}, "end_point": {"row": 208, "column": 26}}, {"id": 334, "type": "parameter_list", "text": "(const std::string &id, int count,\n std::shared_ptr<Device> device)", "parent": 332, "children": [335, 340, 343], "start_point": {"row": 208, "column": 26}, "end_point": {"row": 209, "column": 39}}, {"id": 335, "type": "parameter_declaration", "text": "const std::string &id", "parent": 334, "children": [336, 337, 339], "start_point": {"row": 208, "column": 27}, "end_point": {"row": 208, "column": 48}}, {"id": 336, "type": "type_identifier", "text": "std", "parent": 335, "children": [], "start_point": {"row": 208, "column": 33}, "end_point": {"row": 208, "column": 36}}, {"id": 337, "type": "ERROR", "text": "::string &", "parent": 335, "children": [338], "start_point": {"row": 208, "column": 36}, "end_point": {"row": 208, "column": 46}}, {"id": 338, "type": "identifier", "text": "string", "parent": 337, "children": [], "start_point": {"row": 208, "column": 38}, "end_point": {"row": 208, "column": 44}}, {"id": 339, "type": "identifier", "text": "id", "parent": 335, "children": [], "start_point": {"row": 208, "column": 46}, "end_point": {"row": 208, "column": 48}}, {"id": 340, "type": "parameter_declaration", "text": "int count", "parent": 334, "children": [341, 342], "start_point": {"row": 208, "column": 50}, "end_point": {"row": 208, "column": 59}}, {"id": 341, "type": "primitive_type", "text": "int", "parent": 340, "children": [], "start_point": {"row": 208, "column": 50}, "end_point": {"row": 208, "column": 53}}, {"id": 342, "type": "identifier", "text": "count", "parent": 340, "children": [], "start_point": {"row": 208, "column": 54}, "end_point": {"row": 208, "column": 59}}, {"id": 343, "type": "parameter_declaration", "text": "std::shared_ptr<Device> device", "parent": 334, "children": [344, 345, 350], "start_point": {"row": 209, "column": 8}, "end_point": {"row": 209, "column": 38}}, {"id": 344, "type": "type_identifier", "text": "std", "parent": 343, "children": [], "start_point": {"row": 209, "column": 8}, "end_point": {"row": 209, "column": 11}}, {"id": 345, "type": "ERROR", "text": "::shared_ptr<Device>", "parent": 343, "children": [346, 347, 348, 349], "start_point": {"row": 209, "column": 11}, "end_point": {"row": 209, "column": 31}}, {"id": 346, "type": "identifier", "text": "shared_ptr", "parent": 345, "children": [], "start_point": {"row": 209, "column": 13}, "end_point": {"row": 209, "column": 23}}, {"id": 347, "type": "<", "text": "<", "parent": 345, "children": [], "start_point": {"row": 209, "column": 23}, "end_point": {"row": 209, "column": 24}}, {"id": 348, "type": "identifier", "text": "Device", "parent": 345, "children": [], "start_point": {"row": 209, "column": 24}, "end_point": {"row": 209, "column": 30}}, {"id": 349, "type": ">", "text": ">", "parent": 345, "children": [], "start_point": {"row": 209, "column": 30}, "end_point": {"row": 209, "column": 31}}, {"id": 350, "type": "identifier", "text": "device", "parent": 343, "children": [], "start_point": {"row": 209, "column": 32}, "end_point": {"row": 209, "column": 38}}, {"id": 351, "type": "ERROR", "text": "int browseChunk(const std::string &id, int start, int count,\n std::shared_ptr<Device> device) const", "parent": 15, "children": [352, 353], "start_point": {"row": 220, "column": 4}, "end_point": {"row": 221, "column": 45}}, {"id": 352, "type": "primitive_type", "text": "int", "parent": 351, "children": [], "start_point": {"row": 220, "column": 4}, "end_point": {"row": 220, "column": 7}}, {"id": 353, "type": "function_declarator", "text": "browseChunk(const std::string &id, int start, int count,\n std::shared_ptr<Device> device) const", "parent": 351, "children": [354, 355], "start_point": {"row": 220, "column": 8}, "end_point": {"row": 221, "column": 45}}, {"id": 354, "type": "identifier", "text": "browseChunk", "parent": 353, "children": [], "start_point": {"row": 220, "column": 8}, "end_point": {"row": 220, "column": 19}}, {"id": 355, "type": "parameter_list", "text": "(const std::string &id, int start, int count,\n std::shared_ptr<Device> device)", "parent": 353, "children": [356, 361, 364, 367], "start_point": {"row": 220, "column": 19}, "end_point": {"row": 221, "column": 39}}, {"id": 356, "type": "parameter_declaration", "text": "const std::string &id", "parent": 355, "children": [357, 358, 360], "start_point": {"row": 220, "column": 20}, "end_point": {"row": 220, "column": 41}}, {"id": 357, "type": "type_identifier", "text": "std", "parent": 356, "children": [], "start_point": {"row": 220, "column": 26}, "end_point": {"row": 220, "column": 29}}, {"id": 358, "type": "ERROR", "text": "::string &", "parent": 356, "children": [359], "start_point": {"row": 220, "column": 29}, "end_point": {"row": 220, "column": 39}}, {"id": 359, "type": "identifier", "text": "string", "parent": 358, "children": [], "start_point": {"row": 220, "column": 31}, "end_point": {"row": 220, "column": 37}}, {"id": 360, "type": "identifier", "text": "id", "parent": 356, "children": [], "start_point": {"row": 220, "column": 39}, "end_point": {"row": 220, "column": 41}}, {"id": 361, "type": "parameter_declaration", "text": "int start", "parent": 355, "children": [362, 363], "start_point": {"row": 220, "column": 43}, "end_point": {"row": 220, "column": 52}}, {"id": 362, "type": "primitive_type", "text": "int", "parent": 361, "children": [], "start_point": {"row": 220, "column": 43}, "end_point": {"row": 220, "column": 46}}, {"id": 363, "type": "identifier", "text": "start", "parent": 361, "children": [], "start_point": {"row": 220, "column": 47}, "end_point": {"row": 220, "column": 52}}, {"id": 364, "type": "parameter_declaration", "text": "int count", "parent": 355, "children": [365, 366], "start_point": {"row": 220, "column": 54}, "end_point": {"row": 220, "column": 63}}, {"id": 365, "type": "primitive_type", "text": "int", "parent": 364, "children": [], "start_point": {"row": 220, "column": 54}, "end_point": {"row": 220, "column": 57}}, {"id": 366, "type": "identifier", "text": "count", "parent": 364, "children": [], "start_point": {"row": 220, "column": 58}, "end_point": {"row": 220, "column": 63}}, {"id": 367, "type": "parameter_declaration", "text": "std::shared_ptr<Device> device", "parent": 355, "children": [368, 369, 374], "start_point": {"row": 221, "column": 8}, "end_point": {"row": 221, "column": 38}}, {"id": 368, "type": "type_identifier", "text": "std", "parent": 367, "children": [], "start_point": {"row": 221, "column": 8}, "end_point": {"row": 221, "column": 11}}, {"id": 369, "type": "ERROR", "text": "::shared_ptr<Device>", "parent": 367, "children": [370, 371, 372, 373], "start_point": {"row": 221, "column": 11}, "end_point": {"row": 221, "column": 31}}, {"id": 370, "type": "identifier", "text": "shared_ptr", "parent": 369, "children": [], "start_point": {"row": 221, "column": 13}, "end_point": {"row": 221, "column": 23}}, {"id": 371, "type": "<", "text": "<", "parent": 369, "children": [], "start_point": {"row": 221, "column": 23}, "end_point": {"row": 221, "column": 24}}, {"id": 372, "type": "identifier", "text": "Device", "parent": 369, "children": [], "start_point": {"row": 221, "column": 24}, "end_point": {"row": 221, "column": 30}}, {"id": 373, "type": ">", "text": ">", "parent": 369, "children": [], "start_point": {"row": 221, "column": 30}, "end_point": {"row": 221, "column": 31}}, {"id": 374, "type": "identifier", "text": "device", "parent": 367, "children": [], "start_point": {"row": 221, "column": 32}, "end_point": {"row": 221, "column": 38}}, {"id": 375, "type": "ERROR", "text": "bool parseBrowseResponse(IXML_Document *doc,\n std::shared_ptr<Device> device) const", "parent": 15, "children": [376, 377], "start_point": {"row": 230, "column": 4}, "end_point": {"row": 231, "column": 45}}, {"id": 376, "type": "primitive_type", "text": "bool", "parent": 375, "children": [], "start_point": {"row": 230, "column": 4}, "end_point": {"row": 230, "column": 8}}, {"id": 377, "type": "function_declarator", "text": "parseBrowseResponse(IXML_Document *doc,\n std::shared_ptr<Device> device) const", "parent": 375, "children": [378, 379], "start_point": {"row": 230, "column": 9}, "end_point": {"row": 231, "column": 45}}, {"id": 378, "type": "identifier", "text": "parseBrowseResponse", "parent": 377, "children": [], "start_point": {"row": 230, "column": 9}, "end_point": {"row": 230, "column": 28}}, {"id": 379, "type": "parameter_list", "text": "(IXML_Document *doc,\n std::shared_ptr<Device> device)", "parent": 377, "children": [380, 385], "start_point": {"row": 230, "column": 28}, "end_point": {"row": 231, "column": 39}}, {"id": 380, "type": "parameter_declaration", "text": "IXML_Document *doc", "parent": 379, "children": [381, 382], "start_point": {"row": 230, "column": 29}, "end_point": {"row": 230, "column": 47}}, {"id": 381, "type": "type_identifier", "text": "IXML_Document", "parent": 380, "children": [], "start_point": {"row": 230, "column": 29}, "end_point": {"row": 230, "column": 42}}, {"id": 382, "type": "pointer_declarator", "text": "*doc", "parent": 380, "children": [383, 384], "start_point": {"row": 230, "column": 43}, "end_point": {"row": 230, "column": 47}}, {"id": 383, "type": "*", "text": "*", "parent": 382, "children": [], "start_point": {"row": 230, "column": 43}, "end_point": {"row": 230, "column": 44}}, {"id": 384, "type": "identifier", "text": "doc", "parent": 382, "children": [], "start_point": {"row": 230, "column": 44}, "end_point": {"row": 230, "column": 47}}, {"id": 385, "type": "parameter_declaration", "text": "std::shared_ptr<Device> device", "parent": 379, "children": [386, 387, 392], "start_point": {"row": 231, "column": 8}, "end_point": {"row": 231, "column": 38}}, {"id": 386, "type": "type_identifier", "text": "std", "parent": 385, "children": [], "start_point": {"row": 231, "column": 8}, "end_point": {"row": 231, "column": 11}}, {"id": 387, "type": "ERROR", "text": "::shared_ptr<Device>", "parent": 385, "children": [388, 389, 390, 391], "start_point": {"row": 231, "column": 11}, "end_point": {"row": 231, "column": 31}}, {"id": 388, "type": "identifier", "text": "shared_ptr", "parent": 387, "children": [], "start_point": {"row": 231, "column": 13}, "end_point": {"row": 231, "column": 23}}, {"id": 389, "type": "<", "text": "<", "parent": 387, "children": [], "start_point": {"row": 231, "column": 23}, "end_point": {"row": 231, "column": 24}}, {"id": 390, "type": "identifier", "text": "Device", "parent": 387, "children": [], "start_point": {"row": 231, "column": 24}, "end_point": {"row": 231, "column": 30}}, {"id": 391, "type": ">", "text": ">", "parent": 387, "children": [], "start_point": {"row": 231, "column": 30}, "end_point": {"row": 231, "column": 31}}, {"id": 392, "type": "identifier", "text": "device", "parent": 385, "children": [], "start_point": {"row": 231, "column": 32}, "end_point": {"row": 231, "column": 38}}, {"id": 393, "type": "ERROR", "text": "bool parseMetaDataResponse(IXML_Document *doc,\n MediaItem &mediaItem) const", "parent": 15, "children": [394, 395], "start_point": {"row": 240, "column": 4}, "end_point": {"row": 241, "column": 35}}, {"id": 394, "type": "primitive_type", "text": "bool", "parent": 393, "children": [], "start_point": {"row": 240, "column": 4}, "end_point": {"row": 240, "column": 8}}, {"id": 395, "type": "function_declarator", "text": "parseMetaDataResponse(IXML_Document *doc,\n MediaItem &mediaItem) const", "parent": 393, "children": [396, 397], "start_point": {"row": 240, "column": 9}, "end_point": {"row": 241, "column": 35}}, {"id": 396, "type": "identifier", "text": "parseMetaDataResponse", "parent": 395, "children": [], "start_point": {"row": 240, "column": 9}, "end_point": {"row": 240, "column": 30}}, {"id": 397, "type": "parameter_list", "text": "(IXML_Document *doc,\n MediaItem &mediaItem)", "parent": 395, "children": [398, 403], "start_point": {"row": 240, "column": 30}, "end_point": {"row": 241, "column": 29}}, {"id": 398, "type": "parameter_declaration", "text": "IXML_Document *doc", "parent": 397, "children": [399, 400], "start_point": {"row": 240, "column": 31}, "end_point": {"row": 240, "column": 49}}, {"id": 399, "type": "type_identifier", "text": "IXML_Document", "parent": 398, "children": [], "start_point": {"row": 240, "column": 31}, "end_point": {"row": 240, "column": 44}}, {"id": 400, "type": "pointer_declarator", "text": "*doc", "parent": 398, "children": [401, 402], "start_point": {"row": 240, "column": 45}, "end_point": {"row": 240, "column": 49}}, {"id": 401, "type": "*", "text": "*", "parent": 400, "children": [], "start_point": {"row": 240, "column": 45}, "end_point": {"row": 240, "column": 46}}, {"id": 402, "type": "identifier", "text": "doc", "parent": 400, "children": [], "start_point": {"row": 240, "column": 46}, "end_point": {"row": 240, "column": 49}}, {"id": 403, "type": "parameter_declaration", "text": "MediaItem &mediaItem", "parent": 397, "children": [404, 405], "start_point": {"row": 241, "column": 8}, "end_point": {"row": 241, "column": 28}}, {"id": 404, "type": "type_identifier", "text": "MediaItem", "parent": 403, "children": [], "start_point": {"row": 241, "column": 8}, "end_point": {"row": 241, "column": 17}}, {"id": 405, "type": "identifier", "text": "mediaItem", "parent": 403, "children": [], "start_point": {"row": 241, "column": 19}, "end_point": {"row": 241, "column": 28}}, {"id": 406, "type": "ERROR", "text": "void setMetaOnMediaItem(IXML_Document *doc, MediaItem &mediaItem,\n MediaItem::Meta meta) const", "parent": 15, "children": [407, 408], "start_point": {"row": 250, "column": 4}, "end_point": {"row": 251, "column": 35}}, {"id": 407, "type": "primitive_type", "text": "void", "parent": 406, "children": [], "start_point": {"row": 250, "column": 4}, "end_point": {"row": 250, "column": 8}}, {"id": 408, "type": "function_declarator", "text": "setMetaOnMediaItem(IXML_Document *doc, MediaItem &mediaItem,\n MediaItem::Meta meta) const", "parent": 406, "children": [409, 410], "start_point": {"row": 250, "column": 9}, "end_point": {"row": 251, "column": 35}}, {"id": 409, "type": "identifier", "text": "setMetaOnMediaItem", "parent": 408, "children": [], "start_point": {"row": 250, "column": 9}, "end_point": {"row": 250, "column": 27}}, {"id": 410, "type": "parameter_list", "text": "(IXML_Document *doc, MediaItem &mediaItem,\n MediaItem::Meta meta)", "parent": 408, "children": [411, 416, 419], "start_point": {"row": 250, "column": 27}, "end_point": {"row": 251, "column": 29}}, {"id": 411, "type": "parameter_declaration", "text": "IXML_Document *doc", "parent": 410, "children": [412, 413], "start_point": {"row": 250, "column": 28}, "end_point": {"row": 250, "column": 46}}, {"id": 412, "type": "type_identifier", "text": "IXML_Document", "parent": 411, "children": [], "start_point": {"row": 250, "column": 28}, "end_point": {"row": 250, "column": 41}}, {"id": 413, "type": "pointer_declarator", "text": "*doc", "parent": 411, "children": [414, 415], "start_point": {"row": 250, "column": 42}, "end_point": {"row": 250, "column": 46}}, {"id": 414, "type": "*", "text": "*", "parent": 413, "children": [], "start_point": {"row": 250, "column": 42}, "end_point": {"row": 250, "column": 43}}, {"id": 415, "type": "identifier", "text": "doc", "parent": 413, "children": [], "start_point": {"row": 250, "column": 43}, "end_point": {"row": 250, "column": 46}}, {"id": 416, "type": "parameter_declaration", "text": "MediaItem &mediaItem", "parent": 410, "children": [417, 418], "start_point": {"row": 250, "column": 48}, "end_point": {"row": 250, "column": 68}}, {"id": 417, "type": "type_identifier", "text": "MediaItem", "parent": 416, "children": [], "start_point": {"row": 250, "column": 48}, "end_point": {"row": 250, "column": 57}}, {"id": 418, "type": "identifier", "text": "mediaItem", "parent": 416, "children": [], "start_point": {"row": 250, "column": 59}, "end_point": {"row": 250, "column": 68}}, {"id": 419, "type": "parameter_declaration", "text": "MediaItem::Meta meta", "parent": 410, "children": [420, 421, 423], "start_point": {"row": 251, "column": 8}, "end_point": {"row": 251, "column": 28}}, {"id": 420, "type": "type_identifier", "text": "MediaItem", "parent": 419, "children": [], "start_point": {"row": 251, "column": 8}, "end_point": {"row": 251, "column": 17}}, {"id": 421, "type": "ERROR", "text": "::Meta", "parent": 419, "children": [422], "start_point": {"row": 251, "column": 17}, "end_point": {"row": 251, "column": 23}}, {"id": 422, "type": "identifier", "text": "Meta", "parent": 421, "children": [], "start_point": {"row": 251, "column": 19}, "end_point": {"row": 251, "column": 23}}, {"id": 423, "type": "identifier", "text": "meta", "parent": 419, "children": [], "start_point": {"row": 251, "column": 24}, "end_point": {"row": 251, "column": 28}}, {"id": 424, "type": "ERROR", "text": "unsigned long generateItemHash(IXML_Node *item) const", "parent": 15, "children": [425, 428], "start_point": {"row": 259, "column": 4}, "end_point": {"row": 259, "column": 57}}, {"id": 425, "type": "sized_type_specifier", "text": "unsigned long", "parent": 424, "children": [426, 427], "start_point": {"row": 259, "column": 4}, "end_point": {"row": 259, "column": 17}}, {"id": 426, "type": "unsigned", "text": "unsigned", "parent": 425, "children": [], "start_point": {"row": 259, "column": 4}, "end_point": {"row": 259, "column": 12}}, {"id": 427, "type": "long", "text": "long", "parent": 425, "children": [], "start_point": {"row": 259, "column": 13}, "end_point": {"row": 259, "column": 17}}, {"id": 428, "type": "function_declarator", "text": "generateItemHash(IXML_Node *item) const", "parent": 424, "children": [429, 430], "start_point": {"row": 259, "column": 18}, "end_point": {"row": 259, "column": 57}}, {"id": 429, "type": "identifier", "text": "generateItemHash", "parent": 428, "children": [], "start_point": {"row": 259, "column": 18}, "end_point": {"row": 259, "column": 34}}, {"id": 430, "type": "parameter_list", "text": "(IXML_Node *item)", "parent": 428, "children": [431], "start_point": {"row": 259, "column": 34}, "end_point": {"row": 259, "column": 51}}, {"id": 431, "type": "parameter_declaration", "text": "IXML_Node *item", "parent": 430, "children": [432, 433], "start_point": {"row": 259, "column": 35}, "end_point": {"row": 259, "column": 50}}, {"id": 432, "type": "type_identifier", "text": "IXML_Node", "parent": 431, "children": [], "start_point": {"row": 259, "column": 35}, "end_point": {"row": 259, "column": 44}}, {"id": 433, "type": "pointer_declarator", "text": "*item", "parent": 431, "children": [434, 435], "start_point": {"row": 259, "column": 45}, "end_point": {"row": 259, "column": 50}}, {"id": 434, "type": "*", "text": "*", "parent": 433, "children": [], "start_point": {"row": 259, "column": 45}, "end_point": {"row": 259, "column": 46}}, {"id": 435, "type": "identifier", "text": "item", "parent": 433, "children": [], "start_point": {"row": 259, "column": 46}, "end_point": {"row": 259, "column": 50}}, {"id": 436, "type": "declaration", "text": "IXML_Document *getObjectMeta(const std::string &id,\n std::shared_ptr<Device> device) const;", "parent": 15, "children": [437, 438], "start_point": {"row": 271, "column": 4}, "end_point": {"row": 272, "column": 46}}, {"id": 437, "type": "type_identifier", "text": "IXML_Document", "parent": 436, "children": [], "start_point": {"row": 271, "column": 4}, "end_point": {"row": 271, "column": 17}}, {"id": 438, "type": "pointer_declarator", "text": "*getObjectMeta(const std::string &id,\n std::shared_ptr<Device> device) const", "parent": 436, "children": [439, 440], "start_point": {"row": 271, "column": 18}, "end_point": {"row": 272, "column": 45}}, {"id": 439, "type": "*", "text": "*", "parent": 438, "children": [], "start_point": {"row": 271, "column": 18}, "end_point": {"row": 271, "column": 19}}, {"id": 440, "type": "function_declarator", "text": "getObjectMeta(const std::string &id,\n std::shared_ptr<Device> device) const", "parent": 438, "children": [441, 442], "start_point": {"row": 271, "column": 19}, "end_point": {"row": 272, "column": 45}}, {"id": 441, "type": "identifier", "text": "getObjectMeta", "parent": 440, "children": [], "start_point": {"row": 271, "column": 19}, "end_point": {"row": 271, "column": 32}}, {"id": 442, "type": "parameter_list", "text": "(const std::string &id,\n std::shared_ptr<Device> device)", "parent": 440, "children": [443, 448], "start_point": {"row": 271, "column": 32}, "end_point": {"row": 272, "column": 39}}, {"id": 443, "type": "parameter_declaration", "text": "const std::string &id", "parent": 442, "children": [444, 445, 447], "start_point": {"row": 271, "column": 33}, "end_point": {"row": 271, "column": 54}}, {"id": 444, "type": "type_identifier", "text": "std", "parent": 443, "children": [], "start_point": {"row": 271, "column": 39}, "end_point": {"row": 271, "column": 42}}, {"id": 445, "type": "ERROR", "text": "::string &", "parent": 443, "children": [446], "start_point": {"row": 271, "column": 42}, "end_point": {"row": 271, "column": 52}}, {"id": 446, "type": "identifier", "text": "string", "parent": 445, "children": [], "start_point": {"row": 271, "column": 44}, "end_point": {"row": 271, "column": 50}}, {"id": 447, "type": "identifier", "text": "id", "parent": 443, "children": [], "start_point": {"row": 271, "column": 52}, "end_point": {"row": 271, "column": 54}}, {"id": 448, "type": "parameter_declaration", "text": "std::shared_ptr<Device> device", "parent": 442, "children": [449, 450, 455], "start_point": {"row": 272, "column": 8}, "end_point": {"row": 272, "column": 38}}, {"id": 449, "type": "type_identifier", "text": "std", "parent": 448, "children": [], "start_point": {"row": 272, "column": 8}, "end_point": {"row": 272, "column": 11}}, {"id": 450, "type": "ERROR", "text": "::shared_ptr<Device>", "parent": 448, "children": [451, 452, 453, 454], "start_point": {"row": 272, "column": 11}, "end_point": {"row": 272, "column": 31}}, {"id": 451, "type": "identifier", "text": "shared_ptr", "parent": 450, "children": [], "start_point": {"row": 272, "column": 13}, "end_point": {"row": 272, "column": 23}}, {"id": 452, "type": "<", "text": "<", "parent": 450, "children": [], "start_point": {"row": 272, "column": 23}, "end_point": {"row": 272, "column": 24}}, {"id": 453, "type": "identifier", "text": "Device", "parent": 450, "children": [], "start_point": {"row": 272, "column": 24}, "end_point": {"row": 272, "column": 30}}, {"id": 454, "type": ">", "text": ">", "parent": 450, "children": [], "start_point": {"row": 272, "column": 30}, "end_point": {"row": 272, "column": 31}}, {"id": 455, "type": "identifier", "text": "device", "parent": 448, "children": [], "start_point": {"row": 272, "column": 32}, "end_point": {"row": 272, "column": 38}}, {"id": 456, "type": "labeled_statement", "text": "std::string upnpClassToMime(const std::string &upnpClass) const;", "parent": 15, "children": [457, 458], "start_point": {"row": 280, "column": 4}, "end_point": {"row": 280, "column": 68}}, {"id": 457, "type": "statement_identifier", "text": "std", "parent": 456, "children": [], "start_point": {"row": 280, "column": 4}, "end_point": {"row": 280, "column": 7}}, {"id": 458, "type": "ERROR", "text": "::string upnpClassToMime(const std:", "parent": 456, "children": [459, 460, 461], "start_point": {"row": 280, "column": 7}, "end_point": {"row": 280, "column": 42}}, {"id": 459, "type": "type_identifier", "text": "string", "parent": 458, "children": [], "start_point": {"row": 280, "column": 9}, "end_point": {"row": 280, "column": 15}}, {"id": 460, "type": "identifier", "text": "upnpClassToMime", "parent": 458, "children": [], "start_point": {"row": 280, "column": 16}, "end_point": {"row": 280, "column": 31}}, {"id": 461, "type": "type_identifier", "text": "std", "parent": 458, "children": [], "start_point": {"row": 280, "column": 38}, "end_point": {"row": 280, "column": 41}}, {"id": 462, "type": "binary_expression", "text": "string &upnpClass", "parent": 456, "children": [463, 464], "start_point": {"row": 280, "column": 43}, "end_point": {"row": 280, "column": 60}}, {"id": 463, "type": "identifier", "text": "string", "parent": 462, "children": [], "start_point": {"row": 280, "column": 43}, "end_point": {"row": 280, "column": 49}}, {"id": 464, "type": "identifier", "text": "upnpClass", "parent": 462, "children": [], "start_point": {"row": 280, "column": 51}, "end_point": {"row": 280, "column": 60}}, {"id": 465, "type": "ERROR", "text": ") const", "parent": 456, "children": [], "start_point": {"row": 280, "column": 60}, "end_point": {"row": 280, "column": 67}}, {"id": 466, "type": "ERROR", "text": "bool upnpClassCheck(const std::string &upnpClass) const", "parent": 15, "children": [467, 468], "start_point": {"row": 288, "column": 4}, "end_point": {"row": 288, "column": 59}}, {"id": 467, "type": "primitive_type", "text": "bool", "parent": 466, "children": [], "start_point": {"row": 288, "column": 4}, "end_point": {"row": 288, "column": 8}}, {"id": 468, "type": "function_declarator", "text": "upnpClassCheck(const std::string &upnpClass) const", "parent": 466, "children": [469, 470], "start_point": {"row": 288, "column": 9}, "end_point": {"row": 288, "column": 59}}, {"id": 469, "type": "identifier", "text": "upnpClassCheck", "parent": 468, "children": [], "start_point": {"row": 288, "column": 9}, "end_point": {"row": 288, "column": 23}}, {"id": 470, "type": "parameter_list", "text": "(const std::string &upnpClass)", "parent": 468, "children": [471], "start_point": {"row": 288, "column": 23}, "end_point": {"row": 288, "column": 53}}, {"id": 471, "type": "parameter_declaration", "text": "const std::string &upnpClass", "parent": 470, "children": [472, 473, 475], "start_point": {"row": 288, "column": 24}, "end_point": {"row": 288, "column": 52}}, {"id": 472, "type": "type_identifier", "text": "std", "parent": 471, "children": [], "start_point": {"row": 288, "column": 30}, "end_point": {"row": 288, "column": 33}}, {"id": 473, "type": "ERROR", "text": "::string &", "parent": 471, "children": [474], "start_point": {"row": 288, "column": 33}, "end_point": {"row": 288, "column": 43}}, {"id": 474, "type": "identifier", "text": "string", "parent": 473, "children": [], "start_point": {"row": 288, "column": 35}, "end_point": {"row": 288, "column": 41}}, {"id": 475, "type": "identifier", "text": "upnpClass", "parent": 471, "children": [], "start_point": {"row": 288, "column": 43}, "end_point": {"row": 288, "column": 52}}, {"id": 476, "type": "declaration", "text": "UpnpClient_Handle upnpHandle_;", "parent": 15, "children": [477, 478], "start_point": {"row": 291, "column": 4}, "end_point": {"row": 291, "column": 34}}, {"id": 477, "type": "type_identifier", "text": "UpnpClient_Handle", "parent": 476, "children": [], "start_point": {"row": 291, "column": 4}, "end_point": {"row": 291, "column": 21}}, {"id": 478, "type": "identifier", "text": "upnpHandle_", "parent": 476, "children": [], "start_point": {"row": 291, "column": 22}, "end_point": {"row": 291, "column": 33}}, {"id": 479, "type": "labeled_statement", "text": "std::list<std::string> blacklist_;", "parent": 15, "children": [480, 481], "start_point": {"row": 294, "column": 4}, "end_point": {"row": 294, "column": 38}}, {"id": 480, "type": "statement_identifier", "text": "std", "parent": 479, "children": [], "start_point": {"row": 294, "column": 4}, "end_point": {"row": 294, "column": 7}}, {"id": 481, "type": "ERROR", "text": "::list<std:", "parent": 479, "children": [482], "start_point": {"row": 294, "column": 7}, "end_point": {"row": 294, "column": 18}}, {"id": 482, "type": "binary_expression", "text": "list<std", "parent": 481, "children": [483, 484, 485], "start_point": {"row": 294, "column": 9}, "end_point": {"row": 294, "column": 17}}, {"id": 483, "type": "identifier", "text": "list", "parent": 482, "children": [], "start_point": {"row": 294, "column": 9}, "end_point": {"row": 294, "column": 13}}, {"id": 484, "type": "<", "text": "<", "parent": 482, "children": [], "start_point": {"row": 294, "column": 13}, "end_point": {"row": 294, "column": 14}}, {"id": 485, "type": "identifier", "text": "std", "parent": 482, "children": [], "start_point": {"row": 294, "column": 14}, "end_point": {"row": 294, "column": 17}}, {"id": 486, "type": "binary_expression", "text": "string> blacklist_", "parent": 479, "children": [487, 488, 489], "start_point": {"row": 294, "column": 19}, "end_point": {"row": 294, "column": 37}}, {"id": 487, "type": "identifier", "text": "string", "parent": 486, "children": [], "start_point": {"row": 294, "column": 19}, "end_point": {"row": 294, "column": 25}}, {"id": 488, "type": ">", "text": ">", "parent": 486, "children": [], "start_point": {"row": 294, "column": 25}, "end_point": {"row": 294, "column": 26}}, {"id": 489, "type": "identifier", "text": "blacklist_", "parent": 486, "children": [], "start_point": {"row": 294, "column": 27}, "end_point": {"row": 294, "column": 37}}, {"id": 490, "type": "declaration", "text": "mutable std::mutex blacklistLock_;", "parent": 15, "children": [491, 492, 495], "start_point": {"row": 297, "column": 4}, "end_point": {"row": 297, "column": 38}}, {"id": 491, "type": "type_identifier", "text": "mutable", "parent": 490, "children": [], "start_point": {"row": 297, "column": 4}, "end_point": {"row": 297, "column": 11}}, {"id": 492, "type": "ERROR", "text": "std::mutex", "parent": 490, "children": [493, 494], "start_point": {"row": 297, "column": 12}, "end_point": {"row": 297, "column": 22}}, {"id": 493, "type": "identifier", "text": "std", "parent": 492, "children": [], "start_point": {"row": 297, "column": 12}, "end_point": {"row": 297, "column": 15}}, {"id": 494, "type": "identifier", "text": "mutex", "parent": 492, "children": [], "start_point": {"row": 297, "column": 17}, "end_point": {"row": 297, "column": 22}}, {"id": 495, "type": "identifier", "text": "blacklistLock_", "parent": 490, "children": [], "start_point": {"row": 297, "column": 23}, "end_point": {"row": 297, "column": 37}}, {"id": 496, "type": "declaration", "text": "mutable std::mutex browseLock_;", "parent": 15, "children": [497, 498, 501], "start_point": {"row": 300, "column": 4}, "end_point": {"row": 300, "column": 35}}, {"id": 497, "type": "type_identifier", "text": "mutable", "parent": 496, "children": [], "start_point": {"row": 300, "column": 4}, "end_point": {"row": 300, "column": 11}}, {"id": 498, "type": "ERROR", "text": "std::mutex", "parent": 496, "children": [499, 500], "start_point": {"row": 300, "column": 12}, "end_point": {"row": 300, "column": 22}}, {"id": 499, "type": "identifier", "text": "std", "parent": 498, "children": [], "start_point": {"row": 300, "column": 12}, "end_point": {"row": 300, "column": 15}}, {"id": 500, "type": "identifier", "text": "mutex", "parent": 498, "children": [], "start_point": {"row": 300, "column": 17}, "end_point": {"row": 300, "column": 22}}, {"id": 501, "type": "identifier", "text": "browseLock_", "parent": 496, "children": [], "start_point": {"row": 300, "column": 23}, "end_point": {"row": 300, "column": 34}}]}, "node_categories": {"declarations": {"functions": [15, 32, 42, 47, 54, 65, 119, 139, 149, 169, 177, 187, 199, 211, 226, 241, 256, 266, 281, 309, 319, 332, 353, 377, 395, 408, 428, 440, 468], "variables": [22, 25, 38, 50, 52, 57, 62, 68, 71, 96, 104, 109, 114, 117, 122, 125, 130, 135, 142, 147, 152, 157, 162, 167, 172, 175, 180, 185, 190, 197, 202, 207, 214, 219, 229, 234, 244, 249, 259, 269, 274, 284, 289, 294, 305, 312, 322, 327, 335, 340, 343, 356, 361, 364, 367, 380, 385, 398, 403, 411, 416, 419, 431, 436, 443, 448, 471, 476, 490, 496], "classes": [], "imports": [3, 4, 6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [35, 79, 83, 86, 91, 462, 482, 486], "assignments": [], "loops": [], "conditionals": [17, 18, 21, 23, 24, 26, 28, 30, 33, 36, 39, 43, 46, 48, 55, 58, 60, 61, 66, 69, 70, 73, 77, 80, 82, 84, 87, 90, 92, 93, 95, 97, 99, 101, 103, 108, 113, 116, 120, 123, 124, 129, 134, 136, 140, 143, 146, 150, 153, 156, 158, 160, 161, 163, 165, 166, 170, 174, 178, 184, 188, 194, 196, 198, 200, 203, 206, 208, 212, 215, 218, 223, 225, 227, 230, 233, 238, 240, 242, 245, 248, 253, 255, 257, 260, 263, 265, 267, 270, 273, 278, 282, 285, 288, 293, 295, 299, 304, 310, 313, 316, 320, 323, 325, 326, 328, 329, 333, 336, 338, 339, 342, 344, 346, 348, 350, 354, 357, 359, 360, 363, 366, 368, 370, 372, 374, 378, 381, 384, 386, 388, 390, 392, 396, 399, 402, 404, 405, 409, 412, 415, 417, 418, 420, 422, 423, 425, 429, 432, 435, 437, 441, 444, 446, 447, 449, 451, 453, 455, 457, 459, 460, 461, 463, 464, 469, 472, 474, 475, 477, 478, 480, 483, 485, 487, 489, 491, 493, 494, 495, 497, 499, 500, 501], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 11, 14], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 15, "universal_type": "function", "name": "Upnp", "text_snippet": "class Upnp : public Plugin\n{\npublic:\n /// Base uri of this plugin.\n static std::string uri;\n\n "}, {"node_id": 32, "universal_type": "function", "name": "unknown", "text_snippet": "instance()"}, {"node_id": 42, "universal_type": "function", "name": "unknown", "text_snippet": "Upnp()"}, {"node_id": 47, "universal_type": "function", "name": "unknown", "text_snippet": "upnpHandle(void) const"}, {"node_id": 54, "universal_type": "function", "name": "unknown", "text_snippet": "scan(const std::string &uri)"}, {"node_id": 65, "universal_type": "function", "name": "expand", "text_snippet": "extractMeta(MediaItem &mediaItem, bool expand"}, {"node_id": 119, "universal_type": "function", "name": "*event,", "text_snippet": "eventCallback(Upnp_EventType eventType, const void *event,\n void *cookie)"}, {"node_id": 139, "universal_type": "function", "name": "unknown", "text_snippet": "actionResult(UpnpActionComplete *event)"}, {"node_id": 149, "universal_type": "function", "name": "unknown", "text_snippet": "getDeviceMeta(Upnp *plugin, std::string uri,\n std::string location)"}, {"node_id": 169, "universal_type": "function", "name": "unknown", "text_snippet": "runDeviceDetection(bool start)"}, {"node_id": 177, "universal_type": "function", "name": "*event)", "text_snippet": "serviceFound(const void *event)"}, {"node_id": 187, "universal_type": "function", "name": "*event)", "text_snippet": "serviceLost(const void *event)"}, {"node_id": 199, "universal_type": "function", "name": "unknown", "text_snippet": "mangleUri(const UpnpString *deviceId)"}, {"node_id": 211, "universal_type": "function", "name": "unknown", "text_snippet": "getChildNode(IXML_Node *node, const char *tagName) const"}, {"node_id": 226, "universal_type": "function", "name": "unknown", "text_snippet": "getNodeText(IXML_Document *doc, const char *tagName) const"}, {"node_id": 241, "universal_type": "function", "name": "unknown", "text_snippet": "getNodeText(IXML_Node *node, const char *tagName) const"}, {"node_id": 256, "universal_type": "function", "name": "unknown", "text_snippet": "getNodeText(IXML_Node *node) const"}, {"node_id": 266, "universal_type": "function", "name": "unknown", "text_snippet": "getAttributeText(IXML_Node *node, const char *attrName) const"}, {"node_id": 281, "universal_type": "function", "name": "unknown", "text_snippet": "iterateOnTag(IXML_Document *doc, const char *tagName,\n const std::function<void(IXML_Node*)> "}, {"node_id": 309, "universal_type": "function", "name": "unknown", "text_snippet": "checkServiceCategory(IXML_Document *doc) const"}, {"node_id": 319, "universal_type": "function", "name": "unknown", "text_snippet": "sendMetaRequest(const std::string &id, MediaItem &mediaItem) const"}, {"node_id": 332, "universal_type": "function", "name": "count,", "text_snippet": "sendBrowseRequest(const std::string &id, int count,\n std::shared_ptr<Device> device) const"}, {"node_id": 353, "universal_type": "function", "name": "start,", "text_snippet": "browseChunk(const std::string &id, int start, int count,\n std::shared_ptr<Device> device) con"}, {"node_id": 377, "universal_type": "function", "name": "unknown", "text_snippet": "parseBrowseResponse(IXML_Document *doc,\n std::shared_ptr<Device> device) const"}, {"node_id": 395, "universal_type": "function", "name": "unknown", "text_snippet": "parseMetaDataResponse(IXML_Document *doc,\n MediaItem &mediaItem) const"}, {"node_id": 408, "universal_type": "function", "name": "unknown", "text_snippet": "setMetaOnMediaItem(IXML_Document *doc, MediaItem &mediaItem,\n MediaItem::Meta meta) const"}, {"node_id": 428, "universal_type": "function", "name": "unknown", "text_snippet": "generateItemHash(IXML_Node *item) const"}, {"node_id": 440, "universal_type": "function", "name": "unknown", "text_snippet": "getObjectMeta(const std::string &id,\n std::shared_ptr<Device> device) const"}, {"node_id": 468, "universal_type": "function", "name": "unknown", "text_snippet": "upnpClassCheck(const std::string &upnpClass) const"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include \"plugin.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"logging.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <upnp.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <functional>\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "// Copyright (c) 2019-2020 LG Electronics, Inc.\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// SPDX-License-Identifier: Apache-2.0\n\n#pragma once\n\n#include \"plugin.h\"\n#include \"logging.h\"\n\n#include <upnp.h>\n\n#include <functional>\n\n/// UPnP plugin class definition.\nclass Upnp : public Plugin\n{\npublic:\n /// Base uri of this plugin.\n static std::string uri;\n\n /**\n * \\brief Get UPnP plugin singleton instance.\n *\n * \\return Singleton object in std::shared_ptr.\n */\n static std::shared_ptr<Plugin> instance();\n\n /// We cannot make this private because it is used from std::make_shared()\n Upnp();\n virtual ~Upnp();\n\n /**\n * \\brief Export client handle.\n *\n * \\return Client handle.\n */\n UpnpClient_Handle upnpHandle(void) const;\n\n /// Use standard device scan method\n void scan(const std::string &uri);\n\n /// From base class.\n void extractMeta(MediaItem &mediaItem, bool expand = false);\n\n /// From base class.\n std::optional<std::string> getPlaybackUri(const std::string &uri);\n\nprivate:\n /// Get message id.\n LOG_MSGID;\n\n /// Singleton object.\n static std::shared_ptr<Plugin> instance_;\n /// Type of UPnP devices we are looking for.\n static const char *upnpDeviceCategory_;\n /// Service of UPnP devices we are looking for.\n static const char *upnpServiceCategory_;\n /// Time in seconds to wait for responses.\n static const int upnpSearchTimeout_;\n\n /// UPnP event callback.\n static int eventCallback(Upnp_EventType eventType, const void *event,\n void *cookie);\n\n /**\n * \\brief Get result DIDL from action response.\n *\n * \\param[in] event The action completed event.\n * \\return The DIDL document or nullptr.\n */\n static IXML_Document *actionResult(UpnpActionComplete *event);\n\n /**\n * \\brief Get device meta data and push it into the device.\n *\n * \\param[in] plugin The plugin instance.\n * \\param[in] uri The device uri.\n * \\param[in] location The location information from discovery.\n * response.\n */\n static void getDeviceMeta(Upnp *plugin, std::string uri,\n std::string location);\n\n /// From plugin base class.\n int runDeviceDetection(bool start);\n\n /**\n * Register newly found service.\n *\n * \\param[in] event A DISCOVERY event.\n */\n void serviceFound(const void *event);\n\n /**\n * Called if service says byebye.\n *\n * \\param[in] event A DISCOVERY event.\n */\n void serviceLost(const void *event);\n\n /**\n * \\brief Replace whitespace and ':' with '-', remove leading\n * 'uuid:'.\n *\n * \\param[in] deviceId The unmangled DeviceID from discovery reponse.\n * \\return The mangled string.\n */\n std::string mangleUri(const UpnpString *deviceId);\n\n /**\n * \\brief Get child node from node.\n *\n * \\param[in] node The IXML node structure.\n * \\param[in] tagName The tag name.\n * \\return The node or nullptr if no text found.\n */\n IXML_Node *getChildNode(IXML_Node *node, const char *tagName) const; \n\n /**\n * \\brief Get text content from node.\n *\n * The node must be unique within the document.\n *\n * \\param[in] doc The IXML document structure.\n * \\param[in] tagName The tag name.\n * \\return The text or nullptr if no text found.\n */\n const DOMString getNodeText(IXML_Document *doc, const char *tagName) const;\n\n /**\n * \\brief Get text content from node.\n *\n * \\param[in] node The node structure.\n * \\param[in] tagName The tag name.\n * \\return The text or nullptr if no text found.\n */\n const DOMString getNodeText(IXML_Node *node, const char *tagName) const;\n\n /**\n * \\brief Get text content from node.\n *\n * \\param[in] node The node structure.\n * \\return The text or nullptr if no text found.\n */\n const DOMString getNodeText(IXML_Node *node) const;\n\n /**\n * \\brief Get text content from an attribute.\n *\n * Caller has to free returned memory.\n *\n * \\param[in] node The node structure.\n * \\param[in] attrName The name of the attribute.\n * \\return The text or nullptr if no text found.\n */\n DOMString getAttributeText(IXML_Node *node, const char *attrName) const;\n\n /**\n * \\brief Get text content from node.\n *\n * The node must be unique within the document.\n *\n * \\param[in] doc The IXML document structure.\n * \\param[in] tagName The tag name.\n * \\param[in] func Function to call within iteration.\n */\n void iterateOnTag(IXML_Document *doc, const char *tagName,\n const std::function<void(IXML_Node*)> &func) const;\n\n /**\n * \\brief Check if service category matches.\n *\n * The caller must free the returned Url.\n *\n * \\param[in] doc The IXML document structure.\n * \\return The control Url if matching service found, else nullptr.\n */\n const char *checkServiceCategory(IXML_Document *doc) const;\n\n /**\n * \\brief Request meta data for object.\n *\n * \\param[in] id The object id.\n * \\param[in] mediaItem The media item to request meta data for.\n * \\return True on success, else false.\n */\n bool sendMetaRequest(const std::string &id, MediaItem &mediaItem) const;\n\n /**\n * \\brief Send browse request.\n *\n * \\param[in] id The object id.\n * \\param[in] count The expected number of matches.\n * \\param[in] device The device to browse.\n * \\return True on success, else false.\n */\n bool sendBrowseRequest(const std::string &id, int count,\n std::shared_ptr<Device> device) const;\n\n /**\n * \\brief Browse chunk of items.\n *\n * \\param[in] id The object id.\n * \\param[in] start The start index.\n * \\param[in] count The number of items to request.\n * \\param[in] device The device to browse for scan mode.\n * \\return The number of items found or -1 on error.\n */\n int browseChunk(const std::string &id, int start, int count,\n std::shared_ptr<Device> device) const;\n\n /**\n * \\brief Handle browse response.\n *\n * \\param[in] doc The DIDL doc.\n * \\param[in] device The device.\n * \\return True on success, else false.\n */\n bool parseBrowseResponse(IXML_Document *doc,\n std::shared_ptr<Device> device) const;\n\n /**\n * \\brief Handle meta data response.\n *\n * \\param[in] doc The DIDL doc.\n * \\param[in] mediaItem The mediaItem to parse into.\n * \\return True on success, else false.\n */\n bool parseMetaDataResponse(IXML_Document *doc,\n MediaItem &mediaItem) const;\n\n /**\n * \\brief Read the requested meta from upnp response.\n *\n * \\param[in] doc The DIDL doc.\n * \\param[in] mediaItem The media item.\n * \\param[in] meta The meta tag.\n */\n void setMetaOnMediaItem(IXML_Document *doc, MediaItem &mediaItem,\n MediaItem::Meta meta) const;\n\n /**\n * \\brief Try to generate hash from item tag.\n *\n * \\param[in] item The item to hash.\n * \\return The hash value.\n */\n unsigned long generateItemHash(IXML_Node *item) const;\n\n /**\n * \\brief Get the meta data of an opject.\n *\n * If a DIDL document is returned it must be free'd using\n * ixmlDocument_free().\n *\n * \\param[in] id The object id.\n * \\param[in] device The device to work on.\n * \\return The DIDL document or nullptr.\n */\n IXML_Document *getObjectMeta(const std::string &id,\n std::shared_ptr<Device> device) const;\n\n /**\n * \\brief Generate simple MIME identifier from UPNP class type.\n *\n * \\param[in] upnpClass The UPNP class string.\n * \\return A MIME string.\n */\n std::string upnpClassToMime(const std::string &upnpClass) const;\n\n /**\n * \\brief Check if we want to dive into this type of container.\n *\n * \\param[in] upnpClass The UPNP class string.\n * \\return True or false.\n */\n bool upnpClassCheck(const std::string &upnpClass) const;\n\n /// UPnP client handle.\n UpnpClient_Handle upnpHandle_;\n\n /// List of upnp devices know to not be ContentDir providers.\n std::list<std::string> blacklist_;\n\n /// Lock for the blacklist.\n mutable std::mutex blacklistLock_;\n\n /// Lock for concurrent server access.\n mutable std::mutex browseLock_;\n};\n"}
80,259
c
#ifndef CHIP8THREAD_H #define CHIP8THREAD_H #include <QtGui> #include "Cpu.h" class Chip8Thread : public QThread { Q_OBJECT public: Chip8Thread(QObject *parent, Cpu *chip8); //constructeur void run(); // this is virtual method, we must implement it in our subclass of QThread private: Cpu *chip8; }; #endif
18.11
18
(translation_unit) "#ifndef CHIP8THREAD_H \n#define CHIP8THREAD_H \n \n#include <QtGui> \n#include "Cpu.h" \n \nclass Chip8Thread : public QThread \n{ \n Q_OBJECT \n \npublic: \n Chip8Thread(QObject *parent, Cpu *chip8); //constructeur \n void run(); // this is virtual method, we must implement it in our subclass of QThread \nprivate: \n Cpu *chip8; \n}; \n \n#endif \n" (preproc_ifdef) "#ifndef CHIP8THREAD_H \n#define CHIP8THREAD_H \n \n#include <QtGui> \n#include "Cpu.h" \n \nclass Chip8Thread : public QThread \n{ \n Q_OBJECT \n \npublic: \n Chip8Thread(QObject *parent, Cpu *chip8); //constructeur \n void run(); // this is virtual method, we must implement it in our subclass of QThread \nprivate: \n Cpu *chip8; \n}; \n \n#endif" (#ifndef) "#ifndef" (identifier) "CHIP8THREAD_H" (preproc_def) "#define CHIP8THREAD_H \n" (#define) "#define" (identifier) "CHIP8THREAD_H" (preproc_include) "#include <QtGui> \n" (#include) "#include" (system_lib_string) "<QtGui>" (preproc_include) "#include "Cpu.h" \n" (#include) "#include" (string_literal) ""Cpu.h"" (") """ (string_content) "Cpu.h" (") """ (function_definition) "class Chip8Thread : public QThread \n{ \n Q_OBJECT \n \npublic: \n Chip8Thread(QObject *parent, Cpu *chip8); //constructeur \n void run(); // this is virtual method, we must implement it in our subclass of QThread \nprivate: \n Cpu *chip8; \n}" (type_identifier) "class" (identifier) "Chip8Thread" (ERROR) ": public QThread" (:) ":" (identifier) "public" (identifier) "QThread" (compound_statement) "{ \n Q_OBJECT \n \npublic: \n Chip8Thread(QObject *parent, Cpu *chip8); //constructeur \n void run(); // this is virtual method, we must implement it in our subclass of QThread \nprivate: \n Cpu *chip8; \n}" ({) "{" (declaration) "Q_OBJECT \n \npublic: \n Chip8Thread(QObject *parent, Cpu *chip8);" (type_identifier) "Q_OBJECT" (ERROR) "public:" (identifier) "public" (:) ":" (function_declarator) "Chip8Thread(QObject *parent, Cpu *chip8)" (identifier) "Chip8Thread" (parameter_list) "(QObject *parent, Cpu *chip8)" (() "(" (parameter_declaration) "QObject *parent" (type_identifier) "QObject" (pointer_declarator) "*parent" (*) "*" (identifier) "parent" (,) "," (parameter_declaration) "Cpu *chip8" (type_identifier) "Cpu" (pointer_declarator) "*chip8" (*) "*" (identifier) "chip8" ()) ")" (;) ";" (comment) "//constructeur " (declaration) "void run();" (primitive_type) "void" (function_declarator) "run()" (identifier) "run" (parameter_list) "()" (() "(" ()) ")" (;) ";" (comment) "// this is virtual method, we must implement it in our subclass of QThread " (labeled_statement) "private: \n Cpu *chip8;" (statement_identifier) "private" (:) ":" (declaration) "Cpu *chip8;" (type_identifier) "Cpu" (pointer_declarator) "*chip8" (*) "*" (identifier) "chip8" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif"
70
2
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 18.11, "nodes": 44, "errors": 0, "source_hash": "7efaef3c0e87c55fef7f04879753e890b30a009db1b5903ffde11cff45df708a", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef CHIP8THREAD_H\r\n#define CHIP8THREAD_H\r\n\r\n#include <QtGui>\r\n#include \"Cpu.h\"\r\n\r\nclass Chip8Thread : public QThread\r\n{\r\n Q_OBJECT\r\n\r\npublic:\r\n Chip8Thread(QObject *parent, Cpu *chip8); //constructeur\r\n void run(); // this is virtual method, we must implement it in our subclass of QThread\r\nprivate:\r\n Cpu *chip8;\r\n};\r\n\r\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 43], "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": "CHIP8THREAD_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 21}}, {"id": 3, "type": "preproc_def", "text": "#define CHIP8THREAD_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": "CHIP8THREAD_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 21}}, {"id": 6, "type": "preproc_include", "text": "#include <QtGui>\r\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": "<QtGui>", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 16}}, {"id": 9, "type": "preproc_include", "text": "#include \"Cpu.h\"\r\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": "\"Cpu.h\"", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 16}}, {"id": 12, "type": "function_definition", "text": "class Chip8Thread : public QThread\r\n{\r\n Q_OBJECT\r\n\r\npublic:\r\n Chip8Thread(QObject *parent, Cpu *chip8); //constructeur\r\n void run(); // this is virtual method, we must implement it in our subclass of QThread\r\nprivate:\r\n Cpu *chip8;\r\n}", "parent": 0, "children": [13, 14], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 13, "type": "identifier", "text": "Chip8Thread", "parent": 12, "children": [], "start_point": {"row": 6, "column": 6}, "end_point": {"row": 6, "column": 17}}, {"id": 14, "type": "ERROR", "text": ": public QThread", "parent": 12, "children": [15], "start_point": {"row": 6, "column": 18}, "end_point": {"row": 6, "column": 34}}, {"id": 15, "type": "identifier", "text": "QThread", "parent": 14, "children": [], "start_point": {"row": 6, "column": 27}, "end_point": {"row": 6, "column": 34}}, {"id": 16, "type": "declaration", "text": "Q_OBJECT\r\n\r\npublic:\r\n Chip8Thread(QObject *parent, Cpu *chip8);", "parent": 12, "children": [17, 18, 19], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 11, "column": 45}}, {"id": 17, "type": "type_identifier", "text": "Q_OBJECT", "parent": 16, "children": [], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 12}}, {"id": 18, "type": "ERROR", "text": "public:", "parent": 16, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 7}}, {"id": 19, "type": "function_declarator", "text": "Chip8Thread(QObject *parent, Cpu *chip8)", "parent": 16, "children": [20, 21], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 44}}, {"id": 20, "type": "identifier", "text": "Chip8Thread", "parent": 19, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 15}}, {"id": 21, "type": "parameter_list", "text": "(QObject *parent, Cpu *chip8)", "parent": 19, "children": [22, 27], "start_point": {"row": 11, "column": 15}, "end_point": {"row": 11, "column": 44}}, {"id": 22, "type": "parameter_declaration", "text": "QObject *parent", "parent": 21, "children": [23, 24], "start_point": {"row": 11, "column": 16}, "end_point": {"row": 11, "column": 31}}, {"id": 23, "type": "type_identifier", "text": "QObject", "parent": 22, "children": [], "start_point": {"row": 11, "column": 16}, "end_point": {"row": 11, "column": 23}}, {"id": 24, "type": "pointer_declarator", "text": "*parent", "parent": 22, "children": [25, 26], "start_point": {"row": 11, "column": 24}, "end_point": {"row": 11, "column": 31}}, {"id": 25, "type": "*", "text": "*", "parent": 24, "children": [], "start_point": {"row": 11, "column": 24}, "end_point": {"row": 11, "column": 25}}, {"id": 26, "type": "identifier", "text": "parent", "parent": 24, "children": [], "start_point": {"row": 11, "column": 25}, "end_point": {"row": 11, "column": 31}}, {"id": 27, "type": "parameter_declaration", "text": "Cpu *chip8", "parent": 21, "children": [28, 29], "start_point": {"row": 11, "column": 33}, "end_point": {"row": 11, "column": 43}}, {"id": 28, "type": "type_identifier", "text": "Cpu", "parent": 27, "children": [], "start_point": {"row": 11, "column": 33}, "end_point": {"row": 11, "column": 36}}, {"id": 29, "type": "pointer_declarator", "text": "*chip8", "parent": 27, "children": [30, 31], "start_point": {"row": 11, "column": 37}, "end_point": {"row": 11, "column": 43}}, {"id": 30, "type": "*", "text": "*", "parent": 29, "children": [], "start_point": {"row": 11, "column": 37}, "end_point": {"row": 11, "column": 38}}, {"id": 31, "type": "identifier", "text": "chip8", "parent": 29, "children": [], "start_point": {"row": 11, "column": 38}, "end_point": {"row": 11, "column": 43}}, {"id": 32, "type": "declaration", "text": "void run();", "parent": 12, "children": [33, 34], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 15}}, {"id": 33, "type": "primitive_type", "text": "void", "parent": 32, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 8}}, {"id": 34, "type": "function_declarator", "text": "run()", "parent": 32, "children": [35, 36], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 14}}, {"id": 35, "type": "identifier", "text": "run", "parent": 34, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 12}}, {"id": 36, "type": "parameter_list", "text": "()", "parent": 34, "children": [], "start_point": {"row": 12, "column": 12}, "end_point": {"row": 12, "column": 14}}, {"id": 37, "type": "labeled_statement", "text": "private:\r\n Cpu *chip8;", "parent": 12, "children": [38], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 15}}, {"id": 38, "type": "declaration", "text": "Cpu *chip8;", "parent": 37, "children": [39, 40], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 15}}, {"id": 39, "type": "type_identifier", "text": "Cpu", "parent": 38, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 7}}, {"id": 40, "type": "pointer_declarator", "text": "*chip8", "parent": 38, "children": [41, 42], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 14}}, {"id": 41, "type": "*", "text": "*", "parent": 40, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 9}}, {"id": 42, "type": "identifier", "text": "chip8", "parent": 40, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 14}}, {"id": 43, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 6}}]}, "node_categories": {"declarations": {"functions": [12, 19, 34], "variables": [16, 22, 27, 32, 38], "classes": [], "imports": [6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 13, 15, 17, 20, 23, 26, 28, 31, 35, 39, 42, 43], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 12, "universal_type": "function", "name": "Chip8Thread", "text_snippet": "class Chip8Thread : public QThread\r\n{\r\n Q_OBJECT\r\n\r\npublic:\r\n Chip8Thread(QObject *parent, Cpu"}, {"node_id": 19, "universal_type": "function", "name": "unknown", "text_snippet": "Chip8Thread(QObject *parent, Cpu *chip8)"}, {"node_id": 34, "universal_type": "function", "name": "unknown", "text_snippet": "run()"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <QtGui>\r\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"Cpu.h\"\r\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "#ifndef CHIP8THREAD_H\r\n#define CHIP8THREAD_H\r\n\r\n#include <QtGui>\r\n#include \"Cpu.h\"\r\n\r\nclass Chip8Thread : public QThread\r\n{\r\n Q_OBJECT\r\n\r\npublic:\r\n Chip8Thread(QObject *parent, Cpu *chip8); //constructeur\r\n void run(); // this is virtual method, we must implement it in our subclass of QThread\r\nprivate:\r\n Cpu *chip8;\r\n};\r\n\r\n#endif\r\n"}
80,260
c
#include <stdio.h> #include <mpi.h> #define MASTER 1 int main(int argc, char **argv) { MPI_Init(&argc, &argv); int rank, world; MPI_Comm_rank(MPI_COMM_WORLD, &rank); MPI_Comm_size(MPI_COMM_WORLD, &world); int info[] = {1, 2, 3, 4, 5, 6}; int total_size = sizeof(info) / sizeof(info[0]); int division = total_size / (world); // Exclude the master int recv[division]; MPI_Scatter(info, division, MPI_INT, recv, division, MPI_INT, MASTER, MPI_COMM_WORLD); for (int i = 0; i < division; i++) { printf("Rank : %d || %d\n", rank, *(recv + i)); } MPI_Finalize(); } /* Rank : 1 || 4 Rank : 1 || 5 Rank : 1 || 6 Rank : 0 || 1 Rank : 0 || 2 Rank : 0 || 3 */
24.29
28
(translation_unit) "#include <stdio.h>\n#include <mpi.h>\n\n#define MASTER 1\n\nint main(int argc, char **argv)\n{\n MPI_Init(&argc, &argv);\n int rank, world;\n MPI_Comm_rank(MPI_COMM_WORLD, &rank);\n MPI_Comm_size(MPI_COMM_WORLD, &world);\n int info[] = {1, 2, 3, 4, 5, 6};\n int total_size = sizeof(info) / sizeof(info[0]);\n int division = total_size / (world); // Exclude the master\n int recv[division];\n MPI_Scatter(info, division, MPI_INT, recv, division, MPI_INT, MASTER, MPI_COMM_WORLD);\n for (int i = 0; i < division; i++)\n {\n printf("Rank : %d || %d\n", rank, *(recv + i));\n }\n MPI_Finalize();\n}\n\n/*\nRank : 1 || 4\nRank : 1 || 5\nRank : 1 || 6\nRank : 0 || 1\nRank : 0 || 2\nRank : 0 || 3\n*/" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include <mpi.h>\n" (#include) "#include" (system_lib_string) "<mpi.h>" (preproc_def) "#define MASTER 1\n" (#define) "#define" (identifier) "MASTER" (preproc_arg) "1" (function_definition) "int main(int argc, char **argv)\n{\n MPI_Init(&argc, &argv);\n int rank, world;\n MPI_Comm_rank(MPI_COMM_WORLD, &rank);\n MPI_Comm_size(MPI_COMM_WORLD, &world);\n int info[] = {1, 2, 3, 4, 5, 6};\n int total_size = sizeof(info) / sizeof(info[0]);\n int division = total_size / (world); // Exclude the master\n int recv[division];\n MPI_Scatter(info, division, MPI_INT, recv, division, MPI_INT, MASTER, MPI_COMM_WORLD);\n for (int i = 0; i < division; i++)\n {\n printf("Rank : %d || %d\n", rank, *(recv + i));\n }\n MPI_Finalize();\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 MPI_Init(&argc, &argv);\n int rank, world;\n MPI_Comm_rank(MPI_COMM_WORLD, &rank);\n MPI_Comm_size(MPI_COMM_WORLD, &world);\n int info[] = {1, 2, 3, 4, 5, 6};\n int total_size = sizeof(info) / sizeof(info[0]);\n int division = total_size / (world); // Exclude the master\n int recv[division];\n MPI_Scatter(info, division, MPI_INT, recv, division, MPI_INT, MASTER, MPI_COMM_WORLD);\n for (int i = 0; i < division; i++)\n {\n printf("Rank : %d || %d\n", rank, *(recv + i));\n }\n MPI_Finalize();\n}" ({) "{" (expression_statement) "MPI_Init(&argc, &argv);" (call_expression) "MPI_Init(&argc, &argv)" (identifier) "MPI_Init" (argument_list) "(&argc, &argv)" (() "(" (pointer_expression) "&argc" (&) "&" (identifier) "argc" (,) "," (pointer_expression) "&argv" (&) "&" (identifier) "argv" ()) ")" (;) ";" (declaration) "int rank, world;" (primitive_type) "int" (identifier) "rank" (,) "," (identifier) "world" (;) ";" (expression_statement) "MPI_Comm_rank(MPI_COMM_WORLD, &rank);" (call_expression) "MPI_Comm_rank(MPI_COMM_WORLD, &rank)" (identifier) "MPI_Comm_rank" (argument_list) "(MPI_COMM_WORLD, &rank)" (() "(" (identifier) "MPI_COMM_WORLD" (,) "," (pointer_expression) "&rank" (&) "&" (identifier) "rank" ()) ")" (;) ";" (expression_statement) "MPI_Comm_size(MPI_COMM_WORLD, &world);" (call_expression) "MPI_Comm_size(MPI_COMM_WORLD, &world)" (identifier) "MPI_Comm_size" (argument_list) "(MPI_COMM_WORLD, &world)" (() "(" (identifier) "MPI_COMM_WORLD" (,) "," (pointer_expression) "&world" (&) "&" (identifier) "world" ()) ")" (;) ";" (declaration) "int info[] = {1, 2, 3, 4, 5, 6};" (primitive_type) "int" (init_declarator) "info[] = {1, 2, 3, 4, 5, 6}" (array_declarator) "info[]" (identifier) "info" ([) "[" (]) "]" (=) "=" (initializer_list) "{1, 2, 3, 4, 5, 6}" ({) "{" (number_literal) "1" (,) "," (number_literal) "2" (,) "," (number_literal) "3" (,) "," (number_literal) "4" (,) "," (number_literal) "5" (,) "," (number_literal) "6" (}) "}" (;) ";" (declaration) "int total_size = sizeof(info) / sizeof(info[0]);" (primitive_type) "int" (init_declarator) "total_size = sizeof(info) / sizeof(info[0])" (identifier) "total_size" (=) "=" (binary_expression) "sizeof(info) / sizeof(info[0])" (sizeof_expression) "sizeof(info)" (sizeof) "sizeof" (parenthesized_expression) "(info)" (() "(" (identifier) "info" ()) ")" (/) "/" (sizeof_expression) "sizeof(info[0])" (sizeof) "sizeof" (parenthesized_expression) "(info[0])" (() "(" (subscript_expression) "info[0]" (identifier) "info" ([) "[" (number_literal) "0" (]) "]" ()) ")" (;) ";" (declaration) "int division = total_size / (world);" (primitive_type) "int" (init_declarator) "division = total_size / (world)" (identifier) "division" (=) "=" (binary_expression) "total_size / (world)" (identifier) "total_size" (/) "/" (parenthesized_expression) "(world)" (() "(" (identifier) "world" ()) ")" (;) ";" (comment) "// Exclude the master" (declaration) "int recv[division];" (primitive_type) "int" (array_declarator) "recv[division]" (identifier) "recv" ([) "[" (identifier) "division" (]) "]" (;) ";" (expression_statement) "MPI_Scatter(info, division, MPI_INT, recv, division, MPI_INT, MASTER, MPI_COMM_WORLD);" (call_expression) "MPI_Scatter(info, division, MPI_INT, recv, division, MPI_INT, MASTER, MPI_COMM_WORLD)" (identifier) "MPI_Scatter" (argument_list) "(info, division, MPI_INT, recv, division, MPI_INT, MASTER, MPI_COMM_WORLD)" (() "(" (identifier) "info" (,) "," (identifier) "division" (,) "," (identifier) "MPI_INT" (,) "," (identifier) "recv" (,) "," (identifier) "division" (,) "," (identifier) "MPI_INT" (,) "," (identifier) "MASTER" (,) "," (identifier) "MPI_COMM_WORLD" ()) ")" (;) ";" (for_statement) "for (int i = 0; i < division; i++)\n {\n printf("Rank : %d || %d\n", rank, *(recv + i));\n }" (for) "for" (() "(" (declaration) "int i = 0;" (primitive_type) "int" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < division" (identifier) "i" (<) "<" (identifier) "division" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n printf("Rank : %d || %d\n", rank, *(recv + i));\n }" ({) "{" (expression_statement) "printf("Rank : %d || %d\n", rank, *(recv + i));" (call_expression) "printf("Rank : %d || %d\n", rank, *(recv + i))" (identifier) "printf" (argument_list) "("Rank : %d || %d\n", rank, *(recv + i))" (() "(" (string_literal) ""Rank : %d || %d\n"" (") """ (string_content) "Rank : %d || %d" (escape_sequence) "\n" (") """ (,) "," (identifier) "rank" (,) "," (pointer_expression) "*(recv + i)" (*) "*" (parenthesized_expression) "(recv + i)" (() "(" (binary_expression) "recv + i" (identifier) "recv" (+) "+" (identifier) "i" ()) ")" ()) ")" (;) ";" (}) "}" (expression_statement) "MPI_Finalize();" (call_expression) "MPI_Finalize()" (identifier) "MPI_Finalize" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (comment) "/*\nRank : 1 || 4\nRank : 1 || 5\nRank : 1 || 6\nRank : 0 || 1\nRank : 0 || 2\nRank : 0 || 3\n*/"
221
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 24.29, "nodes": 132, "errors": 0, "source_hash": "4672279d69d030ceb3b02d57733ef0de83243246a0a8af105d1d872e8e831892", "categorized_nodes": 91}, "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 <mpi.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": "<mpi.h>", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 16}}, {"id": 6, "type": "preproc_def", "text": "#define MASTER 1\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": "MASTER", "parent": 6, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 14}}, {"id": 9, "type": "preproc_arg", "text": "1", "parent": 6, "children": [], "start_point": {"row": 3, "column": 15}, "end_point": {"row": 3, "column": 16}}, {"id": 10, "type": "function_definition", "text": "int main(int argc, char **argv)\n{\n MPI_Init(&argc, &argv);\n int rank, world;\n MPI_Comm_rank(MPI_COMM_WORLD, &rank);\n MPI_Comm_size(MPI_COMM_WORLD, &world);\n int info[] = {1, 2, 3, 4, 5, 6};\n int total_size = sizeof(info) / sizeof(info[0]);\n int division = total_size / (world); // Exclude the master\n int recv[division];\n MPI_Scatter(info, division, MPI_INT, recv, division, MPI_INT, MASTER, MPI_COMM_WORLD);\n for (int i = 0; i < division; i++)\n {\n printf(\"Rank : %d || %d\\n\", rank, *(recv + i));\n }\n MPI_Finalize();\n}", "parent": null, "children": [11, 12], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 11, "type": "primitive_type", "text": "int", "parent": 10, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 3}}, {"id": 12, "type": "function_declarator", "text": "main(int argc, char **argv)", "parent": 10, "children": [13, 14], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 31}}, {"id": 13, "type": "identifier", "text": "main", "parent": 12, "children": [], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 8}}, {"id": 14, "type": "parameter_list", "text": "(int argc, char **argv)", "parent": 12, "children": [15, 18], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 31}}, {"id": 15, "type": "parameter_declaration", "text": "int argc", "parent": 14, "children": [16, 17], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 17}}, {"id": 16, "type": "primitive_type", "text": "int", "parent": 15, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 12}}, {"id": 17, "type": "identifier", "text": "argc", "parent": 15, "children": [], "start_point": {"row": 5, "column": 13}, "end_point": {"row": 5, "column": 17}}, {"id": 18, "type": "parameter_declaration", "text": "char **argv", "parent": 14, "children": [19, 20], "start_point": {"row": 5, "column": 19}, "end_point": {"row": 5, "column": 30}}, {"id": 19, "type": "primitive_type", "text": "char", "parent": 18, "children": [], "start_point": {"row": 5, "column": 19}, "end_point": {"row": 5, "column": 23}}, {"id": 20, "type": "pointer_declarator", "text": "**argv", "parent": 18, "children": [21, 22], "start_point": {"row": 5, "column": 24}, "end_point": {"row": 5, "column": 30}}, {"id": 21, "type": "*", "text": "*", "parent": 20, "children": [], "start_point": {"row": 5, "column": 24}, "end_point": {"row": 5, "column": 25}}, {"id": 22, "type": "pointer_declarator", "text": "*argv", "parent": 20, "children": [23, 24], "start_point": {"row": 5, "column": 25}, "end_point": {"row": 5, "column": 30}}, {"id": 23, "type": "*", "text": "*", "parent": 22, "children": [], "start_point": {"row": 5, "column": 25}, "end_point": {"row": 5, "column": 26}}, {"id": 24, "type": "identifier", "text": "argv", "parent": 22, "children": [], "start_point": {"row": 5, "column": 26}, "end_point": {"row": 5, "column": 30}}, {"id": 25, "type": "call_expression", "text": "MPI_Init(&argc, &argv)", "parent": 10, "children": [26, 27], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 26}}, {"id": 26, "type": "identifier", "text": "MPI_Init", "parent": 25, "children": [], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 12}}, {"id": 27, "type": "argument_list", "text": "(&argc, &argv)", "parent": 25, "children": [28, 30], "start_point": {"row": 7, "column": 12}, "end_point": {"row": 7, "column": 26}}, {"id": 28, "type": "pointer_expression", "text": "&argc", "parent": 27, "children": [29], "start_point": {"row": 7, "column": 13}, "end_point": {"row": 7, "column": 18}}, {"id": 29, "type": "identifier", "text": "argc", "parent": 28, "children": [], "start_point": {"row": 7, "column": 14}, "end_point": {"row": 7, "column": 18}}, {"id": 30, "type": "pointer_expression", "text": "&argv", "parent": 27, "children": [31], "start_point": {"row": 7, "column": 20}, "end_point": {"row": 7, "column": 25}}, {"id": 31, "type": "identifier", "text": "argv", "parent": 30, "children": [], "start_point": {"row": 7, "column": 21}, "end_point": {"row": 7, "column": 25}}, {"id": 32, "type": "declaration", "text": "int rank, world;", "parent": 10, "children": [33, 34, 35], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 20}}, {"id": 33, "type": "primitive_type", "text": "int", "parent": 32, "children": [], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 7}}, {"id": 34, "type": "identifier", "text": "rank", "parent": 32, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 12}}, {"id": 35, "type": "identifier", "text": "world", "parent": 32, "children": [], "start_point": {"row": 8, "column": 14}, "end_point": {"row": 8, "column": 19}}, {"id": 36, "type": "call_expression", "text": "MPI_Comm_rank(MPI_COMM_WORLD, &rank)", "parent": 10, "children": [37, 38], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 40}}, {"id": 37, "type": "identifier", "text": "MPI_Comm_rank", "parent": 36, "children": [], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 17}}, {"id": 38, "type": "argument_list", "text": "(MPI_COMM_WORLD, &rank)", "parent": 36, "children": [39, 40], "start_point": {"row": 9, "column": 17}, "end_point": {"row": 9, "column": 40}}, {"id": 39, "type": "identifier", "text": "MPI_COMM_WORLD", "parent": 38, "children": [], "start_point": {"row": 9, "column": 18}, "end_point": {"row": 9, "column": 32}}, {"id": 40, "type": "pointer_expression", "text": "&rank", "parent": 38, "children": [41], "start_point": {"row": 9, "column": 34}, "end_point": {"row": 9, "column": 39}}, {"id": 41, "type": "identifier", "text": "rank", "parent": 40, "children": [], "start_point": {"row": 9, "column": 35}, "end_point": {"row": 9, "column": 39}}, {"id": 42, "type": "call_expression", "text": "MPI_Comm_size(MPI_COMM_WORLD, &world)", "parent": 10, "children": [43, 44], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 41}}, {"id": 43, "type": "identifier", "text": "MPI_Comm_size", "parent": 42, "children": [], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 17}}, {"id": 44, "type": "argument_list", "text": "(MPI_COMM_WORLD, &world)", "parent": 42, "children": [45, 46], "start_point": {"row": 10, "column": 17}, "end_point": {"row": 10, "column": 41}}, {"id": 45, "type": "identifier", "text": "MPI_COMM_WORLD", "parent": 44, "children": [], "start_point": {"row": 10, "column": 18}, "end_point": {"row": 10, "column": 32}}, {"id": 46, "type": "pointer_expression", "text": "&world", "parent": 44, "children": [47], "start_point": {"row": 10, "column": 34}, "end_point": {"row": 10, "column": 40}}, {"id": 47, "type": "identifier", "text": "world", "parent": 46, "children": [], "start_point": {"row": 10, "column": 35}, "end_point": {"row": 10, "column": 40}}, {"id": 48, "type": "declaration", "text": "int info[] = {1, 2, 3, 4, 5, 6};", "parent": 10, "children": [49, 50], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 36}}, {"id": 49, "type": "primitive_type", "text": "int", "parent": 48, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 7}}, {"id": 50, "type": "init_declarator", "text": "info[] = {1, 2, 3, 4, 5, 6}", "parent": 48, "children": [51, 53, 54], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 35}}, {"id": 51, "type": "array_declarator", "text": "info[]", "parent": 50, "children": [52], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 14}}, {"id": 52, "type": "identifier", "text": "info", "parent": 51, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 12}}, {"id": 53, "type": "=", "text": "=", "parent": 50, "children": [], "start_point": {"row": 11, "column": 15}, "end_point": {"row": 11, "column": 16}}, {"id": 54, "type": "initializer_list", "text": "{1, 2, 3, 4, 5, 6}", "parent": 50, "children": [55, 56, 57, 58, 59, 60], "start_point": {"row": 11, "column": 17}, "end_point": {"row": 11, "column": 35}}, {"id": 55, "type": "number_literal", "text": "1", "parent": 54, "children": [], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 19}}, {"id": 56, "type": "number_literal", "text": "2", "parent": 54, "children": [], "start_point": {"row": 11, "column": 21}, "end_point": {"row": 11, "column": 22}}, {"id": 57, "type": "number_literal", "text": "3", "parent": 54, "children": [], "start_point": {"row": 11, "column": 24}, "end_point": {"row": 11, "column": 25}}, {"id": 58, "type": "number_literal", "text": "4", "parent": 54, "children": [], "start_point": {"row": 11, "column": 27}, "end_point": {"row": 11, "column": 28}}, {"id": 59, "type": "number_literal", "text": "5", "parent": 54, "children": [], "start_point": {"row": 11, "column": 30}, "end_point": {"row": 11, "column": 31}}, {"id": 60, "type": "number_literal", "text": "6", "parent": 54, "children": [], "start_point": {"row": 11, "column": 33}, "end_point": {"row": 11, "column": 34}}, {"id": 61, "type": "declaration", "text": "int total_size = sizeof(info) / sizeof(info[0]);", "parent": 10, "children": [62, 63], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 52}}, {"id": 62, "type": "primitive_type", "text": "int", "parent": 61, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 7}}, {"id": 63, "type": "init_declarator", "text": "total_size = sizeof(info) / sizeof(info[0])", "parent": 61, "children": [64, 65, 66], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 51}}, {"id": 64, "type": "identifier", "text": "total_size", "parent": 63, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 18}}, {"id": 65, "type": "=", "text": "=", "parent": 63, "children": [], "start_point": {"row": 12, "column": 19}, "end_point": {"row": 12, "column": 20}}, {"id": 66, "type": "binary_expression", "text": "sizeof(info) / sizeof(info[0])", "parent": 63, "children": [67, 70, 71], "start_point": {"row": 12, "column": 21}, "end_point": {"row": 12, "column": 51}}, {"id": 67, "type": "sizeof_expression", "text": "sizeof(info)", "parent": 66, "children": [68], "start_point": {"row": 12, "column": 21}, "end_point": {"row": 12, "column": 33}}, {"id": 68, "type": "parenthesized_expression", "text": "(info)", "parent": 67, "children": [69], "start_point": {"row": 12, "column": 27}, "end_point": {"row": 12, "column": 33}}, {"id": 69, "type": "identifier", "text": "info", "parent": 68, "children": [], "start_point": {"row": 12, "column": 28}, "end_point": {"row": 12, "column": 32}}, {"id": 70, "type": "/", "text": "/", "parent": 66, "children": [], "start_point": {"row": 12, "column": 34}, "end_point": {"row": 12, "column": 35}}, {"id": 71, "type": "sizeof_expression", "text": "sizeof(info[0])", "parent": 66, "children": [72], "start_point": {"row": 12, "column": 36}, "end_point": {"row": 12, "column": 51}}, {"id": 72, "type": "parenthesized_expression", "text": "(info[0])", "parent": 71, "children": [73], "start_point": {"row": 12, "column": 42}, "end_point": {"row": 12, "column": 51}}, {"id": 73, "type": "subscript_expression", "text": "info[0]", "parent": 72, "children": [74, 75], "start_point": {"row": 12, "column": 43}, "end_point": {"row": 12, "column": 50}}, {"id": 74, "type": "identifier", "text": "info", "parent": 73, "children": [], "start_point": {"row": 12, "column": 43}, "end_point": {"row": 12, "column": 47}}, {"id": 75, "type": "number_literal", "text": "0", "parent": 73, "children": [], "start_point": {"row": 12, "column": 48}, "end_point": {"row": 12, "column": 49}}, {"id": 76, "type": "declaration", "text": "int division = total_size / (world);", "parent": 10, "children": [77, 78], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 40}}, {"id": 77, "type": "primitive_type", "text": "int", "parent": 76, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 7}}, {"id": 78, "type": "init_declarator", "text": "division = total_size / (world)", "parent": 76, "children": [79, 80, 81], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 39}}, {"id": 79, "type": "identifier", "text": "division", "parent": 78, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 16}}, {"id": 80, "type": "=", "text": "=", "parent": 78, "children": [], "start_point": {"row": 13, "column": 17}, "end_point": {"row": 13, "column": 18}}, {"id": 81, "type": "binary_expression", "text": "total_size / (world)", "parent": 78, "children": [82, 83, 84], "start_point": {"row": 13, "column": 19}, "end_point": {"row": 13, "column": 39}}, {"id": 82, "type": "identifier", "text": "total_size", "parent": 81, "children": [], "start_point": {"row": 13, "column": 19}, "end_point": {"row": 13, "column": 29}}, {"id": 83, "type": "/", "text": "/", "parent": 81, "children": [], "start_point": {"row": 13, "column": 30}, "end_point": {"row": 13, "column": 31}}, {"id": 84, "type": "parenthesized_expression", "text": "(world)", "parent": 81, "children": [85], "start_point": {"row": 13, "column": 32}, "end_point": {"row": 13, "column": 39}}, {"id": 85, "type": "identifier", "text": "world", "parent": 84, "children": [], "start_point": {"row": 13, "column": 33}, "end_point": {"row": 13, "column": 38}}, {"id": 86, "type": "declaration", "text": "int recv[division];", "parent": 10, "children": [87, 88], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 23}}, {"id": 87, "type": "primitive_type", "text": "int", "parent": 86, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 7}}, {"id": 88, "type": "array_declarator", "text": "recv[division]", "parent": 86, "children": [89, 90], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 22}}, {"id": 89, "type": "identifier", "text": "recv", "parent": 88, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 12}}, {"id": 90, "type": "identifier", "text": "division", "parent": 88, "children": [], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 21}}, {"id": 91, "type": "call_expression", "text": "MPI_Scatter(info, division, MPI_INT, recv, division, MPI_INT, MASTER, MPI_COMM_WORLD)", "parent": 10, "children": [92, 93], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 89}}, {"id": 92, "type": "identifier", "text": "MPI_Scatter", "parent": 91, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 15}}, {"id": 93, "type": "argument_list", "text": "(info, division, MPI_INT, recv, division, MPI_INT, MASTER, MPI_COMM_WORLD)", "parent": 91, "children": [94, 95, 96, 97, 98, 99, 100, 101], "start_point": {"row": 15, "column": 15}, "end_point": {"row": 15, "column": 89}}, {"id": 94, "type": "identifier", "text": "info", "parent": 93, "children": [], "start_point": {"row": 15, "column": 16}, "end_point": {"row": 15, "column": 20}}, {"id": 95, "type": "identifier", "text": "division", "parent": 93, "children": [], "start_point": {"row": 15, "column": 22}, "end_point": {"row": 15, "column": 30}}, {"id": 96, "type": "identifier", "text": "MPI_INT", "parent": 93, "children": [], "start_point": {"row": 15, "column": 32}, "end_point": {"row": 15, "column": 39}}, {"id": 97, "type": "identifier", "text": "recv", "parent": 93, "children": [], "start_point": {"row": 15, "column": 41}, "end_point": {"row": 15, "column": 45}}, {"id": 98, "type": "identifier", "text": "division", "parent": 93, "children": [], "start_point": {"row": 15, "column": 47}, "end_point": {"row": 15, "column": 55}}, {"id": 99, "type": "identifier", "text": "MPI_INT", "parent": 93, "children": [], "start_point": {"row": 15, "column": 57}, "end_point": {"row": 15, "column": 64}}, {"id": 100, "type": "identifier", "text": "MASTER", "parent": 93, "children": [], "start_point": {"row": 15, "column": 66}, "end_point": {"row": 15, "column": 72}}, {"id": 101, "type": "identifier", "text": "MPI_COMM_WORLD", "parent": 93, "children": [], "start_point": {"row": 15, "column": 74}, "end_point": {"row": 15, "column": 88}}, {"id": 102, "type": "for_statement", "text": "for (int i = 0; i < division; i++)\n {\n printf(\"Rank : %d || %d\\n\", rank, *(recv + i));\n }", "parent": 10, "children": [103, 109, 113], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 19, "column": 5}}, {"id": 103, "type": "declaration", "text": "int i = 0;", "parent": 102, "children": [104, 105], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 19}}, {"id": 104, "type": "primitive_type", "text": "int", "parent": 103, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 12}}, {"id": 105, "type": "init_declarator", "text": "i = 0", "parent": 103, "children": [106, 107, 108], "start_point": {"row": 16, "column": 13}, "end_point": {"row": 16, "column": 18}}, {"id": 106, "type": "identifier", "text": "i", "parent": 105, "children": [], "start_point": {"row": 16, "column": 13}, "end_point": {"row": 16, "column": 14}}, {"id": 107, "type": "=", "text": "=", "parent": 105, "children": [], "start_point": {"row": 16, "column": 15}, "end_point": {"row": 16, "column": 16}}, {"id": 108, "type": "number_literal", "text": "0", "parent": 105, "children": [], "start_point": {"row": 16, "column": 17}, "end_point": {"row": 16, "column": 18}}, {"id": 109, "type": "binary_expression", "text": "i < division", "parent": 102, "children": [110, 111, 112], "start_point": {"row": 16, "column": 20}, "end_point": {"row": 16, "column": 32}}, {"id": 110, "type": "identifier", "text": "i", "parent": 109, "children": [], "start_point": {"row": 16, "column": 20}, "end_point": {"row": 16, "column": 21}}, {"id": 111, "type": "<", "text": "<", "parent": 109, "children": [], "start_point": {"row": 16, "column": 22}, "end_point": {"row": 16, "column": 23}}, {"id": 112, "type": "identifier", "text": "division", "parent": 109, "children": [], "start_point": {"row": 16, "column": 24}, "end_point": {"row": 16, "column": 32}}, {"id": 113, "type": "update_expression", "text": "i++", "parent": 102, "children": [114, 115], "start_point": {"row": 16, "column": 34}, "end_point": {"row": 16, "column": 37}}, {"id": 114, "type": "identifier", "text": "i", "parent": 113, "children": [], "start_point": {"row": 16, "column": 34}, "end_point": {"row": 16, "column": 35}}, {"id": 115, "type": "++", "text": "++", "parent": 113, "children": [], "start_point": {"row": 16, "column": 35}, "end_point": {"row": 16, "column": 37}}, {"id": 116, "type": "call_expression", "text": "printf(\"Rank : %d || %d\\n\", rank, *(recv + i))", "parent": 102, "children": [117, 118], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 54}}, {"id": 117, "type": "identifier", "text": "printf", "parent": 116, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 14}}, {"id": 118, "type": "argument_list", "text": "(\"Rank : %d || %d\\n\", rank, *(recv + i))", "parent": 116, "children": [119, 121, 122], "start_point": {"row": 18, "column": 14}, "end_point": {"row": 18, "column": 54}}, {"id": 119, "type": "string_literal", "text": "\"Rank : %d || %d\\n\"", "parent": 118, "children": [120], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 34}}, {"id": 120, "type": "escape_sequence", "text": "\\n", "parent": 119, "children": [], "start_point": {"row": 18, "column": 31}, "end_point": {"row": 18, "column": 33}}, {"id": 121, "type": "identifier", "text": "rank", "parent": 118, "children": [], "start_point": {"row": 18, "column": 36}, "end_point": {"row": 18, "column": 40}}, {"id": 122, "type": "pointer_expression", "text": "*(recv + i)", "parent": 118, "children": [123, 124], "start_point": {"row": 18, "column": 42}, "end_point": {"row": 18, "column": 53}}, {"id": 123, "type": "*", "text": "*", "parent": 122, "children": [], "start_point": {"row": 18, "column": 42}, "end_point": {"row": 18, "column": 43}}, {"id": 124, "type": "parenthesized_expression", "text": "(recv + i)", "parent": 122, "children": [125], "start_point": {"row": 18, "column": 43}, "end_point": {"row": 18, "column": 53}}, {"id": 125, "type": "binary_expression", "text": "recv + i", "parent": 124, "children": [126, 127, 128], "start_point": {"row": 18, "column": 44}, "end_point": {"row": 18, "column": 52}}, {"id": 126, "type": "identifier", "text": "recv", "parent": 125, "children": [], "start_point": {"row": 18, "column": 44}, "end_point": {"row": 18, "column": 48}}, {"id": 127, "type": "+", "text": "+", "parent": 125, "children": [], "start_point": {"row": 18, "column": 49}, "end_point": {"row": 18, "column": 50}}, {"id": 128, "type": "identifier", "text": "i", "parent": 125, "children": [], "start_point": {"row": 18, "column": 51}, "end_point": {"row": 18, "column": 52}}, {"id": 129, "type": "call_expression", "text": "MPI_Finalize()", "parent": 10, "children": [130, 131], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 18}}, {"id": 130, "type": "identifier", "text": "MPI_Finalize", "parent": 129, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 16}}, {"id": 131, "type": "argument_list", "text": "()", "parent": 129, "children": [], "start_point": {"row": 20, "column": 16}, "end_point": {"row": 20, "column": 18}}]}, "node_categories": {"declarations": {"functions": [10, 12], "variables": [15, 18, 32, 48, 61, 76, 86, 103], "classes": [], "imports": [0, 1, 3, 4], "modules": [], "enums": []}, "statements": {"expressions": [25, 28, 30, 36, 40, 42, 46, 66, 67, 68, 71, 72, 73, 81, 84, 91, 109, 113, 116, 122, 124, 125, 129], "assignments": [], "loops": [102], "conditionals": [8, 13, 17, 24, 26, 29, 31, 34, 35, 37, 39, 41, 43, 45, 47, 52, 64, 69, 74, 79, 82, 85, 89, 90, 92, 94, 95, 96, 97, 98, 99, 100, 101, 106, 110, 112, 114, 117, 121, 126, 128, 130], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 55, 56, 57, 58, 59, 60, 75, 108, 119], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 10, "universal_type": "function", "name": "main", "text_snippet": "int main(int argc, char **argv)\n{\n MPI_Init(&argc, &argv);\n int rank, world;\n MPI_Comm_rank"}, {"node_id": 12, "universal_type": "function", "name": "unknown", "text_snippet": "main(int argc, char **argv)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <stdio.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <mpi.h>\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "#include <stdio.h>\n#include <mpi.h>\n\n#define MASTER 1\n\nint main(int argc, char **argv)\n{\n MPI_Init(&argc, &argv);\n int rank, world;\n MPI_Comm_rank(MPI_COMM_WORLD, &rank);\n MPI_Comm_size(MPI_COMM_WORLD, &world);\n int info[] = {1, 2, 3, 4, 5, 6};\n int total_size = sizeof(info) / sizeof(info[0]);\n int division = total_size / (world); // Exclude the master\n int recv[division];\n MPI_Scatter(info, division, MPI_INT, recv, division, MPI_INT, MASTER, MPI_COMM_WORLD);\n for (int i = 0; i < division; i++)\n {\n printf(\"Rank : %d || %d\\n\", rank, *(recv + i));\n }\n MPI_Finalize();\n}\n\n/*\nRank : 1 || 4\nRank : 1 || 5\nRank : 1 || 6\nRank : 0 || 1\nRank : 0 || 2\nRank : 0 || 3\n*/"}
80,261
c
#pragma once #include "ofxXmlSettings.h" #include "ofConstants.h" #include "ofRectangle.h" #include "ofImage.h" #include "ofEvents.h" class ofxBaseGui{ public: ofxBaseGui(); virtual ~ofxBaseGui(); virtual void mouseMoved(ofMouseEventArgs & args) = 0; virtual void mousePressed(ofMouseEventArgs & args) = 0; virtual void mouseDragged(ofMouseEventArgs & args) = 0; virtual void mouseReleased(ofMouseEventArgs & args) = 0; virtual void setValue(float mx, float my, bool bCheckBounds) = 0; virtual void draw() = 0; void saveToFile(string filename); void loadFromFile(string filename); virtual void saveToXml(ofxXmlSettings& xml) = 0; virtual void loadFromXml(ofxXmlSettings& xml) = 0; string getName(); void setName(string name); void setPosition(ofPoint p); void setPosition(float x, float y); void setSize(float w, float h); void setShape(ofRectangle r); void setShape(float x, float y, float w, float h); ofPoint getPosition(); ofRectangle getShape(); float getWidth(); float getHeight(); protected: string name; unsigned long currentFrame; ofRectangle b; bool bGuiActive; static const ofColor headerBackgroundColor; static const ofColor backgroundColor; static const ofColor textColor; static const ofColor fillColor; static const int textPadding; static const int defaultWidth; static const int defaultHeight; static string saveStencilToHex(ofImage& img); static void loadStencilFromHex(ofImage& img, unsigned char* data) ; };
27.42
52
(translation_unit) "#pragma once\n\n#include "ofxXmlSettings.h"\n#include "ofConstants.h"\n#include "ofRectangle.h"\n#include "ofImage.h"\n#include "ofEvents.h"\n\n\nclass ofxBaseGui{\npublic:\n ofxBaseGui();\n \n virtual ~ofxBaseGui();\n\n virtual void mouseMoved(ofMouseEventArgs & args) = 0;\n virtual void mousePressed(ofMouseEventArgs & args) = 0;\n virtual void mouseDragged(ofMouseEventArgs & args) = 0;\n virtual void mouseReleased(ofMouseEventArgs & args) = 0;\n \n virtual void setValue(float mx, float my, bool bCheckBounds) = 0;\n virtual void draw() = 0;\n \n void saveToFile(string filename);\n void loadFromFile(string filename);\n \n virtual void saveToXml(ofxXmlSettings& xml) = 0;\n virtual void loadFromXml(ofxXmlSettings& xml) = 0;\n \n string getName();\n void setName(string name);\n\n void setPosition(ofPoint p);\n void setPosition(float x, float y);\n void setSize(float w, float h);\n void setShape(ofRectangle r);\n void setShape(float x, float y, float w, float h);\n\n ofPoint getPosition();\n ofRectangle getShape();\n float getWidth();\n float getHeight();\n\nprotected:\n string name;\n unsigned long currentFrame; \n ofRectangle b;\n bool bGuiActive;\n\n static const ofColor headerBackgroundColor;\n static const ofColor backgroundColor;\n static const ofColor textColor;\n static const ofColor fillColor;\n\n static const int textPadding;\n static const int defaultWidth;\n static const int defaultHeight;\n\n static string saveStencilToHex(ofImage& img);\n static void loadStencilFromHex(ofImage& img, unsigned char* data) ;\n}; \n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "ofxXmlSettings.h"\n" (#include) "#include" (string_literal) ""ofxXmlSettings.h"" (") """ (string_content) "ofxXmlSettings.h" (") """ (preproc_include) "#include "ofConstants.h"\n" (#include) "#include" (string_literal) ""ofConstants.h"" (") """ (string_content) "ofConstants.h" (") """ (preproc_include) "#include "ofRectangle.h"\n" (#include) "#include" (string_literal) ""ofRectangle.h"" (") """ (string_content) "ofRectangle.h" (") """ (preproc_include) "#include "ofImage.h"\n" (#include) "#include" (string_literal) ""ofImage.h"" (") """ (string_content) "ofImage.h" (") """ (preproc_include) "#include "ofEvents.h"\n" (#include) "#include" (string_literal) ""ofEvents.h"" (") """ (string_content) "ofEvents.h" (") """ (function_definition) "class ofxBaseGui{\npublic:\n ofxBaseGui();\n \n virtual ~ofxBaseGui();\n\n virtual void mouseMoved(ofMouseEventArgs & args) = 0;\n virtual void mousePressed(ofMouseEventArgs & args) = 0;\n virtual void mouseDragged(ofMouseEventArgs & args) = 0;\n virtual void mouseReleased(ofMouseEventArgs & args) = 0;\n \n virtual void setValue(float mx, float my, bool bCheckBounds) = 0;\n virtual void draw() = 0;\n \n void saveToFile(string filename);\n void loadFromFile(string filename);\n \n virtual void saveToXml(ofxXmlSettings& xml) = 0;\n virtual void loadFromXml(ofxXmlSettings& xml) = 0;\n \n string getName();\n void setName(string name);\n\n void setPosition(ofPoint p);\n void setPosition(float x, float y);\n void setSize(float w, float h);\n void setShape(ofRectangle r);\n void setShape(float x, float y, float w, float h);\n\n ofPoint getPosition();\n ofRectangle getShape();\n float getWidth();\n float getHeight();\n\nprotected:\n string name;\n unsigned long currentFrame; \n ofRectangle b;\n bool bGuiActive;\n\n static const ofColor headerBackgroundColor;\n static const ofColor backgroundColor;\n static const ofColor textColor;\n static const ofColor fillColor;\n\n static const int textPadding;\n static const int defaultWidth;\n static const int defaultHeight;\n\n static string saveStencilToHex(ofImage& img);\n static void loadStencilFromHex(ofImage& img, unsigned char* data) ;\n}" (type_identifier) "class" (identifier) "ofxBaseGui" (compound_statement) "{\npublic:\n ofxBaseGui();\n \n virtual ~ofxBaseGui();\n\n virtual void mouseMoved(ofMouseEventArgs & args) = 0;\n virtual void mousePressed(ofMouseEventArgs & args) = 0;\n virtual void mouseDragged(ofMouseEventArgs & args) = 0;\n virtual void mouseReleased(ofMouseEventArgs & args) = 0;\n \n virtual void setValue(float mx, float my, bool bCheckBounds) = 0;\n virtual void draw() = 0;\n \n void saveToFile(string filename);\n void loadFromFile(string filename);\n \n virtual void saveToXml(ofxXmlSettings& xml) = 0;\n virtual void loadFromXml(ofxXmlSettings& xml) = 0;\n \n string getName();\n void setName(string name);\n\n void setPosition(ofPoint p);\n void setPosition(float x, float y);\n void setSize(float w, float h);\n void setShape(ofRectangle r);\n void setShape(float x, float y, float w, float h);\n\n ofPoint getPosition();\n ofRectangle getShape();\n float getWidth();\n float getHeight();\n\nprotected:\n string name;\n unsigned long currentFrame; \n ofRectangle b;\n bool bGuiActive;\n\n static const ofColor headerBackgroundColor;\n static const ofColor backgroundColor;\n static const ofColor textColor;\n static const ofColor fillColor;\n\n static const int textPadding;\n static const int defaultWidth;\n static const int defaultHeight;\n\n static string saveStencilToHex(ofImage& img);\n static void loadStencilFromHex(ofImage& img, unsigned char* data) ;\n}" ({) "{" (labeled_statement) "public:\n ofxBaseGui();" (statement_identifier) "public" (:) ":" (expression_statement) "ofxBaseGui();" (call_expression) "ofxBaseGui()" (identifier) "ofxBaseGui" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual ~ofxBaseGui();" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "ofxBaseGui()" (identifier) "ofxBaseGui" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual void" (type_identifier) "virtual" (identifier) "void" (;) "" (expression_statement) "mouseMoved(ofMouseEventArgs & args) = 0;" (assignment_expression) "mouseMoved(ofMouseEventArgs & args) = 0" (call_expression) "mouseMoved(ofMouseEventArgs & args)" (identifier) "mouseMoved" (argument_list) "(ofMouseEventArgs & args)" (() "(" (binary_expression) "ofMouseEventArgs & args" (identifier) "ofMouseEventArgs" (&) "&" (identifier) "args" ()) ")" (=) "=" (number_literal) "0" (;) ";" (declaration) "virtual void" (type_identifier) "virtual" (identifier) "void" (;) "" (expression_statement) "mousePressed(ofMouseEventArgs & args) = 0;" (assignment_expression) "mousePressed(ofMouseEventArgs & args) = 0" (call_expression) "mousePressed(ofMouseEventArgs & args)" (identifier) "mousePressed" (argument_list) "(ofMouseEventArgs & args)" (() "(" (binary_expression) "ofMouseEventArgs & args" (identifier) "ofMouseEventArgs" (&) "&" (identifier) "args" ()) ")" (=) "=" (number_literal) "0" (;) ";" (declaration) "virtual void" (type_identifier) "virtual" (identifier) "void" (;) "" (expression_statement) "mouseDragged(ofMouseEventArgs & args) = 0;" (assignment_expression) "mouseDragged(ofMouseEventArgs & args) = 0" (call_expression) "mouseDragged(ofMouseEventArgs & args)" (identifier) "mouseDragged" (argument_list) "(ofMouseEventArgs & args)" (() "(" (binary_expression) "ofMouseEventArgs & args" (identifier) "ofMouseEventArgs" (&) "&" (identifier) "args" ()) ")" (=) "=" (number_literal) "0" (;) ";" (declaration) "virtual void" (type_identifier) "virtual" (identifier) "void" (;) "" (expression_statement) "mouseReleased(ofMouseEventArgs & args) = 0;" (assignment_expression) "mouseReleased(ofMouseEventArgs & args) = 0" (call_expression) "mouseReleased(ofMouseEventArgs & args)" (identifier) "mouseReleased" (argument_list) "(ofMouseEventArgs & args)" (() "(" (binary_expression) "ofMouseEventArgs & args" (identifier) "ofMouseEventArgs" (&) "&" (identifier) "args" ()) ")" (=) "=" (number_literal) "0" (;) ";" (declaration) "virtual void setValue(float mx, float my, bool bCheckBounds) = 0;" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (init_declarator) "setValue(float mx, float my, bool bCheckBounds) = 0" (function_declarator) "setValue(float mx, float my, bool bCheckBounds)" (identifier) "setValue" (parameter_list) "(float mx, float my, bool bCheckBounds)" (() "(" (parameter_declaration) "float mx" (primitive_type) "float" (identifier) "mx" (,) "," (parameter_declaration) "float my" (primitive_type) "float" (identifier) "my" (,) "," (parameter_declaration) "bool bCheckBounds" (primitive_type) "bool" (identifier) "bCheckBounds" ()) ")" (=) "=" (number_literal) "0" (;) ";" (declaration) "virtual void draw() = 0;" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (init_declarator) "draw() = 0" (function_declarator) "draw()" (identifier) "draw" (parameter_list) "()" (() "(" ()) ")" (=) "=" (number_literal) "0" (;) ";" (declaration) "void saveToFile(string filename);" (primitive_type) "void" (function_declarator) "saveToFile(string filename)" (identifier) "saveToFile" (parameter_list) "(string filename)" (() "(" (parameter_declaration) "string filename" (type_identifier) "string" (identifier) "filename" ()) ")" (;) ";" (declaration) "void loadFromFile(string filename);" (primitive_type) "void" (function_declarator) "loadFromFile(string filename)" (identifier) "loadFromFile" (parameter_list) "(string filename)" (() "(" (parameter_declaration) "string filename" (type_identifier) "string" (identifier) "filename" ()) ")" (;) ";" (declaration) "virtual void" (type_identifier) "virtual" (identifier) "void" (;) "" (expression_statement) "saveToXml(ofxXmlSettings& xml) = 0;" (assignment_expression) "saveToXml(ofxXmlSettings& xml) = 0" (call_expression) "saveToXml(ofxXmlSettings& xml)" (identifier) "saveToXml" (argument_list) "(ofxXmlSettings& xml)" (() "(" (binary_expression) "ofxXmlSettings& xml" (identifier) "ofxXmlSettings" (&) "&" (identifier) "xml" ()) ")" (=) "=" (number_literal) "0" (;) ";" (declaration) "virtual void" (type_identifier) "virtual" (identifier) "void" (;) "" (expression_statement) "loadFromXml(ofxXmlSettings& xml) = 0;" (assignment_expression) "loadFromXml(ofxXmlSettings& xml) = 0" (call_expression) "loadFromXml(ofxXmlSettings& xml)" (identifier) "loadFromXml" (argument_list) "(ofxXmlSettings& xml)" (() "(" (binary_expression) "ofxXmlSettings& xml" (identifier) "ofxXmlSettings" (&) "&" (identifier) "xml" ()) ")" (=) "=" (number_literal) "0" (;) ";" (declaration) "string getName();" (type_identifier) "string" (function_declarator) "getName()" (identifier) "getName" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void setName(string name);" (primitive_type) "void" (function_declarator) "setName(string name)" (identifier) "setName" (parameter_list) "(string name)" (() "(" (parameter_declaration) "string name" (type_identifier) "string" (identifier) "name" ()) ")" (;) ";" (declaration) "void setPosition(ofPoint p);" (primitive_type) "void" (function_declarator) "setPosition(ofPoint p)" (identifier) "setPosition" (parameter_list) "(ofPoint p)" (() "(" (parameter_declaration) "ofPoint p" (type_identifier) "ofPoint" (identifier) "p" ()) ")" (;) ";" (declaration) "void setPosition(float x, float y);" (primitive_type) "void" (function_declarator) "setPosition(float x, float y)" (identifier) "setPosition" (parameter_list) "(float x, float y)" (() "(" (parameter_declaration) "float x" (primitive_type) "float" (identifier) "x" (,) "," (parameter_declaration) "float y" (primitive_type) "float" (identifier) "y" ()) ")" (;) ";" (declaration) "void setSize(float w, float h);" (primitive_type) "void" (function_declarator) "setSize(float w, float h)" (identifier) "setSize" (parameter_list) "(float w, float h)" (() "(" (parameter_declaration) "float w" (primitive_type) "float" (identifier) "w" (,) "," (parameter_declaration) "float h" (primitive_type) "float" (identifier) "h" ()) ")" (;) ";" (declaration) "void setShape(ofRectangle r);" (primitive_type) "void" (function_declarator) "setShape(ofRectangle r)" (identifier) "setShape" (parameter_list) "(ofRectangle r)" (() "(" (parameter_declaration) "ofRectangle r" (type_identifier) "ofRectangle" (identifier) "r" ()) ")" (;) ";" (declaration) "void setShape(float x, float y, float w, float h);" (primitive_type) "void" (function_declarator) "setShape(float x, float y, float w, float h)" (identifier) "setShape" (parameter_list) "(float x, float y, float w, float h)" (() "(" (parameter_declaration) "float x" (primitive_type) "float" (identifier) "x" (,) "," (parameter_declaration) "float y" (primitive_type) "float" (identifier) "y" (,) "," (parameter_declaration) "float w" (primitive_type) "float" (identifier) "w" (,) "," (parameter_declaration) "float h" (primitive_type) "float" (identifier) "h" ()) ")" (;) ";" (declaration) "ofPoint getPosition();" (type_identifier) "ofPoint" (function_declarator) "getPosition()" (identifier) "getPosition" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "ofRectangle getShape();" (type_identifier) "ofRectangle" (function_declarator) "getShape()" (identifier) "getShape" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "float getWidth();" (primitive_type) "float" (function_declarator) "getWidth()" (identifier) "getWidth" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "float getHeight();" (primitive_type) "float" (function_declarator) "getHeight()" (identifier) "getHeight" (parameter_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "protected:\n string name;" (statement_identifier) "protected" (:) ":" (declaration) "string name;" (type_identifier) "string" (identifier) "name" (;) ";" (declaration) "unsigned long currentFrame;" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (identifier) "currentFrame" (;) ";" (declaration) "ofRectangle b;" (type_identifier) "ofRectangle" (identifier) "b" (;) ";" (declaration) "bool bGuiActive;" (primitive_type) "bool" (identifier) "bGuiActive" (;) ";" (declaration) "static const ofColor headerBackgroundColor;" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (type_identifier) "ofColor" (identifier) "headerBackgroundColor" (;) ";" (declaration) "static const ofColor backgroundColor;" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (type_identifier) "ofColor" (identifier) "backgroundColor" (;) ";" (declaration) "static const ofColor textColor;" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (type_identifier) "ofColor" (identifier) "textColor" (;) ";" (declaration) "static const ofColor fillColor;" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (type_identifier) "ofColor" (identifier) "fillColor" (;) ";" (declaration) "static const int textPadding;" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "int" (identifier) "textPadding" (;) ";" (declaration) "static const int defaultWidth;" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "int" (identifier) "defaultWidth" (;) ";" (declaration) "static const int defaultHeight;" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "int" (identifier) "defaultHeight" (;) ";" (declaration) "static string saveStencilToHex(ofImage& img);" (storage_class_specifier) "static" (static) "static" (type_identifier) "string" (function_declarator) "saveStencilToHex(ofImage& img)" (identifier) "saveStencilToHex" (parameter_list) "(ofImage& img)" (() "(" (parameter_declaration) "ofImage& img" (type_identifier) "ofImage" (ERROR) "&" (&) "&" (identifier) "img" ()) ")" (;) ";" (declaration) "static void loadStencilFromHex(ofImage& img, unsigned char* data) ;" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "loadStencilFromHex(ofImage& img, unsigned char* data)" (identifier) "loadStencilFromHex" (parameter_list) "(ofImage& img, unsigned char* data)" (() "(" (parameter_declaration) "ofImage& img" (type_identifier) "ofImage" (ERROR) "&" (&) "&" (identifier) "img" (,) "," (parameter_declaration) "unsigned char* data" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (pointer_declarator) "* data" (*) "*" (identifier) "data" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";"
470
5
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 27.42, "nodes": 295, "errors": 0, "source_hash": "310a5d4077db9b64654699d16c94a56b019900aecfb5322ab8dbf3293b52619e", "categorized_nodes": 220}, "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 \"ofxXmlSettings.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": "\"ofxXmlSettings.h\"", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 27}}, {"id": 6, "type": "preproc_include", "text": "#include \"ofConstants.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": "\"ofConstants.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 24}}, {"id": 9, "type": "preproc_include", "text": "#include \"ofRectangle.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": "\"ofRectangle.h\"", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 24}}, {"id": 12, "type": "preproc_include", "text": "#include \"ofImage.h\"\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": "string_literal", "text": "\"ofImage.h\"", "parent": 12, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 20}}, {"id": 15, "type": "preproc_include", "text": "#include \"ofEvents.h\"\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": "string_literal", "text": "\"ofEvents.h\"", "parent": 15, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 21}}, {"id": 18, "type": "function_definition", "text": "class ofxBaseGui{\npublic:\n\tofxBaseGui();\n\t\n\tvirtual ~ofxBaseGui();\n\n\tvirtual void mouseMoved(ofMouseEventArgs & args) = 0;\n\tvirtual void mousePressed(ofMouseEventArgs & args) = 0;\n\tvirtual void mouseDragged(ofMouseEventArgs & args) = 0;\n\tvirtual void mouseReleased(ofMouseEventArgs & args) = 0;\n\t\n\tvirtual void setValue(float mx, float my, bool bCheckBounds) = 0;\n\tvirtual void draw() = 0;\n\t\n\tvoid saveToFile(string filename);\n\tvoid loadFromFile(string filename);\n\t\n\tvirtual void saveToXml(ofxXmlSettings& xml) = 0;\n\tvirtual void loadFromXml(ofxXmlSettings& xml) = 0;\n\t\n\tstring getName();\n\tvoid setName(string name);\n\n\tvoid setPosition(ofPoint p);\n\tvoid setPosition(float x, float y);\n\tvoid setSize(float w, float h);\n\tvoid setShape(ofRectangle r);\n\tvoid setShape(float x, float y, float w, float h);\n\n\tofPoint getPosition();\n\tofRectangle getShape();\n\tfloat getWidth();\n\tfloat getHeight();\n\nprotected:\n\tstring name;\n\tunsigned long currentFrame;\t\t\t\n\tofRectangle b;\n\tbool bGuiActive;\n\n\tstatic const ofColor headerBackgroundColor;\n\tstatic const ofColor backgroundColor;\n\tstatic const ofColor textColor;\n\tstatic const ofColor fillColor;\n\n\tstatic const int textPadding;\n\tstatic const int defaultWidth;\n\tstatic const int defaultHeight;\n\n\tstatic string saveStencilToHex(ofImage& img);\n\tstatic void loadStencilFromHex(ofImage& img, unsigned char* data) ;\n}", "parent": null, "children": [19], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 60, "column": 1}}, {"id": 19, "type": "identifier", "text": "ofxBaseGui", "parent": 18, "children": [], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 16}}, {"id": 20, "type": "labeled_statement", "text": "public:\n\tofxBaseGui();", "parent": 18, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 14}}, {"id": 21, "type": "call_expression", "text": "ofxBaseGui()", "parent": 20, "children": [22, 23], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 13}}, {"id": 22, "type": "identifier", "text": "ofxBaseGui", "parent": 21, "children": [], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 11}}, {"id": 23, "type": "argument_list", "text": "()", "parent": 21, "children": [], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 13}}, {"id": 24, "type": "declaration", "text": "virtual ~ofxBaseGui();", "parent": 18, "children": [25, 26, 28], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 23}}, {"id": 25, "type": "type_identifier", "text": "virtual", "parent": 24, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 8}}, {"id": 26, "type": "ERROR", "text": "~", "parent": 24, "children": [27], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 10}}, {"id": 27, "type": "~", "text": "~", "parent": 26, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 10}}, {"id": 28, "type": "function_declarator", "text": "ofxBaseGui()", "parent": 24, "children": [29, 30], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 22}}, {"id": 29, "type": "identifier", "text": "ofxBaseGui", "parent": 28, "children": [], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 20}}, {"id": 30, "type": "parameter_list", "text": "()", "parent": 28, "children": [], "start_point": {"row": 13, "column": 20}, "end_point": {"row": 13, "column": 22}}, {"id": 31, "type": "declaration", "text": "virtual void", "parent": 18, "children": [32, 33], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 13}}, {"id": 32, "type": "type_identifier", "text": "virtual", "parent": 31, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 8}}, {"id": 33, "type": "identifier", "text": "void", "parent": 31, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 13}}, {"id": 34, "type": "assignment_expression", "text": "mouseMoved(ofMouseEventArgs & args) = 0", "parent": 18, "children": [35, 41, 42], "start_point": {"row": 15, "column": 14}, "end_point": {"row": 15, "column": 53}}, {"id": 35, "type": "call_expression", "text": "mouseMoved(ofMouseEventArgs & args)", "parent": 34, "children": [36, 37], "start_point": {"row": 15, "column": 14}, "end_point": {"row": 15, "column": 49}}, {"id": 36, "type": "identifier", "text": "mouseMoved", "parent": 35, "children": [], "start_point": {"row": 15, "column": 14}, "end_point": {"row": 15, "column": 24}}, {"id": 37, "type": "argument_list", "text": "(ofMouseEventArgs & args)", "parent": 35, "children": [38], "start_point": {"row": 15, "column": 24}, "end_point": {"row": 15, "column": 49}}, {"id": 38, "type": "binary_expression", "text": "ofMouseEventArgs & args", "parent": 37, "children": [39, 40], "start_point": {"row": 15, "column": 25}, "end_point": {"row": 15, "column": 48}}, {"id": 39, "type": "identifier", "text": "ofMouseEventArgs", "parent": 38, "children": [], "start_point": {"row": 15, "column": 25}, "end_point": {"row": 15, "column": 41}}, {"id": 40, "type": "identifier", "text": "args", "parent": 38, "children": [], "start_point": {"row": 15, "column": 44}, "end_point": {"row": 15, "column": 48}}, {"id": 41, "type": "=", "text": "=", "parent": 34, "children": [], "start_point": {"row": 15, "column": 50}, "end_point": {"row": 15, "column": 51}}, {"id": 42, "type": "number_literal", "text": "0", "parent": 34, "children": [], "start_point": {"row": 15, "column": 52}, "end_point": {"row": 15, "column": 53}}, {"id": 43, "type": "declaration", "text": "virtual void", "parent": 18, "children": [44, 45], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 13}}, {"id": 44, "type": "type_identifier", "text": "virtual", "parent": 43, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 8}}, {"id": 45, "type": "identifier", "text": "void", "parent": 43, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 13}}, {"id": 46, "type": "assignment_expression", "text": "mousePressed(ofMouseEventArgs & args) = 0", "parent": 18, "children": [47, 53, 54], "start_point": {"row": 16, "column": 14}, "end_point": {"row": 16, "column": 55}}, {"id": 47, "type": "call_expression", "text": "mousePressed(ofMouseEventArgs & args)", "parent": 46, "children": [48, 49], "start_point": {"row": 16, "column": 14}, "end_point": {"row": 16, "column": 51}}, {"id": 48, "type": "identifier", "text": "mousePressed", "parent": 47, "children": [], "start_point": {"row": 16, "column": 14}, "end_point": {"row": 16, "column": 26}}, {"id": 49, "type": "argument_list", "text": "(ofMouseEventArgs & args)", "parent": 47, "children": [50], "start_point": {"row": 16, "column": 26}, "end_point": {"row": 16, "column": 51}}, {"id": 50, "type": "binary_expression", "text": "ofMouseEventArgs & args", "parent": 49, "children": [51, 52], "start_point": {"row": 16, "column": 27}, "end_point": {"row": 16, "column": 50}}, {"id": 51, "type": "identifier", "text": "ofMouseEventArgs", "parent": 50, "children": [], "start_point": {"row": 16, "column": 27}, "end_point": {"row": 16, "column": 43}}, {"id": 52, "type": "identifier", "text": "args", "parent": 50, "children": [], "start_point": {"row": 16, "column": 46}, "end_point": {"row": 16, "column": 50}}, {"id": 53, "type": "=", "text": "=", "parent": 46, "children": [], "start_point": {"row": 16, "column": 52}, "end_point": {"row": 16, "column": 53}}, {"id": 54, "type": "number_literal", "text": "0", "parent": 46, "children": [], "start_point": {"row": 16, "column": 54}, "end_point": {"row": 16, "column": 55}}, {"id": 55, "type": "declaration", "text": "virtual void", "parent": 18, "children": [56, 57], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 13}}, {"id": 56, "type": "type_identifier", "text": "virtual", "parent": 55, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 8}}, {"id": 57, "type": "identifier", "text": "void", "parent": 55, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 13}}, {"id": 58, "type": "assignment_expression", "text": "mouseDragged(ofMouseEventArgs & args) = 0", "parent": 18, "children": [59, 65, 66], "start_point": {"row": 17, "column": 14}, "end_point": {"row": 17, "column": 55}}, {"id": 59, "type": "call_expression", "text": "mouseDragged(ofMouseEventArgs & args)", "parent": 58, "children": [60, 61], "start_point": {"row": 17, "column": 14}, "end_point": {"row": 17, "column": 51}}, {"id": 60, "type": "identifier", "text": "mouseDragged", "parent": 59, "children": [], "start_point": {"row": 17, "column": 14}, "end_point": {"row": 17, "column": 26}}, {"id": 61, "type": "argument_list", "text": "(ofMouseEventArgs & args)", "parent": 59, "children": [62], "start_point": {"row": 17, "column": 26}, "end_point": {"row": 17, "column": 51}}, {"id": 62, "type": "binary_expression", "text": "ofMouseEventArgs & args", "parent": 61, "children": [63, 64], "start_point": {"row": 17, "column": 27}, "end_point": {"row": 17, "column": 50}}, {"id": 63, "type": "identifier", "text": "ofMouseEventArgs", "parent": 62, "children": [], "start_point": {"row": 17, "column": 27}, "end_point": {"row": 17, "column": 43}}, {"id": 64, "type": "identifier", "text": "args", "parent": 62, "children": [], "start_point": {"row": 17, "column": 46}, "end_point": {"row": 17, "column": 50}}, {"id": 65, "type": "=", "text": "=", "parent": 58, "children": [], "start_point": {"row": 17, "column": 52}, "end_point": {"row": 17, "column": 53}}, {"id": 66, "type": "number_literal", "text": "0", "parent": 58, "children": [], "start_point": {"row": 17, "column": 54}, "end_point": {"row": 17, "column": 55}}, {"id": 67, "type": "declaration", "text": "virtual void", "parent": 18, "children": [68, 69], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 13}}, {"id": 68, "type": "type_identifier", "text": "virtual", "parent": 67, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 8}}, {"id": 69, "type": "identifier", "text": "void", "parent": 67, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 13}}, {"id": 70, "type": "assignment_expression", "text": "mouseReleased(ofMouseEventArgs & args) = 0", "parent": 18, "children": [71, 77, 78], "start_point": {"row": 18, "column": 14}, "end_point": {"row": 18, "column": 56}}, {"id": 71, "type": "call_expression", "text": "mouseReleased(ofMouseEventArgs & args)", "parent": 70, "children": [72, 73], "start_point": {"row": 18, "column": 14}, "end_point": {"row": 18, "column": 52}}, {"id": 72, "type": "identifier", "text": "mouseReleased", "parent": 71, "children": [], "start_point": {"row": 18, "column": 14}, "end_point": {"row": 18, "column": 27}}, {"id": 73, "type": "argument_list", "text": "(ofMouseEventArgs & args)", "parent": 71, "children": [74], "start_point": {"row": 18, "column": 27}, "end_point": {"row": 18, "column": 52}}, {"id": 74, "type": "binary_expression", "text": "ofMouseEventArgs & args", "parent": 73, "children": [75, 76], "start_point": {"row": 18, "column": 28}, "end_point": {"row": 18, "column": 51}}, {"id": 75, "type": "identifier", "text": "ofMouseEventArgs", "parent": 74, "children": [], "start_point": {"row": 18, "column": 28}, "end_point": {"row": 18, "column": 44}}, {"id": 76, "type": "identifier", "text": "args", "parent": 74, "children": [], "start_point": {"row": 18, "column": 47}, "end_point": {"row": 18, "column": 51}}, {"id": 77, "type": "=", "text": "=", "parent": 70, "children": [], "start_point": {"row": 18, "column": 53}, "end_point": {"row": 18, "column": 54}}, {"id": 78, "type": "number_literal", "text": "0", "parent": 70, "children": [], "start_point": {"row": 18, "column": 55}, "end_point": {"row": 18, "column": 56}}, {"id": 79, "type": "declaration", "text": "virtual void setValue(float mx, float my, bool bCheckBounds) = 0;", "parent": 18, "children": [80, 81, 83], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 66}}, {"id": 80, "type": "type_identifier", "text": "virtual", "parent": 79, "children": [], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 8}}, {"id": 81, "type": "ERROR", "text": "void", "parent": 79, "children": [82], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 13}}, {"id": 82, "type": "identifier", "text": "void", "parent": 81, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 13}}, {"id": 83, "type": "init_declarator", "text": "setValue(float mx, float my, bool bCheckBounds) = 0", "parent": 79, "children": [84, 96, 97], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 65}}, {"id": 84, "type": "function_declarator", "text": "setValue(float mx, float my, bool bCheckBounds)", "parent": 83, "children": [85, 86], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 61}}, {"id": 85, "type": "identifier", "text": "setValue", "parent": 84, "children": [], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 22}}, {"id": 86, "type": "parameter_list", "text": "(float mx, float my, bool bCheckBounds)", "parent": 84, "children": [87, 90, 93], "start_point": {"row": 20, "column": 22}, "end_point": {"row": 20, "column": 61}}, {"id": 87, "type": "parameter_declaration", "text": "float mx", "parent": 86, "children": [88, 89], "start_point": {"row": 20, "column": 23}, "end_point": {"row": 20, "column": 31}}, {"id": 88, "type": "primitive_type", "text": "float", "parent": 87, "children": [], "start_point": {"row": 20, "column": 23}, "end_point": {"row": 20, "column": 28}}, {"id": 89, "type": "identifier", "text": "mx", "parent": 87, "children": [], "start_point": {"row": 20, "column": 29}, "end_point": {"row": 20, "column": 31}}, {"id": 90, "type": "parameter_declaration", "text": "float my", "parent": 86, "children": [91, 92], "start_point": {"row": 20, "column": 33}, "end_point": {"row": 20, "column": 41}}, {"id": 91, "type": "primitive_type", "text": "float", "parent": 90, "children": [], "start_point": {"row": 20, "column": 33}, "end_point": {"row": 20, "column": 38}}, {"id": 92, "type": "identifier", "text": "my", "parent": 90, "children": [], "start_point": {"row": 20, "column": 39}, "end_point": {"row": 20, "column": 41}}, {"id": 93, "type": "parameter_declaration", "text": "bool bCheckBounds", "parent": 86, "children": [94, 95], "start_point": {"row": 20, "column": 43}, "end_point": {"row": 20, "column": 60}}, {"id": 94, "type": "primitive_type", "text": "bool", "parent": 93, "children": [], "start_point": {"row": 20, "column": 43}, "end_point": {"row": 20, "column": 47}}, {"id": 95, "type": "identifier", "text": "bCheckBounds", "parent": 93, "children": [], "start_point": {"row": 20, "column": 48}, "end_point": {"row": 20, "column": 60}}, {"id": 96, "type": "=", "text": "=", "parent": 83, "children": [], "start_point": {"row": 20, "column": 62}, "end_point": {"row": 20, "column": 63}}, {"id": 97, "type": "number_literal", "text": "0", "parent": 83, "children": [], "start_point": {"row": 20, "column": 64}, "end_point": {"row": 20, "column": 65}}, {"id": 98, "type": "declaration", "text": "virtual void draw() = 0;", "parent": 18, "children": [99, 100, 102], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 25}}, {"id": 99, "type": "type_identifier", "text": "virtual", "parent": 98, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 8}}, {"id": 100, "type": "ERROR", "text": "void", "parent": 98, "children": [101], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 13}}, {"id": 101, "type": "identifier", "text": "void", "parent": 100, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 13}}, {"id": 102, "type": "init_declarator", "text": "draw() = 0", "parent": 98, "children": [103, 106, 107], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 24}}, {"id": 103, "type": "function_declarator", "text": "draw()", "parent": 102, "children": [104, 105], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 20}}, {"id": 104, "type": "identifier", "text": "draw", "parent": 103, "children": [], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 18}}, {"id": 105, "type": "parameter_list", "text": "()", "parent": 103, "children": [], "start_point": {"row": 21, "column": 18}, "end_point": {"row": 21, "column": 20}}, {"id": 106, "type": "=", "text": "=", "parent": 102, "children": [], "start_point": {"row": 21, "column": 21}, "end_point": {"row": 21, "column": 22}}, {"id": 107, "type": "number_literal", "text": "0", "parent": 102, "children": [], "start_point": {"row": 21, "column": 23}, "end_point": {"row": 21, "column": 24}}, {"id": 108, "type": "declaration", "text": "void saveToFile(string filename);", "parent": 18, "children": [109, 110], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 34}}, {"id": 109, "type": "primitive_type", "text": "void", "parent": 108, "children": [], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 5}}, {"id": 110, "type": "function_declarator", "text": "saveToFile(string filename)", "parent": 108, "children": [111, 112], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 33}}, {"id": 111, "type": "identifier", "text": "saveToFile", "parent": 110, "children": [], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 16}}, {"id": 112, "type": "parameter_list", "text": "(string filename)", "parent": 110, "children": [113], "start_point": {"row": 23, "column": 16}, "end_point": {"row": 23, "column": 33}}, {"id": 113, "type": "parameter_declaration", "text": "string filename", "parent": 112, "children": [114, 115], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 32}}, {"id": 114, "type": "type_identifier", "text": "string", "parent": 113, "children": [], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 23}}, {"id": 115, "type": "identifier", "text": "filename", "parent": 113, "children": [], "start_point": {"row": 23, "column": 24}, "end_point": {"row": 23, "column": 32}}, {"id": 116, "type": "declaration", "text": "void loadFromFile(string filename);", "parent": 18, "children": [117, 118], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 36}}, {"id": 117, "type": "primitive_type", "text": "void", "parent": 116, "children": [], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 5}}, {"id": 118, "type": "function_declarator", "text": "loadFromFile(string filename)", "parent": 116, "children": [119, 120], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 35}}, {"id": 119, "type": "identifier", "text": "loadFromFile", "parent": 118, "children": [], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 18}}, {"id": 120, "type": "parameter_list", "text": "(string filename)", "parent": 118, "children": [121], "start_point": {"row": 24, "column": 18}, "end_point": {"row": 24, "column": 35}}, {"id": 121, "type": "parameter_declaration", "text": "string filename", "parent": 120, "children": [122, 123], "start_point": {"row": 24, "column": 19}, "end_point": {"row": 24, "column": 34}}, {"id": 122, "type": "type_identifier", "text": "string", "parent": 121, "children": [], "start_point": {"row": 24, "column": 19}, "end_point": {"row": 24, "column": 25}}, {"id": 123, "type": "identifier", "text": "filename", "parent": 121, "children": [], "start_point": {"row": 24, "column": 26}, "end_point": {"row": 24, "column": 34}}, {"id": 124, "type": "declaration", "text": "virtual void", "parent": 18, "children": [125, 126], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 13}}, {"id": 125, "type": "type_identifier", "text": "virtual", "parent": 124, "children": [], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 8}}, {"id": 126, "type": "identifier", "text": "void", "parent": 124, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 13}}, {"id": 127, "type": "assignment_expression", "text": "saveToXml(ofxXmlSettings& xml) = 0", "parent": 18, "children": [128, 134, 135], "start_point": {"row": 26, "column": 14}, "end_point": {"row": 26, "column": 48}}, {"id": 128, "type": "call_expression", "text": "saveToXml(ofxXmlSettings& xml)", "parent": 127, "children": [129, 130], "start_point": {"row": 26, "column": 14}, "end_point": {"row": 26, "column": 44}}, {"id": 129, "type": "identifier", "text": "saveToXml", "parent": 128, "children": [], "start_point": {"row": 26, "column": 14}, "end_point": {"row": 26, "column": 23}}, {"id": 130, "type": "argument_list", "text": "(ofxXmlSettings& xml)", "parent": 128, "children": [131], "start_point": {"row": 26, "column": 23}, "end_point": {"row": 26, "column": 44}}, {"id": 131, "type": "binary_expression", "text": "ofxXmlSettings& xml", "parent": 130, "children": [132, 133], "start_point": {"row": 26, "column": 24}, "end_point": {"row": 26, "column": 43}}, {"id": 132, "type": "identifier", "text": "ofxXmlSettings", "parent": 131, "children": [], "start_point": {"row": 26, "column": 24}, "end_point": {"row": 26, "column": 38}}, {"id": 133, "type": "identifier", "text": "xml", "parent": 131, "children": [], "start_point": {"row": 26, "column": 40}, "end_point": {"row": 26, "column": 43}}, {"id": 134, "type": "=", "text": "=", "parent": 127, "children": [], "start_point": {"row": 26, "column": 45}, "end_point": {"row": 26, "column": 46}}, {"id": 135, "type": "number_literal", "text": "0", "parent": 127, "children": [], "start_point": {"row": 26, "column": 47}, "end_point": {"row": 26, "column": 48}}, {"id": 136, "type": "declaration", "text": "virtual void", "parent": 18, "children": [137, 138], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 13}}, {"id": 137, "type": "type_identifier", "text": "virtual", "parent": 136, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 8}}, {"id": 138, "type": "identifier", "text": "void", "parent": 136, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 13}}, {"id": 139, "type": "assignment_expression", "text": "loadFromXml(ofxXmlSettings& xml) = 0", "parent": 18, "children": [140, 146, 147], "start_point": {"row": 27, "column": 14}, "end_point": {"row": 27, "column": 50}}, {"id": 140, "type": "call_expression", "text": "loadFromXml(ofxXmlSettings& xml)", "parent": 139, "children": [141, 142], "start_point": {"row": 27, "column": 14}, "end_point": {"row": 27, "column": 46}}, {"id": 141, "type": "identifier", "text": "loadFromXml", "parent": 140, "children": [], "start_point": {"row": 27, "column": 14}, "end_point": {"row": 27, "column": 25}}, {"id": 142, "type": "argument_list", "text": "(ofxXmlSettings& xml)", "parent": 140, "children": [143], "start_point": {"row": 27, "column": 25}, "end_point": {"row": 27, "column": 46}}, {"id": 143, "type": "binary_expression", "text": "ofxXmlSettings& xml", "parent": 142, "children": [144, 145], "start_point": {"row": 27, "column": 26}, "end_point": {"row": 27, "column": 45}}, {"id": 144, "type": "identifier", "text": "ofxXmlSettings", "parent": 143, "children": [], "start_point": {"row": 27, "column": 26}, "end_point": {"row": 27, "column": 40}}, {"id": 145, "type": "identifier", "text": "xml", "parent": 143, "children": [], "start_point": {"row": 27, "column": 42}, "end_point": {"row": 27, "column": 45}}, {"id": 146, "type": "=", "text": "=", "parent": 139, "children": [], "start_point": {"row": 27, "column": 47}, "end_point": {"row": 27, "column": 48}}, {"id": 147, "type": "number_literal", "text": "0", "parent": 139, "children": [], "start_point": {"row": 27, "column": 49}, "end_point": {"row": 27, "column": 50}}, {"id": 148, "type": "declaration", "text": "string getName();", "parent": 18, "children": [149, 150], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 18}}, {"id": 149, "type": "type_identifier", "text": "string", "parent": 148, "children": [], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 7}}, {"id": 150, "type": "function_declarator", "text": "getName()", "parent": 148, "children": [151, 152], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 17}}, {"id": 151, "type": "identifier", "text": "getName", "parent": 150, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 15}}, {"id": 152, "type": "parameter_list", "text": "()", "parent": 150, "children": [], "start_point": {"row": 29, "column": 15}, "end_point": {"row": 29, "column": 17}}, {"id": 153, "type": "declaration", "text": "void setName(string name);", "parent": 18, "children": [154, 155], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 27}}, {"id": 154, "type": "primitive_type", "text": "void", "parent": 153, "children": [], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 5}}, {"id": 155, "type": "function_declarator", "text": "setName(string name)", "parent": 153, "children": [156, 157], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 26}}, {"id": 156, "type": "identifier", "text": "setName", "parent": 155, "children": [], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 13}}, {"id": 157, "type": "parameter_list", "text": "(string name)", "parent": 155, "children": [158], "start_point": {"row": 30, "column": 13}, "end_point": {"row": 30, "column": 26}}, {"id": 158, "type": "parameter_declaration", "text": "string name", "parent": 157, "children": [159, 160], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 25}}, {"id": 159, "type": "type_identifier", "text": "string", "parent": 158, "children": [], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 20}}, {"id": 160, "type": "identifier", "text": "name", "parent": 158, "children": [], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 25}}, {"id": 161, "type": "declaration", "text": "void setPosition(ofPoint p);", "parent": 18, "children": [162, 163], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 29}}, {"id": 162, "type": "primitive_type", "text": "void", "parent": 161, "children": [], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 5}}, {"id": 163, "type": "function_declarator", "text": "setPosition(ofPoint p)", "parent": 161, "children": [164, 165], "start_point": {"row": 32, "column": 6}, "end_point": {"row": 32, "column": 28}}, {"id": 164, "type": "identifier", "text": "setPosition", "parent": 163, "children": [], "start_point": {"row": 32, "column": 6}, "end_point": {"row": 32, "column": 17}}, {"id": 165, "type": "parameter_list", "text": "(ofPoint p)", "parent": 163, "children": [166], "start_point": {"row": 32, "column": 17}, "end_point": {"row": 32, "column": 28}}, {"id": 166, "type": "parameter_declaration", "text": "ofPoint p", "parent": 165, "children": [167, 168], "start_point": {"row": 32, "column": 18}, "end_point": {"row": 32, "column": 27}}, {"id": 167, "type": "type_identifier", "text": "ofPoint", "parent": 166, "children": [], "start_point": {"row": 32, "column": 18}, "end_point": {"row": 32, "column": 25}}, {"id": 168, "type": "identifier", "text": "p", "parent": 166, "children": [], "start_point": {"row": 32, "column": 26}, "end_point": {"row": 32, "column": 27}}, {"id": 169, "type": "declaration", "text": "void setPosition(float x, float y);", "parent": 18, "children": [170, 171], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 36}}, {"id": 170, "type": "primitive_type", "text": "void", "parent": 169, "children": [], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 5}}, {"id": 171, "type": "function_declarator", "text": "setPosition(float x, float y)", "parent": 169, "children": [172, 173], "start_point": {"row": 33, "column": 6}, "end_point": {"row": 33, "column": 35}}, {"id": 172, "type": "identifier", "text": "setPosition", "parent": 171, "children": [], "start_point": {"row": 33, "column": 6}, "end_point": {"row": 33, "column": 17}}, {"id": 173, "type": "parameter_list", "text": "(float x, float y)", "parent": 171, "children": [174, 177], "start_point": {"row": 33, "column": 17}, "end_point": {"row": 33, "column": 35}}, {"id": 174, "type": "parameter_declaration", "text": "float x", "parent": 173, "children": [175, 176], "start_point": {"row": 33, "column": 18}, "end_point": {"row": 33, "column": 25}}, {"id": 175, "type": "primitive_type", "text": "float", "parent": 174, "children": [], "start_point": {"row": 33, "column": 18}, "end_point": {"row": 33, "column": 23}}, {"id": 176, "type": "identifier", "text": "x", "parent": 174, "children": [], "start_point": {"row": 33, "column": 24}, "end_point": {"row": 33, "column": 25}}, {"id": 177, "type": "parameter_declaration", "text": "float y", "parent": 173, "children": [178, 179], "start_point": {"row": 33, "column": 27}, "end_point": {"row": 33, "column": 34}}, {"id": 178, "type": "primitive_type", "text": "float", "parent": 177, "children": [], "start_point": {"row": 33, "column": 27}, "end_point": {"row": 33, "column": 32}}, {"id": 179, "type": "identifier", "text": "y", "parent": 177, "children": [], "start_point": {"row": 33, "column": 33}, "end_point": {"row": 33, "column": 34}}, {"id": 180, "type": "declaration", "text": "void setSize(float w, float h);", "parent": 18, "children": [181, 182], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 32}}, {"id": 181, "type": "primitive_type", "text": "void", "parent": 180, "children": [], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 5}}, {"id": 182, "type": "function_declarator", "text": "setSize(float w, float h)", "parent": 180, "children": [183, 184], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 31}}, {"id": 183, "type": "identifier", "text": "setSize", "parent": 182, "children": [], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 13}}, {"id": 184, "type": "parameter_list", "text": "(float w, float h)", "parent": 182, "children": [185, 188], "start_point": {"row": 34, "column": 13}, "end_point": {"row": 34, "column": 31}}, {"id": 185, "type": "parameter_declaration", "text": "float w", "parent": 184, "children": [186, 187], "start_point": {"row": 34, "column": 14}, "end_point": {"row": 34, "column": 21}}, {"id": 186, "type": "primitive_type", "text": "float", "parent": 185, "children": [], "start_point": {"row": 34, "column": 14}, "end_point": {"row": 34, "column": 19}}, {"id": 187, "type": "identifier", "text": "w", "parent": 185, "children": [], "start_point": {"row": 34, "column": 20}, "end_point": {"row": 34, "column": 21}}, {"id": 188, "type": "parameter_declaration", "text": "float h", "parent": 184, "children": [189, 190], "start_point": {"row": 34, "column": 23}, "end_point": {"row": 34, "column": 30}}, {"id": 189, "type": "primitive_type", "text": "float", "parent": 188, "children": [], "start_point": {"row": 34, "column": 23}, "end_point": {"row": 34, "column": 28}}, {"id": 190, "type": "identifier", "text": "h", "parent": 188, "children": [], "start_point": {"row": 34, "column": 29}, "end_point": {"row": 34, "column": 30}}, {"id": 191, "type": "declaration", "text": "void setShape(ofRectangle r);", "parent": 18, "children": [192, 193], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 30}}, {"id": 192, "type": "primitive_type", "text": "void", "parent": 191, "children": [], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 5}}, {"id": 193, "type": "function_declarator", "text": "setShape(ofRectangle r)", "parent": 191, "children": [194, 195], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 29}}, {"id": 194, "type": "identifier", "text": "setShape", "parent": 193, "children": [], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 14}}, {"id": 195, "type": "parameter_list", "text": "(ofRectangle r)", "parent": 193, "children": [196], "start_point": {"row": 35, "column": 14}, "end_point": {"row": 35, "column": 29}}, {"id": 196, "type": "parameter_declaration", "text": "ofRectangle r", "parent": 195, "children": [197, 198], "start_point": {"row": 35, "column": 15}, "end_point": {"row": 35, "column": 28}}, {"id": 197, "type": "type_identifier", "text": "ofRectangle", "parent": 196, "children": [], "start_point": {"row": 35, "column": 15}, "end_point": {"row": 35, "column": 26}}, {"id": 198, "type": "identifier", "text": "r", "parent": 196, "children": [], "start_point": {"row": 35, "column": 27}, "end_point": {"row": 35, "column": 28}}, {"id": 199, "type": "declaration", "text": "void setShape(float x, float y, float w, float h);", "parent": 18, "children": [200, 201], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 51}}, {"id": 200, "type": "primitive_type", "text": "void", "parent": 199, "children": [], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 5}}, {"id": 201, "type": "function_declarator", "text": "setShape(float x, float y, float w, float h)", "parent": 199, "children": [202, 203], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 50}}, {"id": 202, "type": "identifier", "text": "setShape", "parent": 201, "children": [], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 14}}, {"id": 203, "type": "parameter_list", "text": "(float x, float y, float w, float h)", "parent": 201, "children": [204, 207, 210, 213], "start_point": {"row": 36, "column": 14}, "end_point": {"row": 36, "column": 50}}, {"id": 204, "type": "parameter_declaration", "text": "float x", "parent": 203, "children": [205, 206], "start_point": {"row": 36, "column": 15}, "end_point": {"row": 36, "column": 22}}, {"id": 205, "type": "primitive_type", "text": "float", "parent": 204, "children": [], "start_point": {"row": 36, "column": 15}, "end_point": {"row": 36, "column": 20}}, {"id": 206, "type": "identifier", "text": "x", "parent": 204, "children": [], "start_point": {"row": 36, "column": 21}, "end_point": {"row": 36, "column": 22}}, {"id": 207, "type": "parameter_declaration", "text": "float y", "parent": 203, "children": [208, 209], "start_point": {"row": 36, "column": 24}, "end_point": {"row": 36, "column": 31}}, {"id": 208, "type": "primitive_type", "text": "float", "parent": 207, "children": [], "start_point": {"row": 36, "column": 24}, "end_point": {"row": 36, "column": 29}}, {"id": 209, "type": "identifier", "text": "y", "parent": 207, "children": [], "start_point": {"row": 36, "column": 30}, "end_point": {"row": 36, "column": 31}}, {"id": 210, "type": "parameter_declaration", "text": "float w", "parent": 203, "children": [211, 212], "start_point": {"row": 36, "column": 33}, "end_point": {"row": 36, "column": 40}}, {"id": 211, "type": "primitive_type", "text": "float", "parent": 210, "children": [], "start_point": {"row": 36, "column": 33}, "end_point": {"row": 36, "column": 38}}, {"id": 212, "type": "identifier", "text": "w", "parent": 210, "children": [], "start_point": {"row": 36, "column": 39}, "end_point": {"row": 36, "column": 40}}, {"id": 213, "type": "parameter_declaration", "text": "float h", "parent": 203, "children": [214, 215], "start_point": {"row": 36, "column": 42}, "end_point": {"row": 36, "column": 49}}, {"id": 214, "type": "primitive_type", "text": "float", "parent": 213, "children": [], "start_point": {"row": 36, "column": 42}, "end_point": {"row": 36, "column": 47}}, {"id": 215, "type": "identifier", "text": "h", "parent": 213, "children": [], "start_point": {"row": 36, "column": 48}, "end_point": {"row": 36, "column": 49}}, {"id": 216, "type": "declaration", "text": "ofPoint getPosition();", "parent": 18, "children": [217, 218], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 23}}, {"id": 217, "type": "type_identifier", "text": "ofPoint", "parent": 216, "children": [], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 8}}, {"id": 218, "type": "function_declarator", "text": "getPosition()", "parent": 216, "children": [219, 220], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 22}}, {"id": 219, "type": "identifier", "text": "getPosition", "parent": 218, "children": [], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 20}}, {"id": 220, "type": "parameter_list", "text": "()", "parent": 218, "children": [], "start_point": {"row": 38, "column": 20}, "end_point": {"row": 38, "column": 22}}, {"id": 221, "type": "declaration", "text": "ofRectangle getShape();", "parent": 18, "children": [222, 223], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 24}}, {"id": 222, "type": "type_identifier", "text": "ofRectangle", "parent": 221, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 12}}, {"id": 223, "type": "function_declarator", "text": "getShape()", "parent": 221, "children": [224, 225], "start_point": {"row": 39, "column": 13}, "end_point": {"row": 39, "column": 23}}, {"id": 224, "type": "identifier", "text": "getShape", "parent": 223, "children": [], "start_point": {"row": 39, "column": 13}, "end_point": {"row": 39, "column": 21}}, {"id": 225, "type": "parameter_list", "text": "()", "parent": 223, "children": [], "start_point": {"row": 39, "column": 21}, "end_point": {"row": 39, "column": 23}}, {"id": 226, "type": "declaration", "text": "float getWidth();", "parent": 18, "children": [227, 228], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 18}}, {"id": 227, "type": "primitive_type", "text": "float", "parent": 226, "children": [], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 6}}, {"id": 228, "type": "function_declarator", "text": "getWidth()", "parent": 226, "children": [229, 230], "start_point": {"row": 40, "column": 7}, "end_point": {"row": 40, "column": 17}}, {"id": 229, "type": "identifier", "text": "getWidth", "parent": 228, "children": [], "start_point": {"row": 40, "column": 7}, "end_point": {"row": 40, "column": 15}}, {"id": 230, "type": "parameter_list", "text": "()", "parent": 228, "children": [], "start_point": {"row": 40, "column": 15}, "end_point": {"row": 40, "column": 17}}, {"id": 231, "type": "declaration", "text": "float getHeight();", "parent": 18, "children": [232, 233], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 19}}, {"id": 232, "type": "primitive_type", "text": "float", "parent": 231, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 6}}, {"id": 233, "type": "function_declarator", "text": "getHeight()", "parent": 231, "children": [234, 235], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 41, "column": 18}}, {"id": 234, "type": "identifier", "text": "getHeight", "parent": 233, "children": [], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 41, "column": 16}}, {"id": 235, "type": "parameter_list", "text": "()", "parent": 233, "children": [], "start_point": {"row": 41, "column": 16}, "end_point": {"row": 41, "column": 18}}, {"id": 236, "type": "labeled_statement", "text": "protected:\n\tstring name;", "parent": 18, "children": [237], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 44, "column": 13}}, {"id": 237, "type": "declaration", "text": "string name;", "parent": 236, "children": [238, 239], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 13}}, {"id": 238, "type": "type_identifier", "text": "string", "parent": 237, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 7}}, {"id": 239, "type": "identifier", "text": "name", "parent": 237, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 12}}, {"id": 240, "type": "declaration", "text": "unsigned long currentFrame;", "parent": 18, "children": [241, 244], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 28}}, {"id": 241, "type": "sized_type_specifier", "text": "unsigned long", "parent": 240, "children": [242, 243], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 14}}, {"id": 242, "type": "unsigned", "text": "unsigned", "parent": 241, "children": [], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 9}}, {"id": 243, "type": "long", "text": "long", "parent": 241, "children": [], "start_point": {"row": 45, "column": 10}, "end_point": {"row": 45, "column": 14}}, {"id": 244, "type": "identifier", "text": "currentFrame", "parent": 240, "children": [], "start_point": {"row": 45, "column": 15}, "end_point": {"row": 45, "column": 27}}, {"id": 245, "type": "declaration", "text": "ofRectangle b;", "parent": 18, "children": [246, 247], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 15}}, {"id": 246, "type": "type_identifier", "text": "ofRectangle", "parent": 245, "children": [], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 12}}, {"id": 247, "type": "identifier", "text": "b", "parent": 245, "children": [], "start_point": {"row": 46, "column": 13}, "end_point": {"row": 46, "column": 14}}, {"id": 248, "type": "declaration", "text": "bool bGuiActive;", "parent": 18, "children": [249, 250], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 17}}, {"id": 249, "type": "primitive_type", "text": "bool", "parent": 248, "children": [], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 5}}, {"id": 250, "type": "identifier", "text": "bGuiActive", "parent": 248, "children": [], "start_point": {"row": 47, "column": 6}, "end_point": {"row": 47, "column": 16}}, {"id": 251, "type": "declaration", "text": "static const ofColor headerBackgroundColor;", "parent": 18, "children": [252, 253], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 44}}, {"id": 252, "type": "type_identifier", "text": "ofColor", "parent": 251, "children": [], "start_point": {"row": 49, "column": 14}, "end_point": {"row": 49, "column": 21}}, {"id": 253, "type": "identifier", "text": "headerBackgroundColor", "parent": 251, "children": [], "start_point": {"row": 49, "column": 22}, "end_point": {"row": 49, "column": 43}}, {"id": 254, "type": "declaration", "text": "static const ofColor backgroundColor;", "parent": 18, "children": [255, 256], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 38}}, {"id": 255, "type": "type_identifier", "text": "ofColor", "parent": 254, "children": [], "start_point": {"row": 50, "column": 14}, "end_point": {"row": 50, "column": 21}}, {"id": 256, "type": "identifier", "text": "backgroundColor", "parent": 254, "children": [], "start_point": {"row": 50, "column": 22}, "end_point": {"row": 50, "column": 37}}, {"id": 257, "type": "declaration", "text": "static const ofColor textColor;", "parent": 18, "children": [258, 259], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 32}}, {"id": 258, "type": "type_identifier", "text": "ofColor", "parent": 257, "children": [], "start_point": {"row": 51, "column": 14}, "end_point": {"row": 51, "column": 21}}, {"id": 259, "type": "identifier", "text": "textColor", "parent": 257, "children": [], "start_point": {"row": 51, "column": 22}, "end_point": {"row": 51, "column": 31}}, {"id": 260, "type": "declaration", "text": "static const ofColor fillColor;", "parent": 18, "children": [261, 262], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 32}}, {"id": 261, "type": "type_identifier", "text": "ofColor", "parent": 260, "children": [], "start_point": {"row": 52, "column": 14}, "end_point": {"row": 52, "column": 21}}, {"id": 262, "type": "identifier", "text": "fillColor", "parent": 260, "children": [], "start_point": {"row": 52, "column": 22}, "end_point": {"row": 52, "column": 31}}, {"id": 263, "type": "declaration", "text": "static const int textPadding;", "parent": 18, "children": [264, 265], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 30}}, {"id": 264, "type": "primitive_type", "text": "int", "parent": 263, "children": [], "start_point": {"row": 54, "column": 14}, "end_point": {"row": 54, "column": 17}}, {"id": 265, "type": "identifier", "text": "textPadding", "parent": 263, "children": [], "start_point": {"row": 54, "column": 18}, "end_point": {"row": 54, "column": 29}}, {"id": 266, "type": "declaration", "text": "static const int defaultWidth;", "parent": 18, "children": [267, 268], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 31}}, {"id": 267, "type": "primitive_type", "text": "int", "parent": 266, "children": [], "start_point": {"row": 55, "column": 14}, "end_point": {"row": 55, "column": 17}}, {"id": 268, "type": "identifier", "text": "defaultWidth", "parent": 266, "children": [], "start_point": {"row": 55, "column": 18}, "end_point": {"row": 55, "column": 30}}, {"id": 269, "type": "declaration", "text": "static const int defaultHeight;", "parent": 18, "children": [270, 271], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 56, "column": 32}}, {"id": 270, "type": "primitive_type", "text": "int", "parent": 269, "children": [], "start_point": {"row": 56, "column": 14}, "end_point": {"row": 56, "column": 17}}, {"id": 271, "type": "identifier", "text": "defaultHeight", "parent": 269, "children": [], "start_point": {"row": 56, "column": 18}, "end_point": {"row": 56, "column": 31}}, {"id": 272, "type": "declaration", "text": "static string saveStencilToHex(ofImage& img);", "parent": 18, "children": [273, 274], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 46}}, {"id": 273, "type": "type_identifier", "text": "string", "parent": 272, "children": [], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 14}}, {"id": 274, "type": "function_declarator", "text": "saveStencilToHex(ofImage& img)", "parent": 272, "children": [275, 276], "start_point": {"row": 58, "column": 15}, "end_point": {"row": 58, "column": 45}}, {"id": 275, "type": "identifier", "text": "saveStencilToHex", "parent": 274, "children": [], "start_point": {"row": 58, "column": 15}, "end_point": {"row": 58, "column": 31}}, {"id": 276, "type": "parameter_list", "text": "(ofImage& img)", "parent": 274, "children": [277], "start_point": {"row": 58, "column": 31}, "end_point": {"row": 58, "column": 45}}, {"id": 277, "type": "parameter_declaration", "text": "ofImage& img", "parent": 276, "children": [278, 279], "start_point": {"row": 58, "column": 32}, "end_point": {"row": 58, "column": 44}}, {"id": 278, "type": "type_identifier", "text": "ofImage", "parent": 277, "children": [], "start_point": {"row": 58, "column": 32}, "end_point": {"row": 58, "column": 39}}, {"id": 279, "type": "identifier", "text": "img", "parent": 277, "children": [], "start_point": {"row": 58, "column": 41}, "end_point": {"row": 58, "column": 44}}, {"id": 280, "type": "declaration", "text": "static void loadStencilFromHex(ofImage& img, unsigned char* data) ;", "parent": 18, "children": [281, 282], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 68}}, {"id": 281, "type": "primitive_type", "text": "void", "parent": 280, "children": [], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 12}}, {"id": 282, "type": "function_declarator", "text": "loadStencilFromHex(ofImage& img, unsigned char* data)", "parent": 280, "children": [283, 284], "start_point": {"row": 59, "column": 13}, "end_point": {"row": 59, "column": 66}}, {"id": 283, "type": "identifier", "text": "loadStencilFromHex", "parent": 282, "children": [], "start_point": {"row": 59, "column": 13}, "end_point": {"row": 59, "column": 31}}, {"id": 284, "type": "parameter_list", "text": "(ofImage& img, unsigned char* data)", "parent": 282, "children": [285, 288], "start_point": {"row": 59, "column": 31}, "end_point": {"row": 59, "column": 66}}, {"id": 285, "type": "parameter_declaration", "text": "ofImage& img", "parent": 284, "children": [286, 287], "start_point": {"row": 59, "column": 32}, "end_point": {"row": 59, "column": 44}}, {"id": 286, "type": "type_identifier", "text": "ofImage", "parent": 285, "children": [], "start_point": {"row": 59, "column": 32}, "end_point": {"row": 59, "column": 39}}, {"id": 287, "type": "identifier", "text": "img", "parent": 285, "children": [], "start_point": {"row": 59, "column": 41}, "end_point": {"row": 59, "column": 44}}, {"id": 288, "type": "parameter_declaration", "text": "unsigned char* data", "parent": 284, "children": [289, 292], "start_point": {"row": 59, "column": 46}, "end_point": {"row": 59, "column": 65}}, {"id": 289, "type": "sized_type_specifier", "text": "unsigned char", "parent": 288, "children": [290, 291], "start_point": {"row": 59, "column": 46}, "end_point": {"row": 59, "column": 59}}, {"id": 290, "type": "unsigned", "text": "unsigned", "parent": 289, "children": [], "start_point": {"row": 59, "column": 46}, "end_point": {"row": 59, "column": 54}}, {"id": 291, "type": "primitive_type", "text": "char", "parent": 289, "children": [], "start_point": {"row": 59, "column": 55}, "end_point": {"row": 59, "column": 59}}, {"id": 292, "type": "pointer_declarator", "text": "* data", "parent": 288, "children": [293, 294], "start_point": {"row": 59, "column": 59}, "end_point": {"row": 59, "column": 65}}, {"id": 293, "type": "*", "text": "*", "parent": 292, "children": [], "start_point": {"row": 59, "column": 59}, "end_point": {"row": 59, "column": 60}}, {"id": 294, "type": "identifier", "text": "data", "parent": 292, "children": [], "start_point": {"row": 59, "column": 61}, "end_point": {"row": 59, "column": 65}}]}, "node_categories": {"declarations": {"functions": [18, 28, 84, 103, 110, 118, 150, 155, 163, 171, 182, 193, 201, 218, 223, 228, 233, 274, 282], "variables": [24, 31, 43, 55, 67, 79, 87, 90, 93, 98, 108, 113, 116, 121, 124, 136, 148, 153, 158, 161, 166, 169, 174, 177, 180, 185, 188, 191, 196, 199, 204, 207, 210, 213, 216, 221, 226, 231, 237, 240, 245, 248, 251, 254, 257, 260, 263, 266, 269, 272, 277, 280, 285, 288], "classes": [], "imports": [3, 4, 6, 7, 9, 10, 12, 13, 15, 16], "modules": [], "enums": []}, "statements": {"expressions": [21, 35, 38, 47, 50, 59, 62, 71, 74, 128, 131, 140, 143], "assignments": [34, 46, 58, 70, 127, 139], "loops": [], "conditionals": [19, 22, 25, 29, 32, 33, 36, 39, 40, 44, 45, 48, 51, 52, 56, 57, 60, 63, 64, 68, 69, 72, 75, 76, 80, 82, 85, 89, 92, 95, 99, 101, 104, 111, 114, 115, 119, 122, 123, 125, 126, 129, 132, 133, 137, 138, 141, 144, 145, 149, 151, 156, 159, 160, 164, 167, 168, 172, 176, 179, 183, 187, 190, 194, 197, 198, 202, 206, 209, 212, 215, 217, 219, 222, 224, 229, 234, 238, 239, 241, 244, 246, 247, 250, 252, 253, 255, 256, 258, 259, 261, 262, 265, 268, 271, 273, 275, 278, 279, 283, 286, 287, 289, 294], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 11, 14, 17, 42, 54, 66, 78, 97, 107, 135, 147], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 18, "universal_type": "function", "name": "ofxBaseGui{", "text_snippet": "class ofxBaseGui{\npublic:\n\tofxBaseGui();\n\t\n\tvirtual ~ofxBaseGui();\n\n\tvirtual void mouseMoved(ofMouse"}, {"node_id": 28, "universal_type": "function", "name": "unknown", "text_snippet": "ofxBaseGui()"}, {"node_id": 84, "universal_type": "function", "name": "bCheckBounds)", "text_snippet": "setValue(float mx, float my, bool bCheckBounds)"}, {"node_id": 103, "universal_type": "function", "name": "unknown", "text_snippet": "draw()"}, {"node_id": 110, "universal_type": "function", "name": "unknown", "text_snippet": "saveToFile(string filename)"}, {"node_id": 118, "universal_type": "function", "name": "unknown", "text_snippet": "loadFromFile(string filename)"}, {"node_id": 150, "universal_type": "function", "name": "unknown", "text_snippet": "getName()"}, {"node_id": 155, "universal_type": "function", "name": "unknown", "text_snippet": "setName(string name)"}, {"node_id": 163, "universal_type": "function", "name": "unknown", "text_snippet": "setPosition(ofPoint p)"}, {"node_id": 171, "universal_type": "function", "name": "unknown", "text_snippet": "setPosition(float x, float y)"}, {"node_id": 182, "universal_type": "function", "name": "unknown", "text_snippet": "setSize(float w, float h)"}, {"node_id": 193, "universal_type": "function", "name": "unknown", "text_snippet": "setShape(ofRectangle r)"}, {"node_id": 201, "universal_type": "function", "name": "unknown", "text_snippet": "setShape(float x, float y, float w, float h)"}, {"node_id": 218, "universal_type": "function", "name": "unknown", "text_snippet": "getPosition()"}, {"node_id": 223, "universal_type": "function", "name": "unknown", "text_snippet": "getShape()"}, {"node_id": 228, "universal_type": "function", "name": "unknown", "text_snippet": "getWidth()"}, {"node_id": 233, "universal_type": "function", "name": "unknown", "text_snippet": "getHeight()"}, {"node_id": 274, "universal_type": "function", "name": "unknown", "text_snippet": "saveStencilToHex(ofImage& img)"}, {"node_id": 282, "universal_type": "function", "name": "unknown", "text_snippet": "loadStencilFromHex(ofImage& img, unsigned char* data)"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include \"ofxXmlSettings.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"ofConstants.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"ofRectangle.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"ofImage.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"ofEvents.h\"\n"}, {"node_id": 16, "text": "#include"}]}, "original_source_code": "#pragma once\n\n#include \"ofxXmlSettings.h\"\n#include \"ofConstants.h\"\n#include \"ofRectangle.h\"\n#include \"ofImage.h\"\n#include \"ofEvents.h\"\n\n\nclass ofxBaseGui{\npublic:\n\tofxBaseGui();\n\t\n\tvirtual ~ofxBaseGui();\n\n\tvirtual void mouseMoved(ofMouseEventArgs & args) = 0;\n\tvirtual void mousePressed(ofMouseEventArgs & args) = 0;\n\tvirtual void mouseDragged(ofMouseEventArgs & args) = 0;\n\tvirtual void mouseReleased(ofMouseEventArgs & args) = 0;\n\t\n\tvirtual void setValue(float mx, float my, bool bCheckBounds) = 0;\n\tvirtual void draw() = 0;\n\t\n\tvoid saveToFile(string filename);\n\tvoid loadFromFile(string filename);\n\t\n\tvirtual void saveToXml(ofxXmlSettings& xml) = 0;\n\tvirtual void loadFromXml(ofxXmlSettings& xml) = 0;\n\t\n\tstring getName();\n\tvoid setName(string name);\n\n\tvoid setPosition(ofPoint p);\n\tvoid setPosition(float x, float y);\n\tvoid setSize(float w, float h);\n\tvoid setShape(ofRectangle r);\n\tvoid setShape(float x, float y, float w, float h);\n\n\tofPoint getPosition();\n\tofRectangle getShape();\n\tfloat getWidth();\n\tfloat getHeight();\n\nprotected:\n\tstring name;\n\tunsigned long currentFrame;\t\t\t\n\tofRectangle b;\n\tbool bGuiActive;\n\n\tstatic const ofColor headerBackgroundColor;\n\tstatic const ofColor backgroundColor;\n\tstatic const ofColor textColor;\n\tstatic const ofColor fillColor;\n\n\tstatic const int textPadding;\n\tstatic const int defaultWidth;\n\tstatic const int defaultHeight;\n\n\tstatic string saveStencilToHex(ofImage& img);\n\tstatic void loadStencilFromHex(ofImage& img, unsigned char* data) ;\n}; \n"}
80,262
c
/* The Jinx library is distributed under the MIT License (MIT) https://opensource.org/licenses/MIT See LICENSE.TXT or Jinx.h for license details. Copyright (c) 2016 <NAME> */ #pragma once #ifndef JX_MEMORY_H__ #define JX_MEMORY_H__ namespace Jinx { // Stand-alone global allocation functions void * MemAllocate(size_t bytes); void * MemReallocate(void * ptr, size_t bytes); void MemFree(void * ptr); // Jinx allocator for use in STL containers template <typename T> class Allocator { public: using size_type = size_t; using difference_type = ptrdiff_t; using pointer = T*; using const_pointer = const T*; using reference = T&; using const_reference = const T&; using value_type = T; Allocator() throw() {}; Allocator(const Allocator &) throw() { } template<typename U> explicit Allocator(const Allocator<U>&) throw() { } template<typename U> Allocator & operator = ([[maybe_unused]] const Allocator<U> & other) { other; return *this; } Allocator & operator = ([[maybe_unused]] const Allocator & other) { other; return *this; } ~Allocator() {} pointer address(reference value) const { return &value; } const_pointer address(const_reference value) const { return &value; } pointer allocate(size_type n) { return static_cast<pointer> (Jinx::MemAllocate(n * sizeof(value_type))); } pointer allocate(size_type n, const void *) { return static_cast<pointer> (Jinx::MemAllocate(n * sizeof(value_type))); } void deallocate(void* ptr, size_type) { Jinx::MemFree(static_cast<T*> (ptr)); } template<typename U, typename... Args> void construct(U* ptr, Args&& ... args) { ::new ((void*)(ptr)) U(std::forward<Args>(args)...); } void construct(pointer ptr, const T& val) { new (static_cast<T*> (ptr)) T(val); } template<typename U> void destroy([[maybe_unused]] U* ptr) { ptr->~U(); } void destroy([[maybe_unused]] pointer ptr) { ptr->~T(); } size_type max_size() const { return std::numeric_limits<std::size_t>::max() / sizeof(T); } }; template <typename T> bool operator == (const Allocator<T> &, const Allocator<T> &) { return true; } template <typename T> bool operator != (const Allocator<T> &, const Allocator<T> &) { return false; } struct GlobalParams; void InitializeMemory(const GlobalParams & params); struct MemoryStats { uint64_t allocationCount = 0; uint64_t freeCount = 0; uint64_t allocatedMemory = 0; }; MemoryStats GetMemoryStats(); // Define a custom UTF-8 string using internal allocator using String = std::basic_string <char, std::char_traits<char>, Allocator<char>>; // Define a custom UTF-16 string using internal allocator using StringU16 = std::basic_string <char16_t, std::char_traits<char16_t>, Allocator<char16_t>>; // Define a custom wide character string using internal allocator using WString = std::basic_string <wchar_t, std::char_traits<wchar_t>, Allocator<wchar_t>>; } #endif // JX_MEMORY_H__
41.06
69
(translation_unit) "/*\nThe Jinx library is distributed under the MIT License (MIT)\nhttps://opensource.org/licenses/MIT\nSee LICENSE.TXT or Jinx.h for license details.\nCopyright (c) 2016 <NAME>\n*/\n\n#pragma once\n#ifndef JX_MEMORY_H__\n#define JX_MEMORY_H__\n\nnamespace Jinx\n{\n // Stand-alone global allocation functions\n void * MemAllocate(size_t bytes);\n void * MemReallocate(void * ptr, size_t bytes);\n void MemFree(void * ptr);\n\n // Jinx allocator for use in STL containers\n template <typename T>\n class Allocator\n {\n public:\n using size_type = size_t;\n using difference_type = ptrdiff_t;\n using pointer = T*;\n using const_pointer = const T*;\n using reference = T&;\n using const_reference = const T&;\n using value_type = T;\n\n Allocator() throw() {};\n Allocator(const Allocator &) throw() { }\n\n template<typename U>\n explicit Allocator(const Allocator<U>&) throw() { }\n\n template<typename U>\n Allocator & operator = ([[maybe_unused]] const Allocator<U> & other) { other; return *this; }\n Allocator & operator = ([[maybe_unused]] const Allocator & other) { other; return *this; }\n ~Allocator() {}\n\n pointer address(reference value) const { return &value; }\n const_pointer address(const_reference value) const { return &value; }\n\n pointer allocate(size_type n) { return static_cast<pointer> (Jinx::MemAllocate(n * sizeof(value_type))); }\n pointer allocate(size_type n, const void *) { return static_cast<pointer> (Jinx::MemAllocate(n * sizeof(value_type))); }\n void deallocate(void* ptr, size_type) { Jinx::MemFree(static_cast<T*> (ptr)); }\n\n template<typename U, typename... Args>\n void construct(U* ptr, Args&& ... args) { ::new ((void*)(ptr)) U(std::forward<Args>(args)...); }\n void construct(pointer ptr, const T& val) { new (static_cast<T*> (ptr)) T(val); }\n\n template<typename U>\n void destroy([[maybe_unused]] U* ptr) { ptr->~U(); }\n void destroy([[maybe_unused]] pointer ptr) { ptr->~T(); }\n\n size_type max_size() const { return std::numeric_limits<std::size_t>::max() / sizeof(T); }\n };\n\n template <typename T>\n bool operator == (const Allocator<T> &, const Allocator<T> &) { return true; }\n template <typename T>\n bool operator != (const Allocator<T> &, const Allocator<T> &) { return false; }\n\n struct GlobalParams;\n void InitializeMemory(const GlobalParams & params);\n\n struct MemoryStats\n {\n uint64_t allocationCount = 0;\n uint64_t freeCount = 0;\n uint64_t allocatedMemory = 0;\n };\n\n MemoryStats GetMemoryStats();\n\n // Define a custom UTF-8 string using internal allocator\n using String = std::basic_string <char, std::char_traits<char>, Allocator<char>>;\n\n // Define a custom UTF-16 string using internal allocator\n using StringU16 = std::basic_string <char16_t, std::char_traits<char16_t>, Allocator<char16_t>>;\n\n // Define a custom wide character string using internal allocator\n using WString = std::basic_string <wchar_t, std::char_traits<wchar_t>, Allocator<wchar_t>>;\n}\n\n#endif // JX_MEMORY_H__\n" (comment) "/*\nThe Jinx library is distributed under the MIT License (MIT)\nhttps://opensource.org/licenses/MIT\nSee LICENSE.TXT or Jinx.h for license details.\nCopyright (c) 2016 <NAME>\n*/" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_ifdef) "#ifndef JX_MEMORY_H__\n#define JX_MEMORY_H__\n\nnamespace Jinx\n{\n // Stand-alone global allocation functions\n void * MemAllocate(size_t bytes);\n void * MemReallocate(void * ptr, size_t bytes);\n void MemFree(void * ptr);\n\n // Jinx allocator for use in STL containers\n template <typename T>\n class Allocator\n {\n public:\n using size_type = size_t;\n using difference_type = ptrdiff_t;\n using pointer = T*;\n using const_pointer = const T*;\n using reference = T&;\n using const_reference = const T&;\n using value_type = T;\n\n Allocator() throw() {};\n Allocator(const Allocator &) throw() { }\n\n template<typename U>\n explicit Allocator(const Allocator<U>&) throw() { }\n\n template<typename U>\n Allocator & operator = ([[maybe_unused]] const Allocator<U> & other) { other; return *this; }\n Allocator & operator = ([[maybe_unused]] const Allocator & other) { other; return *this; }\n ~Allocator() {}\n\n pointer address(reference value) const { return &value; }\n const_pointer address(const_reference value) const { return &value; }\n\n pointer allocate(size_type n) { return static_cast<pointer> (Jinx::MemAllocate(n * sizeof(value_type))); }\n pointer allocate(size_type n, const void *) { return static_cast<pointer> (Jinx::MemAllocate(n * sizeof(value_type))); }\n void deallocate(void* ptr, size_type) { Jinx::MemFree(static_cast<T*> (ptr)); }\n\n template<typename U, typename... Args>\n void construct(U* ptr, Args&& ... args) { ::new ((void*)(ptr)) U(std::forward<Args>(args)...); }\n void construct(pointer ptr, const T& val) { new (static_cast<T*> (ptr)) T(val); }\n\n template<typename U>\n void destroy([[maybe_unused]] U* ptr) { ptr->~U(); }\n void destroy([[maybe_unused]] pointer ptr) { ptr->~T(); }\n\n size_type max_size() const { return std::numeric_limits<std::size_t>::max() / sizeof(T); }\n };\n\n template <typename T>\n bool operator == (const Allocator<T> &, const Allocator<T> &) { return true; }\n template <typename T>\n bool operator != (const Allocator<T> &, const Allocator<T> &) { return false; }\n\n struct GlobalParams;\n void InitializeMemory(const GlobalParams & params);\n\n struct MemoryStats\n {\n uint64_t allocationCount = 0;\n uint64_t freeCount = 0;\n uint64_t allocatedMemory = 0;\n };\n\n MemoryStats GetMemoryStats();\n\n // Define a custom UTF-8 string using internal allocator\n using String = std::basic_string <char, std::char_traits<char>, Allocator<char>>;\n\n // Define a custom UTF-16 string using internal allocator\n using StringU16 = std::basic_string <char16_t, std::char_traits<char16_t>, Allocator<char16_t>>;\n\n // Define a custom wide character string using internal allocator\n using WString = std::basic_string <wchar_t, std::char_traits<wchar_t>, Allocator<wchar_t>>;\n}\n\n#endif" (#ifndef) "#ifndef" (identifier) "JX_MEMORY_H__" (preproc_def) "#define JX_MEMORY_H__\n" (#define) "#define" (identifier) "JX_MEMORY_H__" (function_definition) "namespace Jinx\n{\n // Stand-alone global allocation functions\n void * MemAllocate(size_t bytes);\n void * MemReallocate(void * ptr, size_t bytes);\n void MemFree(void * ptr);\n\n // Jinx allocator for use in STL containers\n template <typename T>\n class Allocator\n {\n public:\n using size_type = size_t;\n using difference_type = ptrdiff_t;\n using pointer = T*;\n using const_pointer = const T*;\n using reference = T&;\n using const_reference = const T&;\n using value_type = T;\n\n Allocator() throw() {};\n Allocator(const Allocator &) throw() { }\n\n template<typename U>\n explicit Allocator(const Allocator<U>&) throw() { }\n\n template<typename U>\n Allocator & operator = ([[maybe_unused]] const Allocator<U> & other) { other; return *this; }\n Allocator & operator = ([[maybe_unused]] const Allocator & other) { other; return *this; }\n ~Allocator() {}\n\n pointer address(reference value) const { return &value; }\n const_pointer address(const_reference value) const { return &value; }\n\n pointer allocate(size_type n) { return static_cast<pointer> (Jinx::MemAllocate(n * sizeof(value_type))); }\n pointer allocate(size_type n, const void *) { return static_cast<pointer> (Jinx::MemAllocate(n * sizeof(value_type))); }\n void deallocate(void* ptr, size_type) { Jinx::MemFree(static_cast<T*> (ptr)); }\n\n template<typename U, typename... Args>\n void construct(U* ptr, Args&& ... args) { ::new ((void*)(ptr)) U(std::forward<Args>(args)...); }\n void construct(pointer ptr, const T& val) { new (static_cast<T*> (ptr)) T(val); }\n\n template<typename U>\n void destroy([[maybe_unused]] U* ptr) { ptr->~U(); }\n void destroy([[maybe_unused]] pointer ptr) { ptr->~T(); }\n\n size_type max_size() const { return std::numeric_limits<std::size_t>::max() / sizeof(T); }\n };\n\n template <typename T>\n bool operator == (const Allocator<T> &, const Allocator<T> &) { return true; }\n template <typename T>\n bool operator != (const Allocator<T> &, const Allocator<T> &) { return false; }\n\n struct GlobalParams;\n void InitializeMemory(const GlobalParams & params);\n\n struct MemoryStats\n {\n uint64_t allocationCount = 0;\n uint64_t freeCount = 0;\n uint64_t allocatedMemory = 0;\n };\n\n MemoryStats GetMemoryStats();\n\n // Define a custom UTF-8 string using internal allocator\n using String = std::basic_string <char, std::char_traits<char>, Allocator<char>>;\n\n // Define a custom UTF-16 string using internal allocator\n using StringU16 = std::basic_string <char16_t, std::char_traits<char16_t>, Allocator<char16_t>>;\n\n // Define a custom wide character string using internal allocator\n using WString = std::basic_string <wchar_t, std::char_traits<wchar_t>, Allocator<wchar_t>>;\n}" (type_identifier) "namespace" (identifier) "Jinx" (compound_statement) "{\n // Stand-alone global allocation functions\n void * MemAllocate(size_t bytes);\n void * MemReallocate(void * ptr, size_t bytes);\n void MemFree(void * ptr);\n\n // Jinx allocator for use in STL containers\n template <typename T>\n class Allocator\n {\n public:\n using size_type = size_t;\n using difference_type = ptrdiff_t;\n using pointer = T*;\n using const_pointer = const T*;\n using reference = T&;\n using const_reference = const T&;\n using value_type = T;\n\n Allocator() throw() {};\n Allocator(const Allocator &) throw() { }\n\n template<typename U>\n explicit Allocator(const Allocator<U>&) throw() { }\n\n template<typename U>\n Allocator & operator = ([[maybe_unused]] const Allocator<U> & other) { other; return *this; }\n Allocator & operator = ([[maybe_unused]] const Allocator & other) { other; return *this; }\n ~Allocator() {}\n\n pointer address(reference value) const { return &value; }\n const_pointer address(const_reference value) const { return &value; }\n\n pointer allocate(size_type n) { return static_cast<pointer> (Jinx::MemAllocate(n * sizeof(value_type))); }\n pointer allocate(size_type n, const void *) { return static_cast<pointer> (Jinx::MemAllocate(n * sizeof(value_type))); }\n void deallocate(void* ptr, size_type) { Jinx::MemFree(static_cast<T*> (ptr)); }\n\n template<typename U, typename... Args>\n void construct(U* ptr, Args&& ... args) { ::new ((void*)(ptr)) U(std::forward<Args>(args)...); }\n void construct(pointer ptr, const T& val) { new (static_cast<T*> (ptr)) T(val); }\n\n template<typename U>\n void destroy([[maybe_unused]] U* ptr) { ptr->~U(); }\n void destroy([[maybe_unused]] pointer ptr) { ptr->~T(); }\n\n size_type max_size() const { return std::numeric_limits<std::size_t>::max() / sizeof(T); }\n };\n\n template <typename T>\n bool operator == (const Allocator<T> &, const Allocator<T> &) { return true; }\n template <typename T>\n bool operator != (const Allocator<T> &, const Allocator<T> &) { return false; }\n\n struct GlobalParams;\n void InitializeMemory(const GlobalParams & params);\n\n struct MemoryStats\n {\n uint64_t allocationCount = 0;\n uint64_t freeCount = 0;\n uint64_t allocatedMemory = 0;\n };\n\n MemoryStats GetMemoryStats();\n\n // Define a custom UTF-8 string using internal allocator\n using String = std::basic_string <char, std::char_traits<char>, Allocator<char>>;\n\n // Define a custom UTF-16 string using internal allocator\n using StringU16 = std::basic_string <char16_t, std::char_traits<char16_t>, Allocator<char16_t>>;\n\n // Define a custom wide character string using internal allocator\n using WString = std::basic_string <wchar_t, std::char_traits<wchar_t>, Allocator<wchar_t>>;\n}" ({) "{" (comment) "// Stand-alone global allocation functions" (declaration) "void * MemAllocate(size_t bytes);" (primitive_type) "void" (pointer_declarator) "* MemAllocate(size_t bytes)" (*) "*" (function_declarator) "MemAllocate(size_t bytes)" (identifier) "MemAllocate" (parameter_list) "(size_t bytes)" (() "(" (parameter_declaration) "size_t bytes" (primitive_type) "size_t" (identifier) "bytes" ()) ")" (;) ";" (declaration) "void * MemReallocate(void * ptr, size_t bytes);" (primitive_type) "void" (pointer_declarator) "* MemReallocate(void * ptr, size_t bytes)" (*) "*" (function_declarator) "MemReallocate(void * ptr, size_t bytes)" (identifier) "MemReallocate" (parameter_list) "(void * ptr, size_t bytes)" (() "(" (parameter_declaration) "void * ptr" (primitive_type) "void" (pointer_declarator) "* ptr" (*) "*" (identifier) "ptr" (,) "," (parameter_declaration) "size_t bytes" (primitive_type) "size_t" (identifier) "bytes" ()) ")" (;) ";" (declaration) "void MemFree(void * ptr);" (primitive_type) "void" (function_declarator) "MemFree(void * ptr)" (identifier) "MemFree" (parameter_list) "(void * ptr)" (() "(" (parameter_declaration) "void * ptr" (primitive_type) "void" (pointer_declarator) "* ptr" (*) "*" (identifier) "ptr" ()) ")" (;) ";" (comment) "// Jinx allocator for use in STL containers" (ERROR) "template <typename T>\n class Allocator" (binary_expression) "template <typename T>\n class" (binary_expression) "template <typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "T" (identifier) "T" (>) ">" (identifier) "class" (identifier) "Allocator" (compound_statement) "{\n public:\n using size_type = size_t;\n using difference_type = ptrdiff_t;\n using pointer = T*;\n using const_pointer = const T*;\n using reference = T&;\n using const_reference = const T&;\n using value_type = T;\n\n Allocator() throw() {};\n Allocator(const Allocator &) throw() { }\n\n template<typename U>\n explicit Allocator(const Allocator<U>&) throw() { }\n\n template<typename U>\n Allocator & operator = ([[maybe_unused]] const Allocator<U> & other) { other; return *this; }\n Allocator & operator = ([[maybe_unused]] const Allocator & other) { other; return *this; }\n ~Allocator() {}\n\n pointer address(reference value) const { return &value; }\n const_pointer address(const_reference value) const { return &value; }\n\n pointer allocate(size_type n) { return static_cast<pointer> (Jinx::MemAllocate(n * sizeof(value_type))); }\n pointer allocate(size_type n, const void *) { return static_cast<pointer> (Jinx::MemAllocate(n * sizeof(value_type))); }\n void deallocate(void* ptr, size_type) { Jinx::MemFree(static_cast<T*> (ptr)); }\n\n template<typename U, typename... Args>\n void construct(U* ptr, Args&& ... args) { ::new ((void*)(ptr)) U(std::forward<Args>(args)...); }" ({) "{" (labeled_statement) "public:\n using size_type = size_t;" (statement_identifier) "public" (:) ":" (declaration) "using size_type = size_t;" (type_identifier) "using" (init_declarator) "size_type = size_t" (identifier) "size_type" (=) "=" (identifier) "size_t" (;) ";" (declaration) "using difference_type = ptrdiff_t;" (type_identifier) "using" (init_declarator) "difference_type = ptrdiff_t" (identifier) "difference_type" (=) "=" (identifier) "ptrdiff_t" (;) ";" (declaration) "using pointer = T*;" (type_identifier) "using" (init_declarator) "pointer = T" (identifier) "pointer" (=) "=" (identifier) "T" (ERROR) "*" (*) "*" (;) ";" (declaration) "using const_pointer = const T*;" (type_identifier) "using" (init_declarator) "const_pointer = const" (identifier) "const_pointer" (=) "=" (identifier) "const" (ERROR) "T*" (identifier) "T" (*) "*" (;) ";" (declaration) "using reference = T&;" (type_identifier) "using" (init_declarator) "reference = T" (identifier) "reference" (=) "=" (identifier) "T" (ERROR) "&" (&) "&" (;) ";" (declaration) "using const_reference = const T&;" (type_identifier) "using" (init_declarator) "const_reference = const" (identifier) "const_reference" (=) "=" (identifier) "const" (ERROR) "T&" (identifier) "T" (&) "&" (;) ";" (declaration) "using value_type = T;" (type_identifier) "using" (init_declarator) "value_type = T" (identifier) "value_type" (=) "=" (identifier) "T" (;) ";" (expression_statement) "Allocator()" (call_expression) "Allocator()" (identifier) "Allocator" (argument_list) "()" (() "(" ()) ")" (;) "" (expression_statement) "throw()" (call_expression) "throw()" (identifier) "throw" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{}" ({) "{" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "Allocator(const Allocator &) throw() { }" (macro_type_specifier) "Allocator(const Allocator &)" (identifier) "Allocator" (() "(" (type_descriptor) "const Allocator" (type_qualifier) "const" (const) "const" (type_identifier) "Allocator" (ERROR) "&" (&) "&" ()) ")" (function_declarator) "throw()" (identifier) "throw" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ }" ({) "{" (}) "}" (expression_statement) "template<typename U>\n explicit" (binary_expression) "template<typename U>\n explicit" (binary_expression) "template<typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "U" (identifier) "U" (>) ">" (identifier) "explicit" (;) "" (expression_statement) "Allocator(const Allocator<U>&) throw()" (binary_expression) "Allocator(const Allocator<U>&) throw()" (binary_expression) "Allocator(const Allocator<U" (identifier) "Allocator" (ERROR) "(const Allocator" (() "(" (type_descriptor) "const Allocator" (type_qualifier) "const" (const) "const" (type_identifier) "Allocator" (<) "<" (identifier) "U" (>) ">" (pointer_expression) "&) throw()" (&) "&" (ERROR) ")" ()) ")" (call_expression) "throw()" (identifier) "throw" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{ }" ({) "{" (}) "}" (expression_statement) "template<typename U>\n Allocator & operator = ([[maybe_unused]] const Allocator<U> & other)" (binary_expression) "template<typename U>\n Allocator & operator = ([[maybe_unused]] const Allocator<U> & other)" (binary_expression) "template<typename U>\n Allocator" (binary_expression) "template<typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "U" (identifier) "U" (>) ">" (identifier) "Allocator" (&) "&" (assignment_expression) "operator = ([[maybe_unused]] const Allocator<U> & other)" (identifier) "operator" (=) "=" (parenthesized_expression) "([[maybe_unused]] const Allocator<U> & other)" (() "(" (ERROR) "[[maybe_unused]] const" ([[) "[[" (type_descriptor) "maybe_unused]] const" (type_identifier) "maybe_unused" (ERROR) "]]" (]) "]" (]) "]" (type_qualifier) "const" (const) "const" (binary_expression) "Allocator<U> & other" (binary_expression) "Allocator<U" (identifier) "Allocator" (<) "<" (identifier) "U" (>) ">" (pointer_expression) "& other" (&) "&" (identifier) "other" ()) ")" (;) "" (compound_statement) "{ other; return *this; }" ({) "{" (expression_statement) "other;" (identifier) "other" (;) ";" (return_statement) "return *this;" (return) "return" (pointer_expression) "*this" (*) "*" (identifier) "this" (;) ";" (}) "}" (expression_statement) "Allocator & operator = ([[maybe_unused]] const Allocator & other)" (binary_expression) "Allocator & operator = ([[maybe_unused]] const Allocator & other)" (identifier) "Allocator" (&) "&" (assignment_expression) "operator = ([[maybe_unused]] const Allocator & other)" (identifier) "operator" (=) "=" (parenthesized_expression) "([[maybe_unused]] const Allocator & other)" (() "(" (ERROR) "[[maybe_unused]] const" ([[) "[[" (type_descriptor) "maybe_unused]] const" (type_identifier) "maybe_unused" (ERROR) "]]" (]) "]" (]) "]" (type_qualifier) "const" (const) "const" (binary_expression) "Allocator & other" (identifier) "Allocator" (&) "&" (identifier) "other" ()) ")" (;) "" (compound_statement) "{ other; return *this; }" ({) "{" (expression_statement) "other;" (identifier) "other" (;) ";" (return_statement) "return *this;" (return) "return" (pointer_expression) "*this" (*) "*" (identifier) "this" (;) ";" (}) "}" (expression_statement) "~Allocator()" (unary_expression) "~Allocator()" (~) "~" (call_expression) "Allocator()" (identifier) "Allocator" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{}" ({) "{" (}) "}" (function_definition) "pointer address(reference value) const { return &value; }" (type_identifier) "pointer" (function_declarator) "address(reference value) const" (identifier) "address" (parameter_list) "(reference value)" (() "(" (parameter_declaration) "reference value" (type_identifier) "reference" (identifier) "value" ()) ")" (identifier) "const" (compound_statement) "{ return &value; }" ({) "{" (return_statement) "return &value;" (return) "return" (pointer_expression) "&value" (&) "&" (identifier) "value" (;) ";" (}) "}" (function_definition) "const_pointer address(const_reference value) const { return &value; }" (type_identifier) "const_pointer" (function_declarator) "address(const_reference value) const" (identifier) "address" (parameter_list) "(const_reference value)" (() "(" (parameter_declaration) "const_reference value" (type_identifier) "const_reference" (identifier) "value" ()) ")" (identifier) "const" (compound_statement) "{ return &value; }" ({) "{" (return_statement) "return &value;" (return) "return" (pointer_expression) "&value" (&) "&" (identifier) "value" (;) ";" (}) "}" (function_definition) "pointer allocate(size_type n) { return static_cast<pointer> (Jinx::MemAllocate(n * sizeof(value_type))); }" (type_identifier) "pointer" (function_declarator) "allocate(size_type n)" (identifier) "allocate" (parameter_list) "(size_type n)" (() "(" (parameter_declaration) "size_type n" (type_identifier) "size_type" (identifier) "n" ()) ")" (compound_statement) "{ return static_cast<pointer> (Jinx::MemAllocate(n * sizeof(value_type))); }" ({) "{" (return_statement) "return static_cast<pointer> (Jinx::MemAllocate(n * sizeof(value_type)));" (return) "return" (binary_expression) "static_cast<pointer> (Jinx::MemAllocate(n * sizeof(value_type)))" (binary_expression) "static_cast<pointer" (identifier) "static_cast" (<) "<" (identifier) "pointer" (>) ">" (parenthesized_expression) "(Jinx::MemAllocate(n * sizeof(value_type)))" (() "(" (ERROR) "Jinx::" (identifier) "Jinx" (:) ":" (:) ":" (call_expression) "MemAllocate(n * sizeof(value_type))" (identifier) "MemAllocate" (argument_list) "(n * sizeof(value_type))" (() "(" (binary_expression) "n * sizeof(value_type)" (identifier) "n" (*) "*" (sizeof_expression) "sizeof(value_type)" (sizeof) "sizeof" (parenthesized_expression) "(value_type)" (() "(" (identifier) "value_type" ()) ")" ()) ")" ()) ")" (;) ";" (}) "}" (function_definition) "pointer allocate(size_type n, const void *) { return static_cast<pointer> (Jinx::MemAllocate(n * sizeof(value_type))); }" (type_identifier) "pointer" (function_declarator) "allocate(size_type n, const void *)" (identifier) "allocate" (parameter_list) "(size_type n, const void *)" (() "(" (parameter_declaration) "size_type n" (type_identifier) "size_type" (identifier) "n" (,) "," (parameter_declaration) "const void *" (type_qualifier) "const" (const) "const" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (compound_statement) "{ return static_cast<pointer> (Jinx::MemAllocate(n * sizeof(value_type))); }" ({) "{" (return_statement) "return static_cast<pointer> (Jinx::MemAllocate(n * sizeof(value_type)));" (return) "return" (binary_expression) "static_cast<pointer> (Jinx::MemAllocate(n * sizeof(value_type)))" (binary_expression) "static_cast<pointer" (identifier) "static_cast" (<) "<" (identifier) "pointer" (>) ">" (parenthesized_expression) "(Jinx::MemAllocate(n * sizeof(value_type)))" (() "(" (ERROR) "Jinx::" (identifier) "Jinx" (:) ":" (:) ":" (call_expression) "MemAllocate(n * sizeof(value_type))" (identifier) "MemAllocate" (argument_list) "(n * sizeof(value_type))" (() "(" (binary_expression) "n * sizeof(value_type)" (identifier) "n" (*) "*" (sizeof_expression) "sizeof(value_type)" (sizeof) "sizeof" (parenthesized_expression) "(value_type)" (() "(" (identifier) "value_type" ()) ")" ()) ")" ()) ")" (;) ";" (}) "}" (function_definition) "void deallocate(void* ptr, size_type) { Jinx::MemFree(static_cast<T*> (ptr)); }" (primitive_type) "void" (function_declarator) "deallocate(void* ptr, size_type)" (identifier) "deallocate" (parameter_list) "(void* ptr, size_type)" (() "(" (parameter_declaration) "void* ptr" (primitive_type) "void" (pointer_declarator) "* ptr" (*) "*" (identifier) "ptr" (,) "," (parameter_declaration) "size_type" (type_identifier) "size_type" ()) ")" (compound_statement) "{ Jinx::MemFree(static_cast<T*> (ptr)); }" ({) "{" (labeled_statement) "Jinx::MemFree(static_cast<T*> (ptr));" (statement_identifier) "Jinx" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "MemFree(static_cast<T*> (ptr));" (call_expression) "MemFree(static_cast<T*> (ptr))" (identifier) "MemFree" (argument_list) "(static_cast<T*> (ptr))" (() "(" (binary_expression) "static_cast<T*> (ptr)" (binary_expression) "static_cast<T" (identifier) "static_cast" (<) "<" (identifier) "T" (ERROR) "*" (*) "*" (>) ">" (parenthesized_expression) "(ptr)" (() "(" (identifier) "ptr" ()) ")" ()) ")" (;) ";" (}) "}" (expression_statement) "template<typename U, typename... Args>\n void construct(U* ptr, Args&& ... args) { ::new ((void*)(ptr)) U(std::forward<Args>(args)...);" (comma_expression) "template<typename U, typename... Args>\n void construct(U* ptr, Args&& ... args) { ::new ((void*)(ptr)) U(std::forward<Args>(args)...)" (binary_expression) "template<typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "U" (identifier) "U" (,) "," (binary_expression) "typename... Args>\n void construct(U* ptr, Args&& ... args) { ::new ((void*)(ptr)) U(std::forward<Args>(args)...)" (identifier) "typename" (ERROR) "... Args" (...) "..." (identifier) "Args" (>) ">" (ERROR) "void construct(U* ptr, Args&& ... args) { ::new ((void*)(ptr))" (identifier) "void" (call_expression) "construct(U* ptr, Args&& ... args)" (identifier) "construct" (argument_list) "(U* ptr, Args&& ... args)" (() "(" (binary_expression) "U* ptr" (identifier) "U" (*) "*" (identifier) "ptr" (,) "," (binary_expression) "Args&& ... args" (identifier) "Args" (&&) "&&" (ERROR) "..." (.) "." (.) "." (.) "." (identifier) "args" ()) ")" ({) "{" (:) ":" (:) ":" (call_expression) "new ((void*)(ptr))" (identifier) "new" (argument_list) "((void*)(ptr))" (() "(" (cast_expression) "(void*)(ptr)" (() "(" (type_descriptor) "void*" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (parenthesized_expression) "(ptr)" (() "(" (identifier) "ptr" ()) ")" ()) ")" (call_expression) "U(std::forward<Args>(args)...)" (identifier) "U" (argument_list) "(std::forward<Args>(args)...)" (() "(" (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (binary_expression) "forward<Args>(args)" (binary_expression) "forward<Args" (identifier) "forward" (<) "<" (identifier) "Args" (>) ">" (parenthesized_expression) "(args)" (() "(" (identifier) "args" ()) ")" (ERROR) "..." (...) "..." ()) ")" (;) ";" (}) "}" (function_definition) "void construct(pointer ptr, const T& val) { new (static_cast<T*> (ptr)) T(val); }" (primitive_type) "void" (function_declarator) "construct(pointer ptr, const T& val)" (identifier) "construct" (parameter_list) "(pointer ptr, const T& val)" (() "(" (parameter_declaration) "pointer ptr" (type_identifier) "pointer" (identifier) "ptr" (,) "," (parameter_declaration) "const T& val" (type_qualifier) "const" (const) "const" (type_identifier) "T" (ERROR) "&" (&) "&" (identifier) "val" ()) ")" (compound_statement) "{ new (static_cast<T*> (ptr)) T(val); }" ({) "{" (expression_statement) "new (static_cast<T*> (ptr))" (call_expression) "new (static_cast<T*> (ptr))" (identifier) "new" (argument_list) "(static_cast<T*> (ptr))" (() "(" (binary_expression) "static_cast<T*> (ptr)" (binary_expression) "static_cast<T" (identifier) "static_cast" (<) "<" (identifier) "T" (ERROR) "*" (*) "*" (>) ">" (parenthesized_expression) "(ptr)" (() "(" (identifier) "ptr" ()) ")" ()) ")" (;) "" (expression_statement) "T(val);" (call_expression) "T(val)" (identifier) "T" (argument_list) "(val)" (() "(" (identifier) "val" ()) ")" (;) ";" (}) "}" (ERROR) "template<typename U>\n void destroy(" (binary_expression) "template<typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "U" (identifier) "U" (>) ">" (ERROR) "void" (identifier) "void" (identifier) "destroy" (() "(" (function_definition) "[[maybe_unused]] U* ptr) { ptr->~U(); }" (attribute_declaration) "[[maybe_unused]]" ([[) "[[" (attribute) "maybe_unused" (identifier) "maybe_unused" (]]) "]]" (type_identifier) "U" (pointer_declarator) "* ptr" (*) "*" (identifier) "ptr" (ERROR) ")" ()) ")" (compound_statement) "{ ptr->~U(); }" ({) "{" (expression_statement) "ptr->~U();" (call_expression) "ptr->~U()" (field_expression) "ptr->~U" (identifier) "ptr" (->) "->" (ERROR) "~" (~) "~" (field_identifier) "U" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (function_definition) "void destroy([[maybe_unused]] pointer ptr) { ptr->~T(); }" (primitive_type) "void" (function_declarator) "destroy([[maybe_unused]] pointer ptr)" (identifier) "destroy" (parameter_list) "([[maybe_unused]] pointer ptr)" (() "(" (parameter_declaration) "[[maybe_unused]] pointer ptr" (attribute_declaration) "[[maybe_unused]]" ([[) "[[" (attribute) "maybe_unused" (identifier) "maybe_unused" (]]) "]]" (type_identifier) "pointer" (identifier) "ptr" ()) ")" (compound_statement) "{ ptr->~T(); }" ({) "{" (expression_statement) "ptr->~T();" (call_expression) "ptr->~T()" (field_expression) "ptr->~T" (identifier) "ptr" (->) "->" (ERROR) "~" (~) "~" (field_identifier) "T" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (ERROR) "size_type max_size() const { return std::numeric_limits<std::size_t>::max() / sizeof(T); }\n };\n\n template <typename T>\n bool operator == (const Allocator<T> &, const Allocator<T> &) { return true; }\n template <typename T>\n bool operator != (const Allocator<T> &, const Allocator<T> &) { return false; }\n\n struct GlobalParams;\n void InitializeMemory(const GlobalParams & params);\n\n struct MemoryStats\n {\n uint64_t allocationCount = 0;\n uint64_t freeCount = 0;\n uint64_t allocatedMemory = 0;\n };\n\n MemoryStats GetMemoryStats();\n\n // Define a custom UTF-8 string using internal allocator\n using String = std::basic_string <char, std::char_traits<char>, Allocator<char>>;\n\n // Define a custom UTF-16 string using internal allocator\n using StringU16 = std::basic_string <char16_t, std::char_traits<char16_t>, Allocator<char16_t>>;\n\n // Define a custom wide character string using internal allocator\n using WString = std::basic_string <wchar_t, std::char_traits<wchar_t>, Allocator<wchar_t>>;" (type_identifier) "size_type" (function_declarator) "max_size()" (identifier) "max_size" (parameter_list) "()" (() "(" ()) ")" (declaration) "const { return std::numeric_limits<std::size_t>::max() / sizeof(T); }\n };\n\n template <typename T>\n bool operator == (const Allocator<T> &, const Allocator<T> &) { return true; }\n template <typename T>\n bool operator != (const Allocator<T> &, const Allocator<T> &) { return false; }\n\n struct GlobalParams;" (type_qualifier) "const" (const) "const" (ERROR) "{ return" ({) "{" (return) "return" (type_identifier) "std" (ERROR) "::numeric_limits<std::size_t>::max() / sizeof(T); }\n };\n\n template <typename T>\n bool operator == (const Allocator<T> &, const Allocator<T> &) { return true; }\n template <typename T>\n bool operator != (const Allocator<T> &, const Allocator<T> &) { return false; }\n\n struct" (:) ":" (:) ":" (identifier) "numeric_limits" (<) "<" (identifier) "std" (:) ":" (:) ":" (primitive_type) "size_t" (>) ">" (:) ":" (:) ":" (function_declarator) "max() / sizeof(T" (identifier) "max" (parameter_list) "()" (() "(" ()) ")" (ERROR) "/ sizeof(" (/) "/" (sizeof) "sizeof" (() "(" (identifier) "T" ()) ")" (;) ";" (}) "}" (}) "}" (;) ";" (identifier) "template" (<) "<" (identifier) "typename" (identifier) "T" (>) ">" (primitive_type) "bool" (function_declarator) "operator == (const Allocator<T> &, const Allocator<T> &)" (identifier) "operator" (ERROR) "==" (==) "==" (parameter_list) "(const Allocator<T> &, const Allocator<T> &)" (() "(" (parameter_declaration) "const Allocator<T" (type_qualifier) "const" (const) "const" (type_identifier) "Allocator" (ERROR) "<" (<) "<" (identifier) "T" (ERROR) "> &" (>) ">" (&) "&" (,) "," (parameter_declaration) "const Allocator<T" (type_qualifier) "const" (const) "const" (type_identifier) "Allocator" (ERROR) "<" (<) "<" (identifier) "T" (ERROR) "> &" (>) ">" (&) "&" ()) ")" ({) "{" (return) "return" (true) "true" (;) ";" (}) "}" (identifier) "template" (<) "<" (identifier) "typename" (identifier) "T" (>) ">" (primitive_type) "bool" (function_declarator) "operator != (const Allocator<T> &, const Allocator<T> &)" (identifier) "operator" (ERROR) "!=" (!=) "!=" (parameter_list) "(const Allocator<T> &, const Allocator<T> &)" (() "(" (parameter_declaration) "const Allocator<T" (type_qualifier) "const" (const) "const" (type_identifier) "Allocator" (ERROR) "<" (<) "<" (identifier) "T" (ERROR) "> &" (>) ">" (&) "&" (,) "," (parameter_declaration) "const Allocator<T" (type_qualifier) "const" (const) "const" (type_identifier) "Allocator" (ERROR) "<" (<) "<" (identifier) "T" (ERROR) "> &" (>) ">" (&) "&" ()) ")" ({) "{" (return) "return" (false) "false" (;) ";" (}) "}" (struct) "struct" (identifier) "GlobalParams" (;) ";" (declaration) "void InitializeMemory(const GlobalParams & params);" (primitive_type) "void" (function_declarator) "InitializeMemory(const GlobalParams & params)" (identifier) "InitializeMemory" (parameter_list) "(const GlobalParams & params)" (() "(" (parameter_declaration) "const GlobalParams & params" (type_qualifier) "const" (const) "const" (type_identifier) "GlobalParams" (ERROR) "&" (&) "&" (identifier) "params" ()) ")" (;) ";" (declaration) "struct MemoryStats\n {\n uint64_t allocationCount = 0;\n uint64_t freeCount = 0;\n uint64_t allocatedMemory = 0;\n };" (struct_specifier) "struct MemoryStats\n {\n uint64_t allocationCount = 0;\n uint64_t freeCount = 0;\n uint64_t allocatedMemory = 0;\n }" (struct) "struct" (type_identifier) "MemoryStats" (field_declaration_list) "{\n uint64_t allocationCount = 0;\n uint64_t freeCount = 0;\n uint64_t allocatedMemory = 0;\n }" ({) "{" (field_declaration) "uint64_t allocationCount = 0;" (primitive_type) "uint64_t" (field_identifier) "allocationCount" (ERROR) "= 0" (=) "=" (number_literal) "0" (;) ";" (field_declaration) "uint64_t freeCount = 0;" (primitive_type) "uint64_t" (field_identifier) "freeCount" (ERROR) "= 0" (=) "=" (number_literal) "0" (;) ";" (field_declaration) "uint64_t allocatedMemory = 0;" (primitive_type) "uint64_t" (field_identifier) "allocatedMemory" (ERROR) "= 0" (=) "=" (number_literal) "0" (;) ";" (}) "}" (identifier) "" (;) ";" (declaration) "MemoryStats GetMemoryStats();" (type_identifier) "MemoryStats" (function_declarator) "GetMemoryStats()" (identifier) "GetMemoryStats" (parameter_list) "()" (() "(" ()) ")" (;) ";" (comment) "// Define a custom UTF-8 string using internal allocator" (declaration) "using String = std::basic_string <char, std::char_traits<char>, Allocator<char>>;" (type_identifier) "using" (init_declarator) "String = std::basic_string <char" (identifier) "String" (=) "=" (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (binary_expression) "basic_string <char" (identifier) "basic_string" (<) "<" (identifier) "char" (,) "," (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (identifier) "char_traits" (ERROR) "<char>" (<) "<" (primitive_type) "char" (>) ">" (,) "," (identifier) "Allocator" (ERROR) "<char>>" (<) "<" (primitive_type) "char" (>>) ">>" (;) ";" (comment) "// Define a custom UTF-16 string using internal allocator" (declaration) "using StringU16 = std::basic_string <char16_t, std::char_traits<char16_t>, Allocator<char16_t>>;" (type_identifier) "using" (init_declarator) "StringU16 = std::basic_string <char16_t" (identifier) "StringU16" (=) "=" (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (binary_expression) "basic_string <char16_t" (identifier) "basic_string" (<) "<" (identifier) "char16_t" (,) "," (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (identifier) "char_traits" (ERROR) "<char16_t>" (<) "<" (primitive_type) "char16_t" (>) ">" (,) "," (identifier) "Allocator" (ERROR) "<char16_t>>" (<) "<" (primitive_type) "char16_t" (>>) ">>" (;) ";" (comment) "// Define a custom wide character string using internal allocator" (declaration) "using WString = std::basic_string <wchar_t, std::char_traits<wchar_t>, Allocator<wchar_t>>;" (type_identifier) "using" (init_declarator) "WString = std::basic_string <wchar_t" (identifier) "WString" (=) "=" (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (binary_expression) "basic_string <wchar_t" (identifier) "basic_string" (<) "<" (identifier) "wchar_t" (,) "," (ERROR) "std::char_traits<" (identifier) "std" (:) ":" (:) ":" (identifier) "char_traits" (<) "<" (identifier) "wchar_t" (ERROR) ">" (>) ">" (,) "," (identifier) "Allocator" (ERROR) "<wchar_t>>" (<) "<" (identifier) "wchar_t" (>>) ">>" (;) ";" (}) "}" (#endif) "#endif" (comment) "// JX_MEMORY_H__"
950
63
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 41.06, "nodes": 603, "errors": 0, "source_hash": "4c7d806d299b2a84c0b2924cc712ac623652ad27b10d69737dd87e390c54006f", "categorized_nodes": 363}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once", "parent": 0, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 12}}, {"id": 3, "type": "preproc_ifdef", "text": "#ifndef JX_MEMORY_H__\n#define JX_MEMORY_H__\n\nnamespace Jinx\n{\n\t// Stand-alone global allocation functions\n\tvoid * MemAllocate(size_t bytes);\n\tvoid * MemReallocate(void * ptr, size_t bytes);\n\tvoid MemFree(void * ptr);\n\n\t// Jinx allocator for use in STL containers\n\ttemplate <typename T>\n\tclass Allocator\n\t{\n\tpublic:\n\t\tusing size_type = size_t;\n\t\tusing difference_type = ptrdiff_t;\n\t\tusing pointer = T*;\n\t\tusing const_pointer = const T*;\n\t\tusing reference = T&;\n\t\tusing const_reference = const T&;\n\t\tusing value_type = T;\n\n\t\tAllocator() throw() {};\n\t\tAllocator(const Allocator &) throw() { }\n\n\t\ttemplate<typename U>\n\t\texplicit Allocator(const Allocator<U>&) throw() { }\n\n\t\ttemplate<typename U>\n\t\tAllocator & operator = ([[maybe_unused]] const Allocator<U> & other) { other; return *this; }\n\t\tAllocator & operator = ([[maybe_unused]] const Allocator & other) { other; return *this; }\n\t\t~Allocator() {}\n\n\t\tpointer address(reference value) const { return &value; }\n\t\tconst_pointer address(const_reference value) const { return &value; }\n\n\t\tpointer allocate(size_type n) { return static_cast<pointer> (Jinx::MemAllocate(n * sizeof(value_type))); }\n\t\tpointer allocate(size_type n, const void *) { return static_cast<pointer> (Jinx::MemAllocate(n * sizeof(value_type))); }\n\t\tvoid deallocate(void* ptr, size_type) { Jinx::MemFree(static_cast<T*> (ptr)); }\n\n\t\ttemplate<typename U, typename... Args>\n\t\tvoid construct(U* ptr, Args&& ... args) { ::new ((void*)(ptr)) U(std::forward<Args>(args)...); }\n\t\tvoid construct(pointer ptr, const T& val) { new (static_cast<T*> (ptr)) T(val); }\n\n\t\ttemplate<typename U>\n\t\tvoid destroy([[maybe_unused]] U* ptr) { ptr->~U(); }\n\t\tvoid destroy([[maybe_unused]] pointer ptr) { ptr->~T(); }\n\n\t\tsize_type max_size() const { return std::numeric_limits<std::size_t>::max() / sizeof(T); }\n\t};\n\n\ttemplate <typename T>\n\tbool operator == (const Allocator<T> &, const Allocator<T> &) { return true; }\n\ttemplate <typename T>\n\tbool operator != (const Allocator<T> &, const Allocator<T> &) { return false; }\n\n\tstruct GlobalParams;\n\tvoid InitializeMemory(const GlobalParams & params);\n\n\tstruct MemoryStats\n\t{\n\t\tuint64_t allocationCount = 0;\n\t\tuint64_t freeCount = 0;\n\t\tuint64_t allocatedMemory = 0;\n\t};\n\n\tMemoryStats GetMemoryStats();\n\n\t// Define a custom UTF-8 string using internal allocator\n\tusing String = std::basic_string <char, std::char_traits<char>, Allocator<char>>;\n\n\t// Define a custom UTF-16 string using internal allocator\n\tusing StringU16 = std::basic_string <char16_t, std::char_traits<char16_t>, Allocator<char16_t>>;\n\n\t// Define a custom wide character string using internal allocator\n\tusing WString = std::basic_string <wchar_t, std::char_traits<wchar_t>, Allocator<wchar_t>>;\n}\n\n#endif", "parent": null, "children": [4, 5, 6, 9, 602], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 87, "column": 6}}, {"id": 4, "type": "#ifndef", "text": "#ifndef", "parent": 3, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 5, "type": "identifier", "text": "JX_MEMORY_H__", "parent": 3, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 21}}, {"id": 6, "type": "preproc_def", "text": "#define JX_MEMORY_H__\n", "parent": 3, "children": [7, 8], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 7, "type": "#define", "text": "#define", "parent": 6, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 8, "type": "identifier", "text": "JX_MEMORY_H__", "parent": 6, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 21}}, {"id": 9, "type": "function_definition", "text": "namespace Jinx\n{\n\t// Stand-alone global allocation functions\n\tvoid * MemAllocate(size_t bytes);\n\tvoid * MemReallocate(void * ptr, size_t bytes);\n\tvoid MemFree(void * ptr);\n\n\t// Jinx allocator for use in STL containers\n\ttemplate <typename T>\n\tclass Allocator\n\t{\n\tpublic:\n\t\tusing size_type = size_t;\n\t\tusing difference_type = ptrdiff_t;\n\t\tusing pointer = T*;\n\t\tusing const_pointer = const T*;\n\t\tusing reference = T&;\n\t\tusing const_reference = const T&;\n\t\tusing value_type = T;\n\n\t\tAllocator() throw() {};\n\t\tAllocator(const Allocator &) throw() { }\n\n\t\ttemplate<typename U>\n\t\texplicit Allocator(const Allocator<U>&) throw() { }\n\n\t\ttemplate<typename U>\n\t\tAllocator & operator = ([[maybe_unused]] const Allocator<U> & other) { other; return *this; }\n\t\tAllocator & operator = ([[maybe_unused]] const Allocator & other) { other; return *this; }\n\t\t~Allocator() {}\n\n\t\tpointer address(reference value) const { return &value; }\n\t\tconst_pointer address(const_reference value) const { return &value; }\n\n\t\tpointer allocate(size_type n) { return static_cast<pointer> (Jinx::MemAllocate(n * sizeof(value_type))); }\n\t\tpointer allocate(size_type n, const void *) { return static_cast<pointer> (Jinx::MemAllocate(n * sizeof(value_type))); }\n\t\tvoid deallocate(void* ptr, size_type) { Jinx::MemFree(static_cast<T*> (ptr)); }\n\n\t\ttemplate<typename U, typename... Args>\n\t\tvoid construct(U* ptr, Args&& ... args) { ::new ((void*)(ptr)) U(std::forward<Args>(args)...); }\n\t\tvoid construct(pointer ptr, const T& val) { new (static_cast<T*> (ptr)) T(val); }\n\n\t\ttemplate<typename U>\n\t\tvoid destroy([[maybe_unused]] U* ptr) { ptr->~U(); }\n\t\tvoid destroy([[maybe_unused]] pointer ptr) { ptr->~T(); }\n\n\t\tsize_type max_size() const { return std::numeric_limits<std::size_t>::max() / sizeof(T); }\n\t};\n\n\ttemplate <typename T>\n\tbool operator == (const Allocator<T> &, const Allocator<T> &) { return true; }\n\ttemplate <typename T>\n\tbool operator != (const Allocator<T> &, const Allocator<T> &) { return false; }\n\n\tstruct GlobalParams;\n\tvoid InitializeMemory(const GlobalParams & params);\n\n\tstruct MemoryStats\n\t{\n\t\tuint64_t allocationCount = 0;\n\t\tuint64_t freeCount = 0;\n\t\tuint64_t allocatedMemory = 0;\n\t};\n\n\tMemoryStats GetMemoryStats();\n\n\t// Define a custom UTF-8 string using internal allocator\n\tusing String = std::basic_string <char, std::char_traits<char>, Allocator<char>>;\n\n\t// Define a custom UTF-16 string using internal allocator\n\tusing StringU16 = std::basic_string <char16_t, std::char_traits<char16_t>, Allocator<char16_t>>;\n\n\t// Define a custom wide character string using internal allocator\n\tusing WString = std::basic_string <wchar_t, std::char_traits<wchar_t>, Allocator<wchar_t>>;\n}", "parent": 3, "children": [10, 11], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 85, "column": 1}}, {"id": 10, "type": "type_identifier", "text": "namespace", "parent": 9, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 9}}, {"id": 11, "type": "identifier", "text": "Jinx", "parent": 9, "children": [], "start_point": {"row": 11, "column": 10}, "end_point": {"row": 11, "column": 14}}, {"id": 12, "type": "declaration", "text": "void * MemAllocate(size_t bytes);", "parent": 9, "children": [13, 14], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 34}}, {"id": 13, "type": "primitive_type", "text": "void", "parent": 12, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 5}}, {"id": 14, "type": "pointer_declarator", "text": "* MemAllocate(size_t bytes)", "parent": 12, "children": [15, 16], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 14, "column": 33}}, {"id": 15, "type": "*", "text": "*", "parent": 14, "children": [], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 14, "column": 7}}, {"id": 16, "type": "function_declarator", "text": "MemAllocate(size_t bytes)", "parent": 14, "children": [17, 18], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 33}}, {"id": 17, "type": "identifier", "text": "MemAllocate", "parent": 16, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 19}}, {"id": 18, "type": "parameter_list", "text": "(size_t bytes)", "parent": 16, "children": [19], "start_point": {"row": 14, "column": 19}, "end_point": {"row": 14, "column": 33}}, {"id": 19, "type": "parameter_declaration", "text": "size_t bytes", "parent": 18, "children": [20, 21], "start_point": {"row": 14, "column": 20}, "end_point": {"row": 14, "column": 32}}, {"id": 20, "type": "primitive_type", "text": "size_t", "parent": 19, "children": [], "start_point": {"row": 14, "column": 20}, "end_point": {"row": 14, "column": 26}}, {"id": 21, "type": "identifier", "text": "bytes", "parent": 19, "children": [], "start_point": {"row": 14, "column": 27}, "end_point": {"row": 14, "column": 32}}, {"id": 22, "type": "declaration", "text": "void * MemReallocate(void * ptr, size_t bytes);", "parent": 9, "children": [23, 24], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 48}}, {"id": 23, "type": "primitive_type", "text": "void", "parent": 22, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 5}}, {"id": 24, "type": "pointer_declarator", "text": "* MemReallocate(void * ptr, size_t bytes)", "parent": 22, "children": [25, 26], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 47}}, {"id": 25, "type": "*", "text": "*", "parent": 24, "children": [], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 7}}, {"id": 26, "type": "function_declarator", "text": "MemReallocate(void * ptr, size_t bytes)", "parent": 24, "children": [27, 28], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 47}}, {"id": 27, "type": "identifier", "text": "MemReallocate", "parent": 26, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 21}}, {"id": 28, "type": "parameter_list", "text": "(void * ptr, size_t bytes)", "parent": 26, "children": [29, 34], "start_point": {"row": 15, "column": 21}, "end_point": {"row": 15, "column": 47}}, {"id": 29, "type": "parameter_declaration", "text": "void * ptr", "parent": 28, "children": [30, 31], "start_point": {"row": 15, "column": 22}, "end_point": {"row": 15, "column": 32}}, {"id": 30, "type": "primitive_type", "text": "void", "parent": 29, "children": [], "start_point": {"row": 15, "column": 22}, "end_point": {"row": 15, "column": 26}}, {"id": 31, "type": "pointer_declarator", "text": "* ptr", "parent": 29, "children": [32, 33], "start_point": {"row": 15, "column": 27}, "end_point": {"row": 15, "column": 32}}, {"id": 32, "type": "*", "text": "*", "parent": 31, "children": [], "start_point": {"row": 15, "column": 27}, "end_point": {"row": 15, "column": 28}}, {"id": 33, "type": "identifier", "text": "ptr", "parent": 31, "children": [], "start_point": {"row": 15, "column": 29}, "end_point": {"row": 15, "column": 32}}, {"id": 34, "type": "parameter_declaration", "text": "size_t bytes", "parent": 28, "children": [35, 36], "start_point": {"row": 15, "column": 34}, "end_point": {"row": 15, "column": 46}}, {"id": 35, "type": "primitive_type", "text": "size_t", "parent": 34, "children": [], "start_point": {"row": 15, "column": 34}, "end_point": {"row": 15, "column": 40}}, {"id": 36, "type": "identifier", "text": "bytes", "parent": 34, "children": [], "start_point": {"row": 15, "column": 41}, "end_point": {"row": 15, "column": 46}}, {"id": 37, "type": "declaration", "text": "void MemFree(void * ptr);", "parent": 9, "children": [38, 39], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 26}}, {"id": 38, "type": "primitive_type", "text": "void", "parent": 37, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 5}}, {"id": 39, "type": "function_declarator", "text": "MemFree(void * ptr)", "parent": 37, "children": [40, 41], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 25}}, {"id": 40, "type": "identifier", "text": "MemFree", "parent": 39, "children": [], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 13}}, {"id": 41, "type": "parameter_list", "text": "(void * ptr)", "parent": 39, "children": [42], "start_point": {"row": 16, "column": 13}, "end_point": {"row": 16, "column": 25}}, {"id": 42, "type": "parameter_declaration", "text": "void * ptr", "parent": 41, "children": [43, 44], "start_point": {"row": 16, "column": 14}, "end_point": {"row": 16, "column": 24}}, {"id": 43, "type": "primitive_type", "text": "void", "parent": 42, "children": [], "start_point": {"row": 16, "column": 14}, "end_point": {"row": 16, "column": 18}}, {"id": 44, "type": "pointer_declarator", "text": "* ptr", "parent": 42, "children": [45, 46], "start_point": {"row": 16, "column": 19}, "end_point": {"row": 16, "column": 24}}, {"id": 45, "type": "*", "text": "*", "parent": 44, "children": [], "start_point": {"row": 16, "column": 19}, "end_point": {"row": 16, "column": 20}}, {"id": 46, "type": "identifier", "text": "ptr", "parent": 44, "children": [], "start_point": {"row": 16, "column": 21}, "end_point": {"row": 16, "column": 24}}, {"id": 47, "type": "ERROR", "text": "template <typename T>\n\tclass Allocator", "parent": 9, "children": [48, 56], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 20, "column": 16}}, {"id": 48, "type": "binary_expression", "text": "template <typename T>\n\tclass", "parent": 47, "children": [49, 53, 55], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 20, "column": 6}}, {"id": 49, "type": "binary_expression", "text": "template <typename", "parent": 48, "children": [50, 51, 52], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 19}}, {"id": 50, "type": "identifier", "text": "template", "parent": 49, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 9}}, {"id": 51, "type": "<", "text": "<", "parent": 49, "children": [], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 11}}, {"id": 52, "type": "identifier", "text": "typename", "parent": 49, "children": [], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 19}}, {"id": 53, "type": "ERROR", "text": "T", "parent": 48, "children": [54], "start_point": {"row": 19, "column": 20}, "end_point": {"row": 19, "column": 21}}, {"id": 54, "type": "identifier", "text": "T", "parent": 53, "children": [], "start_point": {"row": 19, "column": 20}, "end_point": {"row": 19, "column": 21}}, {"id": 55, "type": ">", "text": ">", "parent": 48, "children": [], "start_point": {"row": 19, "column": 21}, "end_point": {"row": 19, "column": 22}}, {"id": 56, "type": "identifier", "text": "Allocator", "parent": 47, "children": [], "start_point": {"row": 20, "column": 7}, "end_point": {"row": 20, "column": 16}}, {"id": 57, "type": "labeled_statement", "text": "public:\n\t\tusing size_type = size_t;", "parent": 9, "children": [58], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 23, "column": 27}}, {"id": 58, "type": "declaration", "text": "using size_type = size_t;", "parent": 57, "children": [59, 60], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 27}}, {"id": 59, "type": "type_identifier", "text": "using", "parent": 58, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 7}}, {"id": 60, "type": "init_declarator", "text": "size_type = size_t", "parent": 58, "children": [61, 62, 63], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 26}}, {"id": 61, "type": "identifier", "text": "size_type", "parent": 60, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 17}}, {"id": 62, "type": "=", "text": "=", "parent": 60, "children": [], "start_point": {"row": 23, "column": 18}, "end_point": {"row": 23, "column": 19}}, {"id": 63, "type": "identifier", "text": "size_t", "parent": 60, "children": [], "start_point": {"row": 23, "column": 20}, "end_point": {"row": 23, "column": 26}}, {"id": 64, "type": "declaration", "text": "using difference_type = ptrdiff_t;", "parent": 9, "children": [65, 66], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 36}}, {"id": 65, "type": "type_identifier", "text": "using", "parent": 64, "children": [], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 7}}, {"id": 66, "type": "init_declarator", "text": "difference_type = ptrdiff_t", "parent": 64, "children": [67, 68, 69], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 35}}, {"id": 67, "type": "identifier", "text": "difference_type", "parent": 66, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 23}}, {"id": 68, "type": "=", "text": "=", "parent": 66, "children": [], "start_point": {"row": 24, "column": 24}, "end_point": {"row": 24, "column": 25}}, {"id": 69, "type": "identifier", "text": "ptrdiff_t", "parent": 66, "children": [], "start_point": {"row": 24, "column": 26}, "end_point": {"row": 24, "column": 35}}, {"id": 70, "type": "declaration", "text": "using pointer = T*;", "parent": 9, "children": [71, 72, 76], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 21}}, {"id": 71, "type": "type_identifier", "text": "using", "parent": 70, "children": [], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 7}}, {"id": 72, "type": "init_declarator", "text": "pointer = T", "parent": 70, "children": [73, 74, 75], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 19}}, {"id": 73, "type": "identifier", "text": "pointer", "parent": 72, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 15}}, {"id": 74, "type": "=", "text": "=", "parent": 72, "children": [], "start_point": {"row": 25, "column": 16}, "end_point": {"row": 25, "column": 17}}, {"id": 75, "type": "identifier", "text": "T", "parent": 72, "children": [], "start_point": {"row": 25, "column": 18}, "end_point": {"row": 25, "column": 19}}, {"id": 76, "type": "ERROR", "text": "*", "parent": 70, "children": [77], "start_point": {"row": 25, "column": 19}, "end_point": {"row": 25, "column": 20}}, {"id": 77, "type": "*", "text": "*", "parent": 76, "children": [], "start_point": {"row": 25, "column": 19}, "end_point": {"row": 25, "column": 20}}, {"id": 78, "type": "declaration", "text": "using const_pointer = const T*;", "parent": 9, "children": [79, 80, 83], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 33}}, {"id": 79, "type": "type_identifier", "text": "using", "parent": 78, "children": [], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 7}}, {"id": 80, "type": "init_declarator", "text": "const_pointer = const", "parent": 78, "children": [81, 82], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 29}}, {"id": 81, "type": "identifier", "text": "const_pointer", "parent": 80, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 21}}, {"id": 82, "type": "=", "text": "=", "parent": 80, "children": [], "start_point": {"row": 26, "column": 22}, "end_point": {"row": 26, "column": 23}}, {"id": 83, "type": "ERROR", "text": "T*", "parent": 78, "children": [84, 85], "start_point": {"row": 26, "column": 30}, "end_point": {"row": 26, "column": 32}}, {"id": 84, "type": "identifier", "text": "T", "parent": 83, "children": [], "start_point": {"row": 26, "column": 30}, "end_point": {"row": 26, "column": 31}}, {"id": 85, "type": "*", "text": "*", "parent": 83, "children": [], "start_point": {"row": 26, "column": 31}, "end_point": {"row": 26, "column": 32}}, {"id": 86, "type": "declaration", "text": "using reference = T&;", "parent": 9, "children": [87, 88], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 23}}, {"id": 87, "type": "type_identifier", "text": "using", "parent": 86, "children": [], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 7}}, {"id": 88, "type": "init_declarator", "text": "reference = T", "parent": 86, "children": [89, 90, 91], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 21}}, {"id": 89, "type": "identifier", "text": "reference", "parent": 88, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 17}}, {"id": 90, "type": "=", "text": "=", "parent": 88, "children": [], "start_point": {"row": 27, "column": 18}, "end_point": {"row": 27, "column": 19}}, {"id": 91, "type": "identifier", "text": "T", "parent": 88, "children": [], "start_point": {"row": 27, "column": 20}, "end_point": {"row": 27, "column": 21}}, {"id": 92, "type": "declaration", "text": "using const_reference = const T&;", "parent": 9, "children": [93, 94, 97], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 35}}, {"id": 93, "type": "type_identifier", "text": "using", "parent": 92, "children": [], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 7}}, {"id": 94, "type": "init_declarator", "text": "const_reference = const", "parent": 92, "children": [95, 96], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 31}}, {"id": 95, "type": "identifier", "text": "const_reference", "parent": 94, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 23}}, {"id": 96, "type": "=", "text": "=", "parent": 94, "children": [], "start_point": {"row": 28, "column": 24}, "end_point": {"row": 28, "column": 25}}, {"id": 97, "type": "ERROR", "text": "T&", "parent": 92, "children": [98], "start_point": {"row": 28, "column": 32}, "end_point": {"row": 28, "column": 34}}, {"id": 98, "type": "identifier", "text": "T", "parent": 97, "children": [], "start_point": {"row": 28, "column": 32}, "end_point": {"row": 28, "column": 33}}, {"id": 99, "type": "declaration", "text": "using value_type = T;", "parent": 9, "children": [100, 101], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 23}}, {"id": 100, "type": "type_identifier", "text": "using", "parent": 99, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 7}}, {"id": 101, "type": "init_declarator", "text": "value_type = T", "parent": 99, "children": [102, 103, 104], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 22}}, {"id": 102, "type": "identifier", "text": "value_type", "parent": 101, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 18}}, {"id": 103, "type": "=", "text": "=", "parent": 101, "children": [], "start_point": {"row": 29, "column": 19}, "end_point": {"row": 29, "column": 20}}, {"id": 104, "type": "identifier", "text": "T", "parent": 101, "children": [], "start_point": {"row": 29, "column": 21}, "end_point": {"row": 29, "column": 22}}, {"id": 105, "type": "call_expression", "text": "Allocator()", "parent": 9, "children": [106, 107], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 13}}, {"id": 106, "type": "identifier", "text": "Allocator", "parent": 105, "children": [], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 11}}, {"id": 107, "type": "argument_list", "text": "()", "parent": 105, "children": [], "start_point": {"row": 31, "column": 11}, "end_point": {"row": 31, "column": 13}}, {"id": 108, "type": "call_expression", "text": "throw()", "parent": 9, "children": [109], "start_point": {"row": 31, "column": 14}, "end_point": {"row": 31, "column": 21}}, {"id": 109, "type": "argument_list", "text": "()", "parent": 108, "children": [], "start_point": {"row": 31, "column": 19}, "end_point": {"row": 31, "column": 21}}, {"id": 110, "type": "function_definition", "text": "Allocator(const Allocator &) throw() { }", "parent": 9, "children": [111, 115], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 42}}, {"id": 111, "type": "macro_type_specifier", "text": "Allocator(const Allocator &)", "parent": 110, "children": [112, 113], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 30}}, {"id": 112, "type": "identifier", "text": "Allocator", "parent": 111, "children": [], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 11}}, {"id": 113, "type": "type_descriptor", "text": "const Allocator", "parent": 111, "children": [114], "start_point": {"row": 32, "column": 12}, "end_point": {"row": 32, "column": 27}}, {"id": 114, "type": "type_identifier", "text": "Allocator", "parent": 113, "children": [], "start_point": {"row": 32, "column": 18}, "end_point": {"row": 32, "column": 27}}, {"id": 115, "type": "function_declarator", "text": "throw()", "parent": 110, "children": [116], "start_point": {"row": 32, "column": 31}, "end_point": {"row": 32, "column": 38}}, {"id": 116, "type": "parameter_list", "text": "()", "parent": 115, "children": [], "start_point": {"row": 32, "column": 36}, "end_point": {"row": 32, "column": 38}}, {"id": 117, "type": "binary_expression", "text": "template<typename U>\n\t\texplicit", "parent": 9, "children": [118, 122, 124, 125], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 35, "column": 10}}, {"id": 118, "type": "binary_expression", "text": "template<typename", "parent": 117, "children": [119, 120, 121], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 19}}, {"id": 119, "type": "identifier", "text": "template", "parent": 118, "children": [], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 10}}, {"id": 120, "type": "<", "text": "<", "parent": 118, "children": [], "start_point": {"row": 34, "column": 10}, "end_point": {"row": 34, "column": 11}}, {"id": 121, "type": "identifier", "text": "typename", "parent": 118, "children": [], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 19}}, {"id": 122, "type": "ERROR", "text": "U", "parent": 117, "children": [123], "start_point": {"row": 34, "column": 20}, "end_point": {"row": 34, "column": 21}}, {"id": 123, "type": "identifier", "text": "U", "parent": 122, "children": [], "start_point": {"row": 34, "column": 20}, "end_point": {"row": 34, "column": 21}}, {"id": 124, "type": ">", "text": ">", "parent": 117, "children": [], "start_point": {"row": 34, "column": 21}, "end_point": {"row": 34, "column": 22}}, {"id": 125, "type": "identifier", "text": "explicit", "parent": 117, "children": [], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 10}}, {"id": 126, "type": "binary_expression", "text": "Allocator(const Allocator<U>&) throw()", "parent": 9, "children": [127, 134, 135], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 49}}, {"id": 127, "type": "binary_expression", "text": "Allocator(const Allocator<U", "parent": 126, "children": [128, 129, 132, 133], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 38}}, {"id": 128, "type": "identifier", "text": "Allocator", "parent": 127, "children": [], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 20}}, {"id": 129, "type": "ERROR", "text": "(const Allocator", "parent": 127, "children": [130], "start_point": {"row": 35, "column": 20}, "end_point": {"row": 35, "column": 36}}, {"id": 130, "type": "type_descriptor", "text": "const Allocator", "parent": 129, "children": [131], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 36}}, {"id": 131, "type": "type_identifier", "text": "Allocator", "parent": 130, "children": [], "start_point": {"row": 35, "column": 27}, "end_point": {"row": 35, "column": 36}}, {"id": 132, "type": "<", "text": "<", "parent": 127, "children": [], "start_point": {"row": 35, "column": 36}, "end_point": {"row": 35, "column": 37}}, {"id": 133, "type": "identifier", "text": "U", "parent": 127, "children": [], "start_point": {"row": 35, "column": 37}, "end_point": {"row": 35, "column": 38}}, {"id": 134, "type": ">", "text": ">", "parent": 126, "children": [], "start_point": {"row": 35, "column": 38}, "end_point": {"row": 35, "column": 39}}, {"id": 135, "type": "pointer_expression", "text": "&) throw()", "parent": 126, "children": [136], "start_point": {"row": 35, "column": 39}, "end_point": {"row": 35, "column": 49}}, {"id": 136, "type": "call_expression", "text": "throw()", "parent": 135, "children": [137], "start_point": {"row": 35, "column": 42}, "end_point": {"row": 35, "column": 49}}, {"id": 137, "type": "argument_list", "text": "()", "parent": 136, "children": [], "start_point": {"row": 35, "column": 47}, "end_point": {"row": 35, "column": 49}}, {"id": 138, "type": "binary_expression", "text": "template<typename U>\n\t\tAllocator & operator = ([[maybe_unused]] const Allocator<U> & other)", "parent": 9, "children": [139, 148], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 38, "column": 70}}, {"id": 139, "type": "binary_expression", "text": "template<typename U>\n\t\tAllocator", "parent": 138, "children": [140, 144, 146, 147], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 38, "column": 11}}, {"id": 140, "type": "binary_expression", "text": "template<typename", "parent": 139, "children": [141, 142, 143], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 19}}, {"id": 141, "type": "identifier", "text": "template", "parent": 140, "children": [], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 10}}, {"id": 142, "type": "<", "text": "<", "parent": 140, "children": [], "start_point": {"row": 37, "column": 10}, "end_point": {"row": 37, "column": 11}}, {"id": 143, "type": "identifier", "text": "typename", "parent": 140, "children": [], "start_point": {"row": 37, "column": 11}, "end_point": {"row": 37, "column": 19}}, {"id": 144, "type": "ERROR", "text": "U", "parent": 139, "children": [145], "start_point": {"row": 37, "column": 20}, "end_point": {"row": 37, "column": 21}}, {"id": 145, "type": "identifier", "text": "U", "parent": 144, "children": [], "start_point": {"row": 37, "column": 20}, "end_point": {"row": 37, "column": 21}}, {"id": 146, "type": ">", "text": ">", "parent": 139, "children": [], "start_point": {"row": 37, "column": 21}, "end_point": {"row": 37, "column": 22}}, {"id": 147, "type": "identifier", "text": "Allocator", "parent": 139, "children": [], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 11}}, {"id": 148, "type": "assignment_expression", "text": "operator = ([[maybe_unused]] const Allocator<U> & other)", "parent": 138, "children": [149, 150, 151], "start_point": {"row": 38, "column": 14}, "end_point": {"row": 38, "column": 70}}, {"id": 149, "type": "identifier", "text": "operator", "parent": 148, "children": [], "start_point": {"row": 38, "column": 14}, "end_point": {"row": 38, "column": 22}}, {"id": 150, "type": "=", "text": "=", "parent": 148, "children": [], "start_point": {"row": 38, "column": 23}, "end_point": {"row": 38, "column": 24}}, {"id": 151, "type": "parenthesized_expression", "text": "([[maybe_unused]] const Allocator<U> & other)", "parent": 148, "children": [152, 157], "start_point": {"row": 38, "column": 25}, "end_point": {"row": 38, "column": 70}}, {"id": 152, "type": "ERROR", "text": "[[maybe_unused]] const", "parent": 151, "children": [153, 154], "start_point": {"row": 38, "column": 26}, "end_point": {"row": 38, "column": 48}}, {"id": 153, "type": "[[", "text": "[[", "parent": 152, "children": [], "start_point": {"row": 38, "column": 26}, "end_point": {"row": 38, "column": 28}}, {"id": 154, "type": "type_descriptor", "text": "maybe_unused]] const", "parent": 152, "children": [155, 156], "start_point": {"row": 38, "column": 28}, "end_point": {"row": 38, "column": 48}}, {"id": 155, "type": "type_identifier", "text": "maybe_unused", "parent": 154, "children": [], "start_point": {"row": 38, "column": 28}, "end_point": {"row": 38, "column": 40}}, {"id": 156, "type": "ERROR", "text": "]]", "parent": 154, "children": [], "start_point": {"row": 38, "column": 40}, "end_point": {"row": 38, "column": 42}}, {"id": 157, "type": "binary_expression", "text": "Allocator<U> & other", "parent": 151, "children": [158, 162, 163], "start_point": {"row": 38, "column": 49}, "end_point": {"row": 38, "column": 69}}, {"id": 158, "type": "binary_expression", "text": "Allocator<U", "parent": 157, "children": [159, 160, 161], "start_point": {"row": 38, "column": 49}, "end_point": {"row": 38, "column": 60}}, {"id": 159, "type": "identifier", "text": "Allocator", "parent": 158, "children": [], "start_point": {"row": 38, "column": 49}, "end_point": {"row": 38, "column": 58}}, {"id": 160, "type": "<", "text": "<", "parent": 158, "children": [], "start_point": {"row": 38, "column": 58}, "end_point": {"row": 38, "column": 59}}, {"id": 161, "type": "identifier", "text": "U", "parent": 158, "children": [], "start_point": {"row": 38, "column": 59}, "end_point": {"row": 38, "column": 60}}, {"id": 162, "type": ">", "text": ">", "parent": 157, "children": [], "start_point": {"row": 38, "column": 60}, "end_point": {"row": 38, "column": 61}}, {"id": 163, "type": "pointer_expression", "text": "& other", "parent": 157, "children": [164], "start_point": {"row": 38, "column": 62}, "end_point": {"row": 38, "column": 69}}, {"id": 164, "type": "identifier", "text": "other", "parent": 163, "children": [], "start_point": {"row": 38, "column": 64}, "end_point": {"row": 38, "column": 69}}, {"id": 165, "type": "identifier", "text": "other", "parent": 9, "children": [], "start_point": {"row": 38, "column": 73}, "end_point": {"row": 38, "column": 78}}, {"id": 166, "type": "return_statement", "text": "return *this;", "parent": 9, "children": [167], "start_point": {"row": 38, "column": 80}, "end_point": {"row": 38, "column": 93}}, {"id": 167, "type": "pointer_expression", "text": "*this", "parent": 166, "children": [168, 169], "start_point": {"row": 38, "column": 87}, "end_point": {"row": 38, "column": 92}}, {"id": 168, "type": "*", "text": "*", "parent": 167, "children": [], "start_point": {"row": 38, "column": 87}, "end_point": {"row": 38, "column": 88}}, {"id": 169, "type": "identifier", "text": "this", "parent": 167, "children": [], "start_point": {"row": 38, "column": 88}, "end_point": {"row": 38, "column": 92}}, {"id": 170, "type": "binary_expression", "text": "Allocator & operator = ([[maybe_unused]] const Allocator & other)", "parent": 9, "children": [171, 172], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 67}}, {"id": 171, "type": "identifier", "text": "Allocator", "parent": 170, "children": [], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 11}}, {"id": 172, "type": "assignment_expression", "text": "operator = ([[maybe_unused]] const Allocator & other)", "parent": 170, "children": [173, 174, 175], "start_point": {"row": 39, "column": 14}, "end_point": {"row": 39, "column": 67}}, {"id": 173, "type": "identifier", "text": "operator", "parent": 172, "children": [], "start_point": {"row": 39, "column": 14}, "end_point": {"row": 39, "column": 22}}, {"id": 174, "type": "=", "text": "=", "parent": 172, "children": [], "start_point": {"row": 39, "column": 23}, "end_point": {"row": 39, "column": 24}}, {"id": 175, "type": "parenthesized_expression", "text": "([[maybe_unused]] const Allocator & other)", "parent": 172, "children": [176, 181], "start_point": {"row": 39, "column": 25}, "end_point": {"row": 39, "column": 67}}, {"id": 176, "type": "ERROR", "text": "[[maybe_unused]] const", "parent": 175, "children": [177, 178], "start_point": {"row": 39, "column": 26}, "end_point": {"row": 39, "column": 48}}, {"id": 177, "type": "[[", "text": "[[", "parent": 176, "children": [], "start_point": {"row": 39, "column": 26}, "end_point": {"row": 39, "column": 28}}, {"id": 178, "type": "type_descriptor", "text": "maybe_unused]] const", "parent": 176, "children": [179, 180], "start_point": {"row": 39, "column": 28}, "end_point": {"row": 39, "column": 48}}, {"id": 179, "type": "type_identifier", "text": "maybe_unused", "parent": 178, "children": [], "start_point": {"row": 39, "column": 28}, "end_point": {"row": 39, "column": 40}}, {"id": 180, "type": "ERROR", "text": "]]", "parent": 178, "children": [], "start_point": {"row": 39, "column": 40}, "end_point": {"row": 39, "column": 42}}, {"id": 181, "type": "binary_expression", "text": "Allocator & other", "parent": 175, "children": [182, 183], "start_point": {"row": 39, "column": 49}, "end_point": {"row": 39, "column": 66}}, {"id": 182, "type": "identifier", "text": "Allocator", "parent": 181, "children": [], "start_point": {"row": 39, "column": 49}, "end_point": {"row": 39, "column": 58}}, {"id": 183, "type": "identifier", "text": "other", "parent": 181, "children": [], "start_point": {"row": 39, "column": 61}, "end_point": {"row": 39, "column": 66}}, {"id": 184, "type": "identifier", "text": "other", "parent": 9, "children": [], "start_point": {"row": 39, "column": 70}, "end_point": {"row": 39, "column": 75}}, {"id": 185, "type": "return_statement", "text": "return *this;", "parent": 9, "children": [186], "start_point": {"row": 39, "column": 77}, "end_point": {"row": 39, "column": 90}}, {"id": 186, "type": "pointer_expression", "text": "*this", "parent": 185, "children": [187, 188], "start_point": {"row": 39, "column": 84}, "end_point": {"row": 39, "column": 89}}, {"id": 187, "type": "*", "text": "*", "parent": 186, "children": [], "start_point": {"row": 39, "column": 84}, "end_point": {"row": 39, "column": 85}}, {"id": 188, "type": "identifier", "text": "this", "parent": 186, "children": [], "start_point": {"row": 39, "column": 85}, "end_point": {"row": 39, "column": 89}}, {"id": 189, "type": "unary_expression", "text": "~Allocator()", "parent": 9, "children": [190, 191], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 14}}, {"id": 190, "type": "~", "text": "~", "parent": 189, "children": [], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 3}}, {"id": 191, "type": "call_expression", "text": "Allocator()", "parent": 189, "children": [192, 193], "start_point": {"row": 40, "column": 3}, "end_point": {"row": 40, "column": 14}}, {"id": 192, "type": "identifier", "text": "Allocator", "parent": 191, "children": [], "start_point": {"row": 40, "column": 3}, "end_point": {"row": 40, "column": 12}}, {"id": 193, "type": "argument_list", "text": "()", "parent": 191, "children": [], "start_point": {"row": 40, "column": 12}, "end_point": {"row": 40, "column": 14}}, {"id": 194, "type": "function_definition", "text": "pointer address(reference value) const { return &value; }", "parent": 9, "children": [195, 196], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 59}}, {"id": 195, "type": "type_identifier", "text": "pointer", "parent": 194, "children": [], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 9}}, {"id": 196, "type": "function_declarator", "text": "address(reference value) const", "parent": 194, "children": [197, 198], "start_point": {"row": 42, "column": 10}, "end_point": {"row": 42, "column": 40}}, {"id": 197, "type": "identifier", "text": "address", "parent": 196, "children": [], "start_point": {"row": 42, "column": 10}, "end_point": {"row": 42, "column": 17}}, {"id": 198, "type": "parameter_list", "text": "(reference value)", "parent": 196, "children": [199], "start_point": {"row": 42, "column": 17}, "end_point": {"row": 42, "column": 34}}, {"id": 199, "type": "parameter_declaration", "text": "reference value", "parent": 198, "children": [200, 201], "start_point": {"row": 42, "column": 18}, "end_point": {"row": 42, "column": 33}}, {"id": 200, "type": "type_identifier", "text": "reference", "parent": 199, "children": [], "start_point": {"row": 42, "column": 18}, "end_point": {"row": 42, "column": 27}}, {"id": 201, "type": "identifier", "text": "value", "parent": 199, "children": [], "start_point": {"row": 42, "column": 28}, "end_point": {"row": 42, "column": 33}}, {"id": 202, "type": "return_statement", "text": "return &value;", "parent": 194, "children": [203], "start_point": {"row": 42, "column": 43}, "end_point": {"row": 42, "column": 57}}, {"id": 203, "type": "pointer_expression", "text": "&value", "parent": 202, "children": [204], "start_point": {"row": 42, "column": 50}, "end_point": {"row": 42, "column": 56}}, {"id": 204, "type": "identifier", "text": "value", "parent": 203, "children": [], "start_point": {"row": 42, "column": 51}, "end_point": {"row": 42, "column": 56}}, {"id": 205, "type": "function_definition", "text": "const_pointer address(const_reference value) const { return &value; }", "parent": 9, "children": [206, 207], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 71}}, {"id": 206, "type": "type_identifier", "text": "const_pointer", "parent": 205, "children": [], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 15}}, {"id": 207, "type": "function_declarator", "text": "address(const_reference value) const", "parent": 205, "children": [208, 209], "start_point": {"row": 43, "column": 16}, "end_point": {"row": 43, "column": 52}}, {"id": 208, "type": "identifier", "text": "address", "parent": 207, "children": [], "start_point": {"row": 43, "column": 16}, "end_point": {"row": 43, "column": 23}}, {"id": 209, "type": "parameter_list", "text": "(const_reference value)", "parent": 207, "children": [210], "start_point": {"row": 43, "column": 23}, "end_point": {"row": 43, "column": 46}}, {"id": 210, "type": "parameter_declaration", "text": "const_reference value", "parent": 209, "children": [211, 212], "start_point": {"row": 43, "column": 24}, "end_point": {"row": 43, "column": 45}}, {"id": 211, "type": "type_identifier", "text": "const_reference", "parent": 210, "children": [], "start_point": {"row": 43, "column": 24}, "end_point": {"row": 43, "column": 39}}, {"id": 212, "type": "identifier", "text": "value", "parent": 210, "children": [], "start_point": {"row": 43, "column": 40}, "end_point": {"row": 43, "column": 45}}, {"id": 213, "type": "return_statement", "text": "return &value;", "parent": 205, "children": [214], "start_point": {"row": 43, "column": 55}, "end_point": {"row": 43, "column": 69}}, {"id": 214, "type": "pointer_expression", "text": "&value", "parent": 213, "children": [215], "start_point": {"row": 43, "column": 62}, "end_point": {"row": 43, "column": 68}}, {"id": 215, "type": "identifier", "text": "value", "parent": 214, "children": [], "start_point": {"row": 43, "column": 63}, "end_point": {"row": 43, "column": 68}}, {"id": 216, "type": "function_definition", "text": "pointer allocate(size_type n) { return static_cast<pointer> (Jinx::MemAllocate(n * sizeof(value_type))); }", "parent": 9, "children": [217, 218], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 108}}, {"id": 217, "type": "type_identifier", "text": "pointer", "parent": 216, "children": [], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 9}}, {"id": 218, "type": "function_declarator", "text": "allocate(size_type n)", "parent": 216, "children": [219, 220], "start_point": {"row": 45, "column": 10}, "end_point": {"row": 45, "column": 31}}, {"id": 219, "type": "identifier", "text": "allocate", "parent": 218, "children": [], "start_point": {"row": 45, "column": 10}, "end_point": {"row": 45, "column": 18}}, {"id": 220, "type": "parameter_list", "text": "(size_type n)", "parent": 218, "children": [221], "start_point": {"row": 45, "column": 18}, "end_point": {"row": 45, "column": 31}}, {"id": 221, "type": "parameter_declaration", "text": "size_type n", "parent": 220, "children": [222, 223], "start_point": {"row": 45, "column": 19}, "end_point": {"row": 45, "column": 30}}, {"id": 222, "type": "type_identifier", "text": "size_type", "parent": 221, "children": [], "start_point": {"row": 45, "column": 19}, "end_point": {"row": 45, "column": 28}}, {"id": 223, "type": "identifier", "text": "n", "parent": 221, "children": [], "start_point": {"row": 45, "column": 29}, "end_point": {"row": 45, "column": 30}}, {"id": 224, "type": "return_statement", "text": "return static_cast<pointer> (Jinx::MemAllocate(n * sizeof(value_type)));", "parent": 216, "children": [225], "start_point": {"row": 45, "column": 34}, "end_point": {"row": 45, "column": 106}}, {"id": 225, "type": "binary_expression", "text": "static_cast<pointer> (Jinx::MemAllocate(n * sizeof(value_type)))", "parent": 224, "children": [226, 230, 231], "start_point": {"row": 45, "column": 41}, "end_point": {"row": 45, "column": 105}}, {"id": 226, "type": "binary_expression", "text": "static_cast<pointer", "parent": 225, "children": [227, 228, 229], "start_point": {"row": 45, "column": 41}, "end_point": {"row": 45, "column": 60}}, {"id": 227, "type": "identifier", "text": "static_cast", "parent": 226, "children": [], "start_point": {"row": 45, "column": 41}, "end_point": {"row": 45, "column": 52}}, {"id": 228, "type": "<", "text": "<", "parent": 226, "children": [], "start_point": {"row": 45, "column": 52}, "end_point": {"row": 45, "column": 53}}, {"id": 229, "type": "identifier", "text": "pointer", "parent": 226, "children": [], "start_point": {"row": 45, "column": 53}, "end_point": {"row": 45, "column": 60}}, {"id": 230, "type": ">", "text": ">", "parent": 225, "children": [], "start_point": {"row": 45, "column": 60}, "end_point": {"row": 45, "column": 61}}, {"id": 231, "type": "parenthesized_expression", "text": "(Jinx::MemAllocate(n * sizeof(value_type)))", "parent": 225, "children": [232, 234], "start_point": {"row": 45, "column": 62}, "end_point": {"row": 45, "column": 105}}, {"id": 232, "type": "ERROR", "text": "Jinx::", "parent": 231, "children": [233], "start_point": {"row": 45, "column": 63}, "end_point": {"row": 45, "column": 69}}, {"id": 233, "type": "identifier", "text": "Jinx", "parent": 232, "children": [], "start_point": {"row": 45, "column": 63}, "end_point": {"row": 45, "column": 67}}, {"id": 234, "type": "call_expression", "text": "MemAllocate(n * sizeof(value_type))", "parent": 231, "children": [235, 236], "start_point": {"row": 45, "column": 69}, "end_point": {"row": 45, "column": 104}}, {"id": 235, "type": "identifier", "text": "MemAllocate", "parent": 234, "children": [], "start_point": {"row": 45, "column": 69}, "end_point": {"row": 45, "column": 80}}, {"id": 236, "type": "argument_list", "text": "(n * sizeof(value_type))", "parent": 234, "children": [237], "start_point": {"row": 45, "column": 80}, "end_point": {"row": 45, "column": 104}}, {"id": 237, "type": "binary_expression", "text": "n * sizeof(value_type)", "parent": 236, "children": [238, 239, 240], "start_point": {"row": 45, "column": 81}, "end_point": {"row": 45, "column": 103}}, {"id": 238, "type": "identifier", "text": "n", "parent": 237, "children": [], "start_point": {"row": 45, "column": 81}, "end_point": {"row": 45, "column": 82}}, {"id": 239, "type": "*", "text": "*", "parent": 237, "children": [], "start_point": {"row": 45, "column": 83}, "end_point": {"row": 45, "column": 84}}, {"id": 240, "type": "sizeof_expression", "text": "sizeof(value_type)", "parent": 237, "children": [241], "start_point": {"row": 45, "column": 85}, "end_point": {"row": 45, "column": 103}}, {"id": 241, "type": "parenthesized_expression", "text": "(value_type)", "parent": 240, "children": [242], "start_point": {"row": 45, "column": 91}, "end_point": {"row": 45, "column": 103}}, {"id": 242, "type": "identifier", "text": "value_type", "parent": 241, "children": [], "start_point": {"row": 45, "column": 92}, "end_point": {"row": 45, "column": 102}}, {"id": 243, "type": "function_definition", "text": "pointer allocate(size_type n, const void *) { return static_cast<pointer> (Jinx::MemAllocate(n * sizeof(value_type))); }", "parent": 9, "children": [244, 245], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 122}}, {"id": 244, "type": "type_identifier", "text": "pointer", "parent": 243, "children": [], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 9}}, {"id": 245, "type": "function_declarator", "text": "allocate(size_type n, const void *)", "parent": 243, "children": [246, 247], "start_point": {"row": 46, "column": 10}, "end_point": {"row": 46, "column": 45}}, {"id": 246, "type": "identifier", "text": "allocate", "parent": 245, "children": [], "start_point": {"row": 46, "column": 10}, "end_point": {"row": 46, "column": 18}}, {"id": 247, "type": "parameter_list", "text": "(size_type n, const void *)", "parent": 245, "children": [248, 251], "start_point": {"row": 46, "column": 18}, "end_point": {"row": 46, "column": 45}}, {"id": 248, "type": "parameter_declaration", "text": "size_type n", "parent": 247, "children": [249, 250], "start_point": {"row": 46, "column": 19}, "end_point": {"row": 46, "column": 30}}, {"id": 249, "type": "type_identifier", "text": "size_type", "parent": 248, "children": [], "start_point": {"row": 46, "column": 19}, "end_point": {"row": 46, "column": 28}}, {"id": 250, "type": "identifier", "text": "n", "parent": 248, "children": [], "start_point": {"row": 46, "column": 29}, "end_point": {"row": 46, "column": 30}}, {"id": 251, "type": "parameter_declaration", "text": "const void *", "parent": 247, "children": [252, 253], "start_point": {"row": 46, "column": 32}, "end_point": {"row": 46, "column": 44}}, {"id": 252, "type": "primitive_type", "text": "void", "parent": 251, "children": [], "start_point": {"row": 46, "column": 38}, "end_point": {"row": 46, "column": 42}}, {"id": 253, "type": "abstract_pointer_declarator", "text": "*", "parent": 251, "children": [254], "start_point": {"row": 46, "column": 43}, "end_point": {"row": 46, "column": 44}}, {"id": 254, "type": "*", "text": "*", "parent": 253, "children": [], "start_point": {"row": 46, "column": 43}, "end_point": {"row": 46, "column": 44}}, {"id": 255, "type": "return_statement", "text": "return static_cast<pointer> (Jinx::MemAllocate(n * sizeof(value_type)));", "parent": 243, "children": [256], "start_point": {"row": 46, "column": 48}, "end_point": {"row": 46, "column": 120}}, {"id": 256, "type": "binary_expression", "text": "static_cast<pointer> (Jinx::MemAllocate(n * sizeof(value_type)))", "parent": 255, "children": [257, 261, 262], "start_point": {"row": 46, "column": 55}, "end_point": {"row": 46, "column": 119}}, {"id": 257, "type": "binary_expression", "text": "static_cast<pointer", "parent": 256, "children": [258, 259, 260], "start_point": {"row": 46, "column": 55}, "end_point": {"row": 46, "column": 74}}, {"id": 258, "type": "identifier", "text": "static_cast", "parent": 257, "children": [], "start_point": {"row": 46, "column": 55}, "end_point": {"row": 46, "column": 66}}, {"id": 259, "type": "<", "text": "<", "parent": 257, "children": [], "start_point": {"row": 46, "column": 66}, "end_point": {"row": 46, "column": 67}}, {"id": 260, "type": "identifier", "text": "pointer", "parent": 257, "children": [], "start_point": {"row": 46, "column": 67}, "end_point": {"row": 46, "column": 74}}, {"id": 261, "type": ">", "text": ">", "parent": 256, "children": [], "start_point": {"row": 46, "column": 74}, "end_point": {"row": 46, "column": 75}}, {"id": 262, "type": "parenthesized_expression", "text": "(Jinx::MemAllocate(n * sizeof(value_type)))", "parent": 256, "children": [263, 265], "start_point": {"row": 46, "column": 76}, "end_point": {"row": 46, "column": 119}}, {"id": 263, "type": "ERROR", "text": "Jinx::", "parent": 262, "children": [264], "start_point": {"row": 46, "column": 77}, "end_point": {"row": 46, "column": 83}}, {"id": 264, "type": "identifier", "text": "Jinx", "parent": 263, "children": [], "start_point": {"row": 46, "column": 77}, "end_point": {"row": 46, "column": 81}}, {"id": 265, "type": "call_expression", "text": "MemAllocate(n * sizeof(value_type))", "parent": 262, "children": [266, 267], "start_point": {"row": 46, "column": 83}, "end_point": {"row": 46, "column": 118}}, {"id": 266, "type": "identifier", "text": "MemAllocate", "parent": 265, "children": [], "start_point": {"row": 46, "column": 83}, "end_point": {"row": 46, "column": 94}}, {"id": 267, "type": "argument_list", "text": "(n * sizeof(value_type))", "parent": 265, "children": [268], "start_point": {"row": 46, "column": 94}, "end_point": {"row": 46, "column": 118}}, {"id": 268, "type": "binary_expression", "text": "n * sizeof(value_type)", "parent": 267, "children": [269, 270, 271], "start_point": {"row": 46, "column": 95}, "end_point": {"row": 46, "column": 117}}, {"id": 269, "type": "identifier", "text": "n", "parent": 268, "children": [], "start_point": {"row": 46, "column": 95}, "end_point": {"row": 46, "column": 96}}, {"id": 270, "type": "*", "text": "*", "parent": 268, "children": [], "start_point": {"row": 46, "column": 97}, "end_point": {"row": 46, "column": 98}}, {"id": 271, "type": "sizeof_expression", "text": "sizeof(value_type)", "parent": 268, "children": [272], "start_point": {"row": 46, "column": 99}, "end_point": {"row": 46, "column": 117}}, {"id": 272, "type": "parenthesized_expression", "text": "(value_type)", "parent": 271, "children": [273], "start_point": {"row": 46, "column": 105}, "end_point": {"row": 46, "column": 117}}, {"id": 273, "type": "identifier", "text": "value_type", "parent": 272, "children": [], "start_point": {"row": 46, "column": 106}, "end_point": {"row": 46, "column": 116}}, {"id": 274, "type": "function_definition", "text": "void deallocate(void* ptr, size_type) { Jinx::MemFree(static_cast<T*> (ptr)); }", "parent": 9, "children": [275, 276], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 81}}, {"id": 275, "type": "primitive_type", "text": "void", "parent": 274, "children": [], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 6}}, {"id": 276, "type": "function_declarator", "text": "deallocate(void* ptr, size_type)", "parent": 274, "children": [277, 278], "start_point": {"row": 47, "column": 7}, "end_point": {"row": 47, "column": 39}}, {"id": 277, "type": "identifier", "text": "deallocate", "parent": 276, "children": [], "start_point": {"row": 47, "column": 7}, "end_point": {"row": 47, "column": 17}}, {"id": 278, "type": "parameter_list", "text": "(void* ptr, size_type)", "parent": 276, "children": [279, 284], "start_point": {"row": 47, "column": 17}, "end_point": {"row": 47, "column": 39}}, {"id": 279, "type": "parameter_declaration", "text": "void* ptr", "parent": 278, "children": [280, 281], "start_point": {"row": 47, "column": 18}, "end_point": {"row": 47, "column": 27}}, {"id": 280, "type": "primitive_type", "text": "void", "parent": 279, "children": [], "start_point": {"row": 47, "column": 18}, "end_point": {"row": 47, "column": 22}}, {"id": 281, "type": "pointer_declarator", "text": "* ptr", "parent": 279, "children": [282, 283], "start_point": {"row": 47, "column": 22}, "end_point": {"row": 47, "column": 27}}, {"id": 282, "type": "*", "text": "*", "parent": 281, "children": [], "start_point": {"row": 47, "column": 22}, "end_point": {"row": 47, "column": 23}}, {"id": 283, "type": "identifier", "text": "ptr", "parent": 281, "children": [], "start_point": {"row": 47, "column": 24}, "end_point": {"row": 47, "column": 27}}, {"id": 284, "type": "parameter_declaration", "text": "size_type", "parent": 278, "children": [285], "start_point": {"row": 47, "column": 29}, "end_point": {"row": 47, "column": 38}}, {"id": 285, "type": "type_identifier", "text": "size_type", "parent": 284, "children": [], "start_point": {"row": 47, "column": 29}, "end_point": {"row": 47, "column": 38}}, {"id": 286, "type": "labeled_statement", "text": "Jinx::MemFree(static_cast<T*> (ptr));", "parent": 274, "children": [287], "start_point": {"row": 47, "column": 42}, "end_point": {"row": 47, "column": 79}}, {"id": 287, "type": "statement_identifier", "text": "Jinx", "parent": 286, "children": [], "start_point": {"row": 47, "column": 42}, "end_point": {"row": 47, "column": 46}}, {"id": 288, "type": "call_expression", "text": "MemFree(static_cast<T*> (ptr))", "parent": 286, "children": [289, 290], "start_point": {"row": 47, "column": 48}, "end_point": {"row": 47, "column": 78}}, {"id": 289, "type": "identifier", "text": "MemFree", "parent": 288, "children": [], "start_point": {"row": 47, "column": 48}, "end_point": {"row": 47, "column": 55}}, {"id": 290, "type": "argument_list", "text": "(static_cast<T*> (ptr))", "parent": 288, "children": [291], "start_point": {"row": 47, "column": 55}, "end_point": {"row": 47, "column": 78}}, {"id": 291, "type": "binary_expression", "text": "static_cast<T*> (ptr)", "parent": 290, "children": [292, 296, 298, 299], "start_point": {"row": 47, "column": 56}, "end_point": {"row": 47, "column": 77}}, {"id": 292, "type": "binary_expression", "text": "static_cast<T", "parent": 291, "children": [293, 294, 295], "start_point": {"row": 47, "column": 56}, "end_point": {"row": 47, "column": 69}}, {"id": 293, "type": "identifier", "text": "static_cast", "parent": 292, "children": [], "start_point": {"row": 47, "column": 56}, "end_point": {"row": 47, "column": 67}}, {"id": 294, "type": "<", "text": "<", "parent": 292, "children": [], "start_point": {"row": 47, "column": 67}, "end_point": {"row": 47, "column": 68}}, {"id": 295, "type": "identifier", "text": "T", "parent": 292, "children": [], "start_point": {"row": 47, "column": 68}, "end_point": {"row": 47, "column": 69}}, {"id": 296, "type": "ERROR", "text": "*", "parent": 291, "children": [297], "start_point": {"row": 47, "column": 69}, "end_point": {"row": 47, "column": 70}}, {"id": 297, "type": "*", "text": "*", "parent": 296, "children": [], "start_point": {"row": 47, "column": 69}, "end_point": {"row": 47, "column": 70}}, {"id": 298, "type": ">", "text": ">", "parent": 291, "children": [], "start_point": {"row": 47, "column": 70}, "end_point": {"row": 47, "column": 71}}, {"id": 299, "type": "parenthesized_expression", "text": "(ptr)", "parent": 291, "children": [300], "start_point": {"row": 47, "column": 72}, "end_point": {"row": 47, "column": 77}}, {"id": 300, "type": "identifier", "text": "ptr", "parent": 299, "children": [], "start_point": {"row": 47, "column": 73}, "end_point": {"row": 47, "column": 76}}, {"id": 301, "type": "comma_expression", "text": "template<typename U, typename... Args>\n\t\tvoid construct(U* ptr, Args&& ... args) { ::new ((void*)(ptr)) U(std::forward<Args>(args)...)", "parent": 9, "children": [302, 306, 308], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 50, "column": 96}}, {"id": 302, "type": "binary_expression", "text": "template<typename", "parent": 301, "children": [303, 304, 305], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 19}}, {"id": 303, "type": "identifier", "text": "template", "parent": 302, "children": [], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 10}}, {"id": 304, "type": "<", "text": "<", "parent": 302, "children": [], "start_point": {"row": 49, "column": 10}, "end_point": {"row": 49, "column": 11}}, {"id": 305, "type": "identifier", "text": "typename", "parent": 302, "children": [], "start_point": {"row": 49, "column": 11}, "end_point": {"row": 49, "column": 19}}, {"id": 306, "type": "ERROR", "text": "U", "parent": 301, "children": [307], "start_point": {"row": 49, "column": 20}, "end_point": {"row": 49, "column": 21}}, {"id": 307, "type": "identifier", "text": "U", "parent": 306, "children": [], "start_point": {"row": 49, "column": 20}, "end_point": {"row": 49, "column": 21}}, {"id": 308, "type": "binary_expression", "text": "typename... Args>\n\t\tvoid construct(U* ptr, Args&& ... args) { ::new ((void*)(ptr)) U(std::forward<Args>(args)...)", "parent": 301, "children": [309, 310, 312, 313, 335], "start_point": {"row": 49, "column": 23}, "end_point": {"row": 50, "column": 96}}, {"id": 309, "type": "identifier", "text": "typename", "parent": 308, "children": [], "start_point": {"row": 49, "column": 23}, "end_point": {"row": 49, "column": 31}}, {"id": 310, "type": "ERROR", "text": "... Args", "parent": 308, "children": [311], "start_point": {"row": 49, "column": 31}, "end_point": {"row": 49, "column": 39}}, {"id": 311, "type": "identifier", "text": "Args", "parent": 310, "children": [], "start_point": {"row": 49, "column": 35}, "end_point": {"row": 49, "column": 39}}, {"id": 312, "type": ">", "text": ">", "parent": 308, "children": [], "start_point": {"row": 49, "column": 39}, "end_point": {"row": 49, "column": 40}}, {"id": 313, "type": "ERROR", "text": "void construct(U* ptr, Args&& ... args) { ::new ((void*)(ptr))", "parent": 308, "children": [314, 315, 326], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 65}}, {"id": 314, "type": "identifier", "text": "void", "parent": 313, "children": [], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 6}}, {"id": 315, "type": "call_expression", "text": "construct(U* ptr, Args&& ... args)", "parent": 313, "children": [316, 317], "start_point": {"row": 50, "column": 7}, "end_point": {"row": 50, "column": 42}}, {"id": 316, "type": "identifier", "text": "construct", "parent": 315, "children": [], "start_point": {"row": 50, "column": 7}, "end_point": {"row": 50, "column": 16}}, {"id": 317, "type": "argument_list", "text": "(U* ptr, Args&& ... args)", "parent": 315, "children": [318, 322], "start_point": {"row": 50, "column": 16}, "end_point": {"row": 50, "column": 42}}, {"id": 318, "type": "binary_expression", "text": "U* ptr", "parent": 317, "children": [319, 320, 321], "start_point": {"row": 50, "column": 17}, "end_point": {"row": 50, "column": 23}}, {"id": 319, "type": "identifier", "text": "U", "parent": 318, "children": [], "start_point": {"row": 50, "column": 17}, "end_point": {"row": 50, "column": 18}}, {"id": 320, "type": "*", "text": "*", "parent": 318, "children": [], "start_point": {"row": 50, "column": 18}, "end_point": {"row": 50, "column": 19}}, {"id": 321, "type": "identifier", "text": "ptr", "parent": 318, "children": [], "start_point": {"row": 50, "column": 20}, "end_point": {"row": 50, "column": 23}}, {"id": 322, "type": "binary_expression", "text": "Args&& ... args", "parent": 317, "children": [323, 324, 325], "start_point": {"row": 50, "column": 25}, "end_point": {"row": 50, "column": 41}}, {"id": 323, "type": "identifier", "text": "Args", "parent": 322, "children": [], "start_point": {"row": 50, "column": 25}, "end_point": {"row": 50, "column": 29}}, {"id": 324, "type": "&&", "text": "&&", "parent": 322, "children": [], "start_point": {"row": 50, "column": 29}, "end_point": {"row": 50, "column": 31}}, {"id": 325, "type": "identifier", "text": "args", "parent": 322, "children": [], "start_point": {"row": 50, "column": 37}, "end_point": {"row": 50, "column": 41}}, {"id": 326, "type": "call_expression", "text": "new ((void*)(ptr))", "parent": 313, "children": [327], "start_point": {"row": 50, "column": 47}, "end_point": {"row": 50, "column": 65}}, {"id": 327, "type": "argument_list", "text": "((void*)(ptr))", "parent": 326, "children": [328], "start_point": {"row": 50, "column": 51}, "end_point": {"row": 50, "column": 65}}, {"id": 328, "type": "cast_expression", "text": "(void*)(ptr)", "parent": 327, "children": [329, 333], "start_point": {"row": 50, "column": 52}, "end_point": {"row": 50, "column": 64}}, {"id": 329, "type": "type_descriptor", "text": "void*", "parent": 328, "children": [330, 331], "start_point": {"row": 50, "column": 53}, "end_point": {"row": 50, "column": 58}}, {"id": 330, "type": "primitive_type", "text": "void", "parent": 329, "children": [], "start_point": {"row": 50, "column": 53}, "end_point": {"row": 50, "column": 57}}, {"id": 331, "type": "abstract_pointer_declarator", "text": "*", "parent": 329, "children": [332], "start_point": {"row": 50, "column": 57}, "end_point": {"row": 50, "column": 58}}, {"id": 332, "type": "*", "text": "*", "parent": 331, "children": [], "start_point": {"row": 50, "column": 57}, "end_point": {"row": 50, "column": 58}}, {"id": 333, "type": "parenthesized_expression", "text": "(ptr)", "parent": 328, "children": [334], "start_point": {"row": 50, "column": 59}, "end_point": {"row": 50, "column": 64}}, {"id": 334, "type": "identifier", "text": "ptr", "parent": 333, "children": [], "start_point": {"row": 50, "column": 60}, "end_point": {"row": 50, "column": 63}}, {"id": 335, "type": "call_expression", "text": "U(std::forward<Args>(args)...)", "parent": 308, "children": [336, 337], "start_point": {"row": 50, "column": 66}, "end_point": {"row": 50, "column": 96}}, {"id": 336, "type": "identifier", "text": "U", "parent": 335, "children": [], "start_point": {"row": 50, "column": 66}, "end_point": {"row": 50, "column": 67}}, {"id": 337, "type": "argument_list", "text": "(std::forward<Args>(args)...)", "parent": 335, "children": [338, 340], "start_point": {"row": 50, "column": 67}, "end_point": {"row": 50, "column": 96}}, {"id": 338, "type": "ERROR", "text": "std::", "parent": 337, "children": [339], "start_point": {"row": 50, "column": 68}, "end_point": {"row": 50, "column": 73}}, {"id": 339, "type": "identifier", "text": "std", "parent": 338, "children": [], "start_point": {"row": 50, "column": 68}, "end_point": {"row": 50, "column": 71}}, {"id": 340, "type": "binary_expression", "text": "forward<Args>(args)", "parent": 337, "children": [341, 345, 346], "start_point": {"row": 50, "column": 73}, "end_point": {"row": 50, "column": 92}}, {"id": 341, "type": "binary_expression", "text": "forward<Args", "parent": 340, "children": [342, 343, 344], "start_point": {"row": 50, "column": 73}, "end_point": {"row": 50, "column": 85}}, {"id": 342, "type": "identifier", "text": "forward", "parent": 341, "children": [], "start_point": {"row": 50, "column": 73}, "end_point": {"row": 50, "column": 80}}, {"id": 343, "type": "<", "text": "<", "parent": 341, "children": [], "start_point": {"row": 50, "column": 80}, "end_point": {"row": 50, "column": 81}}, {"id": 344, "type": "identifier", "text": "Args", "parent": 341, "children": [], "start_point": {"row": 50, "column": 81}, "end_point": {"row": 50, "column": 85}}, {"id": 345, "type": ">", "text": ">", "parent": 340, "children": [], "start_point": {"row": 50, "column": 85}, "end_point": {"row": 50, "column": 86}}, {"id": 346, "type": "parenthesized_expression", "text": "(args)", "parent": 340, "children": [347], "start_point": {"row": 50, "column": 86}, "end_point": {"row": 50, "column": 92}}, {"id": 347, "type": "identifier", "text": "args", "parent": 346, "children": [], "start_point": {"row": 50, "column": 87}, "end_point": {"row": 50, "column": 91}}, {"id": 348, "type": "function_definition", "text": "void construct(pointer ptr, const T& val) { new (static_cast<T*> (ptr)) T(val); }", "parent": 9, "children": [349, 350], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 83}}, {"id": 349, "type": "primitive_type", "text": "void", "parent": 348, "children": [], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 6}}, {"id": 350, "type": "function_declarator", "text": "construct(pointer ptr, const T& val)", "parent": 348, "children": [351, 352], "start_point": {"row": 51, "column": 7}, "end_point": {"row": 51, "column": 43}}, {"id": 351, "type": "identifier", "text": "construct", "parent": 350, "children": [], "start_point": {"row": 51, "column": 7}, "end_point": {"row": 51, "column": 16}}, {"id": 352, "type": "parameter_list", "text": "(pointer ptr, const T& val)", "parent": 350, "children": [353, 356], "start_point": {"row": 51, "column": 16}, "end_point": {"row": 51, "column": 43}}, {"id": 353, "type": "parameter_declaration", "text": "pointer ptr", "parent": 352, "children": [354, 355], "start_point": {"row": 51, "column": 17}, "end_point": {"row": 51, "column": 28}}, {"id": 354, "type": "type_identifier", "text": "pointer", "parent": 353, "children": [], "start_point": {"row": 51, "column": 17}, "end_point": {"row": 51, "column": 24}}, {"id": 355, "type": "identifier", "text": "ptr", "parent": 353, "children": [], "start_point": {"row": 51, "column": 25}, "end_point": {"row": 51, "column": 28}}, {"id": 356, "type": "parameter_declaration", "text": "const T& val", "parent": 352, "children": [357, 358], "start_point": {"row": 51, "column": 30}, "end_point": {"row": 51, "column": 42}}, {"id": 357, "type": "type_identifier", "text": "T", "parent": 356, "children": [], "start_point": {"row": 51, "column": 36}, "end_point": {"row": 51, "column": 37}}, {"id": 358, "type": "identifier", "text": "val", "parent": 356, "children": [], "start_point": {"row": 51, "column": 39}, "end_point": {"row": 51, "column": 42}}, {"id": 359, "type": "call_expression", "text": "new (static_cast<T*> (ptr))", "parent": 348, "children": [360], "start_point": {"row": 51, "column": 46}, "end_point": {"row": 51, "column": 73}}, {"id": 360, "type": "argument_list", "text": "(static_cast<T*> (ptr))", "parent": 359, "children": [361], "start_point": {"row": 51, "column": 50}, "end_point": {"row": 51, "column": 73}}, {"id": 361, "type": "binary_expression", "text": "static_cast<T*> (ptr)", "parent": 360, "children": [362, 366, 368, 369], "start_point": {"row": 51, "column": 51}, "end_point": {"row": 51, "column": 72}}, {"id": 362, "type": "binary_expression", "text": "static_cast<T", "parent": 361, "children": [363, 364, 365], "start_point": {"row": 51, "column": 51}, "end_point": {"row": 51, "column": 64}}, {"id": 363, "type": "identifier", "text": "static_cast", "parent": 362, "children": [], "start_point": {"row": 51, "column": 51}, "end_point": {"row": 51, "column": 62}}, {"id": 364, "type": "<", "text": "<", "parent": 362, "children": [], "start_point": {"row": 51, "column": 62}, "end_point": {"row": 51, "column": 63}}, {"id": 365, "type": "identifier", "text": "T", "parent": 362, "children": [], "start_point": {"row": 51, "column": 63}, "end_point": {"row": 51, "column": 64}}, {"id": 366, "type": "ERROR", "text": "*", "parent": 361, "children": [367], "start_point": {"row": 51, "column": 64}, "end_point": {"row": 51, "column": 65}}, {"id": 367, "type": "*", "text": "*", "parent": 366, "children": [], "start_point": {"row": 51, "column": 64}, "end_point": {"row": 51, "column": 65}}, {"id": 368, "type": ">", "text": ">", "parent": 361, "children": [], "start_point": {"row": 51, "column": 65}, "end_point": {"row": 51, "column": 66}}, {"id": 369, "type": "parenthesized_expression", "text": "(ptr)", "parent": 361, "children": [370], "start_point": {"row": 51, "column": 67}, "end_point": {"row": 51, "column": 72}}, {"id": 370, "type": "identifier", "text": "ptr", "parent": 369, "children": [], "start_point": {"row": 51, "column": 68}, "end_point": {"row": 51, "column": 71}}, {"id": 371, "type": "call_expression", "text": "T(val)", "parent": 348, "children": [372, 373], "start_point": {"row": 51, "column": 74}, "end_point": {"row": 51, "column": 80}}, {"id": 372, "type": "identifier", "text": "T", "parent": 371, "children": [], "start_point": {"row": 51, "column": 74}, "end_point": {"row": 51, "column": 75}}, {"id": 373, "type": "argument_list", "text": "(val)", "parent": 371, "children": [374], "start_point": {"row": 51, "column": 75}, "end_point": {"row": 51, "column": 80}}, {"id": 374, "type": "identifier", "text": "val", "parent": 373, "children": [], "start_point": {"row": 51, "column": 76}, "end_point": {"row": 51, "column": 79}}, {"id": 375, "type": "ERROR", "text": "template<typename U>\n\t\tvoid destroy(", "parent": 9, "children": [376, 380, 382, 383, 385], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 54, "column": 15}}, {"id": 376, "type": "binary_expression", "text": "template<typename", "parent": 375, "children": [377, 378, 379], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 53, "column": 19}}, {"id": 377, "type": "identifier", "text": "template", "parent": 376, "children": [], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 53, "column": 10}}, {"id": 378, "type": "<", "text": "<", "parent": 376, "children": [], "start_point": {"row": 53, "column": 10}, "end_point": {"row": 53, "column": 11}}, {"id": 379, "type": "identifier", "text": "typename", "parent": 376, "children": [], "start_point": {"row": 53, "column": 11}, "end_point": {"row": 53, "column": 19}}, {"id": 380, "type": "ERROR", "text": "U", "parent": 375, "children": [381], "start_point": {"row": 53, "column": 20}, "end_point": {"row": 53, "column": 21}}, {"id": 381, "type": "identifier", "text": "U", "parent": 380, "children": [], "start_point": {"row": 53, "column": 20}, "end_point": {"row": 53, "column": 21}}, {"id": 382, "type": ">", "text": ">", "parent": 375, "children": [], "start_point": {"row": 53, "column": 21}, "end_point": {"row": 53, "column": 22}}, {"id": 383, "type": "ERROR", "text": "void", "parent": 375, "children": [384], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 6}}, {"id": 384, "type": "identifier", "text": "void", "parent": 383, "children": [], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 6}}, {"id": 385, "type": "identifier", "text": "destroy", "parent": 375, "children": [], "start_point": {"row": 54, "column": 7}, "end_point": {"row": 54, "column": 14}}, {"id": 386, "type": "function_definition", "text": "[[maybe_unused]] U* ptr) { ptr->~U(); }", "parent": 9, "children": [387, 392, 393], "start_point": {"row": 54, "column": 15}, "end_point": {"row": 54, "column": 54}}, {"id": 387, "type": "attribute_declaration", "text": "[[maybe_unused]]", "parent": 386, "children": [388, 389, 391], "start_point": {"row": 54, "column": 15}, "end_point": {"row": 54, "column": 31}}, {"id": 388, "type": "[[", "text": "[[", "parent": 387, "children": [], "start_point": {"row": 54, "column": 15}, "end_point": {"row": 54, "column": 17}}, {"id": 389, "type": "attribute", "text": "maybe_unused", "parent": 387, "children": [390], "start_point": {"row": 54, "column": 17}, "end_point": {"row": 54, "column": 29}}, {"id": 390, "type": "identifier", "text": "maybe_unused", "parent": 389, "children": [], "start_point": {"row": 54, "column": 17}, "end_point": {"row": 54, "column": 29}}, {"id": 391, "type": "]]", "text": "]]", "parent": 387, "children": [], "start_point": {"row": 54, "column": 29}, "end_point": {"row": 54, "column": 31}}, {"id": 392, "type": "type_identifier", "text": "U", "parent": 386, "children": [], "start_point": {"row": 54, "column": 32}, "end_point": {"row": 54, "column": 33}}, {"id": 393, "type": "pointer_declarator", "text": "* ptr", "parent": 386, "children": [394, 395], "start_point": {"row": 54, "column": 33}, "end_point": {"row": 54, "column": 38}}, {"id": 394, "type": "*", "text": "*", "parent": 393, "children": [], "start_point": {"row": 54, "column": 33}, "end_point": {"row": 54, "column": 34}}, {"id": 395, "type": "identifier", "text": "ptr", "parent": 393, "children": [], "start_point": {"row": 54, "column": 35}, "end_point": {"row": 54, "column": 38}}, {"id": 396, "type": "call_expression", "text": "ptr->~U()", "parent": 386, "children": [397, 402], "start_point": {"row": 54, "column": 42}, "end_point": {"row": 54, "column": 51}}, {"id": 397, "type": "field_expression", "text": "ptr->~U", "parent": 396, "children": [398, 399, 401], "start_point": {"row": 54, "column": 42}, "end_point": {"row": 54, "column": 49}}, {"id": 398, "type": "identifier", "text": "ptr", "parent": 397, "children": [], "start_point": {"row": 54, "column": 42}, "end_point": {"row": 54, "column": 45}}, {"id": 399, "type": "ERROR", "text": "~", "parent": 397, "children": [400], "start_point": {"row": 54, "column": 47}, "end_point": {"row": 54, "column": 48}}, {"id": 400, "type": "~", "text": "~", "parent": 399, "children": [], "start_point": {"row": 54, "column": 47}, "end_point": {"row": 54, "column": 48}}, {"id": 401, "type": "field_identifier", "text": "U", "parent": 397, "children": [], "start_point": {"row": 54, "column": 48}, "end_point": {"row": 54, "column": 49}}, {"id": 402, "type": "argument_list", "text": "()", "parent": 396, "children": [], "start_point": {"row": 54, "column": 49}, "end_point": {"row": 54, "column": 51}}, {"id": 403, "type": "function_definition", "text": "void destroy([[maybe_unused]] pointer ptr) { ptr->~T(); }", "parent": 9, "children": [404, 405], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 59}}, {"id": 404, "type": "primitive_type", "text": "void", "parent": 403, "children": [], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 6}}, {"id": 405, "type": "function_declarator", "text": "destroy([[maybe_unused]] pointer ptr)", "parent": 403, "children": [406, 407], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 55, "column": 44}}, {"id": 406, "type": "identifier", "text": "destroy", "parent": 405, "children": [], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 55, "column": 14}}, {"id": 407, "type": "parameter_list", "text": "([[maybe_unused]] pointer ptr)", "parent": 405, "children": [408], "start_point": {"row": 55, "column": 14}, "end_point": {"row": 55, "column": 44}}, {"id": 408, "type": "parameter_declaration", "text": "[[maybe_unused]] pointer ptr", "parent": 407, "children": [409, 414, 415], "start_point": {"row": 55, "column": 15}, "end_point": {"row": 55, "column": 43}}, {"id": 409, "type": "attribute_declaration", "text": "[[maybe_unused]]", "parent": 408, "children": [410, 411, 413], "start_point": {"row": 55, "column": 15}, "end_point": {"row": 55, "column": 31}}, {"id": 410, "type": "[[", "text": "[[", "parent": 409, "children": [], "start_point": {"row": 55, "column": 15}, "end_point": {"row": 55, "column": 17}}, {"id": 411, "type": "attribute", "text": "maybe_unused", "parent": 409, "children": [412], "start_point": {"row": 55, "column": 17}, "end_point": {"row": 55, "column": 29}}, {"id": 412, "type": "identifier", "text": "maybe_unused", "parent": 411, "children": [], "start_point": {"row": 55, "column": 17}, "end_point": {"row": 55, "column": 29}}, {"id": 413, "type": "]]", "text": "]]", "parent": 409, "children": [], "start_point": {"row": 55, "column": 29}, "end_point": {"row": 55, "column": 31}}, {"id": 414, "type": "type_identifier", "text": "pointer", "parent": 408, "children": [], "start_point": {"row": 55, "column": 32}, "end_point": {"row": 55, "column": 39}}, {"id": 415, "type": "identifier", "text": "ptr", "parent": 408, "children": [], "start_point": {"row": 55, "column": 40}, "end_point": {"row": 55, "column": 43}}, {"id": 416, "type": "call_expression", "text": "ptr->~T()", "parent": 403, "children": [417, 422], "start_point": {"row": 55, "column": 47}, "end_point": {"row": 55, "column": 56}}, {"id": 417, "type": "field_expression", "text": "ptr->~T", "parent": 416, "children": [418, 419, 421], "start_point": {"row": 55, "column": 47}, "end_point": {"row": 55, "column": 54}}, {"id": 418, "type": "identifier", "text": "ptr", "parent": 417, "children": [], "start_point": {"row": 55, "column": 47}, "end_point": {"row": 55, "column": 50}}, {"id": 419, "type": "ERROR", "text": "~", "parent": 417, "children": [420], "start_point": {"row": 55, "column": 52}, "end_point": {"row": 55, "column": 53}}, {"id": 420, "type": "~", "text": "~", "parent": 419, "children": [], "start_point": {"row": 55, "column": 52}, "end_point": {"row": 55, "column": 53}}, {"id": 421, "type": "field_identifier", "text": "T", "parent": 417, "children": [], "start_point": {"row": 55, "column": 53}, "end_point": {"row": 55, "column": 54}}, {"id": 422, "type": "argument_list", "text": "()", "parent": 416, "children": [], "start_point": {"row": 55, "column": 54}, "end_point": {"row": 55, "column": 56}}, {"id": 423, "type": "ERROR", "text": "size_type max_size() const { return std::numeric_limits<std::size_t>::max() / sizeof(T); }\n\t};\n\n\ttemplate <typename T>\n\tbool operator == (const Allocator<T> &, const Allocator<T> &) { return true; }\n\ttemplate <typename T>\n\tbool operator != (const Allocator<T> &, const Allocator<T> &) { return false; }\n\n\tstruct GlobalParams;\n\tvoid InitializeMemory(const GlobalParams & params);\n\n\tstruct MemoryStats\n\t{\n\t\tuint64_t allocationCount = 0;\n\t\tuint64_t freeCount = 0;\n\t\tuint64_t allocatedMemory = 0;\n\t};\n\n\tMemoryStats GetMemoryStats();\n\n\t// Define a custom UTF-8 string using internal allocator\n\tusing String = std::basic_string <char, std::char_traits<char>, Allocator<char>>;\n\n\t// Define a custom UTF-16 string using internal allocator\n\tusing StringU16 = std::basic_string <char16_t, std::char_traits<char16_t>, Allocator<char16_t>>;\n\n\t// Define a custom wide character string using internal allocator\n\tusing WString = std::basic_string <wchar_t, std::char_traits<wchar_t>, Allocator<wchar_t>>;", "parent": 9, "children": [424, 425, 428, 497, 505, 528, 533, 556, 579], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 84, "column": 92}}, {"id": 424, "type": "type_identifier", "text": "size_type", "parent": 423, "children": [], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 11}}, {"id": 425, "type": "function_declarator", "text": "max_size()", "parent": 423, "children": [426, 427], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 22}}, {"id": 426, "type": "identifier", "text": "max_size", "parent": 425, "children": [], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 20}}, {"id": 427, "type": "parameter_list", "text": "()", "parent": 425, "children": [], "start_point": {"row": 57, "column": 20}, "end_point": {"row": 57, "column": 22}}, {"id": 428, "type": "declaration", "text": "const { return std::numeric_limits<std::size_t>::max() / sizeof(T); }\n\t};\n\n\ttemplate <typename T>\n\tbool operator == (const Allocator<T> &, const Allocator<T> &) { return true; }\n\ttemplate <typename T>\n\tbool operator != (const Allocator<T> &, const Allocator<T> &) { return false; }\n\n\tstruct GlobalParams;", "parent": 423, "children": [429, 430, 431, 496], "start_point": {"row": 57, "column": 23}, "end_point": {"row": 65, "column": 21}}, {"id": 429, "type": "ERROR", "text": "{ return", "parent": 428, "children": [], "start_point": {"row": 57, "column": 29}, "end_point": {"row": 57, "column": 37}}, {"id": 430, "type": "type_identifier", "text": "std", "parent": 428, "children": [], "start_point": {"row": 57, "column": 38}, "end_point": {"row": 57, "column": 41}}, {"id": 431, "type": "ERROR", "text": "::numeric_limits<std::size_t>::max() / sizeof(T); }\n\t};\n\n\ttemplate <typename T>\n\tbool operator == (const Allocator<T> &, const Allocator<T> &) { return true; }\n\ttemplate <typename T>\n\tbool operator != (const Allocator<T> &, const Allocator<T> &) { return false; }\n\n\tstruct", "parent": 428, "children": [432, 433, 434, 435, 436, 437, 443, 444, 445, 446, 447, 448, 449, 468, 469, 470, 471, 472, 473, 474, 475, 494, 495], "start_point": {"row": 57, "column": 41}, "end_point": {"row": 65, "column": 7}}, {"id": 432, "type": "identifier", "text": "numeric_limits", "parent": 431, "children": [], "start_point": {"row": 57, "column": 43}, "end_point": {"row": 57, "column": 57}}, {"id": 433, "type": "<", "text": "<", "parent": 431, "children": [], "start_point": {"row": 57, "column": 57}, "end_point": {"row": 57, "column": 58}}, {"id": 434, "type": "identifier", "text": "std", "parent": 431, "children": [], "start_point": {"row": 57, "column": 58}, "end_point": {"row": 57, "column": 61}}, {"id": 435, "type": "primitive_type", "text": "size_t", "parent": 431, "children": [], "start_point": {"row": 57, "column": 63}, "end_point": {"row": 57, "column": 69}}, {"id": 436, "type": ">", "text": ">", "parent": 431, "children": [], "start_point": {"row": 57, "column": 69}, "end_point": {"row": 57, "column": 70}}, {"id": 437, "type": "function_declarator", "text": "max() / sizeof(T", "parent": 431, "children": [438, 439, 440, 442], "start_point": {"row": 57, "column": 72}, "end_point": {"row": 57, "column": 88}}, {"id": 438, "type": "identifier", "text": "max", "parent": 437, "children": [], "start_point": {"row": 57, "column": 72}, "end_point": {"row": 57, "column": 75}}, {"id": 439, "type": "parameter_list", "text": "()", "parent": 437, "children": [], "start_point": {"row": 57, "column": 75}, "end_point": {"row": 57, "column": 77}}, {"id": 440, "type": "ERROR", "text": "/ sizeof(", "parent": 437, "children": [441], "start_point": {"row": 57, "column": 78}, "end_point": {"row": 57, "column": 87}}, {"id": 441, "type": "/", "text": "/", "parent": 440, "children": [], "start_point": {"row": 57, "column": 78}, "end_point": {"row": 57, "column": 79}}, {"id": 442, "type": "identifier", "text": "T", "parent": 437, "children": [], "start_point": {"row": 57, "column": 87}, "end_point": {"row": 57, "column": 88}}, {"id": 443, "type": "identifier", "text": "template", "parent": 431, "children": [], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 9}}, {"id": 444, "type": "<", "text": "<", "parent": 431, "children": [], "start_point": {"row": 60, "column": 10}, "end_point": {"row": 60, "column": 11}}, {"id": 445, "type": "identifier", "text": "typename", "parent": 431, "children": [], "start_point": {"row": 60, "column": 11}, "end_point": {"row": 60, "column": 19}}, {"id": 446, "type": "identifier", "text": "T", "parent": 431, "children": [], "start_point": {"row": 60, "column": 20}, "end_point": {"row": 60, "column": 21}}, {"id": 447, "type": ">", "text": ">", "parent": 431, "children": [], "start_point": {"row": 60, "column": 21}, "end_point": {"row": 60, "column": 22}}, {"id": 448, "type": "primitive_type", "text": "bool", "parent": 431, "children": [], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 5}}, {"id": 449, "type": "function_declarator", "text": "operator == (const Allocator<T> &, const Allocator<T> &)", "parent": 431, "children": [450, 451, 453], "start_point": {"row": 61, "column": 6}, "end_point": {"row": 61, "column": 62}}, {"id": 450, "type": "identifier", "text": "operator", "parent": 449, "children": [], "start_point": {"row": 61, "column": 6}, "end_point": {"row": 61, "column": 14}}, {"id": 451, "type": "ERROR", "text": "==", "parent": 449, "children": [452], "start_point": {"row": 61, "column": 15}, "end_point": {"row": 61, "column": 17}}, {"id": 452, "type": "==", "text": "==", "parent": 451, "children": [], "start_point": {"row": 61, "column": 15}, "end_point": {"row": 61, "column": 17}}, {"id": 453, "type": "parameter_list", "text": "(const Allocator<T> &, const Allocator<T> &)", "parent": 449, "children": [454, 459, 461, 466], "start_point": {"row": 61, "column": 18}, "end_point": {"row": 61, "column": 62}}, {"id": 454, "type": "parameter_declaration", "text": "const Allocator<T", "parent": 453, "children": [455, 456, 458], "start_point": {"row": 61, "column": 19}, "end_point": {"row": 61, "column": 36}}, {"id": 455, "type": "type_identifier", "text": "Allocator", "parent": 454, "children": [], "start_point": {"row": 61, "column": 25}, "end_point": {"row": 61, "column": 34}}, {"id": 456, "type": "ERROR", "text": "<", "parent": 454, "children": [457], "start_point": {"row": 61, "column": 34}, "end_point": {"row": 61, "column": 35}}, {"id": 457, "type": "<", "text": "<", "parent": 456, "children": [], "start_point": {"row": 61, "column": 34}, "end_point": {"row": 61, "column": 35}}, {"id": 458, "type": "identifier", "text": "T", "parent": 454, "children": [], "start_point": {"row": 61, "column": 35}, "end_point": {"row": 61, "column": 36}}, {"id": 459, "type": "ERROR", "text": "> &", "parent": 453, "children": [460], "start_point": {"row": 61, "column": 36}, "end_point": {"row": 61, "column": 39}}, {"id": 460, "type": ">", "text": ">", "parent": 459, "children": [], "start_point": {"row": 61, "column": 36}, "end_point": {"row": 61, "column": 37}}, {"id": 461, "type": "parameter_declaration", "text": "const Allocator<T", "parent": 453, "children": [462, 463, 465], "start_point": {"row": 61, "column": 41}, "end_point": {"row": 61, "column": 58}}, {"id": 462, "type": "type_identifier", "text": "Allocator", "parent": 461, "children": [], "start_point": {"row": 61, "column": 47}, "end_point": {"row": 61, "column": 56}}, {"id": 463, "type": "ERROR", "text": "<", "parent": 461, "children": [464], "start_point": {"row": 61, "column": 56}, "end_point": {"row": 61, "column": 57}}, {"id": 464, "type": "<", "text": "<", "parent": 463, "children": [], "start_point": {"row": 61, "column": 56}, "end_point": {"row": 61, "column": 57}}, {"id": 465, "type": "identifier", "text": "T", "parent": 461, "children": [], "start_point": {"row": 61, "column": 57}, "end_point": {"row": 61, "column": 58}}, {"id": 466, "type": "ERROR", "text": "> &", "parent": 453, "children": [467], "start_point": {"row": 61, "column": 58}, "end_point": {"row": 61, "column": 61}}, {"id": 467, "type": ">", "text": ">", "parent": 466, "children": [], "start_point": {"row": 61, "column": 58}, "end_point": {"row": 61, "column": 59}}, {"id": 468, "type": "true", "text": "true", "parent": 431, "children": [], "start_point": {"row": 61, "column": 72}, "end_point": {"row": 61, "column": 76}}, {"id": 469, "type": "identifier", "text": "template", "parent": 431, "children": [], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 9}}, {"id": 470, "type": "<", "text": "<", "parent": 431, "children": [], "start_point": {"row": 62, "column": 10}, "end_point": {"row": 62, "column": 11}}, {"id": 471, "type": "identifier", "text": "typename", "parent": 431, "children": [], "start_point": {"row": 62, "column": 11}, "end_point": {"row": 62, "column": 19}}, {"id": 472, "type": "identifier", "text": "T", "parent": 431, "children": [], "start_point": {"row": 62, "column": 20}, "end_point": {"row": 62, "column": 21}}, {"id": 473, "type": ">", "text": ">", "parent": 431, "children": [], "start_point": {"row": 62, "column": 21}, "end_point": {"row": 62, "column": 22}}, {"id": 474, "type": "primitive_type", "text": "bool", "parent": 431, "children": [], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 5}}, {"id": 475, "type": "function_declarator", "text": "operator != (const Allocator<T> &, const Allocator<T> &)", "parent": 431, "children": [476, 477, 479], "start_point": {"row": 63, "column": 6}, "end_point": {"row": 63, "column": 62}}, {"id": 476, "type": "identifier", "text": "operator", "parent": 475, "children": [], "start_point": {"row": 63, "column": 6}, "end_point": {"row": 63, "column": 14}}, {"id": 477, "type": "ERROR", "text": "!=", "parent": 475, "children": [478], "start_point": {"row": 63, "column": 15}, "end_point": {"row": 63, "column": 17}}, {"id": 478, "type": "!=", "text": "!=", "parent": 477, "children": [], "start_point": {"row": 63, "column": 15}, "end_point": {"row": 63, "column": 17}}, {"id": 479, "type": "parameter_list", "text": "(const Allocator<T> &, const Allocator<T> &)", "parent": 475, "children": [480, 485, 487, 492], "start_point": {"row": 63, "column": 18}, "end_point": {"row": 63, "column": 62}}, {"id": 480, "type": "parameter_declaration", "text": "const Allocator<T", "parent": 479, "children": [481, 482, 484], "start_point": {"row": 63, "column": 19}, "end_point": {"row": 63, "column": 36}}, {"id": 481, "type": "type_identifier", "text": "Allocator", "parent": 480, "children": [], "start_point": {"row": 63, "column": 25}, "end_point": {"row": 63, "column": 34}}, {"id": 482, "type": "ERROR", "text": "<", "parent": 480, "children": [483], "start_point": {"row": 63, "column": 34}, "end_point": {"row": 63, "column": 35}}, {"id": 483, "type": "<", "text": "<", "parent": 482, "children": [], "start_point": {"row": 63, "column": 34}, "end_point": {"row": 63, "column": 35}}, {"id": 484, "type": "identifier", "text": "T", "parent": 480, "children": [], "start_point": {"row": 63, "column": 35}, "end_point": {"row": 63, "column": 36}}, {"id": 485, "type": "ERROR", "text": "> &", "parent": 479, "children": [486], "start_point": {"row": 63, "column": 36}, "end_point": {"row": 63, "column": 39}}, {"id": 486, "type": ">", "text": ">", "parent": 485, "children": [], "start_point": {"row": 63, "column": 36}, "end_point": {"row": 63, "column": 37}}, {"id": 487, "type": "parameter_declaration", "text": "const Allocator<T", "parent": 479, "children": [488, 489, 491], "start_point": {"row": 63, "column": 41}, "end_point": {"row": 63, "column": 58}}, {"id": 488, "type": "type_identifier", "text": "Allocator", "parent": 487, "children": [], "start_point": {"row": 63, "column": 47}, "end_point": {"row": 63, "column": 56}}, {"id": 489, "type": "ERROR", "text": "<", "parent": 487, "children": [490], "start_point": {"row": 63, "column": 56}, "end_point": {"row": 63, "column": 57}}, {"id": 490, "type": "<", "text": "<", "parent": 489, "children": [], "start_point": {"row": 63, "column": 56}, "end_point": {"row": 63, "column": 57}}, {"id": 491, "type": "identifier", "text": "T", "parent": 487, "children": [], "start_point": {"row": 63, "column": 57}, "end_point": {"row": 63, "column": 58}}, {"id": 492, "type": "ERROR", "text": "> &", "parent": 479, "children": [493], "start_point": {"row": 63, "column": 58}, "end_point": {"row": 63, "column": 61}}, {"id": 493, "type": ">", "text": ">", "parent": 492, "children": [], "start_point": {"row": 63, "column": 58}, "end_point": {"row": 63, "column": 59}}, {"id": 494, "type": "false", "text": "false", "parent": 431, "children": [], "start_point": {"row": 63, "column": 72}, "end_point": {"row": 63, "column": 77}}, {"id": 495, "type": "struct", "text": "struct", "parent": 431, "children": [], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 7}}, {"id": 496, "type": "identifier", "text": "GlobalParams", "parent": 428, "children": [], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 20}}, {"id": 497, "type": "declaration", "text": "void InitializeMemory(const GlobalParams & params);", "parent": 423, "children": [498, 499], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 52}}, {"id": 498, "type": "primitive_type", "text": "void", "parent": 497, "children": [], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 5}}, {"id": 499, "type": "function_declarator", "text": "InitializeMemory(const GlobalParams & params)", "parent": 497, "children": [500, 501], "start_point": {"row": 66, "column": 6}, "end_point": {"row": 66, "column": 51}}, {"id": 500, "type": "identifier", "text": "InitializeMemory", "parent": 499, "children": [], "start_point": {"row": 66, "column": 6}, "end_point": {"row": 66, "column": 22}}, {"id": 501, "type": "parameter_list", "text": "(const GlobalParams & params)", "parent": 499, "children": [502], "start_point": {"row": 66, "column": 22}, "end_point": {"row": 66, "column": 51}}, {"id": 502, "type": "parameter_declaration", "text": "const GlobalParams & params", "parent": 501, "children": [503, 504], "start_point": {"row": 66, "column": 23}, "end_point": {"row": 66, "column": 50}}, {"id": 503, "type": "type_identifier", "text": "GlobalParams", "parent": 502, "children": [], "start_point": {"row": 66, "column": 29}, "end_point": {"row": 66, "column": 41}}, {"id": 504, "type": "identifier", "text": "params", "parent": 502, "children": [], "start_point": {"row": 66, "column": 44}, "end_point": {"row": 66, "column": 50}}, {"id": 505, "type": "declaration", "text": "struct MemoryStats\n\t{\n\t\tuint64_t allocationCount = 0;\n\t\tuint64_t freeCount = 0;\n\t\tuint64_t allocatedMemory = 0;\n\t};", "parent": 423, "children": [506, 527], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 73, "column": 3}}, {"id": 506, "type": "struct_specifier", "text": "struct MemoryStats\n\t{\n\t\tuint64_t allocationCount = 0;\n\t\tuint64_t freeCount = 0;\n\t\tuint64_t allocatedMemory = 0;\n\t}", "parent": 505, "children": [507, 508], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 73, "column": 2}}, {"id": 507, "type": "struct", "text": "struct", "parent": 506, "children": [], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 7}}, {"id": 508, "type": "type_identifier", "text": "MemoryStats", "parent": 506, "children": [], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 19}}, {"id": 509, "type": "field_declaration", "text": "uint64_t allocationCount = 0;", "parent": 506, "children": [510, 511, 512], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 31}}, {"id": 510, "type": "primitive_type", "text": "uint64_t", "parent": 509, "children": [], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 10}}, {"id": 511, "type": "field_identifier", "text": "allocationCount", "parent": 509, "children": [], "start_point": {"row": 70, "column": 11}, "end_point": {"row": 70, "column": 26}}, {"id": 512, "type": "ERROR", "text": "= 0", "parent": 509, "children": [513, 514], "start_point": {"row": 70, "column": 27}, "end_point": {"row": 70, "column": 30}}, {"id": 513, "type": "=", "text": "=", "parent": 512, "children": [], "start_point": {"row": 70, "column": 27}, "end_point": {"row": 70, "column": 28}}, {"id": 514, "type": "number_literal", "text": "0", "parent": 512, "children": [], "start_point": {"row": 70, "column": 29}, "end_point": {"row": 70, "column": 30}}, {"id": 515, "type": "field_declaration", "text": "uint64_t freeCount = 0;", "parent": 506, "children": [516, 517, 518], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 25}}, {"id": 516, "type": "primitive_type", "text": "uint64_t", "parent": 515, "children": [], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 10}}, {"id": 517, "type": "field_identifier", "text": "freeCount", "parent": 515, "children": [], "start_point": {"row": 71, "column": 11}, "end_point": {"row": 71, "column": 20}}, {"id": 518, "type": "ERROR", "text": "= 0", "parent": 515, "children": [519, 520], "start_point": {"row": 71, "column": 21}, "end_point": {"row": 71, "column": 24}}, {"id": 519, "type": "=", "text": "=", "parent": 518, "children": [], "start_point": {"row": 71, "column": 21}, "end_point": {"row": 71, "column": 22}}, {"id": 520, "type": "number_literal", "text": "0", "parent": 518, "children": [], "start_point": {"row": 71, "column": 23}, "end_point": {"row": 71, "column": 24}}, {"id": 521, "type": "field_declaration", "text": "uint64_t allocatedMemory = 0;", "parent": 506, "children": [522, 523, 524], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 31}}, {"id": 522, "type": "primitive_type", "text": "uint64_t", "parent": 521, "children": [], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 10}}, {"id": 523, "type": "field_identifier", "text": "allocatedMemory", "parent": 521, "children": [], "start_point": {"row": 72, "column": 11}, "end_point": {"row": 72, "column": 26}}, {"id": 524, "type": "ERROR", "text": "= 0", "parent": 521, "children": [525, 526], "start_point": {"row": 72, "column": 27}, "end_point": {"row": 72, "column": 30}}, {"id": 525, "type": "=", "text": "=", "parent": 524, "children": [], "start_point": {"row": 72, "column": 27}, "end_point": {"row": 72, "column": 28}}, {"id": 526, "type": "number_literal", "text": "0", "parent": 524, "children": [], "start_point": {"row": 72, "column": 29}, "end_point": {"row": 72, "column": 30}}, {"id": 527, "type": "identifier", "text": "", "parent": 505, "children": [], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 2}}, {"id": 528, "type": "declaration", "text": "MemoryStats GetMemoryStats();", "parent": 423, "children": [529, 530], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 30}}, {"id": 529, "type": "type_identifier", "text": "MemoryStats", "parent": 528, "children": [], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 12}}, {"id": 530, "type": "function_declarator", "text": "GetMemoryStats()", "parent": 528, "children": [531, 532], "start_point": {"row": 75, "column": 13}, "end_point": {"row": 75, "column": 29}}, {"id": 531, "type": "identifier", "text": "GetMemoryStats", "parent": 530, "children": [], "start_point": {"row": 75, "column": 13}, "end_point": {"row": 75, "column": 27}}, {"id": 532, "type": "parameter_list", "text": "()", "parent": 530, "children": [], "start_point": {"row": 75, "column": 27}, "end_point": {"row": 75, "column": 29}}, {"id": 533, "type": "declaration", "text": "using String = std::basic_string <char, std::char_traits<char>, Allocator<char>>;", "parent": 423, "children": [534, 535, 544, 546, 547, 551, 552], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 82}}, {"id": 534, "type": "type_identifier", "text": "using", "parent": 533, "children": [], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 6}}, {"id": 535, "type": "init_declarator", "text": "String = std::basic_string <char", "parent": 533, "children": [536, 537, 538, 540], "start_point": {"row": 78, "column": 7}, "end_point": {"row": 78, "column": 39}}, {"id": 536, "type": "identifier", "text": "String", "parent": 535, "children": [], "start_point": {"row": 78, "column": 7}, "end_point": {"row": 78, "column": 13}}, {"id": 537, "type": "=", "text": "=", "parent": 535, "children": [], "start_point": {"row": 78, "column": 14}, "end_point": {"row": 78, "column": 15}}, {"id": 538, "type": "ERROR", "text": "std::", "parent": 535, "children": [539], "start_point": {"row": 78, "column": 16}, "end_point": {"row": 78, "column": 21}}, {"id": 539, "type": "identifier", "text": "std", "parent": 538, "children": [], "start_point": {"row": 78, "column": 16}, "end_point": {"row": 78, "column": 19}}, {"id": 540, "type": "binary_expression", "text": "basic_string <char", "parent": 535, "children": [541, 542, 543], "start_point": {"row": 78, "column": 21}, "end_point": {"row": 78, "column": 39}}, {"id": 541, "type": "identifier", "text": "basic_string", "parent": 540, "children": [], "start_point": {"row": 78, "column": 21}, "end_point": {"row": 78, "column": 33}}, {"id": 542, "type": "<", "text": "<", "parent": 540, "children": [], "start_point": {"row": 78, "column": 34}, "end_point": {"row": 78, "column": 35}}, {"id": 543, "type": "identifier", "text": "char", "parent": 540, "children": [], "start_point": {"row": 78, "column": 35}, "end_point": {"row": 78, "column": 39}}, {"id": 544, "type": "ERROR", "text": "std::", "parent": 533, "children": [545], "start_point": {"row": 78, "column": 41}, "end_point": {"row": 78, "column": 46}}, {"id": 545, "type": "identifier", "text": "std", "parent": 544, "children": [], "start_point": {"row": 78, "column": 41}, "end_point": {"row": 78, "column": 44}}, {"id": 546, "type": "identifier", "text": "char_traits", "parent": 533, "children": [], "start_point": {"row": 78, "column": 46}, "end_point": {"row": 78, "column": 57}}, {"id": 547, "type": "ERROR", "text": "<char>", "parent": 533, "children": [548, 549, 550], "start_point": {"row": 78, "column": 57}, "end_point": {"row": 78, "column": 63}}, {"id": 548, "type": "<", "text": "<", "parent": 547, "children": [], "start_point": {"row": 78, "column": 57}, "end_point": {"row": 78, "column": 58}}, {"id": 549, "type": "primitive_type", "text": "char", "parent": 547, "children": [], "start_point": {"row": 78, "column": 58}, "end_point": {"row": 78, "column": 62}}, {"id": 550, "type": ">", "text": ">", "parent": 547, "children": [], "start_point": {"row": 78, "column": 62}, "end_point": {"row": 78, "column": 63}}, {"id": 551, "type": "identifier", "text": "Allocator", "parent": 533, "children": [], "start_point": {"row": 78, "column": 65}, "end_point": {"row": 78, "column": 74}}, {"id": 552, "type": "ERROR", "text": "<char>>", "parent": 533, "children": [553, 554, 555], "start_point": {"row": 78, "column": 74}, "end_point": {"row": 78, "column": 81}}, {"id": 553, "type": "<", "text": "<", "parent": 552, "children": [], "start_point": {"row": 78, "column": 74}, "end_point": {"row": 78, "column": 75}}, {"id": 554, "type": "primitive_type", "text": "char", "parent": 552, "children": [], "start_point": {"row": 78, "column": 75}, "end_point": {"row": 78, "column": 79}}, {"id": 555, "type": ">>", "text": ">>", "parent": 552, "children": [], "start_point": {"row": 78, "column": 79}, "end_point": {"row": 78, "column": 81}}, {"id": 556, "type": "declaration", "text": "using StringU16 = std::basic_string <char16_t, std::char_traits<char16_t>, Allocator<char16_t>>;", "parent": 423, "children": [557, 558, 567, 569, 570, 574, 575], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 97}}, {"id": 557, "type": "type_identifier", "text": "using", "parent": 556, "children": [], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 6}}, {"id": 558, "type": "init_declarator", "text": "StringU16 = std::basic_string <char16_t", "parent": 556, "children": [559, 560, 561, 563], "start_point": {"row": 81, "column": 7}, "end_point": {"row": 81, "column": 46}}, {"id": 559, "type": "identifier", "text": "StringU16", "parent": 558, "children": [], "start_point": {"row": 81, "column": 7}, "end_point": {"row": 81, "column": 16}}, {"id": 560, "type": "=", "text": "=", "parent": 558, "children": [], "start_point": {"row": 81, "column": 17}, "end_point": {"row": 81, "column": 18}}, {"id": 561, "type": "ERROR", "text": "std::", "parent": 558, "children": [562], "start_point": {"row": 81, "column": 19}, "end_point": {"row": 81, "column": 24}}, {"id": 562, "type": "identifier", "text": "std", "parent": 561, "children": [], "start_point": {"row": 81, "column": 19}, "end_point": {"row": 81, "column": 22}}, {"id": 563, "type": "binary_expression", "text": "basic_string <char16_t", "parent": 558, "children": [564, 565, 566], "start_point": {"row": 81, "column": 24}, "end_point": {"row": 81, "column": 46}}, {"id": 564, "type": "identifier", "text": "basic_string", "parent": 563, "children": [], "start_point": {"row": 81, "column": 24}, "end_point": {"row": 81, "column": 36}}, {"id": 565, "type": "<", "text": "<", "parent": 563, "children": [], "start_point": {"row": 81, "column": 37}, "end_point": {"row": 81, "column": 38}}, {"id": 566, "type": "identifier", "text": "char16_t", "parent": 563, "children": [], "start_point": {"row": 81, "column": 38}, "end_point": {"row": 81, "column": 46}}, {"id": 567, "type": "ERROR", "text": "std::", "parent": 556, "children": [568], "start_point": {"row": 81, "column": 48}, "end_point": {"row": 81, "column": 53}}, {"id": 568, "type": "identifier", "text": "std", "parent": 567, "children": [], "start_point": {"row": 81, "column": 48}, "end_point": {"row": 81, "column": 51}}, {"id": 569, "type": "identifier", "text": "char_traits", "parent": 556, "children": [], "start_point": {"row": 81, "column": 53}, "end_point": {"row": 81, "column": 64}}, {"id": 570, "type": "ERROR", "text": "<char16_t>", "parent": 556, "children": [571, 572, 573], "start_point": {"row": 81, "column": 64}, "end_point": {"row": 81, "column": 74}}, {"id": 571, "type": "<", "text": "<", "parent": 570, "children": [], "start_point": {"row": 81, "column": 64}, "end_point": {"row": 81, "column": 65}}, {"id": 572, "type": "primitive_type", "text": "char16_t", "parent": 570, "children": [], "start_point": {"row": 81, "column": 65}, "end_point": {"row": 81, "column": 73}}, {"id": 573, "type": ">", "text": ">", "parent": 570, "children": [], "start_point": {"row": 81, "column": 73}, "end_point": {"row": 81, "column": 74}}, {"id": 574, "type": "identifier", "text": "Allocator", "parent": 556, "children": [], "start_point": {"row": 81, "column": 76}, "end_point": {"row": 81, "column": 85}}, {"id": 575, "type": "ERROR", "text": "<char16_t>>", "parent": 556, "children": [576, 577, 578], "start_point": {"row": 81, "column": 85}, "end_point": {"row": 81, "column": 96}}, {"id": 576, "type": "<", "text": "<", "parent": 575, "children": [], "start_point": {"row": 81, "column": 85}, "end_point": {"row": 81, "column": 86}}, {"id": 577, "type": "primitive_type", "text": "char16_t", "parent": 575, "children": [], "start_point": {"row": 81, "column": 86}, "end_point": {"row": 81, "column": 94}}, {"id": 578, "type": ">>", "text": ">>", "parent": 575, "children": [], "start_point": {"row": 81, "column": 94}, "end_point": {"row": 81, "column": 96}}, {"id": 579, "type": "declaration", "text": "using WString = std::basic_string <wchar_t, std::char_traits<wchar_t>, Allocator<wchar_t>>;", "parent": 423, "children": [580, 581, 590, 594, 595, 597, 598], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 92}}, {"id": 580, "type": "type_identifier", "text": "using", "parent": 579, "children": [], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 6}}, {"id": 581, "type": "init_declarator", "text": "WString = std::basic_string <wchar_t", "parent": 579, "children": [582, 583, 584, 586], "start_point": {"row": 84, "column": 7}, "end_point": {"row": 84, "column": 43}}, {"id": 582, "type": "identifier", "text": "WString", "parent": 581, "children": [], "start_point": {"row": 84, "column": 7}, "end_point": {"row": 84, "column": 14}}, {"id": 583, "type": "=", "text": "=", "parent": 581, "children": [], "start_point": {"row": 84, "column": 15}, "end_point": {"row": 84, "column": 16}}, {"id": 584, "type": "ERROR", "text": "std::", "parent": 581, "children": [585], "start_point": {"row": 84, "column": 17}, "end_point": {"row": 84, "column": 22}}, {"id": 585, "type": "identifier", "text": "std", "parent": 584, "children": [], "start_point": {"row": 84, "column": 17}, "end_point": {"row": 84, "column": 20}}, {"id": 586, "type": "binary_expression", "text": "basic_string <wchar_t", "parent": 581, "children": [587, 588, 589], "start_point": {"row": 84, "column": 22}, "end_point": {"row": 84, "column": 43}}, {"id": 587, "type": "identifier", "text": "basic_string", "parent": 586, "children": [], "start_point": {"row": 84, "column": 22}, "end_point": {"row": 84, "column": 34}}, {"id": 588, "type": "<", "text": "<", "parent": 586, "children": [], "start_point": {"row": 84, "column": 35}, "end_point": {"row": 84, "column": 36}}, {"id": 589, "type": "identifier", "text": "wchar_t", "parent": 586, "children": [], "start_point": {"row": 84, "column": 36}, "end_point": {"row": 84, "column": 43}}, {"id": 590, "type": "ERROR", "text": "std::char_traits<", "parent": 579, "children": [591, 592, 593], "start_point": {"row": 84, "column": 45}, "end_point": {"row": 84, "column": 62}}, {"id": 591, "type": "identifier", "text": "std", "parent": 590, "children": [], "start_point": {"row": 84, "column": 45}, "end_point": {"row": 84, "column": 48}}, {"id": 592, "type": "identifier", "text": "char_traits", "parent": 590, "children": [], "start_point": {"row": 84, "column": 50}, "end_point": {"row": 84, "column": 61}}, {"id": 593, "type": "<", "text": "<", "parent": 590, "children": [], "start_point": {"row": 84, "column": 61}, "end_point": {"row": 84, "column": 62}}, {"id": 594, "type": "identifier", "text": "wchar_t", "parent": 579, "children": [], "start_point": {"row": 84, "column": 62}, "end_point": {"row": 84, "column": 69}}, {"id": 595, "type": "ERROR", "text": ">", "parent": 579, "children": [596], "start_point": {"row": 84, "column": 69}, "end_point": {"row": 84, "column": 70}}, {"id": 596, "type": ">", "text": ">", "parent": 595, "children": [], "start_point": {"row": 84, "column": 69}, "end_point": {"row": 84, "column": 70}}, {"id": 597, "type": "identifier", "text": "Allocator", "parent": 579, "children": [], "start_point": {"row": 84, "column": 72}, "end_point": {"row": 84, "column": 81}}, {"id": 598, "type": "ERROR", "text": "<wchar_t>>", "parent": 579, "children": [599, 600, 601], "start_point": {"row": 84, "column": 81}, "end_point": {"row": 84, "column": 91}}, {"id": 599, "type": "<", "text": "<", "parent": 598, "children": [], "start_point": {"row": 84, "column": 81}, "end_point": {"row": 84, "column": 82}}, {"id": 600, "type": "identifier", "text": "wchar_t", "parent": 598, "children": [], "start_point": {"row": 84, "column": 82}, "end_point": {"row": 84, "column": 89}}, {"id": 601, "type": ">>", "text": ">>", "parent": 598, "children": [], "start_point": {"row": 84, "column": 89}, "end_point": {"row": 84, "column": 91}}, {"id": 602, "type": "#endif", "text": "#endif", "parent": 3, "children": [], "start_point": {"row": 87, "column": 0}, "end_point": {"row": 87, "column": 6}}]}, "node_categories": {"declarations": {"functions": [9, 16, 26, 39, 110, 115, 194, 196, 205, 207, 216, 218, 243, 245, 274, 276, 348, 350, 386, 403, 405, 425, 437, 449, 475, 499, 530], "variables": [12, 19, 22, 29, 34, 37, 42, 58, 64, 70, 78, 86, 92, 99, 199, 210, 221, 248, 251, 279, 284, 353, 356, 387, 408, 409, 428, 454, 461, 480, 487, 497, 502, 505, 509, 515, 521, 528, 533, 556, 579], "classes": [495, 506, 507], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [48, 49, 105, 108, 117, 118, 126, 127, 135, 136, 138, 139, 140, 151, 157, 158, 163, 167, 170, 175, 181, 186, 189, 191, 203, 214, 225, 226, 231, 234, 237, 240, 241, 256, 257, 262, 265, 268, 271, 272, 288, 291, 292, 299, 301, 302, 308, 315, 318, 322, 326, 328, 333, 335, 340, 341, 346, 359, 361, 362, 369, 371, 376, 396, 397, 416, 417, 540, 563, 586], "assignments": [148, 172], "loops": [], "conditionals": [3, 4, 5, 8, 10, 11, 17, 21, 27, 33, 36, 40, 46, 50, 52, 54, 56, 59, 61, 63, 65, 67, 69, 71, 73, 75, 79, 81, 84, 87, 89, 91, 93, 95, 98, 100, 102, 104, 106, 111, 112, 114, 119, 121, 123, 125, 128, 131, 133, 141, 143, 145, 147, 149, 155, 159, 161, 164, 165, 169, 171, 173, 179, 182, 183, 184, 188, 192, 195, 197, 200, 201, 204, 206, 208, 211, 212, 215, 217, 219, 222, 223, 227, 229, 233, 235, 238, 242, 244, 246, 249, 250, 258, 260, 264, 266, 269, 273, 277, 283, 285, 287, 289, 293, 295, 300, 303, 305, 307, 309, 311, 314, 316, 319, 321, 323, 325, 334, 336, 339, 342, 344, 347, 351, 354, 355, 357, 358, 363, 365, 370, 372, 374, 377, 379, 381, 384, 385, 390, 392, 395, 398, 401, 406, 412, 414, 415, 418, 421, 424, 426, 430, 432, 434, 438, 442, 443, 445, 446, 450, 455, 458, 462, 465, 469, 471, 472, 476, 481, 484, 488, 491, 496, 500, 503, 504, 508, 511, 517, 523, 527, 529, 531, 534, 536, 539, 541, 543, 545, 546, 551, 557, 559, 562, 564, 566, 568, 569, 574, 580, 582, 585, 587, 589, 591, 592, 594, 597, 600, 602], "returns": [166, 185, 202, 213, 224, 255], "exceptions": []}, "expressions": {"calls": [0], "literals": [514, 520, 526], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "*", "text_snippet": "namespace Jinx\n{\n\t// Stand-alone global allocation functions\n\tvoid * MemAllocate(size_t bytes);\n\tvoi"}, {"node_id": 16, "universal_type": "function", "name": "unknown", "text_snippet": "MemAllocate(size_t bytes)"}, {"node_id": 26, "universal_type": "function", "name": "unknown", "text_snippet": "MemReallocate(void * ptr, size_t bytes)"}, {"node_id": 39, "universal_type": "function", "name": "unknown", "text_snippet": "MemFree(void * ptr)"}, {"node_id": 110, "universal_type": "function", "name": "unknown", "text_snippet": "Allocator(const Allocator &) throw() { }"}, {"node_id": 115, "universal_type": "function", "name": "unknown", "text_snippet": "throw()"}, {"node_id": 194, "universal_type": "function", "name": "unknown", "text_snippet": "pointer address(reference value) const { return &value; }"}, {"node_id": 196, "universal_type": "function", "name": "unknown", "text_snippet": "address(reference value) const"}, {"node_id": 205, "universal_type": "function", "name": "unknown", "text_snippet": "const_pointer address(const_reference value) const { return &value; }"}, {"node_id": 207, "universal_type": "function", "name": "unknown", "text_snippet": "address(const_reference value) const"}, {"node_id": 216, "universal_type": "function", "name": "unknown", "text_snippet": "pointer allocate(size_type n) { return static_cast<pointer> (Jinx::MemAllocate(n * sizeof(value_type"}, {"node_id": 218, "universal_type": "function", "name": "unknown", "text_snippet": "allocate(size_type n)"}, {"node_id": 243, "universal_type": "function", "name": "*)", "text_snippet": "pointer allocate(size_type n, const void *) { return static_cast<pointer> (Jinx::MemAllocate(n * siz"}, {"node_id": 245, "universal_type": "function", "name": "*)", "text_snippet": "allocate(size_type n, const void *)"}, {"node_id": 274, "universal_type": "function", "name": "deallocate", "text_snippet": "void deallocate(void* ptr, size_type) { Jinx::MemFree(static_cast<T*> (ptr)); }"}, {"node_id": 276, "universal_type": "function", "name": "unknown", "text_snippet": "deallocate(void* ptr, size_type)"}, {"node_id": 348, "universal_type": "function", "name": "construct", "text_snippet": "void construct(pointer ptr, const T& val) { new (static_cast<T*> (ptr)) T(val); }"}, {"node_id": 350, "universal_type": "function", "name": "unknown", "text_snippet": "construct(pointer ptr, const T& val)"}, {"node_id": 386, "universal_type": "function", "name": "unknown", "text_snippet": "[[maybe_unused]] U* ptr) { ptr->~U(); }"}, {"node_id": 403, "universal_type": "function", "name": "destroy", "text_snippet": "void destroy([[maybe_unused]] pointer ptr) { ptr->~T(); }"}, {"node_id": 405, "universal_type": "function", "name": "unknown", "text_snippet": "destroy([[maybe_unused]] pointer ptr)"}, {"node_id": 425, "universal_type": "function", "name": "unknown", "text_snippet": "max_size()"}, {"node_id": 437, "universal_type": "function", "name": "unknown", "text_snippet": "max() / sizeof(T"}, {"node_id": 449, "universal_type": "function", "name": "unknown", "text_snippet": "operator == (const Allocator<T> &, const Allocator<T> &)"}, {"node_id": 475, "universal_type": "function", "name": "unknown", "text_snippet": "operator != (const Allocator<T> &, const Allocator<T> &)"}, {"node_id": 499, "universal_type": "function", "name": "unknown", "text_snippet": "InitializeMemory(const GlobalParams & params)"}, {"node_id": 530, "universal_type": "function", "name": "unknown", "text_snippet": "GetMemoryStats()"}], "class_declarations": [{"node_id": 495, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 506, "universal_type": "class", "name": "MemoryStats", "text_snippet": "struct MemoryStats\n\t{\n\t\tuint64_t allocationCount = 0;\n\t\tuint64_t freeCount = 0;\n\t\tuint64_t allocated"}, {"node_id": 507, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": []}, "original_source_code": "/*\nThe Jinx library is distributed under the MIT License (MIT)\nhttps://opensource.org/licenses/MIT\nSee LICENSE.TXT or Jinx.h for license details.\nCopyright (c) 2016 <NAME>\n*/\n\n#pragma once\n#ifndef JX_MEMORY_H__\n#define JX_MEMORY_H__\n\nnamespace Jinx\n{\n\t// Stand-alone global allocation functions\n\tvoid * MemAllocate(size_t bytes);\n\tvoid * MemReallocate(void * ptr, size_t bytes);\n\tvoid MemFree(void * ptr);\n\n\t// Jinx allocator for use in STL containers\n\ttemplate <typename T>\n\tclass Allocator\n\t{\n\tpublic:\n\t\tusing size_type = size_t;\n\t\tusing difference_type = ptrdiff_t;\n\t\tusing pointer = T*;\n\t\tusing const_pointer = const T*;\n\t\tusing reference = T&;\n\t\tusing const_reference = const T&;\n\t\tusing value_type = T;\n\n\t\tAllocator() throw() {};\n\t\tAllocator(const Allocator &) throw() { }\n\n\t\ttemplate<typename U>\n\t\texplicit Allocator(const Allocator<U>&) throw() { }\n\n\t\ttemplate<typename U>\n\t\tAllocator & operator = ([[maybe_unused]] const Allocator<U> & other) { other; return *this; }\n\t\tAllocator & operator = ([[maybe_unused]] const Allocator & other) { other; return *this; }\n\t\t~Allocator() {}\n\n\t\tpointer address(reference value) const { return &value; }\n\t\tconst_pointer address(const_reference value) const { return &value; }\n\n\t\tpointer allocate(size_type n) { return static_cast<pointer> (Jinx::MemAllocate(n * sizeof(value_type))); }\n\t\tpointer allocate(size_type n, const void *) { return static_cast<pointer> (Jinx::MemAllocate(n * sizeof(value_type))); }\n\t\tvoid deallocate(void* ptr, size_type) { Jinx::MemFree(static_cast<T*> (ptr)); }\n\n\t\ttemplate<typename U, typename... Args>\n\t\tvoid construct(U* ptr, Args&& ... args) { ::new ((void*)(ptr)) U(std::forward<Args>(args)...); }\n\t\tvoid construct(pointer ptr, const T& val) { new (static_cast<T*> (ptr)) T(val); }\n\n\t\ttemplate<typename U>\n\t\tvoid destroy([[maybe_unused]] U* ptr) { ptr->~U(); }\n\t\tvoid destroy([[maybe_unused]] pointer ptr) { ptr->~T(); }\n\n\t\tsize_type max_size() const { return std::numeric_limits<std::size_t>::max() / sizeof(T); }\n\t};\n\n\ttemplate <typename T>\n\tbool operator == (const Allocator<T> &, const Allocator<T> &) { return true; }\n\ttemplate <typename T>\n\tbool operator != (const Allocator<T> &, const Allocator<T> &) { return false; }\n\n\tstruct GlobalParams;\n\tvoid InitializeMemory(const GlobalParams & params);\n\n\tstruct MemoryStats\n\t{\n\t\tuint64_t allocationCount = 0;\n\t\tuint64_t freeCount = 0;\n\t\tuint64_t allocatedMemory = 0;\n\t};\n\n\tMemoryStats GetMemoryStats();\n\n\t// Define a custom UTF-8 string using internal allocator\n\tusing String = std::basic_string <char, std::char_traits<char>, Allocator<char>>;\n\n\t// Define a custom UTF-16 string using internal allocator\n\tusing StringU16 = std::basic_string <char16_t, std::char_traits<char16_t>, Allocator<char16_t>>;\n\n\t// Define a custom wide character string using internal allocator\n\tusing WString = std::basic_string <wchar_t, std::char_traits<wchar_t>, Allocator<wchar_t>>;\n}\n\n#endif // JX_MEMORY_H__\n"}
80,263
c
// // SCTRole.h // SceytChat // // Copyright © 2021 Sceyt LLC. All rights reserved. // #import <Foundation/Foundation.h> #import "SCTTypes.h" NS_ASSUME_NONNULL_BEGIN NS_SWIFT_NAME(Role) @interface SCTRole : NSObject /// The role name. @property (nonatomic, readonly, nonnull) NSString *name; /// init is unavailable. - (instancetype)init NS_UNAVAILABLE; @end NS_ASSUME_NONNULL_END
21.59
17
(translation_unit) "//\n// SCTRole.h\n// SceytChat\n//\n// Copyright © 2021 Sceyt LLC. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "SCTTypes.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\nNS_SWIFT_NAME(Role)\n@interface SCTRole : NSObject\n\n/// The role name.\n@property (nonatomic, readonly, nonnull) NSString *name;\n\n/// init is unavailable.\n- (instancetype)init NS_UNAVAILABLE;\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment) "//" (comment) "// SCTRole.h" (comment) "// SceytChat" (comment) "//" (comment) "// Copyright © 2021 Sceyt LLC. All rights reserved.\n" (comment) "/\n" (preproc_call) "import <Foundation/Foundation.h>\n#" (preproc_directive) "import " (preproc_arg) "Foundation/Foundation.h>\n" (preproc_call) "import "SCTTypes.h"\n\n" (preproc_directive) "import " (preproc_arg) "SCTTypes.h"\n" (ERROR) "S_ASSUME_NONNULL_BEGIN\n\nNS_SWIFT_NAME(Role)\n@interface SCTRole : NSObject\n\n/// The role name.\n@property (nonatomic, readonly, nonnull) NSString *name;\n\n/// init is unavailable.\n- (instancetype)init NS_UNAVAILABLE;\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (type_identifier) "S_ASSUME_NONNULL_BEGIN\n" (function_declarator) "S_SWIFT_NAME(Role)\n" (identifier) "S_SWIFT_NAME(" (parameter_list) "Role)\n" (() "R" (identifier) "ole)" ()) "\n" (ERROR) "i" (ERROR) "i" (declaration) "nterface SCTRole : NSObject\n\n/// The role name.\n@property (nonatomic, readonly, nonnull) NSString *name;\n" (type_identifier) "nterface " (ERROR) "CTRole : NSObject\n\n/// The role name.\n@property (nonatomic, readonly, nonnull) NSString " (identifier) "CTRole " (:) " " (identifier) "SObject\n" (comment) "// The role name.\n" (ERROR) "p" (function_declarator) "roperty (nonatomic, readonly, nonnull) NSString " (identifier) "roperty " (parameter_list) "nonatomic, readonly, nonnull) " (() "n" (parameter_declaration) "onatomic," (type_identifier) "onatomic," (,) " " (parameter_declaration) "eadonly," (type_identifier) "eadonly," (,) " " (parameter_declaration) "onnull)" (type_identifier) "onnull)" ()) " " (identifier) "SString " (pointer_declarator) "name;" (*) "n" (identifier) "ame;" (;) "\n" (comment) "// init is unavailable.\n" (ERROR) " (i" (-) " " (() "i" (declaration) "nstancetype)init NS_UNAVAILABLE;\n" (type_identifier) "nstancetype)" (ERROR) "init " ()) "i" (identifier) "nit " (identifier) "S_UNAVAILABLE;" (;) "\n" (ERROR) "e" (ERROR) "e" (type_identifier) "nd\n" (identifier) "S_ASSUME_NONNULL_END\n"
64
9
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 21.59, "nodes": 42, "errors": 0, "source_hash": "4d49acd3146ed2e616f4775b7a3fe0835f86bfbe2a240b5c4184ec44c5b962a2", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <Foundation/Foundation.h>\n#", "parent": null, "children": [1], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 1, "type": "preproc_arg", "text": "Foundation/Foundation.h>\n", "parent": 0, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 33}}, {"id": 2, "type": "preproc_call", "text": "import \"SCTTypes.h\"\n\n", "parent": null, "children": [3], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 3, "type": "preproc_arg", "text": "SCTTypes.h\"\n", "parent": 2, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 20}}, {"id": 4, "type": "ERROR", "text": "S_ASSUME_NONNULL_BEGIN\n\nNS_SWIFT_NAME(Role)\n@interface SCTRole : NSObject\n\n/// The role name.\n@property (nonatomic, readonly, nonnull) NSString *name;\n\n/// init is unavailable.\n- (instancetype)init NS_UNAVAILABLE;\n\n@end\n\nNS_ASSUME_NONNULL_END\n", "parent": null, "children": [5, 6, 10, 12, 31, 33, 38, 40, 41], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 23, "column": 21}}, {"id": 5, "type": "type_identifier", "text": "S_ASSUME_NONNULL_BEGIN\n", "parent": 4, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 23}}, {"id": 6, "type": "function_declarator", "text": "S_SWIFT_NAME(Role)\n", "parent": 4, "children": [7, 8], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 19}}, {"id": 7, "type": "identifier", "text": "S_SWIFT_NAME(", "parent": 6, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 13}}, {"id": 8, "type": "parameter_list", "text": "Role)\n", "parent": 6, "children": [9], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 19}}, {"id": 9, "type": "identifier", "text": "ole)", "parent": 8, "children": [], "start_point": {"row": 12, "column": 14}, "end_point": {"row": 12, "column": 18}}, {"id": 10, "type": "ERROR", "text": "i", "parent": 4, "children": [11], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 11, "type": "ERROR", "text": "i", "parent": 10, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 12, "type": "declaration", "text": "nterface SCTRole : NSObject\n\n/// The role name.\n@property (nonatomic, readonly, nonnull) NSString *name;\n", "parent": 4, "children": [13, 14, 28], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 16, "column": 56}}, {"id": 13, "type": "type_identifier", "text": "nterface ", "parent": 12, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 10}}, {"id": 14, "type": "ERROR", "text": "CTRole : NSObject\n\n/// The role name.\n@property (nonatomic, readonly, nonnull) NSString ", "parent": 12, "children": [15, 16, 17, 18], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 16, "column": 49}}, {"id": 15, "type": "identifier", "text": "CTRole ", "parent": 14, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 18}}, {"id": 16, "type": "identifier", "text": "SObject\n", "parent": 14, "children": [], "start_point": {"row": 13, "column": 21}, "end_point": {"row": 13, "column": 29}}, {"id": 17, "type": "ERROR", "text": "p", "parent": 14, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 18, "type": "function_declarator", "text": "roperty (nonatomic, readonly, nonnull) NSString ", "parent": 14, "children": [19, 20, 27], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 49}}, {"id": 19, "type": "identifier", "text": "roperty ", "parent": 18, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 9}}, {"id": 20, "type": "parameter_list", "text": "nonatomic, readonly, nonnull) ", "parent": 18, "children": [21, 23, 25], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 40}}, {"id": 21, "type": "parameter_declaration", "text": "onatomic,", "parent": 20, "children": [22], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 20}}, {"id": 22, "type": "type_identifier", "text": "onatomic,", "parent": 21, "children": [], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 20}}, {"id": 23, "type": "parameter_declaration", "text": "eadonly,", "parent": 20, "children": [24], "start_point": {"row": 16, "column": 22}, "end_point": {"row": 16, "column": 30}}, {"id": 24, "type": "type_identifier", "text": "eadonly,", "parent": 23, "children": [], "start_point": {"row": 16, "column": 22}, "end_point": {"row": 16, "column": 30}}, {"id": 25, "type": "parameter_declaration", "text": "onnull)", "parent": 20, "children": [26], "start_point": {"row": 16, "column": 32}, "end_point": {"row": 16, "column": 39}}, {"id": 26, "type": "type_identifier", "text": "onnull)", "parent": 25, "children": [], "start_point": {"row": 16, "column": 32}, "end_point": {"row": 16, "column": 39}}, {"id": 27, "type": "identifier", "text": "SString ", "parent": 18, "children": [], "start_point": {"row": 16, "column": 41}, "end_point": {"row": 16, "column": 49}}, {"id": 28, "type": "pointer_declarator", "text": "name;", "parent": 12, "children": [29, 30], "start_point": {"row": 16, "column": 50}, "end_point": {"row": 16, "column": 55}}, {"id": 29, "type": "*", "text": "n", "parent": 28, "children": [], "start_point": {"row": 16, "column": 50}, "end_point": {"row": 16, "column": 51}}, {"id": 30, "type": "identifier", "text": "ame;", "parent": 28, "children": [], "start_point": {"row": 16, "column": 51}, "end_point": {"row": 16, "column": 55}}, {"id": 31, "type": "ERROR", "text": " (i", "parent": 4, "children": [32], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 3}}, {"id": 32, "type": "-", "text": " ", "parent": 31, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 33, "type": "declaration", "text": "nstancetype)init NS_UNAVAILABLE;\n", "parent": 4, "children": [34, 35, 37], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 36}}, {"id": 34, "type": "type_identifier", "text": "nstancetype)", "parent": 33, "children": [], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 15}}, {"id": 35, "type": "ERROR", "text": "init ", "parent": 33, "children": [36], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 20}}, {"id": 36, "type": "identifier", "text": "nit ", "parent": 35, "children": [], "start_point": {"row": 19, "column": 16}, "end_point": {"row": 19, "column": 20}}, {"id": 37, "type": "identifier", "text": "S_UNAVAILABLE;", "parent": 33, "children": [], "start_point": {"row": 19, "column": 21}, "end_point": {"row": 19, "column": 35}}, {"id": 38, "type": "ERROR", "text": "e", "parent": 4, "children": [39], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 39, "type": "ERROR", "text": "e", "parent": 38, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 40, "type": "type_identifier", "text": "nd\n", "parent": 4, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 4}}, {"id": 41, "type": "identifier", "text": "S_ASSUME_NONNULL_END\n", "parent": 4, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 21}}]}, "node_categories": {"declarations": {"functions": [6, 18], "variables": [12, 21, 23, 25, 33], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [5, 7, 9, 13, 15, 16, 19, 22, 24, 26, 27, 30, 34, 36, 37, 40, 41], "returns": [], "exceptions": []}, "expressions": {"calls": [0, 2], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 6, "universal_type": "function", "name": "unknown", "text_snippet": "S_SWIFT_NAME(Role)\n"}, {"node_id": 18, "universal_type": "function", "name": "unknown", "text_snippet": "roperty (nonatomic, readonly, nonnull) NSString "}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// SCTRole.h\n// SceytChat\n//\n// Copyright \u00a9 2021 Sceyt LLC. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import \"SCTTypes.h\"\n\nNS_ASSUME_NONNULL_BEGIN\n\nNS_SWIFT_NAME(Role)\n@interface SCTRole : NSObject\n\n/// The role name.\n@property (nonatomic, readonly, nonnull) NSString *name;\n\n/// init is unavailable.\n- (instancetype)init NS_UNAVAILABLE;\n\n@end\n\nNS_ASSUME_NONNULL_END\n"}
80,264
c
#include <stdio.h> #include <stdlib.h> int main (void) { printf ("Hello, I'm __GNUC__ %d\n", __GNUC__); #ifdef __CYGWIN__ printf ("Hello, I'm __CYGWIN__ %d\n", __CYGWIN__); #if defined(__x86_64__) printf ("On '__x86_64__'\n"); #endif #endif return (0); }
19.23
13
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\nint main (void)\n{\n printf ("Hello, I'm __GNUC__ %d\n", __GNUC__);\n\n#ifdef __CYGWIN__\n printf ("Hello, I'm __CYGWIN__ %d\n", __CYGWIN__);\n#if defined(__x86_64__)\n printf ("On '__x86_64__'\n");\n#endif\n\n#endif\n\n return (0);\n}\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 (void)\n{\n printf ("Hello, I'm __GNUC__ %d\n", __GNUC__);\n\n#ifdef __CYGWIN__\n printf ("Hello, I'm __CYGWIN__ %d\n", __CYGWIN__);\n#if defined(__x86_64__)\n printf ("On '__x86_64__'\n");\n#endif\n\n#endif\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 printf ("Hello, I'm __GNUC__ %d\n", __GNUC__);\n\n#ifdef __CYGWIN__\n printf ("Hello, I'm __CYGWIN__ %d\n", __CYGWIN__);\n#if defined(__x86_64__)\n printf ("On '__x86_64__'\n");\n#endif\n\n#endif\n\n return (0);\n}" ({) "{" (expression_statement) "printf ("Hello, I'm __GNUC__ %d\n", __GNUC__);" (call_expression) "printf ("Hello, I'm __GNUC__ %d\n", __GNUC__)" (identifier) "printf" (argument_list) "("Hello, I'm __GNUC__ %d\n", __GNUC__)" (() "(" (string_literal) ""Hello, I'm __GNUC__ %d\n"" (") """ (string_content) "Hello, I'm __GNUC__ %d" (escape_sequence) "\n" (") """ (,) "," (identifier) "__GNUC__" ()) ")" (;) ";" (preproc_ifdef) "#ifdef __CYGWIN__\n printf ("Hello, I'm __CYGWIN__ %d\n", __CYGWIN__);\n#if defined(__x86_64__)\n printf ("On '__x86_64__'\n");\n#endif\n\n#endif" (#ifdef) "#ifdef" (identifier) "__CYGWIN__" (expression_statement) "printf ("Hello, I'm __CYGWIN__ %d\n", __CYGWIN__);" (call_expression) "printf ("Hello, I'm __CYGWIN__ %d\n", __CYGWIN__)" (identifier) "printf" (argument_list) "("Hello, I'm __CYGWIN__ %d\n", __CYGWIN__)" (() "(" (string_literal) ""Hello, I'm __CYGWIN__ %d\n"" (") """ (string_content) "Hello, I'm __CYGWIN__ %d" (escape_sequence) "\n" (") """ (,) "," (identifier) "__CYGWIN__" ()) ")" (;) ";" (preproc_if) "#if defined(__x86_64__)\n printf ("On '__x86_64__'\n");\n#endif" (#if) "#if" (preproc_defined) "defined(__x86_64__)" (defined) "defined" (() "(" (identifier) "__x86_64__" ()) ")" ( ) "\n" (expression_statement) "printf ("On '__x86_64__'\n");" (call_expression) "printf ("On '__x86_64__'\n")" (identifier) "printf" (argument_list) "("On '__x86_64__'\n")" (() "(" (string_literal) ""On '__x86_64__'\n"" (") """ (string_content) "On '__x86_64__'" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (#endif) "#endif" (#endif) "#endif" (return_statement) "return (0);" (return) "return" (parenthesized_expression) "(0)" (() "(" (number_literal) "0" ()) ")" (;) ";" (}) "}"
79
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 19.23, "nodes": 44, "errors": 0, "source_hash": "ece0f4402315ef15d9fc84cffb8e27e5627693cdd1ac91f1ab3d5172c1676d16", "categorized_nodes": 32}, "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 (void)\n{\n printf (\"Hello, I'm __GNUC__ %d\\n\", __GNUC__);\n\n#ifdef __CYGWIN__\n printf (\"Hello, I'm __CYGWIN__ %d\\n\", __CYGWIN__);\n#if defined(__x86_64__)\n printf (\"On '__x86_64__'\\n\");\n#endif\n\n#endif\n\n return (0);\n}", "parent": null, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 16, "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 (void)", "parent": 6, "children": [9, 10], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 15}}, {"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": "(void)", "parent": 8, "children": [11], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 15}}, {"id": 11, "type": "parameter_declaration", "text": "void", "parent": 10, "children": [12], "start_point": {"row": 3, "column": 10}, "end_point": {"row": 3, "column": 14}}, {"id": 12, "type": "primitive_type", "text": "void", "parent": 11, "children": [], "start_point": {"row": 3, "column": 10}, "end_point": {"row": 3, "column": 14}}, {"id": 13, "type": "call_expression", "text": "printf (\"Hello, I'm __GNUC__ %d\\n\", __GNUC__)", "parent": 6, "children": [14, 15], "start_point": {"row": 5, "column": 2}, "end_point": {"row": 5, "column": 47}}, {"id": 14, "type": "identifier", "text": "printf", "parent": 13, "children": [], "start_point": {"row": 5, "column": 2}, "end_point": {"row": 5, "column": 8}}, {"id": 15, "type": "argument_list", "text": "(\"Hello, I'm __GNUC__ %d\\n\", __GNUC__)", "parent": 13, "children": [16, 18], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 47}}, {"id": 16, "type": "string_literal", "text": "\"Hello, I'm __GNUC__ %d\\n\"", "parent": 15, "children": [17], "start_point": {"row": 5, "column": 10}, "end_point": {"row": 5, "column": 36}}, {"id": 17, "type": "escape_sequence", "text": "\\n", "parent": 16, "children": [], "start_point": {"row": 5, "column": 33}, "end_point": {"row": 5, "column": 35}}, {"id": 18, "type": "identifier", "text": "__GNUC__", "parent": 15, "children": [], "start_point": {"row": 5, "column": 38}, "end_point": {"row": 5, "column": 46}}, {"id": 19, "type": "preproc_ifdef", "text": "#ifdef __CYGWIN__\n printf (\"Hello, I'm __CYGWIN__ %d\\n\", __CYGWIN__);\n#if defined(__x86_64__)\n printf (\"On '__x86_64__'\\n\");\n#endif\n\n#endif", "parent": 6, "children": [20, 21, 28, 40], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 13, "column": 6}}, {"id": 20, "type": "#ifdef", "text": "#ifdef", "parent": 19, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 6}}, {"id": 21, "type": "identifier", "text": "__CYGWIN__", "parent": 19, "children": [], "start_point": {"row": 7, "column": 7}, "end_point": {"row": 7, "column": 17}}, {"id": 22, "type": "call_expression", "text": "printf (\"Hello, I'm __CYGWIN__ %d\\n\", __CYGWIN__)", "parent": 19, "children": [23, 24], "start_point": {"row": 8, "column": 2}, "end_point": {"row": 8, "column": 51}}, {"id": 23, "type": "identifier", "text": "printf", "parent": 22, "children": [], "start_point": {"row": 8, "column": 2}, "end_point": {"row": 8, "column": 8}}, {"id": 24, "type": "argument_list", "text": "(\"Hello, I'm __CYGWIN__ %d\\n\", __CYGWIN__)", "parent": 22, "children": [25, 27], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 51}}, {"id": 25, "type": "string_literal", "text": "\"Hello, I'm __CYGWIN__ %d\\n\"", "parent": 24, "children": [26], "start_point": {"row": 8, "column": 10}, "end_point": {"row": 8, "column": 38}}, {"id": 26, "type": "escape_sequence", "text": "\\n", "parent": 25, "children": [], "start_point": {"row": 8, "column": 35}, "end_point": {"row": 8, "column": 37}}, {"id": 27, "type": "identifier", "text": "__CYGWIN__", "parent": 24, "children": [], "start_point": {"row": 8, "column": 40}, "end_point": {"row": 8, "column": 50}}, {"id": 28, "type": "preproc_if", "text": "#if defined(__x86_64__)\n printf (\"On '__x86_64__'\\n\");\n#endif", "parent": 19, "children": [29, 30, 33, 39], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 11, "column": 6}}, {"id": 29, "type": "#if", "text": "#if", "parent": 28, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 3}}, {"id": 30, "type": "preproc_defined", "text": "defined(__x86_64__)", "parent": 28, "children": [31, 32], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 23}}, {"id": 31, "type": "defined", "text": "defined", "parent": 30, "children": [], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 11}}, {"id": 32, "type": "identifier", "text": "__x86_64__", "parent": 30, "children": [], "start_point": {"row": 9, "column": 12}, "end_point": {"row": 9, "column": 22}}, {"id": 33, "type": "\n", "text": "\n", "parent": 28, "children": [], "start_point": {"row": 9, "column": 23}, "end_point": {"row": 10, "column": 0}}, {"id": 34, "type": "call_expression", "text": "printf (\"On '__x86_64__'\\n\")", "parent": 28, "children": [35, 36], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 10, "column": 30}}, {"id": 35, "type": "identifier", "text": "printf", "parent": 34, "children": [], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 10, "column": 8}}, {"id": 36, "type": "argument_list", "text": "(\"On '__x86_64__'\\n\")", "parent": 34, "children": [37], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 30}}, {"id": 37, "type": "string_literal", "text": "\"On '__x86_64__'\\n\"", "parent": 36, "children": [38], "start_point": {"row": 10, "column": 10}, "end_point": {"row": 10, "column": 29}}, {"id": 38, "type": "escape_sequence", "text": "\\n", "parent": 37, "children": [], "start_point": {"row": 10, "column": 26}, "end_point": {"row": 10, "column": 28}}, {"id": 39, "type": "#endif", "text": "#endif", "parent": 28, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 6}}, {"id": 40, "type": "#endif", "text": "#endif", "parent": 19, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 6}}, {"id": 41, "type": "return_statement", "text": "return (0);", "parent": 6, "children": [42], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 13}}, {"id": 42, "type": "parenthesized_expression", "text": "(0)", "parent": 41, "children": [43], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 12}}, {"id": 43, "type": "number_literal", "text": "0", "parent": 42, "children": [], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 11}}]}, "node_categories": {"declarations": {"functions": [6, 8], "variables": [11], "classes": [], "imports": [0, 1, 3, 4], "modules": [], "enums": []}, "statements": {"expressions": [13, 22, 34, 42], "assignments": [], "loops": [], "conditionals": [9, 14, 18, 19, 20, 21, 23, 27, 28, 29, 32, 35, 39, 40], "returns": [41], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 16, 25, 37, 43], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 6, "universal_type": "function", "name": "main", "text_snippet": "int main (void)\n{\n printf (\"Hello, I'm __GNUC__ %d\\n\", __GNUC__);\n\n#ifdef __CYGWIN__\n printf (\"Hel"}, {"node_id": 8, "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"}, {"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 (void)\n{\n printf (\"Hello, I'm __GNUC__ %d\\n\", __GNUC__);\n\n#ifdef __CYGWIN__\n printf (\"Hello, I'm __CYGWIN__ %d\\n\", __CYGWIN__);\n#if defined(__x86_64__)\n printf (\"On '__x86_64__'\\n\");\n#endif\n\n#endif\n\n return (0);\n}\n\n"}
80,265
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "MTGenericActionFactory.h" @interface MTTVEpisodeActionFactory : MTGenericActionFactory { } + (id)viewDescriptionAction; // IMP=0x0000000100006ff4 + (id)viewAction; // IMP=0x0000000100006dfc + (id)markPlayedAction; // IMP=0x0000000100006b54 + (id)markUnplayedAction; // IMP=0x00000001000068ac + (id)removeFromUpNext; // IMP=0x00000001000066a8 + (id)addToUpNextAction; // IMP=0x00000001000064a4 + (id)playNextAction; // IMP=0x00000001000062a0 @end
33.53
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 "MTGenericActionFactory.h"\n\n@interface MTTVEpisodeActionFactory : MTGenericActionFactory\n{\n}\n\n+ (id)viewDescriptionAction; // IMP=0x0000000100006ff4\n+ (id)viewAction; // IMP=0x0000000100006dfc\n+ (id)markPlayedAction; // IMP=0x0000000100006b54\n+ (id)markUnplayedAction; // IMP=0x00000001000068ac\n+ (id)removeFromUpNext; // IMP=0x00000001000066a8\n+ (id)addToUpNextAction; // IMP=0x00000001000064a4\n+ (id)playNextAction; // IMP=0x00000001000062a0\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 "MTGenericActionFactory.h"\n" (preproc_directive) "#import" (preproc_arg) ""MTGenericActionFactory.h"" (ERROR) "@" (ERROR) "@" (function_definition) "interface MTTVEpisodeActionFactory : MTGenericActionFactory\n{\n}" (type_identifier) "interface" (identifier) "MTTVEpisodeActionFactory" (ERROR) ": MTGenericActionFactory" (:) ":" (identifier) "MTGenericActionFactory" (compound_statement) "{\n}" ({) "{" (}) "}" (expression_statement) "+ (id)viewDescriptionAction;" (unary_expression) "+ (id)viewDescriptionAction" (+) "+" (cast_expression) "(id)viewDescriptionAction" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "viewDescriptionAction" (;) ";" (comment) "// IMP=0x0000000100006ff4" (expression_statement) "+ (id)viewAction;" (unary_expression) "+ (id)viewAction" (+) "+" (cast_expression) "(id)viewAction" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "viewAction" (;) ";" (comment) "// IMP=0x0000000100006dfc" (expression_statement) "+ (id)markPlayedAction;" (unary_expression) "+ (id)markPlayedAction" (+) "+" (cast_expression) "(id)markPlayedAction" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "markPlayedAction" (;) ";" (comment) "// IMP=0x0000000100006b54" (expression_statement) "+ (id)markUnplayedAction;" (unary_expression) "+ (id)markUnplayedAction" (+) "+" (cast_expression) "(id)markUnplayedAction" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "markUnplayedAction" (;) ";" (comment) "// IMP=0x00000001000068ac" (expression_statement) "+ (id)removeFromUpNext;" (unary_expression) "+ (id)removeFromUpNext" (+) "+" (cast_expression) "(id)removeFromUpNext" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "removeFromUpNext" (;) ";" (comment) "// IMP=0x00000001000066a8" (expression_statement) "+ (id)addToUpNextAction;" (unary_expression) "+ (id)addToUpNextAction" (+) "+" (cast_expression) "(id)addToUpNextAction" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "addToUpNextAction" (;) ";" (comment) "// IMP=0x00000001000064a4" (expression_statement) "+ (id)playNextAction;" (unary_expression) "+ (id)playNextAction" (+) "+" (cast_expression) "(id)playNextAction" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "playNextAction" (;) ";" (comment) "// IMP=0x00000001000062a0" (ERROR) "@" (ERROR) "@" (expression_statement) "end" (identifier) "end" (;) ""
102
5
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 33.53, "nodes": 54, "errors": 0, "source_hash": "4e877695dd4495eacdfc02bec7b327f225e9301733dc61e4fce7f710236f773e", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"MTGenericActionFactory.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": "\"MTGenericActionFactory.h\"", "parent": 0, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 34}}, {"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 MTTVEpisodeActionFactory : MTGenericActionFactory\n{\n}", "parent": null, "children": [6, 7, 8], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 10, "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": "MTTVEpisodeActionFactory", "parent": 5, "children": [], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 35}}, {"id": 8, "type": "ERROR", "text": ": MTGenericActionFactory", "parent": 5, "children": [9], "start_point": {"row": 8, "column": 36}, "end_point": {"row": 8, "column": 60}}, {"id": 9, "type": "identifier", "text": "MTGenericActionFactory", "parent": 8, "children": [], "start_point": {"row": 8, "column": 38}, "end_point": {"row": 8, "column": 60}}, {"id": 10, "type": "unary_expression", "text": "+ (id)viewDescriptionAction", "parent": null, "children": [11, 12], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 27}}, {"id": 11, "type": "+", "text": "+", "parent": 10, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 12, "type": "cast_expression", "text": "(id)viewDescriptionAction", "parent": 10, "children": [13, 15], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 27}}, {"id": 13, "type": "type_descriptor", "text": "id", "parent": 12, "children": [14], "start_point": {"row": 12, "column": 3}, "end_point": {"row": 12, "column": 5}}, {"id": 14, "type": "type_identifier", "text": "id", "parent": 13, "children": [], "start_point": {"row": 12, "column": 3}, "end_point": {"row": 12, "column": 5}}, {"id": 15, "type": "identifier", "text": "viewDescriptionAction", "parent": 12, "children": [], "start_point": {"row": 12, "column": 6}, "end_point": {"row": 12, "column": 27}}, {"id": 16, "type": "unary_expression", "text": "+ (id)viewAction", "parent": null, "children": [17, 18], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 16}}, {"id": 17, "type": "+", "text": "+", "parent": 16, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 18, "type": "cast_expression", "text": "(id)viewAction", "parent": 16, "children": [19, 21], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 16}}, {"id": 19, "type": "type_descriptor", "text": "id", "parent": 18, "children": [20], "start_point": {"row": 13, "column": 3}, "end_point": {"row": 13, "column": 5}}, {"id": 20, "type": "type_identifier", "text": "id", "parent": 19, "children": [], "start_point": {"row": 13, "column": 3}, "end_point": {"row": 13, "column": 5}}, {"id": 21, "type": "identifier", "text": "viewAction", "parent": 18, "children": [], "start_point": {"row": 13, "column": 6}, "end_point": {"row": 13, "column": 16}}, {"id": 22, "type": "unary_expression", "text": "+ (id)markPlayedAction", "parent": null, "children": [23, 24], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 22}}, {"id": 23, "type": "+", "text": "+", "parent": 22, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 24, "type": "cast_expression", "text": "(id)markPlayedAction", "parent": 22, "children": [25, 27], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 22}}, {"id": 25, "type": "type_descriptor", "text": "id", "parent": 24, "children": [26], "start_point": {"row": 14, "column": 3}, "end_point": {"row": 14, "column": 5}}, {"id": 26, "type": "type_identifier", "text": "id", "parent": 25, "children": [], "start_point": {"row": 14, "column": 3}, "end_point": {"row": 14, "column": 5}}, {"id": 27, "type": "identifier", "text": "markPlayedAction", "parent": 24, "children": [], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 14, "column": 22}}, {"id": 28, "type": "unary_expression", "text": "+ (id)markUnplayedAction", "parent": null, "children": [29, 30], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 24}}, {"id": 29, "type": "+", "text": "+", "parent": 28, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 30, "type": "cast_expression", "text": "(id)markUnplayedAction", "parent": 28, "children": [31, 33], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 24}}, {"id": 31, "type": "type_descriptor", "text": "id", "parent": 30, "children": [32], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 5}}, {"id": 32, "type": "type_identifier", "text": "id", "parent": 31, "children": [], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 5}}, {"id": 33, "type": "identifier", "text": "markUnplayedAction", "parent": 30, "children": [], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 24}}, {"id": 34, "type": "unary_expression", "text": "+ (id)removeFromUpNext", "parent": null, "children": [35, 36], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 22}}, {"id": 35, "type": "+", "text": "+", "parent": 34, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 36, "type": "cast_expression", "text": "(id)removeFromUpNext", "parent": 34, "children": [37, 39], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 22}}, {"id": 37, "type": "type_descriptor", "text": "id", "parent": 36, "children": [38], "start_point": {"row": 16, "column": 3}, "end_point": {"row": 16, "column": 5}}, {"id": 38, "type": "type_identifier", "text": "id", "parent": 37, "children": [], "start_point": {"row": 16, "column": 3}, "end_point": {"row": 16, "column": 5}}, {"id": 39, "type": "identifier", "text": "removeFromUpNext", "parent": 36, "children": [], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 22}}, {"id": 40, "type": "unary_expression", "text": "+ (id)addToUpNextAction", "parent": null, "children": [41, 42], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 23}}, {"id": 41, "type": "+", "text": "+", "parent": 40, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 42, "type": "cast_expression", "text": "(id)addToUpNextAction", "parent": 40, "children": [43, 45], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 23}}, {"id": 43, "type": "type_descriptor", "text": "id", "parent": 42, "children": [44], "start_point": {"row": 17, "column": 3}, "end_point": {"row": 17, "column": 5}}, {"id": 44, "type": "type_identifier", "text": "id", "parent": 43, "children": [], "start_point": {"row": 17, "column": 3}, "end_point": {"row": 17, "column": 5}}, {"id": 45, "type": "identifier", "text": "addToUpNextAction", "parent": 42, "children": [], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 23}}, {"id": 46, "type": "unary_expression", "text": "+ (id)playNextAction", "parent": null, "children": [47, 48], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 20}}, {"id": 47, "type": "+", "text": "+", "parent": 46, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 48, "type": "cast_expression", "text": "(id)playNextAction", "parent": 46, "children": [49, 51], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 20}}, {"id": 49, "type": "type_descriptor", "text": "id", "parent": 48, "children": [50], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 5}}, {"id": 50, "type": "type_identifier", "text": "id", "parent": 49, "children": [], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 5}}, {"id": 51, "type": "identifier", "text": "playNextAction", "parent": 48, "children": [], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 20}}, {"id": 52, "type": "ERROR", "text": "@", "parent": null, "children": [53], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 53, "type": "ERROR", "text": "@", "parent": 52, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}]}, "node_categories": {"declarations": {"functions": [5], "variables": [], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [10, 12, 16, 18, 22, 24, 28, 30, 34, 36, 40, 42, 46, 48], "assignments": [], "loops": [], "conditionals": [6, 7, 9, 14, 15, 20, 21, 26, 27, 32, 33, 38, 39, 44, 45, 50, 51], "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": "MTTVEpisodeActionFactory", "text_snippet": "interface MTTVEpisodeActionFactory : MTGenericActionFactory\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 \"MTGenericActionFactory.h\"\n\n@interface MTTVEpisodeActionFactory : MTGenericActionFactory\n{\n}\n\n+ (id)viewDescriptionAction;\t// IMP=0x0000000100006ff4\n+ (id)viewAction;\t// IMP=0x0000000100006dfc\n+ (id)markPlayedAction;\t// IMP=0x0000000100006b54\n+ (id)markUnplayedAction;\t// IMP=0x00000001000068ac\n+ (id)removeFromUpNext;\t// IMP=0x00000001000066a8\n+ (id)addToUpNextAction;\t// IMP=0x00000001000064a4\n+ (id)playNextAction;\t// IMP=0x00000001000062a0\n\n@end\n\n"}
80,266
c
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import <objc/NSObject.h> @class NSDate, NSSet, NSString; @interface QEngineBizlog : NSObject { NSSet *_observers; NSString *_qe_traceId; NSDate *_startTime; NSDate *_endTime; } @property(retain, nonatomic) NSDate *endTime; // @synthesize endTime=_endTime; @property(retain, nonatomic) NSDate *startTime; // @synthesize startTime=_startTime; @property(copy, nonatomic) NSString *qe_traceId; // @synthesize qe_traceId=_qe_traceId; @property(nonatomic) __weak NSSet *observers; // @synthesize observers=_observers; - (void).cxx_destruct; - (id)getLogParamWithObserver:(id)arg1 isSuccess:(_Bool)arg2; - (id)initAndStartWithObservers:(id)arg1; @end
37.14
22
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.\n//\n\n#import <objc/NSObject.h>\n\n@class NSDate, NSSet, NSString;\n\n@interface QEngineBizlog : NSObject\n{\n NSSet *_observers;\n NSString *_qe_traceId;\n NSDate *_startTime;\n NSDate *_endTime;\n}\n\n@property(retain, nonatomic) NSDate *endTime; // @synthesize endTime=_endTime;\n@property(retain, nonatomic) NSDate *startTime; // @synthesize startTime=_startTime;\n@property(copy, nonatomic) NSString *qe_traceId; // @synthesize qe_traceId=_qe_traceId;\n@property(nonatomic) __weak NSSet *observers; // @synthesize observers=_observers;\n- (void).cxx_destruct;\n- (id)getLogParamWithObserver:(id)arg1 isSuccess:(_Bool)arg2;\n- (id)initAndStartWithObservers:(id)arg1;\n\n@end\n\n" (comment) "//" (comment) "// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48)." (comment) "//" (comment) "// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>." (comment) "//" (preproc_call) "#import <objc/NSObject.h>\n" (preproc_directive) "#import" (preproc_arg) "<objc/NSObject.h>" (ERROR) "@" (ERROR) "@" (declaration) "class NSDate, NSSet, NSString;" (type_identifier) "class" (identifier) "NSDate" (,) "," (identifier) "NSSet" (,) "," (identifier) "NSString" (;) ";" (ERROR) "@" (ERROR) "@" (function_definition) "interface QEngineBizlog : NSObject\n{\n NSSet *_observers;\n NSString *_qe_traceId;\n NSDate *_startTime;\n NSDate *_endTime;\n}" (type_identifier) "interface" (identifier) "QEngineBizlog" (ERROR) ": NSObject" (:) ":" (identifier) "NSObject" (compound_statement) "{\n NSSet *_observers;\n NSString *_qe_traceId;\n NSDate *_startTime;\n NSDate *_endTime;\n}" ({) "{" (declaration) "NSSet *_observers;" (type_identifier) "NSSet" (pointer_declarator) "*_observers" (*) "*" (identifier) "_observers" (;) ";" (declaration) "NSString *_qe_traceId;" (type_identifier) "NSString" (pointer_declarator) "*_qe_traceId" (*) "*" (identifier) "_qe_traceId" (;) ";" (declaration) "NSDate *_startTime;" (type_identifier) "NSDate" (pointer_declarator) "*_startTime" (*) "*" (identifier) "_startTime" (;) ";" (declaration) "NSDate *_endTime;" (type_identifier) "NSDate" (pointer_declarator) "*_endTime" (*) "*" (identifier) "_endTime" (;) ";" (}) "}" (ERROR) "@" (ERROR) "@" (expression_statement) "property(retain, nonatomic)" (call_expression) "property(retain, nonatomic)" (identifier) "property" (argument_list) "(retain, nonatomic)" (() "(" (identifier) "retain" (,) "," (identifier) "nonatomic" ()) ")" (;) "" (declaration) "NSDate *endTime;" (type_identifier) "NSDate" (pointer_declarator) "*endTime" (*) "*" (identifier) "endTime" (;) ";" (comment) "// @synthesize endTime=_endTime;" (ERROR) "@" (ERROR) "@" (expression_statement) "property(retain, nonatomic)" (call_expression) "property(retain, nonatomic)" (identifier) "property" (argument_list) "(retain, nonatomic)" (() "(" (identifier) "retain" (,) "," (identifier) "nonatomic" ()) ")" (;) "" (declaration) "NSDate *startTime;" (type_identifier) "NSDate" (pointer_declarator) "*startTime" (*) "*" (identifier) "startTime" (;) ";" (comment) "// @synthesize startTime=_startTime;" (ERROR) "@" (ERROR) "@" (expression_statement) "property(copy, nonatomic)" (call_expression) "property(copy, nonatomic)" (identifier) "property" (argument_list) "(copy, nonatomic)" (() "(" (identifier) "copy" (,) "," (identifier) "nonatomic" ()) ")" (;) "" (declaration) "NSString *qe_traceId;" (type_identifier) "NSString" (pointer_declarator) "*qe_traceId" (*) "*" (identifier) "qe_traceId" (;) ";" (comment) "// @synthesize qe_traceId=_qe_traceId;" (ERROR) "@" (ERROR) "@" (declaration) "property(nonatomic) __weak" (macro_type_specifier) "property(nonatomic)" (identifier) "property" (() "(" (type_descriptor) "nonatomic" (type_identifier) "nonatomic" ()) ")" (identifier) "__weak" (;) "" (declaration) "NSSet *observers;" (type_identifier) "NSSet" (pointer_declarator) "*observers" (*) "*" (identifier) "observers" (;) ";" (comment) "// @synthesize observers=_observers;" (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" (;) ";" (ERROR) "- (id)getLogParamWithObserver:(id)" (unary_expression) "- (id)getLogParamWithObserver" (-) "-" (cast_expression) "(id)getLogParamWithObserver" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "getLogParamWithObserver" (:) ":" (() "(" (identifier) "id" ()) ")" (declaration) "arg1 isSuccess:(_Bool)arg2;" (type_identifier) "arg1" (identifier) "isSuccess" (ERROR) ":(_Bool)arg2" (:) ":" (() "(" (identifier) "_Bool" ()) ")" (identifier) "arg2" (;) ";" (expression_statement) "- (id)initAndStartWithObservers:(id)arg1;" (unary_expression) "- (id)initAndStartWithObservers" (-) "-" (cast_expression) "(id)initAndStartWithObservers" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "initAndStartWithObservers" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (ERROR) "@" (ERROR) "@" (expression_statement) "end" (identifier) "end" (;) ""
185
19
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 37.14, "nodes": 116, "errors": 0, "source_hash": "ecca3aa0fdb2f0ba5ab4317c9e78dd133a9e47a8e45360afc840fe2dc99ebab6", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <objc/NSObject.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": "<objc/NSObject.h>", "parent": 0, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 25}}, {"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 NSDate, NSSet, NSString;", "parent": null, "children": [6, 7, 8], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 31}}, {"id": 6, "type": "identifier", "text": "NSDate", "parent": 5, "children": [], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 13}}, {"id": 7, "type": "identifier", "text": "NSSet", "parent": 5, "children": [], "start_point": {"row": 8, "column": 15}, "end_point": {"row": 8, "column": 20}}, {"id": 8, "type": "identifier", "text": "NSString", "parent": 5, "children": [], "start_point": {"row": 8, "column": 22}, "end_point": {"row": 8, "column": 30}}, {"id": 9, "type": "ERROR", "text": "@", "parent": null, "children": [10], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 10, "type": "ERROR", "text": "@", "parent": 9, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 11, "type": "function_definition", "text": "interface QEngineBizlog : NSObject\n{\n NSSet *_observers;\n NSString *_qe_traceId;\n NSDate *_startTime;\n NSDate *_endTime;\n}", "parent": null, "children": [12, 13, 14], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 16, "column": 1}}, {"id": 12, "type": "type_identifier", "text": "interface", "parent": 11, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 10}}, {"id": 13, "type": "identifier", "text": "QEngineBizlog", "parent": 11, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 24}}, {"id": 14, "type": "ERROR", "text": ": NSObject", "parent": 11, "children": [15], "start_point": {"row": 10, "column": 25}, "end_point": {"row": 10, "column": 35}}, {"id": 15, "type": "identifier", "text": "NSObject", "parent": 14, "children": [], "start_point": {"row": 10, "column": 27}, "end_point": {"row": 10, "column": 35}}, {"id": 16, "type": "declaration", "text": "NSSet *_observers;", "parent": 11, "children": [17, 18], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 22}}, {"id": 17, "type": "type_identifier", "text": "NSSet", "parent": 16, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 9}}, {"id": 18, "type": "pointer_declarator", "text": "*_observers", "parent": 16, "children": [19, 20], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 21}}, {"id": 19, "type": "*", "text": "*", "parent": 18, "children": [], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 11}}, {"id": 20, "type": "identifier", "text": "_observers", "parent": 18, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 21}}, {"id": 21, "type": "declaration", "text": "NSString *_qe_traceId;", "parent": 11, "children": [22, 23], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 26}}, {"id": 22, "type": "type_identifier", "text": "NSString", "parent": 21, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 12}}, {"id": 23, "type": "pointer_declarator", "text": "*_qe_traceId", "parent": 21, "children": [24, 25], "start_point": {"row": 13, "column": 13}, "end_point": {"row": 13, "column": 25}}, {"id": 24, "type": "*", "text": "*", "parent": 23, "children": [], "start_point": {"row": 13, "column": 13}, "end_point": {"row": 13, "column": 14}}, {"id": 25, "type": "identifier", "text": "_qe_traceId", "parent": 23, "children": [], "start_point": {"row": 13, "column": 14}, "end_point": {"row": 13, "column": 25}}, {"id": 26, "type": "declaration", "text": "NSDate *_startTime;", "parent": 11, "children": [27, 28], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 23}}, {"id": 27, "type": "type_identifier", "text": "NSDate", "parent": 26, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 10}}, {"id": 28, "type": "pointer_declarator", "text": "*_startTime", "parent": 26, "children": [29, 30], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 22}}, {"id": 29, "type": "*", "text": "*", "parent": 28, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 12}}, {"id": 30, "type": "identifier", "text": "_startTime", "parent": 28, "children": [], "start_point": {"row": 14, "column": 12}, "end_point": {"row": 14, "column": 22}}, {"id": 31, "type": "declaration", "text": "NSDate *_endTime;", "parent": 11, "children": [32, 33], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 21}}, {"id": 32, "type": "type_identifier", "text": "NSDate", "parent": 31, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 10}}, {"id": 33, "type": "pointer_declarator", "text": "*_endTime", "parent": 31, "children": [34, 35], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 20}}, {"id": 34, "type": "*", "text": "*", "parent": 33, "children": [], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 12}}, {"id": 35, "type": "identifier", "text": "_endTime", "parent": 33, "children": [], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 20}}, {"id": 36, "type": "ERROR", "text": "@", "parent": null, "children": [37], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 37, "type": "ERROR", "text": "@", "parent": 36, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 38, "type": "call_expression", "text": "property(retain, nonatomic)", "parent": null, "children": [39, 40], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 28}}, {"id": 39, "type": "identifier", "text": "property", "parent": 38, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 9}}, {"id": 40, "type": "argument_list", "text": "(retain, nonatomic)", "parent": 38, "children": [41, 42], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 28}}, {"id": 41, "type": "identifier", "text": "retain", "parent": 40, "children": [], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 16}}, {"id": 42, "type": "identifier", "text": "nonatomic", "parent": 40, "children": [], "start_point": {"row": 18, "column": 18}, "end_point": {"row": 18, "column": 27}}, {"id": 43, "type": "declaration", "text": "NSDate *endTime;", "parent": null, "children": [44, 45], "start_point": {"row": 18, "column": 29}, "end_point": {"row": 18, "column": 45}}, {"id": 44, "type": "type_identifier", "text": "NSDate", "parent": 43, "children": [], "start_point": {"row": 18, "column": 29}, "end_point": {"row": 18, "column": 35}}, {"id": 45, "type": "pointer_declarator", "text": "*endTime", "parent": 43, "children": [46, 47], "start_point": {"row": 18, "column": 36}, "end_point": {"row": 18, "column": 44}}, {"id": 46, "type": "*", "text": "*", "parent": 45, "children": [], "start_point": {"row": 18, "column": 36}, "end_point": {"row": 18, "column": 37}}, {"id": 47, "type": "identifier", "text": "endTime", "parent": 45, "children": [], "start_point": {"row": 18, "column": 37}, "end_point": {"row": 18, "column": 44}}, {"id": 48, "type": "ERROR", "text": "@", "parent": null, "children": [49], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 49, "type": "ERROR", "text": "@", "parent": 48, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 50, "type": "call_expression", "text": "property(retain, nonatomic)", "parent": null, "children": [51, 52], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 28}}, {"id": 51, "type": "identifier", "text": "property", "parent": 50, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 9}}, {"id": 52, "type": "argument_list", "text": "(retain, nonatomic)", "parent": 50, "children": [53, 54], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 28}}, {"id": 53, "type": "identifier", "text": "retain", "parent": 52, "children": [], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 16}}, {"id": 54, "type": "identifier", "text": "nonatomic", "parent": 52, "children": [], "start_point": {"row": 19, "column": 18}, "end_point": {"row": 19, "column": 27}}, {"id": 55, "type": "declaration", "text": "NSDate *startTime;", "parent": null, "children": [56, 57], "start_point": {"row": 19, "column": 29}, "end_point": {"row": 19, "column": 47}}, {"id": 56, "type": "type_identifier", "text": "NSDate", "parent": 55, "children": [], "start_point": {"row": 19, "column": 29}, "end_point": {"row": 19, "column": 35}}, {"id": 57, "type": "pointer_declarator", "text": "*startTime", "parent": 55, "children": [58, 59], "start_point": {"row": 19, "column": 36}, "end_point": {"row": 19, "column": 46}}, {"id": 58, "type": "*", "text": "*", "parent": 57, "children": [], "start_point": {"row": 19, "column": 36}, "end_point": {"row": 19, "column": 37}}, {"id": 59, "type": "identifier", "text": "startTime", "parent": 57, "children": [], "start_point": {"row": 19, "column": 37}, "end_point": {"row": 19, "column": 46}}, {"id": 60, "type": "ERROR", "text": "@", "parent": null, "children": [61], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 61, "type": "ERROR", "text": "@", "parent": 60, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 62, "type": "call_expression", "text": "property(copy, nonatomic)", "parent": null, "children": [63, 64], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 26}}, {"id": 63, "type": "identifier", "text": "property", "parent": 62, "children": [], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 9}}, {"id": 64, "type": "argument_list", "text": "(copy, nonatomic)", "parent": 62, "children": [65, 66], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 26}}, {"id": 65, "type": "identifier", "text": "copy", "parent": 64, "children": [], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 14}}, {"id": 66, "type": "identifier", "text": "nonatomic", "parent": 64, "children": [], "start_point": {"row": 20, "column": 16}, "end_point": {"row": 20, "column": 25}}, {"id": 67, "type": "declaration", "text": "NSString *qe_traceId;", "parent": null, "children": [68, 69], "start_point": {"row": 20, "column": 27}, "end_point": {"row": 20, "column": 48}}, {"id": 68, "type": "type_identifier", "text": "NSString", "parent": 67, "children": [], "start_point": {"row": 20, "column": 27}, "end_point": {"row": 20, "column": 35}}, {"id": 69, "type": "pointer_declarator", "text": "*qe_traceId", "parent": 67, "children": [70, 71], "start_point": {"row": 20, "column": 36}, "end_point": {"row": 20, "column": 47}}, {"id": 70, "type": "*", "text": "*", "parent": 69, "children": [], "start_point": {"row": 20, "column": 36}, "end_point": {"row": 20, "column": 37}}, {"id": 71, "type": "identifier", "text": "qe_traceId", "parent": 69, "children": [], "start_point": {"row": 20, "column": 37}, "end_point": {"row": 20, "column": 47}}, {"id": 72, "type": "ERROR", "text": "@", "parent": null, "children": [73], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 73, "type": "ERROR", "text": "@", "parent": 72, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 74, "type": "declaration", "text": "property(nonatomic) __weak", "parent": null, "children": [75, 79], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 27}}, {"id": 75, "type": "macro_type_specifier", "text": "property(nonatomic)", "parent": 74, "children": [76, 77], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 20}}, {"id": 76, "type": "identifier", "text": "property", "parent": 75, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 9}}, {"id": 77, "type": "type_descriptor", "text": "nonatomic", "parent": 75, "children": [78], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 19}}, {"id": 78, "type": "type_identifier", "text": "nonatomic", "parent": 77, "children": [], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 19}}, {"id": 79, "type": "identifier", "text": "__weak", "parent": 74, "children": [], "start_point": {"row": 21, "column": 21}, "end_point": {"row": 21, "column": 27}}, {"id": 80, "type": "declaration", "text": "NSSet *observers;", "parent": null, "children": [81, 82], "start_point": {"row": 21, "column": 28}, "end_point": {"row": 21, "column": 45}}, {"id": 81, "type": "type_identifier", "text": "NSSet", "parent": 80, "children": [], "start_point": {"row": 21, "column": 28}, "end_point": {"row": 21, "column": 33}}, {"id": 82, "type": "pointer_declarator", "text": "*observers", "parent": 80, "children": [83, 84], "start_point": {"row": 21, "column": 34}, "end_point": {"row": 21, "column": 44}}, {"id": 83, "type": "*", "text": "*", "parent": 82, "children": [], "start_point": {"row": 21, "column": 34}, "end_point": {"row": 21, "column": 35}}, {"id": 84, "type": "identifier", "text": "observers", "parent": 82, "children": [], "start_point": {"row": 21, "column": 35}, "end_point": {"row": 21, "column": 44}}, {"id": 85, "type": "unary_expression", "text": "- (void).cxx_destruct", "parent": null, "children": [86, 87], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 21}}, {"id": 86, "type": "-", "text": "-", "parent": 85, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 1}}, {"id": 87, "type": "cast_expression", "text": "(void).cxx_destruct", "parent": 85, "children": [88, 90], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 21}}, {"id": 88, "type": "type_descriptor", "text": "void", "parent": 87, "children": [89], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 7}}, {"id": 89, "type": "primitive_type", "text": "void", "parent": 88, "children": [], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 7}}, {"id": 90, "type": "identifier", "text": "cxx_destruct", "parent": 87, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 21}}, {"id": 91, "type": "ERROR", "text": "- (id)getLogParamWithObserver:(id)", "parent": null, "children": [92, 98], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 34}}, {"id": 92, "type": "unary_expression", "text": "- (id)getLogParamWithObserver", "parent": 91, "children": [93, 94], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 29}}, {"id": 93, "type": "-", "text": "-", "parent": 92, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 94, "type": "cast_expression", "text": "(id)getLogParamWithObserver", "parent": 92, "children": [95, 97], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 29}}, {"id": 95, "type": "type_descriptor", "text": "id", "parent": 94, "children": [96], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 5}}, {"id": 96, "type": "type_identifier", "text": "id", "parent": 95, "children": [], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 5}}, {"id": 97, "type": "identifier", "text": "getLogParamWithObserver", "parent": 94, "children": [], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 29}}, {"id": 98, "type": "identifier", "text": "id", "parent": 91, "children": [], "start_point": {"row": 23, "column": 31}, "end_point": {"row": 23, "column": 33}}, {"id": 99, "type": "declaration", "text": "arg1 isSuccess:(_Bool)arg2;", "parent": null, "children": [100, 101, 102], "start_point": {"row": 23, "column": 34}, "end_point": {"row": 23, "column": 61}}, {"id": 100, "type": "type_identifier", "text": "arg1", "parent": 99, "children": [], "start_point": {"row": 23, "column": 34}, "end_point": {"row": 23, "column": 38}}, {"id": 101, "type": "identifier", "text": "isSuccess", "parent": 99, "children": [], "start_point": {"row": 23, "column": 39}, "end_point": {"row": 23, "column": 48}}, {"id": 102, "type": "ERROR", "text": ":(_Bool)arg2", "parent": 99, "children": [103, 104], "start_point": {"row": 23, "column": 48}, "end_point": {"row": 23, "column": 60}}, {"id": 103, "type": "identifier", "text": "_Bool", "parent": 102, "children": [], "start_point": {"row": 23, "column": 50}, "end_point": {"row": 23, "column": 55}}, {"id": 104, "type": "identifier", "text": "arg2", "parent": 102, "children": [], "start_point": {"row": 23, "column": 56}, "end_point": {"row": 23, "column": 60}}, {"id": 105, "type": "unary_expression", "text": "- (id)initAndStartWithObservers", "parent": null, "children": [106, 107], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 31}}, {"id": 106, "type": "-", "text": "-", "parent": 105, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 107, "type": "cast_expression", "text": "(id)initAndStartWithObservers", "parent": 105, "children": [108, 110], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 31}}, {"id": 108, "type": "type_descriptor", "text": "id", "parent": 107, "children": [109], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 5}}, {"id": 109, "type": "type_identifier", "text": "id", "parent": 108, "children": [], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 5}}, {"id": 110, "type": "identifier", "text": "initAndStartWithObservers", "parent": 107, "children": [], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 31}}, {"id": 111, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [112, 113], "start_point": {"row": 24, "column": 31}, "end_point": {"row": 24, "column": 40}}, {"id": 112, "type": "identifier", "text": "id", "parent": 111, "children": [], "start_point": {"row": 24, "column": 33}, "end_point": {"row": 24, "column": 35}}, {"id": 113, "type": "identifier", "text": "arg1", "parent": 111, "children": [], "start_point": {"row": 24, "column": 36}, "end_point": {"row": 24, "column": 40}}, {"id": 114, "type": "ERROR", "text": "@", "parent": null, "children": [115], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 115, "type": "ERROR", "text": "@", "parent": 114, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 1}}]}, "node_categories": {"declarations": {"functions": [11], "variables": [5, 16, 21, 26, 31, 43, 55, 67, 74, 80, 99], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [38, 50, 62, 85, 87, 92, 94, 105, 107], "assignments": [], "loops": [], "conditionals": [6, 7, 8, 12, 13, 15, 17, 20, 22, 25, 27, 30, 32, 35, 39, 41, 42, 44, 47, 51, 53, 54, 56, 59, 63, 65, 66, 68, 71, 75, 76, 78, 79, 81, 84, 90, 96, 97, 98, 100, 101, 103, 104, 109, 110, 112, 113], "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": "QEngineBizlog", "text_snippet": "interface QEngineBizlog : NSObject\n{\n NSSet *_observers;\n NSString *_qe_traceId;\n NSDate *_"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.\n//\n\n#import <objc/NSObject.h>\n\n@class NSDate, NSSet, NSString;\n\n@interface QEngineBizlog : NSObject\n{\n NSSet *_observers;\n NSString *_qe_traceId;\n NSDate *_startTime;\n NSDate *_endTime;\n}\n\n@property(retain, nonatomic) NSDate *endTime; // @synthesize endTime=_endTime;\n@property(retain, nonatomic) NSDate *startTime; // @synthesize startTime=_startTime;\n@property(copy, nonatomic) NSString *qe_traceId; // @synthesize qe_traceId=_qe_traceId;\n@property(nonatomic) __weak NSSet *observers; // @synthesize observers=_observers;\n- (void).cxx_destruct;\n- (id)getLogParamWithObserver:(id)arg1 isSuccess:(_Bool)arg2;\n- (id)initAndStartWithObservers:(id)arg1;\n\n@end\n\n"}
80,267
c
/** ****************************************************************************** * Xenia : Xbox 360 Emulator Research Project * ****************************************************************************** * Copyright 2018 <NAME>. All rights reserved. * * Released under the BSD license - see LICENSE in the root for more details. * ****************************************************************************** */ #ifndef XENIA_UI_D3D12_D3D12_PROVIDER_H_ #define XENIA_UI_D3D12_D3D12_PROVIDER_H_ #include <memory> #include "xenia/ui/d3d12/d3d12_api.h" #include "xenia/ui/graphics_provider.h" namespace xe { namespace ui { namespace d3d12 { class D3D12Provider : public GraphicsProvider { public: ~D3D12Provider() override; static std::unique_ptr<D3D12Provider> Create(Window* main_window); std::unique_ptr<GraphicsContext> CreateContext( Window* target_window) override; std::unique_ptr<GraphicsContext> CreateOffscreenContext() override; IDXGIFactory2* GetDXGIFactory() const { return dxgi_factory_; } ID3D12Device* GetDevice() const { return device_; } ID3D12CommandQueue* GetDirectQueue() const { return direct_queue_; } uint32_t GetViewDescriptorSize() const { return descriptor_size_view_; } uint32_t GetSamplerDescriptorSize() const { return descriptor_size_sampler_; } uint32_t GetRTVDescriptorSize() const { return descriptor_size_rtv_; } uint32_t GetDSVDescriptorSize() const { return descriptor_size_dsv_; } template <typename T> inline T OffsetViewDescriptor(T start, uint32_t index) const { start.ptr += index * descriptor_size_view_; return start; } template <typename T> inline T OffsetSamplerDescriptor(T start, uint32_t index) const { start.ptr += index * descriptor_size_sampler_; return start; } template <typename T> inline T OffsetRTVDescriptor(T start, uint32_t index) const { start.ptr += index * descriptor_size_rtv_; return start; } template <typename T> inline T OffsetDSVDescriptor(T start, uint32_t index) const { start.ptr += index * descriptor_size_dsv_; return start; } uint32_t GetProgrammableSamplePositionsTier() const { return programmable_sample_positions_tier_; } private: explicit D3D12Provider(Window* main_window); bool Initialize(); static bool IsDeviceSupported(ID3D12Device* device); IDXGIFactory2* dxgi_factory_ = nullptr; ID3D12Device* device_ = nullptr; ID3D12CommandQueue* direct_queue_ = nullptr; uint32_t descriptor_size_view_; uint32_t descriptor_size_sampler_; uint32_t descriptor_size_rtv_; uint32_t descriptor_size_dsv_; uint32_t programmable_sample_positions_tier_; }; } // namespace d3d12 } // namespace ui } // namespace xe #endif // XENIA_UI_D3D12_D3D12_PROVIDER_H_
39.19
70
(translation_unit) "/**\n ******************************************************************************\n * Xenia : Xbox 360 Emulator Research Project *\n ******************************************************************************\n * Copyright 2018 <NAME>. All rights reserved. *\n * Released under the BSD license - see LICENSE in the root for more details. *\n ******************************************************************************\n */\n\n#ifndef XENIA_UI_D3D12_D3D12_PROVIDER_H_\n#define XENIA_UI_D3D12_D3D12_PROVIDER_H_\n\n#include <memory>\n\n#include "xenia/ui/d3d12/d3d12_api.h"\n#include "xenia/ui/graphics_provider.h"\n\nnamespace xe {\nnamespace ui {\nnamespace d3d12 {\n\nclass D3D12Provider : public GraphicsProvider {\n public:\n ~D3D12Provider() override;\n\n static std::unique_ptr<D3D12Provider> Create(Window* main_window);\n\n std::unique_ptr<GraphicsContext> CreateContext(\n Window* target_window) override;\n std::unique_ptr<GraphicsContext> CreateOffscreenContext() override;\n\n IDXGIFactory2* GetDXGIFactory() const { return dxgi_factory_; }\n ID3D12Device* GetDevice() const { return device_; }\n ID3D12CommandQueue* GetDirectQueue() const { return direct_queue_; }\n\n uint32_t GetViewDescriptorSize() const { return descriptor_size_view_; }\n uint32_t GetSamplerDescriptorSize() const { return descriptor_size_sampler_; }\n uint32_t GetRTVDescriptorSize() const { return descriptor_size_rtv_; }\n uint32_t GetDSVDescriptorSize() const { return descriptor_size_dsv_; }\n template <typename T>\n inline T OffsetViewDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_view_;\n return start;\n }\n template <typename T>\n inline T OffsetSamplerDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_sampler_;\n return start;\n }\n template <typename T>\n inline T OffsetRTVDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_rtv_;\n return start;\n }\n template <typename T>\n inline T OffsetDSVDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_dsv_;\n return start;\n }\n\n uint32_t GetProgrammableSamplePositionsTier() const {\n return programmable_sample_positions_tier_;\n }\n\n private:\n explicit D3D12Provider(Window* main_window);\n\n bool Initialize();\n static bool IsDeviceSupported(ID3D12Device* device);\n\n IDXGIFactory2* dxgi_factory_ = nullptr;\n ID3D12Device* device_ = nullptr;\n ID3D12CommandQueue* direct_queue_ = nullptr;\n\n uint32_t descriptor_size_view_;\n uint32_t descriptor_size_sampler_;\n uint32_t descriptor_size_rtv_;\n uint32_t descriptor_size_dsv_;\n\n uint32_t programmable_sample_positions_tier_;\n};\n\n} // namespace d3d12\n} // namespace ui\n} // namespace xe\n\n#endif // XENIA_UI_D3D12_D3D12_PROVIDER_H_\n" (comment) "/**\n ******************************************************************************\n * Xenia : Xbox 360 Emulator Research Project *\n ******************************************************************************\n * Copyright 2018 <NAME>. All rights reserved. *\n * Released under the BSD license - see LICENSE in the root for more details. *\n ******************************************************************************\n */" (preproc_ifdef) "#ifndef XENIA_UI_D3D12_D3D12_PROVIDER_H_\n#define XENIA_UI_D3D12_D3D12_PROVIDER_H_\n\n#include <memory>\n\n#include "xenia/ui/d3d12/d3d12_api.h"\n#include "xenia/ui/graphics_provider.h"\n\nnamespace xe {\nnamespace ui {\nnamespace d3d12 {\n\nclass D3D12Provider : public GraphicsProvider {\n public:\n ~D3D12Provider() override;\n\n static std::unique_ptr<D3D12Provider> Create(Window* main_window);\n\n std::unique_ptr<GraphicsContext> CreateContext(\n Window* target_window) override;\n std::unique_ptr<GraphicsContext> CreateOffscreenContext() override;\n\n IDXGIFactory2* GetDXGIFactory() const { return dxgi_factory_; }\n ID3D12Device* GetDevice() const { return device_; }\n ID3D12CommandQueue* GetDirectQueue() const { return direct_queue_; }\n\n uint32_t GetViewDescriptorSize() const { return descriptor_size_view_; }\n uint32_t GetSamplerDescriptorSize() const { return descriptor_size_sampler_; }\n uint32_t GetRTVDescriptorSize() const { return descriptor_size_rtv_; }\n uint32_t GetDSVDescriptorSize() const { return descriptor_size_dsv_; }\n template <typename T>\n inline T OffsetViewDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_view_;\n return start;\n }\n template <typename T>\n inline T OffsetSamplerDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_sampler_;\n return start;\n }\n template <typename T>\n inline T OffsetRTVDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_rtv_;\n return start;\n }\n template <typename T>\n inline T OffsetDSVDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_dsv_;\n return start;\n }\n\n uint32_t GetProgrammableSamplePositionsTier() const {\n return programmable_sample_positions_tier_;\n }\n\n private:\n explicit D3D12Provider(Window* main_window);\n\n bool Initialize();\n static bool IsDeviceSupported(ID3D12Device* device);\n\n IDXGIFactory2* dxgi_factory_ = nullptr;\n ID3D12Device* device_ = nullptr;\n ID3D12CommandQueue* direct_queue_ = nullptr;\n\n uint32_t descriptor_size_view_;\n uint32_t descriptor_size_sampler_;\n uint32_t descriptor_size_rtv_;\n uint32_t descriptor_size_dsv_;\n\n uint32_t programmable_sample_positions_tier_;\n};\n\n} // namespace d3d12\n} // namespace ui\n} // namespace xe\n\n#endif" (#ifndef) "#ifndef" (identifier) "XENIA_UI_D3D12_D3D12_PROVIDER_H_" (preproc_def) "#define XENIA_UI_D3D12_D3D12_PROVIDER_H_\n" (#define) "#define" (identifier) "XENIA_UI_D3D12_D3D12_PROVIDER_H_" (preproc_include) "#include <memory>\n" (#include) "#include" (system_lib_string) "<memory>" (preproc_include) "#include "xenia/ui/d3d12/d3d12_api.h"\n" (#include) "#include" (string_literal) ""xenia/ui/d3d12/d3d12_api.h"" (") """ (string_content) "xenia/ui/d3d12/d3d12_api.h" (") """ (preproc_include) "#include "xenia/ui/graphics_provider.h"\n" (#include) "#include" (string_literal) ""xenia/ui/graphics_provider.h"" (") """ (string_content) "xenia/ui/graphics_provider.h" (") """ (function_definition) "namespace xe {\nnamespace ui {\nnamespace d3d12 {\n\nclass D3D12Provider : public GraphicsProvider {\n public:\n ~D3D12Provider() override;\n\n static std::unique_ptr<D3D12Provider> Create(Window* main_window);\n\n std::unique_ptr<GraphicsContext> CreateContext(\n Window* target_window) override;\n std::unique_ptr<GraphicsContext> CreateOffscreenContext() override;\n\n IDXGIFactory2* GetDXGIFactory() const { return dxgi_factory_; }\n ID3D12Device* GetDevice() const { return device_; }\n ID3D12CommandQueue* GetDirectQueue() const { return direct_queue_; }\n\n uint32_t GetViewDescriptorSize() const { return descriptor_size_view_; }\n uint32_t GetSamplerDescriptorSize() const { return descriptor_size_sampler_; }\n uint32_t GetRTVDescriptorSize() const { return descriptor_size_rtv_; }\n uint32_t GetDSVDescriptorSize() const { return descriptor_size_dsv_; }\n template <typename T>\n inline T OffsetViewDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_view_;\n return start;\n }\n template <typename T>\n inline T OffsetSamplerDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_sampler_;\n return start;\n }\n template <typename T>\n inline T OffsetRTVDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_rtv_;\n return start;\n }\n template <typename T>\n inline T OffsetDSVDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_dsv_;\n return start;\n }\n\n uint32_t GetProgrammableSamplePositionsTier() const {\n return programmable_sample_positions_tier_;\n }\n\n private:\n explicit D3D12Provider(Window* main_window);\n\n bool Initialize();\n static bool IsDeviceSupported(ID3D12Device* device);\n\n IDXGIFactory2* dxgi_factory_ = nullptr;\n ID3D12Device* device_ = nullptr;\n ID3D12CommandQueue* direct_queue_ = nullptr;\n\n uint32_t descriptor_size_view_;\n uint32_t descriptor_size_sampler_;\n uint32_t descriptor_size_rtv_;\n uint32_t descriptor_size_dsv_;\n\n uint32_t programmable_sample_positions_tier_;\n};\n\n} // namespace d3d12\n} // namespace ui\n}" (type_identifier) "namespace" (identifier) "xe" (compound_statement) "{\nnamespace ui {\nnamespace d3d12 {\n\nclass D3D12Provider : public GraphicsProvider {\n public:\n ~D3D12Provider() override;\n\n static std::unique_ptr<D3D12Provider> Create(Window* main_window);\n\n std::unique_ptr<GraphicsContext> CreateContext(\n Window* target_window) override;\n std::unique_ptr<GraphicsContext> CreateOffscreenContext() override;\n\n IDXGIFactory2* GetDXGIFactory() const { return dxgi_factory_; }\n ID3D12Device* GetDevice() const { return device_; }\n ID3D12CommandQueue* GetDirectQueue() const { return direct_queue_; }\n\n uint32_t GetViewDescriptorSize() const { return descriptor_size_view_; }\n uint32_t GetSamplerDescriptorSize() const { return descriptor_size_sampler_; }\n uint32_t GetRTVDescriptorSize() const { return descriptor_size_rtv_; }\n uint32_t GetDSVDescriptorSize() const { return descriptor_size_dsv_; }\n template <typename T>\n inline T OffsetViewDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_view_;\n return start;\n }\n template <typename T>\n inline T OffsetSamplerDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_sampler_;\n return start;\n }\n template <typename T>\n inline T OffsetRTVDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_rtv_;\n return start;\n }\n template <typename T>\n inline T OffsetDSVDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_dsv_;\n return start;\n }\n\n uint32_t GetProgrammableSamplePositionsTier() const {\n return programmable_sample_positions_tier_;\n }\n\n private:\n explicit D3D12Provider(Window* main_window);\n\n bool Initialize();\n static bool IsDeviceSupported(ID3D12Device* device);\n\n IDXGIFactory2* dxgi_factory_ = nullptr;\n ID3D12Device* device_ = nullptr;\n ID3D12CommandQueue* direct_queue_ = nullptr;\n\n uint32_t descriptor_size_view_;\n uint32_t descriptor_size_sampler_;\n uint32_t descriptor_size_rtv_;\n uint32_t descriptor_size_dsv_;\n\n uint32_t programmable_sample_positions_tier_;\n};\n\n} // namespace d3d12\n} // namespace ui\n}" ({) "{" (function_definition) "namespace ui {\nnamespace d3d12 {\n\nclass D3D12Provider : public GraphicsProvider {\n public:\n ~D3D12Provider() override;\n\n static std::unique_ptr<D3D12Provider> Create(Window* main_window);\n\n std::unique_ptr<GraphicsContext> CreateContext(\n Window* target_window) override;\n std::unique_ptr<GraphicsContext> CreateOffscreenContext() override;\n\n IDXGIFactory2* GetDXGIFactory() const { return dxgi_factory_; }\n ID3D12Device* GetDevice() const { return device_; }\n ID3D12CommandQueue* GetDirectQueue() const { return direct_queue_; }\n\n uint32_t GetViewDescriptorSize() const { return descriptor_size_view_; }\n uint32_t GetSamplerDescriptorSize() const { return descriptor_size_sampler_; }\n uint32_t GetRTVDescriptorSize() const { return descriptor_size_rtv_; }\n uint32_t GetDSVDescriptorSize() const { return descriptor_size_dsv_; }\n template <typename T>\n inline T OffsetViewDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_view_;\n return start;\n }\n template <typename T>\n inline T OffsetSamplerDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_sampler_;\n return start;\n }\n template <typename T>\n inline T OffsetRTVDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_rtv_;\n return start;\n }\n template <typename T>\n inline T OffsetDSVDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_dsv_;\n return start;\n }\n\n uint32_t GetProgrammableSamplePositionsTier() const {\n return programmable_sample_positions_tier_;\n }\n\n private:\n explicit D3D12Provider(Window* main_window);\n\n bool Initialize();\n static bool IsDeviceSupported(ID3D12Device* device);\n\n IDXGIFactory2* dxgi_factory_ = nullptr;\n ID3D12Device* device_ = nullptr;\n ID3D12CommandQueue* direct_queue_ = nullptr;\n\n uint32_t descriptor_size_view_;\n uint32_t descriptor_size_sampler_;\n uint32_t descriptor_size_rtv_;\n uint32_t descriptor_size_dsv_;\n\n uint32_t programmable_sample_positions_tier_;\n};\n\n} // namespace d3d12\n}" (type_identifier) "namespace" (identifier) "ui" (compound_statement) "{\nnamespace d3d12 {\n\nclass D3D12Provider : public GraphicsProvider {\n public:\n ~D3D12Provider() override;\n\n static std::unique_ptr<D3D12Provider> Create(Window* main_window);\n\n std::unique_ptr<GraphicsContext> CreateContext(\n Window* target_window) override;\n std::unique_ptr<GraphicsContext> CreateOffscreenContext() override;\n\n IDXGIFactory2* GetDXGIFactory() const { return dxgi_factory_; }\n ID3D12Device* GetDevice() const { return device_; }\n ID3D12CommandQueue* GetDirectQueue() const { return direct_queue_; }\n\n uint32_t GetViewDescriptorSize() const { return descriptor_size_view_; }\n uint32_t GetSamplerDescriptorSize() const { return descriptor_size_sampler_; }\n uint32_t GetRTVDescriptorSize() const { return descriptor_size_rtv_; }\n uint32_t GetDSVDescriptorSize() const { return descriptor_size_dsv_; }\n template <typename T>\n inline T OffsetViewDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_view_;\n return start;\n }\n template <typename T>\n inline T OffsetSamplerDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_sampler_;\n return start;\n }\n template <typename T>\n inline T OffsetRTVDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_rtv_;\n return start;\n }\n template <typename T>\n inline T OffsetDSVDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_dsv_;\n return start;\n }\n\n uint32_t GetProgrammableSamplePositionsTier() const {\n return programmable_sample_positions_tier_;\n }\n\n private:\n explicit D3D12Provider(Window* main_window);\n\n bool Initialize();\n static bool IsDeviceSupported(ID3D12Device* device);\n\n IDXGIFactory2* dxgi_factory_ = nullptr;\n ID3D12Device* device_ = nullptr;\n ID3D12CommandQueue* direct_queue_ = nullptr;\n\n uint32_t descriptor_size_view_;\n uint32_t descriptor_size_sampler_;\n uint32_t descriptor_size_rtv_;\n uint32_t descriptor_size_dsv_;\n\n uint32_t programmable_sample_positions_tier_;\n};\n\n} // namespace d3d12\n}" ({) "{" (function_definition) "namespace d3d12 {\n\nclass D3D12Provider : public GraphicsProvider {\n public:\n ~D3D12Provider() override;\n\n static std::unique_ptr<D3D12Provider> Create(Window* main_window);\n\n std::unique_ptr<GraphicsContext> CreateContext(\n Window* target_window) override;\n std::unique_ptr<GraphicsContext> CreateOffscreenContext() override;\n\n IDXGIFactory2* GetDXGIFactory() const { return dxgi_factory_; }\n ID3D12Device* GetDevice() const { return device_; }\n ID3D12CommandQueue* GetDirectQueue() const { return direct_queue_; }\n\n uint32_t GetViewDescriptorSize() const { return descriptor_size_view_; }\n uint32_t GetSamplerDescriptorSize() const { return descriptor_size_sampler_; }\n uint32_t GetRTVDescriptorSize() const { return descriptor_size_rtv_; }\n uint32_t GetDSVDescriptorSize() const { return descriptor_size_dsv_; }\n template <typename T>\n inline T OffsetViewDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_view_;\n return start;\n }\n template <typename T>\n inline T OffsetSamplerDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_sampler_;\n return start;\n }\n template <typename T>\n inline T OffsetRTVDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_rtv_;\n return start;\n }\n template <typename T>\n inline T OffsetDSVDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_dsv_;\n return start;\n }\n\n uint32_t GetProgrammableSamplePositionsTier() const {\n return programmable_sample_positions_tier_;\n }\n\n private:\n explicit D3D12Provider(Window* main_window);\n\n bool Initialize();\n static bool IsDeviceSupported(ID3D12Device* device);\n\n IDXGIFactory2* dxgi_factory_ = nullptr;\n ID3D12Device* device_ = nullptr;\n ID3D12CommandQueue* direct_queue_ = nullptr;\n\n uint32_t descriptor_size_view_;\n uint32_t descriptor_size_sampler_;\n uint32_t descriptor_size_rtv_;\n uint32_t descriptor_size_dsv_;\n\n uint32_t programmable_sample_positions_tier_;\n};\n\n}" (type_identifier) "namespace" (identifier) "d3d12" (compound_statement) "{\n\nclass D3D12Provider : public GraphicsProvider {\n public:\n ~D3D12Provider() override;\n\n static std::unique_ptr<D3D12Provider> Create(Window* main_window);\n\n std::unique_ptr<GraphicsContext> CreateContext(\n Window* target_window) override;\n std::unique_ptr<GraphicsContext> CreateOffscreenContext() override;\n\n IDXGIFactory2* GetDXGIFactory() const { return dxgi_factory_; }\n ID3D12Device* GetDevice() const { return device_; }\n ID3D12CommandQueue* GetDirectQueue() const { return direct_queue_; }\n\n uint32_t GetViewDescriptorSize() const { return descriptor_size_view_; }\n uint32_t GetSamplerDescriptorSize() const { return descriptor_size_sampler_; }\n uint32_t GetRTVDescriptorSize() const { return descriptor_size_rtv_; }\n uint32_t GetDSVDescriptorSize() const { return descriptor_size_dsv_; }\n template <typename T>\n inline T OffsetViewDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_view_;\n return start;\n }\n template <typename T>\n inline T OffsetSamplerDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_sampler_;\n return start;\n }\n template <typename T>\n inline T OffsetRTVDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_rtv_;\n return start;\n }\n template <typename T>\n inline T OffsetDSVDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_dsv_;\n return start;\n }\n\n uint32_t GetProgrammableSamplePositionsTier() const {\n return programmable_sample_positions_tier_;\n }\n\n private:\n explicit D3D12Provider(Window* main_window);\n\n bool Initialize();\n static bool IsDeviceSupported(ID3D12Device* device);\n\n IDXGIFactory2* dxgi_factory_ = nullptr;\n ID3D12Device* device_ = nullptr;\n ID3D12CommandQueue* direct_queue_ = nullptr;\n\n uint32_t descriptor_size_view_;\n uint32_t descriptor_size_sampler_;\n uint32_t descriptor_size_rtv_;\n uint32_t descriptor_size_dsv_;\n\n uint32_t programmable_sample_positions_tier_;\n};\n\n}" ({) "{" (function_definition) "class D3D12Provider : public GraphicsProvider {\n public:\n ~D3D12Provider() override;\n\n static std::unique_ptr<D3D12Provider> Create(Window* main_window);\n\n std::unique_ptr<GraphicsContext> CreateContext(\n Window* target_window) override;\n std::unique_ptr<GraphicsContext> CreateOffscreenContext() override;\n\n IDXGIFactory2* GetDXGIFactory() const { return dxgi_factory_; }\n ID3D12Device* GetDevice() const { return device_; }\n ID3D12CommandQueue* GetDirectQueue() const { return direct_queue_; }\n\n uint32_t GetViewDescriptorSize() const { return descriptor_size_view_; }\n uint32_t GetSamplerDescriptorSize() const { return descriptor_size_sampler_; }\n uint32_t GetRTVDescriptorSize() const { return descriptor_size_rtv_; }\n uint32_t GetDSVDescriptorSize() const { return descriptor_size_dsv_; }\n template <typename T>\n inline T OffsetViewDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_view_;\n return start;\n }\n template <typename T>\n inline T OffsetSamplerDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_sampler_;\n return start;\n }\n template <typename T>\n inline T OffsetRTVDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_rtv_;\n return start;\n }\n template <typename T>\n inline T OffsetDSVDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_dsv_;\n return start;\n }\n\n uint32_t GetProgrammableSamplePositionsTier() const {\n return programmable_sample_positions_tier_;\n }\n\n private:\n explicit D3D12Provider(Window* main_window);\n\n bool Initialize();\n static bool IsDeviceSupported(ID3D12Device* device);\n\n IDXGIFactory2* dxgi_factory_ = nullptr;\n ID3D12Device* device_ = nullptr;\n ID3D12CommandQueue* direct_queue_ = nullptr;\n\n uint32_t descriptor_size_view_;\n uint32_t descriptor_size_sampler_;\n uint32_t descriptor_size_rtv_;\n uint32_t descriptor_size_dsv_;\n\n uint32_t programmable_sample_positions_tier_;\n}" (type_identifier) "class" (ERROR) "D3D12Provider : public" (identifier) "D3D12Provider" (:) ":" (identifier) "public" (identifier) "GraphicsProvider" (compound_statement) "{\n public:\n ~D3D12Provider() override;\n\n static std::unique_ptr<D3D12Provider> Create(Window* main_window);\n\n std::unique_ptr<GraphicsContext> CreateContext(\n Window* target_window) override;\n std::unique_ptr<GraphicsContext> CreateOffscreenContext() override;\n\n IDXGIFactory2* GetDXGIFactory() const { return dxgi_factory_; }\n ID3D12Device* GetDevice() const { return device_; }\n ID3D12CommandQueue* GetDirectQueue() const { return direct_queue_; }\n\n uint32_t GetViewDescriptorSize() const { return descriptor_size_view_; }\n uint32_t GetSamplerDescriptorSize() const { return descriptor_size_sampler_; }\n uint32_t GetRTVDescriptorSize() const { return descriptor_size_rtv_; }\n uint32_t GetDSVDescriptorSize() const { return descriptor_size_dsv_; }\n template <typename T>\n inline T OffsetViewDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_view_;\n return start;\n }\n template <typename T>\n inline T OffsetSamplerDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_sampler_;\n return start;\n }\n template <typename T>\n inline T OffsetRTVDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_rtv_;\n return start;\n }\n template <typename T>\n inline T OffsetDSVDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_dsv_;\n return start;\n }\n\n uint32_t GetProgrammableSamplePositionsTier() const {\n return programmable_sample_positions_tier_;\n }\n\n private:\n explicit D3D12Provider(Window* main_window);\n\n bool Initialize();\n static bool IsDeviceSupported(ID3D12Device* device);\n\n IDXGIFactory2* dxgi_factory_ = nullptr;\n ID3D12Device* device_ = nullptr;\n ID3D12CommandQueue* direct_queue_ = nullptr;\n\n uint32_t descriptor_size_view_;\n uint32_t descriptor_size_sampler_;\n uint32_t descriptor_size_rtv_;\n uint32_t descriptor_size_dsv_;\n\n uint32_t programmable_sample_positions_tier_;\n}" ({) "{" (labeled_statement) "public:\n ~D3D12Provider() override;" (statement_identifier) "public" (:) ":" (expression_statement) "~D3D12Provider() override;" (unary_expression) "~D3D12Provider()" (~) "~" (call_expression) "D3D12Provider()" (identifier) "D3D12Provider" (argument_list) "()" (() "(" ()) ")" (ERROR) "override" (identifier) "override" (;) ";" (declaration) "static std::unique_ptr<D3D12Provider> Create(Window* main_window);" (storage_class_specifier) "static" (static) "static" (type_identifier) "std" (ERROR) "::unique_ptr<D3D12Provider>" (:) ":" (:) ":" (identifier) "unique_ptr" (<) "<" (identifier) "D3D12Provider" (>) ">" (function_declarator) "Create(Window* main_window)" (identifier) "Create" (parameter_list) "(Window* main_window)" (() "(" (parameter_declaration) "Window* main_window" (type_identifier) "Window" (pointer_declarator) "* main_window" (*) "*" (identifier) "main_window" ()) ")" (;) ";" (labeled_statement) "std::unique_ptr<GraphicsContext> CreateContext(\n Window* target_window) override;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "unique_ptr<GraphicsContext> CreateContext(\n Window* target_window) override;" (binary_expression) "unique_ptr<GraphicsContext> CreateContext(\n Window* target_window)" (binary_expression) "unique_ptr<GraphicsContext" (identifier) "unique_ptr" (<) "<" (identifier) "GraphicsContext" (>) ">" (call_expression) "CreateContext(\n Window* target_window)" (identifier) "CreateContext" (argument_list) "(\n Window* target_window)" (() "(" (binary_expression) "Window* target_window" (identifier) "Window" (*) "*" (identifier) "target_window" ()) ")" (ERROR) "override" (identifier) "override" (;) ";" (labeled_statement) "std::unique_ptr<GraphicsContext> CreateOffscreenContext() override;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "unique_ptr<GraphicsContext> CreateOffscreenContext() override;" (binary_expression) "unique_ptr<GraphicsContext> CreateOffscreenContext()" (binary_expression) "unique_ptr<GraphicsContext" (identifier) "unique_ptr" (<) "<" (identifier) "GraphicsContext" (>) ">" (call_expression) "CreateOffscreenContext()" (identifier) "CreateOffscreenContext" (argument_list) "()" (() "(" ()) ")" (ERROR) "override" (identifier) "override" (;) ";" (function_definition) "IDXGIFactory2* GetDXGIFactory() const { return dxgi_factory_; }" (type_identifier) "IDXGIFactory2" (pointer_declarator) "* GetDXGIFactory() const" (*) "*" (function_declarator) "GetDXGIFactory() const" (identifier) "GetDXGIFactory" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{ return dxgi_factory_; }" ({) "{" (return_statement) "return dxgi_factory_;" (return) "return" (identifier) "dxgi_factory_" (;) ";" (}) "}" (function_definition) "ID3D12Device* GetDevice() const { return device_; }" (type_identifier) "ID3D12Device" (pointer_declarator) "* GetDevice() const" (*) "*" (function_declarator) "GetDevice() const" (identifier) "GetDevice" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{ return device_; }" ({) "{" (return_statement) "return device_;" (return) "return" (identifier) "device_" (;) ";" (}) "}" (function_definition) "ID3D12CommandQueue* GetDirectQueue() const { return direct_queue_; }" (type_identifier) "ID3D12CommandQueue" (pointer_declarator) "* GetDirectQueue() const" (*) "*" (function_declarator) "GetDirectQueue() const" (identifier) "GetDirectQueue" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{ return direct_queue_; }" ({) "{" (return_statement) "return direct_queue_;" (return) "return" (identifier) "direct_queue_" (;) ";" (}) "}" (ERROR) "uint32_t GetViewDescriptorSize() const" (primitive_type) "uint32_t" (function_declarator) "GetViewDescriptorSize()" (identifier) "GetViewDescriptorSize" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{ return descriptor_size_view_; }" ({) "{" (return_statement) "return descriptor_size_view_;" (return) "return" (identifier) "descriptor_size_view_" (;) ";" (}) "}" (ERROR) "uint32_t GetSamplerDescriptorSize() const" (primitive_type) "uint32_t" (function_declarator) "GetSamplerDescriptorSize()" (identifier) "GetSamplerDescriptorSize" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{ return descriptor_size_sampler_; }" ({) "{" (return_statement) "return descriptor_size_sampler_;" (return) "return" (identifier) "descriptor_size_sampler_" (;) ";" (}) "}" (ERROR) "uint32_t GetRTVDescriptorSize() const" (primitive_type) "uint32_t" (function_declarator) "GetRTVDescriptorSize()" (identifier) "GetRTVDescriptorSize" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{ return descriptor_size_rtv_; }" ({) "{" (return_statement) "return descriptor_size_rtv_;" (return) "return" (identifier) "descriptor_size_rtv_" (;) ";" (}) "}" (ERROR) "uint32_t GetDSVDescriptorSize() const" (primitive_type) "uint32_t" (function_declarator) "GetDSVDescriptorSize()" (identifier) "GetDSVDescriptorSize" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{ return descriptor_size_dsv_; }" ({) "{" (return_statement) "return descriptor_size_dsv_;" (return) "return" (identifier) "descriptor_size_dsv_" (;) ";" (}) "}" (expression_statement) "template <typename T>\n inline" (binary_expression) "template <typename T>\n inline" (binary_expression) "template <typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "T" (identifier) "T" (>) ">" (identifier) "inline" (;) "" (function_definition) "T OffsetViewDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_view_;\n return start;\n }" (type_identifier) "T" (function_declarator) "OffsetViewDescriptor(T start, uint32_t index) const" (identifier) "OffsetViewDescriptor" (parameter_list) "(T start, uint32_t index)" (() "(" (parameter_declaration) "T start" (type_identifier) "T" (identifier) "start" (,) "," (parameter_declaration) "uint32_t index" (primitive_type) "uint32_t" (identifier) "index" ()) ")" (identifier) "const" (compound_statement) "{\n start.ptr += index * descriptor_size_view_;\n return start;\n }" ({) "{" (expression_statement) "start.ptr += index * descriptor_size_view_;" (assignment_expression) "start.ptr += index * descriptor_size_view_" (field_expression) "start.ptr" (identifier) "start" (.) "." (field_identifier) "ptr" (+=) "+=" (binary_expression) "index * descriptor_size_view_" (identifier) "index" (*) "*" (identifier) "descriptor_size_view_" (;) ";" (return_statement) "return start;" (return) "return" (identifier) "start" (;) ";" (}) "}" (expression_statement) "template <typename T>\n inline" (binary_expression) "template <typename T>\n inline" (binary_expression) "template <typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "T" (identifier) "T" (>) ">" (identifier) "inline" (;) "" (function_definition) "T OffsetSamplerDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_sampler_;\n return start;\n }" (type_identifier) "T" (function_declarator) "OffsetSamplerDescriptor(T start, uint32_t index) const" (identifier) "OffsetSamplerDescriptor" (parameter_list) "(T start, uint32_t index)" (() "(" (parameter_declaration) "T start" (type_identifier) "T" (identifier) "start" (,) "," (parameter_declaration) "uint32_t index" (primitive_type) "uint32_t" (identifier) "index" ()) ")" (identifier) "const" (compound_statement) "{\n start.ptr += index * descriptor_size_sampler_;\n return start;\n }" ({) "{" (expression_statement) "start.ptr += index * descriptor_size_sampler_;" (assignment_expression) "start.ptr += index * descriptor_size_sampler_" (field_expression) "start.ptr" (identifier) "start" (.) "." (field_identifier) "ptr" (+=) "+=" (binary_expression) "index * descriptor_size_sampler_" (identifier) "index" (*) "*" (identifier) "descriptor_size_sampler_" (;) ";" (return_statement) "return start;" (return) "return" (identifier) "start" (;) ";" (}) "}" (expression_statement) "template <typename T>\n inline" (binary_expression) "template <typename T>\n inline" (binary_expression) "template <typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "T" (identifier) "T" (>) ">" (identifier) "inline" (;) "" (function_definition) "T OffsetRTVDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_rtv_;\n return start;\n }" (type_identifier) "T" (function_declarator) "OffsetRTVDescriptor(T start, uint32_t index) const" (identifier) "OffsetRTVDescriptor" (parameter_list) "(T start, uint32_t index)" (() "(" (parameter_declaration) "T start" (type_identifier) "T" (identifier) "start" (,) "," (parameter_declaration) "uint32_t index" (primitive_type) "uint32_t" (identifier) "index" ()) ")" (identifier) "const" (compound_statement) "{\n start.ptr += index * descriptor_size_rtv_;\n return start;\n }" ({) "{" (expression_statement) "start.ptr += index * descriptor_size_rtv_;" (assignment_expression) "start.ptr += index * descriptor_size_rtv_" (field_expression) "start.ptr" (identifier) "start" (.) "." (field_identifier) "ptr" (+=) "+=" (binary_expression) "index * descriptor_size_rtv_" (identifier) "index" (*) "*" (identifier) "descriptor_size_rtv_" (;) ";" (return_statement) "return start;" (return) "return" (identifier) "start" (;) ";" (}) "}" (expression_statement) "template <typename T>\n inline" (binary_expression) "template <typename T>\n inline" (binary_expression) "template <typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "T" (identifier) "T" (>) ">" (identifier) "inline" (;) "" (function_definition) "T OffsetDSVDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_dsv_;\n return start;\n }" (type_identifier) "T" (function_declarator) "OffsetDSVDescriptor(T start, uint32_t index) const" (identifier) "OffsetDSVDescriptor" (parameter_list) "(T start, uint32_t index)" (() "(" (parameter_declaration) "T start" (type_identifier) "T" (identifier) "start" (,) "," (parameter_declaration) "uint32_t index" (primitive_type) "uint32_t" (identifier) "index" ()) ")" (identifier) "const" (compound_statement) "{\n start.ptr += index * descriptor_size_dsv_;\n return start;\n }" ({) "{" (expression_statement) "start.ptr += index * descriptor_size_dsv_;" (assignment_expression) "start.ptr += index * descriptor_size_dsv_" (field_expression) "start.ptr" (identifier) "start" (.) "." (field_identifier) "ptr" (+=) "+=" (binary_expression) "index * descriptor_size_dsv_" (identifier) "index" (*) "*" (identifier) "descriptor_size_dsv_" (;) ";" (return_statement) "return start;" (return) "return" (identifier) "start" (;) ";" (}) "}" (ERROR) "uint32_t GetProgrammableSamplePositionsTier() const" (primitive_type) "uint32_t" (function_declarator) "GetProgrammableSamplePositionsTier()" (identifier) "GetProgrammableSamplePositionsTier" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{\n return programmable_sample_positions_tier_;\n }" ({) "{" (return_statement) "return programmable_sample_positions_tier_;" (return) "return" (identifier) "programmable_sample_positions_tier_" (;) ";" (}) "}" (labeled_statement) "private:\n explicit D3D12Provider(Window* main_window);" (statement_identifier) "private" (:) ":" (declaration) "explicit D3D12Provider(Window* main_window);" (type_identifier) "explicit" (function_declarator) "D3D12Provider(Window* main_window)" (identifier) "D3D12Provider" (parameter_list) "(Window* main_window)" (() "(" (parameter_declaration) "Window* main_window" (type_identifier) "Window" (pointer_declarator) "* main_window" (*) "*" (identifier) "main_window" ()) ")" (;) ";" (declaration) "bool Initialize();" (primitive_type) "bool" (function_declarator) "Initialize()" (identifier) "Initialize" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "static bool IsDeviceSupported(ID3D12Device* device);" (storage_class_specifier) "static" (static) "static" (primitive_type) "bool" (function_declarator) "IsDeviceSupported(ID3D12Device* device)" (identifier) "IsDeviceSupported" (parameter_list) "(ID3D12Device* device)" (() "(" (parameter_declaration) "ID3D12Device* device" (type_identifier) "ID3D12Device" (pointer_declarator) "* device" (*) "*" (identifier) "device" ()) ")" (;) ";" (declaration) "IDXGIFactory2* dxgi_factory_ = nullptr;" (type_identifier) "IDXGIFactory2" (init_declarator) "* dxgi_factory_ = nullptr" (pointer_declarator) "* dxgi_factory_" (*) "*" (identifier) "dxgi_factory_" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "ID3D12Device* device_ = nullptr;" (type_identifier) "ID3D12Device" (init_declarator) "* device_ = nullptr" (pointer_declarator) "* device_" (*) "*" (identifier) "device_" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "ID3D12CommandQueue* direct_queue_ = nullptr;" (type_identifier) "ID3D12CommandQueue" (init_declarator) "* direct_queue_ = nullptr" (pointer_declarator) "* direct_queue_" (*) "*" (identifier) "direct_queue_" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "uint32_t descriptor_size_view_;" (primitive_type) "uint32_t" (identifier) "descriptor_size_view_" (;) ";" (declaration) "uint32_t descriptor_size_sampler_;" (primitive_type) "uint32_t" (identifier) "descriptor_size_sampler_" (;) ";" (declaration) "uint32_t descriptor_size_rtv_;" (primitive_type) "uint32_t" (identifier) "descriptor_size_rtv_" (;) ";" (declaration) "uint32_t descriptor_size_dsv_;" (primitive_type) "uint32_t" (identifier) "descriptor_size_dsv_" (;) ";" (declaration) "uint32_t programmable_sample_positions_tier_;" (primitive_type) "uint32_t" (identifier) "programmable_sample_positions_tier_" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (comment) "// namespace d3d12" (}) "}" (comment) "// namespace ui" (}) "}" (comment) "// namespace xe" (#endif) "#endif" (comment) "// XENIA_UI_D3D12_D3D12_PROVIDER_H_"
538
16
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 39.19, "nodes": 336, "errors": 0, "source_hash": "fc9cc072d970d92c6a9a0e4783f2e5fc656cd4240322ad2d6c31855dc0d98abb", "categorized_nodes": 227}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef XENIA_UI_D3D12_D3D12_PROVIDER_H_\n#define XENIA_UI_D3D12_D3D12_PROVIDER_H_\n\n#include <memory>\n\n#include \"xenia/ui/d3d12/d3d12_api.h\"\n#include \"xenia/ui/graphics_provider.h\"\n\nnamespace xe {\nnamespace ui {\nnamespace d3d12 {\n\nclass D3D12Provider : public GraphicsProvider {\n public:\n ~D3D12Provider() override;\n\n static std::unique_ptr<D3D12Provider> Create(Window* main_window);\n\n std::unique_ptr<GraphicsContext> CreateContext(\n Window* target_window) override;\n std::unique_ptr<GraphicsContext> CreateOffscreenContext() override;\n\n IDXGIFactory2* GetDXGIFactory() const { return dxgi_factory_; }\n ID3D12Device* GetDevice() const { return device_; }\n ID3D12CommandQueue* GetDirectQueue() const { return direct_queue_; }\n\n uint32_t GetViewDescriptorSize() const { return descriptor_size_view_; }\n uint32_t GetSamplerDescriptorSize() const { return descriptor_size_sampler_; }\n uint32_t GetRTVDescriptorSize() const { return descriptor_size_rtv_; }\n uint32_t GetDSVDescriptorSize() const { return descriptor_size_dsv_; }\n template <typename T>\n inline T OffsetViewDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_view_;\n return start;\n }\n template <typename T>\n inline T OffsetSamplerDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_sampler_;\n return start;\n }\n template <typename T>\n inline T OffsetRTVDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_rtv_;\n return start;\n }\n template <typename T>\n inline T OffsetDSVDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_dsv_;\n return start;\n }\n\n uint32_t GetProgrammableSamplePositionsTier() const {\n return programmable_sample_positions_tier_;\n }\n\n private:\n explicit D3D12Provider(Window* main_window);\n\n bool Initialize();\n static bool IsDeviceSupported(ID3D12Device* device);\n\n IDXGIFactory2* dxgi_factory_ = nullptr;\n ID3D12Device* device_ = nullptr;\n ID3D12CommandQueue* direct_queue_ = nullptr;\n\n uint32_t descriptor_size_view_;\n uint32_t descriptor_size_sampler_;\n uint32_t descriptor_size_rtv_;\n uint32_t descriptor_size_dsv_;\n\n uint32_t programmable_sample_positions_tier_;\n};\n\n} // namespace d3d12\n} // namespace ui\n} // namespace xe\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 335], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 86, "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": "XENIA_UI_D3D12_D3D12_PROVIDER_H_", "parent": 0, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 40}}, {"id": 3, "type": "preproc_def", "text": "#define XENIA_UI_D3D12_D3D12_PROVIDER_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": "XENIA_UI_D3D12_D3D12_PROVIDER_H_", "parent": 3, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 40}}, {"id": 6, "type": "preproc_include", "text": "#include <memory>\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": "system_lib_string", "text": "<memory>", "parent": 6, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 17}}, {"id": 9, "type": "preproc_include", "text": "#include \"xenia/ui/d3d12/d3d12_api.h\"\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": "string_literal", "text": "\"xenia/ui/d3d12/d3d12_api.h\"", "parent": 9, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 37}}, {"id": 12, "type": "preproc_include", "text": "#include \"xenia/ui/graphics_provider.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": "\"xenia/ui/graphics_provider.h\"", "parent": 12, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 39}}, {"id": 15, "type": "function_definition", "text": "namespace xe {\nnamespace ui {\nnamespace d3d12 {\n\nclass D3D12Provider : public GraphicsProvider {\n public:\n ~D3D12Provider() override;\n\n static std::unique_ptr<D3D12Provider> Create(Window* main_window);\n\n std::unique_ptr<GraphicsContext> CreateContext(\n Window* target_window) override;\n std::unique_ptr<GraphicsContext> CreateOffscreenContext() override;\n\n IDXGIFactory2* GetDXGIFactory() const { return dxgi_factory_; }\n ID3D12Device* GetDevice() const { return device_; }\n ID3D12CommandQueue* GetDirectQueue() const { return direct_queue_; }\n\n uint32_t GetViewDescriptorSize() const { return descriptor_size_view_; }\n uint32_t GetSamplerDescriptorSize() const { return descriptor_size_sampler_; }\n uint32_t GetRTVDescriptorSize() const { return descriptor_size_rtv_; }\n uint32_t GetDSVDescriptorSize() const { return descriptor_size_dsv_; }\n template <typename T>\n inline T OffsetViewDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_view_;\n return start;\n }\n template <typename T>\n inline T OffsetSamplerDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_sampler_;\n return start;\n }\n template <typename T>\n inline T OffsetRTVDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_rtv_;\n return start;\n }\n template <typename T>\n inline T OffsetDSVDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_dsv_;\n return start;\n }\n\n uint32_t GetProgrammableSamplePositionsTier() const {\n return programmable_sample_positions_tier_;\n }\n\n private:\n explicit D3D12Provider(Window* main_window);\n\n bool Initialize();\n static bool IsDeviceSupported(ID3D12Device* device);\n\n IDXGIFactory2* dxgi_factory_ = nullptr;\n ID3D12Device* device_ = nullptr;\n ID3D12CommandQueue* direct_queue_ = nullptr;\n\n uint32_t descriptor_size_view_;\n uint32_t descriptor_size_sampler_;\n uint32_t descriptor_size_rtv_;\n uint32_t descriptor_size_dsv_;\n\n uint32_t programmable_sample_positions_tier_;\n};\n\n} // namespace d3d12\n} // namespace ui\n}", "parent": 0, "children": [16, 17], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 84, "column": 1}}, {"id": 16, "type": "type_identifier", "text": "namespace", "parent": 15, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 9}}, {"id": 17, "type": "identifier", "text": "xe", "parent": 15, "children": [], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 12}}, {"id": 18, "type": "function_definition", "text": "namespace ui {\nnamespace d3d12 {\n\nclass D3D12Provider : public GraphicsProvider {\n public:\n ~D3D12Provider() override;\n\n static std::unique_ptr<D3D12Provider> Create(Window* main_window);\n\n std::unique_ptr<GraphicsContext> CreateContext(\n Window* target_window) override;\n std::unique_ptr<GraphicsContext> CreateOffscreenContext() override;\n\n IDXGIFactory2* GetDXGIFactory() const { return dxgi_factory_; }\n ID3D12Device* GetDevice() const { return device_; }\n ID3D12CommandQueue* GetDirectQueue() const { return direct_queue_; }\n\n uint32_t GetViewDescriptorSize() const { return descriptor_size_view_; }\n uint32_t GetSamplerDescriptorSize() const { return descriptor_size_sampler_; }\n uint32_t GetRTVDescriptorSize() const { return descriptor_size_rtv_; }\n uint32_t GetDSVDescriptorSize() const { return descriptor_size_dsv_; }\n template <typename T>\n inline T OffsetViewDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_view_;\n return start;\n }\n template <typename T>\n inline T OffsetSamplerDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_sampler_;\n return start;\n }\n template <typename T>\n inline T OffsetRTVDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_rtv_;\n return start;\n }\n template <typename T>\n inline T OffsetDSVDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_dsv_;\n return start;\n }\n\n uint32_t GetProgrammableSamplePositionsTier() const {\n return programmable_sample_positions_tier_;\n }\n\n private:\n explicit D3D12Provider(Window* main_window);\n\n bool Initialize();\n static bool IsDeviceSupported(ID3D12Device* device);\n\n IDXGIFactory2* dxgi_factory_ = nullptr;\n ID3D12Device* device_ = nullptr;\n ID3D12CommandQueue* direct_queue_ = nullptr;\n\n uint32_t descriptor_size_view_;\n uint32_t descriptor_size_sampler_;\n uint32_t descriptor_size_rtv_;\n uint32_t descriptor_size_dsv_;\n\n uint32_t programmable_sample_positions_tier_;\n};\n\n} // namespace d3d12\n}", "parent": 15, "children": [19, 20], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 83, "column": 1}}, {"id": 19, "type": "type_identifier", "text": "namespace", "parent": 18, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 9}}, {"id": 20, "type": "identifier", "text": "ui", "parent": 18, "children": [], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 12}}, {"id": 21, "type": "function_definition", "text": "namespace d3d12 {\n\nclass D3D12Provider : public GraphicsProvider {\n public:\n ~D3D12Provider() override;\n\n static std::unique_ptr<D3D12Provider> Create(Window* main_window);\n\n std::unique_ptr<GraphicsContext> CreateContext(\n Window* target_window) override;\n std::unique_ptr<GraphicsContext> CreateOffscreenContext() override;\n\n IDXGIFactory2* GetDXGIFactory() const { return dxgi_factory_; }\n ID3D12Device* GetDevice() const { return device_; }\n ID3D12CommandQueue* GetDirectQueue() const { return direct_queue_; }\n\n uint32_t GetViewDescriptorSize() const { return descriptor_size_view_; }\n uint32_t GetSamplerDescriptorSize() const { return descriptor_size_sampler_; }\n uint32_t GetRTVDescriptorSize() const { return descriptor_size_rtv_; }\n uint32_t GetDSVDescriptorSize() const { return descriptor_size_dsv_; }\n template <typename T>\n inline T OffsetViewDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_view_;\n return start;\n }\n template <typename T>\n inline T OffsetSamplerDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_sampler_;\n return start;\n }\n template <typename T>\n inline T OffsetRTVDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_rtv_;\n return start;\n }\n template <typename T>\n inline T OffsetDSVDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_dsv_;\n return start;\n }\n\n uint32_t GetProgrammableSamplePositionsTier() const {\n return programmable_sample_positions_tier_;\n }\n\n private:\n explicit D3D12Provider(Window* main_window);\n\n bool Initialize();\n static bool IsDeviceSupported(ID3D12Device* device);\n\n IDXGIFactory2* dxgi_factory_ = nullptr;\n ID3D12Device* device_ = nullptr;\n ID3D12CommandQueue* direct_queue_ = nullptr;\n\n uint32_t descriptor_size_view_;\n uint32_t descriptor_size_sampler_;\n uint32_t descriptor_size_rtv_;\n uint32_t descriptor_size_dsv_;\n\n uint32_t programmable_sample_positions_tier_;\n};\n\n}", "parent": 18, "children": [22, 23], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 82, "column": 1}}, {"id": 22, "type": "type_identifier", "text": "namespace", "parent": 21, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 9}}, {"id": 23, "type": "identifier", "text": "d3d12", "parent": 21, "children": [], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 15}}, {"id": 24, "type": "function_definition", "text": "class D3D12Provider : public GraphicsProvider {\n public:\n ~D3D12Provider() override;\n\n static std::unique_ptr<D3D12Provider> Create(Window* main_window);\n\n std::unique_ptr<GraphicsContext> CreateContext(\n Window* target_window) override;\n std::unique_ptr<GraphicsContext> CreateOffscreenContext() override;\n\n IDXGIFactory2* GetDXGIFactory() const { return dxgi_factory_; }\n ID3D12Device* GetDevice() const { return device_; }\n ID3D12CommandQueue* GetDirectQueue() const { return direct_queue_; }\n\n uint32_t GetViewDescriptorSize() const { return descriptor_size_view_; }\n uint32_t GetSamplerDescriptorSize() const { return descriptor_size_sampler_; }\n uint32_t GetRTVDescriptorSize() const { return descriptor_size_rtv_; }\n uint32_t GetDSVDescriptorSize() const { return descriptor_size_dsv_; }\n template <typename T>\n inline T OffsetViewDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_view_;\n return start;\n }\n template <typename T>\n inline T OffsetSamplerDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_sampler_;\n return start;\n }\n template <typename T>\n inline T OffsetRTVDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_rtv_;\n return start;\n }\n template <typename T>\n inline T OffsetDSVDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_dsv_;\n return start;\n }\n\n uint32_t GetProgrammableSamplePositionsTier() const {\n return programmable_sample_positions_tier_;\n }\n\n private:\n explicit D3D12Provider(Window* main_window);\n\n bool Initialize();\n static bool IsDeviceSupported(ID3D12Device* device);\n\n IDXGIFactory2* dxgi_factory_ = nullptr;\n ID3D12Device* device_ = nullptr;\n ID3D12CommandQueue* direct_queue_ = nullptr;\n\n uint32_t descriptor_size_view_;\n uint32_t descriptor_size_sampler_;\n uint32_t descriptor_size_rtv_;\n uint32_t descriptor_size_dsv_;\n\n uint32_t programmable_sample_positions_tier_;\n}", "parent": 21, "children": [25, 27], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 80, "column": 1}}, {"id": 25, "type": "ERROR", "text": "D3D12Provider : public", "parent": 24, "children": [26], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 28}}, {"id": 26, "type": "identifier", "text": "D3D12Provider", "parent": 25, "children": [], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 19}}, {"id": 27, "type": "identifier", "text": "GraphicsProvider", "parent": 24, "children": [], "start_point": {"row": 21, "column": 29}, "end_point": {"row": 21, "column": 45}}, {"id": 28, "type": "labeled_statement", "text": "public:\n ~D3D12Provider() override;", "parent": 24, "children": [], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 23, "column": 28}}, {"id": 29, "type": "unary_expression", "text": "~D3D12Provider()", "parent": 28, "children": [30, 31], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 18}}, {"id": 30, "type": "~", "text": "~", "parent": 29, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 3}}, {"id": 31, "type": "call_expression", "text": "D3D12Provider()", "parent": 29, "children": [32, 33], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 18}}, {"id": 32, "type": "identifier", "text": "D3D12Provider", "parent": 31, "children": [], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 16}}, {"id": 33, "type": "argument_list", "text": "()", "parent": 31, "children": [], "start_point": {"row": 23, "column": 16}, "end_point": {"row": 23, "column": 18}}, {"id": 34, "type": "ERROR", "text": "override", "parent": 28, "children": [35], "start_point": {"row": 23, "column": 19}, "end_point": {"row": 23, "column": 27}}, {"id": 35, "type": "identifier", "text": "override", "parent": 34, "children": [], "start_point": {"row": 23, "column": 19}, "end_point": {"row": 23, "column": 27}}, {"id": 36, "type": "declaration", "text": "static std::unique_ptr<D3D12Provider> Create(Window* main_window);", "parent": 24, "children": [37, 38, 43], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 68}}, {"id": 37, "type": "type_identifier", "text": "std", "parent": 36, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 12}}, {"id": 38, "type": "ERROR", "text": "::unique_ptr<D3D12Provider>", "parent": 36, "children": [39, 40, 41, 42], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 39}}, {"id": 39, "type": "identifier", "text": "unique_ptr", "parent": 38, "children": [], "start_point": {"row": 25, "column": 14}, "end_point": {"row": 25, "column": 24}}, {"id": 40, "type": "<", "text": "<", "parent": 38, "children": [], "start_point": {"row": 25, "column": 24}, "end_point": {"row": 25, "column": 25}}, {"id": 41, "type": "identifier", "text": "D3D12Provider", "parent": 38, "children": [], "start_point": {"row": 25, "column": 25}, "end_point": {"row": 25, "column": 38}}, {"id": 42, "type": ">", "text": ">", "parent": 38, "children": [], "start_point": {"row": 25, "column": 38}, "end_point": {"row": 25, "column": 39}}, {"id": 43, "type": "function_declarator", "text": "Create(Window* main_window)", "parent": 36, "children": [44, 45], "start_point": {"row": 25, "column": 40}, "end_point": {"row": 25, "column": 67}}, {"id": 44, "type": "identifier", "text": "Create", "parent": 43, "children": [], "start_point": {"row": 25, "column": 40}, "end_point": {"row": 25, "column": 46}}, {"id": 45, "type": "parameter_list", "text": "(Window* main_window)", "parent": 43, "children": [46], "start_point": {"row": 25, "column": 46}, "end_point": {"row": 25, "column": 67}}, {"id": 46, "type": "parameter_declaration", "text": "Window* main_window", "parent": 45, "children": [47, 48], "start_point": {"row": 25, "column": 47}, "end_point": {"row": 25, "column": 66}}, {"id": 47, "type": "type_identifier", "text": "Window", "parent": 46, "children": [], "start_point": {"row": 25, "column": 47}, "end_point": {"row": 25, "column": 53}}, {"id": 48, "type": "pointer_declarator", "text": "* main_window", "parent": 46, "children": [49, 50], "start_point": {"row": 25, "column": 53}, "end_point": {"row": 25, "column": 66}}, {"id": 49, "type": "*", "text": "*", "parent": 48, "children": [], "start_point": {"row": 25, "column": 53}, "end_point": {"row": 25, "column": 54}}, {"id": 50, "type": "identifier", "text": "main_window", "parent": 48, "children": [], "start_point": {"row": 25, "column": 55}, "end_point": {"row": 25, "column": 66}}, {"id": 51, "type": "labeled_statement", "text": "std::unique_ptr<GraphicsContext> CreateContext(\n Window* target_window) override;", "parent": 24, "children": [52], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 28, "column": 38}}, {"id": 52, "type": "statement_identifier", "text": "std", "parent": 51, "children": [], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 5}}, {"id": 53, "type": "binary_expression", "text": "unique_ptr<GraphicsContext> CreateContext(\n Window* target_window)", "parent": 51, "children": [54, 58, 59], "start_point": {"row": 27, "column": 7}, "end_point": {"row": 28, "column": 28}}, {"id": 54, "type": "binary_expression", "text": "unique_ptr<GraphicsContext", "parent": 53, "children": [55, 56, 57], "start_point": {"row": 27, "column": 7}, "end_point": {"row": 27, "column": 33}}, {"id": 55, "type": "identifier", "text": "unique_ptr", "parent": 54, "children": [], "start_point": {"row": 27, "column": 7}, "end_point": {"row": 27, "column": 17}}, {"id": 56, "type": "<", "text": "<", "parent": 54, "children": [], "start_point": {"row": 27, "column": 17}, "end_point": {"row": 27, "column": 18}}, {"id": 57, "type": "identifier", "text": "GraphicsContext", "parent": 54, "children": [], "start_point": {"row": 27, "column": 18}, "end_point": {"row": 27, "column": 33}}, {"id": 58, "type": ">", "text": ">", "parent": 53, "children": [], "start_point": {"row": 27, "column": 33}, "end_point": {"row": 27, "column": 34}}, {"id": 59, "type": "call_expression", "text": "CreateContext(\n Window* target_window)", "parent": 53, "children": [60, 61], "start_point": {"row": 27, "column": 35}, "end_point": {"row": 28, "column": 28}}, {"id": 60, "type": "identifier", "text": "CreateContext", "parent": 59, "children": [], "start_point": {"row": 27, "column": 35}, "end_point": {"row": 27, "column": 48}}, {"id": 61, "type": "argument_list", "text": "(\n Window* target_window)", "parent": 59, "children": [62], "start_point": {"row": 27, "column": 48}, "end_point": {"row": 28, "column": 28}}, {"id": 62, "type": "binary_expression", "text": "Window* target_window", "parent": 61, "children": [63, 64, 65], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 27}}, {"id": 63, "type": "identifier", "text": "Window", "parent": 62, "children": [], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 12}}, {"id": 64, "type": "*", "text": "*", "parent": 62, "children": [], "start_point": {"row": 28, "column": 12}, "end_point": {"row": 28, "column": 13}}, {"id": 65, "type": "identifier", "text": "target_window", "parent": 62, "children": [], "start_point": {"row": 28, "column": 14}, "end_point": {"row": 28, "column": 27}}, {"id": 66, "type": "ERROR", "text": "override", "parent": 51, "children": [67], "start_point": {"row": 28, "column": 29}, "end_point": {"row": 28, "column": 37}}, {"id": 67, "type": "identifier", "text": "override", "parent": 66, "children": [], "start_point": {"row": 28, "column": 29}, "end_point": {"row": 28, "column": 37}}, {"id": 68, "type": "labeled_statement", "text": "std::unique_ptr<GraphicsContext> CreateOffscreenContext() override;", "parent": 24, "children": [69], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 69}}, {"id": 69, "type": "statement_identifier", "text": "std", "parent": 68, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 5}}, {"id": 70, "type": "binary_expression", "text": "unique_ptr<GraphicsContext> CreateOffscreenContext()", "parent": 68, "children": [71, 75, 76], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 59}}, {"id": 71, "type": "binary_expression", "text": "unique_ptr<GraphicsContext", "parent": 70, "children": [72, 73, 74], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 33}}, {"id": 72, "type": "identifier", "text": "unique_ptr", "parent": 71, "children": [], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 17}}, {"id": 73, "type": "<", "text": "<", "parent": 71, "children": [], "start_point": {"row": 29, "column": 17}, "end_point": {"row": 29, "column": 18}}, {"id": 74, "type": "identifier", "text": "GraphicsContext", "parent": 71, "children": [], "start_point": {"row": 29, "column": 18}, "end_point": {"row": 29, "column": 33}}, {"id": 75, "type": ">", "text": ">", "parent": 70, "children": [], "start_point": {"row": 29, "column": 33}, "end_point": {"row": 29, "column": 34}}, {"id": 76, "type": "call_expression", "text": "CreateOffscreenContext()", "parent": 70, "children": [77, 78], "start_point": {"row": 29, "column": 35}, "end_point": {"row": 29, "column": 59}}, {"id": 77, "type": "identifier", "text": "CreateOffscreenContext", "parent": 76, "children": [], "start_point": {"row": 29, "column": 35}, "end_point": {"row": 29, "column": 57}}, {"id": 78, "type": "argument_list", "text": "()", "parent": 76, "children": [], "start_point": {"row": 29, "column": 57}, "end_point": {"row": 29, "column": 59}}, {"id": 79, "type": "ERROR", "text": "override", "parent": 68, "children": [80], "start_point": {"row": 29, "column": 60}, "end_point": {"row": 29, "column": 68}}, {"id": 80, "type": "identifier", "text": "override", "parent": 79, "children": [], "start_point": {"row": 29, "column": 60}, "end_point": {"row": 29, "column": 68}}, {"id": 81, "type": "function_definition", "text": "IDXGIFactory2* GetDXGIFactory() const { return dxgi_factory_; }", "parent": 24, "children": [82, 83], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 65}}, {"id": 82, "type": "type_identifier", "text": "IDXGIFactory2", "parent": 81, "children": [], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 15}}, {"id": 83, "type": "pointer_declarator", "text": "* GetDXGIFactory() const", "parent": 81, "children": [84, 85], "start_point": {"row": 31, "column": 15}, "end_point": {"row": 31, "column": 39}}, {"id": 84, "type": "*", "text": "*", "parent": 83, "children": [], "start_point": {"row": 31, "column": 15}, "end_point": {"row": 31, "column": 16}}, {"id": 85, "type": "function_declarator", "text": "GetDXGIFactory() const", "parent": 83, "children": [86, 87], "start_point": {"row": 31, "column": 17}, "end_point": {"row": 31, "column": 39}}, {"id": 86, "type": "identifier", "text": "GetDXGIFactory", "parent": 85, "children": [], "start_point": {"row": 31, "column": 17}, "end_point": {"row": 31, "column": 31}}, {"id": 87, "type": "parameter_list", "text": "()", "parent": 85, "children": [], "start_point": {"row": 31, "column": 31}, "end_point": {"row": 31, "column": 33}}, {"id": 88, "type": "return_statement", "text": "return dxgi_factory_;", "parent": 81, "children": [89], "start_point": {"row": 31, "column": 42}, "end_point": {"row": 31, "column": 63}}, {"id": 89, "type": "identifier", "text": "dxgi_factory_", "parent": 88, "children": [], "start_point": {"row": 31, "column": 49}, "end_point": {"row": 31, "column": 62}}, {"id": 90, "type": "function_definition", "text": "ID3D12Device* GetDevice() const { return device_; }", "parent": 24, "children": [91, 92], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 53}}, {"id": 91, "type": "type_identifier", "text": "ID3D12Device", "parent": 90, "children": [], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 14}}, {"id": 92, "type": "pointer_declarator", "text": "* GetDevice() const", "parent": 90, "children": [93, 94], "start_point": {"row": 32, "column": 14}, "end_point": {"row": 32, "column": 33}}, {"id": 93, "type": "*", "text": "*", "parent": 92, "children": [], "start_point": {"row": 32, "column": 14}, "end_point": {"row": 32, "column": 15}}, {"id": 94, "type": "function_declarator", "text": "GetDevice() const", "parent": 92, "children": [95, 96], "start_point": {"row": 32, "column": 16}, "end_point": {"row": 32, "column": 33}}, {"id": 95, "type": "identifier", "text": "GetDevice", "parent": 94, "children": [], "start_point": {"row": 32, "column": 16}, "end_point": {"row": 32, "column": 25}}, {"id": 96, "type": "parameter_list", "text": "()", "parent": 94, "children": [], "start_point": {"row": 32, "column": 25}, "end_point": {"row": 32, "column": 27}}, {"id": 97, "type": "return_statement", "text": "return device_;", "parent": 90, "children": [98], "start_point": {"row": 32, "column": 36}, "end_point": {"row": 32, "column": 51}}, {"id": 98, "type": "identifier", "text": "device_", "parent": 97, "children": [], "start_point": {"row": 32, "column": 43}, "end_point": {"row": 32, "column": 50}}, {"id": 99, "type": "function_definition", "text": "ID3D12CommandQueue* GetDirectQueue() const { return direct_queue_; }", "parent": 24, "children": [100, 101], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 70}}, {"id": 100, "type": "type_identifier", "text": "ID3D12CommandQueue", "parent": 99, "children": [], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 20}}, {"id": 101, "type": "pointer_declarator", "text": "* GetDirectQueue() const", "parent": 99, "children": [102, 103], "start_point": {"row": 33, "column": 20}, "end_point": {"row": 33, "column": 44}}, {"id": 102, "type": "*", "text": "*", "parent": 101, "children": [], "start_point": {"row": 33, "column": 20}, "end_point": {"row": 33, "column": 21}}, {"id": 103, "type": "function_declarator", "text": "GetDirectQueue() const", "parent": 101, "children": [104, 105], "start_point": {"row": 33, "column": 22}, "end_point": {"row": 33, "column": 44}}, {"id": 104, "type": "identifier", "text": "GetDirectQueue", "parent": 103, "children": [], "start_point": {"row": 33, "column": 22}, "end_point": {"row": 33, "column": 36}}, {"id": 105, "type": "parameter_list", "text": "()", "parent": 103, "children": [], "start_point": {"row": 33, "column": 36}, "end_point": {"row": 33, "column": 38}}, {"id": 106, "type": "return_statement", "text": "return direct_queue_;", "parent": 99, "children": [107], "start_point": {"row": 33, "column": 47}, "end_point": {"row": 33, "column": 68}}, {"id": 107, "type": "identifier", "text": "direct_queue_", "parent": 106, "children": [], "start_point": {"row": 33, "column": 54}, "end_point": {"row": 33, "column": 67}}, {"id": 108, "type": "ERROR", "text": "uint32_t GetViewDescriptorSize() const", "parent": 24, "children": [109, 110], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 40}}, {"id": 109, "type": "primitive_type", "text": "uint32_t", "parent": 108, "children": [], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 10}}, {"id": 110, "type": "function_declarator", "text": "GetViewDescriptorSize()", "parent": 108, "children": [111, 112], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 34}}, {"id": 111, "type": "identifier", "text": "GetViewDescriptorSize", "parent": 110, "children": [], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 32}}, {"id": 112, "type": "parameter_list", "text": "()", "parent": 110, "children": [], "start_point": {"row": 35, "column": 32}, "end_point": {"row": 35, "column": 34}}, {"id": 113, "type": "return_statement", "text": "return descriptor_size_view_;", "parent": 24, "children": [114], "start_point": {"row": 35, "column": 43}, "end_point": {"row": 35, "column": 72}}, {"id": 114, "type": "identifier", "text": "descriptor_size_view_", "parent": 113, "children": [], "start_point": {"row": 35, "column": 50}, "end_point": {"row": 35, "column": 71}}, {"id": 115, "type": "ERROR", "text": "uint32_t GetSamplerDescriptorSize() const", "parent": 24, "children": [116, 117], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 43}}, {"id": 116, "type": "primitive_type", "text": "uint32_t", "parent": 115, "children": [], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 10}}, {"id": 117, "type": "function_declarator", "text": "GetSamplerDescriptorSize()", "parent": 115, "children": [118, 119], "start_point": {"row": 36, "column": 11}, "end_point": {"row": 36, "column": 37}}, {"id": 118, "type": "identifier", "text": "GetSamplerDescriptorSize", "parent": 117, "children": [], "start_point": {"row": 36, "column": 11}, "end_point": {"row": 36, "column": 35}}, {"id": 119, "type": "parameter_list", "text": "()", "parent": 117, "children": [], "start_point": {"row": 36, "column": 35}, "end_point": {"row": 36, "column": 37}}, {"id": 120, "type": "return_statement", "text": "return descriptor_size_sampler_;", "parent": 24, "children": [121], "start_point": {"row": 36, "column": 46}, "end_point": {"row": 36, "column": 78}}, {"id": 121, "type": "identifier", "text": "descriptor_size_sampler_", "parent": 120, "children": [], "start_point": {"row": 36, "column": 53}, "end_point": {"row": 36, "column": 77}}, {"id": 122, "type": "ERROR", "text": "uint32_t GetRTVDescriptorSize() const", "parent": 24, "children": [123, 124], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 39}}, {"id": 123, "type": "primitive_type", "text": "uint32_t", "parent": 122, "children": [], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 10}}, {"id": 124, "type": "function_declarator", "text": "GetRTVDescriptorSize()", "parent": 122, "children": [125, 126], "start_point": {"row": 37, "column": 11}, "end_point": {"row": 37, "column": 33}}, {"id": 125, "type": "identifier", "text": "GetRTVDescriptorSize", "parent": 124, "children": [], "start_point": {"row": 37, "column": 11}, "end_point": {"row": 37, "column": 31}}, {"id": 126, "type": "parameter_list", "text": "()", "parent": 124, "children": [], "start_point": {"row": 37, "column": 31}, "end_point": {"row": 37, "column": 33}}, {"id": 127, "type": "return_statement", "text": "return descriptor_size_rtv_;", "parent": 24, "children": [128], "start_point": {"row": 37, "column": 42}, "end_point": {"row": 37, "column": 70}}, {"id": 128, "type": "identifier", "text": "descriptor_size_rtv_", "parent": 127, "children": [], "start_point": {"row": 37, "column": 49}, "end_point": {"row": 37, "column": 69}}, {"id": 129, "type": "ERROR", "text": "uint32_t GetDSVDescriptorSize() const", "parent": 24, "children": [130, 131], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 39}}, {"id": 130, "type": "primitive_type", "text": "uint32_t", "parent": 129, "children": [], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 10}}, {"id": 131, "type": "function_declarator", "text": "GetDSVDescriptorSize()", "parent": 129, "children": [132, 133], "start_point": {"row": 38, "column": 11}, "end_point": {"row": 38, "column": 33}}, {"id": 132, "type": "identifier", "text": "GetDSVDescriptorSize", "parent": 131, "children": [], "start_point": {"row": 38, "column": 11}, "end_point": {"row": 38, "column": 31}}, {"id": 133, "type": "parameter_list", "text": "()", "parent": 131, "children": [], "start_point": {"row": 38, "column": 31}, "end_point": {"row": 38, "column": 33}}, {"id": 134, "type": "return_statement", "text": "return descriptor_size_dsv_;", "parent": 24, "children": [135], "start_point": {"row": 38, "column": 42}, "end_point": {"row": 38, "column": 70}}, {"id": 135, "type": "identifier", "text": "descriptor_size_dsv_", "parent": 134, "children": [], "start_point": {"row": 38, "column": 49}, "end_point": {"row": 38, "column": 69}}, {"id": 136, "type": "binary_expression", "text": "template <typename T>\n inline", "parent": 24, "children": [137, 141, 143, 144], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 40, "column": 8}}, {"id": 137, "type": "binary_expression", "text": "template <typename", "parent": 136, "children": [138, 139, 140], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 20}}, {"id": 138, "type": "identifier", "text": "template", "parent": 137, "children": [], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 10}}, {"id": 139, "type": "<", "text": "<", "parent": 137, "children": [], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 12}}, {"id": 140, "type": "identifier", "text": "typename", "parent": 137, "children": [], "start_point": {"row": 39, "column": 12}, "end_point": {"row": 39, "column": 20}}, {"id": 141, "type": "ERROR", "text": "T", "parent": 136, "children": [142], "start_point": {"row": 39, "column": 21}, "end_point": {"row": 39, "column": 22}}, {"id": 142, "type": "identifier", "text": "T", "parent": 141, "children": [], "start_point": {"row": 39, "column": 21}, "end_point": {"row": 39, "column": 22}}, {"id": 143, "type": ">", "text": ">", "parent": 136, "children": [], "start_point": {"row": 39, "column": 22}, "end_point": {"row": 39, "column": 23}}, {"id": 144, "type": "identifier", "text": "inline", "parent": 136, "children": [], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 8}}, {"id": 145, "type": "function_definition", "text": "T OffsetViewDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_view_;\n return start;\n }", "parent": 24, "children": [146, 147], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 43, "column": 3}}, {"id": 146, "type": "type_identifier", "text": "T", "parent": 145, "children": [], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 10}}, {"id": 147, "type": "function_declarator", "text": "OffsetViewDescriptor(T start, uint32_t index) const", "parent": 145, "children": [148, 149], "start_point": {"row": 40, "column": 11}, "end_point": {"row": 40, "column": 62}}, {"id": 148, "type": "identifier", "text": "OffsetViewDescriptor", "parent": 147, "children": [], "start_point": {"row": 40, "column": 11}, "end_point": {"row": 40, "column": 31}}, {"id": 149, "type": "parameter_list", "text": "(T start, uint32_t index)", "parent": 147, "children": [150, 153], "start_point": {"row": 40, "column": 31}, "end_point": {"row": 40, "column": 56}}, {"id": 150, "type": "parameter_declaration", "text": "T start", "parent": 149, "children": [151, 152], "start_point": {"row": 40, "column": 32}, "end_point": {"row": 40, "column": 39}}, {"id": 151, "type": "type_identifier", "text": "T", "parent": 150, "children": [], "start_point": {"row": 40, "column": 32}, "end_point": {"row": 40, "column": 33}}, {"id": 152, "type": "identifier", "text": "start", "parent": 150, "children": [], "start_point": {"row": 40, "column": 34}, "end_point": {"row": 40, "column": 39}}, {"id": 153, "type": "parameter_declaration", "text": "uint32_t index", "parent": 149, "children": [154, 155], "start_point": {"row": 40, "column": 41}, "end_point": {"row": 40, "column": 55}}, {"id": 154, "type": "primitive_type", "text": "uint32_t", "parent": 153, "children": [], "start_point": {"row": 40, "column": 41}, "end_point": {"row": 40, "column": 49}}, {"id": 155, "type": "identifier", "text": "index", "parent": 153, "children": [], "start_point": {"row": 40, "column": 50}, "end_point": {"row": 40, "column": 55}}, {"id": 156, "type": "assignment_expression", "text": "start.ptr += index * descriptor_size_view_", "parent": 145, "children": [157, 160, 161], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 46}}, {"id": 157, "type": "field_expression", "text": "start.ptr", "parent": 156, "children": [158, 159], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 13}}, {"id": 158, "type": "identifier", "text": "start", "parent": 157, "children": [], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 9}}, {"id": 159, "type": "field_identifier", "text": "ptr", "parent": 157, "children": [], "start_point": {"row": 41, "column": 10}, "end_point": {"row": 41, "column": 13}}, {"id": 160, "type": "+=", "text": "+=", "parent": 156, "children": [], "start_point": {"row": 41, "column": 14}, "end_point": {"row": 41, "column": 16}}, {"id": 161, "type": "binary_expression", "text": "index * descriptor_size_view_", "parent": 156, "children": [162, 163, 164], "start_point": {"row": 41, "column": 17}, "end_point": {"row": 41, "column": 46}}, {"id": 162, "type": "identifier", "text": "index", "parent": 161, "children": [], "start_point": {"row": 41, "column": 17}, "end_point": {"row": 41, "column": 22}}, {"id": 163, "type": "*", "text": "*", "parent": 161, "children": [], "start_point": {"row": 41, "column": 23}, "end_point": {"row": 41, "column": 24}}, {"id": 164, "type": "identifier", "text": "descriptor_size_view_", "parent": 161, "children": [], "start_point": {"row": 41, "column": 25}, "end_point": {"row": 41, "column": 46}}, {"id": 165, "type": "return_statement", "text": "return start;", "parent": 145, "children": [166], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 17}}, {"id": 166, "type": "identifier", "text": "start", "parent": 165, "children": [], "start_point": {"row": 42, "column": 11}, "end_point": {"row": 42, "column": 16}}, {"id": 167, "type": "binary_expression", "text": "template <typename T>\n inline", "parent": 24, "children": [168, 172, 174, 175], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 45, "column": 8}}, {"id": 168, "type": "binary_expression", "text": "template <typename", "parent": 167, "children": [169, 170, 171], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 20}}, {"id": 169, "type": "identifier", "text": "template", "parent": 168, "children": [], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 10}}, {"id": 170, "type": "<", "text": "<", "parent": 168, "children": [], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 44, "column": 12}}, {"id": 171, "type": "identifier", "text": "typename", "parent": 168, "children": [], "start_point": {"row": 44, "column": 12}, "end_point": {"row": 44, "column": 20}}, {"id": 172, "type": "ERROR", "text": "T", "parent": 167, "children": [173], "start_point": {"row": 44, "column": 21}, "end_point": {"row": 44, "column": 22}}, {"id": 173, "type": "identifier", "text": "T", "parent": 172, "children": [], "start_point": {"row": 44, "column": 21}, "end_point": {"row": 44, "column": 22}}, {"id": 174, "type": ">", "text": ">", "parent": 167, "children": [], "start_point": {"row": 44, "column": 22}, "end_point": {"row": 44, "column": 23}}, {"id": 175, "type": "identifier", "text": "inline", "parent": 167, "children": [], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 8}}, {"id": 176, "type": "function_definition", "text": "T OffsetSamplerDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_sampler_;\n return start;\n }", "parent": 24, "children": [177, 178], "start_point": {"row": 45, "column": 9}, "end_point": {"row": 48, "column": 3}}, {"id": 177, "type": "type_identifier", "text": "T", "parent": 176, "children": [], "start_point": {"row": 45, "column": 9}, "end_point": {"row": 45, "column": 10}}, {"id": 178, "type": "function_declarator", "text": "OffsetSamplerDescriptor(T start, uint32_t index) const", "parent": 176, "children": [179, 180], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 65}}, {"id": 179, "type": "identifier", "text": "OffsetSamplerDescriptor", "parent": 178, "children": [], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 34}}, {"id": 180, "type": "parameter_list", "text": "(T start, uint32_t index)", "parent": 178, "children": [181, 184], "start_point": {"row": 45, "column": 34}, "end_point": {"row": 45, "column": 59}}, {"id": 181, "type": "parameter_declaration", "text": "T start", "parent": 180, "children": [182, 183], "start_point": {"row": 45, "column": 35}, "end_point": {"row": 45, "column": 42}}, {"id": 182, "type": "type_identifier", "text": "T", "parent": 181, "children": [], "start_point": {"row": 45, "column": 35}, "end_point": {"row": 45, "column": 36}}, {"id": 183, "type": "identifier", "text": "start", "parent": 181, "children": [], "start_point": {"row": 45, "column": 37}, "end_point": {"row": 45, "column": 42}}, {"id": 184, "type": "parameter_declaration", "text": "uint32_t index", "parent": 180, "children": [185, 186], "start_point": {"row": 45, "column": 44}, "end_point": {"row": 45, "column": 58}}, {"id": 185, "type": "primitive_type", "text": "uint32_t", "parent": 184, "children": [], "start_point": {"row": 45, "column": 44}, "end_point": {"row": 45, "column": 52}}, {"id": 186, "type": "identifier", "text": "index", "parent": 184, "children": [], "start_point": {"row": 45, "column": 53}, "end_point": {"row": 45, "column": 58}}, {"id": 187, "type": "assignment_expression", "text": "start.ptr += index * descriptor_size_sampler_", "parent": 176, "children": [188, 191, 192], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 49}}, {"id": 188, "type": "field_expression", "text": "start.ptr", "parent": 187, "children": [189, 190], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 13}}, {"id": 189, "type": "identifier", "text": "start", "parent": 188, "children": [], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 9}}, {"id": 190, "type": "field_identifier", "text": "ptr", "parent": 188, "children": [], "start_point": {"row": 46, "column": 10}, "end_point": {"row": 46, "column": 13}}, {"id": 191, "type": "+=", "text": "+=", "parent": 187, "children": [], "start_point": {"row": 46, "column": 14}, "end_point": {"row": 46, "column": 16}}, {"id": 192, "type": "binary_expression", "text": "index * descriptor_size_sampler_", "parent": 187, "children": [193, 194, 195], "start_point": {"row": 46, "column": 17}, "end_point": {"row": 46, "column": 49}}, {"id": 193, "type": "identifier", "text": "index", "parent": 192, "children": [], "start_point": {"row": 46, "column": 17}, "end_point": {"row": 46, "column": 22}}, {"id": 194, "type": "*", "text": "*", "parent": 192, "children": [], "start_point": {"row": 46, "column": 23}, "end_point": {"row": 46, "column": 24}}, {"id": 195, "type": "identifier", "text": "descriptor_size_sampler_", "parent": 192, "children": [], "start_point": {"row": 46, "column": 25}, "end_point": {"row": 46, "column": 49}}, {"id": 196, "type": "return_statement", "text": "return start;", "parent": 176, "children": [197], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 17}}, {"id": 197, "type": "identifier", "text": "start", "parent": 196, "children": [], "start_point": {"row": 47, "column": 11}, "end_point": {"row": 47, "column": 16}}, {"id": 198, "type": "binary_expression", "text": "template <typename T>\n inline", "parent": 24, "children": [199, 203, 205, 206], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 50, "column": 8}}, {"id": 199, "type": "binary_expression", "text": "template <typename", "parent": 198, "children": [200, 201, 202], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 20}}, {"id": 200, "type": "identifier", "text": "template", "parent": 199, "children": [], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 10}}, {"id": 201, "type": "<", "text": "<", "parent": 199, "children": [], "start_point": {"row": 49, "column": 11}, "end_point": {"row": 49, "column": 12}}, {"id": 202, "type": "identifier", "text": "typename", "parent": 199, "children": [], "start_point": {"row": 49, "column": 12}, "end_point": {"row": 49, "column": 20}}, {"id": 203, "type": "ERROR", "text": "T", "parent": 198, "children": [204], "start_point": {"row": 49, "column": 21}, "end_point": {"row": 49, "column": 22}}, {"id": 204, "type": "identifier", "text": "T", "parent": 203, "children": [], "start_point": {"row": 49, "column": 21}, "end_point": {"row": 49, "column": 22}}, {"id": 205, "type": ">", "text": ">", "parent": 198, "children": [], "start_point": {"row": 49, "column": 22}, "end_point": {"row": 49, "column": 23}}, {"id": 206, "type": "identifier", "text": "inline", "parent": 198, "children": [], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 8}}, {"id": 207, "type": "function_definition", "text": "T OffsetRTVDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_rtv_;\n return start;\n }", "parent": 24, "children": [208, 209], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 53, "column": 3}}, {"id": 208, "type": "type_identifier", "text": "T", "parent": 207, "children": [], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 10}}, {"id": 209, "type": "function_declarator", "text": "OffsetRTVDescriptor(T start, uint32_t index) const", "parent": 207, "children": [210, 211], "start_point": {"row": 50, "column": 11}, "end_point": {"row": 50, "column": 61}}, {"id": 210, "type": "identifier", "text": "OffsetRTVDescriptor", "parent": 209, "children": [], "start_point": {"row": 50, "column": 11}, "end_point": {"row": 50, "column": 30}}, {"id": 211, "type": "parameter_list", "text": "(T start, uint32_t index)", "parent": 209, "children": [212, 215], "start_point": {"row": 50, "column": 30}, "end_point": {"row": 50, "column": 55}}, {"id": 212, "type": "parameter_declaration", "text": "T start", "parent": 211, "children": [213, 214], "start_point": {"row": 50, "column": 31}, "end_point": {"row": 50, "column": 38}}, {"id": 213, "type": "type_identifier", "text": "T", "parent": 212, "children": [], "start_point": {"row": 50, "column": 31}, "end_point": {"row": 50, "column": 32}}, {"id": 214, "type": "identifier", "text": "start", "parent": 212, "children": [], "start_point": {"row": 50, "column": 33}, "end_point": {"row": 50, "column": 38}}, {"id": 215, "type": "parameter_declaration", "text": "uint32_t index", "parent": 211, "children": [216, 217], "start_point": {"row": 50, "column": 40}, "end_point": {"row": 50, "column": 54}}, {"id": 216, "type": "primitive_type", "text": "uint32_t", "parent": 215, "children": [], "start_point": {"row": 50, "column": 40}, "end_point": {"row": 50, "column": 48}}, {"id": 217, "type": "identifier", "text": "index", "parent": 215, "children": [], "start_point": {"row": 50, "column": 49}, "end_point": {"row": 50, "column": 54}}, {"id": 218, "type": "assignment_expression", "text": "start.ptr += index * descriptor_size_rtv_", "parent": 207, "children": [219, 222, 223], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 45}}, {"id": 219, "type": "field_expression", "text": "start.ptr", "parent": 218, "children": [220, 221], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 13}}, {"id": 220, "type": "identifier", "text": "start", "parent": 219, "children": [], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 9}}, {"id": 221, "type": "field_identifier", "text": "ptr", "parent": 219, "children": [], "start_point": {"row": 51, "column": 10}, "end_point": {"row": 51, "column": 13}}, {"id": 222, "type": "+=", "text": "+=", "parent": 218, "children": [], "start_point": {"row": 51, "column": 14}, "end_point": {"row": 51, "column": 16}}, {"id": 223, "type": "binary_expression", "text": "index * descriptor_size_rtv_", "parent": 218, "children": [224, 225, 226], "start_point": {"row": 51, "column": 17}, "end_point": {"row": 51, "column": 45}}, {"id": 224, "type": "identifier", "text": "index", "parent": 223, "children": [], "start_point": {"row": 51, "column": 17}, "end_point": {"row": 51, "column": 22}}, {"id": 225, "type": "*", "text": "*", "parent": 223, "children": [], "start_point": {"row": 51, "column": 23}, "end_point": {"row": 51, "column": 24}}, {"id": 226, "type": "identifier", "text": "descriptor_size_rtv_", "parent": 223, "children": [], "start_point": {"row": 51, "column": 25}, "end_point": {"row": 51, "column": 45}}, {"id": 227, "type": "return_statement", "text": "return start;", "parent": 207, "children": [228], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 17}}, {"id": 228, "type": "identifier", "text": "start", "parent": 227, "children": [], "start_point": {"row": 52, "column": 11}, "end_point": {"row": 52, "column": 16}}, {"id": 229, "type": "binary_expression", "text": "template <typename T>\n inline", "parent": 24, "children": [230, 234, 236, 237], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 55, "column": 8}}, {"id": 230, "type": "binary_expression", "text": "template <typename", "parent": 229, "children": [231, 232, 233], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 20}}, {"id": 231, "type": "identifier", "text": "template", "parent": 230, "children": [], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 10}}, {"id": 232, "type": "<", "text": "<", "parent": 230, "children": [], "start_point": {"row": 54, "column": 11}, "end_point": {"row": 54, "column": 12}}, {"id": 233, "type": "identifier", "text": "typename", "parent": 230, "children": [], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 20}}, {"id": 234, "type": "ERROR", "text": "T", "parent": 229, "children": [235], "start_point": {"row": 54, "column": 21}, "end_point": {"row": 54, "column": 22}}, {"id": 235, "type": "identifier", "text": "T", "parent": 234, "children": [], "start_point": {"row": 54, "column": 21}, "end_point": {"row": 54, "column": 22}}, {"id": 236, "type": ">", "text": ">", "parent": 229, "children": [], "start_point": {"row": 54, "column": 22}, "end_point": {"row": 54, "column": 23}}, {"id": 237, "type": "identifier", "text": "inline", "parent": 229, "children": [], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 8}}, {"id": 238, "type": "function_definition", "text": "T OffsetDSVDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_dsv_;\n return start;\n }", "parent": 24, "children": [239, 240], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 58, "column": 3}}, {"id": 239, "type": "type_identifier", "text": "T", "parent": 238, "children": [], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 10}}, {"id": 240, "type": "function_declarator", "text": "OffsetDSVDescriptor(T start, uint32_t index) const", "parent": 238, "children": [241, 242], "start_point": {"row": 55, "column": 11}, "end_point": {"row": 55, "column": 61}}, {"id": 241, "type": "identifier", "text": "OffsetDSVDescriptor", "parent": 240, "children": [], "start_point": {"row": 55, "column": 11}, "end_point": {"row": 55, "column": 30}}, {"id": 242, "type": "parameter_list", "text": "(T start, uint32_t index)", "parent": 240, "children": [243, 246], "start_point": {"row": 55, "column": 30}, "end_point": {"row": 55, "column": 55}}, {"id": 243, "type": "parameter_declaration", "text": "T start", "parent": 242, "children": [244, 245], "start_point": {"row": 55, "column": 31}, "end_point": {"row": 55, "column": 38}}, {"id": 244, "type": "type_identifier", "text": "T", "parent": 243, "children": [], "start_point": {"row": 55, "column": 31}, "end_point": {"row": 55, "column": 32}}, {"id": 245, "type": "identifier", "text": "start", "parent": 243, "children": [], "start_point": {"row": 55, "column": 33}, "end_point": {"row": 55, "column": 38}}, {"id": 246, "type": "parameter_declaration", "text": "uint32_t index", "parent": 242, "children": [247, 248], "start_point": {"row": 55, "column": 40}, "end_point": {"row": 55, "column": 54}}, {"id": 247, "type": "primitive_type", "text": "uint32_t", "parent": 246, "children": [], "start_point": {"row": 55, "column": 40}, "end_point": {"row": 55, "column": 48}}, {"id": 248, "type": "identifier", "text": "index", "parent": 246, "children": [], "start_point": {"row": 55, "column": 49}, "end_point": {"row": 55, "column": 54}}, {"id": 249, "type": "assignment_expression", "text": "start.ptr += index * descriptor_size_dsv_", "parent": 238, "children": [250, 253, 254], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 45}}, {"id": 250, "type": "field_expression", "text": "start.ptr", "parent": 249, "children": [251, 252], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 13}}, {"id": 251, "type": "identifier", "text": "start", "parent": 250, "children": [], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 9}}, {"id": 252, "type": "field_identifier", "text": "ptr", "parent": 250, "children": [], "start_point": {"row": 56, "column": 10}, "end_point": {"row": 56, "column": 13}}, {"id": 253, "type": "+=", "text": "+=", "parent": 249, "children": [], "start_point": {"row": 56, "column": 14}, "end_point": {"row": 56, "column": 16}}, {"id": 254, "type": "binary_expression", "text": "index * descriptor_size_dsv_", "parent": 249, "children": [255, 256, 257], "start_point": {"row": 56, "column": 17}, "end_point": {"row": 56, "column": 45}}, {"id": 255, "type": "identifier", "text": "index", "parent": 254, "children": [], "start_point": {"row": 56, "column": 17}, "end_point": {"row": 56, "column": 22}}, {"id": 256, "type": "*", "text": "*", "parent": 254, "children": [], "start_point": {"row": 56, "column": 23}, "end_point": {"row": 56, "column": 24}}, {"id": 257, "type": "identifier", "text": "descriptor_size_dsv_", "parent": 254, "children": [], "start_point": {"row": 56, "column": 25}, "end_point": {"row": 56, "column": 45}}, {"id": 258, "type": "return_statement", "text": "return start;", "parent": 238, "children": [259], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 17}}, {"id": 259, "type": "identifier", "text": "start", "parent": 258, "children": [], "start_point": {"row": 57, "column": 11}, "end_point": {"row": 57, "column": 16}}, {"id": 260, "type": "ERROR", "text": "uint32_t GetProgrammableSamplePositionsTier() const", "parent": 24, "children": [261, 262], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 53}}, {"id": 261, "type": "primitive_type", "text": "uint32_t", "parent": 260, "children": [], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 10}}, {"id": 262, "type": "function_declarator", "text": "GetProgrammableSamplePositionsTier()", "parent": 260, "children": [263, 264], "start_point": {"row": 60, "column": 11}, "end_point": {"row": 60, "column": 47}}, {"id": 263, "type": "identifier", "text": "GetProgrammableSamplePositionsTier", "parent": 262, "children": [], "start_point": {"row": 60, "column": 11}, "end_point": {"row": 60, "column": 45}}, {"id": 264, "type": "parameter_list", "text": "()", "parent": 262, "children": [], "start_point": {"row": 60, "column": 45}, "end_point": {"row": 60, "column": 47}}, {"id": 265, "type": "return_statement", "text": "return programmable_sample_positions_tier_;", "parent": 24, "children": [266], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 47}}, {"id": 266, "type": "identifier", "text": "programmable_sample_positions_tier_", "parent": 265, "children": [], "start_point": {"row": 61, "column": 11}, "end_point": {"row": 61, "column": 46}}, {"id": 267, "type": "labeled_statement", "text": "private:\n explicit D3D12Provider(Window* main_window);", "parent": 24, "children": [268], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 65, "column": 46}}, {"id": 268, "type": "declaration", "text": "explicit D3D12Provider(Window* main_window);", "parent": 267, "children": [269, 270], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 65, "column": 46}}, {"id": 269, "type": "type_identifier", "text": "explicit", "parent": 268, "children": [], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 65, "column": 10}}, {"id": 270, "type": "function_declarator", "text": "D3D12Provider(Window* main_window)", "parent": 268, "children": [271, 272], "start_point": {"row": 65, "column": 11}, "end_point": {"row": 65, "column": 45}}, {"id": 271, "type": "identifier", "text": "D3D12Provider", "parent": 270, "children": [], "start_point": {"row": 65, "column": 11}, "end_point": {"row": 65, "column": 24}}, {"id": 272, "type": "parameter_list", "text": "(Window* main_window)", "parent": 270, "children": [273], "start_point": {"row": 65, "column": 24}, "end_point": {"row": 65, "column": 45}}, {"id": 273, "type": "parameter_declaration", "text": "Window* main_window", "parent": 272, "children": [274, 275], "start_point": {"row": 65, "column": 25}, "end_point": {"row": 65, "column": 44}}, {"id": 274, "type": "type_identifier", "text": "Window", "parent": 273, "children": [], "start_point": {"row": 65, "column": 25}, "end_point": {"row": 65, "column": 31}}, {"id": 275, "type": "pointer_declarator", "text": "* main_window", "parent": 273, "children": [276, 277], "start_point": {"row": 65, "column": 31}, "end_point": {"row": 65, "column": 44}}, {"id": 276, "type": "*", "text": "*", "parent": 275, "children": [], "start_point": {"row": 65, "column": 31}, "end_point": {"row": 65, "column": 32}}, {"id": 277, "type": "identifier", "text": "main_window", "parent": 275, "children": [], "start_point": {"row": 65, "column": 33}, "end_point": {"row": 65, "column": 44}}, {"id": 278, "type": "declaration", "text": "bool Initialize();", "parent": 24, "children": [279, 280], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 20}}, {"id": 279, "type": "primitive_type", "text": "bool", "parent": 278, "children": [], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 6}}, {"id": 280, "type": "function_declarator", "text": "Initialize()", "parent": 278, "children": [281, 282], "start_point": {"row": 67, "column": 7}, "end_point": {"row": 67, "column": 19}}, {"id": 281, "type": "identifier", "text": "Initialize", "parent": 280, "children": [], "start_point": {"row": 67, "column": 7}, "end_point": {"row": 67, "column": 17}}, {"id": 282, "type": "parameter_list", "text": "()", "parent": 280, "children": [], "start_point": {"row": 67, "column": 17}, "end_point": {"row": 67, "column": 19}}, {"id": 283, "type": "declaration", "text": "static bool IsDeviceSupported(ID3D12Device* device);", "parent": 24, "children": [284, 285], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 54}}, {"id": 284, "type": "primitive_type", "text": "bool", "parent": 283, "children": [], "start_point": {"row": 68, "column": 9}, "end_point": {"row": 68, "column": 13}}, {"id": 285, "type": "function_declarator", "text": "IsDeviceSupported(ID3D12Device* device)", "parent": 283, "children": [286, 287], "start_point": {"row": 68, "column": 14}, "end_point": {"row": 68, "column": 53}}, {"id": 286, "type": "identifier", "text": "IsDeviceSupported", "parent": 285, "children": [], "start_point": {"row": 68, "column": 14}, "end_point": {"row": 68, "column": 31}}, {"id": 287, "type": "parameter_list", "text": "(ID3D12Device* device)", "parent": 285, "children": [288], "start_point": {"row": 68, "column": 31}, "end_point": {"row": 68, "column": 53}}, {"id": 288, "type": "parameter_declaration", "text": "ID3D12Device* device", "parent": 287, "children": [289, 290], "start_point": {"row": 68, "column": 32}, "end_point": {"row": 68, "column": 52}}, {"id": 289, "type": "type_identifier", "text": "ID3D12Device", "parent": 288, "children": [], "start_point": {"row": 68, "column": 32}, "end_point": {"row": 68, "column": 44}}, {"id": 290, "type": "pointer_declarator", "text": "* device", "parent": 288, "children": [291, 292], "start_point": {"row": 68, "column": 44}, "end_point": {"row": 68, "column": 52}}, {"id": 291, "type": "*", "text": "*", "parent": 290, "children": [], "start_point": {"row": 68, "column": 44}, "end_point": {"row": 68, "column": 45}}, {"id": 292, "type": "identifier", "text": "device", "parent": 290, "children": [], "start_point": {"row": 68, "column": 46}, "end_point": {"row": 68, "column": 52}}, {"id": 293, "type": "declaration", "text": "IDXGIFactory2* dxgi_factory_ = nullptr;", "parent": 24, "children": [294, 295], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 41}}, {"id": 294, "type": "type_identifier", "text": "IDXGIFactory2", "parent": 293, "children": [], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 15}}, {"id": 295, "type": "init_declarator", "text": "* dxgi_factory_ = nullptr", "parent": 293, "children": [296, 299, 300], "start_point": {"row": 70, "column": 15}, "end_point": {"row": 70, "column": 40}}, {"id": 296, "type": "pointer_declarator", "text": "* dxgi_factory_", "parent": 295, "children": [297, 298], "start_point": {"row": 70, "column": 15}, "end_point": {"row": 70, "column": 30}}, {"id": 297, "type": "*", "text": "*", "parent": 296, "children": [], "start_point": {"row": 70, "column": 15}, "end_point": {"row": 70, "column": 16}}, {"id": 298, "type": "identifier", "text": "dxgi_factory_", "parent": 296, "children": [], "start_point": {"row": 70, "column": 17}, "end_point": {"row": 70, "column": 30}}, {"id": 299, "type": "=", "text": "=", "parent": 295, "children": [], "start_point": {"row": 70, "column": 31}, "end_point": {"row": 70, "column": 32}}, {"id": 300, "type": "null", "text": "nullptr", "parent": 295, "children": [301], "start_point": {"row": 70, "column": 33}, "end_point": {"row": 70, "column": 40}}, {"id": 301, "type": "nullptr", "text": "nullptr", "parent": 300, "children": [], "start_point": {"row": 70, "column": 33}, "end_point": {"row": 70, "column": 40}}, {"id": 302, "type": "declaration", "text": "ID3D12Device* device_ = nullptr;", "parent": 24, "children": [303, 304], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 34}}, {"id": 303, "type": "type_identifier", "text": "ID3D12Device", "parent": 302, "children": [], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 14}}, {"id": 304, "type": "init_declarator", "text": "* device_ = nullptr", "parent": 302, "children": [305, 308, 309], "start_point": {"row": 71, "column": 14}, "end_point": {"row": 71, "column": 33}}, {"id": 305, "type": "pointer_declarator", "text": "* device_", "parent": 304, "children": [306, 307], "start_point": {"row": 71, "column": 14}, "end_point": {"row": 71, "column": 23}}, {"id": 306, "type": "*", "text": "*", "parent": 305, "children": [], "start_point": {"row": 71, "column": 14}, "end_point": {"row": 71, "column": 15}}, {"id": 307, "type": "identifier", "text": "device_", "parent": 305, "children": [], "start_point": {"row": 71, "column": 16}, "end_point": {"row": 71, "column": 23}}, {"id": 308, "type": "=", "text": "=", "parent": 304, "children": [], "start_point": {"row": 71, "column": 24}, "end_point": {"row": 71, "column": 25}}, {"id": 309, "type": "null", "text": "nullptr", "parent": 304, "children": [310], "start_point": {"row": 71, "column": 26}, "end_point": {"row": 71, "column": 33}}, {"id": 310, "type": "nullptr", "text": "nullptr", "parent": 309, "children": [], "start_point": {"row": 71, "column": 26}, "end_point": {"row": 71, "column": 33}}, {"id": 311, "type": "declaration", "text": "ID3D12CommandQueue* direct_queue_ = nullptr;", "parent": 24, "children": [312, 313], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 46}}, {"id": 312, "type": "type_identifier", "text": "ID3D12CommandQueue", "parent": 311, "children": [], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 20}}, {"id": 313, "type": "init_declarator", "text": "* direct_queue_ = nullptr", "parent": 311, "children": [314, 317, 318], "start_point": {"row": 72, "column": 20}, "end_point": {"row": 72, "column": 45}}, {"id": 314, "type": "pointer_declarator", "text": "* direct_queue_", "parent": 313, "children": [315, 316], "start_point": {"row": 72, "column": 20}, "end_point": {"row": 72, "column": 35}}, {"id": 315, "type": "*", "text": "*", "parent": 314, "children": [], "start_point": {"row": 72, "column": 20}, "end_point": {"row": 72, "column": 21}}, {"id": 316, "type": "identifier", "text": "direct_queue_", "parent": 314, "children": [], "start_point": {"row": 72, "column": 22}, "end_point": {"row": 72, "column": 35}}, {"id": 317, "type": "=", "text": "=", "parent": 313, "children": [], "start_point": {"row": 72, "column": 36}, "end_point": {"row": 72, "column": 37}}, {"id": 318, "type": "null", "text": "nullptr", "parent": 313, "children": [319], "start_point": {"row": 72, "column": 38}, "end_point": {"row": 72, "column": 45}}, {"id": 319, "type": "nullptr", "text": "nullptr", "parent": 318, "children": [], "start_point": {"row": 72, "column": 38}, "end_point": {"row": 72, "column": 45}}, {"id": 320, "type": "declaration", "text": "uint32_t descriptor_size_view_;", "parent": 24, "children": [321, 322], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 33}}, {"id": 321, "type": "primitive_type", "text": "uint32_t", "parent": 320, "children": [], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 10}}, {"id": 322, "type": "identifier", "text": "descriptor_size_view_", "parent": 320, "children": [], "start_point": {"row": 74, "column": 11}, "end_point": {"row": 74, "column": 32}}, {"id": 323, "type": "declaration", "text": "uint32_t descriptor_size_sampler_;", "parent": 24, "children": [324, 325], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 36}}, {"id": 324, "type": "primitive_type", "text": "uint32_t", "parent": 323, "children": [], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 10}}, {"id": 325, "type": "identifier", "text": "descriptor_size_sampler_", "parent": 323, "children": [], "start_point": {"row": 75, "column": 11}, "end_point": {"row": 75, "column": 35}}, {"id": 326, "type": "declaration", "text": "uint32_t descriptor_size_rtv_;", "parent": 24, "children": [327, 328], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 32}}, {"id": 327, "type": "primitive_type", "text": "uint32_t", "parent": 326, "children": [], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 10}}, {"id": 328, "type": "identifier", "text": "descriptor_size_rtv_", "parent": 326, "children": [], "start_point": {"row": 76, "column": 11}, "end_point": {"row": 76, "column": 31}}, {"id": 329, "type": "declaration", "text": "uint32_t descriptor_size_dsv_;", "parent": 24, "children": [330, 331], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 32}}, {"id": 330, "type": "primitive_type", "text": "uint32_t", "parent": 329, "children": [], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 10}}, {"id": 331, "type": "identifier", "text": "descriptor_size_dsv_", "parent": 329, "children": [], "start_point": {"row": 77, "column": 11}, "end_point": {"row": 77, "column": 31}}, {"id": 332, "type": "declaration", "text": "uint32_t programmable_sample_positions_tier_;", "parent": 24, "children": [333, 334], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 47}}, {"id": 333, "type": "primitive_type", "text": "uint32_t", "parent": 332, "children": [], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 10}}, {"id": 334, "type": "identifier", "text": "programmable_sample_positions_tier_", "parent": 332, "children": [], "start_point": {"row": 79, "column": 11}, "end_point": {"row": 79, "column": 46}}, {"id": 335, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 86, "column": 0}, "end_point": {"row": 86, "column": 6}}]}, "node_categories": {"declarations": {"functions": [15, 18, 21, 24, 43, 81, 85, 90, 94, 99, 103, 110, 117, 124, 131, 145, 147, 176, 178, 207, 209, 238, 240, 262, 270, 280, 285], "variables": [36, 46, 150, 153, 181, 184, 212, 215, 243, 246, 268, 273, 278, 283, 288, 293, 302, 311, 320, 323, 326, 329, 332], "classes": [], "imports": [6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [29, 31, 53, 54, 59, 62, 70, 71, 76, 136, 137, 157, 161, 167, 168, 188, 192, 198, 199, 219, 223, 229, 230, 250, 254], "assignments": [156, 187, 218, 249], "loops": [], "conditionals": [0, 1, 2, 5, 16, 17, 19, 20, 22, 23, 26, 27, 32, 35, 37, 39, 41, 44, 47, 50, 52, 55, 57, 60, 63, 65, 67, 69, 72, 74, 77, 80, 82, 86, 89, 91, 95, 98, 100, 104, 107, 111, 114, 118, 121, 125, 128, 132, 135, 138, 140, 142, 144, 146, 148, 151, 152, 155, 158, 159, 162, 164, 166, 169, 171, 173, 175, 177, 179, 182, 183, 186, 189, 190, 193, 195, 197, 200, 202, 204, 206, 208, 210, 213, 214, 217, 220, 221, 224, 226, 228, 231, 233, 235, 237, 239, 241, 244, 245, 248, 251, 252, 255, 257, 259, 263, 266, 269, 271, 274, 277, 281, 286, 289, 292, 294, 298, 303, 307, 312, 316, 322, 325, 328, 331, 334, 335], "returns": [88, 97, 106, 113, 120, 127, 134, 165, 196, 227, 258, 265], "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": "D3D12Provider", "text_snippet": "namespace xe {\nnamespace ui {\nnamespace d3d12 {\n\nclass D3D12Provider : public GraphicsProvider {\n pu"}, {"node_id": 18, "universal_type": "function", "name": "D3D12Provider", "text_snippet": "namespace ui {\nnamespace d3d12 {\n\nclass D3D12Provider : public GraphicsProvider {\n public:\n ~D3D12P"}, {"node_id": 21, "universal_type": "function", "name": "D3D12Provider", "text_snippet": "namespace d3d12 {\n\nclass D3D12Provider : public GraphicsProvider {\n public:\n ~D3D12Provider() overr"}, {"node_id": 24, "universal_type": "function", "name": "D3D12Provider", "text_snippet": "class D3D12Provider : public GraphicsProvider {\n public:\n ~D3D12Provider() override;\n\n static std:"}, {"node_id": 43, "universal_type": "function", "name": "unknown", "text_snippet": "Create(Window* main_window)"}, {"node_id": 81, "universal_type": "function", "name": "unknown", "text_snippet": "IDXGIFactory2* GetDXGIFactory() const { return dxgi_factory_; }"}, {"node_id": 85, "universal_type": "function", "name": "unknown", "text_snippet": "GetDXGIFactory() const"}, {"node_id": 90, "universal_type": "function", "name": "unknown", "text_snippet": "ID3D12Device* GetDevice() const { return device_; }"}, {"node_id": 94, "universal_type": "function", "name": "unknown", "text_snippet": "GetDevice() const"}, {"node_id": 99, "universal_type": "function", "name": "unknown", "text_snippet": "ID3D12CommandQueue* GetDirectQueue() const { return direct_queue_; }"}, {"node_id": 103, "universal_type": "function", "name": "unknown", "text_snippet": "GetDirectQueue() const"}, {"node_id": 110, "universal_type": "function", "name": "unknown", "text_snippet": "GetViewDescriptorSize()"}, {"node_id": 117, "universal_type": "function", "name": "unknown", "text_snippet": "GetSamplerDescriptorSize()"}, {"node_id": 124, "universal_type": "function", "name": "unknown", "text_snippet": "GetRTVDescriptorSize()"}, {"node_id": 131, "universal_type": "function", "name": "unknown", "text_snippet": "GetDSVDescriptorSize()"}, {"node_id": 145, "universal_type": "function", "name": "unknown", "text_snippet": "T OffsetViewDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_vie"}, {"node_id": 147, "universal_type": "function", "name": "unknown", "text_snippet": "OffsetViewDescriptor(T start, uint32_t index) const"}, {"node_id": 176, "universal_type": "function", "name": "unknown", "text_snippet": "T OffsetSamplerDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_"}, {"node_id": 178, "universal_type": "function", "name": "unknown", "text_snippet": "OffsetSamplerDescriptor(T start, uint32_t index) const"}, {"node_id": 207, "universal_type": "function", "name": "unknown", "text_snippet": "T OffsetRTVDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_rtv_"}, {"node_id": 209, "universal_type": "function", "name": "unknown", "text_snippet": "OffsetRTVDescriptor(T start, uint32_t index) const"}, {"node_id": 238, "universal_type": "function", "name": "unknown", "text_snippet": "T OffsetDSVDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_dsv_"}, {"node_id": 240, "universal_type": "function", "name": "unknown", "text_snippet": "OffsetDSVDescriptor(T start, uint32_t index) const"}, {"node_id": 262, "universal_type": "function", "name": "unknown", "text_snippet": "GetProgrammableSamplePositionsTier()"}, {"node_id": 270, "universal_type": "function", "name": "unknown", "text_snippet": "D3D12Provider(Window* main_window)"}, {"node_id": 280, "universal_type": "function", "name": "unknown", "text_snippet": "Initialize()"}, {"node_id": 285, "universal_type": "function", "name": "unknown", "text_snippet": "IsDeviceSupported(ID3D12Device* device)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <memory>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"xenia/ui/d3d12/d3d12_api.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"xenia/ui/graphics_provider.h\"\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "/**\n ******************************************************************************\n * Xenia : Xbox 360 Emulator Research Project *\n ******************************************************************************\n * Copyright 2018 <NAME>. All rights reserved. *\n * Released under the BSD license - see LICENSE in the root for more details. *\n ******************************************************************************\n */\n\n#ifndef XENIA_UI_D3D12_D3D12_PROVIDER_H_\n#define XENIA_UI_D3D12_D3D12_PROVIDER_H_\n\n#include <memory>\n\n#include \"xenia/ui/d3d12/d3d12_api.h\"\n#include \"xenia/ui/graphics_provider.h\"\n\nnamespace xe {\nnamespace ui {\nnamespace d3d12 {\n\nclass D3D12Provider : public GraphicsProvider {\n public:\n ~D3D12Provider() override;\n\n static std::unique_ptr<D3D12Provider> Create(Window* main_window);\n\n std::unique_ptr<GraphicsContext> CreateContext(\n Window* target_window) override;\n std::unique_ptr<GraphicsContext> CreateOffscreenContext() override;\n\n IDXGIFactory2* GetDXGIFactory() const { return dxgi_factory_; }\n ID3D12Device* GetDevice() const { return device_; }\n ID3D12CommandQueue* GetDirectQueue() const { return direct_queue_; }\n\n uint32_t GetViewDescriptorSize() const { return descriptor_size_view_; }\n uint32_t GetSamplerDescriptorSize() const { return descriptor_size_sampler_; }\n uint32_t GetRTVDescriptorSize() const { return descriptor_size_rtv_; }\n uint32_t GetDSVDescriptorSize() const { return descriptor_size_dsv_; }\n template <typename T>\n inline T OffsetViewDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_view_;\n return start;\n }\n template <typename T>\n inline T OffsetSamplerDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_sampler_;\n return start;\n }\n template <typename T>\n inline T OffsetRTVDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_rtv_;\n return start;\n }\n template <typename T>\n inline T OffsetDSVDescriptor(T start, uint32_t index) const {\n start.ptr += index * descriptor_size_dsv_;\n return start;\n }\n\n uint32_t GetProgrammableSamplePositionsTier() const {\n return programmable_sample_positions_tier_;\n }\n\n private:\n explicit D3D12Provider(Window* main_window);\n\n bool Initialize();\n static bool IsDeviceSupported(ID3D12Device* device);\n\n IDXGIFactory2* dxgi_factory_ = nullptr;\n ID3D12Device* device_ = nullptr;\n ID3D12CommandQueue* direct_queue_ = nullptr;\n\n uint32_t descriptor_size_view_;\n uint32_t descriptor_size_sampler_;\n uint32_t descriptor_size_rtv_;\n uint32_t descriptor_size_dsv_;\n\n uint32_t programmable_sample_positions_tier_;\n};\n\n} // namespace d3d12\n} // namespace ui\n} // namespace xe\n\n#endif // XENIA_UI_D3D12_D3D12_PROVIDER_H_\n"}
80,268
c
// // XJPlayManager.h // XJPlayer // // Created by 江鑫 on 2018/5/1. // Copyright © 2018年 XJ. All rights reserved. // #import <Foundation/Foundation.h> @interface XJPlayManager : NSObject @end
18.5
10
(translation_unit) "//\n// XJPlayManager.h\n// XJPlayer\n//\n// Created by 江鑫 on 2018/5/1.\n// Copyright © 2018年 XJ. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface XJPlayManager : NSObject\n\n@end\n" (comment) "//" (comment) "// XJPlayManager.h" (comment) "// XJPlayer" (comment) "//" (comment) "// Created by 江鑫 on 2018/5/1.\n// " (comment) "Copyright © 2018年 XJ. All rights reserved.\n//\n\n#i" (comment) "po" (preproc_call) " <Foundation/Foundation.h>\n\n@inter" (preproc_directive) " <Found" (preproc_arg) "tion/Foundation.h>\n\n@inte" (ERROR) "ace XJPlayManager : NSObject\n\n@end\n" (ERROR) "a" (type_identifier) "ce XJPlay" (identifier) "anager : NSOb" (:) "e" (identifier) "t\n\n@end\n" (ERROR) "" (identifier) ""
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 18.5, "nodes": 10, "errors": 0, "source_hash": "9eb4a57bc8079ea554b0e52dd894b285b8f2f69c92af5d2998b4db3e600c9cd2", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <Foundation/Foundation.h>\n\n@inter", "parent": null, "children": [1, 2], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": " <Found", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "tion/Foundation.h>\n\n@inte", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 33}}, {"id": 3, "type": "ERROR", "text": "ace XJPlayManager : NSObject\n\n@end\n", "parent": null, "children": [4, 5, 6, 7, 8, 9], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 12, "column": 4}}, {"id": 4, "type": "ERROR", "text": "a", "parent": 3, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 5, "type": "type_identifier", "text": "ce XJPlay", "parent": 3, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 10}}, {"id": 6, "type": "identifier", "text": "anager : NSOb", "parent": 3, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 24}}, {"id": 7, "type": "identifier", "text": "t\n\n@end\n", "parent": 3, "children": [], "start_point": {"row": 10, "column": 27}, "end_point": {"row": 10, "column": 35}}, {"id": 8, "type": "ERROR", "text": "", "parent": 3, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 9, "type": "identifier", "text": "", "parent": 3, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 4}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [5, 6, 7, 9], "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// XJPlayManager.h\n// XJPlayer\n//\n// Created by \u6c5f\u946b on 2018/5/1.\n// Copyright \u00a9 2018\u5e74 XJ. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface XJPlayManager : NSObject\n\n@end\n"}
80,269
c
// -*- C++ -*- $Id: ScaleSal.h,v 1.2 2004/02/10 16:14:02 vvi Exp $ #ifndef _SCALESAL_H_ #define _SCALESAL_H_ #include <Segmentation.h> #include <stdio.h> // #include <fftw3.h> namespace picsom { class XYS{ public: XYS(int X,int Y, int S) : x(X),y(Y),s(S) {}; short int x; short int y; short int s; }; struct ltXYS{ bool operator()(const XYS &x1, const XYS &x2) const { if(x1.x<x2.x) return true; if(x1.y<x2.y) return true; if(x1.s<x2.s) return true; return false; } }; class salPoint: public XYS { public: salPoint(int X, int Y, int S,float Sal) : XYS(X,Y,S),sal(Sal){} salPoint(const std::pair<XYS,float> &o) : XYS(o.first),sal(o.second){} float sal; }; bool ltSal(const salPoint &v1, const salPoint &v2){ return v1.sal < v2.sal; } bool gtSal(const salPoint &v1, const salPoint &v2){ return v1.sal > v2.sal; } class salCluster : public salPoint { public: salCluster(int X, int Y, int S, float Sal) : salPoint(X,Y,S,Sal){} salCluster(const std::pair<XYS,float> &o) : salPoint(o){}; int dist; int ind; int calcSqrDistTo(const XYS &o){ int d=(x-o.x); dist =d*d; d=(y-o.y); dist += d*d; d=(s-o.s); dist += d*d; return dist; } }; bool clusterCloser(const salCluster &c1,const salCluster &c2){ // cout << "comparing distances" << c1.dist <<" and "<<c2.dist << endl; return c1.dist < c2.dist; } bool clusterFurther(const salCluster &c1,const salCluster &c2){ return c1.dist > c2.dist; } class Histogram{ public: void resize(int s){count.resize(s);} void reset(int s){ count = std::vector<int>(s,(int)0); totalCount=0; } void addPoint(int val){ // no checking here whether val is a valid index //std::cout << "in Histogram::addPoint("<<val<<")"<<std::endl; count[val]++; totalCount++; } void dump(std::ostream &os) const{ size_t i; for(i=0;i<count.size();i++) os << "count[" <<i<<":"<<count[i]<<std::endl; } float calcEntropy() const{ //std::cout << "calcEntropy, totalCount=" << totalCount << std::endl; if(!totalCount) return 0; //dump(std::cout); float h=0,logN=log((double)totalCount); size_t i; for(i=0;i<count.size();i++) if(count[i]) h += count[i]*(log((double)count[i])-logN); return -h / (totalCount*log(2.0)); } // the absolute difference of two histograms float calcDifference(const Histogram &o) const{ float d=0; float cumd=0; size_t i; for(i=0;i<count.size();i++){ d = ((float)count[i])/totalCount; // std::cout << d << std::endl; d -= ((float)o.count[i])/o.totalCount; cumd += (d>0) ? d : -d; } return cumd; } int totalCount; std::vector<int> count; }; class ScaleSal : public Segmentation { public: /// ScaleSal(); /// ScaleSal(bool b) : Segmentation(b) {} /// virtual ~ScaleSal(); /// Here are the pure virtuals overloaded: /// virtual Segmentation *Create() const { return new ScaleSal(); } /// virtual const char *Version() const; /// virtual void UsageInfo(ostream& = cout) const; /// virtual const char *MethodName(bool l = false) const { return l?"ScaleSal":"ss"; } /// virtual const char *Description() const { return "scalesal"; } /// virtual bool Process(); /// virtual int ProcessOptions(int, char**); protected: void createDeltaLists(int startScale, int stopScale); void addPoint(Histogram &h,int x, int y){ //std::cout << "addPoint(" << x <<","<<y<<")"<<std::endl; if(!getImg()->coordinates_ok(x,y)) return; //std::cout << "coordinates (" << x << "," << y << ")" << std::endl; h.addPoint(quantised_image[x+y*getImg()->getWidth()]); } void quantise(); int qsteps() const { return 1 << 9;} void collectSalientPoints(int x, int y,int minscale,int maxscale); void kadirClustering(); void labelRegions(); void findKNearest(std::vector<salCluster> **sList, std::vector<salCluster> **result, int K); // void fftw_test(); // static void multiplyComplexVector(fftw_complex *v1, // const fftw_complex *v2, int len); int minscale,maxscale; int quantLevels; // these lists list the coordinates of the pixels // that form the arc of a circle between angles (0,pi/4] std::vector<coordList> deltaList; std::vector<salCluster> *saliencyAcc; std::vector<salCluster> *clusteredSal; int *quantised_image; float maxThusFar; float globalThreshold; float varThreshold; int numberOfMeans; bool skipClustering; int clustersToKeep; // int iterations; // int fftN; // int fftK; }; } // namespace picsom #endif // _SCALESAL_H_ // Local Variables: // mode: font-lock // End:
26.21
183
(translation_unit) "// -*- C++ -*- $Id: ScaleSal.h,v 1.2 2004/02/10 16:14:02 vvi Exp $\n\n#ifndef _SCALESAL_H_\n#define _SCALESAL_H_\n\n#include <Segmentation.h>\n#include <stdio.h>\n// #include <fftw3.h>\n\nnamespace picsom {\n\n class XYS{\n \n public:\n XYS(int X,int Y, int S) : x(X),y(Y),s(S) {}; \n short int x;\n short int y;\n short int s;\n };\n\n struct ltXYS{\n bool operator()(const XYS &x1, const XYS &x2) const\n {\n if(x1.x<x2.x) return true;\n if(x1.y<x2.y) return true;\n if(x1.s<x2.s) return true;\n return false;\n }\n };\n\n\n class salPoint: public XYS {\npublic: \n salPoint(int X, int Y, int S,float Sal) : XYS(X,Y,S),sal(Sal){}\n salPoint(const std::pair<XYS,float> &o) : XYS(o.first),sal(o.second){}\n float sal;\n };\n\n bool ltSal(const salPoint &v1,\n const salPoint &v2){\n return v1.sal < v2.sal;\n }\n\n bool gtSal(const salPoint &v1,\n const salPoint &v2){\n return v1.sal > v2.sal;\n }\n\n\n class salCluster : public salPoint {\n public:\n salCluster(int X, int Y, int S, float Sal) : salPoint(X,Y,S,Sal){}\n salCluster(const std::pair<XYS,float> &o) : salPoint(o){};\n int dist;\n int ind;\n\n int calcSqrDistTo(const XYS &o){\n int d=(x-o.x);\n dist =d*d;\n d=(y-o.y);\n dist += d*d;\n d=(s-o.s);\n dist += d*d;\n return dist;\n }\n\n };\n\n bool clusterCloser(const salCluster &c1,const salCluster &c2){\n // cout << "comparing distances" << c1.dist <<" and "<<c2.dist << endl;\n return c1.dist < c2.dist;\n }\n\n bool clusterFurther(const salCluster &c1,const salCluster &c2){\n return c1.dist > c2.dist;\n }\n \n\n class Histogram{\n public:\n void resize(int s){count.resize(s);}\n void reset(int s){\n count = std::vector<int>(s,(int)0);\n totalCount=0;\n }\n \n void addPoint(int val){\n // no checking here whether val is a valid index\n //std::cout << "in Histogram::addPoint("<<val<<")"<<std::endl;\n count[val]++;\n totalCount++;\n }\n \n void dump(std::ostream &os) const{\n size_t i;\n for(i=0;i<count.size();i++)\n os << "count[" <<i<<":"<<count[i]<<std::endl;\n }\n float calcEntropy() const{\n //std::cout << "calcEntropy, totalCount=" << totalCount << std::endl;\n if(!totalCount) return 0;\n //dump(std::cout);\n\n float h=0,logN=log((double)totalCount);\n size_t i;\n for(i=0;i<count.size();i++)\n if(count[i])\n h += count[i]*(log((double)count[i])-logN);\n\n return -h / (totalCount*log(2.0));\n }\n\n\n // the absolute difference of two histograms\n\n float calcDifference(const Histogram &o) const{\n float d=0;\n float cumd=0;\n size_t i;\n\n for(i=0;i<count.size();i++){\n d = ((float)count[i])/totalCount;\n // std::cout << d << std::endl;\n d -= ((float)o.count[i])/o.totalCount;\n cumd += (d>0) ? d : -d;\n }\n \n return cumd;\n }\n\n int totalCount;\n std::vector<int> count;\n };\n\n\n class ScaleSal : public Segmentation {\n public:\n /// \n ScaleSal();\n\n /// \n ScaleSal(bool b) : Segmentation(b) {}\n\n /// \n virtual ~ScaleSal();\n\n /// Here are the pure virtuals overloaded:\n \n ///\n virtual Segmentation *Create() const { return new ScaleSal(); } \n\n ///\n virtual const char *Version() const;\n\n ///\n virtual void UsageInfo(ostream& = cout) const;\n\n ///\n virtual const char *MethodName(bool l = false) const {\n return l?"ScaleSal":"ss"; }\n\n ///\n virtual const char *Description() const { return "scalesal"; }\n \n ///\n virtual bool Process();\n\n ///\n virtual int ProcessOptions(int, char**);\n \n protected:\n\n void createDeltaLists(int startScale, int stopScale);\n\n void addPoint(Histogram &h,int x, int y){\n //std::cout << "addPoint(" << x <<","<<y<<")"<<std::endl;\n if(!getImg()->coordinates_ok(x,y)) return;\n //std::cout << "coordinates (" << x << "," << y << ")" << std::endl;\n h.addPoint(quantised_image[x+y*getImg()->getWidth()]);\n }\n\n void quantise();\n\n int qsteps() const { return 1 << 9;}\n\n void collectSalientPoints(int x, int y,int minscale,int maxscale);\n\n void kadirClustering();\n\n void labelRegions();\n\n void findKNearest(std::vector<salCluster> **sList, \n std::vector<salCluster> **result, int K);\n \n // void fftw_test();\n\n // static void multiplyComplexVector(fftw_complex *v1, \n // const fftw_complex *v2, int len);\n\n int minscale,maxscale;\n int quantLevels;\n\n // these lists list the coordinates of the pixels \n // that form the arc of a circle between angles (0,pi/4]\n\n std::vector<coordList> deltaList;\n\n std::vector<salCluster> *saliencyAcc;\n std::vector<salCluster> *clusteredSal;\n\n int *quantised_image;\n\n float maxThusFar;\n float globalThreshold;\n float varThreshold;\n int numberOfMeans;\n bool skipClustering;\n\n int clustersToKeep;\n\n // int iterations;\n // int fftN;\n // int fftK;\n\n };\n\n} // namespace picsom\n#endif // _SCALESAL_H_\n\n// Local Variables:\n// mode: font-lock\n// End:\n" (comment) "// -*- C++ -*- $Id: ScaleSal.h,v 1.2 2004/02/10 16:14:02 vvi Exp $" (preproc_ifdef) "#ifndef _SCALESAL_H_\n#define _SCALESAL_H_\n\n#include <Segmentation.h>\n#include <stdio.h>\n// #include <fftw3.h>\n\nnamespace picsom {\n\n class XYS{\n \n public:\n XYS(int X,int Y, int S) : x(X),y(Y),s(S) {}; \n short int x;\n short int y;\n short int s;\n };\n\n struct ltXYS{\n bool operator()(const XYS &x1, const XYS &x2) const\n {\n if(x1.x<x2.x) return true;\n if(x1.y<x2.y) return true;\n if(x1.s<x2.s) return true;\n return false;\n }\n };\n\n\n class salPoint: public XYS {\npublic: \n salPoint(int X, int Y, int S,float Sal) : XYS(X,Y,S),sal(Sal){}\n salPoint(const std::pair<XYS,float> &o) : XYS(o.first),sal(o.second){}\n float sal;\n };\n\n bool ltSal(const salPoint &v1,\n const salPoint &v2){\n return v1.sal < v2.sal;\n }\n\n bool gtSal(const salPoint &v1,\n const salPoint &v2){\n return v1.sal > v2.sal;\n }\n\n\n class salCluster : public salPoint {\n public:\n salCluster(int X, int Y, int S, float Sal) : salPoint(X,Y,S,Sal){}\n salCluster(const std::pair<XYS,float> &o) : salPoint(o){};\n int dist;\n int ind;\n\n int calcSqrDistTo(const XYS &o){\n int d=(x-o.x);\n dist =d*d;\n d=(y-o.y);\n dist += d*d;\n d=(s-o.s);\n dist += d*d;\n return dist;\n }\n\n };\n\n bool clusterCloser(const salCluster &c1,const salCluster &c2){\n // cout << "comparing distances" << c1.dist <<" and "<<c2.dist << endl;\n return c1.dist < c2.dist;\n }\n\n bool clusterFurther(const salCluster &c1,const salCluster &c2){\n return c1.dist > c2.dist;\n }\n \n\n class Histogram{\n public:\n void resize(int s){count.resize(s);}\n void reset(int s){\n count = std::vector<int>(s,(int)0);\n totalCount=0;\n }\n \n void addPoint(int val){\n // no checking here whether val is a valid index\n //std::cout << "in Histogram::addPoint("<<val<<")"<<std::endl;\n count[val]++;\n totalCount++;\n }\n \n void dump(std::ostream &os) const{\n size_t i;\n for(i=0;i<count.size();i++)\n os << "count[" <<i<<":"<<count[i]<<std::endl;\n }\n float calcEntropy() const{\n //std::cout << "calcEntropy, totalCount=" << totalCount << std::endl;\n if(!totalCount) return 0;\n //dump(std::cout);\n\n float h=0,logN=log((double)totalCount);\n size_t i;\n for(i=0;i<count.size();i++)\n if(count[i])\n h += count[i]*(log((double)count[i])-logN);\n\n return -h / (totalCount*log(2.0));\n }\n\n\n // the absolute difference of two histograms\n\n float calcDifference(const Histogram &o) const{\n float d=0;\n float cumd=0;\n size_t i;\n\n for(i=0;i<count.size();i++){\n d = ((float)count[i])/totalCount;\n // std::cout << d << std::endl;\n d -= ((float)o.count[i])/o.totalCount;\n cumd += (d>0) ? d : -d;\n }\n \n return cumd;\n }\n\n int totalCount;\n std::vector<int> count;\n };\n\n\n class ScaleSal : public Segmentation {\n public:\n /// \n ScaleSal();\n\n /// \n ScaleSal(bool b) : Segmentation(b) {}\n\n /// \n virtual ~ScaleSal();\n\n /// Here are the pure virtuals overloaded:\n \n ///\n virtual Segmentation *Create() const { return new ScaleSal(); } \n\n ///\n virtual const char *Version() const;\n\n ///\n virtual void UsageInfo(ostream& = cout) const;\n\n ///\n virtual const char *MethodName(bool l = false) const {\n return l?"ScaleSal":"ss"; }\n\n ///\n virtual const char *Description() const { return "scalesal"; }\n \n ///\n virtual bool Process();\n\n ///\n virtual int ProcessOptions(int, char**);\n \n protected:\n\n void createDeltaLists(int startScale, int stopScale);\n\n void addPoint(Histogram &h,int x, int y){\n //std::cout << "addPoint(" << x <<","<<y<<")"<<std::endl;\n if(!getImg()->coordinates_ok(x,y)) return;\n //std::cout << "coordinates (" << x << "," << y << ")" << std::endl;\n h.addPoint(quantised_image[x+y*getImg()->getWidth()]);\n }\n\n void quantise();\n\n int qsteps() const { return 1 << 9;}\n\n void collectSalientPoints(int x, int y,int minscale,int maxscale);\n\n void kadirClustering();\n\n void labelRegions();\n\n void findKNearest(std::vector<salCluster> **sList, \n std::vector<salCluster> **result, int K);\n \n // void fftw_test();\n\n // static void multiplyComplexVector(fftw_complex *v1, \n // const fftw_complex *v2, int len);\n\n int minscale,maxscale;\n int quantLevels;\n\n // these lists list the coordinates of the pixels \n // that form the arc of a circle between angles (0,pi/4]\n\n std::vector<coordList> deltaList;\n\n std::vector<salCluster> *saliencyAcc;\n std::vector<salCluster> *clusteredSal;\n\n int *quantised_image;\n\n float maxThusFar;\n float globalThreshold;\n float varThreshold;\n int numberOfMeans;\n bool skipClustering;\n\n int clustersToKeep;\n\n // int iterations;\n // int fftN;\n // int fftK;\n\n };\n\n} // namespace picsom\n#endif" (#ifndef) "#ifndef" (identifier) "_SCALESAL_H_" (preproc_def) "#define _SCALESAL_H_\n" (#define) "#define" (identifier) "_SCALESAL_H_" (preproc_include) "#include <Segmentation.h>\n" (#include) "#include" (system_lib_string) "<Segmentation.h>" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (comment) "// #include <fftw3.h>" (function_definition) "namespace picsom {\n\n class XYS{\n \n public:\n XYS(int X,int Y, int S) : x(X),y(Y),s(S) {}; \n short int x;\n short int y;\n short int s;\n };\n\n struct ltXYS{\n bool operator()(const XYS &x1, const XYS &x2) const\n {\n if(x1.x<x2.x) return true;\n if(x1.y<x2.y) return true;\n if(x1.s<x2.s) return true;\n return false;\n }\n };\n\n\n class salPoint: public XYS {\npublic: \n salPoint(int X, int Y, int S,float Sal) : XYS(X,Y,S),sal(Sal){}\n salPoint(const std::pair<XYS,float> &o) : XYS(o.first),sal(o.second){}\n float sal;\n };\n\n bool ltSal(const salPoint &v1,\n const salPoint &v2){\n return v1.sal < v2.sal;\n }\n\n bool gtSal(const salPoint &v1,\n const salPoint &v2){\n return v1.sal > v2.sal;\n }\n\n\n class salCluster : public salPoint {\n public:\n salCluster(int X, int Y, int S, float Sal) : salPoint(X,Y,S,Sal){}\n salCluster(const std::pair<XYS,float> &o) : salPoint(o){};\n int dist;\n int ind;\n\n int calcSqrDistTo(const XYS &o){\n int d=(x-o.x);\n dist =d*d;\n d=(y-o.y);\n dist += d*d;\n d=(s-o.s);\n dist += d*d;\n return dist;\n }\n\n };\n\n bool clusterCloser(const salCluster &c1,const salCluster &c2){\n // cout << "comparing distances" << c1.dist <<" and "<<c2.dist << endl;\n return c1.dist < c2.dist;\n }\n\n bool clusterFurther(const salCluster &c1,const salCluster &c2){\n return c1.dist > c2.dist;\n }\n \n\n class Histogram{\n public:\n void resize(int s){count.resize(s);}\n void reset(int s){\n count = std::vector<int>(s,(int)0);\n totalCount=0;\n }\n \n void addPoint(int val){\n // no checking here whether val is a valid index\n //std::cout << "in Histogram::addPoint("<<val<<")"<<std::endl;\n count[val]++;\n totalCount++;\n }\n \n void dump(std::ostream &os) const{\n size_t i;\n for(i=0;i<count.size();i++)\n os << "count[" <<i<<":"<<count[i]<<std::endl;\n }\n float calcEntropy() const{\n //std::cout << "calcEntropy, totalCount=" << totalCount << std::endl;\n if(!totalCount) return 0;\n //dump(std::cout);\n\n float h=0,logN=log((double)totalCount);\n size_t i;\n for(i=0;i<count.size();i++)\n if(count[i])\n h += count[i]*(log((double)count[i])-logN);\n\n return -h / (totalCount*log(2.0));\n }\n\n\n // the absolute difference of two histograms\n\n float calcDifference(const Histogram &o) const{\n float d=0;\n float cumd=0;\n size_t i;\n\n for(i=0;i<count.size();i++){\n d = ((float)count[i])/totalCount;\n // std::cout << d << std::endl;\n d -= ((float)o.count[i])/o.totalCount;\n cumd += (d>0) ? d : -d;\n }\n \n return cumd;\n }\n\n int totalCount;\n std::vector<int> count;\n };\n\n\n class ScaleSal : public Segmentation {\n public:\n /// \n ScaleSal();\n\n /// \n ScaleSal(bool b) : Segmentation(b) {}\n\n /// \n virtual ~ScaleSal();\n\n /// Here are the pure virtuals overloaded:\n \n ///\n virtual Segmentation *Create() const { return new ScaleSal(); } \n\n ///\n virtual const char *Version() const;\n\n ///\n virtual void UsageInfo(ostream& = cout) const;\n\n ///\n virtual const char *MethodName(bool l = false) const {\n return l?"ScaleSal":"ss"; }\n\n ///\n virtual const char *Description() const { return "scalesal"; }\n \n ///\n virtual bool Process();\n\n ///\n virtual int ProcessOptions(int, char**);\n \n protected:\n\n void createDeltaLists(int startScale, int stopScale);\n\n void addPoint(Histogram &h,int x, int y){\n //std::cout << "addPoint(" << x <<","<<y<<")"<<std::endl;\n if(!getImg()->coordinates_ok(x,y)) return;\n //std::cout << "coordinates (" << x << "," << y << ")" << std::endl;\n h.addPoint(quantised_image[x+y*getImg()->getWidth()]);\n }\n\n void quantise();\n\n int qsteps() const { return 1 << 9;}\n\n void collectSalientPoints(int x, int y,int minscale,int maxscale);\n\n void kadirClustering();\n\n void labelRegions();\n\n void findKNearest(std::vector<salCluster> **sList, \n std::vector<salCluster> **result, int K);\n \n // void fftw_test();\n\n // static void multiplyComplexVector(fftw_complex *v1, \n // const fftw_complex *v2, int len);\n\n int minscale,maxscale;\n int quantLevels;\n\n // these lists list the coordinates of the pixels \n // that form the arc of a circle between angles (0,pi/4]\n\n std::vector<coordList> deltaList;\n\n std::vector<salCluster> *saliencyAcc;\n std::vector<salCluster> *clusteredSal;\n\n int *quantised_image;\n\n float maxThusFar;\n float globalThreshold;\n float varThreshold;\n int numberOfMeans;\n bool skipClustering;\n\n int clustersToKeep;\n\n // int iterations;\n // int fftN;\n // int fftK;\n\n }" (type_identifier) "namespace" (identifier) "picsom" (compound_statement) "{\n\n class XYS{\n \n public:\n XYS(int X,int Y, int S) : x(X),y(Y),s(S) {}; \n short int x;\n short int y;\n short int s;\n };\n\n struct ltXYS{\n bool operator()(const XYS &x1, const XYS &x2) const\n {\n if(x1.x<x2.x) return true;\n if(x1.y<x2.y) return true;\n if(x1.s<x2.s) return true;\n return false;\n }\n };\n\n\n class salPoint: public XYS {\npublic: \n salPoint(int X, int Y, int S,float Sal) : XYS(X,Y,S),sal(Sal){}\n salPoint(const std::pair<XYS,float> &o) : XYS(o.first),sal(o.second){}\n float sal;\n };\n\n bool ltSal(const salPoint &v1,\n const salPoint &v2){\n return v1.sal < v2.sal;\n }\n\n bool gtSal(const salPoint &v1,\n const salPoint &v2){\n return v1.sal > v2.sal;\n }\n\n\n class salCluster : public salPoint {\n public:\n salCluster(int X, int Y, int S, float Sal) : salPoint(X,Y,S,Sal){}\n salCluster(const std::pair<XYS,float> &o) : salPoint(o){};\n int dist;\n int ind;\n\n int calcSqrDistTo(const XYS &o){\n int d=(x-o.x);\n dist =d*d;\n d=(y-o.y);\n dist += d*d;\n d=(s-o.s);\n dist += d*d;\n return dist;\n }\n\n };\n\n bool clusterCloser(const salCluster &c1,const salCluster &c2){\n // cout << "comparing distances" << c1.dist <<" and "<<c2.dist << endl;\n return c1.dist < c2.dist;\n }\n\n bool clusterFurther(const salCluster &c1,const salCluster &c2){\n return c1.dist > c2.dist;\n }\n \n\n class Histogram{\n public:\n void resize(int s){count.resize(s);}\n void reset(int s){\n count = std::vector<int>(s,(int)0);\n totalCount=0;\n }\n \n void addPoint(int val){\n // no checking here whether val is a valid index\n //std::cout << "in Histogram::addPoint("<<val<<")"<<std::endl;\n count[val]++;\n totalCount++;\n }\n \n void dump(std::ostream &os) const{\n size_t i;\n for(i=0;i<count.size();i++)\n os << "count[" <<i<<":"<<count[i]<<std::endl;\n }\n float calcEntropy() const{\n //std::cout << "calcEntropy, totalCount=" << totalCount << std::endl;\n if(!totalCount) return 0;\n //dump(std::cout);\n\n float h=0,logN=log((double)totalCount);\n size_t i;\n for(i=0;i<count.size();i++)\n if(count[i])\n h += count[i]*(log((double)count[i])-logN);\n\n return -h / (totalCount*log(2.0));\n }\n\n\n // the absolute difference of two histograms\n\n float calcDifference(const Histogram &o) const{\n float d=0;\n float cumd=0;\n size_t i;\n\n for(i=0;i<count.size();i++){\n d = ((float)count[i])/totalCount;\n // std::cout << d << std::endl;\n d -= ((float)o.count[i])/o.totalCount;\n cumd += (d>0) ? d : -d;\n }\n \n return cumd;\n }\n\n int totalCount;\n std::vector<int> count;\n };\n\n\n class ScaleSal : public Segmentation {\n public:\n /// \n ScaleSal();\n\n /// \n ScaleSal(bool b) : Segmentation(b) {}\n\n /// \n virtual ~ScaleSal();\n\n /// Here are the pure virtuals overloaded:\n \n ///\n virtual Segmentation *Create() const { return new ScaleSal(); } \n\n ///\n virtual const char *Version() const;\n\n ///\n virtual void UsageInfo(ostream& = cout) const;\n\n ///\n virtual const char *MethodName(bool l = false) const {\n return l?"ScaleSal":"ss"; }\n\n ///\n virtual const char *Description() const { return "scalesal"; }\n \n ///\n virtual bool Process();\n\n ///\n virtual int ProcessOptions(int, char**);\n \n protected:\n\n void createDeltaLists(int startScale, int stopScale);\n\n void addPoint(Histogram &h,int x, int y){\n //std::cout << "addPoint(" << x <<","<<y<<")"<<std::endl;\n if(!getImg()->coordinates_ok(x,y)) return;\n //std::cout << "coordinates (" << x << "," << y << ")" << std::endl;\n h.addPoint(quantised_image[x+y*getImg()->getWidth()]);\n }\n\n void quantise();\n\n int qsteps() const { return 1 << 9;}\n\n void collectSalientPoints(int x, int y,int minscale,int maxscale);\n\n void kadirClustering();\n\n void labelRegions();\n\n void findKNearest(std::vector<salCluster> **sList, \n std::vector<salCluster> **result, int K);\n \n // void fftw_test();\n\n // static void multiplyComplexVector(fftw_complex *v1, \n // const fftw_complex *v2, int len);\n\n int minscale,maxscale;\n int quantLevels;\n\n // these lists list the coordinates of the pixels \n // that form the arc of a circle between angles (0,pi/4]\n\n std::vector<coordList> deltaList;\n\n std::vector<salCluster> *saliencyAcc;\n std::vector<salCluster> *clusteredSal;\n\n int *quantised_image;\n\n float maxThusFar;\n float globalThreshold;\n float varThreshold;\n int numberOfMeans;\n bool skipClustering;\n\n int clustersToKeep;\n\n // int iterations;\n // int fftN;\n // int fftK;\n\n }" ({) "{" (function_definition) "class XYS{\n \n public:\n XYS(int X,int Y, int S) : x(X),y(Y),s(S) {}; \n short int x;\n short int y;\n short int s;\n }" (type_identifier) "class" (identifier) "XYS" (compound_statement) "{\n \n public:\n XYS(int X,int Y, int S) : x(X),y(Y),s(S) {}; \n short int x;\n short int y;\n short int s;\n }" ({) "{" (labeled_statement) "public:\n XYS(int X,int Y, int S) : x(X),y(Y),s(S) {};" (statement_identifier) "public" (:) ":" (declaration) "XYS(int X,int Y, int S) : x(X),y(Y),s(S) {};" (macro_type_specifier) "XYS(int" (identifier) "XYS" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) "" (identifier) "X" (,) "," (identifier) "int" (ERROR) "Y" (identifier) "Y" (,) "," (ERROR) "int S) :" (identifier) "int" (identifier) "S" ()) ")" (:) ":" (function_declarator) "x(X)" (identifier) "x" (parameter_list) "(X)" (() "(" (parameter_declaration) "X" (type_identifier) "X" ()) ")" (,) "," (function_declarator) "y(Y)" (identifier) "y" (parameter_list) "(Y)" (() "(" (parameter_declaration) "Y" (type_identifier) "Y" ()) ")" (ERROR) ",s(S) {}" (,) "," (function_declarator) "s(S)" (identifier) "s" (parameter_list) "(S)" (() "(" (parameter_declaration) "S" (type_identifier) "S" ()) ")" ({) "{" (}) "}" (;) ";" (declaration) "short int x;" (sized_type_specifier) "short int" (short) "short" (primitive_type) "int" (identifier) "x" (;) ";" (declaration) "short int y;" (sized_type_specifier) "short int" (short) "short" (primitive_type) "int" (identifier) "y" (;) ";" (declaration) "short int s;" (sized_type_specifier) "short int" (short) "short" (primitive_type) "int" (identifier) "s" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (struct_specifier) "struct ltXYS{\n bool operator()(const XYS &x1, const XYS &x2) const\n {\n if(x1.x<x2.x) return true;\n if(x1.y<x2.y) return true;\n if(x1.s<x2.s) return true;\n return false;\n }" (struct) "struct" (type_identifier) "ltXYS" (ERROR) "{\n bool operator()(const XYS &x1, const XYS &x2) const" ({) "{" (primitive_type) "bool" (function_declarator) "operator()(const XYS &x1, const XYS &x2)" (function_declarator) "operator()" (field_identifier) "operator" (parameter_list) "()" (() "(" ()) ")" (parameter_list) "(const XYS &x1, const XYS &x2)" (() "(" (parameter_declaration) "const XYS &x1" (type_qualifier) "const" (const) "const" (type_identifier) "XYS" (ERROR) "&" (&) "&" (identifier) "x1" (,) "," (parameter_declaration) "const XYS &x2" (type_qualifier) "const" (const) "const" (type_identifier) "XYS" (ERROR) "&" (&) "&" (identifier) "x2" ()) ")" (identifier) "const" (field_declaration_list) "{\n if(x1.x<x2.x) return true;\n if(x1.y<x2.y) return true;\n if(x1.s<x2.s) return true;\n return false;\n }" ({) "{" (field_declaration) "if(x1.x<x2.x) return true;" (macro_type_specifier) "if(x1.x<x2.x)" (identifier) "if" (() "(" (type_descriptor) "x1" (type_identifier) "x1" (ERROR) ".x<x2.x" (.) "." (identifier) "x" (<) "<" (identifier) "x2" (.) "." (identifier) "x" ()) ")" (field_identifier) "return" (ERROR) "true" (identifier) "true" (;) ";" (field_declaration) "if(x1.y<x2.y) return true;" (macro_type_specifier) "if(x1.y<x2.y)" (identifier) "if" (() "(" (type_descriptor) "x1" (type_identifier) "x1" (ERROR) ".y<x2.y" (.) "." (identifier) "y" (<) "<" (identifier) "x2" (.) "." (identifier) "y" ()) ")" (field_identifier) "return" (ERROR) "true" (identifier) "true" (;) ";" (field_declaration) "if(x1.s<x2.s) return true;" (macro_type_specifier) "if(x1.s<x2.s)" (identifier) "if" (() "(" (type_descriptor) "x1" (type_identifier) "x1" (ERROR) ".s<x2.s" (.) "." (identifier) "s" (<) "<" (identifier) "x2" (.) "." (identifier) "s" ()) ")" (field_identifier) "return" (ERROR) "true" (identifier) "true" (;) ";" (field_declaration) "return false;" (type_identifier) "return" (field_identifier) "false" (;) ";" (}) "}" (ERROR) "}" (}) "}" (;) ";" (function_definition) "class salPoint: public XYS {\npublic: \n salPoint(int X, int Y, int S,float Sal) : XYS(X,Y,S),sal(Sal){}\n salPoint(const std::pair<XYS,float> &o) : XYS(o.first),sal(o.second){}\n float sal;\n }" (type_identifier) "class" (identifier) "salPoint" (ERROR) ": public XYS" (:) ":" (identifier) "public" (identifier) "XYS" (compound_statement) "{\npublic: \n salPoint(int X, int Y, int S,float Sal) : XYS(X,Y,S),sal(Sal){}\n salPoint(const std::pair<XYS,float> &o) : XYS(o.first),sal(o.second){}\n float sal;\n }" ({) "{" (labeled_statement) "public: \n salPoint(int X, int Y, int S,float Sal) : XYS(X,Y,S),sal(Sal){}\n salPoint(const std::pair<XYS,float> &o) : XYS(o.first),sal(o.second){}\n float sal;" (statement_identifier) "public" (:) ":" (declaration) "salPoint(int X, int Y, int S,float Sal) : XYS(X,Y,S),sal(Sal){}\n salPoint(const std::pair<XYS,float> &o) : XYS(o.first),sal(o.second){}\n float sal;" (macro_type_specifier) "salPoint(int" (identifier) "salPoint" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) "" (identifier) "X" (,) "," (identifier) "int" (ERROR) "Y" (identifier) "Y" (,) "," (identifier) "int" (ERROR) "S" (identifier) "S" (,) "," (ERROR) "float Sal) :" (identifier) "float" (identifier) "Sal" ()) ")" (:) ":" (function_declarator) "XYS(X,Y,S)" (identifier) "XYS" (parameter_list) "(X,Y,S)" (() "(" (parameter_declaration) "X" (type_identifier) "X" (,) "," (parameter_declaration) "Y" (type_identifier) "Y" (,) "," (parameter_declaration) "S" (type_identifier) "S" ()) ")" (,) "," (ERROR) "sal(Sal){}\n salPoint(const std::pair<XYS,float> &o) : XYS(o.first),sal(o.second){}\n float" (function_declarator) "sal(Sal)" (identifier) "sal" (parameter_list) "(Sal)" (() "(" (parameter_declaration) "Sal" (type_identifier) "Sal" ()) ")" ({) "{" (}) "}" (function_declarator) "salPoint(const std::pair<XYS,float> &o) : XYS(o.first)" (identifier) "salPoint" (parameter_list) "(const std::pair<XYS,float> &o)" (() "(" (parameter_declaration) "const std::pair<XYS" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::pair<" (:) ":" (:) ":" (identifier) "pair" (<) "<" (identifier) "XYS" (,) "," (parameter_declaration) "float> &o" (primitive_type) "float" (ERROR) "> &" (>) ">" (&) "&" (identifier) "o" ()) ")" (ERROR) ":" (:) ":" (call_expression) "XYS(o.first)" (identifier) "XYS" (argument_list) "(o.first)" (() "(" (ERROR) "o." (identifier) "o" (.) "." (identifier) "first" ()) ")" (,) "," (function_declarator) "sal(o.second)" (identifier) "sal" (parameter_list) "(o.second)" (() "(" (parameter_declaration) "o.second" (type_identifier) "o" (ERROR) "." (.) "." (identifier) "second" ()) ")" ({) "{" (}) "}" (primitive_type) "float" (identifier) "sal" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "bool ltSal(const salPoint &v1,\n const salPoint &v2){\n return v1.sal < v2.sal;\n }" (primitive_type) "bool" (function_declarator) "ltSal(const salPoint &v1,\n const salPoint &v2)" (identifier) "ltSal" (parameter_list) "(const salPoint &v1,\n const salPoint &v2)" (() "(" (parameter_declaration) "const salPoint &v1" (type_qualifier) "const" (const) "const" (type_identifier) "salPoint" (ERROR) "&" (&) "&" (identifier) "v1" (,) "," (parameter_declaration) "const salPoint &v2" (type_qualifier) "const" (const) "const" (type_identifier) "salPoint" (ERROR) "&" (&) "&" (identifier) "v2" ()) ")" (compound_statement) "{\n return v1.sal < v2.sal;\n }" ({) "{" (return_statement) "return v1.sal < v2.sal;" (return) "return" (binary_expression) "v1.sal < v2.sal" (field_expression) "v1.sal" (identifier) "v1" (.) "." (field_identifier) "sal" (<) "<" (field_expression) "v2.sal" (identifier) "v2" (.) "." (field_identifier) "sal" (;) ";" (}) "}" (function_definition) "bool gtSal(const salPoint &v1,\n const salPoint &v2){\n return v1.sal > v2.sal;\n }" (primitive_type) "bool" (function_declarator) "gtSal(const salPoint &v1,\n const salPoint &v2)" (identifier) "gtSal" (parameter_list) "(const salPoint &v1,\n const salPoint &v2)" (() "(" (parameter_declaration) "const salPoint &v1" (type_qualifier) "const" (const) "const" (type_identifier) "salPoint" (ERROR) "&" (&) "&" (identifier) "v1" (,) "," (parameter_declaration) "const salPoint &v2" (type_qualifier) "const" (const) "const" (type_identifier) "salPoint" (ERROR) "&" (&) "&" (identifier) "v2" ()) ")" (compound_statement) "{\n return v1.sal > v2.sal;\n }" ({) "{" (return_statement) "return v1.sal > v2.sal;" (return) "return" (binary_expression) "v1.sal > v2.sal" (field_expression) "v1.sal" (identifier) "v1" (.) "." (field_identifier) "sal" (>) ">" (field_expression) "v2.sal" (identifier) "v2" (.) "." (field_identifier) "sal" (;) ";" (}) "}" (function_definition) "class salCluster : public salPoint {\n public:\n salCluster(int X, int Y, int S, float Sal) : salPoint(X,Y,S,Sal){}\n salCluster(const std::pair<XYS,float> &o) : salPoint(o){};\n int dist;\n int ind;\n\n int calcSqrDistTo(const XYS &o){\n int d=(x-o.x);\n dist =d*d;\n d=(y-o.y);\n dist += d*d;\n d=(s-o.s);\n dist += d*d;\n return dist;\n }\n\n }" (type_identifier) "class" (identifier) "salCluster" (ERROR) ": public salPoint" (:) ":" (identifier) "public" (identifier) "salPoint" (compound_statement) "{\n public:\n salCluster(int X, int Y, int S, float Sal) : salPoint(X,Y,S,Sal){}\n salCluster(const std::pair<XYS,float> &o) : salPoint(o){};\n int dist;\n int ind;\n\n int calcSqrDistTo(const XYS &o){\n int d=(x-o.x);\n dist =d*d;\n d=(y-o.y);\n dist += d*d;\n d=(s-o.s);\n dist += d*d;\n return dist;\n }\n\n }" ({) "{" (labeled_statement) "public:\n salCluster(int X, int Y, int S, float Sal) : salPoint(X,Y,S,Sal){}\n salCluster(const std::pair<XYS,float> &o) : salPoint(o){};" (statement_identifier) "public" (:) ":" (declaration) "salCluster(int X, int Y, int S, float Sal) : salPoint(X,Y,S,Sal){}\n salCluster(const std::pair<XYS,float> &o) : salPoint(o){};" (macro_type_specifier) "salCluster(int" (identifier) "salCluster" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) "" (identifier) "X" (,) "," (identifier) "int" (ERROR) "Y" (identifier) "Y" (,) "," (identifier) "int" (ERROR) "S, float Sal) : salPoint(X,Y,S,Sal){}\n salCluster(const std::pair<XYS,float> &o) : salPoint(o){}" (identifier) "S" (,) "," (ERROR) "float Sal) : salPoint(X,Y,S,Sal){}" (identifier) "float" (identifier) "Sal" ()) ")" (:) ":" (function_declarator) "salPoint(X,Y,S,Sal)" (identifier) "salPoint" (parameter_list) "(X,Y,S,Sal)" (() "(" (parameter_declaration) "X" (type_identifier) "X" (,) "," (parameter_declaration) "Y" (type_identifier) "Y" (,) "," (parameter_declaration) "S" (type_identifier) "S" (,) "," (parameter_declaration) "Sal" (type_identifier) "Sal" ()) ")" ({) "{" (}) "}" (function_declarator) "salCluster(const std::pair<XYS,float> &o) : salPoint(o)" (identifier) "salCluster" (parameter_list) "(const std::pair<XYS,float> &o)" (() "(" (parameter_declaration) "const std::pair<XYS" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::pair<" (:) ":" (:) ":" (identifier) "pair" (<) "<" (identifier) "XYS" (,) "," (parameter_declaration) "float> &o" (primitive_type) "float" (ERROR) "> &" (>) ">" (&) "&" (identifier) "o" ()) ")" (ERROR) ":" (:) ":" (call_expression) "salPoint(o)" (identifier) "salPoint" (argument_list) "(o)" (() "(" (identifier) "o" ()) ")" ({) "{" (}) "}" (;) ";" (declaration) "int dist;" (primitive_type) "int" (identifier) "dist" (;) ";" (declaration) "int ind;" (primitive_type) "int" (identifier) "ind" (;) ";" (function_definition) "int calcSqrDistTo(const XYS &o){\n int d=(x-o.x);\n dist =d*d;\n d=(y-o.y);\n dist += d*d;\n d=(s-o.s);\n dist += d*d;\n return dist;\n }" (primitive_type) "int" (function_declarator) "calcSqrDistTo(const XYS &o)" (identifier) "calcSqrDistTo" (parameter_list) "(const XYS &o)" (() "(" (parameter_declaration) "const XYS &o" (type_qualifier) "const" (const) "const" (type_identifier) "XYS" (ERROR) "&" (&) "&" (identifier) "o" ()) ")" (compound_statement) "{\n int d=(x-o.x);\n dist =d*d;\n d=(y-o.y);\n dist += d*d;\n d=(s-o.s);\n dist += d*d;\n return dist;\n }" ({) "{" (declaration) "int d=(x-o.x);" (primitive_type) "int" (init_declarator) "d=(x-o.x)" (identifier) "d" (=) "=" (parenthesized_expression) "(x-o.x)" (() "(" (binary_expression) "x-o.x" (identifier) "x" (-) "-" (field_expression) "o.x" (identifier) "o" (.) "." (field_identifier) "x" ()) ")" (;) ";" (expression_statement) "dist =d*d;" (assignment_expression) "dist =d*d" (identifier) "dist" (=) "=" (binary_expression) "d*d" (identifier) "d" (*) "*" (identifier) "d" (;) ";" (expression_statement) "d=(y-o.y);" (assignment_expression) "d=(y-o.y)" (identifier) "d" (=) "=" (parenthesized_expression) "(y-o.y)" (() "(" (binary_expression) "y-o.y" (identifier) "y" (-) "-" (field_expression) "o.y" (identifier) "o" (.) "." (field_identifier) "y" ()) ")" (;) ";" (expression_statement) "dist += d*d;" (assignment_expression) "dist += d*d" (identifier) "dist" (+=) "+=" (binary_expression) "d*d" (identifier) "d" (*) "*" (identifier) "d" (;) ";" (expression_statement) "d=(s-o.s);" (assignment_expression) "d=(s-o.s)" (identifier) "d" (=) "=" (parenthesized_expression) "(s-o.s)" (() "(" (binary_expression) "s-o.s" (identifier) "s" (-) "-" (field_expression) "o.s" (identifier) "o" (.) "." (field_identifier) "s" ()) ")" (;) ";" (expression_statement) "dist += d*d;" (assignment_expression) "dist += d*d" (identifier) "dist" (+=) "+=" (binary_expression) "d*d" (identifier) "d" (*) "*" (identifier) "d" (;) ";" (return_statement) "return dist;" (return) "return" (identifier) "dist" (;) ";" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "bool clusterCloser(const salCluster &c1,const salCluster &c2){\n // cout << "comparing distances" << c1.dist <<" and "<<c2.dist << endl;\n return c1.dist < c2.dist;\n }" (primitive_type) "bool" (function_declarator) "clusterCloser(const salCluster &c1,const salCluster &c2)" (identifier) "clusterCloser" (parameter_list) "(const salCluster &c1,const salCluster &c2)" (() "(" (parameter_declaration) "const salCluster &c1" (type_qualifier) "const" (const) "const" (type_identifier) "salCluster" (ERROR) "&" (&) "&" (identifier) "c1" (,) "," (parameter_declaration) "const salCluster &c2" (type_qualifier) "const" (const) "const" (type_identifier) "salCluster" (ERROR) "&" (&) "&" (identifier) "c2" ()) ")" (compound_statement) "{\n // cout << "comparing distances" << c1.dist <<" and "<<c2.dist << endl;\n return c1.dist < c2.dist;\n }" ({) "{" (comment) "// cout << "comparing distances" << c1.dist <<" and "<<c2.dist << endl;" (return_statement) "return c1.dist < c2.dist;" (return) "return" (binary_expression) "c1.dist < c2.dist" (field_expression) "c1.dist" (identifier) "c1" (.) "." (field_identifier) "dist" (<) "<" (field_expression) "c2.dist" (identifier) "c2" (.) "." (field_identifier) "dist" (;) ";" (}) "}" (function_definition) "bool clusterFurther(const salCluster &c1,const salCluster &c2){\n return c1.dist > c2.dist;\n }" (primitive_type) "bool" (function_declarator) "clusterFurther(const salCluster &c1,const salCluster &c2)" (identifier) "clusterFurther" (parameter_list) "(const salCluster &c1,const salCluster &c2)" (() "(" (parameter_declaration) "const salCluster &c1" (type_qualifier) "const" (const) "const" (type_identifier) "salCluster" (ERROR) "&" (&) "&" (identifier) "c1" (,) "," (parameter_declaration) "const salCluster &c2" (type_qualifier) "const" (const) "const" (type_identifier) "salCluster" (ERROR) "&" (&) "&" (identifier) "c2" ()) ")" (compound_statement) "{\n return c1.dist > c2.dist;\n }" ({) "{" (return_statement) "return c1.dist > c2.dist;" (return) "return" (binary_expression) "c1.dist > c2.dist" (field_expression) "c1.dist" (identifier) "c1" (.) "." (field_identifier) "dist" (>) ">" (field_expression) "c2.dist" (identifier) "c2" (.) "." (field_identifier) "dist" (;) ";" (}) "}" (function_definition) "class Histogram{\n public:\n void resize(int s){count.resize(s);}\n void reset(int s){\n count = std::vector<int>(s,(int)0);\n totalCount=0;\n }\n \n void addPoint(int val){\n // no checking here whether val is a valid index\n //std::cout << "in Histogram::addPoint("<<val<<")"<<std::endl;\n count[val]++;\n totalCount++;\n }\n \n void dump(std::ostream &os) const{\n size_t i;\n for(i=0;i<count.size();i++)\n os << "count[" <<i<<":"<<count[i]<<std::endl;\n }\n float calcEntropy() const{\n //std::cout << "calcEntropy, totalCount=" << totalCount << std::endl;\n if(!totalCount) return 0;\n //dump(std::cout);\n\n float h=0,logN=log((double)totalCount);\n size_t i;\n for(i=0;i<count.size();i++)\n if(count[i])\n h += count[i]*(log((double)count[i])-logN);\n\n return -h / (totalCount*log(2.0));\n }\n\n\n // the absolute difference of two histograms\n\n float calcDifference(const Histogram &o) const{\n float d=0;\n float cumd=0;\n size_t i;\n\n for(i=0;i<count.size();i++){\n d = ((float)count[i])/totalCount;\n // std::cout << d << std::endl;\n d -= ((float)o.count[i])/o.totalCount;\n cumd += (d>0) ? d : -d;\n }\n \n return cumd;\n }\n\n int totalCount;\n std::vector<int> count;\n }" (type_identifier) "class" (identifier) "Histogram" (compound_statement) "{\n public:\n void resize(int s){count.resize(s);}\n void reset(int s){\n count = std::vector<int>(s,(int)0);\n totalCount=0;\n }\n \n void addPoint(int val){\n // no checking here whether val is a valid index\n //std::cout << "in Histogram::addPoint("<<val<<")"<<std::endl;\n count[val]++;\n totalCount++;\n }\n \n void dump(std::ostream &os) const{\n size_t i;\n for(i=0;i<count.size();i++)\n os << "count[" <<i<<":"<<count[i]<<std::endl;\n }\n float calcEntropy() const{\n //std::cout << "calcEntropy, totalCount=" << totalCount << std::endl;\n if(!totalCount) return 0;\n //dump(std::cout);\n\n float h=0,logN=log((double)totalCount);\n size_t i;\n for(i=0;i<count.size();i++)\n if(count[i])\n h += count[i]*(log((double)count[i])-logN);\n\n return -h / (totalCount*log(2.0));\n }\n\n\n // the absolute difference of two histograms\n\n float calcDifference(const Histogram &o) const{\n float d=0;\n float cumd=0;\n size_t i;\n\n for(i=0;i<count.size();i++){\n d = ((float)count[i])/totalCount;\n // std::cout << d << std::endl;\n d -= ((float)o.count[i])/o.totalCount;\n cumd += (d>0) ? d : -d;\n }\n \n return cumd;\n }\n\n int totalCount;\n std::vector<int> count;\n }" ({) "{" (labeled_statement) "public:\n void resize(int s){count.resize(s);}" (statement_identifier) "public" (:) ":" (ERROR) "void resize(int s)" (primitive_type) "void" (function_declarator) "resize(int s)" (identifier) "resize" (parameter_list) "(int s)" (() "(" (parameter_declaration) "int s" (primitive_type) "int" (identifier) "s" ()) ")" (compound_statement) "{count.resize(s);}" ({) "{" (expression_statement) "count.resize(s);" (call_expression) "count.resize(s)" (field_expression) "count.resize" (identifier) "count" (.) "." (field_identifier) "resize" (argument_list) "(s)" (() "(" (identifier) "s" ()) ")" (;) ";" (}) "}" (function_definition) "void reset(int s){\n count = std::vector<int>(s,(int)0);\n totalCount=0;\n }" (primitive_type) "void" (function_declarator) "reset(int s)" (identifier) "reset" (parameter_list) "(int s)" (() "(" (parameter_declaration) "int s" (primitive_type) "int" (identifier) "s" ()) ")" (compound_statement) "{\n count = std::vector<int>(s,(int)0);\n totalCount=0;\n }" ({) "{" (expression_statement) "count = std::vector<int>(s,(int)0);" (binary_expression) "count = std::vector<int>(s,(int)0)" (binary_expression) "count = std::vector<int" (assignment_expression) "count = std" (identifier) "count" (=) "=" (identifier) "std" (ERROR) "::vector" (:) ":" (:) ":" (identifier) "vector" (<) "<" (identifier) "int" (>) ">" (parenthesized_expression) "(s,(int)0)" (() "(" (comma_expression) "s,(int)0" (identifier) "s" (,) "," (cast_expression) "(int)0" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (number_literal) "0" ()) ")" (;) ";" (expression_statement) "totalCount=0;" (assignment_expression) "totalCount=0" (identifier) "totalCount" (=) "=" (number_literal) "0" (;) ";" (}) "}" (function_definition) "void addPoint(int val){\n // no checking here whether val is a valid index\n //std::cout << "in Histogram::addPoint("<<val<<")"<<std::endl;\n count[val]++;\n totalCount++;\n }" (primitive_type) "void" (function_declarator) "addPoint(int val)" (identifier) "addPoint" (parameter_list) "(int val)" (() "(" (parameter_declaration) "int val" (primitive_type) "int" (identifier) "val" ()) ")" (compound_statement) "{\n // no checking here whether val is a valid index\n //std::cout << "in Histogram::addPoint("<<val<<")"<<std::endl;\n count[val]++;\n totalCount++;\n }" ({) "{" (comment) "// no checking here whether val is a valid index" (comment) "//std::cout << "in Histogram::addPoint("<<val<<")"<<std::endl;" (expression_statement) "count[val]++;" (update_expression) "count[val]++" (subscript_expression) "count[val]" (identifier) "count" ([) "[" (identifier) "val" (]) "]" (++) "++" (;) ";" (expression_statement) "totalCount++;" (update_expression) "totalCount++" (identifier) "totalCount" (++) "++" (;) ";" (}) "}" (function_definition) "void dump(std::ostream &os) const{\n size_t i;\n for(i=0;i<count.size();i++)\n os << "count[" <<i<<":"<<count[i]<<std::endl;\n }" (primitive_type) "void" (function_declarator) "dump(std::ostream &os) const" (identifier) "dump" (parameter_list) "(std::ostream &os)" (() "(" (parameter_declaration) "std::ostream &os" (type_identifier) "std" (ERROR) "::ostream &" (:) ":" (:) ":" (identifier) "ostream" (&) "&" (identifier) "os" ()) ")" (identifier) "const" (compound_statement) "{\n size_t i;\n for(i=0;i<count.size();i++)\n os << "count[" <<i<<":"<<count[i]<<std::endl;\n }" ({) "{" (declaration) "size_t i;" (primitive_type) "size_t" (identifier) "i" (;) ";" (for_statement) "for(i=0;i<count.size();i++)\n os << "count[" <<i<<":"<<count[i]<<std::endl;" (for) "for" (() "(" (assignment_expression) "i=0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i<count.size()" (identifier) "i" (<) "<" (call_expression) "count.size()" (field_expression) "count.size" (identifier) "count" (.) "." (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (expression_statement) "os << "count[" <<i<<":"<<count[i]<<std::endl;" (binary_expression) "os << "count[" <<i<<":"<<count[i]<<std" (binary_expression) "os << "count[" <<i<<":"<<count[i]" (binary_expression) "os << "count[" <<i<<":"" (binary_expression) "os << "count[" <<i" (binary_expression) "os << "count["" (identifier) "os" (<<) "<<" (string_literal) ""count["" (") """ (string_content) "count[" (") """ (<<) "<<" (identifier) "i" (<<) "<<" (string_literal) "":"" (") """ (string_content) ":" (") """ (<<) "<<" (subscript_expression) "count[i]" (identifier) "count" ([) "[" (identifier) "i" (]) "]" (<<) "<<" (identifier) "std" (ERROR) "::endl" (:) ":" (:) ":" (identifier) "endl" (;) ";" (}) "}" (ERROR) "float calcEntropy() const" (primitive_type) "float" (function_declarator) "calcEntropy()" (identifier) "calcEntropy" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{\n //std::cout << "calcEntropy, totalCount=" << totalCount << std::endl;\n if(!totalCount) return 0;\n //dump(std::cout);\n\n float h=0,logN=log((double)totalCount);\n size_t i;\n for(i=0;i<count.size();i++)\n if(count[i])\n h += count[i]*(log((double)count[i])-logN);\n\n return -h / (totalCount*log(2.0));\n }" ({) "{" (comment) "//std::cout << "calcEntropy, totalCount=" << totalCount << std::endl;" (if_statement) "if(!totalCount) return 0;" (if) "if" (parenthesized_expression) "(!totalCount)" (() "(" (unary_expression) "!totalCount" (!) "!" (identifier) "totalCount" ()) ")" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (comment) "//dump(std::cout);" (declaration) "float h=0,logN=log((double)totalCount);" (primitive_type) "float" (init_declarator) "h=0" (identifier) "h" (=) "=" (number_literal) "0" (,) "," (init_declarator) "logN=log((double)totalCount)" (identifier) "logN" (=) "=" (call_expression) "log((double)totalCount)" (identifier) "log" (argument_list) "((double)totalCount)" (() "(" (cast_expression) "(double)totalCount" (() "(" (type_descriptor) "double" (primitive_type) "double" ()) ")" (identifier) "totalCount" ()) ")" (;) ";" (declaration) "size_t i;" (primitive_type) "size_t" (identifier) "i" (;) ";" (for_statement) "for(i=0;i<count.size();i++)\n if(count[i])\n h += count[i]*(log((double)count[i])-logN);" (for) "for" (() "(" (assignment_expression) "i=0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i<count.size()" (identifier) "i" (<) "<" (call_expression) "count.size()" (field_expression) "count.size" (identifier) "count" (.) "." (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (if_statement) "if(count[i])\n h += count[i]*(log((double)count[i])-logN);" (if) "if" (parenthesized_expression) "(count[i])" (() "(" (subscript_expression) "count[i]" (identifier) "count" ([) "[" (identifier) "i" (]) "]" ()) ")" (expression_statement) "h += count[i]*(log((double)count[i])-logN);" (assignment_expression) "h += count[i]*(log((double)count[i])-logN)" (identifier) "h" (+=) "+=" (binary_expression) "count[i]*(log((double)count[i])-logN)" (subscript_expression) "count[i]" (identifier) "count" ([) "[" (identifier) "i" (]) "]" (*) "*" (parenthesized_expression) "(log((double)count[i])-logN)" (() "(" (binary_expression) "log((double)count[i])-logN" (call_expression) "log((double)count[i])" (identifier) "log" (argument_list) "((double)count[i])" (() "(" (cast_expression) "(double)count[i]" (() "(" (type_descriptor) "double" (primitive_type) "double" ()) ")" (subscript_expression) "count[i]" (identifier) "count" ([) "[" (identifier) "i" (]) "]" ()) ")" (-) "-" (identifier) "logN" ()) ")" (;) ";" (return_statement) "return -h / (totalCount*log(2.0));" (return) "return" (binary_expression) "-h / (totalCount*log(2.0))" (unary_expression) "-h" (-) "-" (identifier) "h" (/) "/" (parenthesized_expression) "(totalCount*log(2.0))" (() "(" (binary_expression) "totalCount*log(2.0)" (identifier) "totalCount" (*) "*" (call_expression) "log(2.0)" (identifier) "log" (argument_list) "(2.0)" (() "(" (number_literal) "2.0" ()) ")" ()) ")" (;) ";" (}) "}" (comment) "// the absolute difference of two histograms" (function_definition) "float calcDifference(const Histogram &o) const{\n float d=0;\n float cumd=0;\n size_t i;\n\n for(i=0;i<count.size();i++){\n d = ((float)count[i])/totalCount;\n // std::cout << d << std::endl;\n d -= ((float)o.count[i])/o.totalCount;\n cumd += (d>0) ? d : -d;\n }\n \n return cumd;\n }" (primitive_type) "float" (function_declarator) "calcDifference(const Histogram &o) const" (identifier) "calcDifference" (parameter_list) "(const Histogram &o)" (() "(" (parameter_declaration) "const Histogram &o" (type_qualifier) "const" (const) "const" (type_identifier) "Histogram" (ERROR) "&" (&) "&" (identifier) "o" ()) ")" (identifier) "const" (compound_statement) "{\n float d=0;\n float cumd=0;\n size_t i;\n\n for(i=0;i<count.size();i++){\n d = ((float)count[i])/totalCount;\n // std::cout << d << std::endl;\n d -= ((float)o.count[i])/o.totalCount;\n cumd += (d>0) ? d : -d;\n }\n \n return cumd;\n }" ({) "{" (declaration) "float d=0;" (primitive_type) "float" (init_declarator) "d=0" (identifier) "d" (=) "=" (number_literal) "0" (;) ";" (declaration) "float cumd=0;" (primitive_type) "float" (init_declarator) "cumd=0" (identifier) "cumd" (=) "=" (number_literal) "0" (;) ";" (declaration) "size_t i;" (primitive_type) "size_t" (identifier) "i" (;) ";" (for_statement) "for(i=0;i<count.size();i++){\n d = ((float)count[i])/totalCount;\n // std::cout << d << std::endl;\n d -= ((float)o.count[i])/o.totalCount;\n cumd += (d>0) ? d : -d;\n }" (for) "for" (() "(" (assignment_expression) "i=0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i<count.size()" (identifier) "i" (<) "<" (call_expression) "count.size()" (field_expression) "count.size" (identifier) "count" (.) "." (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n d = ((float)count[i])/totalCount;\n // std::cout << d << std::endl;\n d -= ((float)o.count[i])/o.totalCount;\n cumd += (d>0) ? d : -d;\n }" ({) "{" (expression_statement) "d = ((float)count[i])/totalCount;" (assignment_expression) "d = ((float)count[i])/totalCount" (identifier) "d" (=) "=" (binary_expression) "((float)count[i])/totalCount" (parenthesized_expression) "((float)count[i])" (() "(" (cast_expression) "(float)count[i]" (() "(" (type_descriptor) "float" (primitive_type) "float" ()) ")" (subscript_expression) "count[i]" (identifier) "count" ([) "[" (identifier) "i" (]) "]" ()) ")" (/) "/" (identifier) "totalCount" (;) ";" (comment) "// std::cout << d << std::endl;" (expression_statement) "d -= ((float)o.count[i])/o.totalCount;" (assignment_expression) "d -= ((float)o.count[i])/o.totalCount" (identifier) "d" (-=) "-=" (binary_expression) "((float)o.count[i])/o.totalCount" (parenthesized_expression) "((float)o.count[i])" (() "(" (cast_expression) "(float)o.count[i]" (() "(" (type_descriptor) "float" (primitive_type) "float" ()) ")" (subscript_expression) "o.count[i]" (field_expression) "o.count" (identifier) "o" (.) "." (field_identifier) "count" ([) "[" (identifier) "i" (]) "]" ()) ")" (/) "/" (field_expression) "o.totalCount" (identifier) "o" (.) "." (field_identifier) "totalCount" (;) ";" (expression_statement) "cumd += (d>0) ? d : -d;" (assignment_expression) "cumd += (d>0) ? d : -d" (identifier) "cumd" (+=) "+=" (conditional_expression) "(d>0) ? d : -d" (parenthesized_expression) "(d>0)" (() "(" (binary_expression) "d>0" (identifier) "d" (>) ">" (number_literal) "0" ()) ")" (?) "?" (identifier) "d" (:) ":" (unary_expression) "-d" (-) "-" (identifier) "d" (;) ";" (}) "}" (return_statement) "return cumd;" (return) "return" (identifier) "cumd" (;) ";" (}) "}" (declaration) "int totalCount;" (primitive_type) "int" (identifier) "totalCount" (;) ";" (labeled_statement) "std::vector<int> count;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "vector<int> count;" (binary_expression) "vector<int> count" (binary_expression) "vector<int" (identifier) "vector" (<) "<" (identifier) "int" (>) ">" (identifier) "count" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "class ScaleSal : public Segmentation {\n public:\n /// \n ScaleSal();\n\n /// \n ScaleSal(bool b) : Segmentation(b) {}\n\n /// \n virtual ~ScaleSal();\n\n /// Here are the pure virtuals overloaded:\n \n ///\n virtual Segmentation *Create() const { return new ScaleSal(); } \n\n ///\n virtual const char *Version() const;\n\n ///\n virtual void UsageInfo(ostream& = cout) const;\n\n ///\n virtual const char *MethodName(bool l = false) const {\n return l?"ScaleSal":"ss"; }" (type_identifier) "class" (ERROR) "ScaleSal : public" (identifier) "ScaleSal" (:) ":" (identifier) "public" (identifier) "Segmentation" (compound_statement) "{\n public:\n /// \n ScaleSal();\n\n /// \n ScaleSal(bool b) : Segmentation(b) {}\n\n /// \n virtual ~ScaleSal();\n\n /// Here are the pure virtuals overloaded:\n \n ///\n virtual Segmentation *Create() const { return new ScaleSal(); } \n\n ///\n virtual const char *Version() const;\n\n ///\n virtual void UsageInfo(ostream& = cout) const;\n\n ///\n virtual const char *MethodName(bool l = false) const {\n return l?"ScaleSal":"ss"; }" ({) "{" (labeled_statement) "public:\n /// \n ScaleSal();" (statement_identifier) "public" (:) ":" (comment) "/// " (expression_statement) "ScaleSal();" (call_expression) "ScaleSal()" (identifier) "ScaleSal" (argument_list) "()" (() "(" ()) ")" (;) ";" (comment) "/// " (function_definition) "ScaleSal(bool b) : Segmentation(b) {}" (macro_type_specifier) "ScaleSal(bool b)" (identifier) "ScaleSal" (() "(" (type_descriptor) "bool" (primitive_type) "bool" (ERROR) "b" (identifier) "b" ()) ")" (ERROR) ":" (:) ":" (function_declarator) "Segmentation(b)" (identifier) "Segmentation" (parameter_list) "(b)" (() "(" (parameter_declaration) "b" (type_identifier) "b" ()) ")" (compound_statement) "{}" ({) "{" (}) "}" (comment) "/// " (declaration) "virtual ~ScaleSal();" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "ScaleSal()" (identifier) "ScaleSal" (parameter_list) "()" (() "(" ()) ")" (;) ";" (comment) "/// Here are the pure virtuals overloaded:" (comment) "///" (function_definition) "virtual Segmentation *Create() const { return new ScaleSal(); }" (type_identifier) "virtual" (ERROR) "Segmentation" (identifier) "Segmentation" (pointer_declarator) "*Create() const" (*) "*" (function_declarator) "Create() const" (identifier) "Create" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{ return new ScaleSal(); }" ({) "{" (return_statement) "return new ScaleSal();" (return) "return" (ERROR) "new" (identifier) "new" (call_expression) "ScaleSal()" (identifier) "ScaleSal" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (comment) "///" (declaration) "virtual const char *Version() const;" (type_identifier) "virtual" (type_qualifier) "const" (const) "const" (ERROR) "char" (identifier) "char" (pointer_declarator) "*Version() const" (*) "*" (function_declarator) "Version() const" (identifier) "Version" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (comment) "///" (declaration) "virtual void" (type_identifier) "virtual" (identifier) "void" (;) "" (expression_statement) "UsageInfo(ostream& = cout) const;" (call_expression) "UsageInfo(ostream& = cout)" (identifier) "UsageInfo" (argument_list) "(ostream& = cout)" (() "(" (binary_expression) "ostream& = cout" (identifier) "ostream" (&) "&" (ERROR) "=" (=) "=" (identifier) "cout" ()) ")" (ERROR) "const" (identifier) "const" (;) ";" (comment) "///" (declaration) "virtual const char *MethodName(bool l = false) const {\n return l?"ScaleSal":"ss";" (type_identifier) "virtual" (type_qualifier) "const" (const) "const" (ERROR) "char" (identifier) "char" (init_declarator) "*MethodName(bool l = false) const {\n return l?"ScaleSal":"ss"" (pointer_declarator) "*MethodName(bool l" (*) "*" (function_declarator) "MethodName(bool l" (identifier) "MethodName" (parameter_list) "(bool l" (() "(" (parameter_declaration) "bool l" (primitive_type) "bool" (identifier) "l" ()) "" (=) "=" (ERROR) "false) const" (false) "false" ()) ")" (const) "const" (initializer_list) "{\n return l?"ScaleSal":"ss"" ({) "{" (conditional_expression) "return l?"ScaleSal":"ss"" (identifier) "return" (ERROR) "l" (identifier) "l" (?) "?" (string_literal) ""ScaleSal"" (") """ (string_content) "ScaleSal" (") """ (:) ":" (string_literal) ""ss"" (") """ (string_content) "ss" (") """ (}) "" (;) ";" (}) "}" (comment) "///" (function_definition) "virtual const char *Description() const { return "scalesal"; }" (type_identifier) "virtual" (type_qualifier) "const" (const) "const" (ERROR) "char" (identifier) "char" (pointer_declarator) "*Description() const" (*) "*" (function_declarator) "Description() const" (identifier) "Description" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{ return "scalesal"; }" ({) "{" (return_statement) "return "scalesal";" (return) "return" (string_literal) ""scalesal"" (") """ (string_content) "scalesal" (") """ (;) ";" (}) "}" (comment) "///" (declaration) "virtual bool Process();" (type_identifier) "virtual" (ERROR) "bool" (identifier) "bool" (function_declarator) "Process()" (identifier) "Process" (parameter_list) "()" (() "(" ()) ")" (;) ";" (comment) "///" (declaration) "virtual int ProcessOptions(int, char**);" (type_identifier) "virtual" (ERROR) "int" (identifier) "int" (function_declarator) "ProcessOptions(int, char**)" (identifier) "ProcessOptions" (parameter_list) "(int, char**)" (() "(" (parameter_declaration) "int" (primitive_type) "int" (,) "," (parameter_declaration) "char**" (primitive_type) "char" (abstract_pointer_declarator) "**" (*) "*" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (labeled_statement) "protected:\n\n void createDeltaLists(int startScale, int stopScale);" (statement_identifier) "protected" (:) ":" (declaration) "void createDeltaLists(int startScale, int stopScale);" (primitive_type) "void" (function_declarator) "createDeltaLists(int startScale, int stopScale)" (identifier) "createDeltaLists" (parameter_list) "(int startScale, int stopScale)" (() "(" (parameter_declaration) "int startScale" (primitive_type) "int" (identifier) "startScale" (,) "," (parameter_declaration) "int stopScale" (primitive_type) "int" (identifier) "stopScale" ()) ")" (;) ";" (function_definition) "void addPoint(Histogram &h,int x, int y){\n //std::cout << "addPoint(" << x <<","<<y<<")"<<std::endl;\n if(!getImg()->coordinates_ok(x,y)) return;\n //std::cout << "coordinates (" << x << "," << y << ")" << std::endl;\n h.addPoint(quantised_image[x+y*getImg()->getWidth()]);\n }" (primitive_type) "void" (function_declarator) "addPoint(Histogram &h,int x, int y)" (identifier) "addPoint" (parameter_list) "(Histogram &h,int x, int y)" (() "(" (parameter_declaration) "Histogram &h" (type_identifier) "Histogram" (ERROR) "&" (&) "&" (identifier) "h" (,) "," (parameter_declaration) "int x" (primitive_type) "int" (identifier) "x" (,) "," (parameter_declaration) "int y" (primitive_type) "int" (identifier) "y" ()) ")" (compound_statement) "{\n //std::cout << "addPoint(" << x <<","<<y<<")"<<std::endl;\n if(!getImg()->coordinates_ok(x,y)) return;\n //std::cout << "coordinates (" << x << "," << y << ")" << std::endl;\n h.addPoint(quantised_image[x+y*getImg()->getWidth()]);\n }" ({) "{" (comment) "//std::cout << "addPoint(" << x <<","<<y<<")"<<std::endl;" (if_statement) "if(!getImg()->coordinates_ok(x,y)) return;" (if) "if" (parenthesized_expression) "(!getImg()->coordinates_ok(x,y))" (() "(" (unary_expression) "!getImg()->coordinates_ok(x,y)" (!) "!" (call_expression) "getImg()->coordinates_ok(x,y)" (field_expression) "getImg()->coordinates_ok" (call_expression) "getImg()" (identifier) "getImg" (argument_list) "()" (() "(" ()) ")" (->) "->" (field_identifier) "coordinates_ok" (argument_list) "(x,y)" (() "(" (identifier) "x" (,) "," (identifier) "y" ()) ")" ()) ")" (return_statement) "return;" (return) "return" (;) ";" (comment) "//std::cout << "coordinates (" << x << "," << y << ")" << std::endl;" (expression_statement) "h.addPoint(quantised_image[x+y*getImg()->getWidth()]);" (call_expression) "h.addPoint(quantised_image[x+y*getImg()->getWidth()])" (field_expression) "h.addPoint" (identifier) "h" (.) "." (field_identifier) "addPoint" (argument_list) "(quantised_image[x+y*getImg()->getWidth()])" (() "(" (subscript_expression) "quantised_image[x+y*getImg()->getWidth()]" (identifier) "quantised_image" ([) "[" (binary_expression) "x+y*getImg()->getWidth()" (identifier) "x" (+) "+" (binary_expression) "y*getImg()->getWidth()" (identifier) "y" (*) "*" (call_expression) "getImg()->getWidth()" (field_expression) "getImg()->getWidth" (call_expression) "getImg()" (identifier) "getImg" (argument_list) "()" (() "(" ()) ")" (->) "->" (field_identifier) "getWidth" (argument_list) "()" (() "(" ()) ")" (]) "]" ()) ")" (;) ";" (}) "}" (declaration) "void quantise();" (primitive_type) "void" (function_declarator) "quantise()" (identifier) "quantise" (parameter_list) "()" (() "(" ()) ")" (;) ";" (ERROR) "int qsteps() const" (primitive_type) "int" (function_declarator) "qsteps()" (identifier) "qsteps" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{ return 1 << 9;}" ({) "{" (return_statement) "return 1 << 9;" (return) "return" (binary_expression) "1 << 9" (number_literal) "1" (<<) "<<" (number_literal) "9" (;) ";" (}) "}" (declaration) "void collectSalientPoints(int x, int y,int minscale,int maxscale);" (primitive_type) "void" (function_declarator) "collectSalientPoints(int x, int y,int minscale,int maxscale)" (identifier) "collectSalientPoints" (parameter_list) "(int x, int y,int minscale,int maxscale)" (() "(" (parameter_declaration) "int x" (primitive_type) "int" (identifier) "x" (,) "," (parameter_declaration) "int y" (primitive_type) "int" (identifier) "y" (,) "," (parameter_declaration) "int minscale" (primitive_type) "int" (identifier) "minscale" (,) "," (parameter_declaration) "int maxscale" (primitive_type) "int" (identifier) "maxscale" ()) ")" (;) ";" (declaration) "void kadirClustering();" (primitive_type) "void" (function_declarator) "kadirClustering()" (identifier) "kadirClustering" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void labelRegions();" (primitive_type) "void" (function_declarator) "labelRegions()" (identifier) "labelRegions" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void findKNearest(std::vector<salCluster> **sList, \n std::vector<salCluster> **result, int K);" (primitive_type) "void" (function_declarator) "findKNearest(std::vector<salCluster> **sList, \n std::vector<salCluster> **result, int K)" (identifier) "findKNearest" (parameter_list) "(std::vector<salCluster> **sList, \n std::vector<salCluster> **result, int K)" (() "(" (parameter_declaration) "std::vector<salCluster> **sList" (type_identifier) "std" (ERROR) "::vector<salCluster>" (:) ":" (:) ":" (identifier) "vector" (<) "<" (identifier) "salCluster" (>) ">" (pointer_declarator) "**sList" (*) "*" (pointer_declarator) "*sList" (*) "*" (identifier) "sList" (,) "," (parameter_declaration) "std::vector<salCluster> **result" (type_identifier) "std" (ERROR) "::vector<salCluster>" (:) ":" (:) ":" (identifier) "vector" (<) "<" (identifier) "salCluster" (>) ">" (pointer_declarator) "**result" (*) "*" (pointer_declarator) "*result" (*) "*" (identifier) "result" (,) "," (parameter_declaration) "int K" (primitive_type) "int" (identifier) "K" ()) ")" (;) ";" (comment) "// void fftw_test();" (comment) "// static void multiplyComplexVector(fftw_complex *v1, " (comment) "// const fftw_complex *v2, int len);" (declaration) "int minscale,maxscale;" (primitive_type) "int" (identifier) "minscale" (,) "," (identifier) "maxscale" (;) ";" (declaration) "int quantLevels;" (primitive_type) "int" (identifier) "quantLevels" (;) ";" (comment) "// these lists list the coordinates of the pixels " (comment) "// that form the arc of a circle between angles (0,pi/4]" (labeled_statement) "std::vector<coordList> deltaList;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "vector<coordList> deltaList;" (binary_expression) "vector<coordList> deltaList" (binary_expression) "vector<coordList" (identifier) "vector" (<) "<" (identifier) "coordList" (>) ">" (identifier) "deltaList" (;) ";" (labeled_statement) "std::vector<salCluster> *saliencyAcc;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "vector<salCluster> *saliencyAcc;" (binary_expression) "vector<salCluster> *saliencyAcc" (binary_expression) "vector<salCluster" (identifier) "vector" (<) "<" (identifier) "salCluster" (>) ">" (pointer_expression) "*saliencyAcc" (*) "*" (identifier) "saliencyAcc" (;) ";" (labeled_statement) "std::vector<salCluster> *clusteredSal;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "vector<salCluster> *clusteredSal;" (binary_expression) "vector<salCluster> *clusteredSal" (binary_expression) "vector<salCluster" (identifier) "vector" (<) "<" (identifier) "salCluster" (>) ">" (pointer_expression) "*clusteredSal" (*) "*" (identifier) "clusteredSal" (;) ";" (declaration) "int *quantised_image;" (primitive_type) "int" (pointer_declarator) "*quantised_image" (*) "*" (identifier) "quantised_image" (;) ";" (declaration) "float maxThusFar;" (primitive_type) "float" (identifier) "maxThusFar" (;) ";" (declaration) "float globalThreshold;" (primitive_type) "float" (identifier) "globalThreshold" (;) ";" (declaration) "float varThreshold;" (primitive_type) "float" (identifier) "varThreshold" (;) ";" (declaration) "int numberOfMeans;" (primitive_type) "int" (identifier) "numberOfMeans" (;) ";" (declaration) "bool skipClustering;" (primitive_type) "bool" (identifier) "skipClustering" (;) ";" (declaration) "int clustersToKeep;" (primitive_type) "int" (identifier) "clustersToKeep" (;) ";" (comment) "// int iterations;" (comment) "// int fftN;" (comment) "// int fftK;" (}) "}" (expression_statement) ";" (;) ";" (ERROR) "}" (}) "}" (comment) "// namespace picsom" (#endif) "#endif" (comment) "// _SCALESAL_H_" (comment) "// Local Variables:" (comment) "// mode: font-lock" (comment) "// End:"
1,650
69
{"language": "c", "success": true, "metadata": {"lines": 183, "avg_line_length": 26.21, "nodes": 981, "errors": 0, "source_hash": "2f725711b3f252739b1aa997f1e00e130688b05b0afdb778a21fc2c91426a85f", "categorized_nodes": 672}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _SCALESAL_H_\n#define _SCALESAL_H_\n\n#include <Segmentation.h>\n#include <stdio.h>\n// #include <fftw3.h>\n\nnamespace picsom {\n\n class XYS{\n \n public:\n XYS(int X,int Y, int S) : x(X),y(Y),s(S) {}; \n short int x;\n short int y;\n short int s;\n };\n\n struct ltXYS{\n bool operator()(const XYS &x1, const XYS &x2) const\n {\n if(x1.x<x2.x) return true;\n if(x1.y<x2.y) return true;\n if(x1.s<x2.s) return true;\n return false;\n }\n };\n\n\n class salPoint: public XYS {\npublic: \n salPoint(int X, int Y, int S,float Sal) : XYS(X,Y,S),sal(Sal){}\n salPoint(const std::pair<XYS,float> &o) : XYS(o.first),sal(o.second){}\n float sal;\n };\n\n bool ltSal(const salPoint &v1,\n\t const salPoint &v2){\n return v1.sal < v2.sal;\n }\n\n bool gtSal(const salPoint &v1,\n\t const salPoint &v2){\n return v1.sal > v2.sal;\n }\n\n\n class salCluster : public salPoint {\n public:\n salCluster(int X, int Y, int S, float Sal) : salPoint(X,Y,S,Sal){}\n salCluster(const std::pair<XYS,float> &o) : salPoint(o){};\n int dist;\n int ind;\n\n int calcSqrDistTo(const XYS &o){\n int d=(x-o.x);\n dist =d*d;\n d=(y-o.y);\n dist += d*d;\n d=(s-o.s);\n dist += d*d;\n return dist;\n }\n\n };\n\n bool clusterCloser(const salCluster &c1,const salCluster &c2){\n // cout << \"comparing distances\" << c1.dist <<\" and \"<<c2.dist << endl;\n return c1.dist < c2.dist;\n }\n\n bool clusterFurther(const salCluster &c1,const salCluster &c2){\n return c1.dist > c2.dist;\n }\n \n\n class Histogram{\n public:\n void resize(int s){count.resize(s);}\n void reset(int s){\n count = std::vector<int>(s,(int)0);\n totalCount=0;\n }\n \n void addPoint(int val){\n // no checking here whether val is a valid index\n //std::cout << \"in Histogram::addPoint(\"<<val<<\")\"<<std::endl;\n count[val]++;\n totalCount++;\n }\n \n void dump(std::ostream &os) const{\n size_t i;\n for(i=0;i<count.size();i++)\n\tos << \"count[\" <<i<<\":\"<<count[i]<<std::endl;\n }\n float calcEntropy() const{\n //std::cout << \"calcEntropy, totalCount=\" << totalCount << std::endl;\n if(!totalCount) return 0;\n //dump(std::cout);\n\n float h=0,logN=log((double)totalCount);\n size_t i;\n for(i=0;i<count.size();i++)\n\tif(count[i])\n\t h += count[i]*(log((double)count[i])-logN);\n\n return -h / (totalCount*log(2.0));\n }\n\n\n // the absolute difference of two histograms\n\n float calcDifference(const Histogram &o) const{\n float d=0;\n float cumd=0;\n size_t i;\n\n for(i=0;i<count.size();i++){\n\td = ((float)count[i])/totalCount;\n\t// std::cout << d << std::endl;\n\td -= ((float)o.count[i])/o.totalCount;\n\tcumd += (d>0) ? d : -d;\n }\n \n return cumd;\n }\n\n int totalCount;\n std::vector<int> count;\n };\n\n\n class ScaleSal : public Segmentation {\n public:\n /// \n ScaleSal();\n\n /// \n ScaleSal(bool b) : Segmentation(b) {}\n\n /// \n virtual ~ScaleSal();\n\n /// Here are the pure virtuals overloaded:\n \n ///\n virtual Segmentation *Create() const { return new ScaleSal(); } \n\n ///\n virtual const char *Version() const;\n\n ///\n virtual void UsageInfo(ostream& = cout) const;\n\n ///\n virtual const char *MethodName(bool l = false) const {\n return l?\"ScaleSal\":\"ss\"; }\n\n ///\n virtual const char *Description() const { return \"scalesal\"; }\n \n ///\n virtual bool Process();\n\n ///\n virtual int ProcessOptions(int, char**);\n \n protected:\n\n void createDeltaLists(int startScale, int stopScale);\n\n void addPoint(Histogram &h,int x, int y){\n //std::cout << \"addPoint(\" << x <<\",\"<<y<<\")\"<<std::endl;\n if(!getImg()->coordinates_ok(x,y)) return;\n //std::cout << \"coordinates (\" << x << \",\" << y << \")\" << std::endl;\n h.addPoint(quantised_image[x+y*getImg()->getWidth()]);\n }\n\n void quantise();\n\n int qsteps() const { return 1 << 9;}\n\n void collectSalientPoints(int x, int y,int minscale,int maxscale);\n\n void kadirClustering();\n\n void labelRegions();\n\n void findKNearest(std::vector<salCluster> **sList, \n\t\t std::vector<salCluster> **result, int K);\n \n // void fftw_test();\n\n // static void multiplyComplexVector(fftw_complex *v1, \n //\t\t\t const fftw_complex *v2, int len);\n\n int minscale,maxscale;\n int quantLevels;\n\n // these lists list the coordinates of the pixels \n // that form the arc of a circle between angles (0,pi/4]\n\n std::vector<coordList> deltaList;\n\n std::vector<salCluster> *saliencyAcc;\n std::vector<salCluster> *clusteredSal;\n\n int *quantised_image;\n\n float maxThusFar;\n float globalThreshold;\n float varThreshold;\n int numberOfMeans;\n bool skipClustering;\n\n int clustersToKeep;\n\n // int iterations;\n // int fftN;\n // int fftK;\n\n };\n\n} // namespace picsom\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 980], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 227, "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": "_SCALESAL_H_", "parent": 0, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 20}}, {"id": 3, "type": "preproc_def", "text": "#define _SCALESAL_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": "_SCALESAL_H_", "parent": 3, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 20}}, {"id": 6, "type": "preproc_include", "text": "#include <Segmentation.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": "system_lib_string", "text": "<Segmentation.h>", "parent": 6, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 25}}, {"id": 9, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<stdio.h>", "parent": 9, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 18}}, {"id": 12, "type": "function_definition", "text": "namespace picsom {\n\n class XYS{\n \n public:\n XYS(int X,int Y, int S) : x(X),y(Y),s(S) {}; \n short int x;\n short int y;\n short int s;\n };\n\n struct ltXYS{\n bool operator()(const XYS &x1, const XYS &x2) const\n {\n if(x1.x<x2.x) return true;\n if(x1.y<x2.y) return true;\n if(x1.s<x2.s) return true;\n return false;\n }\n };\n\n\n class salPoint: public XYS {\npublic: \n salPoint(int X, int Y, int S,float Sal) : XYS(X,Y,S),sal(Sal){}\n salPoint(const std::pair<XYS,float> &o) : XYS(o.first),sal(o.second){}\n float sal;\n };\n\n bool ltSal(const salPoint &v1,\n\t const salPoint &v2){\n return v1.sal < v2.sal;\n }\n\n bool gtSal(const salPoint &v1,\n\t const salPoint &v2){\n return v1.sal > v2.sal;\n }\n\n\n class salCluster : public salPoint {\n public:\n salCluster(int X, int Y, int S, float Sal) : salPoint(X,Y,S,Sal){}\n salCluster(const std::pair<XYS,float> &o) : salPoint(o){};\n int dist;\n int ind;\n\n int calcSqrDistTo(const XYS &o){\n int d=(x-o.x);\n dist =d*d;\n d=(y-o.y);\n dist += d*d;\n d=(s-o.s);\n dist += d*d;\n return dist;\n }\n\n };\n\n bool clusterCloser(const salCluster &c1,const salCluster &c2){\n // cout << \"comparing distances\" << c1.dist <<\" and \"<<c2.dist << endl;\n return c1.dist < c2.dist;\n }\n\n bool clusterFurther(const salCluster &c1,const salCluster &c2){\n return c1.dist > c2.dist;\n }\n \n\n class Histogram{\n public:\n void resize(int s){count.resize(s);}\n void reset(int s){\n count = std::vector<int>(s,(int)0);\n totalCount=0;\n }\n \n void addPoint(int val){\n // no checking here whether val is a valid index\n //std::cout << \"in Histogram::addPoint(\"<<val<<\")\"<<std::endl;\n count[val]++;\n totalCount++;\n }\n \n void dump(std::ostream &os) const{\n size_t i;\n for(i=0;i<count.size();i++)\n\tos << \"count[\" <<i<<\":\"<<count[i]<<std::endl;\n }\n float calcEntropy() const{\n //std::cout << \"calcEntropy, totalCount=\" << totalCount << std::endl;\n if(!totalCount) return 0;\n //dump(std::cout);\n\n float h=0,logN=log((double)totalCount);\n size_t i;\n for(i=0;i<count.size();i++)\n\tif(count[i])\n\t h += count[i]*(log((double)count[i])-logN);\n\n return -h / (totalCount*log(2.0));\n }\n\n\n // the absolute difference of two histograms\n\n float calcDifference(const Histogram &o) const{\n float d=0;\n float cumd=0;\n size_t i;\n\n for(i=0;i<count.size();i++){\n\td = ((float)count[i])/totalCount;\n\t// std::cout << d << std::endl;\n\td -= ((float)o.count[i])/o.totalCount;\n\tcumd += (d>0) ? d : -d;\n }\n \n return cumd;\n }\n\n int totalCount;\n std::vector<int> count;\n };\n\n\n class ScaleSal : public Segmentation {\n public:\n /// \n ScaleSal();\n\n /// \n ScaleSal(bool b) : Segmentation(b) {}\n\n /// \n virtual ~ScaleSal();\n\n /// Here are the pure virtuals overloaded:\n \n ///\n virtual Segmentation *Create() const { return new ScaleSal(); } \n\n ///\n virtual const char *Version() const;\n\n ///\n virtual void UsageInfo(ostream& = cout) const;\n\n ///\n virtual const char *MethodName(bool l = false) const {\n return l?\"ScaleSal\":\"ss\"; }\n\n ///\n virtual const char *Description() const { return \"scalesal\"; }\n \n ///\n virtual bool Process();\n\n ///\n virtual int ProcessOptions(int, char**);\n \n protected:\n\n void createDeltaLists(int startScale, int stopScale);\n\n void addPoint(Histogram &h,int x, int y){\n //std::cout << \"addPoint(\" << x <<\",\"<<y<<\")\"<<std::endl;\n if(!getImg()->coordinates_ok(x,y)) return;\n //std::cout << \"coordinates (\" << x << \",\" << y << \")\" << std::endl;\n h.addPoint(quantised_image[x+y*getImg()->getWidth()]);\n }\n\n void quantise();\n\n int qsteps() const { return 1 << 9;}\n\n void collectSalientPoints(int x, int y,int minscale,int maxscale);\n\n void kadirClustering();\n\n void labelRegions();\n\n void findKNearest(std::vector<salCluster> **sList, \n\t\t std::vector<salCluster> **result, int K);\n \n // void fftw_test();\n\n // static void multiplyComplexVector(fftw_complex *v1, \n //\t\t\t const fftw_complex *v2, int len);\n\n int minscale,maxscale;\n int quantLevels;\n\n // these lists list the coordinates of the pixels \n // that form the arc of a circle between angles (0,pi/4]\n\n std::vector<coordList> deltaList;\n\n std::vector<salCluster> *saliencyAcc;\n std::vector<salCluster> *clusteredSal;\n\n int *quantised_image;\n\n float maxThusFar;\n float globalThreshold;\n float varThreshold;\n int numberOfMeans;\n bool skipClustering;\n\n int clustersToKeep;\n\n // int iterations;\n // int fftN;\n // int fftK;\n\n }", "parent": 0, "children": [13, 14], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 224, "column": 3}}, {"id": 13, "type": "type_identifier", "text": "namespace", "parent": 12, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 9}}, {"id": 14, "type": "identifier", "text": "picsom", "parent": 12, "children": [], "start_point": {"row": 9, "column": 10}, "end_point": {"row": 9, "column": 16}}, {"id": 15, "type": "function_definition", "text": "class XYS{\n \n public:\n XYS(int X,int Y, int S) : x(X),y(Y),s(S) {}; \n short int x;\n short int y;\n short int s;\n }", "parent": 12, "children": [16], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 18, "column": 3}}, {"id": 16, "type": "identifier", "text": "XYS", "parent": 15, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 11}}, {"id": 17, "type": "labeled_statement", "text": "public:\n XYS(int X,int Y, int S) : x(X),y(Y),s(S) {};", "parent": 15, "children": [18], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 14, "column": 48}}, {"id": 18, "type": "declaration", "text": "XYS(int X,int Y, int S) : x(X),y(Y),s(S) {};", "parent": 17, "children": [19, 23, 24, 25, 27, 30, 35, 40], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 48}}, {"id": 19, "type": "macro_type_specifier", "text": "XYS(int", "parent": 18, "children": [20, 21], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 11}}, {"id": 20, "type": "identifier", "text": "XYS", "parent": 19, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 7}}, {"id": 21, "type": "type_descriptor", "text": "int", "parent": 19, "children": [22], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 11}}, {"id": 22, "type": "primitive_type", "text": "int", "parent": 21, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 11}}, {"id": 23, "type": "identifier", "text": "X", "parent": 18, "children": [], "start_point": {"row": 14, "column": 12}, "end_point": {"row": 14, "column": 13}}, {"id": 24, "type": "identifier", "text": "int", "parent": 18, "children": [], "start_point": {"row": 14, "column": 14}, "end_point": {"row": 14, "column": 17}}, {"id": 25, "type": "ERROR", "text": "Y", "parent": 18, "children": [26], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 19}}, {"id": 26, "type": "identifier", "text": "Y", "parent": 25, "children": [], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 19}}, {"id": 27, "type": "ERROR", "text": "int S) :", "parent": 18, "children": [28, 29], "start_point": {"row": 14, "column": 21}, "end_point": {"row": 14, "column": 29}}, {"id": 28, "type": "identifier", "text": "int", "parent": 27, "children": [], "start_point": {"row": 14, "column": 21}, "end_point": {"row": 14, "column": 24}}, {"id": 29, "type": "identifier", "text": "S", "parent": 27, "children": [], "start_point": {"row": 14, "column": 25}, "end_point": {"row": 14, "column": 26}}, {"id": 30, "type": "function_declarator", "text": "x(X)", "parent": 18, "children": [31, 32], "start_point": {"row": 14, "column": 30}, "end_point": {"row": 14, "column": 34}}, {"id": 31, "type": "identifier", "text": "x", "parent": 30, "children": [], "start_point": {"row": 14, "column": 30}, "end_point": {"row": 14, "column": 31}}, {"id": 32, "type": "parameter_list", "text": "(X)", "parent": 30, "children": [33], "start_point": {"row": 14, "column": 31}, "end_point": {"row": 14, "column": 34}}, {"id": 33, "type": "parameter_declaration", "text": "X", "parent": 32, "children": [34], "start_point": {"row": 14, "column": 32}, "end_point": {"row": 14, "column": 33}}, {"id": 34, "type": "type_identifier", "text": "X", "parent": 33, "children": [], "start_point": {"row": 14, "column": 32}, "end_point": {"row": 14, "column": 33}}, {"id": 35, "type": "function_declarator", "text": "y(Y)", "parent": 18, "children": [36, 37], "start_point": {"row": 14, "column": 35}, "end_point": {"row": 14, "column": 39}}, {"id": 36, "type": "identifier", "text": "y", "parent": 35, "children": [], "start_point": {"row": 14, "column": 35}, "end_point": {"row": 14, "column": 36}}, {"id": 37, "type": "parameter_list", "text": "(Y)", "parent": 35, "children": [38], "start_point": {"row": 14, "column": 36}, "end_point": {"row": 14, "column": 39}}, {"id": 38, "type": "parameter_declaration", "text": "Y", "parent": 37, "children": [39], "start_point": {"row": 14, "column": 37}, "end_point": {"row": 14, "column": 38}}, {"id": 39, "type": "type_identifier", "text": "Y", "parent": 38, "children": [], "start_point": {"row": 14, "column": 37}, "end_point": {"row": 14, "column": 38}}, {"id": 40, "type": "ERROR", "text": ",s(S) {}", "parent": 18, "children": [41], "start_point": {"row": 14, "column": 39}, "end_point": {"row": 14, "column": 47}}, {"id": 41, "type": "function_declarator", "text": "s(S)", "parent": 40, "children": [42, 43], "start_point": {"row": 14, "column": 40}, "end_point": {"row": 14, "column": 44}}, {"id": 42, "type": "identifier", "text": "s", "parent": 41, "children": [], "start_point": {"row": 14, "column": 40}, "end_point": {"row": 14, "column": 41}}, {"id": 43, "type": "parameter_list", "text": "(S)", "parent": 41, "children": [44], "start_point": {"row": 14, "column": 41}, "end_point": {"row": 14, "column": 44}}, {"id": 44, "type": "parameter_declaration", "text": "S", "parent": 43, "children": [45], "start_point": {"row": 14, "column": 42}, "end_point": {"row": 14, "column": 43}}, {"id": 45, "type": "type_identifier", "text": "S", "parent": 44, "children": [], "start_point": {"row": 14, "column": 42}, "end_point": {"row": 14, "column": 43}}, {"id": 46, "type": "declaration", "text": "short int x;", "parent": 15, "children": [47, 50], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 16}}, {"id": 47, "type": "sized_type_specifier", "text": "short int", "parent": 46, "children": [48, 49], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 13}}, {"id": 48, "type": "short", "text": "short", "parent": 47, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 9}}, {"id": 49, "type": "primitive_type", "text": "int", "parent": 47, "children": [], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 13}}, {"id": 50, "type": "identifier", "text": "x", "parent": 46, "children": [], "start_point": {"row": 15, "column": 14}, "end_point": {"row": 15, "column": 15}}, {"id": 51, "type": "declaration", "text": "short int y;", "parent": 15, "children": [52, 55], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 16}}, {"id": 52, "type": "sized_type_specifier", "text": "short int", "parent": 51, "children": [53, 54], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 13}}, {"id": 53, "type": "short", "text": "short", "parent": 52, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 9}}, {"id": 54, "type": "primitive_type", "text": "int", "parent": 52, "children": [], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 13}}, {"id": 55, "type": "identifier", "text": "y", "parent": 51, "children": [], "start_point": {"row": 16, "column": 14}, "end_point": {"row": 16, "column": 15}}, {"id": 56, "type": "declaration", "text": "short int s;", "parent": 15, "children": [57, 60], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 16}}, {"id": 57, "type": "sized_type_specifier", "text": "short int", "parent": 56, "children": [58, 59], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 13}}, {"id": 58, "type": "short", "text": "short", "parent": 57, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 9}}, {"id": 59, "type": "primitive_type", "text": "int", "parent": 57, "children": [], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 13}}, {"id": 60, "type": "identifier", "text": "s", "parent": 56, "children": [], "start_point": {"row": 17, "column": 14}, "end_point": {"row": 17, "column": 15}}, {"id": 61, "type": "struct_specifier", "text": "struct ltXYS{\n bool operator()(const XYS &x1, const XYS &x2) const\n {\n if(x1.x<x2.x) return true;\n if(x1.y<x2.y) return true;\n if(x1.s<x2.s) return true;\n return false;\n }", "parent": 12, "children": [62, 63, 64], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 27, "column": 5}}, {"id": 62, "type": "struct", "text": "struct", "parent": 61, "children": [], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 8}}, {"id": 63, "type": "type_identifier", "text": "ltXYS", "parent": 61, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 14}}, {"id": 64, "type": "ERROR", "text": "{\n bool operator()(const XYS &x1, const XYS &x2) const", "parent": 61, "children": [65, 66], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 21, "column": 55}}, {"id": 65, "type": "primitive_type", "text": "bool", "parent": 64, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 8}}, {"id": 66, "type": "function_declarator", "text": "operator()(const XYS &x1, const XYS &x2)", "parent": 64, "children": [67, 70], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 49}}, {"id": 67, "type": "function_declarator", "text": "operator()", "parent": 66, "children": [68, 69], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 19}}, {"id": 68, "type": "field_identifier", "text": "operator", "parent": 67, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 17}}, {"id": 69, "type": "parameter_list", "text": "()", "parent": 67, "children": [], "start_point": {"row": 21, "column": 17}, "end_point": {"row": 21, "column": 19}}, {"id": 70, "type": "parameter_list", "text": "(const XYS &x1, const XYS &x2)", "parent": 66, "children": [71, 74], "start_point": {"row": 21, "column": 19}, "end_point": {"row": 21, "column": 49}}, {"id": 71, "type": "parameter_declaration", "text": "const XYS &x1", "parent": 70, "children": [72, 73], "start_point": {"row": 21, "column": 20}, "end_point": {"row": 21, "column": 33}}, {"id": 72, "type": "type_identifier", "text": "XYS", "parent": 71, "children": [], "start_point": {"row": 21, "column": 26}, "end_point": {"row": 21, "column": 29}}, {"id": 73, "type": "identifier", "text": "x1", "parent": 71, "children": [], "start_point": {"row": 21, "column": 31}, "end_point": {"row": 21, "column": 33}}, {"id": 74, "type": "parameter_declaration", "text": "const XYS &x2", "parent": 70, "children": [75, 76], "start_point": {"row": 21, "column": 35}, "end_point": {"row": 21, "column": 48}}, {"id": 75, "type": "type_identifier", "text": "XYS", "parent": 74, "children": [], "start_point": {"row": 21, "column": 41}, "end_point": {"row": 21, "column": 44}}, {"id": 76, "type": "identifier", "text": "x2", "parent": 74, "children": [], "start_point": {"row": 21, "column": 46}, "end_point": {"row": 21, "column": 48}}, {"id": 77, "type": "field_declaration", "text": "if(x1.x<x2.x) return true;", "parent": 61, "children": [78, 86], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 32}}, {"id": 78, "type": "macro_type_specifier", "text": "if(x1.x<x2.x)", "parent": 77, "children": [79, 81], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 19}}, {"id": 79, "type": "type_descriptor", "text": "x1", "parent": 78, "children": [80], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 11}}, {"id": 80, "type": "type_identifier", "text": "x1", "parent": 79, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 11}}, {"id": 81, "type": "ERROR", "text": ".x<x2.x", "parent": 78, "children": [82, 83, 84, 85], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 18}}, {"id": 82, "type": "identifier", "text": "x", "parent": 81, "children": [], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 13}}, {"id": 83, "type": "<", "text": "<", "parent": 81, "children": [], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 14}}, {"id": 84, "type": "identifier", "text": "x2", "parent": 81, "children": [], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 16}}, {"id": 85, "type": "identifier", "text": "x", "parent": 81, "children": [], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 18}}, {"id": 86, "type": "ERROR", "text": "true", "parent": 77, "children": [87], "start_point": {"row": 23, "column": 27}, "end_point": {"row": 23, "column": 31}}, {"id": 87, "type": "identifier", "text": "true", "parent": 86, "children": [], "start_point": {"row": 23, "column": 27}, "end_point": {"row": 23, "column": 31}}, {"id": 88, "type": "field_declaration", "text": "if(x1.y<x2.y) return true;", "parent": 61, "children": [89, 97], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 32}}, {"id": 89, "type": "macro_type_specifier", "text": "if(x1.y<x2.y)", "parent": 88, "children": [90, 92], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 19}}, {"id": 90, "type": "type_descriptor", "text": "x1", "parent": 89, "children": [91], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 11}}, {"id": 91, "type": "type_identifier", "text": "x1", "parent": 90, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 11}}, {"id": 92, "type": "ERROR", "text": ".y<x2.y", "parent": 89, "children": [93, 94, 95, 96], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 18}}, {"id": 93, "type": "identifier", "text": "y", "parent": 92, "children": [], "start_point": {"row": 24, "column": 12}, "end_point": {"row": 24, "column": 13}}, {"id": 94, "type": "<", "text": "<", "parent": 92, "children": [], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 14}}, {"id": 95, "type": "identifier", "text": "x2", "parent": 92, "children": [], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 24, "column": 16}}, {"id": 96, "type": "identifier", "text": "y", "parent": 92, "children": [], "start_point": {"row": 24, "column": 17}, "end_point": {"row": 24, "column": 18}}, {"id": 97, "type": "ERROR", "text": "true", "parent": 88, "children": [98], "start_point": {"row": 24, "column": 27}, "end_point": {"row": 24, "column": 31}}, {"id": 98, "type": "identifier", "text": "true", "parent": 97, "children": [], "start_point": {"row": 24, "column": 27}, "end_point": {"row": 24, "column": 31}}, {"id": 99, "type": "field_declaration", "text": "if(x1.s<x2.s) return true;", "parent": 61, "children": [100, 108], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 32}}, {"id": 100, "type": "macro_type_specifier", "text": "if(x1.s<x2.s)", "parent": 99, "children": [101, 103], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 19}}, {"id": 101, "type": "type_descriptor", "text": "x1", "parent": 100, "children": [102], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 11}}, {"id": 102, "type": "type_identifier", "text": "x1", "parent": 101, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 11}}, {"id": 103, "type": "ERROR", "text": ".s<x2.s", "parent": 100, "children": [104, 105, 106, 107], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 18}}, {"id": 104, "type": "identifier", "text": "s", "parent": 103, "children": [], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 13}}, {"id": 105, "type": "<", "text": "<", "parent": 103, "children": [], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 14}}, {"id": 106, "type": "identifier", "text": "x2", "parent": 103, "children": [], "start_point": {"row": 25, "column": 14}, "end_point": {"row": 25, "column": 16}}, {"id": 107, "type": "identifier", "text": "s", "parent": 103, "children": [], "start_point": {"row": 25, "column": 17}, "end_point": {"row": 25, "column": 18}}, {"id": 108, "type": "ERROR", "text": "true", "parent": 99, "children": [109], "start_point": {"row": 25, "column": 27}, "end_point": {"row": 25, "column": 31}}, {"id": 109, "type": "identifier", "text": "true", "parent": 108, "children": [], "start_point": {"row": 25, "column": 27}, "end_point": {"row": 25, "column": 31}}, {"id": 110, "type": "field_declaration", "text": "return false;", "parent": 61, "children": [111], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 19}}, {"id": 111, "type": "field_identifier", "text": "false", "parent": 110, "children": [], "start_point": {"row": 26, "column": 13}, "end_point": {"row": 26, "column": 18}}, {"id": 112, "type": "function_definition", "text": "class salPoint: public XYS {\npublic: \n salPoint(int X, int Y, int S,float Sal) : XYS(X,Y,S),sal(Sal){}\n salPoint(const std::pair<XYS,float> &o) : XYS(o.first),sal(o.second){}\n float sal;\n }", "parent": 12, "children": [113, 114], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 36, "column": 3}}, {"id": 113, "type": "identifier", "text": "salPoint", "parent": 112, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 16}}, {"id": 114, "type": "ERROR", "text": ": public XYS", "parent": 112, "children": [115], "start_point": {"row": 31, "column": 16}, "end_point": {"row": 31, "column": 28}}, {"id": 115, "type": "identifier", "text": "XYS", "parent": 114, "children": [], "start_point": {"row": 31, "column": 25}, "end_point": {"row": 31, "column": 28}}, {"id": 116, "type": "labeled_statement", "text": "public: \n salPoint(int X, int Y, int S,float Sal) : XYS(X,Y,S),sal(Sal){}\n salPoint(const std::pair<XYS,float> &o) : XYS(o.first),sal(o.second){}\n float sal;", "parent": 112, "children": [117], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 35, "column": 14}}, {"id": 117, "type": "declaration", "text": "salPoint(int X, int Y, int S,float Sal) : XYS(X,Y,S),sal(Sal){}\n salPoint(const std::pair<XYS,float> &o) : XYS(o.first),sal(o.second){}\n float sal;", "parent": 116, "children": [118, 122, 123, 124, 126, 127, 129, 132, 141, 174], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 35, "column": 14}}, {"id": 118, "type": "macro_type_specifier", "text": "salPoint(int", "parent": 117, "children": [119, 120], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 16}}, {"id": 119, "type": "identifier", "text": "salPoint", "parent": 118, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 12}}, {"id": 120, "type": "type_descriptor", "text": "int", "parent": 118, "children": [121], "start_point": {"row": 33, "column": 13}, "end_point": {"row": 33, "column": 16}}, {"id": 121, "type": "primitive_type", "text": "int", "parent": 120, "children": [], "start_point": {"row": 33, "column": 13}, "end_point": {"row": 33, "column": 16}}, {"id": 122, "type": "identifier", "text": "X", "parent": 117, "children": [], "start_point": {"row": 33, "column": 17}, "end_point": {"row": 33, "column": 18}}, {"id": 123, "type": "identifier", "text": "int", "parent": 117, "children": [], "start_point": {"row": 33, "column": 20}, "end_point": {"row": 33, "column": 23}}, {"id": 124, "type": "ERROR", "text": "Y", "parent": 117, "children": [125], "start_point": {"row": 33, "column": 24}, "end_point": {"row": 33, "column": 25}}, {"id": 125, "type": "identifier", "text": "Y", "parent": 124, "children": [], "start_point": {"row": 33, "column": 24}, "end_point": {"row": 33, "column": 25}}, {"id": 126, "type": "identifier", "text": "int", "parent": 117, "children": [], "start_point": {"row": 33, "column": 27}, "end_point": {"row": 33, "column": 30}}, {"id": 127, "type": "ERROR", "text": "S", "parent": 117, "children": [128], "start_point": {"row": 33, "column": 31}, "end_point": {"row": 33, "column": 32}}, {"id": 128, "type": "identifier", "text": "S", "parent": 127, "children": [], "start_point": {"row": 33, "column": 31}, "end_point": {"row": 33, "column": 32}}, {"id": 129, "type": "ERROR", "text": "float Sal) :", "parent": 117, "children": [130, 131], "start_point": {"row": 33, "column": 33}, "end_point": {"row": 33, "column": 45}}, {"id": 130, "type": "identifier", "text": "float", "parent": 129, "children": [], "start_point": {"row": 33, "column": 33}, "end_point": {"row": 33, "column": 38}}, {"id": 131, "type": "identifier", "text": "Sal", "parent": 129, "children": [], "start_point": {"row": 33, "column": 39}, "end_point": {"row": 33, "column": 42}}, {"id": 132, "type": "function_declarator", "text": "XYS(X,Y,S)", "parent": 117, "children": [133, 134], "start_point": {"row": 33, "column": 46}, "end_point": {"row": 33, "column": 56}}, {"id": 133, "type": "identifier", "text": "XYS", "parent": 132, "children": [], "start_point": {"row": 33, "column": 46}, "end_point": {"row": 33, "column": 49}}, {"id": 134, "type": "parameter_list", "text": "(X,Y,S)", "parent": 132, "children": [135, 137, 139], "start_point": {"row": 33, "column": 49}, "end_point": {"row": 33, "column": 56}}, {"id": 135, "type": "parameter_declaration", "text": "X", "parent": 134, "children": [136], "start_point": {"row": 33, "column": 50}, "end_point": {"row": 33, "column": 51}}, {"id": 136, "type": "type_identifier", "text": "X", "parent": 135, "children": [], "start_point": {"row": 33, "column": 50}, "end_point": {"row": 33, "column": 51}}, {"id": 137, "type": "parameter_declaration", "text": "Y", "parent": 134, "children": [138], "start_point": {"row": 33, "column": 52}, "end_point": {"row": 33, "column": 53}}, {"id": 138, "type": "type_identifier", "text": "Y", "parent": 137, "children": [], "start_point": {"row": 33, "column": 52}, "end_point": {"row": 33, "column": 53}}, {"id": 139, "type": "parameter_declaration", "text": "S", "parent": 134, "children": [140], "start_point": {"row": 33, "column": 54}, "end_point": {"row": 33, "column": 55}}, {"id": 140, "type": "type_identifier", "text": "S", "parent": 139, "children": [], "start_point": {"row": 33, "column": 54}, "end_point": {"row": 33, "column": 55}}, {"id": 141, "type": "ERROR", "text": "sal(Sal){}\n salPoint(const std::pair<XYS,float> &o) : XYS(o.first),sal(o.second){}\n float", "parent": 117, "children": [142, 147, 167, 173], "start_point": {"row": 33, "column": 57}, "end_point": {"row": 35, "column": 9}}, {"id": 142, "type": "function_declarator", "text": "sal(Sal)", "parent": 141, "children": [143, 144], "start_point": {"row": 33, "column": 57}, "end_point": {"row": 33, "column": 65}}, {"id": 143, "type": "identifier", "text": "sal", "parent": 142, "children": [], "start_point": {"row": 33, "column": 57}, "end_point": {"row": 33, "column": 60}}, {"id": 144, "type": "parameter_list", "text": "(Sal)", "parent": 142, "children": [145], "start_point": {"row": 33, "column": 60}, "end_point": {"row": 33, "column": 65}}, {"id": 145, "type": "parameter_declaration", "text": "Sal", "parent": 144, "children": [146], "start_point": {"row": 33, "column": 61}, "end_point": {"row": 33, "column": 64}}, {"id": 146, "type": "type_identifier", "text": "Sal", "parent": 145, "children": [], "start_point": {"row": 33, "column": 61}, "end_point": {"row": 33, "column": 64}}, {"id": 147, "type": "function_declarator", "text": "salPoint(const std::pair<XYS,float> &o) : XYS(o.first)", "parent": 141, "children": [148, 149, 161], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 58}}, {"id": 148, "type": "identifier", "text": "salPoint", "parent": 147, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 12}}, {"id": 149, "type": "parameter_list", "text": "(const std::pair<XYS,float> &o)", "parent": 147, "children": [150, 156], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 43}}, {"id": 150, "type": "parameter_declaration", "text": "const std::pair<XYS", "parent": 149, "children": [151, 152, 155], "start_point": {"row": 34, "column": 13}, "end_point": {"row": 34, "column": 32}}, {"id": 151, "type": "type_identifier", "text": "std", "parent": 150, "children": [], "start_point": {"row": 34, "column": 19}, "end_point": {"row": 34, "column": 22}}, {"id": 152, "type": "ERROR", "text": "::pair<", "parent": 150, "children": [153, 154], "start_point": {"row": 34, "column": 22}, "end_point": {"row": 34, "column": 29}}, {"id": 153, "type": "identifier", "text": "pair", "parent": 152, "children": [], "start_point": {"row": 34, "column": 24}, "end_point": {"row": 34, "column": 28}}, {"id": 154, "type": "<", "text": "<", "parent": 152, "children": [], "start_point": {"row": 34, "column": 28}, "end_point": {"row": 34, "column": 29}}, {"id": 155, "type": "identifier", "text": "XYS", "parent": 150, "children": [], "start_point": {"row": 34, "column": 29}, "end_point": {"row": 34, "column": 32}}, {"id": 156, "type": "parameter_declaration", "text": "float> &o", "parent": 149, "children": [157, 158, 160], "start_point": {"row": 34, "column": 33}, "end_point": {"row": 34, "column": 42}}, {"id": 157, "type": "primitive_type", "text": "float", "parent": 156, "children": [], "start_point": {"row": 34, "column": 33}, "end_point": {"row": 34, "column": 38}}, {"id": 158, "type": "ERROR", "text": "> &", "parent": 156, "children": [159], "start_point": {"row": 34, "column": 38}, "end_point": {"row": 34, "column": 41}}, {"id": 159, "type": ">", "text": ">", "parent": 158, "children": [], "start_point": {"row": 34, "column": 38}, "end_point": {"row": 34, "column": 39}}, {"id": 160, "type": "identifier", "text": "o", "parent": 156, "children": [], "start_point": {"row": 34, "column": 41}, "end_point": {"row": 34, "column": 42}}, {"id": 161, "type": "call_expression", "text": "XYS(o.first)", "parent": 147, "children": [162, 163], "start_point": {"row": 34, "column": 46}, "end_point": {"row": 34, "column": 58}}, {"id": 162, "type": "identifier", "text": "XYS", "parent": 161, "children": [], "start_point": {"row": 34, "column": 46}, "end_point": {"row": 34, "column": 49}}, {"id": 163, "type": "argument_list", "text": "(o.first)", "parent": 161, "children": [164, 166], "start_point": {"row": 34, "column": 49}, "end_point": {"row": 34, "column": 58}}, {"id": 164, "type": "ERROR", "text": "o.", "parent": 163, "children": [165], "start_point": {"row": 34, "column": 50}, "end_point": {"row": 34, "column": 52}}, {"id": 165, "type": "identifier", "text": "o", "parent": 164, "children": [], "start_point": {"row": 34, "column": 50}, "end_point": {"row": 34, "column": 51}}, {"id": 166, "type": "identifier", "text": "first", "parent": 163, "children": [], "start_point": {"row": 34, "column": 52}, "end_point": {"row": 34, "column": 57}}, {"id": 167, "type": "function_declarator", "text": "sal(o.second)", "parent": 141, "children": [168, 169], "start_point": {"row": 34, "column": 59}, "end_point": {"row": 34, "column": 72}}, {"id": 168, "type": "identifier", "text": "sal", "parent": 167, "children": [], "start_point": {"row": 34, "column": 59}, "end_point": {"row": 34, "column": 62}}, {"id": 169, "type": "parameter_list", "text": "(o.second)", "parent": 167, "children": [170], "start_point": {"row": 34, "column": 62}, "end_point": {"row": 34, "column": 72}}, {"id": 170, "type": "parameter_declaration", "text": "o.second", "parent": 169, "children": [171, 172], "start_point": {"row": 34, "column": 63}, "end_point": {"row": 34, "column": 71}}, {"id": 171, "type": "type_identifier", "text": "o", "parent": 170, "children": [], "start_point": {"row": 34, "column": 63}, "end_point": {"row": 34, "column": 64}}, {"id": 172, "type": "identifier", "text": "second", "parent": 170, "children": [], "start_point": {"row": 34, "column": 65}, "end_point": {"row": 34, "column": 71}}, {"id": 173, "type": "primitive_type", "text": "float", "parent": 141, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 9}}, {"id": 174, "type": "identifier", "text": "sal", "parent": 117, "children": [], "start_point": {"row": 35, "column": 10}, "end_point": {"row": 35, "column": 13}}, {"id": 175, "type": "function_definition", "text": "bool ltSal(const salPoint &v1,\n\t const salPoint &v2){\n return v1.sal < v2.sal;\n }", "parent": 12, "children": [176, 177], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 41, "column": 3}}, {"id": 176, "type": "primitive_type", "text": "bool", "parent": 175, "children": [], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 6}}, {"id": 177, "type": "function_declarator", "text": "ltSal(const salPoint &v1,\n\t const salPoint &v2)", "parent": 175, "children": [178, 179], "start_point": {"row": 38, "column": 7}, "end_point": {"row": 39, "column": 25}}, {"id": 178, "type": "identifier", "text": "ltSal", "parent": 177, "children": [], "start_point": {"row": 38, "column": 7}, "end_point": {"row": 38, "column": 12}}, {"id": 179, "type": "parameter_list", "text": "(const salPoint &v1,\n\t const salPoint &v2)", "parent": 177, "children": [180, 183], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 39, "column": 25}}, {"id": 180, "type": "parameter_declaration", "text": "const salPoint &v1", "parent": 179, "children": [181, 182], "start_point": {"row": 38, "column": 13}, "end_point": {"row": 38, "column": 31}}, {"id": 181, "type": "type_identifier", "text": "salPoint", "parent": 180, "children": [], "start_point": {"row": 38, "column": 19}, "end_point": {"row": 38, "column": 27}}, {"id": 182, "type": "identifier", "text": "v1", "parent": 180, "children": [], "start_point": {"row": 38, "column": 29}, "end_point": {"row": 38, "column": 31}}, {"id": 183, "type": "parameter_declaration", "text": "const salPoint &v2", "parent": 179, "children": [184, 185], "start_point": {"row": 39, "column": 6}, "end_point": {"row": 39, "column": 24}}, {"id": 184, "type": "type_identifier", "text": "salPoint", "parent": 183, "children": [], "start_point": {"row": 39, "column": 12}, "end_point": {"row": 39, "column": 20}}, {"id": 185, "type": "identifier", "text": "v2", "parent": 183, "children": [], "start_point": {"row": 39, "column": 22}, "end_point": {"row": 39, "column": 24}}, {"id": 186, "type": "return_statement", "text": "return v1.sal < v2.sal;", "parent": 175, "children": [187], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 27}}, {"id": 187, "type": "binary_expression", "text": "v1.sal < v2.sal", "parent": 186, "children": [188, 191, 192], "start_point": {"row": 40, "column": 11}, "end_point": {"row": 40, "column": 26}}, {"id": 188, "type": "field_expression", "text": "v1.sal", "parent": 187, "children": [189, 190], "start_point": {"row": 40, "column": 11}, "end_point": {"row": 40, "column": 17}}, {"id": 189, "type": "identifier", "text": "v1", "parent": 188, "children": [], "start_point": {"row": 40, "column": 11}, "end_point": {"row": 40, "column": 13}}, {"id": 190, "type": "field_identifier", "text": "sal", "parent": 188, "children": [], "start_point": {"row": 40, "column": 14}, "end_point": {"row": 40, "column": 17}}, {"id": 191, "type": "<", "text": "<", "parent": 187, "children": [], "start_point": {"row": 40, "column": 18}, "end_point": {"row": 40, "column": 19}}, {"id": 192, "type": "field_expression", "text": "v2.sal", "parent": 187, "children": [193, 194], "start_point": {"row": 40, "column": 20}, "end_point": {"row": 40, "column": 26}}, {"id": 193, "type": "identifier", "text": "v2", "parent": 192, "children": [], "start_point": {"row": 40, "column": 20}, "end_point": {"row": 40, "column": 22}}, {"id": 194, "type": "field_identifier", "text": "sal", "parent": 192, "children": [], "start_point": {"row": 40, "column": 23}, "end_point": {"row": 40, "column": 26}}, {"id": 195, "type": "function_definition", "text": "bool gtSal(const salPoint &v1,\n\t const salPoint &v2){\n return v1.sal > v2.sal;\n }", "parent": 12, "children": [196, 197], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 46, "column": 3}}, {"id": 196, "type": "primitive_type", "text": "bool", "parent": 195, "children": [], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 6}}, {"id": 197, "type": "function_declarator", "text": "gtSal(const salPoint &v1,\n\t const salPoint &v2)", "parent": 195, "children": [198, 199], "start_point": {"row": 43, "column": 7}, "end_point": {"row": 44, "column": 25}}, {"id": 198, "type": "identifier", "text": "gtSal", "parent": 197, "children": [], "start_point": {"row": 43, "column": 7}, "end_point": {"row": 43, "column": 12}}, {"id": 199, "type": "parameter_list", "text": "(const salPoint &v1,\n\t const salPoint &v2)", "parent": 197, "children": [200, 203], "start_point": {"row": 43, "column": 12}, "end_point": {"row": 44, "column": 25}}, {"id": 200, "type": "parameter_declaration", "text": "const salPoint &v1", "parent": 199, "children": [201, 202], "start_point": {"row": 43, "column": 13}, "end_point": {"row": 43, "column": 31}}, {"id": 201, "type": "type_identifier", "text": "salPoint", "parent": 200, "children": [], "start_point": {"row": 43, "column": 19}, "end_point": {"row": 43, "column": 27}}, {"id": 202, "type": "identifier", "text": "v1", "parent": 200, "children": [], "start_point": {"row": 43, "column": 29}, "end_point": {"row": 43, "column": 31}}, {"id": 203, "type": "parameter_declaration", "text": "const salPoint &v2", "parent": 199, "children": [204, 205], "start_point": {"row": 44, "column": 6}, "end_point": {"row": 44, "column": 24}}, {"id": 204, "type": "type_identifier", "text": "salPoint", "parent": 203, "children": [], "start_point": {"row": 44, "column": 12}, "end_point": {"row": 44, "column": 20}}, {"id": 205, "type": "identifier", "text": "v2", "parent": 203, "children": [], "start_point": {"row": 44, "column": 22}, "end_point": {"row": 44, "column": 24}}, {"id": 206, "type": "return_statement", "text": "return v1.sal > v2.sal;", "parent": 195, "children": [207], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 27}}, {"id": 207, "type": "binary_expression", "text": "v1.sal > v2.sal", "parent": 206, "children": [208, 211, 212], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 26}}, {"id": 208, "type": "field_expression", "text": "v1.sal", "parent": 207, "children": [209, 210], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 17}}, {"id": 209, "type": "identifier", "text": "v1", "parent": 208, "children": [], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 13}}, {"id": 210, "type": "field_identifier", "text": "sal", "parent": 208, "children": [], "start_point": {"row": 45, "column": 14}, "end_point": {"row": 45, "column": 17}}, {"id": 211, "type": ">", "text": ">", "parent": 207, "children": [], "start_point": {"row": 45, "column": 18}, "end_point": {"row": 45, "column": 19}}, {"id": 212, "type": "field_expression", "text": "v2.sal", "parent": 207, "children": [213, 214], "start_point": {"row": 45, "column": 20}, "end_point": {"row": 45, "column": 26}}, {"id": 213, "type": "identifier", "text": "v2", "parent": 212, "children": [], "start_point": {"row": 45, "column": 20}, "end_point": {"row": 45, "column": 22}}, {"id": 214, "type": "field_identifier", "text": "sal", "parent": 212, "children": [], "start_point": {"row": 45, "column": 23}, "end_point": {"row": 45, "column": 26}}, {"id": 215, "type": "function_definition", "text": "class salCluster : public salPoint {\n public:\n salCluster(int X, int Y, int S, float Sal) : salPoint(X,Y,S,Sal){}\n salCluster(const std::pair<XYS,float> &o) : salPoint(o){};\n int dist;\n int ind;\n\n int calcSqrDistTo(const XYS &o){\n int d=(x-o.x);\n dist =d*d;\n d=(y-o.y);\n dist += d*d;\n d=(s-o.s);\n dist += d*d;\n return dist;\n }\n\n }", "parent": 12, "children": [216, 217], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 66, "column": 3}}, {"id": 216, "type": "identifier", "text": "salCluster", "parent": 215, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 18}}, {"id": 217, "type": "ERROR", "text": ": public salPoint", "parent": 215, "children": [218], "start_point": {"row": 49, "column": 19}, "end_point": {"row": 49, "column": 36}}, {"id": 218, "type": "identifier", "text": "salPoint", "parent": 217, "children": [], "start_point": {"row": 49, "column": 28}, "end_point": {"row": 49, "column": 36}}, {"id": 219, "type": "labeled_statement", "text": "public:\n salCluster(int X, int Y, int S, float Sal) : salPoint(X,Y,S,Sal){}\n salCluster(const std::pair<XYS,float> &o) : salPoint(o){};", "parent": 215, "children": [220], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 52, "column": 62}}, {"id": 220, "type": "declaration", "text": "salCluster(int X, int Y, int S, float Sal) : salPoint(X,Y,S,Sal){}\n salCluster(const std::pair<XYS,float> &o) : salPoint(o){};", "parent": 219, "children": [221, 225, 226, 227, 229, 230], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 52, "column": 62}}, {"id": 221, "type": "macro_type_specifier", "text": "salCluster(int", "parent": 220, "children": [222, 223], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 18}}, {"id": 222, "type": "identifier", "text": "salCluster", "parent": 221, "children": [], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 14}}, {"id": 223, "type": "type_descriptor", "text": "int", "parent": 221, "children": [224], "start_point": {"row": 51, "column": 15}, "end_point": {"row": 51, "column": 18}}, {"id": 224, "type": "primitive_type", "text": "int", "parent": 223, "children": [], "start_point": {"row": 51, "column": 15}, "end_point": {"row": 51, "column": 18}}, {"id": 225, "type": "identifier", "text": "X", "parent": 220, "children": [], "start_point": {"row": 51, "column": 19}, "end_point": {"row": 51, "column": 20}}, {"id": 226, "type": "identifier", "text": "int", "parent": 220, "children": [], "start_point": {"row": 51, "column": 22}, "end_point": {"row": 51, "column": 25}}, {"id": 227, "type": "ERROR", "text": "Y", "parent": 220, "children": [228], "start_point": {"row": 51, "column": 26}, "end_point": {"row": 51, "column": 27}}, {"id": 228, "type": "identifier", "text": "Y", "parent": 227, "children": [], "start_point": {"row": 51, "column": 26}, "end_point": {"row": 51, "column": 27}}, {"id": 229, "type": "identifier", "text": "int", "parent": 220, "children": [], "start_point": {"row": 51, "column": 29}, "end_point": {"row": 51, "column": 32}}, {"id": 230, "type": "ERROR", "text": "S, float Sal) : salPoint(X,Y,S,Sal){}\n salCluster(const std::pair<XYS,float> &o) : salPoint(o){}", "parent": 220, "children": [231, 232, 246], "start_point": {"row": 51, "column": 33}, "end_point": {"row": 52, "column": 61}}, {"id": 231, "type": "identifier", "text": "S", "parent": 230, "children": [], "start_point": {"row": 51, "column": 33}, "end_point": {"row": 51, "column": 34}}, {"id": 232, "type": "ERROR", "text": "float Sal) : salPoint(X,Y,S,Sal){}", "parent": 230, "children": [233, 234, 235], "start_point": {"row": 51, "column": 36}, "end_point": {"row": 51, "column": 70}}, {"id": 233, "type": "identifier", "text": "float", "parent": 232, "children": [], "start_point": {"row": 51, "column": 36}, "end_point": {"row": 51, "column": 41}}, {"id": 234, "type": "identifier", "text": "Sal", "parent": 232, "children": [], "start_point": {"row": 51, "column": 42}, "end_point": {"row": 51, "column": 45}}, {"id": 235, "type": "function_declarator", "text": "salPoint(X,Y,S,Sal)", "parent": 232, "children": [236, 237], "start_point": {"row": 51, "column": 49}, "end_point": {"row": 51, "column": 68}}, {"id": 236, "type": "identifier", "text": "salPoint", "parent": 235, "children": [], "start_point": {"row": 51, "column": 49}, "end_point": {"row": 51, "column": 57}}, {"id": 237, "type": "parameter_list", "text": "(X,Y,S,Sal)", "parent": 235, "children": [238, 240, 242, 244], "start_point": {"row": 51, "column": 57}, "end_point": {"row": 51, "column": 68}}, {"id": 238, "type": "parameter_declaration", "text": "X", "parent": 237, "children": [239], "start_point": {"row": 51, "column": 58}, "end_point": {"row": 51, "column": 59}}, {"id": 239, "type": "type_identifier", "text": "X", "parent": 238, "children": [], "start_point": {"row": 51, "column": 58}, "end_point": {"row": 51, "column": 59}}, {"id": 240, "type": "parameter_declaration", "text": "Y", "parent": 237, "children": [241], "start_point": {"row": 51, "column": 60}, "end_point": {"row": 51, "column": 61}}, {"id": 241, "type": "type_identifier", "text": "Y", "parent": 240, "children": [], "start_point": {"row": 51, "column": 60}, "end_point": {"row": 51, "column": 61}}, {"id": 242, "type": "parameter_declaration", "text": "S", "parent": 237, "children": [243], "start_point": {"row": 51, "column": 62}, "end_point": {"row": 51, "column": 63}}, {"id": 243, "type": "type_identifier", "text": "S", "parent": 242, "children": [], "start_point": {"row": 51, "column": 62}, "end_point": {"row": 51, "column": 63}}, {"id": 244, "type": "parameter_declaration", "text": "Sal", "parent": 237, "children": [245], "start_point": {"row": 51, "column": 64}, "end_point": {"row": 51, "column": 67}}, {"id": 245, "type": "type_identifier", "text": "Sal", "parent": 244, "children": [], "start_point": {"row": 51, "column": 64}, "end_point": {"row": 51, "column": 67}}, {"id": 246, "type": "function_declarator", "text": "salCluster(const std::pair<XYS,float> &o) : salPoint(o)", "parent": 230, "children": [247, 248, 260], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 59}}, {"id": 247, "type": "identifier", "text": "salCluster", "parent": 246, "children": [], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 14}}, {"id": 248, "type": "parameter_list", "text": "(const std::pair<XYS,float> &o)", "parent": 246, "children": [249, 255], "start_point": {"row": 52, "column": 14}, "end_point": {"row": 52, "column": 45}}, {"id": 249, "type": "parameter_declaration", "text": "const std::pair<XYS", "parent": 248, "children": [250, 251, 254], "start_point": {"row": 52, "column": 15}, "end_point": {"row": 52, "column": 34}}, {"id": 250, "type": "type_identifier", "text": "std", "parent": 249, "children": [], "start_point": {"row": 52, "column": 21}, "end_point": {"row": 52, "column": 24}}, {"id": 251, "type": "ERROR", "text": "::pair<", "parent": 249, "children": [252, 253], "start_point": {"row": 52, "column": 24}, "end_point": {"row": 52, "column": 31}}, {"id": 252, "type": "identifier", "text": "pair", "parent": 251, "children": [], "start_point": {"row": 52, "column": 26}, "end_point": {"row": 52, "column": 30}}, {"id": 253, "type": "<", "text": "<", "parent": 251, "children": [], "start_point": {"row": 52, "column": 30}, "end_point": {"row": 52, "column": 31}}, {"id": 254, "type": "identifier", "text": "XYS", "parent": 249, "children": [], "start_point": {"row": 52, "column": 31}, "end_point": {"row": 52, "column": 34}}, {"id": 255, "type": "parameter_declaration", "text": "float> &o", "parent": 248, "children": [256, 257, 259], "start_point": {"row": 52, "column": 35}, "end_point": {"row": 52, "column": 44}}, {"id": 256, "type": "primitive_type", "text": "float", "parent": 255, "children": [], "start_point": {"row": 52, "column": 35}, "end_point": {"row": 52, "column": 40}}, {"id": 257, "type": "ERROR", "text": "> &", "parent": 255, "children": [258], "start_point": {"row": 52, "column": 40}, "end_point": {"row": 52, "column": 43}}, {"id": 258, "type": ">", "text": ">", "parent": 257, "children": [], "start_point": {"row": 52, "column": 40}, "end_point": {"row": 52, "column": 41}}, {"id": 259, "type": "identifier", "text": "o", "parent": 255, "children": [], "start_point": {"row": 52, "column": 43}, "end_point": {"row": 52, "column": 44}}, {"id": 260, "type": "call_expression", "text": "salPoint(o)", "parent": 246, "children": [261, 262], "start_point": {"row": 52, "column": 48}, "end_point": {"row": 52, "column": 59}}, {"id": 261, "type": "identifier", "text": "salPoint", "parent": 260, "children": [], "start_point": {"row": 52, "column": 48}, "end_point": {"row": 52, "column": 56}}, {"id": 262, "type": "argument_list", "text": "(o)", "parent": 260, "children": [263], "start_point": {"row": 52, "column": 56}, "end_point": {"row": 52, "column": 59}}, {"id": 263, "type": "identifier", "text": "o", "parent": 262, "children": [], "start_point": {"row": 52, "column": 57}, "end_point": {"row": 52, "column": 58}}, {"id": 264, "type": "declaration", "text": "int dist;", "parent": 215, "children": [265, 266], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 13}}, {"id": 265, "type": "primitive_type", "text": "int", "parent": 264, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 7}}, {"id": 266, "type": "identifier", "text": "dist", "parent": 264, "children": [], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 12}}, {"id": 267, "type": "declaration", "text": "int ind;", "parent": 215, "children": [268, 269], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 12}}, {"id": 268, "type": "primitive_type", "text": "int", "parent": 267, "children": [], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 7}}, {"id": 269, "type": "identifier", "text": "ind", "parent": 267, "children": [], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 11}}, {"id": 270, "type": "function_definition", "text": "int calcSqrDistTo(const XYS &o){\n int d=(x-o.x);\n dist =d*d;\n d=(y-o.y);\n dist += d*d;\n d=(s-o.s);\n dist += d*d;\n return dist;\n }", "parent": 215, "children": [271, 272], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 64, "column": 5}}, {"id": 271, "type": "primitive_type", "text": "int", "parent": 270, "children": [], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 7}}, {"id": 272, "type": "function_declarator", "text": "calcSqrDistTo(const XYS &o)", "parent": 270, "children": [273, 274], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 35}}, {"id": 273, "type": "identifier", "text": "calcSqrDistTo", "parent": 272, "children": [], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 21}}, {"id": 274, "type": "parameter_list", "text": "(const XYS &o)", "parent": 272, "children": [275], "start_point": {"row": 56, "column": 21}, "end_point": {"row": 56, "column": 35}}, {"id": 275, "type": "parameter_declaration", "text": "const XYS &o", "parent": 274, "children": [276, 277], "start_point": {"row": 56, "column": 22}, "end_point": {"row": 56, "column": 34}}, {"id": 276, "type": "type_identifier", "text": "XYS", "parent": 275, "children": [], "start_point": {"row": 56, "column": 28}, "end_point": {"row": 56, "column": 31}}, {"id": 277, "type": "identifier", "text": "o", "parent": 275, "children": [], "start_point": {"row": 56, "column": 33}, "end_point": {"row": 56, "column": 34}}, {"id": 278, "type": "declaration", "text": "int d=(x-o.x);", "parent": 270, "children": [279, 280], "start_point": {"row": 57, "column": 6}, "end_point": {"row": 57, "column": 20}}, {"id": 279, "type": "primitive_type", "text": "int", "parent": 278, "children": [], "start_point": {"row": 57, "column": 6}, "end_point": {"row": 57, "column": 9}}, {"id": 280, "type": "init_declarator", "text": "d=(x-o.x)", "parent": 278, "children": [281, 282, 283], "start_point": {"row": 57, "column": 10}, "end_point": {"row": 57, "column": 19}}, {"id": 281, "type": "identifier", "text": "d", "parent": 280, "children": [], "start_point": {"row": 57, "column": 10}, "end_point": {"row": 57, "column": 11}}, {"id": 282, "type": "=", "text": "=", "parent": 280, "children": [], "start_point": {"row": 57, "column": 11}, "end_point": {"row": 57, "column": 12}}, {"id": 283, "type": "parenthesized_expression", "text": "(x-o.x)", "parent": 280, "children": [284], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 19}}, {"id": 284, "type": "binary_expression", "text": "x-o.x", "parent": 283, "children": [285, 286, 287], "start_point": {"row": 57, "column": 13}, "end_point": {"row": 57, "column": 18}}, {"id": 285, "type": "identifier", "text": "x", "parent": 284, "children": [], "start_point": {"row": 57, "column": 13}, "end_point": {"row": 57, "column": 14}}, {"id": 286, "type": "-", "text": "-", "parent": 284, "children": [], "start_point": {"row": 57, "column": 14}, "end_point": {"row": 57, "column": 15}}, {"id": 287, "type": "field_expression", "text": "o.x", "parent": 284, "children": [288, 289], "start_point": {"row": 57, "column": 15}, "end_point": {"row": 57, "column": 18}}, {"id": 288, "type": "identifier", "text": "o", "parent": 287, "children": [], "start_point": {"row": 57, "column": 15}, "end_point": {"row": 57, "column": 16}}, {"id": 289, "type": "field_identifier", "text": "x", "parent": 287, "children": [], "start_point": {"row": 57, "column": 17}, "end_point": {"row": 57, "column": 18}}, {"id": 290, "type": "assignment_expression", "text": "dist =d*d", "parent": 270, "children": [291, 292, 293], "start_point": {"row": 58, "column": 6}, "end_point": {"row": 58, "column": 15}}, {"id": 291, "type": "identifier", "text": "dist", "parent": 290, "children": [], "start_point": {"row": 58, "column": 6}, "end_point": {"row": 58, "column": 10}}, {"id": 292, "type": "=", "text": "=", "parent": 290, "children": [], "start_point": {"row": 58, "column": 11}, "end_point": {"row": 58, "column": 12}}, {"id": 293, "type": "binary_expression", "text": "d*d", "parent": 290, "children": [294, 295, 296], "start_point": {"row": 58, "column": 12}, "end_point": {"row": 58, "column": 15}}, {"id": 294, "type": "identifier", "text": "d", "parent": 293, "children": [], "start_point": {"row": 58, "column": 12}, "end_point": {"row": 58, "column": 13}}, {"id": 295, "type": "*", "text": "*", "parent": 293, "children": [], "start_point": {"row": 58, "column": 13}, "end_point": {"row": 58, "column": 14}}, {"id": 296, "type": "identifier", "text": "d", "parent": 293, "children": [], "start_point": {"row": 58, "column": 14}, "end_point": {"row": 58, "column": 15}}, {"id": 297, "type": "assignment_expression", "text": "d=(y-o.y)", "parent": 270, "children": [298, 299, 300], "start_point": {"row": 59, "column": 6}, "end_point": {"row": 59, "column": 15}}, {"id": 298, "type": "identifier", "text": "d", "parent": 297, "children": [], "start_point": {"row": 59, "column": 6}, "end_point": {"row": 59, "column": 7}}, {"id": 299, "type": "=", "text": "=", "parent": 297, "children": [], "start_point": {"row": 59, "column": 7}, "end_point": {"row": 59, "column": 8}}, {"id": 300, "type": "parenthesized_expression", "text": "(y-o.y)", "parent": 297, "children": [301], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 15}}, {"id": 301, "type": "binary_expression", "text": "y-o.y", "parent": 300, "children": [302, 303, 304], "start_point": {"row": 59, "column": 9}, "end_point": {"row": 59, "column": 14}}, {"id": 302, "type": "identifier", "text": "y", "parent": 301, "children": [], "start_point": {"row": 59, "column": 9}, "end_point": {"row": 59, "column": 10}}, {"id": 303, "type": "-", "text": "-", "parent": 301, "children": [], "start_point": {"row": 59, "column": 10}, "end_point": {"row": 59, "column": 11}}, {"id": 304, "type": "field_expression", "text": "o.y", "parent": 301, "children": [305, 306], "start_point": {"row": 59, "column": 11}, "end_point": {"row": 59, "column": 14}}, {"id": 305, "type": "identifier", "text": "o", "parent": 304, "children": [], "start_point": {"row": 59, "column": 11}, "end_point": {"row": 59, "column": 12}}, {"id": 306, "type": "field_identifier", "text": "y", "parent": 304, "children": [], "start_point": {"row": 59, "column": 13}, "end_point": {"row": 59, "column": 14}}, {"id": 307, "type": "assignment_expression", "text": "dist += d*d", "parent": 270, "children": [308, 309, 310], "start_point": {"row": 60, "column": 6}, "end_point": {"row": 60, "column": 17}}, {"id": 308, "type": "identifier", "text": "dist", "parent": 307, "children": [], "start_point": {"row": 60, "column": 6}, "end_point": {"row": 60, "column": 10}}, {"id": 309, "type": "+=", "text": "+=", "parent": 307, "children": [], "start_point": {"row": 60, "column": 11}, "end_point": {"row": 60, "column": 13}}, {"id": 310, "type": "binary_expression", "text": "d*d", "parent": 307, "children": [311, 312, 313], "start_point": {"row": 60, "column": 14}, "end_point": {"row": 60, "column": 17}}, {"id": 311, "type": "identifier", "text": "d", "parent": 310, "children": [], "start_point": {"row": 60, "column": 14}, "end_point": {"row": 60, "column": 15}}, {"id": 312, "type": "*", "text": "*", "parent": 310, "children": [], "start_point": {"row": 60, "column": 15}, "end_point": {"row": 60, "column": 16}}, {"id": 313, "type": "identifier", "text": "d", "parent": 310, "children": [], "start_point": {"row": 60, "column": 16}, "end_point": {"row": 60, "column": 17}}, {"id": 314, "type": "assignment_expression", "text": "d=(s-o.s)", "parent": 270, "children": [315, 316, 317], "start_point": {"row": 61, "column": 6}, "end_point": {"row": 61, "column": 15}}, {"id": 315, "type": "identifier", "text": "d", "parent": 314, "children": [], "start_point": {"row": 61, "column": 6}, "end_point": {"row": 61, "column": 7}}, {"id": 316, "type": "=", "text": "=", "parent": 314, "children": [], "start_point": {"row": 61, "column": 7}, "end_point": {"row": 61, "column": 8}}, {"id": 317, "type": "parenthesized_expression", "text": "(s-o.s)", "parent": 314, "children": [318], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 15}}, {"id": 318, "type": "binary_expression", "text": "s-o.s", "parent": 317, "children": [319, 320, 321], "start_point": {"row": 61, "column": 9}, "end_point": {"row": 61, "column": 14}}, {"id": 319, "type": "identifier", "text": "s", "parent": 318, "children": [], "start_point": {"row": 61, "column": 9}, "end_point": {"row": 61, "column": 10}}, {"id": 320, "type": "-", "text": "-", "parent": 318, "children": [], "start_point": {"row": 61, "column": 10}, "end_point": {"row": 61, "column": 11}}, {"id": 321, "type": "field_expression", "text": "o.s", "parent": 318, "children": [322, 323], "start_point": {"row": 61, "column": 11}, "end_point": {"row": 61, "column": 14}}, {"id": 322, "type": "identifier", "text": "o", "parent": 321, "children": [], "start_point": {"row": 61, "column": 11}, "end_point": {"row": 61, "column": 12}}, {"id": 323, "type": "field_identifier", "text": "s", "parent": 321, "children": [], "start_point": {"row": 61, "column": 13}, "end_point": {"row": 61, "column": 14}}, {"id": 324, "type": "assignment_expression", "text": "dist += d*d", "parent": 270, "children": [325, 326, 327], "start_point": {"row": 62, "column": 6}, "end_point": {"row": 62, "column": 17}}, {"id": 325, "type": "identifier", "text": "dist", "parent": 324, "children": [], "start_point": {"row": 62, "column": 6}, "end_point": {"row": 62, "column": 10}}, {"id": 326, "type": "+=", "text": "+=", "parent": 324, "children": [], "start_point": {"row": 62, "column": 11}, "end_point": {"row": 62, "column": 13}}, {"id": 327, "type": "binary_expression", "text": "d*d", "parent": 324, "children": [328, 329, 330], "start_point": {"row": 62, "column": 14}, "end_point": {"row": 62, "column": 17}}, {"id": 328, "type": "identifier", "text": "d", "parent": 327, "children": [], "start_point": {"row": 62, "column": 14}, "end_point": {"row": 62, "column": 15}}, {"id": 329, "type": "*", "text": "*", "parent": 327, "children": [], "start_point": {"row": 62, "column": 15}, "end_point": {"row": 62, "column": 16}}, {"id": 330, "type": "identifier", "text": "d", "parent": 327, "children": [], "start_point": {"row": 62, "column": 16}, "end_point": {"row": 62, "column": 17}}, {"id": 331, "type": "return_statement", "text": "return dist;", "parent": 270, "children": [332], "start_point": {"row": 63, "column": 6}, "end_point": {"row": 63, "column": 18}}, {"id": 332, "type": "identifier", "text": "dist", "parent": 331, "children": [], "start_point": {"row": 63, "column": 13}, "end_point": {"row": 63, "column": 17}}, {"id": 333, "type": "function_definition", "text": "bool clusterCloser(const salCluster &c1,const salCluster &c2){\n // cout << \"comparing distances\" << c1.dist <<\" and \"<<c2.dist << endl;\n return c1.dist < c2.dist;\n }", "parent": 12, "children": [334, 335], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 71, "column": 3}}, {"id": 334, "type": "primitive_type", "text": "bool", "parent": 333, "children": [], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 6}}, {"id": 335, "type": "function_declarator", "text": "clusterCloser(const salCluster &c1,const salCluster &c2)", "parent": 333, "children": [336, 337], "start_point": {"row": 68, "column": 7}, "end_point": {"row": 68, "column": 63}}, {"id": 336, "type": "identifier", "text": "clusterCloser", "parent": 335, "children": [], "start_point": {"row": 68, "column": 7}, "end_point": {"row": 68, "column": 20}}, {"id": 337, "type": "parameter_list", "text": "(const salCluster &c1,const salCluster &c2)", "parent": 335, "children": [338, 341], "start_point": {"row": 68, "column": 20}, "end_point": {"row": 68, "column": 63}}, {"id": 338, "type": "parameter_declaration", "text": "const salCluster &c1", "parent": 337, "children": [339, 340], "start_point": {"row": 68, "column": 21}, "end_point": {"row": 68, "column": 41}}, {"id": 339, "type": "type_identifier", "text": "salCluster", "parent": 338, "children": [], "start_point": {"row": 68, "column": 27}, "end_point": {"row": 68, "column": 37}}, {"id": 340, "type": "identifier", "text": "c1", "parent": 338, "children": [], "start_point": {"row": 68, "column": 39}, "end_point": {"row": 68, "column": 41}}, {"id": 341, "type": "parameter_declaration", "text": "const salCluster &c2", "parent": 337, "children": [342, 343], "start_point": {"row": 68, "column": 42}, "end_point": {"row": 68, "column": 62}}, {"id": 342, "type": "type_identifier", "text": "salCluster", "parent": 341, "children": [], "start_point": {"row": 68, "column": 48}, "end_point": {"row": 68, "column": 58}}, {"id": 343, "type": "identifier", "text": "c2", "parent": 341, "children": [], "start_point": {"row": 68, "column": 60}, "end_point": {"row": 68, "column": 62}}, {"id": 344, "type": "return_statement", "text": "return c1.dist < c2.dist;", "parent": 333, "children": [345], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 29}}, {"id": 345, "type": "binary_expression", "text": "c1.dist < c2.dist", "parent": 344, "children": [346, 349, 350], "start_point": {"row": 70, "column": 11}, "end_point": {"row": 70, "column": 28}}, {"id": 346, "type": "field_expression", "text": "c1.dist", "parent": 345, "children": [347, 348], "start_point": {"row": 70, "column": 11}, "end_point": {"row": 70, "column": 18}}, {"id": 347, "type": "identifier", "text": "c1", "parent": 346, "children": [], "start_point": {"row": 70, "column": 11}, "end_point": {"row": 70, "column": 13}}, {"id": 348, "type": "field_identifier", "text": "dist", "parent": 346, "children": [], "start_point": {"row": 70, "column": 14}, "end_point": {"row": 70, "column": 18}}, {"id": 349, "type": "<", "text": "<", "parent": 345, "children": [], "start_point": {"row": 70, "column": 19}, "end_point": {"row": 70, "column": 20}}, {"id": 350, "type": "field_expression", "text": "c2.dist", "parent": 345, "children": [351, 352], "start_point": {"row": 70, "column": 21}, "end_point": {"row": 70, "column": 28}}, {"id": 351, "type": "identifier", "text": "c2", "parent": 350, "children": [], "start_point": {"row": 70, "column": 21}, "end_point": {"row": 70, "column": 23}}, {"id": 352, "type": "field_identifier", "text": "dist", "parent": 350, "children": [], "start_point": {"row": 70, "column": 24}, "end_point": {"row": 70, "column": 28}}, {"id": 353, "type": "function_definition", "text": "bool clusterFurther(const salCluster &c1,const salCluster &c2){\n return c1.dist > c2.dist;\n }", "parent": 12, "children": [354, 355], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 75, "column": 3}}, {"id": 354, "type": "primitive_type", "text": "bool", "parent": 353, "children": [], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 6}}, {"id": 355, "type": "function_declarator", "text": "clusterFurther(const salCluster &c1,const salCluster &c2)", "parent": 353, "children": [356, 357], "start_point": {"row": 73, "column": 7}, "end_point": {"row": 73, "column": 64}}, {"id": 356, "type": "identifier", "text": "clusterFurther", "parent": 355, "children": [], "start_point": {"row": 73, "column": 7}, "end_point": {"row": 73, "column": 21}}, {"id": 357, "type": "parameter_list", "text": "(const salCluster &c1,const salCluster &c2)", "parent": 355, "children": [358, 361], "start_point": {"row": 73, "column": 21}, "end_point": {"row": 73, "column": 64}}, {"id": 358, "type": "parameter_declaration", "text": "const salCluster &c1", "parent": 357, "children": [359, 360], "start_point": {"row": 73, "column": 22}, "end_point": {"row": 73, "column": 42}}, {"id": 359, "type": "type_identifier", "text": "salCluster", "parent": 358, "children": [], "start_point": {"row": 73, "column": 28}, "end_point": {"row": 73, "column": 38}}, {"id": 360, "type": "identifier", "text": "c1", "parent": 358, "children": [], "start_point": {"row": 73, "column": 40}, "end_point": {"row": 73, "column": 42}}, {"id": 361, "type": "parameter_declaration", "text": "const salCluster &c2", "parent": 357, "children": [362, 363], "start_point": {"row": 73, "column": 43}, "end_point": {"row": 73, "column": 63}}, {"id": 362, "type": "type_identifier", "text": "salCluster", "parent": 361, "children": [], "start_point": {"row": 73, "column": 49}, "end_point": {"row": 73, "column": 59}}, {"id": 363, "type": "identifier", "text": "c2", "parent": 361, "children": [], "start_point": {"row": 73, "column": 61}, "end_point": {"row": 73, "column": 63}}, {"id": 364, "type": "return_statement", "text": "return c1.dist > c2.dist;", "parent": 353, "children": [365], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 29}}, {"id": 365, "type": "binary_expression", "text": "c1.dist > c2.dist", "parent": 364, "children": [366, 369, 370], "start_point": {"row": 74, "column": 11}, "end_point": {"row": 74, "column": 28}}, {"id": 366, "type": "field_expression", "text": "c1.dist", "parent": 365, "children": [367, 368], "start_point": {"row": 74, "column": 11}, "end_point": {"row": 74, "column": 18}}, {"id": 367, "type": "identifier", "text": "c1", "parent": 366, "children": [], "start_point": {"row": 74, "column": 11}, "end_point": {"row": 74, "column": 13}}, {"id": 368, "type": "field_identifier", "text": "dist", "parent": 366, "children": [], "start_point": {"row": 74, "column": 14}, "end_point": {"row": 74, "column": 18}}, {"id": 369, "type": ">", "text": ">", "parent": 365, "children": [], "start_point": {"row": 74, "column": 19}, "end_point": {"row": 74, "column": 20}}, {"id": 370, "type": "field_expression", "text": "c2.dist", "parent": 365, "children": [371, 372], "start_point": {"row": 74, "column": 21}, "end_point": {"row": 74, "column": 28}}, {"id": 371, "type": "identifier", "text": "c2", "parent": 370, "children": [], "start_point": {"row": 74, "column": 21}, "end_point": {"row": 74, "column": 23}}, {"id": 372, "type": "field_identifier", "text": "dist", "parent": 370, "children": [], "start_point": {"row": 74, "column": 24}, "end_point": {"row": 74, "column": 28}}, {"id": 373, "type": "function_definition", "text": "class Histogram{\n public:\n void resize(int s){count.resize(s);}\n void reset(int s){\n count = std::vector<int>(s,(int)0);\n totalCount=0;\n }\n \n void addPoint(int val){\n // no checking here whether val is a valid index\n //std::cout << \"in Histogram::addPoint(\"<<val<<\")\"<<std::endl;\n count[val]++;\n totalCount++;\n }\n \n void dump(std::ostream &os) const{\n size_t i;\n for(i=0;i<count.size();i++)\n\tos << \"count[\" <<i<<\":\"<<count[i]<<std::endl;\n }\n float calcEntropy() const{\n //std::cout << \"calcEntropy, totalCount=\" << totalCount << std::endl;\n if(!totalCount) return 0;\n //dump(std::cout);\n\n float h=0,logN=log((double)totalCount);\n size_t i;\n for(i=0;i<count.size();i++)\n\tif(count[i])\n\t h += count[i]*(log((double)count[i])-logN);\n\n return -h / (totalCount*log(2.0));\n }\n\n\n // the absolute difference of two histograms\n\n float calcDifference(const Histogram &o) const{\n float d=0;\n float cumd=0;\n size_t i;\n\n for(i=0;i<count.size();i++){\n\td = ((float)count[i])/totalCount;\n\t// std::cout << d << std::endl;\n\td -= ((float)o.count[i])/o.totalCount;\n\tcumd += (d>0) ? d : -d;\n }\n \n return cumd;\n }\n\n int totalCount;\n std::vector<int> count;\n }", "parent": 12, "children": [374], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 132, "column": 3}}, {"id": 374, "type": "identifier", "text": "Histogram", "parent": 373, "children": [], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 78, "column": 17}}, {"id": 375, "type": "labeled_statement", "text": "public:\n void resize(int s){count.resize(s);}", "parent": 373, "children": [376], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 80, "column": 40}}, {"id": 376, "type": "ERROR", "text": "void resize(int s)", "parent": 375, "children": [377, 378], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 22}}, {"id": 377, "type": "primitive_type", "text": "void", "parent": 376, "children": [], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 8}}, {"id": 378, "type": "function_declarator", "text": "resize(int s)", "parent": 376, "children": [379, 380], "start_point": {"row": 80, "column": 9}, "end_point": {"row": 80, "column": 22}}, {"id": 379, "type": "identifier", "text": "resize", "parent": 378, "children": [], "start_point": {"row": 80, "column": 9}, "end_point": {"row": 80, "column": 15}}, {"id": 380, "type": "parameter_list", "text": "(int s)", "parent": 378, "children": [381], "start_point": {"row": 80, "column": 15}, "end_point": {"row": 80, "column": 22}}, {"id": 381, "type": "parameter_declaration", "text": "int s", "parent": 380, "children": [382, 383], "start_point": {"row": 80, "column": 16}, "end_point": {"row": 80, "column": 21}}, {"id": 382, "type": "primitive_type", "text": "int", "parent": 381, "children": [], "start_point": {"row": 80, "column": 16}, "end_point": {"row": 80, "column": 19}}, {"id": 383, "type": "identifier", "text": "s", "parent": 381, "children": [], "start_point": {"row": 80, "column": 20}, "end_point": {"row": 80, "column": 21}}, {"id": 384, "type": "call_expression", "text": "count.resize(s)", "parent": 375, "children": [385, 388], "start_point": {"row": 80, "column": 23}, "end_point": {"row": 80, "column": 38}}, {"id": 385, "type": "field_expression", "text": "count.resize", "parent": 384, "children": [386, 387], "start_point": {"row": 80, "column": 23}, "end_point": {"row": 80, "column": 35}}, {"id": 386, "type": "identifier", "text": "count", "parent": 385, "children": [], "start_point": {"row": 80, "column": 23}, "end_point": {"row": 80, "column": 28}}, {"id": 387, "type": "field_identifier", "text": "resize", "parent": 385, "children": [], "start_point": {"row": 80, "column": 29}, "end_point": {"row": 80, "column": 35}}, {"id": 388, "type": "argument_list", "text": "(s)", "parent": 384, "children": [389], "start_point": {"row": 80, "column": 35}, "end_point": {"row": 80, "column": 38}}, {"id": 389, "type": "identifier", "text": "s", "parent": 388, "children": [], "start_point": {"row": 80, "column": 36}, "end_point": {"row": 80, "column": 37}}, {"id": 390, "type": "function_definition", "text": "void reset(int s){\n count = std::vector<int>(s,(int)0);\n totalCount=0;\n }", "parent": 373, "children": [391, 392], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 84, "column": 5}}, {"id": 391, "type": "primitive_type", "text": "void", "parent": 390, "children": [], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 8}}, {"id": 392, "type": "function_declarator", "text": "reset(int s)", "parent": 390, "children": [393, 394], "start_point": {"row": 81, "column": 9}, "end_point": {"row": 81, "column": 21}}, {"id": 393, "type": "identifier", "text": "reset", "parent": 392, "children": [], "start_point": {"row": 81, "column": 9}, "end_point": {"row": 81, "column": 14}}, {"id": 394, "type": "parameter_list", "text": "(int s)", "parent": 392, "children": [395], "start_point": {"row": 81, "column": 14}, "end_point": {"row": 81, "column": 21}}, {"id": 395, "type": "parameter_declaration", "text": "int s", "parent": 394, "children": [396, 397], "start_point": {"row": 81, "column": 15}, "end_point": {"row": 81, "column": 20}}, {"id": 396, "type": "primitive_type", "text": "int", "parent": 395, "children": [], "start_point": {"row": 81, "column": 15}, "end_point": {"row": 81, "column": 18}}, {"id": 397, "type": "identifier", "text": "s", "parent": 395, "children": [], "start_point": {"row": 81, "column": 19}, "end_point": {"row": 81, "column": 20}}, {"id": 398, "type": "binary_expression", "text": "count = std::vector<int>(s,(int)0)", "parent": 390, "children": [399, 408, 409], "start_point": {"row": 82, "column": 6}, "end_point": {"row": 82, "column": 40}}, {"id": 399, "type": "binary_expression", "text": "count = std::vector<int", "parent": 398, "children": [400, 404, 406, 407], "start_point": {"row": 82, "column": 6}, "end_point": {"row": 82, "column": 29}}, {"id": 400, "type": "assignment_expression", "text": "count = std", "parent": 399, "children": [401, 402, 403], "start_point": {"row": 82, "column": 6}, "end_point": {"row": 82, "column": 17}}, {"id": 401, "type": "identifier", "text": "count", "parent": 400, "children": [], "start_point": {"row": 82, "column": 6}, "end_point": {"row": 82, "column": 11}}, {"id": 402, "type": "=", "text": "=", "parent": 400, "children": [], "start_point": {"row": 82, "column": 12}, "end_point": {"row": 82, "column": 13}}, {"id": 403, "type": "identifier", "text": "std", "parent": 400, "children": [], "start_point": {"row": 82, "column": 14}, "end_point": {"row": 82, "column": 17}}, {"id": 404, "type": "ERROR", "text": "::vector", "parent": 399, "children": [405], "start_point": {"row": 82, "column": 17}, "end_point": {"row": 82, "column": 25}}, {"id": 405, "type": "identifier", "text": "vector", "parent": 404, "children": [], "start_point": {"row": 82, "column": 19}, "end_point": {"row": 82, "column": 25}}, {"id": 406, "type": "<", "text": "<", "parent": 399, "children": [], "start_point": {"row": 82, "column": 25}, "end_point": {"row": 82, "column": 26}}, {"id": 407, "type": "identifier", "text": "int", "parent": 399, "children": [], "start_point": {"row": 82, "column": 26}, "end_point": {"row": 82, "column": 29}}, {"id": 408, "type": ">", "text": ">", "parent": 398, "children": [], "start_point": {"row": 82, "column": 29}, "end_point": {"row": 82, "column": 30}}, {"id": 409, "type": "parenthesized_expression", "text": "(s,(int)0)", "parent": 398, "children": [410], "start_point": {"row": 82, "column": 30}, "end_point": {"row": 82, "column": 40}}, {"id": 410, "type": "comma_expression", "text": "s,(int)0", "parent": 409, "children": [411, 412], "start_point": {"row": 82, "column": 31}, "end_point": {"row": 82, "column": 39}}, {"id": 411, "type": "identifier", "text": "s", "parent": 410, "children": [], "start_point": {"row": 82, "column": 31}, "end_point": {"row": 82, "column": 32}}, {"id": 412, "type": "cast_expression", "text": "(int)0", "parent": 410, "children": [413, 415], "start_point": {"row": 82, "column": 33}, "end_point": {"row": 82, "column": 39}}, {"id": 413, "type": "type_descriptor", "text": "int", "parent": 412, "children": [414], "start_point": {"row": 82, "column": 34}, "end_point": {"row": 82, "column": 37}}, {"id": 414, "type": "primitive_type", "text": "int", "parent": 413, "children": [], "start_point": {"row": 82, "column": 34}, "end_point": {"row": 82, "column": 37}}, {"id": 415, "type": "number_literal", "text": "0", "parent": 412, "children": [], "start_point": {"row": 82, "column": 38}, "end_point": {"row": 82, "column": 39}}, {"id": 416, "type": "assignment_expression", "text": "totalCount=0", "parent": 390, "children": [417, 418, 419], "start_point": {"row": 83, "column": 6}, "end_point": {"row": 83, "column": 18}}, {"id": 417, "type": "identifier", "text": "totalCount", "parent": 416, "children": [], "start_point": {"row": 83, "column": 6}, "end_point": {"row": 83, "column": 16}}, {"id": 418, "type": "=", "text": "=", "parent": 416, "children": [], "start_point": {"row": 83, "column": 16}, "end_point": {"row": 83, "column": 17}}, {"id": 419, "type": "number_literal", "text": "0", "parent": 416, "children": [], "start_point": {"row": 83, "column": 17}, "end_point": {"row": 83, "column": 18}}, {"id": 420, "type": "function_definition", "text": "void addPoint(int val){\n // no checking here whether val is a valid index\n //std::cout << \"in Histogram::addPoint(\"<<val<<\")\"<<std::endl;\n count[val]++;\n totalCount++;\n }", "parent": 373, "children": [421, 422], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 91, "column": 5}}, {"id": 421, "type": "primitive_type", "text": "void", "parent": 420, "children": [], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 8}}, {"id": 422, "type": "function_declarator", "text": "addPoint(int val)", "parent": 420, "children": [423, 424], "start_point": {"row": 86, "column": 9}, "end_point": {"row": 86, "column": 26}}, {"id": 423, "type": "identifier", "text": "addPoint", "parent": 422, "children": [], "start_point": {"row": 86, "column": 9}, "end_point": {"row": 86, "column": 17}}, {"id": 424, "type": "parameter_list", "text": "(int val)", "parent": 422, "children": [425], "start_point": {"row": 86, "column": 17}, "end_point": {"row": 86, "column": 26}}, {"id": 425, "type": "parameter_declaration", "text": "int val", "parent": 424, "children": [426, 427], "start_point": {"row": 86, "column": 18}, "end_point": {"row": 86, "column": 25}}, {"id": 426, "type": "primitive_type", "text": "int", "parent": 425, "children": [], "start_point": {"row": 86, "column": 18}, "end_point": {"row": 86, "column": 21}}, {"id": 427, "type": "identifier", "text": "val", "parent": 425, "children": [], "start_point": {"row": 86, "column": 22}, "end_point": {"row": 86, "column": 25}}, {"id": 428, "type": "update_expression", "text": "count[val]++", "parent": 420, "children": [429, 432], "start_point": {"row": 89, "column": 6}, "end_point": {"row": 89, "column": 18}}, {"id": 429, "type": "subscript_expression", "text": "count[val]", "parent": 428, "children": [430, 431], "start_point": {"row": 89, "column": 6}, "end_point": {"row": 89, "column": 16}}, {"id": 430, "type": "identifier", "text": "count", "parent": 429, "children": [], "start_point": {"row": 89, "column": 6}, "end_point": {"row": 89, "column": 11}}, {"id": 431, "type": "identifier", "text": "val", "parent": 429, "children": [], "start_point": {"row": 89, "column": 12}, "end_point": {"row": 89, "column": 15}}, {"id": 432, "type": "++", "text": "++", "parent": 428, "children": [], "start_point": {"row": 89, "column": 16}, "end_point": {"row": 89, "column": 18}}, {"id": 433, "type": "update_expression", "text": "totalCount++", "parent": 420, "children": [434, 435], "start_point": {"row": 90, "column": 6}, "end_point": {"row": 90, "column": 18}}, {"id": 434, "type": "identifier", "text": "totalCount", "parent": 433, "children": [], "start_point": {"row": 90, "column": 6}, "end_point": {"row": 90, "column": 16}}, {"id": 435, "type": "++", "text": "++", "parent": 433, "children": [], "start_point": {"row": 90, "column": 16}, "end_point": {"row": 90, "column": 18}}, {"id": 436, "type": "function_definition", "text": "void dump(std::ostream &os) const{\n size_t i;\n for(i=0;i<count.size();i++)\n\tos << \"count[\" <<i<<\":\"<<count[i]<<std::endl;\n }", "parent": 373, "children": [437, 438], "start_point": {"row": 93, "column": 4}, "end_point": {"row": 97, "column": 5}}, {"id": 437, "type": "primitive_type", "text": "void", "parent": 436, "children": [], "start_point": {"row": 93, "column": 4}, "end_point": {"row": 93, "column": 8}}, {"id": 438, "type": "function_declarator", "text": "dump(std::ostream &os) const", "parent": 436, "children": [439, 440], "start_point": {"row": 93, "column": 9}, "end_point": {"row": 93, "column": 37}}, {"id": 439, "type": "identifier", "text": "dump", "parent": 438, "children": [], "start_point": {"row": 93, "column": 9}, "end_point": {"row": 93, "column": 13}}, {"id": 440, "type": "parameter_list", "text": "(std::ostream &os)", "parent": 438, "children": [441], "start_point": {"row": 93, "column": 13}, "end_point": {"row": 93, "column": 31}}, {"id": 441, "type": "parameter_declaration", "text": "std::ostream &os", "parent": 440, "children": [442, 443, 445], "start_point": {"row": 93, "column": 14}, "end_point": {"row": 93, "column": 30}}, {"id": 442, "type": "type_identifier", "text": "std", "parent": 441, "children": [], "start_point": {"row": 93, "column": 14}, "end_point": {"row": 93, "column": 17}}, {"id": 443, "type": "ERROR", "text": "::ostream &", "parent": 441, "children": [444], "start_point": {"row": 93, "column": 17}, "end_point": {"row": 93, "column": 28}}, {"id": 444, "type": "identifier", "text": "ostream", "parent": 443, "children": [], "start_point": {"row": 93, "column": 19}, "end_point": {"row": 93, "column": 26}}, {"id": 445, "type": "identifier", "text": "os", "parent": 441, "children": [], "start_point": {"row": 93, "column": 28}, "end_point": {"row": 93, "column": 30}}, {"id": 446, "type": "declaration", "text": "size_t i;", "parent": 436, "children": [447, 448], "start_point": {"row": 94, "column": 6}, "end_point": {"row": 94, "column": 15}}, {"id": 447, "type": "primitive_type", "text": "size_t", "parent": 446, "children": [], "start_point": {"row": 94, "column": 6}, "end_point": {"row": 94, "column": 12}}, {"id": 448, "type": "identifier", "text": "i", "parent": 446, "children": [], "start_point": {"row": 94, "column": 13}, "end_point": {"row": 94, "column": 14}}, {"id": 449, "type": "for_statement", "text": "for(i=0;i<count.size();i++)\n\tos << \"count[\" <<i<<\":\"<<count[i]<<std::endl;", "parent": 436, "children": [450, 454, 462], "start_point": {"row": 95, "column": 6}, "end_point": {"row": 96, "column": 46}}, {"id": 450, "type": "assignment_expression", "text": "i=0", "parent": 449, "children": [451, 452, 453], "start_point": {"row": 95, "column": 10}, "end_point": {"row": 95, "column": 13}}, {"id": 451, "type": "identifier", "text": "i", "parent": 450, "children": [], "start_point": {"row": 95, "column": 10}, "end_point": {"row": 95, "column": 11}}, {"id": 452, "type": "=", "text": "=", "parent": 450, "children": [], "start_point": {"row": 95, "column": 11}, "end_point": {"row": 95, "column": 12}}, {"id": 453, "type": "number_literal", "text": "0", "parent": 450, "children": [], "start_point": {"row": 95, "column": 12}, "end_point": {"row": 95, "column": 13}}, {"id": 454, "type": "binary_expression", "text": "i<count.size()", "parent": 449, "children": [455, 456, 457], "start_point": {"row": 95, "column": 14}, "end_point": {"row": 95, "column": 28}}, {"id": 455, "type": "identifier", "text": "i", "parent": 454, "children": [], "start_point": {"row": 95, "column": 14}, "end_point": {"row": 95, "column": 15}}, {"id": 456, "type": "<", "text": "<", "parent": 454, "children": [], "start_point": {"row": 95, "column": 15}, "end_point": {"row": 95, "column": 16}}, {"id": 457, "type": "call_expression", "text": "count.size()", "parent": 454, "children": [458, 461], "start_point": {"row": 95, "column": 16}, "end_point": {"row": 95, "column": 28}}, {"id": 458, "type": "field_expression", "text": "count.size", "parent": 457, "children": [459, 460], "start_point": {"row": 95, "column": 16}, "end_point": {"row": 95, "column": 26}}, {"id": 459, "type": "identifier", "text": "count", "parent": 458, "children": [], "start_point": {"row": 95, "column": 16}, "end_point": {"row": 95, "column": 21}}, {"id": 460, "type": "field_identifier", "text": "size", "parent": 458, "children": [], "start_point": {"row": 95, "column": 22}, "end_point": {"row": 95, "column": 26}}, {"id": 461, "type": "argument_list", "text": "()", "parent": 457, "children": [], "start_point": {"row": 95, "column": 26}, "end_point": {"row": 95, "column": 28}}, {"id": 462, "type": "update_expression", "text": "i++", "parent": 449, "children": [463, 464], "start_point": {"row": 95, "column": 29}, "end_point": {"row": 95, "column": 32}}, {"id": 463, "type": "identifier", "text": "i", "parent": 462, "children": [], "start_point": {"row": 95, "column": 29}, "end_point": {"row": 95, "column": 30}}, {"id": 464, "type": "++", "text": "++", "parent": 462, "children": [], "start_point": {"row": 95, "column": 30}, "end_point": {"row": 95, "column": 32}}, {"id": 465, "type": "binary_expression", "text": "os << \"count[\" <<i<<\":\"<<count[i]<<std", "parent": 449, "children": [466, 481, 482], "start_point": {"row": 96, "column": 1}, "end_point": {"row": 96, "column": 39}}, {"id": 466, "type": "binary_expression", "text": "os << \"count[\" <<i<<\":\"<<count[i]", "parent": 465, "children": [467, 477, 478], "start_point": {"row": 96, "column": 1}, "end_point": {"row": 96, "column": 34}}, {"id": 467, "type": "binary_expression", "text": "os << \"count[\" <<i<<\":\"", "parent": 466, "children": [468, 475, 476], "start_point": {"row": 96, "column": 1}, "end_point": {"row": 96, "column": 24}}, {"id": 468, "type": "binary_expression", "text": "os << \"count[\" <<i", "parent": 467, "children": [469, 473, 474], "start_point": {"row": 96, "column": 1}, "end_point": {"row": 96, "column": 19}}, {"id": 469, "type": "binary_expression", "text": "os << \"count[\"", "parent": 468, "children": [470, 471, 472], "start_point": {"row": 96, "column": 1}, "end_point": {"row": 96, "column": 15}}, {"id": 470, "type": "identifier", "text": "os", "parent": 469, "children": [], "start_point": {"row": 96, "column": 1}, "end_point": {"row": 96, "column": 3}}, {"id": 471, "type": "<<", "text": "<<", "parent": 469, "children": [], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 6}}, {"id": 472, "type": "string_literal", "text": "\"count[\"", "parent": 469, "children": [], "start_point": {"row": 96, "column": 7}, "end_point": {"row": 96, "column": 15}}, {"id": 473, "type": "<<", "text": "<<", "parent": 468, "children": [], "start_point": {"row": 96, "column": 16}, "end_point": {"row": 96, "column": 18}}, {"id": 474, "type": "identifier", "text": "i", "parent": 468, "children": [], "start_point": {"row": 96, "column": 18}, "end_point": {"row": 96, "column": 19}}, {"id": 475, "type": "<<", "text": "<<", "parent": 467, "children": [], "start_point": {"row": 96, "column": 19}, "end_point": {"row": 96, "column": 21}}, {"id": 476, "type": "string_literal", "text": "\":\"", "parent": 467, "children": [], "start_point": {"row": 96, "column": 21}, "end_point": {"row": 96, "column": 24}}, {"id": 477, "type": "<<", "text": "<<", "parent": 466, "children": [], "start_point": {"row": 96, "column": 24}, "end_point": {"row": 96, "column": 26}}, {"id": 478, "type": "subscript_expression", "text": "count[i]", "parent": 466, "children": [479, 480], "start_point": {"row": 96, "column": 26}, "end_point": {"row": 96, "column": 34}}, {"id": 479, "type": "identifier", "text": "count", "parent": 478, "children": [], "start_point": {"row": 96, "column": 26}, "end_point": {"row": 96, "column": 31}}, {"id": 480, "type": "identifier", "text": "i", "parent": 478, "children": [], "start_point": {"row": 96, "column": 32}, "end_point": {"row": 96, "column": 33}}, {"id": 481, "type": "<<", "text": "<<", "parent": 465, "children": [], "start_point": {"row": 96, "column": 34}, "end_point": {"row": 96, "column": 36}}, {"id": 482, "type": "identifier", "text": "std", "parent": 465, "children": [], "start_point": {"row": 96, "column": 36}, "end_point": {"row": 96, "column": 39}}, {"id": 483, "type": "ERROR", "text": "::endl", "parent": 449, "children": [484], "start_point": {"row": 96, "column": 39}, "end_point": {"row": 96, "column": 45}}, {"id": 484, "type": "identifier", "text": "endl", "parent": 483, "children": [], "start_point": {"row": 96, "column": 41}, "end_point": {"row": 96, "column": 45}}, {"id": 485, "type": "ERROR", "text": "float calcEntropy() const", "parent": 373, "children": [486, 487], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 29}}, {"id": 486, "type": "primitive_type", "text": "float", "parent": 485, "children": [], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 9}}, {"id": 487, "type": "function_declarator", "text": "calcEntropy()", "parent": 485, "children": [488, 489], "start_point": {"row": 98, "column": 10}, "end_point": {"row": 98, "column": 23}}, {"id": 488, "type": "identifier", "text": "calcEntropy", "parent": 487, "children": [], "start_point": {"row": 98, "column": 10}, "end_point": {"row": 98, "column": 21}}, {"id": 489, "type": "parameter_list", "text": "()", "parent": 487, "children": [], "start_point": {"row": 98, "column": 21}, "end_point": {"row": 98, "column": 23}}, {"id": 490, "type": "if_statement", "text": "if(!totalCount) return 0;", "parent": 373, "children": [491, 495], "start_point": {"row": 100, "column": 6}, "end_point": {"row": 100, "column": 31}}, {"id": 491, "type": "parenthesized_expression", "text": "(!totalCount)", "parent": 490, "children": [492], "start_point": {"row": 100, "column": 8}, "end_point": {"row": 100, "column": 21}}, {"id": 492, "type": "unary_expression", "text": "!totalCount", "parent": 491, "children": [493, 494], "start_point": {"row": 100, "column": 9}, "end_point": {"row": 100, "column": 20}}, {"id": 493, "type": "!", "text": "!", "parent": 492, "children": [], "start_point": {"row": 100, "column": 9}, "end_point": {"row": 100, "column": 10}}, {"id": 494, "type": "identifier", "text": "totalCount", "parent": 492, "children": [], "start_point": {"row": 100, "column": 10}, "end_point": {"row": 100, "column": 20}}, {"id": 495, "type": "return_statement", "text": "return 0;", "parent": 490, "children": [496], "start_point": {"row": 100, "column": 22}, "end_point": {"row": 100, "column": 31}}, {"id": 496, "type": "number_literal", "text": "0", "parent": 495, "children": [], "start_point": {"row": 100, "column": 29}, "end_point": {"row": 100, "column": 30}}, {"id": 497, "type": "declaration", "text": "float h=0,logN=log((double)totalCount);", "parent": 373, "children": [498, 499, 503], "start_point": {"row": 103, "column": 6}, "end_point": {"row": 103, "column": 45}}, {"id": 498, "type": "primitive_type", "text": "float", "parent": 497, "children": [], "start_point": {"row": 103, "column": 6}, "end_point": {"row": 103, "column": 11}}, {"id": 499, "type": "init_declarator", "text": "h=0", "parent": 497, "children": [500, 501, 502], "start_point": {"row": 103, "column": 12}, "end_point": {"row": 103, "column": 15}}, {"id": 500, "type": "identifier", "text": "h", "parent": 499, "children": [], "start_point": {"row": 103, "column": 12}, "end_point": {"row": 103, "column": 13}}, {"id": 501, "type": "=", "text": "=", "parent": 499, "children": [], "start_point": {"row": 103, "column": 13}, "end_point": {"row": 103, "column": 14}}, {"id": 502, "type": "number_literal", "text": "0", "parent": 499, "children": [], "start_point": {"row": 103, "column": 14}, "end_point": {"row": 103, "column": 15}}, {"id": 503, "type": "init_declarator", "text": "logN=log((double)totalCount)", "parent": 497, "children": [504, 505, 506], "start_point": {"row": 103, "column": 16}, "end_point": {"row": 103, "column": 44}}, {"id": 504, "type": "identifier", "text": "logN", "parent": 503, "children": [], "start_point": {"row": 103, "column": 16}, "end_point": {"row": 103, "column": 20}}, {"id": 505, "type": "=", "text": "=", "parent": 503, "children": [], "start_point": {"row": 103, "column": 20}, "end_point": {"row": 103, "column": 21}}, {"id": 506, "type": "call_expression", "text": "log((double)totalCount)", "parent": 503, "children": [507, 508], "start_point": {"row": 103, "column": 21}, "end_point": {"row": 103, "column": 44}}, {"id": 507, "type": "identifier", "text": "log", "parent": 506, "children": [], "start_point": {"row": 103, "column": 21}, "end_point": {"row": 103, "column": 24}}, {"id": 508, "type": "argument_list", "text": "((double)totalCount)", "parent": 506, "children": [509], "start_point": {"row": 103, "column": 24}, "end_point": {"row": 103, "column": 44}}, {"id": 509, "type": "cast_expression", "text": "(double)totalCount", "parent": 508, "children": [510, 512], "start_point": {"row": 103, "column": 25}, "end_point": {"row": 103, "column": 43}}, {"id": 510, "type": "type_descriptor", "text": "double", "parent": 509, "children": [511], "start_point": {"row": 103, "column": 26}, "end_point": {"row": 103, "column": 32}}, {"id": 511, "type": "primitive_type", "text": "double", "parent": 510, "children": [], "start_point": {"row": 103, "column": 26}, "end_point": {"row": 103, "column": 32}}, {"id": 512, "type": "identifier", "text": "totalCount", "parent": 509, "children": [], "start_point": {"row": 103, "column": 33}, "end_point": {"row": 103, "column": 43}}, {"id": 513, "type": "declaration", "text": "size_t i;", "parent": 373, "children": [514, 515], "start_point": {"row": 104, "column": 6}, "end_point": {"row": 104, "column": 15}}, {"id": 514, "type": "primitive_type", "text": "size_t", "parent": 513, "children": [], "start_point": {"row": 104, "column": 6}, "end_point": {"row": 104, "column": 12}}, {"id": 515, "type": "identifier", "text": "i", "parent": 513, "children": [], "start_point": {"row": 104, "column": 13}, "end_point": {"row": 104, "column": 14}}, {"id": 516, "type": "for_statement", "text": "for(i=0;i<count.size();i++)\n\tif(count[i])\n\t h += count[i]*(log((double)count[i])-logN);", "parent": 373, "children": [517, 521, 529, 532], "start_point": {"row": 105, "column": 6}, "end_point": {"row": 107, "column": 46}}, {"id": 517, "type": "assignment_expression", "text": "i=0", "parent": 516, "children": [518, 519, 520], "start_point": {"row": 105, "column": 10}, "end_point": {"row": 105, "column": 13}}, {"id": 518, "type": "identifier", "text": "i", "parent": 517, "children": [], "start_point": {"row": 105, "column": 10}, "end_point": {"row": 105, "column": 11}}, {"id": 519, "type": "=", "text": "=", "parent": 517, "children": [], "start_point": {"row": 105, "column": 11}, "end_point": {"row": 105, "column": 12}}, {"id": 520, "type": "number_literal", "text": "0", "parent": 517, "children": [], "start_point": {"row": 105, "column": 12}, "end_point": {"row": 105, "column": 13}}, {"id": 521, "type": "binary_expression", "text": "i<count.size()", "parent": 516, "children": [522, 523, 524], "start_point": {"row": 105, "column": 14}, "end_point": {"row": 105, "column": 28}}, {"id": 522, "type": "identifier", "text": "i", "parent": 521, "children": [], "start_point": {"row": 105, "column": 14}, "end_point": {"row": 105, "column": 15}}, {"id": 523, "type": "<", "text": "<", "parent": 521, "children": [], "start_point": {"row": 105, "column": 15}, "end_point": {"row": 105, "column": 16}}, {"id": 524, "type": "call_expression", "text": "count.size()", "parent": 521, "children": [525, 528], "start_point": {"row": 105, "column": 16}, "end_point": {"row": 105, "column": 28}}, {"id": 525, "type": "field_expression", "text": "count.size", "parent": 524, "children": [526, 527], "start_point": {"row": 105, "column": 16}, "end_point": {"row": 105, "column": 26}}, {"id": 526, "type": "identifier", "text": "count", "parent": 525, "children": [], "start_point": {"row": 105, "column": 16}, "end_point": {"row": 105, "column": 21}}, {"id": 527, "type": "field_identifier", "text": "size", "parent": 525, "children": [], "start_point": {"row": 105, "column": 22}, "end_point": {"row": 105, "column": 26}}, {"id": 528, "type": "argument_list", "text": "()", "parent": 524, "children": [], "start_point": {"row": 105, "column": 26}, "end_point": {"row": 105, "column": 28}}, {"id": 529, "type": "update_expression", "text": "i++", "parent": 516, "children": [530, 531], "start_point": {"row": 105, "column": 29}, "end_point": {"row": 105, "column": 32}}, {"id": 530, "type": "identifier", "text": "i", "parent": 529, "children": [], "start_point": {"row": 105, "column": 29}, "end_point": {"row": 105, "column": 30}}, {"id": 531, "type": "++", "text": "++", "parent": 529, "children": [], "start_point": {"row": 105, "column": 30}, "end_point": {"row": 105, "column": 32}}, {"id": 532, "type": "if_statement", "text": "if(count[i])\n\t h += count[i]*(log((double)count[i])-logN);", "parent": 516, "children": [533], "start_point": {"row": 106, "column": 1}, "end_point": {"row": 107, "column": 46}}, {"id": 533, "type": "parenthesized_expression", "text": "(count[i])", "parent": 532, "children": [534], "start_point": {"row": 106, "column": 3}, "end_point": {"row": 106, "column": 13}}, {"id": 534, "type": "subscript_expression", "text": "count[i]", "parent": 533, "children": [535, 536], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 106, "column": 12}}, {"id": 535, "type": "identifier", "text": "count", "parent": 534, "children": [], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 106, "column": 9}}, {"id": 536, "type": "identifier", "text": "i", "parent": 534, "children": [], "start_point": {"row": 106, "column": 10}, "end_point": {"row": 106, "column": 11}}, {"id": 537, "type": "assignment_expression", "text": "h += count[i]*(log((double)count[i])-logN)", "parent": 532, "children": [538, 539, 540], "start_point": {"row": 107, "column": 3}, "end_point": {"row": 107, "column": 45}}, {"id": 538, "type": "identifier", "text": "h", "parent": 537, "children": [], "start_point": {"row": 107, "column": 3}, "end_point": {"row": 107, "column": 4}}, {"id": 539, "type": "+=", "text": "+=", "parent": 537, "children": [], "start_point": {"row": 107, "column": 5}, "end_point": {"row": 107, "column": 7}}, {"id": 540, "type": "binary_expression", "text": "count[i]*(log((double)count[i])-logN)", "parent": 537, "children": [541, 544, 545], "start_point": {"row": 107, "column": 8}, "end_point": {"row": 107, "column": 45}}, {"id": 541, "type": "subscript_expression", "text": "count[i]", "parent": 540, "children": [542, 543], "start_point": {"row": 107, "column": 8}, "end_point": {"row": 107, "column": 16}}, {"id": 542, "type": "identifier", "text": "count", "parent": 541, "children": [], "start_point": {"row": 107, "column": 8}, "end_point": {"row": 107, "column": 13}}, {"id": 543, "type": "identifier", "text": "i", "parent": 541, "children": [], "start_point": {"row": 107, "column": 14}, "end_point": {"row": 107, "column": 15}}, {"id": 544, "type": "*", "text": "*", "parent": 540, "children": [], "start_point": {"row": 107, "column": 16}, "end_point": {"row": 107, "column": 17}}, {"id": 545, "type": "parenthesized_expression", "text": "(log((double)count[i])-logN)", "parent": 540, "children": [546], "start_point": {"row": 107, "column": 17}, "end_point": {"row": 107, "column": 45}}, {"id": 546, "type": "binary_expression", "text": "log((double)count[i])-logN", "parent": 545, "children": [547, 556, 557], "start_point": {"row": 107, "column": 18}, "end_point": {"row": 107, "column": 44}}, {"id": 547, "type": "call_expression", "text": "log((double)count[i])", "parent": 546, "children": [548, 549], "start_point": {"row": 107, "column": 18}, "end_point": {"row": 107, "column": 39}}, {"id": 548, "type": "identifier", "text": "log", "parent": 547, "children": [], "start_point": {"row": 107, "column": 18}, "end_point": {"row": 107, "column": 21}}, {"id": 549, "type": "argument_list", "text": "((double)count[i])", "parent": 547, "children": [550], "start_point": {"row": 107, "column": 21}, "end_point": {"row": 107, "column": 39}}, {"id": 550, "type": "cast_expression", "text": "(double)count[i]", "parent": 549, "children": [551, 553], "start_point": {"row": 107, "column": 22}, "end_point": {"row": 107, "column": 38}}, {"id": 551, "type": "type_descriptor", "text": "double", "parent": 550, "children": [552], "start_point": {"row": 107, "column": 23}, "end_point": {"row": 107, "column": 29}}, {"id": 552, "type": "primitive_type", "text": "double", "parent": 551, "children": [], "start_point": {"row": 107, "column": 23}, "end_point": {"row": 107, "column": 29}}, {"id": 553, "type": "subscript_expression", "text": "count[i]", "parent": 550, "children": [554, 555], "start_point": {"row": 107, "column": 30}, "end_point": {"row": 107, "column": 38}}, {"id": 554, "type": "identifier", "text": "count", "parent": 553, "children": [], "start_point": {"row": 107, "column": 30}, "end_point": {"row": 107, "column": 35}}, {"id": 555, "type": "identifier", "text": "i", "parent": 553, "children": [], "start_point": {"row": 107, "column": 36}, "end_point": {"row": 107, "column": 37}}, {"id": 556, "type": "-", "text": "-", "parent": 546, "children": [], "start_point": {"row": 107, "column": 39}, "end_point": {"row": 107, "column": 40}}, {"id": 557, "type": "identifier", "text": "logN", "parent": 546, "children": [], "start_point": {"row": 107, "column": 40}, "end_point": {"row": 107, "column": 44}}, {"id": 558, "type": "return_statement", "text": "return -h / (totalCount*log(2.0));", "parent": 373, "children": [559], "start_point": {"row": 109, "column": 6}, "end_point": {"row": 109, "column": 40}}, {"id": 559, "type": "binary_expression", "text": "-h / (totalCount*log(2.0))", "parent": 558, "children": [560, 563, 564], "start_point": {"row": 109, "column": 13}, "end_point": {"row": 109, "column": 39}}, {"id": 560, "type": "unary_expression", "text": "-h", "parent": 559, "children": [561, 562], "start_point": {"row": 109, "column": 13}, "end_point": {"row": 109, "column": 15}}, {"id": 561, "type": "-", "text": "-", "parent": 560, "children": [], "start_point": {"row": 109, "column": 13}, "end_point": {"row": 109, "column": 14}}, {"id": 562, "type": "identifier", "text": "h", "parent": 560, "children": [], "start_point": {"row": 109, "column": 14}, "end_point": {"row": 109, "column": 15}}, {"id": 563, "type": "/", "text": "/", "parent": 559, "children": [], "start_point": {"row": 109, "column": 16}, "end_point": {"row": 109, "column": 17}}, {"id": 564, "type": "parenthesized_expression", "text": "(totalCount*log(2.0))", "parent": 559, "children": [565], "start_point": {"row": 109, "column": 18}, "end_point": {"row": 109, "column": 39}}, {"id": 565, "type": "binary_expression", "text": "totalCount*log(2.0)", "parent": 564, "children": [566, 567, 568], "start_point": {"row": 109, "column": 19}, "end_point": {"row": 109, "column": 38}}, {"id": 566, "type": "identifier", "text": "totalCount", "parent": 565, "children": [], "start_point": {"row": 109, "column": 19}, "end_point": {"row": 109, "column": 29}}, {"id": 567, "type": "*", "text": "*", "parent": 565, "children": [], "start_point": {"row": 109, "column": 29}, "end_point": {"row": 109, "column": 30}}, {"id": 568, "type": "call_expression", "text": "log(2.0)", "parent": 565, "children": [569, 570], "start_point": {"row": 109, "column": 30}, "end_point": {"row": 109, "column": 38}}, {"id": 569, "type": "identifier", "text": "log", "parent": 568, "children": [], "start_point": {"row": 109, "column": 30}, "end_point": {"row": 109, "column": 33}}, {"id": 570, "type": "argument_list", "text": "(2.0)", "parent": 568, "children": [571], "start_point": {"row": 109, "column": 33}, "end_point": {"row": 109, "column": 38}}, {"id": 571, "type": "number_literal", "text": "2.0", "parent": 570, "children": [], "start_point": {"row": 109, "column": 34}, "end_point": {"row": 109, "column": 37}}, {"id": 572, "type": "function_definition", "text": "float calcDifference(const Histogram &o) const{\n float d=0;\n float cumd=0;\n size_t i;\n\n for(i=0;i<count.size();i++){\n\td = ((float)count[i])/totalCount;\n\t// std::cout << d << std::endl;\n\td -= ((float)o.count[i])/o.totalCount;\n\tcumd += (d>0) ? d : -d;\n }\n \n return cumd;\n }", "parent": 373, "children": [573, 574], "start_point": {"row": 115, "column": 4}, "end_point": {"row": 128, "column": 5}}, {"id": 573, "type": "primitive_type", "text": "float", "parent": 572, "children": [], "start_point": {"row": 115, "column": 4}, "end_point": {"row": 115, "column": 9}}, {"id": 574, "type": "function_declarator", "text": "calcDifference(const Histogram &o) const", "parent": 572, "children": [575, 576], "start_point": {"row": 115, "column": 10}, "end_point": {"row": 115, "column": 50}}, {"id": 575, "type": "identifier", "text": "calcDifference", "parent": 574, "children": [], "start_point": {"row": 115, "column": 10}, "end_point": {"row": 115, "column": 24}}, {"id": 576, "type": "parameter_list", "text": "(const Histogram &o)", "parent": 574, "children": [577], "start_point": {"row": 115, "column": 24}, "end_point": {"row": 115, "column": 44}}, {"id": 577, "type": "parameter_declaration", "text": "const Histogram &o", "parent": 576, "children": [578, 579], "start_point": {"row": 115, "column": 25}, "end_point": {"row": 115, "column": 43}}, {"id": 578, "type": "type_identifier", "text": "Histogram", "parent": 577, "children": [], "start_point": {"row": 115, "column": 31}, "end_point": {"row": 115, "column": 40}}, {"id": 579, "type": "identifier", "text": "o", "parent": 577, "children": [], "start_point": {"row": 115, "column": 42}, "end_point": {"row": 115, "column": 43}}, {"id": 580, "type": "declaration", "text": "float d=0;", "parent": 572, "children": [581, 582], "start_point": {"row": 116, "column": 6}, "end_point": {"row": 116, "column": 16}}, {"id": 581, "type": "primitive_type", "text": "float", "parent": 580, "children": [], "start_point": {"row": 116, "column": 6}, "end_point": {"row": 116, "column": 11}}, {"id": 582, "type": "init_declarator", "text": "d=0", "parent": 580, "children": [583, 584, 585], "start_point": {"row": 116, "column": 12}, "end_point": {"row": 116, "column": 15}}, {"id": 583, "type": "identifier", "text": "d", "parent": 582, "children": [], "start_point": {"row": 116, "column": 12}, "end_point": {"row": 116, "column": 13}}, {"id": 584, "type": "=", "text": "=", "parent": 582, "children": [], "start_point": {"row": 116, "column": 13}, "end_point": {"row": 116, "column": 14}}, {"id": 585, "type": "number_literal", "text": "0", "parent": 582, "children": [], "start_point": {"row": 116, "column": 14}, "end_point": {"row": 116, "column": 15}}, {"id": 586, "type": "declaration", "text": "float cumd=0;", "parent": 572, "children": [587, 588], "start_point": {"row": 117, "column": 6}, "end_point": {"row": 117, "column": 19}}, {"id": 587, "type": "primitive_type", "text": "float", "parent": 586, "children": [], "start_point": {"row": 117, "column": 6}, "end_point": {"row": 117, "column": 11}}, {"id": 588, "type": "init_declarator", "text": "cumd=0", "parent": 586, "children": [589, 590, 591], "start_point": {"row": 117, "column": 12}, "end_point": {"row": 117, "column": 18}}, {"id": 589, "type": "identifier", "text": "cumd", "parent": 588, "children": [], "start_point": {"row": 117, "column": 12}, "end_point": {"row": 117, "column": 16}}, {"id": 590, "type": "=", "text": "=", "parent": 588, "children": [], "start_point": {"row": 117, "column": 16}, "end_point": {"row": 117, "column": 17}}, {"id": 591, "type": "number_literal", "text": "0", "parent": 588, "children": [], "start_point": {"row": 117, "column": 17}, "end_point": {"row": 117, "column": 18}}, {"id": 592, "type": "declaration", "text": "size_t i;", "parent": 572, "children": [593, 594], "start_point": {"row": 118, "column": 6}, "end_point": {"row": 118, "column": 15}}, {"id": 593, "type": "primitive_type", "text": "size_t", "parent": 592, "children": [], "start_point": {"row": 118, "column": 6}, "end_point": {"row": 118, "column": 12}}, {"id": 594, "type": "identifier", "text": "i", "parent": 592, "children": [], "start_point": {"row": 118, "column": 13}, "end_point": {"row": 118, "column": 14}}, {"id": 595, "type": "for_statement", "text": "for(i=0;i<count.size();i++){\n\td = ((float)count[i])/totalCount;\n\t// std::cout << d << std::endl;\n\td -= ((float)o.count[i])/o.totalCount;\n\tcumd += (d>0) ? d : -d;\n }", "parent": 572, "children": [596, 600, 608], "start_point": {"row": 120, "column": 6}, "end_point": {"row": 125, "column": 7}}, {"id": 596, "type": "assignment_expression", "text": "i=0", "parent": 595, "children": [597, 598, 599], "start_point": {"row": 120, "column": 10}, "end_point": {"row": 120, "column": 13}}, {"id": 597, "type": "identifier", "text": "i", "parent": 596, "children": [], "start_point": {"row": 120, "column": 10}, "end_point": {"row": 120, "column": 11}}, {"id": 598, "type": "=", "text": "=", "parent": 596, "children": [], "start_point": {"row": 120, "column": 11}, "end_point": {"row": 120, "column": 12}}, {"id": 599, "type": "number_literal", "text": "0", "parent": 596, "children": [], "start_point": {"row": 120, "column": 12}, "end_point": {"row": 120, "column": 13}}, {"id": 600, "type": "binary_expression", "text": "i<count.size()", "parent": 595, "children": [601, 602, 603], "start_point": {"row": 120, "column": 14}, "end_point": {"row": 120, "column": 28}}, {"id": 601, "type": "identifier", "text": "i", "parent": 600, "children": [], "start_point": {"row": 120, "column": 14}, "end_point": {"row": 120, "column": 15}}, {"id": 602, "type": "<", "text": "<", "parent": 600, "children": [], "start_point": {"row": 120, "column": 15}, "end_point": {"row": 120, "column": 16}}, {"id": 603, "type": "call_expression", "text": "count.size()", "parent": 600, "children": [604, 607], "start_point": {"row": 120, "column": 16}, "end_point": {"row": 120, "column": 28}}, {"id": 604, "type": "field_expression", "text": "count.size", "parent": 603, "children": [605, 606], "start_point": {"row": 120, "column": 16}, "end_point": {"row": 120, "column": 26}}, {"id": 605, "type": "identifier", "text": "count", "parent": 604, "children": [], "start_point": {"row": 120, "column": 16}, "end_point": {"row": 120, "column": 21}}, {"id": 606, "type": "field_identifier", "text": "size", "parent": 604, "children": [], "start_point": {"row": 120, "column": 22}, "end_point": {"row": 120, "column": 26}}, {"id": 607, "type": "argument_list", "text": "()", "parent": 603, "children": [], "start_point": {"row": 120, "column": 26}, "end_point": {"row": 120, "column": 28}}, {"id": 608, "type": "update_expression", "text": "i++", "parent": 595, "children": [609, 610], "start_point": {"row": 120, "column": 29}, "end_point": {"row": 120, "column": 32}}, {"id": 609, "type": "identifier", "text": "i", "parent": 608, "children": [], "start_point": {"row": 120, "column": 29}, "end_point": {"row": 120, "column": 30}}, {"id": 610, "type": "++", "text": "++", "parent": 608, "children": [], "start_point": {"row": 120, "column": 30}, "end_point": {"row": 120, "column": 32}}, {"id": 611, "type": "assignment_expression", "text": "d = ((float)count[i])/totalCount", "parent": 595, "children": [612, 613, 614], "start_point": {"row": 121, "column": 1}, "end_point": {"row": 121, "column": 33}}, {"id": 612, "type": "identifier", "text": "d", "parent": 611, "children": [], "start_point": {"row": 121, "column": 1}, "end_point": {"row": 121, "column": 2}}, {"id": 613, "type": "=", "text": "=", "parent": 611, "children": [], "start_point": {"row": 121, "column": 3}, "end_point": {"row": 121, "column": 4}}, {"id": 614, "type": "binary_expression", "text": "((float)count[i])/totalCount", "parent": 611, "children": [615, 622, 623], "start_point": {"row": 121, "column": 5}, "end_point": {"row": 121, "column": 33}}, {"id": 615, "type": "parenthesized_expression", "text": "((float)count[i])", "parent": 614, "children": [616], "start_point": {"row": 121, "column": 5}, "end_point": {"row": 121, "column": 22}}, {"id": 616, "type": "cast_expression", "text": "(float)count[i]", "parent": 615, "children": [617, 619], "start_point": {"row": 121, "column": 6}, "end_point": {"row": 121, "column": 21}}, {"id": 617, "type": "type_descriptor", "text": "float", "parent": 616, "children": [618], "start_point": {"row": 121, "column": 7}, "end_point": {"row": 121, "column": 12}}, {"id": 618, "type": "primitive_type", "text": "float", "parent": 617, "children": [], "start_point": {"row": 121, "column": 7}, "end_point": {"row": 121, "column": 12}}, {"id": 619, "type": "subscript_expression", "text": "count[i]", "parent": 616, "children": [620, 621], "start_point": {"row": 121, "column": 13}, "end_point": {"row": 121, "column": 21}}, {"id": 620, "type": "identifier", "text": "count", "parent": 619, "children": [], "start_point": {"row": 121, "column": 13}, "end_point": {"row": 121, "column": 18}}, {"id": 621, "type": "identifier", "text": "i", "parent": 619, "children": [], "start_point": {"row": 121, "column": 19}, "end_point": {"row": 121, "column": 20}}, {"id": 622, "type": "/", "text": "/", "parent": 614, "children": [], "start_point": {"row": 121, "column": 22}, "end_point": {"row": 121, "column": 23}}, {"id": 623, "type": "identifier", "text": "totalCount", "parent": 614, "children": [], "start_point": {"row": 121, "column": 23}, "end_point": {"row": 121, "column": 33}}, {"id": 624, "type": "assignment_expression", "text": "d -= ((float)o.count[i])/o.totalCount", "parent": 595, "children": [625, 626, 627], "start_point": {"row": 123, "column": 1}, "end_point": {"row": 123, "column": 38}}, {"id": 625, "type": "identifier", "text": "d", "parent": 624, "children": [], "start_point": {"row": 123, "column": 1}, "end_point": {"row": 123, "column": 2}}, {"id": 626, "type": "-=", "text": "-=", "parent": 624, "children": [], "start_point": {"row": 123, "column": 3}, "end_point": {"row": 123, "column": 5}}, {"id": 627, "type": "binary_expression", "text": "((float)o.count[i])/o.totalCount", "parent": 624, "children": [628, 637, 638], "start_point": {"row": 123, "column": 6}, "end_point": {"row": 123, "column": 38}}, {"id": 628, "type": "parenthesized_expression", "text": "((float)o.count[i])", "parent": 627, "children": [629], "start_point": {"row": 123, "column": 6}, "end_point": {"row": 123, "column": 25}}, {"id": 629, "type": "cast_expression", "text": "(float)o.count[i]", "parent": 628, "children": [630, 632], "start_point": {"row": 123, "column": 7}, "end_point": {"row": 123, "column": 24}}, {"id": 630, "type": "type_descriptor", "text": "float", "parent": 629, "children": [631], "start_point": {"row": 123, "column": 8}, "end_point": {"row": 123, "column": 13}}, {"id": 631, "type": "primitive_type", "text": "float", "parent": 630, "children": [], "start_point": {"row": 123, "column": 8}, "end_point": {"row": 123, "column": 13}}, {"id": 632, "type": "subscript_expression", "text": "o.count[i]", "parent": 629, "children": [633, 636], "start_point": {"row": 123, "column": 14}, "end_point": {"row": 123, "column": 24}}, {"id": 633, "type": "field_expression", "text": "o.count", "parent": 632, "children": [634, 635], "start_point": {"row": 123, "column": 14}, "end_point": {"row": 123, "column": 21}}, {"id": 634, "type": "identifier", "text": "o", "parent": 633, "children": [], "start_point": {"row": 123, "column": 14}, "end_point": {"row": 123, "column": 15}}, {"id": 635, "type": "field_identifier", "text": "count", "parent": 633, "children": [], "start_point": {"row": 123, "column": 16}, "end_point": {"row": 123, "column": 21}}, {"id": 636, "type": "identifier", "text": "i", "parent": 632, "children": [], "start_point": {"row": 123, "column": 22}, "end_point": {"row": 123, "column": 23}}, {"id": 637, "type": "/", "text": "/", "parent": 627, "children": [], "start_point": {"row": 123, "column": 25}, "end_point": {"row": 123, "column": 26}}, {"id": 638, "type": "field_expression", "text": "o.totalCount", "parent": 627, "children": [639, 640], "start_point": {"row": 123, "column": 26}, "end_point": {"row": 123, "column": 38}}, {"id": 639, "type": "identifier", "text": "o", "parent": 638, "children": [], "start_point": {"row": 123, "column": 26}, "end_point": {"row": 123, "column": 27}}, {"id": 640, "type": "field_identifier", "text": "totalCount", "parent": 638, "children": [], "start_point": {"row": 123, "column": 28}, "end_point": {"row": 123, "column": 38}}, {"id": 641, "type": "assignment_expression", "text": "cumd += (d>0) ? d : -d", "parent": 595, "children": [642, 643, 644], "start_point": {"row": 124, "column": 1}, "end_point": {"row": 124, "column": 23}}, {"id": 642, "type": "identifier", "text": "cumd", "parent": 641, "children": [], "start_point": {"row": 124, "column": 1}, "end_point": {"row": 124, "column": 5}}, {"id": 643, "type": "+=", "text": "+=", "parent": 641, "children": [], "start_point": {"row": 124, "column": 6}, "end_point": {"row": 124, "column": 8}}, {"id": 644, "type": "conditional_expression", "text": "(d>0) ? d : -d", "parent": 641, "children": [645, 650, 651, 652], "start_point": {"row": 124, "column": 9}, "end_point": {"row": 124, "column": 23}}, {"id": 645, "type": "parenthesized_expression", "text": "(d>0)", "parent": 644, "children": [646], "start_point": {"row": 124, "column": 9}, "end_point": {"row": 124, "column": 14}}, {"id": 646, "type": "binary_expression", "text": "d>0", "parent": 645, "children": [647, 648, 649], "start_point": {"row": 124, "column": 10}, "end_point": {"row": 124, "column": 13}}, {"id": 647, "type": "identifier", "text": "d", "parent": 646, "children": [], "start_point": {"row": 124, "column": 10}, "end_point": {"row": 124, "column": 11}}, {"id": 648, "type": ">", "text": ">", "parent": 646, "children": [], "start_point": {"row": 124, "column": 11}, "end_point": {"row": 124, "column": 12}}, {"id": 649, "type": "number_literal", "text": "0", "parent": 646, "children": [], "start_point": {"row": 124, "column": 12}, "end_point": {"row": 124, "column": 13}}, {"id": 650, "type": "?", "text": "?", "parent": 644, "children": [], "start_point": {"row": 124, "column": 15}, "end_point": {"row": 124, "column": 16}}, {"id": 651, "type": "identifier", "text": "d", "parent": 644, "children": [], "start_point": {"row": 124, "column": 17}, "end_point": {"row": 124, "column": 18}}, {"id": 652, "type": "unary_expression", "text": "-d", "parent": 644, "children": [653, 654], "start_point": {"row": 124, "column": 21}, "end_point": {"row": 124, "column": 23}}, {"id": 653, "type": "-", "text": "-", "parent": 652, "children": [], "start_point": {"row": 124, "column": 21}, "end_point": {"row": 124, "column": 22}}, {"id": 654, "type": "identifier", "text": "d", "parent": 652, "children": [], "start_point": {"row": 124, "column": 22}, "end_point": {"row": 124, "column": 23}}, {"id": 655, "type": "return_statement", "text": "return cumd;", "parent": 572, "children": [656], "start_point": {"row": 127, "column": 6}, "end_point": {"row": 127, "column": 18}}, {"id": 656, "type": "identifier", "text": "cumd", "parent": 655, "children": [], "start_point": {"row": 127, "column": 13}, "end_point": {"row": 127, "column": 17}}, {"id": 657, "type": "declaration", "text": "int totalCount;", "parent": 373, "children": [658, 659], "start_point": {"row": 130, "column": 4}, "end_point": {"row": 130, "column": 19}}, {"id": 658, "type": "primitive_type", "text": "int", "parent": 657, "children": [], "start_point": {"row": 130, "column": 4}, "end_point": {"row": 130, "column": 7}}, {"id": 659, "type": "identifier", "text": "totalCount", "parent": 657, "children": [], "start_point": {"row": 130, "column": 8}, "end_point": {"row": 130, "column": 18}}, {"id": 660, "type": "labeled_statement", "text": "std::vector<int> count;", "parent": 373, "children": [661], "start_point": {"row": 131, "column": 4}, "end_point": {"row": 131, "column": 27}}, {"id": 661, "type": "statement_identifier", "text": "std", "parent": 660, "children": [], "start_point": {"row": 131, "column": 4}, "end_point": {"row": 131, "column": 7}}, {"id": 662, "type": "binary_expression", "text": "vector<int> count", "parent": 660, "children": [663, 667, 668], "start_point": {"row": 131, "column": 9}, "end_point": {"row": 131, "column": 26}}, {"id": 663, "type": "binary_expression", "text": "vector<int", "parent": 662, "children": [664, 665, 666], "start_point": {"row": 131, "column": 9}, "end_point": {"row": 131, "column": 19}}, {"id": 664, "type": "identifier", "text": "vector", "parent": 663, "children": [], "start_point": {"row": 131, "column": 9}, "end_point": {"row": 131, "column": 15}}, {"id": 665, "type": "<", "text": "<", "parent": 663, "children": [], "start_point": {"row": 131, "column": 15}, "end_point": {"row": 131, "column": 16}}, {"id": 666, "type": "identifier", "text": "int", "parent": 663, "children": [], "start_point": {"row": 131, "column": 16}, "end_point": {"row": 131, "column": 19}}, {"id": 667, "type": ">", "text": ">", "parent": 662, "children": [], "start_point": {"row": 131, "column": 19}, "end_point": {"row": 131, "column": 20}}, {"id": 668, "type": "identifier", "text": "count", "parent": 662, "children": [], "start_point": {"row": 131, "column": 21}, "end_point": {"row": 131, "column": 26}}, {"id": 669, "type": "function_definition", "text": "class ScaleSal : public Segmentation {\n public:\n /// \n ScaleSal();\n\n /// \n ScaleSal(bool b) : Segmentation(b) {}\n\n /// \n virtual ~ScaleSal();\n\n /// Here are the pure virtuals overloaded:\n \n ///\n virtual Segmentation *Create() const { return new ScaleSal(); } \n\n ///\n virtual const char *Version() const;\n\n ///\n virtual void UsageInfo(ostream& = cout) const;\n\n ///\n virtual const char *MethodName(bool l = false) const {\n return l?\"ScaleSal\":\"ss\"; }", "parent": 12, "children": [670, 672], "start_point": {"row": 135, "column": 2}, "end_point": {"row": 159, "column": 33}}, {"id": 670, "type": "ERROR", "text": "ScaleSal : public", "parent": 669, "children": [671], "start_point": {"row": 135, "column": 8}, "end_point": {"row": 135, "column": 25}}, {"id": 671, "type": "identifier", "text": "ScaleSal", "parent": 670, "children": [], "start_point": {"row": 135, "column": 8}, "end_point": {"row": 135, "column": 16}}, {"id": 672, "type": "identifier", "text": "Segmentation", "parent": 669, "children": [], "start_point": {"row": 135, "column": 26}, "end_point": {"row": 135, "column": 38}}, {"id": 673, "type": "labeled_statement", "text": "public:\n /// \n ScaleSal();", "parent": 669, "children": [], "start_point": {"row": 136, "column": 2}, "end_point": {"row": 138, "column": 15}}, {"id": 674, "type": "call_expression", "text": "ScaleSal()", "parent": 673, "children": [675, 676], "start_point": {"row": 138, "column": 4}, "end_point": {"row": 138, "column": 14}}, {"id": 675, "type": "identifier", "text": "ScaleSal", "parent": 674, "children": [], "start_point": {"row": 138, "column": 4}, "end_point": {"row": 138, "column": 12}}, {"id": 676, "type": "argument_list", "text": "()", "parent": 674, "children": [], "start_point": {"row": 138, "column": 12}, "end_point": {"row": 138, "column": 14}}, {"id": 677, "type": "function_definition", "text": "ScaleSal(bool b) : Segmentation(b) {}", "parent": 669, "children": [678, 684], "start_point": {"row": 141, "column": 4}, "end_point": {"row": 141, "column": 41}}, {"id": 678, "type": "macro_type_specifier", "text": "ScaleSal(bool b)", "parent": 677, "children": [679, 680, 682], "start_point": {"row": 141, "column": 4}, "end_point": {"row": 141, "column": 20}}, {"id": 679, "type": "identifier", "text": "ScaleSal", "parent": 678, "children": [], "start_point": {"row": 141, "column": 4}, "end_point": {"row": 141, "column": 12}}, {"id": 680, "type": "type_descriptor", "text": "bool", "parent": 678, "children": [681], "start_point": {"row": 141, "column": 13}, "end_point": {"row": 141, "column": 17}}, {"id": 681, "type": "primitive_type", "text": "bool", "parent": 680, "children": [], "start_point": {"row": 141, "column": 13}, "end_point": {"row": 141, "column": 17}}, {"id": 682, "type": "ERROR", "text": "b", "parent": 678, "children": [683], "start_point": {"row": 141, "column": 18}, "end_point": {"row": 141, "column": 19}}, {"id": 683, "type": "identifier", "text": "b", "parent": 682, "children": [], "start_point": {"row": 141, "column": 18}, "end_point": {"row": 141, "column": 19}}, {"id": 684, "type": "function_declarator", "text": "Segmentation(b)", "parent": 677, "children": [685, 686], "start_point": {"row": 141, "column": 23}, "end_point": {"row": 141, "column": 38}}, {"id": 685, "type": "identifier", "text": "Segmentation", "parent": 684, "children": [], "start_point": {"row": 141, "column": 23}, "end_point": {"row": 141, "column": 35}}, {"id": 686, "type": "parameter_list", "text": "(b)", "parent": 684, "children": [687], "start_point": {"row": 141, "column": 35}, "end_point": {"row": 141, "column": 38}}, {"id": 687, "type": "parameter_declaration", "text": "b", "parent": 686, "children": [688], "start_point": {"row": 141, "column": 36}, "end_point": {"row": 141, "column": 37}}, {"id": 688, "type": "type_identifier", "text": "b", "parent": 687, "children": [], "start_point": {"row": 141, "column": 36}, "end_point": {"row": 141, "column": 37}}, {"id": 689, "type": "declaration", "text": "virtual ~ScaleSal();", "parent": 669, "children": [690, 691, 693], "start_point": {"row": 144, "column": 4}, "end_point": {"row": 144, "column": 24}}, {"id": 690, "type": "type_identifier", "text": "virtual", "parent": 689, "children": [], "start_point": {"row": 144, "column": 4}, "end_point": {"row": 144, "column": 11}}, {"id": 691, "type": "ERROR", "text": "~", "parent": 689, "children": [692], "start_point": {"row": 144, "column": 12}, "end_point": {"row": 144, "column": 13}}, {"id": 692, "type": "~", "text": "~", "parent": 691, "children": [], "start_point": {"row": 144, "column": 12}, "end_point": {"row": 144, "column": 13}}, {"id": 693, "type": "function_declarator", "text": "ScaleSal()", "parent": 689, "children": [694, 695], "start_point": {"row": 144, "column": 13}, "end_point": {"row": 144, "column": 23}}, {"id": 694, "type": "identifier", "text": "ScaleSal", "parent": 693, "children": [], "start_point": {"row": 144, "column": 13}, "end_point": {"row": 144, "column": 21}}, {"id": 695, "type": "parameter_list", "text": "()", "parent": 693, "children": [], "start_point": {"row": 144, "column": 21}, "end_point": {"row": 144, "column": 23}}, {"id": 696, "type": "function_definition", "text": "virtual Segmentation *Create() const { return new ScaleSal(); }", "parent": 669, "children": [697, 698, 700], "start_point": {"row": 149, "column": 4}, "end_point": {"row": 149, "column": 67}}, {"id": 697, "type": "type_identifier", "text": "virtual", "parent": 696, "children": [], "start_point": {"row": 149, "column": 4}, "end_point": {"row": 149, "column": 11}}, {"id": 698, "type": "ERROR", "text": "Segmentation", "parent": 696, "children": [699], "start_point": {"row": 149, "column": 12}, "end_point": {"row": 149, "column": 24}}, {"id": 699, "type": "identifier", "text": "Segmentation", "parent": 698, "children": [], "start_point": {"row": 149, "column": 12}, "end_point": {"row": 149, "column": 24}}, {"id": 700, "type": "pointer_declarator", "text": "*Create() const", "parent": 696, "children": [701, 702], "start_point": {"row": 149, "column": 25}, "end_point": {"row": 149, "column": 40}}, {"id": 701, "type": "*", "text": "*", "parent": 700, "children": [], "start_point": {"row": 149, "column": 25}, "end_point": {"row": 149, "column": 26}}, {"id": 702, "type": "function_declarator", "text": "Create() const", "parent": 700, "children": [703, 704], "start_point": {"row": 149, "column": 26}, "end_point": {"row": 149, "column": 40}}, {"id": 703, "type": "identifier", "text": "Create", "parent": 702, "children": [], "start_point": {"row": 149, "column": 26}, "end_point": {"row": 149, "column": 32}}, {"id": 704, "type": "parameter_list", "text": "()", "parent": 702, "children": [], "start_point": {"row": 149, "column": 32}, "end_point": {"row": 149, "column": 34}}, {"id": 705, "type": "return_statement", "text": "return new ScaleSal();", "parent": 696, "children": [706], "start_point": {"row": 149, "column": 43}, "end_point": {"row": 149, "column": 65}}, {"id": 706, "type": "call_expression", "text": "ScaleSal()", "parent": 705, "children": [707, 708], "start_point": {"row": 149, "column": 54}, "end_point": {"row": 149, "column": 64}}, {"id": 707, "type": "identifier", "text": "ScaleSal", "parent": 706, "children": [], "start_point": {"row": 149, "column": 54}, "end_point": {"row": 149, "column": 62}}, {"id": 708, "type": "argument_list", "text": "()", "parent": 706, "children": [], "start_point": {"row": 149, "column": 62}, "end_point": {"row": 149, "column": 64}}, {"id": 709, "type": "declaration", "text": "virtual const char *Version() const;", "parent": 669, "children": [710, 711, 713], "start_point": {"row": 152, "column": 4}, "end_point": {"row": 152, "column": 40}}, {"id": 710, "type": "type_identifier", "text": "virtual", "parent": 709, "children": [], "start_point": {"row": 152, "column": 4}, "end_point": {"row": 152, "column": 11}}, {"id": 711, "type": "ERROR", "text": "char", "parent": 709, "children": [712], "start_point": {"row": 152, "column": 18}, "end_point": {"row": 152, "column": 22}}, {"id": 712, "type": "identifier", "text": "char", "parent": 711, "children": [], "start_point": {"row": 152, "column": 18}, "end_point": {"row": 152, "column": 22}}, {"id": 713, "type": "pointer_declarator", "text": "*Version() const", "parent": 709, "children": [714, 715], "start_point": {"row": 152, "column": 23}, "end_point": {"row": 152, "column": 39}}, {"id": 714, "type": "*", "text": "*", "parent": 713, "children": [], "start_point": {"row": 152, "column": 23}, "end_point": {"row": 152, "column": 24}}, {"id": 715, "type": "function_declarator", "text": "Version() const", "parent": 713, "children": [716, 717], "start_point": {"row": 152, "column": 24}, "end_point": {"row": 152, "column": 39}}, {"id": 716, "type": "identifier", "text": "Version", "parent": 715, "children": [], "start_point": {"row": 152, "column": 24}, "end_point": {"row": 152, "column": 31}}, {"id": 717, "type": "parameter_list", "text": "()", "parent": 715, "children": [], "start_point": {"row": 152, "column": 31}, "end_point": {"row": 152, "column": 33}}, {"id": 718, "type": "declaration", "text": "virtual void", "parent": 669, "children": [719, 720], "start_point": {"row": 155, "column": 4}, "end_point": {"row": 155, "column": 16}}, {"id": 719, "type": "type_identifier", "text": "virtual", "parent": 718, "children": [], "start_point": {"row": 155, "column": 4}, "end_point": {"row": 155, "column": 11}}, {"id": 720, "type": "identifier", "text": "void", "parent": 718, "children": [], "start_point": {"row": 155, "column": 12}, "end_point": {"row": 155, "column": 16}}, {"id": 721, "type": "call_expression", "text": "UsageInfo(ostream& = cout)", "parent": 669, "children": [722, 723], "start_point": {"row": 155, "column": 17}, "end_point": {"row": 155, "column": 43}}, {"id": 722, "type": "identifier", "text": "UsageInfo", "parent": 721, "children": [], "start_point": {"row": 155, "column": 17}, "end_point": {"row": 155, "column": 26}}, {"id": 723, "type": "argument_list", "text": "(ostream& = cout)", "parent": 721, "children": [724], "start_point": {"row": 155, "column": 26}, "end_point": {"row": 155, "column": 43}}, {"id": 724, "type": "binary_expression", "text": "ostream& = cout", "parent": 723, "children": [725, 726, 728], "start_point": {"row": 155, "column": 27}, "end_point": {"row": 155, "column": 42}}, {"id": 725, "type": "identifier", "text": "ostream", "parent": 724, "children": [], "start_point": {"row": 155, "column": 27}, "end_point": {"row": 155, "column": 34}}, {"id": 726, "type": "ERROR", "text": "=", "parent": 724, "children": [727], "start_point": {"row": 155, "column": 36}, "end_point": {"row": 155, "column": 37}}, {"id": 727, "type": "=", "text": "=", "parent": 726, "children": [], "start_point": {"row": 155, "column": 36}, "end_point": {"row": 155, "column": 37}}, {"id": 728, "type": "identifier", "text": "cout", "parent": 724, "children": [], "start_point": {"row": 155, "column": 38}, "end_point": {"row": 155, "column": 42}}, {"id": 729, "type": "declaration", "text": "virtual const char *MethodName(bool l = false) const {\n return l?\"ScaleSal\":\"ss\";", "parent": 669, "children": [730, 731, 733], "start_point": {"row": 158, "column": 4}, "end_point": {"row": 159, "column": 31}}, {"id": 730, "type": "type_identifier", "text": "virtual", "parent": 729, "children": [], "start_point": {"row": 158, "column": 4}, "end_point": {"row": 158, "column": 11}}, {"id": 731, "type": "ERROR", "text": "char", "parent": 729, "children": [732], "start_point": {"row": 158, "column": 18}, "end_point": {"row": 158, "column": 22}}, {"id": 732, "type": "identifier", "text": "char", "parent": 731, "children": [], "start_point": {"row": 158, "column": 18}, "end_point": {"row": 158, "column": 22}}, {"id": 733, "type": "init_declarator", "text": "*MethodName(bool l = false) const {\n return l?\"ScaleSal\":\"ss\"", "parent": 729, "children": [734, 742, 743, 745], "start_point": {"row": 158, "column": 23}, "end_point": {"row": 159, "column": 30}}, {"id": 734, "type": "pointer_declarator", "text": "*MethodName(bool l", "parent": 733, "children": [735, 736], "start_point": {"row": 158, "column": 23}, "end_point": {"row": 158, "column": 41}}, {"id": 735, "type": "*", "text": "*", "parent": 734, "children": [], "start_point": {"row": 158, "column": 23}, "end_point": {"row": 158, "column": 24}}, {"id": 736, "type": "function_declarator", "text": "MethodName(bool l", "parent": 734, "children": [737, 738], "start_point": {"row": 158, "column": 24}, "end_point": {"row": 158, "column": 41}}, {"id": 737, "type": "identifier", "text": "MethodName", "parent": 736, "children": [], "start_point": {"row": 158, "column": 24}, "end_point": {"row": 158, "column": 34}}, {"id": 738, "type": "parameter_list", "text": "(bool l", "parent": 736, "children": [739], "start_point": {"row": 158, "column": 34}, "end_point": {"row": 158, "column": 41}}, {"id": 739, "type": "parameter_declaration", "text": "bool l", "parent": 738, "children": [740, 741], "start_point": {"row": 158, "column": 35}, "end_point": {"row": 158, "column": 41}}, {"id": 740, "type": "primitive_type", "text": "bool", "parent": 739, "children": [], "start_point": {"row": 158, "column": 35}, "end_point": {"row": 158, "column": 39}}, {"id": 741, "type": "identifier", "text": "l", "parent": 739, "children": [], "start_point": {"row": 158, "column": 40}, "end_point": {"row": 158, "column": 41}}, {"id": 742, "type": "=", "text": "=", "parent": 733, "children": [], "start_point": {"row": 158, "column": 42}, "end_point": {"row": 158, "column": 43}}, {"id": 743, "type": "ERROR", "text": "false) const", "parent": 733, "children": [744], "start_point": {"row": 158, "column": 44}, "end_point": {"row": 158, "column": 56}}, {"id": 744, "type": "false", "text": "false", "parent": 743, "children": [], "start_point": {"row": 158, "column": 44}, "end_point": {"row": 158, "column": 49}}, {"id": 745, "type": "initializer_list", "text": "{\n return l?\"ScaleSal\":\"ss\"", "parent": 733, "children": [746], "start_point": {"row": 158, "column": 57}, "end_point": {"row": 159, "column": 30}}, {"id": 746, "type": "conditional_expression", "text": "return l?\"ScaleSal\":\"ss\"", "parent": 745, "children": [747, 749, 750, 751], "start_point": {"row": 159, "column": 6}, "end_point": {"row": 159, "column": 30}}, {"id": 747, "type": "ERROR", "text": "l", "parent": 746, "children": [748], "start_point": {"row": 159, "column": 13}, "end_point": {"row": 159, "column": 14}}, {"id": 748, "type": "identifier", "text": "l", "parent": 747, "children": [], "start_point": {"row": 159, "column": 13}, "end_point": {"row": 159, "column": 14}}, {"id": 749, "type": "?", "text": "?", "parent": 746, "children": [], "start_point": {"row": 159, "column": 14}, "end_point": {"row": 159, "column": 15}}, {"id": 750, "type": "string_literal", "text": "\"ScaleSal\"", "parent": 746, "children": [], "start_point": {"row": 159, "column": 15}, "end_point": {"row": 159, "column": 25}}, {"id": 751, "type": "string_literal", "text": "\"ss\"", "parent": 746, "children": [], "start_point": {"row": 159, "column": 26}, "end_point": {"row": 159, "column": 30}}, {"id": 752, "type": "function_definition", "text": "virtual const char *Description() const { return \"scalesal\"; }", "parent": 12, "children": [753, 754, 756], "start_point": {"row": 162, "column": 4}, "end_point": {"row": 162, "column": 66}}, {"id": 753, "type": "type_identifier", "text": "virtual", "parent": 752, "children": [], "start_point": {"row": 162, "column": 4}, "end_point": {"row": 162, "column": 11}}, {"id": 754, "type": "ERROR", "text": "char", "parent": 752, "children": [755], "start_point": {"row": 162, "column": 18}, "end_point": {"row": 162, "column": 22}}, {"id": 755, "type": "identifier", "text": "char", "parent": 754, "children": [], "start_point": {"row": 162, "column": 18}, "end_point": {"row": 162, "column": 22}}, {"id": 756, "type": "pointer_declarator", "text": "*Description() const", "parent": 752, "children": [757, 758], "start_point": {"row": 162, "column": 23}, "end_point": {"row": 162, "column": 43}}, {"id": 757, "type": "*", "text": "*", "parent": 756, "children": [], "start_point": {"row": 162, "column": 23}, "end_point": {"row": 162, "column": 24}}, {"id": 758, "type": "function_declarator", "text": "Description() const", "parent": 756, "children": [759, 760], "start_point": {"row": 162, "column": 24}, "end_point": {"row": 162, "column": 43}}, {"id": 759, "type": "identifier", "text": "Description", "parent": 758, "children": [], "start_point": {"row": 162, "column": 24}, "end_point": {"row": 162, "column": 35}}, {"id": 760, "type": "parameter_list", "text": "()", "parent": 758, "children": [], "start_point": {"row": 162, "column": 35}, "end_point": {"row": 162, "column": 37}}, {"id": 761, "type": "return_statement", "text": "return \"scalesal\";", "parent": 752, "children": [762], "start_point": {"row": 162, "column": 46}, "end_point": {"row": 162, "column": 64}}, {"id": 762, "type": "string_literal", "text": "\"scalesal\"", "parent": 761, "children": [], "start_point": {"row": 162, "column": 53}, "end_point": {"row": 162, "column": 63}}, {"id": 763, "type": "declaration", "text": "virtual bool Process();", "parent": 12, "children": [764, 765, 767], "start_point": {"row": 165, "column": 4}, "end_point": {"row": 165, "column": 27}}, {"id": 764, "type": "type_identifier", "text": "virtual", "parent": 763, "children": [], "start_point": {"row": 165, "column": 4}, "end_point": {"row": 165, "column": 11}}, {"id": 765, "type": "ERROR", "text": "bool", "parent": 763, "children": [766], "start_point": {"row": 165, "column": 12}, "end_point": {"row": 165, "column": 16}}, {"id": 766, "type": "identifier", "text": "bool", "parent": 765, "children": [], "start_point": {"row": 165, "column": 12}, "end_point": {"row": 165, "column": 16}}, {"id": 767, "type": "function_declarator", "text": "Process()", "parent": 763, "children": [768, 769], "start_point": {"row": 165, "column": 17}, "end_point": {"row": 165, "column": 26}}, {"id": 768, "type": "identifier", "text": "Process", "parent": 767, "children": [], "start_point": {"row": 165, "column": 17}, "end_point": {"row": 165, "column": 24}}, {"id": 769, "type": "parameter_list", "text": "()", "parent": 767, "children": [], "start_point": {"row": 165, "column": 24}, "end_point": {"row": 165, "column": 26}}, {"id": 770, "type": "declaration", "text": "virtual int ProcessOptions(int, char**);", "parent": 12, "children": [771, 772, 774], "start_point": {"row": 168, "column": 4}, "end_point": {"row": 168, "column": 44}}, {"id": 771, "type": "type_identifier", "text": "virtual", "parent": 770, "children": [], "start_point": {"row": 168, "column": 4}, "end_point": {"row": 168, "column": 11}}, {"id": 772, "type": "ERROR", "text": "int", "parent": 770, "children": [773], "start_point": {"row": 168, "column": 12}, "end_point": {"row": 168, "column": 15}}, {"id": 773, "type": "identifier", "text": "int", "parent": 772, "children": [], "start_point": {"row": 168, "column": 12}, "end_point": {"row": 168, "column": 15}}, {"id": 774, "type": "function_declarator", "text": "ProcessOptions(int, char**)", "parent": 770, "children": [775, 776], "start_point": {"row": 168, "column": 16}, "end_point": {"row": 168, "column": 43}}, {"id": 775, "type": "identifier", "text": "ProcessOptions", "parent": 774, "children": [], "start_point": {"row": 168, "column": 16}, "end_point": {"row": 168, "column": 30}}, {"id": 776, "type": "parameter_list", "text": "(int, char**)", "parent": 774, "children": [777, 779], "start_point": {"row": 168, "column": 30}, "end_point": {"row": 168, "column": 43}}, {"id": 777, "type": "parameter_declaration", "text": "int", "parent": 776, "children": [778], "start_point": {"row": 168, "column": 31}, "end_point": {"row": 168, "column": 34}}, {"id": 778, "type": "primitive_type", "text": "int", "parent": 777, "children": [], "start_point": {"row": 168, "column": 31}, "end_point": {"row": 168, "column": 34}}, {"id": 779, "type": "parameter_declaration", "text": "char**", "parent": 776, "children": [780, 781], "start_point": {"row": 168, "column": 36}, "end_point": {"row": 168, "column": 42}}, {"id": 780, "type": "primitive_type", "text": "char", "parent": 779, "children": [], "start_point": {"row": 168, "column": 36}, "end_point": {"row": 168, "column": 40}}, {"id": 781, "type": "abstract_pointer_declarator", "text": "**", "parent": 779, "children": [782, 783], "start_point": {"row": 168, "column": 40}, "end_point": {"row": 168, "column": 42}}, {"id": 782, "type": "*", "text": "*", "parent": 781, "children": [], "start_point": {"row": 168, "column": 40}, "end_point": {"row": 168, "column": 41}}, {"id": 783, "type": "abstract_pointer_declarator", "text": "*", "parent": 781, "children": [784], "start_point": {"row": 168, "column": 41}, "end_point": {"row": 168, "column": 42}}, {"id": 784, "type": "*", "text": "*", "parent": 783, "children": [], "start_point": {"row": 168, "column": 41}, "end_point": {"row": 168, "column": 42}}, {"id": 785, "type": "labeled_statement", "text": "protected:\n\n void createDeltaLists(int startScale, int stopScale);", "parent": 12, "children": [786], "start_point": {"row": 170, "column": 2}, "end_point": {"row": 172, "column": 57}}, {"id": 786, "type": "declaration", "text": "void createDeltaLists(int startScale, int stopScale);", "parent": 785, "children": [787, 788], "start_point": {"row": 172, "column": 4}, "end_point": {"row": 172, "column": 57}}, {"id": 787, "type": "primitive_type", "text": "void", "parent": 786, "children": [], "start_point": {"row": 172, "column": 4}, "end_point": {"row": 172, "column": 8}}, {"id": 788, "type": "function_declarator", "text": "createDeltaLists(int startScale, int stopScale)", "parent": 786, "children": [789, 790], "start_point": {"row": 172, "column": 9}, "end_point": {"row": 172, "column": 56}}, {"id": 789, "type": "identifier", "text": "createDeltaLists", "parent": 788, "children": [], "start_point": {"row": 172, "column": 9}, "end_point": {"row": 172, "column": 25}}, {"id": 790, "type": "parameter_list", "text": "(int startScale, int stopScale)", "parent": 788, "children": [791, 794], "start_point": {"row": 172, "column": 25}, "end_point": {"row": 172, "column": 56}}, {"id": 791, "type": "parameter_declaration", "text": "int startScale", "parent": 790, "children": [792, 793], "start_point": {"row": 172, "column": 26}, "end_point": {"row": 172, "column": 40}}, {"id": 792, "type": "primitive_type", "text": "int", "parent": 791, "children": [], "start_point": {"row": 172, "column": 26}, "end_point": {"row": 172, "column": 29}}, {"id": 793, "type": "identifier", "text": "startScale", "parent": 791, "children": [], "start_point": {"row": 172, "column": 30}, "end_point": {"row": 172, "column": 40}}, {"id": 794, "type": "parameter_declaration", "text": "int stopScale", "parent": 790, "children": [795, 796], "start_point": {"row": 172, "column": 42}, "end_point": {"row": 172, "column": 55}}, {"id": 795, "type": "primitive_type", "text": "int", "parent": 794, "children": [], "start_point": {"row": 172, "column": 42}, "end_point": {"row": 172, "column": 45}}, {"id": 796, "type": "identifier", "text": "stopScale", "parent": 794, "children": [], "start_point": {"row": 172, "column": 46}, "end_point": {"row": 172, "column": 55}}, {"id": 797, "type": "function_definition", "text": "void addPoint(Histogram &h,int x, int y){\n //std::cout << \"addPoint(\" << x <<\",\"<<y<<\")\"<<std::endl;\n if(!getImg()->coordinates_ok(x,y)) return;\n //std::cout << \"coordinates (\" << x << \",\" << y << \")\" << std::endl;\n h.addPoint(quantised_image[x+y*getImg()->getWidth()]);\n }", "parent": 12, "children": [798, 799], "start_point": {"row": 174, "column": 4}, "end_point": {"row": 179, "column": 5}}, {"id": 798, "type": "primitive_type", "text": "void", "parent": 797, "children": [], "start_point": {"row": 174, "column": 4}, "end_point": {"row": 174, "column": 8}}, {"id": 799, "type": "function_declarator", "text": "addPoint(Histogram &h,int x, int y)", "parent": 797, "children": [800, 801], "start_point": {"row": 174, "column": 9}, "end_point": {"row": 174, "column": 44}}, {"id": 800, "type": "identifier", "text": "addPoint", "parent": 799, "children": [], "start_point": {"row": 174, "column": 9}, "end_point": {"row": 174, "column": 17}}, {"id": 801, "type": "parameter_list", "text": "(Histogram &h,int x, int y)", "parent": 799, "children": [802, 805, 808], "start_point": {"row": 174, "column": 17}, "end_point": {"row": 174, "column": 44}}, {"id": 802, "type": "parameter_declaration", "text": "Histogram &h", "parent": 801, "children": [803, 804], "start_point": {"row": 174, "column": 18}, "end_point": {"row": 174, "column": 30}}, {"id": 803, "type": "type_identifier", "text": "Histogram", "parent": 802, "children": [], "start_point": {"row": 174, "column": 18}, "end_point": {"row": 174, "column": 27}}, {"id": 804, "type": "identifier", "text": "h", "parent": 802, "children": [], "start_point": {"row": 174, "column": 29}, "end_point": {"row": 174, "column": 30}}, {"id": 805, "type": "parameter_declaration", "text": "int x", "parent": 801, "children": [806, 807], "start_point": {"row": 174, "column": 31}, "end_point": {"row": 174, "column": 36}}, {"id": 806, "type": "primitive_type", "text": "int", "parent": 805, "children": [], "start_point": {"row": 174, "column": 31}, "end_point": {"row": 174, "column": 34}}, {"id": 807, "type": "identifier", "text": "x", "parent": 805, "children": [], "start_point": {"row": 174, "column": 35}, "end_point": {"row": 174, "column": 36}}, {"id": 808, "type": "parameter_declaration", "text": "int y", "parent": 801, "children": [809, 810], "start_point": {"row": 174, "column": 38}, "end_point": {"row": 174, "column": 43}}, {"id": 809, "type": "primitive_type", "text": "int", "parent": 808, "children": [], "start_point": {"row": 174, "column": 38}, "end_point": {"row": 174, "column": 41}}, {"id": 810, "type": "identifier", "text": "y", "parent": 808, "children": [], "start_point": {"row": 174, "column": 42}, "end_point": {"row": 174, "column": 43}}, {"id": 811, "type": "if_statement", "text": "if(!getImg()->coordinates_ok(x,y)) return;", "parent": 797, "children": [812, 824], "start_point": {"row": 176, "column": 6}, "end_point": {"row": 176, "column": 48}}, {"id": 812, "type": "parenthesized_expression", "text": "(!getImg()->coordinates_ok(x,y))", "parent": 811, "children": [813], "start_point": {"row": 176, "column": 8}, "end_point": {"row": 176, "column": 40}}, {"id": 813, "type": "unary_expression", "text": "!getImg()->coordinates_ok(x,y)", "parent": 812, "children": [814, 815], "start_point": {"row": 176, "column": 9}, "end_point": {"row": 176, "column": 39}}, {"id": 814, "type": "!", "text": "!", "parent": 813, "children": [], "start_point": {"row": 176, "column": 9}, "end_point": {"row": 176, "column": 10}}, {"id": 815, "type": "call_expression", "text": "getImg()->coordinates_ok(x,y)", "parent": 813, "children": [816, 821], "start_point": {"row": 176, "column": 10}, "end_point": {"row": 176, "column": 39}}, {"id": 816, "type": "field_expression", "text": "getImg()->coordinates_ok", "parent": 815, "children": [817, 820], "start_point": {"row": 176, "column": 10}, "end_point": {"row": 176, "column": 34}}, {"id": 817, "type": "call_expression", "text": "getImg()", "parent": 816, "children": [818, 819], "start_point": {"row": 176, "column": 10}, "end_point": {"row": 176, "column": 18}}, {"id": 818, "type": "identifier", "text": "getImg", "parent": 817, "children": [], "start_point": {"row": 176, "column": 10}, "end_point": {"row": 176, "column": 16}}, {"id": 819, "type": "argument_list", "text": "()", "parent": 817, "children": [], "start_point": {"row": 176, "column": 16}, "end_point": {"row": 176, "column": 18}}, {"id": 820, "type": "field_identifier", "text": "coordinates_ok", "parent": 816, "children": [], "start_point": {"row": 176, "column": 20}, "end_point": {"row": 176, "column": 34}}, {"id": 821, "type": "argument_list", "text": "(x,y)", "parent": 815, "children": [822, 823], "start_point": {"row": 176, "column": 34}, "end_point": {"row": 176, "column": 39}}, {"id": 822, "type": "identifier", "text": "x", "parent": 821, "children": [], "start_point": {"row": 176, "column": 35}, "end_point": {"row": 176, "column": 36}}, {"id": 823, "type": "identifier", "text": "y", "parent": 821, "children": [], "start_point": {"row": 176, "column": 37}, "end_point": {"row": 176, "column": 38}}, {"id": 824, "type": "return_statement", "text": "return;", "parent": 811, "children": [], "start_point": {"row": 176, "column": 41}, "end_point": {"row": 176, "column": 48}}, {"id": 825, "type": "call_expression", "text": "h.addPoint(quantised_image[x+y*getImg()->getWidth()])", "parent": 797, "children": [826, 829], "start_point": {"row": 178, "column": 6}, "end_point": {"row": 178, "column": 59}}, {"id": 826, "type": "field_expression", "text": "h.addPoint", "parent": 825, "children": [827, 828], "start_point": {"row": 178, "column": 6}, "end_point": {"row": 178, "column": 16}}, {"id": 827, "type": "identifier", "text": "h", "parent": 826, "children": [], "start_point": {"row": 178, "column": 6}, "end_point": {"row": 178, "column": 7}}, {"id": 828, "type": "field_identifier", "text": "addPoint", "parent": 826, "children": [], "start_point": {"row": 178, "column": 8}, "end_point": {"row": 178, "column": 16}}, {"id": 829, "type": "argument_list", "text": "(quantised_image[x+y*getImg()->getWidth()])", "parent": 825, "children": [830], "start_point": {"row": 178, "column": 16}, "end_point": {"row": 178, "column": 59}}, {"id": 830, "type": "subscript_expression", "text": "quantised_image[x+y*getImg()->getWidth()]", "parent": 829, "children": [831, 832], "start_point": {"row": 178, "column": 17}, "end_point": {"row": 178, "column": 58}}, {"id": 831, "type": "identifier", "text": "quantised_image", "parent": 830, "children": [], "start_point": {"row": 178, "column": 17}, "end_point": {"row": 178, "column": 32}}, {"id": 832, "type": "binary_expression", "text": "x+y*getImg()->getWidth()", "parent": 830, "children": [833, 834, 835], "start_point": {"row": 178, "column": 33}, "end_point": {"row": 178, "column": 57}}, {"id": 833, "type": "identifier", "text": "x", "parent": 832, "children": [], "start_point": {"row": 178, "column": 33}, "end_point": {"row": 178, "column": 34}}, {"id": 834, "type": "+", "text": "+", "parent": 832, "children": [], "start_point": {"row": 178, "column": 34}, "end_point": {"row": 178, "column": 35}}, {"id": 835, "type": "binary_expression", "text": "y*getImg()->getWidth()", "parent": 832, "children": [836, 837, 838], "start_point": {"row": 178, "column": 35}, "end_point": {"row": 178, "column": 57}}, {"id": 836, "type": "identifier", "text": "y", "parent": 835, "children": [], "start_point": {"row": 178, "column": 35}, "end_point": {"row": 178, "column": 36}}, {"id": 837, "type": "*", "text": "*", "parent": 835, "children": [], "start_point": {"row": 178, "column": 36}, "end_point": {"row": 178, "column": 37}}, {"id": 838, "type": "call_expression", "text": "getImg()->getWidth()", "parent": 835, "children": [839, 844], "start_point": {"row": 178, "column": 37}, "end_point": {"row": 178, "column": 57}}, {"id": 839, "type": "field_expression", "text": "getImg()->getWidth", "parent": 838, "children": [840, 843], "start_point": {"row": 178, "column": 37}, "end_point": {"row": 178, "column": 55}}, {"id": 840, "type": "call_expression", "text": "getImg()", "parent": 839, "children": [841, 842], "start_point": {"row": 178, "column": 37}, "end_point": {"row": 178, "column": 45}}, {"id": 841, "type": "identifier", "text": "getImg", "parent": 840, "children": [], "start_point": {"row": 178, "column": 37}, "end_point": {"row": 178, "column": 43}}, {"id": 842, "type": "argument_list", "text": "()", "parent": 840, "children": [], "start_point": {"row": 178, "column": 43}, "end_point": {"row": 178, "column": 45}}, {"id": 843, "type": "field_identifier", "text": "getWidth", "parent": 839, "children": [], "start_point": {"row": 178, "column": 47}, "end_point": {"row": 178, "column": 55}}, {"id": 844, "type": "argument_list", "text": "()", "parent": 838, "children": [], "start_point": {"row": 178, "column": 55}, "end_point": {"row": 178, "column": 57}}, {"id": 845, "type": "declaration", "text": "void quantise();", "parent": 12, "children": [846, 847], "start_point": {"row": 181, "column": 4}, "end_point": {"row": 181, "column": 20}}, {"id": 846, "type": "primitive_type", "text": "void", "parent": 845, "children": [], "start_point": {"row": 181, "column": 4}, "end_point": {"row": 181, "column": 8}}, {"id": 847, "type": "function_declarator", "text": "quantise()", "parent": 845, "children": [848, 849], "start_point": {"row": 181, "column": 9}, "end_point": {"row": 181, "column": 19}}, {"id": 848, "type": "identifier", "text": "quantise", "parent": 847, "children": [], "start_point": {"row": 181, "column": 9}, "end_point": {"row": 181, "column": 17}}, {"id": 849, "type": "parameter_list", "text": "()", "parent": 847, "children": [], "start_point": {"row": 181, "column": 17}, "end_point": {"row": 181, "column": 19}}, {"id": 850, "type": "ERROR", "text": "int qsteps() const", "parent": 12, "children": [851, 852], "start_point": {"row": 183, "column": 4}, "end_point": {"row": 183, "column": 22}}, {"id": 851, "type": "primitive_type", "text": "int", "parent": 850, "children": [], "start_point": {"row": 183, "column": 4}, "end_point": {"row": 183, "column": 7}}, {"id": 852, "type": "function_declarator", "text": "qsteps()", "parent": 850, "children": [853, 854], "start_point": {"row": 183, "column": 8}, "end_point": {"row": 183, "column": 16}}, {"id": 853, "type": "identifier", "text": "qsteps", "parent": 852, "children": [], "start_point": {"row": 183, "column": 8}, "end_point": {"row": 183, "column": 14}}, {"id": 854, "type": "parameter_list", "text": "()", "parent": 852, "children": [], "start_point": {"row": 183, "column": 14}, "end_point": {"row": 183, "column": 16}}, {"id": 855, "type": "return_statement", "text": "return 1 << 9;", "parent": 12, "children": [856], "start_point": {"row": 183, "column": 25}, "end_point": {"row": 183, "column": 40}}, {"id": 856, "type": "binary_expression", "text": "1 << 9", "parent": 855, "children": [857, 858, 859], "start_point": {"row": 183, "column": 33}, "end_point": {"row": 183, "column": 39}}, {"id": 857, "type": "number_literal", "text": "1", "parent": 856, "children": [], "start_point": {"row": 183, "column": 33}, "end_point": {"row": 183, "column": 34}}, {"id": 858, "type": "<<", "text": "<<", "parent": 856, "children": [], "start_point": {"row": 183, "column": 35}, "end_point": {"row": 183, "column": 37}}, {"id": 859, "type": "number_literal", "text": "9", "parent": 856, "children": [], "start_point": {"row": 183, "column": 38}, "end_point": {"row": 183, "column": 39}}, {"id": 860, "type": "declaration", "text": "void collectSalientPoints(int x, int y,int minscale,int maxscale);", "parent": 12, "children": [861, 862], "start_point": {"row": 185, "column": 4}, "end_point": {"row": 185, "column": 70}}, {"id": 861, "type": "primitive_type", "text": "void", "parent": 860, "children": [], "start_point": {"row": 185, "column": 4}, "end_point": {"row": 185, "column": 8}}, {"id": 862, "type": "function_declarator", "text": "collectSalientPoints(int x, int y,int minscale,int maxscale)", "parent": 860, "children": [863, 864], "start_point": {"row": 185, "column": 9}, "end_point": {"row": 185, "column": 69}}, {"id": 863, "type": "identifier", "text": "collectSalientPoints", "parent": 862, "children": [], "start_point": {"row": 185, "column": 9}, "end_point": {"row": 185, "column": 29}}, {"id": 864, "type": "parameter_list", "text": "(int x, int y,int minscale,int maxscale)", "parent": 862, "children": [865, 868, 871, 874], "start_point": {"row": 185, "column": 29}, "end_point": {"row": 185, "column": 69}}, {"id": 865, "type": "parameter_declaration", "text": "int x", "parent": 864, "children": [866, 867], "start_point": {"row": 185, "column": 30}, "end_point": {"row": 185, "column": 35}}, {"id": 866, "type": "primitive_type", "text": "int", "parent": 865, "children": [], "start_point": {"row": 185, "column": 30}, "end_point": {"row": 185, "column": 33}}, {"id": 867, "type": "identifier", "text": "x", "parent": 865, "children": [], "start_point": {"row": 185, "column": 34}, "end_point": {"row": 185, "column": 35}}, {"id": 868, "type": "parameter_declaration", "text": "int y", "parent": 864, "children": [869, 870], "start_point": {"row": 185, "column": 37}, "end_point": {"row": 185, "column": 42}}, {"id": 869, "type": "primitive_type", "text": "int", "parent": 868, "children": [], "start_point": {"row": 185, "column": 37}, "end_point": {"row": 185, "column": 40}}, {"id": 870, "type": "identifier", "text": "y", "parent": 868, "children": [], "start_point": {"row": 185, "column": 41}, "end_point": {"row": 185, "column": 42}}, {"id": 871, "type": "parameter_declaration", "text": "int minscale", "parent": 864, "children": [872, 873], "start_point": {"row": 185, "column": 43}, "end_point": {"row": 185, "column": 55}}, {"id": 872, "type": "primitive_type", "text": "int", "parent": 871, "children": [], "start_point": {"row": 185, "column": 43}, "end_point": {"row": 185, "column": 46}}, {"id": 873, "type": "identifier", "text": "minscale", "parent": 871, "children": [], "start_point": {"row": 185, "column": 47}, "end_point": {"row": 185, "column": 55}}, {"id": 874, "type": "parameter_declaration", "text": "int maxscale", "parent": 864, "children": [875, 876], "start_point": {"row": 185, "column": 56}, "end_point": {"row": 185, "column": 68}}, {"id": 875, "type": "primitive_type", "text": "int", "parent": 874, "children": [], "start_point": {"row": 185, "column": 56}, "end_point": {"row": 185, "column": 59}}, {"id": 876, "type": "identifier", "text": "maxscale", "parent": 874, "children": [], "start_point": {"row": 185, "column": 60}, "end_point": {"row": 185, "column": 68}}, {"id": 877, "type": "declaration", "text": "void kadirClustering();", "parent": 12, "children": [878, 879], "start_point": {"row": 187, "column": 4}, "end_point": {"row": 187, "column": 27}}, {"id": 878, "type": "primitive_type", "text": "void", "parent": 877, "children": [], "start_point": {"row": 187, "column": 4}, "end_point": {"row": 187, "column": 8}}, {"id": 879, "type": "function_declarator", "text": "kadirClustering()", "parent": 877, "children": [880, 881], "start_point": {"row": 187, "column": 9}, "end_point": {"row": 187, "column": 26}}, {"id": 880, "type": "identifier", "text": "kadirClustering", "parent": 879, "children": [], "start_point": {"row": 187, "column": 9}, "end_point": {"row": 187, "column": 24}}, {"id": 881, "type": "parameter_list", "text": "()", "parent": 879, "children": [], "start_point": {"row": 187, "column": 24}, "end_point": {"row": 187, "column": 26}}, {"id": 882, "type": "declaration", "text": "void labelRegions();", "parent": 12, "children": [883, 884], "start_point": {"row": 189, "column": 4}, "end_point": {"row": 189, "column": 24}}, {"id": 883, "type": "primitive_type", "text": "void", "parent": 882, "children": [], "start_point": {"row": 189, "column": 4}, "end_point": {"row": 189, "column": 8}}, {"id": 884, "type": "function_declarator", "text": "labelRegions()", "parent": 882, "children": [885, 886], "start_point": {"row": 189, "column": 9}, "end_point": {"row": 189, "column": 23}}, {"id": 885, "type": "identifier", "text": "labelRegions", "parent": 884, "children": [], "start_point": {"row": 189, "column": 9}, "end_point": {"row": 189, "column": 21}}, {"id": 886, "type": "parameter_list", "text": "()", "parent": 884, "children": [], "start_point": {"row": 189, "column": 21}, "end_point": {"row": 189, "column": 23}}, {"id": 887, "type": "declaration", "text": "void findKNearest(std::vector<salCluster> **sList, \n\t\t std::vector<salCluster> **result, int K);", "parent": 12, "children": [888, 889], "start_point": {"row": 191, "column": 4}, "end_point": {"row": 192, "column": 49}}, {"id": 888, "type": "primitive_type", "text": "void", "parent": 887, "children": [], "start_point": {"row": 191, "column": 4}, "end_point": {"row": 191, "column": 8}}, {"id": 889, "type": "function_declarator", "text": "findKNearest(std::vector<salCluster> **sList, \n\t\t std::vector<salCluster> **result, int K)", "parent": 887, "children": [890, 891], "start_point": {"row": 191, "column": 9}, "end_point": {"row": 192, "column": 48}}, {"id": 890, "type": "identifier", "text": "findKNearest", "parent": 889, "children": [], "start_point": {"row": 191, "column": 9}, "end_point": {"row": 191, "column": 21}}, {"id": 891, "type": "parameter_list", "text": "(std::vector<salCluster> **sList, \n\t\t std::vector<salCluster> **result, int K)", "parent": 889, "children": [892, 904, 916], "start_point": {"row": 191, "column": 21}, "end_point": {"row": 192, "column": 48}}, {"id": 892, "type": "parameter_declaration", "text": "std::vector<salCluster> **sList", "parent": 891, "children": [893, 894, 899], "start_point": {"row": 191, "column": 22}, "end_point": {"row": 191, "column": 53}}, {"id": 893, "type": "type_identifier", "text": "std", "parent": 892, "children": [], "start_point": {"row": 191, "column": 22}, "end_point": {"row": 191, "column": 25}}, {"id": 894, "type": "ERROR", "text": "::vector<salCluster>", "parent": 892, "children": [895, 896, 897, 898], "start_point": {"row": 191, "column": 25}, "end_point": {"row": 191, "column": 45}}, {"id": 895, "type": "identifier", "text": "vector", "parent": 894, "children": [], "start_point": {"row": 191, "column": 27}, "end_point": {"row": 191, "column": 33}}, {"id": 896, "type": "<", "text": "<", "parent": 894, "children": [], "start_point": {"row": 191, "column": 33}, "end_point": {"row": 191, "column": 34}}, {"id": 897, "type": "identifier", "text": "salCluster", "parent": 894, "children": [], "start_point": {"row": 191, "column": 34}, "end_point": {"row": 191, "column": 44}}, {"id": 898, "type": ">", "text": ">", "parent": 894, "children": [], "start_point": {"row": 191, "column": 44}, "end_point": {"row": 191, "column": 45}}, {"id": 899, "type": "pointer_declarator", "text": "**sList", "parent": 892, "children": [900, 901], "start_point": {"row": 191, "column": 46}, "end_point": {"row": 191, "column": 53}}, {"id": 900, "type": "*", "text": "*", "parent": 899, "children": [], "start_point": {"row": 191, "column": 46}, "end_point": {"row": 191, "column": 47}}, {"id": 901, "type": "pointer_declarator", "text": "*sList", "parent": 899, "children": [902, 903], "start_point": {"row": 191, "column": 47}, "end_point": {"row": 191, "column": 53}}, {"id": 902, "type": "*", "text": "*", "parent": 901, "children": [], "start_point": {"row": 191, "column": 47}, "end_point": {"row": 191, "column": 48}}, {"id": 903, "type": "identifier", "text": "sList", "parent": 901, "children": [], "start_point": {"row": 191, "column": 48}, "end_point": {"row": 191, "column": 53}}, {"id": 904, "type": "parameter_declaration", "text": "std::vector<salCluster> **result", "parent": 891, "children": [905, 906, 911], "start_point": {"row": 192, "column": 8}, "end_point": {"row": 192, "column": 40}}, {"id": 905, "type": "type_identifier", "text": "std", "parent": 904, "children": [], "start_point": {"row": 192, "column": 8}, "end_point": {"row": 192, "column": 11}}, {"id": 906, "type": "ERROR", "text": "::vector<salCluster>", "parent": 904, "children": [907, 908, 909, 910], "start_point": {"row": 192, "column": 11}, "end_point": {"row": 192, "column": 31}}, {"id": 907, "type": "identifier", "text": "vector", "parent": 906, "children": [], "start_point": {"row": 192, "column": 13}, "end_point": {"row": 192, "column": 19}}, {"id": 908, "type": "<", "text": "<", "parent": 906, "children": [], "start_point": {"row": 192, "column": 19}, "end_point": {"row": 192, "column": 20}}, {"id": 909, "type": "identifier", "text": "salCluster", "parent": 906, "children": [], "start_point": {"row": 192, "column": 20}, "end_point": {"row": 192, "column": 30}}, {"id": 910, "type": ">", "text": ">", "parent": 906, "children": [], "start_point": {"row": 192, "column": 30}, "end_point": {"row": 192, "column": 31}}, {"id": 911, "type": "pointer_declarator", "text": "**result", "parent": 904, "children": [912, 913], "start_point": {"row": 192, "column": 32}, "end_point": {"row": 192, "column": 40}}, {"id": 912, "type": "*", "text": "*", "parent": 911, "children": [], "start_point": {"row": 192, "column": 32}, "end_point": {"row": 192, "column": 33}}, {"id": 913, "type": "pointer_declarator", "text": "*result", "parent": 911, "children": [914, 915], "start_point": {"row": 192, "column": 33}, "end_point": {"row": 192, "column": 40}}, {"id": 914, "type": "*", "text": "*", "parent": 913, "children": [], "start_point": {"row": 192, "column": 33}, "end_point": {"row": 192, "column": 34}}, {"id": 915, "type": "identifier", "text": "result", "parent": 913, "children": [], "start_point": {"row": 192, "column": 34}, "end_point": {"row": 192, "column": 40}}, {"id": 916, "type": "parameter_declaration", "text": "int K", "parent": 891, "children": [917, 918], "start_point": {"row": 192, "column": 42}, "end_point": {"row": 192, "column": 47}}, {"id": 917, "type": "primitive_type", "text": "int", "parent": 916, "children": [], "start_point": {"row": 192, "column": 42}, "end_point": {"row": 192, "column": 45}}, {"id": 918, "type": "identifier", "text": "K", "parent": 916, "children": [], "start_point": {"row": 192, "column": 46}, "end_point": {"row": 192, "column": 47}}, {"id": 919, "type": "declaration", "text": "int minscale,maxscale;", "parent": 12, "children": [920, 921, 922], "start_point": {"row": 199, "column": 4}, "end_point": {"row": 199, "column": 26}}, {"id": 920, "type": "primitive_type", "text": "int", "parent": 919, "children": [], "start_point": {"row": 199, "column": 4}, "end_point": {"row": 199, "column": 7}}, {"id": 921, "type": "identifier", "text": "minscale", "parent": 919, "children": [], "start_point": {"row": 199, "column": 8}, "end_point": {"row": 199, "column": 16}}, {"id": 922, "type": "identifier", "text": "maxscale", "parent": 919, "children": [], "start_point": {"row": 199, "column": 17}, "end_point": {"row": 199, "column": 25}}, {"id": 923, "type": "declaration", "text": "int quantLevels;", "parent": 12, "children": [924, 925], "start_point": {"row": 200, "column": 4}, "end_point": {"row": 200, "column": 20}}, {"id": 924, "type": "primitive_type", "text": "int", "parent": 923, "children": [], "start_point": {"row": 200, "column": 4}, "end_point": {"row": 200, "column": 7}}, {"id": 925, "type": "identifier", "text": "quantLevels", "parent": 923, "children": [], "start_point": {"row": 200, "column": 8}, "end_point": {"row": 200, "column": 19}}, {"id": 926, "type": "labeled_statement", "text": "std::vector<coordList> deltaList;", "parent": 12, "children": [927], "start_point": {"row": 205, "column": 4}, "end_point": {"row": 205, "column": 37}}, {"id": 927, "type": "statement_identifier", "text": "std", "parent": 926, "children": [], "start_point": {"row": 205, "column": 4}, "end_point": {"row": 205, "column": 7}}, {"id": 928, "type": "binary_expression", "text": "vector<coordList> deltaList", "parent": 926, "children": [929, 933, 934], "start_point": {"row": 205, "column": 9}, "end_point": {"row": 205, "column": 36}}, {"id": 929, "type": "binary_expression", "text": "vector<coordList", "parent": 928, "children": [930, 931, 932], "start_point": {"row": 205, "column": 9}, "end_point": {"row": 205, "column": 25}}, {"id": 930, "type": "identifier", "text": "vector", "parent": 929, "children": [], "start_point": {"row": 205, "column": 9}, "end_point": {"row": 205, "column": 15}}, {"id": 931, "type": "<", "text": "<", "parent": 929, "children": [], "start_point": {"row": 205, "column": 15}, "end_point": {"row": 205, "column": 16}}, {"id": 932, "type": "identifier", "text": "coordList", "parent": 929, "children": [], "start_point": {"row": 205, "column": 16}, "end_point": {"row": 205, "column": 25}}, {"id": 933, "type": ">", "text": ">", "parent": 928, "children": [], "start_point": {"row": 205, "column": 25}, "end_point": {"row": 205, "column": 26}}, {"id": 934, "type": "identifier", "text": "deltaList", "parent": 928, "children": [], "start_point": {"row": 205, "column": 27}, "end_point": {"row": 205, "column": 36}}, {"id": 935, "type": "labeled_statement", "text": "std::vector<salCluster> *saliencyAcc;", "parent": 12, "children": [936], "start_point": {"row": 207, "column": 4}, "end_point": {"row": 207, "column": 41}}, {"id": 936, "type": "statement_identifier", "text": "std", "parent": 935, "children": [], "start_point": {"row": 207, "column": 4}, "end_point": {"row": 207, "column": 7}}, {"id": 937, "type": "binary_expression", "text": "vector<salCluster> *saliencyAcc", "parent": 935, "children": [938, 942, 943], "start_point": {"row": 207, "column": 9}, "end_point": {"row": 207, "column": 40}}, {"id": 938, "type": "binary_expression", "text": "vector<salCluster", "parent": 937, "children": [939, 940, 941], "start_point": {"row": 207, "column": 9}, "end_point": {"row": 207, "column": 26}}, {"id": 939, "type": "identifier", "text": "vector", "parent": 938, "children": [], "start_point": {"row": 207, "column": 9}, "end_point": {"row": 207, "column": 15}}, {"id": 940, "type": "<", "text": "<", "parent": 938, "children": [], "start_point": {"row": 207, "column": 15}, "end_point": {"row": 207, "column": 16}}, {"id": 941, "type": "identifier", "text": "salCluster", "parent": 938, "children": [], "start_point": {"row": 207, "column": 16}, "end_point": {"row": 207, "column": 26}}, {"id": 942, "type": ">", "text": ">", "parent": 937, "children": [], "start_point": {"row": 207, "column": 26}, "end_point": {"row": 207, "column": 27}}, {"id": 943, "type": "pointer_expression", "text": "*saliencyAcc", "parent": 937, "children": [944, 945], "start_point": {"row": 207, "column": 28}, "end_point": {"row": 207, "column": 40}}, {"id": 944, "type": "*", "text": "*", "parent": 943, "children": [], "start_point": {"row": 207, "column": 28}, "end_point": {"row": 207, "column": 29}}, {"id": 945, "type": "identifier", "text": "saliencyAcc", "parent": 943, "children": [], "start_point": {"row": 207, "column": 29}, "end_point": {"row": 207, "column": 40}}, {"id": 946, "type": "labeled_statement", "text": "std::vector<salCluster> *clusteredSal;", "parent": 12, "children": [947], "start_point": {"row": 208, "column": 4}, "end_point": {"row": 208, "column": 42}}, {"id": 947, "type": "statement_identifier", "text": "std", "parent": 946, "children": [], "start_point": {"row": 208, "column": 4}, "end_point": {"row": 208, "column": 7}}, {"id": 948, "type": "binary_expression", "text": "vector<salCluster> *clusteredSal", "parent": 946, "children": [949, 953, 954], "start_point": {"row": 208, "column": 9}, "end_point": {"row": 208, "column": 41}}, {"id": 949, "type": "binary_expression", "text": "vector<salCluster", "parent": 948, "children": [950, 951, 952], "start_point": {"row": 208, "column": 9}, "end_point": {"row": 208, "column": 26}}, {"id": 950, "type": "identifier", "text": "vector", "parent": 949, "children": [], "start_point": {"row": 208, "column": 9}, "end_point": {"row": 208, "column": 15}}, {"id": 951, "type": "<", "text": "<", "parent": 949, "children": [], "start_point": {"row": 208, "column": 15}, "end_point": {"row": 208, "column": 16}}, {"id": 952, "type": "identifier", "text": "salCluster", "parent": 949, "children": [], "start_point": {"row": 208, "column": 16}, "end_point": {"row": 208, "column": 26}}, {"id": 953, "type": ">", "text": ">", "parent": 948, "children": [], "start_point": {"row": 208, "column": 26}, "end_point": {"row": 208, "column": 27}}, {"id": 954, "type": "pointer_expression", "text": "*clusteredSal", "parent": 948, "children": [955, 956], "start_point": {"row": 208, "column": 28}, "end_point": {"row": 208, "column": 41}}, {"id": 955, "type": "*", "text": "*", "parent": 954, "children": [], "start_point": {"row": 208, "column": 28}, "end_point": {"row": 208, "column": 29}}, {"id": 956, "type": "identifier", "text": "clusteredSal", "parent": 954, "children": [], "start_point": {"row": 208, "column": 29}, "end_point": {"row": 208, "column": 41}}, {"id": 957, "type": "declaration", "text": "int *quantised_image;", "parent": 12, "children": [958, 959], "start_point": {"row": 210, "column": 4}, "end_point": {"row": 210, "column": 25}}, {"id": 958, "type": "primitive_type", "text": "int", "parent": 957, "children": [], "start_point": {"row": 210, "column": 4}, "end_point": {"row": 210, "column": 7}}, {"id": 959, "type": "pointer_declarator", "text": "*quantised_image", "parent": 957, "children": [960, 961], "start_point": {"row": 210, "column": 8}, "end_point": {"row": 210, "column": 24}}, {"id": 960, "type": "*", "text": "*", "parent": 959, "children": [], "start_point": {"row": 210, "column": 8}, "end_point": {"row": 210, "column": 9}}, {"id": 961, "type": "identifier", "text": "quantised_image", "parent": 959, "children": [], "start_point": {"row": 210, "column": 9}, "end_point": {"row": 210, "column": 24}}, {"id": 962, "type": "declaration", "text": "float maxThusFar;", "parent": 12, "children": [963, 964], "start_point": {"row": 212, "column": 4}, "end_point": {"row": 212, "column": 21}}, {"id": 963, "type": "primitive_type", "text": "float", "parent": 962, "children": [], "start_point": {"row": 212, "column": 4}, "end_point": {"row": 212, "column": 9}}, {"id": 964, "type": "identifier", "text": "maxThusFar", "parent": 962, "children": [], "start_point": {"row": 212, "column": 10}, "end_point": {"row": 212, "column": 20}}, {"id": 965, "type": "declaration", "text": "float globalThreshold;", "parent": 12, "children": [966, 967], "start_point": {"row": 213, "column": 4}, "end_point": {"row": 213, "column": 26}}, {"id": 966, "type": "primitive_type", "text": "float", "parent": 965, "children": [], "start_point": {"row": 213, "column": 4}, "end_point": {"row": 213, "column": 9}}, {"id": 967, "type": "identifier", "text": "globalThreshold", "parent": 965, "children": [], "start_point": {"row": 213, "column": 10}, "end_point": {"row": 213, "column": 25}}, {"id": 968, "type": "declaration", "text": "float varThreshold;", "parent": 12, "children": [969, 970], "start_point": {"row": 214, "column": 4}, "end_point": {"row": 214, "column": 23}}, {"id": 969, "type": "primitive_type", "text": "float", "parent": 968, "children": [], "start_point": {"row": 214, "column": 4}, "end_point": {"row": 214, "column": 9}}, {"id": 970, "type": "identifier", "text": "varThreshold", "parent": 968, "children": [], "start_point": {"row": 214, "column": 10}, "end_point": {"row": 214, "column": 22}}, {"id": 971, "type": "declaration", "text": "int numberOfMeans;", "parent": 12, "children": [972, 973], "start_point": {"row": 215, "column": 4}, "end_point": {"row": 215, "column": 22}}, {"id": 972, "type": "primitive_type", "text": "int", "parent": 971, "children": [], "start_point": {"row": 215, "column": 4}, "end_point": {"row": 215, "column": 7}}, {"id": 973, "type": "identifier", "text": "numberOfMeans", "parent": 971, "children": [], "start_point": {"row": 215, "column": 8}, "end_point": {"row": 215, "column": 21}}, {"id": 974, "type": "declaration", "text": "bool skipClustering;", "parent": 12, "children": [975, 976], "start_point": {"row": 216, "column": 4}, "end_point": {"row": 216, "column": 24}}, {"id": 975, "type": "primitive_type", "text": "bool", "parent": 974, "children": [], "start_point": {"row": 216, "column": 4}, "end_point": {"row": 216, "column": 8}}, {"id": 976, "type": "identifier", "text": "skipClustering", "parent": 974, "children": [], "start_point": {"row": 216, "column": 9}, "end_point": {"row": 216, "column": 23}}, {"id": 977, "type": "declaration", "text": "int clustersToKeep;", "parent": 12, "children": [978, 979], "start_point": {"row": 218, "column": 2}, "end_point": {"row": 218, "column": 21}}, {"id": 978, "type": "primitive_type", "text": "int", "parent": 977, "children": [], "start_point": {"row": 218, "column": 2}, "end_point": {"row": 218, "column": 5}}, {"id": 979, "type": "identifier", "text": "clustersToKeep", "parent": 977, "children": [], "start_point": {"row": 218, "column": 6}, "end_point": {"row": 218, "column": 20}}, {"id": 980, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 227, "column": 0}, "end_point": {"row": 227, "column": 6}}]}, "node_categories": {"declarations": {"functions": [12, 15, 30, 35, 41, 66, 67, 112, 132, 142, 147, 167, 175, 177, 195, 197, 215, 235, 246, 270, 272, 333, 335, 353, 355, 373, 378, 390, 392, 420, 422, 436, 438, 487, 572, 574, 669, 677, 684, 693, 696, 702, 715, 736, 752, 758, 767, 774, 788, 797, 799, 847, 852, 862, 879, 884, 889], "variables": [18, 33, 38, 44, 46, 51, 56, 71, 74, 77, 88, 99, 110, 117, 135, 137, 139, 145, 150, 156, 170, 180, 183, 200, 203, 220, 238, 240, 242, 244, 249, 255, 264, 267, 275, 278, 338, 341, 358, 361, 381, 395, 425, 441, 446, 497, 513, 577, 580, 586, 592, 657, 687, 689, 709, 718, 729, 739, 763, 770, 777, 779, 786, 791, 794, 802, 805, 808, 845, 860, 865, 868, 871, 874, 877, 882, 887, 892, 904, 916, 919, 923, 957, 962, 965, 968, 971, 974, 977], "classes": [61, 62], "imports": [6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [161, 187, 188, 192, 207, 208, 212, 260, 283, 284, 287, 293, 300, 301, 304, 310, 317, 318, 321, 327, 345, 346, 350, 365, 366, 370, 384, 385, 398, 399, 409, 410, 412, 428, 429, 433, 454, 457, 458, 462, 465, 466, 467, 468, 469, 478, 491, 492, 506, 509, 521, 524, 525, 529, 533, 534, 540, 541, 545, 546, 547, 550, 553, 559, 560, 564, 565, 568, 600, 603, 604, 608, 614, 615, 616, 619, 627, 628, 629, 632, 633, 638, 645, 646, 652, 662, 663, 674, 706, 721, 724, 812, 813, 815, 816, 817, 825, 826, 830, 832, 835, 838, 839, 840, 856, 928, 929, 937, 938, 943, 948, 949, 954], "assignments": [290, 297, 307, 314, 324, 400, 416, 450, 517, 537, 596, 611, 624, 641], "loops": [449, 516, 595], "conditionals": [0, 1, 2, 5, 13, 14, 16, 19, 20, 23, 24, 26, 28, 29, 31, 34, 36, 39, 42, 45, 47, 50, 52, 55, 57, 60, 63, 68, 72, 73, 75, 76, 78, 80, 82, 84, 85, 87, 89, 91, 93, 95, 96, 98, 100, 102, 104, 106, 107, 109, 111, 113, 115, 118, 119, 122, 123, 125, 126, 128, 130, 131, 133, 136, 138, 140, 143, 146, 148, 151, 153, 155, 160, 162, 165, 166, 168, 171, 172, 174, 178, 181, 182, 184, 185, 189, 190, 193, 194, 198, 201, 202, 204, 205, 209, 210, 213, 214, 216, 218, 221, 222, 225, 226, 228, 229, 231, 233, 234, 236, 239, 241, 243, 245, 247, 250, 252, 254, 259, 261, 263, 266, 269, 273, 276, 277, 281, 285, 288, 289, 291, 294, 296, 298, 302, 305, 306, 308, 311, 313, 315, 319, 322, 323, 325, 328, 330, 332, 336, 339, 340, 342, 343, 347, 348, 351, 352, 356, 359, 360, 362, 363, 367, 368, 371, 372, 374, 379, 383, 386, 387, 389, 393, 397, 401, 403, 405, 407, 411, 417, 423, 427, 430, 431, 434, 439, 442, 444, 445, 448, 451, 455, 459, 460, 463, 470, 474, 479, 480, 482, 484, 488, 490, 494, 500, 504, 507, 512, 515, 518, 522, 526, 527, 530, 532, 535, 536, 538, 542, 543, 548, 554, 555, 557, 562, 566, 569, 575, 578, 579, 583, 589, 594, 597, 601, 605, 606, 609, 612, 620, 621, 623, 625, 634, 635, 636, 639, 640, 642, 644, 647, 651, 654, 656, 659, 661, 664, 666, 668, 671, 672, 675, 678, 679, 683, 685, 688, 690, 694, 697, 699, 703, 707, 710, 712, 716, 719, 720, 722, 725, 728, 730, 732, 737, 741, 746, 748, 753, 755, 759, 764, 766, 768, 771, 773, 775, 789, 793, 796, 800, 803, 804, 807, 810, 811, 818, 820, 822, 823, 827, 828, 831, 833, 836, 841, 843, 848, 853, 863, 867, 870, 873, 876, 880, 885, 890, 893, 895, 897, 903, 905, 907, 909, 915, 918, 921, 922, 925, 927, 930, 932, 934, 936, 939, 941, 945, 947, 950, 952, 956, 961, 964, 967, 970, 973, 976, 979, 980], "returns": [186, 206, 331, 344, 364, 495, 558, 655, 705, 761, 824, 855], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 415, 419, 453, 472, 476, 496, 502, 520, 571, 585, 591, 599, 649, 750, 751, 762, 857, 859], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 12, "universal_type": "function", "name": "XYS{", "text_snippet": "namespace picsom {\n\n class XYS{\n \n public:\n XYS(int X,int Y, int S) : x(X),y(Y),s(S) {}; \n "}, {"node_id": 15, "universal_type": "function", "name": "XYS{", "text_snippet": "class XYS{\n \n public:\n XYS(int X,int Y, int S) : x(X),y(Y),s(S) {}; \n short int x;\n sho"}, {"node_id": 30, "universal_type": "function", "name": "unknown", "text_snippet": "x(X)"}, {"node_id": 35, "universal_type": "function", "name": "unknown", "text_snippet": "y(Y)"}, {"node_id": 41, "universal_type": "function", "name": "unknown", "text_snippet": "s(S)"}, {"node_id": 66, "universal_type": "function", "name": "unknown", "text_snippet": "operator()(const XYS &x1, const XYS &x2)"}, {"node_id": 67, "universal_type": "function", "name": "unknown", "text_snippet": "operator()"}, {"node_id": 112, "universal_type": "function", "name": "salPoint:", "text_snippet": "class salPoint: public XYS {\npublic: \n salPoint(int X, int Y, int S,float Sal) : XYS(X,Y,S),sal(S"}, {"node_id": 132, "universal_type": "function", "name": "unknown", "text_snippet": "XYS(X,Y,S)"}, {"node_id": 142, "universal_type": "function", "name": "unknown", "text_snippet": "sal(Sal)"}, {"node_id": 147, "universal_type": "function", "name": "unknown", "text_snippet": "salPoint(const std::pair<XYS,float> &o) : XYS(o.first)"}, {"node_id": 167, "universal_type": "function", "name": "unknown", "text_snippet": "sal(o.second)"}, {"node_id": 175, "universal_type": "function", "name": "ltSal", "text_snippet": "bool ltSal(const salPoint &v1,\n\t const salPoint &v2){\n return v1.sal < v2.sal;\n }"}, {"node_id": 177, "universal_type": "function", "name": "unknown", "text_snippet": "ltSal(const salPoint &v1,\n\t const salPoint &v2)"}, {"node_id": 195, "universal_type": "function", "name": "gtSal", "text_snippet": "bool gtSal(const salPoint &v1,\n\t const salPoint &v2){\n return v1.sal > v2.sal;\n }"}, {"node_id": 197, "universal_type": "function", "name": "unknown", "text_snippet": "gtSal(const salPoint &v1,\n\t const salPoint &v2)"}, {"node_id": 215, "universal_type": "function", "name": "salCluster", "text_snippet": "class salCluster : public salPoint {\n public:\n salCluster(int X, int Y, int S, float Sal) : salP"}, {"node_id": 235, "universal_type": "function", "name": "unknown", "text_snippet": "salPoint(X,Y,S,Sal)"}, {"node_id": 246, "universal_type": "function", "name": "unknown", "text_snippet": "salCluster(const std::pair<XYS,float> &o) : salPoint(o)"}, {"node_id": 270, "universal_type": "function", "name": "calcSqrDistTo", "text_snippet": "int calcSqrDistTo(const XYS &o){\n int d=(x-o.x);\n dist =d*d;\n d=(y-o.y);\n dist +"}, {"node_id": 272, "universal_type": "function", "name": "unknown", "text_snippet": "calcSqrDistTo(const XYS &o)"}, {"node_id": 333, "universal_type": "function", "name": "clusterCloser", "text_snippet": "bool clusterCloser(const salCluster &c1,const salCluster &c2){\n // cout << \"comparing distance"}, {"node_id": 335, "universal_type": "function", "name": "unknown", "text_snippet": "clusterCloser(const salCluster &c1,const salCluster &c2)"}, {"node_id": 353, "universal_type": "function", "name": "clusterFurther", "text_snippet": "bool clusterFurther(const salCluster &c1,const salCluster &c2){\n return c1.dist > c2.dist;\n }"}, {"node_id": 355, "universal_type": "function", "name": "unknown", "text_snippet": "clusterFurther(const salCluster &c1,const salCluster &c2)"}, {"node_id": 373, "universal_type": "function", "name": "Histogram{", "text_snippet": "class Histogram{\n public:\n void resize(int s){count.resize(s);}\n void reset(int s){\n cou"}, {"node_id": 378, "universal_type": "function", "name": "unknown", "text_snippet": "resize(int s)"}, {"node_id": 390, "universal_type": "function", "name": "reset", "text_snippet": "void reset(int s){\n count = std::vector<int>(s,(int)0);\n totalCount=0;\n }"}, {"node_id": 392, "universal_type": "function", "name": "unknown", "text_snippet": "reset(int s)"}, {"node_id": 420, "universal_type": "function", "name": "addPoint", "text_snippet": "void addPoint(int val){\n // no checking here whether val is a valid index\n //std::cout << "}, {"node_id": 422, "universal_type": "function", "name": "unknown", "text_snippet": "addPoint(int val)"}, {"node_id": 436, "universal_type": "function", "name": "dump", "text_snippet": "void dump(std::ostream &os) const{\n size_t i;\n for(i=0;i<count.size();i++)\n\tos << \"count[\""}, {"node_id": 438, "universal_type": "function", "name": "unknown", "text_snippet": "dump(std::ostream &os) const"}, {"node_id": 487, "universal_type": "function", "name": "unknown", "text_snippet": "calcEntropy()"}, {"node_id": 572, "universal_type": "function", "name": "unknown", "text_snippet": "float calcDifference(const Histogram &o) const{\n float d=0;\n float cumd=0;\n size_t i;"}, {"node_id": 574, "universal_type": "function", "name": "unknown", "text_snippet": "calcDifference(const Histogram &o) const"}, {"node_id": 669, "universal_type": "function", "name": "ScaleSal", "text_snippet": "class ScaleSal : public Segmentation {\n public:\n /// \n ScaleSal();\n\n /// \n ScaleSal(boo"}, {"node_id": 677, "universal_type": "function", "name": "unknown", "text_snippet": "ScaleSal(bool b) : Segmentation(b) {}"}, {"node_id": 684, "universal_type": "function", "name": "unknown", "text_snippet": "Segmentation(b)"}, {"node_id": 693, "universal_type": "function", "name": "unknown", "text_snippet": "ScaleSal()"}, {"node_id": 696, "universal_type": "function", "name": "unknown", "text_snippet": "virtual Segmentation *Create() const { return new ScaleSal(); }"}, {"node_id": 702, "universal_type": "function", "name": "unknown", "text_snippet": "Create() const"}, {"node_id": 715, "universal_type": "function", "name": "unknown", "text_snippet": "Version() const"}, {"node_id": 736, "universal_type": "function", "name": "unknown", "text_snippet": "MethodName(bool l"}, {"node_id": 752, "universal_type": "function", "name": "unknown", "text_snippet": "virtual const char *Description() const { return \"scalesal\"; }"}, {"node_id": 758, "universal_type": "function", "name": "unknown", "text_snippet": "Description() const"}, {"node_id": 767, "universal_type": "function", "name": "unknown", "text_snippet": "Process()"}, {"node_id": 774, "universal_type": "function", "name": "unknown", "text_snippet": "ProcessOptions(int, char**)"}, {"node_id": 788, "universal_type": "function", "name": "stopScale)", "text_snippet": "createDeltaLists(int startScale, int stopScale)"}, {"node_id": 797, "universal_type": "function", "name": "addPoint", "text_snippet": "void addPoint(Histogram &h,int x, int y){\n //std::cout << \"addPoint(\" << x <<\",\"<<y<<\")\"<<std::"}, {"node_id": 799, "universal_type": "function", "name": "y)", "text_snippet": "addPoint(Histogram &h,int x, int y)"}, {"node_id": 847, "universal_type": "function", "name": "unknown", "text_snippet": "quantise()"}, {"node_id": 852, "universal_type": "function", "name": "unknown", "text_snippet": "qsteps()"}, {"node_id": 862, "universal_type": "function", "name": "y,int", "text_snippet": "collectSalientPoints(int x, int y,int minscale,int maxscale)"}, {"node_id": 879, "universal_type": "function", "name": "unknown", "text_snippet": "kadirClustering()"}, {"node_id": 884, "universal_type": "function", "name": "unknown", "text_snippet": "labelRegions()"}, {"node_id": 889, "universal_type": "function", "name": "K)", "text_snippet": "findKNearest(std::vector<salCluster> **sList, \n\t\t std::vector<salCluster> **result, int K)"}], "class_declarations": [{"node_id": 61, "universal_type": "class", "name": "ltXYS{", "text_snippet": "struct ltXYS{\n bool operator()(const XYS &x1, const XYS &x2) const\n {\n if(x1.x<x2.x) retu"}, {"node_id": 62, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "#include <Segmentation.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <stdio.h>\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "// -*- C++ -*-\t$Id: ScaleSal.h,v 1.2 2004/02/10 16:14:02 vvi Exp $\n\n#ifndef _SCALESAL_H_\n#define _SCALESAL_H_\n\n#include <Segmentation.h>\n#include <stdio.h>\n// #include <fftw3.h>\n\nnamespace picsom {\n\n class XYS{\n \n public:\n XYS(int X,int Y, int S) : x(X),y(Y),s(S) {}; \n short int x;\n short int y;\n short int s;\n };\n\n struct ltXYS{\n bool operator()(const XYS &x1, const XYS &x2) const\n {\n if(x1.x<x2.x) return true;\n if(x1.y<x2.y) return true;\n if(x1.s<x2.s) return true;\n return false;\n }\n };\n\n\n class salPoint: public XYS {\npublic: \n salPoint(int X, int Y, int S,float Sal) : XYS(X,Y,S),sal(Sal){}\n salPoint(const std::pair<XYS,float> &o) : XYS(o.first),sal(o.second){}\n float sal;\n };\n\n bool ltSal(const salPoint &v1,\n\t const salPoint &v2){\n return v1.sal < v2.sal;\n }\n\n bool gtSal(const salPoint &v1,\n\t const salPoint &v2){\n return v1.sal > v2.sal;\n }\n\n\n class salCluster : public salPoint {\n public:\n salCluster(int X, int Y, int S, float Sal) : salPoint(X,Y,S,Sal){}\n salCluster(const std::pair<XYS,float> &o) : salPoint(o){};\n int dist;\n int ind;\n\n int calcSqrDistTo(const XYS &o){\n int d=(x-o.x);\n dist =d*d;\n d=(y-o.y);\n dist += d*d;\n d=(s-o.s);\n dist += d*d;\n return dist;\n }\n\n };\n\n bool clusterCloser(const salCluster &c1,const salCluster &c2){\n // cout << \"comparing distances\" << c1.dist <<\" and \"<<c2.dist << endl;\n return c1.dist < c2.dist;\n }\n\n bool clusterFurther(const salCluster &c1,const salCluster &c2){\n return c1.dist > c2.dist;\n }\n \n\n class Histogram{\n public:\n void resize(int s){count.resize(s);}\n void reset(int s){\n count = std::vector<int>(s,(int)0);\n totalCount=0;\n }\n \n void addPoint(int val){\n // no checking here whether val is a valid index\n //std::cout << \"in Histogram::addPoint(\"<<val<<\")\"<<std::endl;\n count[val]++;\n totalCount++;\n }\n \n void dump(std::ostream &os) const{\n size_t i;\n for(i=0;i<count.size();i++)\n\tos << \"count[\" <<i<<\":\"<<count[i]<<std::endl;\n }\n float calcEntropy() const{\n //std::cout << \"calcEntropy, totalCount=\" << totalCount << std::endl;\n if(!totalCount) return 0;\n //dump(std::cout);\n\n float h=0,logN=log((double)totalCount);\n size_t i;\n for(i=0;i<count.size();i++)\n\tif(count[i])\n\t h += count[i]*(log((double)count[i])-logN);\n\n return -h / (totalCount*log(2.0));\n }\n\n\n // the absolute difference of two histograms\n\n float calcDifference(const Histogram &o) const{\n float d=0;\n float cumd=0;\n size_t i;\n\n for(i=0;i<count.size();i++){\n\td = ((float)count[i])/totalCount;\n\t// std::cout << d << std::endl;\n\td -= ((float)o.count[i])/o.totalCount;\n\tcumd += (d>0) ? d : -d;\n }\n \n return cumd;\n }\n\n int totalCount;\n std::vector<int> count;\n };\n\n\n class ScaleSal : public Segmentation {\n public:\n /// \n ScaleSal();\n\n /// \n ScaleSal(bool b) : Segmentation(b) {}\n\n /// \n virtual ~ScaleSal();\n\n /// Here are the pure virtuals overloaded:\n \n ///\n virtual Segmentation *Create() const { return new ScaleSal(); } \n\n ///\n virtual const char *Version() const;\n\n ///\n virtual void UsageInfo(ostream& = cout) const;\n\n ///\n virtual const char *MethodName(bool l = false) const {\n return l?\"ScaleSal\":\"ss\"; }\n\n ///\n virtual const char *Description() const { return \"scalesal\"; }\n \n ///\n virtual bool Process();\n\n ///\n virtual int ProcessOptions(int, char**);\n \n protected:\n\n void createDeltaLists(int startScale, int stopScale);\n\n void addPoint(Histogram &h,int x, int y){\n //std::cout << \"addPoint(\" << x <<\",\"<<y<<\")\"<<std::endl;\n if(!getImg()->coordinates_ok(x,y)) return;\n //std::cout << \"coordinates (\" << x << \",\" << y << \")\" << std::endl;\n h.addPoint(quantised_image[x+y*getImg()->getWidth()]);\n }\n\n void quantise();\n\n int qsteps() const { return 1 << 9;}\n\n void collectSalientPoints(int x, int y,int minscale,int maxscale);\n\n void kadirClustering();\n\n void labelRegions();\n\n void findKNearest(std::vector<salCluster> **sList, \n\t\t std::vector<salCluster> **result, int K);\n \n // void fftw_test();\n\n // static void multiplyComplexVector(fftw_complex *v1, \n //\t\t\t const fftw_complex *v2, int len);\n\n int minscale,maxscale;\n int quantLevels;\n\n // these lists list the coordinates of the pixels \n // that form the arc of a circle between angles (0,pi/4]\n\n std::vector<coordList> deltaList;\n\n std::vector<salCluster> *saliencyAcc;\n std::vector<salCluster> *clusteredSal;\n\n int *quantised_image;\n\n float maxThusFar;\n float globalThreshold;\n float varThreshold;\n int numberOfMeans;\n bool skipClustering;\n\n int clustersToKeep;\n\n // int iterations;\n // int fftN;\n // int fftK;\n\n };\n\n} // namespace picsom\n#endif // _SCALESAL_H_\n\n// Local Variables:\n// mode: font-lock\n// End:\n"}
80,270
c
/** * Copyright (c) 2021 OceanBase * OceanBase CE is licensed under Mulan PubL v2. * You can use this software according to the terms and conditions of the Mulan PubL v2. * You may obtain a copy of Mulan PubL v2 at: * http://license.coscl.org.cn/MulanPubL-2.0 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PubL v2 for more details. */ #ifndef OCEANBASE_COMMON_QUEUE_THREAD_H_ #define OCEANBASE_COMMON_QUEUE_THREAD_H_ #include <sys/epoll.h> #include "lib/ob_define.h" #include "lib/queue/ob_fixed_queue.h" #include "lib/allocator/page_arena.h" #include "lib/lock/ob_drw_lock.h" #include "lib/queue/ob_seq_queue.h" #include "lib/net/ob_addr.h" #include "lib/metrics/ob_counter.h" #include "common/ob_balance_filter.h" #include "common/server_framework/ob_priority_scheduler.h" namespace oceanbase { namespace common { enum PacketPriority { HIGH_PRIV = -1, NORMAL_PRIV = 0, LOW_PRIV = 1, }; class ObCond { static const int64_t SPIN_WAIT_NUM = 0; static const int64_t BUSY_INTERVAL = 1000; public: explicit ObCond(const int64_t spin_wait_num = SPIN_WAIT_NUM); ~ObCond(); public: void signal(); int timedwait(const int64_t time_us); int wait(); private: const int64_t spin_wait_num_; volatile bool bcond_; int64_t last_waked_time_; pthread_cond_t cond_; pthread_mutex_t mutex_; } __attribute__((aligned(64))); typedef ObCond S2MCond; class S2MQueueThread { struct ThreadConf { pthread_t pd; uint64_t index; volatile bool run_flag; volatile bool stop_flag; S2MCond queue_cond; volatile bool using_flag; volatile int64_t last_active_time; ObFixedQueue<void> high_prio_task_queue; ObFixedQueue<void> spec_task_queue; ObFixedQueue<void> comm_task_queue; ObFixedQueue<void> low_prio_task_queue; ObPriorityScheduler scheduler_; S2MQueueThread* host; ThreadConf() : pd(0), index(0), run_flag(true), stop_flag(false), queue_cond(), using_flag(false), last_active_time(0), spec_task_queue(), comm_task_queue(), host(NULL){}; } CACHE_ALIGNED; static const int64_t THREAD_BUSY_TIME_LIMIT = 10 * 1000; static const int64_t QUEUE_WAIT_TIME = 100 * 1000; static const int64_t MAX_THREAD_NUM = 256; static const int64_t QUEUE_SIZE_TO_SWITCH = 4; typedef DRWLock RWLock; typedef DRWLock::RDLockGuard RDLockGuard; typedef DRWLock::WRLockGuard WRLockGuard; typedef ObTCCounter Counter; public: enum { HIGH_PRIO_QUEUE = 0, HOTSPOT_QUEUE = 1, NORMAL_PRIO_QUEUE = 2, LOW_PRIO_QUEUE = 3, QUEUE_COUNT = 4 }; public: S2MQueueThread(); virtual ~S2MQueueThread(); public: int init( const int64_t thread_num, const int64_t task_num_limit, const bool queue_rebalance, const bool dynamic_rebalance); int set_prio_quota(v4si& quota); void destroy(); int64_t get_queued_num() const; int64_t get_each_queued_num(int queue_id) const { return (queue_id >= 0 && queue_id < QUEUE_COUNT) ? each_queue_len_[queue_id].value() : 0; } int add_thread(const int64_t thread_num, const int64_t task_num_limit); int sub_thread(const int64_t thread_num); int64_t get_thread_num() const { return thread_num_; }; int wakeup(); public: int push(void* task, const int64_t prio = NORMAL_PRIV); int push(void* task, const uint64_t task_sign, const int64_t prio); int push_low_prio(void* task); int64_t& thread_index(); int64_t get_thread_index() const; virtual void on_iter() {} virtual void handle(void* task, void* pdata) = 0; virtual void handle_with_stopflag(void* task, void* pdata, volatile bool& stop_flag) { handle(task, pdata); if (stop_flag) {} }; virtual void* on_begin() { return NULL; }; virtual void on_end(void* ptr) { UNUSED(ptr); }; private: void* rebalance_(int64_t& idx, const ThreadConf& cur_thread); int launch_thread_(const int64_t thread_num, const int64_t task_num_limit); static void* thread_func_(void* data); private: int64_t thread_num_; volatile uint64_t thread_conf_iter_; RWLock thread_conf_lock_; ThreadConf thread_conf_array_[MAX_THREAD_NUM]; Counter queued_num_; Counter each_queue_len_[QUEUE_COUNT]; bool queue_rebalance_; ObBalanceFilter balance_filter_; }; typedef S2MCond M2SCond; class M2SQueueThread { static const int64_t QUEUE_WAIT_TIME; public: M2SQueueThread(); virtual ~M2SQueueThread(); public: int init(const int64_t task_num_limit, const int64_t idle_interval); void destroy(); public: int push(void* task); int64_t get_queued_num() const; virtual void handle(void* task, void* pdata) = 0; virtual void* on_begin() { return NULL; }; virtual void on_end(void* ptr) { UNUSED(ptr); }; virtual void on_idle(){}; private: static void* thread_func_(void* data); private: bool inited_; pthread_t pd_; volatile bool run_flag_; M2SCond queue_cond_; ObFixedQueue<void> task_queue_; int64_t idle_interval_; int64_t last_idle_time_; } CACHE_ALIGNED; class SeqQueueThread { static const int64_t QUEUE_WAIT_TIME = 10 * 1000; public: SeqQueueThread(); virtual ~SeqQueueThread(); public: int init(const int64_t task_num_limit, const int64_t idle_interval); void destroy(); public: virtual int push(void* task); int64_t get_queued_num() const; virtual void handle(void* task, void* pdata) = 0; virtual void on_push_fail(void* ptr) { UNUSED(ptr); }; virtual void* on_begin() { return NULL; }; virtual void on_end(void* ptr) { UNUSED(ptr); }; virtual void on_idle(){}; virtual int64_t get_seq(void* task) = 0; private: static void* thread_func_(void* data); protected: ObSeqQueue task_queue_; private: bool inited_; pthread_t pd_; volatile bool run_flag_; int64_t idle_interval_; int64_t last_idle_time_; } CACHE_ALIGNED; } // namespace common } // namespace oceanbase #endif // OCEANBASE_COMMON_QUEUE_THREAD_H_
27.61
214
(translation_unit) "/**\n * Copyright (c) 2021 OceanBase\n * OceanBase CE is licensed under Mulan PubL v2.\n * You can use this software according to the terms and conditions of the Mulan PubL v2.\n * You may obtain a copy of Mulan PubL v2 at:\n * http://license.coscl.org.cn/MulanPubL-2.0\n * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,\n * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,\n * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.\n * See the Mulan PubL v2 for more details.\n */\n\n#ifndef OCEANBASE_COMMON_QUEUE_THREAD_H_\n#define OCEANBASE_COMMON_QUEUE_THREAD_H_\n#include <sys/epoll.h>\n#include "lib/ob_define.h"\n#include "lib/queue/ob_fixed_queue.h"\n#include "lib/allocator/page_arena.h"\n#include "lib/lock/ob_drw_lock.h"\n#include "lib/queue/ob_seq_queue.h"\n#include "lib/net/ob_addr.h"\n#include "lib/metrics/ob_counter.h"\n#include "common/ob_balance_filter.h"\n#include "common/server_framework/ob_priority_scheduler.h"\n\nnamespace oceanbase {\nnamespace common {\nenum PacketPriority {\n HIGH_PRIV = -1,\n NORMAL_PRIV = 0,\n LOW_PRIV = 1,\n};\n\nclass ObCond {\n static const int64_t SPIN_WAIT_NUM = 0;\n static const int64_t BUSY_INTERVAL = 1000;\n\npublic:\n explicit ObCond(const int64_t spin_wait_num = SPIN_WAIT_NUM);\n ~ObCond();\n\npublic:\n void signal();\n int timedwait(const int64_t time_us);\n int wait();\n\nprivate:\n const int64_t spin_wait_num_;\n volatile bool bcond_;\n int64_t last_waked_time_;\n pthread_cond_t cond_;\n pthread_mutex_t mutex_;\n} __attribute__((aligned(64)));\n\ntypedef ObCond S2MCond;\nclass S2MQueueThread {\n struct ThreadConf {\n pthread_t pd;\n uint64_t index;\n volatile bool run_flag;\n volatile bool stop_flag;\n S2MCond queue_cond;\n volatile bool using_flag;\n volatile int64_t last_active_time;\n ObFixedQueue<void> high_prio_task_queue;\n ObFixedQueue<void> spec_task_queue;\n ObFixedQueue<void> comm_task_queue;\n ObFixedQueue<void> low_prio_task_queue;\n ObPriorityScheduler scheduler_;\n S2MQueueThread* host;\n ThreadConf()\n : pd(0),\n index(0),\n run_flag(true),\n stop_flag(false),\n queue_cond(),\n using_flag(false),\n last_active_time(0),\n spec_task_queue(),\n comm_task_queue(),\n host(NULL){};\n } CACHE_ALIGNED;\n static const int64_t THREAD_BUSY_TIME_LIMIT = 10 * 1000;\n static const int64_t QUEUE_WAIT_TIME = 100 * 1000;\n static const int64_t MAX_THREAD_NUM = 256;\n static const int64_t QUEUE_SIZE_TO_SWITCH = 4;\n typedef DRWLock RWLock;\n typedef DRWLock::RDLockGuard RDLockGuard;\n typedef DRWLock::WRLockGuard WRLockGuard;\n typedef ObTCCounter Counter;\n\npublic:\n enum { HIGH_PRIO_QUEUE = 0, HOTSPOT_QUEUE = 1, NORMAL_PRIO_QUEUE = 2, LOW_PRIO_QUEUE = 3, QUEUE_COUNT = 4 };\n\npublic:\n S2MQueueThread();\n virtual ~S2MQueueThread();\n\npublic:\n int init(\n const int64_t thread_num, const int64_t task_num_limit, const bool queue_rebalance, const bool dynamic_rebalance);\n int set_prio_quota(v4si& quota);\n void destroy();\n int64_t get_queued_num() const;\n int64_t get_each_queued_num(int queue_id) const\n {\n return (queue_id >= 0 && queue_id < QUEUE_COUNT) ? each_queue_len_[queue_id].value() : 0;\n }\n int add_thread(const int64_t thread_num, const int64_t task_num_limit);\n int sub_thread(const int64_t thread_num);\n int64_t get_thread_num() const\n {\n return thread_num_;\n };\n int wakeup();\n\npublic:\n int push(void* task, const int64_t prio = NORMAL_PRIV);\n int push(void* task, const uint64_t task_sign, const int64_t prio);\n int push_low_prio(void* task);\n int64_t& thread_index();\n int64_t get_thread_index() const;\n virtual void on_iter()\n {}\n virtual void handle(void* task, void* pdata) = 0;\n virtual void handle_with_stopflag(void* task, void* pdata, volatile bool& stop_flag)\n {\n handle(task, pdata);\n if (stop_flag) {}\n };\n virtual void* on_begin()\n {\n return NULL;\n };\n virtual void on_end(void* ptr)\n {\n UNUSED(ptr);\n };\n\nprivate:\n void* rebalance_(int64_t& idx, const ThreadConf& cur_thread);\n int launch_thread_(const int64_t thread_num, const int64_t task_num_limit);\n static void* thread_func_(void* data);\n\nprivate:\n int64_t thread_num_;\n volatile uint64_t thread_conf_iter_;\n RWLock thread_conf_lock_;\n ThreadConf thread_conf_array_[MAX_THREAD_NUM];\n Counter queued_num_;\n Counter each_queue_len_[QUEUE_COUNT];\n bool queue_rebalance_;\n ObBalanceFilter balance_filter_;\n};\n\ntypedef S2MCond M2SCond;\nclass M2SQueueThread {\n static const int64_t QUEUE_WAIT_TIME;\n\npublic:\n M2SQueueThread();\n virtual ~M2SQueueThread();\n\npublic:\n int init(const int64_t task_num_limit, const int64_t idle_interval);\n void destroy();\n\npublic:\n int push(void* task);\n int64_t get_queued_num() const;\n virtual void handle(void* task, void* pdata) = 0;\n virtual void* on_begin()\n {\n return NULL;\n };\n virtual void on_end(void* ptr)\n {\n UNUSED(ptr);\n };\n virtual void on_idle(){};\n\nprivate:\n static void* thread_func_(void* data);\n\nprivate:\n bool inited_;\n pthread_t pd_;\n volatile bool run_flag_;\n M2SCond queue_cond_;\n ObFixedQueue<void> task_queue_;\n int64_t idle_interval_;\n int64_t last_idle_time_;\n} CACHE_ALIGNED;\n\nclass SeqQueueThread {\n static const int64_t QUEUE_WAIT_TIME = 10 * 1000;\n\npublic:\n SeqQueueThread();\n virtual ~SeqQueueThread();\n\npublic:\n int init(const int64_t task_num_limit, const int64_t idle_interval);\n void destroy();\n\npublic:\n virtual int push(void* task);\n int64_t get_queued_num() const;\n virtual void handle(void* task, void* pdata) = 0;\n virtual void on_push_fail(void* ptr)\n {\n UNUSED(ptr);\n };\n virtual void* on_begin()\n {\n return NULL;\n };\n virtual void on_end(void* ptr)\n {\n UNUSED(ptr);\n };\n virtual void on_idle(){};\n virtual int64_t get_seq(void* task) = 0;\n\nprivate:\n static void* thread_func_(void* data);\n\nprotected:\n ObSeqQueue task_queue_;\n\nprivate:\n bool inited_;\n pthread_t pd_;\n volatile bool run_flag_;\n int64_t idle_interval_;\n int64_t last_idle_time_;\n} CACHE_ALIGNED;\n} // namespace common\n} // namespace oceanbase\n\n#endif // OCEANBASE_COMMON_QUEUE_THREAD_H_\n" (comment) "/**\n * Copyright (c) 2021 OceanBase\n * OceanBase CE is licensed under Mulan PubL v2.\n * You can use this software according to the terms and conditions of the Mulan PubL v2.\n * You may obtain a copy of Mulan PubL v2 at:\n * http://license.coscl.org.cn/MulanPubL-2.0\n * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,\n * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,\n * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.\n * See the Mulan PubL v2 for more details.\n */" (preproc_ifdef) "#ifndef OCEANBASE_COMMON_QUEUE_THREAD_H_\n#define OCEANBASE_COMMON_QUEUE_THREAD_H_\n#include <sys/epoll.h>\n#include "lib/ob_define.h"\n#include "lib/queue/ob_fixed_queue.h"\n#include "lib/allocator/page_arena.h"\n#include "lib/lock/ob_drw_lock.h"\n#include "lib/queue/ob_seq_queue.h"\n#include "lib/net/ob_addr.h"\n#include "lib/metrics/ob_counter.h"\n#include "common/ob_balance_filter.h"\n#include "common/server_framework/ob_priority_scheduler.h"\n\nnamespace oceanbase {\nnamespace common {\nenum PacketPriority {\n HIGH_PRIV = -1,\n NORMAL_PRIV = 0,\n LOW_PRIV = 1,\n};\n\nclass ObCond {\n static const int64_t SPIN_WAIT_NUM = 0;\n static const int64_t BUSY_INTERVAL = 1000;\n\npublic:\n explicit ObCond(const int64_t spin_wait_num = SPIN_WAIT_NUM);\n ~ObCond();\n\npublic:\n void signal();\n int timedwait(const int64_t time_us);\n int wait();\n\nprivate:\n const int64_t spin_wait_num_;\n volatile bool bcond_;\n int64_t last_waked_time_;\n pthread_cond_t cond_;\n pthread_mutex_t mutex_;\n} __attribute__((aligned(64)));\n\ntypedef ObCond S2MCond;\nclass S2MQueueThread {\n struct ThreadConf {\n pthread_t pd;\n uint64_t index;\n volatile bool run_flag;\n volatile bool stop_flag;\n S2MCond queue_cond;\n volatile bool using_flag;\n volatile int64_t last_active_time;\n ObFixedQueue<void> high_prio_task_queue;\n ObFixedQueue<void> spec_task_queue;\n ObFixedQueue<void> comm_task_queue;\n ObFixedQueue<void> low_prio_task_queue;\n ObPriorityScheduler scheduler_;\n S2MQueueThread* host;\n ThreadConf()\n : pd(0),\n index(0),\n run_flag(true),\n stop_flag(false),\n queue_cond(),\n using_flag(false),\n last_active_time(0),\n spec_task_queue(),\n comm_task_queue(),\n host(NULL){};\n } CACHE_ALIGNED;\n static const int64_t THREAD_BUSY_TIME_LIMIT = 10 * 1000;\n static const int64_t QUEUE_WAIT_TIME = 100 * 1000;\n static const int64_t MAX_THREAD_NUM = 256;\n static const int64_t QUEUE_SIZE_TO_SWITCH = 4;\n typedef DRWLock RWLock;\n typedef DRWLock::RDLockGuard RDLockGuard;\n typedef DRWLock::WRLockGuard WRLockGuard;\n typedef ObTCCounter Counter;\n\npublic:\n enum { HIGH_PRIO_QUEUE = 0, HOTSPOT_QUEUE = 1, NORMAL_PRIO_QUEUE = 2, LOW_PRIO_QUEUE = 3, QUEUE_COUNT = 4 };\n\npublic:\n S2MQueueThread();\n virtual ~S2MQueueThread();\n\npublic:\n int init(\n const int64_t thread_num, const int64_t task_num_limit, const bool queue_rebalance, const bool dynamic_rebalance);\n int set_prio_quota(v4si& quota);\n void destroy();\n int64_t get_queued_num() const;\n int64_t get_each_queued_num(int queue_id) const\n {\n return (queue_id >= 0 && queue_id < QUEUE_COUNT) ? each_queue_len_[queue_id].value() : 0;\n }\n int add_thread(const int64_t thread_num, const int64_t task_num_limit);\n int sub_thread(const int64_t thread_num);\n int64_t get_thread_num() const\n {\n return thread_num_;\n };\n int wakeup();\n\npublic:\n int push(void* task, const int64_t prio = NORMAL_PRIV);\n int push(void* task, const uint64_t task_sign, const int64_t prio);\n int push_low_prio(void* task);\n int64_t& thread_index();\n int64_t get_thread_index() const;\n virtual void on_iter()\n {}\n virtual void handle(void* task, void* pdata) = 0;\n virtual void handle_with_stopflag(void* task, void* pdata, volatile bool& stop_flag)\n {\n handle(task, pdata);\n if (stop_flag) {}\n };\n virtual void* on_begin()\n {\n return NULL;\n };\n virtual void on_end(void* ptr)\n {\n UNUSED(ptr);\n };\n\nprivate:\n void* rebalance_(int64_t& idx, const ThreadConf& cur_thread);\n int launch_thread_(const int64_t thread_num, const int64_t task_num_limit);\n static void* thread_func_(void* data);\n\nprivate:\n int64_t thread_num_;\n volatile uint64_t thread_conf_iter_;\n RWLock thread_conf_lock_;\n ThreadConf thread_conf_array_[MAX_THREAD_NUM];\n Counter queued_num_;\n Counter each_queue_len_[QUEUE_COUNT];\n bool queue_rebalance_;\n ObBalanceFilter balance_filter_;\n};\n\ntypedef S2MCond M2SCond;\nclass M2SQueueThread {\n static const int64_t QUEUE_WAIT_TIME;\n\npublic:\n M2SQueueThread();\n virtual ~M2SQueueThread();\n\npublic:\n int init(const int64_t task_num_limit, const int64_t idle_interval);\n void destroy();\n\npublic:\n int push(void* task);\n int64_t get_queued_num() const;\n virtual void handle(void* task, void* pdata) = 0;\n virtual void* on_begin()\n {\n return NULL;\n };\n virtual void on_end(void* ptr)\n {\n UNUSED(ptr);\n };\n virtual void on_idle(){};\n\nprivate:\n static void* thread_func_(void* data);\n\nprivate:\n bool inited_;\n pthread_t pd_;\n volatile bool run_flag_;\n M2SCond queue_cond_;\n ObFixedQueue<void> task_queue_;\n int64_t idle_interval_;\n int64_t last_idle_time_;\n} CACHE_ALIGNED;\n\nclass SeqQueueThread {\n static const int64_t QUEUE_WAIT_TIME = 10 * 1000;\n\npublic:\n SeqQueueThread();\n virtual ~SeqQueueThread();\n\npublic:\n int init(const int64_t task_num_limit, const int64_t idle_interval);\n void destroy();\n\npublic:\n virtual int push(void* task);\n int64_t get_queued_num() const;\n virtual void handle(void* task, void* pdata) = 0;\n virtual void on_push_fail(void* ptr)\n {\n UNUSED(ptr);\n };\n virtual void* on_begin()\n {\n return NULL;\n };\n virtual void on_end(void* ptr)\n {\n UNUSED(ptr);\n };\n virtual void on_idle(){};\n virtual int64_t get_seq(void* task) = 0;\n\nprivate:\n static void* thread_func_(void* data);\n\nprotected:\n ObSeqQueue task_queue_;\n\nprivate:\n bool inited_;\n pthread_t pd_;\n volatile bool run_flag_;\n int64_t idle_interval_;\n int64_t last_idle_time_;\n} CACHE_ALIGNED;\n} // namespace common\n} // namespace oceanbase\n\n#endif" (#ifndef) "#ifndef" (identifier) "OCEANBASE_COMMON_QUEUE_THREAD_H_" (preproc_def) "#define OCEANBASE_COMMON_QUEUE_THREAD_H_\n" (#define) "#define" (identifier) "OCEANBASE_COMMON_QUEUE_THREAD_H_" (preproc_include) "#include <sys/epoll.h>\n" (#include) "#include" (system_lib_string) "<sys/epoll.h>" (preproc_include) "#include "lib/ob_define.h"\n" (#include) "#include" (string_literal) ""lib/ob_define.h"" (") """ (string_content) "lib/ob_define.h" (") """ (preproc_include) "#include "lib/queue/ob_fixed_queue.h"\n" (#include) "#include" (string_literal) ""lib/queue/ob_fixed_queue.h"" (") """ (string_content) "lib/queue/ob_fixed_queue.h" (") """ (preproc_include) "#include "lib/allocator/page_arena.h"\n" (#include) "#include" (string_literal) ""lib/allocator/page_arena.h"" (") """ (string_content) "lib/allocator/page_arena.h" (") """ (preproc_include) "#include "lib/lock/ob_drw_lock.h"\n" (#include) "#include" (string_literal) ""lib/lock/ob_drw_lock.h"" (") """ (string_content) "lib/lock/ob_drw_lock.h" (") """ (preproc_include) "#include "lib/queue/ob_seq_queue.h"\n" (#include) "#include" (string_literal) ""lib/queue/ob_seq_queue.h"" (") """ (string_content) "lib/queue/ob_seq_queue.h" (") """ (preproc_include) "#include "lib/net/ob_addr.h"\n" (#include) "#include" (string_literal) ""lib/net/ob_addr.h"" (") """ (string_content) "lib/net/ob_addr.h" (") """ (preproc_include) "#include "lib/metrics/ob_counter.h"\n" (#include) "#include" (string_literal) ""lib/metrics/ob_counter.h"" (") """ (string_content) "lib/metrics/ob_counter.h" (") """ (preproc_include) "#include "common/ob_balance_filter.h"\n" (#include) "#include" (string_literal) ""common/ob_balance_filter.h"" (") """ (string_content) "common/ob_balance_filter.h" (") """ (preproc_include) "#include "common/server_framework/ob_priority_scheduler.h"\n" (#include) "#include" (string_literal) ""common/server_framework/ob_priority_scheduler.h"" (") """ (string_content) "common/server_framework/ob_priority_scheduler.h" (") """ (function_definition) "namespace oceanbase {\nnamespace common {\nenum PacketPriority {\n HIGH_PRIV = -1,\n NORMAL_PRIV = 0,\n LOW_PRIV = 1,\n};\n\nclass ObCond {\n static const int64_t SPIN_WAIT_NUM = 0;\n static const int64_t BUSY_INTERVAL = 1000;\n\npublic:\n explicit ObCond(const int64_t spin_wait_num = SPIN_WAIT_NUM);\n ~ObCond();\n\npublic:\n void signal();\n int timedwait(const int64_t time_us);\n int wait();\n\nprivate:\n const int64_t spin_wait_num_;\n volatile bool bcond_;\n int64_t last_waked_time_;\n pthread_cond_t cond_;\n pthread_mutex_t mutex_;\n} __attribute__((aligned(64)));\n\ntypedef ObCond S2MCond;\nclass S2MQueueThread {\n struct ThreadConf {\n pthread_t pd;\n uint64_t index;\n volatile bool run_flag;\n volatile bool stop_flag;\n S2MCond queue_cond;\n volatile bool using_flag;\n volatile int64_t last_active_time;\n ObFixedQueue<void> high_prio_task_queue;\n ObFixedQueue<void> spec_task_queue;\n ObFixedQueue<void> comm_task_queue;\n ObFixedQueue<void> low_prio_task_queue;\n ObPriorityScheduler scheduler_;\n S2MQueueThread* host;\n ThreadConf()\n : pd(0),\n index(0),\n run_flag(true),\n stop_flag(false),\n queue_cond(),\n using_flag(false),\n last_active_time(0),\n spec_task_queue(),\n comm_task_queue(),\n host(NULL){};\n } CACHE_ALIGNED;\n static const int64_t THREAD_BUSY_TIME_LIMIT = 10 * 1000;\n static const int64_t QUEUE_WAIT_TIME = 100 * 1000;\n static const int64_t MAX_THREAD_NUM = 256;\n static const int64_t QUEUE_SIZE_TO_SWITCH = 4;\n typedef DRWLock RWLock;\n typedef DRWLock::RDLockGuard RDLockGuard;\n typedef DRWLock::WRLockGuard WRLockGuard;\n typedef ObTCCounter Counter;\n\npublic:\n enum { HIGH_PRIO_QUEUE = 0, HOTSPOT_QUEUE = 1, NORMAL_PRIO_QUEUE = 2, LOW_PRIO_QUEUE = 3, QUEUE_COUNT = 4 };\n\npublic:\n S2MQueueThread();\n virtual ~S2MQueueThread();\n\npublic:\n int init(\n const int64_t thread_num, const int64_t task_num_limit, const bool queue_rebalance, const bool dynamic_rebalance);\n int set_prio_quota(v4si& quota);\n void destroy();\n int64_t get_queued_num() const;\n int64_t get_each_queued_num(int queue_id) const\n {\n return (queue_id >= 0 && queue_id < QUEUE_COUNT) ? each_queue_len_[queue_id].value() : 0;\n }\n int add_thread(const int64_t thread_num, const int64_t task_num_limit);\n int sub_thread(const int64_t thread_num);\n int64_t get_thread_num() const\n {\n return thread_num_;\n };\n int wakeup();\n\npublic:\n int push(void* task, const int64_t prio = NORMAL_PRIV);\n int push(void* task, const uint64_t task_sign, const int64_t prio);\n int push_low_prio(void* task);\n int64_t& thread_index();\n int64_t get_thread_index() const;\n virtual void on_iter()\n {}\n virtual void handle(void* task, void* pdata) = 0;\n virtual void handle_with_stopflag(void* task, void* pdata, volatile bool& stop_flag)\n {\n handle(task, pdata);\n if (stop_flag) {}\n };\n virtual void* on_begin()\n {\n return NULL;\n };\n virtual void on_end(void* ptr)\n {\n UNUSED(ptr);\n };\n\nprivate:\n void* rebalance_(int64_t& idx, const ThreadConf& cur_thread);\n int launch_thread_(const int64_t thread_num, const int64_t task_num_limit);\n static void* thread_func_(void* data);\n\nprivate:\n int64_t thread_num_;\n volatile uint64_t thread_conf_iter_;\n RWLock thread_conf_lock_;\n ThreadConf thread_conf_array_[MAX_THREAD_NUM];\n Counter queued_num_;\n Counter each_queue_len_[QUEUE_COUNT];\n bool queue_rebalance_;\n ObBalanceFilter balance_filter_;\n};\n\ntypedef S2MCond M2SCond;\nclass M2SQueueThread {\n static const int64_t QUEUE_WAIT_TIME;\n\npublic:\n M2SQueueThread();\n virtual ~M2SQueueThread();\n\npublic:\n int init(const int64_t task_num_limit, const int64_t idle_interval);\n void destroy();\n\npublic:\n int push(void* task);\n int64_t get_queued_num() const;\n virtual void handle(void* task, void* pdata) = 0;\n virtual void* on_begin()\n {\n return NULL;\n };\n virtual void on_end(void* ptr)\n {\n UNUSED(ptr);\n };\n virtual void on_idle(){};\n\nprivate:\n static void* thread_func_(void* data);\n\nprivate:\n bool inited_;\n pthread_t pd_;\n volatile bool run_flag_;\n M2SCond queue_cond_;\n ObFixedQueue<void> task_queue_;\n int64_t idle_interval_;\n int64_t last_idle_time_;\n} CACHE_ALIGNED;\n\nclass SeqQueueThread {\n static const int64_t QUEUE_WAIT_TIME = 10 * 1000;\n\npublic:\n SeqQueueThread();\n virtual ~SeqQueueThread();\n\npublic:\n int init(const int64_t task_num_limit, const int64_t idle_interval);\n void destroy();\n\npublic:\n virtual int push(void* task);\n int64_t get_queued_num() const;\n virtual void handle(void* task, void* pdata) = 0;\n virtual void on_push_fail(void* ptr)\n {\n UNUSED(ptr);\n };\n virtual void* on_begin()\n {\n return NULL;\n };\n virtual void on_end(void* ptr)\n {\n UNUSED(ptr);\n };\n virtual void on_idle(){};\n virtual int64_t get_seq(void* task) = 0;\n\nprivate:\n static void* thread_func_(void* data);\n\nprotected:\n ObSeqQueue task_queue_;\n\nprivate:\n bool inited_;\n pthread_t pd_;\n volatile bool run_flag_;\n int64_t idle_interval_;\n int64_t last_idle_time_;\n} CACHE_ALIGNED;\n}" (type_identifier) "namespace" (identifier) "oceanbase" (compound_statement) "{\nnamespace common {\nenum PacketPriority {\n HIGH_PRIV = -1,\n NORMAL_PRIV = 0,\n LOW_PRIV = 1,\n};\n\nclass ObCond {\n static const int64_t SPIN_WAIT_NUM = 0;\n static const int64_t BUSY_INTERVAL = 1000;\n\npublic:\n explicit ObCond(const int64_t spin_wait_num = SPIN_WAIT_NUM);\n ~ObCond();\n\npublic:\n void signal();\n int timedwait(const int64_t time_us);\n int wait();\n\nprivate:\n const int64_t spin_wait_num_;\n volatile bool bcond_;\n int64_t last_waked_time_;\n pthread_cond_t cond_;\n pthread_mutex_t mutex_;\n} __attribute__((aligned(64)));\n\ntypedef ObCond S2MCond;\nclass S2MQueueThread {\n struct ThreadConf {\n pthread_t pd;\n uint64_t index;\n volatile bool run_flag;\n volatile bool stop_flag;\n S2MCond queue_cond;\n volatile bool using_flag;\n volatile int64_t last_active_time;\n ObFixedQueue<void> high_prio_task_queue;\n ObFixedQueue<void> spec_task_queue;\n ObFixedQueue<void> comm_task_queue;\n ObFixedQueue<void> low_prio_task_queue;\n ObPriorityScheduler scheduler_;\n S2MQueueThread* host;\n ThreadConf()\n : pd(0),\n index(0),\n run_flag(true),\n stop_flag(false),\n queue_cond(),\n using_flag(false),\n last_active_time(0),\n spec_task_queue(),\n comm_task_queue(),\n host(NULL){};\n } CACHE_ALIGNED;\n static const int64_t THREAD_BUSY_TIME_LIMIT = 10 * 1000;\n static const int64_t QUEUE_WAIT_TIME = 100 * 1000;\n static const int64_t MAX_THREAD_NUM = 256;\n static const int64_t QUEUE_SIZE_TO_SWITCH = 4;\n typedef DRWLock RWLock;\n typedef DRWLock::RDLockGuard RDLockGuard;\n typedef DRWLock::WRLockGuard WRLockGuard;\n typedef ObTCCounter Counter;\n\npublic:\n enum { HIGH_PRIO_QUEUE = 0, HOTSPOT_QUEUE = 1, NORMAL_PRIO_QUEUE = 2, LOW_PRIO_QUEUE = 3, QUEUE_COUNT = 4 };\n\npublic:\n S2MQueueThread();\n virtual ~S2MQueueThread();\n\npublic:\n int init(\n const int64_t thread_num, const int64_t task_num_limit, const bool queue_rebalance, const bool dynamic_rebalance);\n int set_prio_quota(v4si& quota);\n void destroy();\n int64_t get_queued_num() const;\n int64_t get_each_queued_num(int queue_id) const\n {\n return (queue_id >= 0 && queue_id < QUEUE_COUNT) ? each_queue_len_[queue_id].value() : 0;\n }\n int add_thread(const int64_t thread_num, const int64_t task_num_limit);\n int sub_thread(const int64_t thread_num);\n int64_t get_thread_num() const\n {\n return thread_num_;\n };\n int wakeup();\n\npublic:\n int push(void* task, const int64_t prio = NORMAL_PRIV);\n int push(void* task, const uint64_t task_sign, const int64_t prio);\n int push_low_prio(void* task);\n int64_t& thread_index();\n int64_t get_thread_index() const;\n virtual void on_iter()\n {}\n virtual void handle(void* task, void* pdata) = 0;\n virtual void handle_with_stopflag(void* task, void* pdata, volatile bool& stop_flag)\n {\n handle(task, pdata);\n if (stop_flag) {}\n };\n virtual void* on_begin()\n {\n return NULL;\n };\n virtual void on_end(void* ptr)\n {\n UNUSED(ptr);\n };\n\nprivate:\n void* rebalance_(int64_t& idx, const ThreadConf& cur_thread);\n int launch_thread_(const int64_t thread_num, const int64_t task_num_limit);\n static void* thread_func_(void* data);\n\nprivate:\n int64_t thread_num_;\n volatile uint64_t thread_conf_iter_;\n RWLock thread_conf_lock_;\n ThreadConf thread_conf_array_[MAX_THREAD_NUM];\n Counter queued_num_;\n Counter each_queue_len_[QUEUE_COUNT];\n bool queue_rebalance_;\n ObBalanceFilter balance_filter_;\n};\n\ntypedef S2MCond M2SCond;\nclass M2SQueueThread {\n static const int64_t QUEUE_WAIT_TIME;\n\npublic:\n M2SQueueThread();\n virtual ~M2SQueueThread();\n\npublic:\n int init(const int64_t task_num_limit, const int64_t idle_interval);\n void destroy();\n\npublic:\n int push(void* task);\n int64_t get_queued_num() const;\n virtual void handle(void* task, void* pdata) = 0;\n virtual void* on_begin()\n {\n return NULL;\n };\n virtual void on_end(void* ptr)\n {\n UNUSED(ptr);\n };\n virtual void on_idle(){};\n\nprivate:\n static void* thread_func_(void* data);\n\nprivate:\n bool inited_;\n pthread_t pd_;\n volatile bool run_flag_;\n M2SCond queue_cond_;\n ObFixedQueue<void> task_queue_;\n int64_t idle_interval_;\n int64_t last_idle_time_;\n} CACHE_ALIGNED;\n\nclass SeqQueueThread {\n static const int64_t QUEUE_WAIT_TIME = 10 * 1000;\n\npublic:\n SeqQueueThread();\n virtual ~SeqQueueThread();\n\npublic:\n int init(const int64_t task_num_limit, const int64_t idle_interval);\n void destroy();\n\npublic:\n virtual int push(void* task);\n int64_t get_queued_num() const;\n virtual void handle(void* task, void* pdata) = 0;\n virtual void on_push_fail(void* ptr)\n {\n UNUSED(ptr);\n };\n virtual void* on_begin()\n {\n return NULL;\n };\n virtual void on_end(void* ptr)\n {\n UNUSED(ptr);\n };\n virtual void on_idle(){};\n virtual int64_t get_seq(void* task) = 0;\n\nprivate:\n static void* thread_func_(void* data);\n\nprotected:\n ObSeqQueue task_queue_;\n\nprivate:\n bool inited_;\n pthread_t pd_;\n volatile bool run_flag_;\n int64_t idle_interval_;\n int64_t last_idle_time_;\n} CACHE_ALIGNED;\n}" ({) "{" (function_definition) "namespace common {\nenum PacketPriority {\n HIGH_PRIV = -1,\n NORMAL_PRIV = 0,\n LOW_PRIV = 1,\n};\n\nclass ObCond {\n static const int64_t SPIN_WAIT_NUM = 0;\n static const int64_t BUSY_INTERVAL = 1000;\n\npublic:\n explicit ObCond(const int64_t spin_wait_num = SPIN_WAIT_NUM);\n ~ObCond();\n\npublic:\n void signal();\n int timedwait(const int64_t time_us);\n int wait();\n\nprivate:\n const int64_t spin_wait_num_;\n volatile bool bcond_;\n int64_t last_waked_time_;\n pthread_cond_t cond_;\n pthread_mutex_t mutex_;\n} __attribute__((aligned(64)));\n\ntypedef ObCond S2MCond;\nclass S2MQueueThread {\n struct ThreadConf {\n pthread_t pd;\n uint64_t index;\n volatile bool run_flag;\n volatile bool stop_flag;\n S2MCond queue_cond;\n volatile bool using_flag;\n volatile int64_t last_active_time;\n ObFixedQueue<void> high_prio_task_queue;\n ObFixedQueue<void> spec_task_queue;\n ObFixedQueue<void> comm_task_queue;\n ObFixedQueue<void> low_prio_task_queue;\n ObPriorityScheduler scheduler_;\n S2MQueueThread* host;\n ThreadConf()\n : pd(0),\n index(0),\n run_flag(true),\n stop_flag(false),\n queue_cond(),\n using_flag(false),\n last_active_time(0),\n spec_task_queue(),\n comm_task_queue(),\n host(NULL){};\n } CACHE_ALIGNED;\n static const int64_t THREAD_BUSY_TIME_LIMIT = 10 * 1000;\n static const int64_t QUEUE_WAIT_TIME = 100 * 1000;\n static const int64_t MAX_THREAD_NUM = 256;\n static const int64_t QUEUE_SIZE_TO_SWITCH = 4;\n typedef DRWLock RWLock;\n typedef DRWLock::RDLockGuard RDLockGuard;\n typedef DRWLock::WRLockGuard WRLockGuard;\n typedef ObTCCounter Counter;\n\npublic:\n enum { HIGH_PRIO_QUEUE = 0, HOTSPOT_QUEUE = 1, NORMAL_PRIO_QUEUE = 2, LOW_PRIO_QUEUE = 3, QUEUE_COUNT = 4 };\n\npublic:\n S2MQueueThread();\n virtual ~S2MQueueThread();\n\npublic:\n int init(\n const int64_t thread_num, const int64_t task_num_limit, const bool queue_rebalance, const bool dynamic_rebalance);\n int set_prio_quota(v4si& quota);\n void destroy();\n int64_t get_queued_num() const;\n int64_t get_each_queued_num(int queue_id) const\n {\n return (queue_id >= 0 && queue_id < QUEUE_COUNT) ? each_queue_len_[queue_id].value() : 0;\n }\n int add_thread(const int64_t thread_num, const int64_t task_num_limit);\n int sub_thread(const int64_t thread_num);\n int64_t get_thread_num() const\n {\n return thread_num_;\n };\n int wakeup();\n\npublic:\n int push(void* task, const int64_t prio = NORMAL_PRIV);\n int push(void* task, const uint64_t task_sign, const int64_t prio);\n int push_low_prio(void* task);\n int64_t& thread_index();\n int64_t get_thread_index() const;\n virtual void on_iter()\n {}\n virtual void handle(void* task, void* pdata) = 0;\n virtual void handle_with_stopflag(void* task, void* pdata, volatile bool& stop_flag)\n {\n handle(task, pdata);\n if (stop_flag) {}\n };\n virtual void* on_begin()\n {\n return NULL;\n };\n virtual void on_end(void* ptr)\n {\n UNUSED(ptr);\n };\n\nprivate:\n void* rebalance_(int64_t& idx, const ThreadConf& cur_thread);\n int launch_thread_(const int64_t thread_num, const int64_t task_num_limit);\n static void* thread_func_(void* data);\n\nprivate:\n int64_t thread_num_;\n volatile uint64_t thread_conf_iter_;\n RWLock thread_conf_lock_;\n ThreadConf thread_conf_array_[MAX_THREAD_NUM];\n Counter queued_num_;\n Counter each_queue_len_[QUEUE_COUNT];\n bool queue_rebalance_;\n ObBalanceFilter balance_filter_;\n}" (type_identifier) "namespace" (identifier) "common" (compound_statement) "{\nenum PacketPriority {\n HIGH_PRIV = -1,\n NORMAL_PRIV = 0,\n LOW_PRIV = 1,\n};\n\nclass ObCond {\n static const int64_t SPIN_WAIT_NUM = 0;\n static const int64_t BUSY_INTERVAL = 1000;\n\npublic:\n explicit ObCond(const int64_t spin_wait_num = SPIN_WAIT_NUM);\n ~ObCond();\n\npublic:\n void signal();\n int timedwait(const int64_t time_us);\n int wait();\n\nprivate:\n const int64_t spin_wait_num_;\n volatile bool bcond_;\n int64_t last_waked_time_;\n pthread_cond_t cond_;\n pthread_mutex_t mutex_;\n} __attribute__((aligned(64)));\n\ntypedef ObCond S2MCond;\nclass S2MQueueThread {\n struct ThreadConf {\n pthread_t pd;\n uint64_t index;\n volatile bool run_flag;\n volatile bool stop_flag;\n S2MCond queue_cond;\n volatile bool using_flag;\n volatile int64_t last_active_time;\n ObFixedQueue<void> high_prio_task_queue;\n ObFixedQueue<void> spec_task_queue;\n ObFixedQueue<void> comm_task_queue;\n ObFixedQueue<void> low_prio_task_queue;\n ObPriorityScheduler scheduler_;\n S2MQueueThread* host;\n ThreadConf()\n : pd(0),\n index(0),\n run_flag(true),\n stop_flag(false),\n queue_cond(),\n using_flag(false),\n last_active_time(0),\n spec_task_queue(),\n comm_task_queue(),\n host(NULL){};\n } CACHE_ALIGNED;\n static const int64_t THREAD_BUSY_TIME_LIMIT = 10 * 1000;\n static const int64_t QUEUE_WAIT_TIME = 100 * 1000;\n static const int64_t MAX_THREAD_NUM = 256;\n static const int64_t QUEUE_SIZE_TO_SWITCH = 4;\n typedef DRWLock RWLock;\n typedef DRWLock::RDLockGuard RDLockGuard;\n typedef DRWLock::WRLockGuard WRLockGuard;\n typedef ObTCCounter Counter;\n\npublic:\n enum { HIGH_PRIO_QUEUE = 0, HOTSPOT_QUEUE = 1, NORMAL_PRIO_QUEUE = 2, LOW_PRIO_QUEUE = 3, QUEUE_COUNT = 4 };\n\npublic:\n S2MQueueThread();\n virtual ~S2MQueueThread();\n\npublic:\n int init(\n const int64_t thread_num, const int64_t task_num_limit, const bool queue_rebalance, const bool dynamic_rebalance);\n int set_prio_quota(v4si& quota);\n void destroy();\n int64_t get_queued_num() const;\n int64_t get_each_queued_num(int queue_id) const\n {\n return (queue_id >= 0 && queue_id < QUEUE_COUNT) ? each_queue_len_[queue_id].value() : 0;\n }\n int add_thread(const int64_t thread_num, const int64_t task_num_limit);\n int sub_thread(const int64_t thread_num);\n int64_t get_thread_num() const\n {\n return thread_num_;\n };\n int wakeup();\n\npublic:\n int push(void* task, const int64_t prio = NORMAL_PRIV);\n int push(void* task, const uint64_t task_sign, const int64_t prio);\n int push_low_prio(void* task);\n int64_t& thread_index();\n int64_t get_thread_index() const;\n virtual void on_iter()\n {}\n virtual void handle(void* task, void* pdata) = 0;\n virtual void handle_with_stopflag(void* task, void* pdata, volatile bool& stop_flag)\n {\n handle(task, pdata);\n if (stop_flag) {}\n };\n virtual void* on_begin()\n {\n return NULL;\n };\n virtual void on_end(void* ptr)\n {\n UNUSED(ptr);\n };\n\nprivate:\n void* rebalance_(int64_t& idx, const ThreadConf& cur_thread);\n int launch_thread_(const int64_t thread_num, const int64_t task_num_limit);\n static void* thread_func_(void* data);\n\nprivate:\n int64_t thread_num_;\n volatile uint64_t thread_conf_iter_;\n RWLock thread_conf_lock_;\n ThreadConf thread_conf_array_[MAX_THREAD_NUM];\n Counter queued_num_;\n Counter each_queue_len_[QUEUE_COUNT];\n bool queue_rebalance_;\n ObBalanceFilter balance_filter_;\n}" ({) "{" (enum_specifier) "enum PacketPriority {\n HIGH_PRIV = -1,\n NORMAL_PRIV = 0,\n LOW_PRIV = 1,\n}" (enum) "enum" (type_identifier) "PacketPriority" (enumerator_list) "{\n HIGH_PRIV = -1,\n NORMAL_PRIV = 0,\n LOW_PRIV = 1,\n}" ({) "{" (enumerator) "HIGH_PRIV = -1" (identifier) "HIGH_PRIV" (=) "=" (number_literal) "-1" (,) "," (enumerator) "NORMAL_PRIV = 0" (identifier) "NORMAL_PRIV" (=) "=" (number_literal) "0" (,) "," (enumerator) "LOW_PRIV = 1" (identifier) "LOW_PRIV" (=) "=" (number_literal) "1" (,) "," (}) "}" (;) ";" (function_definition) "class ObCond {\n static const int64_t SPIN_WAIT_NUM = 0;\n static const int64_t BUSY_INTERVAL = 1000;\n\npublic:\n explicit ObCond(const int64_t spin_wait_num = SPIN_WAIT_NUM);\n ~ObCond();\n\npublic:\n void signal();\n int timedwait(const int64_t time_us);\n int wait();\n\nprivate:\n const int64_t spin_wait_num_;\n volatile bool bcond_;\n int64_t last_waked_time_;\n pthread_cond_t cond_;\n pthread_mutex_t mutex_;\n}" (type_identifier) "class" (identifier) "ObCond" (compound_statement) "{\n static const int64_t SPIN_WAIT_NUM = 0;\n static const int64_t BUSY_INTERVAL = 1000;\n\npublic:\n explicit ObCond(const int64_t spin_wait_num = SPIN_WAIT_NUM);\n ~ObCond();\n\npublic:\n void signal();\n int timedwait(const int64_t time_us);\n int wait();\n\nprivate:\n const int64_t spin_wait_num_;\n volatile bool bcond_;\n int64_t last_waked_time_;\n pthread_cond_t cond_;\n pthread_mutex_t mutex_;\n}" ({) "{" (declaration) "static const int64_t SPIN_WAIT_NUM = 0;" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "int64_t" (init_declarator) "SPIN_WAIT_NUM = 0" (identifier) "SPIN_WAIT_NUM" (=) "=" (number_literal) "0" (;) ";" (declaration) "static const int64_t BUSY_INTERVAL = 1000;" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "int64_t" (init_declarator) "BUSY_INTERVAL = 1000" (identifier) "BUSY_INTERVAL" (=) "=" (number_literal) "1000" (;) ";" (labeled_statement) "public:\n explicit ObCond(const int64_t spin_wait_num = SPIN_WAIT_NUM);" (statement_identifier) "public" (:) ":" (declaration) "explicit ObCond(const int64_t spin_wait_num = SPIN_WAIT_NUM);" (type_identifier) "explicit" (function_declarator) "ObCond(const int64_t spin_wait_num = SPIN_WAIT_NUM)" (identifier) "ObCond" (parameter_list) "(const int64_t spin_wait_num = SPIN_WAIT_NUM)" (() "(" (parameter_declaration) "const int64_t spin_wait_num = SPIN_WAIT_NUM" (type_qualifier) "const" (const) "const" (primitive_type) "int64_t" (ERROR) "spin_wait_num =" (identifier) "spin_wait_num" (=) "=" (identifier) "SPIN_WAIT_NUM" ()) ")" (;) ";" (expression_statement) "~ObCond();" (unary_expression) "~ObCond()" (~) "~" (call_expression) "ObCond()" (identifier) "ObCond" (argument_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "public:\n void signal();" (statement_identifier) "public" (:) ":" (declaration) "void signal();" (primitive_type) "void" (function_declarator) "signal()" (identifier) "signal" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "int timedwait(const int64_t time_us);" (primitive_type) "int" (function_declarator) "timedwait(const int64_t time_us)" (identifier) "timedwait" (parameter_list) "(const int64_t time_us)" (() "(" (parameter_declaration) "const int64_t time_us" (type_qualifier) "const" (const) "const" (primitive_type) "int64_t" (identifier) "time_us" ()) ")" (;) ";" (declaration) "int wait();" (primitive_type) "int" (function_declarator) "wait()" (identifier) "wait" (parameter_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "private:\n const int64_t spin_wait_num_;" (statement_identifier) "private" (:) ":" (declaration) "const int64_t spin_wait_num_;" (type_qualifier) "const" (const) "const" (primitive_type) "int64_t" (identifier) "spin_wait_num_" (;) ";" (declaration) "volatile bool bcond_;" (type_qualifier) "volatile" (volatile) "volatile" (primitive_type) "bool" (identifier) "bcond_" (;) ";" (declaration) "int64_t last_waked_time_;" (primitive_type) "int64_t" (identifier) "last_waked_time_" (;) ";" (declaration) "pthread_cond_t cond_;" (type_identifier) "pthread_cond_t" (identifier) "cond_" (;) ";" (declaration) "pthread_mutex_t mutex_;" (type_identifier) "pthread_mutex_t" (identifier) "mutex_" (;) ";" (}) "}" (ERROR) "__attribute__((aligned(64)))" (attribute_specifier) "__attribute__((aligned(64)))" (__attribute__) "__attribute__" (() "(" (argument_list) "(aligned(64))" (() "(" (call_expression) "aligned(64)" (identifier) "aligned" (argument_list) "(64)" (() "(" (number_literal) "64" ()) ")" ()) ")" ()) ")" (expression_statement) ";" (;) ";" (type_definition) "typedef ObCond S2MCond;" (typedef) "typedef" (type_identifier) "ObCond" (type_identifier) "S2MCond" (;) ";" (function_definition) "class S2MQueueThread {\n struct ThreadConf {\n pthread_t pd;\n uint64_t index;\n volatile bool run_flag;\n volatile bool stop_flag;\n S2MCond queue_cond;\n volatile bool using_flag;\n volatile int64_t last_active_time;\n ObFixedQueue<void> high_prio_task_queue;\n ObFixedQueue<void> spec_task_queue;\n ObFixedQueue<void> comm_task_queue;\n ObFixedQueue<void> low_prio_task_queue;\n ObPriorityScheduler scheduler_;\n S2MQueueThread* host;\n ThreadConf()\n : pd(0),\n index(0),\n run_flag(true),\n stop_flag(false),\n queue_cond(),\n using_flag(false),\n last_active_time(0),\n spec_task_queue(),\n comm_task_queue(),\n host(NULL){};\n } CACHE_ALIGNED;\n static const int64_t THREAD_BUSY_TIME_LIMIT = 10 * 1000;\n static const int64_t QUEUE_WAIT_TIME = 100 * 1000;\n static const int64_t MAX_THREAD_NUM = 256;\n static const int64_t QUEUE_SIZE_TO_SWITCH = 4;\n typedef DRWLock RWLock;\n typedef DRWLock::RDLockGuard RDLockGuard;\n typedef DRWLock::WRLockGuard WRLockGuard;\n typedef ObTCCounter Counter;\n\npublic:\n enum { HIGH_PRIO_QUEUE = 0, HOTSPOT_QUEUE = 1, NORMAL_PRIO_QUEUE = 2, LOW_PRIO_QUEUE = 3, QUEUE_COUNT = 4 };\n\npublic:\n S2MQueueThread();\n virtual ~S2MQueueThread();\n\npublic:\n int init(\n const int64_t thread_num, const int64_t task_num_limit, const bool queue_rebalance, const bool dynamic_rebalance);\n int set_prio_quota(v4si& quota);\n void destroy();\n int64_t get_queued_num() const;\n int64_t get_each_queued_num(int queue_id) const\n {\n return (queue_id >= 0 && queue_id < QUEUE_COUNT) ? each_queue_len_[queue_id].value() : 0;\n }\n int add_thread(const int64_t thread_num, const int64_t task_num_limit);\n int sub_thread(const int64_t thread_num);\n int64_t get_thread_num() const\n {\n return thread_num_;\n };\n int wakeup();\n\npublic:\n int push(void* task, const int64_t prio = NORMAL_PRIV);\n int push(void* task, const uint64_t task_sign, const int64_t prio);\n int push_low_prio(void* task);\n int64_t& thread_index();\n int64_t get_thread_index() const;\n virtual void on_iter()\n {}\n virtual void handle(void* task, void* pdata) = 0;\n virtual void handle_with_stopflag(void* task, void* pdata, volatile bool& stop_flag)\n {\n handle(task, pdata);\n if (stop_flag) {}\n }" (type_identifier) "class" (identifier) "S2MQueueThread" (compound_statement) "{\n struct ThreadConf {\n pthread_t pd;\n uint64_t index;\n volatile bool run_flag;\n volatile bool stop_flag;\n S2MCond queue_cond;\n volatile bool using_flag;\n volatile int64_t last_active_time;\n ObFixedQueue<void> high_prio_task_queue;\n ObFixedQueue<void> spec_task_queue;\n ObFixedQueue<void> comm_task_queue;\n ObFixedQueue<void> low_prio_task_queue;\n ObPriorityScheduler scheduler_;\n S2MQueueThread* host;\n ThreadConf()\n : pd(0),\n index(0),\n run_flag(true),\n stop_flag(false),\n queue_cond(),\n using_flag(false),\n last_active_time(0),\n spec_task_queue(),\n comm_task_queue(),\n host(NULL){};\n } CACHE_ALIGNED;\n static const int64_t THREAD_BUSY_TIME_LIMIT = 10 * 1000;\n static const int64_t QUEUE_WAIT_TIME = 100 * 1000;\n static const int64_t MAX_THREAD_NUM = 256;\n static const int64_t QUEUE_SIZE_TO_SWITCH = 4;\n typedef DRWLock RWLock;\n typedef DRWLock::RDLockGuard RDLockGuard;\n typedef DRWLock::WRLockGuard WRLockGuard;\n typedef ObTCCounter Counter;\n\npublic:\n enum { HIGH_PRIO_QUEUE = 0, HOTSPOT_QUEUE = 1, NORMAL_PRIO_QUEUE = 2, LOW_PRIO_QUEUE = 3, QUEUE_COUNT = 4 };\n\npublic:\n S2MQueueThread();\n virtual ~S2MQueueThread();\n\npublic:\n int init(\n const int64_t thread_num, const int64_t task_num_limit, const bool queue_rebalance, const bool dynamic_rebalance);\n int set_prio_quota(v4si& quota);\n void destroy();\n int64_t get_queued_num() const;\n int64_t get_each_queued_num(int queue_id) const\n {\n return (queue_id >= 0 && queue_id < QUEUE_COUNT) ? each_queue_len_[queue_id].value() : 0;\n }\n int add_thread(const int64_t thread_num, const int64_t task_num_limit);\n int sub_thread(const int64_t thread_num);\n int64_t get_thread_num() const\n {\n return thread_num_;\n };\n int wakeup();\n\npublic:\n int push(void* task, const int64_t prio = NORMAL_PRIV);\n int push(void* task, const uint64_t task_sign, const int64_t prio);\n int push_low_prio(void* task);\n int64_t& thread_index();\n int64_t get_thread_index() const;\n virtual void on_iter()\n {}\n virtual void handle(void* task, void* pdata) = 0;\n virtual void handle_with_stopflag(void* task, void* pdata, volatile bool& stop_flag)\n {\n handle(task, pdata);\n if (stop_flag) {}\n }" ({) "{" (ERROR) "struct ThreadConf {\n pthread_t pd;\n uint64_t index;\n volatile bool run_flag;\n volatile bool stop_flag;\n S2MCond queue_cond;\n volatile bool using_flag;\n volatile int64_t last_active_time;\n ObFixedQueue<void> high_prio_task_queue;\n ObFixedQueue<void> spec_task_queue;\n ObFixedQueue<void> comm_task_queue;\n ObFixedQueue<void> low_prio_task_queue;\n ObPriorityScheduler scheduler_;\n S2MQueueThread* host;\n ThreadConf()\n : pd(0),\n index(0),\n run_flag(true),\n stop_flag(false),\n queue_cond(),\n using_flag(false),\n last_active_time(0),\n spec_task_queue(),\n comm_task_queue(),\n host(NULL){};\n } CACHE_ALIGNED;\n static const int64_t THREAD_BUSY_TIME_LIMIT = 10 * 1000;\n static const int64_t QUEUE_WAIT_TIME = 100 * 1000;\n static const int64_t MAX_THREAD_NUM = 256;\n static const int64_t QUEUE_SIZE_TO_SWITCH = 4;\n typedef DRWLock RWLock;\n typedef DRWLock::RDLockGuard RDLockGuard;" (struct) "struct" (identifier) "ThreadConf" ({) "{" (field_declaration) "pthread_t pd;" (type_identifier) "pthread_t" (field_identifier) "pd" (;) ";" (field_declaration) "uint64_t index;" (primitive_type) "uint64_t" (field_identifier) "index" (;) ";" (field_declaration) "volatile bool run_flag;" (type_qualifier) "volatile" (volatile) "volatile" (primitive_type) "bool" (field_identifier) "run_flag" (;) ";" (field_declaration) "volatile bool stop_flag;" (type_qualifier) "volatile" (volatile) "volatile" (primitive_type) "bool" (field_identifier) "stop_flag" (;) ";" (field_declaration) "S2MCond queue_cond;" (type_identifier) "S2MCond" (field_identifier) "queue_cond" (;) ";" (field_declaration) "volatile bool using_flag;" (type_qualifier) "volatile" (volatile) "volatile" (primitive_type) "bool" (field_identifier) "using_flag" (;) ";" (field_declaration) "volatile int64_t last_active_time;" (type_qualifier) "volatile" (volatile) "volatile" (primitive_type) "int64_t" (field_identifier) "last_active_time" (;) ";" (field_declaration) "ObFixedQueue<void> high_prio_task_queue;" (type_identifier) "ObFixedQueue" (ERROR) "<void>" (<) "<" (primitive_type) "void" (>) ">" (field_identifier) "high_prio_task_queue" (;) ";" (field_declaration) "ObFixedQueue<void> spec_task_queue;" (type_identifier) "ObFixedQueue" (ERROR) "<void>" (<) "<" (primitive_type) "void" (>) ">" (field_identifier) "spec_task_queue" (;) ";" (field_declaration) "ObFixedQueue<void> comm_task_queue;" (type_identifier) "ObFixedQueue" (ERROR) "<void>" (<) "<" (primitive_type) "void" (>) ">" (field_identifier) "comm_task_queue" (;) ";" (field_declaration) "ObFixedQueue<void> low_prio_task_queue;" (type_identifier) "ObFixedQueue" (ERROR) "<void>" (<) "<" (primitive_type) "void" (>) ">" (field_identifier) "low_prio_task_queue" (;) ";" (field_declaration) "ObPriorityScheduler scheduler_;" (type_identifier) "ObPriorityScheduler" (field_identifier) "scheduler_" (;) ";" (field_declaration) "S2MQueueThread* host;" (type_identifier) "S2MQueueThread" (pointer_declarator) "* host" (*) "*" (field_identifier) "host" (;) ";" (identifier) "ThreadConf" (() "(" (ERROR) ")\n :" ()) ")" (:) ":" (identifier) "pd" (() "(" (ERROR) "0)," (number_literal) "0" ()) ")" (,) "," (identifier) "index" (() "(" (ERROR) "0),\n run_flag(true),\n stop_flag(false),\n queue_cond(),\n using_flag(false)," (number_literal) "0" ()) ")" (,) "," (type_descriptor) "run_flag(true)" (type_identifier) "run_flag" (abstract_function_declarator) "(true)" (parameter_list) "(true)" (() "(" (parameter_declaration) "true" (type_identifier) "true" ()) ")" (,) "," (type_descriptor) "stop_flag(false)" (type_identifier) "stop_flag" (abstract_function_declarator) "(false)" (parameter_list) "(false)" (() "(" (parameter_declaration) "false" (type_identifier) "false" ()) ")" (,) "," (type_descriptor) "queue_cond()" (type_identifier) "queue_cond" (abstract_function_declarator) "()" (parameter_list) "()" (() "(" ()) ")" (,) "," (type_descriptor) "using_flag(false)" (type_identifier) "using_flag" (abstract_function_declarator) "(false)" (parameter_list) "(false)" (() "(" (parameter_declaration) "false" (type_identifier) "false" ()) ")" (,) "," (identifier) "last_active_time" (() "(" (ERROR) "0),\n spec_task_queue(),\n comm_task_queue(),\n host(NULL){};\n } CACHE_ALIGNED;\n static const int64_t THREAD_BUSY_TIME_LIMIT = 10 * 1000;\n static const int64_t QUEUE_WAIT_TIME = 100 * 1000;\n static const int64_t MAX_THREAD_NUM = 256;\n static const int64_t" (number_literal) "0" ()) ")" (,) "," (type_descriptor) "spec_task_queue()" (type_identifier) "spec_task_queue" (abstract_function_declarator) "()" (parameter_list) "()" (() "(" ()) ")" (,) "," (type_descriptor) "comm_task_queue()" (type_identifier) "comm_task_queue" (abstract_function_declarator) "()" (parameter_list) "()" (() "(" ()) ")" (,) "," (macro_type_specifier) "host(NULL)" (identifier) "host" (() "(" (type_descriptor) "NULL" (type_identifier) "NULL" ()) ")" ({) "{" (}) "}" (;) ";" (}) "}" (type_descriptor) "CACHE_ALIGNED;\n static const" (type_identifier) "CACHE_ALIGNED" (ERROR) ";\n static" (;) ";" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "int64_t" (type_descriptor) "THREAD_BUSY_TIME_LIMIT = 10 * 1000;\n static const" (type_identifier) "THREAD_BUSY_TIME_LIMIT" (ERROR) "= 10" (=) "=" (number_literal) "10" (abstract_pointer_declarator) "* 1000;\n static const" (*) "*" (ERROR) "1000;\n static" (number_literal) "1000" (;) ";" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "int64_t" (type_descriptor) "QUEUE_WAIT_TIME = 100 * 1000;\n static const" (type_identifier) "QUEUE_WAIT_TIME" (ERROR) "= 100" (=) "=" (number_literal) "100" (abstract_pointer_declarator) "* 1000;\n static const" (*) "*" (ERROR) "1000;\n static" (number_literal) "1000" (;) ";" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "int64_t" (type_descriptor) "MAX_THREAD_NUM = 256;\n static const" (type_identifier) "MAX_THREAD_NUM" (ERROR) "= 256;\n static" (=) "=" (number_literal) "256" (;) ";" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "int64_t" (identifier) "QUEUE_SIZE_TO_SWITCH" (=) "=" (number_literal) "4" (;) ";" (typedef) "typedef" (identifier) "DRWLock" (identifier) "RWLock" (;) ";" (typedef) "typedef" (identifier) "DRWLock" (:) ":" (:) ":" (identifier) "RDLockGuard" (identifier) "RDLockGuard" (;) ";" (type_definition) "typedef DRWLock::WRLockGuard WRLockGuard;" (typedef) "typedef" (type_identifier) "DRWLock" (ERROR) "::WRLockGuard" (:) ":" (:) ":" (type_identifier) "WRLockGuard" (type_identifier) "WRLockGuard" (;) ";" (type_definition) "typedef ObTCCounter Counter;" (typedef) "typedef" (type_identifier) "ObTCCounter" (type_identifier) "Counter" (;) ";" (labeled_statement) "public:\n enum { HIGH_PRIO_QUEUE = 0, HOTSPOT_QUEUE = 1, NORMAL_PRIO_QUEUE = 2, LOW_PRIO_QUEUE = 3, QUEUE_COUNT = 4 };" (statement_identifier) "public" (:) ":" (declaration) "enum { HIGH_PRIO_QUEUE = 0, HOTSPOT_QUEUE = 1, NORMAL_PRIO_QUEUE = 2, LOW_PRIO_QUEUE = 3, QUEUE_COUNT = 4 };" (enum_specifier) "enum { HIGH_PRIO_QUEUE = 0, HOTSPOT_QUEUE = 1, NORMAL_PRIO_QUEUE = 2, LOW_PRIO_QUEUE = 3, QUEUE_COUNT = 4 }" (enum) "enum" (enumerator_list) "{ HIGH_PRIO_QUEUE = 0, HOTSPOT_QUEUE = 1, NORMAL_PRIO_QUEUE = 2, LOW_PRIO_QUEUE = 3, QUEUE_COUNT = 4 }" ({) "{" (enumerator) "HIGH_PRIO_QUEUE = 0" (identifier) "HIGH_PRIO_QUEUE" (=) "=" (number_literal) "0" (,) "," (enumerator) "HOTSPOT_QUEUE = 1" (identifier) "HOTSPOT_QUEUE" (=) "=" (number_literal) "1" (,) "," (enumerator) "NORMAL_PRIO_QUEUE = 2" (identifier) "NORMAL_PRIO_QUEUE" (=) "=" (number_literal) "2" (,) "," (enumerator) "LOW_PRIO_QUEUE = 3" (identifier) "LOW_PRIO_QUEUE" (=) "=" (number_literal) "3" (,) "," (enumerator) "QUEUE_COUNT = 4" (identifier) "QUEUE_COUNT" (=) "=" (number_literal) "4" (}) "}" (identifier) "" (;) ";" (labeled_statement) "public:\n S2MQueueThread();" (statement_identifier) "public" (:) ":" (expression_statement) "S2MQueueThread();" (call_expression) "S2MQueueThread()" (identifier) "S2MQueueThread" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual ~S2MQueueThread();" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "S2MQueueThread()" (identifier) "S2MQueueThread" (parameter_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "public:\n int init(\n const int64_t thread_num, const int64_t task_num_limit, const bool queue_rebalance, const bool dynamic_rebalance);" (statement_identifier) "public" (:) ":" (declaration) "int init(\n const int64_t thread_num, const int64_t task_num_limit, const bool queue_rebalance, const bool dynamic_rebalance);" (primitive_type) "int" (function_declarator) "init(\n const int64_t thread_num, const int64_t task_num_limit, const bool queue_rebalance, const bool dynamic_rebalance)" (identifier) "init" (parameter_list) "(\n const int64_t thread_num, const int64_t task_num_limit, const bool queue_rebalance, const bool dynamic_rebalance)" (() "(" (parameter_declaration) "const int64_t thread_num" (type_qualifier) "const" (const) "const" (primitive_type) "int64_t" (identifier) "thread_num" (,) "," (parameter_declaration) "const int64_t task_num_limit" (type_qualifier) "const" (const) "const" (primitive_type) "int64_t" (identifier) "task_num_limit" (,) "," (parameter_declaration) "const bool queue_rebalance" (type_qualifier) "const" (const) "const" (primitive_type) "bool" (identifier) "queue_rebalance" (,) "," (parameter_declaration) "const bool dynamic_rebalance" (type_qualifier) "const" (const) "const" (primitive_type) "bool" (identifier) "dynamic_rebalance" ()) ")" (;) ";" (declaration) "int set_prio_quota(v4si& quota);" (primitive_type) "int" (function_declarator) "set_prio_quota(v4si& quota)" (identifier) "set_prio_quota" (parameter_list) "(v4si& quota)" (() "(" (parameter_declaration) "v4si& quota" (type_identifier) "v4si" (ERROR) "&" (&) "&" (identifier) "quota" ()) ")" (;) ";" (declaration) "void destroy();" (primitive_type) "void" (function_declarator) "destroy()" (identifier) "destroy" (parameter_list) "()" (() "(" ()) ")" (;) ";" (function_definition) "int64_t get_queued_num() const;\n int64_t get_each_queued_num(int queue_id) const\n {\n return (queue_id >= 0 && queue_id < QUEUE_COUNT) ? each_queue_len_[queue_id].value() : 0;\n }\n int add_thread(const int64_t thread_num, const int64_t task_num_limit);\n int sub_thread(const int64_t thread_num);\n int64_t get_thread_num() const\n {\n return thread_num_;\n }" (primitive_type) "int64_t" (function_declarator) "get_queued_num()" (identifier) "get_queued_num" (parameter_list) "()" (() "(" ()) ")" (declaration) "const;\n int64_t get_each_queued_num(int queue_id) const\n {\n return (queue_id >= 0 && queue_id < QUEUE_COUNT) ? each_queue_len_[queue_id].value() : 0;" (type_qualifier) "const" (const) "const" (ERROR) ";" (;) ";" (primitive_type) "int64_t" (ERROR) "get_each_queued_num(int queue_id) const\n {\n return (queue_id >= 0 && queue_id < QUEUE_COUNT) ? each_queue_len_[queue_id]." (array_declarator) "get_each_queued_num(int queue_id) const\n {\n return (queue_id >= 0 && queue_id < QUEUE_COUNT) ? each_queue_len_[queue_id]" (function_declarator) "get_each_queued_num(int queue_id) const\n {\n return (queue_id >= 0 && queue_id < QUEUE_COUNT) ? each_queue_len_" (function_declarator) "get_each_queued_num(int queue_id) const" (identifier) "get_each_queued_num" (parameter_list) "(int queue_id)" (() "(" (parameter_declaration) "int queue_id" (primitive_type) "int" (identifier) "queue_id" ()) ")" (identifier) "const" (ERROR) "{\n return" ({) "{" (return) "return" (parameter_list) "(queue_id >= 0 && queue_id < QUEUE_COUNT)" (() "(" (parameter_declaration) "queue_id >= 0 && queue_id < QUEUE_COUNT" (type_identifier) "queue_id" (ERROR) ">= 0 && queue_id <" (>=) ">=" (number_literal) "0" (&&) "&&" (identifier) "queue_id" (<) "<" (identifier) "QUEUE_COUNT" ()) ")" (ERROR) "?" (?) "?" (identifier) "each_queue_len_" ([) "[" (identifier) "queue_id" (]) "]" (.) "." (function_declarator) "value()" (identifier) "value" (parameter_list) "()" (() "(" ()) ")" (ERROR) ": 0" (:) ":" (number_literal) "0" (;) ";" (ERROR) "}" (}) "}" (declaration) "int add_thread(const int64_t thread_num, const int64_t task_num_limit);" (primitive_type) "int" (function_declarator) "add_thread(const int64_t thread_num, const int64_t task_num_limit)" (identifier) "add_thread" (parameter_list) "(const int64_t thread_num, const int64_t task_num_limit)" (() "(" (parameter_declaration) "const int64_t thread_num" (type_qualifier) "const" (const) "const" (primitive_type) "int64_t" (identifier) "thread_num" (,) "," (parameter_declaration) "const int64_t task_num_limit" (type_qualifier) "const" (const) "const" (primitive_type) "int64_t" (identifier) "task_num_limit" ()) ")" (;) ";" (declaration) "int sub_thread(const int64_t thread_num);" (primitive_type) "int" (function_declarator) "sub_thread(const int64_t thread_num)" (identifier) "sub_thread" (parameter_list) "(const int64_t thread_num)" (() "(" (parameter_declaration) "const int64_t thread_num" (type_qualifier) "const" (const) "const" (primitive_type) "int64_t" (identifier) "thread_num" ()) ")" (;) ";" (ERROR) "int64_t get_thread_num() const" (primitive_type) "int64_t" (function_declarator) "get_thread_num() const" (identifier) "get_thread_num" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{\n return thread_num_;\n }" ({) "{" (return_statement) "return thread_num_;" (return) "return" (identifier) "thread_num_" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (declaration) "int wakeup();" (primitive_type) "int" (function_declarator) "wakeup()" (identifier) "wakeup" (parameter_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "public:\n int push(void* task, const int64_t prio = NORMAL_PRIV);" (statement_identifier) "public" (:) ":" (declaration) "int push(void* task, const int64_t prio = NORMAL_PRIV);" (primitive_type) "int" (function_declarator) "push(void* task, const int64_t prio = NORMAL_PRIV)" (identifier) "push" (parameter_list) "(void* task, const int64_t prio = NORMAL_PRIV)" (() "(" (parameter_declaration) "void* task" (primitive_type) "void" (pointer_declarator) "* task" (*) "*" (identifier) "task" (,) "," (parameter_declaration) "const int64_t prio = NORMAL_PRIV" (type_qualifier) "const" (const) "const" (primitive_type) "int64_t" (ERROR) "prio =" (identifier) "prio" (=) "=" (identifier) "NORMAL_PRIV" ()) ")" (;) ";" (declaration) "int push(void* task, const uint64_t task_sign, const int64_t prio);" (primitive_type) "int" (function_declarator) "push(void* task, const uint64_t task_sign, const int64_t prio)" (identifier) "push" (parameter_list) "(void* task, const uint64_t task_sign, const int64_t prio)" (() "(" (parameter_declaration) "void* task" (primitive_type) "void" (pointer_declarator) "* task" (*) "*" (identifier) "task" (,) "," (parameter_declaration) "const uint64_t task_sign" (type_qualifier) "const" (const) "const" (primitive_type) "uint64_t" (identifier) "task_sign" (,) "," (parameter_declaration) "const int64_t prio" (type_qualifier) "const" (const) "const" (primitive_type) "int64_t" (identifier) "prio" ()) ")" (;) ";" (declaration) "int push_low_prio(void* task);" (primitive_type) "int" (function_declarator) "push_low_prio(void* task)" (identifier) "push_low_prio" (parameter_list) "(void* task)" (() "(" (parameter_declaration) "void* task" (primitive_type) "void" (pointer_declarator) "* task" (*) "*" (identifier) "task" ()) ")" (;) ";" (declaration) "int64_t& thread_index();" (primitive_type) "int64_t" (ERROR) "&" (&) "&" (function_declarator) "thread_index()" (identifier) "thread_index" (parameter_list) "()" (() "(" ()) ")" (;) ";" (function_definition) "int64_t get_thread_index() const;\n virtual void on_iter()\n {}\n virtual void handle(void* task, void* pdata) = 0;\n virtual void handle_with_stopflag(void* task, void* pdata, volatile bool& stop_flag)\n {\n handle(task, pdata);\n if (stop_flag) {}" (primitive_type) "int64_t" (function_declarator) "get_thread_index()" (identifier) "get_thread_index" (parameter_list) "()" (() "(" ()) ")" (declaration) "const;\n virtual void on_iter()\n {}\n virtual void handle(void* task, void* pdata) = 0;" (type_qualifier) "const" (const) "const" (ERROR) ";" (;) ";" (type_identifier) "virtual" (ERROR) "void on_iter()\n {}\n virtual void" (identifier) "void" (function_declarator) "on_iter()" (identifier) "on_iter" (parameter_list) "()" (() "(" ()) ")" ({) "{" (}) "}" (identifier) "virtual" (identifier) "void" (init_declarator) "handle(void* task, void* pdata) = 0" (function_declarator) "handle(void* task, void* pdata)" (identifier) "handle" (parameter_list) "(void* task, void* pdata)" (() "(" (parameter_declaration) "void* task" (primitive_type) "void" (pointer_declarator) "* task" (*) "*" (identifier) "task" (,) "," (parameter_declaration) "void* pdata" (primitive_type) "void" (pointer_declarator) "* pdata" (*) "*" (identifier) "pdata" ()) ")" (=) "=" (number_literal) "0" (;) ";" (declaration) "virtual void handle_with_stopflag(void* task, void* pdata, volatile bool& stop_flag)\n {\n handle(task, pdata);" (type_identifier) "virtual" (ERROR) "void handle_with_stopflag(void* task, void* pdata, volatile bool& stop_flag)\n {" (identifier) "void" (function_declarator) "handle_with_stopflag(void* task, void* pdata, volatile bool& stop_flag)" (identifier) "handle_with_stopflag" (parameter_list) "(void* task, void* pdata, volatile bool& stop_flag)" (() "(" (parameter_declaration) "void* task" (primitive_type) "void" (pointer_declarator) "* task" (*) "*" (identifier) "task" (,) "," (parameter_declaration) "void* pdata" (primitive_type) "void" (pointer_declarator) "* pdata" (*) "*" (identifier) "pdata" (,) "," (parameter_declaration) "volatile bool& stop_flag" (type_qualifier) "volatile" (volatile) "volatile" (primitive_type) "bool" (ERROR) "&" (&) "&" (identifier) "stop_flag" ()) ")" ({) "{" (function_declarator) "handle(task, pdata)" (identifier) "handle" (parameter_list) "(task, pdata)" (() "(" (parameter_declaration) "task" (type_identifier) "task" (,) "," (parameter_declaration) "pdata" (type_identifier) "pdata" ()) ")" (;) ";" (ERROR) "if (stop_flag)" (macro_type_specifier) "if (stop_flag)" (identifier) "if" (() "(" (type_descriptor) "stop_flag" (type_identifier) "stop_flag" ()) ")" (compound_statement) "{}" ({) "{" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "virtual void* on_begin()\n {\n return NULL;\n }" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (pointer_declarator) "* on_begin()" (*) "*" (function_declarator) "on_begin()" (identifier) "on_begin" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n return NULL;\n }" ({) "{" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "virtual void on_end(void* ptr)\n {\n UNUSED(ptr);\n }" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "on_end(void* ptr)" (identifier) "on_end" (parameter_list) "(void* ptr)" (() "(" (parameter_declaration) "void* ptr" (primitive_type) "void" (pointer_declarator) "* ptr" (*) "*" (identifier) "ptr" ()) ")" (compound_statement) "{\n UNUSED(ptr);\n }" ({) "{" (expression_statement) "UNUSED(ptr);" (call_expression) "UNUSED(ptr)" (identifier) "UNUSED" (argument_list) "(ptr)" (() "(" (identifier) "ptr" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (labeled_statement) "private:\n void* rebalance_(int64_t& idx, const ThreadConf& cur_thread);" (statement_identifier) "private" (:) ":" (declaration) "void* rebalance_(int64_t& idx, const ThreadConf& cur_thread);" (primitive_type) "void" (pointer_declarator) "* rebalance_(int64_t& idx, const ThreadConf& cur_thread)" (*) "*" (function_declarator) "rebalance_(int64_t& idx, const ThreadConf& cur_thread)" (identifier) "rebalance_" (parameter_list) "(int64_t& idx, const ThreadConf& cur_thread)" (() "(" (parameter_declaration) "int64_t& idx" (primitive_type) "int64_t" (ERROR) "&" (&) "&" (identifier) "idx" (,) "," (parameter_declaration) "const ThreadConf& cur_thread" (type_qualifier) "const" (const) "const" (type_identifier) "ThreadConf" (ERROR) "&" (&) "&" (identifier) "cur_thread" ()) ")" (;) ";" (declaration) "int launch_thread_(const int64_t thread_num, const int64_t task_num_limit);" (primitive_type) "int" (function_declarator) "launch_thread_(const int64_t thread_num, const int64_t task_num_limit)" (identifier) "launch_thread_" (parameter_list) "(const int64_t thread_num, const int64_t task_num_limit)" (() "(" (parameter_declaration) "const int64_t thread_num" (type_qualifier) "const" (const) "const" (primitive_type) "int64_t" (identifier) "thread_num" (,) "," (parameter_declaration) "const int64_t task_num_limit" (type_qualifier) "const" (const) "const" (primitive_type) "int64_t" (identifier) "task_num_limit" ()) ")" (;) ";" (declaration) "static void* thread_func_(void* data);" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (pointer_declarator) "* thread_func_(void* data)" (*) "*" (function_declarator) "thread_func_(void* data)" (identifier) "thread_func_" (parameter_list) "(void* data)" (() "(" (parameter_declaration) "void* data" (primitive_type) "void" (pointer_declarator) "* data" (*) "*" (identifier) "data" ()) ")" (;) ";" (labeled_statement) "private:\n int64_t thread_num_;" (statement_identifier) "private" (:) ":" (declaration) "int64_t thread_num_;" (primitive_type) "int64_t" (identifier) "thread_num_" (;) ";" (declaration) "volatile uint64_t thread_conf_iter_;" (type_qualifier) "volatile" (volatile) "volatile" (primitive_type) "uint64_t" (identifier) "thread_conf_iter_" (;) ";" (declaration) "RWLock thread_conf_lock_;" (type_identifier) "RWLock" (identifier) "thread_conf_lock_" (;) ";" (declaration) "ThreadConf thread_conf_array_[MAX_THREAD_NUM];" (type_identifier) "ThreadConf" (array_declarator) "thread_conf_array_[MAX_THREAD_NUM]" (identifier) "thread_conf_array_" ([) "[" (identifier) "MAX_THREAD_NUM" (]) "]" (;) ";" (declaration) "Counter queued_num_;" (type_identifier) "Counter" (identifier) "queued_num_" (;) ";" (declaration) "Counter each_queue_len_[QUEUE_COUNT];" (type_identifier) "Counter" (array_declarator) "each_queue_len_[QUEUE_COUNT]" (identifier) "each_queue_len_" ([) "[" (identifier) "QUEUE_COUNT" (]) "]" (;) ";" (declaration) "bool queue_rebalance_;" (primitive_type) "bool" (identifier) "queue_rebalance_" (;) ";" (declaration) "ObBalanceFilter balance_filter_;" (type_identifier) "ObBalanceFilter" (identifier) "balance_filter_" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (type_definition) "typedef S2MCond M2SCond;" (typedef) "typedef" (type_identifier) "S2MCond" (type_identifier) "M2SCond" (;) ";" (function_definition) "class M2SQueueThread {\n static const int64_t QUEUE_WAIT_TIME;\n\npublic:\n M2SQueueThread();\n virtual ~M2SQueueThread();\n\npublic:\n int init(const int64_t task_num_limit, const int64_t idle_interval);\n void destroy();\n\npublic:\n int push(void* task);\n int64_t get_queued_num() const;\n virtual void handle(void* task, void* pdata) = 0;\n virtual void* on_begin()\n {\n return NULL;\n };\n virtual void on_end(void* ptr)\n {\n UNUSED(ptr);\n };\n virtual void on_idle(){};\n\nprivate:\n static void* thread_func_(void* data);\n\nprivate:\n bool inited_;\n pthread_t pd_;\n volatile bool run_flag_;\n M2SCond queue_cond_;\n ObFixedQueue<void> task_queue_;\n int64_t idle_interval_;\n int64_t last_idle_time_;\n}" (type_identifier) "class" (identifier) "M2SQueueThread" (compound_statement) "{\n static const int64_t QUEUE_WAIT_TIME;\n\npublic:\n M2SQueueThread();\n virtual ~M2SQueueThread();\n\npublic:\n int init(const int64_t task_num_limit, const int64_t idle_interval);\n void destroy();\n\npublic:\n int push(void* task);\n int64_t get_queued_num() const;\n virtual void handle(void* task, void* pdata) = 0;\n virtual void* on_begin()\n {\n return NULL;\n };\n virtual void on_end(void* ptr)\n {\n UNUSED(ptr);\n };\n virtual void on_idle(){};\n\nprivate:\n static void* thread_func_(void* data);\n\nprivate:\n bool inited_;\n pthread_t pd_;\n volatile bool run_flag_;\n M2SCond queue_cond_;\n ObFixedQueue<void> task_queue_;\n int64_t idle_interval_;\n int64_t last_idle_time_;\n}" ({) "{" (declaration) "static const int64_t QUEUE_WAIT_TIME;" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "int64_t" (identifier) "QUEUE_WAIT_TIME" (;) ";" (labeled_statement) "public:\n M2SQueueThread();" (statement_identifier) "public" (:) ":" (expression_statement) "M2SQueueThread();" (call_expression) "M2SQueueThread()" (identifier) "M2SQueueThread" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual ~M2SQueueThread();" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "M2SQueueThread()" (identifier) "M2SQueueThread" (parameter_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "public:\n int init(const int64_t task_num_limit, const int64_t idle_interval);" (statement_identifier) "public" (:) ":" (declaration) "int init(const int64_t task_num_limit, const int64_t idle_interval);" (primitive_type) "int" (function_declarator) "init(const int64_t task_num_limit, const int64_t idle_interval)" (identifier) "init" (parameter_list) "(const int64_t task_num_limit, const int64_t idle_interval)" (() "(" (parameter_declaration) "const int64_t task_num_limit" (type_qualifier) "const" (const) "const" (primitive_type) "int64_t" (identifier) "task_num_limit" (,) "," (parameter_declaration) "const int64_t idle_interval" (type_qualifier) "const" (const) "const" (primitive_type) "int64_t" (identifier) "idle_interval" ()) ")" (;) ";" (declaration) "void destroy();" (primitive_type) "void" (function_declarator) "destroy()" (identifier) "destroy" (parameter_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "public:\n int push(void* task);" (statement_identifier) "public" (:) ":" (declaration) "int push(void* task);" (primitive_type) "int" (function_declarator) "push(void* task)" (identifier) "push" (parameter_list) "(void* task)" (() "(" (parameter_declaration) "void* task" (primitive_type) "void" (pointer_declarator) "* task" (*) "*" (identifier) "task" ()) ")" (;) ";" (function_definition) "int64_t get_queued_num() const;\n virtual void handle(void* task, void* pdata) = 0;\n virtual void* on_begin()\n {\n return NULL;\n }" (primitive_type) "int64_t" (function_declarator) "get_queued_num()" (identifier) "get_queued_num" (parameter_list) "()" (() "(" ()) ")" (declaration) "const;\n virtual void handle(void* task, void* pdata) = 0;" (type_qualifier) "const" (const) "const" (ERROR) ";" (;) ";" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (init_declarator) "handle(void* task, void* pdata) = 0" (function_declarator) "handle(void* task, void* pdata)" (identifier) "handle" (parameter_list) "(void* task, void* pdata)" (() "(" (parameter_declaration) "void* task" (primitive_type) "void" (pointer_declarator) "* task" (*) "*" (identifier) "task" (,) "," (parameter_declaration) "void* pdata" (primitive_type) "void" (pointer_declarator) "* pdata" (*) "*" (identifier) "pdata" ()) ")" (=) "=" (number_literal) "0" (;) ";" (ERROR) "virtual void* on_begin()" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (pointer_declarator) "* on_begin()" (*) "*" (function_declarator) "on_begin()" (identifier) "on_begin" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n return NULL;\n }" ({) "{" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "virtual void on_end(void* ptr)\n {\n UNUSED(ptr);\n }" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "on_end(void* ptr)" (identifier) "on_end" (parameter_list) "(void* ptr)" (() "(" (parameter_declaration) "void* ptr" (primitive_type) "void" (pointer_declarator) "* ptr" (*) "*" (identifier) "ptr" ()) ")" (compound_statement) "{\n UNUSED(ptr);\n }" ({) "{" (expression_statement) "UNUSED(ptr);" (call_expression) "UNUSED(ptr)" (identifier) "UNUSED" (argument_list) "(ptr)" (() "(" (identifier) "ptr" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "virtual void on_idle(){}" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "on_idle()" (identifier) "on_idle" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{}" ({) "{" (}) "}" (expression_statement) ";" (;) ";" (labeled_statement) "private:\n static void* thread_func_(void* data);" (statement_identifier) "private" (:) ":" (declaration) "static void* thread_func_(void* data);" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (pointer_declarator) "* thread_func_(void* data)" (*) "*" (function_declarator) "thread_func_(void* data)" (identifier) "thread_func_" (parameter_list) "(void* data)" (() "(" (parameter_declaration) "void* data" (primitive_type) "void" (pointer_declarator) "* data" (*) "*" (identifier) "data" ()) ")" (;) ";" (labeled_statement) "private:\n bool inited_;" (statement_identifier) "private" (:) ":" (declaration) "bool inited_;" (primitive_type) "bool" (identifier) "inited_" (;) ";" (declaration) "pthread_t pd_;" (type_identifier) "pthread_t" (identifier) "pd_" (;) ";" (declaration) "volatile bool run_flag_;" (type_qualifier) "volatile" (volatile) "volatile" (primitive_type) "bool" (identifier) "run_flag_" (;) ";" (declaration) "M2SCond queue_cond_;" (type_identifier) "M2SCond" (identifier) "queue_cond_" (;) ";" (expression_statement) "ObFixedQueue<void> task_queue_;" (binary_expression) "ObFixedQueue<void> task_queue_" (binary_expression) "ObFixedQueue<void" (identifier) "ObFixedQueue" (<) "<" (identifier) "void" (>) ">" (identifier) "task_queue_" (;) ";" (declaration) "int64_t idle_interval_;" (primitive_type) "int64_t" (identifier) "idle_interval_" (;) ";" (declaration) "int64_t last_idle_time_;" (primitive_type) "int64_t" (identifier) "last_idle_time_" (;) ";" (}) "}" (expression_statement) "CACHE_ALIGNED;" (identifier) "CACHE_ALIGNED" (;) ";" (function_definition) "class SeqQueueThread {\n static const int64_t QUEUE_WAIT_TIME = 10 * 1000;\n\npublic:\n SeqQueueThread();\n virtual ~SeqQueueThread();\n\npublic:\n int init(const int64_t task_num_limit, const int64_t idle_interval);\n void destroy();\n\npublic:\n virtual int push(void* task);\n int64_t get_queued_num() const;\n virtual void handle(void* task, void* pdata) = 0;\n virtual void on_push_fail(void* ptr)\n {\n UNUSED(ptr);\n };\n virtual void* on_begin()\n {\n return NULL;\n };\n virtual void on_end(void* ptr)\n {\n UNUSED(ptr);\n };\n virtual void on_idle(){};\n virtual int64_t get_seq(void* task) = 0;\n\nprivate:\n static void* thread_func_(void* data);\n\nprotected:\n ObSeqQueue task_queue_;\n\nprivate:\n bool inited_;\n pthread_t pd_;\n volatile bool run_flag_;\n int64_t idle_interval_;\n int64_t last_idle_time_;\n}" (type_identifier) "class" (identifier) "SeqQueueThread" (compound_statement) "{\n static const int64_t QUEUE_WAIT_TIME = 10 * 1000;\n\npublic:\n SeqQueueThread();\n virtual ~SeqQueueThread();\n\npublic:\n int init(const int64_t task_num_limit, const int64_t idle_interval);\n void destroy();\n\npublic:\n virtual int push(void* task);\n int64_t get_queued_num() const;\n virtual void handle(void* task, void* pdata) = 0;\n virtual void on_push_fail(void* ptr)\n {\n UNUSED(ptr);\n };\n virtual void* on_begin()\n {\n return NULL;\n };\n virtual void on_end(void* ptr)\n {\n UNUSED(ptr);\n };\n virtual void on_idle(){};\n virtual int64_t get_seq(void* task) = 0;\n\nprivate:\n static void* thread_func_(void* data);\n\nprotected:\n ObSeqQueue task_queue_;\n\nprivate:\n bool inited_;\n pthread_t pd_;\n volatile bool run_flag_;\n int64_t idle_interval_;\n int64_t last_idle_time_;\n}" ({) "{" (declaration) "static const int64_t QUEUE_WAIT_TIME = 10 * 1000;" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "int64_t" (init_declarator) "QUEUE_WAIT_TIME = 10 * 1000" (identifier) "QUEUE_WAIT_TIME" (=) "=" (binary_expression) "10 * 1000" (number_literal) "10" (*) "*" (number_literal) "1000" (;) ";" (labeled_statement) "public:\n SeqQueueThread();" (statement_identifier) "public" (:) ":" (expression_statement) "SeqQueueThread();" (call_expression) "SeqQueueThread()" (identifier) "SeqQueueThread" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual ~SeqQueueThread();" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "SeqQueueThread()" (identifier) "SeqQueueThread" (parameter_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "public:\n int init(const int64_t task_num_limit, const int64_t idle_interval);" (statement_identifier) "public" (:) ":" (declaration) "int init(const int64_t task_num_limit, const int64_t idle_interval);" (primitive_type) "int" (function_declarator) "init(const int64_t task_num_limit, const int64_t idle_interval)" (identifier) "init" (parameter_list) "(const int64_t task_num_limit, const int64_t idle_interval)" (() "(" (parameter_declaration) "const int64_t task_num_limit" (type_qualifier) "const" (const) "const" (primitive_type) "int64_t" (identifier) "task_num_limit" (,) "," (parameter_declaration) "const int64_t idle_interval" (type_qualifier) "const" (const) "const" (primitive_type) "int64_t" (identifier) "idle_interval" ()) ")" (;) ";" (declaration) "void destroy();" (primitive_type) "void" (function_declarator) "destroy()" (identifier) "destroy" (parameter_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "public:\n virtual int push(void* task);" (statement_identifier) "public" (:) ":" (declaration) "virtual int push(void* task);" (type_identifier) "virtual" (ERROR) "int" (identifier) "int" (function_declarator) "push(void* task)" (identifier) "push" (parameter_list) "(void* task)" (() "(" (parameter_declaration) "void* task" (primitive_type) "void" (pointer_declarator) "* task" (*) "*" (identifier) "task" ()) ")" (;) ";" (function_definition) "int64_t get_queued_num() const;\n virtual void handle(void* task, void* pdata) = 0;\n virtual void on_push_fail(void* ptr)\n {\n UNUSED(ptr);\n };\n virtual void* on_begin()\n {\n return NULL;\n }" (primitive_type) "int64_t" (function_declarator) "get_queued_num()" (identifier) "get_queued_num" (parameter_list) "()" (() "(" ()) ")" (declaration) "const;\n virtual void handle(void* task, void* pdata) = 0;" (type_qualifier) "const" (const) "const" (ERROR) ";" (;) ";" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (init_declarator) "handle(void* task, void* pdata) = 0" (function_declarator) "handle(void* task, void* pdata)" (identifier) "handle" (parameter_list) "(void* task, void* pdata)" (() "(" (parameter_declaration) "void* task" (primitive_type) "void" (pointer_declarator) "* task" (*) "*" (identifier) "task" (,) "," (parameter_declaration) "void* pdata" (primitive_type) "void" (pointer_declarator) "* pdata" (*) "*" (identifier) "pdata" ()) ")" (=) "=" (number_literal) "0" (;) ";" (declaration) "virtual void on_push_fail(void* ptr)\n {\n UNUSED(ptr);" (type_identifier) "virtual" (ERROR) "void on_push_fail(void* ptr)\n {" (identifier) "void" (function_declarator) "on_push_fail(void* ptr)" (identifier) "on_push_fail" (parameter_list) "(void* ptr)" (() "(" (parameter_declaration) "void* ptr" (primitive_type) "void" (pointer_declarator) "* ptr" (*) "*" (identifier) "ptr" ()) ")" ({) "{" (function_declarator) "UNUSED(ptr)" (identifier) "UNUSED" (parameter_list) "(ptr)" (() "(" (parameter_declaration) "ptr" (type_identifier) "ptr" ()) ")" (;) ";" (ERROR) "};\n virtual void* on_begin()" (}) "}" (;) ";" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (pointer_declarator) "* on_begin()" (*) "*" (function_declarator) "on_begin()" (identifier) "on_begin" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n return NULL;\n }" ({) "{" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "virtual void on_end(void* ptr)\n {\n UNUSED(ptr);\n }" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "on_end(void* ptr)" (identifier) "on_end" (parameter_list) "(void* ptr)" (() "(" (parameter_declaration) "void* ptr" (primitive_type) "void" (pointer_declarator) "* ptr" (*) "*" (identifier) "ptr" ()) ")" (compound_statement) "{\n UNUSED(ptr);\n }" ({) "{" (expression_statement) "UNUSED(ptr);" (call_expression) "UNUSED(ptr)" (identifier) "UNUSED" (argument_list) "(ptr)" (() "(" (identifier) "ptr" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "virtual void on_idle(){}" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "on_idle()" (identifier) "on_idle" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{}" ({) "{" (}) "}" (expression_statement) ";" (;) ";" (declaration) "virtual int64_t get_seq(void* task) = 0;" (type_identifier) "virtual" (ERROR) "int64_t" (identifier) "int64_t" (init_declarator) "get_seq(void* task) = 0" (function_declarator) "get_seq(void* task)" (identifier) "get_seq" (parameter_list) "(void* task)" (() "(" (parameter_declaration) "void* task" (primitive_type) "void" (pointer_declarator) "* task" (*) "*" (identifier) "task" ()) ")" (=) "=" (number_literal) "0" (;) ";" (labeled_statement) "private:\n static void* thread_func_(void* data);" (statement_identifier) "private" (:) ":" (declaration) "static void* thread_func_(void* data);" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (pointer_declarator) "* thread_func_(void* data)" (*) "*" (function_declarator) "thread_func_(void* data)" (identifier) "thread_func_" (parameter_list) "(void* data)" (() "(" (parameter_declaration) "void* data" (primitive_type) "void" (pointer_declarator) "* data" (*) "*" (identifier) "data" ()) ")" (;) ";" (labeled_statement) "protected:\n ObSeqQueue task_queue_;" (statement_identifier) "protected" (:) ":" (declaration) "ObSeqQueue task_queue_;" (type_identifier) "ObSeqQueue" (identifier) "task_queue_" (;) ";" (labeled_statement) "private:\n bool inited_;" (statement_identifier) "private" (:) ":" (declaration) "bool inited_;" (primitive_type) "bool" (identifier) "inited_" (;) ";" (declaration) "pthread_t pd_;" (type_identifier) "pthread_t" (identifier) "pd_" (;) ";" (declaration) "volatile bool run_flag_;" (type_qualifier) "volatile" (volatile) "volatile" (primitive_type) "bool" (identifier) "run_flag_" (;) ";" (declaration) "int64_t idle_interval_;" (primitive_type) "int64_t" (identifier) "idle_interval_" (;) ";" (declaration) "int64_t last_idle_time_;" (primitive_type) "int64_t" (identifier) "last_idle_time_" (;) ";" (}) "}" (expression_statement) "CACHE_ALIGNED;" (identifier) "CACHE_ALIGNED" (;) ";" (}) "}" (comment) "// namespace common" (ERROR) "}" (}) "}" (comment) "// namespace oceanbase" (#endif) "#endif" (comment) "// OCEANBASE_COMMON_QUEUE_THREAD_H_"
1,562
57
{"language": "c", "success": true, "metadata": {"lines": 214, "avg_line_length": 27.61, "nodes": 976, "errors": 0, "source_hash": "9e64c3e083954c645986f8cc1ff10e341b7809785b59a185908f004e9ced5e43", "categorized_nodes": 592}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef OCEANBASE_COMMON_QUEUE_THREAD_H_\n#define OCEANBASE_COMMON_QUEUE_THREAD_H_\n#include <sys/epoll.h>\n#include \"lib/ob_define.h\"\n#include \"lib/queue/ob_fixed_queue.h\"\n#include \"lib/allocator/page_arena.h\"\n#include \"lib/lock/ob_drw_lock.h\"\n#include \"lib/queue/ob_seq_queue.h\"\n#include \"lib/net/ob_addr.h\"\n#include \"lib/metrics/ob_counter.h\"\n#include \"common/ob_balance_filter.h\"\n#include \"common/server_framework/ob_priority_scheduler.h\"\n\nnamespace oceanbase {\nnamespace common {\nenum PacketPriority {\n HIGH_PRIV = -1,\n NORMAL_PRIV = 0,\n LOW_PRIV = 1,\n};\n\nclass ObCond {\n static const int64_t SPIN_WAIT_NUM = 0;\n static const int64_t BUSY_INTERVAL = 1000;\n\npublic:\n explicit ObCond(const int64_t spin_wait_num = SPIN_WAIT_NUM);\n ~ObCond();\n\npublic:\n void signal();\n int timedwait(const int64_t time_us);\n int wait();\n\nprivate:\n const int64_t spin_wait_num_;\n volatile bool bcond_;\n int64_t last_waked_time_;\n pthread_cond_t cond_;\n pthread_mutex_t mutex_;\n} __attribute__((aligned(64)));\n\ntypedef ObCond S2MCond;\nclass S2MQueueThread {\n struct ThreadConf {\n pthread_t pd;\n uint64_t index;\n volatile bool run_flag;\n volatile bool stop_flag;\n S2MCond queue_cond;\n volatile bool using_flag;\n volatile int64_t last_active_time;\n ObFixedQueue<void> high_prio_task_queue;\n ObFixedQueue<void> spec_task_queue;\n ObFixedQueue<void> comm_task_queue;\n ObFixedQueue<void> low_prio_task_queue;\n ObPriorityScheduler scheduler_;\n S2MQueueThread* host;\n ThreadConf()\n : pd(0),\n index(0),\n run_flag(true),\n stop_flag(false),\n queue_cond(),\n using_flag(false),\n last_active_time(0),\n spec_task_queue(),\n comm_task_queue(),\n host(NULL){};\n } CACHE_ALIGNED;\n static const int64_t THREAD_BUSY_TIME_LIMIT = 10 * 1000;\n static const int64_t QUEUE_WAIT_TIME = 100 * 1000;\n static const int64_t MAX_THREAD_NUM = 256;\n static const int64_t QUEUE_SIZE_TO_SWITCH = 4;\n typedef DRWLock RWLock;\n typedef DRWLock::RDLockGuard RDLockGuard;\n typedef DRWLock::WRLockGuard WRLockGuard;\n typedef ObTCCounter Counter;\n\npublic:\n enum { HIGH_PRIO_QUEUE = 0, HOTSPOT_QUEUE = 1, NORMAL_PRIO_QUEUE = 2, LOW_PRIO_QUEUE = 3, QUEUE_COUNT = 4 };\n\npublic:\n S2MQueueThread();\n virtual ~S2MQueueThread();\n\npublic:\n int init(\n const int64_t thread_num, const int64_t task_num_limit, const bool queue_rebalance, const bool dynamic_rebalance);\n int set_prio_quota(v4si& quota);\n void destroy();\n int64_t get_queued_num() const;\n int64_t get_each_queued_num(int queue_id) const\n {\n return (queue_id >= 0 && queue_id < QUEUE_COUNT) ? each_queue_len_[queue_id].value() : 0;\n }\n int add_thread(const int64_t thread_num, const int64_t task_num_limit);\n int sub_thread(const int64_t thread_num);\n int64_t get_thread_num() const\n {\n return thread_num_;\n };\n int wakeup();\n\npublic:\n int push(void* task, const int64_t prio = NORMAL_PRIV);\n int push(void* task, const uint64_t task_sign, const int64_t prio);\n int push_low_prio(void* task);\n int64_t& thread_index();\n int64_t get_thread_index() const;\n virtual void on_iter()\n {}\n virtual void handle(void* task, void* pdata) = 0;\n virtual void handle_with_stopflag(void* task, void* pdata, volatile bool& stop_flag)\n {\n handle(task, pdata);\n if (stop_flag) {}\n };\n virtual void* on_begin()\n {\n return NULL;\n };\n virtual void on_end(void* ptr)\n {\n UNUSED(ptr);\n };\n\nprivate:\n void* rebalance_(int64_t& idx, const ThreadConf& cur_thread);\n int launch_thread_(const int64_t thread_num, const int64_t task_num_limit);\n static void* thread_func_(void* data);\n\nprivate:\n int64_t thread_num_;\n volatile uint64_t thread_conf_iter_;\n RWLock thread_conf_lock_;\n ThreadConf thread_conf_array_[MAX_THREAD_NUM];\n Counter queued_num_;\n Counter each_queue_len_[QUEUE_COUNT];\n bool queue_rebalance_;\n ObBalanceFilter balance_filter_;\n};\n\ntypedef S2MCond M2SCond;\nclass M2SQueueThread {\n static const int64_t QUEUE_WAIT_TIME;\n\npublic:\n M2SQueueThread();\n virtual ~M2SQueueThread();\n\npublic:\n int init(const int64_t task_num_limit, const int64_t idle_interval);\n void destroy();\n\npublic:\n int push(void* task);\n int64_t get_queued_num() const;\n virtual void handle(void* task, void* pdata) = 0;\n virtual void* on_begin()\n {\n return NULL;\n };\n virtual void on_end(void* ptr)\n {\n UNUSED(ptr);\n };\n virtual void on_idle(){};\n\nprivate:\n static void* thread_func_(void* data);\n\nprivate:\n bool inited_;\n pthread_t pd_;\n volatile bool run_flag_;\n M2SCond queue_cond_;\n ObFixedQueue<void> task_queue_;\n int64_t idle_interval_;\n int64_t last_idle_time_;\n} CACHE_ALIGNED;\n\nclass SeqQueueThread {\n static const int64_t QUEUE_WAIT_TIME = 10 * 1000;\n\npublic:\n SeqQueueThread();\n virtual ~SeqQueueThread();\n\npublic:\n int init(const int64_t task_num_limit, const int64_t idle_interval);\n void destroy();\n\npublic:\n virtual int push(void* task);\n int64_t get_queued_num() const;\n virtual void handle(void* task, void* pdata) = 0;\n virtual void on_push_fail(void* ptr)\n {\n UNUSED(ptr);\n };\n virtual void* on_begin()\n {\n return NULL;\n };\n virtual void on_end(void* ptr)\n {\n UNUSED(ptr);\n };\n virtual void on_idle(){};\n virtual int64_t get_seq(void* task) = 0;\n\nprivate:\n static void* thread_func_(void* data);\n\nprotected:\n ObSeqQueue task_queue_;\n\nprivate:\n bool inited_;\n pthread_t pd_;\n volatile bool run_flag_;\n int64_t idle_interval_;\n int64_t last_idle_time_;\n} CACHE_ALIGNED;\n} // namespace common\n} // namespace oceanbase\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 975], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 240, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 7}}, {"id": 2, "type": "identifier", "text": "OCEANBASE_COMMON_QUEUE_THREAD_H_", "parent": 0, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 40}}, {"id": 3, "type": "preproc_def", "text": "#define OCEANBASE_COMMON_QUEUE_THREAD_H_\n", "parent": 0, "children": [4, 5], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 7}}, {"id": 5, "type": "identifier", "text": "OCEANBASE_COMMON_QUEUE_THREAD_H_", "parent": 3, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 40}}, {"id": 6, "type": "preproc_include", "text": "#include <sys/epoll.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": "<sys/epoll.h>", "parent": 6, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 22}}, {"id": 9, "type": "preproc_include", "text": "#include \"lib/ob_define.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": "\"lib/ob_define.h\"", "parent": 9, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 26}}, {"id": 12, "type": "preproc_include", "text": "#include \"lib/queue/ob_fixed_queue.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": "\"lib/queue/ob_fixed_queue.h\"", "parent": 12, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 37}}, {"id": 15, "type": "preproc_include", "text": "#include \"lib/allocator/page_arena.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": "\"lib/allocator/page_arena.h\"", "parent": 15, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 37}}, {"id": 18, "type": "preproc_include", "text": "#include \"lib/lock/ob_drw_lock.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": "\"lib/lock/ob_drw_lock.h\"", "parent": 18, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 33}}, {"id": 21, "type": "preproc_include", "text": "#include \"lib/queue/ob_seq_queue.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": "\"lib/queue/ob_seq_queue.h\"", "parent": 21, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 35}}, {"id": 24, "type": "preproc_include", "text": "#include \"lib/net/ob_addr.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": "\"lib/net/ob_addr.h\"", "parent": 24, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 28}}, {"id": 27, "type": "preproc_include", "text": "#include \"lib/metrics/ob_counter.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": "\"lib/metrics/ob_counter.h\"", "parent": 27, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 35}}, {"id": 30, "type": "preproc_include", "text": "#include \"common/ob_balance_filter.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": "\"common/ob_balance_filter.h\"", "parent": 30, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 37}}, {"id": 33, "type": "preproc_include", "text": "#include \"common/server_framework/ob_priority_scheduler.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": "\"common/server_framework/ob_priority_scheduler.h\"", "parent": 33, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 58}}, {"id": 36, "type": "function_definition", "text": "namespace oceanbase {\nnamespace common {\nenum PacketPriority {\n HIGH_PRIV = -1,\n NORMAL_PRIV = 0,\n LOW_PRIV = 1,\n};\n\nclass ObCond {\n static const int64_t SPIN_WAIT_NUM = 0;\n static const int64_t BUSY_INTERVAL = 1000;\n\npublic:\n explicit ObCond(const int64_t spin_wait_num = SPIN_WAIT_NUM);\n ~ObCond();\n\npublic:\n void signal();\n int timedwait(const int64_t time_us);\n int wait();\n\nprivate:\n const int64_t spin_wait_num_;\n volatile bool bcond_;\n int64_t last_waked_time_;\n pthread_cond_t cond_;\n pthread_mutex_t mutex_;\n} __attribute__((aligned(64)));\n\ntypedef ObCond S2MCond;\nclass S2MQueueThread {\n struct ThreadConf {\n pthread_t pd;\n uint64_t index;\n volatile bool run_flag;\n volatile bool stop_flag;\n S2MCond queue_cond;\n volatile bool using_flag;\n volatile int64_t last_active_time;\n ObFixedQueue<void> high_prio_task_queue;\n ObFixedQueue<void> spec_task_queue;\n ObFixedQueue<void> comm_task_queue;\n ObFixedQueue<void> low_prio_task_queue;\n ObPriorityScheduler scheduler_;\n S2MQueueThread* host;\n ThreadConf()\n : pd(0),\n index(0),\n run_flag(true),\n stop_flag(false),\n queue_cond(),\n using_flag(false),\n last_active_time(0),\n spec_task_queue(),\n comm_task_queue(),\n host(NULL){};\n } CACHE_ALIGNED;\n static const int64_t THREAD_BUSY_TIME_LIMIT = 10 * 1000;\n static const int64_t QUEUE_WAIT_TIME = 100 * 1000;\n static const int64_t MAX_THREAD_NUM = 256;\n static const int64_t QUEUE_SIZE_TO_SWITCH = 4;\n typedef DRWLock RWLock;\n typedef DRWLock::RDLockGuard RDLockGuard;\n typedef DRWLock::WRLockGuard WRLockGuard;\n typedef ObTCCounter Counter;\n\npublic:\n enum { HIGH_PRIO_QUEUE = 0, HOTSPOT_QUEUE = 1, NORMAL_PRIO_QUEUE = 2, LOW_PRIO_QUEUE = 3, QUEUE_COUNT = 4 };\n\npublic:\n S2MQueueThread();\n virtual ~S2MQueueThread();\n\npublic:\n int init(\n const int64_t thread_num, const int64_t task_num_limit, const bool queue_rebalance, const bool dynamic_rebalance);\n int set_prio_quota(v4si& quota);\n void destroy();\n int64_t get_queued_num() const;\n int64_t get_each_queued_num(int queue_id) const\n {\n return (queue_id >= 0 && queue_id < QUEUE_COUNT) ? each_queue_len_[queue_id].value() : 0;\n }\n int add_thread(const int64_t thread_num, const int64_t task_num_limit);\n int sub_thread(const int64_t thread_num);\n int64_t get_thread_num() const\n {\n return thread_num_;\n };\n int wakeup();\n\npublic:\n int push(void* task, const int64_t prio = NORMAL_PRIV);\n int push(void* task, const uint64_t task_sign, const int64_t prio);\n int push_low_prio(void* task);\n int64_t& thread_index();\n int64_t get_thread_index() const;\n virtual void on_iter()\n {}\n virtual void handle(void* task, void* pdata) = 0;\n virtual void handle_with_stopflag(void* task, void* pdata, volatile bool& stop_flag)\n {\n handle(task, pdata);\n if (stop_flag) {}\n };\n virtual void* on_begin()\n {\n return NULL;\n };\n virtual void on_end(void* ptr)\n {\n UNUSED(ptr);\n };\n\nprivate:\n void* rebalance_(int64_t& idx, const ThreadConf& cur_thread);\n int launch_thread_(const int64_t thread_num, const int64_t task_num_limit);\n static void* thread_func_(void* data);\n\nprivate:\n int64_t thread_num_;\n volatile uint64_t thread_conf_iter_;\n RWLock thread_conf_lock_;\n ThreadConf thread_conf_array_[MAX_THREAD_NUM];\n Counter queued_num_;\n Counter each_queue_len_[QUEUE_COUNT];\n bool queue_rebalance_;\n ObBalanceFilter balance_filter_;\n};\n\ntypedef S2MCond M2SCond;\nclass M2SQueueThread {\n static const int64_t QUEUE_WAIT_TIME;\n\npublic:\n M2SQueueThread();\n virtual ~M2SQueueThread();\n\npublic:\n int init(const int64_t task_num_limit, const int64_t idle_interval);\n void destroy();\n\npublic:\n int push(void* task);\n int64_t get_queued_num() const;\n virtual void handle(void* task, void* pdata) = 0;\n virtual void* on_begin()\n {\n return NULL;\n };\n virtual void on_end(void* ptr)\n {\n UNUSED(ptr);\n };\n virtual void on_idle(){};\n\nprivate:\n static void* thread_func_(void* data);\n\nprivate:\n bool inited_;\n pthread_t pd_;\n volatile bool run_flag_;\n M2SCond queue_cond_;\n ObFixedQueue<void> task_queue_;\n int64_t idle_interval_;\n int64_t last_idle_time_;\n} CACHE_ALIGNED;\n\nclass SeqQueueThread {\n static const int64_t QUEUE_WAIT_TIME = 10 * 1000;\n\npublic:\n SeqQueueThread();\n virtual ~SeqQueueThread();\n\npublic:\n int init(const int64_t task_num_limit, const int64_t idle_interval);\n void destroy();\n\npublic:\n virtual int push(void* task);\n int64_t get_queued_num() const;\n virtual void handle(void* task, void* pdata) = 0;\n virtual void on_push_fail(void* ptr)\n {\n UNUSED(ptr);\n };\n virtual void* on_begin()\n {\n return NULL;\n };\n virtual void on_end(void* ptr)\n {\n UNUSED(ptr);\n };\n virtual void on_idle(){};\n virtual int64_t get_seq(void* task) = 0;\n\nprivate:\n static void* thread_func_(void* data);\n\nprotected:\n ObSeqQueue task_queue_;\n\nprivate:\n bool inited_;\n pthread_t pd_;\n volatile bool run_flag_;\n int64_t idle_interval_;\n int64_t last_idle_time_;\n} CACHE_ALIGNED;\n}", "parent": 0, "children": [37, 38], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 237, "column": 1}}, {"id": 37, "type": "type_identifier", "text": "namespace", "parent": 36, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 9}}, {"id": 38, "type": "identifier", "text": "oceanbase", "parent": 36, "children": [], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 19}}, {"id": 39, "type": "function_definition", "text": "namespace common {\nenum PacketPriority {\n HIGH_PRIV = -1,\n NORMAL_PRIV = 0,\n LOW_PRIV = 1,\n};\n\nclass ObCond {\n static const int64_t SPIN_WAIT_NUM = 0;\n static const int64_t BUSY_INTERVAL = 1000;\n\npublic:\n explicit ObCond(const int64_t spin_wait_num = SPIN_WAIT_NUM);\n ~ObCond();\n\npublic:\n void signal();\n int timedwait(const int64_t time_us);\n int wait();\n\nprivate:\n const int64_t spin_wait_num_;\n volatile bool bcond_;\n int64_t last_waked_time_;\n pthread_cond_t cond_;\n pthread_mutex_t mutex_;\n} __attribute__((aligned(64)));\n\ntypedef ObCond S2MCond;\nclass S2MQueueThread {\n struct ThreadConf {\n pthread_t pd;\n uint64_t index;\n volatile bool run_flag;\n volatile bool stop_flag;\n S2MCond queue_cond;\n volatile bool using_flag;\n volatile int64_t last_active_time;\n ObFixedQueue<void> high_prio_task_queue;\n ObFixedQueue<void> spec_task_queue;\n ObFixedQueue<void> comm_task_queue;\n ObFixedQueue<void> low_prio_task_queue;\n ObPriorityScheduler scheduler_;\n S2MQueueThread* host;\n ThreadConf()\n : pd(0),\n index(0),\n run_flag(true),\n stop_flag(false),\n queue_cond(),\n using_flag(false),\n last_active_time(0),\n spec_task_queue(),\n comm_task_queue(),\n host(NULL){};\n } CACHE_ALIGNED;\n static const int64_t THREAD_BUSY_TIME_LIMIT = 10 * 1000;\n static const int64_t QUEUE_WAIT_TIME = 100 * 1000;\n static const int64_t MAX_THREAD_NUM = 256;\n static const int64_t QUEUE_SIZE_TO_SWITCH = 4;\n typedef DRWLock RWLock;\n typedef DRWLock::RDLockGuard RDLockGuard;\n typedef DRWLock::WRLockGuard WRLockGuard;\n typedef ObTCCounter Counter;\n\npublic:\n enum { HIGH_PRIO_QUEUE = 0, HOTSPOT_QUEUE = 1, NORMAL_PRIO_QUEUE = 2, LOW_PRIO_QUEUE = 3, QUEUE_COUNT = 4 };\n\npublic:\n S2MQueueThread();\n virtual ~S2MQueueThread();\n\npublic:\n int init(\n const int64_t thread_num, const int64_t task_num_limit, const bool queue_rebalance, const bool dynamic_rebalance);\n int set_prio_quota(v4si& quota);\n void destroy();\n int64_t get_queued_num() const;\n int64_t get_each_queued_num(int queue_id) const\n {\n return (queue_id >= 0 && queue_id < QUEUE_COUNT) ? each_queue_len_[queue_id].value() : 0;\n }\n int add_thread(const int64_t thread_num, const int64_t task_num_limit);\n int sub_thread(const int64_t thread_num);\n int64_t get_thread_num() const\n {\n return thread_num_;\n };\n int wakeup();\n\npublic:\n int push(void* task, const int64_t prio = NORMAL_PRIV);\n int push(void* task, const uint64_t task_sign, const int64_t prio);\n int push_low_prio(void* task);\n int64_t& thread_index();\n int64_t get_thread_index() const;\n virtual void on_iter()\n {}\n virtual void handle(void* task, void* pdata) = 0;\n virtual void handle_with_stopflag(void* task, void* pdata, volatile bool& stop_flag)\n {\n handle(task, pdata);\n if (stop_flag) {}\n };\n virtual void* on_begin()\n {\n return NULL;\n };\n virtual void on_end(void* ptr)\n {\n UNUSED(ptr);\n };\n\nprivate:\n void* rebalance_(int64_t& idx, const ThreadConf& cur_thread);\n int launch_thread_(const int64_t thread_num, const int64_t task_num_limit);\n static void* thread_func_(void* data);\n\nprivate:\n int64_t thread_num_;\n volatile uint64_t thread_conf_iter_;\n RWLock thread_conf_lock_;\n ThreadConf thread_conf_array_[MAX_THREAD_NUM];\n Counter queued_num_;\n Counter each_queue_len_[QUEUE_COUNT];\n bool queue_rebalance_;\n ObBalanceFilter balance_filter_;\n}", "parent": 36, "children": [40, 41], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 153, "column": 1}}, {"id": 40, "type": "type_identifier", "text": "namespace", "parent": 39, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 9}}, {"id": 41, "type": "identifier", "text": "common", "parent": 39, "children": [], "start_point": {"row": 26, "column": 10}, "end_point": {"row": 26, "column": 16}}, {"id": 42, "type": "enum_specifier", "text": "enum PacketPriority {\n HIGH_PRIV = -1,\n NORMAL_PRIV = 0,\n LOW_PRIV = 1,\n}", "parent": 39, "children": [43, 44, 45], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 31, "column": 1}}, {"id": 43, "type": "enum", "text": "enum", "parent": 42, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 4}}, {"id": 44, "type": "type_identifier", "text": "PacketPriority", "parent": 42, "children": [], "start_point": {"row": 27, "column": 5}, "end_point": {"row": 27, "column": 19}}, {"id": 45, "type": "enumerator_list", "text": "{\n HIGH_PRIV = -1,\n NORMAL_PRIV = 0,\n LOW_PRIV = 1,\n}", "parent": 42, "children": [46, 50, 54], "start_point": {"row": 27, "column": 20}, "end_point": {"row": 31, "column": 1}}, {"id": 46, "type": "enumerator", "text": "HIGH_PRIV = -1", "parent": 45, "children": [47, 48, 49], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 16}}, {"id": 47, "type": "identifier", "text": "HIGH_PRIV", "parent": 46, "children": [], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 11}}, {"id": 48, "type": "=", "text": "=", "parent": 46, "children": [], "start_point": {"row": 28, "column": 12}, "end_point": {"row": 28, "column": 13}}, {"id": 49, "type": "number_literal", "text": "-1", "parent": 46, "children": [], "start_point": {"row": 28, "column": 14}, "end_point": {"row": 28, "column": 16}}, {"id": 50, "type": "enumerator", "text": "NORMAL_PRIV = 0", "parent": 45, "children": [51, 52, 53], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 17}}, {"id": 51, "type": "identifier", "text": "NORMAL_PRIV", "parent": 50, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 13}}, {"id": 52, "type": "=", "text": "=", "parent": 50, "children": [], "start_point": {"row": 29, "column": 14}, "end_point": {"row": 29, "column": 15}}, {"id": 53, "type": "number_literal", "text": "0", "parent": 50, "children": [], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 29, "column": 17}}, {"id": 54, "type": "enumerator", "text": "LOW_PRIV = 1", "parent": 45, "children": [55, 56, 57], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 14}}, {"id": 55, "type": "identifier", "text": "LOW_PRIV", "parent": 54, "children": [], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 10}}, {"id": 56, "type": "=", "text": "=", "parent": 54, "children": [], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 12}}, {"id": 57, "type": "number_literal", "text": "1", "parent": 54, "children": [], "start_point": {"row": 30, "column": 13}, "end_point": {"row": 30, "column": 14}}, {"id": 58, "type": "function_definition", "text": "class ObCond {\n static const int64_t SPIN_WAIT_NUM = 0;\n static const int64_t BUSY_INTERVAL = 1000;\n\npublic:\n explicit ObCond(const int64_t spin_wait_num = SPIN_WAIT_NUM);\n ~ObCond();\n\npublic:\n void signal();\n int timedwait(const int64_t time_us);\n int wait();\n\nprivate:\n const int64_t spin_wait_num_;\n volatile bool bcond_;\n int64_t last_waked_time_;\n pthread_cond_t cond_;\n pthread_mutex_t mutex_;\n}", "parent": 39, "children": [59], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 52, "column": 1}}, {"id": 59, "type": "identifier", "text": "ObCond", "parent": 58, "children": [], "start_point": {"row": 33, "column": 6}, "end_point": {"row": 33, "column": 12}}, {"id": 60, "type": "declaration", "text": "static const int64_t SPIN_WAIT_NUM = 0;", "parent": 58, "children": [61, 62], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 41}}, {"id": 61, "type": "primitive_type", "text": "int64_t", "parent": 60, "children": [], "start_point": {"row": 34, "column": 15}, "end_point": {"row": 34, "column": 22}}, {"id": 62, "type": "init_declarator", "text": "SPIN_WAIT_NUM = 0", "parent": 60, "children": [63, 64, 65], "start_point": {"row": 34, "column": 23}, "end_point": {"row": 34, "column": 40}}, {"id": 63, "type": "identifier", "text": "SPIN_WAIT_NUM", "parent": 62, "children": [], "start_point": {"row": 34, "column": 23}, "end_point": {"row": 34, "column": 36}}, {"id": 64, "type": "=", "text": "=", "parent": 62, "children": [], "start_point": {"row": 34, "column": 37}, "end_point": {"row": 34, "column": 38}}, {"id": 65, "type": "number_literal", "text": "0", "parent": 62, "children": [], "start_point": {"row": 34, "column": 39}, "end_point": {"row": 34, "column": 40}}, {"id": 66, "type": "declaration", "text": "static const int64_t BUSY_INTERVAL = 1000;", "parent": 58, "children": [67, 68], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 44}}, {"id": 67, "type": "primitive_type", "text": "int64_t", "parent": 66, "children": [], "start_point": {"row": 35, "column": 15}, "end_point": {"row": 35, "column": 22}}, {"id": 68, "type": "init_declarator", "text": "BUSY_INTERVAL = 1000", "parent": 66, "children": [69, 70, 71], "start_point": {"row": 35, "column": 23}, "end_point": {"row": 35, "column": 43}}, {"id": 69, "type": "identifier", "text": "BUSY_INTERVAL", "parent": 68, "children": [], "start_point": {"row": 35, "column": 23}, "end_point": {"row": 35, "column": 36}}, {"id": 70, "type": "=", "text": "=", "parent": 68, "children": [], "start_point": {"row": 35, "column": 37}, "end_point": {"row": 35, "column": 38}}, {"id": 71, "type": "number_literal", "text": "1000", "parent": 68, "children": [], "start_point": {"row": 35, "column": 39}, "end_point": {"row": 35, "column": 43}}, {"id": 72, "type": "labeled_statement", "text": "public:\n explicit ObCond(const int64_t spin_wait_num = SPIN_WAIT_NUM);", "parent": 58, "children": [73], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 63}}, {"id": 73, "type": "declaration", "text": "explicit ObCond(const int64_t spin_wait_num = SPIN_WAIT_NUM);", "parent": 72, "children": [74, 75], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 63}}, {"id": 74, "type": "type_identifier", "text": "explicit", "parent": 73, "children": [], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 10}}, {"id": 75, "type": "function_declarator", "text": "ObCond(const int64_t spin_wait_num = SPIN_WAIT_NUM)", "parent": 73, "children": [76, 77], "start_point": {"row": 38, "column": 11}, "end_point": {"row": 38, "column": 62}}, {"id": 76, "type": "identifier", "text": "ObCond", "parent": 75, "children": [], "start_point": {"row": 38, "column": 11}, "end_point": {"row": 38, "column": 17}}, {"id": 77, "type": "parameter_list", "text": "(const int64_t spin_wait_num = SPIN_WAIT_NUM)", "parent": 75, "children": [78], "start_point": {"row": 38, "column": 17}, "end_point": {"row": 38, "column": 62}}, {"id": 78, "type": "parameter_declaration", "text": "const int64_t spin_wait_num = SPIN_WAIT_NUM", "parent": 77, "children": [79, 80, 83], "start_point": {"row": 38, "column": 18}, "end_point": {"row": 38, "column": 61}}, {"id": 79, "type": "primitive_type", "text": "int64_t", "parent": 78, "children": [], "start_point": {"row": 38, "column": 24}, "end_point": {"row": 38, "column": 31}}, {"id": 80, "type": "ERROR", "text": "spin_wait_num =", "parent": 78, "children": [81, 82], "start_point": {"row": 38, "column": 32}, "end_point": {"row": 38, "column": 47}}, {"id": 81, "type": "identifier", "text": "spin_wait_num", "parent": 80, "children": [], "start_point": {"row": 38, "column": 32}, "end_point": {"row": 38, "column": 45}}, {"id": 82, "type": "=", "text": "=", "parent": 80, "children": [], "start_point": {"row": 38, "column": 46}, "end_point": {"row": 38, "column": 47}}, {"id": 83, "type": "identifier", "text": "SPIN_WAIT_NUM", "parent": 78, "children": [], "start_point": {"row": 38, "column": 48}, "end_point": {"row": 38, "column": 61}}, {"id": 84, "type": "unary_expression", "text": "~ObCond()", "parent": 58, "children": [85, 86], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 11}}, {"id": 85, "type": "~", "text": "~", "parent": 84, "children": [], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 3}}, {"id": 86, "type": "call_expression", "text": "ObCond()", "parent": 84, "children": [87, 88], "start_point": {"row": 39, "column": 3}, "end_point": {"row": 39, "column": 11}}, {"id": 87, "type": "identifier", "text": "ObCond", "parent": 86, "children": [], "start_point": {"row": 39, "column": 3}, "end_point": {"row": 39, "column": 9}}, {"id": 88, "type": "argument_list", "text": "()", "parent": 86, "children": [], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 11}}, {"id": 89, "type": "labeled_statement", "text": "public:\n void signal();", "parent": 58, "children": [90], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 42, "column": 16}}, {"id": 90, "type": "declaration", "text": "void signal();", "parent": 89, "children": [91, 92], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 16}}, {"id": 91, "type": "primitive_type", "text": "void", "parent": 90, "children": [], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 6}}, {"id": 92, "type": "function_declarator", "text": "signal()", "parent": 90, "children": [93, 94], "start_point": {"row": 42, "column": 7}, "end_point": {"row": 42, "column": 15}}, {"id": 93, "type": "identifier", "text": "signal", "parent": 92, "children": [], "start_point": {"row": 42, "column": 7}, "end_point": {"row": 42, "column": 13}}, {"id": 94, "type": "parameter_list", "text": "()", "parent": 92, "children": [], "start_point": {"row": 42, "column": 13}, "end_point": {"row": 42, "column": 15}}, {"id": 95, "type": "declaration", "text": "int timedwait(const int64_t time_us);", "parent": 58, "children": [96, 97], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 39}}, {"id": 96, "type": "primitive_type", "text": "int", "parent": 95, "children": [], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 5}}, {"id": 97, "type": "function_declarator", "text": "timedwait(const int64_t time_us)", "parent": 95, "children": [98, 99], "start_point": {"row": 43, "column": 6}, "end_point": {"row": 43, "column": 38}}, {"id": 98, "type": "identifier", "text": "timedwait", "parent": 97, "children": [], "start_point": {"row": 43, "column": 6}, "end_point": {"row": 43, "column": 15}}, {"id": 99, "type": "parameter_list", "text": "(const int64_t time_us)", "parent": 97, "children": [100], "start_point": {"row": 43, "column": 15}, "end_point": {"row": 43, "column": 38}}, {"id": 100, "type": "parameter_declaration", "text": "const int64_t time_us", "parent": 99, "children": [101, 102], "start_point": {"row": 43, "column": 16}, "end_point": {"row": 43, "column": 37}}, {"id": 101, "type": "primitive_type", "text": "int64_t", "parent": 100, "children": [], "start_point": {"row": 43, "column": 22}, "end_point": {"row": 43, "column": 29}}, {"id": 102, "type": "identifier", "text": "time_us", "parent": 100, "children": [], "start_point": {"row": 43, "column": 30}, "end_point": {"row": 43, "column": 37}}, {"id": 103, "type": "declaration", "text": "int wait();", "parent": 58, "children": [104, 105], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 13}}, {"id": 104, "type": "primitive_type", "text": "int", "parent": 103, "children": [], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 5}}, {"id": 105, "type": "function_declarator", "text": "wait()", "parent": 103, "children": [106, 107], "start_point": {"row": 44, "column": 6}, "end_point": {"row": 44, "column": 12}}, {"id": 106, "type": "identifier", "text": "wait", "parent": 105, "children": [], "start_point": {"row": 44, "column": 6}, "end_point": {"row": 44, "column": 10}}, {"id": 107, "type": "parameter_list", "text": "()", "parent": 105, "children": [], "start_point": {"row": 44, "column": 10}, "end_point": {"row": 44, "column": 12}}, {"id": 108, "type": "labeled_statement", "text": "private:\n const int64_t spin_wait_num_;", "parent": 58, "children": [109], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 47, "column": 31}}, {"id": 109, "type": "declaration", "text": "const int64_t spin_wait_num_;", "parent": 108, "children": [110, 111], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 31}}, {"id": 110, "type": "primitive_type", "text": "int64_t", "parent": 109, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 15}}, {"id": 111, "type": "identifier", "text": "spin_wait_num_", "parent": 109, "children": [], "start_point": {"row": 47, "column": 16}, "end_point": {"row": 47, "column": 30}}, {"id": 112, "type": "declaration", "text": "volatile bool bcond_;", "parent": 58, "children": [113, 115, 116], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 23}}, {"id": 113, "type": "type_qualifier", "text": "volatile", "parent": 112, "children": [114], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 10}}, {"id": 114, "type": "volatile", "text": "volatile", "parent": 113, "children": [], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 10}}, {"id": 115, "type": "primitive_type", "text": "bool", "parent": 112, "children": [], "start_point": {"row": 48, "column": 11}, "end_point": {"row": 48, "column": 15}}, {"id": 116, "type": "identifier", "text": "bcond_", "parent": 112, "children": [], "start_point": {"row": 48, "column": 16}, "end_point": {"row": 48, "column": 22}}, {"id": 117, "type": "declaration", "text": "int64_t last_waked_time_;", "parent": 58, "children": [118, 119], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 27}}, {"id": 118, "type": "primitive_type", "text": "int64_t", "parent": 117, "children": [], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 9}}, {"id": 119, "type": "identifier", "text": "last_waked_time_", "parent": 117, "children": [], "start_point": {"row": 49, "column": 10}, "end_point": {"row": 49, "column": 26}}, {"id": 120, "type": "declaration", "text": "pthread_cond_t cond_;", "parent": 58, "children": [121, 122], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 23}}, {"id": 121, "type": "type_identifier", "text": "pthread_cond_t", "parent": 120, "children": [], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 16}}, {"id": 122, "type": "identifier", "text": "cond_", "parent": 120, "children": [], "start_point": {"row": 50, "column": 17}, "end_point": {"row": 50, "column": 22}}, {"id": 123, "type": "declaration", "text": "pthread_mutex_t mutex_;", "parent": 58, "children": [124, 125], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 25}}, {"id": 124, "type": "type_identifier", "text": "pthread_mutex_t", "parent": 123, "children": [], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 17}}, {"id": 125, "type": "identifier", "text": "mutex_", "parent": 123, "children": [], "start_point": {"row": 51, "column": 18}, "end_point": {"row": 51, "column": 24}}, {"id": 126, "type": "ERROR", "text": "__attribute__((aligned(64)))", "parent": 39, "children": [127], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 30}}, {"id": 127, "type": "attribute_specifier", "text": "__attribute__((aligned(64)))", "parent": 126, "children": [128, 129], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 30}}, {"id": 128, "type": "__attribute__", "text": "__attribute__", "parent": 127, "children": [], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 15}}, {"id": 129, "type": "argument_list", "text": "(aligned(64))", "parent": 127, "children": [130], "start_point": {"row": 52, "column": 16}, "end_point": {"row": 52, "column": 29}}, {"id": 130, "type": "call_expression", "text": "aligned(64)", "parent": 129, "children": [131, 132], "start_point": {"row": 52, "column": 17}, "end_point": {"row": 52, "column": 28}}, {"id": 131, "type": "identifier", "text": "aligned", "parent": 130, "children": [], "start_point": {"row": 52, "column": 17}, "end_point": {"row": 52, "column": 24}}, {"id": 132, "type": "argument_list", "text": "(64)", "parent": 130, "children": [133], "start_point": {"row": 52, "column": 24}, "end_point": {"row": 52, "column": 28}}, {"id": 133, "type": "number_literal", "text": "64", "parent": 132, "children": [], "start_point": {"row": 52, "column": 25}, "end_point": {"row": 52, "column": 27}}, {"id": 134, "type": "type_definition", "text": "typedef ObCond S2MCond;", "parent": 39, "children": [135, 136, 137], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 23}}, {"id": 135, "type": "typedef", "text": "typedef", "parent": 134, "children": [], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 7}}, {"id": 136, "type": "type_identifier", "text": "ObCond", "parent": 134, "children": [], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 14}}, {"id": 137, "type": "type_identifier", "text": "S2MCond", "parent": 134, "children": [], "start_point": {"row": 54, "column": 15}, "end_point": {"row": 54, "column": 22}}, {"id": 138, "type": "function_definition", "text": "class S2MQueueThread {\n struct ThreadConf {\n pthread_t pd;\n uint64_t index;\n volatile bool run_flag;\n volatile bool stop_flag;\n S2MCond queue_cond;\n volatile bool using_flag;\n volatile int64_t last_active_time;\n ObFixedQueue<void> high_prio_task_queue;\n ObFixedQueue<void> spec_task_queue;\n ObFixedQueue<void> comm_task_queue;\n ObFixedQueue<void> low_prio_task_queue;\n ObPriorityScheduler scheduler_;\n S2MQueueThread* host;\n ThreadConf()\n : pd(0),\n index(0),\n run_flag(true),\n stop_flag(false),\n queue_cond(),\n using_flag(false),\n last_active_time(0),\n spec_task_queue(),\n comm_task_queue(),\n host(NULL){};\n } CACHE_ALIGNED;\n static const int64_t THREAD_BUSY_TIME_LIMIT = 10 * 1000;\n static const int64_t QUEUE_WAIT_TIME = 100 * 1000;\n static const int64_t MAX_THREAD_NUM = 256;\n static const int64_t QUEUE_SIZE_TO_SWITCH = 4;\n typedef DRWLock RWLock;\n typedef DRWLock::RDLockGuard RDLockGuard;\n typedef DRWLock::WRLockGuard WRLockGuard;\n typedef ObTCCounter Counter;\n\npublic:\n enum { HIGH_PRIO_QUEUE = 0, HOTSPOT_QUEUE = 1, NORMAL_PRIO_QUEUE = 2, LOW_PRIO_QUEUE = 3, QUEUE_COUNT = 4 };\n\npublic:\n S2MQueueThread();\n virtual ~S2MQueueThread();\n\npublic:\n int init(\n const int64_t thread_num, const int64_t task_num_limit, const bool queue_rebalance, const bool dynamic_rebalance);\n int set_prio_quota(v4si& quota);\n void destroy();\n int64_t get_queued_num() const;\n int64_t get_each_queued_num(int queue_id) const\n {\n return (queue_id >= 0 && queue_id < QUEUE_COUNT) ? each_queue_len_[queue_id].value() : 0;\n }\n int add_thread(const int64_t thread_num, const int64_t task_num_limit);\n int sub_thread(const int64_t thread_num);\n int64_t get_thread_num() const\n {\n return thread_num_;\n };\n int wakeup();\n\npublic:\n int push(void* task, const int64_t prio = NORMAL_PRIV);\n int push(void* task, const uint64_t task_sign, const int64_t prio);\n int push_low_prio(void* task);\n int64_t& thread_index();\n int64_t get_thread_index() const;\n virtual void on_iter()\n {}\n virtual void handle(void* task, void* pdata) = 0;\n virtual void handle_with_stopflag(void* task, void* pdata, volatile bool& stop_flag)\n {\n handle(task, pdata);\n if (stop_flag) {}\n }", "parent": 39, "children": [139], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 129, "column": 3}}, {"id": 139, "type": "identifier", "text": "S2MQueueThread", "parent": 138, "children": [], "start_point": {"row": 55, "column": 6}, "end_point": {"row": 55, "column": 20}}, {"id": 140, "type": "ERROR", "text": "struct ThreadConf {\n pthread_t pd;\n uint64_t index;\n volatile bool run_flag;\n volatile bool stop_flag;\n S2MCond queue_cond;\n volatile bool using_flag;\n volatile int64_t last_active_time;\n ObFixedQueue<void> high_prio_task_queue;\n ObFixedQueue<void> spec_task_queue;\n ObFixedQueue<void> comm_task_queue;\n ObFixedQueue<void> low_prio_task_queue;\n ObPriorityScheduler scheduler_;\n S2MQueueThread* host;\n ThreadConf()\n : pd(0),\n index(0),\n run_flag(true),\n stop_flag(false),\n queue_cond(),\n using_flag(false),\n last_active_time(0),\n spec_task_queue(),\n comm_task_queue(),\n host(NULL){};\n } CACHE_ALIGNED;\n static const int64_t THREAD_BUSY_TIME_LIMIT = 10 * 1000;\n static const int64_t QUEUE_WAIT_TIME = 100 * 1000;\n static const int64_t MAX_THREAD_NUM = 256;\n static const int64_t QUEUE_SIZE_TO_SWITCH = 4;\n typedef DRWLock RWLock;\n typedef DRWLock::RDLockGuard RDLockGuard;", "parent": 138, "children": [141, 142, 143, 146, 149, 154, 159, 162, 167, 172, 179, 186, 193, 200, 203, 208, 209, 210, 211, 213, 214, 238, 239, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 87, "column": 43}}, {"id": 141, "type": "struct", "text": "struct", "parent": 140, "children": [], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 8}}, {"id": 142, "type": "identifier", "text": "ThreadConf", "parent": 140, "children": [], "start_point": {"row": 56, "column": 9}, "end_point": {"row": 56, "column": 19}}, {"id": 143, "type": "field_declaration", "text": "pthread_t pd;", "parent": 140, "children": [144, 145], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 17}}, {"id": 144, "type": "type_identifier", "text": "pthread_t", "parent": 143, "children": [], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 13}}, {"id": 145, "type": "field_identifier", "text": "pd", "parent": 143, "children": [], "start_point": {"row": 57, "column": 14}, "end_point": {"row": 57, "column": 16}}, {"id": 146, "type": "field_declaration", "text": "uint64_t index;", "parent": 140, "children": [147, 148], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 19}}, {"id": 147, "type": "primitive_type", "text": "uint64_t", "parent": 146, "children": [], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 12}}, {"id": 148, "type": "field_identifier", "text": "index", "parent": 146, "children": [], "start_point": {"row": 58, "column": 13}, "end_point": {"row": 58, "column": 18}}, {"id": 149, "type": "field_declaration", "text": "volatile bool run_flag;", "parent": 140, "children": [150, 152, 153], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 27}}, {"id": 150, "type": "type_qualifier", "text": "volatile", "parent": 149, "children": [151], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 12}}, {"id": 151, "type": "volatile", "text": "volatile", "parent": 150, "children": [], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 12}}, {"id": 152, "type": "primitive_type", "text": "bool", "parent": 149, "children": [], "start_point": {"row": 59, "column": 13}, "end_point": {"row": 59, "column": 17}}, {"id": 153, "type": "field_identifier", "text": "run_flag", "parent": 149, "children": [], "start_point": {"row": 59, "column": 18}, "end_point": {"row": 59, "column": 26}}, {"id": 154, "type": "field_declaration", "text": "volatile bool stop_flag;", "parent": 140, "children": [155, 157, 158], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 28}}, {"id": 155, "type": "type_qualifier", "text": "volatile", "parent": 154, "children": [156], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 12}}, {"id": 156, "type": "volatile", "text": "volatile", "parent": 155, "children": [], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 12}}, {"id": 157, "type": "primitive_type", "text": "bool", "parent": 154, "children": [], "start_point": {"row": 60, "column": 13}, "end_point": {"row": 60, "column": 17}}, {"id": 158, "type": "field_identifier", "text": "stop_flag", "parent": 154, "children": [], "start_point": {"row": 60, "column": 18}, "end_point": {"row": 60, "column": 27}}, {"id": 159, "type": "field_declaration", "text": "S2MCond queue_cond;", "parent": 140, "children": [160, 161], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 23}}, {"id": 160, "type": "type_identifier", "text": "S2MCond", "parent": 159, "children": [], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 11}}, {"id": 161, "type": "field_identifier", "text": "queue_cond", "parent": 159, "children": [], "start_point": {"row": 61, "column": 12}, "end_point": {"row": 61, "column": 22}}, {"id": 162, "type": "field_declaration", "text": "volatile bool using_flag;", "parent": 140, "children": [163, 165, 166], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 29}}, {"id": 163, "type": "type_qualifier", "text": "volatile", "parent": 162, "children": [164], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 12}}, {"id": 164, "type": "volatile", "text": "volatile", "parent": 163, "children": [], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 12}}, {"id": 165, "type": "primitive_type", "text": "bool", "parent": 162, "children": [], "start_point": {"row": 62, "column": 13}, "end_point": {"row": 62, "column": 17}}, {"id": 166, "type": "field_identifier", "text": "using_flag", "parent": 162, "children": [], "start_point": {"row": 62, "column": 18}, "end_point": {"row": 62, "column": 28}}, {"id": 167, "type": "field_declaration", "text": "volatile int64_t last_active_time;", "parent": 140, "children": [168, 170, 171], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 38}}, {"id": 168, "type": "type_qualifier", "text": "volatile", "parent": 167, "children": [169], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 12}}, {"id": 169, "type": "volatile", "text": "volatile", "parent": 168, "children": [], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 12}}, {"id": 170, "type": "primitive_type", "text": "int64_t", "parent": 167, "children": [], "start_point": {"row": 63, "column": 13}, "end_point": {"row": 63, "column": 20}}, {"id": 171, "type": "field_identifier", "text": "last_active_time", "parent": 167, "children": [], "start_point": {"row": 63, "column": 21}, "end_point": {"row": 63, "column": 37}}, {"id": 172, "type": "field_declaration", "text": "ObFixedQueue<void> high_prio_task_queue;", "parent": 140, "children": [173, 174, 178], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 44}}, {"id": 173, "type": "type_identifier", "text": "ObFixedQueue", "parent": 172, "children": [], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 16}}, {"id": 174, "type": "ERROR", "text": "<void>", "parent": 172, "children": [175, 176, 177], "start_point": {"row": 64, "column": 16}, "end_point": {"row": 64, "column": 22}}, {"id": 175, "type": "<", "text": "<", "parent": 174, "children": [], "start_point": {"row": 64, "column": 16}, "end_point": {"row": 64, "column": 17}}, {"id": 176, "type": "primitive_type", "text": "void", "parent": 174, "children": [], "start_point": {"row": 64, "column": 17}, "end_point": {"row": 64, "column": 21}}, {"id": 177, "type": ">", "text": ">", "parent": 174, "children": [], "start_point": {"row": 64, "column": 21}, "end_point": {"row": 64, "column": 22}}, {"id": 178, "type": "field_identifier", "text": "high_prio_task_queue", "parent": 172, "children": [], "start_point": {"row": 64, "column": 23}, "end_point": {"row": 64, "column": 43}}, {"id": 179, "type": "field_declaration", "text": "ObFixedQueue<void> spec_task_queue;", "parent": 140, "children": [180, 181, 185], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 39}}, {"id": 180, "type": "type_identifier", "text": "ObFixedQueue", "parent": 179, "children": [], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 16}}, {"id": 181, "type": "ERROR", "text": "<void>", "parent": 179, "children": [182, 183, 184], "start_point": {"row": 65, "column": 16}, "end_point": {"row": 65, "column": 22}}, {"id": 182, "type": "<", "text": "<", "parent": 181, "children": [], "start_point": {"row": 65, "column": 16}, "end_point": {"row": 65, "column": 17}}, {"id": 183, "type": "primitive_type", "text": "void", "parent": 181, "children": [], "start_point": {"row": 65, "column": 17}, "end_point": {"row": 65, "column": 21}}, {"id": 184, "type": ">", "text": ">", "parent": 181, "children": [], "start_point": {"row": 65, "column": 21}, "end_point": {"row": 65, "column": 22}}, {"id": 185, "type": "field_identifier", "text": "spec_task_queue", "parent": 179, "children": [], "start_point": {"row": 65, "column": 23}, "end_point": {"row": 65, "column": 38}}, {"id": 186, "type": "field_declaration", "text": "ObFixedQueue<void> comm_task_queue;", "parent": 140, "children": [187, 188, 192], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 39}}, {"id": 187, "type": "type_identifier", "text": "ObFixedQueue", "parent": 186, "children": [], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 16}}, {"id": 188, "type": "ERROR", "text": "<void>", "parent": 186, "children": [189, 190, 191], "start_point": {"row": 66, "column": 16}, "end_point": {"row": 66, "column": 22}}, {"id": 189, "type": "<", "text": "<", "parent": 188, "children": [], "start_point": {"row": 66, "column": 16}, "end_point": {"row": 66, "column": 17}}, {"id": 190, "type": "primitive_type", "text": "void", "parent": 188, "children": [], "start_point": {"row": 66, "column": 17}, "end_point": {"row": 66, "column": 21}}, {"id": 191, "type": ">", "text": ">", "parent": 188, "children": [], "start_point": {"row": 66, "column": 21}, "end_point": {"row": 66, "column": 22}}, {"id": 192, "type": "field_identifier", "text": "comm_task_queue", "parent": 186, "children": [], "start_point": {"row": 66, "column": 23}, "end_point": {"row": 66, "column": 38}}, {"id": 193, "type": "field_declaration", "text": "ObFixedQueue<void> low_prio_task_queue;", "parent": 140, "children": [194, 195, 199], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 43}}, {"id": 194, "type": "type_identifier", "text": "ObFixedQueue", "parent": 193, "children": [], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 16}}, {"id": 195, "type": "ERROR", "text": "<void>", "parent": 193, "children": [196, 197, 198], "start_point": {"row": 67, "column": 16}, "end_point": {"row": 67, "column": 22}}, {"id": 196, "type": "<", "text": "<", "parent": 195, "children": [], "start_point": {"row": 67, "column": 16}, "end_point": {"row": 67, "column": 17}}, {"id": 197, "type": "primitive_type", "text": "void", "parent": 195, "children": [], "start_point": {"row": 67, "column": 17}, "end_point": {"row": 67, "column": 21}}, {"id": 198, "type": ">", "text": ">", "parent": 195, "children": [], "start_point": {"row": 67, "column": 21}, "end_point": {"row": 67, "column": 22}}, {"id": 199, "type": "field_identifier", "text": "low_prio_task_queue", "parent": 193, "children": [], "start_point": {"row": 67, "column": 23}, "end_point": {"row": 67, "column": 42}}, {"id": 200, "type": "field_declaration", "text": "ObPriorityScheduler scheduler_;", "parent": 140, "children": [201, 202], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 35}}, {"id": 201, "type": "type_identifier", "text": "ObPriorityScheduler", "parent": 200, "children": [], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 23}}, {"id": 202, "type": "field_identifier", "text": "scheduler_", "parent": 200, "children": [], "start_point": {"row": 68, "column": 24}, "end_point": {"row": 68, "column": 34}}, {"id": 203, "type": "field_declaration", "text": "S2MQueueThread* host;", "parent": 140, "children": [204, 205], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 25}}, {"id": 204, "type": "type_identifier", "text": "S2MQueueThread", "parent": 203, "children": [], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 18}}, {"id": 205, "type": "pointer_declarator", "text": "* host", "parent": 203, "children": [206, 207], "start_point": {"row": 69, "column": 18}, "end_point": {"row": 69, "column": 24}}, {"id": 206, "type": "*", "text": "*", "parent": 205, "children": [], "start_point": {"row": 69, "column": 18}, "end_point": {"row": 69, "column": 19}}, {"id": 207, "type": "field_identifier", "text": "host", "parent": 205, "children": [], "start_point": {"row": 69, "column": 20}, "end_point": {"row": 69, "column": 24}}, {"id": 208, "type": "identifier", "text": "ThreadConf", "parent": 140, "children": [], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 14}}, {"id": 209, "type": "ERROR", "text": ")\n :", "parent": 140, "children": [], "start_point": {"row": 70, "column": 15}, "end_point": {"row": 71, "column": 9}}, {"id": 210, "type": "identifier", "text": "pd", "parent": 140, "children": [], "start_point": {"row": 71, "column": 10}, "end_point": {"row": 71, "column": 12}}, {"id": 211, "type": "ERROR", "text": "0),", "parent": 140, "children": [212], "start_point": {"row": 71, "column": 13}, "end_point": {"row": 71, "column": 16}}, {"id": 212, "type": "number_literal", "text": "0", "parent": 211, "children": [], "start_point": {"row": 71, "column": 13}, "end_point": {"row": 71, "column": 14}}, {"id": 213, "type": "identifier", "text": "index", "parent": 140, "children": [], "start_point": {"row": 72, "column": 10}, "end_point": {"row": 72, "column": 15}}, {"id": 214, "type": "ERROR", "text": "0),\n run_flag(true),\n stop_flag(false),\n queue_cond(),\n using_flag(false),", "parent": 140, "children": [215, 216, 222, 228, 232], "start_point": {"row": 72, "column": 16}, "end_point": {"row": 76, "column": 28}}, {"id": 215, "type": "number_literal", "text": "0", "parent": 214, "children": [], "start_point": {"row": 72, "column": 16}, "end_point": {"row": 72, "column": 17}}, {"id": 216, "type": "type_descriptor", "text": "run_flag(true)", "parent": 214, "children": [217, 218], "start_point": {"row": 73, "column": 10}, "end_point": {"row": 73, "column": 24}}, {"id": 217, "type": "type_identifier", "text": "run_flag", "parent": 216, "children": [], "start_point": {"row": 73, "column": 10}, "end_point": {"row": 73, "column": 18}}, {"id": 218, "type": "abstract_function_declarator", "text": "(true)", "parent": 216, "children": [219], "start_point": {"row": 73, "column": 18}, "end_point": {"row": 73, "column": 24}}, {"id": 219, "type": "parameter_list", "text": "(true)", "parent": 218, "children": [220], "start_point": {"row": 73, "column": 18}, "end_point": {"row": 73, "column": 24}}, {"id": 220, "type": "parameter_declaration", "text": "true", "parent": 219, "children": [221], "start_point": {"row": 73, "column": 19}, "end_point": {"row": 73, "column": 23}}, {"id": 221, "type": "type_identifier", "text": "true", "parent": 220, "children": [], "start_point": {"row": 73, "column": 19}, "end_point": {"row": 73, "column": 23}}, {"id": 222, "type": "type_descriptor", "text": "stop_flag(false)", "parent": 214, "children": [223, 224], "start_point": {"row": 74, "column": 10}, "end_point": {"row": 74, "column": 26}}, {"id": 223, "type": "type_identifier", "text": "stop_flag", "parent": 222, "children": [], "start_point": {"row": 74, "column": 10}, "end_point": {"row": 74, "column": 19}}, {"id": 224, "type": "abstract_function_declarator", "text": "(false)", "parent": 222, "children": [225], "start_point": {"row": 74, "column": 19}, "end_point": {"row": 74, "column": 26}}, {"id": 225, "type": "parameter_list", "text": "(false)", "parent": 224, "children": [226], "start_point": {"row": 74, "column": 19}, "end_point": {"row": 74, "column": 26}}, {"id": 226, "type": "parameter_declaration", "text": "false", "parent": 225, "children": [227], "start_point": {"row": 74, "column": 20}, "end_point": {"row": 74, "column": 25}}, {"id": 227, "type": "type_identifier", "text": "false", "parent": 226, "children": [], "start_point": {"row": 74, "column": 20}, "end_point": {"row": 74, "column": 25}}, {"id": 228, "type": "type_descriptor", "text": "queue_cond()", "parent": 214, "children": [229, 230], "start_point": {"row": 75, "column": 10}, "end_point": {"row": 75, "column": 22}}, {"id": 229, "type": "type_identifier", "text": "queue_cond", "parent": 228, "children": [], "start_point": {"row": 75, "column": 10}, "end_point": {"row": 75, "column": 20}}, {"id": 230, "type": "abstract_function_declarator", "text": "()", "parent": 228, "children": [231], "start_point": {"row": 75, "column": 20}, "end_point": {"row": 75, "column": 22}}, {"id": 231, "type": "parameter_list", "text": "()", "parent": 230, "children": [], "start_point": {"row": 75, "column": 20}, "end_point": {"row": 75, "column": 22}}, {"id": 232, "type": "type_descriptor", "text": "using_flag(false)", "parent": 214, "children": [233, 234], "start_point": {"row": 76, "column": 10}, "end_point": {"row": 76, "column": 27}}, {"id": 233, "type": "type_identifier", "text": "using_flag", "parent": 232, "children": [], "start_point": {"row": 76, "column": 10}, "end_point": {"row": 76, "column": 20}}, {"id": 234, "type": "abstract_function_declarator", "text": "(false)", "parent": 232, "children": [235], "start_point": {"row": 76, "column": 20}, "end_point": {"row": 76, "column": 27}}, {"id": 235, "type": "parameter_list", "text": "(false)", "parent": 234, "children": [236], "start_point": {"row": 76, "column": 20}, "end_point": {"row": 76, "column": 27}}, {"id": 236, "type": "parameter_declaration", "text": "false", "parent": 235, "children": [237], "start_point": {"row": 76, "column": 21}, "end_point": {"row": 76, "column": 26}}, {"id": 237, "type": "type_identifier", "text": "false", "parent": 236, "children": [], "start_point": {"row": 76, "column": 21}, "end_point": {"row": 76, "column": 26}}, {"id": 238, "type": "identifier", "text": "last_active_time", "parent": 140, "children": [], "start_point": {"row": 77, "column": 10}, "end_point": {"row": 77, "column": 26}}, {"id": 239, "type": "ERROR", "text": "0),\n spec_task_queue(),\n comm_task_queue(),\n host(NULL){};\n } CACHE_ALIGNED;\n static const int64_t THREAD_BUSY_TIME_LIMIT = 10 * 1000;\n static const int64_t QUEUE_WAIT_TIME = 100 * 1000;\n static const int64_t MAX_THREAD_NUM = 256;\n static const int64_t", "parent": 140, "children": [240, 241, 245, 249, 253, 256, 257, 266, 267, 276, 277, 282], "start_point": {"row": 77, "column": 27}, "end_point": {"row": 85, "column": 22}}, {"id": 240, "type": "number_literal", "text": "0", "parent": 239, "children": [], "start_point": {"row": 77, "column": 27}, "end_point": {"row": 77, "column": 28}}, {"id": 241, "type": "type_descriptor", "text": "spec_task_queue()", "parent": 239, "children": [242, 243], "start_point": {"row": 78, "column": 10}, "end_point": {"row": 78, "column": 27}}, {"id": 242, "type": "type_identifier", "text": "spec_task_queue", "parent": 241, "children": [], "start_point": {"row": 78, "column": 10}, "end_point": {"row": 78, "column": 25}}, {"id": 243, "type": "abstract_function_declarator", "text": "()", "parent": 241, "children": [244], "start_point": {"row": 78, "column": 25}, "end_point": {"row": 78, "column": 27}}, {"id": 244, "type": "parameter_list", "text": "()", "parent": 243, "children": [], "start_point": {"row": 78, "column": 25}, "end_point": {"row": 78, "column": 27}}, {"id": 245, "type": "type_descriptor", "text": "comm_task_queue()", "parent": 239, "children": [246, 247], "start_point": {"row": 79, "column": 10}, "end_point": {"row": 79, "column": 27}}, {"id": 246, "type": "type_identifier", "text": "comm_task_queue", "parent": 245, "children": [], "start_point": {"row": 79, "column": 10}, "end_point": {"row": 79, "column": 25}}, {"id": 247, "type": "abstract_function_declarator", "text": "()", "parent": 245, "children": [248], "start_point": {"row": 79, "column": 25}, "end_point": {"row": 79, "column": 27}}, {"id": 248, "type": "parameter_list", "text": "()", "parent": 247, "children": [], "start_point": {"row": 79, "column": 25}, "end_point": {"row": 79, "column": 27}}, {"id": 249, "type": "macro_type_specifier", "text": "host(NULL)", "parent": 239, "children": [250, 251], "start_point": {"row": 80, "column": 10}, "end_point": {"row": 80, "column": 20}}, {"id": 250, "type": "identifier", "text": "host", "parent": 249, "children": [], "start_point": {"row": 80, "column": 10}, "end_point": {"row": 80, "column": 14}}, {"id": 251, "type": "type_descriptor", "text": "NULL", "parent": 249, "children": [252], "start_point": {"row": 80, "column": 15}, "end_point": {"row": 80, "column": 19}}, {"id": 252, "type": "type_identifier", "text": "NULL", "parent": 251, "children": [], "start_point": {"row": 80, "column": 15}, "end_point": {"row": 80, "column": 19}}, {"id": 253, "type": "type_descriptor", "text": "CACHE_ALIGNED;\n static const", "parent": 239, "children": [254, 255], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 82, "column": 14}}, {"id": 254, "type": "type_identifier", "text": "CACHE_ALIGNED", "parent": 253, "children": [], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 17}}, {"id": 255, "type": "ERROR", "text": ";\n static", "parent": 253, "children": [], "start_point": {"row": 81, "column": 17}, "end_point": {"row": 82, "column": 8}}, {"id": 256, "type": "primitive_type", "text": "int64_t", "parent": 239, "children": [], "start_point": {"row": 82, "column": 15}, "end_point": {"row": 82, "column": 22}}, {"id": 257, "type": "type_descriptor", "text": "THREAD_BUSY_TIME_LIMIT = 10 * 1000;\n static const", "parent": 239, "children": [258, 259, 262], "start_point": {"row": 82, "column": 23}, "end_point": {"row": 83, "column": 14}}, {"id": 258, "type": "type_identifier", "text": "THREAD_BUSY_TIME_LIMIT", "parent": 257, "children": [], "start_point": {"row": 82, "column": 23}, "end_point": {"row": 82, "column": 45}}, {"id": 259, "type": "ERROR", "text": "= 10", "parent": 257, "children": [260, 261], "start_point": {"row": 82, "column": 46}, "end_point": {"row": 82, "column": 50}}, {"id": 260, "type": "=", "text": "=", "parent": 259, "children": [], "start_point": {"row": 82, "column": 46}, "end_point": {"row": 82, "column": 47}}, {"id": 261, "type": "number_literal", "text": "10", "parent": 259, "children": [], "start_point": {"row": 82, "column": 48}, "end_point": {"row": 82, "column": 50}}, {"id": 262, "type": "abstract_pointer_declarator", "text": "* 1000;\n static const", "parent": 257, "children": [263, 264], "start_point": {"row": 82, "column": 51}, "end_point": {"row": 83, "column": 14}}, {"id": 263, "type": "*", "text": "*", "parent": 262, "children": [], "start_point": {"row": 82, "column": 51}, "end_point": {"row": 82, "column": 52}}, {"id": 264, "type": "ERROR", "text": "1000;\n static", "parent": 262, "children": [265], "start_point": {"row": 82, "column": 53}, "end_point": {"row": 83, "column": 8}}, {"id": 265, "type": "number_literal", "text": "1000", "parent": 264, "children": [], "start_point": {"row": 82, "column": 53}, "end_point": {"row": 82, "column": 57}}, {"id": 266, "type": "primitive_type", "text": "int64_t", "parent": 239, "children": [], "start_point": {"row": 83, "column": 15}, "end_point": {"row": 83, "column": 22}}, {"id": 267, "type": "type_descriptor", "text": "QUEUE_WAIT_TIME = 100 * 1000;\n static const", "parent": 239, "children": [268, 269, 272], "start_point": {"row": 83, "column": 23}, "end_point": {"row": 84, "column": 14}}, {"id": 268, "type": "type_identifier", "text": "QUEUE_WAIT_TIME", "parent": 267, "children": [], "start_point": {"row": 83, "column": 23}, "end_point": {"row": 83, "column": 38}}, {"id": 269, "type": "ERROR", "text": "= 100", "parent": 267, "children": [270, 271], "start_point": {"row": 83, "column": 39}, "end_point": {"row": 83, "column": 44}}, {"id": 270, "type": "=", "text": "=", "parent": 269, "children": [], "start_point": {"row": 83, "column": 39}, "end_point": {"row": 83, "column": 40}}, {"id": 271, "type": "number_literal", "text": "100", "parent": 269, "children": [], "start_point": {"row": 83, "column": 41}, "end_point": {"row": 83, "column": 44}}, {"id": 272, "type": "abstract_pointer_declarator", "text": "* 1000;\n static const", "parent": 267, "children": [273, 274], "start_point": {"row": 83, "column": 45}, "end_point": {"row": 84, "column": 14}}, {"id": 273, "type": "*", "text": "*", "parent": 272, "children": [], "start_point": {"row": 83, "column": 45}, "end_point": {"row": 83, "column": 46}}, {"id": 274, "type": "ERROR", "text": "1000;\n static", "parent": 272, "children": [275], "start_point": {"row": 83, "column": 47}, "end_point": {"row": 84, "column": 8}}, {"id": 275, "type": "number_literal", "text": "1000", "parent": 274, "children": [], "start_point": {"row": 83, "column": 47}, "end_point": {"row": 83, "column": 51}}, {"id": 276, "type": "primitive_type", "text": "int64_t", "parent": 239, "children": [], "start_point": {"row": 84, "column": 15}, "end_point": {"row": 84, "column": 22}}, {"id": 277, "type": "type_descriptor", "text": "MAX_THREAD_NUM = 256;\n static const", "parent": 239, "children": [278, 279], "start_point": {"row": 84, "column": 23}, "end_point": {"row": 85, "column": 14}}, {"id": 278, "type": "type_identifier", "text": "MAX_THREAD_NUM", "parent": 277, "children": [], "start_point": {"row": 84, "column": 23}, "end_point": {"row": 84, "column": 37}}, {"id": 279, "type": "ERROR", "text": "= 256;\n static", "parent": 277, "children": [280, 281], "start_point": {"row": 84, "column": 38}, "end_point": {"row": 85, "column": 8}}, {"id": 280, "type": "=", "text": "=", "parent": 279, "children": [], "start_point": {"row": 84, "column": 38}, "end_point": {"row": 84, "column": 39}}, {"id": 281, "type": "number_literal", "text": "256", "parent": 279, "children": [], "start_point": {"row": 84, "column": 40}, "end_point": {"row": 84, "column": 43}}, {"id": 282, "type": "primitive_type", "text": "int64_t", "parent": 239, "children": [], "start_point": {"row": 85, "column": 15}, "end_point": {"row": 85, "column": 22}}, {"id": 283, "type": "identifier", "text": "QUEUE_SIZE_TO_SWITCH", "parent": 140, "children": [], "start_point": {"row": 85, "column": 23}, "end_point": {"row": 85, "column": 43}}, {"id": 284, "type": "=", "text": "=", "parent": 140, "children": [], "start_point": {"row": 85, "column": 44}, "end_point": {"row": 85, "column": 45}}, {"id": 285, "type": "number_literal", "text": "4", "parent": 140, "children": [], "start_point": {"row": 85, "column": 46}, "end_point": {"row": 85, "column": 47}}, {"id": 286, "type": "typedef", "text": "typedef", "parent": 140, "children": [], "start_point": {"row": 86, "column": 2}, "end_point": {"row": 86, "column": 9}}, {"id": 287, "type": "identifier", "text": "DRWLock", "parent": 140, "children": [], "start_point": {"row": 86, "column": 10}, "end_point": {"row": 86, "column": 17}}, {"id": 288, "type": "identifier", "text": "RWLock", "parent": 140, "children": [], "start_point": {"row": 86, "column": 18}, "end_point": {"row": 86, "column": 24}}, {"id": 289, "type": "typedef", "text": "typedef", "parent": 140, "children": [], "start_point": {"row": 87, "column": 2}, "end_point": {"row": 87, "column": 9}}, {"id": 290, "type": "identifier", "text": "DRWLock", "parent": 140, "children": [], "start_point": {"row": 87, "column": 10}, "end_point": {"row": 87, "column": 17}}, {"id": 291, "type": "identifier", "text": "RDLockGuard", "parent": 140, "children": [], "start_point": {"row": 87, "column": 19}, "end_point": {"row": 87, "column": 30}}, {"id": 292, "type": "identifier", "text": "RDLockGuard", "parent": 140, "children": [], "start_point": {"row": 87, "column": 31}, "end_point": {"row": 87, "column": 42}}, {"id": 293, "type": "type_definition", "text": "typedef DRWLock::WRLockGuard WRLockGuard;", "parent": 138, "children": [294, 295, 296, 298], "start_point": {"row": 88, "column": 2}, "end_point": {"row": 88, "column": 43}}, {"id": 294, "type": "typedef", "text": "typedef", "parent": 293, "children": [], "start_point": {"row": 88, "column": 2}, "end_point": {"row": 88, "column": 9}}, {"id": 295, "type": "type_identifier", "text": "DRWLock", "parent": 293, "children": [], "start_point": {"row": 88, "column": 10}, "end_point": {"row": 88, "column": 17}}, {"id": 296, "type": "ERROR", "text": "::WRLockGuard", "parent": 293, "children": [297], "start_point": {"row": 88, "column": 17}, "end_point": {"row": 88, "column": 30}}, {"id": 297, "type": "type_identifier", "text": "WRLockGuard", "parent": 296, "children": [], "start_point": {"row": 88, "column": 19}, "end_point": {"row": 88, "column": 30}}, {"id": 298, "type": "type_identifier", "text": "WRLockGuard", "parent": 293, "children": [], "start_point": {"row": 88, "column": 31}, "end_point": {"row": 88, "column": 42}}, {"id": 299, "type": "type_definition", "text": "typedef ObTCCounter Counter;", "parent": 138, "children": [300, 301, 302], "start_point": {"row": 89, "column": 2}, "end_point": {"row": 89, "column": 30}}, {"id": 300, "type": "typedef", "text": "typedef", "parent": 299, "children": [], "start_point": {"row": 89, "column": 2}, "end_point": {"row": 89, "column": 9}}, {"id": 301, "type": "type_identifier", "text": "ObTCCounter", "parent": 299, "children": [], "start_point": {"row": 89, "column": 10}, "end_point": {"row": 89, "column": 21}}, {"id": 302, "type": "type_identifier", "text": "Counter", "parent": 299, "children": [], "start_point": {"row": 89, "column": 22}, "end_point": {"row": 89, "column": 29}}, {"id": 303, "type": "labeled_statement", "text": "public:\n enum { HIGH_PRIO_QUEUE = 0, HOTSPOT_QUEUE = 1, NORMAL_PRIO_QUEUE = 2, LOW_PRIO_QUEUE = 3, QUEUE_COUNT = 4 };", "parent": 138, "children": [304], "start_point": {"row": 91, "column": 0}, "end_point": {"row": 92, "column": 110}}, {"id": 304, "type": "declaration", "text": "enum { HIGH_PRIO_QUEUE = 0, HOTSPOT_QUEUE = 1, NORMAL_PRIO_QUEUE = 2, LOW_PRIO_QUEUE = 3, QUEUE_COUNT = 4 };", "parent": 303, "children": [305, 328], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 92, "column": 110}}, {"id": 305, "type": "enum_specifier", "text": "enum { HIGH_PRIO_QUEUE = 0, HOTSPOT_QUEUE = 1, NORMAL_PRIO_QUEUE = 2, LOW_PRIO_QUEUE = 3, QUEUE_COUNT = 4 }", "parent": 304, "children": [306, 307], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 92, "column": 109}}, {"id": 306, "type": "enum", "text": "enum", "parent": 305, "children": [], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 92, "column": 6}}, {"id": 307, "type": "enumerator_list", "text": "{ HIGH_PRIO_QUEUE = 0, HOTSPOT_QUEUE = 1, NORMAL_PRIO_QUEUE = 2, LOW_PRIO_QUEUE = 3, QUEUE_COUNT = 4 }", "parent": 305, "children": [308, 312, 316, 320, 324], "start_point": {"row": 92, "column": 7}, "end_point": {"row": 92, "column": 109}}, {"id": 308, "type": "enumerator", "text": "HIGH_PRIO_QUEUE = 0", "parent": 307, "children": [309, 310, 311], "start_point": {"row": 92, "column": 9}, "end_point": {"row": 92, "column": 28}}, {"id": 309, "type": "identifier", "text": "HIGH_PRIO_QUEUE", "parent": 308, "children": [], "start_point": {"row": 92, "column": 9}, "end_point": {"row": 92, "column": 24}}, {"id": 310, "type": "=", "text": "=", "parent": 308, "children": [], "start_point": {"row": 92, "column": 25}, "end_point": {"row": 92, "column": 26}}, {"id": 311, "type": "number_literal", "text": "0", "parent": 308, "children": [], "start_point": {"row": 92, "column": 27}, "end_point": {"row": 92, "column": 28}}, {"id": 312, "type": "enumerator", "text": "HOTSPOT_QUEUE = 1", "parent": 307, "children": [313, 314, 315], "start_point": {"row": 92, "column": 30}, "end_point": {"row": 92, "column": 47}}, {"id": 313, "type": "identifier", "text": "HOTSPOT_QUEUE", "parent": 312, "children": [], "start_point": {"row": 92, "column": 30}, "end_point": {"row": 92, "column": 43}}, {"id": 314, "type": "=", "text": "=", "parent": 312, "children": [], "start_point": {"row": 92, "column": 44}, "end_point": {"row": 92, "column": 45}}, {"id": 315, "type": "number_literal", "text": "1", "parent": 312, "children": [], "start_point": {"row": 92, "column": 46}, "end_point": {"row": 92, "column": 47}}, {"id": 316, "type": "enumerator", "text": "NORMAL_PRIO_QUEUE = 2", "parent": 307, "children": [317, 318, 319], "start_point": {"row": 92, "column": 49}, "end_point": {"row": 92, "column": 70}}, {"id": 317, "type": "identifier", "text": "NORMAL_PRIO_QUEUE", "parent": 316, "children": [], "start_point": {"row": 92, "column": 49}, "end_point": {"row": 92, "column": 66}}, {"id": 318, "type": "=", "text": "=", "parent": 316, "children": [], "start_point": {"row": 92, "column": 67}, "end_point": {"row": 92, "column": 68}}, {"id": 319, "type": "number_literal", "text": "2", "parent": 316, "children": [], "start_point": {"row": 92, "column": 69}, "end_point": {"row": 92, "column": 70}}, {"id": 320, "type": "enumerator", "text": "LOW_PRIO_QUEUE = 3", "parent": 307, "children": [321, 322, 323], "start_point": {"row": 92, "column": 72}, "end_point": {"row": 92, "column": 90}}, {"id": 321, "type": "identifier", "text": "LOW_PRIO_QUEUE", "parent": 320, "children": [], "start_point": {"row": 92, "column": 72}, "end_point": {"row": 92, "column": 86}}, {"id": 322, "type": "=", "text": "=", "parent": 320, "children": [], "start_point": {"row": 92, "column": 87}, "end_point": {"row": 92, "column": 88}}, {"id": 323, "type": "number_literal", "text": "3", "parent": 320, "children": [], "start_point": {"row": 92, "column": 89}, "end_point": {"row": 92, "column": 90}}, {"id": 324, "type": "enumerator", "text": "QUEUE_COUNT = 4", "parent": 307, "children": [325, 326, 327], "start_point": {"row": 92, "column": 92}, "end_point": {"row": 92, "column": 107}}, {"id": 325, "type": "identifier", "text": "QUEUE_COUNT", "parent": 324, "children": [], "start_point": {"row": 92, "column": 92}, "end_point": {"row": 92, "column": 103}}, {"id": 326, "type": "=", "text": "=", "parent": 324, "children": [], "start_point": {"row": 92, "column": 104}, "end_point": {"row": 92, "column": 105}}, {"id": 327, "type": "number_literal", "text": "4", "parent": 324, "children": [], "start_point": {"row": 92, "column": 106}, "end_point": {"row": 92, "column": 107}}, {"id": 328, "type": "identifier", "text": "", "parent": 304, "children": [], "start_point": {"row": 92, "column": 109}, "end_point": {"row": 92, "column": 109}}, {"id": 329, "type": "labeled_statement", "text": "public:\n S2MQueueThread();", "parent": 138, "children": [], "start_point": {"row": 94, "column": 0}, "end_point": {"row": 95, "column": 19}}, {"id": 330, "type": "call_expression", "text": "S2MQueueThread()", "parent": 329, "children": [331, 332], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 18}}, {"id": 331, "type": "identifier", "text": "S2MQueueThread", "parent": 330, "children": [], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 16}}, {"id": 332, "type": "argument_list", "text": "()", "parent": 330, "children": [], "start_point": {"row": 95, "column": 16}, "end_point": {"row": 95, "column": 18}}, {"id": 333, "type": "declaration", "text": "virtual ~S2MQueueThread();", "parent": 138, "children": [334, 335, 337], "start_point": {"row": 96, "column": 2}, "end_point": {"row": 96, "column": 28}}, {"id": 334, "type": "type_identifier", "text": "virtual", "parent": 333, "children": [], "start_point": {"row": 96, "column": 2}, "end_point": {"row": 96, "column": 9}}, {"id": 335, "type": "ERROR", "text": "~", "parent": 333, "children": [336], "start_point": {"row": 96, "column": 10}, "end_point": {"row": 96, "column": 11}}, {"id": 336, "type": "~", "text": "~", "parent": 335, "children": [], "start_point": {"row": 96, "column": 10}, "end_point": {"row": 96, "column": 11}}, {"id": 337, "type": "function_declarator", "text": "S2MQueueThread()", "parent": 333, "children": [338, 339], "start_point": {"row": 96, "column": 11}, "end_point": {"row": 96, "column": 27}}, {"id": 338, "type": "identifier", "text": "S2MQueueThread", "parent": 337, "children": [], "start_point": {"row": 96, "column": 11}, "end_point": {"row": 96, "column": 25}}, {"id": 339, "type": "parameter_list", "text": "()", "parent": 337, "children": [], "start_point": {"row": 96, "column": 25}, "end_point": {"row": 96, "column": 27}}, {"id": 340, "type": "labeled_statement", "text": "public:\n int init(\n const int64_t thread_num, const int64_t task_num_limit, const bool queue_rebalance, const bool dynamic_rebalance);", "parent": 138, "children": [341], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 100, "column": 120}}, {"id": 341, "type": "declaration", "text": "int init(\n const int64_t thread_num, const int64_t task_num_limit, const bool queue_rebalance, const bool dynamic_rebalance);", "parent": 340, "children": [342, 343], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 100, "column": 120}}, {"id": 342, "type": "primitive_type", "text": "int", "parent": 341, "children": [], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 99, "column": 5}}, {"id": 343, "type": "function_declarator", "text": "init(\n const int64_t thread_num, const int64_t task_num_limit, const bool queue_rebalance, const bool dynamic_rebalance)", "parent": 341, "children": [344, 345], "start_point": {"row": 99, "column": 6}, "end_point": {"row": 100, "column": 119}}, {"id": 344, "type": "identifier", "text": "init", "parent": 343, "children": [], "start_point": {"row": 99, "column": 6}, "end_point": {"row": 99, "column": 10}}, {"id": 345, "type": "parameter_list", "text": "(\n const int64_t thread_num, const int64_t task_num_limit, const bool queue_rebalance, const bool dynamic_rebalance)", "parent": 343, "children": [346, 349, 352, 355], "start_point": {"row": 99, "column": 10}, "end_point": {"row": 100, "column": 119}}, {"id": 346, "type": "parameter_declaration", "text": "const int64_t thread_num", "parent": 345, "children": [347, 348], "start_point": {"row": 100, "column": 6}, "end_point": {"row": 100, "column": 30}}, {"id": 347, "type": "primitive_type", "text": "int64_t", "parent": 346, "children": [], "start_point": {"row": 100, "column": 12}, "end_point": {"row": 100, "column": 19}}, {"id": 348, "type": "identifier", "text": "thread_num", "parent": 346, "children": [], "start_point": {"row": 100, "column": 20}, "end_point": {"row": 100, "column": 30}}, {"id": 349, "type": "parameter_declaration", "text": "const int64_t task_num_limit", "parent": 345, "children": [350, 351], "start_point": {"row": 100, "column": 32}, "end_point": {"row": 100, "column": 60}}, {"id": 350, "type": "primitive_type", "text": "int64_t", "parent": 349, "children": [], "start_point": {"row": 100, "column": 38}, "end_point": {"row": 100, "column": 45}}, {"id": 351, "type": "identifier", "text": "task_num_limit", "parent": 349, "children": [], "start_point": {"row": 100, "column": 46}, "end_point": {"row": 100, "column": 60}}, {"id": 352, "type": "parameter_declaration", "text": "const bool queue_rebalance", "parent": 345, "children": [353, 354], "start_point": {"row": 100, "column": 62}, "end_point": {"row": 100, "column": 88}}, {"id": 353, "type": "primitive_type", "text": "bool", "parent": 352, "children": [], "start_point": {"row": 100, "column": 68}, "end_point": {"row": 100, "column": 72}}, {"id": 354, "type": "identifier", "text": "queue_rebalance", "parent": 352, "children": [], "start_point": {"row": 100, "column": 73}, "end_point": {"row": 100, "column": 88}}, {"id": 355, "type": "parameter_declaration", "text": "const bool dynamic_rebalance", "parent": 345, "children": [356, 357], "start_point": {"row": 100, "column": 90}, "end_point": {"row": 100, "column": 118}}, {"id": 356, "type": "primitive_type", "text": "bool", "parent": 355, "children": [], "start_point": {"row": 100, "column": 96}, "end_point": {"row": 100, "column": 100}}, {"id": 357, "type": "identifier", "text": "dynamic_rebalance", "parent": 355, "children": [], "start_point": {"row": 100, "column": 101}, "end_point": {"row": 100, "column": 118}}, {"id": 358, "type": "declaration", "text": "int set_prio_quota(v4si& quota);", "parent": 138, "children": [359, 360], "start_point": {"row": 101, "column": 2}, "end_point": {"row": 101, "column": 34}}, {"id": 359, "type": "primitive_type", "text": "int", "parent": 358, "children": [], "start_point": {"row": 101, "column": 2}, "end_point": {"row": 101, "column": 5}}, {"id": 360, "type": "function_declarator", "text": "set_prio_quota(v4si& quota)", "parent": 358, "children": [361, 362], "start_point": {"row": 101, "column": 6}, "end_point": {"row": 101, "column": 33}}, {"id": 361, "type": "identifier", "text": "set_prio_quota", "parent": 360, "children": [], "start_point": {"row": 101, "column": 6}, "end_point": {"row": 101, "column": 20}}, {"id": 362, "type": "parameter_list", "text": "(v4si& quota)", "parent": 360, "children": [363], "start_point": {"row": 101, "column": 20}, "end_point": {"row": 101, "column": 33}}, {"id": 363, "type": "parameter_declaration", "text": "v4si& quota", "parent": 362, "children": [364, 365], "start_point": {"row": 101, "column": 21}, "end_point": {"row": 101, "column": 32}}, {"id": 364, "type": "type_identifier", "text": "v4si", "parent": 363, "children": [], "start_point": {"row": 101, "column": 21}, "end_point": {"row": 101, "column": 25}}, {"id": 365, "type": "identifier", "text": "quota", "parent": 363, "children": [], "start_point": {"row": 101, "column": 27}, "end_point": {"row": 101, "column": 32}}, {"id": 366, "type": "declaration", "text": "void destroy();", "parent": 138, "children": [367, 368], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 17}}, {"id": 367, "type": "primitive_type", "text": "void", "parent": 366, "children": [], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 6}}, {"id": 368, "type": "function_declarator", "text": "destroy()", "parent": 366, "children": [369, 370], "start_point": {"row": 102, "column": 7}, "end_point": {"row": 102, "column": 16}}, {"id": 369, "type": "identifier", "text": "destroy", "parent": 368, "children": [], "start_point": {"row": 102, "column": 7}, "end_point": {"row": 102, "column": 14}}, {"id": 370, "type": "parameter_list", "text": "()", "parent": 368, "children": [], "start_point": {"row": 102, "column": 14}, "end_point": {"row": 102, "column": 16}}, {"id": 371, "type": "function_definition", "text": "int64_t get_queued_num() const;\n int64_t get_each_queued_num(int queue_id) const\n {\n return (queue_id >= 0 && queue_id < QUEUE_COUNT) ? each_queue_len_[queue_id].value() : 0;\n }\n int add_thread(const int64_t thread_num, const int64_t task_num_limit);\n int sub_thread(const int64_t thread_num);\n int64_t get_thread_num() const\n {\n return thread_num_;\n }", "parent": 138, "children": [372, 373, 376, 407, 418, 426], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 113, "column": 3}}, {"id": 372, "type": "primitive_type", "text": "int64_t", "parent": 371, "children": [], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 103, "column": 9}}, {"id": 373, "type": "function_declarator", "text": "get_queued_num()", "parent": 371, "children": [374, 375], "start_point": {"row": 103, "column": 10}, "end_point": {"row": 103, "column": 26}}, {"id": 374, "type": "identifier", "text": "get_queued_num", "parent": 373, "children": [], "start_point": {"row": 103, "column": 10}, "end_point": {"row": 103, "column": 24}}, {"id": 375, "type": "parameter_list", "text": "()", "parent": 373, "children": [], "start_point": {"row": 103, "column": 24}, "end_point": {"row": 103, "column": 26}}, {"id": 376, "type": "declaration", "text": "const;\n int64_t get_each_queued_num(int queue_id) const\n {\n return (queue_id >= 0 && queue_id < QUEUE_COUNT) ? each_queue_len_[queue_id].value() : 0;", "parent": 371, "children": [377, 378, 402, 405], "start_point": {"row": 103, "column": 27}, "end_point": {"row": 106, "column": 93}}, {"id": 377, "type": "primitive_type", "text": "int64_t", "parent": 376, "children": [], "start_point": {"row": 104, "column": 2}, "end_point": {"row": 104, "column": 9}}, {"id": 378, "type": "ERROR", "text": "get_each_queued_num(int queue_id) const\n {\n return (queue_id >= 0 && queue_id < QUEUE_COUNT) ? each_queue_len_[queue_id].", "parent": 376, "children": [379], "start_point": {"row": 104, "column": 10}, "end_point": {"row": 106, "column": 81}}, {"id": 379, "type": "array_declarator", "text": "get_each_queued_num(int queue_id) const\n {\n return (queue_id >= 0 && queue_id < QUEUE_COUNT) ? each_queue_len_[queue_id]", "parent": 378, "children": [380, 401], "start_point": {"row": 104, "column": 10}, "end_point": {"row": 106, "column": 80}}, {"id": 380, "type": "function_declarator", "text": "get_each_queued_num(int queue_id) const\n {\n return (queue_id >= 0 && queue_id < QUEUE_COUNT) ? each_queue_len_", "parent": 379, "children": [381, 387, 388, 398, 400], "start_point": {"row": 104, "column": 10}, "end_point": {"row": 106, "column": 70}}, {"id": 381, "type": "function_declarator", "text": "get_each_queued_num(int queue_id) const", "parent": 380, "children": [382, 383], "start_point": {"row": 104, "column": 10}, "end_point": {"row": 104, "column": 49}}, {"id": 382, "type": "identifier", "text": "get_each_queued_num", "parent": 381, "children": [], "start_point": {"row": 104, "column": 10}, "end_point": {"row": 104, "column": 29}}, {"id": 383, "type": "parameter_list", "text": "(int queue_id)", "parent": 381, "children": [384], "start_point": {"row": 104, "column": 29}, "end_point": {"row": 104, "column": 43}}, {"id": 384, "type": "parameter_declaration", "text": "int queue_id", "parent": 383, "children": [385, 386], "start_point": {"row": 104, "column": 30}, "end_point": {"row": 104, "column": 42}}, {"id": 385, "type": "primitive_type", "text": "int", "parent": 384, "children": [], "start_point": {"row": 104, "column": 30}, "end_point": {"row": 104, "column": 33}}, {"id": 386, "type": "identifier", "text": "queue_id", "parent": 384, "children": [], "start_point": {"row": 104, "column": 34}, "end_point": {"row": 104, "column": 42}}, {"id": 387, "type": "ERROR", "text": "{\n return", "parent": 380, "children": [], "start_point": {"row": 105, "column": 2}, "end_point": {"row": 106, "column": 10}}, {"id": 388, "type": "parameter_list", "text": "(queue_id >= 0 && queue_id < QUEUE_COUNT)", "parent": 380, "children": [389], "start_point": {"row": 106, "column": 11}, "end_point": {"row": 106, "column": 52}}, {"id": 389, "type": "parameter_declaration", "text": "queue_id >= 0 && queue_id < QUEUE_COUNT", "parent": 388, "children": [390, 391, 397], "start_point": {"row": 106, "column": 12}, "end_point": {"row": 106, "column": 51}}, {"id": 390, "type": "type_identifier", "text": "queue_id", "parent": 389, "children": [], "start_point": {"row": 106, "column": 12}, "end_point": {"row": 106, "column": 20}}, {"id": 391, "type": "ERROR", "text": ">= 0 && queue_id <", "parent": 389, "children": [392, 393, 394, 395, 396], "start_point": {"row": 106, "column": 21}, "end_point": {"row": 106, "column": 39}}, {"id": 392, "type": ">=", "text": ">=", "parent": 391, "children": [], "start_point": {"row": 106, "column": 21}, "end_point": {"row": 106, "column": 23}}, {"id": 393, "type": "number_literal", "text": "0", "parent": 391, "children": [], "start_point": {"row": 106, "column": 24}, "end_point": {"row": 106, "column": 25}}, {"id": 394, "type": "&&", "text": "&&", "parent": 391, "children": [], "start_point": {"row": 106, "column": 26}, "end_point": {"row": 106, "column": 28}}, {"id": 395, "type": "identifier", "text": "queue_id", "parent": 391, "children": [], "start_point": {"row": 106, "column": 29}, "end_point": {"row": 106, "column": 37}}, {"id": 396, "type": "<", "text": "<", "parent": 391, "children": [], "start_point": {"row": 106, "column": 38}, "end_point": {"row": 106, "column": 39}}, {"id": 397, "type": "identifier", "text": "QUEUE_COUNT", "parent": 389, "children": [], "start_point": {"row": 106, "column": 40}, "end_point": {"row": 106, "column": 51}}, {"id": 398, "type": "ERROR", "text": "?", "parent": 380, "children": [399], "start_point": {"row": 106, "column": 53}, "end_point": {"row": 106, "column": 54}}, {"id": 399, "type": "?", "text": "?", "parent": 398, "children": [], "start_point": {"row": 106, "column": 53}, "end_point": {"row": 106, "column": 54}}, {"id": 400, "type": "identifier", "text": "each_queue_len_", "parent": 380, "children": [], "start_point": {"row": 106, "column": 55}, "end_point": {"row": 106, "column": 70}}, {"id": 401, "type": "identifier", "text": "queue_id", "parent": 379, "children": [], "start_point": {"row": 106, "column": 71}, "end_point": {"row": 106, "column": 79}}, {"id": 402, "type": "function_declarator", "text": "value()", "parent": 376, "children": [403, 404], "start_point": {"row": 106, "column": 81}, "end_point": {"row": 106, "column": 88}}, {"id": 403, "type": "identifier", "text": "value", "parent": 402, "children": [], "start_point": {"row": 106, "column": 81}, "end_point": {"row": 106, "column": 86}}, {"id": 404, "type": "parameter_list", "text": "()", "parent": 402, "children": [], "start_point": {"row": 106, "column": 86}, "end_point": {"row": 106, "column": 88}}, {"id": 405, "type": "ERROR", "text": ": 0", "parent": 376, "children": [406], "start_point": {"row": 106, "column": 89}, "end_point": {"row": 106, "column": 92}}, {"id": 406, "type": "number_literal", "text": "0", "parent": 405, "children": [], "start_point": {"row": 106, "column": 91}, "end_point": {"row": 106, "column": 92}}, {"id": 407, "type": "declaration", "text": "int add_thread(const int64_t thread_num, const int64_t task_num_limit);", "parent": 371, "children": [408, 409], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 108, "column": 73}}, {"id": 408, "type": "primitive_type", "text": "int", "parent": 407, "children": [], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 108, "column": 5}}, {"id": 409, "type": "function_declarator", "text": "add_thread(const int64_t thread_num, const int64_t task_num_limit)", "parent": 407, "children": [410, 411], "start_point": {"row": 108, "column": 6}, "end_point": {"row": 108, "column": 72}}, {"id": 410, "type": "identifier", "text": "add_thread", "parent": 409, "children": [], "start_point": {"row": 108, "column": 6}, "end_point": {"row": 108, "column": 16}}, {"id": 411, "type": "parameter_list", "text": "(const int64_t thread_num, const int64_t task_num_limit)", "parent": 409, "children": [412, 415], "start_point": {"row": 108, "column": 16}, "end_point": {"row": 108, "column": 72}}, {"id": 412, "type": "parameter_declaration", "text": "const int64_t thread_num", "parent": 411, "children": [413, 414], "start_point": {"row": 108, "column": 17}, "end_point": {"row": 108, "column": 41}}, {"id": 413, "type": "primitive_type", "text": "int64_t", "parent": 412, "children": [], "start_point": {"row": 108, "column": 23}, "end_point": {"row": 108, "column": 30}}, {"id": 414, "type": "identifier", "text": "thread_num", "parent": 412, "children": [], "start_point": {"row": 108, "column": 31}, "end_point": {"row": 108, "column": 41}}, {"id": 415, "type": "parameter_declaration", "text": "const int64_t task_num_limit", "parent": 411, "children": [416, 417], "start_point": {"row": 108, "column": 43}, "end_point": {"row": 108, "column": 71}}, {"id": 416, "type": "primitive_type", "text": "int64_t", "parent": 415, "children": [], "start_point": {"row": 108, "column": 49}, "end_point": {"row": 108, "column": 56}}, {"id": 417, "type": "identifier", "text": "task_num_limit", "parent": 415, "children": [], "start_point": {"row": 108, "column": 57}, "end_point": {"row": 108, "column": 71}}, {"id": 418, "type": "declaration", "text": "int sub_thread(const int64_t thread_num);", "parent": 371, "children": [419, 420], "start_point": {"row": 109, "column": 2}, "end_point": {"row": 109, "column": 43}}, {"id": 419, "type": "primitive_type", "text": "int", "parent": 418, "children": [], "start_point": {"row": 109, "column": 2}, "end_point": {"row": 109, "column": 5}}, {"id": 420, "type": "function_declarator", "text": "sub_thread(const int64_t thread_num)", "parent": 418, "children": [421, 422], "start_point": {"row": 109, "column": 6}, "end_point": {"row": 109, "column": 42}}, {"id": 421, "type": "identifier", "text": "sub_thread", "parent": 420, "children": [], "start_point": {"row": 109, "column": 6}, "end_point": {"row": 109, "column": 16}}, {"id": 422, "type": "parameter_list", "text": "(const int64_t thread_num)", "parent": 420, "children": [423], "start_point": {"row": 109, "column": 16}, "end_point": {"row": 109, "column": 42}}, {"id": 423, "type": "parameter_declaration", "text": "const int64_t thread_num", "parent": 422, "children": [424, 425], "start_point": {"row": 109, "column": 17}, "end_point": {"row": 109, "column": 41}}, {"id": 424, "type": "primitive_type", "text": "int64_t", "parent": 423, "children": [], "start_point": {"row": 109, "column": 23}, "end_point": {"row": 109, "column": 30}}, {"id": 425, "type": "identifier", "text": "thread_num", "parent": 423, "children": [], "start_point": {"row": 109, "column": 31}, "end_point": {"row": 109, "column": 41}}, {"id": 426, "type": "ERROR", "text": "int64_t get_thread_num() const", "parent": 371, "children": [427, 428], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 110, "column": 32}}, {"id": 427, "type": "primitive_type", "text": "int64_t", "parent": 426, "children": [], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 110, "column": 9}}, {"id": 428, "type": "function_declarator", "text": "get_thread_num() const", "parent": 426, "children": [429, 430], "start_point": {"row": 110, "column": 10}, "end_point": {"row": 110, "column": 32}}, {"id": 429, "type": "identifier", "text": "get_thread_num", "parent": 428, "children": [], "start_point": {"row": 110, "column": 10}, "end_point": {"row": 110, "column": 24}}, {"id": 430, "type": "parameter_list", "text": "()", "parent": 428, "children": [], "start_point": {"row": 110, "column": 24}, "end_point": {"row": 110, "column": 26}}, {"id": 431, "type": "return_statement", "text": "return thread_num_;", "parent": 371, "children": [432], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 112, "column": 23}}, {"id": 432, "type": "identifier", "text": "thread_num_", "parent": 431, "children": [], "start_point": {"row": 112, "column": 11}, "end_point": {"row": 112, "column": 22}}, {"id": 433, "type": "declaration", "text": "int wakeup();", "parent": 138, "children": [434, 435], "start_point": {"row": 114, "column": 2}, "end_point": {"row": 114, "column": 15}}, {"id": 434, "type": "primitive_type", "text": "int", "parent": 433, "children": [], "start_point": {"row": 114, "column": 2}, "end_point": {"row": 114, "column": 5}}, {"id": 435, "type": "function_declarator", "text": "wakeup()", "parent": 433, "children": [436, 437], "start_point": {"row": 114, "column": 6}, "end_point": {"row": 114, "column": 14}}, {"id": 436, "type": "identifier", "text": "wakeup", "parent": 435, "children": [], "start_point": {"row": 114, "column": 6}, "end_point": {"row": 114, "column": 12}}, {"id": 437, "type": "parameter_list", "text": "()", "parent": 435, "children": [], "start_point": {"row": 114, "column": 12}, "end_point": {"row": 114, "column": 14}}, {"id": 438, "type": "labeled_statement", "text": "public:\n int push(void* task, const int64_t prio = NORMAL_PRIV);", "parent": 138, "children": [439], "start_point": {"row": 116, "column": 0}, "end_point": {"row": 117, "column": 57}}, {"id": 439, "type": "declaration", "text": "int push(void* task, const int64_t prio = NORMAL_PRIV);", "parent": 438, "children": [440, 441], "start_point": {"row": 117, "column": 2}, "end_point": {"row": 117, "column": 57}}, {"id": 440, "type": "primitive_type", "text": "int", "parent": 439, "children": [], "start_point": {"row": 117, "column": 2}, "end_point": {"row": 117, "column": 5}}, {"id": 441, "type": "function_declarator", "text": "push(void* task, const int64_t prio = NORMAL_PRIV)", "parent": 439, "children": [442, 443], "start_point": {"row": 117, "column": 6}, "end_point": {"row": 117, "column": 56}}, {"id": 442, "type": "identifier", "text": "push", "parent": 441, "children": [], "start_point": {"row": 117, "column": 6}, "end_point": {"row": 117, "column": 10}}, {"id": 443, "type": "parameter_list", "text": "(void* task, const int64_t prio = NORMAL_PRIV)", "parent": 441, "children": [444, 449], "start_point": {"row": 117, "column": 10}, "end_point": {"row": 117, "column": 56}}, {"id": 444, "type": "parameter_declaration", "text": "void* task", "parent": 443, "children": [445, 446], "start_point": {"row": 117, "column": 11}, "end_point": {"row": 117, "column": 21}}, {"id": 445, "type": "primitive_type", "text": "void", "parent": 444, "children": [], "start_point": {"row": 117, "column": 11}, "end_point": {"row": 117, "column": 15}}, {"id": 446, "type": "pointer_declarator", "text": "* task", "parent": 444, "children": [447, 448], "start_point": {"row": 117, "column": 15}, "end_point": {"row": 117, "column": 21}}, {"id": 447, "type": "*", "text": "*", "parent": 446, "children": [], "start_point": {"row": 117, "column": 15}, "end_point": {"row": 117, "column": 16}}, {"id": 448, "type": "identifier", "text": "task", "parent": 446, "children": [], "start_point": {"row": 117, "column": 17}, "end_point": {"row": 117, "column": 21}}, {"id": 449, "type": "parameter_declaration", "text": "const int64_t prio = NORMAL_PRIV", "parent": 443, "children": [450, 451, 454], "start_point": {"row": 117, "column": 23}, "end_point": {"row": 117, "column": 55}}, {"id": 450, "type": "primitive_type", "text": "int64_t", "parent": 449, "children": [], "start_point": {"row": 117, "column": 29}, "end_point": {"row": 117, "column": 36}}, {"id": 451, "type": "ERROR", "text": "prio =", "parent": 449, "children": [452, 453], "start_point": {"row": 117, "column": 37}, "end_point": {"row": 117, "column": 43}}, {"id": 452, "type": "identifier", "text": "prio", "parent": 451, "children": [], "start_point": {"row": 117, "column": 37}, "end_point": {"row": 117, "column": 41}}, {"id": 453, "type": "=", "text": "=", "parent": 451, "children": [], "start_point": {"row": 117, "column": 42}, "end_point": {"row": 117, "column": 43}}, {"id": 454, "type": "identifier", "text": "NORMAL_PRIV", "parent": 449, "children": [], "start_point": {"row": 117, "column": 44}, "end_point": {"row": 117, "column": 55}}, {"id": 455, "type": "declaration", "text": "int push(void* task, const uint64_t task_sign, const int64_t prio);", "parent": 138, "children": [456, 457], "start_point": {"row": 118, "column": 2}, "end_point": {"row": 118, "column": 69}}, {"id": 456, "type": "primitive_type", "text": "int", "parent": 455, "children": [], "start_point": {"row": 118, "column": 2}, "end_point": {"row": 118, "column": 5}}, {"id": 457, "type": "function_declarator", "text": "push(void* task, const uint64_t task_sign, const int64_t prio)", "parent": 455, "children": [458, 459], "start_point": {"row": 118, "column": 6}, "end_point": {"row": 118, "column": 68}}, {"id": 458, "type": "identifier", "text": "push", "parent": 457, "children": [], "start_point": {"row": 118, "column": 6}, "end_point": {"row": 118, "column": 10}}, {"id": 459, "type": "parameter_list", "text": "(void* task, const uint64_t task_sign, const int64_t prio)", "parent": 457, "children": [460, 465, 468], "start_point": {"row": 118, "column": 10}, "end_point": {"row": 118, "column": 68}}, {"id": 460, "type": "parameter_declaration", "text": "void* task", "parent": 459, "children": [461, 462], "start_point": {"row": 118, "column": 11}, "end_point": {"row": 118, "column": 21}}, {"id": 461, "type": "primitive_type", "text": "void", "parent": 460, "children": [], "start_point": {"row": 118, "column": 11}, "end_point": {"row": 118, "column": 15}}, {"id": 462, "type": "pointer_declarator", "text": "* task", "parent": 460, "children": [463, 464], "start_point": {"row": 118, "column": 15}, "end_point": {"row": 118, "column": 21}}, {"id": 463, "type": "*", "text": "*", "parent": 462, "children": [], "start_point": {"row": 118, "column": 15}, "end_point": {"row": 118, "column": 16}}, {"id": 464, "type": "identifier", "text": "task", "parent": 462, "children": [], "start_point": {"row": 118, "column": 17}, "end_point": {"row": 118, "column": 21}}, {"id": 465, "type": "parameter_declaration", "text": "const uint64_t task_sign", "parent": 459, "children": [466, 467], "start_point": {"row": 118, "column": 23}, "end_point": {"row": 118, "column": 47}}, {"id": 466, "type": "primitive_type", "text": "uint64_t", "parent": 465, "children": [], "start_point": {"row": 118, "column": 29}, "end_point": {"row": 118, "column": 37}}, {"id": 467, "type": "identifier", "text": "task_sign", "parent": 465, "children": [], "start_point": {"row": 118, "column": 38}, "end_point": {"row": 118, "column": 47}}, {"id": 468, "type": "parameter_declaration", "text": "const int64_t prio", "parent": 459, "children": [469, 470], "start_point": {"row": 118, "column": 49}, "end_point": {"row": 118, "column": 67}}, {"id": 469, "type": "primitive_type", "text": "int64_t", "parent": 468, "children": [], "start_point": {"row": 118, "column": 55}, "end_point": {"row": 118, "column": 62}}, {"id": 470, "type": "identifier", "text": "prio", "parent": 468, "children": [], "start_point": {"row": 118, "column": 63}, "end_point": {"row": 118, "column": 67}}, {"id": 471, "type": "declaration", "text": "int push_low_prio(void* task);", "parent": 138, "children": [472, 473], "start_point": {"row": 119, "column": 2}, "end_point": {"row": 119, "column": 32}}, {"id": 472, "type": "primitive_type", "text": "int", "parent": 471, "children": [], "start_point": {"row": 119, "column": 2}, "end_point": {"row": 119, "column": 5}}, {"id": 473, "type": "function_declarator", "text": "push_low_prio(void* task)", "parent": 471, "children": [474, 475], "start_point": {"row": 119, "column": 6}, "end_point": {"row": 119, "column": 31}}, {"id": 474, "type": "identifier", "text": "push_low_prio", "parent": 473, "children": [], "start_point": {"row": 119, "column": 6}, "end_point": {"row": 119, "column": 19}}, {"id": 475, "type": "parameter_list", "text": "(void* task)", "parent": 473, "children": [476], "start_point": {"row": 119, "column": 19}, "end_point": {"row": 119, "column": 31}}, {"id": 476, "type": "parameter_declaration", "text": "void* task", "parent": 475, "children": [477, 478], "start_point": {"row": 119, "column": 20}, "end_point": {"row": 119, "column": 30}}, {"id": 477, "type": "primitive_type", "text": "void", "parent": 476, "children": [], "start_point": {"row": 119, "column": 20}, "end_point": {"row": 119, "column": 24}}, {"id": 478, "type": "pointer_declarator", "text": "* task", "parent": 476, "children": [479, 480], "start_point": {"row": 119, "column": 24}, "end_point": {"row": 119, "column": 30}}, {"id": 479, "type": "*", "text": "*", "parent": 478, "children": [], "start_point": {"row": 119, "column": 24}, "end_point": {"row": 119, "column": 25}}, {"id": 480, "type": "identifier", "text": "task", "parent": 478, "children": [], "start_point": {"row": 119, "column": 26}, "end_point": {"row": 119, "column": 30}}, {"id": 481, "type": "declaration", "text": "int64_t& thread_index();", "parent": 138, "children": [482, 483], "start_point": {"row": 120, "column": 2}, "end_point": {"row": 120, "column": 26}}, {"id": 482, "type": "primitive_type", "text": "int64_t", "parent": 481, "children": [], "start_point": {"row": 120, "column": 2}, "end_point": {"row": 120, "column": 9}}, {"id": 483, "type": "function_declarator", "text": "thread_index()", "parent": 481, "children": [484, 485], "start_point": {"row": 120, "column": 11}, "end_point": {"row": 120, "column": 25}}, {"id": 484, "type": "identifier", "text": "thread_index", "parent": 483, "children": [], "start_point": {"row": 120, "column": 11}, "end_point": {"row": 120, "column": 23}}, {"id": 485, "type": "parameter_list", "text": "()", "parent": 483, "children": [], "start_point": {"row": 120, "column": 23}, "end_point": {"row": 120, "column": 25}}, {"id": 486, "type": "function_definition", "text": "int64_t get_thread_index() const;\n virtual void on_iter()\n {}\n virtual void handle(void* task, void* pdata) = 0;\n virtual void handle_with_stopflag(void* task, void* pdata, volatile bool& stop_flag)\n {\n handle(task, pdata);\n if (stop_flag) {}", "parent": 138, "children": [487, 488, 491, 516, 545], "start_point": {"row": 121, "column": 2}, "end_point": {"row": 128, "column": 21}}, {"id": 487, "type": "primitive_type", "text": "int64_t", "parent": 486, "children": [], "start_point": {"row": 121, "column": 2}, "end_point": {"row": 121, "column": 9}}, {"id": 488, "type": "function_declarator", "text": "get_thread_index()", "parent": 486, "children": [489, 490], "start_point": {"row": 121, "column": 10}, "end_point": {"row": 121, "column": 28}}, {"id": 489, "type": "identifier", "text": "get_thread_index", "parent": 488, "children": [], "start_point": {"row": 121, "column": 10}, "end_point": {"row": 121, "column": 26}}, {"id": 490, "type": "parameter_list", "text": "()", "parent": 488, "children": [], "start_point": {"row": 121, "column": 26}, "end_point": {"row": 121, "column": 28}}, {"id": 491, "type": "declaration", "text": "const;\n virtual void on_iter()\n {}\n virtual void handle(void* task, void* pdata) = 0;", "parent": 486, "children": [492, 493, 500], "start_point": {"row": 121, "column": 29}, "end_point": {"row": 124, "column": 51}}, {"id": 492, "type": "type_identifier", "text": "virtual", "parent": 491, "children": [], "start_point": {"row": 122, "column": 2}, "end_point": {"row": 122, "column": 9}}, {"id": 493, "type": "ERROR", "text": "void on_iter()\n {}\n virtual void", "parent": 491, "children": [494, 495, 498, 499], "start_point": {"row": 122, "column": 10}, "end_point": {"row": 124, "column": 14}}, {"id": 494, "type": "identifier", "text": "void", "parent": 493, "children": [], "start_point": {"row": 122, "column": 10}, "end_point": {"row": 122, "column": 14}}, {"id": 495, "type": "function_declarator", "text": "on_iter()", "parent": 493, "children": [496, 497], "start_point": {"row": 122, "column": 15}, "end_point": {"row": 122, "column": 24}}, {"id": 496, "type": "identifier", "text": "on_iter", "parent": 495, "children": [], "start_point": {"row": 122, "column": 15}, "end_point": {"row": 122, "column": 22}}, {"id": 497, "type": "parameter_list", "text": "()", "parent": 495, "children": [], "start_point": {"row": 122, "column": 22}, "end_point": {"row": 122, "column": 24}}, {"id": 498, "type": "identifier", "text": "virtual", "parent": 493, "children": [], "start_point": {"row": 124, "column": 2}, "end_point": {"row": 124, "column": 9}}, {"id": 499, "type": "identifier", "text": "void", "parent": 493, "children": [], "start_point": {"row": 124, "column": 10}, "end_point": {"row": 124, "column": 14}}, {"id": 500, "type": "init_declarator", "text": "handle(void* task, void* pdata) = 0", "parent": 491, "children": [501, 514, 515], "start_point": {"row": 124, "column": 15}, "end_point": {"row": 124, "column": 50}}, {"id": 501, "type": "function_declarator", "text": "handle(void* task, void* pdata)", "parent": 500, "children": [502, 503], "start_point": {"row": 124, "column": 15}, "end_point": {"row": 124, "column": 46}}, {"id": 502, "type": "identifier", "text": "handle", "parent": 501, "children": [], "start_point": {"row": 124, "column": 15}, "end_point": {"row": 124, "column": 21}}, {"id": 503, "type": "parameter_list", "text": "(void* task, void* pdata)", "parent": 501, "children": [504, 509], "start_point": {"row": 124, "column": 21}, "end_point": {"row": 124, "column": 46}}, {"id": 504, "type": "parameter_declaration", "text": "void* task", "parent": 503, "children": [505, 506], "start_point": {"row": 124, "column": 22}, "end_point": {"row": 124, "column": 32}}, {"id": 505, "type": "primitive_type", "text": "void", "parent": 504, "children": [], "start_point": {"row": 124, "column": 22}, "end_point": {"row": 124, "column": 26}}, {"id": 506, "type": "pointer_declarator", "text": "* task", "parent": 504, "children": [507, 508], "start_point": {"row": 124, "column": 26}, "end_point": {"row": 124, "column": 32}}, {"id": 507, "type": "*", "text": "*", "parent": 506, "children": [], "start_point": {"row": 124, "column": 26}, "end_point": {"row": 124, "column": 27}}, {"id": 508, "type": "identifier", "text": "task", "parent": 506, "children": [], "start_point": {"row": 124, "column": 28}, "end_point": {"row": 124, "column": 32}}, {"id": 509, "type": "parameter_declaration", "text": "void* pdata", "parent": 503, "children": [510, 511], "start_point": {"row": 124, "column": 34}, "end_point": {"row": 124, "column": 45}}, {"id": 510, "type": "primitive_type", "text": "void", "parent": 509, "children": [], "start_point": {"row": 124, "column": 34}, "end_point": {"row": 124, "column": 38}}, {"id": 511, "type": "pointer_declarator", "text": "* pdata", "parent": 509, "children": [512, 513], "start_point": {"row": 124, "column": 38}, "end_point": {"row": 124, "column": 45}}, {"id": 512, "type": "*", "text": "*", "parent": 511, "children": [], "start_point": {"row": 124, "column": 38}, "end_point": {"row": 124, "column": 39}}, {"id": 513, "type": "identifier", "text": "pdata", "parent": 511, "children": [], "start_point": {"row": 124, "column": 40}, "end_point": {"row": 124, "column": 45}}, {"id": 514, "type": "=", "text": "=", "parent": 500, "children": [], "start_point": {"row": 124, "column": 47}, "end_point": {"row": 124, "column": 48}}, {"id": 515, "type": "number_literal", "text": "0", "parent": 500, "children": [], "start_point": {"row": 124, "column": 49}, "end_point": {"row": 124, "column": 50}}, {"id": 516, "type": "declaration", "text": "virtual void handle_with_stopflag(void* task, void* pdata, volatile bool& stop_flag)\n {\n handle(task, pdata);", "parent": 486, "children": [517, 518, 538], "start_point": {"row": 125, "column": 2}, "end_point": {"row": 127, "column": 24}}, {"id": 517, "type": "type_identifier", "text": "virtual", "parent": 516, "children": [], "start_point": {"row": 125, "column": 2}, "end_point": {"row": 125, "column": 9}}, {"id": 518, "type": "ERROR", "text": "void handle_with_stopflag(void* task, void* pdata, volatile bool& stop_flag)\n {", "parent": 516, "children": [519, 520], "start_point": {"row": 125, "column": 10}, "end_point": {"row": 126, "column": 3}}, {"id": 519, "type": "identifier", "text": "void", "parent": 518, "children": [], "start_point": {"row": 125, "column": 10}, "end_point": {"row": 125, "column": 14}}, {"id": 520, "type": "function_declarator", "text": "handle_with_stopflag(void* task, void* pdata, volatile bool& stop_flag)", "parent": 518, "children": [521, 522], "start_point": {"row": 125, "column": 15}, "end_point": {"row": 125, "column": 86}}, {"id": 521, "type": "identifier", "text": "handle_with_stopflag", "parent": 520, "children": [], "start_point": {"row": 125, "column": 15}, "end_point": {"row": 125, "column": 35}}, {"id": 522, "type": "parameter_list", "text": "(void* task, void* pdata, volatile bool& stop_flag)", "parent": 520, "children": [523, 528, 533], "start_point": {"row": 125, "column": 35}, "end_point": {"row": 125, "column": 86}}, {"id": 523, "type": "parameter_declaration", "text": "void* task", "parent": 522, "children": [524, 525], "start_point": {"row": 125, "column": 36}, "end_point": {"row": 125, "column": 46}}, {"id": 524, "type": "primitive_type", "text": "void", "parent": 523, "children": [], "start_point": {"row": 125, "column": 36}, "end_point": {"row": 125, "column": 40}}, {"id": 525, "type": "pointer_declarator", "text": "* task", "parent": 523, "children": [526, 527], "start_point": {"row": 125, "column": 40}, "end_point": {"row": 125, "column": 46}}, {"id": 526, "type": "*", "text": "*", "parent": 525, "children": [], "start_point": {"row": 125, "column": 40}, "end_point": {"row": 125, "column": 41}}, {"id": 527, "type": "identifier", "text": "task", "parent": 525, "children": [], "start_point": {"row": 125, "column": 42}, "end_point": {"row": 125, "column": 46}}, {"id": 528, "type": "parameter_declaration", "text": "void* pdata", "parent": 522, "children": [529, 530], "start_point": {"row": 125, "column": 48}, "end_point": {"row": 125, "column": 59}}, {"id": 529, "type": "primitive_type", "text": "void", "parent": 528, "children": [], "start_point": {"row": 125, "column": 48}, "end_point": {"row": 125, "column": 52}}, {"id": 530, "type": "pointer_declarator", "text": "* pdata", "parent": 528, "children": [531, 532], "start_point": {"row": 125, "column": 52}, "end_point": {"row": 125, "column": 59}}, {"id": 531, "type": "*", "text": "*", "parent": 530, "children": [], "start_point": {"row": 125, "column": 52}, "end_point": {"row": 125, "column": 53}}, {"id": 532, "type": "identifier", "text": "pdata", "parent": 530, "children": [], "start_point": {"row": 125, "column": 54}, "end_point": {"row": 125, "column": 59}}, {"id": 533, "type": "parameter_declaration", "text": "volatile bool& stop_flag", "parent": 522, "children": [534, 536, 537], "start_point": {"row": 125, "column": 61}, "end_point": {"row": 125, "column": 85}}, {"id": 534, "type": "type_qualifier", "text": "volatile", "parent": 533, "children": [535], "start_point": {"row": 125, "column": 61}, "end_point": {"row": 125, "column": 69}}, {"id": 535, "type": "volatile", "text": "volatile", "parent": 534, "children": [], "start_point": {"row": 125, "column": 61}, "end_point": {"row": 125, "column": 69}}, {"id": 536, "type": "primitive_type", "text": "bool", "parent": 533, "children": [], "start_point": {"row": 125, "column": 70}, "end_point": {"row": 125, "column": 74}}, {"id": 537, "type": "identifier", "text": "stop_flag", "parent": 533, "children": [], "start_point": {"row": 125, "column": 76}, "end_point": {"row": 125, "column": 85}}, {"id": 538, "type": "function_declarator", "text": "handle(task, pdata)", "parent": 516, "children": [539, 540], "start_point": {"row": 127, "column": 4}, "end_point": {"row": 127, "column": 23}}, {"id": 539, "type": "identifier", "text": "handle", "parent": 538, "children": [], "start_point": {"row": 127, "column": 4}, "end_point": {"row": 127, "column": 10}}, {"id": 540, "type": "parameter_list", "text": "(task, pdata)", "parent": 538, "children": [541, 543], "start_point": {"row": 127, "column": 10}, "end_point": {"row": 127, "column": 23}}, {"id": 541, "type": "parameter_declaration", "text": "task", "parent": 540, "children": [542], "start_point": {"row": 127, "column": 11}, "end_point": {"row": 127, "column": 15}}, {"id": 542, "type": "type_identifier", "text": "task", "parent": 541, "children": [], "start_point": {"row": 127, "column": 11}, "end_point": {"row": 127, "column": 15}}, {"id": 543, "type": "parameter_declaration", "text": "pdata", "parent": 540, "children": [544], "start_point": {"row": 127, "column": 17}, "end_point": {"row": 127, "column": 22}}, {"id": 544, "type": "type_identifier", "text": "pdata", "parent": 543, "children": [], "start_point": {"row": 127, "column": 17}, "end_point": {"row": 127, "column": 22}}, {"id": 545, "type": "ERROR", "text": "if (stop_flag)", "parent": 486, "children": [546], "start_point": {"row": 128, "column": 4}, "end_point": {"row": 128, "column": 18}}, {"id": 546, "type": "macro_type_specifier", "text": "if (stop_flag)", "parent": 545, "children": [547], "start_point": {"row": 128, "column": 4}, "end_point": {"row": 128, "column": 18}}, {"id": 547, "type": "type_descriptor", "text": "stop_flag", "parent": 546, "children": [548], "start_point": {"row": 128, "column": 8}, "end_point": {"row": 128, "column": 17}}, {"id": 548, "type": "type_identifier", "text": "stop_flag", "parent": 547, "children": [], "start_point": {"row": 128, "column": 8}, "end_point": {"row": 128, "column": 17}}, {"id": 549, "type": "function_definition", "text": "virtual void* on_begin()\n {\n return NULL;\n }", "parent": 39, "children": [550, 551, 553], "start_point": {"row": 130, "column": 2}, "end_point": {"row": 133, "column": 3}}, {"id": 550, "type": "type_identifier", "text": "virtual", "parent": 549, "children": [], "start_point": {"row": 130, "column": 2}, "end_point": {"row": 130, "column": 9}}, {"id": 551, "type": "ERROR", "text": "void", "parent": 549, "children": [552], "start_point": {"row": 130, "column": 10}, "end_point": {"row": 130, "column": 14}}, {"id": 552, "type": "identifier", "text": "void", "parent": 551, "children": [], "start_point": {"row": 130, "column": 10}, "end_point": {"row": 130, "column": 14}}, {"id": 553, "type": "pointer_declarator", "text": "* on_begin()", "parent": 549, "children": [554, 555], "start_point": {"row": 130, "column": 14}, "end_point": {"row": 130, "column": 26}}, {"id": 554, "type": "*", "text": "*", "parent": 553, "children": [], "start_point": {"row": 130, "column": 14}, "end_point": {"row": 130, "column": 15}}, {"id": 555, "type": "function_declarator", "text": "on_begin()", "parent": 553, "children": [556, 557], "start_point": {"row": 130, "column": 16}, "end_point": {"row": 130, "column": 26}}, {"id": 556, "type": "identifier", "text": "on_begin", "parent": 555, "children": [], "start_point": {"row": 130, "column": 16}, "end_point": {"row": 130, "column": 24}}, {"id": 557, "type": "parameter_list", "text": "()", "parent": 555, "children": [], "start_point": {"row": 130, "column": 24}, "end_point": {"row": 130, "column": 26}}, {"id": 558, "type": "return_statement", "text": "return NULL;", "parent": 549, "children": [559], "start_point": {"row": 132, "column": 4}, "end_point": {"row": 132, "column": 16}}, {"id": 559, "type": "null", "text": "NULL", "parent": 558, "children": [560], "start_point": {"row": 132, "column": 11}, "end_point": {"row": 132, "column": 15}}, {"id": 560, "type": "NULL", "text": "NULL", "parent": 559, "children": [], "start_point": {"row": 132, "column": 11}, "end_point": {"row": 132, "column": 15}}, {"id": 561, "type": "function_definition", "text": "virtual void on_end(void* ptr)\n {\n UNUSED(ptr);\n }", "parent": 39, "children": [562, 563, 565], "start_point": {"row": 134, "column": 2}, "end_point": {"row": 137, "column": 3}}, {"id": 562, "type": "type_identifier", "text": "virtual", "parent": 561, "children": [], "start_point": {"row": 134, "column": 2}, "end_point": {"row": 134, "column": 9}}, {"id": 563, "type": "ERROR", "text": "void", "parent": 561, "children": [564], "start_point": {"row": 134, "column": 10}, "end_point": {"row": 134, "column": 14}}, {"id": 564, "type": "identifier", "text": "void", "parent": 563, "children": [], "start_point": {"row": 134, "column": 10}, "end_point": {"row": 134, "column": 14}}, {"id": 565, "type": "function_declarator", "text": "on_end(void* ptr)", "parent": 561, "children": [566, 567], "start_point": {"row": 134, "column": 15}, "end_point": {"row": 134, "column": 32}}, {"id": 566, "type": "identifier", "text": "on_end", "parent": 565, "children": [], "start_point": {"row": 134, "column": 15}, "end_point": {"row": 134, "column": 21}}, {"id": 567, "type": "parameter_list", "text": "(void* ptr)", "parent": 565, "children": [568], "start_point": {"row": 134, "column": 21}, "end_point": {"row": 134, "column": 32}}, {"id": 568, "type": "parameter_declaration", "text": "void* ptr", "parent": 567, "children": [569, 570], "start_point": {"row": 134, "column": 22}, "end_point": {"row": 134, "column": 31}}, {"id": 569, "type": "primitive_type", "text": "void", "parent": 568, "children": [], "start_point": {"row": 134, "column": 22}, "end_point": {"row": 134, "column": 26}}, {"id": 570, "type": "pointer_declarator", "text": "* ptr", "parent": 568, "children": [571, 572], "start_point": {"row": 134, "column": 26}, "end_point": {"row": 134, "column": 31}}, {"id": 571, "type": "*", "text": "*", "parent": 570, "children": [], "start_point": {"row": 134, "column": 26}, "end_point": {"row": 134, "column": 27}}, {"id": 572, "type": "identifier", "text": "ptr", "parent": 570, "children": [], "start_point": {"row": 134, "column": 28}, "end_point": {"row": 134, "column": 31}}, {"id": 573, "type": "call_expression", "text": "UNUSED(ptr)", "parent": 561, "children": [574, 575], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 136, "column": 15}}, {"id": 574, "type": "identifier", "text": "UNUSED", "parent": 573, "children": [], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 136, "column": 10}}, {"id": 575, "type": "argument_list", "text": "(ptr)", "parent": 573, "children": [576], "start_point": {"row": 136, "column": 10}, "end_point": {"row": 136, "column": 15}}, {"id": 576, "type": "identifier", "text": "ptr", "parent": 575, "children": [], "start_point": {"row": 136, "column": 11}, "end_point": {"row": 136, "column": 14}}, {"id": 577, "type": "labeled_statement", "text": "private:\n void* rebalance_(int64_t& idx, const ThreadConf& cur_thread);", "parent": 39, "children": [578], "start_point": {"row": 139, "column": 0}, "end_point": {"row": 140, "column": 63}}, {"id": 578, "type": "declaration", "text": "void* rebalance_(int64_t& idx, const ThreadConf& cur_thread);", "parent": 577, "children": [579, 580], "start_point": {"row": 140, "column": 2}, "end_point": {"row": 140, "column": 63}}, {"id": 579, "type": "primitive_type", "text": "void", "parent": 578, "children": [], "start_point": {"row": 140, "column": 2}, "end_point": {"row": 140, "column": 6}}, {"id": 580, "type": "pointer_declarator", "text": "* rebalance_(int64_t& idx, const ThreadConf& cur_thread)", "parent": 578, "children": [581, 582], "start_point": {"row": 140, "column": 6}, "end_point": {"row": 140, "column": 62}}, {"id": 581, "type": "*", "text": "*", "parent": 580, "children": [], "start_point": {"row": 140, "column": 6}, "end_point": {"row": 140, "column": 7}}, {"id": 582, "type": "function_declarator", "text": "rebalance_(int64_t& idx, const ThreadConf& cur_thread)", "parent": 580, "children": [583, 584], "start_point": {"row": 140, "column": 8}, "end_point": {"row": 140, "column": 62}}, {"id": 583, "type": "identifier", "text": "rebalance_", "parent": 582, "children": [], "start_point": {"row": 140, "column": 8}, "end_point": {"row": 140, "column": 18}}, {"id": 584, "type": "parameter_list", "text": "(int64_t& idx, const ThreadConf& cur_thread)", "parent": 582, "children": [585, 588], "start_point": {"row": 140, "column": 18}, "end_point": {"row": 140, "column": 62}}, {"id": 585, "type": "parameter_declaration", "text": "int64_t& idx", "parent": 584, "children": [586, 587], "start_point": {"row": 140, "column": 19}, "end_point": {"row": 140, "column": 31}}, {"id": 586, "type": "primitive_type", "text": "int64_t", "parent": 585, "children": [], "start_point": {"row": 140, "column": 19}, "end_point": {"row": 140, "column": 26}}, {"id": 587, "type": "identifier", "text": "idx", "parent": 585, "children": [], "start_point": {"row": 140, "column": 28}, "end_point": {"row": 140, "column": 31}}, {"id": 588, "type": "parameter_declaration", "text": "const ThreadConf& cur_thread", "parent": 584, "children": [589, 590], "start_point": {"row": 140, "column": 33}, "end_point": {"row": 140, "column": 61}}, {"id": 589, "type": "type_identifier", "text": "ThreadConf", "parent": 588, "children": [], "start_point": {"row": 140, "column": 39}, "end_point": {"row": 140, "column": 49}}, {"id": 590, "type": "identifier", "text": "cur_thread", "parent": 588, "children": [], "start_point": {"row": 140, "column": 51}, "end_point": {"row": 140, "column": 61}}, {"id": 591, "type": "declaration", "text": "int launch_thread_(const int64_t thread_num, const int64_t task_num_limit);", "parent": 39, "children": [592, 593], "start_point": {"row": 141, "column": 2}, "end_point": {"row": 141, "column": 77}}, {"id": 592, "type": "primitive_type", "text": "int", "parent": 591, "children": [], "start_point": {"row": 141, "column": 2}, "end_point": {"row": 141, "column": 5}}, {"id": 593, "type": "function_declarator", "text": "launch_thread_(const int64_t thread_num, const int64_t task_num_limit)", "parent": 591, "children": [594, 595], "start_point": {"row": 141, "column": 6}, "end_point": {"row": 141, "column": 76}}, {"id": 594, "type": "identifier", "text": "launch_thread_", "parent": 593, "children": [], "start_point": {"row": 141, "column": 6}, "end_point": {"row": 141, "column": 20}}, {"id": 595, "type": "parameter_list", "text": "(const int64_t thread_num, const int64_t task_num_limit)", "parent": 593, "children": [596, 599], "start_point": {"row": 141, "column": 20}, "end_point": {"row": 141, "column": 76}}, {"id": 596, "type": "parameter_declaration", "text": "const int64_t thread_num", "parent": 595, "children": [597, 598], "start_point": {"row": 141, "column": 21}, "end_point": {"row": 141, "column": 45}}, {"id": 597, "type": "primitive_type", "text": "int64_t", "parent": 596, "children": [], "start_point": {"row": 141, "column": 27}, "end_point": {"row": 141, "column": 34}}, {"id": 598, "type": "identifier", "text": "thread_num", "parent": 596, "children": [], "start_point": {"row": 141, "column": 35}, "end_point": {"row": 141, "column": 45}}, {"id": 599, "type": "parameter_declaration", "text": "const int64_t task_num_limit", "parent": 595, "children": [600, 601], "start_point": {"row": 141, "column": 47}, "end_point": {"row": 141, "column": 75}}, {"id": 600, "type": "primitive_type", "text": "int64_t", "parent": 599, "children": [], "start_point": {"row": 141, "column": 53}, "end_point": {"row": 141, "column": 60}}, {"id": 601, "type": "identifier", "text": "task_num_limit", "parent": 599, "children": [], "start_point": {"row": 141, "column": 61}, "end_point": {"row": 141, "column": 75}}, {"id": 602, "type": "declaration", "text": "static void* thread_func_(void* data);", "parent": 39, "children": [603, 604], "start_point": {"row": 142, "column": 2}, "end_point": {"row": 142, "column": 40}}, {"id": 603, "type": "primitive_type", "text": "void", "parent": 602, "children": [], "start_point": {"row": 142, "column": 9}, "end_point": {"row": 142, "column": 13}}, {"id": 604, "type": "pointer_declarator", "text": "* thread_func_(void* data)", "parent": 602, "children": [605, 606], "start_point": {"row": 142, "column": 13}, "end_point": {"row": 142, "column": 39}}, {"id": 605, "type": "*", "text": "*", "parent": 604, "children": [], "start_point": {"row": 142, "column": 13}, "end_point": {"row": 142, "column": 14}}, {"id": 606, "type": "function_declarator", "text": "thread_func_(void* data)", "parent": 604, "children": [607, 608], "start_point": {"row": 142, "column": 15}, "end_point": {"row": 142, "column": 39}}, {"id": 607, "type": "identifier", "text": "thread_func_", "parent": 606, "children": [], "start_point": {"row": 142, "column": 15}, "end_point": {"row": 142, "column": 27}}, {"id": 608, "type": "parameter_list", "text": "(void* data)", "parent": 606, "children": [609], "start_point": {"row": 142, "column": 27}, "end_point": {"row": 142, "column": 39}}, {"id": 609, "type": "parameter_declaration", "text": "void* data", "parent": 608, "children": [610, 611], "start_point": {"row": 142, "column": 28}, "end_point": {"row": 142, "column": 38}}, {"id": 610, "type": "primitive_type", "text": "void", "parent": 609, "children": [], "start_point": {"row": 142, "column": 28}, "end_point": {"row": 142, "column": 32}}, {"id": 611, "type": "pointer_declarator", "text": "* data", "parent": 609, "children": [612, 613], "start_point": {"row": 142, "column": 32}, "end_point": {"row": 142, "column": 38}}, {"id": 612, "type": "*", "text": "*", "parent": 611, "children": [], "start_point": {"row": 142, "column": 32}, "end_point": {"row": 142, "column": 33}}, {"id": 613, "type": "identifier", "text": "data", "parent": 611, "children": [], "start_point": {"row": 142, "column": 34}, "end_point": {"row": 142, "column": 38}}, {"id": 614, "type": "labeled_statement", "text": "private:\n int64_t thread_num_;", "parent": 39, "children": [615], "start_point": {"row": 144, "column": 0}, "end_point": {"row": 145, "column": 22}}, {"id": 615, "type": "declaration", "text": "int64_t thread_num_;", "parent": 614, "children": [616, 617], "start_point": {"row": 145, "column": 2}, "end_point": {"row": 145, "column": 22}}, {"id": 616, "type": "primitive_type", "text": "int64_t", "parent": 615, "children": [], "start_point": {"row": 145, "column": 2}, "end_point": {"row": 145, "column": 9}}, {"id": 617, "type": "identifier", "text": "thread_num_", "parent": 615, "children": [], "start_point": {"row": 145, "column": 10}, "end_point": {"row": 145, "column": 21}}, {"id": 618, "type": "declaration", "text": "volatile uint64_t thread_conf_iter_;", "parent": 39, "children": [619, 621, 622], "start_point": {"row": 146, "column": 2}, "end_point": {"row": 146, "column": 38}}, {"id": 619, "type": "type_qualifier", "text": "volatile", "parent": 618, "children": [620], "start_point": {"row": 146, "column": 2}, "end_point": {"row": 146, "column": 10}}, {"id": 620, "type": "volatile", "text": "volatile", "parent": 619, "children": [], "start_point": {"row": 146, "column": 2}, "end_point": {"row": 146, "column": 10}}, {"id": 621, "type": "primitive_type", "text": "uint64_t", "parent": 618, "children": [], "start_point": {"row": 146, "column": 11}, "end_point": {"row": 146, "column": 19}}, {"id": 622, "type": "identifier", "text": "thread_conf_iter_", "parent": 618, "children": [], "start_point": {"row": 146, "column": 20}, "end_point": {"row": 146, "column": 37}}, {"id": 623, "type": "declaration", "text": "RWLock thread_conf_lock_;", "parent": 39, "children": [624, 625], "start_point": {"row": 147, "column": 2}, "end_point": {"row": 147, "column": 27}}, {"id": 624, "type": "type_identifier", "text": "RWLock", "parent": 623, "children": [], "start_point": {"row": 147, "column": 2}, "end_point": {"row": 147, "column": 8}}, {"id": 625, "type": "identifier", "text": "thread_conf_lock_", "parent": 623, "children": [], "start_point": {"row": 147, "column": 9}, "end_point": {"row": 147, "column": 26}}, {"id": 626, "type": "declaration", "text": "ThreadConf thread_conf_array_[MAX_THREAD_NUM];", "parent": 39, "children": [627, 628], "start_point": {"row": 148, "column": 2}, "end_point": {"row": 148, "column": 48}}, {"id": 627, "type": "type_identifier", "text": "ThreadConf", "parent": 626, "children": [], "start_point": {"row": 148, "column": 2}, "end_point": {"row": 148, "column": 12}}, {"id": 628, "type": "array_declarator", "text": "thread_conf_array_[MAX_THREAD_NUM]", "parent": 626, "children": [629, 630], "start_point": {"row": 148, "column": 13}, "end_point": {"row": 148, "column": 47}}, {"id": 629, "type": "identifier", "text": "thread_conf_array_", "parent": 628, "children": [], "start_point": {"row": 148, "column": 13}, "end_point": {"row": 148, "column": 31}}, {"id": 630, "type": "identifier", "text": "MAX_THREAD_NUM", "parent": 628, "children": [], "start_point": {"row": 148, "column": 32}, "end_point": {"row": 148, "column": 46}}, {"id": 631, "type": "declaration", "text": "Counter queued_num_;", "parent": 39, "children": [632, 633], "start_point": {"row": 149, "column": 2}, "end_point": {"row": 149, "column": 22}}, {"id": 632, "type": "type_identifier", "text": "Counter", "parent": 631, "children": [], "start_point": {"row": 149, "column": 2}, "end_point": {"row": 149, "column": 9}}, {"id": 633, "type": "identifier", "text": "queued_num_", "parent": 631, "children": [], "start_point": {"row": 149, "column": 10}, "end_point": {"row": 149, "column": 21}}, {"id": 634, "type": "declaration", "text": "Counter each_queue_len_[QUEUE_COUNT];", "parent": 39, "children": [635, 636], "start_point": {"row": 150, "column": 2}, "end_point": {"row": 150, "column": 39}}, {"id": 635, "type": "type_identifier", "text": "Counter", "parent": 634, "children": [], "start_point": {"row": 150, "column": 2}, "end_point": {"row": 150, "column": 9}}, {"id": 636, "type": "array_declarator", "text": "each_queue_len_[QUEUE_COUNT]", "parent": 634, "children": [637, 638], "start_point": {"row": 150, "column": 10}, "end_point": {"row": 150, "column": 38}}, {"id": 637, "type": "identifier", "text": "each_queue_len_", "parent": 636, "children": [], "start_point": {"row": 150, "column": 10}, "end_point": {"row": 150, "column": 25}}, {"id": 638, "type": "identifier", "text": "QUEUE_COUNT", "parent": 636, "children": [], "start_point": {"row": 150, "column": 26}, "end_point": {"row": 150, "column": 37}}, {"id": 639, "type": "declaration", "text": "bool queue_rebalance_;", "parent": 39, "children": [640, 641], "start_point": {"row": 151, "column": 2}, "end_point": {"row": 151, "column": 24}}, {"id": 640, "type": "primitive_type", "text": "bool", "parent": 639, "children": [], "start_point": {"row": 151, "column": 2}, "end_point": {"row": 151, "column": 6}}, {"id": 641, "type": "identifier", "text": "queue_rebalance_", "parent": 639, "children": [], "start_point": {"row": 151, "column": 7}, "end_point": {"row": 151, "column": 23}}, {"id": 642, "type": "declaration", "text": "ObBalanceFilter balance_filter_;", "parent": 39, "children": [643, 644], "start_point": {"row": 152, "column": 2}, "end_point": {"row": 152, "column": 34}}, {"id": 643, "type": "type_identifier", "text": "ObBalanceFilter", "parent": 642, "children": [], "start_point": {"row": 152, "column": 2}, "end_point": {"row": 152, "column": 17}}, {"id": 644, "type": "identifier", "text": "balance_filter_", "parent": 642, "children": [], "start_point": {"row": 152, "column": 18}, "end_point": {"row": 152, "column": 33}}, {"id": 645, "type": "type_definition", "text": "typedef S2MCond M2SCond;", "parent": 36, "children": [646, 647, 648], "start_point": {"row": 155, "column": 0}, "end_point": {"row": 155, "column": 24}}, {"id": 646, "type": "typedef", "text": "typedef", "parent": 645, "children": [], "start_point": {"row": 155, "column": 0}, "end_point": {"row": 155, "column": 7}}, {"id": 647, "type": "type_identifier", "text": "S2MCond", "parent": 645, "children": [], "start_point": {"row": 155, "column": 8}, "end_point": {"row": 155, "column": 15}}, {"id": 648, "type": "type_identifier", "text": "M2SCond", "parent": 645, "children": [], "start_point": {"row": 155, "column": 16}, "end_point": {"row": 155, "column": 23}}, {"id": 649, "type": "function_definition", "text": "class M2SQueueThread {\n static const int64_t QUEUE_WAIT_TIME;\n\npublic:\n M2SQueueThread();\n virtual ~M2SQueueThread();\n\npublic:\n int init(const int64_t task_num_limit, const int64_t idle_interval);\n void destroy();\n\npublic:\n int push(void* task);\n int64_t get_queued_num() const;\n virtual void handle(void* task, void* pdata) = 0;\n virtual void* on_begin()\n {\n return NULL;\n };\n virtual void on_end(void* ptr)\n {\n UNUSED(ptr);\n };\n virtual void on_idle(){};\n\nprivate:\n static void* thread_func_(void* data);\n\nprivate:\n bool inited_;\n pthread_t pd_;\n volatile bool run_flag_;\n M2SCond queue_cond_;\n ObFixedQueue<void> task_queue_;\n int64_t idle_interval_;\n int64_t last_idle_time_;\n}", "parent": 36, "children": [650], "start_point": {"row": 156, "column": 0}, "end_point": {"row": 192, "column": 1}}, {"id": 650, "type": "identifier", "text": "M2SQueueThread", "parent": 649, "children": [], "start_point": {"row": 156, "column": 6}, "end_point": {"row": 156, "column": 20}}, {"id": 651, "type": "declaration", "text": "static const int64_t QUEUE_WAIT_TIME;", "parent": 649, "children": [652, 653], "start_point": {"row": 157, "column": 2}, "end_point": {"row": 157, "column": 39}}, {"id": 652, "type": "primitive_type", "text": "int64_t", "parent": 651, "children": [], "start_point": {"row": 157, "column": 15}, "end_point": {"row": 157, "column": 22}}, {"id": 653, "type": "identifier", "text": "QUEUE_WAIT_TIME", "parent": 651, "children": [], "start_point": {"row": 157, "column": 23}, "end_point": {"row": 157, "column": 38}}, {"id": 654, "type": "labeled_statement", "text": "public:\n M2SQueueThread();", "parent": 649, "children": [], "start_point": {"row": 159, "column": 0}, "end_point": {"row": 160, "column": 19}}, {"id": 655, "type": "call_expression", "text": "M2SQueueThread()", "parent": 654, "children": [656, 657], "start_point": {"row": 160, "column": 2}, "end_point": {"row": 160, "column": 18}}, {"id": 656, "type": "identifier", "text": "M2SQueueThread", "parent": 655, "children": [], "start_point": {"row": 160, "column": 2}, "end_point": {"row": 160, "column": 16}}, {"id": 657, "type": "argument_list", "text": "()", "parent": 655, "children": [], "start_point": {"row": 160, "column": 16}, "end_point": {"row": 160, "column": 18}}, {"id": 658, "type": "declaration", "text": "virtual ~M2SQueueThread();", "parent": 649, "children": [659, 660, 662], "start_point": {"row": 161, "column": 2}, "end_point": {"row": 161, "column": 28}}, {"id": 659, "type": "type_identifier", "text": "virtual", "parent": 658, "children": [], "start_point": {"row": 161, "column": 2}, "end_point": {"row": 161, "column": 9}}, {"id": 660, "type": "ERROR", "text": "~", "parent": 658, "children": [661], "start_point": {"row": 161, "column": 10}, "end_point": {"row": 161, "column": 11}}, {"id": 661, "type": "~", "text": "~", "parent": 660, "children": [], "start_point": {"row": 161, "column": 10}, "end_point": {"row": 161, "column": 11}}, {"id": 662, "type": "function_declarator", "text": "M2SQueueThread()", "parent": 658, "children": [663, 664], "start_point": {"row": 161, "column": 11}, "end_point": {"row": 161, "column": 27}}, {"id": 663, "type": "identifier", "text": "M2SQueueThread", "parent": 662, "children": [], "start_point": {"row": 161, "column": 11}, "end_point": {"row": 161, "column": 25}}, {"id": 664, "type": "parameter_list", "text": "()", "parent": 662, "children": [], "start_point": {"row": 161, "column": 25}, "end_point": {"row": 161, "column": 27}}, {"id": 665, "type": "labeled_statement", "text": "public:\n int init(const int64_t task_num_limit, const int64_t idle_interval);", "parent": 649, "children": [666], "start_point": {"row": 163, "column": 0}, "end_point": {"row": 164, "column": 70}}, {"id": 666, "type": "declaration", "text": "int init(const int64_t task_num_limit, const int64_t idle_interval);", "parent": 665, "children": [667, 668], "start_point": {"row": 164, "column": 2}, "end_point": {"row": 164, "column": 70}}, {"id": 667, "type": "primitive_type", "text": "int", "parent": 666, "children": [], "start_point": {"row": 164, "column": 2}, "end_point": {"row": 164, "column": 5}}, {"id": 668, "type": "function_declarator", "text": "init(const int64_t task_num_limit, const int64_t idle_interval)", "parent": 666, "children": [669, 670], "start_point": {"row": 164, "column": 6}, "end_point": {"row": 164, "column": 69}}, {"id": 669, "type": "identifier", "text": "init", "parent": 668, "children": [], "start_point": {"row": 164, "column": 6}, "end_point": {"row": 164, "column": 10}}, {"id": 670, "type": "parameter_list", "text": "(const int64_t task_num_limit, const int64_t idle_interval)", "parent": 668, "children": [671, 674], "start_point": {"row": 164, "column": 10}, "end_point": {"row": 164, "column": 69}}, {"id": 671, "type": "parameter_declaration", "text": "const int64_t task_num_limit", "parent": 670, "children": [672, 673], "start_point": {"row": 164, "column": 11}, "end_point": {"row": 164, "column": 39}}, {"id": 672, "type": "primitive_type", "text": "int64_t", "parent": 671, "children": [], "start_point": {"row": 164, "column": 17}, "end_point": {"row": 164, "column": 24}}, {"id": 673, "type": "identifier", "text": "task_num_limit", "parent": 671, "children": [], "start_point": {"row": 164, "column": 25}, "end_point": {"row": 164, "column": 39}}, {"id": 674, "type": "parameter_declaration", "text": "const int64_t idle_interval", "parent": 670, "children": [675, 676], "start_point": {"row": 164, "column": 41}, "end_point": {"row": 164, "column": 68}}, {"id": 675, "type": "primitive_type", "text": "int64_t", "parent": 674, "children": [], "start_point": {"row": 164, "column": 47}, "end_point": {"row": 164, "column": 54}}, {"id": 676, "type": "identifier", "text": "idle_interval", "parent": 674, "children": [], "start_point": {"row": 164, "column": 55}, "end_point": {"row": 164, "column": 68}}, {"id": 677, "type": "declaration", "text": "void destroy();", "parent": 649, "children": [678, 679], "start_point": {"row": 165, "column": 2}, "end_point": {"row": 165, "column": 17}}, {"id": 678, "type": "primitive_type", "text": "void", "parent": 677, "children": [], "start_point": {"row": 165, "column": 2}, "end_point": {"row": 165, "column": 6}}, {"id": 679, "type": "function_declarator", "text": "destroy()", "parent": 677, "children": [680, 681], "start_point": {"row": 165, "column": 7}, "end_point": {"row": 165, "column": 16}}, {"id": 680, "type": "identifier", "text": "destroy", "parent": 679, "children": [], "start_point": {"row": 165, "column": 7}, "end_point": {"row": 165, "column": 14}}, {"id": 681, "type": "parameter_list", "text": "()", "parent": 679, "children": [], "start_point": {"row": 165, "column": 14}, "end_point": {"row": 165, "column": 16}}, {"id": 682, "type": "labeled_statement", "text": "public:\n int push(void* task);", "parent": 649, "children": [683], "start_point": {"row": 167, "column": 0}, "end_point": {"row": 168, "column": 23}}, {"id": 683, "type": "declaration", "text": "int push(void* task);", "parent": 682, "children": [684, 685], "start_point": {"row": 168, "column": 2}, "end_point": {"row": 168, "column": 23}}, {"id": 684, "type": "primitive_type", "text": "int", "parent": 683, "children": [], "start_point": {"row": 168, "column": 2}, "end_point": {"row": 168, "column": 5}}, {"id": 685, "type": "function_declarator", "text": "push(void* task)", "parent": 683, "children": [686, 687], "start_point": {"row": 168, "column": 6}, "end_point": {"row": 168, "column": 22}}, {"id": 686, "type": "identifier", "text": "push", "parent": 685, "children": [], "start_point": {"row": 168, "column": 6}, "end_point": {"row": 168, "column": 10}}, {"id": 687, "type": "parameter_list", "text": "(void* task)", "parent": 685, "children": [688], "start_point": {"row": 168, "column": 10}, "end_point": {"row": 168, "column": 22}}, {"id": 688, "type": "parameter_declaration", "text": "void* task", "parent": 687, "children": [689, 690], "start_point": {"row": 168, "column": 11}, "end_point": {"row": 168, "column": 21}}, {"id": 689, "type": "primitive_type", "text": "void", "parent": 688, "children": [], "start_point": {"row": 168, "column": 11}, "end_point": {"row": 168, "column": 15}}, {"id": 690, "type": "pointer_declarator", "text": "* task", "parent": 688, "children": [691, 692], "start_point": {"row": 168, "column": 15}, "end_point": {"row": 168, "column": 21}}, {"id": 691, "type": "*", "text": "*", "parent": 690, "children": [], "start_point": {"row": 168, "column": 15}, "end_point": {"row": 168, "column": 16}}, {"id": 692, "type": "identifier", "text": "task", "parent": 690, "children": [], "start_point": {"row": 168, "column": 17}, "end_point": {"row": 168, "column": 21}}, {"id": 693, "type": "function_definition", "text": "int64_t get_queued_num() const;\n virtual void handle(void* task, void* pdata) = 0;\n virtual void* on_begin()\n {\n return NULL;\n }", "parent": 649, "children": [694, 695, 698, 718], "start_point": {"row": 169, "column": 2}, "end_point": {"row": 174, "column": 3}}, {"id": 694, "type": "primitive_type", "text": "int64_t", "parent": 693, "children": [], "start_point": {"row": 169, "column": 2}, "end_point": {"row": 169, "column": 9}}, {"id": 695, "type": "function_declarator", "text": "get_queued_num()", "parent": 693, "children": [696, 697], "start_point": {"row": 169, "column": 10}, "end_point": {"row": 169, "column": 26}}, {"id": 696, "type": "identifier", "text": "get_queued_num", "parent": 695, "children": [], "start_point": {"row": 169, "column": 10}, "end_point": {"row": 169, "column": 24}}, {"id": 697, "type": "parameter_list", "text": "()", "parent": 695, "children": [], "start_point": {"row": 169, "column": 24}, "end_point": {"row": 169, "column": 26}}, {"id": 698, "type": "declaration", "text": "const;\n virtual void handle(void* task, void* pdata) = 0;", "parent": 693, "children": [699, 700, 702], "start_point": {"row": 169, "column": 27}, "end_point": {"row": 170, "column": 51}}, {"id": 699, "type": "type_identifier", "text": "virtual", "parent": 698, "children": [], "start_point": {"row": 170, "column": 2}, "end_point": {"row": 170, "column": 9}}, {"id": 700, "type": "ERROR", "text": "void", "parent": 698, "children": [701], "start_point": {"row": 170, "column": 10}, "end_point": {"row": 170, "column": 14}}, {"id": 701, "type": "identifier", "text": "void", "parent": 700, "children": [], "start_point": {"row": 170, "column": 10}, "end_point": {"row": 170, "column": 14}}, {"id": 702, "type": "init_declarator", "text": "handle(void* task, void* pdata) = 0", "parent": 698, "children": [703, 716, 717], "start_point": {"row": 170, "column": 15}, "end_point": {"row": 170, "column": 50}}, {"id": 703, "type": "function_declarator", "text": "handle(void* task, void* pdata)", "parent": 702, "children": [704, 705], "start_point": {"row": 170, "column": 15}, "end_point": {"row": 170, "column": 46}}, {"id": 704, "type": "identifier", "text": "handle", "parent": 703, "children": [], "start_point": {"row": 170, "column": 15}, "end_point": {"row": 170, "column": 21}}, {"id": 705, "type": "parameter_list", "text": "(void* task, void* pdata)", "parent": 703, "children": [706, 711], "start_point": {"row": 170, "column": 21}, "end_point": {"row": 170, "column": 46}}, {"id": 706, "type": "parameter_declaration", "text": "void* task", "parent": 705, "children": [707, 708], "start_point": {"row": 170, "column": 22}, "end_point": {"row": 170, "column": 32}}, {"id": 707, "type": "primitive_type", "text": "void", "parent": 706, "children": [], "start_point": {"row": 170, "column": 22}, "end_point": {"row": 170, "column": 26}}, {"id": 708, "type": "pointer_declarator", "text": "* task", "parent": 706, "children": [709, 710], "start_point": {"row": 170, "column": 26}, "end_point": {"row": 170, "column": 32}}, {"id": 709, "type": "*", "text": "*", "parent": 708, "children": [], "start_point": {"row": 170, "column": 26}, "end_point": {"row": 170, "column": 27}}, {"id": 710, "type": "identifier", "text": "task", "parent": 708, "children": [], "start_point": {"row": 170, "column": 28}, "end_point": {"row": 170, "column": 32}}, {"id": 711, "type": "parameter_declaration", "text": "void* pdata", "parent": 705, "children": [712, 713], "start_point": {"row": 170, "column": 34}, "end_point": {"row": 170, "column": 45}}, {"id": 712, "type": "primitive_type", "text": "void", "parent": 711, "children": [], "start_point": {"row": 170, "column": 34}, "end_point": {"row": 170, "column": 38}}, {"id": 713, "type": "pointer_declarator", "text": "* pdata", "parent": 711, "children": [714, 715], "start_point": {"row": 170, "column": 38}, "end_point": {"row": 170, "column": 45}}, {"id": 714, "type": "*", "text": "*", "parent": 713, "children": [], "start_point": {"row": 170, "column": 38}, "end_point": {"row": 170, "column": 39}}, {"id": 715, "type": "identifier", "text": "pdata", "parent": 713, "children": [], "start_point": {"row": 170, "column": 40}, "end_point": {"row": 170, "column": 45}}, {"id": 716, "type": "=", "text": "=", "parent": 702, "children": [], "start_point": {"row": 170, "column": 47}, "end_point": {"row": 170, "column": 48}}, {"id": 717, "type": "number_literal", "text": "0", "parent": 702, "children": [], "start_point": {"row": 170, "column": 49}, "end_point": {"row": 170, "column": 50}}, {"id": 718, "type": "ERROR", "text": "virtual void* on_begin()", "parent": 693, "children": [719, 720, 722], "start_point": {"row": 171, "column": 2}, "end_point": {"row": 171, "column": 26}}, {"id": 719, "type": "type_identifier", "text": "virtual", "parent": 718, "children": [], "start_point": {"row": 171, "column": 2}, "end_point": {"row": 171, "column": 9}}, {"id": 720, "type": "ERROR", "text": "void", "parent": 718, "children": [721], "start_point": {"row": 171, "column": 10}, "end_point": {"row": 171, "column": 14}}, {"id": 721, "type": "identifier", "text": "void", "parent": 720, "children": [], "start_point": {"row": 171, "column": 10}, "end_point": {"row": 171, "column": 14}}, {"id": 722, "type": "pointer_declarator", "text": "* on_begin()", "parent": 718, "children": [723, 724], "start_point": {"row": 171, "column": 14}, "end_point": {"row": 171, "column": 26}}, {"id": 723, "type": "*", "text": "*", "parent": 722, "children": [], "start_point": {"row": 171, "column": 14}, "end_point": {"row": 171, "column": 15}}, {"id": 724, "type": "function_declarator", "text": "on_begin()", "parent": 722, "children": [725, 726], "start_point": {"row": 171, "column": 16}, "end_point": {"row": 171, "column": 26}}, {"id": 725, "type": "identifier", "text": "on_begin", "parent": 724, "children": [], "start_point": {"row": 171, "column": 16}, "end_point": {"row": 171, "column": 24}}, {"id": 726, "type": "parameter_list", "text": "()", "parent": 724, "children": [], "start_point": {"row": 171, "column": 24}, "end_point": {"row": 171, "column": 26}}, {"id": 727, "type": "return_statement", "text": "return NULL;", "parent": 693, "children": [728], "start_point": {"row": 173, "column": 4}, "end_point": {"row": 173, "column": 16}}, {"id": 728, "type": "null", "text": "NULL", "parent": 727, "children": [729], "start_point": {"row": 173, "column": 11}, "end_point": {"row": 173, "column": 15}}, {"id": 729, "type": "NULL", "text": "NULL", "parent": 728, "children": [], "start_point": {"row": 173, "column": 11}, "end_point": {"row": 173, "column": 15}}, {"id": 730, "type": "function_definition", "text": "virtual void on_end(void* ptr)\n {\n UNUSED(ptr);\n }", "parent": 649, "children": [731, 732, 734], "start_point": {"row": 175, "column": 2}, "end_point": {"row": 178, "column": 3}}, {"id": 731, "type": "type_identifier", "text": "virtual", "parent": 730, "children": [], "start_point": {"row": 175, "column": 2}, "end_point": {"row": 175, "column": 9}}, {"id": 732, "type": "ERROR", "text": "void", "parent": 730, "children": [733], "start_point": {"row": 175, "column": 10}, "end_point": {"row": 175, "column": 14}}, {"id": 733, "type": "identifier", "text": "void", "parent": 732, "children": [], "start_point": {"row": 175, "column": 10}, "end_point": {"row": 175, "column": 14}}, {"id": 734, "type": "function_declarator", "text": "on_end(void* ptr)", "parent": 730, "children": [735, 736], "start_point": {"row": 175, "column": 15}, "end_point": {"row": 175, "column": 32}}, {"id": 735, "type": "identifier", "text": "on_end", "parent": 734, "children": [], "start_point": {"row": 175, "column": 15}, "end_point": {"row": 175, "column": 21}}, {"id": 736, "type": "parameter_list", "text": "(void* ptr)", "parent": 734, "children": [737], "start_point": {"row": 175, "column": 21}, "end_point": {"row": 175, "column": 32}}, {"id": 737, "type": "parameter_declaration", "text": "void* ptr", "parent": 736, "children": [738, 739], "start_point": {"row": 175, "column": 22}, "end_point": {"row": 175, "column": 31}}, {"id": 738, "type": "primitive_type", "text": "void", "parent": 737, "children": [], "start_point": {"row": 175, "column": 22}, "end_point": {"row": 175, "column": 26}}, {"id": 739, "type": "pointer_declarator", "text": "* ptr", "parent": 737, "children": [740, 741], "start_point": {"row": 175, "column": 26}, "end_point": {"row": 175, "column": 31}}, {"id": 740, "type": "*", "text": "*", "parent": 739, "children": [], "start_point": {"row": 175, "column": 26}, "end_point": {"row": 175, "column": 27}}, {"id": 741, "type": "identifier", "text": "ptr", "parent": 739, "children": [], "start_point": {"row": 175, "column": 28}, "end_point": {"row": 175, "column": 31}}, {"id": 742, "type": "call_expression", "text": "UNUSED(ptr)", "parent": 730, "children": [743, 744], "start_point": {"row": 177, "column": 4}, "end_point": {"row": 177, "column": 15}}, {"id": 743, "type": "identifier", "text": "UNUSED", "parent": 742, "children": [], "start_point": {"row": 177, "column": 4}, "end_point": {"row": 177, "column": 10}}, {"id": 744, "type": "argument_list", "text": "(ptr)", "parent": 742, "children": [745], "start_point": {"row": 177, "column": 10}, "end_point": {"row": 177, "column": 15}}, {"id": 745, "type": "identifier", "text": "ptr", "parent": 744, "children": [], "start_point": {"row": 177, "column": 11}, "end_point": {"row": 177, "column": 14}}, {"id": 746, "type": "function_definition", "text": "virtual void on_idle(){}", "parent": 649, "children": [747, 748, 750], "start_point": {"row": 179, "column": 2}, "end_point": {"row": 179, "column": 26}}, {"id": 747, "type": "type_identifier", "text": "virtual", "parent": 746, "children": [], "start_point": {"row": 179, "column": 2}, "end_point": {"row": 179, "column": 9}}, {"id": 748, "type": "ERROR", "text": "void", "parent": 746, "children": [749], "start_point": {"row": 179, "column": 10}, "end_point": {"row": 179, "column": 14}}, {"id": 749, "type": "identifier", "text": "void", "parent": 748, "children": [], "start_point": {"row": 179, "column": 10}, "end_point": {"row": 179, "column": 14}}, {"id": 750, "type": "function_declarator", "text": "on_idle()", "parent": 746, "children": [751, 752], "start_point": {"row": 179, "column": 15}, "end_point": {"row": 179, "column": 24}}, {"id": 751, "type": "identifier", "text": "on_idle", "parent": 750, "children": [], "start_point": {"row": 179, "column": 15}, "end_point": {"row": 179, "column": 22}}, {"id": 752, "type": "parameter_list", "text": "()", "parent": 750, "children": [], "start_point": {"row": 179, "column": 22}, "end_point": {"row": 179, "column": 24}}, {"id": 753, "type": "labeled_statement", "text": "private:\n static void* thread_func_(void* data);", "parent": 649, "children": [754], "start_point": {"row": 181, "column": 0}, "end_point": {"row": 182, "column": 40}}, {"id": 754, "type": "declaration", "text": "static void* thread_func_(void* data);", "parent": 753, "children": [755, 756], "start_point": {"row": 182, "column": 2}, "end_point": {"row": 182, "column": 40}}, {"id": 755, "type": "primitive_type", "text": "void", "parent": 754, "children": [], "start_point": {"row": 182, "column": 9}, "end_point": {"row": 182, "column": 13}}, {"id": 756, "type": "pointer_declarator", "text": "* thread_func_(void* data)", "parent": 754, "children": [757, 758], "start_point": {"row": 182, "column": 13}, "end_point": {"row": 182, "column": 39}}, {"id": 757, "type": "*", "text": "*", "parent": 756, "children": [], "start_point": {"row": 182, "column": 13}, "end_point": {"row": 182, "column": 14}}, {"id": 758, "type": "function_declarator", "text": "thread_func_(void* data)", "parent": 756, "children": [759, 760], "start_point": {"row": 182, "column": 15}, "end_point": {"row": 182, "column": 39}}, {"id": 759, "type": "identifier", "text": "thread_func_", "parent": 758, "children": [], "start_point": {"row": 182, "column": 15}, "end_point": {"row": 182, "column": 27}}, {"id": 760, "type": "parameter_list", "text": "(void* data)", "parent": 758, "children": [761], "start_point": {"row": 182, "column": 27}, "end_point": {"row": 182, "column": 39}}, {"id": 761, "type": "parameter_declaration", "text": "void* data", "parent": 760, "children": [762, 763], "start_point": {"row": 182, "column": 28}, "end_point": {"row": 182, "column": 38}}, {"id": 762, "type": "primitive_type", "text": "void", "parent": 761, "children": [], "start_point": {"row": 182, "column": 28}, "end_point": {"row": 182, "column": 32}}, {"id": 763, "type": "pointer_declarator", "text": "* data", "parent": 761, "children": [764, 765], "start_point": {"row": 182, "column": 32}, "end_point": {"row": 182, "column": 38}}, {"id": 764, "type": "*", "text": "*", "parent": 763, "children": [], "start_point": {"row": 182, "column": 32}, "end_point": {"row": 182, "column": 33}}, {"id": 765, "type": "identifier", "text": "data", "parent": 763, "children": [], "start_point": {"row": 182, "column": 34}, "end_point": {"row": 182, "column": 38}}, {"id": 766, "type": "labeled_statement", "text": "private:\n bool inited_;", "parent": 649, "children": [767], "start_point": {"row": 184, "column": 0}, "end_point": {"row": 185, "column": 15}}, {"id": 767, "type": "declaration", "text": "bool inited_;", "parent": 766, "children": [768, 769], "start_point": {"row": 185, "column": 2}, "end_point": {"row": 185, "column": 15}}, {"id": 768, "type": "primitive_type", "text": "bool", "parent": 767, "children": [], "start_point": {"row": 185, "column": 2}, "end_point": {"row": 185, "column": 6}}, {"id": 769, "type": "identifier", "text": "inited_", "parent": 767, "children": [], "start_point": {"row": 185, "column": 7}, "end_point": {"row": 185, "column": 14}}, {"id": 770, "type": "declaration", "text": "pthread_t pd_;", "parent": 649, "children": [771, 772], "start_point": {"row": 186, "column": 2}, "end_point": {"row": 186, "column": 16}}, {"id": 771, "type": "type_identifier", "text": "pthread_t", "parent": 770, "children": [], "start_point": {"row": 186, "column": 2}, "end_point": {"row": 186, "column": 11}}, {"id": 772, "type": "identifier", "text": "pd_", "parent": 770, "children": [], "start_point": {"row": 186, "column": 12}, "end_point": {"row": 186, "column": 15}}, {"id": 773, "type": "declaration", "text": "volatile bool run_flag_;", "parent": 649, "children": [774, 776, 777], "start_point": {"row": 187, "column": 2}, "end_point": {"row": 187, "column": 26}}, {"id": 774, "type": "type_qualifier", "text": "volatile", "parent": 773, "children": [775], "start_point": {"row": 187, "column": 2}, "end_point": {"row": 187, "column": 10}}, {"id": 775, "type": "volatile", "text": "volatile", "parent": 774, "children": [], "start_point": {"row": 187, "column": 2}, "end_point": {"row": 187, "column": 10}}, {"id": 776, "type": "primitive_type", "text": "bool", "parent": 773, "children": [], "start_point": {"row": 187, "column": 11}, "end_point": {"row": 187, "column": 15}}, {"id": 777, "type": "identifier", "text": "run_flag_", "parent": 773, "children": [], "start_point": {"row": 187, "column": 16}, "end_point": {"row": 187, "column": 25}}, {"id": 778, "type": "declaration", "text": "M2SCond queue_cond_;", "parent": 649, "children": [779, 780], "start_point": {"row": 188, "column": 2}, "end_point": {"row": 188, "column": 22}}, {"id": 779, "type": "type_identifier", "text": "M2SCond", "parent": 778, "children": [], "start_point": {"row": 188, "column": 2}, "end_point": {"row": 188, "column": 9}}, {"id": 780, "type": "identifier", "text": "queue_cond_", "parent": 778, "children": [], "start_point": {"row": 188, "column": 10}, "end_point": {"row": 188, "column": 21}}, {"id": 781, "type": "binary_expression", "text": "ObFixedQueue<void> task_queue_", "parent": 649, "children": [782, 786, 787], "start_point": {"row": 189, "column": 2}, "end_point": {"row": 189, "column": 32}}, {"id": 782, "type": "binary_expression", "text": "ObFixedQueue<void", "parent": 781, "children": [783, 784, 785], "start_point": {"row": 189, "column": 2}, "end_point": {"row": 189, "column": 19}}, {"id": 783, "type": "identifier", "text": "ObFixedQueue", "parent": 782, "children": [], "start_point": {"row": 189, "column": 2}, "end_point": {"row": 189, "column": 14}}, {"id": 784, "type": "<", "text": "<", "parent": 782, "children": [], "start_point": {"row": 189, "column": 14}, "end_point": {"row": 189, "column": 15}}, {"id": 785, "type": "identifier", "text": "void", "parent": 782, "children": [], "start_point": {"row": 189, "column": 15}, "end_point": {"row": 189, "column": 19}}, {"id": 786, "type": ">", "text": ">", "parent": 781, "children": [], "start_point": {"row": 189, "column": 19}, "end_point": {"row": 189, "column": 20}}, {"id": 787, "type": "identifier", "text": "task_queue_", "parent": 781, "children": [], "start_point": {"row": 189, "column": 21}, "end_point": {"row": 189, "column": 32}}, {"id": 788, "type": "declaration", "text": "int64_t idle_interval_;", "parent": 649, "children": [789, 790], "start_point": {"row": 190, "column": 2}, "end_point": {"row": 190, "column": 25}}, {"id": 789, "type": "primitive_type", "text": "int64_t", "parent": 788, "children": [], "start_point": {"row": 190, "column": 2}, "end_point": {"row": 190, "column": 9}}, {"id": 790, "type": "identifier", "text": "idle_interval_", "parent": 788, "children": [], "start_point": {"row": 190, "column": 10}, "end_point": {"row": 190, "column": 24}}, {"id": 791, "type": "declaration", "text": "int64_t last_idle_time_;", "parent": 649, "children": [792, 793], "start_point": {"row": 191, "column": 2}, "end_point": {"row": 191, "column": 26}}, {"id": 792, "type": "primitive_type", "text": "int64_t", "parent": 791, "children": [], "start_point": {"row": 191, "column": 2}, "end_point": {"row": 191, "column": 9}}, {"id": 793, "type": "identifier", "text": "last_idle_time_", "parent": 791, "children": [], "start_point": {"row": 191, "column": 10}, "end_point": {"row": 191, "column": 25}}, {"id": 794, "type": "identifier", "text": "CACHE_ALIGNED", "parent": 36, "children": [], "start_point": {"row": 192, "column": 2}, "end_point": {"row": 192, "column": 15}}, {"id": 795, "type": "function_definition", "text": "class SeqQueueThread {\n static const int64_t QUEUE_WAIT_TIME = 10 * 1000;\n\npublic:\n SeqQueueThread();\n virtual ~SeqQueueThread();\n\npublic:\n int init(const int64_t task_num_limit, const int64_t idle_interval);\n void destroy();\n\npublic:\n virtual int push(void* task);\n int64_t get_queued_num() const;\n virtual void handle(void* task, void* pdata) = 0;\n virtual void on_push_fail(void* ptr)\n {\n UNUSED(ptr);\n };\n virtual void* on_begin()\n {\n return NULL;\n };\n virtual void on_end(void* ptr)\n {\n UNUSED(ptr);\n };\n virtual void on_idle(){};\n virtual int64_t get_seq(void* task) = 0;\n\nprivate:\n static void* thread_func_(void* data);\n\nprotected:\n ObSeqQueue task_queue_;\n\nprivate:\n bool inited_;\n pthread_t pd_;\n volatile bool run_flag_;\n int64_t idle_interval_;\n int64_t last_idle_time_;\n}", "parent": 36, "children": [796], "start_point": {"row": 194, "column": 0}, "end_point": {"row": 236, "column": 1}}, {"id": 796, "type": "identifier", "text": "SeqQueueThread", "parent": 795, "children": [], "start_point": {"row": 194, "column": 6}, "end_point": {"row": 194, "column": 20}}, {"id": 797, "type": "declaration", "text": "static const int64_t QUEUE_WAIT_TIME = 10 * 1000;", "parent": 795, "children": [798, 799], "start_point": {"row": 195, "column": 2}, "end_point": {"row": 195, "column": 51}}, {"id": 798, "type": "primitive_type", "text": "int64_t", "parent": 797, "children": [], "start_point": {"row": 195, "column": 15}, "end_point": {"row": 195, "column": 22}}, {"id": 799, "type": "init_declarator", "text": "QUEUE_WAIT_TIME = 10 * 1000", "parent": 797, "children": [800, 801, 802], "start_point": {"row": 195, "column": 23}, "end_point": {"row": 195, "column": 50}}, {"id": 800, "type": "identifier", "text": "QUEUE_WAIT_TIME", "parent": 799, "children": [], "start_point": {"row": 195, "column": 23}, "end_point": {"row": 195, "column": 38}}, {"id": 801, "type": "=", "text": "=", "parent": 799, "children": [], "start_point": {"row": 195, "column": 39}, "end_point": {"row": 195, "column": 40}}, {"id": 802, "type": "binary_expression", "text": "10 * 1000", "parent": 799, "children": [803, 804, 805], "start_point": {"row": 195, "column": 41}, "end_point": {"row": 195, "column": 50}}, {"id": 803, "type": "number_literal", "text": "10", "parent": 802, "children": [], "start_point": {"row": 195, "column": 41}, "end_point": {"row": 195, "column": 43}}, {"id": 804, "type": "*", "text": "*", "parent": 802, "children": [], "start_point": {"row": 195, "column": 44}, "end_point": {"row": 195, "column": 45}}, {"id": 805, "type": "number_literal", "text": "1000", "parent": 802, "children": [], "start_point": {"row": 195, "column": 46}, "end_point": {"row": 195, "column": 50}}, {"id": 806, "type": "labeled_statement", "text": "public:\n SeqQueueThread();", "parent": 795, "children": [], "start_point": {"row": 197, "column": 0}, "end_point": {"row": 198, "column": 19}}, {"id": 807, "type": "call_expression", "text": "SeqQueueThread()", "parent": 806, "children": [808, 809], "start_point": {"row": 198, "column": 2}, "end_point": {"row": 198, "column": 18}}, {"id": 808, "type": "identifier", "text": "SeqQueueThread", "parent": 807, "children": [], "start_point": {"row": 198, "column": 2}, "end_point": {"row": 198, "column": 16}}, {"id": 809, "type": "argument_list", "text": "()", "parent": 807, "children": [], "start_point": {"row": 198, "column": 16}, "end_point": {"row": 198, "column": 18}}, {"id": 810, "type": "declaration", "text": "virtual ~SeqQueueThread();", "parent": 795, "children": [811, 812, 814], "start_point": {"row": 199, "column": 2}, "end_point": {"row": 199, "column": 28}}, {"id": 811, "type": "type_identifier", "text": "virtual", "parent": 810, "children": [], "start_point": {"row": 199, "column": 2}, "end_point": {"row": 199, "column": 9}}, {"id": 812, "type": "ERROR", "text": "~", "parent": 810, "children": [813], "start_point": {"row": 199, "column": 10}, "end_point": {"row": 199, "column": 11}}, {"id": 813, "type": "~", "text": "~", "parent": 812, "children": [], "start_point": {"row": 199, "column": 10}, "end_point": {"row": 199, "column": 11}}, {"id": 814, "type": "function_declarator", "text": "SeqQueueThread()", "parent": 810, "children": [815, 816], "start_point": {"row": 199, "column": 11}, "end_point": {"row": 199, "column": 27}}, {"id": 815, "type": "identifier", "text": "SeqQueueThread", "parent": 814, "children": [], "start_point": {"row": 199, "column": 11}, "end_point": {"row": 199, "column": 25}}, {"id": 816, "type": "parameter_list", "text": "()", "parent": 814, "children": [], "start_point": {"row": 199, "column": 25}, "end_point": {"row": 199, "column": 27}}, {"id": 817, "type": "labeled_statement", "text": "public:\n int init(const int64_t task_num_limit, const int64_t idle_interval);", "parent": 795, "children": [818], "start_point": {"row": 201, "column": 0}, "end_point": {"row": 202, "column": 70}}, {"id": 818, "type": "declaration", "text": "int init(const int64_t task_num_limit, const int64_t idle_interval);", "parent": 817, "children": [819, 820], "start_point": {"row": 202, "column": 2}, "end_point": {"row": 202, "column": 70}}, {"id": 819, "type": "primitive_type", "text": "int", "parent": 818, "children": [], "start_point": {"row": 202, "column": 2}, "end_point": {"row": 202, "column": 5}}, {"id": 820, "type": "function_declarator", "text": "init(const int64_t task_num_limit, const int64_t idle_interval)", "parent": 818, "children": [821, 822], "start_point": {"row": 202, "column": 6}, "end_point": {"row": 202, "column": 69}}, {"id": 821, "type": "identifier", "text": "init", "parent": 820, "children": [], "start_point": {"row": 202, "column": 6}, "end_point": {"row": 202, "column": 10}}, {"id": 822, "type": "parameter_list", "text": "(const int64_t task_num_limit, const int64_t idle_interval)", "parent": 820, "children": [823, 826], "start_point": {"row": 202, "column": 10}, "end_point": {"row": 202, "column": 69}}, {"id": 823, "type": "parameter_declaration", "text": "const int64_t task_num_limit", "parent": 822, "children": [824, 825], "start_point": {"row": 202, "column": 11}, "end_point": {"row": 202, "column": 39}}, {"id": 824, "type": "primitive_type", "text": "int64_t", "parent": 823, "children": [], "start_point": {"row": 202, "column": 17}, "end_point": {"row": 202, "column": 24}}, {"id": 825, "type": "identifier", "text": "task_num_limit", "parent": 823, "children": [], "start_point": {"row": 202, "column": 25}, "end_point": {"row": 202, "column": 39}}, {"id": 826, "type": "parameter_declaration", "text": "const int64_t idle_interval", "parent": 822, "children": [827, 828], "start_point": {"row": 202, "column": 41}, "end_point": {"row": 202, "column": 68}}, {"id": 827, "type": "primitive_type", "text": "int64_t", "parent": 826, "children": [], "start_point": {"row": 202, "column": 47}, "end_point": {"row": 202, "column": 54}}, {"id": 828, "type": "identifier", "text": "idle_interval", "parent": 826, "children": [], "start_point": {"row": 202, "column": 55}, "end_point": {"row": 202, "column": 68}}, {"id": 829, "type": "declaration", "text": "void destroy();", "parent": 795, "children": [830, 831], "start_point": {"row": 203, "column": 2}, "end_point": {"row": 203, "column": 17}}, {"id": 830, "type": "primitive_type", "text": "void", "parent": 829, "children": [], "start_point": {"row": 203, "column": 2}, "end_point": {"row": 203, "column": 6}}, {"id": 831, "type": "function_declarator", "text": "destroy()", "parent": 829, "children": [832, 833], "start_point": {"row": 203, "column": 7}, "end_point": {"row": 203, "column": 16}}, {"id": 832, "type": "identifier", "text": "destroy", "parent": 831, "children": [], "start_point": {"row": 203, "column": 7}, "end_point": {"row": 203, "column": 14}}, {"id": 833, "type": "parameter_list", "text": "()", "parent": 831, "children": [], "start_point": {"row": 203, "column": 14}, "end_point": {"row": 203, "column": 16}}, {"id": 834, "type": "labeled_statement", "text": "public:\n virtual int push(void* task);", "parent": 795, "children": [835], "start_point": {"row": 205, "column": 0}, "end_point": {"row": 206, "column": 31}}, {"id": 835, "type": "declaration", "text": "virtual int push(void* task);", "parent": 834, "children": [836, 837, 839], "start_point": {"row": 206, "column": 2}, "end_point": {"row": 206, "column": 31}}, {"id": 836, "type": "type_identifier", "text": "virtual", "parent": 835, "children": [], "start_point": {"row": 206, "column": 2}, "end_point": {"row": 206, "column": 9}}, {"id": 837, "type": "ERROR", "text": "int", "parent": 835, "children": [838], "start_point": {"row": 206, "column": 10}, "end_point": {"row": 206, "column": 13}}, {"id": 838, "type": "identifier", "text": "int", "parent": 837, "children": [], "start_point": {"row": 206, "column": 10}, "end_point": {"row": 206, "column": 13}}, {"id": 839, "type": "function_declarator", "text": "push(void* task)", "parent": 835, "children": [840, 841], "start_point": {"row": 206, "column": 14}, "end_point": {"row": 206, "column": 30}}, {"id": 840, "type": "identifier", "text": "push", "parent": 839, "children": [], "start_point": {"row": 206, "column": 14}, "end_point": {"row": 206, "column": 18}}, {"id": 841, "type": "parameter_list", "text": "(void* task)", "parent": 839, "children": [842], "start_point": {"row": 206, "column": 18}, "end_point": {"row": 206, "column": 30}}, {"id": 842, "type": "parameter_declaration", "text": "void* task", "parent": 841, "children": [843, 844], "start_point": {"row": 206, "column": 19}, "end_point": {"row": 206, "column": 29}}, {"id": 843, "type": "primitive_type", "text": "void", "parent": 842, "children": [], "start_point": {"row": 206, "column": 19}, "end_point": {"row": 206, "column": 23}}, {"id": 844, "type": "pointer_declarator", "text": "* task", "parent": 842, "children": [845, 846], "start_point": {"row": 206, "column": 23}, "end_point": {"row": 206, "column": 29}}, {"id": 845, "type": "*", "text": "*", "parent": 844, "children": [], "start_point": {"row": 206, "column": 23}, "end_point": {"row": 206, "column": 24}}, {"id": 846, "type": "identifier", "text": "task", "parent": 844, "children": [], "start_point": {"row": 206, "column": 25}, "end_point": {"row": 206, "column": 29}}, {"id": 847, "type": "function_definition", "text": "int64_t get_queued_num() const;\n virtual void handle(void* task, void* pdata) = 0;\n virtual void on_push_fail(void* ptr)\n {\n UNUSED(ptr);\n };\n virtual void* on_begin()\n {\n return NULL;\n }", "parent": 795, "children": [848, 849, 852, 872, 889], "start_point": {"row": 207, "column": 2}, "end_point": {"row": 216, "column": 3}}, {"id": 848, "type": "primitive_type", "text": "int64_t", "parent": 847, "children": [], "start_point": {"row": 207, "column": 2}, "end_point": {"row": 207, "column": 9}}, {"id": 849, "type": "function_declarator", "text": "get_queued_num()", "parent": 847, "children": [850, 851], "start_point": {"row": 207, "column": 10}, "end_point": {"row": 207, "column": 26}}, {"id": 850, "type": "identifier", "text": "get_queued_num", "parent": 849, "children": [], "start_point": {"row": 207, "column": 10}, "end_point": {"row": 207, "column": 24}}, {"id": 851, "type": "parameter_list", "text": "()", "parent": 849, "children": [], "start_point": {"row": 207, "column": 24}, "end_point": {"row": 207, "column": 26}}, {"id": 852, "type": "declaration", "text": "const;\n virtual void handle(void* task, void* pdata) = 0;", "parent": 847, "children": [853, 854, 856], "start_point": {"row": 207, "column": 27}, "end_point": {"row": 208, "column": 51}}, {"id": 853, "type": "type_identifier", "text": "virtual", "parent": 852, "children": [], "start_point": {"row": 208, "column": 2}, "end_point": {"row": 208, "column": 9}}, {"id": 854, "type": "ERROR", "text": "void", "parent": 852, "children": [855], "start_point": {"row": 208, "column": 10}, "end_point": {"row": 208, "column": 14}}, {"id": 855, "type": "identifier", "text": "void", "parent": 854, "children": [], "start_point": {"row": 208, "column": 10}, "end_point": {"row": 208, "column": 14}}, {"id": 856, "type": "init_declarator", "text": "handle(void* task, void* pdata) = 0", "parent": 852, "children": [857, 870, 871], "start_point": {"row": 208, "column": 15}, "end_point": {"row": 208, "column": 50}}, {"id": 857, "type": "function_declarator", "text": "handle(void* task, void* pdata)", "parent": 856, "children": [858, 859], "start_point": {"row": 208, "column": 15}, "end_point": {"row": 208, "column": 46}}, {"id": 858, "type": "identifier", "text": "handle", "parent": 857, "children": [], "start_point": {"row": 208, "column": 15}, "end_point": {"row": 208, "column": 21}}, {"id": 859, "type": "parameter_list", "text": "(void* task, void* pdata)", "parent": 857, "children": [860, 865], "start_point": {"row": 208, "column": 21}, "end_point": {"row": 208, "column": 46}}, {"id": 860, "type": "parameter_declaration", "text": "void* task", "parent": 859, "children": [861, 862], "start_point": {"row": 208, "column": 22}, "end_point": {"row": 208, "column": 32}}, {"id": 861, "type": "primitive_type", "text": "void", "parent": 860, "children": [], "start_point": {"row": 208, "column": 22}, "end_point": {"row": 208, "column": 26}}, {"id": 862, "type": "pointer_declarator", "text": "* task", "parent": 860, "children": [863, 864], "start_point": {"row": 208, "column": 26}, "end_point": {"row": 208, "column": 32}}, {"id": 863, "type": "*", "text": "*", "parent": 862, "children": [], "start_point": {"row": 208, "column": 26}, "end_point": {"row": 208, "column": 27}}, {"id": 864, "type": "identifier", "text": "task", "parent": 862, "children": [], "start_point": {"row": 208, "column": 28}, "end_point": {"row": 208, "column": 32}}, {"id": 865, "type": "parameter_declaration", "text": "void* pdata", "parent": 859, "children": [866, 867], "start_point": {"row": 208, "column": 34}, "end_point": {"row": 208, "column": 45}}, {"id": 866, "type": "primitive_type", "text": "void", "parent": 865, "children": [], "start_point": {"row": 208, "column": 34}, "end_point": {"row": 208, "column": 38}}, {"id": 867, "type": "pointer_declarator", "text": "* pdata", "parent": 865, "children": [868, 869], "start_point": {"row": 208, "column": 38}, "end_point": {"row": 208, "column": 45}}, {"id": 868, "type": "*", "text": "*", "parent": 867, "children": [], "start_point": {"row": 208, "column": 38}, "end_point": {"row": 208, "column": 39}}, {"id": 869, "type": "identifier", "text": "pdata", "parent": 867, "children": [], "start_point": {"row": 208, "column": 40}, "end_point": {"row": 208, "column": 45}}, {"id": 870, "type": "=", "text": "=", "parent": 856, "children": [], "start_point": {"row": 208, "column": 47}, "end_point": {"row": 208, "column": 48}}, {"id": 871, "type": "number_literal", "text": "0", "parent": 856, "children": [], "start_point": {"row": 208, "column": 49}, "end_point": {"row": 208, "column": 50}}, {"id": 872, "type": "declaration", "text": "virtual void on_push_fail(void* ptr)\n {\n UNUSED(ptr);", "parent": 847, "children": [873, 874, 884], "start_point": {"row": 209, "column": 2}, "end_point": {"row": 211, "column": 16}}, {"id": 873, "type": "type_identifier", "text": "virtual", "parent": 872, "children": [], "start_point": {"row": 209, "column": 2}, "end_point": {"row": 209, "column": 9}}, {"id": 874, "type": "ERROR", "text": "void on_push_fail(void* ptr)\n {", "parent": 872, "children": [875, 876], "start_point": {"row": 209, "column": 10}, "end_point": {"row": 210, "column": 3}}, {"id": 875, "type": "identifier", "text": "void", "parent": 874, "children": [], "start_point": {"row": 209, "column": 10}, "end_point": {"row": 209, "column": 14}}, {"id": 876, "type": "function_declarator", "text": "on_push_fail(void* ptr)", "parent": 874, "children": [877, 878], "start_point": {"row": 209, "column": 15}, "end_point": {"row": 209, "column": 38}}, {"id": 877, "type": "identifier", "text": "on_push_fail", "parent": 876, "children": [], "start_point": {"row": 209, "column": 15}, "end_point": {"row": 209, "column": 27}}, {"id": 878, "type": "parameter_list", "text": "(void* ptr)", "parent": 876, "children": [879], "start_point": {"row": 209, "column": 27}, "end_point": {"row": 209, "column": 38}}, {"id": 879, "type": "parameter_declaration", "text": "void* ptr", "parent": 878, "children": [880, 881], "start_point": {"row": 209, "column": 28}, "end_point": {"row": 209, "column": 37}}, {"id": 880, "type": "primitive_type", "text": "void", "parent": 879, "children": [], "start_point": {"row": 209, "column": 28}, "end_point": {"row": 209, "column": 32}}, {"id": 881, "type": "pointer_declarator", "text": "* ptr", "parent": 879, "children": [882, 883], "start_point": {"row": 209, "column": 32}, "end_point": {"row": 209, "column": 37}}, {"id": 882, "type": "*", "text": "*", "parent": 881, "children": [], "start_point": {"row": 209, "column": 32}, "end_point": {"row": 209, "column": 33}}, {"id": 883, "type": "identifier", "text": "ptr", "parent": 881, "children": [], "start_point": {"row": 209, "column": 34}, "end_point": {"row": 209, "column": 37}}, {"id": 884, "type": "function_declarator", "text": "UNUSED(ptr)", "parent": 872, "children": [885, 886], "start_point": {"row": 211, "column": 4}, "end_point": {"row": 211, "column": 15}}, {"id": 885, "type": "identifier", "text": "UNUSED", "parent": 884, "children": [], "start_point": {"row": 211, "column": 4}, "end_point": {"row": 211, "column": 10}}, {"id": 886, "type": "parameter_list", "text": "(ptr)", "parent": 884, "children": [887], "start_point": {"row": 211, "column": 10}, "end_point": {"row": 211, "column": 15}}, {"id": 887, "type": "parameter_declaration", "text": "ptr", "parent": 886, "children": [888], "start_point": {"row": 211, "column": 11}, "end_point": {"row": 211, "column": 14}}, {"id": 888, "type": "type_identifier", "text": "ptr", "parent": 887, "children": [], "start_point": {"row": 211, "column": 11}, "end_point": {"row": 211, "column": 14}}, {"id": 889, "type": "ERROR", "text": "};\n virtual void* on_begin()", "parent": 847, "children": [890, 891, 893], "start_point": {"row": 212, "column": 2}, "end_point": {"row": 213, "column": 26}}, {"id": 890, "type": "type_identifier", "text": "virtual", "parent": 889, "children": [], "start_point": {"row": 213, "column": 2}, "end_point": {"row": 213, "column": 9}}, {"id": 891, "type": "ERROR", "text": "void", "parent": 889, "children": [892], "start_point": {"row": 213, "column": 10}, "end_point": {"row": 213, "column": 14}}, {"id": 892, "type": "identifier", "text": "void", "parent": 891, "children": [], "start_point": {"row": 213, "column": 10}, "end_point": {"row": 213, "column": 14}}, {"id": 893, "type": "pointer_declarator", "text": "* on_begin()", "parent": 889, "children": [894, 895], "start_point": {"row": 213, "column": 14}, "end_point": {"row": 213, "column": 26}}, {"id": 894, "type": "*", "text": "*", "parent": 893, "children": [], "start_point": {"row": 213, "column": 14}, "end_point": {"row": 213, "column": 15}}, {"id": 895, "type": "function_declarator", "text": "on_begin()", "parent": 893, "children": [896, 897], "start_point": {"row": 213, "column": 16}, "end_point": {"row": 213, "column": 26}}, {"id": 896, "type": "identifier", "text": "on_begin", "parent": 895, "children": [], "start_point": {"row": 213, "column": 16}, "end_point": {"row": 213, "column": 24}}, {"id": 897, "type": "parameter_list", "text": "()", "parent": 895, "children": [], "start_point": {"row": 213, "column": 24}, "end_point": {"row": 213, "column": 26}}, {"id": 898, "type": "return_statement", "text": "return NULL;", "parent": 847, "children": [899], "start_point": {"row": 215, "column": 4}, "end_point": {"row": 215, "column": 16}}, {"id": 899, "type": "null", "text": "NULL", "parent": 898, "children": [900], "start_point": {"row": 215, "column": 11}, "end_point": {"row": 215, "column": 15}}, {"id": 900, "type": "NULL", "text": "NULL", "parent": 899, "children": [], "start_point": {"row": 215, "column": 11}, "end_point": {"row": 215, "column": 15}}, {"id": 901, "type": "function_definition", "text": "virtual void on_end(void* ptr)\n {\n UNUSED(ptr);\n }", "parent": 795, "children": [902, 903, 905], "start_point": {"row": 217, "column": 2}, "end_point": {"row": 220, "column": 3}}, {"id": 902, "type": "type_identifier", "text": "virtual", "parent": 901, "children": [], "start_point": {"row": 217, "column": 2}, "end_point": {"row": 217, "column": 9}}, {"id": 903, "type": "ERROR", "text": "void", "parent": 901, "children": [904], "start_point": {"row": 217, "column": 10}, "end_point": {"row": 217, "column": 14}}, {"id": 904, "type": "identifier", "text": "void", "parent": 903, "children": [], "start_point": {"row": 217, "column": 10}, "end_point": {"row": 217, "column": 14}}, {"id": 905, "type": "function_declarator", "text": "on_end(void* ptr)", "parent": 901, "children": [906, 907], "start_point": {"row": 217, "column": 15}, "end_point": {"row": 217, "column": 32}}, {"id": 906, "type": "identifier", "text": "on_end", "parent": 905, "children": [], "start_point": {"row": 217, "column": 15}, "end_point": {"row": 217, "column": 21}}, {"id": 907, "type": "parameter_list", "text": "(void* ptr)", "parent": 905, "children": [908], "start_point": {"row": 217, "column": 21}, "end_point": {"row": 217, "column": 32}}, {"id": 908, "type": "parameter_declaration", "text": "void* ptr", "parent": 907, "children": [909, 910], "start_point": {"row": 217, "column": 22}, "end_point": {"row": 217, "column": 31}}, {"id": 909, "type": "primitive_type", "text": "void", "parent": 908, "children": [], "start_point": {"row": 217, "column": 22}, "end_point": {"row": 217, "column": 26}}, {"id": 910, "type": "pointer_declarator", "text": "* ptr", "parent": 908, "children": [911, 912], "start_point": {"row": 217, "column": 26}, "end_point": {"row": 217, "column": 31}}, {"id": 911, "type": "*", "text": "*", "parent": 910, "children": [], "start_point": {"row": 217, "column": 26}, "end_point": {"row": 217, "column": 27}}, {"id": 912, "type": "identifier", "text": "ptr", "parent": 910, "children": [], "start_point": {"row": 217, "column": 28}, "end_point": {"row": 217, "column": 31}}, {"id": 913, "type": "call_expression", "text": "UNUSED(ptr)", "parent": 901, "children": [914, 915], "start_point": {"row": 219, "column": 4}, "end_point": {"row": 219, "column": 15}}, {"id": 914, "type": "identifier", "text": "UNUSED", "parent": 913, "children": [], "start_point": {"row": 219, "column": 4}, "end_point": {"row": 219, "column": 10}}, {"id": 915, "type": "argument_list", "text": "(ptr)", "parent": 913, "children": [916], "start_point": {"row": 219, "column": 10}, "end_point": {"row": 219, "column": 15}}, {"id": 916, "type": "identifier", "text": "ptr", "parent": 915, "children": [], "start_point": {"row": 219, "column": 11}, "end_point": {"row": 219, "column": 14}}, {"id": 917, "type": "function_definition", "text": "virtual void on_idle(){}", "parent": 795, "children": [918, 919, 921], "start_point": {"row": 221, "column": 2}, "end_point": {"row": 221, "column": 26}}, {"id": 918, "type": "type_identifier", "text": "virtual", "parent": 917, "children": [], "start_point": {"row": 221, "column": 2}, "end_point": {"row": 221, "column": 9}}, {"id": 919, "type": "ERROR", "text": "void", "parent": 917, "children": [920], "start_point": {"row": 221, "column": 10}, "end_point": {"row": 221, "column": 14}}, {"id": 920, "type": "identifier", "text": "void", "parent": 919, "children": [], "start_point": {"row": 221, "column": 10}, "end_point": {"row": 221, "column": 14}}, {"id": 921, "type": "function_declarator", "text": "on_idle()", "parent": 917, "children": [922, 923], "start_point": {"row": 221, "column": 15}, "end_point": {"row": 221, "column": 24}}, {"id": 922, "type": "identifier", "text": "on_idle", "parent": 921, "children": [], "start_point": {"row": 221, "column": 15}, "end_point": {"row": 221, "column": 22}}, {"id": 923, "type": "parameter_list", "text": "()", "parent": 921, "children": [], "start_point": {"row": 221, "column": 22}, "end_point": {"row": 221, "column": 24}}, {"id": 924, "type": "declaration", "text": "virtual int64_t get_seq(void* task) = 0;", "parent": 795, "children": [925, 926, 928], "start_point": {"row": 222, "column": 2}, "end_point": {"row": 222, "column": 42}}, {"id": 925, "type": "type_identifier", "text": "virtual", "parent": 924, "children": [], "start_point": {"row": 222, "column": 2}, "end_point": {"row": 222, "column": 9}}, {"id": 926, "type": "ERROR", "text": "int64_t", "parent": 924, "children": [927], "start_point": {"row": 222, "column": 10}, "end_point": {"row": 222, "column": 17}}, {"id": 927, "type": "identifier", "text": "int64_t", "parent": 926, "children": [], "start_point": {"row": 222, "column": 10}, "end_point": {"row": 222, "column": 17}}, {"id": 928, "type": "init_declarator", "text": "get_seq(void* task) = 0", "parent": 924, "children": [929, 937, 938], "start_point": {"row": 222, "column": 18}, "end_point": {"row": 222, "column": 41}}, {"id": 929, "type": "function_declarator", "text": "get_seq(void* task)", "parent": 928, "children": [930, 931], "start_point": {"row": 222, "column": 18}, "end_point": {"row": 222, "column": 37}}, {"id": 930, "type": "identifier", "text": "get_seq", "parent": 929, "children": [], "start_point": {"row": 222, "column": 18}, "end_point": {"row": 222, "column": 25}}, {"id": 931, "type": "parameter_list", "text": "(void* task)", "parent": 929, "children": [932], "start_point": {"row": 222, "column": 25}, "end_point": {"row": 222, "column": 37}}, {"id": 932, "type": "parameter_declaration", "text": "void* task", "parent": 931, "children": [933, 934], "start_point": {"row": 222, "column": 26}, "end_point": {"row": 222, "column": 36}}, {"id": 933, "type": "primitive_type", "text": "void", "parent": 932, "children": [], "start_point": {"row": 222, "column": 26}, "end_point": {"row": 222, "column": 30}}, {"id": 934, "type": "pointer_declarator", "text": "* task", "parent": 932, "children": [935, 936], "start_point": {"row": 222, "column": 30}, "end_point": {"row": 222, "column": 36}}, {"id": 935, "type": "*", "text": "*", "parent": 934, "children": [], "start_point": {"row": 222, "column": 30}, "end_point": {"row": 222, "column": 31}}, {"id": 936, "type": "identifier", "text": "task", "parent": 934, "children": [], "start_point": {"row": 222, "column": 32}, "end_point": {"row": 222, "column": 36}}, {"id": 937, "type": "=", "text": "=", "parent": 928, "children": [], "start_point": {"row": 222, "column": 38}, "end_point": {"row": 222, "column": 39}}, {"id": 938, "type": "number_literal", "text": "0", "parent": 928, "children": [], "start_point": {"row": 222, "column": 40}, "end_point": {"row": 222, "column": 41}}, {"id": 939, "type": "labeled_statement", "text": "private:\n static void* thread_func_(void* data);", "parent": 795, "children": [940], "start_point": {"row": 224, "column": 0}, "end_point": {"row": 225, "column": 40}}, {"id": 940, "type": "declaration", "text": "static void* thread_func_(void* data);", "parent": 939, "children": [941, 942], "start_point": {"row": 225, "column": 2}, "end_point": {"row": 225, "column": 40}}, {"id": 941, "type": "primitive_type", "text": "void", "parent": 940, "children": [], "start_point": {"row": 225, "column": 9}, "end_point": {"row": 225, "column": 13}}, {"id": 942, "type": "pointer_declarator", "text": "* thread_func_(void* data)", "parent": 940, "children": [943, 944], "start_point": {"row": 225, "column": 13}, "end_point": {"row": 225, "column": 39}}, {"id": 943, "type": "*", "text": "*", "parent": 942, "children": [], "start_point": {"row": 225, "column": 13}, "end_point": {"row": 225, "column": 14}}, {"id": 944, "type": "function_declarator", "text": "thread_func_(void* data)", "parent": 942, "children": [945, 946], "start_point": {"row": 225, "column": 15}, "end_point": {"row": 225, "column": 39}}, {"id": 945, "type": "identifier", "text": "thread_func_", "parent": 944, "children": [], "start_point": {"row": 225, "column": 15}, "end_point": {"row": 225, "column": 27}}, {"id": 946, "type": "parameter_list", "text": "(void* data)", "parent": 944, "children": [947], "start_point": {"row": 225, "column": 27}, "end_point": {"row": 225, "column": 39}}, {"id": 947, "type": "parameter_declaration", "text": "void* data", "parent": 946, "children": [948, 949], "start_point": {"row": 225, "column": 28}, "end_point": {"row": 225, "column": 38}}, {"id": 948, "type": "primitive_type", "text": "void", "parent": 947, "children": [], "start_point": {"row": 225, "column": 28}, "end_point": {"row": 225, "column": 32}}, {"id": 949, "type": "pointer_declarator", "text": "* data", "parent": 947, "children": [950, 951], "start_point": {"row": 225, "column": 32}, "end_point": {"row": 225, "column": 38}}, {"id": 950, "type": "*", "text": "*", "parent": 949, "children": [], "start_point": {"row": 225, "column": 32}, "end_point": {"row": 225, "column": 33}}, {"id": 951, "type": "identifier", "text": "data", "parent": 949, "children": [], "start_point": {"row": 225, "column": 34}, "end_point": {"row": 225, "column": 38}}, {"id": 952, "type": "labeled_statement", "text": "protected:\n ObSeqQueue task_queue_;", "parent": 795, "children": [953], "start_point": {"row": 227, "column": 0}, "end_point": {"row": 228, "column": 25}}, {"id": 953, "type": "declaration", "text": "ObSeqQueue task_queue_;", "parent": 952, "children": [954, 955], "start_point": {"row": 228, "column": 2}, "end_point": {"row": 228, "column": 25}}, {"id": 954, "type": "type_identifier", "text": "ObSeqQueue", "parent": 953, "children": [], "start_point": {"row": 228, "column": 2}, "end_point": {"row": 228, "column": 12}}, {"id": 955, "type": "identifier", "text": "task_queue_", "parent": 953, "children": [], "start_point": {"row": 228, "column": 13}, "end_point": {"row": 228, "column": 24}}, {"id": 956, "type": "labeled_statement", "text": "private:\n bool inited_;", "parent": 795, "children": [957], "start_point": {"row": 230, "column": 0}, "end_point": {"row": 231, "column": 15}}, {"id": 957, "type": "declaration", "text": "bool inited_;", "parent": 956, "children": [958, 959], "start_point": {"row": 231, "column": 2}, "end_point": {"row": 231, "column": 15}}, {"id": 958, "type": "primitive_type", "text": "bool", "parent": 957, "children": [], "start_point": {"row": 231, "column": 2}, "end_point": {"row": 231, "column": 6}}, {"id": 959, "type": "identifier", "text": "inited_", "parent": 957, "children": [], "start_point": {"row": 231, "column": 7}, "end_point": {"row": 231, "column": 14}}, {"id": 960, "type": "declaration", "text": "pthread_t pd_;", "parent": 795, "children": [961, 962], "start_point": {"row": 232, "column": 2}, "end_point": {"row": 232, "column": 16}}, {"id": 961, "type": "type_identifier", "text": "pthread_t", "parent": 960, "children": [], "start_point": {"row": 232, "column": 2}, "end_point": {"row": 232, "column": 11}}, {"id": 962, "type": "identifier", "text": "pd_", "parent": 960, "children": [], "start_point": {"row": 232, "column": 12}, "end_point": {"row": 232, "column": 15}}, {"id": 963, "type": "declaration", "text": "volatile bool run_flag_;", "parent": 795, "children": [964, 966, 967], "start_point": {"row": 233, "column": 2}, "end_point": {"row": 233, "column": 26}}, {"id": 964, "type": "type_qualifier", "text": "volatile", "parent": 963, "children": [965], "start_point": {"row": 233, "column": 2}, "end_point": {"row": 233, "column": 10}}, {"id": 965, "type": "volatile", "text": "volatile", "parent": 964, "children": [], "start_point": {"row": 233, "column": 2}, "end_point": {"row": 233, "column": 10}}, {"id": 966, "type": "primitive_type", "text": "bool", "parent": 963, "children": [], "start_point": {"row": 233, "column": 11}, "end_point": {"row": 233, "column": 15}}, {"id": 967, "type": "identifier", "text": "run_flag_", "parent": 963, "children": [], "start_point": {"row": 233, "column": 16}, "end_point": {"row": 233, "column": 25}}, {"id": 968, "type": "declaration", "text": "int64_t idle_interval_;", "parent": 795, "children": [969, 970], "start_point": {"row": 234, "column": 2}, "end_point": {"row": 234, "column": 25}}, {"id": 969, "type": "primitive_type", "text": "int64_t", "parent": 968, "children": [], "start_point": {"row": 234, "column": 2}, "end_point": {"row": 234, "column": 9}}, {"id": 970, "type": "identifier", "text": "idle_interval_", "parent": 968, "children": [], "start_point": {"row": 234, "column": 10}, "end_point": {"row": 234, "column": 24}}, {"id": 971, "type": "declaration", "text": "int64_t last_idle_time_;", "parent": 795, "children": [972, 973], "start_point": {"row": 235, "column": 2}, "end_point": {"row": 235, "column": 26}}, {"id": 972, "type": "primitive_type", "text": "int64_t", "parent": 971, "children": [], "start_point": {"row": 235, "column": 2}, "end_point": {"row": 235, "column": 9}}, {"id": 973, "type": "identifier", "text": "last_idle_time_", "parent": 971, "children": [], "start_point": {"row": 235, "column": 10}, "end_point": {"row": 235, "column": 25}}, {"id": 974, "type": "identifier", "text": "CACHE_ALIGNED", "parent": 36, "children": [], "start_point": {"row": 236, "column": 2}, "end_point": {"row": 236, "column": 15}}, {"id": 975, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 240, "column": 0}, "end_point": {"row": 240, "column": 6}}]}, "node_categories": {"declarations": {"functions": [36, 39, 58, 75, 92, 97, 105, 138, 218, 224, 230, 234, 243, 247, 337, 343, 360, 368, 371, 373, 380, 381, 402, 409, 420, 428, 435, 441, 457, 473, 483, 486, 488, 495, 501, 520, 538, 549, 555, 561, 565, 582, 593, 606, 649, 662, 668, 679, 685, 693, 695, 703, 724, 730, 734, 746, 750, 758, 795, 814, 820, 831, 839, 847, 849, 857, 876, 884, 895, 901, 905, 917, 921, 929, 944], "variables": [60, 66, 73, 78, 90, 95, 100, 103, 109, 112, 117, 120, 123, 134, 143, 146, 149, 154, 159, 162, 167, 172, 179, 186, 193, 200, 203, 220, 226, 236, 293, 299, 304, 333, 341, 346, 349, 352, 355, 358, 363, 366, 376, 384, 389, 407, 412, 415, 418, 423, 433, 439, 444, 449, 455, 460, 465, 468, 471, 476, 481, 491, 504, 509, 516, 523, 528, 533, 541, 543, 568, 578, 585, 588, 591, 596, 599, 602, 609, 615, 618, 623, 626, 631, 634, 639, 642, 645, 651, 658, 666, 671, 674, 677, 683, 688, 698, 706, 711, 737, 754, 761, 767, 770, 773, 778, 788, 791, 797, 810, 818, 823, 826, 829, 835, 842, 852, 860, 865, 872, 879, 887, 908, 924, 932, 940, 947, 953, 957, 960, 963, 968, 971], "classes": [141], "imports": [6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25, 27, 28, 30, 31, 33, 34], "modules": [], "enums": [42, 43, 45, 46, 50, 54, 305, 306, 307, 308, 312, 316, 320, 324]}, "statements": {"expressions": [84, 86, 130, 330, 573, 655, 742, 781, 782, 802, 807, 913], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 37, 38, 40, 41, 44, 47, 51, 55, 59, 63, 69, 74, 76, 81, 83, 87, 93, 98, 102, 106, 111, 113, 116, 119, 121, 122, 124, 125, 127, 131, 136, 137, 139, 142, 144, 145, 148, 150, 153, 155, 158, 160, 161, 163, 166, 168, 171, 173, 178, 180, 185, 187, 192, 194, 199, 201, 202, 204, 207, 208, 210, 213, 217, 221, 223, 227, 229, 233, 237, 238, 242, 246, 249, 250, 252, 254, 258, 268, 278, 283, 287, 288, 290, 291, 292, 295, 297, 298, 301, 302, 309, 313, 317, 321, 325, 328, 331, 334, 338, 344, 348, 351, 354, 357, 361, 364, 365, 369, 374, 382, 386, 390, 395, 397, 400, 401, 403, 410, 414, 417, 421, 425, 429, 432, 436, 442, 448, 452, 454, 458, 464, 467, 470, 474, 480, 484, 489, 492, 494, 496, 498, 499, 502, 508, 513, 517, 519, 521, 527, 532, 534, 537, 539, 542, 544, 546, 548, 550, 552, 556, 562, 564, 566, 572, 574, 576, 583, 587, 589, 590, 594, 598, 601, 607, 613, 617, 619, 622, 624, 625, 627, 629, 630, 632, 633, 635, 637, 638, 641, 643, 644, 647, 648, 650, 653, 656, 659, 663, 669, 673, 676, 680, 686, 692, 696, 699, 701, 704, 710, 715, 719, 721, 725, 731, 733, 735, 741, 743, 745, 747, 749, 751, 759, 765, 769, 771, 772, 774, 777, 779, 780, 783, 785, 787, 790, 793, 794, 796, 800, 808, 811, 815, 821, 825, 828, 832, 836, 838, 840, 846, 850, 853, 855, 858, 864, 869, 873, 875, 877, 883, 885, 888, 890, 892, 896, 902, 904, 906, 912, 914, 916, 918, 920, 922, 925, 927, 930, 936, 945, 951, 954, 955, 959, 961, 962, 964, 967, 970, 973, 974, 975], "returns": [431, 558, 727, 898], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 20, 23, 26, 29, 32, 35, 49, 53, 57, 65, 71, 133, 212, 215, 240, 261, 265, 271, 275, 281, 285, 311, 315, 319, 323, 327, 393, 406, 515, 717, 803, 805, 871, 938], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 36, "universal_type": "function", "name": "ObCond", "text_snippet": "namespace oceanbase {\nnamespace common {\nenum PacketPriority {\n HIGH_PRIV = -1,\n NORMAL_PRIV = 0,\n"}, {"node_id": 39, "universal_type": "function", "name": "ObCond", "text_snippet": "namespace common {\nenum PacketPriority {\n HIGH_PRIV = -1,\n NORMAL_PRIV = 0,\n LOW_PRIV = 1,\n};\n\ncl"}, {"node_id": 58, "universal_type": "function", "name": "ObCond", "text_snippet": "class ObCond {\n static const int64_t SPIN_WAIT_NUM = 0;\n static const int64_t BUSY_INTERVAL = 1000"}, {"node_id": 75, "universal_type": "function", "name": "unknown", "text_snippet": "ObCond(const int64_t spin_wait_num = SPIN_WAIT_NUM)"}, {"node_id": 92, "universal_type": "function", "name": "unknown", "text_snippet": "signal()"}, {"node_id": 97, "universal_type": "function", "name": "unknown", "text_snippet": "timedwait(const int64_t time_us)"}, {"node_id": 105, "universal_type": "function", "name": "unknown", "text_snippet": "wait()"}, {"node_id": 138, "universal_type": "function", "name": "S2MQueueThread", "text_snippet": "class S2MQueueThread {\n struct ThreadConf {\n pthread_t pd;\n uint64_t index;\n volatile bool"}, {"node_id": 218, "universal_type": "function", "name": "unknown", "text_snippet": "(true)"}, {"node_id": 224, "universal_type": "function", "name": "unknown", "text_snippet": "(false)"}, {"node_id": 230, "universal_type": "function", "name": "unknown", "text_snippet": "()"}, {"node_id": 234, "universal_type": "function", "name": "unknown", "text_snippet": "(false)"}, {"node_id": 243, "universal_type": "function", "name": "unknown", "text_snippet": "()"}, {"node_id": 247, "universal_type": "function", "name": "unknown", "text_snippet": "()"}, {"node_id": 337, "universal_type": "function", "name": "unknown", "text_snippet": "S2MQueueThread()"}, {"node_id": 343, "universal_type": "function", "name": "queue_rebalance,", "text_snippet": "init(\n const int64_t thread_num, const int64_t task_num_limit, const bool queue_rebalance, cons"}, {"node_id": 360, "universal_type": "function", "name": "unknown", "text_snippet": "set_prio_quota(v4si& quota)"}, {"node_id": 368, "universal_type": "function", "name": "unknown", "text_snippet": "destroy()"}, {"node_id": 371, "universal_type": "function", "name": "add_thread", "text_snippet": "int64_t get_queued_num() const;\n int64_t get_each_queued_num(int queue_id) const\n {\n return (qu"}, {"node_id": 373, "universal_type": "function", "name": "unknown", "text_snippet": "get_queued_num()"}, {"node_id": 380, "universal_type": "function", "name": "unknown", "text_snippet": "get_each_queued_num(int queue_id) const\n {\n return (queue_id >= 0 && queue_id < QUEUE_COUNT) ? e"}, {"node_id": 381, "universal_type": "function", "name": "unknown", "text_snippet": "get_each_queued_num(int queue_id) const"}, {"node_id": 402, "universal_type": "function", "name": "unknown", "text_snippet": "value()"}, {"node_id": 409, "universal_type": "function", "name": "unknown", "text_snippet": "add_thread(const int64_t thread_num, const int64_t task_num_limit)"}, {"node_id": 420, "universal_type": "function", "name": "unknown", "text_snippet": "sub_thread(const int64_t thread_num)"}, {"node_id": 428, "universal_type": "function", "name": "unknown", "text_snippet": "get_thread_num() const"}, {"node_id": 435, "universal_type": "function", "name": "unknown", "text_snippet": "wakeup()"}, {"node_id": 441, "universal_type": "function", "name": "unknown", "text_snippet": "push(void* task, const int64_t prio = NORMAL_PRIV)"}, {"node_id": 457, "universal_type": "function", "name": "unknown", "text_snippet": "push(void* task, const uint64_t task_sign, const int64_t prio)"}, {"node_id": 473, "universal_type": "function", "name": "unknown", "text_snippet": "push_low_prio(void* task)"}, {"node_id": 483, "universal_type": "function", "name": "unknown", "text_snippet": "thread_index()"}, {"node_id": 486, "universal_type": "function", "name": "on_iter", "text_snippet": "int64_t get_thread_index() const;\n virtual void on_iter()\n {}\n virtual void handle(void* task, vo"}, {"node_id": 488, "universal_type": "function", "name": "unknown", "text_snippet": "get_thread_index()"}, {"node_id": 495, "universal_type": "function", "name": "unknown", "text_snippet": "on_iter()"}, {"node_id": 501, "universal_type": "function", "name": "unknown", "text_snippet": "handle(void* task, void* pdata)"}, {"node_id": 520, "universal_type": "function", "name": "unknown", "text_snippet": "handle_with_stopflag(void* task, void* pdata, volatile bool& stop_flag)"}, {"node_id": 538, "universal_type": "function", "name": "unknown", "text_snippet": "handle(task, pdata)"}, {"node_id": 549, "universal_type": "function", "name": "unknown", "text_snippet": "virtual void* on_begin()\n {\n return NULL;\n }"}, {"node_id": 555, "universal_type": "function", "name": "unknown", "text_snippet": "on_begin()"}, {"node_id": 561, "universal_type": "function", "name": "on_end", "text_snippet": "virtual void on_end(void* ptr)\n {\n UNUSED(ptr);\n }"}, {"node_id": 565, "universal_type": "function", "name": "unknown", "text_snippet": "on_end(void* ptr)"}, {"node_id": 582, "universal_type": "function", "name": "unknown", "text_snippet": "rebalance_(int64_t& idx, const ThreadConf& cur_thread)"}, {"node_id": 593, "universal_type": "function", "name": "unknown", "text_snippet": "launch_thread_(const int64_t thread_num, const int64_t task_num_limit)"}, {"node_id": 606, "universal_type": "function", "name": "unknown", "text_snippet": "thread_func_(void* data)"}, {"node_id": 649, "universal_type": "function", "name": "M2SQueueThread", "text_snippet": "class M2SQueueThread {\n static const int64_t QUEUE_WAIT_TIME;\n\npublic:\n M2SQueueThread();\n virtua"}, {"node_id": 662, "universal_type": "function", "name": "unknown", "text_snippet": "M2SQueueThread()"}, {"node_id": 668, "universal_type": "function", "name": "unknown", "text_snippet": "init(const int64_t task_num_limit, const int64_t idle_interval)"}, {"node_id": 679, "universal_type": "function", "name": "unknown", "text_snippet": "destroy()"}, {"node_id": 685, "universal_type": "function", "name": "unknown", "text_snippet": "push(void* task)"}, {"node_id": 693, "universal_type": "function", "name": "handle", "text_snippet": "int64_t get_queued_num() const;\n virtual void handle(void* task, void* pdata) = 0;\n virtual void* "}, {"node_id": 695, "universal_type": "function", "name": "unknown", "text_snippet": "get_queued_num()"}, {"node_id": 703, "universal_type": "function", "name": "unknown", "text_snippet": "handle(void* task, void* pdata)"}, {"node_id": 724, "universal_type": "function", "name": "unknown", "text_snippet": "on_begin()"}, {"node_id": 730, "universal_type": "function", "name": "on_end", "text_snippet": "virtual void on_end(void* ptr)\n {\n UNUSED(ptr);\n }"}, {"node_id": 734, "universal_type": "function", "name": "unknown", "text_snippet": "on_end(void* ptr)"}, {"node_id": 746, "universal_type": "function", "name": "on_idle", "text_snippet": "virtual void on_idle(){}"}, {"node_id": 750, "universal_type": "function", "name": "unknown", "text_snippet": "on_idle()"}, {"node_id": 758, "universal_type": "function", "name": "unknown", "text_snippet": "thread_func_(void* data)"}, {"node_id": 795, "universal_type": "function", "name": "SeqQueueThread", "text_snippet": "class SeqQueueThread {\n static const int64_t QUEUE_WAIT_TIME = 10 * 1000;\n\npublic:\n SeqQueueThread"}, {"node_id": 814, "universal_type": "function", "name": "unknown", "text_snippet": "SeqQueueThread()"}, {"node_id": 820, "universal_type": "function", "name": "unknown", "text_snippet": "init(const int64_t task_num_limit, const int64_t idle_interval)"}, {"node_id": 831, "universal_type": "function", "name": "unknown", "text_snippet": "destroy()"}, {"node_id": 839, "universal_type": "function", "name": "unknown", "text_snippet": "push(void* task)"}, {"node_id": 847, "universal_type": "function", "name": "handle", "text_snippet": "int64_t get_queued_num() const;\n virtual void handle(void* task, void* pdata) = 0;\n virtual void o"}, {"node_id": 849, "universal_type": "function", "name": "unknown", "text_snippet": "get_queued_num()"}, {"node_id": 857, "universal_type": "function", "name": "unknown", "text_snippet": "handle(void* task, void* pdata)"}, {"node_id": 876, "universal_type": "function", "name": "unknown", "text_snippet": "on_push_fail(void* ptr)"}, {"node_id": 884, "universal_type": "function", "name": "unknown", "text_snippet": "UNUSED(ptr)"}, {"node_id": 895, "universal_type": "function", "name": "unknown", "text_snippet": "on_begin()"}, {"node_id": 901, "universal_type": "function", "name": "on_end", "text_snippet": "virtual void on_end(void* ptr)\n {\n UNUSED(ptr);\n }"}, {"node_id": 905, "universal_type": "function", "name": "unknown", "text_snippet": "on_end(void* ptr)"}, {"node_id": 917, "universal_type": "function", "name": "on_idle", "text_snippet": "virtual void on_idle(){}"}, {"node_id": 921, "universal_type": "function", "name": "unknown", "text_snippet": "on_idle()"}, {"node_id": 929, "universal_type": "function", "name": "unknown", "text_snippet": "get_seq(void* task)"}, {"node_id": 944, "universal_type": "function", "name": "unknown", "text_snippet": "thread_func_(void* data)"}], "class_declarations": [{"node_id": 141, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "#include <sys/epoll.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"lib/ob_define.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"lib/queue/ob_fixed_queue.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"lib/allocator/page_arena.h\"\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"lib/lock/ob_drw_lock.h\"\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include \"lib/queue/ob_seq_queue.h\"\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include \"lib/net/ob_addr.h\"\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include \"lib/metrics/ob_counter.h\"\n"}, {"node_id": 28, "text": "#include"}, {"node_id": 30, "text": "#include \"common/ob_balance_filter.h\"\n"}, {"node_id": 31, "text": "#include"}, {"node_id": 33, "text": "#include \"common/server_framework/ob_priority_scheduler.h\"\n"}, {"node_id": 34, "text": "#include"}]}, "original_source_code": "/**\n * Copyright (c) 2021 OceanBase\n * OceanBase CE is licensed under Mulan PubL v2.\n * You can use this software according to the terms and conditions of the Mulan PubL v2.\n * You may obtain a copy of Mulan PubL v2 at:\n * http://license.coscl.org.cn/MulanPubL-2.0\n * THIS SOFTWARE IS PROVIDED ON AN \"AS IS\" BASIS, WITHOUT WARRANTIES OF ANY KIND,\n * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,\n * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.\n * See the Mulan PubL v2 for more details.\n */\n\n#ifndef OCEANBASE_COMMON_QUEUE_THREAD_H_\n#define OCEANBASE_COMMON_QUEUE_THREAD_H_\n#include <sys/epoll.h>\n#include \"lib/ob_define.h\"\n#include \"lib/queue/ob_fixed_queue.h\"\n#include \"lib/allocator/page_arena.h\"\n#include \"lib/lock/ob_drw_lock.h\"\n#include \"lib/queue/ob_seq_queue.h\"\n#include \"lib/net/ob_addr.h\"\n#include \"lib/metrics/ob_counter.h\"\n#include \"common/ob_balance_filter.h\"\n#include \"common/server_framework/ob_priority_scheduler.h\"\n\nnamespace oceanbase {\nnamespace common {\nenum PacketPriority {\n HIGH_PRIV = -1,\n NORMAL_PRIV = 0,\n LOW_PRIV = 1,\n};\n\nclass ObCond {\n static const int64_t SPIN_WAIT_NUM = 0;\n static const int64_t BUSY_INTERVAL = 1000;\n\npublic:\n explicit ObCond(const int64_t spin_wait_num = SPIN_WAIT_NUM);\n ~ObCond();\n\npublic:\n void signal();\n int timedwait(const int64_t time_us);\n int wait();\n\nprivate:\n const int64_t spin_wait_num_;\n volatile bool bcond_;\n int64_t last_waked_time_;\n pthread_cond_t cond_;\n pthread_mutex_t mutex_;\n} __attribute__((aligned(64)));\n\ntypedef ObCond S2MCond;\nclass S2MQueueThread {\n struct ThreadConf {\n pthread_t pd;\n uint64_t index;\n volatile bool run_flag;\n volatile bool stop_flag;\n S2MCond queue_cond;\n volatile bool using_flag;\n volatile int64_t last_active_time;\n ObFixedQueue<void> high_prio_task_queue;\n ObFixedQueue<void> spec_task_queue;\n ObFixedQueue<void> comm_task_queue;\n ObFixedQueue<void> low_prio_task_queue;\n ObPriorityScheduler scheduler_;\n S2MQueueThread* host;\n ThreadConf()\n : pd(0),\n index(0),\n run_flag(true),\n stop_flag(false),\n queue_cond(),\n using_flag(false),\n last_active_time(0),\n spec_task_queue(),\n comm_task_queue(),\n host(NULL){};\n } CACHE_ALIGNED;\n static const int64_t THREAD_BUSY_TIME_LIMIT = 10 * 1000;\n static const int64_t QUEUE_WAIT_TIME = 100 * 1000;\n static const int64_t MAX_THREAD_NUM = 256;\n static const int64_t QUEUE_SIZE_TO_SWITCH = 4;\n typedef DRWLock RWLock;\n typedef DRWLock::RDLockGuard RDLockGuard;\n typedef DRWLock::WRLockGuard WRLockGuard;\n typedef ObTCCounter Counter;\n\npublic:\n enum { HIGH_PRIO_QUEUE = 0, HOTSPOT_QUEUE = 1, NORMAL_PRIO_QUEUE = 2, LOW_PRIO_QUEUE = 3, QUEUE_COUNT = 4 };\n\npublic:\n S2MQueueThread();\n virtual ~S2MQueueThread();\n\npublic:\n int init(\n const int64_t thread_num, const int64_t task_num_limit, const bool queue_rebalance, const bool dynamic_rebalance);\n int set_prio_quota(v4si& quota);\n void destroy();\n int64_t get_queued_num() const;\n int64_t get_each_queued_num(int queue_id) const\n {\n return (queue_id >= 0 && queue_id < QUEUE_COUNT) ? each_queue_len_[queue_id].value() : 0;\n }\n int add_thread(const int64_t thread_num, const int64_t task_num_limit);\n int sub_thread(const int64_t thread_num);\n int64_t get_thread_num() const\n {\n return thread_num_;\n };\n int wakeup();\n\npublic:\n int push(void* task, const int64_t prio = NORMAL_PRIV);\n int push(void* task, const uint64_t task_sign, const int64_t prio);\n int push_low_prio(void* task);\n int64_t& thread_index();\n int64_t get_thread_index() const;\n virtual void on_iter()\n {}\n virtual void handle(void* task, void* pdata) = 0;\n virtual void handle_with_stopflag(void* task, void* pdata, volatile bool& stop_flag)\n {\n handle(task, pdata);\n if (stop_flag) {}\n };\n virtual void* on_begin()\n {\n return NULL;\n };\n virtual void on_end(void* ptr)\n {\n UNUSED(ptr);\n };\n\nprivate:\n void* rebalance_(int64_t& idx, const ThreadConf& cur_thread);\n int launch_thread_(const int64_t thread_num, const int64_t task_num_limit);\n static void* thread_func_(void* data);\n\nprivate:\n int64_t thread_num_;\n volatile uint64_t thread_conf_iter_;\n RWLock thread_conf_lock_;\n ThreadConf thread_conf_array_[MAX_THREAD_NUM];\n Counter queued_num_;\n Counter each_queue_len_[QUEUE_COUNT];\n bool queue_rebalance_;\n ObBalanceFilter balance_filter_;\n};\n\ntypedef S2MCond M2SCond;\nclass M2SQueueThread {\n static const int64_t QUEUE_WAIT_TIME;\n\npublic:\n M2SQueueThread();\n virtual ~M2SQueueThread();\n\npublic:\n int init(const int64_t task_num_limit, const int64_t idle_interval);\n void destroy();\n\npublic:\n int push(void* task);\n int64_t get_queued_num() const;\n virtual void handle(void* task, void* pdata) = 0;\n virtual void* on_begin()\n {\n return NULL;\n };\n virtual void on_end(void* ptr)\n {\n UNUSED(ptr);\n };\n virtual void on_idle(){};\n\nprivate:\n static void* thread_func_(void* data);\n\nprivate:\n bool inited_;\n pthread_t pd_;\n volatile bool run_flag_;\n M2SCond queue_cond_;\n ObFixedQueue<void> task_queue_;\n int64_t idle_interval_;\n int64_t last_idle_time_;\n} CACHE_ALIGNED;\n\nclass SeqQueueThread {\n static const int64_t QUEUE_WAIT_TIME = 10 * 1000;\n\npublic:\n SeqQueueThread();\n virtual ~SeqQueueThread();\n\npublic:\n int init(const int64_t task_num_limit, const int64_t idle_interval);\n void destroy();\n\npublic:\n virtual int push(void* task);\n int64_t get_queued_num() const;\n virtual void handle(void* task, void* pdata) = 0;\n virtual void on_push_fail(void* ptr)\n {\n UNUSED(ptr);\n };\n virtual void* on_begin()\n {\n return NULL;\n };\n virtual void on_end(void* ptr)\n {\n UNUSED(ptr);\n };\n virtual void on_idle(){};\n virtual int64_t get_seq(void* task) = 0;\n\nprivate:\n static void* thread_func_(void* data);\n\nprotected:\n ObSeqQueue task_queue_;\n\nprivate:\n bool inited_;\n pthread_t pd_;\n volatile bool run_flag_;\n int64_t idle_interval_;\n int64_t last_idle_time_;\n} CACHE_ALIGNED;\n} // namespace common\n} // namespace oceanbase\n\n#endif // OCEANBASE_COMMON_QUEUE_THREAD_H_\n"}
80,271
c
/* * isblank() and iswblank() are not available with many pre-XSH6 * systems. Check whether isblank was defined, and assume it is * not available if not. */ /* Sccsid @(#)blank.h 1.3 (gritter) 5/1/04 */ #ifndef __dietlibc__ #ifndef LIBCOMMON_BLANK_H #define LIBCOMMON_BLANK_H 1 #include <ctype.h> #include <wctype.h> #ifndef isblank static #ifdef __GNUC__ __inline__ #endif /* __GNUC__ */ int my_isblank(int c) { return c == ' ' || c == '\t'; } #define isblank(c) my_isblank(c) static int my_iswblank(wint_t c) { return c == L' ' || c == L'\t'; } #undef iswblank #define iswblank(c) my_iswblank(c) #endif /* !isblank */ #endif /* !LIBCOMMON_BLANK_H */ #endif /* !__dietlibc__ */
20.41
32
(translation_unit) "/*\n * isblank() and iswblank() are not available with many pre-XSH6\n * systems. Check whether isblank was defined, and assume it is\n * not available if not.\n */\n/* Sccsid @(#)blank.h 1.3 (gritter) 5/1/04 */\n\n#ifndef __dietlibc__\n#ifndef LIBCOMMON_BLANK_H\n#define LIBCOMMON_BLANK_H 1\n\n#include <ctype.h>\n#include <wctype.h>\n\n#ifndef isblank\n\nstatic\n#ifdef __GNUC__\n__inline__\n#endif /* __GNUC__ */\nint\nmy_isblank(int c)\n{\n return c == ' ' || c == '\t';\n}\n#define isblank(c) my_isblank(c)\n\nstatic int\nmy_iswblank(wint_t c)\n{\n return c == L' ' || c == L'\t';\n}\n#undef iswblank\n#define iswblank(c) my_iswblank(c)\n\n#endif /* !isblank */\n#endif /* !LIBCOMMON_BLANK_H */\n#endif /* !__dietlibc__ */\n" (comment) "/*\n * isblank() and iswblank() are not available with many pre-XSH6\n * systems. Check whether isblank was defined, and assume it is\n * not available if not.\n */" (comment) "/* Sccsid @(#)blank.h 1.3 (gritter) 5/1/04 */" (preproc_ifdef) "#ifndef __dietlibc__\n#ifndef LIBCOMMON_BLANK_H\n#define LIBCOMMON_BLANK_H 1\n\n#include <ctype.h>\n#include <wctype.h>\n\n#ifndef isblank\n\nstatic\n#ifdef __GNUC__\n__inline__\n#endif /* __GNUC__ */\nint\nmy_isblank(int c)\n{\n return c == ' ' || c == '\t';\n}\n#define isblank(c) my_isblank(c)\n\nstatic int\nmy_iswblank(wint_t c)\n{\n return c == L' ' || c == L'\t';\n}\n#undef iswblank\n#define iswblank(c) my_iswblank(c)\n\n#endif /* !isblank */\n#endif /* !LIBCOMMON_BLANK_H */\n#endif" (#ifndef) "#ifndef" (identifier) "__dietlibc__" (preproc_ifdef) "#ifndef LIBCOMMON_BLANK_H\n#define LIBCOMMON_BLANK_H 1\n\n#include <ctype.h>\n#include <wctype.h>\n\n#ifndef isblank\n\nstatic\n#ifdef __GNUC__\n__inline__\n#endif /* __GNUC__ */\nint\nmy_isblank(int c)\n{\n return c == ' ' || c == '\t';\n}\n#define isblank(c) my_isblank(c)\n\nstatic int\nmy_iswblank(wint_t c)\n{\n return c == L' ' || c == L'\t';\n}\n#undef iswblank\n#define iswblank(c) my_iswblank(c)\n\n#endif /* !isblank */\n#endif" (#ifndef) "#ifndef" (identifier) "LIBCOMMON_BLANK_H" (preproc_def) "#define LIBCOMMON_BLANK_H 1\n" (#define) "#define" (identifier) "LIBCOMMON_BLANK_H" (preproc_arg) "1" (preproc_include) "#include <ctype.h>\n" (#include) "#include" (system_lib_string) "<ctype.h>" (preproc_include) "#include <wctype.h>\n" (#include) "#include" (system_lib_string) "<wctype.h>" (preproc_ifdef) "#ifndef isblank\n\nstatic\n#ifdef __GNUC__\n__inline__\n#endif /* __GNUC__ */\nint\nmy_isblank(int c)\n{\n return c == ' ' || c == '\t';\n}\n#define isblank(c) my_isblank(c)\n\nstatic int\nmy_iswblank(wint_t c)\n{\n return c == L' ' || c == L'\t';\n}\n#undef iswblank\n#define iswblank(c) my_iswblank(c)\n\n#endif" (#ifndef) "#ifndef" (identifier) "isblank" (ERROR) "static" (storage_class_specifier) "static" (static) "static" (preproc_ifdef) "#ifdef __GNUC__\n__inline__\n#endif" (#ifdef) "#ifdef" (identifier) "__GNUC__" (ERROR) "__inline__" (storage_class_specifier) "__inline__" (__inline__) "__inline__" (#endif) "#endif" (comment) "/* __GNUC__ */" (function_definition) "int\nmy_isblank(int c)\n{\n return c == ' ' || c == '\t';\n}" (primitive_type) "int" (function_declarator) "my_isblank(int c)" (identifier) "my_isblank" (parameter_list) "(int c)" (() "(" (parameter_declaration) "int c" (primitive_type) "int" (identifier) "c" ()) ")" (compound_statement) "{\n return c == ' ' || c == '\t';\n}" ({) "{" (return_statement) "return c == ' ' || c == '\t';" (return) "return" (binary_expression) "c == ' ' || c == '\t'" (binary_expression) "c == ' '" (identifier) "c" (==) "==" (char_literal) "' '" (') "'" (character) " " (') "'" (||) "||" (binary_expression) "c == '\t'" (identifier) "c" (==) "==" (char_literal) "'\t'" (') "'" (escape_sequence) "\t" (') "'" (;) ";" (}) "}" (preproc_function_def) "#define isblank(c) my_isblank(c)\n" (#define) "#define" (identifier) "isblank" (preproc_params) "(c)" (() "(" (identifier) "c" ()) ")" (preproc_arg) "my_isblank(c)" (function_definition) "static int\nmy_iswblank(wint_t c)\n{\n return c == L' ' || c == L'\t';\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "my_iswblank(wint_t c)" (identifier) "my_iswblank" (parameter_list) "(wint_t c)" (() "(" (parameter_declaration) "wint_t c" (type_identifier) "wint_t" (identifier) "c" ()) ")" (compound_statement) "{\n return c == L' ' || c == L'\t';\n}" ({) "{" (return_statement) "return c == L' ' || c == L'\t';" (return) "return" (binary_expression) "c == L' ' || c == L'\t'" (binary_expression) "c == L' '" (identifier) "c" (==) "==" (char_literal) "L' '" (L') "L'" (character) " " (') "'" (||) "||" (binary_expression) "c == L'\t'" (identifier) "c" (==) "==" (char_literal) "L'\t'" (L') "L'" (escape_sequence) "\t" (') "'" (;) ";" (}) "}" (preproc_call) "#undef iswblank\n" (preproc_directive) "#undef" (preproc_arg) "iswblank" (preproc_function_def) "#define iswblank(c) my_iswblank(c)\n" (#define) "#define" (identifier) "iswblank" (preproc_params) "(c)" (() "(" (identifier) "c" ()) ")" (preproc_arg) "my_iswblank(c)" (#endif) "#endif" (comment) "/* !isblank */" (#endif) "#endif" (comment) "/* !LIBCOMMON_BLANK_H */" (#endif) "#endif" (comment) "/* !__dietlibc__ */"
124
2
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 20.41, "nodes": 94, "errors": 0, "source_hash": "b3b9e39eeaa9ac6727a17e92d3bf2aac12cd823506e6fafcf2e833e0cdaa5613", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef\t__dietlibc__\n#ifndef\tLIBCOMMON_BLANK_H\n#define\tLIBCOMMON_BLANK_H\t1\n\n#include <ctype.h>\n#include <wctype.h>\n\n#ifndef\tisblank\n\nstatic\n#ifdef\t__GNUC__\n__inline__\n#endif\t/* __GNUC__ */\nint\nmy_isblank(int c)\n{\n\treturn c == ' ' || c == '\\t';\n}\n#define\tisblank(c)\tmy_isblank(c)\n\nstatic int\nmy_iswblank(wint_t c)\n{\n\treturn c == L' ' || c == L'\\t';\n}\n#undef\tiswblank\n#define\tiswblank(c)\tmy_iswblank(c)\n\n#endif\t/* !isblank */\n#endif\t/* !LIBCOMMON_BLANK_H */\n#endif", "parent": null, "children": [1, 2, 3, 93], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 37, "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": "__dietlibc__", "parent": 0, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 20}}, {"id": 3, "type": "preproc_ifdef", "text": "#ifndef\tLIBCOMMON_BLANK_H\n#define\tLIBCOMMON_BLANK_H\t1\n\n#include <ctype.h>\n#include <wctype.h>\n\n#ifndef\tisblank\n\nstatic\n#ifdef\t__GNUC__\n__inline__\n#endif\t/* __GNUC__ */\nint\nmy_isblank(int c)\n{\n\treturn c == ' ' || c == '\\t';\n}\n#define\tisblank(c)\tmy_isblank(c)\n\nstatic int\nmy_iswblank(wint_t c)\n{\n\treturn c == L' ' || c == L'\\t';\n}\n#undef\tiswblank\n#define\tiswblank(c)\tmy_iswblank(c)\n\n#endif\t/* !isblank */\n#endif", "parent": 0, "children": [4, 5, 6, 10, 13, 16, 92], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 36, "column": 6}}, {"id": 4, "type": "#ifndef", "text": "#ifndef", "parent": 3, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 5, "type": "identifier", "text": "LIBCOMMON_BLANK_H", "parent": 3, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 25}}, {"id": 6, "type": "preproc_def", "text": "#define\tLIBCOMMON_BLANK_H\t1\n", "parent": 3, "children": [7, 8, 9], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 7, "type": "#define", "text": "#define", "parent": 6, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 8, "type": "identifier", "text": "LIBCOMMON_BLANK_H", "parent": 6, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 25}}, {"id": 9, "type": "preproc_arg", "text": "1", "parent": 6, "children": [], "start_point": {"row": 9, "column": 26}, "end_point": {"row": 9, "column": 27}}, {"id": 10, "type": "preproc_include", "text": "#include <ctype.h>\n", "parent": 3, "children": [11, 12], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 11, "type": "#include", "text": "#include", "parent": 10, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 12, "type": "system_lib_string", "text": "<ctype.h>", "parent": 10, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 18}}, {"id": 13, "type": "preproc_include", "text": "#include <wctype.h>\n", "parent": 3, "children": [14, 15], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 14, "type": "#include", "text": "#include", "parent": 13, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 15, "type": "system_lib_string", "text": "<wctype.h>", "parent": 13, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 19}}, {"id": 16, "type": "preproc_ifdef", "text": "#ifndef\tisblank\n\nstatic\n#ifdef\t__GNUC__\n__inline__\n#endif\t/* __GNUC__ */\nint\nmy_isblank(int c)\n{\n\treturn c == ' ' || c == '\\t';\n}\n#define\tisblank(c)\tmy_isblank(c)\n\nstatic int\nmy_iswblank(wint_t c)\n{\n\treturn c == L' ' || c == L'\\t';\n}\n#undef\tiswblank\n#define\tiswblank(c)\tmy_iswblank(c)\n\n#endif", "parent": 3, "children": [17, 18, 19, 26, 51, 57, 82, 85, 91], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 35, "column": 6}}, {"id": 17, "type": "#ifndef", "text": "#ifndef", "parent": 16, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 7}}, {"id": 18, "type": "identifier", "text": "isblank", "parent": 16, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 15}}, {"id": 19, "type": "preproc_ifdef", "text": "#ifdef\t__GNUC__\n__inline__\n#endif", "parent": 16, "children": [20, 21, 22, 25], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 19, "column": 6}}, {"id": 20, "type": "#ifdef", "text": "#ifdef", "parent": 19, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 6}}, {"id": 21, "type": "identifier", "text": "__GNUC__", "parent": 19, "children": [], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 15}}, {"id": 22, "type": "ERROR", "text": "__inline__", "parent": 19, "children": [23], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 10}}, {"id": 23, "type": "storage_class_specifier", "text": "__inline__", "parent": 22, "children": [24], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 10}}, {"id": 24, "type": "__inline__", "text": "__inline__", "parent": 23, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 10}}, {"id": 25, "type": "#endif", "text": "#endif", "parent": 19, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 6}}, {"id": 26, "type": "function_definition", "text": "int\nmy_isblank(int c)\n{\n\treturn c == ' ' || c == '\\t';\n}", "parent": 16, "children": [27, 28], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 27, "type": "primitive_type", "text": "int", "parent": 26, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 3}}, {"id": 28, "type": "function_declarator", "text": "my_isblank(int c)", "parent": 26, "children": [29, 30], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 17}}, {"id": 29, "type": "identifier", "text": "my_isblank", "parent": 28, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 10}}, {"id": 30, "type": "parameter_list", "text": "(int c)", "parent": 28, "children": [31], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 17}}, {"id": 31, "type": "parameter_declaration", "text": "int c", "parent": 30, "children": [32, 33], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 16}}, {"id": 32, "type": "primitive_type", "text": "int", "parent": 31, "children": [], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 14}}, {"id": 33, "type": "identifier", "text": "c", "parent": 31, "children": [], "start_point": {"row": 21, "column": 15}, "end_point": {"row": 21, "column": 16}}, {"id": 34, "type": "return_statement", "text": "return c == ' ' || c == '\\t';", "parent": 26, "children": [35], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 30}}, {"id": 35, "type": "binary_expression", "text": "c == ' ' || c == '\\t'", "parent": 34, "children": [36, 43, 44], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 29}}, {"id": 36, "type": "binary_expression", "text": "c == ' '", "parent": 35, "children": [37, 38, 39], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 16}}, {"id": 37, "type": "identifier", "text": "c", "parent": 36, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 9}}, {"id": 38, "type": "==", "text": "==", "parent": 36, "children": [], "start_point": {"row": 23, "column": 10}, "end_point": {"row": 23, "column": 12}}, {"id": 39, "type": "char_literal", "text": "' '", "parent": 36, "children": [40, 41, 42], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 16}}, {"id": 40, "type": "'", "text": "'", "parent": 39, "children": [], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 14}}, {"id": 41, "type": "character", "text": " ", "parent": 39, "children": [], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 15}}, {"id": 42, "type": "'", "text": "'", "parent": 39, "children": [], "start_point": {"row": 23, "column": 15}, "end_point": {"row": 23, "column": 16}}, {"id": 43, "type": "||", "text": "||", "parent": 35, "children": [], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 19}}, {"id": 44, "type": "binary_expression", "text": "c == '\\t'", "parent": 35, "children": [45, 46, 47], "start_point": {"row": 23, "column": 20}, "end_point": {"row": 23, "column": 29}}, {"id": 45, "type": "identifier", "text": "c", "parent": 44, "children": [], "start_point": {"row": 23, "column": 20}, "end_point": {"row": 23, "column": 21}}, {"id": 46, "type": "==", "text": "==", "parent": 44, "children": [], "start_point": {"row": 23, "column": 22}, "end_point": {"row": 23, "column": 24}}, {"id": 47, "type": "char_literal", "text": "'\\t'", "parent": 44, "children": [48, 49, 50], "start_point": {"row": 23, "column": 25}, "end_point": {"row": 23, "column": 29}}, {"id": 48, "type": "'", "text": "'", "parent": 47, "children": [], "start_point": {"row": 23, "column": 25}, "end_point": {"row": 23, "column": 26}}, {"id": 49, "type": "escape_sequence", "text": "\\t", "parent": 47, "children": [], "start_point": {"row": 23, "column": 26}, "end_point": {"row": 23, "column": 28}}, {"id": 50, "type": "'", "text": "'", "parent": 47, "children": [], "start_point": {"row": 23, "column": 28}, "end_point": {"row": 23, "column": 29}}, {"id": 51, "type": "preproc_function_def", "text": "#define\tisblank(c)\tmy_isblank(c)\n", "parent": 16, "children": [52, 53, 54, 56], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 52, "type": "#define", "text": "#define", "parent": 51, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 7}}, {"id": 53, "type": "identifier", "text": "isblank", "parent": 51, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 15}}, {"id": 54, "type": "preproc_params", "text": "(c)", "parent": 51, "children": [55], "start_point": {"row": 25, "column": 15}, "end_point": {"row": 25, "column": 18}}, {"id": 55, "type": "identifier", "text": "c", "parent": 54, "children": [], "start_point": {"row": 25, "column": 16}, "end_point": {"row": 25, "column": 17}}, {"id": 56, "type": "preproc_arg", "text": "my_isblank(c)", "parent": 51, "children": [], "start_point": {"row": 25, "column": 19}, "end_point": {"row": 25, "column": 32}}, {"id": 57, "type": "function_definition", "text": "static int\nmy_iswblank(wint_t c)\n{\n\treturn c == L' ' || c == L'\\t';\n}", "parent": 16, "children": [58, 59], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 31, "column": 1}}, {"id": 58, "type": "primitive_type", "text": "int", "parent": 57, "children": [], "start_point": {"row": 27, "column": 7}, "end_point": {"row": 27, "column": 10}}, {"id": 59, "type": "function_declarator", "text": "my_iswblank(wint_t c)", "parent": 57, "children": [60, 61], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 21}}, {"id": 60, "type": "identifier", "text": "my_iswblank", "parent": 59, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 11}}, {"id": 61, "type": "parameter_list", "text": "(wint_t c)", "parent": 59, "children": [62], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 21}}, {"id": 62, "type": "parameter_declaration", "text": "wint_t c", "parent": 61, "children": [63, 64], "start_point": {"row": 28, "column": 12}, "end_point": {"row": 28, "column": 20}}, {"id": 63, "type": "type_identifier", "text": "wint_t", "parent": 62, "children": [], "start_point": {"row": 28, "column": 12}, "end_point": {"row": 28, "column": 18}}, {"id": 64, "type": "identifier", "text": "c", "parent": 62, "children": [], "start_point": {"row": 28, "column": 19}, "end_point": {"row": 28, "column": 20}}, {"id": 65, "type": "return_statement", "text": "return c == L' ' || c == L'\\t';", "parent": 57, "children": [66], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 32}}, {"id": 66, "type": "binary_expression", "text": "c == L' ' || c == L'\\t'", "parent": 65, "children": [67, 74, 75], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 31}}, {"id": 67, "type": "binary_expression", "text": "c == L' '", "parent": 66, "children": [68, 69, 70], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 17}}, {"id": 68, "type": "identifier", "text": "c", "parent": 67, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 9}}, {"id": 69, "type": "==", "text": "==", "parent": 67, "children": [], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 12}}, {"id": 70, "type": "char_literal", "text": "L' '", "parent": 67, "children": [71, 72, 73], "start_point": {"row": 30, "column": 13}, "end_point": {"row": 30, "column": 17}}, {"id": 71, "type": "L'", "text": "L'", "parent": 70, "children": [], "start_point": {"row": 30, "column": 13}, "end_point": {"row": 30, "column": 15}}, {"id": 72, "type": "character", "text": " ", "parent": 70, "children": [], "start_point": {"row": 30, "column": 15}, "end_point": {"row": 30, "column": 16}}, {"id": 73, "type": "'", "text": "'", "parent": 70, "children": [], "start_point": {"row": 30, "column": 16}, "end_point": {"row": 30, "column": 17}}, {"id": 74, "type": "||", "text": "||", "parent": 66, "children": [], "start_point": {"row": 30, "column": 18}, "end_point": {"row": 30, "column": 20}}, {"id": 75, "type": "binary_expression", "text": "c == L'\\t'", "parent": 66, "children": [76, 77, 78], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 31}}, {"id": 76, "type": "identifier", "text": "c", "parent": 75, "children": [], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 22}}, {"id": 77, "type": "==", "text": "==", "parent": 75, "children": [], "start_point": {"row": 30, "column": 23}, "end_point": {"row": 30, "column": 25}}, {"id": 78, "type": "char_literal", "text": "L'\\t'", "parent": 75, "children": [79, 80, 81], "start_point": {"row": 30, "column": 26}, "end_point": {"row": 30, "column": 31}}, {"id": 79, "type": "L'", "text": "L'", "parent": 78, "children": [], "start_point": {"row": 30, "column": 26}, "end_point": {"row": 30, "column": 28}}, {"id": 80, "type": "escape_sequence", "text": "\\t", "parent": 78, "children": [], "start_point": {"row": 30, "column": 28}, "end_point": {"row": 30, "column": 30}}, {"id": 81, "type": "'", "text": "'", "parent": 78, "children": [], "start_point": {"row": 30, "column": 30}, "end_point": {"row": 30, "column": 31}}, {"id": 82, "type": "preproc_call", "text": "#undef\tiswblank\n", "parent": 16, "children": [83, 84], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 33, "column": 0}}, {"id": 83, "type": "preproc_directive", "text": "#undef", "parent": 82, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 6}}, {"id": 84, "type": "preproc_arg", "text": "iswblank", "parent": 82, "children": [], "start_point": {"row": 32, "column": 7}, "end_point": {"row": 32, "column": 15}}, {"id": 85, "type": "preproc_function_def", "text": "#define\tiswblank(c)\tmy_iswblank(c)\n", "parent": 16, "children": [86, 87, 88, 90], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 34, "column": 0}}, {"id": 86, "type": "#define", "text": "#define", "parent": 85, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 7}}, {"id": 87, "type": "identifier", "text": "iswblank", "parent": 85, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 16}}, {"id": 88, "type": "preproc_params", "text": "(c)", "parent": 85, "children": [89], "start_point": {"row": 33, "column": 16}, "end_point": {"row": 33, "column": 19}}, {"id": 89, "type": "identifier", "text": "c", "parent": 88, "children": [], "start_point": {"row": 33, "column": 17}, "end_point": {"row": 33, "column": 18}}, {"id": 90, "type": "preproc_arg", "text": "my_iswblank(c)", "parent": 85, "children": [], "start_point": {"row": 33, "column": 20}, "end_point": {"row": 33, "column": 34}}, {"id": 91, "type": "#endif", "text": "#endif", "parent": 16, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 6}}, {"id": 92, "type": "#endif", "text": "#endif", "parent": 3, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 6}}, {"id": 93, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 6}}]}, "node_categories": {"declarations": {"functions": [26, 28, 51, 57, 59, 85], "variables": [31, 62], "classes": [23], "imports": [10, 11, 13, 14], "modules": [], "enums": []}, "statements": {"expressions": [35, 36, 44, 66, 67, 75], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 3, 4, 5, 8, 16, 17, 18, 19, 20, 21, 25, 29, 33, 37, 45, 53, 55, 60, 63, 64, 68, 76, 87, 89, 91, 92, 93], "returns": [34, 65], "exceptions": []}, "expressions": {"calls": [82], "literals": [12, 15, 39, 47, 70, 78], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 26, "universal_type": "function", "name": "my_isblank", "text_snippet": "int\nmy_isblank(int c)\n{\n\treturn c == ' ' || c == '\\t';\n}"}, {"node_id": 28, "universal_type": "function", "name": "unknown", "text_snippet": "my_isblank(int c)"}, {"node_id": 51, "universal_type": "function", "name": "unknown", "text_snippet": "#define\tisblank(c)\tmy_isblank(c)\n"}, {"node_id": 57, "universal_type": "function", "name": "my_iswblank", "text_snippet": "static int\nmy_iswblank(wint_t c)\n{\n\treturn c == L' ' || c == L'\\t';\n}"}, {"node_id": 59, "universal_type": "function", "name": "unknown", "text_snippet": "my_iswblank(wint_t c)"}, {"node_id": 85, "universal_type": "function", "name": "unknown", "text_snippet": "#define\tiswblank(c)\tmy_iswblank(c)\n"}], "class_declarations": [{"node_id": 23, "universal_type": "class", "name": "unknown", "text_snippet": "__inline__"}], "import_statements": [{"node_id": 10, "text": "#include <ctype.h>\n"}, {"node_id": 11, "text": "#include"}, {"node_id": 13, "text": "#include <wctype.h>\n"}, {"node_id": 14, "text": "#include"}]}, "original_source_code": "/*\n * isblank() and iswblank() are not available with many pre-XSH6\n * systems. Check whether isblank was defined, and assume it is\n * not available if not.\n */\n/*\tSccsid @(#)blank.h\t1.3 (gritter) 5/1/04\t*/\n\n#ifndef\t__dietlibc__\n#ifndef\tLIBCOMMON_BLANK_H\n#define\tLIBCOMMON_BLANK_H\t1\n\n#include <ctype.h>\n#include <wctype.h>\n\n#ifndef\tisblank\n\nstatic\n#ifdef\t__GNUC__\n__inline__\n#endif\t/* __GNUC__ */\nint\nmy_isblank(int c)\n{\n\treturn c == ' ' || c == '\\t';\n}\n#define\tisblank(c)\tmy_isblank(c)\n\nstatic int\nmy_iswblank(wint_t c)\n{\n\treturn c == L' ' || c == L'\\t';\n}\n#undef\tiswblank\n#define\tiswblank(c)\tmy_iswblank(c)\n\n#endif\t/* !isblank */\n#endif\t/* !LIBCOMMON_BLANK_H */\n#endif\t/* !__dietlibc__ */\n"}
80,272
c
/* capng_c */ /* Copyright 2020- <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 _CAPNG_H_ #define _CAPNG_H_ #include <ruby.h> #include <ruby/encoding.h> #include <ruby/io.h> #include <cap-ng.h> #include <fcntl.h> #include <stdio.h> #include <sys/stat.h> #include <sys/types.h> extern VALUE rb_cCapNG; extern VALUE rb_cCapNGPrint; extern VALUE rb_cCapability; extern VALUE rb_cState; extern VALUE rb_mAction; extern VALUE rb_mSelect; extern VALUE rb_mType; extern VALUE rb_mResult; extern VALUE rb_mPrint; extern VALUE rb_mFlags; capng_select_t select_name_to_select_type(char* select_name); capng_act_t action_name_to_action_type(char* action_name); capng_print_t print_name_to_print_type(char* print_name); capng_type_t capability_type_name_to_capability_type(char* capability_name); typedef struct { int code; const char* name; } CapabilityInfo; extern CapabilityInfo capabilityInfoTable[]; void Init_capng_capability(VALUE); void Init_capng_enum(VALUE); void Init_capng_enum_action(VALUE); void Init_capng_enum_flags(VALUE); void Init_capng_enum_result(VALUE); void Init_capng_enum_select(VALUE); void Init_capng_enum_type(VALUE); void Init_capng_print(VALUE); void Init_capng_state(VALUE); #endif // _CAPNG_H
31.16
55
(translation_unit) "/* capng_c */\n/* Copyright 2020- <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/* http://www.apache.org/licenses/LICENSE-2.0 */\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 _CAPNG_H_\n#define _CAPNG_H_\n\n#include <ruby.h>\n#include <ruby/encoding.h>\n#include <ruby/io.h>\n\n#include <cap-ng.h>\n#include <fcntl.h>\n#include <stdio.h>\n#include <sys/stat.h>\n#include <sys/types.h>\n\nextern VALUE rb_cCapNG;\nextern VALUE rb_cCapNGPrint;\nextern VALUE rb_cCapability;\nextern VALUE rb_cState;\nextern VALUE rb_mAction;\nextern VALUE rb_mSelect;\nextern VALUE rb_mType;\nextern VALUE rb_mResult;\nextern VALUE rb_mPrint;\nextern VALUE rb_mFlags;\n\ncapng_select_t\nselect_name_to_select_type(char* select_name);\ncapng_act_t\naction_name_to_action_type(char* action_name);\ncapng_print_t\nprint_name_to_print_type(char* print_name);\ncapng_type_t\ncapability_type_name_to_capability_type(char* capability_name);\n\ntypedef struct {\n int code;\n const char* name;\n} CapabilityInfo;\n\nextern CapabilityInfo capabilityInfoTable[];\n\nvoid Init_capng_capability(VALUE);\nvoid Init_capng_enum(VALUE);\nvoid Init_capng_enum_action(VALUE);\nvoid Init_capng_enum_flags(VALUE);\nvoid Init_capng_enum_result(VALUE);\nvoid Init_capng_enum_select(VALUE);\nvoid Init_capng_enum_type(VALUE);\nvoid Init_capng_print(VALUE);\nvoid Init_capng_state(VALUE);\n#endif // _CAPNG_H\n" (comment) "/* capng_c */" (comment) "/* Copyright 2020- <NAME>*/" (comment) "/* */" (comment) "/* Licensed under the Apache License, Version 2.0 (the "License"); */" (comment) "/* you may not use this file except in compliance with the License. */" (comment) "/* You may obtain a copy of the License at */" (comment) "/* http://www.apache.org/licenses/LICENSE-2.0 */" (comment) "/* Unless required by applicable law or agreed to in writing, software */" (comment) "/* distributed under the License is distributed on an "AS IS" BASIS, */" (comment) "/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */" (comment) "/* See the License for the specific language governing permissions and */" (comment) "/* limitations under the License. */" (preproc_ifdef) "#ifndef _CAPNG_H_\n#define _CAPNG_H_\n\n#include <ruby.h>\n#include <ruby/encoding.h>\n#include <ruby/io.h>\n\n#include <cap-ng.h>\n#include <fcntl.h>\n#include <stdio.h>\n#include <sys/stat.h>\n#include <sys/types.h>\n\nextern VALUE rb_cCapNG;\nextern VALUE rb_cCapNGPrint;\nextern VALUE rb_cCapability;\nextern VALUE rb_cState;\nextern VALUE rb_mAction;\nextern VALUE rb_mSelect;\nextern VALUE rb_mType;\nextern VALUE rb_mResult;\nextern VALUE rb_mPrint;\nextern VALUE rb_mFlags;\n\ncapng_select_t\nselect_name_to_select_type(char* select_name);\ncapng_act_t\naction_name_to_action_type(char* action_name);\ncapng_print_t\nprint_name_to_print_type(char* print_name);\ncapng_type_t\ncapability_type_name_to_capability_type(char* capability_name);\n\ntypedef struct {\n int code;\n const char* name;\n} CapabilityInfo;\n\nextern CapabilityInfo capabilityInfoTable[];\n\nvoid Init_capng_capability(VALUE);\nvoid Init_capng_enum(VALUE);\nvoid Init_capng_enum_action(VALUE);\nvoid Init_capng_enum_flags(VALUE);\nvoid Init_capng_enum_result(VALUE);\nvoid Init_capng_enum_select(VALUE);\nvoid Init_capng_enum_type(VALUE);\nvoid Init_capng_print(VALUE);\nvoid Init_capng_state(VALUE);\n#endif" (#ifndef) "#ifndef" (identifier) "_CAPNG_H_" (preproc_def) "#define _CAPNG_H_\n" (#define) "#define" (identifier) "_CAPNG_H_" (preproc_include) "#include <ruby.h>\n" (#include) "#include" (system_lib_string) "<ruby.h>" (preproc_include) "#include <ruby/encoding.h>\n" (#include) "#include" (system_lib_string) "<ruby/encoding.h>" (preproc_include) "#include <ruby/io.h>\n" (#include) "#include" (system_lib_string) "<ruby/io.h>" (preproc_include) "#include <cap-ng.h>\n" (#include) "#include" (system_lib_string) "<cap-ng.h>" (preproc_include) "#include <fcntl.h>\n" (#include) "#include" (system_lib_string) "<fcntl.h>" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include <sys/stat.h>\n" (#include) "#include" (system_lib_string) "<sys/stat.h>" (preproc_include) "#include <sys/types.h>\n" (#include) "#include" (system_lib_string) "<sys/types.h>" (declaration) "extern VALUE rb_cCapNG;" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "VALUE" (identifier) "rb_cCapNG" (;) ";" (declaration) "extern VALUE rb_cCapNGPrint;" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "VALUE" (identifier) "rb_cCapNGPrint" (;) ";" (declaration) "extern VALUE rb_cCapability;" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "VALUE" (identifier) "rb_cCapability" (;) ";" (declaration) "extern VALUE rb_cState;" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "VALUE" (identifier) "rb_cState" (;) ";" (declaration) "extern VALUE rb_mAction;" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "VALUE" (identifier) "rb_mAction" (;) ";" (declaration) "extern VALUE rb_mSelect;" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "VALUE" (identifier) "rb_mSelect" (;) ";" (declaration) "extern VALUE rb_mType;" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "VALUE" (identifier) "rb_mType" (;) ";" (declaration) "extern VALUE rb_mResult;" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "VALUE" (identifier) "rb_mResult" (;) ";" (declaration) "extern VALUE rb_mPrint;" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "VALUE" (identifier) "rb_mPrint" (;) ";" (declaration) "extern VALUE rb_mFlags;" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "VALUE" (identifier) "rb_mFlags" (;) ";" (declaration) "capng_select_t\nselect_name_to_select_type(char* select_name);" (type_identifier) "capng_select_t" (function_declarator) "select_name_to_select_type(char* select_name)" (identifier) "select_name_to_select_type" (parameter_list) "(char* select_name)" (() "(" (parameter_declaration) "char* select_name" (primitive_type) "char" (pointer_declarator) "* select_name" (*) "*" (identifier) "select_name" ()) ")" (;) ";" (declaration) "capng_act_t\naction_name_to_action_type(char* action_name);" (type_identifier) "capng_act_t" (function_declarator) "action_name_to_action_type(char* action_name)" (identifier) "action_name_to_action_type" (parameter_list) "(char* action_name)" (() "(" (parameter_declaration) "char* action_name" (primitive_type) "char" (pointer_declarator) "* action_name" (*) "*" (identifier) "action_name" ()) ")" (;) ";" (declaration) "capng_print_t\nprint_name_to_print_type(char* print_name);" (type_identifier) "capng_print_t" (function_declarator) "print_name_to_print_type(char* print_name)" (identifier) "print_name_to_print_type" (parameter_list) "(char* print_name)" (() "(" (parameter_declaration) "char* print_name" (primitive_type) "char" (pointer_declarator) "* print_name" (*) "*" (identifier) "print_name" ()) ")" (;) ";" (declaration) "capng_type_t\ncapability_type_name_to_capability_type(char* capability_name);" (type_identifier) "capng_type_t" (function_declarator) "capability_type_name_to_capability_type(char* capability_name)" (identifier) "capability_type_name_to_capability_type" (parameter_list) "(char* capability_name)" (() "(" (parameter_declaration) "char* capability_name" (primitive_type) "char" (pointer_declarator) "* capability_name" (*) "*" (identifier) "capability_name" ()) ")" (;) ";" (type_definition) "typedef struct {\n int code;\n const char* name;\n} CapabilityInfo;" (typedef) "typedef" (struct_specifier) "struct {\n int code;\n const char* name;\n}" (struct) "struct" (field_declaration_list) "{\n int code;\n const char* name;\n}" ({) "{" (field_declaration) "int code;" (primitive_type) "int" (field_identifier) "code" (;) ";" (field_declaration) "const char* name;" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* name" (*) "*" (field_identifier) "name" (;) ";" (}) "}" (type_identifier) "CapabilityInfo" (;) ";" (declaration) "extern CapabilityInfo capabilityInfoTable[];" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "CapabilityInfo" (array_declarator) "capabilityInfoTable[]" (identifier) "capabilityInfoTable" ([) "[" (]) "]" (;) ";" (declaration) "void Init_capng_capability(VALUE);" (primitive_type) "void" (function_declarator) "Init_capng_capability(VALUE)" (identifier) "Init_capng_capability" (parameter_list) "(VALUE)" (() "(" (parameter_declaration) "VALUE" (type_identifier) "VALUE" ()) ")" (;) ";" (declaration) "void Init_capng_enum(VALUE);" (primitive_type) "void" (function_declarator) "Init_capng_enum(VALUE)" (identifier) "Init_capng_enum" (parameter_list) "(VALUE)" (() "(" (parameter_declaration) "VALUE" (type_identifier) "VALUE" ()) ")" (;) ";" (declaration) "void Init_capng_enum_action(VALUE);" (primitive_type) "void" (function_declarator) "Init_capng_enum_action(VALUE)" (identifier) "Init_capng_enum_action" (parameter_list) "(VALUE)" (() "(" (parameter_declaration) "VALUE" (type_identifier) "VALUE" ()) ")" (;) ";" (declaration) "void Init_capng_enum_flags(VALUE);" (primitive_type) "void" (function_declarator) "Init_capng_enum_flags(VALUE)" (identifier) "Init_capng_enum_flags" (parameter_list) "(VALUE)" (() "(" (parameter_declaration) "VALUE" (type_identifier) "VALUE" ()) ")" (;) ";" (declaration) "void Init_capng_enum_result(VALUE);" (primitive_type) "void" (function_declarator) "Init_capng_enum_result(VALUE)" (identifier) "Init_capng_enum_result" (parameter_list) "(VALUE)" (() "(" (parameter_declaration) "VALUE" (type_identifier) "VALUE" ()) ")" (;) ";" (declaration) "void Init_capng_enum_select(VALUE);" (primitive_type) "void" (function_declarator) "Init_capng_enum_select(VALUE)" (identifier) "Init_capng_enum_select" (parameter_list) "(VALUE)" (() "(" (parameter_declaration) "VALUE" (type_identifier) "VALUE" ()) ")" (;) ";" (declaration) "void Init_capng_enum_type(VALUE);" (primitive_type) "void" (function_declarator) "Init_capng_enum_type(VALUE)" (identifier) "Init_capng_enum_type" (parameter_list) "(VALUE)" (() "(" (parameter_declaration) "VALUE" (type_identifier) "VALUE" ()) ")" (;) ";" (declaration) "void Init_capng_print(VALUE);" (primitive_type) "void" (function_declarator) "Init_capng_print(VALUE)" (identifier) "Init_capng_print" (parameter_list) "(VALUE)" (() "(" (parameter_declaration) "VALUE" (type_identifier) "VALUE" ()) ")" (;) ";" (declaration) "void Init_capng_state(VALUE);" (primitive_type) "void" (function_declarator) "Init_capng_state(VALUE)" (identifier) "Init_capng_state" (parameter_list) "(VALUE)" (() "(" (parameter_declaration) "VALUE" (type_identifier) "VALUE" ()) ")" (;) ";" (#endif) "#endif" (comment) "// _CAPNG_H"
277
0
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 31.16, "nodes": 203, "errors": 0, "source_hash": "52f4962d6985f9a4ff8f00c26f7c75247fabf929e4a731a3fe29a81a82118ed2", "categorized_nodes": 150}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _CAPNG_H_\n#define _CAPNG_H_\n\n#include <ruby.h>\n#include <ruby/encoding.h>\n#include <ruby/io.h>\n\n#include <cap-ng.h>\n#include <fcntl.h>\n#include <stdio.h>\n#include <sys/stat.h>\n#include <sys/types.h>\n\nextern VALUE rb_cCapNG;\nextern VALUE rb_cCapNGPrint;\nextern VALUE rb_cCapability;\nextern VALUE rb_cState;\nextern VALUE rb_mAction;\nextern VALUE rb_mSelect;\nextern VALUE rb_mType;\nextern VALUE rb_mResult;\nextern VALUE rb_mPrint;\nextern VALUE rb_mFlags;\n\ncapng_select_t\nselect_name_to_select_type(char* select_name);\ncapng_act_t\naction_name_to_action_type(char* action_name);\ncapng_print_t\nprint_name_to_print_type(char* print_name);\ncapng_type_t\ncapability_type_name_to_capability_type(char* capability_name);\n\ntypedef struct {\n int code;\n const char* name;\n} CapabilityInfo;\n\nextern CapabilityInfo capabilityInfoTable[];\n\nvoid Init_capng_capability(VALUE);\nvoid Init_capng_enum(VALUE);\nvoid Init_capng_enum_action(VALUE);\nvoid Init_capng_enum_flags(VALUE);\nvoid Init_capng_enum_result(VALUE);\nvoid Init_capng_enum_select(VALUE);\nvoid Init_capng_enum_type(VALUE);\nvoid Init_capng_print(VALUE);\nvoid Init_capng_state(VALUE);\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 90, 100, 110, 120, 133, 139, 146, 153, 160, 167, 174, 181, 188, 195, 202], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 62, "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": "_CAPNG_H_", "parent": 0, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 17}}, {"id": 3, "type": "preproc_def", "text": "#define _CAPNG_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": "_CAPNG_H_", "parent": 3, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 17}}, {"id": 6, "type": "preproc_include", "text": "#include <ruby.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": "<ruby.h>", "parent": 6, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 17}}, {"id": 9, "type": "preproc_include", "text": "#include <ruby/encoding.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": "<ruby/encoding.h>", "parent": 9, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 26}}, {"id": 12, "type": "preproc_include", "text": "#include <ruby/io.h>\n", "parent": 0, "children": [13, 14], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<ruby/io.h>", "parent": 12, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 20}}, {"id": 15, "type": "preproc_include", "text": "#include <cap-ng.h>\n", "parent": 0, "children": [16, 17], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<cap-ng.h>", "parent": 15, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 19}}, {"id": 18, "type": "preproc_include", "text": "#include <fcntl.h>\n", "parent": 0, "children": [19, 20], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 8}}, {"id": 20, "type": "system_lib_string", "text": "<fcntl.h>", "parent": 18, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 18}}, {"id": 21, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": 0, "children": [22, 23], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 8}}, {"id": 23, "type": "system_lib_string", "text": "<stdio.h>", "parent": 21, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 18}}, {"id": 24, "type": "preproc_include", "text": "#include <sys/stat.h>\n", "parent": 0, "children": [25, 26], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 8}}, {"id": 26, "type": "system_lib_string", "text": "<sys/stat.h>", "parent": 24, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 21}}, {"id": 27, "type": "preproc_include", "text": "#include <sys/types.h>\n", "parent": 0, "children": [28, 29], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 28, "type": "#include", "text": "#include", "parent": 27, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 8}}, {"id": 29, "type": "system_lib_string", "text": "<sys/types.h>", "parent": 27, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 22}}, {"id": 30, "type": "declaration", "text": "extern VALUE rb_cCapNG;", "parent": 0, "children": [31, 33, 34], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 23}}, {"id": 31, "type": "storage_class_specifier", "text": "extern", "parent": 30, "children": [32], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 6}}, {"id": 32, "type": "extern", "text": "extern", "parent": 31, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 6}}, {"id": 33, "type": "type_identifier", "text": "VALUE", "parent": 30, "children": [], "start_point": {"row": 26, "column": 7}, "end_point": {"row": 26, "column": 12}}, {"id": 34, "type": "identifier", "text": "rb_cCapNG", "parent": 30, "children": [], "start_point": {"row": 26, "column": 13}, "end_point": {"row": 26, "column": 22}}, {"id": 35, "type": "declaration", "text": "extern VALUE rb_cCapNGPrint;", "parent": 0, "children": [36, 38, 39], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 28}}, {"id": 36, "type": "storage_class_specifier", "text": "extern", "parent": 35, "children": [37], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 6}}, {"id": 37, "type": "extern", "text": "extern", "parent": 36, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 6}}, {"id": 38, "type": "type_identifier", "text": "VALUE", "parent": 35, "children": [], "start_point": {"row": 27, "column": 7}, "end_point": {"row": 27, "column": 12}}, {"id": 39, "type": "identifier", "text": "rb_cCapNGPrint", "parent": 35, "children": [], "start_point": {"row": 27, "column": 13}, "end_point": {"row": 27, "column": 27}}, {"id": 40, "type": "declaration", "text": "extern VALUE rb_cCapability;", "parent": 0, "children": [41, 43, 44], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 28}}, {"id": 41, "type": "storage_class_specifier", "text": "extern", "parent": 40, "children": [42], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 6}}, {"id": 42, "type": "extern", "text": "extern", "parent": 41, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 6}}, {"id": 43, "type": "type_identifier", "text": "VALUE", "parent": 40, "children": [], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 12}}, {"id": 44, "type": "identifier", "text": "rb_cCapability", "parent": 40, "children": [], "start_point": {"row": 28, "column": 13}, "end_point": {"row": 28, "column": 27}}, {"id": 45, "type": "declaration", "text": "extern VALUE rb_cState;", "parent": 0, "children": [46, 48, 49], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 23}}, {"id": 46, "type": "storage_class_specifier", "text": "extern", "parent": 45, "children": [47], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 6}}, {"id": 47, "type": "extern", "text": "extern", "parent": 46, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 6}}, {"id": 48, "type": "type_identifier", "text": "VALUE", "parent": 45, "children": [], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 12}}, {"id": 49, "type": "identifier", "text": "rb_cState", "parent": 45, "children": [], "start_point": {"row": 29, "column": 13}, "end_point": {"row": 29, "column": 22}}, {"id": 50, "type": "declaration", "text": "extern VALUE rb_mAction;", "parent": 0, "children": [51, 53, 54], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 24}}, {"id": 51, "type": "storage_class_specifier", "text": "extern", "parent": 50, "children": [52], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 6}}, {"id": 52, "type": "extern", "text": "extern", "parent": 51, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 6}}, {"id": 53, "type": "type_identifier", "text": "VALUE", "parent": 50, "children": [], "start_point": {"row": 30, "column": 7}, "end_point": {"row": 30, "column": 12}}, {"id": 54, "type": "identifier", "text": "rb_mAction", "parent": 50, "children": [], "start_point": {"row": 30, "column": 13}, "end_point": {"row": 30, "column": 23}}, {"id": 55, "type": "declaration", "text": "extern VALUE rb_mSelect;", "parent": 0, "children": [56, 58, 59], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 24}}, {"id": 56, "type": "storage_class_specifier", "text": "extern", "parent": 55, "children": [57], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 6}}, {"id": 57, "type": "extern", "text": "extern", "parent": 56, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 6}}, {"id": 58, "type": "type_identifier", "text": "VALUE", "parent": 55, "children": [], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 12}}, {"id": 59, "type": "identifier", "text": "rb_mSelect", "parent": 55, "children": [], "start_point": {"row": 31, "column": 13}, "end_point": {"row": 31, "column": 23}}, {"id": 60, "type": "declaration", "text": "extern VALUE rb_mType;", "parent": 0, "children": [61, 63, 64], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 22}}, {"id": 61, "type": "storage_class_specifier", "text": "extern", "parent": 60, "children": [62], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 6}}, {"id": 62, "type": "extern", "text": "extern", "parent": 61, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 6}}, {"id": 63, "type": "type_identifier", "text": "VALUE", "parent": 60, "children": [], "start_point": {"row": 32, "column": 7}, "end_point": {"row": 32, "column": 12}}, {"id": 64, "type": "identifier", "text": "rb_mType", "parent": 60, "children": [], "start_point": {"row": 32, "column": 13}, "end_point": {"row": 32, "column": 21}}, {"id": 65, "type": "declaration", "text": "extern VALUE rb_mResult;", "parent": 0, "children": [66, 68, 69], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 24}}, {"id": 66, "type": "storage_class_specifier", "text": "extern", "parent": 65, "children": [67], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 6}}, {"id": 67, "type": "extern", "text": "extern", "parent": 66, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 6}}, {"id": 68, "type": "type_identifier", "text": "VALUE", "parent": 65, "children": [], "start_point": {"row": 33, "column": 7}, "end_point": {"row": 33, "column": 12}}, {"id": 69, "type": "identifier", "text": "rb_mResult", "parent": 65, "children": [], "start_point": {"row": 33, "column": 13}, "end_point": {"row": 33, "column": 23}}, {"id": 70, "type": "declaration", "text": "extern VALUE rb_mPrint;", "parent": 0, "children": [71, 73, 74], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 23}}, {"id": 71, "type": "storage_class_specifier", "text": "extern", "parent": 70, "children": [72], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 6}}, {"id": 72, "type": "extern", "text": "extern", "parent": 71, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 6}}, {"id": 73, "type": "type_identifier", "text": "VALUE", "parent": 70, "children": [], "start_point": {"row": 34, "column": 7}, "end_point": {"row": 34, "column": 12}}, {"id": 74, "type": "identifier", "text": "rb_mPrint", "parent": 70, "children": [], "start_point": {"row": 34, "column": 13}, "end_point": {"row": 34, "column": 22}}, {"id": 75, "type": "declaration", "text": "extern VALUE rb_mFlags;", "parent": 0, "children": [76, 78, 79], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 23}}, {"id": 76, "type": "storage_class_specifier", "text": "extern", "parent": 75, "children": [77], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 6}}, {"id": 77, "type": "extern", "text": "extern", "parent": 76, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 6}}, {"id": 78, "type": "type_identifier", "text": "VALUE", "parent": 75, "children": [], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 12}}, {"id": 79, "type": "identifier", "text": "rb_mFlags", "parent": 75, "children": [], "start_point": {"row": 35, "column": 13}, "end_point": {"row": 35, "column": 22}}, {"id": 80, "type": "declaration", "text": "capng_select_t\nselect_name_to_select_type(char* select_name);", "parent": 0, "children": [81, 82], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 46}}, {"id": 81, "type": "type_identifier", "text": "capng_select_t", "parent": 80, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 14}}, {"id": 82, "type": "function_declarator", "text": "select_name_to_select_type(char* select_name)", "parent": 80, "children": [83, 84], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 45}}, {"id": 83, "type": "identifier", "text": "select_name_to_select_type", "parent": 82, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 26}}, {"id": 84, "type": "parameter_list", "text": "(char* select_name)", "parent": 82, "children": [85], "start_point": {"row": 38, "column": 26}, "end_point": {"row": 38, "column": 45}}, {"id": 85, "type": "parameter_declaration", "text": "char* select_name", "parent": 84, "children": [86, 87], "start_point": {"row": 38, "column": 27}, "end_point": {"row": 38, "column": 44}}, {"id": 86, "type": "primitive_type", "text": "char", "parent": 85, "children": [], "start_point": {"row": 38, "column": 27}, "end_point": {"row": 38, "column": 31}}, {"id": 87, "type": "pointer_declarator", "text": "* select_name", "parent": 85, "children": [88, 89], "start_point": {"row": 38, "column": 31}, "end_point": {"row": 38, "column": 44}}, {"id": 88, "type": "*", "text": "*", "parent": 87, "children": [], "start_point": {"row": 38, "column": 31}, "end_point": {"row": 38, "column": 32}}, {"id": 89, "type": "identifier", "text": "select_name", "parent": 87, "children": [], "start_point": {"row": 38, "column": 33}, "end_point": {"row": 38, "column": 44}}, {"id": 90, "type": "declaration", "text": "capng_act_t\naction_name_to_action_type(char* action_name);", "parent": 0, "children": [91, 92], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 40, "column": 46}}, {"id": 91, "type": "type_identifier", "text": "capng_act_t", "parent": 90, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 11}}, {"id": 92, "type": "function_declarator", "text": "action_name_to_action_type(char* action_name)", "parent": 90, "children": [93, 94], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 45}}, {"id": 93, "type": "identifier", "text": "action_name_to_action_type", "parent": 92, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 26}}, {"id": 94, "type": "parameter_list", "text": "(char* action_name)", "parent": 92, "children": [95], "start_point": {"row": 40, "column": 26}, "end_point": {"row": 40, "column": 45}}, {"id": 95, "type": "parameter_declaration", "text": "char* action_name", "parent": 94, "children": [96, 97], "start_point": {"row": 40, "column": 27}, "end_point": {"row": 40, "column": 44}}, {"id": 96, "type": "primitive_type", "text": "char", "parent": 95, "children": [], "start_point": {"row": 40, "column": 27}, "end_point": {"row": 40, "column": 31}}, {"id": 97, "type": "pointer_declarator", "text": "* action_name", "parent": 95, "children": [98, 99], "start_point": {"row": 40, "column": 31}, "end_point": {"row": 40, "column": 44}}, {"id": 98, "type": "*", "text": "*", "parent": 97, "children": [], "start_point": {"row": 40, "column": 31}, "end_point": {"row": 40, "column": 32}}, {"id": 99, "type": "identifier", "text": "action_name", "parent": 97, "children": [], "start_point": {"row": 40, "column": 33}, "end_point": {"row": 40, "column": 44}}, {"id": 100, "type": "declaration", "text": "capng_print_t\nprint_name_to_print_type(char* print_name);", "parent": 0, "children": [101, 102], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 42, "column": 43}}, {"id": 101, "type": "type_identifier", "text": "capng_print_t", "parent": 100, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 13}}, {"id": 102, "type": "function_declarator", "text": "print_name_to_print_type(char* print_name)", "parent": 100, "children": [103, 104], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 42}}, {"id": 103, "type": "identifier", "text": "print_name_to_print_type", "parent": 102, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 24}}, {"id": 104, "type": "parameter_list", "text": "(char* print_name)", "parent": 102, "children": [105], "start_point": {"row": 42, "column": 24}, "end_point": {"row": 42, "column": 42}}, {"id": 105, "type": "parameter_declaration", "text": "char* print_name", "parent": 104, "children": [106, 107], "start_point": {"row": 42, "column": 25}, "end_point": {"row": 42, "column": 41}}, {"id": 106, "type": "primitive_type", "text": "char", "parent": 105, "children": [], "start_point": {"row": 42, "column": 25}, "end_point": {"row": 42, "column": 29}}, {"id": 107, "type": "pointer_declarator", "text": "* print_name", "parent": 105, "children": [108, 109], "start_point": {"row": 42, "column": 29}, "end_point": {"row": 42, "column": 41}}, {"id": 108, "type": "*", "text": "*", "parent": 107, "children": [], "start_point": {"row": 42, "column": 29}, "end_point": {"row": 42, "column": 30}}, {"id": 109, "type": "identifier", "text": "print_name", "parent": 107, "children": [], "start_point": {"row": 42, "column": 31}, "end_point": {"row": 42, "column": 41}}, {"id": 110, "type": "declaration", "text": "capng_type_t\ncapability_type_name_to_capability_type(char* capability_name);", "parent": 0, "children": [111, 112], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 44, "column": 63}}, {"id": 111, "type": "type_identifier", "text": "capng_type_t", "parent": 110, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 12}}, {"id": 112, "type": "function_declarator", "text": "capability_type_name_to_capability_type(char* capability_name)", "parent": 110, "children": [113, 114], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 62}}, {"id": 113, "type": "identifier", "text": "capability_type_name_to_capability_type", "parent": 112, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 39}}, {"id": 114, "type": "parameter_list", "text": "(char* capability_name)", "parent": 112, "children": [115], "start_point": {"row": 44, "column": 39}, "end_point": {"row": 44, "column": 62}}, {"id": 115, "type": "parameter_declaration", "text": "char* capability_name", "parent": 114, "children": [116, 117], "start_point": {"row": 44, "column": 40}, "end_point": {"row": 44, "column": 61}}, {"id": 116, "type": "primitive_type", "text": "char", "parent": 115, "children": [], "start_point": {"row": 44, "column": 40}, "end_point": {"row": 44, "column": 44}}, {"id": 117, "type": "pointer_declarator", "text": "* capability_name", "parent": 115, "children": [118, 119], "start_point": {"row": 44, "column": 44}, "end_point": {"row": 44, "column": 61}}, {"id": 118, "type": "*", "text": "*", "parent": 117, "children": [], "start_point": {"row": 44, "column": 44}, "end_point": {"row": 44, "column": 45}}, {"id": 119, "type": "identifier", "text": "capability_name", "parent": 117, "children": [], "start_point": {"row": 44, "column": 46}, "end_point": {"row": 44, "column": 61}}, {"id": 120, "type": "type_definition", "text": "typedef struct {\n int code;\n const char* name;\n} CapabilityInfo;", "parent": 0, "children": [121, 122, 132], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 49, "column": 17}}, {"id": 121, "type": "typedef", "text": "typedef", "parent": 120, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 7}}, {"id": 122, "type": "struct_specifier", "text": "struct {\n int code;\n const char* name;\n}", "parent": 120, "children": [123], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 49, "column": 1}}, {"id": 123, "type": "struct", "text": "struct", "parent": 122, "children": [], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 14}}, {"id": 124, "type": "field_declaration", "text": "int code;", "parent": 122, "children": [125, 126], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 11}}, {"id": 125, "type": "primitive_type", "text": "int", "parent": 124, "children": [], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 5}}, {"id": 126, "type": "field_identifier", "text": "code", "parent": 124, "children": [], "start_point": {"row": 47, "column": 6}, "end_point": {"row": 47, "column": 10}}, {"id": 127, "type": "field_declaration", "text": "const char* name;", "parent": 122, "children": [128, 129], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 19}}, {"id": 128, "type": "primitive_type", "text": "char", "parent": 127, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 12}}, {"id": 129, "type": "pointer_declarator", "text": "* name", "parent": 127, "children": [130, 131], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 18}}, {"id": 130, "type": "*", "text": "*", "parent": 129, "children": [], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 13}}, {"id": 131, "type": "field_identifier", "text": "name", "parent": 129, "children": [], "start_point": {"row": 48, "column": 14}, "end_point": {"row": 48, "column": 18}}, {"id": 132, "type": "type_identifier", "text": "CapabilityInfo", "parent": 120, "children": [], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 16}}, {"id": 133, "type": "declaration", "text": "extern CapabilityInfo capabilityInfoTable[];", "parent": 0, "children": [134, 136, 137], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 44}}, {"id": 134, "type": "storage_class_specifier", "text": "extern", "parent": 133, "children": [135], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 6}}, {"id": 135, "type": "extern", "text": "extern", "parent": 134, "children": [], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 6}}, {"id": 136, "type": "type_identifier", "text": "CapabilityInfo", "parent": 133, "children": [], "start_point": {"row": 51, "column": 7}, "end_point": {"row": 51, "column": 21}}, {"id": 137, "type": "array_declarator", "text": "capabilityInfoTable[]", "parent": 133, "children": [138], "start_point": {"row": 51, "column": 22}, "end_point": {"row": 51, "column": 43}}, {"id": 138, "type": "identifier", "text": "capabilityInfoTable", "parent": 137, "children": [], "start_point": {"row": 51, "column": 22}, "end_point": {"row": 51, "column": 41}}, {"id": 139, "type": "declaration", "text": "void Init_capng_capability(VALUE);", "parent": 0, "children": [140, 141], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 34}}, {"id": 140, "type": "primitive_type", "text": "void", "parent": 139, "children": [], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 4}}, {"id": 141, "type": "function_declarator", "text": "Init_capng_capability(VALUE)", "parent": 139, "children": [142, 143], "start_point": {"row": 53, "column": 5}, "end_point": {"row": 53, "column": 33}}, {"id": 142, "type": "identifier", "text": "Init_capng_capability", "parent": 141, "children": [], "start_point": {"row": 53, "column": 5}, "end_point": {"row": 53, "column": 26}}, {"id": 143, "type": "parameter_list", "text": "(VALUE)", "parent": 141, "children": [144], "start_point": {"row": 53, "column": 26}, "end_point": {"row": 53, "column": 33}}, {"id": 144, "type": "parameter_declaration", "text": "VALUE", "parent": 143, "children": [145], "start_point": {"row": 53, "column": 27}, "end_point": {"row": 53, "column": 32}}, {"id": 145, "type": "type_identifier", "text": "VALUE", "parent": 144, "children": [], "start_point": {"row": 53, "column": 27}, "end_point": {"row": 53, "column": 32}}, {"id": 146, "type": "declaration", "text": "void Init_capng_enum(VALUE);", "parent": 0, "children": [147, 148], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 28}}, {"id": 147, "type": "primitive_type", "text": "void", "parent": 146, "children": [], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 4}}, {"id": 148, "type": "function_declarator", "text": "Init_capng_enum(VALUE)", "parent": 146, "children": [149, 150], "start_point": {"row": 54, "column": 5}, "end_point": {"row": 54, "column": 27}}, {"id": 149, "type": "identifier", "text": "Init_capng_enum", "parent": 148, "children": [], "start_point": {"row": 54, "column": 5}, "end_point": {"row": 54, "column": 20}}, {"id": 150, "type": "parameter_list", "text": "(VALUE)", "parent": 148, "children": [151], "start_point": {"row": 54, "column": 20}, "end_point": {"row": 54, "column": 27}}, {"id": 151, "type": "parameter_declaration", "text": "VALUE", "parent": 150, "children": [152], "start_point": {"row": 54, "column": 21}, "end_point": {"row": 54, "column": 26}}, {"id": 152, "type": "type_identifier", "text": "VALUE", "parent": 151, "children": [], "start_point": {"row": 54, "column": 21}, "end_point": {"row": 54, "column": 26}}, {"id": 153, "type": "declaration", "text": "void Init_capng_enum_action(VALUE);", "parent": 0, "children": [154, 155], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 35}}, {"id": 154, "type": "primitive_type", "text": "void", "parent": 153, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 4}}, {"id": 155, "type": "function_declarator", "text": "Init_capng_enum_action(VALUE)", "parent": 153, "children": [156, 157], "start_point": {"row": 55, "column": 5}, "end_point": {"row": 55, "column": 34}}, {"id": 156, "type": "identifier", "text": "Init_capng_enum_action", "parent": 155, "children": [], "start_point": {"row": 55, "column": 5}, "end_point": {"row": 55, "column": 27}}, {"id": 157, "type": "parameter_list", "text": "(VALUE)", "parent": 155, "children": [158], "start_point": {"row": 55, "column": 27}, "end_point": {"row": 55, "column": 34}}, {"id": 158, "type": "parameter_declaration", "text": "VALUE", "parent": 157, "children": [159], "start_point": {"row": 55, "column": 28}, "end_point": {"row": 55, "column": 33}}, {"id": 159, "type": "type_identifier", "text": "VALUE", "parent": 158, "children": [], "start_point": {"row": 55, "column": 28}, "end_point": {"row": 55, "column": 33}}, {"id": 160, "type": "declaration", "text": "void Init_capng_enum_flags(VALUE);", "parent": 0, "children": [161, 162], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 34}}, {"id": 161, "type": "primitive_type", "text": "void", "parent": 160, "children": [], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 4}}, {"id": 162, "type": "function_declarator", "text": "Init_capng_enum_flags(VALUE)", "parent": 160, "children": [163, 164], "start_point": {"row": 56, "column": 5}, "end_point": {"row": 56, "column": 33}}, {"id": 163, "type": "identifier", "text": "Init_capng_enum_flags", "parent": 162, "children": [], "start_point": {"row": 56, "column": 5}, "end_point": {"row": 56, "column": 26}}, {"id": 164, "type": "parameter_list", "text": "(VALUE)", "parent": 162, "children": [165], "start_point": {"row": 56, "column": 26}, "end_point": {"row": 56, "column": 33}}, {"id": 165, "type": "parameter_declaration", "text": "VALUE", "parent": 164, "children": [166], "start_point": {"row": 56, "column": 27}, "end_point": {"row": 56, "column": 32}}, {"id": 166, "type": "type_identifier", "text": "VALUE", "parent": 165, "children": [], "start_point": {"row": 56, "column": 27}, "end_point": {"row": 56, "column": 32}}, {"id": 167, "type": "declaration", "text": "void Init_capng_enum_result(VALUE);", "parent": 0, "children": [168, 169], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 35}}, {"id": 168, "type": "primitive_type", "text": "void", "parent": 167, "children": [], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 4}}, {"id": 169, "type": "function_declarator", "text": "Init_capng_enum_result(VALUE)", "parent": 167, "children": [170, 171], "start_point": {"row": 57, "column": 5}, "end_point": {"row": 57, "column": 34}}, {"id": 170, "type": "identifier", "text": "Init_capng_enum_result", "parent": 169, "children": [], "start_point": {"row": 57, "column": 5}, "end_point": {"row": 57, "column": 27}}, {"id": 171, "type": "parameter_list", "text": "(VALUE)", "parent": 169, "children": [172], "start_point": {"row": 57, "column": 27}, "end_point": {"row": 57, "column": 34}}, {"id": 172, "type": "parameter_declaration", "text": "VALUE", "parent": 171, "children": [173], "start_point": {"row": 57, "column": 28}, "end_point": {"row": 57, "column": 33}}, {"id": 173, "type": "type_identifier", "text": "VALUE", "parent": 172, "children": [], "start_point": {"row": 57, "column": 28}, "end_point": {"row": 57, "column": 33}}, {"id": 174, "type": "declaration", "text": "void Init_capng_enum_select(VALUE);", "parent": 0, "children": [175, 176], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 35}}, {"id": 175, "type": "primitive_type", "text": "void", "parent": 174, "children": [], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 4}}, {"id": 176, "type": "function_declarator", "text": "Init_capng_enum_select(VALUE)", "parent": 174, "children": [177, 178], "start_point": {"row": 58, "column": 5}, "end_point": {"row": 58, "column": 34}}, {"id": 177, "type": "identifier", "text": "Init_capng_enum_select", "parent": 176, "children": [], "start_point": {"row": 58, "column": 5}, "end_point": {"row": 58, "column": 27}}, {"id": 178, "type": "parameter_list", "text": "(VALUE)", "parent": 176, "children": [179], "start_point": {"row": 58, "column": 27}, "end_point": {"row": 58, "column": 34}}, {"id": 179, "type": "parameter_declaration", "text": "VALUE", "parent": 178, "children": [180], "start_point": {"row": 58, "column": 28}, "end_point": {"row": 58, "column": 33}}, {"id": 180, "type": "type_identifier", "text": "VALUE", "parent": 179, "children": [], "start_point": {"row": 58, "column": 28}, "end_point": {"row": 58, "column": 33}}, {"id": 181, "type": "declaration", "text": "void Init_capng_enum_type(VALUE);", "parent": 0, "children": [182, 183], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 33}}, {"id": 182, "type": "primitive_type", "text": "void", "parent": 181, "children": [], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 4}}, {"id": 183, "type": "function_declarator", "text": "Init_capng_enum_type(VALUE)", "parent": 181, "children": [184, 185], "start_point": {"row": 59, "column": 5}, "end_point": {"row": 59, "column": 32}}, {"id": 184, "type": "identifier", "text": "Init_capng_enum_type", "parent": 183, "children": [], "start_point": {"row": 59, "column": 5}, "end_point": {"row": 59, "column": 25}}, {"id": 185, "type": "parameter_list", "text": "(VALUE)", "parent": 183, "children": [186], "start_point": {"row": 59, "column": 25}, "end_point": {"row": 59, "column": 32}}, {"id": 186, "type": "parameter_declaration", "text": "VALUE", "parent": 185, "children": [187], "start_point": {"row": 59, "column": 26}, "end_point": {"row": 59, "column": 31}}, {"id": 187, "type": "type_identifier", "text": "VALUE", "parent": 186, "children": [], "start_point": {"row": 59, "column": 26}, "end_point": {"row": 59, "column": 31}}, {"id": 188, "type": "declaration", "text": "void Init_capng_print(VALUE);", "parent": 0, "children": [189, 190], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 29}}, {"id": 189, "type": "primitive_type", "text": "void", "parent": 188, "children": [], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 4}}, {"id": 190, "type": "function_declarator", "text": "Init_capng_print(VALUE)", "parent": 188, "children": [191, 192], "start_point": {"row": 60, "column": 5}, "end_point": {"row": 60, "column": 28}}, {"id": 191, "type": "identifier", "text": "Init_capng_print", "parent": 190, "children": [], "start_point": {"row": 60, "column": 5}, "end_point": {"row": 60, "column": 21}}, {"id": 192, "type": "parameter_list", "text": "(VALUE)", "parent": 190, "children": [193], "start_point": {"row": 60, "column": 21}, "end_point": {"row": 60, "column": 28}}, {"id": 193, "type": "parameter_declaration", "text": "VALUE", "parent": 192, "children": [194], "start_point": {"row": 60, "column": 22}, "end_point": {"row": 60, "column": 27}}, {"id": 194, "type": "type_identifier", "text": "VALUE", "parent": 193, "children": [], "start_point": {"row": 60, "column": 22}, "end_point": {"row": 60, "column": 27}}, {"id": 195, "type": "declaration", "text": "void Init_capng_state(VALUE);", "parent": 0, "children": [196, 197], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 29}}, {"id": 196, "type": "primitive_type", "text": "void", "parent": 195, "children": [], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 4}}, {"id": 197, "type": "function_declarator", "text": "Init_capng_state(VALUE)", "parent": 195, "children": [198, 199], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 28}}, {"id": 198, "type": "identifier", "text": "Init_capng_state", "parent": 197, "children": [], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 21}}, {"id": 199, "type": "parameter_list", "text": "(VALUE)", "parent": 197, "children": [200], "start_point": {"row": 61, "column": 21}, "end_point": {"row": 61, "column": 28}}, {"id": 200, "type": "parameter_declaration", "text": "VALUE", "parent": 199, "children": [201], "start_point": {"row": 61, "column": 22}, "end_point": {"row": 61, "column": 27}}, {"id": 201, "type": "type_identifier", "text": "VALUE", "parent": 200, "children": [], "start_point": {"row": 61, "column": 22}, "end_point": {"row": 61, "column": 27}}, {"id": 202, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 62, "column": 6}}]}, "node_categories": {"declarations": {"functions": [82, 92, 102, 112, 141, 148, 155, 162, 169, 176, 183, 190, 197], "variables": [30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105, 110, 115, 120, 124, 127, 133, 139, 144, 146, 151, 153, 158, 160, 165, 167, 172, 174, 179, 181, 186, 188, 193, 195, 200], "classes": [31, 36, 41, 46, 51, 56, 61, 66, 71, 76, 122, 123, 134], "imports": [6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25, 27, 28], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 33, 34, 38, 39, 43, 44, 48, 49, 53, 54, 58, 59, 63, 64, 68, 69, 73, 74, 78, 79, 81, 83, 89, 91, 93, 99, 101, 103, 109, 111, 113, 119, 126, 131, 132, 136, 138, 142, 145, 149, 152, 156, 159, 163, 166, 170, 173, 177, 180, 184, 187, 191, 194, 198, 201, 202], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 20, 23, 26, 29], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 82, "universal_type": "function", "name": "unknown", "text_snippet": "select_name_to_select_type(char* select_name)"}, {"node_id": 92, "universal_type": "function", "name": "unknown", "text_snippet": "action_name_to_action_type(char* action_name)"}, {"node_id": 102, "universal_type": "function", "name": "unknown", "text_snippet": "print_name_to_print_type(char* print_name)"}, {"node_id": 112, "universal_type": "function", "name": "unknown", "text_snippet": "capability_type_name_to_capability_type(char* capability_name)"}, {"node_id": 141, "universal_type": "function", "name": "unknown", "text_snippet": "Init_capng_capability(VALUE)"}, {"node_id": 148, "universal_type": "function", "name": "unknown", "text_snippet": "Init_capng_enum(VALUE)"}, {"node_id": 155, "universal_type": "function", "name": "unknown", "text_snippet": "Init_capng_enum_action(VALUE)"}, {"node_id": 162, "universal_type": "function", "name": "unknown", "text_snippet": "Init_capng_enum_flags(VALUE)"}, {"node_id": 169, "universal_type": "function", "name": "unknown", "text_snippet": "Init_capng_enum_result(VALUE)"}, {"node_id": 176, "universal_type": "function", "name": "unknown", "text_snippet": "Init_capng_enum_select(VALUE)"}, {"node_id": 183, "universal_type": "function", "name": "unknown", "text_snippet": "Init_capng_enum_type(VALUE)"}, {"node_id": 190, "universal_type": "function", "name": "unknown", "text_snippet": "Init_capng_print(VALUE)"}, {"node_id": 197, "universal_type": "function", "name": "unknown", "text_snippet": "Init_capng_state(VALUE)"}], "class_declarations": [{"node_id": 31, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 36, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 41, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 46, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 51, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 56, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 61, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 66, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 71, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 76, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 122, "universal_type": "class", "name": "{", "text_snippet": "struct {\n int code;\n const char* name;\n}"}, {"node_id": 123, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 134, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}], "import_statements": [{"node_id": 6, "text": "#include <ruby.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <ruby/encoding.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <ruby/io.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <cap-ng.h>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <fcntl.h>\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include <stdio.h>\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include <sys/stat.h>\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include <sys/types.h>\n"}, {"node_id": 28, "text": "#include"}]}, "original_source_code": "/* capng_c */\n/* Copyright 2020- <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/* http://www.apache.org/licenses/LICENSE-2.0 */\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 _CAPNG_H_\n#define _CAPNG_H_\n\n#include <ruby.h>\n#include <ruby/encoding.h>\n#include <ruby/io.h>\n\n#include <cap-ng.h>\n#include <fcntl.h>\n#include <stdio.h>\n#include <sys/stat.h>\n#include <sys/types.h>\n\nextern VALUE rb_cCapNG;\nextern VALUE rb_cCapNGPrint;\nextern VALUE rb_cCapability;\nextern VALUE rb_cState;\nextern VALUE rb_mAction;\nextern VALUE rb_mSelect;\nextern VALUE rb_mType;\nextern VALUE rb_mResult;\nextern VALUE rb_mPrint;\nextern VALUE rb_mFlags;\n\ncapng_select_t\nselect_name_to_select_type(char* select_name);\ncapng_act_t\naction_name_to_action_type(char* action_name);\ncapng_print_t\nprint_name_to_print_type(char* print_name);\ncapng_type_t\ncapability_type_name_to_capability_type(char* capability_name);\n\ntypedef struct {\n int code;\n const char* name;\n} CapabilityInfo;\n\nextern CapabilityInfo capabilityInfoTable[];\n\nvoid Init_capng_capability(VALUE);\nvoid Init_capng_enum(VALUE);\nvoid Init_capng_enum_action(VALUE);\nvoid Init_capng_enum_flags(VALUE);\nvoid Init_capng_enum_result(VALUE);\nvoid Init_capng_enum_select(VALUE);\nvoid Init_capng_enum_type(VALUE);\nvoid Init_capng_print(VALUE);\nvoid Init_capng_state(VALUE);\n#endif // _CAPNG_H\n"}
80,273
c
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <stddef.h> #include <uthash.h> #include "utils.h" #include "base_seq_repr.h" #include "htslib/synced_bcf_reader.h" struct cosm_count_table { // the following two fields form the key uint32_t pos; uint32_t b5alt; // value uint32_t count; UT_hash_handle hh; }; static struct cosm_count_table *cct; void destroy_cosmic_table() { struct cosm_count_table *el, *tmp; HASH_ITER(hh, cct, el, tmp) { HASH_DEL(cct, el); free(el); } } int32_t get_cosmic_count(uint32_t pos, uint32_t b5alt) { uint32_t key_len; struct cosm_count_table key_holder; struct cosm_count_table *ent; memset(&key_holder, 0, sizeof(key_holder)); key_holder.pos = pos; key_holder.b5alt = b5alt; key_len = offsetof(struct cosm_count_table, b5alt) + sizeof(b5alt) - offsetof(struct cosm_count_table, pos); HASH_FIND(hh, cct, &key_holder.pos, key_len, ent); if (ent == NULL) return -1; return ent->count; } int load_cosmic_table(const char *vcf_fname, const char *chr) { int res; uint32_t pos, b5alt, count; uint32_t key_len; struct cosm_count_table *ent; bcf1_t *line; bcf_hdr_t *header; bcf_info_t *info; bcf_srs_t *rs = bcf_sr_init(); bcf_sr_set_regions(rs, chr, 0); res = bcf_sr_add_reader(rs, vcf_fname); header = rs->readers[0].header; cct = NULL; key_len = offsetof(struct cosm_count_table, b5alt) + sizeof(b5alt) - offsetof(struct cosm_count_table, pos); if (res == 0) { err_printf("error: %s\n", bcf_sr_strerror(rs->errnum)); return 0; } while (bcf_sr_next_line(rs)) { if (!bcf_sr_has_line(rs, 0)) continue; line = bcf_sr_get_line(rs, 0); info = bcf_get_info(header, line, "CNT"); pos = line->pos + 1; if (!info) continue; // TODO: enforce the condition below more strictly! if (line->n_allele != 2) continue; b5alt = str_to_b5seq(line->d.allele[1]); // [1] is the ALT if (get_cosmic_count(pos, b5alt) > -1) continue; count = info->v1.i; ent = malloc(sizeof(struct cosm_count_table)); ent->pos = pos; ent->b5alt = b5alt; ent->count = count; HASH_ADD(hh, cct, pos, key_len, ent); } bcf_sr_destroy(rs); return 1; }
25.17
82
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <stdint.h>\n#include <stddef.h>\n#include <uthash.h>\n\n#include "utils.h"\n#include "base_seq_repr.h"\n\n#include "htslib/synced_bcf_reader.h"\n\nstruct cosm_count_table {\n // the following two fields form the key\n uint32_t pos;\n uint32_t b5alt;\n\n // value\n uint32_t count;\n\n UT_hash_handle hh;\n};\n\nstatic struct cosm_count_table *cct;\n\nvoid destroy_cosmic_table()\n{\n struct cosm_count_table *el, *tmp;\n HASH_ITER(hh, cct, el, tmp) {\n HASH_DEL(cct, el);\n free(el);\n }\n}\n\nint32_t get_cosmic_count(uint32_t pos, uint32_t b5alt)\n{\n uint32_t key_len;\n struct cosm_count_table key_holder;\n struct cosm_count_table *ent;\n\n memset(&key_holder, 0, sizeof(key_holder));\n\n key_holder.pos = pos;\n key_holder.b5alt = b5alt;\n\n key_len = offsetof(struct cosm_count_table, b5alt)\n + sizeof(b5alt)\n - offsetof(struct cosm_count_table, pos);\n\n HASH_FIND(hh, cct, &key_holder.pos, key_len, ent);\n\n if (ent == NULL) return -1;\n\n return ent->count;\n}\n\nint load_cosmic_table(const char *vcf_fname, const char *chr)\n{\n int res;\n uint32_t pos, b5alt, count;\n uint32_t key_len;\n struct cosm_count_table *ent;\n bcf1_t *line;\n bcf_hdr_t *header;\n bcf_info_t *info;\n bcf_srs_t *rs = bcf_sr_init();\n\n bcf_sr_set_regions(rs, chr, 0);\n\n res = bcf_sr_add_reader(rs, vcf_fname);\n header = rs->readers[0].header;\n\n cct = NULL;\n\n key_len = offsetof(struct cosm_count_table, b5alt)\n + sizeof(b5alt)\n - offsetof(struct cosm_count_table, pos);\n\n if (res == 0) {\n err_printf("error: %s\n", bcf_sr_strerror(rs->errnum));\n return 0;\n }\n\n while (bcf_sr_next_line(rs)) {\n if (!bcf_sr_has_line(rs, 0)) continue;\n\n line = bcf_sr_get_line(rs, 0);\n info = bcf_get_info(header, line, "CNT");\n pos = line->pos + 1;\n if (!info) continue;\n\n // TODO: enforce the condition below more strictly!\n if (line->n_allele != 2) continue;\n\n b5alt = str_to_b5seq(line->d.allele[1]); // [1] is the ALT\n if (get_cosmic_count(pos, b5alt) > -1) continue;\n\n count = info->v1.i;\n ent = malloc(sizeof(struct cosm_count_table));\n ent->pos = pos;\n ent->b5alt = b5alt;\n ent->count = count;\n\n HASH_ADD(hh, cct, pos, key_len, ent);\n }\n\n\n bcf_sr_destroy(rs);\n\n return 1;\n\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 <stdint.h>\n" (#include) "#include" (system_lib_string) "<stdint.h>" (preproc_include) "#include <stddef.h>\n" (#include) "#include" (system_lib_string) "<stddef.h>" (preproc_include) "#include <uthash.h>\n" (#include) "#include" (system_lib_string) "<uthash.h>" (preproc_include) "#include "utils.h"\n" (#include) "#include" (string_literal) ""utils.h"" (") """ (string_content) "utils.h" (") """ (preproc_include) "#include "base_seq_repr.h"\n" (#include) "#include" (string_literal) ""base_seq_repr.h"" (") """ (string_content) "base_seq_repr.h" (") """ (preproc_include) "#include "htslib/synced_bcf_reader.h"\n" (#include) "#include" (string_literal) ""htslib/synced_bcf_reader.h"" (") """ (string_content) "htslib/synced_bcf_reader.h" (") """ (struct_specifier) "struct cosm_count_table {\n // the following two fields form the key\n uint32_t pos;\n uint32_t b5alt;\n\n // value\n uint32_t count;\n\n UT_hash_handle hh;\n}" (struct) "struct" (type_identifier) "cosm_count_table" (field_declaration_list) "{\n // the following two fields form the key\n uint32_t pos;\n uint32_t b5alt;\n\n // value\n uint32_t count;\n\n UT_hash_handle hh;\n}" ({) "{" (comment) "// the following two fields form the key" (field_declaration) "uint32_t pos;" (primitive_type) "uint32_t" (field_identifier) "pos" (;) ";" (field_declaration) "uint32_t b5alt;" (primitive_type) "uint32_t" (field_identifier) "b5alt" (;) ";" (comment) "// value" (field_declaration) "uint32_t count;" (primitive_type) "uint32_t" (field_identifier) "count" (;) ";" (field_declaration) "UT_hash_handle hh;" (type_identifier) "UT_hash_handle" (field_identifier) "hh" (;) ";" (}) "}" (;) ";" (declaration) "static struct cosm_count_table *cct;" (storage_class_specifier) "static" (static) "static" (struct_specifier) "struct cosm_count_table" (struct) "struct" (type_identifier) "cosm_count_table" (pointer_declarator) "*cct" (*) "*" (identifier) "cct" (;) ";" (function_definition) "void destroy_cosmic_table()\n{\n struct cosm_count_table *el, *tmp;\n HASH_ITER(hh, cct, el, tmp) {\n HASH_DEL(cct, el);\n free(el);\n }\n}" (primitive_type) "void" (function_declarator) "destroy_cosmic_table()" (identifier) "destroy_cosmic_table" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n struct cosm_count_table *el, *tmp;\n HASH_ITER(hh, cct, el, tmp) {\n HASH_DEL(cct, el);\n free(el);\n }\n}" ({) "{" (declaration) "struct cosm_count_table *el, *tmp;" (struct_specifier) "struct cosm_count_table" (struct) "struct" (type_identifier) "cosm_count_table" (pointer_declarator) "*el" (*) "*" (identifier) "el" (,) "," (pointer_declarator) "*tmp" (*) "*" (identifier) "tmp" (;) ";" (expression_statement) "HASH_ITER(hh, cct, el, tmp)" (call_expression) "HASH_ITER(hh, cct, el, tmp)" (identifier) "HASH_ITER" (argument_list) "(hh, cct, el, tmp)" (() "(" (identifier) "hh" (,) "," (identifier) "cct" (,) "," (identifier) "el" (,) "," (identifier) "tmp" ()) ")" (;) "" (compound_statement) "{\n HASH_DEL(cct, el);\n free(el);\n }" ({) "{" (expression_statement) "HASH_DEL(cct, el);" (call_expression) "HASH_DEL(cct, el)" (identifier) "HASH_DEL" (argument_list) "(cct, el)" (() "(" (identifier) "cct" (,) "," (identifier) "el" ()) ")" (;) ";" (expression_statement) "free(el);" (call_expression) "free(el)" (identifier) "free" (argument_list) "(el)" (() "(" (identifier) "el" ()) ")" (;) ";" (}) "}" (}) "}" (function_definition) "int32_t get_cosmic_count(uint32_t pos, uint32_t b5alt)\n{\n uint32_t key_len;\n struct cosm_count_table key_holder;\n struct cosm_count_table *ent;\n\n memset(&key_holder, 0, sizeof(key_holder));\n\n key_holder.pos = pos;\n key_holder.b5alt = b5alt;\n\n key_len = offsetof(struct cosm_count_table, b5alt)\n + sizeof(b5alt)\n - offsetof(struct cosm_count_table, pos);\n\n HASH_FIND(hh, cct, &key_holder.pos, key_len, ent);\n\n if (ent == NULL) return -1;\n\n return ent->count;\n}" (primitive_type) "int32_t" (function_declarator) "get_cosmic_count(uint32_t pos, uint32_t b5alt)" (identifier) "get_cosmic_count" (parameter_list) "(uint32_t pos, uint32_t b5alt)" (() "(" (parameter_declaration) "uint32_t pos" (primitive_type) "uint32_t" (identifier) "pos" (,) "," (parameter_declaration) "uint32_t b5alt" (primitive_type) "uint32_t" (identifier) "b5alt" ()) ")" (compound_statement) "{\n uint32_t key_len;\n struct cosm_count_table key_holder;\n struct cosm_count_table *ent;\n\n memset(&key_holder, 0, sizeof(key_holder));\n\n key_holder.pos = pos;\n key_holder.b5alt = b5alt;\n\n key_len = offsetof(struct cosm_count_table, b5alt)\n + sizeof(b5alt)\n - offsetof(struct cosm_count_table, pos);\n\n HASH_FIND(hh, cct, &key_holder.pos, key_len, ent);\n\n if (ent == NULL) return -1;\n\n return ent->count;\n}" ({) "{" (declaration) "uint32_t key_len;" (primitive_type) "uint32_t" (identifier) "key_len" (;) ";" (declaration) "struct cosm_count_table key_holder;" (struct_specifier) "struct cosm_count_table" (struct) "struct" (type_identifier) "cosm_count_table" (identifier) "key_holder" (;) ";" (declaration) "struct cosm_count_table *ent;" (struct_specifier) "struct cosm_count_table" (struct) "struct" (type_identifier) "cosm_count_table" (pointer_declarator) "*ent" (*) "*" (identifier) "ent" (;) ";" (expression_statement) "memset(&key_holder, 0, sizeof(key_holder));" (call_expression) "memset(&key_holder, 0, sizeof(key_holder))" (identifier) "memset" (argument_list) "(&key_holder, 0, sizeof(key_holder))" (() "(" (pointer_expression) "&key_holder" (&) "&" (identifier) "key_holder" (,) "," (number_literal) "0" (,) "," (sizeof_expression) "sizeof(key_holder)" (sizeof) "sizeof" (parenthesized_expression) "(key_holder)" (() "(" (identifier) "key_holder" ()) ")" ()) ")" (;) ";" (expression_statement) "key_holder.pos = pos;" (assignment_expression) "key_holder.pos = pos" (field_expression) "key_holder.pos" (identifier) "key_holder" (.) "." (field_identifier) "pos" (=) "=" (identifier) "pos" (;) ";" (expression_statement) "key_holder.b5alt = b5alt;" (assignment_expression) "key_holder.b5alt = b5alt" (field_expression) "key_holder.b5alt" (identifier) "key_holder" (.) "." (field_identifier) "b5alt" (=) "=" (identifier) "b5alt" (;) ";" (expression_statement) "key_len = offsetof(struct cosm_count_table, b5alt)\n + sizeof(b5alt)\n - offsetof(struct cosm_count_table, pos);" (assignment_expression) "key_len = offsetof(struct cosm_count_table, b5alt)\n + sizeof(b5alt)\n - offsetof(struct cosm_count_table, pos)" (identifier) "key_len" (=) "=" (binary_expression) "offsetof(struct cosm_count_table, b5alt)\n + sizeof(b5alt)\n - offsetof(struct cosm_count_table, pos)" (binary_expression) "offsetof(struct cosm_count_table, b5alt)\n + sizeof(b5alt)" (offsetof_expression) "offsetof(struct cosm_count_table, b5alt)" (offsetof) "offsetof" (() "(" (type_descriptor) "struct cosm_count_table" (struct_specifier) "struct cosm_count_table" (struct) "struct" (type_identifier) "cosm_count_table" (,) "," (field_identifier) "b5alt" ()) ")" (+) "+" (sizeof_expression) "sizeof(b5alt)" (sizeof) "sizeof" (parenthesized_expression) "(b5alt)" (() "(" (identifier) "b5alt" ()) ")" (-) "-" (offsetof_expression) "offsetof(struct cosm_count_table, pos)" (offsetof) "offsetof" (() "(" (type_descriptor) "struct cosm_count_table" (struct_specifier) "struct cosm_count_table" (struct) "struct" (type_identifier) "cosm_count_table" (,) "," (field_identifier) "pos" ()) ")" (;) ";" (expression_statement) "HASH_FIND(hh, cct, &key_holder.pos, key_len, ent);" (call_expression) "HASH_FIND(hh, cct, &key_holder.pos, key_len, ent)" (identifier) "HASH_FIND" (argument_list) "(hh, cct, &key_holder.pos, key_len, ent)" (() "(" (identifier) "hh" (,) "," (identifier) "cct" (,) "," (pointer_expression) "&key_holder.pos" (&) "&" (field_expression) "key_holder.pos" (identifier) "key_holder" (.) "." (field_identifier) "pos" (,) "," (identifier) "key_len" (,) "," (identifier) "ent" ()) ")" (;) ";" (if_statement) "if (ent == NULL) return -1;" (if) "if" (parenthesized_expression) "(ent == NULL)" (() "(" (binary_expression) "ent == NULL" (identifier) "ent" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (return_statement) "return -1;" (return) "return" (number_literal) "-1" (;) ";" (return_statement) "return ent->count;" (return) "return" (field_expression) "ent->count" (identifier) "ent" (->) "->" (field_identifier) "count" (;) ";" (}) "}" (function_definition) "int load_cosmic_table(const char *vcf_fname, const char *chr)\n{\n int res;\n uint32_t pos, b5alt, count;\n uint32_t key_len;\n struct cosm_count_table *ent;\n bcf1_t *line;\n bcf_hdr_t *header;\n bcf_info_t *info;\n bcf_srs_t *rs = bcf_sr_init();\n\n bcf_sr_set_regions(rs, chr, 0);\n\n res = bcf_sr_add_reader(rs, vcf_fname);\n header = rs->readers[0].header;\n\n cct = NULL;\n\n key_len = offsetof(struct cosm_count_table, b5alt)\n + sizeof(b5alt)\n - offsetof(struct cosm_count_table, pos);\n\n if (res == 0) {\n err_printf("error: %s\n", bcf_sr_strerror(rs->errnum));\n return 0;\n }\n\n while (bcf_sr_next_line(rs)) {\n if (!bcf_sr_has_line(rs, 0)) continue;\n\n line = bcf_sr_get_line(rs, 0);\n info = bcf_get_info(header, line, "CNT");\n pos = line->pos + 1;\n if (!info) continue;\n\n // TODO: enforce the condition below more strictly!\n if (line->n_allele != 2) continue;\n\n b5alt = str_to_b5seq(line->d.allele[1]); // [1] is the ALT\n if (get_cosmic_count(pos, b5alt) > -1) continue;\n\n count = info->v1.i;\n ent = malloc(sizeof(struct cosm_count_table));\n ent->pos = pos;\n ent->b5alt = b5alt;\n ent->count = count;\n\n HASH_ADD(hh, cct, pos, key_len, ent);\n }\n\n\n bcf_sr_destroy(rs);\n\n return 1;\n\n}" (primitive_type) "int" (function_declarator) "load_cosmic_table(const char *vcf_fname, const char *chr)" (identifier) "load_cosmic_table" (parameter_list) "(const char *vcf_fname, const char *chr)" (() "(" (parameter_declaration) "const char *vcf_fname" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*vcf_fname" (*) "*" (identifier) "vcf_fname" (,) "," (parameter_declaration) "const char *chr" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*chr" (*) "*" (identifier) "chr" ()) ")" (compound_statement) "{\n int res;\n uint32_t pos, b5alt, count;\n uint32_t key_len;\n struct cosm_count_table *ent;\n bcf1_t *line;\n bcf_hdr_t *header;\n bcf_info_t *info;\n bcf_srs_t *rs = bcf_sr_init();\n\n bcf_sr_set_regions(rs, chr, 0);\n\n res = bcf_sr_add_reader(rs, vcf_fname);\n header = rs->readers[0].header;\n\n cct = NULL;\n\n key_len = offsetof(struct cosm_count_table, b5alt)\n + sizeof(b5alt)\n - offsetof(struct cosm_count_table, pos);\n\n if (res == 0) {\n err_printf("error: %s\n", bcf_sr_strerror(rs->errnum));\n return 0;\n }\n\n while (bcf_sr_next_line(rs)) {\n if (!bcf_sr_has_line(rs, 0)) continue;\n\n line = bcf_sr_get_line(rs, 0);\n info = bcf_get_info(header, line, "CNT");\n pos = line->pos + 1;\n if (!info) continue;\n\n // TODO: enforce the condition below more strictly!\n if (line->n_allele != 2) continue;\n\n b5alt = str_to_b5seq(line->d.allele[1]); // [1] is the ALT\n if (get_cosmic_count(pos, b5alt) > -1) continue;\n\n count = info->v1.i;\n ent = malloc(sizeof(struct cosm_count_table));\n ent->pos = pos;\n ent->b5alt = b5alt;\n ent->count = count;\n\n HASH_ADD(hh, cct, pos, key_len, ent);\n }\n\n\n bcf_sr_destroy(rs);\n\n return 1;\n\n}" ({) "{" (declaration) "int res;" (primitive_type) "int" (identifier) "res" (;) ";" (declaration) "uint32_t pos, b5alt, count;" (primitive_type) "uint32_t" (identifier) "pos" (,) "," (identifier) "b5alt" (,) "," (identifier) "count" (;) ";" (declaration) "uint32_t key_len;" (primitive_type) "uint32_t" (identifier) "key_len" (;) ";" (declaration) "struct cosm_count_table *ent;" (struct_specifier) "struct cosm_count_table" (struct) "struct" (type_identifier) "cosm_count_table" (pointer_declarator) "*ent" (*) "*" (identifier) "ent" (;) ";" (declaration) "bcf1_t *line;" (type_identifier) "bcf1_t" (pointer_declarator) "*line" (*) "*" (identifier) "line" (;) ";" (declaration) "bcf_hdr_t *header;" (type_identifier) "bcf_hdr_t" (pointer_declarator) "*header" (*) "*" (identifier) "header" (;) ";" (declaration) "bcf_info_t *info;" (type_identifier) "bcf_info_t" (pointer_declarator) "*info" (*) "*" (identifier) "info" (;) ";" (declaration) "bcf_srs_t *rs = bcf_sr_init();" (type_identifier) "bcf_srs_t" (init_declarator) "*rs = bcf_sr_init()" (pointer_declarator) "*rs" (*) "*" (identifier) "rs" (=) "=" (call_expression) "bcf_sr_init()" (identifier) "bcf_sr_init" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "bcf_sr_set_regions(rs, chr, 0);" (call_expression) "bcf_sr_set_regions(rs, chr, 0)" (identifier) "bcf_sr_set_regions" (argument_list) "(rs, chr, 0)" (() "(" (identifier) "rs" (,) "," (identifier) "chr" (,) "," (number_literal) "0" ()) ")" (;) ";" (expression_statement) "res = bcf_sr_add_reader(rs, vcf_fname);" (assignment_expression) "res = bcf_sr_add_reader(rs, vcf_fname)" (identifier) "res" (=) "=" (call_expression) "bcf_sr_add_reader(rs, vcf_fname)" (identifier) "bcf_sr_add_reader" (argument_list) "(rs, vcf_fname)" (() "(" (identifier) "rs" (,) "," (identifier) "vcf_fname" ()) ")" (;) ";" (expression_statement) "header = rs->readers[0].header;" (assignment_expression) "header = rs->readers[0].header" (identifier) "header" (=) "=" (field_expression) "rs->readers[0].header" (subscript_expression) "rs->readers[0]" (field_expression) "rs->readers" (identifier) "rs" (->) "->" (field_identifier) "readers" ([) "[" (number_literal) "0" (]) "]" (.) "." (field_identifier) "header" (;) ";" (expression_statement) "cct = NULL;" (assignment_expression) "cct = NULL" (identifier) "cct" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "key_len = offsetof(struct cosm_count_table, b5alt)\n + sizeof(b5alt)\n - offsetof(struct cosm_count_table, pos);" (assignment_expression) "key_len = offsetof(struct cosm_count_table, b5alt)\n + sizeof(b5alt)\n - offsetof(struct cosm_count_table, pos)" (identifier) "key_len" (=) "=" (binary_expression) "offsetof(struct cosm_count_table, b5alt)\n + sizeof(b5alt)\n - offsetof(struct cosm_count_table, pos)" (binary_expression) "offsetof(struct cosm_count_table, b5alt)\n + sizeof(b5alt)" (offsetof_expression) "offsetof(struct cosm_count_table, b5alt)" (offsetof) "offsetof" (() "(" (type_descriptor) "struct cosm_count_table" (struct_specifier) "struct cosm_count_table" (struct) "struct" (type_identifier) "cosm_count_table" (,) "," (field_identifier) "b5alt" ()) ")" (+) "+" (sizeof_expression) "sizeof(b5alt)" (sizeof) "sizeof" (parenthesized_expression) "(b5alt)" (() "(" (identifier) "b5alt" ()) ")" (-) "-" (offsetof_expression) "offsetof(struct cosm_count_table, pos)" (offsetof) "offsetof" (() "(" (type_descriptor) "struct cosm_count_table" (struct_specifier) "struct cosm_count_table" (struct) "struct" (type_identifier) "cosm_count_table" (,) "," (field_identifier) "pos" ()) ")" (;) ";" (if_statement) "if (res == 0) {\n err_printf("error: %s\n", bcf_sr_strerror(rs->errnum));\n return 0;\n }" (if) "if" (parenthesized_expression) "(res == 0)" (() "(" (binary_expression) "res == 0" (identifier) "res" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n err_printf("error: %s\n", bcf_sr_strerror(rs->errnum));\n return 0;\n }" ({) "{" (expression_statement) "err_printf("error: %s\n", bcf_sr_strerror(rs->errnum));" (call_expression) "err_printf("error: %s\n", bcf_sr_strerror(rs->errnum))" (identifier) "err_printf" (argument_list) "("error: %s\n", bcf_sr_strerror(rs->errnum))" (() "(" (string_literal) ""error: %s\n"" (") """ (string_content) "error: %s" (escape_sequence) "\n" (") """ (,) "," (call_expression) "bcf_sr_strerror(rs->errnum)" (identifier) "bcf_sr_strerror" (argument_list) "(rs->errnum)" (() "(" (field_expression) "rs->errnum" (identifier) "rs" (->) "->" (field_identifier) "errnum" ()) ")" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (while_statement) "while (bcf_sr_next_line(rs)) {\n if (!bcf_sr_has_line(rs, 0)) continue;\n\n line = bcf_sr_get_line(rs, 0);\n info = bcf_get_info(header, line, "CNT");\n pos = line->pos + 1;\n if (!info) continue;\n\n // TODO: enforce the condition below more strictly!\n if (line->n_allele != 2) continue;\n\n b5alt = str_to_b5seq(line->d.allele[1]); // [1] is the ALT\n if (get_cosmic_count(pos, b5alt) > -1) continue;\n\n count = info->v1.i;\n ent = malloc(sizeof(struct cosm_count_table));\n ent->pos = pos;\n ent->b5alt = b5alt;\n ent->count = count;\n\n HASH_ADD(hh, cct, pos, key_len, ent);\n }" (while) "while" (parenthesized_expression) "(bcf_sr_next_line(rs))" (() "(" (call_expression) "bcf_sr_next_line(rs)" (identifier) "bcf_sr_next_line" (argument_list) "(rs)" (() "(" (identifier) "rs" ()) ")" ()) ")" (compound_statement) "{\n if (!bcf_sr_has_line(rs, 0)) continue;\n\n line = bcf_sr_get_line(rs, 0);\n info = bcf_get_info(header, line, "CNT");\n pos = line->pos + 1;\n if (!info) continue;\n\n // TODO: enforce the condition below more strictly!\n if (line->n_allele != 2) continue;\n\n b5alt = str_to_b5seq(line->d.allele[1]); // [1] is the ALT\n if (get_cosmic_count(pos, b5alt) > -1) continue;\n\n count = info->v1.i;\n ent = malloc(sizeof(struct cosm_count_table));\n ent->pos = pos;\n ent->b5alt = b5alt;\n ent->count = count;\n\n HASH_ADD(hh, cct, pos, key_len, ent);\n }" ({) "{" (if_statement) "if (!bcf_sr_has_line(rs, 0)) continue;" (if) "if" (parenthesized_expression) "(!bcf_sr_has_line(rs, 0))" (() "(" (unary_expression) "!bcf_sr_has_line(rs, 0)" (!) "!" (call_expression) "bcf_sr_has_line(rs, 0)" (identifier) "bcf_sr_has_line" (argument_list) "(rs, 0)" (() "(" (identifier) "rs" (,) "," (number_literal) "0" ()) ")" ()) ")" (continue_statement) "continue;" (continue) "continue" (;) ";" (expression_statement) "line = bcf_sr_get_line(rs, 0);" (assignment_expression) "line = bcf_sr_get_line(rs, 0)" (identifier) "line" (=) "=" (call_expression) "bcf_sr_get_line(rs, 0)" (identifier) "bcf_sr_get_line" (argument_list) "(rs, 0)" (() "(" (identifier) "rs" (,) "," (number_literal) "0" ()) ")" (;) ";" (expression_statement) "info = bcf_get_info(header, line, "CNT");" (assignment_expression) "info = bcf_get_info(header, line, "CNT")" (identifier) "info" (=) "=" (call_expression) "bcf_get_info(header, line, "CNT")" (identifier) "bcf_get_info" (argument_list) "(header, line, "CNT")" (() "(" (identifier) "header" (,) "," (identifier) "line" (,) "," (string_literal) ""CNT"" (") """ (string_content) "CNT" (") """ ()) ")" (;) ";" (expression_statement) "pos = line->pos + 1;" (assignment_expression) "pos = line->pos + 1" (identifier) "pos" (=) "=" (binary_expression) "line->pos + 1" (field_expression) "line->pos" (identifier) "line" (->) "->" (field_identifier) "pos" (+) "+" (number_literal) "1" (;) ";" (if_statement) "if (!info) continue;" (if) "if" (parenthesized_expression) "(!info)" (() "(" (unary_expression) "!info" (!) "!" (identifier) "info" ()) ")" (continue_statement) "continue;" (continue) "continue" (;) ";" (comment) "// TODO: enforce the condition below more strictly!" (if_statement) "if (line->n_allele != 2) continue;" (if) "if" (parenthesized_expression) "(line->n_allele != 2)" (() "(" (binary_expression) "line->n_allele != 2" (field_expression) "line->n_allele" (identifier) "line" (->) "->" (field_identifier) "n_allele" (!=) "!=" (number_literal) "2" ()) ")" (continue_statement) "continue;" (continue) "continue" (;) ";" (expression_statement) "b5alt = str_to_b5seq(line->d.allele[1]);" (assignment_expression) "b5alt = str_to_b5seq(line->d.allele[1])" (identifier) "b5alt" (=) "=" (call_expression) "str_to_b5seq(line->d.allele[1])" (identifier) "str_to_b5seq" (argument_list) "(line->d.allele[1])" (() "(" (subscript_expression) "line->d.allele[1]" (field_expression) "line->d.allele" (field_expression) "line->d" (identifier) "line" (->) "->" (field_identifier) "d" (.) "." (field_identifier) "allele" ([) "[" (number_literal) "1" (]) "]" ()) ")" (;) ";" (comment) "// [1] is the ALT" (if_statement) "if (get_cosmic_count(pos, b5alt) > -1) continue;" (if) "if" (parenthesized_expression) "(get_cosmic_count(pos, b5alt) > -1)" (() "(" (binary_expression) "get_cosmic_count(pos, b5alt) > -1" (call_expression) "get_cosmic_count(pos, b5alt)" (identifier) "get_cosmic_count" (argument_list) "(pos, b5alt)" (() "(" (identifier) "pos" (,) "," (identifier) "b5alt" ()) ")" (>) ">" (number_literal) "-1" ()) ")" (continue_statement) "continue;" (continue) "continue" (;) ";" (expression_statement) "count = info->v1.i;" (assignment_expression) "count = info->v1.i" (identifier) "count" (=) "=" (field_expression) "info->v1.i" (field_expression) "info->v1" (identifier) "info" (->) "->" (field_identifier) "v1" (.) "." (field_identifier) "i" (;) ";" (expression_statement) "ent = malloc(sizeof(struct cosm_count_table));" (assignment_expression) "ent = malloc(sizeof(struct cosm_count_table))" (identifier) "ent" (=) "=" (call_expression) "malloc(sizeof(struct cosm_count_table))" (identifier) "malloc" (argument_list) "(sizeof(struct cosm_count_table))" (() "(" (sizeof_expression) "sizeof(struct cosm_count_table)" (sizeof) "sizeof" (() "(" (type_descriptor) "struct cosm_count_table" (struct_specifier) "struct cosm_count_table" (struct) "struct" (type_identifier) "cosm_count_table" ()) ")" ()) ")" (;) ";" (expression_statement) "ent->pos = pos;" (assignment_expression) "ent->pos = pos" (field_expression) "ent->pos" (identifier) "ent" (->) "->" (field_identifier) "pos" (=) "=" (identifier) "pos" (;) ";" (expression_statement) "ent->b5alt = b5alt;" (assignment_expression) "ent->b5alt = b5alt" (field_expression) "ent->b5alt" (identifier) "ent" (->) "->" (field_identifier) "b5alt" (=) "=" (identifier) "b5alt" (;) ";" (expression_statement) "ent->count = count;" (assignment_expression) "ent->count = count" (field_expression) "ent->count" (identifier) "ent" (->) "->" (field_identifier) "count" (=) "=" (identifier) "count" (;) ";" (expression_statement) "HASH_ADD(hh, cct, pos, key_len, ent);" (call_expression) "HASH_ADD(hh, cct, pos, key_len, ent)" (identifier) "HASH_ADD" (argument_list) "(hh, cct, pos, key_len, ent)" (() "(" (identifier) "hh" (,) "," (identifier) "cct" (,) "," (identifier) "pos" (,) "," (identifier) "key_len" (,) "," (identifier) "ent" ()) ")" (;) ";" (}) "}" (expression_statement) "bcf_sr_destroy(rs);" (call_expression) "bcf_sr_destroy(rs)" (identifier) "bcf_sr_destroy" (argument_list) "(rs)" (() "(" (identifier) "rs" ()) ")" (;) ";" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}"
704
0
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 25.17, "nodes": 438, "errors": 0, "source_hash": "d08ed16e36d9dfa67a5a03ca042254dd5598c7d254b70095238de006aa4aa263", "categorized_nodes": 329}, "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 <stdint.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": "<stdint.h>", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 19}}, {"id": 9, "type": "preproc_include", "text": "#include <stddef.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": "<stddef.h>", "parent": 9, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 19}}, {"id": 12, "type": "preproc_include", "text": "#include <uthash.h>\n", "parent": null, "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": "<uthash.h>", "parent": 12, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 19}}, {"id": 15, "type": "preproc_include", "text": "#include \"utils.h\"\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": "string_literal", "text": "\"utils.h\"", "parent": 15, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 18}}, {"id": 18, "type": "preproc_include", "text": "#include \"base_seq_repr.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": "string_literal", "text": "\"base_seq_repr.h\"", "parent": 18, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 26}}, {"id": 21, "type": "preproc_include", "text": "#include \"htslib/synced_bcf_reader.h\"\n", "parent": null, "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": "\"htslib/synced_bcf_reader.h\"", "parent": 21, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 37}}, {"id": 24, "type": "struct_specifier", "text": "struct cosm_count_table {\n\t// the following two fields form the key\n\tuint32_t pos;\n\tuint32_t b5alt;\n\n\t// value\n\tuint32_t count;\n\n\tUT_hash_handle hh;\n}", "parent": null, "children": [25, 26], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 25, "type": "struct", "text": "struct", "parent": 24, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 6}}, {"id": 26, "type": "type_identifier", "text": "cosm_count_table", "parent": 24, "children": [], "start_point": {"row": 11, "column": 7}, "end_point": {"row": 11, "column": 23}}, {"id": 27, "type": "field_declaration", "text": "uint32_t pos;", "parent": 24, "children": [28, 29], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 14}}, {"id": 28, "type": "primitive_type", "text": "uint32_t", "parent": 27, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 9}}, {"id": 29, "type": "field_identifier", "text": "pos", "parent": 27, "children": [], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 13}}, {"id": 30, "type": "field_declaration", "text": "uint32_t b5alt;", "parent": 24, "children": [31, 32], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 16}}, {"id": 31, "type": "primitive_type", "text": "uint32_t", "parent": 30, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 9}}, {"id": 32, "type": "field_identifier", "text": "b5alt", "parent": 30, "children": [], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 15}}, {"id": 33, "type": "field_declaration", "text": "uint32_t count;", "parent": 24, "children": [34, 35], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 16}}, {"id": 34, "type": "primitive_type", "text": "uint32_t", "parent": 33, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 9}}, {"id": 35, "type": "field_identifier", "text": "count", "parent": 33, "children": [], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 15}}, {"id": 36, "type": "field_declaration", "text": "UT_hash_handle hh;", "parent": 24, "children": [37, 38], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 19}}, {"id": 37, "type": "type_identifier", "text": "UT_hash_handle", "parent": 36, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 15}}, {"id": 38, "type": "field_identifier", "text": "hh", "parent": 36, "children": [], "start_point": {"row": 19, "column": 16}, "end_point": {"row": 19, "column": 18}}, {"id": 39, "type": "declaration", "text": "static struct cosm_count_table *cct;", "parent": null, "children": [40, 43], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 36}}, {"id": 40, "type": "struct_specifier", "text": "struct cosm_count_table", "parent": 39, "children": [41, 42], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 30}}, {"id": 41, "type": "struct", "text": "struct", "parent": 40, "children": [], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 13}}, {"id": 42, "type": "type_identifier", "text": "cosm_count_table", "parent": 40, "children": [], "start_point": {"row": 22, "column": 14}, "end_point": {"row": 22, "column": 30}}, {"id": 43, "type": "pointer_declarator", "text": "*cct", "parent": 39, "children": [44, 45], "start_point": {"row": 22, "column": 31}, "end_point": {"row": 22, "column": 35}}, {"id": 44, "type": "*", "text": "*", "parent": 43, "children": [], "start_point": {"row": 22, "column": 31}, "end_point": {"row": 22, "column": 32}}, {"id": 45, "type": "identifier", "text": "cct", "parent": 43, "children": [], "start_point": {"row": 22, "column": 32}, "end_point": {"row": 22, "column": 35}}, {"id": 46, "type": "function_definition", "text": "void destroy_cosmic_table()\n{\n\tstruct cosm_count_table *el, *tmp;\n\tHASH_ITER(hh, cct, el, tmp) {\n\t\tHASH_DEL(cct, el);\n\t\tfree(el);\n\t}\n}", "parent": null, "children": [47, 48], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 31, "column": 1}}, {"id": 47, "type": "primitive_type", "text": "void", "parent": 46, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 4}}, {"id": 48, "type": "function_declarator", "text": "destroy_cosmic_table()", "parent": 46, "children": [49, 50], "start_point": {"row": 24, "column": 5}, "end_point": {"row": 24, "column": 27}}, {"id": 49, "type": "identifier", "text": "destroy_cosmic_table", "parent": 48, "children": [], "start_point": {"row": 24, "column": 5}, "end_point": {"row": 24, "column": 25}}, {"id": 50, "type": "parameter_list", "text": "()", "parent": 48, "children": [], "start_point": {"row": 24, "column": 25}, "end_point": {"row": 24, "column": 27}}, {"id": 51, "type": "declaration", "text": "struct cosm_count_table *el, *tmp;", "parent": 46, "children": [52, 55, 58], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 35}}, {"id": 52, "type": "struct_specifier", "text": "struct cosm_count_table", "parent": 51, "children": [53, 54], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 24}}, {"id": 53, "type": "struct", "text": "struct", "parent": 52, "children": [], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 7}}, {"id": 54, "type": "type_identifier", "text": "cosm_count_table", "parent": 52, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 24}}, {"id": 55, "type": "pointer_declarator", "text": "*el", "parent": 51, "children": [56, 57], "start_point": {"row": 26, "column": 25}, "end_point": {"row": 26, "column": 28}}, {"id": 56, "type": "*", "text": "*", "parent": 55, "children": [], "start_point": {"row": 26, "column": 25}, "end_point": {"row": 26, "column": 26}}, {"id": 57, "type": "identifier", "text": "el", "parent": 55, "children": [], "start_point": {"row": 26, "column": 26}, "end_point": {"row": 26, "column": 28}}, {"id": 58, "type": "pointer_declarator", "text": "*tmp", "parent": 51, "children": [59, 60], "start_point": {"row": 26, "column": 30}, "end_point": {"row": 26, "column": 34}}, {"id": 59, "type": "*", "text": "*", "parent": 58, "children": [], "start_point": {"row": 26, "column": 30}, "end_point": {"row": 26, "column": 31}}, {"id": 60, "type": "identifier", "text": "tmp", "parent": 58, "children": [], "start_point": {"row": 26, "column": 31}, "end_point": {"row": 26, "column": 34}}, {"id": 61, "type": "call_expression", "text": "HASH_ITER(hh, cct, el, tmp)", "parent": 46, "children": [62, 63], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 28}}, {"id": 62, "type": "identifier", "text": "HASH_ITER", "parent": 61, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 10}}, {"id": 63, "type": "argument_list", "text": "(hh, cct, el, tmp)", "parent": 61, "children": [64, 65, 66, 67], "start_point": {"row": 27, "column": 10}, "end_point": {"row": 27, "column": 28}}, {"id": 64, "type": "identifier", "text": "hh", "parent": 63, "children": [], "start_point": {"row": 27, "column": 11}, "end_point": {"row": 27, "column": 13}}, {"id": 65, "type": "identifier", "text": "cct", "parent": 63, "children": [], "start_point": {"row": 27, "column": 15}, "end_point": {"row": 27, "column": 18}}, {"id": 66, "type": "identifier", "text": "el", "parent": 63, "children": [], "start_point": {"row": 27, "column": 20}, "end_point": {"row": 27, "column": 22}}, {"id": 67, "type": "identifier", "text": "tmp", "parent": 63, "children": [], "start_point": {"row": 27, "column": 24}, "end_point": {"row": 27, "column": 27}}, {"id": 68, "type": "call_expression", "text": "HASH_DEL(cct, el)", "parent": 46, "children": [69, 70], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 19}}, {"id": 69, "type": "identifier", "text": "HASH_DEL", "parent": 68, "children": [], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 10}}, {"id": 70, "type": "argument_list", "text": "(cct, el)", "parent": 68, "children": [71, 72], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 19}}, {"id": 71, "type": "identifier", "text": "cct", "parent": 70, "children": [], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 14}}, {"id": 72, "type": "identifier", "text": "el", "parent": 70, "children": [], "start_point": {"row": 28, "column": 16}, "end_point": {"row": 28, "column": 18}}, {"id": 73, "type": "call_expression", "text": "free(el)", "parent": 46, "children": [74, 75], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 10}}, {"id": 74, "type": "identifier", "text": "free", "parent": 73, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 6}}, {"id": 75, "type": "argument_list", "text": "(el)", "parent": 73, "children": [76], "start_point": {"row": 29, "column": 6}, "end_point": {"row": 29, "column": 10}}, {"id": 76, "type": "identifier", "text": "el", "parent": 75, "children": [], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 9}}, {"id": 77, "type": "function_definition", "text": "int32_t get_cosmic_count(uint32_t pos, uint32_t b5alt)\n{\n\tuint32_t key_len;\n\tstruct cosm_count_table key_holder;\n\tstruct cosm_count_table *ent;\n\n\tmemset(&key_holder, 0, sizeof(key_holder));\n\n\tkey_holder.pos = pos;\n\tkey_holder.b5alt = b5alt;\n\n\tkey_len = offsetof(struct cosm_count_table, b5alt)\n\t\t + sizeof(b5alt)\n\t\t - offsetof(struct cosm_count_table, pos);\n\n\tHASH_FIND(hh, cct, &key_holder.pos, key_len, ent);\n\n\tif (ent == NULL) return -1;\n\n\treturn ent->count;\n}", "parent": null, "children": [78, 79], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 53, "column": 1}}, {"id": 78, "type": "primitive_type", "text": "int32_t", "parent": 77, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 7}}, {"id": 79, "type": "function_declarator", "text": "get_cosmic_count(uint32_t pos, uint32_t b5alt)", "parent": 77, "children": [80, 81], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 54}}, {"id": 80, "type": "identifier", "text": "get_cosmic_count", "parent": 79, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 24}}, {"id": 81, "type": "parameter_list", "text": "(uint32_t pos, uint32_t b5alt)", "parent": 79, "children": [82, 85], "start_point": {"row": 33, "column": 24}, "end_point": {"row": 33, "column": 54}}, {"id": 82, "type": "parameter_declaration", "text": "uint32_t pos", "parent": 81, "children": [83, 84], "start_point": {"row": 33, "column": 25}, "end_point": {"row": 33, "column": 37}}, {"id": 83, "type": "primitive_type", "text": "uint32_t", "parent": 82, "children": [], "start_point": {"row": 33, "column": 25}, "end_point": {"row": 33, "column": 33}}, {"id": 84, "type": "identifier", "text": "pos", "parent": 82, "children": [], "start_point": {"row": 33, "column": 34}, "end_point": {"row": 33, "column": 37}}, {"id": 85, "type": "parameter_declaration", "text": "uint32_t b5alt", "parent": 81, "children": [86, 87], "start_point": {"row": 33, "column": 39}, "end_point": {"row": 33, "column": 53}}, {"id": 86, "type": "primitive_type", "text": "uint32_t", "parent": 85, "children": [], "start_point": {"row": 33, "column": 39}, "end_point": {"row": 33, "column": 47}}, {"id": 87, "type": "identifier", "text": "b5alt", "parent": 85, "children": [], "start_point": {"row": 33, "column": 48}, "end_point": {"row": 33, "column": 53}}, {"id": 88, "type": "declaration", "text": "uint32_t key_len;", "parent": 77, "children": [89, 90], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 18}}, {"id": 89, "type": "primitive_type", "text": "uint32_t", "parent": 88, "children": [], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 9}}, {"id": 90, "type": "identifier", "text": "key_len", "parent": 88, "children": [], "start_point": {"row": 35, "column": 10}, "end_point": {"row": 35, "column": 17}}, {"id": 91, "type": "declaration", "text": "struct cosm_count_table key_holder;", "parent": 77, "children": [92, 95], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 36}}, {"id": 92, "type": "struct_specifier", "text": "struct cosm_count_table", "parent": 91, "children": [93, 94], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 24}}, {"id": 93, "type": "struct", "text": "struct", "parent": 92, "children": [], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 7}}, {"id": 94, "type": "type_identifier", "text": "cosm_count_table", "parent": 92, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 24}}, {"id": 95, "type": "identifier", "text": "key_holder", "parent": 91, "children": [], "start_point": {"row": 36, "column": 25}, "end_point": {"row": 36, "column": 35}}, {"id": 96, "type": "declaration", "text": "struct cosm_count_table *ent;", "parent": 77, "children": [97, 100], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 30}}, {"id": 97, "type": "struct_specifier", "text": "struct cosm_count_table", "parent": 96, "children": [98, 99], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 24}}, {"id": 98, "type": "struct", "text": "struct", "parent": 97, "children": [], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 7}}, {"id": 99, "type": "type_identifier", "text": "cosm_count_table", "parent": 97, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 24}}, {"id": 100, "type": "pointer_declarator", "text": "*ent", "parent": 96, "children": [101, 102], "start_point": {"row": 37, "column": 25}, "end_point": {"row": 37, "column": 29}}, {"id": 101, "type": "*", "text": "*", "parent": 100, "children": [], "start_point": {"row": 37, "column": 25}, "end_point": {"row": 37, "column": 26}}, {"id": 102, "type": "identifier", "text": "ent", "parent": 100, "children": [], "start_point": {"row": 37, "column": 26}, "end_point": {"row": 37, "column": 29}}, {"id": 103, "type": "call_expression", "text": "memset(&key_holder, 0, sizeof(key_holder))", "parent": 77, "children": [104, 105], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 43}}, {"id": 104, "type": "identifier", "text": "memset", "parent": 103, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 7}}, {"id": 105, "type": "argument_list", "text": "(&key_holder, 0, sizeof(key_holder))", "parent": 103, "children": [106, 108, 109], "start_point": {"row": 39, "column": 7}, "end_point": {"row": 39, "column": 43}}, {"id": 106, "type": "pointer_expression", "text": "&key_holder", "parent": 105, "children": [107], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 19}}, {"id": 107, "type": "identifier", "text": "key_holder", "parent": 106, "children": [], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 19}}, {"id": 108, "type": "number_literal", "text": "0", "parent": 105, "children": [], "start_point": {"row": 39, "column": 21}, "end_point": {"row": 39, "column": 22}}, {"id": 109, "type": "sizeof_expression", "text": "sizeof(key_holder)", "parent": 105, "children": [110], "start_point": {"row": 39, "column": 24}, "end_point": {"row": 39, "column": 42}}, {"id": 110, "type": "parenthesized_expression", "text": "(key_holder)", "parent": 109, "children": [111], "start_point": {"row": 39, "column": 30}, "end_point": {"row": 39, "column": 42}}, {"id": 111, "type": "identifier", "text": "key_holder", "parent": 110, "children": [], "start_point": {"row": 39, "column": 31}, "end_point": {"row": 39, "column": 41}}, {"id": 112, "type": "assignment_expression", "text": "key_holder.pos = pos", "parent": 77, "children": [113, 116, 117], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 21}}, {"id": 113, "type": "field_expression", "text": "key_holder.pos", "parent": 112, "children": [114, 115], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 15}}, {"id": 114, "type": "identifier", "text": "key_holder", "parent": 113, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 11}}, {"id": 115, "type": "field_identifier", "text": "pos", "parent": 113, "children": [], "start_point": {"row": 41, "column": 12}, "end_point": {"row": 41, "column": 15}}, {"id": 116, "type": "=", "text": "=", "parent": 112, "children": [], "start_point": {"row": 41, "column": 16}, "end_point": {"row": 41, "column": 17}}, {"id": 117, "type": "identifier", "text": "pos", "parent": 112, "children": [], "start_point": {"row": 41, "column": 18}, "end_point": {"row": 41, "column": 21}}, {"id": 118, "type": "assignment_expression", "text": "key_holder.b5alt = b5alt", "parent": 77, "children": [119, 122, 123], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 25}}, {"id": 119, "type": "field_expression", "text": "key_holder.b5alt", "parent": 118, "children": [120, 121], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 17}}, {"id": 120, "type": "identifier", "text": "key_holder", "parent": 119, "children": [], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 11}}, {"id": 121, "type": "field_identifier", "text": "b5alt", "parent": 119, "children": [], "start_point": {"row": 42, "column": 12}, "end_point": {"row": 42, "column": 17}}, {"id": 122, "type": "=", "text": "=", "parent": 118, "children": [], "start_point": {"row": 42, "column": 18}, "end_point": {"row": 42, "column": 19}}, {"id": 123, "type": "identifier", "text": "b5alt", "parent": 118, "children": [], "start_point": {"row": 42, "column": 20}, "end_point": {"row": 42, "column": 25}}, {"id": 124, "type": "assignment_expression", "text": "key_len = offsetof(struct cosm_count_table, b5alt)\n\t\t + sizeof(b5alt)\n\t\t - offsetof(struct cosm_count_table, pos)", "parent": 77, "children": [125, 126, 127], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 46, "column": 44}}, {"id": 125, "type": "identifier", "text": "key_len", "parent": 124, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 8}}, {"id": 126, "type": "=", "text": "=", "parent": 124, "children": [], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 10}}, {"id": 127, "type": "binary_expression", "text": "offsetof(struct cosm_count_table, b5alt)\n\t\t + sizeof(b5alt)\n\t\t - offsetof(struct cosm_count_table, pos)", "parent": 124, "children": [128, 140, 141], "start_point": {"row": 44, "column": 13}, "end_point": {"row": 46, "column": 44}}, {"id": 128, "type": "binary_expression", "text": "offsetof(struct cosm_count_table, b5alt)\n\t\t + sizeof(b5alt)", "parent": 127, "children": [129, 136, 137], "start_point": {"row": 44, "column": 13}, "end_point": {"row": 45, "column": 19}}, {"id": 129, "type": "offsetof_expression", "text": "offsetof(struct cosm_count_table, b5alt)", "parent": 128, "children": [130, 131, 135], "start_point": {"row": 44, "column": 13}, "end_point": {"row": 44, "column": 53}}, {"id": 130, "type": "offsetof", "text": "offsetof", "parent": 129, "children": [], "start_point": {"row": 44, "column": 13}, "end_point": {"row": 44, "column": 21}}, {"id": 131, "type": "type_descriptor", "text": "struct cosm_count_table", "parent": 129, "children": [132], "start_point": {"row": 44, "column": 22}, "end_point": {"row": 44, "column": 45}}, {"id": 132, "type": "struct_specifier", "text": "struct cosm_count_table", "parent": 131, "children": [133, 134], "start_point": {"row": 44, "column": 22}, "end_point": {"row": 44, "column": 45}}, {"id": 133, "type": "struct", "text": "struct", "parent": 132, "children": [], "start_point": {"row": 44, "column": 22}, "end_point": {"row": 44, "column": 28}}, {"id": 134, "type": "type_identifier", "text": "cosm_count_table", "parent": 132, "children": [], "start_point": {"row": 44, "column": 29}, "end_point": {"row": 44, "column": 45}}, {"id": 135, "type": "field_identifier", "text": "b5alt", "parent": 129, "children": [], "start_point": {"row": 44, "column": 47}, "end_point": {"row": 44, "column": 52}}, {"id": 136, "type": "+", "text": "+", "parent": 128, "children": [], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 5}}, {"id": 137, "type": "sizeof_expression", "text": "sizeof(b5alt)", "parent": 128, "children": [138], "start_point": {"row": 45, "column": 6}, "end_point": {"row": 45, "column": 19}}, {"id": 138, "type": "parenthesized_expression", "text": "(b5alt)", "parent": 137, "children": [139], "start_point": {"row": 45, "column": 12}, "end_point": {"row": 45, "column": 19}}, {"id": 139, "type": "identifier", "text": "b5alt", "parent": 138, "children": [], "start_point": {"row": 45, "column": 13}, "end_point": {"row": 45, "column": 18}}, {"id": 140, "type": "-", "text": "-", "parent": 127, "children": [], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 5}}, {"id": 141, "type": "offsetof_expression", "text": "offsetof(struct cosm_count_table, pos)", "parent": 127, "children": [142, 143, 147], "start_point": {"row": 46, "column": 6}, "end_point": {"row": 46, "column": 44}}, {"id": 142, "type": "offsetof", "text": "offsetof", "parent": 141, "children": [], "start_point": {"row": 46, "column": 6}, "end_point": {"row": 46, "column": 14}}, {"id": 143, "type": "type_descriptor", "text": "struct cosm_count_table", "parent": 141, "children": [144], "start_point": {"row": 46, "column": 15}, "end_point": {"row": 46, "column": 38}}, {"id": 144, "type": "struct_specifier", "text": "struct cosm_count_table", "parent": 143, "children": [145, 146], "start_point": {"row": 46, "column": 15}, "end_point": {"row": 46, "column": 38}}, {"id": 145, "type": "struct", "text": "struct", "parent": 144, "children": [], "start_point": {"row": 46, "column": 15}, "end_point": {"row": 46, "column": 21}}, {"id": 146, "type": "type_identifier", "text": "cosm_count_table", "parent": 144, "children": [], "start_point": {"row": 46, "column": 22}, "end_point": {"row": 46, "column": 38}}, {"id": 147, "type": "field_identifier", "text": "pos", "parent": 141, "children": [], "start_point": {"row": 46, "column": 40}, "end_point": {"row": 46, "column": 43}}, {"id": 148, "type": "call_expression", "text": "HASH_FIND(hh, cct, &key_holder.pos, key_len, ent)", "parent": 77, "children": [149, 150], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 50}}, {"id": 149, "type": "identifier", "text": "HASH_FIND", "parent": 148, "children": [], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 10}}, {"id": 150, "type": "argument_list", "text": "(hh, cct, &key_holder.pos, key_len, ent)", "parent": 148, "children": [151, 152, 153, 157, 158], "start_point": {"row": 48, "column": 10}, "end_point": {"row": 48, "column": 50}}, {"id": 151, "type": "identifier", "text": "hh", "parent": 150, "children": [], "start_point": {"row": 48, "column": 11}, "end_point": {"row": 48, "column": 13}}, {"id": 152, "type": "identifier", "text": "cct", "parent": 150, "children": [], "start_point": {"row": 48, "column": 15}, "end_point": {"row": 48, "column": 18}}, {"id": 153, "type": "pointer_expression", "text": "&key_holder.pos", "parent": 150, "children": [154], "start_point": {"row": 48, "column": 20}, "end_point": {"row": 48, "column": 35}}, {"id": 154, "type": "field_expression", "text": "key_holder.pos", "parent": 153, "children": [155, 156], "start_point": {"row": 48, "column": 21}, "end_point": {"row": 48, "column": 35}}, {"id": 155, "type": "identifier", "text": "key_holder", "parent": 154, "children": [], "start_point": {"row": 48, "column": 21}, "end_point": {"row": 48, "column": 31}}, {"id": 156, "type": "field_identifier", "text": "pos", "parent": 154, "children": [], "start_point": {"row": 48, "column": 32}, "end_point": {"row": 48, "column": 35}}, {"id": 157, "type": "identifier", "text": "key_len", "parent": 150, "children": [], "start_point": {"row": 48, "column": 37}, "end_point": {"row": 48, "column": 44}}, {"id": 158, "type": "identifier", "text": "ent", "parent": 150, "children": [], "start_point": {"row": 48, "column": 46}, "end_point": {"row": 48, "column": 49}}, {"id": 159, "type": "if_statement", "text": "if (ent == NULL) return -1;", "parent": 77, "children": [160, 166], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 28}}, {"id": 160, "type": "parenthesized_expression", "text": "(ent == NULL)", "parent": 159, "children": [161], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 17}}, {"id": 161, "type": "binary_expression", "text": "ent == NULL", "parent": 160, "children": [162, 163, 164], "start_point": {"row": 50, "column": 5}, "end_point": {"row": 50, "column": 16}}, {"id": 162, "type": "identifier", "text": "ent", "parent": 161, "children": [], "start_point": {"row": 50, "column": 5}, "end_point": {"row": 50, "column": 8}}, {"id": 163, "type": "==", "text": "==", "parent": 161, "children": [], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 11}}, {"id": 164, "type": "null", "text": "NULL", "parent": 161, "children": [165], "start_point": {"row": 50, "column": 12}, "end_point": {"row": 50, "column": 16}}, {"id": 165, "type": "NULL", "text": "NULL", "parent": 164, "children": [], "start_point": {"row": 50, "column": 12}, "end_point": {"row": 50, "column": 16}}, {"id": 166, "type": "return_statement", "text": "return -1;", "parent": 159, "children": [167], "start_point": {"row": 50, "column": 18}, "end_point": {"row": 50, "column": 28}}, {"id": 167, "type": "number_literal", "text": "-1", "parent": 166, "children": [], "start_point": {"row": 50, "column": 25}, "end_point": {"row": 50, "column": 27}}, {"id": 168, "type": "return_statement", "text": "return ent->count;", "parent": 77, "children": [169], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 19}}, {"id": 169, "type": "field_expression", "text": "ent->count", "parent": 168, "children": [170, 171], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 18}}, {"id": 170, "type": "identifier", "text": "ent", "parent": 169, "children": [], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 11}}, {"id": 171, "type": "field_identifier", "text": "count", "parent": 169, "children": [], "start_point": {"row": 52, "column": 13}, "end_point": {"row": 52, "column": 18}}, {"id": 172, "type": "function_definition", "text": "int load_cosmic_table(const char *vcf_fname, const char *chr)\n{\n\tint res;\n\tuint32_t pos, b5alt, count;\n\tuint32_t key_len;\n\tstruct cosm_count_table *ent;\n\tbcf1_t *line;\n\tbcf_hdr_t *header;\n\tbcf_info_t *info;\n\tbcf_srs_t *rs = bcf_sr_init();\n\n\tbcf_sr_set_regions(rs, chr, 0);\n\n\tres = bcf_sr_add_reader(rs, vcf_fname);\n\theader = rs->readers[0].header;\n\n\tcct = NULL;\n\n\tkey_len = offsetof(struct cosm_count_table, b5alt)\n\t\t + sizeof(b5alt)\n\t\t - offsetof(struct cosm_count_table, pos);\n\n\tif (res == 0) {\n\t\terr_printf(\"error: %s\\n\", bcf_sr_strerror(rs->errnum));\n\t\treturn 0;\n\t}\n\n\twhile (bcf_sr_next_line(rs)) {\n\t\tif (!bcf_sr_has_line(rs, 0)) continue;\n\n\t\tline = bcf_sr_get_line(rs, 0);\n\t\tinfo = bcf_get_info(header, line, \"CNT\");\n\t\tpos = line->pos + 1;\n\t\tif (!info) continue;\n\n\t\t// TODO: enforce the condition below more strictly!\n\t\tif (line->n_allele != 2) continue;\n\n\t\tb5alt = str_to_b5seq(line->d.allele[1]); // [1] is the ALT\n\t\tif (get_cosmic_count(pos, b5alt) > -1) continue;\n\n\t\tcount = info->v1.i;\n\t\tent = malloc(sizeof(struct cosm_count_table));\n\t\tent->pos = pos;\n\t\tent->b5alt = b5alt;\n\t\tent->count = count;\n\n\t\tHASH_ADD(hh, cct, pos, key_len, ent);\n\t}\n\n\n\tbcf_sr_destroy(rs);\n\n\treturn 1;\n\n}", "parent": null, "children": [173, 174], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 110, "column": 1}}, {"id": 173, "type": "primitive_type", "text": "int", "parent": 172, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 3}}, {"id": 174, "type": "function_declarator", "text": "load_cosmic_table(const char *vcf_fname, const char *chr)", "parent": 172, "children": [175, 176], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 61}}, {"id": 175, "type": "identifier", "text": "load_cosmic_table", "parent": 174, "children": [], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 21}}, {"id": 176, "type": "parameter_list", "text": "(const char *vcf_fname, const char *chr)", "parent": 174, "children": [177, 182], "start_point": {"row": 55, "column": 21}, "end_point": {"row": 55, "column": 61}}, {"id": 177, "type": "parameter_declaration", "text": "const char *vcf_fname", "parent": 176, "children": [178, 179], "start_point": {"row": 55, "column": 22}, "end_point": {"row": 55, "column": 43}}, {"id": 178, "type": "primitive_type", "text": "char", "parent": 177, "children": [], "start_point": {"row": 55, "column": 28}, "end_point": {"row": 55, "column": 32}}, {"id": 179, "type": "pointer_declarator", "text": "*vcf_fname", "parent": 177, "children": [180, 181], "start_point": {"row": 55, "column": 33}, "end_point": {"row": 55, "column": 43}}, {"id": 180, "type": "*", "text": "*", "parent": 179, "children": [], "start_point": {"row": 55, "column": 33}, "end_point": {"row": 55, "column": 34}}, {"id": 181, "type": "identifier", "text": "vcf_fname", "parent": 179, "children": [], "start_point": {"row": 55, "column": 34}, "end_point": {"row": 55, "column": 43}}, {"id": 182, "type": "parameter_declaration", "text": "const char *chr", "parent": 176, "children": [183, 184], "start_point": {"row": 55, "column": 45}, "end_point": {"row": 55, "column": 60}}, {"id": 183, "type": "primitive_type", "text": "char", "parent": 182, "children": [], "start_point": {"row": 55, "column": 51}, "end_point": {"row": 55, "column": 55}}, {"id": 184, "type": "pointer_declarator", "text": "*chr", "parent": 182, "children": [185, 186], "start_point": {"row": 55, "column": 56}, "end_point": {"row": 55, "column": 60}}, {"id": 185, "type": "*", "text": "*", "parent": 184, "children": [], "start_point": {"row": 55, "column": 56}, "end_point": {"row": 55, "column": 57}}, {"id": 186, "type": "identifier", "text": "chr", "parent": 184, "children": [], "start_point": {"row": 55, "column": 57}, "end_point": {"row": 55, "column": 60}}, {"id": 187, "type": "declaration", "text": "int res;", "parent": 172, "children": [188, 189], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 9}}, {"id": 188, "type": "primitive_type", "text": "int", "parent": 187, "children": [], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 4}}, {"id": 189, "type": "identifier", "text": "res", "parent": 187, "children": [], "start_point": {"row": 57, "column": 5}, "end_point": {"row": 57, "column": 8}}, {"id": 190, "type": "declaration", "text": "uint32_t pos, b5alt, count;", "parent": 172, "children": [191, 192, 193, 194], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 28}}, {"id": 191, "type": "primitive_type", "text": "uint32_t", "parent": 190, "children": [], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 9}}, {"id": 192, "type": "identifier", "text": "pos", "parent": 190, "children": [], "start_point": {"row": 58, "column": 10}, "end_point": {"row": 58, "column": 13}}, {"id": 193, "type": "identifier", "text": "b5alt", "parent": 190, "children": [], "start_point": {"row": 58, "column": 15}, "end_point": {"row": 58, "column": 20}}, {"id": 194, "type": "identifier", "text": "count", "parent": 190, "children": [], "start_point": {"row": 58, "column": 22}, "end_point": {"row": 58, "column": 27}}, {"id": 195, "type": "declaration", "text": "uint32_t key_len;", "parent": 172, "children": [196, 197], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 18}}, {"id": 196, "type": "primitive_type", "text": "uint32_t", "parent": 195, "children": [], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 9}}, {"id": 197, "type": "identifier", "text": "key_len", "parent": 195, "children": [], "start_point": {"row": 59, "column": 10}, "end_point": {"row": 59, "column": 17}}, {"id": 198, "type": "declaration", "text": "struct cosm_count_table *ent;", "parent": 172, "children": [199, 202], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 30}}, {"id": 199, "type": "struct_specifier", "text": "struct cosm_count_table", "parent": 198, "children": [200, 201], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 24}}, {"id": 200, "type": "struct", "text": "struct", "parent": 199, "children": [], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 7}}, {"id": 201, "type": "type_identifier", "text": "cosm_count_table", "parent": 199, "children": [], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 24}}, {"id": 202, "type": "pointer_declarator", "text": "*ent", "parent": 198, "children": [203, 204], "start_point": {"row": 60, "column": 25}, "end_point": {"row": 60, "column": 29}}, {"id": 203, "type": "*", "text": "*", "parent": 202, "children": [], "start_point": {"row": 60, "column": 25}, "end_point": {"row": 60, "column": 26}}, {"id": 204, "type": "identifier", "text": "ent", "parent": 202, "children": [], "start_point": {"row": 60, "column": 26}, "end_point": {"row": 60, "column": 29}}, {"id": 205, "type": "declaration", "text": "bcf1_t *line;", "parent": 172, "children": [206, 207], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 14}}, {"id": 206, "type": "type_identifier", "text": "bcf1_t", "parent": 205, "children": [], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 7}}, {"id": 207, "type": "pointer_declarator", "text": "*line", "parent": 205, "children": [208, 209], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 13}}, {"id": 208, "type": "*", "text": "*", "parent": 207, "children": [], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 9}}, {"id": 209, "type": "identifier", "text": "line", "parent": 207, "children": [], "start_point": {"row": 61, "column": 9}, "end_point": {"row": 61, "column": 13}}, {"id": 210, "type": "declaration", "text": "bcf_hdr_t *header;", "parent": 172, "children": [211, 212], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 19}}, {"id": 211, "type": "type_identifier", "text": "bcf_hdr_t", "parent": 210, "children": [], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 10}}, {"id": 212, "type": "pointer_declarator", "text": "*header", "parent": 210, "children": [213, 214], "start_point": {"row": 62, "column": 11}, "end_point": {"row": 62, "column": 18}}, {"id": 213, "type": "*", "text": "*", "parent": 212, "children": [], "start_point": {"row": 62, "column": 11}, "end_point": {"row": 62, "column": 12}}, {"id": 214, "type": "identifier", "text": "header", "parent": 212, "children": [], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 62, "column": 18}}, {"id": 215, "type": "declaration", "text": "bcf_info_t *info;", "parent": 172, "children": [216, 217], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 18}}, {"id": 216, "type": "type_identifier", "text": "bcf_info_t", "parent": 215, "children": [], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 11}}, {"id": 217, "type": "pointer_declarator", "text": "*info", "parent": 215, "children": [218, 219], "start_point": {"row": 63, "column": 12}, "end_point": {"row": 63, "column": 17}}, {"id": 218, "type": "*", "text": "*", "parent": 217, "children": [], "start_point": {"row": 63, "column": 12}, "end_point": {"row": 63, "column": 13}}, {"id": 219, "type": "identifier", "text": "info", "parent": 217, "children": [], "start_point": {"row": 63, "column": 13}, "end_point": {"row": 63, "column": 17}}, {"id": 220, "type": "declaration", "text": "bcf_srs_t *rs = bcf_sr_init();", "parent": 172, "children": [221, 222], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 31}}, {"id": 221, "type": "type_identifier", "text": "bcf_srs_t", "parent": 220, "children": [], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 10}}, {"id": 222, "type": "init_declarator", "text": "*rs = bcf_sr_init()", "parent": 220, "children": [223, 226, 227], "start_point": {"row": 64, "column": 11}, "end_point": {"row": 64, "column": 30}}, {"id": 223, "type": "pointer_declarator", "text": "*rs", "parent": 222, "children": [224, 225], "start_point": {"row": 64, "column": 11}, "end_point": {"row": 64, "column": 14}}, {"id": 224, "type": "*", "text": "*", "parent": 223, "children": [], "start_point": {"row": 64, "column": 11}, "end_point": {"row": 64, "column": 12}}, {"id": 225, "type": "identifier", "text": "rs", "parent": 223, "children": [], "start_point": {"row": 64, "column": 12}, "end_point": {"row": 64, "column": 14}}, {"id": 226, "type": "=", "text": "=", "parent": 222, "children": [], "start_point": {"row": 64, "column": 15}, "end_point": {"row": 64, "column": 16}}, {"id": 227, "type": "call_expression", "text": "bcf_sr_init()", "parent": 222, "children": [228, 229], "start_point": {"row": 64, "column": 17}, "end_point": {"row": 64, "column": 30}}, {"id": 228, "type": "identifier", "text": "bcf_sr_init", "parent": 227, "children": [], "start_point": {"row": 64, "column": 17}, "end_point": {"row": 64, "column": 28}}, {"id": 229, "type": "argument_list", "text": "()", "parent": 227, "children": [], "start_point": {"row": 64, "column": 28}, "end_point": {"row": 64, "column": 30}}, {"id": 230, "type": "call_expression", "text": "bcf_sr_set_regions(rs, chr, 0)", "parent": 172, "children": [231, 232], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 31}}, {"id": 231, "type": "identifier", "text": "bcf_sr_set_regions", "parent": 230, "children": [], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 19}}, {"id": 232, "type": "argument_list", "text": "(rs, chr, 0)", "parent": 230, "children": [233, 234, 235], "start_point": {"row": 66, "column": 19}, "end_point": {"row": 66, "column": 31}}, {"id": 233, "type": "identifier", "text": "rs", "parent": 232, "children": [], "start_point": {"row": 66, "column": 20}, "end_point": {"row": 66, "column": 22}}, {"id": 234, "type": "identifier", "text": "chr", "parent": 232, "children": [], "start_point": {"row": 66, "column": 24}, "end_point": {"row": 66, "column": 27}}, {"id": 235, "type": "number_literal", "text": "0", "parent": 232, "children": [], "start_point": {"row": 66, "column": 29}, "end_point": {"row": 66, "column": 30}}, {"id": 236, "type": "assignment_expression", "text": "res = bcf_sr_add_reader(rs, vcf_fname)", "parent": 172, "children": [237, 238, 239], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 39}}, {"id": 237, "type": "identifier", "text": "res", "parent": 236, "children": [], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 4}}, {"id": 238, "type": "=", "text": "=", "parent": 236, "children": [], "start_point": {"row": 68, "column": 5}, "end_point": {"row": 68, "column": 6}}, {"id": 239, "type": "call_expression", "text": "bcf_sr_add_reader(rs, vcf_fname)", "parent": 236, "children": [240, 241], "start_point": {"row": 68, "column": 7}, "end_point": {"row": 68, "column": 39}}, {"id": 240, "type": "identifier", "text": "bcf_sr_add_reader", "parent": 239, "children": [], "start_point": {"row": 68, "column": 7}, "end_point": {"row": 68, "column": 24}}, {"id": 241, "type": "argument_list", "text": "(rs, vcf_fname)", "parent": 239, "children": [242, 243], "start_point": {"row": 68, "column": 24}, "end_point": {"row": 68, "column": 39}}, {"id": 242, "type": "identifier", "text": "rs", "parent": 241, "children": [], "start_point": {"row": 68, "column": 25}, "end_point": {"row": 68, "column": 27}}, {"id": 243, "type": "identifier", "text": "vcf_fname", "parent": 241, "children": [], "start_point": {"row": 68, "column": 29}, "end_point": {"row": 68, "column": 38}}, {"id": 244, "type": "assignment_expression", "text": "header = rs->readers[0].header", "parent": 172, "children": [245, 246, 247], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 31}}, {"id": 245, "type": "identifier", "text": "header", "parent": 244, "children": [], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 7}}, {"id": 246, "type": "=", "text": "=", "parent": 244, "children": [], "start_point": {"row": 69, "column": 8}, "end_point": {"row": 69, "column": 9}}, {"id": 247, "type": "field_expression", "text": "rs->readers[0].header", "parent": 244, "children": [248, 253], "start_point": {"row": 69, "column": 10}, "end_point": {"row": 69, "column": 31}}, {"id": 248, "type": "subscript_expression", "text": "rs->readers[0]", "parent": 247, "children": [249, 252], "start_point": {"row": 69, "column": 10}, "end_point": {"row": 69, "column": 24}}, {"id": 249, "type": "field_expression", "text": "rs->readers", "parent": 248, "children": [250, 251], "start_point": {"row": 69, "column": 10}, "end_point": {"row": 69, "column": 21}}, {"id": 250, "type": "identifier", "text": "rs", "parent": 249, "children": [], "start_point": {"row": 69, "column": 10}, "end_point": {"row": 69, "column": 12}}, {"id": 251, "type": "field_identifier", "text": "readers", "parent": 249, "children": [], "start_point": {"row": 69, "column": 14}, "end_point": {"row": 69, "column": 21}}, {"id": 252, "type": "number_literal", "text": "0", "parent": 248, "children": [], "start_point": {"row": 69, "column": 22}, "end_point": {"row": 69, "column": 23}}, {"id": 253, "type": "field_identifier", "text": "header", "parent": 247, "children": [], "start_point": {"row": 69, "column": 25}, "end_point": {"row": 69, "column": 31}}, {"id": 254, "type": "assignment_expression", "text": "cct = NULL", "parent": 172, "children": [255, 256, 257], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 11}}, {"id": 255, "type": "identifier", "text": "cct", "parent": 254, "children": [], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 4}}, {"id": 256, "type": "=", "text": "=", "parent": 254, "children": [], "start_point": {"row": 71, "column": 5}, "end_point": {"row": 71, "column": 6}}, {"id": 257, "type": "null", "text": "NULL", "parent": 254, "children": [258], "start_point": {"row": 71, "column": 7}, "end_point": {"row": 71, "column": 11}}, {"id": 258, "type": "NULL", "text": "NULL", "parent": 257, "children": [], "start_point": {"row": 71, "column": 7}, "end_point": {"row": 71, "column": 11}}, {"id": 259, "type": "assignment_expression", "text": "key_len = offsetof(struct cosm_count_table, b5alt)\n\t\t + sizeof(b5alt)\n\t\t - offsetof(struct cosm_count_table, pos)", "parent": 172, "children": [260, 261, 262], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 75, "column": 44}}, {"id": 260, "type": "identifier", "text": "key_len", "parent": 259, "children": [], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 8}}, {"id": 261, "type": "=", "text": "=", "parent": 259, "children": [], "start_point": {"row": 73, "column": 9}, "end_point": {"row": 73, "column": 10}}, {"id": 262, "type": "binary_expression", "text": "offsetof(struct cosm_count_table, b5alt)\n\t\t + sizeof(b5alt)\n\t\t - offsetof(struct cosm_count_table, pos)", "parent": 259, "children": [263, 275, 276], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 75, "column": 44}}, {"id": 263, "type": "binary_expression", "text": "offsetof(struct cosm_count_table, b5alt)\n\t\t + sizeof(b5alt)", "parent": 262, "children": [264, 271, 272], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 74, "column": 19}}, {"id": 264, "type": "offsetof_expression", "text": "offsetof(struct cosm_count_table, b5alt)", "parent": 263, "children": [265, 266, 270], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 53}}, {"id": 265, "type": "offsetof", "text": "offsetof", "parent": 264, "children": [], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 21}}, {"id": 266, "type": "type_descriptor", "text": "struct cosm_count_table", "parent": 264, "children": [267], "start_point": {"row": 73, "column": 22}, "end_point": {"row": 73, "column": 45}}, {"id": 267, "type": "struct_specifier", "text": "struct cosm_count_table", "parent": 266, "children": [268, 269], "start_point": {"row": 73, "column": 22}, "end_point": {"row": 73, "column": 45}}, {"id": 268, "type": "struct", "text": "struct", "parent": 267, "children": [], "start_point": {"row": 73, "column": 22}, "end_point": {"row": 73, "column": 28}}, {"id": 269, "type": "type_identifier", "text": "cosm_count_table", "parent": 267, "children": [], "start_point": {"row": 73, "column": 29}, "end_point": {"row": 73, "column": 45}}, {"id": 270, "type": "field_identifier", "text": "b5alt", "parent": 264, "children": [], "start_point": {"row": 73, "column": 47}, "end_point": {"row": 73, "column": 52}}, {"id": 271, "type": "+", "text": "+", "parent": 263, "children": [], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 5}}, {"id": 272, "type": "sizeof_expression", "text": "sizeof(b5alt)", "parent": 263, "children": [273], "start_point": {"row": 74, "column": 6}, "end_point": {"row": 74, "column": 19}}, {"id": 273, "type": "parenthesized_expression", "text": "(b5alt)", "parent": 272, "children": [274], "start_point": {"row": 74, "column": 12}, "end_point": {"row": 74, "column": 19}}, {"id": 274, "type": "identifier", "text": "b5alt", "parent": 273, "children": [], "start_point": {"row": 74, "column": 13}, "end_point": {"row": 74, "column": 18}}, {"id": 275, "type": "-", "text": "-", "parent": 262, "children": [], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 5}}, {"id": 276, "type": "offsetof_expression", "text": "offsetof(struct cosm_count_table, pos)", "parent": 262, "children": [277, 278, 282], "start_point": {"row": 75, "column": 6}, "end_point": {"row": 75, "column": 44}}, {"id": 277, "type": "offsetof", "text": "offsetof", "parent": 276, "children": [], "start_point": {"row": 75, "column": 6}, "end_point": {"row": 75, "column": 14}}, {"id": 278, "type": "type_descriptor", "text": "struct cosm_count_table", "parent": 276, "children": [279], "start_point": {"row": 75, "column": 15}, "end_point": {"row": 75, "column": 38}}, {"id": 279, "type": "struct_specifier", "text": "struct cosm_count_table", "parent": 278, "children": [280, 281], "start_point": {"row": 75, "column": 15}, "end_point": {"row": 75, "column": 38}}, {"id": 280, "type": "struct", "text": "struct", "parent": 279, "children": [], "start_point": {"row": 75, "column": 15}, "end_point": {"row": 75, "column": 21}}, {"id": 281, "type": "type_identifier", "text": "cosm_count_table", "parent": 279, "children": [], "start_point": {"row": 75, "column": 22}, "end_point": {"row": 75, "column": 38}}, {"id": 282, "type": "field_identifier", "text": "pos", "parent": 276, "children": [], "start_point": {"row": 75, "column": 40}, "end_point": {"row": 75, "column": 43}}, {"id": 283, "type": "if_statement", "text": "if (res == 0) {\n\t\terr_printf(\"error: %s\\n\", bcf_sr_strerror(rs->errnum));\n\t\treturn 0;\n\t}", "parent": 172, "children": [284], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 80, "column": 2}}, {"id": 284, "type": "parenthesized_expression", "text": "(res == 0)", "parent": 283, "children": [285], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 14}}, {"id": 285, "type": "binary_expression", "text": "res == 0", "parent": 284, "children": [286, 287, 288], "start_point": {"row": 77, "column": 5}, "end_point": {"row": 77, "column": 13}}, {"id": 286, "type": "identifier", "text": "res", "parent": 285, "children": [], "start_point": {"row": 77, "column": 5}, "end_point": {"row": 77, "column": 8}}, {"id": 287, "type": "==", "text": "==", "parent": 285, "children": [], "start_point": {"row": 77, "column": 9}, "end_point": {"row": 77, "column": 11}}, {"id": 288, "type": "number_literal", "text": "0", "parent": 285, "children": [], "start_point": {"row": 77, "column": 12}, "end_point": {"row": 77, "column": 13}}, {"id": 289, "type": "call_expression", "text": "err_printf(\"error: %s\\n\", bcf_sr_strerror(rs->errnum))", "parent": 283, "children": [290, 291], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 78, "column": 56}}, {"id": 290, "type": "identifier", "text": "err_printf", "parent": 289, "children": [], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 78, "column": 12}}, {"id": 291, "type": "argument_list", "text": "(\"error: %s\\n\", bcf_sr_strerror(rs->errnum))", "parent": 289, "children": [292, 294], "start_point": {"row": 78, "column": 12}, "end_point": {"row": 78, "column": 56}}, {"id": 292, "type": "string_literal", "text": "\"error: %s\\n\"", "parent": 291, "children": [293], "start_point": {"row": 78, "column": 13}, "end_point": {"row": 78, "column": 26}}, {"id": 293, "type": "escape_sequence", "text": "\\n", "parent": 292, "children": [], "start_point": {"row": 78, "column": 23}, "end_point": {"row": 78, "column": 25}}, {"id": 294, "type": "call_expression", "text": "bcf_sr_strerror(rs->errnum)", "parent": 291, "children": [295, 296], "start_point": {"row": 78, "column": 28}, "end_point": {"row": 78, "column": 55}}, {"id": 295, "type": "identifier", "text": "bcf_sr_strerror", "parent": 294, "children": [], "start_point": {"row": 78, "column": 28}, "end_point": {"row": 78, "column": 43}}, {"id": 296, "type": "argument_list", "text": "(rs->errnum)", "parent": 294, "children": [297], "start_point": {"row": 78, "column": 43}, "end_point": {"row": 78, "column": 55}}, {"id": 297, "type": "field_expression", "text": "rs->errnum", "parent": 296, "children": [298, 299], "start_point": {"row": 78, "column": 44}, "end_point": {"row": 78, "column": 54}}, {"id": 298, "type": "identifier", "text": "rs", "parent": 297, "children": [], "start_point": {"row": 78, "column": 44}, "end_point": {"row": 78, "column": 46}}, {"id": 299, "type": "field_identifier", "text": "errnum", "parent": 297, "children": [], "start_point": {"row": 78, "column": 48}, "end_point": {"row": 78, "column": 54}}, {"id": 300, "type": "return_statement", "text": "return 0;", "parent": 283, "children": [301], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 11}}, {"id": 301, "type": "number_literal", "text": "0", "parent": 300, "children": [], "start_point": {"row": 79, "column": 9}, "end_point": {"row": 79, "column": 10}}, {"id": 302, "type": "while_statement", "text": "while (bcf_sr_next_line(rs)) {\n\t\tif (!bcf_sr_has_line(rs, 0)) continue;\n\n\t\tline = bcf_sr_get_line(rs, 0);\n\t\tinfo = bcf_get_info(header, line, \"CNT\");\n\t\tpos = line->pos + 1;\n\t\tif (!info) continue;\n\n\t\t// TODO: enforce the condition below more strictly!\n\t\tif (line->n_allele != 2) continue;\n\n\t\tb5alt = str_to_b5seq(line->d.allele[1]); // [1] is the ALT\n\t\tif (get_cosmic_count(pos, b5alt) > -1) continue;\n\n\t\tcount = info->v1.i;\n\t\tent = malloc(sizeof(struct cosm_count_table));\n\t\tent->pos = pos;\n\t\tent->b5alt = b5alt;\n\t\tent->count = count;\n\n\t\tHASH_ADD(hh, cct, pos, key_len, ent);\n\t}", "parent": 172, "children": [303], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 103, "column": 2}}, {"id": 303, "type": "parenthesized_expression", "text": "(bcf_sr_next_line(rs))", "parent": 302, "children": [304], "start_point": {"row": 82, "column": 7}, "end_point": {"row": 82, "column": 29}}, {"id": 304, "type": "call_expression", "text": "bcf_sr_next_line(rs)", "parent": 303, "children": [305, 306], "start_point": {"row": 82, "column": 8}, "end_point": {"row": 82, "column": 28}}, {"id": 305, "type": "identifier", "text": "bcf_sr_next_line", "parent": 304, "children": [], "start_point": {"row": 82, "column": 8}, "end_point": {"row": 82, "column": 24}}, {"id": 306, "type": "argument_list", "text": "(rs)", "parent": 304, "children": [307], "start_point": {"row": 82, "column": 24}, "end_point": {"row": 82, "column": 28}}, {"id": 307, "type": "identifier", "text": "rs", "parent": 306, "children": [], "start_point": {"row": 82, "column": 25}, "end_point": {"row": 82, "column": 27}}, {"id": 308, "type": "if_statement", "text": "if (!bcf_sr_has_line(rs, 0)) continue;", "parent": 302, "children": [309, 317], "start_point": {"row": 83, "column": 2}, "end_point": {"row": 83, "column": 40}}, {"id": 309, "type": "parenthesized_expression", "text": "(!bcf_sr_has_line(rs, 0))", "parent": 308, "children": [310], "start_point": {"row": 83, "column": 5}, "end_point": {"row": 83, "column": 30}}, {"id": 310, "type": "unary_expression", "text": "!bcf_sr_has_line(rs, 0)", "parent": 309, "children": [311, 312], "start_point": {"row": 83, "column": 6}, "end_point": {"row": 83, "column": 29}}, {"id": 311, "type": "!", "text": "!", "parent": 310, "children": [], "start_point": {"row": 83, "column": 6}, "end_point": {"row": 83, "column": 7}}, {"id": 312, "type": "call_expression", "text": "bcf_sr_has_line(rs, 0)", "parent": 310, "children": [313, 314], "start_point": {"row": 83, "column": 7}, "end_point": {"row": 83, "column": 29}}, {"id": 313, "type": "identifier", "text": "bcf_sr_has_line", "parent": 312, "children": [], "start_point": {"row": 83, "column": 7}, "end_point": {"row": 83, "column": 22}}, {"id": 314, "type": "argument_list", "text": "(rs, 0)", "parent": 312, "children": [315, 316], "start_point": {"row": 83, "column": 22}, "end_point": {"row": 83, "column": 29}}, {"id": 315, "type": "identifier", "text": "rs", "parent": 314, "children": [], "start_point": {"row": 83, "column": 23}, "end_point": {"row": 83, "column": 25}}, {"id": 316, "type": "number_literal", "text": "0", "parent": 314, "children": [], "start_point": {"row": 83, "column": 27}, "end_point": {"row": 83, "column": 28}}, {"id": 317, "type": "continue_statement", "text": "continue;", "parent": 308, "children": [318], "start_point": {"row": 83, "column": 31}, "end_point": {"row": 83, "column": 40}}, {"id": 318, "type": "continue", "text": "continue", "parent": 317, "children": [], "start_point": {"row": 83, "column": 31}, "end_point": {"row": 83, "column": 39}}, {"id": 319, "type": "assignment_expression", "text": "line = bcf_sr_get_line(rs, 0)", "parent": 302, "children": [320, 321, 322], "start_point": {"row": 85, "column": 2}, "end_point": {"row": 85, "column": 31}}, {"id": 320, "type": "identifier", "text": "line", "parent": 319, "children": [], "start_point": {"row": 85, "column": 2}, "end_point": {"row": 85, "column": 6}}, {"id": 321, "type": "=", "text": "=", "parent": 319, "children": [], "start_point": {"row": 85, "column": 7}, "end_point": {"row": 85, "column": 8}}, {"id": 322, "type": "call_expression", "text": "bcf_sr_get_line(rs, 0)", "parent": 319, "children": [323, 324], "start_point": {"row": 85, "column": 9}, "end_point": {"row": 85, "column": 31}}, {"id": 323, "type": "identifier", "text": "bcf_sr_get_line", "parent": 322, "children": [], "start_point": {"row": 85, "column": 9}, "end_point": {"row": 85, "column": 24}}, {"id": 324, "type": "argument_list", "text": "(rs, 0)", "parent": 322, "children": [325, 326], "start_point": {"row": 85, "column": 24}, "end_point": {"row": 85, "column": 31}}, {"id": 325, "type": "identifier", "text": "rs", "parent": 324, "children": [], "start_point": {"row": 85, "column": 25}, "end_point": {"row": 85, "column": 27}}, {"id": 326, "type": "number_literal", "text": "0", "parent": 324, "children": [], "start_point": {"row": 85, "column": 29}, "end_point": {"row": 85, "column": 30}}, {"id": 327, "type": "assignment_expression", "text": "info = bcf_get_info(header, line, \"CNT\")", "parent": 302, "children": [328, 329, 330], "start_point": {"row": 86, "column": 2}, "end_point": {"row": 86, "column": 42}}, {"id": 328, "type": "identifier", "text": "info", "parent": 327, "children": [], "start_point": {"row": 86, "column": 2}, "end_point": {"row": 86, "column": 6}}, {"id": 329, "type": "=", "text": "=", "parent": 327, "children": [], "start_point": {"row": 86, "column": 7}, "end_point": {"row": 86, "column": 8}}, {"id": 330, "type": "call_expression", "text": "bcf_get_info(header, line, \"CNT\")", "parent": 327, "children": [331, 332], "start_point": {"row": 86, "column": 9}, "end_point": {"row": 86, "column": 42}}, {"id": 331, "type": "identifier", "text": "bcf_get_info", "parent": 330, "children": [], "start_point": {"row": 86, "column": 9}, "end_point": {"row": 86, "column": 21}}, {"id": 332, "type": "argument_list", "text": "(header, line, \"CNT\")", "parent": 330, "children": [333, 334, 335], "start_point": {"row": 86, "column": 21}, "end_point": {"row": 86, "column": 42}}, {"id": 333, "type": "identifier", "text": "header", "parent": 332, "children": [], "start_point": {"row": 86, "column": 22}, "end_point": {"row": 86, "column": 28}}, {"id": 334, "type": "identifier", "text": "line", "parent": 332, "children": [], "start_point": {"row": 86, "column": 30}, "end_point": {"row": 86, "column": 34}}, {"id": 335, "type": "string_literal", "text": "\"CNT\"", "parent": 332, "children": [], "start_point": {"row": 86, "column": 36}, "end_point": {"row": 86, "column": 41}}, {"id": 336, "type": "assignment_expression", "text": "pos = line->pos + 1", "parent": 302, "children": [337, 338, 339], "start_point": {"row": 87, "column": 2}, "end_point": {"row": 87, "column": 21}}, {"id": 337, "type": "identifier", "text": "pos", "parent": 336, "children": [], "start_point": {"row": 87, "column": 2}, "end_point": {"row": 87, "column": 5}}, {"id": 338, "type": "=", "text": "=", "parent": 336, "children": [], "start_point": {"row": 87, "column": 6}, "end_point": {"row": 87, "column": 7}}, {"id": 339, "type": "binary_expression", "text": "line->pos + 1", "parent": 336, "children": [340, 343, 344], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 21}}, {"id": 340, "type": "field_expression", "text": "line->pos", "parent": 339, "children": [341, 342], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 17}}, {"id": 341, "type": "identifier", "text": "line", "parent": 340, "children": [], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 12}}, {"id": 342, "type": "field_identifier", "text": "pos", "parent": 340, "children": [], "start_point": {"row": 87, "column": 14}, "end_point": {"row": 87, "column": 17}}, {"id": 343, "type": "+", "text": "+", "parent": 339, "children": [], "start_point": {"row": 87, "column": 18}, "end_point": {"row": 87, "column": 19}}, {"id": 344, "type": "number_literal", "text": "1", "parent": 339, "children": [], "start_point": {"row": 87, "column": 20}, "end_point": {"row": 87, "column": 21}}, {"id": 345, "type": "if_statement", "text": "if (!info) continue;", "parent": 302, "children": [346, 350], "start_point": {"row": 88, "column": 2}, "end_point": {"row": 88, "column": 22}}, {"id": 346, "type": "parenthesized_expression", "text": "(!info)", "parent": 345, "children": [347], "start_point": {"row": 88, "column": 5}, "end_point": {"row": 88, "column": 12}}, {"id": 347, "type": "unary_expression", "text": "!info", "parent": 346, "children": [348, 349], "start_point": {"row": 88, "column": 6}, "end_point": {"row": 88, "column": 11}}, {"id": 348, "type": "!", "text": "!", "parent": 347, "children": [], "start_point": {"row": 88, "column": 6}, "end_point": {"row": 88, "column": 7}}, {"id": 349, "type": "identifier", "text": "info", "parent": 347, "children": [], "start_point": {"row": 88, "column": 7}, "end_point": {"row": 88, "column": 11}}, {"id": 350, "type": "continue_statement", "text": "continue;", "parent": 345, "children": [351], "start_point": {"row": 88, "column": 13}, "end_point": {"row": 88, "column": 22}}, {"id": 351, "type": "continue", "text": "continue", "parent": 350, "children": [], "start_point": {"row": 88, "column": 13}, "end_point": {"row": 88, "column": 21}}, {"id": 352, "type": "if_statement", "text": "if (line->n_allele != 2) continue;", "parent": 302, "children": [353, 360], "start_point": {"row": 91, "column": 2}, "end_point": {"row": 91, "column": 36}}, {"id": 353, "type": "parenthesized_expression", "text": "(line->n_allele != 2)", "parent": 352, "children": [354], "start_point": {"row": 91, "column": 5}, "end_point": {"row": 91, "column": 26}}, {"id": 354, "type": "binary_expression", "text": "line->n_allele != 2", "parent": 353, "children": [355, 358, 359], "start_point": {"row": 91, "column": 6}, "end_point": {"row": 91, "column": 25}}, {"id": 355, "type": "field_expression", "text": "line->n_allele", "parent": 354, "children": [356, 357], "start_point": {"row": 91, "column": 6}, "end_point": {"row": 91, "column": 20}}, {"id": 356, "type": "identifier", "text": "line", "parent": 355, "children": [], "start_point": {"row": 91, "column": 6}, "end_point": {"row": 91, "column": 10}}, {"id": 357, "type": "field_identifier", "text": "n_allele", "parent": 355, "children": [], "start_point": {"row": 91, "column": 12}, "end_point": {"row": 91, "column": 20}}, {"id": 358, "type": "!=", "text": "!=", "parent": 354, "children": [], "start_point": {"row": 91, "column": 21}, "end_point": {"row": 91, "column": 23}}, {"id": 359, "type": "number_literal", "text": "2", "parent": 354, "children": [], "start_point": {"row": 91, "column": 24}, "end_point": {"row": 91, "column": 25}}, {"id": 360, "type": "continue_statement", "text": "continue;", "parent": 352, "children": [361], "start_point": {"row": 91, "column": 27}, "end_point": {"row": 91, "column": 36}}, {"id": 361, "type": "continue", "text": "continue", "parent": 360, "children": [], "start_point": {"row": 91, "column": 27}, "end_point": {"row": 91, "column": 35}}, {"id": 362, "type": "assignment_expression", "text": "b5alt = str_to_b5seq(line->d.allele[1])", "parent": 302, "children": [363, 364, 365], "start_point": {"row": 93, "column": 2}, "end_point": {"row": 93, "column": 41}}, {"id": 363, "type": "identifier", "text": "b5alt", "parent": 362, "children": [], "start_point": {"row": 93, "column": 2}, "end_point": {"row": 93, "column": 7}}, {"id": 364, "type": "=", "text": "=", "parent": 362, "children": [], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 93, "column": 9}}, {"id": 365, "type": "call_expression", "text": "str_to_b5seq(line->d.allele[1])", "parent": 362, "children": [366, 367], "start_point": {"row": 93, "column": 10}, "end_point": {"row": 93, "column": 41}}, {"id": 366, "type": "identifier", "text": "str_to_b5seq", "parent": 365, "children": [], "start_point": {"row": 93, "column": 10}, "end_point": {"row": 93, "column": 22}}, {"id": 367, "type": "argument_list", "text": "(line->d.allele[1])", "parent": 365, "children": [368], "start_point": {"row": 93, "column": 22}, "end_point": {"row": 93, "column": 41}}, {"id": 368, "type": "subscript_expression", "text": "line->d.allele[1]", "parent": 367, "children": [369, 374], "start_point": {"row": 93, "column": 23}, "end_point": {"row": 93, "column": 40}}, {"id": 369, "type": "field_expression", "text": "line->d.allele", "parent": 368, "children": [370, 373], "start_point": {"row": 93, "column": 23}, "end_point": {"row": 93, "column": 37}}, {"id": 370, "type": "field_expression", "text": "line->d", "parent": 369, "children": [371, 372], "start_point": {"row": 93, "column": 23}, "end_point": {"row": 93, "column": 30}}, {"id": 371, "type": "identifier", "text": "line", "parent": 370, "children": [], "start_point": {"row": 93, "column": 23}, "end_point": {"row": 93, "column": 27}}, {"id": 372, "type": "field_identifier", "text": "d", "parent": 370, "children": [], "start_point": {"row": 93, "column": 29}, "end_point": {"row": 93, "column": 30}}, {"id": 373, "type": "field_identifier", "text": "allele", "parent": 369, "children": [], "start_point": {"row": 93, "column": 31}, "end_point": {"row": 93, "column": 37}}, {"id": 374, "type": "number_literal", "text": "1", "parent": 368, "children": [], "start_point": {"row": 93, "column": 38}, "end_point": {"row": 93, "column": 39}}, {"id": 375, "type": "if_statement", "text": "if (get_cosmic_count(pos, b5alt) > -1) continue;", "parent": 302, "children": [376, 385], "start_point": {"row": 94, "column": 2}, "end_point": {"row": 94, "column": 50}}, {"id": 376, "type": "parenthesized_expression", "text": "(get_cosmic_count(pos, b5alt) > -1)", "parent": 375, "children": [377], "start_point": {"row": 94, "column": 5}, "end_point": {"row": 94, "column": 40}}, {"id": 377, "type": "binary_expression", "text": "get_cosmic_count(pos, b5alt) > -1", "parent": 376, "children": [378, 383, 384], "start_point": {"row": 94, "column": 6}, "end_point": {"row": 94, "column": 39}}, {"id": 378, "type": "call_expression", "text": "get_cosmic_count(pos, b5alt)", "parent": 377, "children": [379, 380], "start_point": {"row": 94, "column": 6}, "end_point": {"row": 94, "column": 34}}, {"id": 379, "type": "identifier", "text": "get_cosmic_count", "parent": 378, "children": [], "start_point": {"row": 94, "column": 6}, "end_point": {"row": 94, "column": 22}}, {"id": 380, "type": "argument_list", "text": "(pos, b5alt)", "parent": 378, "children": [381, 382], "start_point": {"row": 94, "column": 22}, "end_point": {"row": 94, "column": 34}}, {"id": 381, "type": "identifier", "text": "pos", "parent": 380, "children": [], "start_point": {"row": 94, "column": 23}, "end_point": {"row": 94, "column": 26}}, {"id": 382, "type": "identifier", "text": "b5alt", "parent": 380, "children": [], "start_point": {"row": 94, "column": 28}, "end_point": {"row": 94, "column": 33}}, {"id": 383, "type": ">", "text": ">", "parent": 377, "children": [], "start_point": {"row": 94, "column": 35}, "end_point": {"row": 94, "column": 36}}, {"id": 384, "type": "number_literal", "text": "-1", "parent": 377, "children": [], "start_point": {"row": 94, "column": 37}, "end_point": {"row": 94, "column": 39}}, {"id": 385, "type": "continue_statement", "text": "continue;", "parent": 375, "children": [386], "start_point": {"row": 94, "column": 41}, "end_point": {"row": 94, "column": 50}}, {"id": 386, "type": "continue", "text": "continue", "parent": 385, "children": [], "start_point": {"row": 94, "column": 41}, "end_point": {"row": 94, "column": 49}}, {"id": 387, "type": "assignment_expression", "text": "count = info->v1.i", "parent": 302, "children": [388, 389, 390], "start_point": {"row": 96, "column": 2}, "end_point": {"row": 96, "column": 20}}, {"id": 388, "type": "identifier", "text": "count", "parent": 387, "children": [], "start_point": {"row": 96, "column": 2}, "end_point": {"row": 96, "column": 7}}, {"id": 389, "type": "=", "text": "=", "parent": 387, "children": [], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 9}}, {"id": 390, "type": "field_expression", "text": "info->v1.i", "parent": 387, "children": [391, 394], "start_point": {"row": 96, "column": 10}, "end_point": {"row": 96, "column": 20}}, {"id": 391, "type": "field_expression", "text": "info->v1", "parent": 390, "children": [392, 393], "start_point": {"row": 96, "column": 10}, "end_point": {"row": 96, "column": 18}}, {"id": 392, "type": "identifier", "text": "info", "parent": 391, "children": [], "start_point": {"row": 96, "column": 10}, "end_point": {"row": 96, "column": 14}}, {"id": 393, "type": "field_identifier", "text": "v1", "parent": 391, "children": [], "start_point": {"row": 96, "column": 16}, "end_point": {"row": 96, "column": 18}}, {"id": 394, "type": "field_identifier", "text": "i", "parent": 390, "children": [], "start_point": {"row": 96, "column": 19}, "end_point": {"row": 96, "column": 20}}, {"id": 395, "type": "assignment_expression", "text": "ent = malloc(sizeof(struct cosm_count_table))", "parent": 302, "children": [396, 397, 398], "start_point": {"row": 97, "column": 2}, "end_point": {"row": 97, "column": 47}}, {"id": 396, "type": "identifier", "text": "ent", "parent": 395, "children": [], "start_point": {"row": 97, "column": 2}, "end_point": {"row": 97, "column": 5}}, {"id": 397, "type": "=", "text": "=", "parent": 395, "children": [], "start_point": {"row": 97, "column": 6}, "end_point": {"row": 97, "column": 7}}, {"id": 398, "type": "call_expression", "text": "malloc(sizeof(struct cosm_count_table))", "parent": 395, "children": [399, 400], "start_point": {"row": 97, "column": 8}, "end_point": {"row": 97, "column": 47}}, {"id": 399, "type": "identifier", "text": "malloc", "parent": 398, "children": [], "start_point": {"row": 97, "column": 8}, "end_point": {"row": 97, "column": 14}}, {"id": 400, "type": "argument_list", "text": "(sizeof(struct cosm_count_table))", "parent": 398, "children": [401], "start_point": {"row": 97, "column": 14}, "end_point": {"row": 97, "column": 47}}, {"id": 401, "type": "sizeof_expression", "text": "sizeof(struct cosm_count_table)", "parent": 400, "children": [402], "start_point": {"row": 97, "column": 15}, "end_point": {"row": 97, "column": 46}}, {"id": 402, "type": "type_descriptor", "text": "struct cosm_count_table", "parent": 401, "children": [403], "start_point": {"row": 97, "column": 22}, "end_point": {"row": 97, "column": 45}}, {"id": 403, "type": "struct_specifier", "text": "struct cosm_count_table", "parent": 402, "children": [404, 405], "start_point": {"row": 97, "column": 22}, "end_point": {"row": 97, "column": 45}}, {"id": 404, "type": "struct", "text": "struct", "parent": 403, "children": [], "start_point": {"row": 97, "column": 22}, "end_point": {"row": 97, "column": 28}}, {"id": 405, "type": "type_identifier", "text": "cosm_count_table", "parent": 403, "children": [], "start_point": {"row": 97, "column": 29}, "end_point": {"row": 97, "column": 45}}, {"id": 406, "type": "assignment_expression", "text": "ent->pos = pos", "parent": 302, "children": [407, 410, 411], "start_point": {"row": 98, "column": 2}, "end_point": {"row": 98, "column": 16}}, {"id": 407, "type": "field_expression", "text": "ent->pos", "parent": 406, "children": [408, 409], "start_point": {"row": 98, "column": 2}, "end_point": {"row": 98, "column": 10}}, {"id": 408, "type": "identifier", "text": "ent", "parent": 407, "children": [], "start_point": {"row": 98, "column": 2}, "end_point": {"row": 98, "column": 5}}, {"id": 409, "type": "field_identifier", "text": "pos", "parent": 407, "children": [], "start_point": {"row": 98, "column": 7}, "end_point": {"row": 98, "column": 10}}, {"id": 410, "type": "=", "text": "=", "parent": 406, "children": [], "start_point": {"row": 98, "column": 11}, "end_point": {"row": 98, "column": 12}}, {"id": 411, "type": "identifier", "text": "pos", "parent": 406, "children": [], "start_point": {"row": 98, "column": 13}, "end_point": {"row": 98, "column": 16}}, {"id": 412, "type": "assignment_expression", "text": "ent->b5alt = b5alt", "parent": 302, "children": [413, 416, 417], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 99, "column": 20}}, {"id": 413, "type": "field_expression", "text": "ent->b5alt", "parent": 412, "children": [414, 415], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 99, "column": 12}}, {"id": 414, "type": "identifier", "text": "ent", "parent": 413, "children": [], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 99, "column": 5}}, {"id": 415, "type": "field_identifier", "text": "b5alt", "parent": 413, "children": [], "start_point": {"row": 99, "column": 7}, "end_point": {"row": 99, "column": 12}}, {"id": 416, "type": "=", "text": "=", "parent": 412, "children": [], "start_point": {"row": 99, "column": 13}, "end_point": {"row": 99, "column": 14}}, {"id": 417, "type": "identifier", "text": "b5alt", "parent": 412, "children": [], "start_point": {"row": 99, "column": 15}, "end_point": {"row": 99, "column": 20}}, {"id": 418, "type": "assignment_expression", "text": "ent->count = count", "parent": 302, "children": [419, 422, 423], "start_point": {"row": 100, "column": 2}, "end_point": {"row": 100, "column": 20}}, {"id": 419, "type": "field_expression", "text": "ent->count", "parent": 418, "children": [420, 421], "start_point": {"row": 100, "column": 2}, "end_point": {"row": 100, "column": 12}}, {"id": 420, "type": "identifier", "text": "ent", "parent": 419, "children": [], "start_point": {"row": 100, "column": 2}, "end_point": {"row": 100, "column": 5}}, {"id": 421, "type": "field_identifier", "text": "count", "parent": 419, "children": [], "start_point": {"row": 100, "column": 7}, "end_point": {"row": 100, "column": 12}}, {"id": 422, "type": "=", "text": "=", "parent": 418, "children": [], "start_point": {"row": 100, "column": 13}, "end_point": {"row": 100, "column": 14}}, {"id": 423, "type": "identifier", "text": "count", "parent": 418, "children": [], "start_point": {"row": 100, "column": 15}, "end_point": {"row": 100, "column": 20}}, {"id": 424, "type": "call_expression", "text": "HASH_ADD(hh, cct, pos, key_len, ent)", "parent": 302, "children": [425, 426], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 38}}, {"id": 425, "type": "identifier", "text": "HASH_ADD", "parent": 424, "children": [], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 10}}, {"id": 426, "type": "argument_list", "text": "(hh, cct, pos, key_len, ent)", "parent": 424, "children": [427, 428, 429, 430, 431], "start_point": {"row": 102, "column": 10}, "end_point": {"row": 102, "column": 38}}, {"id": 427, "type": "identifier", "text": "hh", "parent": 426, "children": [], "start_point": {"row": 102, "column": 11}, "end_point": {"row": 102, "column": 13}}, {"id": 428, "type": "identifier", "text": "cct", "parent": 426, "children": [], "start_point": {"row": 102, "column": 15}, "end_point": {"row": 102, "column": 18}}, {"id": 429, "type": "identifier", "text": "pos", "parent": 426, "children": [], "start_point": {"row": 102, "column": 20}, "end_point": {"row": 102, "column": 23}}, {"id": 430, "type": "identifier", "text": "key_len", "parent": 426, "children": [], "start_point": {"row": 102, "column": 25}, "end_point": {"row": 102, "column": 32}}, {"id": 431, "type": "identifier", "text": "ent", "parent": 426, "children": [], "start_point": {"row": 102, "column": 34}, "end_point": {"row": 102, "column": 37}}, {"id": 432, "type": "call_expression", "text": "bcf_sr_destroy(rs)", "parent": 172, "children": [433, 434], "start_point": {"row": 106, "column": 1}, "end_point": {"row": 106, "column": 19}}, {"id": 433, "type": "identifier", "text": "bcf_sr_destroy", "parent": 432, "children": [], "start_point": {"row": 106, "column": 1}, "end_point": {"row": 106, "column": 15}}, {"id": 434, "type": "argument_list", "text": "(rs)", "parent": 432, "children": [435], "start_point": {"row": 106, "column": 15}, "end_point": {"row": 106, "column": 19}}, {"id": 435, "type": "identifier", "text": "rs", "parent": 434, "children": [], "start_point": {"row": 106, "column": 16}, "end_point": {"row": 106, "column": 18}}, {"id": 436, "type": "return_statement", "text": "return 1;", "parent": 172, "children": [437], "start_point": {"row": 108, "column": 1}, "end_point": {"row": 108, "column": 10}}, {"id": 437, "type": "number_literal", "text": "1", "parent": 436, "children": [], "start_point": {"row": 108, "column": 8}, "end_point": {"row": 108, "column": 9}}]}, "node_categories": {"declarations": {"functions": [46, 48, 77, 79, 172, 174], "variables": [27, 30, 33, 36, 39, 51, 82, 85, 88, 91, 96, 177, 182, 187, 190, 195, 198, 205, 210, 215, 220], "classes": [24, 25, 40, 41, 52, 53, 92, 93, 97, 98, 132, 133, 144, 145, 199, 200, 267, 268, 279, 280, 403, 404], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22], "modules": [], "enums": []}, "statements": {"expressions": [61, 68, 73, 103, 106, 109, 110, 113, 119, 127, 128, 129, 137, 138, 141, 148, 153, 154, 160, 161, 169, 227, 230, 239, 247, 248, 249, 262, 263, 264, 272, 273, 276, 284, 285, 289, 294, 297, 303, 304, 309, 310, 312, 322, 330, 339, 340, 346, 347, 353, 354, 355, 365, 368, 369, 370, 376, 377, 378, 390, 391, 398, 401, 407, 413, 419, 424, 432], "assignments": [112, 118, 124, 236, 244, 254, 259, 319, 327, 336, 362, 387, 395, 406, 412, 418], "loops": [302], "conditionals": [26, 29, 32, 35, 37, 38, 42, 45, 49, 54, 57, 60, 62, 64, 65, 66, 67, 69, 71, 72, 74, 76, 80, 84, 87, 90, 94, 95, 99, 102, 104, 107, 111, 114, 115, 117, 120, 121, 123, 125, 134, 135, 139, 146, 147, 149, 151, 152, 155, 156, 157, 158, 159, 162, 170, 171, 175, 181, 186, 189, 192, 193, 194, 197, 201, 204, 206, 209, 211, 214, 216, 219, 221, 225, 228, 231, 233, 234, 237, 240, 242, 243, 245, 250, 251, 253, 255, 260, 269, 270, 274, 281, 282, 283, 286, 290, 295, 298, 299, 305, 307, 308, 313, 315, 320, 323, 325, 328, 331, 333, 334, 337, 341, 342, 345, 349, 352, 356, 357, 363, 366, 371, 372, 373, 375, 379, 381, 382, 388, 392, 393, 394, 396, 399, 405, 408, 409, 411, 414, 415, 417, 420, 421, 423, 425, 427, 428, 429, 430, 431, 433, 435], "returns": [166, 168, 300, 436], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 20, 23, 108, 167, 235, 252, 288, 292, 301, 316, 326, 335, 344, 359, 374, 384, 437], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 46, "universal_type": "function", "name": "destroy_cosmic_table", "text_snippet": "void destroy_cosmic_table()\n{\n\tstruct cosm_count_table *el, *tmp;\n\tHASH_ITER(hh, cct, el, tmp) {\n\t\tH"}, {"node_id": 48, "universal_type": "function", "name": "unknown", "text_snippet": "destroy_cosmic_table()"}, {"node_id": 77, "universal_type": "function", "name": "cosm_count_table", "text_snippet": "int32_t get_cosmic_count(uint32_t pos, uint32_t b5alt)\n{\n\tuint32_t key_len;\n\tstruct cosm_count_table"}, {"node_id": 79, "universal_type": "function", "name": "unknown", "text_snippet": "get_cosmic_count(uint32_t pos, uint32_t b5alt)"}, {"node_id": 172, "universal_type": "function", "name": "load_cosmic_table", "text_snippet": "int load_cosmic_table(const char *vcf_fname, const char *chr)\n{\n\tint res;\n\tuint32_t pos, b5alt, coun"}, {"node_id": 174, "universal_type": "function", "name": "unknown", "text_snippet": "load_cosmic_table(const char *vcf_fname, const char *chr)"}], "class_declarations": [{"node_id": 24, "universal_type": "class", "name": "cosm_count_table", "text_snippet": "struct cosm_count_table {\n\t// the following two fields form the key\n\tuint32_t pos;\n\tuint32_t b5alt;\n"}, {"node_id": 25, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 40, "universal_type": "class", "name": "cosm_count_table", "text_snippet": "struct cosm_count_table"}, {"node_id": 41, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 52, "universal_type": "class", "name": "cosm_count_table", "text_snippet": "struct cosm_count_table"}, {"node_id": 53, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 92, "universal_type": "class", "name": "cosm_count_table", "text_snippet": "struct cosm_count_table"}, {"node_id": 93, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 97, "universal_type": "class", "name": "cosm_count_table", "text_snippet": "struct cosm_count_table"}, {"node_id": 98, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 132, "universal_type": "class", "name": "cosm_count_table", "text_snippet": "struct cosm_count_table"}, {"node_id": 133, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 144, "universal_type": "class", "name": "cosm_count_table", "text_snippet": "struct cosm_count_table"}, {"node_id": 145, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 199, "universal_type": "class", "name": "cosm_count_table", "text_snippet": "struct cosm_count_table"}, {"node_id": 200, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 267, "universal_type": "class", "name": "cosm_count_table", "text_snippet": "struct cosm_count_table"}, {"node_id": 268, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 279, "universal_type": "class", "name": "cosm_count_table", "text_snippet": "struct cosm_count_table"}, {"node_id": 280, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 403, "universal_type": "class", "name": "cosm_count_table", "text_snippet": "struct cosm_count_table"}, {"node_id": 404, "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"}, {"node_id": 6, "text": "#include <stdint.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 <uthash.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"utils.h\"\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"base_seq_repr.h\"\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include \"htslib/synced_bcf_reader.h\"\n"}, {"node_id": 22, "text": "#include"}]}, "original_source_code": "#include <stdio.h>\n#include <stdlib.h>\n#include <stdint.h>\n#include <stddef.h>\n#include <uthash.h>\n\n#include \"utils.h\"\n#include \"base_seq_repr.h\"\n\n#include \"htslib/synced_bcf_reader.h\"\n\nstruct cosm_count_table {\n\t// the following two fields form the key\n\tuint32_t pos;\n\tuint32_t b5alt;\n\n\t// value\n\tuint32_t count;\n\n\tUT_hash_handle hh;\n};\n\nstatic struct cosm_count_table *cct;\n\nvoid destroy_cosmic_table()\n{\n\tstruct cosm_count_table *el, *tmp;\n\tHASH_ITER(hh, cct, el, tmp) {\n\t\tHASH_DEL(cct, el);\n\t\tfree(el);\n\t}\n}\n\nint32_t get_cosmic_count(uint32_t pos, uint32_t b5alt)\n{\n\tuint32_t key_len;\n\tstruct cosm_count_table key_holder;\n\tstruct cosm_count_table *ent;\n\n\tmemset(&key_holder, 0, sizeof(key_holder));\n\n\tkey_holder.pos = pos;\n\tkey_holder.b5alt = b5alt;\n\n\tkey_len = offsetof(struct cosm_count_table, b5alt)\n\t\t + sizeof(b5alt)\n\t\t - offsetof(struct cosm_count_table, pos);\n\n\tHASH_FIND(hh, cct, &key_holder.pos, key_len, ent);\n\n\tif (ent == NULL) return -1;\n\n\treturn ent->count;\n}\n\nint load_cosmic_table(const char *vcf_fname, const char *chr)\n{\n\tint res;\n\tuint32_t pos, b5alt, count;\n\tuint32_t key_len;\n\tstruct cosm_count_table *ent;\n\tbcf1_t *line;\n\tbcf_hdr_t *header;\n\tbcf_info_t *info;\n\tbcf_srs_t *rs = bcf_sr_init();\n\n\tbcf_sr_set_regions(rs, chr, 0);\n\n\tres = bcf_sr_add_reader(rs, vcf_fname);\n\theader = rs->readers[0].header;\n\n\tcct = NULL;\n\n\tkey_len = offsetof(struct cosm_count_table, b5alt)\n\t\t + sizeof(b5alt)\n\t\t - offsetof(struct cosm_count_table, pos);\n\n\tif (res == 0) {\n\t\terr_printf(\"error: %s\\n\", bcf_sr_strerror(rs->errnum));\n\t\treturn 0;\n\t}\n\n\twhile (bcf_sr_next_line(rs)) {\n\t\tif (!bcf_sr_has_line(rs, 0)) continue;\n\n\t\tline = bcf_sr_get_line(rs, 0);\n\t\tinfo = bcf_get_info(header, line, \"CNT\");\n\t\tpos = line->pos + 1;\n\t\tif (!info) continue;\n\n\t\t// TODO: enforce the condition below more strictly!\n\t\tif (line->n_allele != 2) continue;\n\n\t\tb5alt = str_to_b5seq(line->d.allele[1]); // [1] is the ALT\n\t\tif (get_cosmic_count(pos, b5alt) > -1) continue;\n\n\t\tcount = info->v1.i;\n\t\tent = malloc(sizeof(struct cosm_count_table));\n\t\tent->pos = pos;\n\t\tent->b5alt = b5alt;\n\t\tent->count = count;\n\n\t\tHASH_ADD(hh, cct, pos, key_len, ent);\n\t}\n\n\n\tbcf_sr_destroy(rs);\n\n\treturn 1;\n\n}\n"}
80,274
c
#ifndef _INCLUDE_EC_PRV_B66_UTIL_H #define _INCLUDE_EC_PRV_B66_UTIL_H #include <cstdint> #include <span> #include <vector> namespace ec_prv::b66::util { auto unpack(uint32_t n) -> std::vector<uint8_t>; auto unpack(std::vector<uint8_t>& dst, uint32_t n) -> void; auto pack(std::span<uint8_t> src) -> uint32_t; auto pack(uint32_t& dst, std::span<uint8_t> src) -> void; } // namespace ec_prv::b66::util #endif // _INCLUDE_EC_PRV_B66_UTIL_H
35.42
12
(translation_unit) "#ifndef _INCLUDE_EC_PRV_B66_UTIL_H\n#define _INCLUDE_EC_PRV_B66_UTIL_H\n\n#include <cstdint>\n#include <span>\n#include <vector>\n\nnamespace ec_prv::b66::util {\n\nauto unpack(uint32_t n) -> std::vector<uint8_t>;\n\nauto unpack(std::vector<uint8_t>& dst, uint32_t n) -> void;\n\nauto pack(std::span<uint8_t> src) -> uint32_t;\n\nauto pack(uint32_t& dst, std::span<uint8_t> src) -> void;\n\n} // namespace ec_prv::b66::util\n#endif // _INCLUDE_EC_PRV_B66_UTIL_H\n" (preproc_ifdef) "#ifndef _INCLUDE_EC_PRV_B66_UTIL_H\n#define _INCLUDE_EC_PRV_B66_UTIL_H\n\n#include <cstdint>\n#include <span>\n#include <vector>\n\nnamespace ec_prv::b66::util {\n\nauto unpack(uint32_t n) -> std::vector<uint8_t>;\n\nauto unpack(std::vector<uint8_t>& dst, uint32_t n) -> void;\n\nauto pack(std::span<uint8_t> src) -> uint32_t;\n\nauto pack(uint32_t& dst, std::span<uint8_t> src) -> void;\n\n} // namespace ec_prv::b66::util\n#endif" (#ifndef) "#ifndef" (identifier) "_INCLUDE_EC_PRV_B66_UTIL_H" (preproc_def) "#define _INCLUDE_EC_PRV_B66_UTIL_H\n" (#define) "#define" (identifier) "_INCLUDE_EC_PRV_B66_UTIL_H" (preproc_include) "#include <cstdint>\n" (#include) "#include" (system_lib_string) "<cstdint>" (preproc_include) "#include <span>\n" (#include) "#include" (system_lib_string) "<span>" (preproc_include) "#include <vector>\n" (#include) "#include" (system_lib_string) "<vector>" (function_definition) "namespace ec_prv::b66::util {\n\nauto unpack(uint32_t n) -> std::vector<uint8_t>;\n\nauto unpack(std::vector<uint8_t>& dst, uint32_t n) -> void;\n\nauto pack(std::span<uint8_t> src) -> uint32_t;\n\nauto pack(uint32_t& dst, std::span<uint8_t> src) -> void;\n\n}" (type_identifier) "namespace" (identifier) "ec_prv" (ERROR) "::b66::util" (:) ":" (:) ":" (identifier) "b66" (:) ":" (:) ":" (identifier) "util" (compound_statement) "{\n\nauto unpack(uint32_t n) -> std::vector<uint8_t>;\n\nauto unpack(std::vector<uint8_t>& dst, uint32_t n) -> void;\n\nauto pack(std::span<uint8_t> src) -> uint32_t;\n\nauto pack(uint32_t& dst, std::span<uint8_t> src) -> void;\n\n}" ({) "{" (declaration) "auto unpack(uint32_t n) -> std::vector<uint8_t>;" (storage_class_specifier) "auto" (auto) "auto" (macro_type_specifier) "unpack(uint32_t n)" (identifier) "unpack" (() "(" (type_descriptor) "uint32_t" (primitive_type) "uint32_t" (ERROR) "n" (identifier) "n" ()) ")" (ERROR) "-> std::" (->) "->" (identifier) "std" (:) ":" (:) ":" (identifier) "vector" (ERROR) "<uint8_t>" (<) "<" (primitive_type) "uint8_t" (>) ">" (;) ";" (declaration) "auto unpack(std::vector<uint8_t>& dst, uint32_t n) -> void;\n\nauto pack(std::span<uint8_t> src) -> uint32_t;" (storage_class_specifier) "auto" (auto) "auto" (macro_type_specifier) "unpack(std::vector<uint8_t>& dst, uint32_t n)" (identifier) "unpack" (() "(" (ERROR) "std::vector<uint8_t>& dst, uint32_t" (type_descriptor) "std" (type_identifier) "std" (:) ":" (:) ":" (identifier) "vector" (<) "<" (primitive_type) "uint8_t" (>) ">" (&) "&" (identifier) "dst" (,) "," (primitive_type) "uint32_t" (type_descriptor) "n" (type_identifier) "n" ()) ")" (ERROR) "-> void;" (->) "->" (primitive_type) "void" (;) ";" (storage_class_specifier) "auto" (auto) "auto" (function_declarator) "pack(std::span<uint8_t> src)" (identifier) "pack" (parameter_list) "(std::span<uint8_t> src)" (() "(" (parameter_declaration) "std::span<uint8_t> src" (type_identifier) "std" (ERROR) "::span<uint8_t>" (:) ":" (:) ":" (identifier) "span" (<) "<" (primitive_type) "uint8_t" (>) ">" (identifier) "src" ()) ")" (ERROR) "-> uint32_t" (->) "->" (primitive_type) "uint32_t" (;) ";" (ERROR) "auto pack(uint32_t& dst, std::span<uint8_t> src) -> void;" (storage_class_specifier) "auto" (auto) "auto" (macro_type_specifier) "pack(uint32_t& dst, std::span<uint8_t> src)" (identifier) "pack" (() "(" (type_descriptor) "uint32_t" (primitive_type) "uint32_t" (ERROR) "& dst, std::span<uint8_t> src" (&) "&" (identifier) "dst" (,) "," (identifier) "std" (:) ":" (:) ":" (identifier) "span" (<) "<" (primitive_type) "uint8_t" (>) ">" (identifier) "src" ()) ")" (->) "->" (primitive_type) "void" (;) ";" (}) "}" (comment) "// namespace ec_prv::b66::util" (#endif) "#endif" (comment) "// _INCLUDE_EC_PRV_B66_UTIL_H"
125
10
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 35.42, "nodes": 87, "errors": 0, "source_hash": "16ae0f9be4ad7a24bb0106536753bf49f8cf6a045595ed84468237bd4f4755e7", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _INCLUDE_EC_PRV_B66_UTIL_H\n#define _INCLUDE_EC_PRV_B66_UTIL_H\n\n#include <cstdint>\n#include <span>\n#include <vector>\n\nnamespace ec_prv::b66::util {\n\nauto unpack(uint32_t n) -> std::vector<uint8_t>;\n\nauto unpack(std::vector<uint8_t>& dst, uint32_t n) -> void;\n\nauto pack(std::span<uint8_t> src) -> uint32_t;\n\nauto pack(uint32_t& dst, std::span<uint8_t> src) -> void;\n\n} // namespace ec_prv::b66::util\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 86], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 18, "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": "_INCLUDE_EC_PRV_B66_UTIL_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 34}}, {"id": 3, "type": "preproc_def", "text": "#define _INCLUDE_EC_PRV_B66_UTIL_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": "_INCLUDE_EC_PRV_B66_UTIL_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 34}}, {"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 <span>\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": "<span>", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 15}}, {"id": 12, "type": "preproc_include", "text": "#include <vector>\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": "system_lib_string", "text": "<vector>", "parent": 12, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 17}}, {"id": 15, "type": "function_definition", "text": "namespace ec_prv::b66::util {\n\nauto unpack(uint32_t n) -> std::vector<uint8_t>;\n\nauto unpack(std::vector<uint8_t>& dst, uint32_t n) -> void;\n\nauto pack(std::span<uint8_t> src) -> uint32_t;\n\nauto pack(uint32_t& dst, std::span<uint8_t> src) -> void;\n\n}", "parent": 0, "children": [16, 17, 18], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 17, "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": "ec_prv", "parent": 15, "children": [], "start_point": {"row": 7, "column": 10}, "end_point": {"row": 7, "column": 16}}, {"id": 18, "type": "ERROR", "text": "::b66::util", "parent": 15, "children": [19, 20], "start_point": {"row": 7, "column": 16}, "end_point": {"row": 7, "column": 27}}, {"id": 19, "type": "identifier", "text": "b66", "parent": 18, "children": [], "start_point": {"row": 7, "column": 18}, "end_point": {"row": 7, "column": 21}}, {"id": 20, "type": "identifier", "text": "util", "parent": 18, "children": [], "start_point": {"row": 7, "column": 23}, "end_point": {"row": 7, "column": 27}}, {"id": 21, "type": "declaration", "text": "auto unpack(uint32_t n) -> std::vector<uint8_t>;", "parent": 15, "children": [22, 24, 30, 32, 33], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 48}}, {"id": 22, "type": "storage_class_specifier", "text": "auto", "parent": 21, "children": [23], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 4}}, {"id": 23, "type": "auto", "text": "auto", "parent": 22, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 4}}, {"id": 24, "type": "macro_type_specifier", "text": "unpack(uint32_t n)", "parent": 21, "children": [25, 26, 28], "start_point": {"row": 9, "column": 5}, "end_point": {"row": 9, "column": 23}}, {"id": 25, "type": "identifier", "text": "unpack", "parent": 24, "children": [], "start_point": {"row": 9, "column": 5}, "end_point": {"row": 9, "column": 11}}, {"id": 26, "type": "type_descriptor", "text": "uint32_t", "parent": 24, "children": [27], "start_point": {"row": 9, "column": 12}, "end_point": {"row": 9, "column": 20}}, {"id": 27, "type": "primitive_type", "text": "uint32_t", "parent": 26, "children": [], "start_point": {"row": 9, "column": 12}, "end_point": {"row": 9, "column": 20}}, {"id": 28, "type": "ERROR", "text": "n", "parent": 24, "children": [29], "start_point": {"row": 9, "column": 21}, "end_point": {"row": 9, "column": 22}}, {"id": 29, "type": "identifier", "text": "n", "parent": 28, "children": [], "start_point": {"row": 9, "column": 21}, "end_point": {"row": 9, "column": 22}}, {"id": 30, "type": "ERROR", "text": "-> std::", "parent": 21, "children": [31], "start_point": {"row": 9, "column": 24}, "end_point": {"row": 9, "column": 32}}, {"id": 31, "type": "identifier", "text": "std", "parent": 30, "children": [], "start_point": {"row": 9, "column": 27}, "end_point": {"row": 9, "column": 30}}, {"id": 32, "type": "identifier", "text": "vector", "parent": 21, "children": [], "start_point": {"row": 9, "column": 32}, "end_point": {"row": 9, "column": 38}}, {"id": 33, "type": "ERROR", "text": "<uint8_t>", "parent": 21, "children": [34, 35, 36], "start_point": {"row": 9, "column": 38}, "end_point": {"row": 9, "column": 47}}, {"id": 34, "type": "<", "text": "<", "parent": 33, "children": [], "start_point": {"row": 9, "column": 38}, "end_point": {"row": 9, "column": 39}}, {"id": 35, "type": "primitive_type", "text": "uint8_t", "parent": 33, "children": [], "start_point": {"row": 9, "column": 39}, "end_point": {"row": 9, "column": 46}}, {"id": 36, "type": ">", "text": ">", "parent": 33, "children": [], "start_point": {"row": 9, "column": 46}, "end_point": {"row": 9, "column": 47}}, {"id": 37, "type": "declaration", "text": "auto unpack(std::vector<uint8_t>& dst, uint32_t n) -> void;\n\nauto pack(std::span<uint8_t> src) -> uint32_t;", "parent": 15, "children": [38, 40, 53, 55, 57, 68], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 13, "column": 46}}, {"id": 38, "type": "storage_class_specifier", "text": "auto", "parent": 37, "children": [39], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 4}}, {"id": 39, "type": "auto", "text": "auto", "parent": 38, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 4}}, {"id": 40, "type": "macro_type_specifier", "text": "unpack(std::vector<uint8_t>& dst, uint32_t n)", "parent": 37, "children": [41, 42, 51], "start_point": {"row": 11, "column": 5}, "end_point": {"row": 11, "column": 50}}, {"id": 41, "type": "identifier", "text": "unpack", "parent": 40, "children": [], "start_point": {"row": 11, "column": 5}, "end_point": {"row": 11, "column": 11}}, {"id": 42, "type": "ERROR", "text": "std::vector<uint8_t>& dst, uint32_t", "parent": 40, "children": [43, 45, 46, 47, 48, 49, 50], "start_point": {"row": 11, "column": 12}, "end_point": {"row": 11, "column": 47}}, {"id": 43, "type": "type_descriptor", "text": "std", "parent": 42, "children": [44], "start_point": {"row": 11, "column": 12}, "end_point": {"row": 11, "column": 15}}, {"id": 44, "type": "type_identifier", "text": "std", "parent": 43, "children": [], "start_point": {"row": 11, "column": 12}, "end_point": {"row": 11, "column": 15}}, {"id": 45, "type": "identifier", "text": "vector", "parent": 42, "children": [], "start_point": {"row": 11, "column": 17}, "end_point": {"row": 11, "column": 23}}, {"id": 46, "type": "<", "text": "<", "parent": 42, "children": [], "start_point": {"row": 11, "column": 23}, "end_point": {"row": 11, "column": 24}}, {"id": 47, "type": "primitive_type", "text": "uint8_t", "parent": 42, "children": [], "start_point": {"row": 11, "column": 24}, "end_point": {"row": 11, "column": 31}}, {"id": 48, "type": ">", "text": ">", "parent": 42, "children": [], "start_point": {"row": 11, "column": 31}, "end_point": {"row": 11, "column": 32}}, {"id": 49, "type": "identifier", "text": "dst", "parent": 42, "children": [], "start_point": {"row": 11, "column": 34}, "end_point": {"row": 11, "column": 37}}, {"id": 50, "type": "primitive_type", "text": "uint32_t", "parent": 42, "children": [], "start_point": {"row": 11, "column": 39}, "end_point": {"row": 11, "column": 47}}, {"id": 51, "type": "type_descriptor", "text": "n", "parent": 40, "children": [52], "start_point": {"row": 11, "column": 48}, "end_point": {"row": 11, "column": 49}}, {"id": 52, "type": "type_identifier", "text": "n", "parent": 51, "children": [], "start_point": {"row": 11, "column": 48}, "end_point": {"row": 11, "column": 49}}, {"id": 53, "type": "ERROR", "text": "-> void;", "parent": 37, "children": [54], "start_point": {"row": 11, "column": 51}, "end_point": {"row": 11, "column": 59}}, {"id": 54, "type": "primitive_type", "text": "void", "parent": 53, "children": [], "start_point": {"row": 11, "column": 54}, "end_point": {"row": 11, "column": 58}}, {"id": 55, "type": "storage_class_specifier", "text": "auto", "parent": 37, "children": [56], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 4}}, {"id": 56, "type": "auto", "text": "auto", "parent": 55, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 4}}, {"id": 57, "type": "function_declarator", "text": "pack(std::span<uint8_t> src)", "parent": 37, "children": [58, 59], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 33}}, {"id": 58, "type": "identifier", "text": "pack", "parent": 57, "children": [], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 9}}, {"id": 59, "type": "parameter_list", "text": "(std::span<uint8_t> src)", "parent": 57, "children": [60], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 33}}, {"id": 60, "type": "parameter_declaration", "text": "std::span<uint8_t> src", "parent": 59, "children": [61, 62, 67], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 32}}, {"id": 61, "type": "type_identifier", "text": "std", "parent": 60, "children": [], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 13}}, {"id": 62, "type": "ERROR", "text": "::span<uint8_t>", "parent": 60, "children": [63, 64, 65, 66], "start_point": {"row": 13, "column": 13}, "end_point": {"row": 13, "column": 28}}, {"id": 63, "type": "identifier", "text": "span", "parent": 62, "children": [], "start_point": {"row": 13, "column": 15}, "end_point": {"row": 13, "column": 19}}, {"id": 64, "type": "<", "text": "<", "parent": 62, "children": [], "start_point": {"row": 13, "column": 19}, "end_point": {"row": 13, "column": 20}}, {"id": 65, "type": "primitive_type", "text": "uint8_t", "parent": 62, "children": [], "start_point": {"row": 13, "column": 20}, "end_point": {"row": 13, "column": 27}}, {"id": 66, "type": ">", "text": ">", "parent": 62, "children": [], "start_point": {"row": 13, "column": 27}, "end_point": {"row": 13, "column": 28}}, {"id": 67, "type": "identifier", "text": "src", "parent": 60, "children": [], "start_point": {"row": 13, "column": 29}, "end_point": {"row": 13, "column": 32}}, {"id": 68, "type": "ERROR", "text": "-> uint32_t", "parent": 37, "children": [69], "start_point": {"row": 13, "column": 34}, "end_point": {"row": 13, "column": 45}}, {"id": 69, "type": "primitive_type", "text": "uint32_t", "parent": 68, "children": [], "start_point": {"row": 13, "column": 37}, "end_point": {"row": 13, "column": 45}}, {"id": 70, "type": "ERROR", "text": "auto pack(uint32_t& dst, std::span<uint8_t> src) -> void;", "parent": 15, "children": [71, 73, 85], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 57}}, {"id": 71, "type": "storage_class_specifier", "text": "auto", "parent": 70, "children": [72], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 4}}, {"id": 72, "type": "auto", "text": "auto", "parent": 71, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 4}}, {"id": 73, "type": "macro_type_specifier", "text": "pack(uint32_t& dst, std::span<uint8_t> src)", "parent": 70, "children": [74, 75, 77], "start_point": {"row": 15, "column": 5}, "end_point": {"row": 15, "column": 48}}, {"id": 74, "type": "identifier", "text": "pack", "parent": 73, "children": [], "start_point": {"row": 15, "column": 5}, "end_point": {"row": 15, "column": 9}}, {"id": 75, "type": "type_descriptor", "text": "uint32_t", "parent": 73, "children": [76], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 18}}, {"id": 76, "type": "primitive_type", "text": "uint32_t", "parent": 75, "children": [], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 18}}, {"id": 77, "type": "ERROR", "text": "& dst, std::span<uint8_t> src", "parent": 73, "children": [78, 79, 80, 81, 82, 83, 84], "start_point": {"row": 15, "column": 18}, "end_point": {"row": 15, "column": 47}}, {"id": 78, "type": "identifier", "text": "dst", "parent": 77, "children": [], "start_point": {"row": 15, "column": 20}, "end_point": {"row": 15, "column": 23}}, {"id": 79, "type": "identifier", "text": "std", "parent": 77, "children": [], "start_point": {"row": 15, "column": 25}, "end_point": {"row": 15, "column": 28}}, {"id": 80, "type": "identifier", "text": "span", "parent": 77, "children": [], "start_point": {"row": 15, "column": 30}, "end_point": {"row": 15, "column": 34}}, {"id": 81, "type": "<", "text": "<", "parent": 77, "children": [], "start_point": {"row": 15, "column": 34}, "end_point": {"row": 15, "column": 35}}, {"id": 82, "type": "primitive_type", "text": "uint8_t", "parent": 77, "children": [], "start_point": {"row": 15, "column": 35}, "end_point": {"row": 15, "column": 42}}, {"id": 83, "type": ">", "text": ">", "parent": 77, "children": [], "start_point": {"row": 15, "column": 42}, "end_point": {"row": 15, "column": 43}}, {"id": 84, "type": "identifier", "text": "src", "parent": 77, "children": [], "start_point": {"row": 15, "column": 44}, "end_point": {"row": 15, "column": 47}}, {"id": 85, "type": "primitive_type", "text": "void", "parent": 70, "children": [], "start_point": {"row": 15, "column": 52}, "end_point": {"row": 15, "column": 56}}, {"id": 86, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 6}}]}, "node_categories": {"declarations": {"functions": [15, 57], "variables": [21, 37, 60], "classes": [22, 38, 55, 71], "imports": [6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 16, 17, 19, 20, 24, 25, 29, 31, 32, 40, 41, 44, 45, 49, 52, 58, 61, 63, 67, 73, 74, 78, 79, 80, 84, 86], "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 ec_prv::b66::util {\n\nauto unpack(uint32_t n) -> std::vector<uint8_t>;\n\nauto unpack(std::ve"}, {"node_id": 57, "universal_type": "function", "name": "unknown", "text_snippet": "pack(std::span<uint8_t> src)"}], "class_declarations": [{"node_id": 22, "universal_type": "class", "name": "unknown", "text_snippet": "auto"}, {"node_id": 38, "universal_type": "class", "name": "unknown", "text_snippet": "auto"}, {"node_id": 55, "universal_type": "class", "name": "unknown", "text_snippet": "auto"}, {"node_id": 71, "universal_type": "class", "name": "unknown", "text_snippet": "auto"}], "import_statements": [{"node_id": 6, "text": "#include <cstdint>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <span>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <vector>\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "#ifndef _INCLUDE_EC_PRV_B66_UTIL_H\n#define _INCLUDE_EC_PRV_B66_UTIL_H\n\n#include <cstdint>\n#include <span>\n#include <vector>\n\nnamespace ec_prv::b66::util {\n\nauto unpack(uint32_t n) -> std::vector<uint8_t>;\n\nauto unpack(std::vector<uint8_t>& dst, uint32_t n) -> void;\n\nauto pack(std::span<uint8_t> src) -> uint32_t;\n\nauto pack(uint32_t& dst, std::span<uint8_t> src) -> void;\n\n} // namespace ec_prv::b66::util\n#endif // _INCLUDE_EC_PRV_B66_UTIL_H\n"}
80,275
c
__global__ void bucketsort (const float* input , const int* indice, float* output, const unsigned int* prefixoffsets, const unsigned int* offsets, const int listsize) { const int grp_id = blockIdx.x; const int gid = blockIdx.x * blockDim.x + threadIdx.x; const int lid = threadIdx.x; const int gsize = gridDim.x * blockDim.x; const int lsize = blockDim.x; __shared__ unsigned int s_offset[BUCKET_BLOCK_MEMORY]; int prefixBase = grp_id * BUCKET_BLOCK_MEMORY; const int warpBase = (lid >> BUCKET_WARP_LOG_SIZE) * DIVISIONS; const int numThreads = gsize; for (int i = lid; i < BUCKET_BLOCK_MEMORY; i += lsize){ s_offset[i] = offsets[i & (DIVISIONS - 1)] + prefixoffsets[prefixBase + i]; } __syncthreads(); for (int tid = gid; tid < listsize; tid += numThreads){ float elem = input[tid]; int id = indice[tid]; output[s_offset[warpBase + (id & (DIVISIONS - 1))] + (id >> LOG_DIVISIONS)] = elem; } }
34.59
27
(translation_unit) "__global__ void\nbucketsort (const float* input , \n const int* indice,\n float* output,\n const unsigned int* prefixoffsets,\n const unsigned int* offsets,\n const int listsize)\n{\n const int grp_id = blockIdx.x;\n const int gid = blockIdx.x * blockDim.x + threadIdx.x;\n const int lid = threadIdx.x;\n const int gsize = gridDim.x * blockDim.x;\n const int lsize = blockDim.x;\n\n __shared__ unsigned int s_offset[BUCKET_BLOCK_MEMORY]; \n\n int prefixBase = grp_id * BUCKET_BLOCK_MEMORY;\n const int warpBase = (lid >> BUCKET_WARP_LOG_SIZE) * DIVISIONS;\n const int numThreads = gsize;\n\n for (int i = lid; i < BUCKET_BLOCK_MEMORY; i += lsize){\n s_offset[i] = offsets[i & (DIVISIONS - 1)] + prefixoffsets[prefixBase + i];\n }\n\n __syncthreads();\n\n for (int tid = gid; tid < listsize; tid += numThreads){\n float elem = input[tid];\n int id = indice[tid];\n output[s_offset[warpBase + (id & (DIVISIONS - 1))] + (id >> LOG_DIVISIONS)] = elem;\n }\n}\n\n" (function_definition) "__global__ void\nbucketsort (const float* input , \n const int* indice,\n float* output,\n const unsigned int* prefixoffsets,\n const unsigned int* offsets,\n const int listsize)\n{\n const int grp_id = blockIdx.x;\n const int gid = blockIdx.x * blockDim.x + threadIdx.x;\n const int lid = threadIdx.x;\n const int gsize = gridDim.x * blockDim.x;\n const int lsize = blockDim.x;\n\n __shared__ unsigned int s_offset[BUCKET_BLOCK_MEMORY]; \n\n int prefixBase = grp_id * BUCKET_BLOCK_MEMORY;\n const int warpBase = (lid >> BUCKET_WARP_LOG_SIZE) * DIVISIONS;\n const int numThreads = gsize;\n\n for (int i = lid; i < BUCKET_BLOCK_MEMORY; i += lsize){\n s_offset[i] = offsets[i & (DIVISIONS - 1)] + prefixoffsets[prefixBase + i];\n }\n\n __syncthreads();\n\n for (int tid = gid; tid < listsize; tid += numThreads){\n float elem = input[tid];\n int id = indice[tid];\n output[s_offset[warpBase + (id & (DIVISIONS - 1))] + (id >> LOG_DIVISIONS)] = elem;\n }\n}" (type_identifier) "__global__" (ERROR) "void" (identifier) "void" (function_declarator) "bucketsort (const float* input , \n const int* indice,\n float* output,\n const unsigned int* prefixoffsets,\n const unsigned int* offsets,\n const int listsize)" (identifier) "bucketsort" (parameter_list) "(const float* input , \n const int* indice,\n float* output,\n const unsigned int* prefixoffsets,\n const unsigned int* offsets,\n const int listsize)" (() "(" (parameter_declaration) "const float* input" (type_qualifier) "const" (const) "const" (primitive_type) "float" (pointer_declarator) "* input" (*) "*" (identifier) "input" (,) "," (parameter_declaration) "const int* indice" (type_qualifier) "const" (const) "const" (primitive_type) "int" (pointer_declarator) "* indice" (*) "*" (identifier) "indice" (,) "," (parameter_declaration) "float* output" (primitive_type) "float" (pointer_declarator) "* output" (*) "*" (identifier) "output" (,) "," (parameter_declaration) "const unsigned int* prefixoffsets" (type_qualifier) "const" (const) "const" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (pointer_declarator) "* prefixoffsets" (*) "*" (identifier) "prefixoffsets" (,) "," (parameter_declaration) "const unsigned int* offsets" (type_qualifier) "const" (const) "const" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (pointer_declarator) "* offsets" (*) "*" (identifier) "offsets" (,) "," (parameter_declaration) "const int listsize" (type_qualifier) "const" (const) "const" (primitive_type) "int" (identifier) "listsize" ()) ")" (compound_statement) "{\n const int grp_id = blockIdx.x;\n const int gid = blockIdx.x * blockDim.x + threadIdx.x;\n const int lid = threadIdx.x;\n const int gsize = gridDim.x * blockDim.x;\n const int lsize = blockDim.x;\n\n __shared__ unsigned int s_offset[BUCKET_BLOCK_MEMORY]; \n\n int prefixBase = grp_id * BUCKET_BLOCK_MEMORY;\n const int warpBase = (lid >> BUCKET_WARP_LOG_SIZE) * DIVISIONS;\n const int numThreads = gsize;\n\n for (int i = lid; i < BUCKET_BLOCK_MEMORY; i += lsize){\n s_offset[i] = offsets[i & (DIVISIONS - 1)] + prefixoffsets[prefixBase + i];\n }\n\n __syncthreads();\n\n for (int tid = gid; tid < listsize; tid += numThreads){\n float elem = input[tid];\n int id = indice[tid];\n output[s_offset[warpBase + (id & (DIVISIONS - 1))] + (id >> LOG_DIVISIONS)] = elem;\n }\n}" ({) "{" (declaration) "const int grp_id = blockIdx.x;" (type_qualifier) "const" (const) "const" (primitive_type) "int" (init_declarator) "grp_id = blockIdx.x" (identifier) "grp_id" (=) "=" (field_expression) "blockIdx.x" (identifier) "blockIdx" (.) "." (field_identifier) "x" (;) ";" (declaration) "const int gid = blockIdx.x * blockDim.x + threadIdx.x;" (type_qualifier) "const" (const) "const" (primitive_type) "int" (init_declarator) "gid = blockIdx.x * blockDim.x + threadIdx.x" (identifier) "gid" (=) "=" (binary_expression) "blockIdx.x * blockDim.x + threadIdx.x" (binary_expression) "blockIdx.x * blockDim.x" (field_expression) "blockIdx.x" (identifier) "blockIdx" (.) "." (field_identifier) "x" (*) "*" (field_expression) "blockDim.x" (identifier) "blockDim" (.) "." (field_identifier) "x" (+) "+" (field_expression) "threadIdx.x" (identifier) "threadIdx" (.) "." (field_identifier) "x" (;) ";" (declaration) "const int lid = threadIdx.x;" (type_qualifier) "const" (const) "const" (primitive_type) "int" (init_declarator) "lid = threadIdx.x" (identifier) "lid" (=) "=" (field_expression) "threadIdx.x" (identifier) "threadIdx" (.) "." (field_identifier) "x" (;) ";" (declaration) "const int gsize = gridDim.x * blockDim.x;" (type_qualifier) "const" (const) "const" (primitive_type) "int" (init_declarator) "gsize = gridDim.x * blockDim.x" (identifier) "gsize" (=) "=" (binary_expression) "gridDim.x * blockDim.x" (field_expression) "gridDim.x" (identifier) "gridDim" (.) "." (field_identifier) "x" (*) "*" (field_expression) "blockDim.x" (identifier) "blockDim" (.) "." (field_identifier) "x" (;) ";" (declaration) "const int lsize = blockDim.x;" (type_qualifier) "const" (const) "const" (primitive_type) "int" (init_declarator) "lsize = blockDim.x" (identifier) "lsize" (=) "=" (field_expression) "blockDim.x" (identifier) "blockDim" (.) "." (field_identifier) "x" (;) ";" (declaration) "__shared__ unsigned int s_offset[BUCKET_BLOCK_MEMORY];" (sized_type_specifier) "__shared__ unsigned" (type_identifier) "__shared__" (unsigned) "unsigned" (ERROR) "int" (identifier) "int" (array_declarator) "s_offset[BUCKET_BLOCK_MEMORY]" (identifier) "s_offset" ([) "[" (identifier) "BUCKET_BLOCK_MEMORY" (]) "]" (;) ";" (declaration) "int prefixBase = grp_id * BUCKET_BLOCK_MEMORY;" (primitive_type) "int" (init_declarator) "prefixBase = grp_id * BUCKET_BLOCK_MEMORY" (identifier) "prefixBase" (=) "=" (binary_expression) "grp_id * BUCKET_BLOCK_MEMORY" (identifier) "grp_id" (*) "*" (identifier) "BUCKET_BLOCK_MEMORY" (;) ";" (declaration) "const int warpBase = (lid >> BUCKET_WARP_LOG_SIZE) * DIVISIONS;" (type_qualifier) "const" (const) "const" (primitive_type) "int" (init_declarator) "warpBase = (lid >> BUCKET_WARP_LOG_SIZE) * DIVISIONS" (identifier) "warpBase" (=) "=" (binary_expression) "(lid >> BUCKET_WARP_LOG_SIZE) * DIVISIONS" (parenthesized_expression) "(lid >> BUCKET_WARP_LOG_SIZE)" (() "(" (binary_expression) "lid >> BUCKET_WARP_LOG_SIZE" (identifier) "lid" (>>) ">>" (identifier) "BUCKET_WARP_LOG_SIZE" ()) ")" (*) "*" (identifier) "DIVISIONS" (;) ";" (declaration) "const int numThreads = gsize;" (type_qualifier) "const" (const) "const" (primitive_type) "int" (init_declarator) "numThreads = gsize" (identifier) "numThreads" (=) "=" (identifier) "gsize" (;) ";" (for_statement) "for (int i = lid; i < BUCKET_BLOCK_MEMORY; i += lsize){\n s_offset[i] = offsets[i & (DIVISIONS - 1)] + prefixoffsets[prefixBase + i];\n }" (for) "for" (() "(" (declaration) "int i = lid;" (primitive_type) "int" (init_declarator) "i = lid" (identifier) "i" (=) "=" (identifier) "lid" (;) ";" (binary_expression) "i < BUCKET_BLOCK_MEMORY" (identifier) "i" (<) "<" (identifier) "BUCKET_BLOCK_MEMORY" (;) ";" (assignment_expression) "i += lsize" (identifier) "i" (+=) "+=" (identifier) "lsize" ()) ")" (compound_statement) "{\n s_offset[i] = offsets[i & (DIVISIONS - 1)] + prefixoffsets[prefixBase + i];\n }" ({) "{" (expression_statement) "s_offset[i] = offsets[i & (DIVISIONS - 1)] + prefixoffsets[prefixBase + i];" (assignment_expression) "s_offset[i] = offsets[i & (DIVISIONS - 1)] + prefixoffsets[prefixBase + i]" (subscript_expression) "s_offset[i]" (identifier) "s_offset" ([) "[" (identifier) "i" (]) "]" (=) "=" (binary_expression) "offsets[i & (DIVISIONS - 1)] + prefixoffsets[prefixBase + i]" (subscript_expression) "offsets[i & (DIVISIONS - 1)]" (identifier) "offsets" ([) "[" (binary_expression) "i & (DIVISIONS - 1)" (identifier) "i" (&) "&" (parenthesized_expression) "(DIVISIONS - 1)" (() "(" (binary_expression) "DIVISIONS - 1" (identifier) "DIVISIONS" (-) "-" (number_literal) "1" ()) ")" (]) "]" (+) "+" (subscript_expression) "prefixoffsets[prefixBase + i]" (identifier) "prefixoffsets" ([) "[" (binary_expression) "prefixBase + i" (identifier) "prefixBase" (+) "+" (identifier) "i" (]) "]" (;) ";" (}) "}" (expression_statement) "__syncthreads();" (call_expression) "__syncthreads()" (identifier) "__syncthreads" (argument_list) "()" (() "(" ()) ")" (;) ";" (for_statement) "for (int tid = gid; tid < listsize; tid += numThreads){\n float elem = input[tid];\n int id = indice[tid];\n output[s_offset[warpBase + (id & (DIVISIONS - 1))] + (id >> LOG_DIVISIONS)] = elem;\n }" (for) "for" (() "(" (declaration) "int tid = gid;" (primitive_type) "int" (init_declarator) "tid = gid" (identifier) "tid" (=) "=" (identifier) "gid" (;) ";" (binary_expression) "tid < listsize" (identifier) "tid" (<) "<" (identifier) "listsize" (;) ";" (assignment_expression) "tid += numThreads" (identifier) "tid" (+=) "+=" (identifier) "numThreads" ()) ")" (compound_statement) "{\n float elem = input[tid];\n int id = indice[tid];\n output[s_offset[warpBase + (id & (DIVISIONS - 1))] + (id >> LOG_DIVISIONS)] = elem;\n }" ({) "{" (declaration) "float elem = input[tid];" (primitive_type) "float" (init_declarator) "elem = input[tid]" (identifier) "elem" (=) "=" (subscript_expression) "input[tid]" (identifier) "input" ([) "[" (identifier) "tid" (]) "]" (;) ";" (declaration) "int id = indice[tid];" (primitive_type) "int" (init_declarator) "id = indice[tid]" (identifier) "id" (=) "=" (subscript_expression) "indice[tid]" (identifier) "indice" ([) "[" (identifier) "tid" (]) "]" (;) ";" (expression_statement) "output[s_offset[warpBase + (id & (DIVISIONS - 1))] + (id >> LOG_DIVISIONS)] = elem;" (assignment_expression) "output[s_offset[warpBase + (id & (DIVISIONS - 1))] + (id >> LOG_DIVISIONS)] = elem" (subscript_expression) "output[s_offset[warpBase + (id & (DIVISIONS - 1))] + (id >> LOG_DIVISIONS)]" (identifier) "output" ([) "[" (binary_expression) "s_offset[warpBase + (id & (DIVISIONS - 1))] + (id >> LOG_DIVISIONS)" (subscript_expression) "s_offset[warpBase + (id & (DIVISIONS - 1))]" (identifier) "s_offset" ([) "[" (binary_expression) "warpBase + (id & (DIVISIONS - 1))" (identifier) "warpBase" (+) "+" (parenthesized_expression) "(id & (DIVISIONS - 1))" (() "(" (binary_expression) "id & (DIVISIONS - 1)" (identifier) "id" (&) "&" (parenthesized_expression) "(DIVISIONS - 1)" (() "(" (binary_expression) "DIVISIONS - 1" (identifier) "DIVISIONS" (-) "-" (number_literal) "1" ()) ")" ()) ")" (]) "]" (+) "+" (parenthesized_expression) "(id >> LOG_DIVISIONS)" (() "(" (binary_expression) "id >> LOG_DIVISIONS" (identifier) "id" (>>) ">>" (identifier) "LOG_DIVISIONS" ()) ")" (]) "]" (=) "=" (identifier) "elem" (;) ";" (}) "}" (}) "}"
333
2
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 34.59, "nodes": 227, "errors": 0, "source_hash": "7326a6edad0f9acc7e103f29308c4311109ad6ca0ed40d463d371e1b51d4ca23", "categorized_nodes": 148}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "__global__ void\nbucketsort (const float* input , \n const int* indice,\n float* output,\n const unsigned int* prefixoffsets,\n const unsigned int* offsets,\n const int listsize)\n{\n const int grp_id = blockIdx.x;\n const int gid = blockIdx.x * blockDim.x + threadIdx.x;\n const int lid = threadIdx.x;\n const int gsize = gridDim.x * blockDim.x;\n const int lsize = blockDim.x;\n\n __shared__ unsigned int s_offset[BUCKET_BLOCK_MEMORY]; \n\n int prefixBase = grp_id * BUCKET_BLOCK_MEMORY;\n const int warpBase = (lid >> BUCKET_WARP_LOG_SIZE) * DIVISIONS;\n const int numThreads = gsize;\n\n for (int i = lid; i < BUCKET_BLOCK_MEMORY; i += lsize){\n s_offset[i] = offsets[i & (DIVISIONS - 1)] + prefixoffsets[prefixBase + i];\n }\n\n __syncthreads();\n\n for (int tid = gid; tid < listsize; tid += numThreads){\n float elem = input[tid];\n int id = indice[tid];\n output[s_offset[warpBase + (id & (DIVISIONS - 1))] + (id >> LOG_DIVISIONS)] = elem;\n }\n}", "parent": null, "children": [1, 2, 4], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 31, "column": 1}}, {"id": 1, "type": "type_identifier", "text": "__global__", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 10}}, {"id": 2, "type": "ERROR", "text": "void", "parent": 0, "children": [3], "start_point": {"row": 0, "column": 11}, "end_point": {"row": 0, "column": 15}}, {"id": 3, "type": "identifier", "text": "void", "parent": 2, "children": [], "start_point": {"row": 0, "column": 11}, "end_point": {"row": 0, "column": 15}}, {"id": 4, "type": "function_declarator", "text": "bucketsort (const float* input , \n const int* indice,\n float* output,\n const unsigned int* prefixoffsets,\n const unsigned int* offsets,\n const int listsize)", "parent": 0, "children": [5, 6], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 6, "column": 23}}, {"id": 5, "type": "identifier", "text": "bucketsort", "parent": 4, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 10}}, {"id": 6, "type": "parameter_list", "text": "(const float* input , \n const int* indice,\n float* output,\n const unsigned int* prefixoffsets,\n const unsigned int* offsets,\n const int listsize)", "parent": 4, "children": [7, 12, 17, 22, 29, 36], "start_point": {"row": 1, "column": 11}, "end_point": {"row": 6, "column": 23}}, {"id": 7, "type": "parameter_declaration", "text": "const float* input", "parent": 6, "children": [8, 9], "start_point": {"row": 1, "column": 12}, "end_point": {"row": 1, "column": 30}}, {"id": 8, "type": "primitive_type", "text": "float", "parent": 7, "children": [], "start_point": {"row": 1, "column": 18}, "end_point": {"row": 1, "column": 23}}, {"id": 9, "type": "pointer_declarator", "text": "* input", "parent": 7, "children": [10, 11], "start_point": {"row": 1, "column": 23}, "end_point": {"row": 1, "column": 30}}, {"id": 10, "type": "*", "text": "*", "parent": 9, "children": [], "start_point": {"row": 1, "column": 23}, "end_point": {"row": 1, "column": 24}}, {"id": 11, "type": "identifier", "text": "input", "parent": 9, "children": [], "start_point": {"row": 1, "column": 25}, "end_point": {"row": 1, "column": 30}}, {"id": 12, "type": "parameter_declaration", "text": "const int* indice", "parent": 6, "children": [13, 14], "start_point": {"row": 2, "column": 4}, "end_point": {"row": 2, "column": 21}}, {"id": 13, "type": "primitive_type", "text": "int", "parent": 12, "children": [], "start_point": {"row": 2, "column": 10}, "end_point": {"row": 2, "column": 13}}, {"id": 14, "type": "pointer_declarator", "text": "* indice", "parent": 12, "children": [15, 16], "start_point": {"row": 2, "column": 13}, "end_point": {"row": 2, "column": 21}}, {"id": 15, "type": "*", "text": "*", "parent": 14, "children": [], "start_point": {"row": 2, "column": 13}, "end_point": {"row": 2, "column": 14}}, {"id": 16, "type": "identifier", "text": "indice", "parent": 14, "children": [], "start_point": {"row": 2, "column": 15}, "end_point": {"row": 2, "column": 21}}, {"id": 17, "type": "parameter_declaration", "text": "float* output", "parent": 6, "children": [18, 19], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 17}}, {"id": 18, "type": "primitive_type", "text": "float", "parent": 17, "children": [], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 9}}, {"id": 19, "type": "pointer_declarator", "text": "* output", "parent": 17, "children": [20, 21], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 17}}, {"id": 20, "type": "*", "text": "*", "parent": 19, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 10}}, {"id": 21, "type": "identifier", "text": "output", "parent": 19, "children": [], "start_point": {"row": 3, "column": 11}, "end_point": {"row": 3, "column": 17}}, {"id": 22, "type": "parameter_declaration", "text": "const unsigned int* prefixoffsets", "parent": 6, "children": [23, 26], "start_point": {"row": 4, "column": 4}, "end_point": {"row": 4, "column": 37}}, {"id": 23, "type": "sized_type_specifier", "text": "unsigned int", "parent": 22, "children": [24, 25], "start_point": {"row": 4, "column": 10}, "end_point": {"row": 4, "column": 22}}, {"id": 24, "type": "unsigned", "text": "unsigned", "parent": 23, "children": [], "start_point": {"row": 4, "column": 10}, "end_point": {"row": 4, "column": 18}}, {"id": 25, "type": "primitive_type", "text": "int", "parent": 23, "children": [], "start_point": {"row": 4, "column": 19}, "end_point": {"row": 4, "column": 22}}, {"id": 26, "type": "pointer_declarator", "text": "* prefixoffsets", "parent": 22, "children": [27, 28], "start_point": {"row": 4, "column": 22}, "end_point": {"row": 4, "column": 37}}, {"id": 27, "type": "*", "text": "*", "parent": 26, "children": [], "start_point": {"row": 4, "column": 22}, "end_point": {"row": 4, "column": 23}}, {"id": 28, "type": "identifier", "text": "prefixoffsets", "parent": 26, "children": [], "start_point": {"row": 4, "column": 24}, "end_point": {"row": 4, "column": 37}}, {"id": 29, "type": "parameter_declaration", "text": "const unsigned int* offsets", "parent": 6, "children": [30, 33], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 31}}, {"id": 30, "type": "sized_type_specifier", "text": "unsigned int", "parent": 29, "children": [31, 32], "start_point": {"row": 5, "column": 10}, "end_point": {"row": 5, "column": 22}}, {"id": 31, "type": "unsigned", "text": "unsigned", "parent": 30, "children": [], "start_point": {"row": 5, "column": 10}, "end_point": {"row": 5, "column": 18}}, {"id": 32, "type": "primitive_type", "text": "int", "parent": 30, "children": [], "start_point": {"row": 5, "column": 19}, "end_point": {"row": 5, "column": 22}}, {"id": 33, "type": "pointer_declarator", "text": "* offsets", "parent": 29, "children": [34, 35], "start_point": {"row": 5, "column": 22}, "end_point": {"row": 5, "column": 31}}, {"id": 34, "type": "*", "text": "*", "parent": 33, "children": [], "start_point": {"row": 5, "column": 22}, "end_point": {"row": 5, "column": 23}}, {"id": 35, "type": "identifier", "text": "offsets", "parent": 33, "children": [], "start_point": {"row": 5, "column": 24}, "end_point": {"row": 5, "column": 31}}, {"id": 36, "type": "parameter_declaration", "text": "const int listsize", "parent": 6, "children": [37, 38], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 22}}, {"id": 37, "type": "primitive_type", "text": "int", "parent": 36, "children": [], "start_point": {"row": 6, "column": 10}, "end_point": {"row": 6, "column": 13}}, {"id": 38, "type": "identifier", "text": "listsize", "parent": 36, "children": [], "start_point": {"row": 6, "column": 14}, "end_point": {"row": 6, "column": 22}}, {"id": 39, "type": "declaration", "text": "const int grp_id = blockIdx.x;", "parent": 0, "children": [40, 41], "start_point": {"row": 8, "column": 2}, "end_point": {"row": 8, "column": 32}}, {"id": 40, "type": "primitive_type", "text": "int", "parent": 39, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 11}}, {"id": 41, "type": "init_declarator", "text": "grp_id = blockIdx.x", "parent": 39, "children": [42, 43, 44], "start_point": {"row": 8, "column": 12}, "end_point": {"row": 8, "column": 31}}, {"id": 42, "type": "identifier", "text": "grp_id", "parent": 41, "children": [], "start_point": {"row": 8, "column": 12}, "end_point": {"row": 8, "column": 18}}, {"id": 43, "type": "=", "text": "=", "parent": 41, "children": [], "start_point": {"row": 8, "column": 19}, "end_point": {"row": 8, "column": 20}}, {"id": 44, "type": "field_expression", "text": "blockIdx.x", "parent": 41, "children": [45, 46], "start_point": {"row": 8, "column": 21}, "end_point": {"row": 8, "column": 31}}, {"id": 45, "type": "identifier", "text": "blockIdx", "parent": 44, "children": [], "start_point": {"row": 8, "column": 21}, "end_point": {"row": 8, "column": 29}}, {"id": 46, "type": "field_identifier", "text": "x", "parent": 44, "children": [], "start_point": {"row": 8, "column": 30}, "end_point": {"row": 8, "column": 31}}, {"id": 47, "type": "declaration", "text": "const int gid = blockIdx.x * blockDim.x + threadIdx.x;", "parent": 0, "children": [48, 49], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 9, "column": 56}}, {"id": 48, "type": "primitive_type", "text": "int", "parent": 47, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 11}}, {"id": 49, "type": "init_declarator", "text": "gid = blockIdx.x * blockDim.x + threadIdx.x", "parent": 47, "children": [50, 51, 52], "start_point": {"row": 9, "column": 12}, "end_point": {"row": 9, "column": 55}}, {"id": 50, "type": "identifier", "text": "gid", "parent": 49, "children": [], "start_point": {"row": 9, "column": 12}, "end_point": {"row": 9, "column": 15}}, {"id": 51, "type": "=", "text": "=", "parent": 49, "children": [], "start_point": {"row": 9, "column": 16}, "end_point": {"row": 9, "column": 17}}, {"id": 52, "type": "binary_expression", "text": "blockIdx.x * blockDim.x + threadIdx.x", "parent": 49, "children": [53, 61, 62], "start_point": {"row": 9, "column": 18}, "end_point": {"row": 9, "column": 55}}, {"id": 53, "type": "binary_expression", "text": "blockIdx.x * blockDim.x", "parent": 52, "children": [54, 57, 58], "start_point": {"row": 9, "column": 18}, "end_point": {"row": 9, "column": 41}}, {"id": 54, "type": "field_expression", "text": "blockIdx.x", "parent": 53, "children": [55, 56], "start_point": {"row": 9, "column": 18}, "end_point": {"row": 9, "column": 28}}, {"id": 55, "type": "identifier", "text": "blockIdx", "parent": 54, "children": [], "start_point": {"row": 9, "column": 18}, "end_point": {"row": 9, "column": 26}}, {"id": 56, "type": "field_identifier", "text": "x", "parent": 54, "children": [], "start_point": {"row": 9, "column": 27}, "end_point": {"row": 9, "column": 28}}, {"id": 57, "type": "*", "text": "*", "parent": 53, "children": [], "start_point": {"row": 9, "column": 29}, "end_point": {"row": 9, "column": 30}}, {"id": 58, "type": "field_expression", "text": "blockDim.x", "parent": 53, "children": [59, 60], "start_point": {"row": 9, "column": 31}, "end_point": {"row": 9, "column": 41}}, {"id": 59, "type": "identifier", "text": "blockDim", "parent": 58, "children": [], "start_point": {"row": 9, "column": 31}, "end_point": {"row": 9, "column": 39}}, {"id": 60, "type": "field_identifier", "text": "x", "parent": 58, "children": [], "start_point": {"row": 9, "column": 40}, "end_point": {"row": 9, "column": 41}}, {"id": 61, "type": "+", "text": "+", "parent": 52, "children": [], "start_point": {"row": 9, "column": 42}, "end_point": {"row": 9, "column": 43}}, {"id": 62, "type": "field_expression", "text": "threadIdx.x", "parent": 52, "children": [63, 64], "start_point": {"row": 9, "column": 44}, "end_point": {"row": 9, "column": 55}}, {"id": 63, "type": "identifier", "text": "threadIdx", "parent": 62, "children": [], "start_point": {"row": 9, "column": 44}, "end_point": {"row": 9, "column": 53}}, {"id": 64, "type": "field_identifier", "text": "x", "parent": 62, "children": [], "start_point": {"row": 9, "column": 54}, "end_point": {"row": 9, "column": 55}}, {"id": 65, "type": "declaration", "text": "const int lid = threadIdx.x;", "parent": 0, "children": [66, 67], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 10, "column": 30}}, {"id": 66, "type": "primitive_type", "text": "int", "parent": 65, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 11}}, {"id": 67, "type": "init_declarator", "text": "lid = threadIdx.x", "parent": 65, "children": [68, 69, 70], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 10, "column": 29}}, {"id": 68, "type": "identifier", "text": "lid", "parent": 67, "children": [], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 10, "column": 15}}, {"id": 69, "type": "=", "text": "=", "parent": 67, "children": [], "start_point": {"row": 10, "column": 16}, "end_point": {"row": 10, "column": 17}}, {"id": 70, "type": "field_expression", "text": "threadIdx.x", "parent": 67, "children": [71, 72], "start_point": {"row": 10, "column": 18}, "end_point": {"row": 10, "column": 29}}, {"id": 71, "type": "identifier", "text": "threadIdx", "parent": 70, "children": [], "start_point": {"row": 10, "column": 18}, "end_point": {"row": 10, "column": 27}}, {"id": 72, "type": "field_identifier", "text": "x", "parent": 70, "children": [], "start_point": {"row": 10, "column": 28}, "end_point": {"row": 10, "column": 29}}, {"id": 73, "type": "declaration", "text": "const int gsize = gridDim.x * blockDim.x;", "parent": 0, "children": [74, 75], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 11, "column": 43}}, {"id": 74, "type": "primitive_type", "text": "int", "parent": 73, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 11}}, {"id": 75, "type": "init_declarator", "text": "gsize = gridDim.x * blockDim.x", "parent": 73, "children": [76, 77, 78], "start_point": {"row": 11, "column": 12}, "end_point": {"row": 11, "column": 42}}, {"id": 76, "type": "identifier", "text": "gsize", "parent": 75, "children": [], "start_point": {"row": 11, "column": 12}, "end_point": {"row": 11, "column": 17}}, {"id": 77, "type": "=", "text": "=", "parent": 75, "children": [], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 19}}, {"id": 78, "type": "binary_expression", "text": "gridDim.x * blockDim.x", "parent": 75, "children": [79, 82, 83], "start_point": {"row": 11, "column": 20}, "end_point": {"row": 11, "column": 42}}, {"id": 79, "type": "field_expression", "text": "gridDim.x", "parent": 78, "children": [80, 81], "start_point": {"row": 11, "column": 20}, "end_point": {"row": 11, "column": 29}}, {"id": 80, "type": "identifier", "text": "gridDim", "parent": 79, "children": [], "start_point": {"row": 11, "column": 20}, "end_point": {"row": 11, "column": 27}}, {"id": 81, "type": "field_identifier", "text": "x", "parent": 79, "children": [], "start_point": {"row": 11, "column": 28}, "end_point": {"row": 11, "column": 29}}, {"id": 82, "type": "*", "text": "*", "parent": 78, "children": [], "start_point": {"row": 11, "column": 30}, "end_point": {"row": 11, "column": 31}}, {"id": 83, "type": "field_expression", "text": "blockDim.x", "parent": 78, "children": [84, 85], "start_point": {"row": 11, "column": 32}, "end_point": {"row": 11, "column": 42}}, {"id": 84, "type": "identifier", "text": "blockDim", "parent": 83, "children": [], "start_point": {"row": 11, "column": 32}, "end_point": {"row": 11, "column": 40}}, {"id": 85, "type": "field_identifier", "text": "x", "parent": 83, "children": [], "start_point": {"row": 11, "column": 41}, "end_point": {"row": 11, "column": 42}}, {"id": 86, "type": "declaration", "text": "const int lsize = blockDim.x;", "parent": 0, "children": [87, 88], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 31}}, {"id": 87, "type": "primitive_type", "text": "int", "parent": 86, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 11}}, {"id": 88, "type": "init_declarator", "text": "lsize = blockDim.x", "parent": 86, "children": [89, 90, 91], "start_point": {"row": 12, "column": 12}, "end_point": {"row": 12, "column": 30}}, {"id": 89, "type": "identifier", "text": "lsize", "parent": 88, "children": [], "start_point": {"row": 12, "column": 12}, "end_point": {"row": 12, "column": 17}}, {"id": 90, "type": "=", "text": "=", "parent": 88, "children": [], "start_point": {"row": 12, "column": 18}, "end_point": {"row": 12, "column": 19}}, {"id": 91, "type": "field_expression", "text": "blockDim.x", "parent": 88, "children": [92, 93], "start_point": {"row": 12, "column": 20}, "end_point": {"row": 12, "column": 30}}, {"id": 92, "type": "identifier", "text": "blockDim", "parent": 91, "children": [], "start_point": {"row": 12, "column": 20}, "end_point": {"row": 12, "column": 28}}, {"id": 93, "type": "field_identifier", "text": "x", "parent": 91, "children": [], "start_point": {"row": 12, "column": 29}, "end_point": {"row": 12, "column": 30}}, {"id": 94, "type": "declaration", "text": "__shared__ unsigned int s_offset[BUCKET_BLOCK_MEMORY];", "parent": 0, "children": [95, 98, 100], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 56}}, {"id": 95, "type": "sized_type_specifier", "text": "__shared__ unsigned", "parent": 94, "children": [96, 97], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 21}}, {"id": 96, "type": "type_identifier", "text": "__shared__", "parent": 95, "children": [], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 12}}, {"id": 97, "type": "unsigned", "text": "unsigned", "parent": 95, "children": [], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 21}}, {"id": 98, "type": "ERROR", "text": "int", "parent": 94, "children": [99], "start_point": {"row": 14, "column": 22}, "end_point": {"row": 14, "column": 25}}, {"id": 99, "type": "identifier", "text": "int", "parent": 98, "children": [], "start_point": {"row": 14, "column": 22}, "end_point": {"row": 14, "column": 25}}, {"id": 100, "type": "array_declarator", "text": "s_offset[BUCKET_BLOCK_MEMORY]", "parent": 94, "children": [101, 102], "start_point": {"row": 14, "column": 26}, "end_point": {"row": 14, "column": 55}}, {"id": 101, "type": "identifier", "text": "s_offset", "parent": 100, "children": [], "start_point": {"row": 14, "column": 26}, "end_point": {"row": 14, "column": 34}}, {"id": 102, "type": "identifier", "text": "BUCKET_BLOCK_MEMORY", "parent": 100, "children": [], "start_point": {"row": 14, "column": 35}, "end_point": {"row": 14, "column": 54}}, {"id": 103, "type": "declaration", "text": "int prefixBase = grp_id * BUCKET_BLOCK_MEMORY;", "parent": 0, "children": [104, 105], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 48}}, {"id": 104, "type": "primitive_type", "text": "int", "parent": 103, "children": [], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 5}}, {"id": 105, "type": "init_declarator", "text": "prefixBase = grp_id * BUCKET_BLOCK_MEMORY", "parent": 103, "children": [106, 107, 108], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 47}}, {"id": 106, "type": "identifier", "text": "prefixBase", "parent": 105, "children": [], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 16}}, {"id": 107, "type": "=", "text": "=", "parent": 105, "children": [], "start_point": {"row": 16, "column": 17}, "end_point": {"row": 16, "column": 18}}, {"id": 108, "type": "binary_expression", "text": "grp_id * BUCKET_BLOCK_MEMORY", "parent": 105, "children": [109, 110, 111], "start_point": {"row": 16, "column": 19}, "end_point": {"row": 16, "column": 47}}, {"id": 109, "type": "identifier", "text": "grp_id", "parent": 108, "children": [], "start_point": {"row": 16, "column": 19}, "end_point": {"row": 16, "column": 25}}, {"id": 110, "type": "*", "text": "*", "parent": 108, "children": [], "start_point": {"row": 16, "column": 26}, "end_point": {"row": 16, "column": 27}}, {"id": 111, "type": "identifier", "text": "BUCKET_BLOCK_MEMORY", "parent": 108, "children": [], "start_point": {"row": 16, "column": 28}, "end_point": {"row": 16, "column": 47}}, {"id": 112, "type": "declaration", "text": "const int warpBase = (lid >> BUCKET_WARP_LOG_SIZE) * DIVISIONS;", "parent": 0, "children": [113, 114], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 65}}, {"id": 113, "type": "primitive_type", "text": "int", "parent": 112, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 11}}, {"id": 114, "type": "init_declarator", "text": "warpBase = (lid >> BUCKET_WARP_LOG_SIZE) * DIVISIONS", "parent": 112, "children": [115, 116, 117], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 64}}, {"id": 115, "type": "identifier", "text": "warpBase", "parent": 114, "children": [], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 20}}, {"id": 116, "type": "=", "text": "=", "parent": 114, "children": [], "start_point": {"row": 17, "column": 21}, "end_point": {"row": 17, "column": 22}}, {"id": 117, "type": "binary_expression", "text": "(lid >> BUCKET_WARP_LOG_SIZE) * DIVISIONS", "parent": 114, "children": [118, 123, 124], "start_point": {"row": 17, "column": 23}, "end_point": {"row": 17, "column": 64}}, {"id": 118, "type": "parenthesized_expression", "text": "(lid >> BUCKET_WARP_LOG_SIZE)", "parent": 117, "children": [119], "start_point": {"row": 17, "column": 23}, "end_point": {"row": 17, "column": 52}}, {"id": 119, "type": "binary_expression", "text": "lid >> BUCKET_WARP_LOG_SIZE", "parent": 118, "children": [120, 121, 122], "start_point": {"row": 17, "column": 24}, "end_point": {"row": 17, "column": 51}}, {"id": 120, "type": "identifier", "text": "lid", "parent": 119, "children": [], "start_point": {"row": 17, "column": 24}, "end_point": {"row": 17, "column": 27}}, {"id": 121, "type": ">>", "text": ">>", "parent": 119, "children": [], "start_point": {"row": 17, "column": 28}, "end_point": {"row": 17, "column": 30}}, {"id": 122, "type": "identifier", "text": "BUCKET_WARP_LOG_SIZE", "parent": 119, "children": [], "start_point": {"row": 17, "column": 31}, "end_point": {"row": 17, "column": 51}}, {"id": 123, "type": "*", "text": "*", "parent": 117, "children": [], "start_point": {"row": 17, "column": 53}, "end_point": {"row": 17, "column": 54}}, {"id": 124, "type": "identifier", "text": "DIVISIONS", "parent": 117, "children": [], "start_point": {"row": 17, "column": 55}, "end_point": {"row": 17, "column": 64}}, {"id": 125, "type": "declaration", "text": "const int numThreads = gsize;", "parent": 0, "children": [126, 127], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 31}}, {"id": 126, "type": "primitive_type", "text": "int", "parent": 125, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 11}}, {"id": 127, "type": "init_declarator", "text": "numThreads = gsize", "parent": 125, "children": [128, 129, 130], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 30}}, {"id": 128, "type": "identifier", "text": "numThreads", "parent": 127, "children": [], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 22}}, {"id": 129, "type": "=", "text": "=", "parent": 127, "children": [], "start_point": {"row": 18, "column": 23}, "end_point": {"row": 18, "column": 24}}, {"id": 130, "type": "identifier", "text": "gsize", "parent": 127, "children": [], "start_point": {"row": 18, "column": 25}, "end_point": {"row": 18, "column": 30}}, {"id": 131, "type": "for_statement", "text": "for (int i = lid; i < BUCKET_BLOCK_MEMORY; i += lsize){\n s_offset[i] = offsets[i & (DIVISIONS - 1)] + prefixoffsets[prefixBase + i];\n }", "parent": 0, "children": [132, 138, 142], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 22, "column": 3}}, {"id": 132, "type": "declaration", "text": "int i = lid;", "parent": 131, "children": [133, 134], "start_point": {"row": 20, "column": 7}, "end_point": {"row": 20, "column": 19}}, {"id": 133, "type": "primitive_type", "text": "int", "parent": 132, "children": [], "start_point": {"row": 20, "column": 7}, "end_point": {"row": 20, "column": 10}}, {"id": 134, "type": "init_declarator", "text": "i = lid", "parent": 132, "children": [135, 136, 137], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 18}}, {"id": 135, "type": "identifier", "text": "i", "parent": 134, "children": [], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 12}}, {"id": 136, "type": "=", "text": "=", "parent": 134, "children": [], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 14}}, {"id": 137, "type": "identifier", "text": "lid", "parent": 134, "children": [], "start_point": {"row": 20, "column": 15}, "end_point": {"row": 20, "column": 18}}, {"id": 138, "type": "binary_expression", "text": "i < BUCKET_BLOCK_MEMORY", "parent": 131, "children": [139, 140, 141], "start_point": {"row": 20, "column": 20}, "end_point": {"row": 20, "column": 43}}, {"id": 139, "type": "identifier", "text": "i", "parent": 138, "children": [], "start_point": {"row": 20, "column": 20}, "end_point": {"row": 20, "column": 21}}, {"id": 140, "type": "<", "text": "<", "parent": 138, "children": [], "start_point": {"row": 20, "column": 22}, "end_point": {"row": 20, "column": 23}}, {"id": 141, "type": "identifier", "text": "BUCKET_BLOCK_MEMORY", "parent": 138, "children": [], "start_point": {"row": 20, "column": 24}, "end_point": {"row": 20, "column": 43}}, {"id": 142, "type": "assignment_expression", "text": "i += lsize", "parent": 131, "children": [143, 144, 145], "start_point": {"row": 20, "column": 45}, "end_point": {"row": 20, "column": 55}}, {"id": 143, "type": "identifier", "text": "i", "parent": 142, "children": [], "start_point": {"row": 20, "column": 45}, "end_point": {"row": 20, "column": 46}}, {"id": 144, "type": "+=", "text": "+=", "parent": 142, "children": [], "start_point": {"row": 20, "column": 47}, "end_point": {"row": 20, "column": 49}}, {"id": 145, "type": "identifier", "text": "lsize", "parent": 142, "children": [], "start_point": {"row": 20, "column": 50}, "end_point": {"row": 20, "column": 55}}, {"id": 146, "type": "assignment_expression", "text": "s_offset[i] = offsets[i & (DIVISIONS - 1)] + prefixoffsets[prefixBase + i]", "parent": 131, "children": [147, 150, 151], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 78}}, {"id": 147, "type": "subscript_expression", "text": "s_offset[i]", "parent": 146, "children": [148, 149], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 15}}, {"id": 148, "type": "identifier", "text": "s_offset", "parent": 147, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 12}}, {"id": 149, "type": "identifier", "text": "i", "parent": 147, "children": [], "start_point": {"row": 21, "column": 13}, "end_point": {"row": 21, "column": 14}}, {"id": 150, "type": "=", "text": "=", "parent": 146, "children": [], "start_point": {"row": 21, "column": 16}, "end_point": {"row": 21, "column": 17}}, {"id": 151, "type": "binary_expression", "text": "offsets[i & (DIVISIONS - 1)] + prefixoffsets[prefixBase + i]", "parent": 146, "children": [152, 161, 162], "start_point": {"row": 21, "column": 18}, "end_point": {"row": 21, "column": 78}}, {"id": 152, "type": "subscript_expression", "text": "offsets[i & (DIVISIONS - 1)]", "parent": 151, "children": [153, 154], "start_point": {"row": 21, "column": 18}, "end_point": {"row": 21, "column": 46}}, {"id": 153, "type": "identifier", "text": "offsets", "parent": 152, "children": [], "start_point": {"row": 21, "column": 18}, "end_point": {"row": 21, "column": 25}}, {"id": 154, "type": "binary_expression", "text": "i & (DIVISIONS - 1)", "parent": 152, "children": [155, 156], "start_point": {"row": 21, "column": 26}, "end_point": {"row": 21, "column": 45}}, {"id": 155, "type": "identifier", "text": "i", "parent": 154, "children": [], "start_point": {"row": 21, "column": 26}, "end_point": {"row": 21, "column": 27}}, {"id": 156, "type": "parenthesized_expression", "text": "(DIVISIONS - 1)", "parent": 154, "children": [157], "start_point": {"row": 21, "column": 30}, "end_point": {"row": 21, "column": 45}}, {"id": 157, "type": "binary_expression", "text": "DIVISIONS - 1", "parent": 156, "children": [158, 159, 160], "start_point": {"row": 21, "column": 31}, "end_point": {"row": 21, "column": 44}}, {"id": 158, "type": "identifier", "text": "DIVISIONS", "parent": 157, "children": [], "start_point": {"row": 21, "column": 31}, "end_point": {"row": 21, "column": 40}}, {"id": 159, "type": "-", "text": "-", "parent": 157, "children": [], "start_point": {"row": 21, "column": 41}, "end_point": {"row": 21, "column": 42}}, {"id": 160, "type": "number_literal", "text": "1", "parent": 157, "children": [], "start_point": {"row": 21, "column": 43}, "end_point": {"row": 21, "column": 44}}, {"id": 161, "type": "+", "text": "+", "parent": 151, "children": [], "start_point": {"row": 21, "column": 47}, "end_point": {"row": 21, "column": 48}}, {"id": 162, "type": "subscript_expression", "text": "prefixoffsets[prefixBase + i]", "parent": 151, "children": [163, 164], "start_point": {"row": 21, "column": 49}, "end_point": {"row": 21, "column": 78}}, {"id": 163, "type": "identifier", "text": "prefixoffsets", "parent": 162, "children": [], "start_point": {"row": 21, "column": 49}, "end_point": {"row": 21, "column": 62}}, {"id": 164, "type": "binary_expression", "text": "prefixBase + i", "parent": 162, "children": [165, 166, 167], "start_point": {"row": 21, "column": 63}, "end_point": {"row": 21, "column": 77}}, {"id": 165, "type": "identifier", "text": "prefixBase", "parent": 164, "children": [], "start_point": {"row": 21, "column": 63}, "end_point": {"row": 21, "column": 73}}, {"id": 166, "type": "+", "text": "+", "parent": 164, "children": [], "start_point": {"row": 21, "column": 74}, "end_point": {"row": 21, "column": 75}}, {"id": 167, "type": "identifier", "text": "i", "parent": 164, "children": [], "start_point": {"row": 21, "column": 76}, "end_point": {"row": 21, "column": 77}}, {"id": 168, "type": "call_expression", "text": "__syncthreads()", "parent": 0, "children": [169, 170], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 17}}, {"id": 169, "type": "identifier", "text": "__syncthreads", "parent": 168, "children": [], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 15}}, {"id": 170, "type": "argument_list", "text": "()", "parent": 168, "children": [], "start_point": {"row": 24, "column": 15}, "end_point": {"row": 24, "column": 17}}, {"id": 171, "type": "for_statement", "text": "for (int tid = gid; tid < listsize; tid += numThreads){\n float elem = input[tid];\n int id = indice[tid];\n output[s_offset[warpBase + (id & (DIVISIONS - 1))] + (id >> LOG_DIVISIONS)] = elem;\n }", "parent": 0, "children": [172, 178, 182], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 30, "column": 3}}, {"id": 172, "type": "declaration", "text": "int tid = gid;", "parent": 171, "children": [173, 174], "start_point": {"row": 26, "column": 7}, "end_point": {"row": 26, "column": 21}}, {"id": 173, "type": "primitive_type", "text": "int", "parent": 172, "children": [], "start_point": {"row": 26, "column": 7}, "end_point": {"row": 26, "column": 10}}, {"id": 174, "type": "init_declarator", "text": "tid = gid", "parent": 172, "children": [175, 176, 177], "start_point": {"row": 26, "column": 11}, "end_point": {"row": 26, "column": 20}}, {"id": 175, "type": "identifier", "text": "tid", "parent": 174, "children": [], "start_point": {"row": 26, "column": 11}, "end_point": {"row": 26, "column": 14}}, {"id": 176, "type": "=", "text": "=", "parent": 174, "children": [], "start_point": {"row": 26, "column": 15}, "end_point": {"row": 26, "column": 16}}, {"id": 177, "type": "identifier", "text": "gid", "parent": 174, "children": [], "start_point": {"row": 26, "column": 17}, "end_point": {"row": 26, "column": 20}}, {"id": 178, "type": "binary_expression", "text": "tid < listsize", "parent": 171, "children": [179, 180, 181], "start_point": {"row": 26, "column": 22}, "end_point": {"row": 26, "column": 36}}, {"id": 179, "type": "identifier", "text": "tid", "parent": 178, "children": [], "start_point": {"row": 26, "column": 22}, "end_point": {"row": 26, "column": 25}}, {"id": 180, "type": "<", "text": "<", "parent": 178, "children": [], "start_point": {"row": 26, "column": 26}, "end_point": {"row": 26, "column": 27}}, {"id": 181, "type": "identifier", "text": "listsize", "parent": 178, "children": [], "start_point": {"row": 26, "column": 28}, "end_point": {"row": 26, "column": 36}}, {"id": 182, "type": "assignment_expression", "text": "tid += numThreads", "parent": 171, "children": [183, 184, 185], "start_point": {"row": 26, "column": 38}, "end_point": {"row": 26, "column": 55}}, {"id": 183, "type": "identifier", "text": "tid", "parent": 182, "children": [], "start_point": {"row": 26, "column": 38}, "end_point": {"row": 26, "column": 41}}, {"id": 184, "type": "+=", "text": "+=", "parent": 182, "children": [], "start_point": {"row": 26, "column": 42}, "end_point": {"row": 26, "column": 44}}, {"id": 185, "type": "identifier", "text": "numThreads", "parent": 182, "children": [], "start_point": {"row": 26, "column": 45}, "end_point": {"row": 26, "column": 55}}, {"id": 186, "type": "declaration", "text": "float elem = input[tid];", "parent": 171, "children": [187, 188], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 28}}, {"id": 187, "type": "primitive_type", "text": "float", "parent": 186, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 9}}, {"id": 188, "type": "init_declarator", "text": "elem = input[tid]", "parent": 186, "children": [189, 190, 191], "start_point": {"row": 27, "column": 10}, "end_point": {"row": 27, "column": 27}}, {"id": 189, "type": "identifier", "text": "elem", "parent": 188, "children": [], "start_point": {"row": 27, "column": 10}, "end_point": {"row": 27, "column": 14}}, {"id": 190, "type": "=", "text": "=", "parent": 188, "children": [], "start_point": {"row": 27, "column": 15}, "end_point": {"row": 27, "column": 16}}, {"id": 191, "type": "subscript_expression", "text": "input[tid]", "parent": 188, "children": [192, 193], "start_point": {"row": 27, "column": 17}, "end_point": {"row": 27, "column": 27}}, {"id": 192, "type": "identifier", "text": "input", "parent": 191, "children": [], "start_point": {"row": 27, "column": 17}, "end_point": {"row": 27, "column": 22}}, {"id": 193, "type": "identifier", "text": "tid", "parent": 191, "children": [], "start_point": {"row": 27, "column": 23}, "end_point": {"row": 27, "column": 26}}, {"id": 194, "type": "declaration", "text": "int id = indice[tid];", "parent": 171, "children": [195, 196], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 25}}, {"id": 195, "type": "primitive_type", "text": "int", "parent": 194, "children": [], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 7}}, {"id": 196, "type": "init_declarator", "text": "id = indice[tid]", "parent": 194, "children": [197, 198, 199], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 24}}, {"id": 197, "type": "identifier", "text": "id", "parent": 196, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 10}}, {"id": 198, "type": "=", "text": "=", "parent": 196, "children": [], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 12}}, {"id": 199, "type": "subscript_expression", "text": "indice[tid]", "parent": 196, "children": [200, 201], "start_point": {"row": 28, "column": 13}, "end_point": {"row": 28, "column": 24}}, {"id": 200, "type": "identifier", "text": "indice", "parent": 199, "children": [], "start_point": {"row": 28, "column": 13}, "end_point": {"row": 28, "column": 19}}, {"id": 201, "type": "identifier", "text": "tid", "parent": 199, "children": [], "start_point": {"row": 28, "column": 20}, "end_point": {"row": 28, "column": 23}}, {"id": 202, "type": "assignment_expression", "text": "output[s_offset[warpBase + (id & (DIVISIONS - 1))] + (id >> LOG_DIVISIONS)] = elem", "parent": 171, "children": [203, 225, 226], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 87}}, {"id": 203, "type": "subscript_expression", "text": "output[s_offset[warpBase + (id & (DIVISIONS - 1))] + (id >> LOG_DIVISIONS)]", "parent": 202, "children": [204, 205], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 80}}, {"id": 204, "type": "identifier", "text": "output", "parent": 203, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 10}}, {"id": 205, "type": "binary_expression", "text": "s_offset[warpBase + (id & (DIVISIONS - 1))] + (id >> LOG_DIVISIONS)", "parent": 203, "children": [206, 219, 220], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 79}}, {"id": 206, "type": "subscript_expression", "text": "s_offset[warpBase + (id & (DIVISIONS - 1))]", "parent": 205, "children": [207, 208], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 54}}, {"id": 207, "type": "identifier", "text": "s_offset", "parent": 206, "children": [], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 19}}, {"id": 208, "type": "binary_expression", "text": "warpBase + (id & (DIVISIONS - 1))", "parent": 206, "children": [209, 210, 211], "start_point": {"row": 29, "column": 20}, "end_point": {"row": 29, "column": 53}}, {"id": 209, "type": "identifier", "text": "warpBase", "parent": 208, "children": [], "start_point": {"row": 29, "column": 20}, "end_point": {"row": 29, "column": 28}}, {"id": 210, "type": "+", "text": "+", "parent": 208, "children": [], "start_point": {"row": 29, "column": 29}, "end_point": {"row": 29, "column": 30}}, {"id": 211, "type": "parenthesized_expression", "text": "(id & (DIVISIONS - 1))", "parent": 208, "children": [212], "start_point": {"row": 29, "column": 31}, "end_point": {"row": 29, "column": 53}}, {"id": 212, "type": "binary_expression", "text": "id & (DIVISIONS - 1)", "parent": 211, "children": [213, 214], "start_point": {"row": 29, "column": 32}, "end_point": {"row": 29, "column": 52}}, {"id": 213, "type": "identifier", "text": "id", "parent": 212, "children": [], "start_point": {"row": 29, "column": 32}, "end_point": {"row": 29, "column": 34}}, {"id": 214, "type": "parenthesized_expression", "text": "(DIVISIONS - 1)", "parent": 212, "children": [215], "start_point": {"row": 29, "column": 37}, "end_point": {"row": 29, "column": 52}}, {"id": 215, "type": "binary_expression", "text": "DIVISIONS - 1", "parent": 214, "children": [216, 217, 218], "start_point": {"row": 29, "column": 38}, "end_point": {"row": 29, "column": 51}}, {"id": 216, "type": "identifier", "text": "DIVISIONS", "parent": 215, "children": [], "start_point": {"row": 29, "column": 38}, "end_point": {"row": 29, "column": 47}}, {"id": 217, "type": "-", "text": "-", "parent": 215, "children": [], "start_point": {"row": 29, "column": 48}, "end_point": {"row": 29, "column": 49}}, {"id": 218, "type": "number_literal", "text": "1", "parent": 215, "children": [], "start_point": {"row": 29, "column": 50}, "end_point": {"row": 29, "column": 51}}, {"id": 219, "type": "+", "text": "+", "parent": 205, "children": [], "start_point": {"row": 29, "column": 55}, "end_point": {"row": 29, "column": 56}}, {"id": 220, "type": "parenthesized_expression", "text": "(id >> LOG_DIVISIONS)", "parent": 205, "children": [221], "start_point": {"row": 29, "column": 57}, "end_point": {"row": 29, "column": 79}}, {"id": 221, "type": "binary_expression", "text": "id >> LOG_DIVISIONS", "parent": 220, "children": [222, 223, 224], "start_point": {"row": 29, "column": 58}, "end_point": {"row": 29, "column": 78}}, {"id": 222, "type": "identifier", "text": "id", "parent": 221, "children": [], "start_point": {"row": 29, "column": 58}, "end_point": {"row": 29, "column": 60}}, {"id": 223, "type": ">>", "text": ">>", "parent": 221, "children": [], "start_point": {"row": 29, "column": 61}, "end_point": {"row": 29, "column": 63}}, {"id": 224, "type": "identifier", "text": "LOG_DIVISIONS", "parent": 221, "children": [], "start_point": {"row": 29, "column": 65}, "end_point": {"row": 29, "column": 78}}, {"id": 225, "type": "=", "text": "=", "parent": 202, "children": [], "start_point": {"row": 29, "column": 81}, "end_point": {"row": 29, "column": 82}}, {"id": 226, "type": "identifier", "text": "elem", "parent": 202, "children": [], "start_point": {"row": 29, "column": 83}, "end_point": {"row": 29, "column": 87}}]}, "node_categories": {"declarations": {"functions": [0, 4], "variables": [7, 12, 17, 22, 29, 36, 39, 47, 65, 73, 86, 94, 103, 112, 125, 132, 172, 186, 194], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [44, 52, 53, 54, 58, 62, 70, 78, 79, 83, 91, 108, 117, 118, 119, 138, 147, 151, 152, 154, 156, 157, 162, 164, 168, 178, 191, 199, 203, 205, 206, 208, 211, 212, 214, 215, 220, 221], "assignments": [142, 146, 182, 202], "loops": [131, 171], "conditionals": [1, 3, 5, 11, 16, 21, 23, 28, 30, 35, 38, 42, 45, 46, 50, 55, 56, 59, 60, 63, 64, 68, 71, 72, 76, 80, 81, 84, 85, 89, 92, 93, 95, 96, 99, 101, 102, 106, 109, 111, 115, 120, 122, 124, 128, 130, 135, 137, 139, 141, 143, 145, 148, 149, 153, 155, 158, 163, 165, 167, 169, 175, 177, 179, 181, 183, 185, 189, 192, 193, 197, 200, 201, 204, 207, 209, 213, 216, 222, 224, 226], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [160, 218], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 0, "universal_type": "function", "name": "bucketsort", "text_snippet": "__global__ void\nbucketsort (const float* input , \n const int* indice,\n float* output,\n cons"}, {"node_id": 4, "universal_type": "function", "name": "listsize)", "text_snippet": "bucketsort (const float* input , \n const int* indice,\n float* output,\n const unsigned int* "}], "class_declarations": [], "import_statements": []}, "original_source_code": "__global__ void\nbucketsort (const float* input , \n const int* indice,\n float* output,\n const unsigned int* prefixoffsets,\n const unsigned int* offsets,\n const int listsize)\n{\n const int grp_id = blockIdx.x;\n const int gid = blockIdx.x * blockDim.x + threadIdx.x;\n const int lid = threadIdx.x;\n const int gsize = gridDim.x * blockDim.x;\n const int lsize = blockDim.x;\n\n __shared__ unsigned int s_offset[BUCKET_BLOCK_MEMORY]; \n\n int prefixBase = grp_id * BUCKET_BLOCK_MEMORY;\n const int warpBase = (lid >> BUCKET_WARP_LOG_SIZE) * DIVISIONS;\n const int numThreads = gsize;\n\n for (int i = lid; i < BUCKET_BLOCK_MEMORY; i += lsize){\n s_offset[i] = offsets[i & (DIVISIONS - 1)] + prefixoffsets[prefixBase + i];\n }\n\n __syncthreads();\n\n for (int tid = gid; tid < listsize; tid += numThreads){\n float elem = input[tid];\n int id = indice[tid];\n output[s_offset[warpBase + (id & (DIVISIONS - 1))] + (id >> LOG_DIVISIONS)] = elem;\n }\n}\n\n"}
80,276
c
#ifndef SQUID_MMAPPEDFILE_H #define SQUID_MMAPPEDFILE_H #include "cbdata.h" #include "DiskIO/DiskFile.h" #include "DiskIO/IORequestor.h" class MmappedFile : public DiskFile { public: void *operator new(size_t); void operator delete(void *); MmappedFile(char const *path); ~MmappedFile(); virtual void open(int flags, mode_t mode, RefCount<IORequestor> callback); virtual void create(int flags, mode_t mode, RefCount<IORequestor> callback); virtual void read(ReadRequest *); virtual void write(WriteRequest *); virtual void close(); virtual bool error() const; virtual int getFD() const { return fd;} virtual bool canRead() const; virtual bool canWrite() const; virtual bool ioInProgress() const; private: char const *path_; RefCount<IORequestor> ioRequestor; //RefCount<ReadRequest> readRequest; //RefCount<WriteRequest> writeRequest; int fd; // mmapped memory leads to SEGV and bus errors if it maps beyond file int64_t minOffset; ///< enforced if not negative (to preserve file headers) int64_t maxOffset; ///< enforced if not negative (to avoid crashes) bool error_; void doClose(); CBDATA_CLASS(MmappedFile); }; #endif /* SQUID_MMAPPEDFILE_H */
33.69
36
(translation_unit) "#ifndef SQUID_MMAPPEDFILE_H\n#define SQUID_MMAPPEDFILE_H\n\n#include "cbdata.h"\n#include "DiskIO/DiskFile.h"\n#include "DiskIO/IORequestor.h"\n\nclass MmappedFile : public DiskFile\n{\n\npublic:\n void *operator new(size_t);\n void operator delete(void *);\n MmappedFile(char const *path);\n ~MmappedFile();\n virtual void open(int flags, mode_t mode, RefCount<IORequestor> callback);\n virtual void create(int flags, mode_t mode, RefCount<IORequestor> callback);\n virtual void read(ReadRequest *);\n virtual void write(WriteRequest *);\n virtual void close();\n virtual bool error() const;\n virtual int getFD() const { return fd;}\n\n virtual bool canRead() const;\n virtual bool canWrite() const;\n virtual bool ioInProgress() const;\n\nprivate:\n char const *path_;\n RefCount<IORequestor> ioRequestor;\n //RefCount<ReadRequest> readRequest;\n //RefCount<WriteRequest> writeRequest;\n int fd;\n\n // mmapped memory leads to SEGV and bus errors if it maps beyond file\n int64_t minOffset; ///< enforced if not negative (to preserve file headers)\n int64_t maxOffset; ///< enforced if not negative (to avoid crashes)\n\n bool error_;\n\n void doClose();\n\n CBDATA_CLASS(MmappedFile);\n};\n\n#endif /* SQUID_MMAPPEDFILE_H */\n" (preproc_ifdef) "#ifndef SQUID_MMAPPEDFILE_H\n#define SQUID_MMAPPEDFILE_H\n\n#include "cbdata.h"\n#include "DiskIO/DiskFile.h"\n#include "DiskIO/IORequestor.h"\n\nclass MmappedFile : public DiskFile\n{\n\npublic:\n void *operator new(size_t);\n void operator delete(void *);\n MmappedFile(char const *path);\n ~MmappedFile();\n virtual void open(int flags, mode_t mode, RefCount<IORequestor> callback);\n virtual void create(int flags, mode_t mode, RefCount<IORequestor> callback);\n virtual void read(ReadRequest *);\n virtual void write(WriteRequest *);\n virtual void close();\n virtual bool error() const;\n virtual int getFD() const { return fd;}\n\n virtual bool canRead() const;\n virtual bool canWrite() const;\n virtual bool ioInProgress() const;\n\nprivate:\n char const *path_;\n RefCount<IORequestor> ioRequestor;\n //RefCount<ReadRequest> readRequest;\n //RefCount<WriteRequest> writeRequest;\n int fd;\n\n // mmapped memory leads to SEGV and bus errors if it maps beyond file\n int64_t minOffset; ///< enforced if not negative (to preserve file headers)\n int64_t maxOffset; ///< enforced if not negative (to avoid crashes)\n\n bool error_;\n\n void doClose();\n\n CBDATA_CLASS(MmappedFile);\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "SQUID_MMAPPEDFILE_H" (preproc_def) "#define SQUID_MMAPPEDFILE_H\n" (#define) "#define" (identifier) "SQUID_MMAPPEDFILE_H" (preproc_include) "#include "cbdata.h"\n" (#include) "#include" (string_literal) ""cbdata.h"" (") """ (string_content) "cbdata.h" (") """ (preproc_include) "#include "DiskIO/DiskFile.h"\n" (#include) "#include" (string_literal) ""DiskIO/DiskFile.h"" (") """ (string_content) "DiskIO/DiskFile.h" (") """ (preproc_include) "#include "DiskIO/IORequestor.h"\n" (#include) "#include" (string_literal) ""DiskIO/IORequestor.h"" (") """ (string_content) "DiskIO/IORequestor.h" (") """ (function_definition) "class MmappedFile : public DiskFile\n{\n\npublic:\n void *operator new(size_t);\n void operator delete(void *);\n MmappedFile(char const *path);\n ~MmappedFile();\n virtual void open(int flags, mode_t mode, RefCount<IORequestor> callback);\n virtual void create(int flags, mode_t mode, RefCount<IORequestor> callback);\n virtual void read(ReadRequest *);\n virtual void write(WriteRequest *);\n virtual void close();\n virtual bool error() const;\n virtual int getFD() const { return fd;}\n\n virtual bool canRead() const;\n virtual bool canWrite() const;\n virtual bool ioInProgress() const;\n\nprivate:\n char const *path_;\n RefCount<IORequestor> ioRequestor;\n //RefCount<ReadRequest> readRequest;\n //RefCount<WriteRequest> writeRequest;\n int fd;\n\n // mmapped memory leads to SEGV and bus errors if it maps beyond file\n int64_t minOffset; ///< enforced if not negative (to preserve file headers)\n int64_t maxOffset; ///< enforced if not negative (to avoid crashes)\n\n bool error_;\n\n void doClose();\n\n CBDATA_CLASS(MmappedFile);\n}" (type_identifier) "class" (identifier) "MmappedFile" (ERROR) ": public DiskFile" (:) ":" (identifier) "public" (identifier) "DiskFile" (compound_statement) "{\n\npublic:\n void *operator new(size_t);\n void operator delete(void *);\n MmappedFile(char const *path);\n ~MmappedFile();\n virtual void open(int flags, mode_t mode, RefCount<IORequestor> callback);\n virtual void create(int flags, mode_t mode, RefCount<IORequestor> callback);\n virtual void read(ReadRequest *);\n virtual void write(WriteRequest *);\n virtual void close();\n virtual bool error() const;\n virtual int getFD() const { return fd;}\n\n virtual bool canRead() const;\n virtual bool canWrite() const;\n virtual bool ioInProgress() const;\n\nprivate:\n char const *path_;\n RefCount<IORequestor> ioRequestor;\n //RefCount<ReadRequest> readRequest;\n //RefCount<WriteRequest> writeRequest;\n int fd;\n\n // mmapped memory leads to SEGV and bus errors if it maps beyond file\n int64_t minOffset; ///< enforced if not negative (to preserve file headers)\n int64_t maxOffset; ///< enforced if not negative (to avoid crashes)\n\n bool error_;\n\n void doClose();\n\n CBDATA_CLASS(MmappedFile);\n}" ({) "{" (labeled_statement) "public:\n void *operator new(size_t);" (statement_identifier) "public" (:) ":" (declaration) "void *operator new(size_t);" (primitive_type) "void" (pointer_declarator) "*operator new(size_t)" (*) "*" (ERROR) "operator" (identifier) "operator" (function_declarator) "new(size_t)" (identifier) "new" (parameter_list) "(size_t)" (() "(" (parameter_declaration) "size_t" (primitive_type) "size_t" ()) ")" (;) ";" (declaration) "void operator delete(void *);" (primitive_type) "void" (ERROR) "operator" (identifier) "operator" (function_declarator) "delete(void *)" (identifier) "delete" (parameter_list) "(void *)" (() "(" (parameter_declaration) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (macro_type_specifier) "MmappedFile(char const *path)" (identifier) "MmappedFile" (() "(" (type_descriptor) "char const *" (primitive_type) "char" (type_qualifier) "const" (const) "const" (abstract_pointer_declarator) "*" (*) "*" (ERROR) "path" (identifier) "path" ()) ")" (;) ";" (expression_statement) "~MmappedFile();" (unary_expression) "~MmappedFile()" (~) "~" (call_expression) "MmappedFile()" (identifier) "MmappedFile" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual void open(int flags, mode_t mode, RefCount<IORequestor> callback);" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "open(int flags, mode_t mode, RefCount<IORequestor> callback)" (identifier) "open" (parameter_list) "(int flags, mode_t mode, RefCount<IORequestor> callback)" (() "(" (parameter_declaration) "int flags" (primitive_type) "int" (identifier) "flags" (,) "," (parameter_declaration) "mode_t mode" (type_identifier) "mode_t" (identifier) "mode" (,) "," (parameter_declaration) "RefCount<IORequestor> callback" (type_identifier) "RefCount" (ERROR) "<IORequestor>" (<) "<" (identifier) "IORequestor" (>) ">" (identifier) "callback" ()) ")" (;) ";" (declaration) "virtual void create(int flags, mode_t mode, RefCount<IORequestor> callback);" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "create(int flags, mode_t mode, RefCount<IORequestor> callback)" (identifier) "create" (parameter_list) "(int flags, mode_t mode, RefCount<IORequestor> callback)" (() "(" (parameter_declaration) "int flags" (primitive_type) "int" (identifier) "flags" (,) "," (parameter_declaration) "mode_t mode" (type_identifier) "mode_t" (identifier) "mode" (,) "," (parameter_declaration) "RefCount<IORequestor> callback" (type_identifier) "RefCount" (ERROR) "<IORequestor>" (<) "<" (identifier) "IORequestor" (>) ">" (identifier) "callback" ()) ")" (;) ";" (declaration) "virtual void read(ReadRequest *);" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "read(ReadRequest *)" (identifier) "read" (parameter_list) "(ReadRequest *)" (() "(" (parameter_declaration) "ReadRequest *" (type_identifier) "ReadRequest" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (declaration) "virtual void write(WriteRequest *);" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "write(WriteRequest *)" (identifier) "write" (parameter_list) "(WriteRequest *)" (() "(" (parameter_declaration) "WriteRequest *" (type_identifier) "WriteRequest" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (declaration) "virtual void close();" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "close()" (identifier) "close" (parameter_list) "()" (() "(" ()) ")" (;) ";" (ERROR) "virtual bool error() const;\n virtual int getFD() const { return fd;}\n\n virtual bool canRead() const;\n virtual bool canWrite() const;\n virtual bool ioInProgress() const;\n\nprivate:\n char const *path_;\n RefCount<IORequestor> ioRequestor;\n //RefCount<ReadRequest> readRequest;\n //RefCount<WriteRequest> writeRequest;\n int fd;\n\n // mmapped memory leads to SEGV and bus errors if it maps beyond file\n int64_t minOffset; ///< enforced if not negative (to preserve file headers)\n int64_t maxOffset; ///< enforced if not negative (to avoid crashes)\n\n bool error_;\n\n void doClose();\n\n CBDATA_CLASS(MmappedFile);" (type_identifier) "virtual" (ERROR) "bool" (identifier) "bool" (function_declarator) "error()" (identifier) "error" (parameter_list) "()" (() "(" ()) ")" (declaration) "const;\n virtual int getFD() const { return fd;" (type_qualifier) "const" (const) "const" (ERROR) ";" (;) ";" (type_identifier) "virtual" (ERROR) "int getFD() const { return" (identifier) "int" (function_declarator) "getFD() const" (identifier) "getFD" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" ({) "{" (return) "return" (identifier) "fd" (;) ";" (ERROR) "}\n\n virtual bool canRead() const;\n virtual bool canWrite() const;\n virtual bool ioInProgress() const;\n\nprivate:" (}) "}" (type_identifier) "virtual" (ERROR) "bool canRead() const;\n virtual bool canWrite() const;\n virtual bool ioInProgress() const;" (identifier) "bool" (function_declarator) "canRead() const" (identifier) "canRead" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (identifier) "virtual" (identifier) "bool" (function_declarator) "canWrite() const" (identifier) "canWrite" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (identifier) "virtual" (identifier) "bool" (function_declarator) "ioInProgress() const" (identifier) "ioInProgress" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (identifier) "private" (:) ":" (declaration) "char const *path_;" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*path_" (*) "*" (identifier) "path_" (;) ";" (declaration) "RefCount<IORequestor> ioRequestor;" (type_identifier) "RefCount" (ERROR) "<IORequestor>" (<) "<" (identifier) "IORequestor" (>) ">" (identifier) "ioRequestor" (;) ";" (comment) "//RefCount<ReadRequest> readRequest;" (comment) "//RefCount<WriteRequest> writeRequest;" (declaration) "int fd;" (primitive_type) "int" (identifier) "fd" (;) ";" (comment) "// mmapped memory leads to SEGV and bus errors if it maps beyond file" (declaration) "int64_t minOffset;" (primitive_type) "int64_t" (identifier) "minOffset" (;) ";" (comment) "///< enforced if not negative (to preserve file headers)" (declaration) "int64_t maxOffset;" (primitive_type) "int64_t" (identifier) "maxOffset" (;) ";" (comment) "///< enforced if not negative (to avoid crashes)" (declaration) "bool error_;" (primitive_type) "bool" (identifier) "error_" (;) ";" (declaration) "void doClose();" (primitive_type) "void" (function_declarator) "doClose()" (identifier) "doClose" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "CBDATA_CLASS(MmappedFile);" (type_identifier) "CBDATA_CLASS" (parenthesized_declarator) "(MmappedFile)" (() "(" (identifier) "MmappedFile" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif" (comment) "/* SQUID_MMAPPEDFILE_H */"
291
18
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 33.69, "nodes": 188, "errors": 0, "source_hash": "6c59505fa89831a15a6bdfc6050aff84b2ce61c08d86a2d35bc210b731d791a5", "categorized_nodes": 120}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef SQUID_MMAPPEDFILE_H\n#define SQUID_MMAPPEDFILE_H\n\n#include \"cbdata.h\"\n#include \"DiskIO/DiskFile.h\"\n#include \"DiskIO/IORequestor.h\"\n\nclass MmappedFile : public DiskFile\n{\n\npublic:\n void *operator new(size_t);\n void operator delete(void *);\n MmappedFile(char const *path);\n ~MmappedFile();\n virtual void open(int flags, mode_t mode, RefCount<IORequestor> callback);\n virtual void create(int flags, mode_t mode, RefCount<IORequestor> callback);\n virtual void read(ReadRequest *);\n virtual void write(WriteRequest *);\n virtual void close();\n virtual bool error() const;\n virtual int getFD() const { return fd;}\n\n virtual bool canRead() const;\n virtual bool canWrite() const;\n virtual bool ioInProgress() const;\n\nprivate:\n char const *path_;\n RefCount<IORequestor> ioRequestor;\n //RefCount<ReadRequest> readRequest;\n //RefCount<WriteRequest> writeRequest;\n int fd;\n\n // mmapped memory leads to SEGV and bus errors if it maps beyond file\n int64_t minOffset; ///< enforced if not negative (to preserve file headers)\n int64_t maxOffset; ///< enforced if not negative (to avoid crashes)\n\n bool error_;\n\n void doClose();\n\n CBDATA_CLASS(MmappedFile);\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 187], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 45, "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": "SQUID_MMAPPEDFILE_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 27}}, {"id": 3, "type": "preproc_def", "text": "#define SQUID_MMAPPEDFILE_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": "SQUID_MMAPPEDFILE_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 27}}, {"id": 6, "type": "preproc_include", "text": "#include \"cbdata.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": "\"cbdata.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 19}}, {"id": 9, "type": "preproc_include", "text": "#include \"DiskIO/DiskFile.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": "\"DiskIO/DiskFile.h\"", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 28}}, {"id": 12, "type": "preproc_include", "text": "#include \"DiskIO/IORequestor.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": "\"DiskIO/IORequestor.h\"", "parent": 12, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 31}}, {"id": 15, "type": "function_definition", "text": "class MmappedFile : public DiskFile\n{\n\npublic:\n void *operator new(size_t);\n void operator delete(void *);\n MmappedFile(char const *path);\n ~MmappedFile();\n virtual void open(int flags, mode_t mode, RefCount<IORequestor> callback);\n virtual void create(int flags, mode_t mode, RefCount<IORequestor> callback);\n virtual void read(ReadRequest *);\n virtual void write(WriteRequest *);\n virtual void close();\n virtual bool error() const;\n virtual int getFD() const { return fd;}\n\n virtual bool canRead() const;\n virtual bool canWrite() const;\n virtual bool ioInProgress() const;\n\nprivate:\n char const *path_;\n RefCount<IORequestor> ioRequestor;\n //RefCount<ReadRequest> readRequest;\n //RefCount<WriteRequest> writeRequest;\n int fd;\n\n // mmapped memory leads to SEGV and bus errors if it maps beyond file\n int64_t minOffset; ///< enforced if not negative (to preserve file headers)\n int64_t maxOffset; ///< enforced if not negative (to avoid crashes)\n\n bool error_;\n\n void doClose();\n\n CBDATA_CLASS(MmappedFile);\n}", "parent": 0, "children": [16, 17], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 43, "column": 1}}, {"id": 16, "type": "identifier", "text": "MmappedFile", "parent": 15, "children": [], "start_point": {"row": 7, "column": 6}, "end_point": {"row": 7, "column": 17}}, {"id": 17, "type": "ERROR", "text": ": public DiskFile", "parent": 15, "children": [18], "start_point": {"row": 7, "column": 18}, "end_point": {"row": 7, "column": 35}}, {"id": 18, "type": "identifier", "text": "DiskFile", "parent": 17, "children": [], "start_point": {"row": 7, "column": 27}, "end_point": {"row": 7, "column": 35}}, {"id": 19, "type": "labeled_statement", "text": "public:\n void *operator new(size_t);", "parent": 15, "children": [20], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 31}}, {"id": 20, "type": "declaration", "text": "void *operator new(size_t);", "parent": 19, "children": [21, 22], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 31}}, {"id": 21, "type": "primitive_type", "text": "void", "parent": 20, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 8}}, {"id": 22, "type": "pointer_declarator", "text": "*operator new(size_t)", "parent": 20, "children": [23, 24, 26], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 30}}, {"id": 23, "type": "*", "text": "*", "parent": 22, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 10}}, {"id": 24, "type": "ERROR", "text": "operator", "parent": 22, "children": [25], "start_point": {"row": 11, "column": 10}, "end_point": {"row": 11, "column": 18}}, {"id": 25, "type": "identifier", "text": "operator", "parent": 24, "children": [], "start_point": {"row": 11, "column": 10}, "end_point": {"row": 11, "column": 18}}, {"id": 26, "type": "function_declarator", "text": "new(size_t)", "parent": 22, "children": [27], "start_point": {"row": 11, "column": 19}, "end_point": {"row": 11, "column": 30}}, {"id": 27, "type": "parameter_list", "text": "(size_t)", "parent": 26, "children": [28], "start_point": {"row": 11, "column": 22}, "end_point": {"row": 11, "column": 30}}, {"id": 28, "type": "parameter_declaration", "text": "size_t", "parent": 27, "children": [29], "start_point": {"row": 11, "column": 23}, "end_point": {"row": 11, "column": 29}}, {"id": 29, "type": "primitive_type", "text": "size_t", "parent": 28, "children": [], "start_point": {"row": 11, "column": 23}, "end_point": {"row": 11, "column": 29}}, {"id": 30, "type": "declaration", "text": "void operator delete(void *);", "parent": 15, "children": [31, 32, 34], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 33}}, {"id": 31, "type": "primitive_type", "text": "void", "parent": 30, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 8}}, {"id": 32, "type": "ERROR", "text": "operator", "parent": 30, "children": [33], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 17}}, {"id": 33, "type": "identifier", "text": "operator", "parent": 32, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 17}}, {"id": 34, "type": "function_declarator", "text": "delete(void *)", "parent": 30, "children": [35], "start_point": {"row": 12, "column": 18}, "end_point": {"row": 12, "column": 32}}, {"id": 35, "type": "parameter_list", "text": "(void *)", "parent": 34, "children": [36], "start_point": {"row": 12, "column": 24}, "end_point": {"row": 12, "column": 32}}, {"id": 36, "type": "parameter_declaration", "text": "void *", "parent": 35, "children": [37, 38], "start_point": {"row": 12, "column": 25}, "end_point": {"row": 12, "column": 31}}, {"id": 37, "type": "primitive_type", "text": "void", "parent": 36, "children": [], "start_point": {"row": 12, "column": 25}, "end_point": {"row": 12, "column": 29}}, {"id": 38, "type": "abstract_pointer_declarator", "text": "*", "parent": 36, "children": [39], "start_point": {"row": 12, "column": 30}, "end_point": {"row": 12, "column": 31}}, {"id": 39, "type": "*", "text": "*", "parent": 38, "children": [], "start_point": {"row": 12, "column": 30}, "end_point": {"row": 12, "column": 31}}, {"id": 40, "type": "macro_type_specifier", "text": "MmappedFile(char const *path)", "parent": 15, "children": [41, 42, 46], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 33}}, {"id": 41, "type": "identifier", "text": "MmappedFile", "parent": 40, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 15}}, {"id": 42, "type": "type_descriptor", "text": "char const *", "parent": 40, "children": [43, 44], "start_point": {"row": 13, "column": 16}, "end_point": {"row": 13, "column": 28}}, {"id": 43, "type": "primitive_type", "text": "char", "parent": 42, "children": [], "start_point": {"row": 13, "column": 16}, "end_point": {"row": 13, "column": 20}}, {"id": 44, "type": "abstract_pointer_declarator", "text": "*", "parent": 42, "children": [45], "start_point": {"row": 13, "column": 27}, "end_point": {"row": 13, "column": 28}}, {"id": 45, "type": "*", "text": "*", "parent": 44, "children": [], "start_point": {"row": 13, "column": 27}, "end_point": {"row": 13, "column": 28}}, {"id": 46, "type": "ERROR", "text": "path", "parent": 40, "children": [47], "start_point": {"row": 13, "column": 28}, "end_point": {"row": 13, "column": 32}}, {"id": 47, "type": "identifier", "text": "path", "parent": 46, "children": [], "start_point": {"row": 13, "column": 28}, "end_point": {"row": 13, "column": 32}}, {"id": 48, "type": "unary_expression", "text": "~MmappedFile()", "parent": 15, "children": [49, 50], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 18}}, {"id": 49, "type": "~", "text": "~", "parent": 48, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 5}}, {"id": 50, "type": "call_expression", "text": "MmappedFile()", "parent": 48, "children": [51, 52], "start_point": {"row": 14, "column": 5}, "end_point": {"row": 14, "column": 18}}, {"id": 51, "type": "identifier", "text": "MmappedFile", "parent": 50, "children": [], "start_point": {"row": 14, "column": 5}, "end_point": {"row": 14, "column": 16}}, {"id": 52, "type": "argument_list", "text": "()", "parent": 50, "children": [], "start_point": {"row": 14, "column": 16}, "end_point": {"row": 14, "column": 18}}, {"id": 53, "type": "declaration", "text": "virtual void open(int flags, mode_t mode, RefCount<IORequestor> callback);", "parent": 15, "children": [54, 55, 57], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 78}}, {"id": 54, "type": "type_identifier", "text": "virtual", "parent": 53, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 11}}, {"id": 55, "type": "ERROR", "text": "void", "parent": 53, "children": [56], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 16}}, {"id": 56, "type": "identifier", "text": "void", "parent": 55, "children": [], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 16}}, {"id": 57, "type": "function_declarator", "text": "open(int flags, mode_t mode, RefCount<IORequestor> callback)", "parent": 53, "children": [58, 59], "start_point": {"row": 15, "column": 17}, "end_point": {"row": 15, "column": 77}}, {"id": 58, "type": "identifier", "text": "open", "parent": 57, "children": [], "start_point": {"row": 15, "column": 17}, "end_point": {"row": 15, "column": 21}}, {"id": 59, "type": "parameter_list", "text": "(int flags, mode_t mode, RefCount<IORequestor> callback)", "parent": 57, "children": [60, 63, 66], "start_point": {"row": 15, "column": 21}, "end_point": {"row": 15, "column": 77}}, {"id": 60, "type": "parameter_declaration", "text": "int flags", "parent": 59, "children": [61, 62], "start_point": {"row": 15, "column": 22}, "end_point": {"row": 15, "column": 31}}, {"id": 61, "type": "primitive_type", "text": "int", "parent": 60, "children": [], "start_point": {"row": 15, "column": 22}, "end_point": {"row": 15, "column": 25}}, {"id": 62, "type": "identifier", "text": "flags", "parent": 60, "children": [], "start_point": {"row": 15, "column": 26}, "end_point": {"row": 15, "column": 31}}, {"id": 63, "type": "parameter_declaration", "text": "mode_t mode", "parent": 59, "children": [64, 65], "start_point": {"row": 15, "column": 33}, "end_point": {"row": 15, "column": 44}}, {"id": 64, "type": "type_identifier", "text": "mode_t", "parent": 63, "children": [], "start_point": {"row": 15, "column": 33}, "end_point": {"row": 15, "column": 39}}, {"id": 65, "type": "identifier", "text": "mode", "parent": 63, "children": [], "start_point": {"row": 15, "column": 40}, "end_point": {"row": 15, "column": 44}}, {"id": 66, "type": "parameter_declaration", "text": "RefCount<IORequestor> callback", "parent": 59, "children": [67, 68, 72], "start_point": {"row": 15, "column": 46}, "end_point": {"row": 15, "column": 76}}, {"id": 67, "type": "type_identifier", "text": "RefCount", "parent": 66, "children": [], "start_point": {"row": 15, "column": 46}, "end_point": {"row": 15, "column": 54}}, {"id": 68, "type": "ERROR", "text": "<IORequestor>", "parent": 66, "children": [69, 70, 71], "start_point": {"row": 15, "column": 54}, "end_point": {"row": 15, "column": 67}}, {"id": 69, "type": "<", "text": "<", "parent": 68, "children": [], "start_point": {"row": 15, "column": 54}, "end_point": {"row": 15, "column": 55}}, {"id": 70, "type": "identifier", "text": "IORequestor", "parent": 68, "children": [], "start_point": {"row": 15, "column": 55}, "end_point": {"row": 15, "column": 66}}, {"id": 71, "type": ">", "text": ">", "parent": 68, "children": [], "start_point": {"row": 15, "column": 66}, "end_point": {"row": 15, "column": 67}}, {"id": 72, "type": "identifier", "text": "callback", "parent": 66, "children": [], "start_point": {"row": 15, "column": 68}, "end_point": {"row": 15, "column": 76}}, {"id": 73, "type": "declaration", "text": "virtual void create(int flags, mode_t mode, RefCount<IORequestor> callback);", "parent": 15, "children": [74, 75, 77], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 80}}, {"id": 74, "type": "type_identifier", "text": "virtual", "parent": 73, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 11}}, {"id": 75, "type": "ERROR", "text": "void", "parent": 73, "children": [76], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 16, "column": 16}}, {"id": 76, "type": "identifier", "text": "void", "parent": 75, "children": [], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 16, "column": 16}}, {"id": 77, "type": "function_declarator", "text": "create(int flags, mode_t mode, RefCount<IORequestor> callback)", "parent": 73, "children": [78, 79], "start_point": {"row": 16, "column": 17}, "end_point": {"row": 16, "column": 79}}, {"id": 78, "type": "identifier", "text": "create", "parent": 77, "children": [], "start_point": {"row": 16, "column": 17}, "end_point": {"row": 16, "column": 23}}, {"id": 79, "type": "parameter_list", "text": "(int flags, mode_t mode, RefCount<IORequestor> callback)", "parent": 77, "children": [80, 83, 86], "start_point": {"row": 16, "column": 23}, "end_point": {"row": 16, "column": 79}}, {"id": 80, "type": "parameter_declaration", "text": "int flags", "parent": 79, "children": [81, 82], "start_point": {"row": 16, "column": 24}, "end_point": {"row": 16, "column": 33}}, {"id": 81, "type": "primitive_type", "text": "int", "parent": 80, "children": [], "start_point": {"row": 16, "column": 24}, "end_point": {"row": 16, "column": 27}}, {"id": 82, "type": "identifier", "text": "flags", "parent": 80, "children": [], "start_point": {"row": 16, "column": 28}, "end_point": {"row": 16, "column": 33}}, {"id": 83, "type": "parameter_declaration", "text": "mode_t mode", "parent": 79, "children": [84, 85], "start_point": {"row": 16, "column": 35}, "end_point": {"row": 16, "column": 46}}, {"id": 84, "type": "type_identifier", "text": "mode_t", "parent": 83, "children": [], "start_point": {"row": 16, "column": 35}, "end_point": {"row": 16, "column": 41}}, {"id": 85, "type": "identifier", "text": "mode", "parent": 83, "children": [], "start_point": {"row": 16, "column": 42}, "end_point": {"row": 16, "column": 46}}, {"id": 86, "type": "parameter_declaration", "text": "RefCount<IORequestor> callback", "parent": 79, "children": [87, 88, 92], "start_point": {"row": 16, "column": 48}, "end_point": {"row": 16, "column": 78}}, {"id": 87, "type": "type_identifier", "text": "RefCount", "parent": 86, "children": [], "start_point": {"row": 16, "column": 48}, "end_point": {"row": 16, "column": 56}}, {"id": 88, "type": "ERROR", "text": "<IORequestor>", "parent": 86, "children": [89, 90, 91], "start_point": {"row": 16, "column": 56}, "end_point": {"row": 16, "column": 69}}, {"id": 89, "type": "<", "text": "<", "parent": 88, "children": [], "start_point": {"row": 16, "column": 56}, "end_point": {"row": 16, "column": 57}}, {"id": 90, "type": "identifier", "text": "IORequestor", "parent": 88, "children": [], "start_point": {"row": 16, "column": 57}, "end_point": {"row": 16, "column": 68}}, {"id": 91, "type": ">", "text": ">", "parent": 88, "children": [], "start_point": {"row": 16, "column": 68}, "end_point": {"row": 16, "column": 69}}, {"id": 92, "type": "identifier", "text": "callback", "parent": 86, "children": [], "start_point": {"row": 16, "column": 70}, "end_point": {"row": 16, "column": 78}}, {"id": 93, "type": "declaration", "text": "virtual void read(ReadRequest *);", "parent": 15, "children": [94, 95, 97], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 37}}, {"id": 94, "type": "type_identifier", "text": "virtual", "parent": 93, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 11}}, {"id": 95, "type": "ERROR", "text": "void", "parent": 93, "children": [96], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 16}}, {"id": 96, "type": "identifier", "text": "void", "parent": 95, "children": [], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 16}}, {"id": 97, "type": "function_declarator", "text": "read(ReadRequest *)", "parent": 93, "children": [98, 99], "start_point": {"row": 17, "column": 17}, "end_point": {"row": 17, "column": 36}}, {"id": 98, "type": "identifier", "text": "read", "parent": 97, "children": [], "start_point": {"row": 17, "column": 17}, "end_point": {"row": 17, "column": 21}}, {"id": 99, "type": "parameter_list", "text": "(ReadRequest *)", "parent": 97, "children": [100], "start_point": {"row": 17, "column": 21}, "end_point": {"row": 17, "column": 36}}, {"id": 100, "type": "parameter_declaration", "text": "ReadRequest *", "parent": 99, "children": [101, 102], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 35}}, {"id": 101, "type": "type_identifier", "text": "ReadRequest", "parent": 100, "children": [], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 33}}, {"id": 102, "type": "abstract_pointer_declarator", "text": "*", "parent": 100, "children": [103], "start_point": {"row": 17, "column": 34}, "end_point": {"row": 17, "column": 35}}, {"id": 103, "type": "*", "text": "*", "parent": 102, "children": [], "start_point": {"row": 17, "column": 34}, "end_point": {"row": 17, "column": 35}}, {"id": 104, "type": "declaration", "text": "virtual void write(WriteRequest *);", "parent": 15, "children": [105, 106, 108], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 39}}, {"id": 105, "type": "type_identifier", "text": "virtual", "parent": 104, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 11}}, {"id": 106, "type": "ERROR", "text": "void", "parent": 104, "children": [107], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 16}}, {"id": 107, "type": "identifier", "text": "void", "parent": 106, "children": [], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 16}}, {"id": 108, "type": "function_declarator", "text": "write(WriteRequest *)", "parent": 104, "children": [109, 110], "start_point": {"row": 18, "column": 17}, "end_point": {"row": 18, "column": 38}}, {"id": 109, "type": "identifier", "text": "write", "parent": 108, "children": [], "start_point": {"row": 18, "column": 17}, "end_point": {"row": 18, "column": 22}}, {"id": 110, "type": "parameter_list", "text": "(WriteRequest *)", "parent": 108, "children": [111], "start_point": {"row": 18, "column": 22}, "end_point": {"row": 18, "column": 38}}, {"id": 111, "type": "parameter_declaration", "text": "WriteRequest *", "parent": 110, "children": [112, 113], "start_point": {"row": 18, "column": 23}, "end_point": {"row": 18, "column": 37}}, {"id": 112, "type": "type_identifier", "text": "WriteRequest", "parent": 111, "children": [], "start_point": {"row": 18, "column": 23}, "end_point": {"row": 18, "column": 35}}, {"id": 113, "type": "abstract_pointer_declarator", "text": "*", "parent": 111, "children": [114], "start_point": {"row": 18, "column": 36}, "end_point": {"row": 18, "column": 37}}, {"id": 114, "type": "*", "text": "*", "parent": 113, "children": [], "start_point": {"row": 18, "column": 36}, "end_point": {"row": 18, "column": 37}}, {"id": 115, "type": "declaration", "text": "virtual void close();", "parent": 15, "children": [116, 117, 119], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 25}}, {"id": 116, "type": "type_identifier", "text": "virtual", "parent": 115, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 11}}, {"id": 117, "type": "ERROR", "text": "void", "parent": 115, "children": [118], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 16}}, {"id": 118, "type": "identifier", "text": "void", "parent": 117, "children": [], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 16}}, {"id": 119, "type": "function_declarator", "text": "close()", "parent": 115, "children": [120, 121], "start_point": {"row": 19, "column": 17}, "end_point": {"row": 19, "column": 24}}, {"id": 120, "type": "identifier", "text": "close", "parent": 119, "children": [], "start_point": {"row": 19, "column": 17}, "end_point": {"row": 19, "column": 22}}, {"id": 121, "type": "parameter_list", "text": "()", "parent": 119, "children": [], "start_point": {"row": 19, "column": 22}, "end_point": {"row": 19, "column": 24}}, {"id": 122, "type": "ERROR", "text": "virtual bool error() const;\n virtual int getFD() const { return fd;}\n\n virtual bool canRead() const;\n virtual bool canWrite() const;\n virtual bool ioInProgress() const;\n\nprivate:\n char const *path_;\n RefCount<IORequestor> ioRequestor;\n //RefCount<ReadRequest> readRequest;\n //RefCount<WriteRequest> writeRequest;\n int fd;\n\n // mmapped memory leads to SEGV and bus errors if it maps beyond file\n int64_t minOffset; ///< enforced if not negative (to preserve file headers)\n int64_t maxOffset; ///< enforced if not negative (to avoid crashes)\n\n bool error_;\n\n void doClose();\n\n CBDATA_CLASS(MmappedFile);", "parent": 15, "children": [123, 124, 126, 129, 137, 154, 159, 166, 169, 172, 175, 178, 183], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 42, "column": 30}}, {"id": 123, "type": "type_identifier", "text": "virtual", "parent": 122, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 11}}, {"id": 124, "type": "ERROR", "text": "bool", "parent": 122, "children": [125], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 16}}, {"id": 125, "type": "identifier", "text": "bool", "parent": 124, "children": [], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 16}}, {"id": 126, "type": "function_declarator", "text": "error()", "parent": 122, "children": [127, 128], "start_point": {"row": 20, "column": 17}, "end_point": {"row": 20, "column": 24}}, {"id": 127, "type": "identifier", "text": "error", "parent": 126, "children": [], "start_point": {"row": 20, "column": 17}, "end_point": {"row": 20, "column": 22}}, {"id": 128, "type": "parameter_list", "text": "()", "parent": 126, "children": [], "start_point": {"row": 20, "column": 22}, "end_point": {"row": 20, "column": 24}}, {"id": 129, "type": "declaration", "text": "const;\n virtual int getFD() const { return fd;", "parent": 122, "children": [130, 131, 136], "start_point": {"row": 20, "column": 25}, "end_point": {"row": 21, "column": 42}}, {"id": 130, "type": "type_identifier", "text": "virtual", "parent": 129, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 11}}, {"id": 131, "type": "ERROR", "text": "int getFD() const { return", "parent": 129, "children": [132, 133], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 38}}, {"id": 132, "type": "identifier", "text": "int", "parent": 131, "children": [], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 15}}, {"id": 133, "type": "function_declarator", "text": "getFD() const", "parent": 131, "children": [134, 135], "start_point": {"row": 21, "column": 16}, "end_point": {"row": 21, "column": 29}}, {"id": 134, "type": "identifier", "text": "getFD", "parent": 133, "children": [], "start_point": {"row": 21, "column": 16}, "end_point": {"row": 21, "column": 21}}, {"id": 135, "type": "parameter_list", "text": "()", "parent": 133, "children": [], "start_point": {"row": 21, "column": 21}, "end_point": {"row": 21, "column": 23}}, {"id": 136, "type": "identifier", "text": "fd", "parent": 129, "children": [], "start_point": {"row": 21, "column": 39}, "end_point": {"row": 21, "column": 41}}, {"id": 137, "type": "ERROR", "text": "}\n\n virtual bool canRead() const;\n virtual bool canWrite() const;\n virtual bool ioInProgress() const;\n\nprivate:", "parent": 122, "children": [138, 139], "start_point": {"row": 21, "column": 42}, "end_point": {"row": 27, "column": 8}}, {"id": 138, "type": "type_identifier", "text": "virtual", "parent": 137, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 11}}, {"id": 139, "type": "ERROR", "text": "bool canRead() const;\n virtual bool canWrite() const;\n virtual bool ioInProgress() const;", "parent": 137, "children": [140, 141, 144, 145, 146, 149, 150, 151], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 25, "column": 38}}, {"id": 140, "type": "identifier", "text": "bool", "parent": 139, "children": [], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 16}}, {"id": 141, "type": "function_declarator", "text": "canRead() const", "parent": 139, "children": [142, 143], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 32}}, {"id": 142, "type": "identifier", "text": "canRead", "parent": 141, "children": [], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 24}}, {"id": 143, "type": "parameter_list", "text": "()", "parent": 141, "children": [], "start_point": {"row": 23, "column": 24}, "end_point": {"row": 23, "column": 26}}, {"id": 144, "type": "identifier", "text": "virtual", "parent": 139, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 11}}, {"id": 145, "type": "identifier", "text": "bool", "parent": 139, "children": [], "start_point": {"row": 24, "column": 12}, "end_point": {"row": 24, "column": 16}}, {"id": 146, "type": "function_declarator", "text": "canWrite() const", "parent": 139, "children": [147, 148], "start_point": {"row": 24, "column": 17}, "end_point": {"row": 24, "column": 33}}, {"id": 147, "type": "identifier", "text": "canWrite", "parent": 146, "children": [], "start_point": {"row": 24, "column": 17}, "end_point": {"row": 24, "column": 25}}, {"id": 148, "type": "parameter_list", "text": "()", "parent": 146, "children": [], "start_point": {"row": 24, "column": 25}, "end_point": {"row": 24, "column": 27}}, {"id": 149, "type": "identifier", "text": "virtual", "parent": 139, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 11}}, {"id": 150, "type": "identifier", "text": "bool", "parent": 139, "children": [], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 16}}, {"id": 151, "type": "function_declarator", "text": "ioInProgress() const", "parent": 139, "children": [152, 153], "start_point": {"row": 25, "column": 17}, "end_point": {"row": 25, "column": 37}}, {"id": 152, "type": "identifier", "text": "ioInProgress", "parent": 151, "children": [], "start_point": {"row": 25, "column": 17}, "end_point": {"row": 25, "column": 29}}, {"id": 153, "type": "parameter_list", "text": "()", "parent": 151, "children": [], "start_point": {"row": 25, "column": 29}, "end_point": {"row": 25, "column": 31}}, {"id": 154, "type": "declaration", "text": "char const *path_;", "parent": 122, "children": [155, 156], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 22}}, {"id": 155, "type": "primitive_type", "text": "char", "parent": 154, "children": [], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 8}}, {"id": 156, "type": "pointer_declarator", "text": "*path_", "parent": 154, "children": [157, 158], "start_point": {"row": 28, "column": 15}, "end_point": {"row": 28, "column": 21}}, {"id": 157, "type": "*", "text": "*", "parent": 156, "children": [], "start_point": {"row": 28, "column": 15}, "end_point": {"row": 28, "column": 16}}, {"id": 158, "type": "identifier", "text": "path_", "parent": 156, "children": [], "start_point": {"row": 28, "column": 16}, "end_point": {"row": 28, "column": 21}}, {"id": 159, "type": "declaration", "text": "RefCount<IORequestor> ioRequestor;", "parent": 122, "children": [160, 161, 165], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 38}}, {"id": 160, "type": "type_identifier", "text": "RefCount", "parent": 159, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 12}}, {"id": 161, "type": "ERROR", "text": "<IORequestor>", "parent": 159, "children": [162, 163, 164], "start_point": {"row": 29, "column": 12}, "end_point": {"row": 29, "column": 25}}, {"id": 162, "type": "<", "text": "<", "parent": 161, "children": [], "start_point": {"row": 29, "column": 12}, "end_point": {"row": 29, "column": 13}}, {"id": 163, "type": "identifier", "text": "IORequestor", "parent": 161, "children": [], "start_point": {"row": 29, "column": 13}, "end_point": {"row": 29, "column": 24}}, {"id": 164, "type": ">", "text": ">", "parent": 161, "children": [], "start_point": {"row": 29, "column": 24}, "end_point": {"row": 29, "column": 25}}, {"id": 165, "type": "identifier", "text": "ioRequestor", "parent": 159, "children": [], "start_point": {"row": 29, "column": 26}, "end_point": {"row": 29, "column": 37}}, {"id": 166, "type": "declaration", "text": "int fd;", "parent": 122, "children": [167, 168], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 11}}, {"id": 167, "type": "primitive_type", "text": "int", "parent": 166, "children": [], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 7}}, {"id": 168, "type": "identifier", "text": "fd", "parent": 166, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 10}}, {"id": 169, "type": "declaration", "text": "int64_t minOffset;", "parent": 122, "children": [170, 171], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 22}}, {"id": 170, "type": "primitive_type", "text": "int64_t", "parent": 169, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 11}}, {"id": 171, "type": "identifier", "text": "minOffset", "parent": 169, "children": [], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 21}}, {"id": 172, "type": "declaration", "text": "int64_t maxOffset;", "parent": 122, "children": [173, 174], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 22}}, {"id": 173, "type": "primitive_type", "text": "int64_t", "parent": 172, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 11}}, {"id": 174, "type": "identifier", "text": "maxOffset", "parent": 172, "children": [], "start_point": {"row": 36, "column": 12}, "end_point": {"row": 36, "column": 21}}, {"id": 175, "type": "declaration", "text": "bool error_;", "parent": 122, "children": [176, 177], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 16}}, {"id": 176, "type": "primitive_type", "text": "bool", "parent": 175, "children": [], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 8}}, {"id": 177, "type": "identifier", "text": "error_", "parent": 175, "children": [], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 15}}, {"id": 178, "type": "declaration", "text": "void doClose();", "parent": 122, "children": [179, 180], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 19}}, {"id": 179, "type": "primitive_type", "text": "void", "parent": 178, "children": [], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 8}}, {"id": 180, "type": "function_declarator", "text": "doClose()", "parent": 178, "children": [181, 182], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 18}}, {"id": 181, "type": "identifier", "text": "doClose", "parent": 180, "children": [], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 16}}, {"id": 182, "type": "parameter_list", "text": "()", "parent": 180, "children": [], "start_point": {"row": 40, "column": 16}, "end_point": {"row": 40, "column": 18}}, {"id": 183, "type": "declaration", "text": "CBDATA_CLASS(MmappedFile);", "parent": 122, "children": [184, 185], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 30}}, {"id": 184, "type": "type_identifier", "text": "CBDATA_CLASS", "parent": 183, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 16}}, {"id": 185, "type": "parenthesized_declarator", "text": "(MmappedFile)", "parent": 183, "children": [186], "start_point": {"row": 42, "column": 16}, "end_point": {"row": 42, "column": 29}}, {"id": 186, "type": "identifier", "text": "MmappedFile", "parent": 185, "children": [], "start_point": {"row": 42, "column": 17}, "end_point": {"row": 42, "column": 28}}, {"id": 187, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 6}}]}, "node_categories": {"declarations": {"functions": [15, 26, 34, 57, 77, 97, 108, 119, 126, 133, 141, 146, 151, 180], "variables": [20, 28, 30, 36, 53, 60, 63, 66, 73, 80, 83, 86, 93, 100, 104, 111, 115, 129, 154, 159, 166, 169, 172, 175, 178, 183], "classes": [], "imports": [6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [48, 50], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 16, 18, 25, 33, 40, 41, 47, 51, 54, 56, 58, 62, 64, 65, 67, 70, 72, 74, 76, 78, 82, 84, 85, 87, 90, 92, 94, 96, 98, 101, 105, 107, 109, 112, 116, 118, 120, 123, 125, 127, 130, 132, 134, 136, 138, 140, 142, 144, 145, 147, 149, 150, 152, 158, 160, 163, 165, 168, 171, 174, 177, 181, 184, 186, 187], "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": "MmappedFile", "text_snippet": "class MmappedFile : public DiskFile\n{\n\npublic:\n void *operator new(size_t);\n void operator del"}, {"node_id": 26, "universal_type": "function", "name": "unknown", "text_snippet": "new(size_t)"}, {"node_id": 34, "universal_type": "function", "name": "unknown", "text_snippet": "delete(void *)"}, {"node_id": 57, "universal_type": "function", "name": "unknown", "text_snippet": "open(int flags, mode_t mode, RefCount<IORequestor> callback)"}, {"node_id": 77, "universal_type": "function", "name": "unknown", "text_snippet": "create(int flags, mode_t mode, RefCount<IORequestor> callback)"}, {"node_id": 97, "universal_type": "function", "name": "unknown", "text_snippet": "read(ReadRequest *)"}, {"node_id": 108, "universal_type": "function", "name": "unknown", "text_snippet": "write(WriteRequest *)"}, {"node_id": 119, "universal_type": "function", "name": "unknown", "text_snippet": "close()"}, {"node_id": 126, "universal_type": "function", "name": "unknown", "text_snippet": "error()"}, {"node_id": 133, "universal_type": "function", "name": "unknown", "text_snippet": "getFD() const"}, {"node_id": 141, "universal_type": "function", "name": "unknown", "text_snippet": "canRead() const"}, {"node_id": 146, "universal_type": "function", "name": "unknown", "text_snippet": "canWrite() const"}, {"node_id": 151, "universal_type": "function", "name": "unknown", "text_snippet": "ioInProgress() const"}, {"node_id": 180, "universal_type": "function", "name": "unknown", "text_snippet": "doClose()"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"cbdata.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"DiskIO/DiskFile.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"DiskIO/IORequestor.h\"\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "#ifndef SQUID_MMAPPEDFILE_H\n#define SQUID_MMAPPEDFILE_H\n\n#include \"cbdata.h\"\n#include \"DiskIO/DiskFile.h\"\n#include \"DiskIO/IORequestor.h\"\n\nclass MmappedFile : public DiskFile\n{\n\npublic:\n void *operator new(size_t);\n void operator delete(void *);\n MmappedFile(char const *path);\n ~MmappedFile();\n virtual void open(int flags, mode_t mode, RefCount<IORequestor> callback);\n virtual void create(int flags, mode_t mode, RefCount<IORequestor> callback);\n virtual void read(ReadRequest *);\n virtual void write(WriteRequest *);\n virtual void close();\n virtual bool error() const;\n virtual int getFD() const { return fd;}\n\n virtual bool canRead() const;\n virtual bool canWrite() const;\n virtual bool ioInProgress() const;\n\nprivate:\n char const *path_;\n RefCount<IORequestor> ioRequestor;\n //RefCount<ReadRequest> readRequest;\n //RefCount<WriteRequest> writeRequest;\n int fd;\n\n // mmapped memory leads to SEGV and bus errors if it maps beyond file\n int64_t minOffset; ///< enforced if not negative (to preserve file headers)\n int64_t maxOffset; ///< enforced if not negative (to avoid crashes)\n\n bool error_;\n\n void doClose();\n\n CBDATA_CLASS(MmappedFile);\n};\n\n#endif /* SQUID_MMAPPEDFILE_H */\n"}
80,277
c
// For conditions of distribution and use, see copyright notice in LICENSE #pragma once #include "WebSocketServerApi.h" #include "Win.h" #include "FrameworkFwd.h" #include "WebSocketFwd.h" #include "kNetFwd.h" #include "WebSocketServer.h" #include "SyncState.h" #include "UserConnection.h" namespace WebSocket { class WEBSOCKETSERVER_API UserConnection : public Tundra::UserConnection { public: UserConnection(Urho3D::Context* context, ConnectionPtr connection_); ~UserConnection(); virtual Tundra::String ConnectionType() const { return "websocket"; } ConnectionPtr WebSocketConnection() const; void Send(const kNet::DataSerializer &data); /// Queue a network message to be sent to the client. All implementations may not use the reliable, inOrder, priority and contentID parameters. virtual void Send(kNet::message_id_t id, const char* data, size_t numBytes, bool reliable, bool inOrder, unsigned long priority = 100, unsigned long contentID = 0); ConnectionWeakPtr webSocketConnection; public: virtual void Disconnect(); virtual void Close(); }; }
29.77
39
(translation_unit) "// For conditions of distribution and use, see copyright notice in LICENSE \n \n#pragma once \n \n#include "WebSocketServerApi.h" \n#include "Win.h" \n \n#include "FrameworkFwd.h" \n#include "WebSocketFwd.h" \n#include "kNetFwd.h" \n \n#include "WebSocketServer.h" \n#include "SyncState.h" \n#include "UserConnection.h" \n \nnamespace WebSocket \n{ \n class WEBSOCKETSERVER_API UserConnection : public Tundra::UserConnection \n { \n public: \n UserConnection(Urho3D::Context* context, ConnectionPtr connection_); \n ~UserConnection(); \n \n virtual Tundra::String ConnectionType() const { return "websocket"; } \n \n ConnectionPtr WebSocketConnection() const; \n \n void Send(const kNet::DataSerializer &data); \n \n /// Queue a network message to be sent to the client. All implementations may not use the reliable, inOrder, priority and contentID parameters. \n virtual void Send(kNet::message_id_t id, const char* data, size_t numBytes, bool reliable, bool inOrder, unsigned long priority = 100, unsigned long contentID = 0); \n \n ConnectionWeakPtr webSocketConnection; \n \n public: \n virtual void Disconnect(); \n virtual void Close(); \n }; \n} \n" (comment) "// For conditions of distribution and use, see copyright notice in LICENSE " (preproc_call) "#pragma once \n" (preproc_directive) "#pragma" (preproc_arg) "once " (preproc_include) "#include "WebSocketServerApi.h" \n" (#include) "#include" (string_literal) ""WebSocketServerApi.h"" (") """ (string_content) "WebSocketServerApi.h" (") """ (preproc_include) "#include "Win.h" \n" (#include) "#include" (string_literal) ""Win.h"" (") """ (string_content) "Win.h" (") """ (preproc_include) "#include "FrameworkFwd.h" \n" (#include) "#include" (string_literal) ""FrameworkFwd.h"" (") """ (string_content) "FrameworkFwd.h" (") """ (preproc_include) "#include "WebSocketFwd.h" \n" (#include) "#include" (string_literal) ""WebSocketFwd.h"" (") """ (string_content) "WebSocketFwd.h" (") """ (preproc_include) "#include "kNetFwd.h" \n" (#include) "#include" (string_literal) ""kNetFwd.h"" (") """ (string_content) "kNetFwd.h" (") """ (preproc_include) "#include "WebSocketServer.h" \n" (#include) "#include" (string_literal) ""WebSocketServer.h"" (") """ (string_content) "WebSocketServer.h" (") """ (preproc_include) "#include "SyncState.h" \n" (#include) "#include" (string_literal) ""SyncState.h"" (") """ (string_content) "SyncState.h" (") """ (preproc_include) "#include "UserConnection.h" \n" (#include) "#include" (string_literal) ""UserConnection.h"" (") """ (string_content) "UserConnection.h" (") """ (function_definition) "namespace WebSocket \n{ \n class WEBSOCKETSERVER_API UserConnection : public Tundra::UserConnection \n { \n public: \n UserConnection(Urho3D::Context* context, ConnectionPtr connection_); \n ~UserConnection(); \n \n virtual Tundra::String ConnectionType() const { return "websocket"; } \n \n ConnectionPtr WebSocketConnection() const; \n \n void Send(const kNet::DataSerializer &data); \n \n /// Queue a network message to be sent to the client. All implementations may not use the reliable, inOrder, priority and contentID parameters. \n virtual void Send(kNet::message_id_t id, const char* data, size_t numBytes, bool reliable, bool inOrder, unsigned long priority = 100, unsigned long contentID = 0); \n \n ConnectionWeakPtr webSocketConnection; \n \n public: \n virtual void Disconnect(); \n virtual void Close(); \n }; \n}" (type_identifier) "namespace" (identifier) "WebSocket" (compound_statement) "{ \n class WEBSOCKETSERVER_API UserConnection : public Tundra::UserConnection \n { \n public: \n UserConnection(Urho3D::Context* context, ConnectionPtr connection_); \n ~UserConnection(); \n \n virtual Tundra::String ConnectionType() const { return "websocket"; } \n \n ConnectionPtr WebSocketConnection() const; \n \n void Send(const kNet::DataSerializer &data); \n \n /// Queue a network message to be sent to the client. All implementations may not use the reliable, inOrder, priority and contentID parameters. \n virtual void Send(kNet::message_id_t id, const char* data, size_t numBytes, bool reliable, bool inOrder, unsigned long priority = 100, unsigned long contentID = 0); \n \n ConnectionWeakPtr webSocketConnection; \n \n public: \n virtual void Disconnect(); \n virtual void Close(); \n }; \n}" ({) "{" (declaration) "class WEBSOCKETSERVER_API" (type_identifier) "class" (identifier) "WEBSOCKETSERVER_API" (;) "" (labeled_statement) "UserConnection : public Tundra::UserConnection \n { \n public: \n UserConnection(Urho3D::Context* context, ConnectionPtr connection_); \n ~UserConnection(); \n \n virtual Tundra::String ConnectionType() const { return "websocket"; } \n \n ConnectionPtr WebSocketConnection() const; \n \n void Send(const kNet::DataSerializer &data); \n \n /// Queue a network message to be sent to the client. All implementations may not use the reliable, inOrder, priority and contentID parameters. \n virtual void Send(kNet::message_id_t id, const char* data, size_t numBytes, bool reliable, bool inOrder, unsigned long priority = 100, unsigned long contentID = 0); \n \n ConnectionWeakPtr webSocketConnection; \n \n public: \n virtual void Disconnect(); \n virtual void Close(); \n }" (statement_identifier) "UserConnection" (:) ":" (ERROR) "public Tundra::UserConnection" (type_identifier) "public" (ERROR) "Tundra::" (identifier) "Tundra" (:) ":" (:) ":" (identifier) "UserConnection" (compound_statement) "{ \n public: \n UserConnection(Urho3D::Context* context, ConnectionPtr connection_); \n ~UserConnection(); \n \n virtual Tundra::String ConnectionType() const { return "websocket"; } \n \n ConnectionPtr WebSocketConnection() const; \n \n void Send(const kNet::DataSerializer &data); \n \n /// Queue a network message to be sent to the client. All implementations may not use the reliable, inOrder, priority and contentID parameters. \n virtual void Send(kNet::message_id_t id, const char* data, size_t numBytes, bool reliable, bool inOrder, unsigned long priority = 100, unsigned long contentID = 0); \n \n ConnectionWeakPtr webSocketConnection; \n \n public: \n virtual void Disconnect(); \n virtual void Close(); \n }" ({) "{" (labeled_statement) "public: \n UserConnection(Urho3D::Context* context, ConnectionPtr connection_);" (statement_identifier) "public" (:) ":" (labeled_statement) "UserConnection(Urho3D::Context* context, ConnectionPtr connection_);" (statement_identifier) "UserConnection" (ERROR) "(Urho3D:" (() "(" (type_descriptor) "Urho3D" (type_identifier) "Urho3D" (:) ":" (:) ":" (declaration) "Context* context, ConnectionPtr connection_);" (type_identifier) "Context" (pointer_declarator) "* context" (*) "*" (identifier) "context" (,) "," (identifier) "ConnectionPtr" (ERROR) "connection_)" (identifier) "connection_" ()) ")" (;) ";" (expression_statement) "~UserConnection();" (unary_expression) "~UserConnection()" (~) "~" (call_expression) "UserConnection()" (identifier) "UserConnection" (argument_list) "()" (() "(" ()) ")" (;) ";" (ERROR) "virtual Tundra::String ConnectionType() const" (type_identifier) "virtual" (ERROR) "Tundra::String" (identifier) "Tundra" (:) ":" (:) ":" (identifier) "String" (function_declarator) "ConnectionType()" (identifier) "ConnectionType" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{ return "websocket"; }" ({) "{" (return_statement) "return "websocket";" (return) "return" (string_literal) ""websocket"" (") """ (string_content) "websocket" (") """ (;) ";" (}) "}" (ERROR) "ConnectionPtr WebSocketConnection() const; \n \n void Send(const kNet::DataSerializer &data); \n \n /// Queue a network message to be sent to the client. All implementations may not use the reliable, inOrder, priority and contentID parameters. \n virtual void Send(kNet::message_id_t id, const char* data, size_t numBytes, bool reliable, bool inOrder, unsigned long priority = 100, unsigned long contentID = 0); \n \n ConnectionWeakPtr webSocketConnection; \n \n public: \n virtual void Disconnect(); \n virtual void Close();" (type_identifier) "ConnectionPtr" (function_declarator) "WebSocketConnection()" (identifier) "WebSocketConnection" (parameter_list) "()" (() "(" ()) ")" (declaration) "const; \n \n void Send(const kNet::DataSerializer &data);" (type_qualifier) "const" (const) "const" (ERROR) ";" (;) ";" (primitive_type) "void" (function_declarator) "Send(const kNet::DataSerializer &data)" (identifier) "Send" (parameter_list) "(const kNet::DataSerializer &data)" (() "(" (parameter_declaration) "const kNet::DataSerializer &data" (type_qualifier) "const" (const) "const" (type_identifier) "kNet" (ERROR) "::DataSerializer &" (:) ":" (:) ":" (identifier) "DataSerializer" (&) "&" (identifier) "data" ()) ")" (;) ";" (comment) "/// Queue a network message to be sent to the client. All implementations may not use the reliable, inOrder, priority and contentID parameters. " (declaration) "virtual void Send(kNet::message_id_t id, const char* data, size_t numBytes, bool reliable, bool inOrder, unsigned long priority = 100, unsigned long contentID = 0);" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (init_declarator) "Send(kNet::message_id_t id, const char* data, size_t numBytes, bool reliable, bool inOrder, unsigned long priority = 100" (function_declarator) "Send(kNet::message_id_t id, const char* data, size_t numBytes, bool reliable, bool inOrder, unsigned long priority" (identifier) "Send" (parameter_list) "(kNet::message_id_t id, const char* data, size_t numBytes, bool reliable, bool inOrder, unsigned long priority" (() "(" (parameter_declaration) "kNet::message_id_t id" (type_identifier) "kNet" (ERROR) "::message_id_t" (:) ":" (:) ":" (identifier) "message_id_t" (identifier) "id" (,) "," (parameter_declaration) "const char* data" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* data" (*) "*" (identifier) "data" (,) "," (parameter_declaration) "size_t numBytes" (primitive_type) "size_t" (identifier) "numBytes" (,) "," (parameter_declaration) "bool reliable" (primitive_type) "bool" (identifier) "reliable" (,) "," (parameter_declaration) "bool inOrder" (primitive_type) "bool" (identifier) "inOrder" (,) "," (parameter_declaration) "unsigned long priority" (sized_type_specifier) "unsigned long priority" (unsigned) "unsigned" (long) "long" (type_identifier) "priority" ()) "" (=) "=" (number_literal) "100" (,) "," (ERROR) "unsigned long" (identifier) "unsigned" (identifier) "long" (init_declarator) "contentID = 0" (identifier) "contentID" (=) "=" (number_literal) "0" (ERROR) ")" ()) ")" (;) ";" (declaration) "ConnectionWeakPtr webSocketConnection;" (type_identifier) "ConnectionWeakPtr" (identifier) "webSocketConnection" (;) ";" (declaration) "public: \n virtual void Disconnect();" (type_identifier) "public" (ERROR) ": \n virtual void" (:) ":" (identifier) "virtual" (identifier) "void" (function_declarator) "Disconnect()" (identifier) "Disconnect" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual void Close();" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "Close()" (identifier) "Close" (parameter_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}"
245
15
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 29.77, "nodes": 140, "errors": 0, "source_hash": "771e7ba45d64395dfcd2d625797ce3365dd5357e85b1a1f44ce7d484c8eaf194", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\r\n", "parent": null, "children": [1, 2], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once\r", "parent": 0, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 13}}, {"id": 3, "type": "preproc_include", "text": "#include \"WebSocketServerApi.h\"\r\n", "parent": null, "children": [4, 5], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 5, "type": "string_literal", "text": "\"WebSocketServerApi.h\"", "parent": 3, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 31}}, {"id": 6, "type": "preproc_include", "text": "#include \"Win.h\"\r\n", "parent": null, "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": "\"Win.h\"", "parent": 6, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 16}}, {"id": 9, "type": "preproc_include", "text": "#include \"FrameworkFwd.h\"\r\n", "parent": null, "children": [10, 11], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"FrameworkFwd.h\"", "parent": 9, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 25}}, {"id": 12, "type": "preproc_include", "text": "#include \"WebSocketFwd.h\"\r\n", "parent": null, "children": [13, 14], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"WebSocketFwd.h\"", "parent": 12, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 25}}, {"id": 15, "type": "preproc_include", "text": "#include \"kNetFwd.h\"\r\n", "parent": null, "children": [16, 17], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 17, "type": "string_literal", "text": "\"kNetFwd.h\"", "parent": 15, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 20}}, {"id": 18, "type": "preproc_include", "text": "#include \"WebSocketServer.h\"\r\n", "parent": null, "children": [19, 20], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 20, "type": "string_literal", "text": "\"WebSocketServer.h\"", "parent": 18, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 28}}, {"id": 21, "type": "preproc_include", "text": "#include \"SyncState.h\"\r\n", "parent": null, "children": [22, 23], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 23, "type": "string_literal", "text": "\"SyncState.h\"", "parent": 21, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 22}}, {"id": 24, "type": "preproc_include", "text": "#include \"UserConnection.h\"\r\n", "parent": null, "children": [25, 26], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 26, "type": "string_literal", "text": "\"UserConnection.h\"", "parent": 24, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 27}}, {"id": 27, "type": "function_definition", "text": "namespace WebSocket\r\n{\r\n class WEBSOCKETSERVER_API UserConnection : public Tundra::UserConnection\r\n {\r\n public:\r\n UserConnection(Urho3D::Context* context, ConnectionPtr connection_);\r\n ~UserConnection();\r\n\r\n virtual Tundra::String ConnectionType() const { return \"websocket\"; }\r\n\r\n ConnectionPtr WebSocketConnection() const;\r\n\r\n void Send(const kNet::DataSerializer &data);\r\n\r\n /// Queue a network message to be sent to the client. All implementations may not use the reliable, inOrder, priority and contentID parameters.\r\n virtual void Send(kNet::message_id_t id, const char* data, size_t numBytes, bool reliable, bool inOrder, unsigned long priority = 100, unsigned long contentID = 0);\r\n\r\n ConnectionWeakPtr webSocketConnection;\r\n\r\n public:\r\n virtual void Disconnect();\r\n virtual void Close();\r\n };\r\n}", "parent": null, "children": [28, 29], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 38, "column": 1}}, {"id": 28, "type": "type_identifier", "text": "namespace", "parent": 27, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 9}}, {"id": 29, "type": "identifier", "text": "WebSocket", "parent": 27, "children": [], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 19}}, {"id": 30, "type": "declaration", "text": "class WEBSOCKETSERVER_API", "parent": 27, "children": [31], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 29}}, {"id": 31, "type": "identifier", "text": "WEBSOCKETSERVER_API", "parent": 30, "children": [], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 29}}, {"id": 32, "type": "labeled_statement", "text": "UserConnection : public Tundra::UserConnection\r\n {\r\n public:\r\n UserConnection(Urho3D::Context* context, ConnectionPtr connection_);\r\n ~UserConnection();\r\n\r\n virtual Tundra::String ConnectionType() const { return \"websocket\"; }\r\n\r\n ConnectionPtr WebSocketConnection() const;\r\n\r\n void Send(const kNet::DataSerializer &data);\r\n\r\n /// Queue a network message to be sent to the client. All implementations may not use the reliable, inOrder, priority and contentID parameters.\r\n virtual void Send(kNet::message_id_t id, const char* data, size_t numBytes, bool reliable, bool inOrder, unsigned long priority = 100, unsigned long contentID = 0);\r\n\r\n ConnectionWeakPtr webSocketConnection;\r\n\r\n public:\r\n virtual void Disconnect();\r\n virtual void Close();\r\n }", "parent": 27, "children": [33, 34], "start_point": {"row": 17, "column": 30}, "end_point": {"row": 37, "column": 5}}, {"id": 33, "type": "statement_identifier", "text": "UserConnection", "parent": 32, "children": [], "start_point": {"row": 17, "column": 30}, "end_point": {"row": 17, "column": 44}}, {"id": 34, "type": "ERROR", "text": "public Tundra::UserConnection", "parent": 32, "children": [35, 37], "start_point": {"row": 17, "column": 47}, "end_point": {"row": 17, "column": 76}}, {"id": 35, "type": "ERROR", "text": "Tundra::", "parent": 34, "children": [36], "start_point": {"row": 17, "column": 54}, "end_point": {"row": 17, "column": 62}}, {"id": 36, "type": "identifier", "text": "Tundra", "parent": 35, "children": [], "start_point": {"row": 17, "column": 54}, "end_point": {"row": 17, "column": 60}}, {"id": 37, "type": "identifier", "text": "UserConnection", "parent": 34, "children": [], "start_point": {"row": 17, "column": 62}, "end_point": {"row": 17, "column": 76}}, {"id": 38, "type": "labeled_statement", "text": "public:\r\n UserConnection(Urho3D::Context* context, ConnectionPtr connection_);", "parent": 32, "children": [39], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 20, "column": 76}}, {"id": 39, "type": "labeled_statement", "text": "UserConnection(Urho3D::Context* context, ConnectionPtr connection_);", "parent": 38, "children": [40, 41, 44], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 76}}, {"id": 40, "type": "statement_identifier", "text": "UserConnection", "parent": 39, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 22}}, {"id": 41, "type": "ERROR", "text": "(Urho3D:", "parent": 39, "children": [42], "start_point": {"row": 20, "column": 22}, "end_point": {"row": 20, "column": 30}}, {"id": 42, "type": "type_descriptor", "text": "Urho3D", "parent": 41, "children": [43], "start_point": {"row": 20, "column": 23}, "end_point": {"row": 20, "column": 29}}, {"id": 43, "type": "type_identifier", "text": "Urho3D", "parent": 42, "children": [], "start_point": {"row": 20, "column": 23}, "end_point": {"row": 20, "column": 29}}, {"id": 44, "type": "declaration", "text": "Context* context, ConnectionPtr connection_);", "parent": 39, "children": [45, 46, 49, 50], "start_point": {"row": 20, "column": 31}, "end_point": {"row": 20, "column": 76}}, {"id": 45, "type": "type_identifier", "text": "Context", "parent": 44, "children": [], "start_point": {"row": 20, "column": 31}, "end_point": {"row": 20, "column": 38}}, {"id": 46, "type": "pointer_declarator", "text": "* context", "parent": 44, "children": [47, 48], "start_point": {"row": 20, "column": 38}, "end_point": {"row": 20, "column": 47}}, {"id": 47, "type": "*", "text": "*", "parent": 46, "children": [], "start_point": {"row": 20, "column": 38}, "end_point": {"row": 20, "column": 39}}, {"id": 48, "type": "identifier", "text": "context", "parent": 46, "children": [], "start_point": {"row": 20, "column": 40}, "end_point": {"row": 20, "column": 47}}, {"id": 49, "type": "identifier", "text": "ConnectionPtr", "parent": 44, "children": [], "start_point": {"row": 20, "column": 49}, "end_point": {"row": 20, "column": 62}}, {"id": 50, "type": "ERROR", "text": "connection_)", "parent": 44, "children": [51], "start_point": {"row": 20, "column": 63}, "end_point": {"row": 20, "column": 75}}, {"id": 51, "type": "identifier", "text": "connection_", "parent": 50, "children": [], "start_point": {"row": 20, "column": 63}, "end_point": {"row": 20, "column": 74}}, {"id": 52, "type": "unary_expression", "text": "~UserConnection()", "parent": 32, "children": [53, 54], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 25}}, {"id": 53, "type": "~", "text": "~", "parent": 52, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 9}}, {"id": 54, "type": "call_expression", "text": "UserConnection()", "parent": 52, "children": [55, 56], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 25}}, {"id": 55, "type": "identifier", "text": "UserConnection", "parent": 54, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 23}}, {"id": 56, "type": "argument_list", "text": "()", "parent": 54, "children": [], "start_point": {"row": 21, "column": 23}, "end_point": {"row": 21, "column": 25}}, {"id": 57, "type": "ERROR", "text": "virtual Tundra::String ConnectionType() const", "parent": 32, "children": [58, 59, 62], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 53}}, {"id": 58, "type": "type_identifier", "text": "virtual", "parent": 57, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 15}}, {"id": 59, "type": "ERROR", "text": "Tundra::String", "parent": 57, "children": [60, 61], "start_point": {"row": 23, "column": 16}, "end_point": {"row": 23, "column": 30}}, {"id": 60, "type": "identifier", "text": "Tundra", "parent": 59, "children": [], "start_point": {"row": 23, "column": 16}, "end_point": {"row": 23, "column": 22}}, {"id": 61, "type": "identifier", "text": "String", "parent": 59, "children": [], "start_point": {"row": 23, "column": 24}, "end_point": {"row": 23, "column": 30}}, {"id": 62, "type": "function_declarator", "text": "ConnectionType()", "parent": 57, "children": [63, 64], "start_point": {"row": 23, "column": 31}, "end_point": {"row": 23, "column": 47}}, {"id": 63, "type": "identifier", "text": "ConnectionType", "parent": 62, "children": [], "start_point": {"row": 23, "column": 31}, "end_point": {"row": 23, "column": 45}}, {"id": 64, "type": "parameter_list", "text": "()", "parent": 62, "children": [], "start_point": {"row": 23, "column": 45}, "end_point": {"row": 23, "column": 47}}, {"id": 65, "type": "return_statement", "text": "return \"websocket\";", "parent": 32, "children": [66], "start_point": {"row": 23, "column": 56}, "end_point": {"row": 23, "column": 75}}, {"id": 66, "type": "string_literal", "text": "\"websocket\"", "parent": 65, "children": [], "start_point": {"row": 23, "column": 63}, "end_point": {"row": 23, "column": 74}}, {"id": 67, "type": "ERROR", "text": "ConnectionPtr WebSocketConnection() const;\r\n\r\n void Send(const kNet::DataSerializer &data);\r\n\r\n /// Queue a network message to be sent to the client. All implementations may not use the reliable, inOrder, priority and contentID parameters.\r\n virtual void Send(kNet::message_id_t id, const char* data, size_t numBytes, bool reliable, bool inOrder, unsigned long priority = 100, unsigned long contentID = 0);\r\n\r\n ConnectionWeakPtr webSocketConnection;\r\n\r\n public:\r\n virtual void Disconnect();\r\n virtual void Close();", "parent": 32, "children": [68, 69, 72, 82, 123, 126, 133], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 36, "column": 29}}, {"id": 68, "type": "type_identifier", "text": "ConnectionPtr", "parent": 67, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 21}}, {"id": 69, "type": "function_declarator", "text": "WebSocketConnection()", "parent": 67, "children": [70, 71], "start_point": {"row": 25, "column": 22}, "end_point": {"row": 25, "column": 43}}, {"id": 70, "type": "identifier", "text": "WebSocketConnection", "parent": 69, "children": [], "start_point": {"row": 25, "column": 22}, "end_point": {"row": 25, "column": 41}}, {"id": 71, "type": "parameter_list", "text": "()", "parent": 69, "children": [], "start_point": {"row": 25, "column": 41}, "end_point": {"row": 25, "column": 43}}, {"id": 72, "type": "declaration", "text": "const;\r\n\r\n void Send(const kNet::DataSerializer &data);", "parent": 67, "children": [73, 74], "start_point": {"row": 25, "column": 44}, "end_point": {"row": 27, "column": 52}}, {"id": 73, "type": "primitive_type", "text": "void", "parent": 72, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 12}}, {"id": 74, "type": "function_declarator", "text": "Send(const kNet::DataSerializer &data)", "parent": 72, "children": [75, 76], "start_point": {"row": 27, "column": 13}, "end_point": {"row": 27, "column": 51}}, {"id": 75, "type": "identifier", "text": "Send", "parent": 74, "children": [], "start_point": {"row": 27, "column": 13}, "end_point": {"row": 27, "column": 17}}, {"id": 76, "type": "parameter_list", "text": "(const kNet::DataSerializer &data)", "parent": 74, "children": [77], "start_point": {"row": 27, "column": 17}, "end_point": {"row": 27, "column": 51}}, {"id": 77, "type": "parameter_declaration", "text": "const kNet::DataSerializer &data", "parent": 76, "children": [78, 79, 81], "start_point": {"row": 27, "column": 18}, "end_point": {"row": 27, "column": 50}}, {"id": 78, "type": "type_identifier", "text": "kNet", "parent": 77, "children": [], "start_point": {"row": 27, "column": 24}, "end_point": {"row": 27, "column": 28}}, {"id": 79, "type": "ERROR", "text": "::DataSerializer &", "parent": 77, "children": [80], "start_point": {"row": 27, "column": 28}, "end_point": {"row": 27, "column": 46}}, {"id": 80, "type": "identifier", "text": "DataSerializer", "parent": 79, "children": [], "start_point": {"row": 27, "column": 30}, "end_point": {"row": 27, "column": 44}}, {"id": 81, "type": "identifier", "text": "data", "parent": 77, "children": [], "start_point": {"row": 27, "column": 46}, "end_point": {"row": 27, "column": 50}}, {"id": 82, "type": "declaration", "text": "virtual void Send(kNet::message_id_t id, const char* data, size_t numBytes, bool reliable, bool inOrder, unsigned long priority = 100, unsigned long contentID = 0);", "parent": 67, "children": [83, 84, 86, 116, 119], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 172}}, {"id": 83, "type": "type_identifier", "text": "virtual", "parent": 82, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 15}}, {"id": 84, "type": "ERROR", "text": "void", "parent": 82, "children": [85], "start_point": {"row": 30, "column": 16}, "end_point": {"row": 30, "column": 20}}, {"id": 85, "type": "identifier", "text": "void", "parent": 84, "children": [], "start_point": {"row": 30, "column": 16}, "end_point": {"row": 30, "column": 20}}, {"id": 86, "type": "init_declarator", "text": "Send(kNet::message_id_t id, const char* data, size_t numBytes, bool reliable, bool inOrder, unsigned long priority = 100", "parent": 82, "children": [87, 114, 115], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 141}}, {"id": 87, "type": "function_declarator", "text": "Send(kNet::message_id_t id, const char* data, size_t numBytes, bool reliable, bool inOrder, unsigned long priority", "parent": 86, "children": [88, 89], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 135}}, {"id": 88, "type": "identifier", "text": "Send", "parent": 87, "children": [], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 25}}, {"id": 89, "type": "parameter_list", "text": "(kNet::message_id_t id, const char* data, size_t numBytes, bool reliable, bool inOrder, unsigned long priority", "parent": 87, "children": [90, 95, 100, 103, 106, 109], "start_point": {"row": 30, "column": 25}, "end_point": {"row": 30, "column": 135}}, {"id": 90, "type": "parameter_declaration", "text": "kNet::message_id_t id", "parent": 89, "children": [91, 92, 94], "start_point": {"row": 30, "column": 26}, "end_point": {"row": 30, "column": 47}}, {"id": 91, "type": "type_identifier", "text": "kNet", "parent": 90, "children": [], "start_point": {"row": 30, "column": 26}, "end_point": {"row": 30, "column": 30}}, {"id": 92, "type": "ERROR", "text": "::message_id_t", "parent": 90, "children": [93], "start_point": {"row": 30, "column": 30}, "end_point": {"row": 30, "column": 44}}, {"id": 93, "type": "identifier", "text": "message_id_t", "parent": 92, "children": [], "start_point": {"row": 30, "column": 32}, "end_point": {"row": 30, "column": 44}}, {"id": 94, "type": "identifier", "text": "id", "parent": 90, "children": [], "start_point": {"row": 30, "column": 45}, "end_point": {"row": 30, "column": 47}}, {"id": 95, "type": "parameter_declaration", "text": "const char* data", "parent": 89, "children": [96, 97], "start_point": {"row": 30, "column": 49}, "end_point": {"row": 30, "column": 65}}, {"id": 96, "type": "primitive_type", "text": "char", "parent": 95, "children": [], "start_point": {"row": 30, "column": 55}, "end_point": {"row": 30, "column": 59}}, {"id": 97, "type": "pointer_declarator", "text": "* data", "parent": 95, "children": [98, 99], "start_point": {"row": 30, "column": 59}, "end_point": {"row": 30, "column": 65}}, {"id": 98, "type": "*", "text": "*", "parent": 97, "children": [], "start_point": {"row": 30, "column": 59}, "end_point": {"row": 30, "column": 60}}, {"id": 99, "type": "identifier", "text": "data", "parent": 97, "children": [], "start_point": {"row": 30, "column": 61}, "end_point": {"row": 30, "column": 65}}, {"id": 100, "type": "parameter_declaration", "text": "size_t numBytes", "parent": 89, "children": [101, 102], "start_point": {"row": 30, "column": 67}, "end_point": {"row": 30, "column": 82}}, {"id": 101, "type": "primitive_type", "text": "size_t", "parent": 100, "children": [], "start_point": {"row": 30, "column": 67}, "end_point": {"row": 30, "column": 73}}, {"id": 102, "type": "identifier", "text": "numBytes", "parent": 100, "children": [], "start_point": {"row": 30, "column": 74}, "end_point": {"row": 30, "column": 82}}, {"id": 103, "type": "parameter_declaration", "text": "bool reliable", "parent": 89, "children": [104, 105], "start_point": {"row": 30, "column": 84}, "end_point": {"row": 30, "column": 97}}, {"id": 104, "type": "primitive_type", "text": "bool", "parent": 103, "children": [], "start_point": {"row": 30, "column": 84}, "end_point": {"row": 30, "column": 88}}, {"id": 105, "type": "identifier", "text": "reliable", "parent": 103, "children": [], "start_point": {"row": 30, "column": 89}, "end_point": {"row": 30, "column": 97}}, {"id": 106, "type": "parameter_declaration", "text": "bool inOrder", "parent": 89, "children": [107, 108], "start_point": {"row": 30, "column": 99}, "end_point": {"row": 30, "column": 111}}, {"id": 107, "type": "primitive_type", "text": "bool", "parent": 106, "children": [], "start_point": {"row": 30, "column": 99}, "end_point": {"row": 30, "column": 103}}, {"id": 108, "type": "identifier", "text": "inOrder", "parent": 106, "children": [], "start_point": {"row": 30, "column": 104}, "end_point": {"row": 30, "column": 111}}, {"id": 109, "type": "parameter_declaration", "text": "unsigned long priority", "parent": 89, "children": [110], "start_point": {"row": 30, "column": 113}, "end_point": {"row": 30, "column": 135}}, {"id": 110, "type": "sized_type_specifier", "text": "unsigned long priority", "parent": 109, "children": [111, 112, 113], "start_point": {"row": 30, "column": 113}, "end_point": {"row": 30, "column": 135}}, {"id": 111, "type": "unsigned", "text": "unsigned", "parent": 110, "children": [], "start_point": {"row": 30, "column": 113}, "end_point": {"row": 30, "column": 121}}, {"id": 112, "type": "long", "text": "long", "parent": 110, "children": [], "start_point": {"row": 30, "column": 122}, "end_point": {"row": 30, "column": 126}}, {"id": 113, "type": "type_identifier", "text": "priority", "parent": 110, "children": [], "start_point": {"row": 30, "column": 127}, "end_point": {"row": 30, "column": 135}}, {"id": 114, "type": "=", "text": "=", "parent": 86, "children": [], "start_point": {"row": 30, "column": 136}, "end_point": {"row": 30, "column": 137}}, {"id": 115, "type": "number_literal", "text": "100", "parent": 86, "children": [], "start_point": {"row": 30, "column": 138}, "end_point": {"row": 30, "column": 141}}, {"id": 116, "type": "ERROR", "text": "unsigned long", "parent": 82, "children": [117, 118], "start_point": {"row": 30, "column": 143}, "end_point": {"row": 30, "column": 156}}, {"id": 117, "type": "identifier", "text": "unsigned", "parent": 116, "children": [], "start_point": {"row": 30, "column": 143}, "end_point": {"row": 30, "column": 151}}, {"id": 118, "type": "identifier", "text": "long", "parent": 116, "children": [], "start_point": {"row": 30, "column": 152}, "end_point": {"row": 30, "column": 156}}, {"id": 119, "type": "init_declarator", "text": "contentID = 0", "parent": 82, "children": [120, 121, 122], "start_point": {"row": 30, "column": 157}, "end_point": {"row": 30, "column": 170}}, {"id": 120, "type": "identifier", "text": "contentID", "parent": 119, "children": [], "start_point": {"row": 30, "column": 157}, "end_point": {"row": 30, "column": 166}}, {"id": 121, "type": "=", "text": "=", "parent": 119, "children": [], "start_point": {"row": 30, "column": 167}, "end_point": {"row": 30, "column": 168}}, {"id": 122, "type": "number_literal", "text": "0", "parent": 119, "children": [], "start_point": {"row": 30, "column": 169}, "end_point": {"row": 30, "column": 170}}, {"id": 123, "type": "declaration", "text": "ConnectionWeakPtr webSocketConnection;", "parent": 67, "children": [124, 125], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 46}}, {"id": 124, "type": "type_identifier", "text": "ConnectionWeakPtr", "parent": 123, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 25}}, {"id": 125, "type": "identifier", "text": "webSocketConnection", "parent": 123, "children": [], "start_point": {"row": 32, "column": 26}, "end_point": {"row": 32, "column": 45}}, {"id": 126, "type": "declaration", "text": "public:\r\n virtual void Disconnect();", "parent": 67, "children": [127, 130], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 35, "column": 34}}, {"id": 127, "type": "ERROR", "text": ":\r\n virtual void", "parent": 126, "children": [128, 129], "start_point": {"row": 34, "column": 10}, "end_point": {"row": 35, "column": 20}}, {"id": 128, "type": "identifier", "text": "virtual", "parent": 127, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 15}}, {"id": 129, "type": "identifier", "text": "void", "parent": 127, "children": [], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 20}}, {"id": 130, "type": "function_declarator", "text": "Disconnect()", "parent": 126, "children": [131, 132], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 33}}, {"id": 131, "type": "identifier", "text": "Disconnect", "parent": 130, "children": [], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 31}}, {"id": 132, "type": "parameter_list", "text": "()", "parent": 130, "children": [], "start_point": {"row": 35, "column": 31}, "end_point": {"row": 35, "column": 33}}, {"id": 133, "type": "declaration", "text": "virtual void Close();", "parent": 67, "children": [134, 135, 137], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 29}}, {"id": 134, "type": "type_identifier", "text": "virtual", "parent": 133, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 15}}, {"id": 135, "type": "ERROR", "text": "void", "parent": 133, "children": [136], "start_point": {"row": 36, "column": 16}, "end_point": {"row": 36, "column": 20}}, {"id": 136, "type": "identifier", "text": "void", "parent": 135, "children": [], "start_point": {"row": 36, "column": 16}, "end_point": {"row": 36, "column": 20}}, {"id": 137, "type": "function_declarator", "text": "Close()", "parent": 133, "children": [138, 139], "start_point": {"row": 36, "column": 21}, "end_point": {"row": 36, "column": 28}}, {"id": 138, "type": "identifier", "text": "Close", "parent": 137, "children": [], "start_point": {"row": 36, "column": 21}, "end_point": {"row": 36, "column": 26}}, {"id": 139, "type": "parameter_list", "text": "()", "parent": 137, "children": [], "start_point": {"row": 36, "column": 26}, "end_point": {"row": 36, "column": 28}}]}, "node_categories": {"declarations": {"functions": [27, 62, 69, 74, 87, 130, 137], "variables": [30, 44, 72, 77, 82, 90, 95, 100, 103, 106, 109, 123, 126, 133], "classes": [], "imports": [3, 4, 6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25], "modules": [], "enums": []}, "statements": {"expressions": [52, 54], "assignments": [], "loops": [], "conditionals": [28, 29, 31, 33, 36, 37, 40, 43, 45, 48, 49, 51, 55, 58, 60, 61, 63, 68, 70, 75, 78, 80, 81, 83, 85, 88, 91, 93, 94, 99, 102, 105, 108, 110, 113, 117, 118, 120, 124, 125, 128, 129, 131, 134, 136, 138], "returns": [65], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 11, 14, 17, 20, 23, 26, 66, 115, 122], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 27, "universal_type": "function", "name": "WEBSOCKETSERVER_API", "text_snippet": "namespace WebSocket\r\n{\r\n class WEBSOCKETSERVER_API UserConnection : public Tundra::UserConnection"}, {"node_id": 62, "universal_type": "function", "name": "unknown", "text_snippet": "ConnectionType()"}, {"node_id": 69, "universal_type": "function", "name": "unknown", "text_snippet": "WebSocketConnection()"}, {"node_id": 74, "universal_type": "function", "name": "unknown", "text_snippet": "Send(const kNet::DataSerializer &data)"}, {"node_id": 87, "universal_type": "function", "name": "reliable,", "text_snippet": "Send(kNet::message_id_t id, const char* data, size_t numBytes, bool reliable, bool inOrder, unsigned"}, {"node_id": 130, "universal_type": "function", "name": "unknown", "text_snippet": "Disconnect()"}, {"node_id": 137, "universal_type": "function", "name": "unknown", "text_snippet": "Close()"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include \"WebSocketServerApi.h\"\r\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"Win.h\"\r\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"FrameworkFwd.h\"\r\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"WebSocketFwd.h\"\r\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"kNetFwd.h\"\r\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"WebSocketServer.h\"\r\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include \"SyncState.h\"\r\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include \"UserConnection.h\"\r\n"}, {"node_id": 25, "text": "#include"}]}, "original_source_code": "// For conditions of distribution and use, see copyright notice in LICENSE\r\n\r\n#pragma once\r\n\r\n#include \"WebSocketServerApi.h\"\r\n#include \"Win.h\"\r\n\r\n#include \"FrameworkFwd.h\"\r\n#include \"WebSocketFwd.h\"\r\n#include \"kNetFwd.h\"\r\n\r\n#include \"WebSocketServer.h\"\r\n#include \"SyncState.h\"\r\n#include \"UserConnection.h\"\r\n\r\nnamespace WebSocket\r\n{\r\n class WEBSOCKETSERVER_API UserConnection : public Tundra::UserConnection\r\n {\r\n public:\r\n UserConnection(Urho3D::Context* context, ConnectionPtr connection_);\r\n ~UserConnection();\r\n\r\n virtual Tundra::String ConnectionType() const { return \"websocket\"; }\r\n\r\n ConnectionPtr WebSocketConnection() const;\r\n\r\n void Send(const kNet::DataSerializer &data);\r\n\r\n /// Queue a network message to be sent to the client. All implementations may not use the reliable, inOrder, priority and contentID parameters.\r\n virtual void Send(kNet::message_id_t id, const char* data, size_t numBytes, bool reliable, bool inOrder, unsigned long priority = 100, unsigned long contentID = 0);\r\n\r\n ConnectionWeakPtr webSocketConnection;\r\n\r\n public:\r\n virtual void Disconnect();\r\n virtual void Close();\r\n };\r\n}\r\n"}
80,278
c
/* header file for LnxMP.c */ void MP_Init(int *nproc, int *irc); void MP_Taskwait(int *taskid); int MP_Sndsig(int *taskid); int MP_Waitsig(int *taskid); void MP_Killtask(int *taskid); void MP_End(); void MP_Taskstart(int *taskid, void (*proc)(), int *nargs, ...); void MP_Taskinit(int *taskid, void (*proc)(), int *nargs, ...); void MP_Setstack(int stackval); void MP_Taskbuild(int *taskid, void (*proc)(), int *nargs, ...); void MP_Runtask(int *taskid); void MP_Initialized(int *flag); void prparms(int taskid);
34
15
(translation_unit) "/* header file for LnxMP.c */\n\nvoid MP_Init(int *nproc, int *irc);\n \nvoid MP_Taskwait(int *taskid);\n\nint MP_Sndsig(int *taskid);\n\nint MP_Waitsig(int *taskid);\n\nvoid MP_Killtask(int *taskid);\n\nvoid MP_End();\n\nvoid MP_Taskstart(int *taskid, void (*proc)(), int *nargs, ...);\n\nvoid MP_Taskinit(int *taskid, void (*proc)(), int *nargs, ...);\n\nvoid MP_Setstack(int stackval);\n\nvoid MP_Taskbuild(int *taskid, void (*proc)(), int *nargs, ...);\n\nvoid MP_Runtask(int *taskid);\n\nvoid MP_Initialized(int *flag);\n\nvoid prparms(int taskid);\n" (comment) "/* header file for LnxMP.c */" (declaration) "void MP_Init(int *nproc, int *irc);" (primitive_type) "void" (function_declarator) "MP_Init(int *nproc, int *irc)" (identifier) "MP_Init" (parameter_list) "(int *nproc, int *irc)" (() "(" (parameter_declaration) "int *nproc" (primitive_type) "int" (pointer_declarator) "*nproc" (*) "*" (identifier) "nproc" (,) "," (parameter_declaration) "int *irc" (primitive_type) "int" (pointer_declarator) "*irc" (*) "*" (identifier) "irc" ()) ")" (;) ";" (declaration) "void MP_Taskwait(int *taskid);" (primitive_type) "void" (function_declarator) "MP_Taskwait(int *taskid)" (identifier) "MP_Taskwait" (parameter_list) "(int *taskid)" (() "(" (parameter_declaration) "int *taskid" (primitive_type) "int" (pointer_declarator) "*taskid" (*) "*" (identifier) "taskid" ()) ")" (;) ";" (declaration) "int MP_Sndsig(int *taskid);" (primitive_type) "int" (function_declarator) "MP_Sndsig(int *taskid)" (identifier) "MP_Sndsig" (parameter_list) "(int *taskid)" (() "(" (parameter_declaration) "int *taskid" (primitive_type) "int" (pointer_declarator) "*taskid" (*) "*" (identifier) "taskid" ()) ")" (;) ";" (declaration) "int MP_Waitsig(int *taskid);" (primitive_type) "int" (function_declarator) "MP_Waitsig(int *taskid)" (identifier) "MP_Waitsig" (parameter_list) "(int *taskid)" (() "(" (parameter_declaration) "int *taskid" (primitive_type) "int" (pointer_declarator) "*taskid" (*) "*" (identifier) "taskid" ()) ")" (;) ";" (declaration) "void MP_Killtask(int *taskid);" (primitive_type) "void" (function_declarator) "MP_Killtask(int *taskid)" (identifier) "MP_Killtask" (parameter_list) "(int *taskid)" (() "(" (parameter_declaration) "int *taskid" (primitive_type) "int" (pointer_declarator) "*taskid" (*) "*" (identifier) "taskid" ()) ")" (;) ";" (declaration) "void MP_End();" (primitive_type) "void" (function_declarator) "MP_End()" (identifier) "MP_End" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void MP_Taskstart(int *taskid, void (*proc)(), int *nargs, ...);" (primitive_type) "void" (function_declarator) "MP_Taskstart(int *taskid, void (*proc)(), int *nargs, ...)" (identifier) "MP_Taskstart" (parameter_list) "(int *taskid, void (*proc)(), int *nargs, ...)" (() "(" (parameter_declaration) "int *taskid" (primitive_type) "int" (pointer_declarator) "*taskid" (*) "*" (identifier) "taskid" (,) "," (parameter_declaration) "void (*proc)()" (primitive_type) "void" (function_declarator) "(*proc)()" (parenthesized_declarator) "(*proc)" (() "(" (pointer_declarator) "*proc" (*) "*" (identifier) "proc" ()) ")" (parameter_list) "()" (() "(" ()) ")" (,) "," (parameter_declaration) "int *nargs" (primitive_type) "int" (pointer_declarator) "*nargs" (*) "*" (identifier) "nargs" (,) "," (variadic_parameter) "..." (...) "..." ()) ")" (;) ";" (declaration) "void MP_Taskinit(int *taskid, void (*proc)(), int *nargs, ...);" (primitive_type) "void" (function_declarator) "MP_Taskinit(int *taskid, void (*proc)(), int *nargs, ...)" (identifier) "MP_Taskinit" (parameter_list) "(int *taskid, void (*proc)(), int *nargs, ...)" (() "(" (parameter_declaration) "int *taskid" (primitive_type) "int" (pointer_declarator) "*taskid" (*) "*" (identifier) "taskid" (,) "," (parameter_declaration) "void (*proc)()" (primitive_type) "void" (function_declarator) "(*proc)()" (parenthesized_declarator) "(*proc)" (() "(" (pointer_declarator) "*proc" (*) "*" (identifier) "proc" ()) ")" (parameter_list) "()" (() "(" ()) ")" (,) "," (parameter_declaration) "int *nargs" (primitive_type) "int" (pointer_declarator) "*nargs" (*) "*" (identifier) "nargs" (,) "," (variadic_parameter) "..." (...) "..." ()) ")" (;) ";" (declaration) "void MP_Setstack(int stackval);" (primitive_type) "void" (function_declarator) "MP_Setstack(int stackval)" (identifier) "MP_Setstack" (parameter_list) "(int stackval)" (() "(" (parameter_declaration) "int stackval" (primitive_type) "int" (identifier) "stackval" ()) ")" (;) ";" (declaration) "void MP_Taskbuild(int *taskid, void (*proc)(), int *nargs, ...);" (primitive_type) "void" (function_declarator) "MP_Taskbuild(int *taskid, void (*proc)(), int *nargs, ...)" (identifier) "MP_Taskbuild" (parameter_list) "(int *taskid, void (*proc)(), int *nargs, ...)" (() "(" (parameter_declaration) "int *taskid" (primitive_type) "int" (pointer_declarator) "*taskid" (*) "*" (identifier) "taskid" (,) "," (parameter_declaration) "void (*proc)()" (primitive_type) "void" (function_declarator) "(*proc)()" (parenthesized_declarator) "(*proc)" (() "(" (pointer_declarator) "*proc" (*) "*" (identifier) "proc" ()) ")" (parameter_list) "()" (() "(" ()) ")" (,) "," (parameter_declaration) "int *nargs" (primitive_type) "int" (pointer_declarator) "*nargs" (*) "*" (identifier) "nargs" (,) "," (variadic_parameter) "..." (...) "..." ()) ")" (;) ";" (declaration) "void MP_Runtask(int *taskid);" (primitive_type) "void" (function_declarator) "MP_Runtask(int *taskid)" (identifier) "MP_Runtask" (parameter_list) "(int *taskid)" (() "(" (parameter_declaration) "int *taskid" (primitive_type) "int" (pointer_declarator) "*taskid" (*) "*" (identifier) "taskid" ()) ")" (;) ";" (declaration) "void MP_Initialized(int *flag);" (primitive_type) "void" (function_declarator) "MP_Initialized(int *flag)" (identifier) "MP_Initialized" (parameter_list) "(int *flag)" (() "(" (parameter_declaration) "int *flag" (primitive_type) "int" (pointer_declarator) "*flag" (*) "*" (identifier) "flag" ()) ")" (;) ";" (declaration) "void prparms(int taskid);" (primitive_type) "void" (function_declarator) "prparms(int taskid)" (identifier) "prparms" (parameter_list) "(int taskid)" (() "(" (parameter_declaration) "int taskid" (primitive_type) "int" (identifier) "taskid" ()) ")" (;) ";"
234
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 34.0, "nodes": 165, "errors": 0, "source_hash": "63957e92f6454253fc1d61885ab15d60ae64d8d93527a93600aa17a9935d3375", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "void MP_Init(int *nproc, int *irc);", "parent": null, "children": [1, 2], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 35}}, {"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": "MP_Init(int *nproc, int *irc)", "parent": 0, "children": [3, 4], "start_point": {"row": 2, "column": 5}, "end_point": {"row": 2, "column": 34}}, {"id": 3, "type": "identifier", "text": "MP_Init", "parent": 2, "children": [], "start_point": {"row": 2, "column": 5}, "end_point": {"row": 2, "column": 12}}, {"id": 4, "type": "parameter_list", "text": "(int *nproc, int *irc)", "parent": 2, "children": [5, 10], "start_point": {"row": 2, "column": 12}, "end_point": {"row": 2, "column": 34}}, {"id": 5, "type": "parameter_declaration", "text": "int *nproc", "parent": 4, "children": [6, 7], "start_point": {"row": 2, "column": 13}, "end_point": {"row": 2, "column": 23}}, {"id": 6, "type": "primitive_type", "text": "int", "parent": 5, "children": [], "start_point": {"row": 2, "column": 13}, "end_point": {"row": 2, "column": 16}}, {"id": 7, "type": "pointer_declarator", "text": "*nproc", "parent": 5, "children": [8, 9], "start_point": {"row": 2, "column": 17}, "end_point": {"row": 2, "column": 23}}, {"id": 8, "type": "*", "text": "*", "parent": 7, "children": [], "start_point": {"row": 2, "column": 17}, "end_point": {"row": 2, "column": 18}}, {"id": 9, "type": "identifier", "text": "nproc", "parent": 7, "children": [], "start_point": {"row": 2, "column": 18}, "end_point": {"row": 2, "column": 23}}, {"id": 10, "type": "parameter_declaration", "text": "int *irc", "parent": 4, "children": [11, 12], "start_point": {"row": 2, "column": 25}, "end_point": {"row": 2, "column": 33}}, {"id": 11, "type": "primitive_type", "text": "int", "parent": 10, "children": [], "start_point": {"row": 2, "column": 25}, "end_point": {"row": 2, "column": 28}}, {"id": 12, "type": "pointer_declarator", "text": "*irc", "parent": 10, "children": [13, 14], "start_point": {"row": 2, "column": 29}, "end_point": {"row": 2, "column": 33}}, {"id": 13, "type": "*", "text": "*", "parent": 12, "children": [], "start_point": {"row": 2, "column": 29}, "end_point": {"row": 2, "column": 30}}, {"id": 14, "type": "identifier", "text": "irc", "parent": 12, "children": [], "start_point": {"row": 2, "column": 30}, "end_point": {"row": 2, "column": 33}}, {"id": 15, "type": "declaration", "text": "void MP_Taskwait(int *taskid);", "parent": null, "children": [16, 17], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 30}}, {"id": 16, "type": "primitive_type", "text": "void", "parent": 15, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 4}}, {"id": 17, "type": "function_declarator", "text": "MP_Taskwait(int *taskid)", "parent": 15, "children": [18, 19], "start_point": {"row": 4, "column": 5}, "end_point": {"row": 4, "column": 29}}, {"id": 18, "type": "identifier", "text": "MP_Taskwait", "parent": 17, "children": [], "start_point": {"row": 4, "column": 5}, "end_point": {"row": 4, "column": 16}}, {"id": 19, "type": "parameter_list", "text": "(int *taskid)", "parent": 17, "children": [20], "start_point": {"row": 4, "column": 16}, "end_point": {"row": 4, "column": 29}}, {"id": 20, "type": "parameter_declaration", "text": "int *taskid", "parent": 19, "children": [21, 22], "start_point": {"row": 4, "column": 17}, "end_point": {"row": 4, "column": 28}}, {"id": 21, "type": "primitive_type", "text": "int", "parent": 20, "children": [], "start_point": {"row": 4, "column": 17}, "end_point": {"row": 4, "column": 20}}, {"id": 22, "type": "pointer_declarator", "text": "*taskid", "parent": 20, "children": [23, 24], "start_point": {"row": 4, "column": 21}, "end_point": {"row": 4, "column": 28}}, {"id": 23, "type": "*", "text": "*", "parent": 22, "children": [], "start_point": {"row": 4, "column": 21}, "end_point": {"row": 4, "column": 22}}, {"id": 24, "type": "identifier", "text": "taskid", "parent": 22, "children": [], "start_point": {"row": 4, "column": 22}, "end_point": {"row": 4, "column": 28}}, {"id": 25, "type": "declaration", "text": "int MP_Sndsig(int *taskid);", "parent": null, "children": [26, 27], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 27}}, {"id": 26, "type": "primitive_type", "text": "int", "parent": 25, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 3}}, {"id": 27, "type": "function_declarator", "text": "MP_Sndsig(int *taskid)", "parent": 25, "children": [28, 29], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 26}}, {"id": 28, "type": "identifier", "text": "MP_Sndsig", "parent": 27, "children": [], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 13}}, {"id": 29, "type": "parameter_list", "text": "(int *taskid)", "parent": 27, "children": [30], "start_point": {"row": 6, "column": 13}, "end_point": {"row": 6, "column": 26}}, {"id": 30, "type": "parameter_declaration", "text": "int *taskid", "parent": 29, "children": [31, 32], "start_point": {"row": 6, "column": 14}, "end_point": {"row": 6, "column": 25}}, {"id": 31, "type": "primitive_type", "text": "int", "parent": 30, "children": [], "start_point": {"row": 6, "column": 14}, "end_point": {"row": 6, "column": 17}}, {"id": 32, "type": "pointer_declarator", "text": "*taskid", "parent": 30, "children": [33, 34], "start_point": {"row": 6, "column": 18}, "end_point": {"row": 6, "column": 25}}, {"id": 33, "type": "*", "text": "*", "parent": 32, "children": [], "start_point": {"row": 6, "column": 18}, "end_point": {"row": 6, "column": 19}}, {"id": 34, "type": "identifier", "text": "taskid", "parent": 32, "children": [], "start_point": {"row": 6, "column": 19}, "end_point": {"row": 6, "column": 25}}, {"id": 35, "type": "declaration", "text": "int MP_Waitsig(int *taskid);", "parent": null, "children": [36, 37], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 28}}, {"id": 36, "type": "primitive_type", "text": "int", "parent": 35, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 3}}, {"id": 37, "type": "function_declarator", "text": "MP_Waitsig(int *taskid)", "parent": 35, "children": [38, 39], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 27}}, {"id": 38, "type": "identifier", "text": "MP_Waitsig", "parent": 37, "children": [], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 14}}, {"id": 39, "type": "parameter_list", "text": "(int *taskid)", "parent": 37, "children": [40], "start_point": {"row": 8, "column": 14}, "end_point": {"row": 8, "column": 27}}, {"id": 40, "type": "parameter_declaration", "text": "int *taskid", "parent": 39, "children": [41, 42], "start_point": {"row": 8, "column": 15}, "end_point": {"row": 8, "column": 26}}, {"id": 41, "type": "primitive_type", "text": "int", "parent": 40, "children": [], "start_point": {"row": 8, "column": 15}, "end_point": {"row": 8, "column": 18}}, {"id": 42, "type": "pointer_declarator", "text": "*taskid", "parent": 40, "children": [43, 44], "start_point": {"row": 8, "column": 19}, "end_point": {"row": 8, "column": 26}}, {"id": 43, "type": "*", "text": "*", "parent": 42, "children": [], "start_point": {"row": 8, "column": 19}, "end_point": {"row": 8, "column": 20}}, {"id": 44, "type": "identifier", "text": "taskid", "parent": 42, "children": [], "start_point": {"row": 8, "column": 20}, "end_point": {"row": 8, "column": 26}}, {"id": 45, "type": "declaration", "text": "void MP_Killtask(int *taskid);", "parent": null, "children": [46, 47], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 30}}, {"id": 46, "type": "primitive_type", "text": "void", "parent": 45, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 4}}, {"id": 47, "type": "function_declarator", "text": "MP_Killtask(int *taskid)", "parent": 45, "children": [48, 49], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 29}}, {"id": 48, "type": "identifier", "text": "MP_Killtask", "parent": 47, "children": [], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 16}}, {"id": 49, "type": "parameter_list", "text": "(int *taskid)", "parent": 47, "children": [50], "start_point": {"row": 10, "column": 16}, "end_point": {"row": 10, "column": 29}}, {"id": 50, "type": "parameter_declaration", "text": "int *taskid", "parent": 49, "children": [51, 52], "start_point": {"row": 10, "column": 17}, "end_point": {"row": 10, "column": 28}}, {"id": 51, "type": "primitive_type", "text": "int", "parent": 50, "children": [], "start_point": {"row": 10, "column": 17}, "end_point": {"row": 10, "column": 20}}, {"id": 52, "type": "pointer_declarator", "text": "*taskid", "parent": 50, "children": [53, 54], "start_point": {"row": 10, "column": 21}, "end_point": {"row": 10, "column": 28}}, {"id": 53, "type": "*", "text": "*", "parent": 52, "children": [], "start_point": {"row": 10, "column": 21}, "end_point": {"row": 10, "column": 22}}, {"id": 54, "type": "identifier", "text": "taskid", "parent": 52, "children": [], "start_point": {"row": 10, "column": 22}, "end_point": {"row": 10, "column": 28}}, {"id": 55, "type": "declaration", "text": "void MP_End();", "parent": null, "children": [56, 57], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 14}}, {"id": 56, "type": "primitive_type", "text": "void", "parent": 55, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 4}}, {"id": 57, "type": "function_declarator", "text": "MP_End()", "parent": 55, "children": [58, 59], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 13}}, {"id": 58, "type": "identifier", "text": "MP_End", "parent": 57, "children": [], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 11}}, {"id": 59, "type": "parameter_list", "text": "()", "parent": 57, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 13}}, {"id": 60, "type": "declaration", "text": "void MP_Taskstart(int *taskid, void (*proc)(), int *nargs, ...);", "parent": null, "children": [61, 62], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 64}}, {"id": 61, "type": "primitive_type", "text": "void", "parent": 60, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 4}}, {"id": 62, "type": "function_declarator", "text": "MP_Taskstart(int *taskid, void (*proc)(), int *nargs, ...)", "parent": 60, "children": [63, 64], "start_point": {"row": 14, "column": 5}, "end_point": {"row": 14, "column": 63}}, {"id": 63, "type": "identifier", "text": "MP_Taskstart", "parent": 62, "children": [], "start_point": {"row": 14, "column": 5}, "end_point": {"row": 14, "column": 17}}, {"id": 64, "type": "parameter_list", "text": "(int *taskid, void (*proc)(), int *nargs, ...)", "parent": 62, "children": [65, 70, 78], "start_point": {"row": 14, "column": 17}, "end_point": {"row": 14, "column": 63}}, {"id": 65, "type": "parameter_declaration", "text": "int *taskid", "parent": 64, "children": [66, 67], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 29}}, {"id": 66, "type": "primitive_type", "text": "int", "parent": 65, "children": [], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 21}}, {"id": 67, "type": "pointer_declarator", "text": "*taskid", "parent": 65, "children": [68, 69], "start_point": {"row": 14, "column": 22}, "end_point": {"row": 14, "column": 29}}, {"id": 68, "type": "*", "text": "*", "parent": 67, "children": [], "start_point": {"row": 14, "column": 22}, "end_point": {"row": 14, "column": 23}}, {"id": 69, "type": "identifier", "text": "taskid", "parent": 67, "children": [], "start_point": {"row": 14, "column": 23}, "end_point": {"row": 14, "column": 29}}, {"id": 70, "type": "parameter_declaration", "text": "void (*proc)()", "parent": 64, "children": [71, 72], "start_point": {"row": 14, "column": 31}, "end_point": {"row": 14, "column": 45}}, {"id": 71, "type": "primitive_type", "text": "void", "parent": 70, "children": [], "start_point": {"row": 14, "column": 31}, "end_point": {"row": 14, "column": 35}}, {"id": 72, "type": "function_declarator", "text": "(*proc)()", "parent": 70, "children": [73, 77], "start_point": {"row": 14, "column": 36}, "end_point": {"row": 14, "column": 45}}, {"id": 73, "type": "parenthesized_declarator", "text": "(*proc)", "parent": 72, "children": [74], "start_point": {"row": 14, "column": 36}, "end_point": {"row": 14, "column": 43}}, {"id": 74, "type": "pointer_declarator", "text": "*proc", "parent": 73, "children": [75, 76], "start_point": {"row": 14, "column": 37}, "end_point": {"row": 14, "column": 42}}, {"id": 75, "type": "*", "text": "*", "parent": 74, "children": [], "start_point": {"row": 14, "column": 37}, "end_point": {"row": 14, "column": 38}}, {"id": 76, "type": "identifier", "text": "proc", "parent": 74, "children": [], "start_point": {"row": 14, "column": 38}, "end_point": {"row": 14, "column": 42}}, {"id": 77, "type": "parameter_list", "text": "()", "parent": 72, "children": [], "start_point": {"row": 14, "column": 43}, "end_point": {"row": 14, "column": 45}}, {"id": 78, "type": "parameter_declaration", "text": "int *nargs", "parent": 64, "children": [79, 80], "start_point": {"row": 14, "column": 47}, "end_point": {"row": 14, "column": 57}}, {"id": 79, "type": "primitive_type", "text": "int", "parent": 78, "children": [], "start_point": {"row": 14, "column": 47}, "end_point": {"row": 14, "column": 50}}, {"id": 80, "type": "pointer_declarator", "text": "*nargs", "parent": 78, "children": [81, 82], "start_point": {"row": 14, "column": 51}, "end_point": {"row": 14, "column": 57}}, {"id": 81, "type": "*", "text": "*", "parent": 80, "children": [], "start_point": {"row": 14, "column": 51}, "end_point": {"row": 14, "column": 52}}, {"id": 82, "type": "identifier", "text": "nargs", "parent": 80, "children": [], "start_point": {"row": 14, "column": 52}, "end_point": {"row": 14, "column": 57}}, {"id": 83, "type": "declaration", "text": "void MP_Taskinit(int *taskid, void (*proc)(), int *nargs, ...);", "parent": null, "children": [84, 85], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 63}}, {"id": 84, "type": "primitive_type", "text": "void", "parent": 83, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 4}}, {"id": 85, "type": "function_declarator", "text": "MP_Taskinit(int *taskid, void (*proc)(), int *nargs, ...)", "parent": 83, "children": [86, 87], "start_point": {"row": 16, "column": 5}, "end_point": {"row": 16, "column": 62}}, {"id": 86, "type": "identifier", "text": "MP_Taskinit", "parent": 85, "children": [], "start_point": {"row": 16, "column": 5}, "end_point": {"row": 16, "column": 16}}, {"id": 87, "type": "parameter_list", "text": "(int *taskid, void (*proc)(), int *nargs, ...)", "parent": 85, "children": [88, 93, 101], "start_point": {"row": 16, "column": 16}, "end_point": {"row": 16, "column": 62}}, {"id": 88, "type": "parameter_declaration", "text": "int *taskid", "parent": 87, "children": [89, 90], "start_point": {"row": 16, "column": 17}, "end_point": {"row": 16, "column": 28}}, {"id": 89, "type": "primitive_type", "text": "int", "parent": 88, "children": [], "start_point": {"row": 16, "column": 17}, "end_point": {"row": 16, "column": 20}}, {"id": 90, "type": "pointer_declarator", "text": "*taskid", "parent": 88, "children": [91, 92], "start_point": {"row": 16, "column": 21}, "end_point": {"row": 16, "column": 28}}, {"id": 91, "type": "*", "text": "*", "parent": 90, "children": [], "start_point": {"row": 16, "column": 21}, "end_point": {"row": 16, "column": 22}}, {"id": 92, "type": "identifier", "text": "taskid", "parent": 90, "children": [], "start_point": {"row": 16, "column": 22}, "end_point": {"row": 16, "column": 28}}, {"id": 93, "type": "parameter_declaration", "text": "void (*proc)()", "parent": 87, "children": [94, 95], "start_point": {"row": 16, "column": 30}, "end_point": {"row": 16, "column": 44}}, {"id": 94, "type": "primitive_type", "text": "void", "parent": 93, "children": [], "start_point": {"row": 16, "column": 30}, "end_point": {"row": 16, "column": 34}}, {"id": 95, "type": "function_declarator", "text": "(*proc)()", "parent": 93, "children": [96, 100], "start_point": {"row": 16, "column": 35}, "end_point": {"row": 16, "column": 44}}, {"id": 96, "type": "parenthesized_declarator", "text": "(*proc)", "parent": 95, "children": [97], "start_point": {"row": 16, "column": 35}, "end_point": {"row": 16, "column": 42}}, {"id": 97, "type": "pointer_declarator", "text": "*proc", "parent": 96, "children": [98, 99], "start_point": {"row": 16, "column": 36}, "end_point": {"row": 16, "column": 41}}, {"id": 98, "type": "*", "text": "*", "parent": 97, "children": [], "start_point": {"row": 16, "column": 36}, "end_point": {"row": 16, "column": 37}}, {"id": 99, "type": "identifier", "text": "proc", "parent": 97, "children": [], "start_point": {"row": 16, "column": 37}, "end_point": {"row": 16, "column": 41}}, {"id": 100, "type": "parameter_list", "text": "()", "parent": 95, "children": [], "start_point": {"row": 16, "column": 42}, "end_point": {"row": 16, "column": 44}}, {"id": 101, "type": "parameter_declaration", "text": "int *nargs", "parent": 87, "children": [102, 103], "start_point": {"row": 16, "column": 46}, "end_point": {"row": 16, "column": 56}}, {"id": 102, "type": "primitive_type", "text": "int", "parent": 101, "children": [], "start_point": {"row": 16, "column": 46}, "end_point": {"row": 16, "column": 49}}, {"id": 103, "type": "pointer_declarator", "text": "*nargs", "parent": 101, "children": [104, 105], "start_point": {"row": 16, "column": 50}, "end_point": {"row": 16, "column": 56}}, {"id": 104, "type": "*", "text": "*", "parent": 103, "children": [], "start_point": {"row": 16, "column": 50}, "end_point": {"row": 16, "column": 51}}, {"id": 105, "type": "identifier", "text": "nargs", "parent": 103, "children": [], "start_point": {"row": 16, "column": 51}, "end_point": {"row": 16, "column": 56}}, {"id": 106, "type": "declaration", "text": "void MP_Setstack(int stackval);", "parent": null, "children": [107, 108], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 31}}, {"id": 107, "type": "primitive_type", "text": "void", "parent": 106, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 4}}, {"id": 108, "type": "function_declarator", "text": "MP_Setstack(int stackval)", "parent": 106, "children": [109, 110], "start_point": {"row": 18, "column": 5}, "end_point": {"row": 18, "column": 30}}, {"id": 109, "type": "identifier", "text": "MP_Setstack", "parent": 108, "children": [], "start_point": {"row": 18, "column": 5}, "end_point": {"row": 18, "column": 16}}, {"id": 110, "type": "parameter_list", "text": "(int stackval)", "parent": 108, "children": [111], "start_point": {"row": 18, "column": 16}, "end_point": {"row": 18, "column": 30}}, {"id": 111, "type": "parameter_declaration", "text": "int stackval", "parent": 110, "children": [112, 113], "start_point": {"row": 18, "column": 17}, "end_point": {"row": 18, "column": 29}}, {"id": 112, "type": "primitive_type", "text": "int", "parent": 111, "children": [], "start_point": {"row": 18, "column": 17}, "end_point": {"row": 18, "column": 20}}, {"id": 113, "type": "identifier", "text": "stackval", "parent": 111, "children": [], "start_point": {"row": 18, "column": 21}, "end_point": {"row": 18, "column": 29}}, {"id": 114, "type": "declaration", "text": "void MP_Taskbuild(int *taskid, void (*proc)(), int *nargs, ...);", "parent": null, "children": [115, 116], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 64}}, {"id": 115, "type": "primitive_type", "text": "void", "parent": 114, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 4}}, {"id": 116, "type": "function_declarator", "text": "MP_Taskbuild(int *taskid, void (*proc)(), int *nargs, ...)", "parent": 114, "children": [117, 118], "start_point": {"row": 20, "column": 5}, "end_point": {"row": 20, "column": 63}}, {"id": 117, "type": "identifier", "text": "MP_Taskbuild", "parent": 116, "children": [], "start_point": {"row": 20, "column": 5}, "end_point": {"row": 20, "column": 17}}, {"id": 118, "type": "parameter_list", "text": "(int *taskid, void (*proc)(), int *nargs, ...)", "parent": 116, "children": [119, 124, 132], "start_point": {"row": 20, "column": 17}, "end_point": {"row": 20, "column": 63}}, {"id": 119, "type": "parameter_declaration", "text": "int *taskid", "parent": 118, "children": [120, 121], "start_point": {"row": 20, "column": 18}, "end_point": {"row": 20, "column": 29}}, {"id": 120, "type": "primitive_type", "text": "int", "parent": 119, "children": [], "start_point": {"row": 20, "column": 18}, "end_point": {"row": 20, "column": 21}}, {"id": 121, "type": "pointer_declarator", "text": "*taskid", "parent": 119, "children": [122, 123], "start_point": {"row": 20, "column": 22}, "end_point": {"row": 20, "column": 29}}, {"id": 122, "type": "*", "text": "*", "parent": 121, "children": [], "start_point": {"row": 20, "column": 22}, "end_point": {"row": 20, "column": 23}}, {"id": 123, "type": "identifier", "text": "taskid", "parent": 121, "children": [], "start_point": {"row": 20, "column": 23}, "end_point": {"row": 20, "column": 29}}, {"id": 124, "type": "parameter_declaration", "text": "void (*proc)()", "parent": 118, "children": [125, 126], "start_point": {"row": 20, "column": 31}, "end_point": {"row": 20, "column": 45}}, {"id": 125, "type": "primitive_type", "text": "void", "parent": 124, "children": [], "start_point": {"row": 20, "column": 31}, "end_point": {"row": 20, "column": 35}}, {"id": 126, "type": "function_declarator", "text": "(*proc)()", "parent": 124, "children": [127, 131], "start_point": {"row": 20, "column": 36}, "end_point": {"row": 20, "column": 45}}, {"id": 127, "type": "parenthesized_declarator", "text": "(*proc)", "parent": 126, "children": [128], "start_point": {"row": 20, "column": 36}, "end_point": {"row": 20, "column": 43}}, {"id": 128, "type": "pointer_declarator", "text": "*proc", "parent": 127, "children": [129, 130], "start_point": {"row": 20, "column": 37}, "end_point": {"row": 20, "column": 42}}, {"id": 129, "type": "*", "text": "*", "parent": 128, "children": [], "start_point": {"row": 20, "column": 37}, "end_point": {"row": 20, "column": 38}}, {"id": 130, "type": "identifier", "text": "proc", "parent": 128, "children": [], "start_point": {"row": 20, "column": 38}, "end_point": {"row": 20, "column": 42}}, {"id": 131, "type": "parameter_list", "text": "()", "parent": 126, "children": [], "start_point": {"row": 20, "column": 43}, "end_point": {"row": 20, "column": 45}}, {"id": 132, "type": "parameter_declaration", "text": "int *nargs", "parent": 118, "children": [133, 134], "start_point": {"row": 20, "column": 47}, "end_point": {"row": 20, "column": 57}}, {"id": 133, "type": "primitive_type", "text": "int", "parent": 132, "children": [], "start_point": {"row": 20, "column": 47}, "end_point": {"row": 20, "column": 50}}, {"id": 134, "type": "pointer_declarator", "text": "*nargs", "parent": 132, "children": [135, 136], "start_point": {"row": 20, "column": 51}, "end_point": {"row": 20, "column": 57}}, {"id": 135, "type": "*", "text": "*", "parent": 134, "children": [], "start_point": {"row": 20, "column": 51}, "end_point": {"row": 20, "column": 52}}, {"id": 136, "type": "identifier", "text": "nargs", "parent": 134, "children": [], "start_point": {"row": 20, "column": 52}, "end_point": {"row": 20, "column": 57}}, {"id": 137, "type": "declaration", "text": "void MP_Runtask(int *taskid);", "parent": null, "children": [138, 139], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 29}}, {"id": 138, "type": "primitive_type", "text": "void", "parent": 137, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 4}}, {"id": 139, "type": "function_declarator", "text": "MP_Runtask(int *taskid)", "parent": 137, "children": [140, 141], "start_point": {"row": 22, "column": 5}, "end_point": {"row": 22, "column": 28}}, {"id": 140, "type": "identifier", "text": "MP_Runtask", "parent": 139, "children": [], "start_point": {"row": 22, "column": 5}, "end_point": {"row": 22, "column": 15}}, {"id": 141, "type": "parameter_list", "text": "(int *taskid)", "parent": 139, "children": [142], "start_point": {"row": 22, "column": 15}, "end_point": {"row": 22, "column": 28}}, {"id": 142, "type": "parameter_declaration", "text": "int *taskid", "parent": 141, "children": [143, 144], "start_point": {"row": 22, "column": 16}, "end_point": {"row": 22, "column": 27}}, {"id": 143, "type": "primitive_type", "text": "int", "parent": 142, "children": [], "start_point": {"row": 22, "column": 16}, "end_point": {"row": 22, "column": 19}}, {"id": 144, "type": "pointer_declarator", "text": "*taskid", "parent": 142, "children": [145, 146], "start_point": {"row": 22, "column": 20}, "end_point": {"row": 22, "column": 27}}, {"id": 145, "type": "*", "text": "*", "parent": 144, "children": [], "start_point": {"row": 22, "column": 20}, "end_point": {"row": 22, "column": 21}}, {"id": 146, "type": "identifier", "text": "taskid", "parent": 144, "children": [], "start_point": {"row": 22, "column": 21}, "end_point": {"row": 22, "column": 27}}, {"id": 147, "type": "declaration", "text": "void MP_Initialized(int *flag);", "parent": null, "children": [148, 149], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 31}}, {"id": 148, "type": "primitive_type", "text": "void", "parent": 147, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 4}}, {"id": 149, "type": "function_declarator", "text": "MP_Initialized(int *flag)", "parent": 147, "children": [150, 151], "start_point": {"row": 24, "column": 5}, "end_point": {"row": 24, "column": 30}}, {"id": 150, "type": "identifier", "text": "MP_Initialized", "parent": 149, "children": [], "start_point": {"row": 24, "column": 5}, "end_point": {"row": 24, "column": 19}}, {"id": 151, "type": "parameter_list", "text": "(int *flag)", "parent": 149, "children": [152], "start_point": {"row": 24, "column": 19}, "end_point": {"row": 24, "column": 30}}, {"id": 152, "type": "parameter_declaration", "text": "int *flag", "parent": 151, "children": [153, 154], "start_point": {"row": 24, "column": 20}, "end_point": {"row": 24, "column": 29}}, {"id": 153, "type": "primitive_type", "text": "int", "parent": 152, "children": [], "start_point": {"row": 24, "column": 20}, "end_point": {"row": 24, "column": 23}}, {"id": 154, "type": "pointer_declarator", "text": "*flag", "parent": 152, "children": [155, 156], "start_point": {"row": 24, "column": 24}, "end_point": {"row": 24, "column": 29}}, {"id": 155, "type": "*", "text": "*", "parent": 154, "children": [], "start_point": {"row": 24, "column": 24}, "end_point": {"row": 24, "column": 25}}, {"id": 156, "type": "identifier", "text": "flag", "parent": 154, "children": [], "start_point": {"row": 24, "column": 25}, "end_point": {"row": 24, "column": 29}}, {"id": 157, "type": "declaration", "text": "void prparms(int taskid);", "parent": null, "children": [158, 159], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 25}}, {"id": 158, "type": "primitive_type", "text": "void", "parent": 157, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 4}}, {"id": 159, "type": "function_declarator", "text": "prparms(int taskid)", "parent": 157, "children": [160, 161], "start_point": {"row": 26, "column": 5}, "end_point": {"row": 26, "column": 24}}, {"id": 160, "type": "identifier", "text": "prparms", "parent": 159, "children": [], "start_point": {"row": 26, "column": 5}, "end_point": {"row": 26, "column": 12}}, {"id": 161, "type": "parameter_list", "text": "(int taskid)", "parent": 159, "children": [162], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 24}}, {"id": 162, "type": "parameter_declaration", "text": "int taskid", "parent": 161, "children": [163, 164], "start_point": {"row": 26, "column": 13}, "end_point": {"row": 26, "column": 23}}, {"id": 163, "type": "primitive_type", "text": "int", "parent": 162, "children": [], "start_point": {"row": 26, "column": 13}, "end_point": {"row": 26, "column": 16}}, {"id": 164, "type": "identifier", "text": "taskid", "parent": 162, "children": [], "start_point": {"row": 26, "column": 17}, "end_point": {"row": 26, "column": 23}}]}, "node_categories": {"declarations": {"functions": [2, 17, 27, 37, 47, 57, 62, 72, 85, 95, 108, 116, 126, 139, 149, 159], "variables": [0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 78, 83, 88, 93, 101, 106, 111, 114, 119, 124, 132, 137, 142, 147, 152, 157, 162], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [3, 9, 14, 18, 24, 28, 34, 38, 44, 48, 54, 58, 63, 69, 76, 82, 86, 92, 99, 105, 109, 113, 117, 123, 130, 136, 140, 146, 150, 156, 160, 164], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 2, "universal_type": "function", "name": "*irc)", "text_snippet": "MP_Init(int *nproc, int *irc)"}, {"node_id": 17, "universal_type": "function", "name": "unknown", "text_snippet": "MP_Taskwait(int *taskid)"}, {"node_id": 27, "universal_type": "function", "name": "unknown", "text_snippet": "MP_Sndsig(int *taskid)"}, {"node_id": 37, "universal_type": "function", "name": "unknown", "text_snippet": "MP_Waitsig(int *taskid)"}, {"node_id": 47, "universal_type": "function", "name": "unknown", "text_snippet": "MP_Killtask(int *taskid)"}, {"node_id": 57, "universal_type": "function", "name": "unknown", "text_snippet": "MP_End()"}, {"node_id": 62, "universal_type": "function", "name": "", "text_snippet": "MP_Taskstart(int *taskid, void (*proc)(), int *nargs, ...)"}, {"node_id": 72, "universal_type": "function", "name": "unknown", "text_snippet": "(*proc)()"}, {"node_id": 85, "universal_type": "function", "name": "", "text_snippet": "MP_Taskinit(int *taskid, void (*proc)(), int *nargs, ...)"}, {"node_id": 95, "universal_type": "function", "name": "unknown", "text_snippet": "(*proc)()"}, {"node_id": 108, "universal_type": "function", "name": "unknown", "text_snippet": "MP_Setstack(int stackval)"}, {"node_id": 116, "universal_type": "function", "name": "", "text_snippet": "MP_Taskbuild(int *taskid, void (*proc)(), int *nargs, ...)"}, {"node_id": 126, "universal_type": "function", "name": "unknown", "text_snippet": "(*proc)()"}, {"node_id": 139, "universal_type": "function", "name": "unknown", "text_snippet": "MP_Runtask(int *taskid)"}, {"node_id": 149, "universal_type": "function", "name": "unknown", "text_snippet": "MP_Initialized(int *flag)"}, {"node_id": 159, "universal_type": "function", "name": "unknown", "text_snippet": "prparms(int taskid)"}], "class_declarations": [], "import_statements": []}, "original_source_code": "/* header file for LnxMP.c */\n\nvoid MP_Init(int *nproc, int *irc);\n\t \nvoid MP_Taskwait(int *taskid);\n\nint MP_Sndsig(int *taskid);\n\nint MP_Waitsig(int *taskid);\n\nvoid MP_Killtask(int *taskid);\n\nvoid MP_End();\n\nvoid MP_Taskstart(int *taskid, void (*proc)(), int *nargs, ...);\n\nvoid MP_Taskinit(int *taskid, void (*proc)(), int *nargs, ...);\n\nvoid MP_Setstack(int stackval);\n\nvoid MP_Taskbuild(int *taskid, void (*proc)(), int *nargs, ...);\n\nvoid MP_Runtask(int *taskid);\n\nvoid MP_Initialized(int *flag);\n\nvoid prparms(int taskid);\n"}
80,279
c
#include<stdio.h> main() { printf("A"); sleep(1); printf("B"); }
8.29
7
(translation_unit) "#include<stdio.h>\nmain()\n{\nprintf("A");\nsleep(1);\nprintf("B");\n}\n" (preproc_include) "#include<stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (expression_statement) "main()" (call_expression) "main()" (identifier) "main" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{\nprintf("A");\nsleep(1);\nprintf("B");\n}" ({) "{" (expression_statement) "printf("A");" (call_expression) "printf("A")" (identifier) "printf" (argument_list) "("A")" (() "(" (string_literal) ""A"" (") """ (string_content) "A" (") """ ()) ")" (;) ";" (expression_statement) "sleep(1);" (call_expression) "sleep(1)" (identifier) "sleep" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (expression_statement) "printf("B");" (call_expression) "printf("B")" (identifier) "printf" (argument_list) "("B")" (() "(" (string_literal) ""B"" (") """ (string_content) "B" (") """ ()) ")" (;) ";" (}) "}"
44
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 8.29, "nodes": 18, "errors": 0, "source_hash": "a2f4b360bebc71e13bfc85d83be39269c51334793cac28db3d9ba5c2cf436163", "categorized_nodes": 14}, "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": 8}, "end_point": {"row": 0, "column": 17}}, {"id": 3, "type": "call_expression", "text": "main()", "parent": null, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 6}}, {"id": 4, "type": "identifier", "text": "main", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 4}}, {"id": 5, "type": "argument_list", "text": "()", "parent": 3, "children": [], "start_point": {"row": 1, "column": 4}, "end_point": {"row": 1, "column": 6}}, {"id": 6, "type": "call_expression", "text": "printf(\"A\")", "parent": null, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 11}}, {"id": 7, "type": "identifier", "text": "printf", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 6}}, {"id": 8, "type": "argument_list", "text": "(\"A\")", "parent": 6, "children": [9], "start_point": {"row": 3, "column": 6}, "end_point": {"row": 3, "column": 11}}, {"id": 9, "type": "string_literal", "text": "\"A\"", "parent": 8, "children": [], "start_point": {"row": 3, "column": 7}, "end_point": {"row": 3, "column": 10}}, {"id": 10, "type": "call_expression", "text": "sleep(1)", "parent": null, "children": [11, 12], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 11, "type": "identifier", "text": "sleep", "parent": 10, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 5}}, {"id": 12, "type": "argument_list", "text": "(1)", "parent": 10, "children": [13], "start_point": {"row": 4, "column": 5}, "end_point": {"row": 4, "column": 8}}, {"id": 13, "type": "number_literal", "text": "1", "parent": 12, "children": [], "start_point": {"row": 4, "column": 6}, "end_point": {"row": 4, "column": 7}}, {"id": 14, "type": "call_expression", "text": "printf(\"B\")", "parent": null, "children": [15, 16], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 11}}, {"id": 15, "type": "identifier", "text": "printf", "parent": 14, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 6}}, {"id": 16, "type": "argument_list", "text": "(\"B\")", "parent": 14, "children": [17], "start_point": {"row": 5, "column": 6}, "end_point": {"row": 5, "column": 11}}, {"id": 17, "type": "string_literal", "text": "\"B\"", "parent": 16, "children": [], "start_point": {"row": 5, "column": 7}, "end_point": {"row": 5, "column": 10}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [3, 6, 10, 14], "assignments": [], "loops": [], "conditionals": [4, 7, 11, 15], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 9, 13, 17], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include<stdio.h>\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "#include<stdio.h>\nmain()\n{\nprintf(\"A\");\nsleep(1);\nprintf(\"B\");\n}\n"}
80,280
c
/* This file is part of Lwt, released under the MIT license. See LICENSE.md for details, or visit https://github.com/ocsigen/lwt/blob/master/LICENSE.md. */ #include "lwt_config.h" #if !defined(LWT_ON_WINDOWS) #include <caml/alloc.h> #include <caml/memory.h> #include <caml/mlvalues.h> #include <caml/socketaddr.h> #include <stdlib.h> #include <string.h> #include "unix_get_network_information_utils.h" #if defined(NON_R_GETHOSTBYADDR) || defined(NON_R_GETHOSTBYNAME) char **c_copy_addr_array(char **src, int addr_len) { if (src == NULL) { return NULL; } char **p = src; size_t i = 0; while (*p) { i++; p++; } const size_t ar_len = i; p = malloc((ar_len + 1) * sizeof(char *)); if (p == NULL) { return NULL; } for (i = 0; i < ar_len; ++i) { p[i] = malloc(addr_len); if (p[i] == NULL) { size_t j; for (j = 0; j < i; j++) { free(p[j]); } free(p); return NULL; } memcpy(p[i], src[i], addr_len); } p[ar_len] = NULL; return p; } #endif #if !defined(HAVE_NETDB_REENTRANT) || defined(NON_R_GETHOSTBYADDR) || \ defined(NON_R_GETHOSTBYNAME) char **c_copy_string_array(char **src) { char **p = src; size_t i = 0; size_t len; if (src == NULL) { return NULL; } while (*p) { i++; p++; } len = i; p = malloc((len + 1) * sizeof(char *)); if (p == NULL) { return NULL; } for (i = 0; i < len; ++i) { p[i] = strdup(src[i]); if (p[i] == NULL) { size_t j; for (j = 0; j < i; j++) { free(p[j]); } free(p); return NULL; } } p[len] = NULL; return p; } void c_free_string_array(char **src) { if (src) { char **p = src; while (*p) { free(*p); ++p; } free(src); } } char *s_strdup(const char *s) { return (strdup(s == NULL ? "" : s)); } #endif CAMLexport value alloc_inet_addr(struct in_addr *inaddr); CAMLexport value alloc_inet6_addr(struct in6_addr *inaddr); static value alloc_one_addr(char const *a) { struct in_addr addr; memmove(&addr, a, 4); return alloc_inet_addr(&addr); } static value alloc_one_addr6(char const *a) { struct in6_addr addr; memmove(&addr, a, 16); return alloc_inet6_addr(&addr); } value alloc_host_entry(struct hostent *entry) { value res; value name = Val_unit, aliases = Val_unit; value addr_list = Val_unit, adr = Val_unit; Begin_roots4(name, aliases, addr_list, adr); name = caml_copy_string((char *)(entry->h_name)); /* PR#4043: protect against buggy implementations of gethostbynamee() that return a NULL pointer in h_aliases */ if (entry->h_aliases) aliases = caml_copy_string_array((const char **)entry->h_aliases); else aliases = Atom(0); if (entry->h_length == 16) addr_list = caml_alloc_array(alloc_one_addr6, (const char **)entry->h_addr_list); else addr_list = caml_alloc_array(alloc_one_addr, (const char **)entry->h_addr_list); res = caml_alloc_small(4, 0); Field(res, 0) = name; Field(res, 1) = aliases; switch (entry->h_addrtype) { case PF_UNIX: Field(res, 2) = Val_int(0); break; case PF_INET: Field(res, 2) = Val_int(1); break; default: /*PF_INET6 */ Field(res, 2) = Val_int(2); break; } Field(res, 3) = addr_list; End_roots(); return res; } #if defined(NON_R_GETHOSTBYADDR) || defined(NON_R_GETHOSTBYNAME) struct hostent *hostent_dup(struct hostent *orig) { if (orig == NULL) { return NULL; } struct hostent *h = malloc(sizeof *h); if (h == NULL) { return NULL; } h->h_name = s_strdup(orig->h_name); if (!h->h_name) { goto nomem1; } if (!orig->h_aliases) { h->h_aliases = NULL; } else { h->h_aliases = c_copy_string_array(orig->h_aliases); if (!h->h_aliases) { goto nomem2; } } if (!orig->h_addr_list) { h->h_addr_list = NULL; } else { h->h_addr_list = c_copy_addr_array(orig->h_addr_list, orig->h_length); if (!h->h_addr_list) { goto nomem3; } } h->h_addrtype = orig->h_addrtype; h->h_length = orig->h_length; return h; nomem3: c_free_string_array(h->h_aliases); nomem2: free((char *)h->h_name); nomem1: free(h); return NULL; } void hostent_free(struct hostent *h) { if (h) { c_free_string_array(h->h_addr_list); c_free_string_array(h->h_aliases); free((char *)h->h_name); free(h); } } #endif #endif
23.88
197
(translation_unit) "/* This file is part of Lwt, released under the MIT license. See LICENSE.md for\n details, or visit https://github.com/ocsigen/lwt/blob/master/LICENSE.md. */\n\n\n\n#include "lwt_config.h"\n\n#if !defined(LWT_ON_WINDOWS)\n\n#include <caml/alloc.h>\n#include <caml/memory.h>\n#include <caml/mlvalues.h>\n#include <caml/socketaddr.h>\n#include <stdlib.h>\n#include <string.h>\n\n#include "unix_get_network_information_utils.h"\n\n#if defined(NON_R_GETHOSTBYADDR) || defined(NON_R_GETHOSTBYNAME)\nchar **c_copy_addr_array(char **src, int addr_len)\n{\n if (src == NULL) {\n return NULL;\n }\n char **p = src;\n size_t i = 0;\n while (*p) {\n i++;\n p++;\n }\n const size_t ar_len = i;\n p = malloc((ar_len + 1) * sizeof(char *));\n if (p == NULL) {\n return NULL;\n }\n for (i = 0; i < ar_len; ++i) {\n p[i] = malloc(addr_len);\n if (p[i] == NULL) {\n size_t j;\n for (j = 0; j < i; j++) {\n free(p[j]);\n }\n free(p);\n return NULL;\n }\n memcpy(p[i], src[i], addr_len);\n }\n p[ar_len] = NULL;\n return p;\n}\n#endif\n\n#if !defined(HAVE_NETDB_REENTRANT) || defined(NON_R_GETHOSTBYADDR) || \\n defined(NON_R_GETHOSTBYNAME)\nchar **c_copy_string_array(char **src)\n{\n char **p = src;\n size_t i = 0;\n size_t len;\n if (src == NULL) {\n return NULL;\n }\n while (*p) {\n i++;\n p++;\n }\n len = i;\n p = malloc((len + 1) * sizeof(char *));\n if (p == NULL) {\n return NULL;\n }\n for (i = 0; i < len; ++i) {\n p[i] = strdup(src[i]);\n if (p[i] == NULL) {\n size_t j;\n for (j = 0; j < i; j++) {\n free(p[j]);\n }\n free(p);\n return NULL;\n }\n }\n p[len] = NULL;\n return p;\n}\n\nvoid c_free_string_array(char **src)\n{\n if (src) {\n char **p = src;\n while (*p) {\n free(*p);\n ++p;\n }\n free(src);\n }\n}\n\nchar *s_strdup(const char *s)\n{\n return (strdup(s == NULL ? "" : s));\n}\n#endif\n\nCAMLexport value alloc_inet_addr(struct in_addr *inaddr);\nCAMLexport value alloc_inet6_addr(struct in6_addr *inaddr);\n\nstatic value alloc_one_addr(char const *a)\n{\n struct in_addr addr;\n memmove(&addr, a, 4);\n return alloc_inet_addr(&addr);\n}\n\nstatic value alloc_one_addr6(char const *a)\n{\n struct in6_addr addr;\n memmove(&addr, a, 16);\n return alloc_inet6_addr(&addr);\n}\n\nvalue alloc_host_entry(struct hostent *entry)\n{\n value res;\n value name = Val_unit, aliases = Val_unit;\n value addr_list = Val_unit, adr = Val_unit;\n\n Begin_roots4(name, aliases, addr_list, adr);\n name = caml_copy_string((char *)(entry->h_name));\n /* PR#4043: protect against buggy implementations of gethostbynamee()\n that return a NULL pointer in h_aliases */\n if (entry->h_aliases)\n aliases = caml_copy_string_array((const char **)entry->h_aliases);\n else\n aliases = Atom(0);\n if (entry->h_length == 16)\n addr_list = caml_alloc_array(alloc_one_addr6,\n (const char **)entry->h_addr_list);\n else\n addr_list =\n caml_alloc_array(alloc_one_addr, (const char **)entry->h_addr_list);\n res = caml_alloc_small(4, 0);\n Field(res, 0) = name;\n Field(res, 1) = aliases;\n switch (entry->h_addrtype) {\n case PF_UNIX:\n Field(res, 2) = Val_int(0);\n break;\n case PF_INET:\n Field(res, 2) = Val_int(1);\n break;\n default: /*PF_INET6 */\n Field(res, 2) = Val_int(2);\n break;\n }\n Field(res, 3) = addr_list;\n End_roots();\n return res;\n}\n\n#if defined(NON_R_GETHOSTBYADDR) || defined(NON_R_GETHOSTBYNAME)\nstruct hostent *hostent_dup(struct hostent *orig)\n{\n if (orig == NULL) {\n return NULL;\n }\n struct hostent *h = malloc(sizeof *h);\n if (h == NULL) {\n return NULL;\n }\n h->h_name = s_strdup(orig->h_name);\n if (!h->h_name) {\n goto nomem1;\n }\n if (!orig->h_aliases) {\n h->h_aliases = NULL;\n } else {\n h->h_aliases = c_copy_string_array(orig->h_aliases);\n if (!h->h_aliases) {\n goto nomem2;\n }\n }\n if (!orig->h_addr_list) {\n h->h_addr_list = NULL;\n } else {\n h->h_addr_list = c_copy_addr_array(orig->h_addr_list, orig->h_length);\n if (!h->h_addr_list) {\n goto nomem3;\n }\n }\n h->h_addrtype = orig->h_addrtype;\n h->h_length = orig->h_length;\n return h;\nnomem3:\n c_free_string_array(h->h_aliases);\nnomem2:\n free((char *)h->h_name);\nnomem1:\n free(h);\n return NULL;\n}\n\nvoid hostent_free(struct hostent *h)\n{\n if (h) {\n c_free_string_array(h->h_addr_list);\n c_free_string_array(h->h_aliases);\n free((char *)h->h_name);\n free(h);\n }\n}\n#endif\n\n#endif\n" (comment) "/* This file is part of Lwt, released under the MIT license. See LICENSE.md for\n details, or visit https://github.com/ocsigen/lwt/blob/master/LICENSE.md. */" (preproc_include) "#include "lwt_config.h"\n" (#include) "#include" (string_literal) ""lwt_config.h"" (") """ (string_content) "lwt_config.h" (") """ (preproc_if) "#if !defined(LWT_ON_WINDOWS)\n\n#include <caml/alloc.h>\n#include <caml/memory.h>\n#include <caml/mlvalues.h>\n#include <caml/socketaddr.h>\n#include <stdlib.h>\n#include <string.h>\n\n#include "unix_get_network_information_utils.h"\n\n#if defined(NON_R_GETHOSTBYADDR) || defined(NON_R_GETHOSTBYNAME)\nchar **c_copy_addr_array(char **src, int addr_len)\n{\n if (src == NULL) {\n return NULL;\n }\n char **p = src;\n size_t i = 0;\n while (*p) {\n i++;\n p++;\n }\n const size_t ar_len = i;\n p = malloc((ar_len + 1) * sizeof(char *));\n if (p == NULL) {\n return NULL;\n }\n for (i = 0; i < ar_len; ++i) {\n p[i] = malloc(addr_len);\n if (p[i] == NULL) {\n size_t j;\n for (j = 0; j < i; j++) {\n free(p[j]);\n }\n free(p);\n return NULL;\n }\n memcpy(p[i], src[i], addr_len);\n }\n p[ar_len] = NULL;\n return p;\n}\n#endif\n\n#if !defined(HAVE_NETDB_REENTRANT) || defined(NON_R_GETHOSTBYADDR) || \\n defined(NON_R_GETHOSTBYNAME)\nchar **c_copy_string_array(char **src)\n{\n char **p = src;\n size_t i = 0;\n size_t len;\n if (src == NULL) {\n return NULL;\n }\n while (*p) {\n i++;\n p++;\n }\n len = i;\n p = malloc((len + 1) * sizeof(char *));\n if (p == NULL) {\n return NULL;\n }\n for (i = 0; i < len; ++i) {\n p[i] = strdup(src[i]);\n if (p[i] == NULL) {\n size_t j;\n for (j = 0; j < i; j++) {\n free(p[j]);\n }\n free(p);\n return NULL;\n }\n }\n p[len] = NULL;\n return p;\n}\n\nvoid c_free_string_array(char **src)\n{\n if (src) {\n char **p = src;\n while (*p) {\n free(*p);\n ++p;\n }\n free(src);\n }\n}\n\nchar *s_strdup(const char *s)\n{\n return (strdup(s == NULL ? "" : s));\n}\n#endif\n\nCAMLexport value alloc_inet_addr(struct in_addr *inaddr);\nCAMLexport value alloc_inet6_addr(struct in6_addr *inaddr);\n\nstatic value alloc_one_addr(char const *a)\n{\n struct in_addr addr;\n memmove(&addr, a, 4);\n return alloc_inet_addr(&addr);\n}\n\nstatic value alloc_one_addr6(char const *a)\n{\n struct in6_addr addr;\n memmove(&addr, a, 16);\n return alloc_inet6_addr(&addr);\n}\n\nvalue alloc_host_entry(struct hostent *entry)\n{\n value res;\n value name = Val_unit, aliases = Val_unit;\n value addr_list = Val_unit, adr = Val_unit;\n\n Begin_roots4(name, aliases, addr_list, adr);\n name = caml_copy_string((char *)(entry->h_name));\n /* PR#4043: protect against buggy implementations of gethostbynamee()\n that return a NULL pointer in h_aliases */\n if (entry->h_aliases)\n aliases = caml_copy_string_array((const char **)entry->h_aliases);\n else\n aliases = Atom(0);\n if (entry->h_length == 16)\n addr_list = caml_alloc_array(alloc_one_addr6,\n (const char **)entry->h_addr_list);\n else\n addr_list =\n caml_alloc_array(alloc_one_addr, (const char **)entry->h_addr_list);\n res = caml_alloc_small(4, 0);\n Field(res, 0) = name;\n Field(res, 1) = aliases;\n switch (entry->h_addrtype) {\n case PF_UNIX:\n Field(res, 2) = Val_int(0);\n break;\n case PF_INET:\n Field(res, 2) = Val_int(1);\n break;\n default: /*PF_INET6 */\n Field(res, 2) = Val_int(2);\n break;\n }\n Field(res, 3) = addr_list;\n End_roots();\n return res;\n}\n\n#if defined(NON_R_GETHOSTBYADDR) || defined(NON_R_GETHOSTBYNAME)\nstruct hostent *hostent_dup(struct hostent *orig)\n{\n if (orig == NULL) {\n return NULL;\n }\n struct hostent *h = malloc(sizeof *h);\n if (h == NULL) {\n return NULL;\n }\n h->h_name = s_strdup(orig->h_name);\n if (!h->h_name) {\n goto nomem1;\n }\n if (!orig->h_aliases) {\n h->h_aliases = NULL;\n } else {\n h->h_aliases = c_copy_string_array(orig->h_aliases);\n if (!h->h_aliases) {\n goto nomem2;\n }\n }\n if (!orig->h_addr_list) {\n h->h_addr_list = NULL;\n } else {\n h->h_addr_list = c_copy_addr_array(orig->h_addr_list, orig->h_length);\n if (!h->h_addr_list) {\n goto nomem3;\n }\n }\n h->h_addrtype = orig->h_addrtype;\n h->h_length = orig->h_length;\n return h;\nnomem3:\n c_free_string_array(h->h_aliases);\nnomem2:\n free((char *)h->h_name);\nnomem1:\n free(h);\n return NULL;\n}\n\nvoid hostent_free(struct hostent *h)\n{\n if (h) {\n c_free_string_array(h->h_addr_list);\n c_free_string_array(h->h_aliases);\n free((char *)h->h_name);\n free(h);\n }\n}\n#endif\n\n#endif" (#if) "#if" (unary_expression) "!defined(LWT_ON_WINDOWS)" (!) "!" (preproc_defined) "defined(LWT_ON_WINDOWS)" (defined) "defined" (() "(" (identifier) "LWT_ON_WINDOWS" ()) ")" ( ) "\n\n" (preproc_include) "#include <caml/alloc.h>\n" (#include) "#include" (system_lib_string) "<caml/alloc.h>" (preproc_include) "#include <caml/memory.h>\n" (#include) "#include" (system_lib_string) "<caml/memory.h>" (preproc_include) "#include <caml/mlvalues.h>\n" (#include) "#include" (system_lib_string) "<caml/mlvalues.h>" (preproc_include) "#include <caml/socketaddr.h>\n" (#include) "#include" (system_lib_string) "<caml/socketaddr.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 "unix_get_network_information_utils.h"\n" (#include) "#include" (string_literal) ""unix_get_network_information_utils.h"" (") """ (string_content) "unix_get_network_information_utils.h" (") """ (preproc_if) "#if defined(NON_R_GETHOSTBYADDR) || defined(NON_R_GETHOSTBYNAME)\nchar **c_copy_addr_array(char **src, int addr_len)\n{\n if (src == NULL) {\n return NULL;\n }\n char **p = src;\n size_t i = 0;\n while (*p) {\n i++;\n p++;\n }\n const size_t ar_len = i;\n p = malloc((ar_len + 1) * sizeof(char *));\n if (p == NULL) {\n return NULL;\n }\n for (i = 0; i < ar_len; ++i) {\n p[i] = malloc(addr_len);\n if (p[i] == NULL) {\n size_t j;\n for (j = 0; j < i; j++) {\n free(p[j]);\n }\n free(p);\n return NULL;\n }\n memcpy(p[i], src[i], addr_len);\n }\n p[ar_len] = NULL;\n return p;\n}\n#endif" (#if) "#if" (binary_expression) "defined(NON_R_GETHOSTBYADDR) || defined(NON_R_GETHOSTBYNAME)" (preproc_defined) "defined(NON_R_GETHOSTBYADDR)" (defined) "defined" (() "(" (identifier) "NON_R_GETHOSTBYADDR" ()) ")" (||) "||" (preproc_defined) "defined(NON_R_GETHOSTBYNAME)" (defined) "defined" (() "(" (identifier) "NON_R_GETHOSTBYNAME" ()) ")" ( ) "\n" (function_definition) "char **c_copy_addr_array(char **src, int addr_len)\n{\n if (src == NULL) {\n return NULL;\n }\n char **p = src;\n size_t i = 0;\n while (*p) {\n i++;\n p++;\n }\n const size_t ar_len = i;\n p = malloc((ar_len + 1) * sizeof(char *));\n if (p == NULL) {\n return NULL;\n }\n for (i = 0; i < ar_len; ++i) {\n p[i] = malloc(addr_len);\n if (p[i] == NULL) {\n size_t j;\n for (j = 0; j < i; j++) {\n free(p[j]);\n }\n free(p);\n return NULL;\n }\n memcpy(p[i], src[i], addr_len);\n }\n p[ar_len] = NULL;\n return p;\n}" (primitive_type) "char" (pointer_declarator) "**c_copy_addr_array(char **src, int addr_len)" (*) "*" (pointer_declarator) "*c_copy_addr_array(char **src, int addr_len)" (*) "*" (function_declarator) "c_copy_addr_array(char **src, int addr_len)" (identifier) "c_copy_addr_array" (parameter_list) "(char **src, int addr_len)" (() "(" (parameter_declaration) "char **src" (primitive_type) "char" (pointer_declarator) "**src" (*) "*" (pointer_declarator) "*src" (*) "*" (identifier) "src" (,) "," (parameter_declaration) "int addr_len" (primitive_type) "int" (identifier) "addr_len" ()) ")" (compound_statement) "{\n if (src == NULL) {\n return NULL;\n }\n char **p = src;\n size_t i = 0;\n while (*p) {\n i++;\n p++;\n }\n const size_t ar_len = i;\n p = malloc((ar_len + 1) * sizeof(char *));\n if (p == NULL) {\n return NULL;\n }\n for (i = 0; i < ar_len; ++i) {\n p[i] = malloc(addr_len);\n if (p[i] == NULL) {\n size_t j;\n for (j = 0; j < i; j++) {\n free(p[j]);\n }\n free(p);\n return NULL;\n }\n memcpy(p[i], src[i], addr_len);\n }\n p[ar_len] = NULL;\n return p;\n}" ({) "{" (if_statement) "if (src == NULL) {\n return NULL;\n }" (if) "if" (parenthesized_expression) "(src == NULL)" (() "(" (binary_expression) "src == NULL" (identifier) "src" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n return NULL;\n }" ({) "{" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (declaration) "char **p = src;" (primitive_type) "char" (init_declarator) "**p = src" (pointer_declarator) "**p" (*) "*" (pointer_declarator) "*p" (*) "*" (identifier) "p" (=) "=" (identifier) "src" (;) ";" (declaration) "size_t i = 0;" (primitive_type) "size_t" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (while_statement) "while (*p) {\n i++;\n p++;\n }" (while) "while" (parenthesized_expression) "(*p)" (() "(" (pointer_expression) "*p" (*) "*" (identifier) "p" ()) ")" (compound_statement) "{\n i++;\n p++;\n }" ({) "{" (expression_statement) "i++;" (update_expression) "i++" (identifier) "i" (++) "++" (;) ";" (expression_statement) "p++;" (update_expression) "p++" (identifier) "p" (++) "++" (;) ";" (}) "}" (declaration) "const size_t ar_len = i;" (type_qualifier) "const" (const) "const" (primitive_type) "size_t" (init_declarator) "ar_len = i" (identifier) "ar_len" (=) "=" (identifier) "i" (;) ";" (expression_statement) "p = malloc((ar_len + 1) * sizeof(char *));" (assignment_expression) "p = malloc((ar_len + 1) * sizeof(char *))" (identifier) "p" (=) "=" (call_expression) "malloc((ar_len + 1) * sizeof(char *))" (identifier) "malloc" (argument_list) "((ar_len + 1) * sizeof(char *))" (() "(" (binary_expression) "(ar_len + 1) * sizeof(char *)" (parenthesized_expression) "(ar_len + 1)" (() "(" (binary_expression) "ar_len + 1" (identifier) "ar_len" (+) "+" (number_literal) "1" ()) ")" (*) "*" (sizeof_expression) "sizeof(char *)" (sizeof) "sizeof" (() "(" (type_descriptor) "char *" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" ()) ")" (;) ";" (if_statement) "if (p == NULL) {\n return NULL;\n }" (if) "if" (parenthesized_expression) "(p == NULL)" (() "(" (binary_expression) "p == NULL" (identifier) "p" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n return NULL;\n }" ({) "{" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (for_statement) "for (i = 0; i < ar_len; ++i) {\n p[i] = malloc(addr_len);\n if (p[i] == NULL) {\n size_t j;\n for (j = 0; j < i; j++) {\n free(p[j]);\n }\n free(p);\n return NULL;\n }\n memcpy(p[i], src[i], addr_len);\n }" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < ar_len" (identifier) "i" (<) "<" (identifier) "ar_len" (;) ";" (update_expression) "++i" (++) "++" (identifier) "i" ()) ")" (compound_statement) "{\n p[i] = malloc(addr_len);\n if (p[i] == NULL) {\n size_t j;\n for (j = 0; j < i; j++) {\n free(p[j]);\n }\n free(p);\n return NULL;\n }\n memcpy(p[i], src[i], addr_len);\n }" ({) "{" (expression_statement) "p[i] = malloc(addr_len);" (assignment_expression) "p[i] = malloc(addr_len)" (subscript_expression) "p[i]" (identifier) "p" ([) "[" (identifier) "i" (]) "]" (=) "=" (call_expression) "malloc(addr_len)" (identifier) "malloc" (argument_list) "(addr_len)" (() "(" (identifier) "addr_len" ()) ")" (;) ";" (if_statement) "if (p[i] == NULL) {\n size_t j;\n for (j = 0; j < i; j++) {\n free(p[j]);\n }\n free(p);\n return NULL;\n }" (if) "if" (parenthesized_expression) "(p[i] == NULL)" (() "(" (binary_expression) "p[i] == NULL" (subscript_expression) "p[i]" (identifier) "p" ([) "[" (identifier) "i" (]) "]" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n size_t j;\n for (j = 0; j < i; j++) {\n free(p[j]);\n }\n free(p);\n return NULL;\n }" ({) "{" (declaration) "size_t j;" (primitive_type) "size_t" (identifier) "j" (;) ";" (for_statement) "for (j = 0; j < i; j++) {\n free(p[j]);\n }" (for) "for" (() "(" (assignment_expression) "j = 0" (identifier) "j" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "j < i" (identifier) "j" (<) "<" (identifier) "i" (;) ";" (update_expression) "j++" (identifier) "j" (++) "++" ()) ")" (compound_statement) "{\n free(p[j]);\n }" ({) "{" (expression_statement) "free(p[j]);" (call_expression) "free(p[j])" (identifier) "free" (argument_list) "(p[j])" (() "(" (subscript_expression) "p[j]" (identifier) "p" ([) "[" (identifier) "j" (]) "]" ()) ")" (;) ";" (}) "}" (expression_statement) "free(p);" (call_expression) "free(p)" (identifier) "free" (argument_list) "(p)" (() "(" (identifier) "p" ()) ")" (;) ";" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (expression_statement) "memcpy(p[i], src[i], addr_len);" (call_expression) "memcpy(p[i], src[i], addr_len)" (identifier) "memcpy" (argument_list) "(p[i], src[i], addr_len)" (() "(" (subscript_expression) "p[i]" (identifier) "p" ([) "[" (identifier) "i" (]) "]" (,) "," (subscript_expression) "src[i]" (identifier) "src" ([) "[" (identifier) "i" (]) "]" (,) "," (identifier) "addr_len" ()) ")" (;) ";" (}) "}" (expression_statement) "p[ar_len] = NULL;" (assignment_expression) "p[ar_len] = NULL" (subscript_expression) "p[ar_len]" (identifier) "p" ([) "[" (identifier) "ar_len" (]) "]" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (return_statement) "return p;" (return) "return" (identifier) "p" (;) ";" (}) "}" (#endif) "#endif" (preproc_if) "#if !defined(HAVE_NETDB_REENTRANT) || defined(NON_R_GETHOSTBYADDR) || \\n defined(NON_R_GETHOSTBYNAME)\nchar **c_copy_string_array(char **src)\n{\n char **p = src;\n size_t i = 0;\n size_t len;\n if (src == NULL) {\n return NULL;\n }\n while (*p) {\n i++;\n p++;\n }\n len = i;\n p = malloc((len + 1) * sizeof(char *));\n if (p == NULL) {\n return NULL;\n }\n for (i = 0; i < len; ++i) {\n p[i] = strdup(src[i]);\n if (p[i] == NULL) {\n size_t j;\n for (j = 0; j < i; j++) {\n free(p[j]);\n }\n free(p);\n return NULL;\n }\n }\n p[len] = NULL;\n return p;\n}\n\nvoid c_free_string_array(char **src)\n{\n if (src) {\n char **p = src;\n while (*p) {\n free(*p);\n ++p;\n }\n free(src);\n }\n}\n\nchar *s_strdup(const char *s)\n{\n return (strdup(s == NULL ? "" : s));\n}\n#endif" (#if) "#if" (binary_expression) "!defined(HAVE_NETDB_REENTRANT) || defined(NON_R_GETHOSTBYADDR) || \\n defined(NON_R_GETHOSTBYNAME)" (binary_expression) "!defined(HAVE_NETDB_REENTRANT) || defined(NON_R_GETHOSTBYADDR)" (unary_expression) "!defined(HAVE_NETDB_REENTRANT)" (!) "!" (preproc_defined) "defined(HAVE_NETDB_REENTRANT)" (defined) "defined" (() "(" (identifier) "HAVE_NETDB_REENTRANT" ()) ")" (||) "||" (preproc_defined) "defined(NON_R_GETHOSTBYADDR)" (defined) "defined" (() "(" (identifier) "NON_R_GETHOSTBYADDR" ()) ")" (||) "||" (preproc_defined) "defined(NON_R_GETHOSTBYNAME)" (defined) "defined" (() "(" (identifier) "NON_R_GETHOSTBYNAME" ()) ")" ( ) "\n" (function_definition) "char **c_copy_string_array(char **src)\n{\n char **p = src;\n size_t i = 0;\n size_t len;\n if (src == NULL) {\n return NULL;\n }\n while (*p) {\n i++;\n p++;\n }\n len = i;\n p = malloc((len + 1) * sizeof(char *));\n if (p == NULL) {\n return NULL;\n }\n for (i = 0; i < len; ++i) {\n p[i] = strdup(src[i]);\n if (p[i] == NULL) {\n size_t j;\n for (j = 0; j < i; j++) {\n free(p[j]);\n }\n free(p);\n return NULL;\n }\n }\n p[len] = NULL;\n return p;\n}" (primitive_type) "char" (pointer_declarator) "**c_copy_string_array(char **src)" (*) "*" (pointer_declarator) "*c_copy_string_array(char **src)" (*) "*" (function_declarator) "c_copy_string_array(char **src)" (identifier) "c_copy_string_array" (parameter_list) "(char **src)" (() "(" (parameter_declaration) "char **src" (primitive_type) "char" (pointer_declarator) "**src" (*) "*" (pointer_declarator) "*src" (*) "*" (identifier) "src" ()) ")" (compound_statement) "{\n char **p = src;\n size_t i = 0;\n size_t len;\n if (src == NULL) {\n return NULL;\n }\n while (*p) {\n i++;\n p++;\n }\n len = i;\n p = malloc((len + 1) * sizeof(char *));\n if (p == NULL) {\n return NULL;\n }\n for (i = 0; i < len; ++i) {\n p[i] = strdup(src[i]);\n if (p[i] == NULL) {\n size_t j;\n for (j = 0; j < i; j++) {\n free(p[j]);\n }\n free(p);\n return NULL;\n }\n }\n p[len] = NULL;\n return p;\n}" ({) "{" (declaration) "char **p = src;" (primitive_type) "char" (init_declarator) "**p = src" (pointer_declarator) "**p" (*) "*" (pointer_declarator) "*p" (*) "*" (identifier) "p" (=) "=" (identifier) "src" (;) ";" (declaration) "size_t i = 0;" (primitive_type) "size_t" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (declaration) "size_t len;" (primitive_type) "size_t" (identifier) "len" (;) ";" (if_statement) "if (src == NULL) {\n return NULL;\n }" (if) "if" (parenthesized_expression) "(src == NULL)" (() "(" (binary_expression) "src == NULL" (identifier) "src" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n return NULL;\n }" ({) "{" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (while_statement) "while (*p) {\n i++;\n p++;\n }" (while) "while" (parenthesized_expression) "(*p)" (() "(" (pointer_expression) "*p" (*) "*" (identifier) "p" ()) ")" (compound_statement) "{\n i++;\n p++;\n }" ({) "{" (expression_statement) "i++;" (update_expression) "i++" (identifier) "i" (++) "++" (;) ";" (expression_statement) "p++;" (update_expression) "p++" (identifier) "p" (++) "++" (;) ";" (}) "}" (expression_statement) "len = i;" (assignment_expression) "len = i" (identifier) "len" (=) "=" (identifier) "i" (;) ";" (expression_statement) "p = malloc((len + 1) * sizeof(char *));" (assignment_expression) "p = malloc((len + 1) * sizeof(char *))" (identifier) "p" (=) "=" (call_expression) "malloc((len + 1) * sizeof(char *))" (identifier) "malloc" (argument_list) "((len + 1) * sizeof(char *))" (() "(" (binary_expression) "(len + 1) * sizeof(char *)" (parenthesized_expression) "(len + 1)" (() "(" (binary_expression) "len + 1" (identifier) "len" (+) "+" (number_literal) "1" ()) ")" (*) "*" (sizeof_expression) "sizeof(char *)" (sizeof) "sizeof" (() "(" (type_descriptor) "char *" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" ()) ")" (;) ";" (if_statement) "if (p == NULL) {\n return NULL;\n }" (if) "if" (parenthesized_expression) "(p == NULL)" (() "(" (binary_expression) "p == NULL" (identifier) "p" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n return NULL;\n }" ({) "{" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (for_statement) "for (i = 0; i < len; ++i) {\n p[i] = strdup(src[i]);\n if (p[i] == NULL) {\n size_t j;\n for (j = 0; j < i; j++) {\n free(p[j]);\n }\n free(p);\n return NULL;\n }\n }" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < len" (identifier) "i" (<) "<" (identifier) "len" (;) ";" (update_expression) "++i" (++) "++" (identifier) "i" ()) ")" (compound_statement) "{\n p[i] = strdup(src[i]);\n if (p[i] == NULL) {\n size_t j;\n for (j = 0; j < i; j++) {\n free(p[j]);\n }\n free(p);\n return NULL;\n }\n }" ({) "{" (expression_statement) "p[i] = strdup(src[i]);" (assignment_expression) "p[i] = strdup(src[i])" (subscript_expression) "p[i]" (identifier) "p" ([) "[" (identifier) "i" (]) "]" (=) "=" (call_expression) "strdup(src[i])" (identifier) "strdup" (argument_list) "(src[i])" (() "(" (subscript_expression) "src[i]" (identifier) "src" ([) "[" (identifier) "i" (]) "]" ()) ")" (;) ";" (if_statement) "if (p[i] == NULL) {\n size_t j;\n for (j = 0; j < i; j++) {\n free(p[j]);\n }\n free(p);\n return NULL;\n }" (if) "if" (parenthesized_expression) "(p[i] == NULL)" (() "(" (binary_expression) "p[i] == NULL" (subscript_expression) "p[i]" (identifier) "p" ([) "[" (identifier) "i" (]) "]" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n size_t j;\n for (j = 0; j < i; j++) {\n free(p[j]);\n }\n free(p);\n return NULL;\n }" ({) "{" (declaration) "size_t j;" (primitive_type) "size_t" (identifier) "j" (;) ";" (for_statement) "for (j = 0; j < i; j++) {\n free(p[j]);\n }" (for) "for" (() "(" (assignment_expression) "j = 0" (identifier) "j" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "j < i" (identifier) "j" (<) "<" (identifier) "i" (;) ";" (update_expression) "j++" (identifier) "j" (++) "++" ()) ")" (compound_statement) "{\n free(p[j]);\n }" ({) "{" (expression_statement) "free(p[j]);" (call_expression) "free(p[j])" (identifier) "free" (argument_list) "(p[j])" (() "(" (subscript_expression) "p[j]" (identifier) "p" ([) "[" (identifier) "j" (]) "]" ()) ")" (;) ";" (}) "}" (expression_statement) "free(p);" (call_expression) "free(p)" (identifier) "free" (argument_list) "(p)" (() "(" (identifier) "p" ()) ")" (;) ";" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (}) "}" (expression_statement) "p[len] = NULL;" (assignment_expression) "p[len] = NULL" (subscript_expression) "p[len]" (identifier) "p" ([) "[" (identifier) "len" (]) "]" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (return_statement) "return p;" (return) "return" (identifier) "p" (;) ";" (}) "}" (function_definition) "void c_free_string_array(char **src)\n{\n if (src) {\n char **p = src;\n while (*p) {\n free(*p);\n ++p;\n }\n free(src);\n }\n}" (primitive_type) "void" (function_declarator) "c_free_string_array(char **src)" (identifier) "c_free_string_array" (parameter_list) "(char **src)" (() "(" (parameter_declaration) "char **src" (primitive_type) "char" (pointer_declarator) "**src" (*) "*" (pointer_declarator) "*src" (*) "*" (identifier) "src" ()) ")" (compound_statement) "{\n if (src) {\n char **p = src;\n while (*p) {\n free(*p);\n ++p;\n }\n free(src);\n }\n}" ({) "{" (if_statement) "if (src) {\n char **p = src;\n while (*p) {\n free(*p);\n ++p;\n }\n free(src);\n }" (if) "if" (parenthesized_expression) "(src)" (() "(" (identifier) "src" ()) ")" (compound_statement) "{\n char **p = src;\n while (*p) {\n free(*p);\n ++p;\n }\n free(src);\n }" ({) "{" (declaration) "char **p = src;" (primitive_type) "char" (init_declarator) "**p = src" (pointer_declarator) "**p" (*) "*" (pointer_declarator) "*p" (*) "*" (identifier) "p" (=) "=" (identifier) "src" (;) ";" (while_statement) "while (*p) {\n free(*p);\n ++p;\n }" (while) "while" (parenthesized_expression) "(*p)" (() "(" (pointer_expression) "*p" (*) "*" (identifier) "p" ()) ")" (compound_statement) "{\n free(*p);\n ++p;\n }" ({) "{" (expression_statement) "free(*p);" (call_expression) "free(*p)" (identifier) "free" (argument_list) "(*p)" (() "(" (pointer_expression) "*p" (*) "*" (identifier) "p" ()) ")" (;) ";" (expression_statement) "++p;" (update_expression) "++p" (++) "++" (identifier) "p" (;) ";" (}) "}" (expression_statement) "free(src);" (call_expression) "free(src)" (identifier) "free" (argument_list) "(src)" (() "(" (identifier) "src" ()) ")" (;) ";" (}) "}" (}) "}" (function_definition) "char *s_strdup(const char *s)\n{\n return (strdup(s == NULL ? "" : s));\n}" (primitive_type) "char" (pointer_declarator) "*s_strdup(const char *s)" (*) "*" (function_declarator) "s_strdup(const char *s)" (identifier) "s_strdup" (parameter_list) "(const char *s)" (() "(" (parameter_declaration) "const char *s" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*s" (*) "*" (identifier) "s" ()) ")" (compound_statement) "{\n return (strdup(s == NULL ? "" : s));\n}" ({) "{" (return_statement) "return (strdup(s == NULL ? "" : s));" (return) "return" (parenthesized_expression) "(strdup(s == NULL ? "" : s))" (() "(" (call_expression) "strdup(s == NULL ? "" : s)" (identifier) "strdup" (argument_list) "(s == NULL ? "" : s)" (() "(" (conditional_expression) "s == NULL ? "" : s" (binary_expression) "s == NULL" (identifier) "s" (==) "==" (null) "NULL" (NULL) "NULL" (?) "?" (string_literal) """" (") """ (") """ (:) ":" (identifier) "s" ()) ")" ()) ")" (;) ";" (}) "}" (#endif) "#endif" (declaration) "CAMLexport value alloc_inet_addr(struct in_addr *inaddr);" (type_identifier) "CAMLexport" (ERROR) "value" (identifier) "value" (function_declarator) "alloc_inet_addr(struct in_addr *inaddr)" (identifier) "alloc_inet_addr" (parameter_list) "(struct in_addr *inaddr)" (() "(" (parameter_declaration) "struct in_addr *inaddr" (struct_specifier) "struct in_addr" (struct) "struct" (type_identifier) "in_addr" (pointer_declarator) "*inaddr" (*) "*" (identifier) "inaddr" ()) ")" (;) ";" (declaration) "CAMLexport value alloc_inet6_addr(struct in6_addr *inaddr);" (type_identifier) "CAMLexport" (ERROR) "value" (identifier) "value" (function_declarator) "alloc_inet6_addr(struct in6_addr *inaddr)" (identifier) "alloc_inet6_addr" (parameter_list) "(struct in6_addr *inaddr)" (() "(" (parameter_declaration) "struct in6_addr *inaddr" (struct_specifier) "struct in6_addr" (struct) "struct" (type_identifier) "in6_addr" (pointer_declarator) "*inaddr" (*) "*" (identifier) "inaddr" ()) ")" (;) ";" (function_definition) "static value alloc_one_addr(char const *a)\n{\n struct in_addr addr;\n memmove(&addr, a, 4);\n return alloc_inet_addr(&addr);\n}" (storage_class_specifier) "static" (static) "static" (type_identifier) "value" (function_declarator) "alloc_one_addr(char const *a)" (identifier) "alloc_one_addr" (parameter_list) "(char const *a)" (() "(" (parameter_declaration) "char const *a" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*a" (*) "*" (identifier) "a" ()) ")" (compound_statement) "{\n struct in_addr addr;\n memmove(&addr, a, 4);\n return alloc_inet_addr(&addr);\n}" ({) "{" (declaration) "struct in_addr addr;" (struct_specifier) "struct in_addr" (struct) "struct" (type_identifier) "in_addr" (identifier) "addr" (;) ";" (expression_statement) "memmove(&addr, a, 4);" (call_expression) "memmove(&addr, a, 4)" (identifier) "memmove" (argument_list) "(&addr, a, 4)" (() "(" (pointer_expression) "&addr" (&) "&" (identifier) "addr" (,) "," (identifier) "a" (,) "," (number_literal) "4" ()) ")" (;) ";" (return_statement) "return alloc_inet_addr(&addr);" (return) "return" (call_expression) "alloc_inet_addr(&addr)" (identifier) "alloc_inet_addr" (argument_list) "(&addr)" (() "(" (pointer_expression) "&addr" (&) "&" (identifier) "addr" ()) ")" (;) ";" (}) "}" (function_definition) "static value alloc_one_addr6(char const *a)\n{\n struct in6_addr addr;\n memmove(&addr, a, 16);\n return alloc_inet6_addr(&addr);\n}" (storage_class_specifier) "static" (static) "static" (type_identifier) "value" (function_declarator) "alloc_one_addr6(char const *a)" (identifier) "alloc_one_addr6" (parameter_list) "(char const *a)" (() "(" (parameter_declaration) "char const *a" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*a" (*) "*" (identifier) "a" ()) ")" (compound_statement) "{\n struct in6_addr addr;\n memmove(&addr, a, 16);\n return alloc_inet6_addr(&addr);\n}" ({) "{" (declaration) "struct in6_addr addr;" (struct_specifier) "struct in6_addr" (struct) "struct" (type_identifier) "in6_addr" (identifier) "addr" (;) ";" (expression_statement) "memmove(&addr, a, 16);" (call_expression) "memmove(&addr, a, 16)" (identifier) "memmove" (argument_list) "(&addr, a, 16)" (() "(" (pointer_expression) "&addr" (&) "&" (identifier) "addr" (,) "," (identifier) "a" (,) "," (number_literal) "16" ()) ")" (;) ";" (return_statement) "return alloc_inet6_addr(&addr);" (return) "return" (call_expression) "alloc_inet6_addr(&addr)" (identifier) "alloc_inet6_addr" (argument_list) "(&addr)" (() "(" (pointer_expression) "&addr" (&) "&" (identifier) "addr" ()) ")" (;) ";" (}) "}" (function_definition) "value alloc_host_entry(struct hostent *entry)\n{\n value res;\n value name = Val_unit, aliases = Val_unit;\n value addr_list = Val_unit, adr = Val_unit;\n\n Begin_roots4(name, aliases, addr_list, adr);\n name = caml_copy_string((char *)(entry->h_name));\n /* PR#4043: protect against buggy implementations of gethostbynamee()\n that return a NULL pointer in h_aliases */\n if (entry->h_aliases)\n aliases = caml_copy_string_array((const char **)entry->h_aliases);\n else\n aliases = Atom(0);\n if (entry->h_length == 16)\n addr_list = caml_alloc_array(alloc_one_addr6,\n (const char **)entry->h_addr_list);\n else\n addr_list =\n caml_alloc_array(alloc_one_addr, (const char **)entry->h_addr_list);\n res = caml_alloc_small(4, 0);\n Field(res, 0) = name;\n Field(res, 1) = aliases;\n switch (entry->h_addrtype) {\n case PF_UNIX:\n Field(res, 2) = Val_int(0);\n break;\n case PF_INET:\n Field(res, 2) = Val_int(1);\n break;\n default: /*PF_INET6 */\n Field(res, 2) = Val_int(2);\n break;\n }\n Field(res, 3) = addr_list;\n End_roots();\n return res;\n}" (type_identifier) "value" (function_declarator) "alloc_host_entry(struct hostent *entry)" (identifier) "alloc_host_entry" (parameter_list) "(struct hostent *entry)" (() "(" (parameter_declaration) "struct hostent *entry" (struct_specifier) "struct hostent" (struct) "struct" (type_identifier) "hostent" (pointer_declarator) "*entry" (*) "*" (identifier) "entry" ()) ")" (compound_statement) "{\n value res;\n value name = Val_unit, aliases = Val_unit;\n value addr_list = Val_unit, adr = Val_unit;\n\n Begin_roots4(name, aliases, addr_list, adr);\n name = caml_copy_string((char *)(entry->h_name));\n /* PR#4043: protect against buggy implementations of gethostbynamee()\n that return a NULL pointer in h_aliases */\n if (entry->h_aliases)\n aliases = caml_copy_string_array((const char **)entry->h_aliases);\n else\n aliases = Atom(0);\n if (entry->h_length == 16)\n addr_list = caml_alloc_array(alloc_one_addr6,\n (const char **)entry->h_addr_list);\n else\n addr_list =\n caml_alloc_array(alloc_one_addr, (const char **)entry->h_addr_list);\n res = caml_alloc_small(4, 0);\n Field(res, 0) = name;\n Field(res, 1) = aliases;\n switch (entry->h_addrtype) {\n case PF_UNIX:\n Field(res, 2) = Val_int(0);\n break;\n case PF_INET:\n Field(res, 2) = Val_int(1);\n break;\n default: /*PF_INET6 */\n Field(res, 2) = Val_int(2);\n break;\n }\n Field(res, 3) = addr_list;\n End_roots();\n return res;\n}" ({) "{" (declaration) "value res;" (type_identifier) "value" (identifier) "res" (;) ";" (declaration) "value name = Val_unit, aliases = Val_unit;" (type_identifier) "value" (init_declarator) "name = Val_unit" (identifier) "name" (=) "=" (identifier) "Val_unit" (,) "," (init_declarator) "aliases = Val_unit" (identifier) "aliases" (=) "=" (identifier) "Val_unit" (;) ";" (declaration) "value addr_list = Val_unit, adr = Val_unit;" (type_identifier) "value" (init_declarator) "addr_list = Val_unit" (identifier) "addr_list" (=) "=" (identifier) "Val_unit" (,) "," (init_declarator) "adr = Val_unit" (identifier) "adr" (=) "=" (identifier) "Val_unit" (;) ";" (expression_statement) "Begin_roots4(name, aliases, addr_list, adr);" (call_expression) "Begin_roots4(name, aliases, addr_list, adr)" (identifier) "Begin_roots4" (argument_list) "(name, aliases, addr_list, adr)" (() "(" (identifier) "name" (,) "," (identifier) "aliases" (,) "," (identifier) "addr_list" (,) "," (identifier) "adr" ()) ")" (;) ";" (expression_statement) "name = caml_copy_string((char *)(entry->h_name));" (assignment_expression) "name = caml_copy_string((char *)(entry->h_name))" (identifier) "name" (=) "=" (call_expression) "caml_copy_string((char *)(entry->h_name))" (identifier) "caml_copy_string" (argument_list) "((char *)(entry->h_name))" (() "(" (cast_expression) "(char *)(entry->h_name)" (() "(" (type_descriptor) "char *" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (parenthesized_expression) "(entry->h_name)" (() "(" (field_expression) "entry->h_name" (identifier) "entry" (->) "->" (field_identifier) "h_name" ()) ")" ()) ")" (;) ";" (comment) "/* PR#4043: protect against buggy implementations of gethostbynamee()\n that return a NULL pointer in h_aliases */" (if_statement) "if (entry->h_aliases)\n aliases = caml_copy_string_array((const char **)entry->h_aliases);\n else\n aliases = Atom(0);" (if) "if" (parenthesized_expression) "(entry->h_aliases)" (() "(" (field_expression) "entry->h_aliases" (identifier) "entry" (->) "->" (field_identifier) "h_aliases" ()) ")" (expression_statement) "aliases = caml_copy_string_array((const char **)entry->h_aliases);" (assignment_expression) "aliases = caml_copy_string_array((const char **)entry->h_aliases)" (identifier) "aliases" (=) "=" (call_expression) "caml_copy_string_array((const char **)entry->h_aliases)" (identifier) "caml_copy_string_array" (argument_list) "((const char **)entry->h_aliases)" (() "(" (cast_expression) "(const char **)entry->h_aliases" (() "(" (type_descriptor) "const char **" (type_qualifier) "const" (const) "const" (primitive_type) "char" (abstract_pointer_declarator) "**" (*) "*" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (field_expression) "entry->h_aliases" (identifier) "entry" (->) "->" (field_identifier) "h_aliases" ()) ")" (;) ";" (else_clause) "else\n aliases = Atom(0);" (else) "else" (expression_statement) "aliases = Atom(0);" (assignment_expression) "aliases = Atom(0)" (identifier) "aliases" (=) "=" (call_expression) "Atom(0)" (identifier) "Atom" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (;) ";" (if_statement) "if (entry->h_length == 16)\n addr_list = caml_alloc_array(alloc_one_addr6,\n (const char **)entry->h_addr_list);\n else\n addr_list =\n caml_alloc_array(alloc_one_addr, (const char **)entry->h_addr_list);" (if) "if" (parenthesized_expression) "(entry->h_length == 16)" (() "(" (binary_expression) "entry->h_length == 16" (field_expression) "entry->h_length" (identifier) "entry" (->) "->" (field_identifier) "h_length" (==) "==" (number_literal) "16" ()) ")" (expression_statement) "addr_list = caml_alloc_array(alloc_one_addr6,\n (const char **)entry->h_addr_list);" (assignment_expression) "addr_list = caml_alloc_array(alloc_one_addr6,\n (const char **)entry->h_addr_list)" (identifier) "addr_list" (=) "=" (call_expression) "caml_alloc_array(alloc_one_addr6,\n (const char **)entry->h_addr_list)" (identifier) "caml_alloc_array" (argument_list) "(alloc_one_addr6,\n (const char **)entry->h_addr_list)" (() "(" (identifier) "alloc_one_addr6" (,) "," (cast_expression) "(const char **)entry->h_addr_list" (() "(" (type_descriptor) "const char **" (type_qualifier) "const" (const) "const" (primitive_type) "char" (abstract_pointer_declarator) "**" (*) "*" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (field_expression) "entry->h_addr_list" (identifier) "entry" (->) "->" (field_identifier) "h_addr_list" ()) ")" (;) ";" (else_clause) "else\n addr_list =\n caml_alloc_array(alloc_one_addr, (const char **)entry->h_addr_list);" (else) "else" (expression_statement) "addr_list =\n caml_alloc_array(alloc_one_addr, (const char **)entry->h_addr_list);" (assignment_expression) "addr_list =\n caml_alloc_array(alloc_one_addr, (const char **)entry->h_addr_list)" (identifier) "addr_list" (=) "=" (call_expression) "caml_alloc_array(alloc_one_addr, (const char **)entry->h_addr_list)" (identifier) "caml_alloc_array" (argument_list) "(alloc_one_addr, (const char **)entry->h_addr_list)" (() "(" (identifier) "alloc_one_addr" (,) "," (cast_expression) "(const char **)entry->h_addr_list" (() "(" (type_descriptor) "const char **" (type_qualifier) "const" (const) "const" (primitive_type) "char" (abstract_pointer_declarator) "**" (*) "*" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (field_expression) "entry->h_addr_list" (identifier) "entry" (->) "->" (field_identifier) "h_addr_list" ()) ")" (;) ";" (expression_statement) "res = caml_alloc_small(4, 0);" (assignment_expression) "res = caml_alloc_small(4, 0)" (identifier) "res" (=) "=" (call_expression) "caml_alloc_small(4, 0)" (identifier) "caml_alloc_small" (argument_list) "(4, 0)" (() "(" (number_literal) "4" (,) "," (number_literal) "0" ()) ")" (;) ";" (expression_statement) "Field(res, 0) = name;" (assignment_expression) "Field(res, 0) = name" (call_expression) "Field(res, 0)" (identifier) "Field" (argument_list) "(res, 0)" (() "(" (identifier) "res" (,) "," (number_literal) "0" ()) ")" (=) "=" (identifier) "name" (;) ";" (expression_statement) "Field(res, 1) = aliases;" (assignment_expression) "Field(res, 1) = aliases" (call_expression) "Field(res, 1)" (identifier) "Field" (argument_list) "(res, 1)" (() "(" (identifier) "res" (,) "," (number_literal) "1" ()) ")" (=) "=" (identifier) "aliases" (;) ";" (switch_statement) "switch (entry->h_addrtype) {\n case PF_UNIX:\n Field(res, 2) = Val_int(0);\n break;\n case PF_INET:\n Field(res, 2) = Val_int(1);\n break;\n default: /*PF_INET6 */\n Field(res, 2) = Val_int(2);\n break;\n }" (switch) "switch" (parenthesized_expression) "(entry->h_addrtype)" (() "(" (field_expression) "entry->h_addrtype" (identifier) "entry" (->) "->" (field_identifier) "h_addrtype" ()) ")" (compound_statement) "{\n case PF_UNIX:\n Field(res, 2) = Val_int(0);\n break;\n case PF_INET:\n Field(res, 2) = Val_int(1);\n break;\n default: /*PF_INET6 */\n Field(res, 2) = Val_int(2);\n break;\n }" ({) "{" (case_statement) "case PF_UNIX:\n Field(res, 2) = Val_int(0);\n break;" (case) "case" (identifier) "PF_UNIX" (:) ":" (expression_statement) "Field(res, 2) = Val_int(0);" (assignment_expression) "Field(res, 2) = Val_int(0)" (call_expression) "Field(res, 2)" (identifier) "Field" (argument_list) "(res, 2)" (() "(" (identifier) "res" (,) "," (number_literal) "2" ()) ")" (=) "=" (call_expression) "Val_int(0)" (identifier) "Val_int" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case PF_INET:\n Field(res, 2) = Val_int(1);\n break;" (case) "case" (identifier) "PF_INET" (:) ":" (expression_statement) "Field(res, 2) = Val_int(1);" (assignment_expression) "Field(res, 2) = Val_int(1)" (call_expression) "Field(res, 2)" (identifier) "Field" (argument_list) "(res, 2)" (() "(" (identifier) "res" (,) "," (number_literal) "2" ()) ")" (=) "=" (call_expression) "Val_int(1)" (identifier) "Val_int" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "default: /*PF_INET6 */\n Field(res, 2) = Val_int(2);\n break;" (default) "default" (:) ":" (comment) "/*PF_INET6 */" (expression_statement) "Field(res, 2) = Val_int(2);" (assignment_expression) "Field(res, 2) = Val_int(2)" (call_expression) "Field(res, 2)" (identifier) "Field" (argument_list) "(res, 2)" (() "(" (identifier) "res" (,) "," (number_literal) "2" ()) ")" (=) "=" (call_expression) "Val_int(2)" (identifier) "Val_int" (argument_list) "(2)" (() "(" (number_literal) "2" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (expression_statement) "Field(res, 3) = addr_list;" (assignment_expression) "Field(res, 3) = addr_list" (call_expression) "Field(res, 3)" (identifier) "Field" (argument_list) "(res, 3)" (() "(" (identifier) "res" (,) "," (number_literal) "3" ()) ")" (=) "=" (identifier) "addr_list" (;) ";" (expression_statement) "End_roots();" (call_expression) "End_roots()" (identifier) "End_roots" (argument_list) "()" (() "(" ()) ")" (;) ";" (return_statement) "return res;" (return) "return" (identifier) "res" (;) ";" (}) "}" (preproc_if) "#if defined(NON_R_GETHOSTBYADDR) || defined(NON_R_GETHOSTBYNAME)\nstruct hostent *hostent_dup(struct hostent *orig)\n{\n if (orig == NULL) {\n return NULL;\n }\n struct hostent *h = malloc(sizeof *h);\n if (h == NULL) {\n return NULL;\n }\n h->h_name = s_strdup(orig->h_name);\n if (!h->h_name) {\n goto nomem1;\n }\n if (!orig->h_aliases) {\n h->h_aliases = NULL;\n } else {\n h->h_aliases = c_copy_string_array(orig->h_aliases);\n if (!h->h_aliases) {\n goto nomem2;\n }\n }\n if (!orig->h_addr_list) {\n h->h_addr_list = NULL;\n } else {\n h->h_addr_list = c_copy_addr_array(orig->h_addr_list, orig->h_length);\n if (!h->h_addr_list) {\n goto nomem3;\n }\n }\n h->h_addrtype = orig->h_addrtype;\n h->h_length = orig->h_length;\n return h;\nnomem3:\n c_free_string_array(h->h_aliases);\nnomem2:\n free((char *)h->h_name);\nnomem1:\n free(h);\n return NULL;\n}\n\nvoid hostent_free(struct hostent *h)\n{\n if (h) {\n c_free_string_array(h->h_addr_list);\n c_free_string_array(h->h_aliases);\n free((char *)h->h_name);\n free(h);\n }\n}\n#endif" (#if) "#if" (binary_expression) "defined(NON_R_GETHOSTBYADDR) || defined(NON_R_GETHOSTBYNAME)" (preproc_defined) "defined(NON_R_GETHOSTBYADDR)" (defined) "defined" (() "(" (identifier) "NON_R_GETHOSTBYADDR" ()) ")" (||) "||" (preproc_defined) "defined(NON_R_GETHOSTBYNAME)" (defined) "defined" (() "(" (identifier) "NON_R_GETHOSTBYNAME" ()) ")" ( ) "\n" (function_definition) "struct hostent *hostent_dup(struct hostent *orig)\n{\n if (orig == NULL) {\n return NULL;\n }\n struct hostent *h = malloc(sizeof *h);\n if (h == NULL) {\n return NULL;\n }\n h->h_name = s_strdup(orig->h_name);\n if (!h->h_name) {\n goto nomem1;\n }\n if (!orig->h_aliases) {\n h->h_aliases = NULL;\n } else {\n h->h_aliases = c_copy_string_array(orig->h_aliases);\n if (!h->h_aliases) {\n goto nomem2;\n }\n }\n if (!orig->h_addr_list) {\n h->h_addr_list = NULL;\n } else {\n h->h_addr_list = c_copy_addr_array(orig->h_addr_list, orig->h_length);\n if (!h->h_addr_list) {\n goto nomem3;\n }\n }\n h->h_addrtype = orig->h_addrtype;\n h->h_length = orig->h_length;\n return h;\nnomem3:\n c_free_string_array(h->h_aliases);\nnomem2:\n free((char *)h->h_name);\nnomem1:\n free(h);\n return NULL;\n}" (struct_specifier) "struct hostent" (struct) "struct" (type_identifier) "hostent" (pointer_declarator) "*hostent_dup(struct hostent *orig)" (*) "*" (function_declarator) "hostent_dup(struct hostent *orig)" (identifier) "hostent_dup" (parameter_list) "(struct hostent *orig)" (() "(" (parameter_declaration) "struct hostent *orig" (struct_specifier) "struct hostent" (struct) "struct" (type_identifier) "hostent" (pointer_declarator) "*orig" (*) "*" (identifier) "orig" ()) ")" (compound_statement) "{\n if (orig == NULL) {\n return NULL;\n }\n struct hostent *h = malloc(sizeof *h);\n if (h == NULL) {\n return NULL;\n }\n h->h_name = s_strdup(orig->h_name);\n if (!h->h_name) {\n goto nomem1;\n }\n if (!orig->h_aliases) {\n h->h_aliases = NULL;\n } else {\n h->h_aliases = c_copy_string_array(orig->h_aliases);\n if (!h->h_aliases) {\n goto nomem2;\n }\n }\n if (!orig->h_addr_list) {\n h->h_addr_list = NULL;\n } else {\n h->h_addr_list = c_copy_addr_array(orig->h_addr_list, orig->h_length);\n if (!h->h_addr_list) {\n goto nomem3;\n }\n }\n h->h_addrtype = orig->h_addrtype;\n h->h_length = orig->h_length;\n return h;\nnomem3:\n c_free_string_array(h->h_aliases);\nnomem2:\n free((char *)h->h_name);\nnomem1:\n free(h);\n return NULL;\n}" ({) "{" (if_statement) "if (orig == NULL) {\n return NULL;\n }" (if) "if" (parenthesized_expression) "(orig == NULL)" (() "(" (binary_expression) "orig == NULL" (identifier) "orig" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n return NULL;\n }" ({) "{" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (declaration) "struct hostent *h = malloc(sizeof *h);" (struct_specifier) "struct hostent" (struct) "struct" (type_identifier) "hostent" (init_declarator) "*h = malloc(sizeof *h)" (pointer_declarator) "*h" (*) "*" (identifier) "h" (=) "=" (call_expression) "malloc(sizeof *h)" (identifier) "malloc" (argument_list) "(sizeof *h)" (() "(" (sizeof_expression) "sizeof *h" (sizeof) "sizeof" (pointer_expression) "*h" (*) "*" (identifier) "h" ()) ")" (;) ";" (if_statement) "if (h == NULL) {\n return NULL;\n }" (if) "if" (parenthesized_expression) "(h == NULL)" (() "(" (binary_expression) "h == NULL" (identifier) "h" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n return NULL;\n }" ({) "{" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (expression_statement) "h->h_name = s_strdup(orig->h_name);" (assignment_expression) "h->h_name = s_strdup(orig->h_name)" (field_expression) "h->h_name" (identifier) "h" (->) "->" (field_identifier) "h_name" (=) "=" (call_expression) "s_strdup(orig->h_name)" (identifier) "s_strdup" (argument_list) "(orig->h_name)" (() "(" (field_expression) "orig->h_name" (identifier) "orig" (->) "->" (field_identifier) "h_name" ()) ")" (;) ";" (if_statement) "if (!h->h_name) {\n goto nomem1;\n }" (if) "if" (parenthesized_expression) "(!h->h_name)" (() "(" (unary_expression) "!h->h_name" (!) "!" (field_expression) "h->h_name" (identifier) "h" (->) "->" (field_identifier) "h_name" ()) ")" (compound_statement) "{\n goto nomem1;\n }" ({) "{" (goto_statement) "goto nomem1;" (goto) "goto" (statement_identifier) "nomem1" (;) ";" (}) "}" (if_statement) "if (!orig->h_aliases) {\n h->h_aliases = NULL;\n } else {\n h->h_aliases = c_copy_string_array(orig->h_aliases);\n if (!h->h_aliases) {\n goto nomem2;\n }\n }" (if) "if" (parenthesized_expression) "(!orig->h_aliases)" (() "(" (unary_expression) "!orig->h_aliases" (!) "!" (field_expression) "orig->h_aliases" (identifier) "orig" (->) "->" (field_identifier) "h_aliases" ()) ")" (compound_statement) "{\n h->h_aliases = NULL;\n }" ({) "{" (expression_statement) "h->h_aliases = NULL;" (assignment_expression) "h->h_aliases = NULL" (field_expression) "h->h_aliases" (identifier) "h" (->) "->" (field_identifier) "h_aliases" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (else_clause) "else {\n h->h_aliases = c_copy_string_array(orig->h_aliases);\n if (!h->h_aliases) {\n goto nomem2;\n }\n }" (else) "else" (compound_statement) "{\n h->h_aliases = c_copy_string_array(orig->h_aliases);\n if (!h->h_aliases) {\n goto nomem2;\n }\n }" ({) "{" (expression_statement) "h->h_aliases = c_copy_string_array(orig->h_aliases);" (assignment_expression) "h->h_aliases = c_copy_string_array(orig->h_aliases)" (field_expression) "h->h_aliases" (identifier) "h" (->) "->" (field_identifier) "h_aliases" (=) "=" (call_expression) "c_copy_string_array(orig->h_aliases)" (identifier) "c_copy_string_array" (argument_list) "(orig->h_aliases)" (() "(" (field_expression) "orig->h_aliases" (identifier) "orig" (->) "->" (field_identifier) "h_aliases" ()) ")" (;) ";" (if_statement) "if (!h->h_aliases) {\n goto nomem2;\n }" (if) "if" (parenthesized_expression) "(!h->h_aliases)" (() "(" (unary_expression) "!h->h_aliases" (!) "!" (field_expression) "h->h_aliases" (identifier) "h" (->) "->" (field_identifier) "h_aliases" ()) ")" (compound_statement) "{\n goto nomem2;\n }" ({) "{" (goto_statement) "goto nomem2;" (goto) "goto" (statement_identifier) "nomem2" (;) ";" (}) "}" (}) "}" (if_statement) "if (!orig->h_addr_list) {\n h->h_addr_list = NULL;\n } else {\n h->h_addr_list = c_copy_addr_array(orig->h_addr_list, orig->h_length);\n if (!h->h_addr_list) {\n goto nomem3;\n }\n }" (if) "if" (parenthesized_expression) "(!orig->h_addr_list)" (() "(" (unary_expression) "!orig->h_addr_list" (!) "!" (field_expression) "orig->h_addr_list" (identifier) "orig" (->) "->" (field_identifier) "h_addr_list" ()) ")" (compound_statement) "{\n h->h_addr_list = NULL;\n }" ({) "{" (expression_statement) "h->h_addr_list = NULL;" (assignment_expression) "h->h_addr_list = NULL" (field_expression) "h->h_addr_list" (identifier) "h" (->) "->" (field_identifier) "h_addr_list" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (else_clause) "else {\n h->h_addr_list = c_copy_addr_array(orig->h_addr_list, orig->h_length);\n if (!h->h_addr_list) {\n goto nomem3;\n }\n }" (else) "else" (compound_statement) "{\n h->h_addr_list = c_copy_addr_array(orig->h_addr_list, orig->h_length);\n if (!h->h_addr_list) {\n goto nomem3;\n }\n }" ({) "{" (expression_statement) "h->h_addr_list = c_copy_addr_array(orig->h_addr_list, orig->h_length);" (assignment_expression) "h->h_addr_list = c_copy_addr_array(orig->h_addr_list, orig->h_length)" (field_expression) "h->h_addr_list" (identifier) "h" (->) "->" (field_identifier) "h_addr_list" (=) "=" (call_expression) "c_copy_addr_array(orig->h_addr_list, orig->h_length)" (identifier) "c_copy_addr_array" (argument_list) "(orig->h_addr_list, orig->h_length)" (() "(" (field_expression) "orig->h_addr_list" (identifier) "orig" (->) "->" (field_identifier) "h_addr_list" (,) "," (field_expression) "orig->h_length" (identifier) "orig" (->) "->" (field_identifier) "h_length" ()) ")" (;) ";" (if_statement) "if (!h->h_addr_list) {\n goto nomem3;\n }" (if) "if" (parenthesized_expression) "(!h->h_addr_list)" (() "(" (unary_expression) "!h->h_addr_list" (!) "!" (field_expression) "h->h_addr_list" (identifier) "h" (->) "->" (field_identifier) "h_addr_list" ()) ")" (compound_statement) "{\n goto nomem3;\n }" ({) "{" (goto_statement) "goto nomem3;" (goto) "goto" (statement_identifier) "nomem3" (;) ";" (}) "}" (}) "}" (expression_statement) "h->h_addrtype = orig->h_addrtype;" (assignment_expression) "h->h_addrtype = orig->h_addrtype" (field_expression) "h->h_addrtype" (identifier) "h" (->) "->" (field_identifier) "h_addrtype" (=) "=" (field_expression) "orig->h_addrtype" (identifier) "orig" (->) "->" (field_identifier) "h_addrtype" (;) ";" (expression_statement) "h->h_length = orig->h_length;" (assignment_expression) "h->h_length = orig->h_length" (field_expression) "h->h_length" (identifier) "h" (->) "->" (field_identifier) "h_length" (=) "=" (field_expression) "orig->h_length" (identifier) "orig" (->) "->" (field_identifier) "h_length" (;) ";" (return_statement) "return h;" (return) "return" (identifier) "h" (;) ";" (labeled_statement) "nomem3:\n c_free_string_array(h->h_aliases);" (statement_identifier) "nomem3" (:) ":" (expression_statement) "c_free_string_array(h->h_aliases);" (call_expression) "c_free_string_array(h->h_aliases)" (identifier) "c_free_string_array" (argument_list) "(h->h_aliases)" (() "(" (field_expression) "h->h_aliases" (identifier) "h" (->) "->" (field_identifier) "h_aliases" ()) ")" (;) ";" (labeled_statement) "nomem2:\n free((char *)h->h_name);" (statement_identifier) "nomem2" (:) ":" (expression_statement) "free((char *)h->h_name);" (call_expression) "free((char *)h->h_name)" (identifier) "free" (argument_list) "((char *)h->h_name)" (() "(" (cast_expression) "(char *)h->h_name" (() "(" (type_descriptor) "char *" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (field_expression) "h->h_name" (identifier) "h" (->) "->" (field_identifier) "h_name" ()) ")" (;) ";" (labeled_statement) "nomem1:\n free(h);" (statement_identifier) "nomem1" (:) ":" (expression_statement) "free(h);" (call_expression) "free(h)" (identifier) "free" (argument_list) "(h)" (() "(" (identifier) "h" ()) ")" (;) ";" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (function_definition) "void hostent_free(struct hostent *h)\n{\n if (h) {\n c_free_string_array(h->h_addr_list);\n c_free_string_array(h->h_aliases);\n free((char *)h->h_name);\n free(h);\n }\n}" (primitive_type) "void" (function_declarator) "hostent_free(struct hostent *h)" (identifier) "hostent_free" (parameter_list) "(struct hostent *h)" (() "(" (parameter_declaration) "struct hostent *h" (struct_specifier) "struct hostent" (struct) "struct" (type_identifier) "hostent" (pointer_declarator) "*h" (*) "*" (identifier) "h" ()) ")" (compound_statement) "{\n if (h) {\n c_free_string_array(h->h_addr_list);\n c_free_string_array(h->h_aliases);\n free((char *)h->h_name);\n free(h);\n }\n}" ({) "{" (if_statement) "if (h) {\n c_free_string_array(h->h_addr_list);\n c_free_string_array(h->h_aliases);\n free((char *)h->h_name);\n free(h);\n }" (if) "if" (parenthesized_expression) "(h)" (() "(" (identifier) "h" ()) ")" (compound_statement) "{\n c_free_string_array(h->h_addr_list);\n c_free_string_array(h->h_aliases);\n free((char *)h->h_name);\n free(h);\n }" ({) "{" (expression_statement) "c_free_string_array(h->h_addr_list);" (call_expression) "c_free_string_array(h->h_addr_list)" (identifier) "c_free_string_array" (argument_list) "(h->h_addr_list)" (() "(" (field_expression) "h->h_addr_list" (identifier) "h" (->) "->" (field_identifier) "h_addr_list" ()) ")" (;) ";" (expression_statement) "c_free_string_array(h->h_aliases);" (call_expression) "c_free_string_array(h->h_aliases)" (identifier) "c_free_string_array" (argument_list) "(h->h_aliases)" (() "(" (field_expression) "h->h_aliases" (identifier) "h" (->) "->" (field_identifier) "h_aliases" ()) ")" (;) ";" (expression_statement) "free((char *)h->h_name);" (call_expression) "free((char *)h->h_name)" (identifier) "free" (argument_list) "((char *)h->h_name)" (() "(" (cast_expression) "(char *)h->h_name" (() "(" (type_descriptor) "char *" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (field_expression) "h->h_name" (identifier) "h" (->) "->" (field_identifier) "h_name" ()) ")" (;) ";" (expression_statement) "free(h);" (call_expression) "free(h)" (identifier) "free" (argument_list) "(h)" (() "(" (identifier) "h" ()) ")" (;) ";" (}) "}" (}) "}" (#endif) "#endif" (#endif) "#endif"
1,619
2
{"language": "c", "success": true, "metadata": {"lines": 197, "avg_line_length": 23.88, "nodes": 1010, "errors": 0, "source_hash": "b87feb1dc1dd1ec3438a5c3ea639fbe58608bcd0e25e2ac2eaa511af62edfb25", "categorized_nodes": 660}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"lwt_config.h\"\n", "parent": null, "children": [1, 2], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 2, "type": "string_literal", "text": "\"lwt_config.h\"", "parent": 0, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 23}}, {"id": 3, "type": "preproc_if", "text": "#if !defined(LWT_ON_WINDOWS)\n\n#include <caml/alloc.h>\n#include <caml/memory.h>\n#include <caml/mlvalues.h>\n#include <caml/socketaddr.h>\n#include <stdlib.h>\n#include <string.h>\n\n#include \"unix_get_network_information_utils.h\"\n\n#if defined(NON_R_GETHOSTBYADDR) || defined(NON_R_GETHOSTBYNAME)\nchar **c_copy_addr_array(char **src, int addr_len)\n{\n if (src == NULL) {\n return NULL;\n }\n char **p = src;\n size_t i = 0;\n while (*p) {\n i++;\n p++;\n }\n const size_t ar_len = i;\n p = malloc((ar_len + 1) * sizeof(char *));\n if (p == NULL) {\n return NULL;\n }\n for (i = 0; i < ar_len; ++i) {\n p[i] = malloc(addr_len);\n if (p[i] == NULL) {\n size_t j;\n for (j = 0; j < i; j++) {\n free(p[j]);\n }\n free(p);\n return NULL;\n }\n memcpy(p[i], src[i], addr_len);\n }\n p[ar_len] = NULL;\n return p;\n}\n#endif\n\n#if !defined(HAVE_NETDB_REENTRANT) || defined(NON_R_GETHOSTBYADDR) || \\\n defined(NON_R_GETHOSTBYNAME)\nchar **c_copy_string_array(char **src)\n{\n char **p = src;\n size_t i = 0;\n size_t len;\n if (src == NULL) {\n return NULL;\n }\n while (*p) {\n i++;\n p++;\n }\n len = i;\n p = malloc((len + 1) * sizeof(char *));\n if (p == NULL) {\n return NULL;\n }\n for (i = 0; i < len; ++i) {\n p[i] = strdup(src[i]);\n if (p[i] == NULL) {\n size_t j;\n for (j = 0; j < i; j++) {\n free(p[j]);\n }\n free(p);\n return NULL;\n }\n }\n p[len] = NULL;\n return p;\n}\n\nvoid c_free_string_array(char **src)\n{\n if (src) {\n char **p = src;\n while (*p) {\n free(*p);\n ++p;\n }\n free(src);\n }\n}\n\nchar *s_strdup(const char *s)\n{\n return (strdup(s == NULL ? \"\" : s));\n}\n#endif\n\nCAMLexport value alloc_inet_addr(struct in_addr *inaddr);\nCAMLexport value alloc_inet6_addr(struct in6_addr *inaddr);\n\nstatic value alloc_one_addr(char const *a)\n{\n struct in_addr addr;\n memmove(&addr, a, 4);\n return alloc_inet_addr(&addr);\n}\n\nstatic value alloc_one_addr6(char const *a)\n{\n struct in6_addr addr;\n memmove(&addr, a, 16);\n return alloc_inet6_addr(&addr);\n}\n\nvalue alloc_host_entry(struct hostent *entry)\n{\n value res;\n value name = Val_unit, aliases = Val_unit;\n value addr_list = Val_unit, adr = Val_unit;\n\n Begin_roots4(name, aliases, addr_list, adr);\n name = caml_copy_string((char *)(entry->h_name));\n /* PR#4043: protect against buggy implementations of gethostbynamee()\n that return a NULL pointer in h_aliases */\n if (entry->h_aliases)\n aliases = caml_copy_string_array((const char **)entry->h_aliases);\n else\n aliases = Atom(0);\n if (entry->h_length == 16)\n addr_list = caml_alloc_array(alloc_one_addr6,\n (const char **)entry->h_addr_list);\n else\n addr_list =\n caml_alloc_array(alloc_one_addr, (const char **)entry->h_addr_list);\n res = caml_alloc_small(4, 0);\n Field(res, 0) = name;\n Field(res, 1) = aliases;\n switch (entry->h_addrtype) {\n case PF_UNIX:\n Field(res, 2) = Val_int(0);\n break;\n case PF_INET:\n Field(res, 2) = Val_int(1);\n break;\n default: /*PF_INET6 */\n Field(res, 2) = Val_int(2);\n break;\n }\n Field(res, 3) = addr_list;\n End_roots();\n return res;\n}\n\n#if defined(NON_R_GETHOSTBYADDR) || defined(NON_R_GETHOSTBYNAME)\nstruct hostent *hostent_dup(struct hostent *orig)\n{\n if (orig == NULL) {\n return NULL;\n }\n struct hostent *h = malloc(sizeof *h);\n if (h == NULL) {\n return NULL;\n }\n h->h_name = s_strdup(orig->h_name);\n if (!h->h_name) {\n goto nomem1;\n }\n if (!orig->h_aliases) {\n h->h_aliases = NULL;\n } else {\n h->h_aliases = c_copy_string_array(orig->h_aliases);\n if (!h->h_aliases) {\n goto nomem2;\n }\n }\n if (!orig->h_addr_list) {\n h->h_addr_list = NULL;\n } else {\n h->h_addr_list = c_copy_addr_array(orig->h_addr_list, orig->h_length);\n if (!h->h_addr_list) {\n goto nomem3;\n }\n }\n h->h_addrtype = orig->h_addrtype;\n h->h_length = orig->h_length;\n return h;\nnomem3:\n c_free_string_array(h->h_aliases);\nnomem2:\n free((char *)h->h_name);\nnomem1:\n free(h);\n return NULL;\n}\n\nvoid hostent_free(struct hostent *h)\n{\n if (h) {\n c_free_string_array(h->h_addr_list);\n c_free_string_array(h->h_aliases);\n free((char *)h->h_name);\n free(h);\n }\n}\n#endif\n\n#endif", "parent": null, "children": [4, 5, 10, 11, 14, 17, 20, 23, 26, 29, 32, 211, 456, 470, 484, 512, 540, 759, 1009], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 213, "column": 6}}, {"id": 4, "type": "#if", "text": "#if", "parent": 3, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 3}}, {"id": 5, "type": "unary_expression", "text": "!defined(LWT_ON_WINDOWS)", "parent": 3, "children": [6, 7], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 28}}, {"id": 6, "type": "!", "text": "!", "parent": 5, "children": [], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 5}}, {"id": 7, "type": "preproc_defined", "text": "defined(LWT_ON_WINDOWS)", "parent": 5, "children": [8, 9], "start_point": {"row": 7, "column": 5}, "end_point": {"row": 7, "column": 28}}, {"id": 8, "type": "defined", "text": "defined", "parent": 7, "children": [], "start_point": {"row": 7, "column": 5}, "end_point": {"row": 7, "column": 12}}, {"id": 9, "type": "identifier", "text": "LWT_ON_WINDOWS", "parent": 7, "children": [], "start_point": {"row": 7, "column": 13}, "end_point": {"row": 7, "column": 27}}, {"id": 10, "type": "\n", "text": "\n\n", "parent": 3, "children": [], "start_point": {"row": 7, "column": 28}, "end_point": {"row": 9, "column": 0}}, {"id": 11, "type": "preproc_include", "text": "#include <caml/alloc.h>\n", "parent": 3, "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": "<caml/alloc.h>", "parent": 11, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 23}}, {"id": 14, "type": "preproc_include", "text": "#include <caml/memory.h>\n", "parent": 3, "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": "system_lib_string", "text": "<caml/memory.h>", "parent": 14, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 24}}, {"id": 17, "type": "preproc_include", "text": "#include <caml/mlvalues.h>\n", "parent": 3, "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": "system_lib_string", "text": "<caml/mlvalues.h>", "parent": 17, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 26}}, {"id": 20, "type": "preproc_include", "text": "#include <caml/socketaddr.h>\n", "parent": 3, "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": "system_lib_string", "text": "<caml/socketaddr.h>", "parent": 20, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 28}}, {"id": 23, "type": "preproc_include", "text": "#include <stdlib.h>\n", "parent": 3, "children": [24, 25], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 24, "type": "#include", "text": "#include", "parent": 23, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 25, "type": "system_lib_string", "text": "<stdlib.h>", "parent": 23, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 19}}, {"id": 26, "type": "preproc_include", "text": "#include <string.h>\n", "parent": 3, "children": [27, 28], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 27, "type": "#include", "text": "#include", "parent": 26, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 8}}, {"id": 28, "type": "system_lib_string", "text": "<string.h>", "parent": 26, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 19}}, {"id": 29, "type": "preproc_include", "text": "#include \"unix_get_network_information_utils.h\"\n", "parent": 3, "children": [30, 31], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 30, "type": "#include", "text": "#include", "parent": 29, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 8}}, {"id": 31, "type": "string_literal", "text": "\"unix_get_network_information_utils.h\"", "parent": 29, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 47}}, {"id": 32, "type": "preproc_if", "text": "#if defined(NON_R_GETHOSTBYADDR) || defined(NON_R_GETHOSTBYNAME)\nchar **c_copy_addr_array(char **src, int addr_len)\n{\n if (src == NULL) {\n return NULL;\n }\n char **p = src;\n size_t i = 0;\n while (*p) {\n i++;\n p++;\n }\n const size_t ar_len = i;\n p = malloc((ar_len + 1) * sizeof(char *));\n if (p == NULL) {\n return NULL;\n }\n for (i = 0; i < ar_len; ++i) {\n p[i] = malloc(addr_len);\n if (p[i] == NULL) {\n size_t j;\n for (j = 0; j < i; j++) {\n free(p[j]);\n }\n free(p);\n return NULL;\n }\n memcpy(p[i], src[i], addr_len);\n }\n p[ar_len] = NULL;\n return p;\n}\n#endif", "parent": 3, "children": [33, 34, 42, 43, 210], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 50, "column": 6}}, {"id": 33, "type": "#if", "text": "#if", "parent": 32, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 3}}, {"id": 34, "type": "binary_expression", "text": "defined(NON_R_GETHOSTBYADDR) || defined(NON_R_GETHOSTBYNAME)", "parent": 32, "children": [35, 38, 39], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 64}}, {"id": 35, "type": "preproc_defined", "text": "defined(NON_R_GETHOSTBYADDR)", "parent": 34, "children": [36, 37], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 32}}, {"id": 36, "type": "defined", "text": "defined", "parent": 35, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 11}}, {"id": 37, "type": "identifier", "text": "NON_R_GETHOSTBYADDR", "parent": 35, "children": [], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 31}}, {"id": 38, "type": "||", "text": "||", "parent": 34, "children": [], "start_point": {"row": 18, "column": 33}, "end_point": {"row": 18, "column": 35}}, {"id": 39, "type": "preproc_defined", "text": "defined(NON_R_GETHOSTBYNAME)", "parent": 34, "children": [40, 41], "start_point": {"row": 18, "column": 36}, "end_point": {"row": 18, "column": 64}}, {"id": 40, "type": "defined", "text": "defined", "parent": 39, "children": [], "start_point": {"row": 18, "column": 36}, "end_point": {"row": 18, "column": 43}}, {"id": 41, "type": "identifier", "text": "NON_R_GETHOSTBYNAME", "parent": 39, "children": [], "start_point": {"row": 18, "column": 44}, "end_point": {"row": 18, "column": 63}}, {"id": 42, "type": "\n", "text": "\n", "parent": 32, "children": [], "start_point": {"row": 18, "column": 64}, "end_point": {"row": 19, "column": 0}}, {"id": 43, "type": "function_definition", "text": "char **c_copy_addr_array(char **src, int addr_len)\n{\n if (src == NULL) {\n return NULL;\n }\n char **p = src;\n size_t i = 0;\n while (*p) {\n i++;\n p++;\n }\n const size_t ar_len = i;\n p = malloc((ar_len + 1) * sizeof(char *));\n if (p == NULL) {\n return NULL;\n }\n for (i = 0; i < ar_len; ++i) {\n p[i] = malloc(addr_len);\n if (p[i] == NULL) {\n size_t j;\n for (j = 0; j < i; j++) {\n free(p[j]);\n }\n free(p);\n return NULL;\n }\n memcpy(p[i], src[i], addr_len);\n }\n p[ar_len] = NULL;\n return p;\n}", "parent": 32, "children": [44, 45], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 49, "column": 1}}, {"id": 44, "type": "primitive_type", "text": "char", "parent": 43, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 4}}, {"id": 45, "type": "pointer_declarator", "text": "**c_copy_addr_array(char **src, int addr_len)", "parent": 43, "children": [46, 47], "start_point": {"row": 19, "column": 5}, "end_point": {"row": 19, "column": 50}}, {"id": 46, "type": "*", "text": "*", "parent": 45, "children": [], "start_point": {"row": 19, "column": 5}, "end_point": {"row": 19, "column": 6}}, {"id": 47, "type": "pointer_declarator", "text": "*c_copy_addr_array(char **src, int addr_len)", "parent": 45, "children": [48, 49], "start_point": {"row": 19, "column": 6}, "end_point": {"row": 19, "column": 50}}, {"id": 48, "type": "*", "text": "*", "parent": 47, "children": [], "start_point": {"row": 19, "column": 6}, "end_point": {"row": 19, "column": 7}}, {"id": 49, "type": "function_declarator", "text": "c_copy_addr_array(char **src, int addr_len)", "parent": 47, "children": [50, 51], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 50}}, {"id": 50, "type": "identifier", "text": "c_copy_addr_array", "parent": 49, "children": [], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 24}}, {"id": 51, "type": "parameter_list", "text": "(char **src, int addr_len)", "parent": 49, "children": [52, 59], "start_point": {"row": 19, "column": 24}, "end_point": {"row": 19, "column": 50}}, {"id": 52, "type": "parameter_declaration", "text": "char **src", "parent": 51, "children": [53, 54], "start_point": {"row": 19, "column": 25}, "end_point": {"row": 19, "column": 35}}, {"id": 53, "type": "primitive_type", "text": "char", "parent": 52, "children": [], "start_point": {"row": 19, "column": 25}, "end_point": {"row": 19, "column": 29}}, {"id": 54, "type": "pointer_declarator", "text": "**src", "parent": 52, "children": [55, 56], "start_point": {"row": 19, "column": 30}, "end_point": {"row": 19, "column": 35}}, {"id": 55, "type": "*", "text": "*", "parent": 54, "children": [], "start_point": {"row": 19, "column": 30}, "end_point": {"row": 19, "column": 31}}, {"id": 56, "type": "pointer_declarator", "text": "*src", "parent": 54, "children": [57, 58], "start_point": {"row": 19, "column": 31}, "end_point": {"row": 19, "column": 35}}, {"id": 57, "type": "*", "text": "*", "parent": 56, "children": [], "start_point": {"row": 19, "column": 31}, "end_point": {"row": 19, "column": 32}}, {"id": 58, "type": "identifier", "text": "src", "parent": 56, "children": [], "start_point": {"row": 19, "column": 32}, "end_point": {"row": 19, "column": 35}}, {"id": 59, "type": "parameter_declaration", "text": "int addr_len", "parent": 51, "children": [60, 61], "start_point": {"row": 19, "column": 37}, "end_point": {"row": 19, "column": 49}}, {"id": 60, "type": "primitive_type", "text": "int", "parent": 59, "children": [], "start_point": {"row": 19, "column": 37}, "end_point": {"row": 19, "column": 40}}, {"id": 61, "type": "identifier", "text": "addr_len", "parent": 59, "children": [], "start_point": {"row": 19, "column": 41}, "end_point": {"row": 19, "column": 49}}, {"id": 62, "type": "if_statement", "text": "if (src == NULL) {\n return NULL;\n }", "parent": 43, "children": [63], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 23, "column": 5}}, {"id": 63, "type": "parenthesized_expression", "text": "(src == NULL)", "parent": 62, "children": [64], "start_point": {"row": 21, "column": 7}, "end_point": {"row": 21, "column": 20}}, {"id": 64, "type": "binary_expression", "text": "src == NULL", "parent": 63, "children": [65, 66, 67], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 19}}, {"id": 65, "type": "identifier", "text": "src", "parent": 64, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 11}}, {"id": 66, "type": "==", "text": "==", "parent": 64, "children": [], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 14}}, {"id": 67, "type": "null", "text": "NULL", "parent": 64, "children": [68], "start_point": {"row": 21, "column": 15}, "end_point": {"row": 21, "column": 19}}, {"id": 68, "type": "NULL", "text": "NULL", "parent": 67, "children": [], "start_point": {"row": 21, "column": 15}, "end_point": {"row": 21, "column": 19}}, {"id": 69, "type": "return_statement", "text": "return NULL;", "parent": 62, "children": [70], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 20}}, {"id": 70, "type": "null", "text": "NULL", "parent": 69, "children": [71], "start_point": {"row": 22, "column": 15}, "end_point": {"row": 22, "column": 19}}, {"id": 71, "type": "NULL", "text": "NULL", "parent": 70, "children": [], "start_point": {"row": 22, "column": 15}, "end_point": {"row": 22, "column": 19}}, {"id": 72, "type": "declaration", "text": "char **p = src;", "parent": 43, "children": [73, 74], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 19}}, {"id": 73, "type": "primitive_type", "text": "char", "parent": 72, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 8}}, {"id": 74, "type": "init_declarator", "text": "**p = src", "parent": 72, "children": [75, 80, 81], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 18}}, {"id": 75, "type": "pointer_declarator", "text": "**p", "parent": 74, "children": [76, 77], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 12}}, {"id": 76, "type": "*", "text": "*", "parent": 75, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 10}}, {"id": 77, "type": "pointer_declarator", "text": "*p", "parent": 75, "children": [78, 79], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 12}}, {"id": 78, "type": "*", "text": "*", "parent": 77, "children": [], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 11}}, {"id": 79, "type": "identifier", "text": "p", "parent": 77, "children": [], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 12}}, {"id": 80, "type": "=", "text": "=", "parent": 74, "children": [], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 14}}, {"id": 81, "type": "identifier", "text": "src", "parent": 74, "children": [], "start_point": {"row": 24, "column": 15}, "end_point": {"row": 24, "column": 18}}, {"id": 82, "type": "declaration", "text": "size_t i = 0;", "parent": 43, "children": [83, 84], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 17}}, {"id": 83, "type": "primitive_type", "text": "size_t", "parent": 82, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 10}}, {"id": 84, "type": "init_declarator", "text": "i = 0", "parent": 82, "children": [85, 86, 87], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 16}}, {"id": 85, "type": "identifier", "text": "i", "parent": 84, "children": [], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 12}}, {"id": 86, "type": "=", "text": "=", "parent": 84, "children": [], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 14}}, {"id": 87, "type": "number_literal", "text": "0", "parent": 84, "children": [], "start_point": {"row": 25, "column": 15}, "end_point": {"row": 25, "column": 16}}, {"id": 88, "type": "while_statement", "text": "while (*p) {\n i++;\n p++;\n }", "parent": 43, "children": [89], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 29, "column": 5}}, {"id": 89, "type": "parenthesized_expression", "text": "(*p)", "parent": 88, "children": [90], "start_point": {"row": 26, "column": 10}, "end_point": {"row": 26, "column": 14}}, {"id": 90, "type": "pointer_expression", "text": "*p", "parent": 89, "children": [91, 92], "start_point": {"row": 26, "column": 11}, "end_point": {"row": 26, "column": 13}}, {"id": 91, "type": "*", "text": "*", "parent": 90, "children": [], "start_point": {"row": 26, "column": 11}, "end_point": {"row": 26, "column": 12}}, {"id": 92, "type": "identifier", "text": "p", "parent": 90, "children": [], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 13}}, {"id": 93, "type": "update_expression", "text": "i++", "parent": 88, "children": [94, 95], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 11}}, {"id": 94, "type": "identifier", "text": "i", "parent": 93, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 9}}, {"id": 95, "type": "++", "text": "++", "parent": 93, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 11}}, {"id": 96, "type": "update_expression", "text": "p++", "parent": 88, "children": [97, 98], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 11}}, {"id": 97, "type": "identifier", "text": "p", "parent": 96, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 9}}, {"id": 98, "type": "++", "text": "++", "parent": 96, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 11}}, {"id": 99, "type": "declaration", "text": "const size_t ar_len = i;", "parent": 43, "children": [100, 101], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 28}}, {"id": 100, "type": "primitive_type", "text": "size_t", "parent": 99, "children": [], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 16}}, {"id": 101, "type": "init_declarator", "text": "ar_len = i", "parent": 99, "children": [102, 103, 104], "start_point": {"row": 30, "column": 17}, "end_point": {"row": 30, "column": 27}}, {"id": 102, "type": "identifier", "text": "ar_len", "parent": 101, "children": [], "start_point": {"row": 30, "column": 17}, "end_point": {"row": 30, "column": 23}}, {"id": 103, "type": "=", "text": "=", "parent": 101, "children": [], "start_point": {"row": 30, "column": 24}, "end_point": {"row": 30, "column": 25}}, {"id": 104, "type": "identifier", "text": "i", "parent": 101, "children": [], "start_point": {"row": 30, "column": 26}, "end_point": {"row": 30, "column": 27}}, {"id": 105, "type": "assignment_expression", "text": "p = malloc((ar_len + 1) * sizeof(char *))", "parent": 43, "children": [106, 107, 108], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 45}}, {"id": 106, "type": "identifier", "text": "p", "parent": 105, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 5}}, {"id": 107, "type": "=", "text": "=", "parent": 105, "children": [], "start_point": {"row": 31, "column": 6}, "end_point": {"row": 31, "column": 7}}, {"id": 108, "type": "call_expression", "text": "malloc((ar_len + 1) * sizeof(char *))", "parent": 105, "children": [109, 110], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 45}}, {"id": 109, "type": "identifier", "text": "malloc", "parent": 108, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 14}}, {"id": 110, "type": "argument_list", "text": "((ar_len + 1) * sizeof(char *))", "parent": 108, "children": [111], "start_point": {"row": 31, "column": 14}, "end_point": {"row": 31, "column": 45}}, {"id": 111, "type": "binary_expression", "text": "(ar_len + 1) * sizeof(char *)", "parent": 110, "children": [112, 117, 118], "start_point": {"row": 31, "column": 15}, "end_point": {"row": 31, "column": 44}}, {"id": 112, "type": "parenthesized_expression", "text": "(ar_len + 1)", "parent": 111, "children": [113], "start_point": {"row": 31, "column": 15}, "end_point": {"row": 31, "column": 27}}, {"id": 113, "type": "binary_expression", "text": "ar_len + 1", "parent": 112, "children": [114, 115, 116], "start_point": {"row": 31, "column": 16}, "end_point": {"row": 31, "column": 26}}, {"id": 114, "type": "identifier", "text": "ar_len", "parent": 113, "children": [], "start_point": {"row": 31, "column": 16}, "end_point": {"row": 31, "column": 22}}, {"id": 115, "type": "+", "text": "+", "parent": 113, "children": [], "start_point": {"row": 31, "column": 23}, "end_point": {"row": 31, "column": 24}}, {"id": 116, "type": "number_literal", "text": "1", "parent": 113, "children": [], "start_point": {"row": 31, "column": 25}, "end_point": {"row": 31, "column": 26}}, {"id": 117, "type": "*", "text": "*", "parent": 111, "children": [], "start_point": {"row": 31, "column": 28}, "end_point": {"row": 31, "column": 29}}, {"id": 118, "type": "sizeof_expression", "text": "sizeof(char *)", "parent": 111, "children": [119], "start_point": {"row": 31, "column": 30}, "end_point": {"row": 31, "column": 44}}, {"id": 119, "type": "type_descriptor", "text": "char *", "parent": 118, "children": [120, 121], "start_point": {"row": 31, "column": 37}, "end_point": {"row": 31, "column": 43}}, {"id": 120, "type": "primitive_type", "text": "char", "parent": 119, "children": [], "start_point": {"row": 31, "column": 37}, "end_point": {"row": 31, "column": 41}}, {"id": 121, "type": "abstract_pointer_declarator", "text": "*", "parent": 119, "children": [122], "start_point": {"row": 31, "column": 42}, "end_point": {"row": 31, "column": 43}}, {"id": 122, "type": "*", "text": "*", "parent": 121, "children": [], "start_point": {"row": 31, "column": 42}, "end_point": {"row": 31, "column": 43}}, {"id": 123, "type": "if_statement", "text": "if (p == NULL) {\n return NULL;\n }", "parent": 43, "children": [124], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 34, "column": 5}}, {"id": 124, "type": "parenthesized_expression", "text": "(p == NULL)", "parent": 123, "children": [125], "start_point": {"row": 32, "column": 7}, "end_point": {"row": 32, "column": 18}}, {"id": 125, "type": "binary_expression", "text": "p == NULL", "parent": 124, "children": [126, 127, 128], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 17}}, {"id": 126, "type": "identifier", "text": "p", "parent": 125, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 9}}, {"id": 127, "type": "==", "text": "==", "parent": 125, "children": [], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 12}}, {"id": 128, "type": "null", "text": "NULL", "parent": 125, "children": [129], "start_point": {"row": 32, "column": 13}, "end_point": {"row": 32, "column": 17}}, {"id": 129, "type": "NULL", "text": "NULL", "parent": 128, "children": [], "start_point": {"row": 32, "column": 13}, "end_point": {"row": 32, "column": 17}}, {"id": 130, "type": "return_statement", "text": "return NULL;", "parent": 123, "children": [131], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 20}}, {"id": 131, "type": "null", "text": "NULL", "parent": 130, "children": [132], "start_point": {"row": 33, "column": 15}, "end_point": {"row": 33, "column": 19}}, {"id": 132, "type": "NULL", "text": "NULL", "parent": 131, "children": [], "start_point": {"row": 33, "column": 15}, "end_point": {"row": 33, "column": 19}}, {"id": 133, "type": "for_statement", "text": "for (i = 0; i < ar_len; ++i) {\n p[i] = malloc(addr_len);\n if (p[i] == NULL) {\n size_t j;\n for (j = 0; j < i; j++) {\n free(p[j]);\n }\n free(p);\n return NULL;\n }\n memcpy(p[i], src[i], addr_len);\n }", "parent": 43, "children": [134, 138, 142], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 46, "column": 5}}, {"id": 134, "type": "assignment_expression", "text": "i = 0", "parent": 133, "children": [135, 136, 137], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 14}}, {"id": 135, "type": "identifier", "text": "i", "parent": 134, "children": [], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 10}}, {"id": 136, "type": "=", "text": "=", "parent": 134, "children": [], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 12}}, {"id": 137, "type": "number_literal", "text": "0", "parent": 134, "children": [], "start_point": {"row": 35, "column": 13}, "end_point": {"row": 35, "column": 14}}, {"id": 138, "type": "binary_expression", "text": "i < ar_len", "parent": 133, "children": [139, 140, 141], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 26}}, {"id": 139, "type": "identifier", "text": "i", "parent": 138, "children": [], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 17}}, {"id": 140, "type": "<", "text": "<", "parent": 138, "children": [], "start_point": {"row": 35, "column": 18}, "end_point": {"row": 35, "column": 19}}, {"id": 141, "type": "identifier", "text": "ar_len", "parent": 138, "children": [], "start_point": {"row": 35, "column": 20}, "end_point": {"row": 35, "column": 26}}, {"id": 142, "type": "update_expression", "text": "++i", "parent": 133, "children": [143, 144], "start_point": {"row": 35, "column": 28}, "end_point": {"row": 35, "column": 31}}, {"id": 143, "type": "++", "text": "++", "parent": 142, "children": [], "start_point": {"row": 35, "column": 28}, "end_point": {"row": 35, "column": 30}}, {"id": 144, "type": "identifier", "text": "i", "parent": 142, "children": [], "start_point": {"row": 35, "column": 30}, "end_point": {"row": 35, "column": 31}}, {"id": 145, "type": "assignment_expression", "text": "p[i] = malloc(addr_len)", "parent": 133, "children": [146, 149, 150], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 31}}, {"id": 146, "type": "subscript_expression", "text": "p[i]", "parent": 145, "children": [147, 148], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 12}}, {"id": 147, "type": "identifier", "text": "p", "parent": 146, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 9}}, {"id": 148, "type": "identifier", "text": "i", "parent": 146, "children": [], "start_point": {"row": 36, "column": 10}, "end_point": {"row": 36, "column": 11}}, {"id": 149, "type": "=", "text": "=", "parent": 145, "children": [], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 14}}, {"id": 150, "type": "call_expression", "text": "malloc(addr_len)", "parent": 145, "children": [151, 152], "start_point": {"row": 36, "column": 15}, "end_point": {"row": 36, "column": 31}}, {"id": 151, "type": "identifier", "text": "malloc", "parent": 150, "children": [], "start_point": {"row": 36, "column": 15}, "end_point": {"row": 36, "column": 21}}, {"id": 152, "type": "argument_list", "text": "(addr_len)", "parent": 150, "children": [153], "start_point": {"row": 36, "column": 21}, "end_point": {"row": 36, "column": 31}}, {"id": 153, "type": "identifier", "text": "addr_len", "parent": 152, "children": [], "start_point": {"row": 36, "column": 22}, "end_point": {"row": 36, "column": 30}}, {"id": 154, "type": "if_statement", "text": "if (p[i] == NULL) {\n size_t j;\n for (j = 0; j < i; j++) {\n free(p[j]);\n }\n free(p);\n return NULL;\n }", "parent": 133, "children": [155], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 44, "column": 9}}, {"id": 155, "type": "parenthesized_expression", "text": "(p[i] == NULL)", "parent": 154, "children": [156], "start_point": {"row": 37, "column": 11}, "end_point": {"row": 37, "column": 25}}, {"id": 156, "type": "binary_expression", "text": "p[i] == NULL", "parent": 155, "children": [157, 160, 161], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 24}}, {"id": 157, "type": "subscript_expression", "text": "p[i]", "parent": 156, "children": [158, 159], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 16}}, {"id": 158, "type": "identifier", "text": "p", "parent": 157, "children": [], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 13}}, {"id": 159, "type": "identifier", "text": "i", "parent": 157, "children": [], "start_point": {"row": 37, "column": 14}, "end_point": {"row": 37, "column": 15}}, {"id": 160, "type": "==", "text": "==", "parent": 156, "children": [], "start_point": {"row": 37, "column": 17}, "end_point": {"row": 37, "column": 19}}, {"id": 161, "type": "null", "text": "NULL", "parent": 156, "children": [162], "start_point": {"row": 37, "column": 20}, "end_point": {"row": 37, "column": 24}}, {"id": 162, "type": "NULL", "text": "NULL", "parent": 161, "children": [], "start_point": {"row": 37, "column": 20}, "end_point": {"row": 37, "column": 24}}, {"id": 163, "type": "declaration", "text": "size_t j;", "parent": 154, "children": [164, 165], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 21}}, {"id": 164, "type": "primitive_type", "text": "size_t", "parent": 163, "children": [], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 18}}, {"id": 165, "type": "identifier", "text": "j", "parent": 163, "children": [], "start_point": {"row": 38, "column": 19}, "end_point": {"row": 38, "column": 20}}, {"id": 166, "type": "for_statement", "text": "for (j = 0; j < i; j++) {\n free(p[j]);\n }", "parent": 154, "children": [167, 171, 175], "start_point": {"row": 39, "column": 12}, "end_point": {"row": 41, "column": 13}}, {"id": 167, "type": "assignment_expression", "text": "j = 0", "parent": 166, "children": [168, 169, 170], "start_point": {"row": 39, "column": 17}, "end_point": {"row": 39, "column": 22}}, {"id": 168, "type": "identifier", "text": "j", "parent": 167, "children": [], "start_point": {"row": 39, "column": 17}, "end_point": {"row": 39, "column": 18}}, {"id": 169, "type": "=", "text": "=", "parent": 167, "children": [], "start_point": {"row": 39, "column": 19}, "end_point": {"row": 39, "column": 20}}, {"id": 170, "type": "number_literal", "text": "0", "parent": 167, "children": [], "start_point": {"row": 39, "column": 21}, "end_point": {"row": 39, "column": 22}}, {"id": 171, "type": "binary_expression", "text": "j < i", "parent": 166, "children": [172, 173, 174], "start_point": {"row": 39, "column": 24}, "end_point": {"row": 39, "column": 29}}, {"id": 172, "type": "identifier", "text": "j", "parent": 171, "children": [], "start_point": {"row": 39, "column": 24}, "end_point": {"row": 39, "column": 25}}, {"id": 173, "type": "<", "text": "<", "parent": 171, "children": [], "start_point": {"row": 39, "column": 26}, "end_point": {"row": 39, "column": 27}}, {"id": 174, "type": "identifier", "text": "i", "parent": 171, "children": [], "start_point": {"row": 39, "column": 28}, "end_point": {"row": 39, "column": 29}}, {"id": 175, "type": "update_expression", "text": "j++", "parent": 166, "children": [176, 177], "start_point": {"row": 39, "column": 31}, "end_point": {"row": 39, "column": 34}}, {"id": 176, "type": "identifier", "text": "j", "parent": 175, "children": [], "start_point": {"row": 39, "column": 31}, "end_point": {"row": 39, "column": 32}}, {"id": 177, "type": "++", "text": "++", "parent": 175, "children": [], "start_point": {"row": 39, "column": 32}, "end_point": {"row": 39, "column": 34}}, {"id": 178, "type": "call_expression", "text": "free(p[j])", "parent": 166, "children": [179, 180], "start_point": {"row": 40, "column": 16}, "end_point": {"row": 40, "column": 26}}, {"id": 179, "type": "identifier", "text": "free", "parent": 178, "children": [], "start_point": {"row": 40, "column": 16}, "end_point": {"row": 40, "column": 20}}, {"id": 180, "type": "argument_list", "text": "(p[j])", "parent": 178, "children": [181], "start_point": {"row": 40, "column": 20}, "end_point": {"row": 40, "column": 26}}, {"id": 181, "type": "subscript_expression", "text": "p[j]", "parent": 180, "children": [182, 183], "start_point": {"row": 40, "column": 21}, "end_point": {"row": 40, "column": 25}}, {"id": 182, "type": "identifier", "text": "p", "parent": 181, "children": [], "start_point": {"row": 40, "column": 21}, "end_point": {"row": 40, "column": 22}}, {"id": 183, "type": "identifier", "text": "j", "parent": 181, "children": [], "start_point": {"row": 40, "column": 23}, "end_point": {"row": 40, "column": 24}}, {"id": 184, "type": "call_expression", "text": "free(p)", "parent": 154, "children": [185, 186], "start_point": {"row": 42, "column": 12}, "end_point": {"row": 42, "column": 19}}, {"id": 185, "type": "identifier", "text": "free", "parent": 184, "children": [], "start_point": {"row": 42, "column": 12}, "end_point": {"row": 42, "column": 16}}, {"id": 186, "type": "argument_list", "text": "(p)", "parent": 184, "children": [187], "start_point": {"row": 42, "column": 16}, "end_point": {"row": 42, "column": 19}}, {"id": 187, "type": "identifier", "text": "p", "parent": 186, "children": [], "start_point": {"row": 42, "column": 17}, "end_point": {"row": 42, "column": 18}}, {"id": 188, "type": "return_statement", "text": "return NULL;", "parent": 154, "children": [189], "start_point": {"row": 43, "column": 12}, "end_point": {"row": 43, "column": 24}}, {"id": 189, "type": "null", "text": "NULL", "parent": 188, "children": [190], "start_point": {"row": 43, "column": 19}, "end_point": {"row": 43, "column": 23}}, {"id": 190, "type": "NULL", "text": "NULL", "parent": 189, "children": [], "start_point": {"row": 43, "column": 19}, "end_point": {"row": 43, "column": 23}}, {"id": 191, "type": "call_expression", "text": "memcpy(p[i], src[i], addr_len)", "parent": 133, "children": [192, 193], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 38}}, {"id": 192, "type": "identifier", "text": "memcpy", "parent": 191, "children": [], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 14}}, {"id": 193, "type": "argument_list", "text": "(p[i], src[i], addr_len)", "parent": 191, "children": [194, 197, 200], "start_point": {"row": 45, "column": 14}, "end_point": {"row": 45, "column": 38}}, {"id": 194, "type": "subscript_expression", "text": "p[i]", "parent": 193, "children": [195, 196], "start_point": {"row": 45, "column": 15}, "end_point": {"row": 45, "column": 19}}, {"id": 195, "type": "identifier", "text": "p", "parent": 194, "children": [], "start_point": {"row": 45, "column": 15}, "end_point": {"row": 45, "column": 16}}, {"id": 196, "type": "identifier", "text": "i", "parent": 194, "children": [], "start_point": {"row": 45, "column": 17}, "end_point": {"row": 45, "column": 18}}, {"id": 197, "type": "subscript_expression", "text": "src[i]", "parent": 193, "children": [198, 199], "start_point": {"row": 45, "column": 21}, "end_point": {"row": 45, "column": 27}}, {"id": 198, "type": "identifier", "text": "src", "parent": 197, "children": [], "start_point": {"row": 45, "column": 21}, "end_point": {"row": 45, "column": 24}}, {"id": 199, "type": "identifier", "text": "i", "parent": 197, "children": [], "start_point": {"row": 45, "column": 25}, "end_point": {"row": 45, "column": 26}}, {"id": 200, "type": "identifier", "text": "addr_len", "parent": 193, "children": [], "start_point": {"row": 45, "column": 29}, "end_point": {"row": 45, "column": 37}}, {"id": 201, "type": "assignment_expression", "text": "p[ar_len] = NULL", "parent": 43, "children": [202, 205, 206], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 20}}, {"id": 202, "type": "subscript_expression", "text": "p[ar_len]", "parent": 201, "children": [203, 204], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 13}}, {"id": 203, "type": "identifier", "text": "p", "parent": 202, "children": [], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 5}}, {"id": 204, "type": "identifier", "text": "ar_len", "parent": 202, "children": [], "start_point": {"row": 47, "column": 6}, "end_point": {"row": 47, "column": 12}}, {"id": 205, "type": "=", "text": "=", "parent": 201, "children": [], "start_point": {"row": 47, "column": 14}, "end_point": {"row": 47, "column": 15}}, {"id": 206, "type": "null", "text": "NULL", "parent": 201, "children": [207], "start_point": {"row": 47, "column": 16}, "end_point": {"row": 47, "column": 20}}, {"id": 207, "type": "NULL", "text": "NULL", "parent": 206, "children": [], "start_point": {"row": 47, "column": 16}, "end_point": {"row": 47, "column": 20}}, {"id": 208, "type": "return_statement", "text": "return p;", "parent": 43, "children": [209], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 13}}, {"id": 209, "type": "identifier", "text": "p", "parent": 208, "children": [], "start_point": {"row": 48, "column": 11}, "end_point": {"row": 48, "column": 12}}, {"id": 210, "type": "#endif", "text": "#endif", "parent": 32, "children": [], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 6}}, {"id": 211, "type": "preproc_if", "text": "#if !defined(HAVE_NETDB_REENTRANT) || defined(NON_R_GETHOSTBYADDR) || \\\n defined(NON_R_GETHOSTBYNAME)\nchar **c_copy_string_array(char **src)\n{\n char **p = src;\n size_t i = 0;\n size_t len;\n if (src == NULL) {\n return NULL;\n }\n while (*p) {\n i++;\n p++;\n }\n len = i;\n p = malloc((len + 1) * sizeof(char *));\n if (p == NULL) {\n return NULL;\n }\n for (i = 0; i < len; ++i) {\n p[i] = strdup(src[i]);\n if (p[i] == NULL) {\n size_t j;\n for (j = 0; j < i; j++) {\n free(p[j]);\n }\n free(p);\n return NULL;\n }\n }\n p[len] = NULL;\n return p;\n}\n\nvoid c_free_string_array(char **src)\n{\n if (src) {\n char **p = src;\n while (*p) {\n free(*p);\n ++p;\n }\n free(src);\n }\n}\n\nchar *s_strdup(const char *s)\n{\n return (strdup(s == NULL ? \"\" : s));\n}\n#endif", "parent": 3, "children": [212, 213, 228, 229, 386, 429, 455], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 102, "column": 6}}, {"id": 212, "type": "#if", "text": "#if", "parent": 211, "children": [], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 3}}, {"id": 213, "type": "binary_expression", "text": "!defined(HAVE_NETDB_REENTRANT) || defined(NON_R_GETHOSTBYADDR) || \\\n defined(NON_R_GETHOSTBYNAME)", "parent": 211, "children": [214, 224, 225], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 53, "column": 32}}, {"id": 214, "type": "binary_expression", "text": "!defined(HAVE_NETDB_REENTRANT) || defined(NON_R_GETHOSTBYADDR)", "parent": 213, "children": [215, 220, 221], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 66}}, {"id": 215, "type": "unary_expression", "text": "!defined(HAVE_NETDB_REENTRANT)", "parent": 214, "children": [216, 217], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 34}}, {"id": 216, "type": "!", "text": "!", "parent": 215, "children": [], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 5}}, {"id": 217, "type": "preproc_defined", "text": "defined(HAVE_NETDB_REENTRANT)", "parent": 215, "children": [218, 219], "start_point": {"row": 52, "column": 5}, "end_point": {"row": 52, "column": 34}}, {"id": 218, "type": "defined", "text": "defined", "parent": 217, "children": [], "start_point": {"row": 52, "column": 5}, "end_point": {"row": 52, "column": 12}}, {"id": 219, "type": "identifier", "text": "HAVE_NETDB_REENTRANT", "parent": 217, "children": [], "start_point": {"row": 52, "column": 13}, "end_point": {"row": 52, "column": 33}}, {"id": 220, "type": "||", "text": "||", "parent": 214, "children": [], "start_point": {"row": 52, "column": 35}, "end_point": {"row": 52, "column": 37}}, {"id": 221, "type": "preproc_defined", "text": "defined(NON_R_GETHOSTBYADDR)", "parent": 214, "children": [222, 223], "start_point": {"row": 52, "column": 38}, "end_point": {"row": 52, "column": 66}}, {"id": 222, "type": "defined", "text": "defined", "parent": 221, "children": [], "start_point": {"row": 52, "column": 38}, "end_point": {"row": 52, "column": 45}}, {"id": 223, "type": "identifier", "text": "NON_R_GETHOSTBYADDR", "parent": 221, "children": [], "start_point": {"row": 52, "column": 46}, "end_point": {"row": 52, "column": 65}}, {"id": 224, "type": "||", "text": "||", "parent": 213, "children": [], "start_point": {"row": 52, "column": 67}, "end_point": {"row": 52, "column": 69}}, {"id": 225, "type": "preproc_defined", "text": "defined(NON_R_GETHOSTBYNAME)", "parent": 213, "children": [226, 227], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 32}}, {"id": 226, "type": "defined", "text": "defined", "parent": 225, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 11}}, {"id": 227, "type": "identifier", "text": "NON_R_GETHOSTBYNAME", "parent": 225, "children": [], "start_point": {"row": 53, "column": 12}, "end_point": {"row": 53, "column": 31}}, {"id": 228, "type": "\n", "text": "\n", "parent": 211, "children": [], "start_point": {"row": 53, "column": 32}, "end_point": {"row": 54, "column": 0}}, {"id": 229, "type": "function_definition", "text": "char **c_copy_string_array(char **src)\n{\n char **p = src;\n size_t i = 0;\n size_t len;\n if (src == NULL) {\n return NULL;\n }\n while (*p) {\n i++;\n p++;\n }\n len = i;\n p = malloc((len + 1) * sizeof(char *));\n if (p == NULL) {\n return NULL;\n }\n for (i = 0; i < len; ++i) {\n p[i] = strdup(src[i]);\n if (p[i] == NULL) {\n size_t j;\n for (j = 0; j < i; j++) {\n free(p[j]);\n }\n free(p);\n return NULL;\n }\n }\n p[len] = NULL;\n return p;\n}", "parent": 211, "children": [230, 231], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 84, "column": 1}}, {"id": 230, "type": "primitive_type", "text": "char", "parent": 229, "children": [], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 4}}, {"id": 231, "type": "pointer_declarator", "text": "**c_copy_string_array(char **src)", "parent": 229, "children": [232, 233], "start_point": {"row": 54, "column": 5}, "end_point": {"row": 54, "column": 38}}, {"id": 232, "type": "*", "text": "*", "parent": 231, "children": [], "start_point": {"row": 54, "column": 5}, "end_point": {"row": 54, "column": 6}}, {"id": 233, "type": "pointer_declarator", "text": "*c_copy_string_array(char **src)", "parent": 231, "children": [234, 235], "start_point": {"row": 54, "column": 6}, "end_point": {"row": 54, "column": 38}}, {"id": 234, "type": "*", "text": "*", "parent": 233, "children": [], "start_point": {"row": 54, "column": 6}, "end_point": {"row": 54, "column": 7}}, {"id": 235, "type": "function_declarator", "text": "c_copy_string_array(char **src)", "parent": 233, "children": [236, 237], "start_point": {"row": 54, "column": 7}, "end_point": {"row": 54, "column": 38}}, {"id": 236, "type": "identifier", "text": "c_copy_string_array", "parent": 235, "children": [], "start_point": {"row": 54, "column": 7}, "end_point": {"row": 54, "column": 26}}, {"id": 237, "type": "parameter_list", "text": "(char **src)", "parent": 235, "children": [238], "start_point": {"row": 54, "column": 26}, "end_point": {"row": 54, "column": 38}}, {"id": 238, "type": "parameter_declaration", "text": "char **src", "parent": 237, "children": [239, 240], "start_point": {"row": 54, "column": 27}, "end_point": {"row": 54, "column": 37}}, {"id": 239, "type": "primitive_type", "text": "char", "parent": 238, "children": [], "start_point": {"row": 54, "column": 27}, "end_point": {"row": 54, "column": 31}}, {"id": 240, "type": "pointer_declarator", "text": "**src", "parent": 238, "children": [241, 242], "start_point": {"row": 54, "column": 32}, "end_point": {"row": 54, "column": 37}}, {"id": 241, "type": "*", "text": "*", "parent": 240, "children": [], "start_point": {"row": 54, "column": 32}, "end_point": {"row": 54, "column": 33}}, {"id": 242, "type": "pointer_declarator", "text": "*src", "parent": 240, "children": [243, 244], "start_point": {"row": 54, "column": 33}, "end_point": {"row": 54, "column": 37}}, {"id": 243, "type": "*", "text": "*", "parent": 242, "children": [], "start_point": {"row": 54, "column": 33}, "end_point": {"row": 54, "column": 34}}, {"id": 244, "type": "identifier", "text": "src", "parent": 242, "children": [], "start_point": {"row": 54, "column": 34}, "end_point": {"row": 54, "column": 37}}, {"id": 245, "type": "declaration", "text": "char **p = src;", "parent": 229, "children": [246, 247], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 19}}, {"id": 246, "type": "primitive_type", "text": "char", "parent": 245, "children": [], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 8}}, {"id": 247, "type": "init_declarator", "text": "**p = src", "parent": 245, "children": [248, 253, 254], "start_point": {"row": 56, "column": 9}, "end_point": {"row": 56, "column": 18}}, {"id": 248, "type": "pointer_declarator", "text": "**p", "parent": 247, "children": [249, 250], "start_point": {"row": 56, "column": 9}, "end_point": {"row": 56, "column": 12}}, {"id": 249, "type": "*", "text": "*", "parent": 248, "children": [], "start_point": {"row": 56, "column": 9}, "end_point": {"row": 56, "column": 10}}, {"id": 250, "type": "pointer_declarator", "text": "*p", "parent": 248, "children": [251, 252], "start_point": {"row": 56, "column": 10}, "end_point": {"row": 56, "column": 12}}, {"id": 251, "type": "*", "text": "*", "parent": 250, "children": [], "start_point": {"row": 56, "column": 10}, "end_point": {"row": 56, "column": 11}}, {"id": 252, "type": "identifier", "text": "p", "parent": 250, "children": [], "start_point": {"row": 56, "column": 11}, "end_point": {"row": 56, "column": 12}}, {"id": 253, "type": "=", "text": "=", "parent": 247, "children": [], "start_point": {"row": 56, "column": 13}, "end_point": {"row": 56, "column": 14}}, {"id": 254, "type": "identifier", "text": "src", "parent": 247, "children": [], "start_point": {"row": 56, "column": 15}, "end_point": {"row": 56, "column": 18}}, {"id": 255, "type": "declaration", "text": "size_t i = 0;", "parent": 229, "children": [256, 257], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 17}}, {"id": 256, "type": "primitive_type", "text": "size_t", "parent": 255, "children": [], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 10}}, {"id": 257, "type": "init_declarator", "text": "i = 0", "parent": 255, "children": [258, 259, 260], "start_point": {"row": 57, "column": 11}, "end_point": {"row": 57, "column": 16}}, {"id": 258, "type": "identifier", "text": "i", "parent": 257, "children": [], "start_point": {"row": 57, "column": 11}, "end_point": {"row": 57, "column": 12}}, {"id": 259, "type": "=", "text": "=", "parent": 257, "children": [], "start_point": {"row": 57, "column": 13}, "end_point": {"row": 57, "column": 14}}, {"id": 260, "type": "number_literal", "text": "0", "parent": 257, "children": [], "start_point": {"row": 57, "column": 15}, "end_point": {"row": 57, "column": 16}}, {"id": 261, "type": "declaration", "text": "size_t len;", "parent": 229, "children": [262, 263], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 15}}, {"id": 262, "type": "primitive_type", "text": "size_t", "parent": 261, "children": [], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 10}}, {"id": 263, "type": "identifier", "text": "len", "parent": 261, "children": [], "start_point": {"row": 58, "column": 11}, "end_point": {"row": 58, "column": 14}}, {"id": 264, "type": "if_statement", "text": "if (src == NULL) {\n return NULL;\n }", "parent": 229, "children": [265], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 61, "column": 5}}, {"id": 265, "type": "parenthesized_expression", "text": "(src == NULL)", "parent": 264, "children": [266], "start_point": {"row": 59, "column": 7}, "end_point": {"row": 59, "column": 20}}, {"id": 266, "type": "binary_expression", "text": "src == NULL", "parent": 265, "children": [267, 268, 269], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 19}}, {"id": 267, "type": "identifier", "text": "src", "parent": 266, "children": [], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 11}}, {"id": 268, "type": "==", "text": "==", "parent": 266, "children": [], "start_point": {"row": 59, "column": 12}, "end_point": {"row": 59, "column": 14}}, {"id": 269, "type": "null", "text": "NULL", "parent": 266, "children": [270], "start_point": {"row": 59, "column": 15}, "end_point": {"row": 59, "column": 19}}, {"id": 270, "type": "NULL", "text": "NULL", "parent": 269, "children": [], "start_point": {"row": 59, "column": 15}, "end_point": {"row": 59, "column": 19}}, {"id": 271, "type": "return_statement", "text": "return NULL;", "parent": 264, "children": [272], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 20}}, {"id": 272, "type": "null", "text": "NULL", "parent": 271, "children": [273], "start_point": {"row": 60, "column": 15}, "end_point": {"row": 60, "column": 19}}, {"id": 273, "type": "NULL", "text": "NULL", "parent": 272, "children": [], "start_point": {"row": 60, "column": 15}, "end_point": {"row": 60, "column": 19}}, {"id": 274, "type": "while_statement", "text": "while (*p) {\n i++;\n p++;\n }", "parent": 229, "children": [275], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 65, "column": 5}}, {"id": 275, "type": "parenthesized_expression", "text": "(*p)", "parent": 274, "children": [276], "start_point": {"row": 62, "column": 10}, "end_point": {"row": 62, "column": 14}}, {"id": 276, "type": "pointer_expression", "text": "*p", "parent": 275, "children": [277, 278], "start_point": {"row": 62, "column": 11}, "end_point": {"row": 62, "column": 13}}, {"id": 277, "type": "*", "text": "*", "parent": 276, "children": [], "start_point": {"row": 62, "column": 11}, "end_point": {"row": 62, "column": 12}}, {"id": 278, "type": "identifier", "text": "p", "parent": 276, "children": [], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 62, "column": 13}}, {"id": 279, "type": "update_expression", "text": "i++", "parent": 274, "children": [280, 281], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 11}}, {"id": 280, "type": "identifier", "text": "i", "parent": 279, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 9}}, {"id": 281, "type": "++", "text": "++", "parent": 279, "children": [], "start_point": {"row": 63, "column": 9}, "end_point": {"row": 63, "column": 11}}, {"id": 282, "type": "update_expression", "text": "p++", "parent": 274, "children": [283, 284], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 11}}, {"id": 283, "type": "identifier", "text": "p", "parent": 282, "children": [], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 9}}, {"id": 284, "type": "++", "text": "++", "parent": 282, "children": [], "start_point": {"row": 64, "column": 9}, "end_point": {"row": 64, "column": 11}}, {"id": 285, "type": "assignment_expression", "text": "len = i", "parent": 229, "children": [286, 287, 288], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 11}}, {"id": 286, "type": "identifier", "text": "len", "parent": 285, "children": [], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 7}}, {"id": 287, "type": "=", "text": "=", "parent": 285, "children": [], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 9}}, {"id": 288, "type": "identifier", "text": "i", "parent": 285, "children": [], "start_point": {"row": 66, "column": 10}, "end_point": {"row": 66, "column": 11}}, {"id": 289, "type": "assignment_expression", "text": "p = malloc((len + 1) * sizeof(char *))", "parent": 229, "children": [290, 291, 292], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 42}}, {"id": 290, "type": "identifier", "text": "p", "parent": 289, "children": [], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 5}}, {"id": 291, "type": "=", "text": "=", "parent": 289, "children": [], "start_point": {"row": 67, "column": 6}, "end_point": {"row": 67, "column": 7}}, {"id": 292, "type": "call_expression", "text": "malloc((len + 1) * sizeof(char *))", "parent": 289, "children": [293, 294], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 42}}, {"id": 293, "type": "identifier", "text": "malloc", "parent": 292, "children": [], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 14}}, {"id": 294, "type": "argument_list", "text": "((len + 1) * sizeof(char *))", "parent": 292, "children": [295], "start_point": {"row": 67, "column": 14}, "end_point": {"row": 67, "column": 42}}, {"id": 295, "type": "binary_expression", "text": "(len + 1) * sizeof(char *)", "parent": 294, "children": [296, 301, 302], "start_point": {"row": 67, "column": 15}, "end_point": {"row": 67, "column": 41}}, {"id": 296, "type": "parenthesized_expression", "text": "(len + 1)", "parent": 295, "children": [297], "start_point": {"row": 67, "column": 15}, "end_point": {"row": 67, "column": 24}}, {"id": 297, "type": "binary_expression", "text": "len + 1", "parent": 296, "children": [298, 299, 300], "start_point": {"row": 67, "column": 16}, "end_point": {"row": 67, "column": 23}}, {"id": 298, "type": "identifier", "text": "len", "parent": 297, "children": [], "start_point": {"row": 67, "column": 16}, "end_point": {"row": 67, "column": 19}}, {"id": 299, "type": "+", "text": "+", "parent": 297, "children": [], "start_point": {"row": 67, "column": 20}, "end_point": {"row": 67, "column": 21}}, {"id": 300, "type": "number_literal", "text": "1", "parent": 297, "children": [], "start_point": {"row": 67, "column": 22}, "end_point": {"row": 67, "column": 23}}, {"id": 301, "type": "*", "text": "*", "parent": 295, "children": [], "start_point": {"row": 67, "column": 25}, "end_point": {"row": 67, "column": 26}}, {"id": 302, "type": "sizeof_expression", "text": "sizeof(char *)", "parent": 295, "children": [303], "start_point": {"row": 67, "column": 27}, "end_point": {"row": 67, "column": 41}}, {"id": 303, "type": "type_descriptor", "text": "char *", "parent": 302, "children": [304, 305], "start_point": {"row": 67, "column": 34}, "end_point": {"row": 67, "column": 40}}, {"id": 304, "type": "primitive_type", "text": "char", "parent": 303, "children": [], "start_point": {"row": 67, "column": 34}, "end_point": {"row": 67, "column": 38}}, {"id": 305, "type": "abstract_pointer_declarator", "text": "*", "parent": 303, "children": [306], "start_point": {"row": 67, "column": 39}, "end_point": {"row": 67, "column": 40}}, {"id": 306, "type": "*", "text": "*", "parent": 305, "children": [], "start_point": {"row": 67, "column": 39}, "end_point": {"row": 67, "column": 40}}, {"id": 307, "type": "if_statement", "text": "if (p == NULL) {\n return NULL;\n }", "parent": 229, "children": [308], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 70, "column": 5}}, {"id": 308, "type": "parenthesized_expression", "text": "(p == NULL)", "parent": 307, "children": [309], "start_point": {"row": 68, "column": 7}, "end_point": {"row": 68, "column": 18}}, {"id": 309, "type": "binary_expression", "text": "p == NULL", "parent": 308, "children": [310, 311, 312], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 17}}, {"id": 310, "type": "identifier", "text": "p", "parent": 309, "children": [], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 9}}, {"id": 311, "type": "==", "text": "==", "parent": 309, "children": [], "start_point": {"row": 68, "column": 10}, "end_point": {"row": 68, "column": 12}}, {"id": 312, "type": "null", "text": "NULL", "parent": 309, "children": [313], "start_point": {"row": 68, "column": 13}, "end_point": {"row": 68, "column": 17}}, {"id": 313, "type": "NULL", "text": "NULL", "parent": 312, "children": [], "start_point": {"row": 68, "column": 13}, "end_point": {"row": 68, "column": 17}}, {"id": 314, "type": "return_statement", "text": "return NULL;", "parent": 307, "children": [315], "start_point": {"row": 69, "column": 8}, "end_point": {"row": 69, "column": 20}}, {"id": 315, "type": "null", "text": "NULL", "parent": 314, "children": [316], "start_point": {"row": 69, "column": 15}, "end_point": {"row": 69, "column": 19}}, {"id": 316, "type": "NULL", "text": "NULL", "parent": 315, "children": [], "start_point": {"row": 69, "column": 15}, "end_point": {"row": 69, "column": 19}}, {"id": 317, "type": "for_statement", "text": "for (i = 0; i < len; ++i) {\n p[i] = strdup(src[i]);\n if (p[i] == NULL) {\n size_t j;\n for (j = 0; j < i; j++) {\n free(p[j]);\n }\n free(p);\n return NULL;\n }\n }", "parent": 229, "children": [318, 322, 326], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 81, "column": 5}}, {"id": 318, "type": "assignment_expression", "text": "i = 0", "parent": 317, "children": [319, 320, 321], "start_point": {"row": 71, "column": 9}, "end_point": {"row": 71, "column": 14}}, {"id": 319, "type": "identifier", "text": "i", "parent": 318, "children": [], "start_point": {"row": 71, "column": 9}, "end_point": {"row": 71, "column": 10}}, {"id": 320, "type": "=", "text": "=", "parent": 318, "children": [], "start_point": {"row": 71, "column": 11}, "end_point": {"row": 71, "column": 12}}, {"id": 321, "type": "number_literal", "text": "0", "parent": 318, "children": [], "start_point": {"row": 71, "column": 13}, "end_point": {"row": 71, "column": 14}}, {"id": 322, "type": "binary_expression", "text": "i < len", "parent": 317, "children": [323, 324, 325], "start_point": {"row": 71, "column": 16}, "end_point": {"row": 71, "column": 23}}, {"id": 323, "type": "identifier", "text": "i", "parent": 322, "children": [], "start_point": {"row": 71, "column": 16}, "end_point": {"row": 71, "column": 17}}, {"id": 324, "type": "<", "text": "<", "parent": 322, "children": [], "start_point": {"row": 71, "column": 18}, "end_point": {"row": 71, "column": 19}}, {"id": 325, "type": "identifier", "text": "len", "parent": 322, "children": [], "start_point": {"row": 71, "column": 20}, "end_point": {"row": 71, "column": 23}}, {"id": 326, "type": "update_expression", "text": "++i", "parent": 317, "children": [327, 328], "start_point": {"row": 71, "column": 25}, "end_point": {"row": 71, "column": 28}}, {"id": 327, "type": "++", "text": "++", "parent": 326, "children": [], "start_point": {"row": 71, "column": 25}, "end_point": {"row": 71, "column": 27}}, {"id": 328, "type": "identifier", "text": "i", "parent": 326, "children": [], "start_point": {"row": 71, "column": 27}, "end_point": {"row": 71, "column": 28}}, {"id": 329, "type": "assignment_expression", "text": "p[i] = strdup(src[i])", "parent": 317, "children": [330, 333, 334], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 29}}, {"id": 330, "type": "subscript_expression", "text": "p[i]", "parent": 329, "children": [331, 332], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 12}}, {"id": 331, "type": "identifier", "text": "p", "parent": 330, "children": [], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 9}}, {"id": 332, "type": "identifier", "text": "i", "parent": 330, "children": [], "start_point": {"row": 72, "column": 10}, "end_point": {"row": 72, "column": 11}}, {"id": 333, "type": "=", "text": "=", "parent": 329, "children": [], "start_point": {"row": 72, "column": 13}, "end_point": {"row": 72, "column": 14}}, {"id": 334, "type": "call_expression", "text": "strdup(src[i])", "parent": 329, "children": [335, 336], "start_point": {"row": 72, "column": 15}, "end_point": {"row": 72, "column": 29}}, {"id": 335, "type": "identifier", "text": "strdup", "parent": 334, "children": [], "start_point": {"row": 72, "column": 15}, "end_point": {"row": 72, "column": 21}}, {"id": 336, "type": "argument_list", "text": "(src[i])", "parent": 334, "children": [337], "start_point": {"row": 72, "column": 21}, "end_point": {"row": 72, "column": 29}}, {"id": 337, "type": "subscript_expression", "text": "src[i]", "parent": 336, "children": [338, 339], "start_point": {"row": 72, "column": 22}, "end_point": {"row": 72, "column": 28}}, {"id": 338, "type": "identifier", "text": "src", "parent": 337, "children": [], "start_point": {"row": 72, "column": 22}, "end_point": {"row": 72, "column": 25}}, {"id": 339, "type": "identifier", "text": "i", "parent": 337, "children": [], "start_point": {"row": 72, "column": 26}, "end_point": {"row": 72, "column": 27}}, {"id": 340, "type": "if_statement", "text": "if (p[i] == NULL) {\n size_t j;\n for (j = 0; j < i; j++) {\n free(p[j]);\n }\n free(p);\n return NULL;\n }", "parent": 317, "children": [341], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 80, "column": 9}}, {"id": 341, "type": "parenthesized_expression", "text": "(p[i] == NULL)", "parent": 340, "children": [342], "start_point": {"row": 73, "column": 11}, "end_point": {"row": 73, "column": 25}}, {"id": 342, "type": "binary_expression", "text": "p[i] == NULL", "parent": 341, "children": [343, 346, 347], "start_point": {"row": 73, "column": 12}, "end_point": {"row": 73, "column": 24}}, {"id": 343, "type": "subscript_expression", "text": "p[i]", "parent": 342, "children": [344, 345], "start_point": {"row": 73, "column": 12}, "end_point": {"row": 73, "column": 16}}, {"id": 344, "type": "identifier", "text": "p", "parent": 343, "children": [], "start_point": {"row": 73, "column": 12}, "end_point": {"row": 73, "column": 13}}, {"id": 345, "type": "identifier", "text": "i", "parent": 343, "children": [], "start_point": {"row": 73, "column": 14}, "end_point": {"row": 73, "column": 15}}, {"id": 346, "type": "==", "text": "==", "parent": 342, "children": [], "start_point": {"row": 73, "column": 17}, "end_point": {"row": 73, "column": 19}}, {"id": 347, "type": "null", "text": "NULL", "parent": 342, "children": [348], "start_point": {"row": 73, "column": 20}, "end_point": {"row": 73, "column": 24}}, {"id": 348, "type": "NULL", "text": "NULL", "parent": 347, "children": [], "start_point": {"row": 73, "column": 20}, "end_point": {"row": 73, "column": 24}}, {"id": 349, "type": "declaration", "text": "size_t j;", "parent": 340, "children": [350, 351], "start_point": {"row": 74, "column": 12}, "end_point": {"row": 74, "column": 21}}, {"id": 350, "type": "primitive_type", "text": "size_t", "parent": 349, "children": [], "start_point": {"row": 74, "column": 12}, "end_point": {"row": 74, "column": 18}}, {"id": 351, "type": "identifier", "text": "j", "parent": 349, "children": [], "start_point": {"row": 74, "column": 19}, "end_point": {"row": 74, "column": 20}}, {"id": 352, "type": "for_statement", "text": "for (j = 0; j < i; j++) {\n free(p[j]);\n }", "parent": 340, "children": [353, 357, 361], "start_point": {"row": 75, "column": 12}, "end_point": {"row": 77, "column": 13}}, {"id": 353, "type": "assignment_expression", "text": "j = 0", "parent": 352, "children": [354, 355, 356], "start_point": {"row": 75, "column": 17}, "end_point": {"row": 75, "column": 22}}, {"id": 354, "type": "identifier", "text": "j", "parent": 353, "children": [], "start_point": {"row": 75, "column": 17}, "end_point": {"row": 75, "column": 18}}, {"id": 355, "type": "=", "text": "=", "parent": 353, "children": [], "start_point": {"row": 75, "column": 19}, "end_point": {"row": 75, "column": 20}}, {"id": 356, "type": "number_literal", "text": "0", "parent": 353, "children": [], "start_point": {"row": 75, "column": 21}, "end_point": {"row": 75, "column": 22}}, {"id": 357, "type": "binary_expression", "text": "j < i", "parent": 352, "children": [358, 359, 360], "start_point": {"row": 75, "column": 24}, "end_point": {"row": 75, "column": 29}}, {"id": 358, "type": "identifier", "text": "j", "parent": 357, "children": [], "start_point": {"row": 75, "column": 24}, "end_point": {"row": 75, "column": 25}}, {"id": 359, "type": "<", "text": "<", "parent": 357, "children": [], "start_point": {"row": 75, "column": 26}, "end_point": {"row": 75, "column": 27}}, {"id": 360, "type": "identifier", "text": "i", "parent": 357, "children": [], "start_point": {"row": 75, "column": 28}, "end_point": {"row": 75, "column": 29}}, {"id": 361, "type": "update_expression", "text": "j++", "parent": 352, "children": [362, 363], "start_point": {"row": 75, "column": 31}, "end_point": {"row": 75, "column": 34}}, {"id": 362, "type": "identifier", "text": "j", "parent": 361, "children": [], "start_point": {"row": 75, "column": 31}, "end_point": {"row": 75, "column": 32}}, {"id": 363, "type": "++", "text": "++", "parent": 361, "children": [], "start_point": {"row": 75, "column": 32}, "end_point": {"row": 75, "column": 34}}, {"id": 364, "type": "call_expression", "text": "free(p[j])", "parent": 352, "children": [365, 366], "start_point": {"row": 76, "column": 16}, "end_point": {"row": 76, "column": 26}}, {"id": 365, "type": "identifier", "text": "free", "parent": 364, "children": [], "start_point": {"row": 76, "column": 16}, "end_point": {"row": 76, "column": 20}}, {"id": 366, "type": "argument_list", "text": "(p[j])", "parent": 364, "children": [367], "start_point": {"row": 76, "column": 20}, "end_point": {"row": 76, "column": 26}}, {"id": 367, "type": "subscript_expression", "text": "p[j]", "parent": 366, "children": [368, 369], "start_point": {"row": 76, "column": 21}, "end_point": {"row": 76, "column": 25}}, {"id": 368, "type": "identifier", "text": "p", "parent": 367, "children": [], "start_point": {"row": 76, "column": 21}, "end_point": {"row": 76, "column": 22}}, {"id": 369, "type": "identifier", "text": "j", "parent": 367, "children": [], "start_point": {"row": 76, "column": 23}, "end_point": {"row": 76, "column": 24}}, {"id": 370, "type": "call_expression", "text": "free(p)", "parent": 340, "children": [371, 372], "start_point": {"row": 78, "column": 12}, "end_point": {"row": 78, "column": 19}}, {"id": 371, "type": "identifier", "text": "free", "parent": 370, "children": [], "start_point": {"row": 78, "column": 12}, "end_point": {"row": 78, "column": 16}}, {"id": 372, "type": "argument_list", "text": "(p)", "parent": 370, "children": [373], "start_point": {"row": 78, "column": 16}, "end_point": {"row": 78, "column": 19}}, {"id": 373, "type": "identifier", "text": "p", "parent": 372, "children": [], "start_point": {"row": 78, "column": 17}, "end_point": {"row": 78, "column": 18}}, {"id": 374, "type": "return_statement", "text": "return NULL;", "parent": 340, "children": [375], "start_point": {"row": 79, "column": 12}, "end_point": {"row": 79, "column": 24}}, {"id": 375, "type": "null", "text": "NULL", "parent": 374, "children": [376], "start_point": {"row": 79, "column": 19}, "end_point": {"row": 79, "column": 23}}, {"id": 376, "type": "NULL", "text": "NULL", "parent": 375, "children": [], "start_point": {"row": 79, "column": 19}, "end_point": {"row": 79, "column": 23}}, {"id": 377, "type": "assignment_expression", "text": "p[len] = NULL", "parent": 229, "children": [378, 381, 382], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 17}}, {"id": 378, "type": "subscript_expression", "text": "p[len]", "parent": 377, "children": [379, 380], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 10}}, {"id": 379, "type": "identifier", "text": "p", "parent": 378, "children": [], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 5}}, {"id": 380, "type": "identifier", "text": "len", "parent": 378, "children": [], "start_point": {"row": 82, "column": 6}, "end_point": {"row": 82, "column": 9}}, {"id": 381, "type": "=", "text": "=", "parent": 377, "children": [], "start_point": {"row": 82, "column": 11}, "end_point": {"row": 82, "column": 12}}, {"id": 382, "type": "null", "text": "NULL", "parent": 377, "children": [383], "start_point": {"row": 82, "column": 13}, "end_point": {"row": 82, "column": 17}}, {"id": 383, "type": "NULL", "text": "NULL", "parent": 382, "children": [], "start_point": {"row": 82, "column": 13}, "end_point": {"row": 82, "column": 17}}, {"id": 384, "type": "return_statement", "text": "return p;", "parent": 229, "children": [385], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 13}}, {"id": 385, "type": "identifier", "text": "p", "parent": 384, "children": [], "start_point": {"row": 83, "column": 11}, "end_point": {"row": 83, "column": 12}}, {"id": 386, "type": "function_definition", "text": "void c_free_string_array(char **src)\n{\n if (src) {\n char **p = src;\n while (*p) {\n free(*p);\n ++p;\n }\n free(src);\n }\n}", "parent": 211, "children": [387, 388], "start_point": {"row": 86, "column": 0}, "end_point": {"row": 96, "column": 1}}, {"id": 387, "type": "primitive_type", "text": "void", "parent": 386, "children": [], "start_point": {"row": 86, "column": 0}, "end_point": {"row": 86, "column": 4}}, {"id": 388, "type": "function_declarator", "text": "c_free_string_array(char **src)", "parent": 386, "children": [389, 390], "start_point": {"row": 86, "column": 5}, "end_point": {"row": 86, "column": 36}}, {"id": 389, "type": "identifier", "text": "c_free_string_array", "parent": 388, "children": [], "start_point": {"row": 86, "column": 5}, "end_point": {"row": 86, "column": 24}}, {"id": 390, "type": "parameter_list", "text": "(char **src)", "parent": 388, "children": [391], "start_point": {"row": 86, "column": 24}, "end_point": {"row": 86, "column": 36}}, {"id": 391, "type": "parameter_declaration", "text": "char **src", "parent": 390, "children": [392, 393], "start_point": {"row": 86, "column": 25}, "end_point": {"row": 86, "column": 35}}, {"id": 392, "type": "primitive_type", "text": "char", "parent": 391, "children": [], "start_point": {"row": 86, "column": 25}, "end_point": {"row": 86, "column": 29}}, {"id": 393, "type": "pointer_declarator", "text": "**src", "parent": 391, "children": [394, 395], "start_point": {"row": 86, "column": 30}, "end_point": {"row": 86, "column": 35}}, {"id": 394, "type": "*", "text": "*", "parent": 393, "children": [], "start_point": {"row": 86, "column": 30}, "end_point": {"row": 86, "column": 31}}, {"id": 395, "type": "pointer_declarator", "text": "*src", "parent": 393, "children": [396, 397], "start_point": {"row": 86, "column": 31}, "end_point": {"row": 86, "column": 35}}, {"id": 396, "type": "*", "text": "*", "parent": 395, "children": [], "start_point": {"row": 86, "column": 31}, "end_point": {"row": 86, "column": 32}}, {"id": 397, "type": "identifier", "text": "src", "parent": 395, "children": [], "start_point": {"row": 86, "column": 32}, "end_point": {"row": 86, "column": 35}}, {"id": 398, "type": "if_statement", "text": "if (src) {\n char **p = src;\n while (*p) {\n free(*p);\n ++p;\n }\n free(src);\n }", "parent": 386, "children": [399], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 95, "column": 5}}, {"id": 399, "type": "parenthesized_expression", "text": "(src)", "parent": 398, "children": [400], "start_point": {"row": 88, "column": 7}, "end_point": {"row": 88, "column": 12}}, {"id": 400, "type": "identifier", "text": "src", "parent": 399, "children": [], "start_point": {"row": 88, "column": 8}, "end_point": {"row": 88, "column": 11}}, {"id": 401, "type": "declaration", "text": "char **p = src;", "parent": 398, "children": [402, 403], "start_point": {"row": 89, "column": 8}, "end_point": {"row": 89, "column": 23}}, {"id": 402, "type": "primitive_type", "text": "char", "parent": 401, "children": [], "start_point": {"row": 89, "column": 8}, "end_point": {"row": 89, "column": 12}}, {"id": 403, "type": "init_declarator", "text": "**p = src", "parent": 401, "children": [404, 409, 410], "start_point": {"row": 89, "column": 13}, "end_point": {"row": 89, "column": 22}}, {"id": 404, "type": "pointer_declarator", "text": "**p", "parent": 403, "children": [405, 406], "start_point": {"row": 89, "column": 13}, "end_point": {"row": 89, "column": 16}}, {"id": 405, "type": "*", "text": "*", "parent": 404, "children": [], "start_point": {"row": 89, "column": 13}, "end_point": {"row": 89, "column": 14}}, {"id": 406, "type": "pointer_declarator", "text": "*p", "parent": 404, "children": [407, 408], "start_point": {"row": 89, "column": 14}, "end_point": {"row": 89, "column": 16}}, {"id": 407, "type": "*", "text": "*", "parent": 406, "children": [], "start_point": {"row": 89, "column": 14}, "end_point": {"row": 89, "column": 15}}, {"id": 408, "type": "identifier", "text": "p", "parent": 406, "children": [], "start_point": {"row": 89, "column": 15}, "end_point": {"row": 89, "column": 16}}, {"id": 409, "type": "=", "text": "=", "parent": 403, "children": [], "start_point": {"row": 89, "column": 17}, "end_point": {"row": 89, "column": 18}}, {"id": 410, "type": "identifier", "text": "src", "parent": 403, "children": [], "start_point": {"row": 89, "column": 19}, "end_point": {"row": 89, "column": 22}}, {"id": 411, "type": "while_statement", "text": "while (*p) {\n free(*p);\n ++p;\n }", "parent": 398, "children": [412], "start_point": {"row": 90, "column": 8}, "end_point": {"row": 93, "column": 9}}, {"id": 412, "type": "parenthesized_expression", "text": "(*p)", "parent": 411, "children": [413], "start_point": {"row": 90, "column": 14}, "end_point": {"row": 90, "column": 18}}, {"id": 413, "type": "pointer_expression", "text": "*p", "parent": 412, "children": [414, 415], "start_point": {"row": 90, "column": 15}, "end_point": {"row": 90, "column": 17}}, {"id": 414, "type": "*", "text": "*", "parent": 413, "children": [], "start_point": {"row": 90, "column": 15}, "end_point": {"row": 90, "column": 16}}, {"id": 415, "type": "identifier", "text": "p", "parent": 413, "children": [], "start_point": {"row": 90, "column": 16}, "end_point": {"row": 90, "column": 17}}, {"id": 416, "type": "call_expression", "text": "free(*p)", "parent": 411, "children": [417, 418], "start_point": {"row": 91, "column": 12}, "end_point": {"row": 91, "column": 20}}, {"id": 417, "type": "identifier", "text": "free", "parent": 416, "children": [], "start_point": {"row": 91, "column": 12}, "end_point": {"row": 91, "column": 16}}, {"id": 418, "type": "argument_list", "text": "(*p)", "parent": 416, "children": [419], "start_point": {"row": 91, "column": 16}, "end_point": {"row": 91, "column": 20}}, {"id": 419, "type": "pointer_expression", "text": "*p", "parent": 418, "children": [420, 421], "start_point": {"row": 91, "column": 17}, "end_point": {"row": 91, "column": 19}}, {"id": 420, "type": "*", "text": "*", "parent": 419, "children": [], "start_point": {"row": 91, "column": 17}, "end_point": {"row": 91, "column": 18}}, {"id": 421, "type": "identifier", "text": "p", "parent": 419, "children": [], "start_point": {"row": 91, "column": 18}, "end_point": {"row": 91, "column": 19}}, {"id": 422, "type": "update_expression", "text": "++p", "parent": 411, "children": [423, 424], "start_point": {"row": 92, "column": 12}, "end_point": {"row": 92, "column": 15}}, {"id": 423, "type": "++", "text": "++", "parent": 422, "children": [], "start_point": {"row": 92, "column": 12}, "end_point": {"row": 92, "column": 14}}, {"id": 424, "type": "identifier", "text": "p", "parent": 422, "children": [], "start_point": {"row": 92, "column": 14}, "end_point": {"row": 92, "column": 15}}, {"id": 425, "type": "call_expression", "text": "free(src)", "parent": 398, "children": [426, 427], "start_point": {"row": 94, "column": 8}, "end_point": {"row": 94, "column": 17}}, {"id": 426, "type": "identifier", "text": "free", "parent": 425, "children": [], "start_point": {"row": 94, "column": 8}, "end_point": {"row": 94, "column": 12}}, {"id": 427, "type": "argument_list", "text": "(src)", "parent": 425, "children": [428], "start_point": {"row": 94, "column": 12}, "end_point": {"row": 94, "column": 17}}, {"id": 428, "type": "identifier", "text": "src", "parent": 427, "children": [], "start_point": {"row": 94, "column": 13}, "end_point": {"row": 94, "column": 16}}, {"id": 429, "type": "function_definition", "text": "char *s_strdup(const char *s)\n{\n return (strdup(s == NULL ? \"\" : s));\n}", "parent": 211, "children": [430, 431], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 101, "column": 1}}, {"id": 430, "type": "primitive_type", "text": "char", "parent": 429, "children": [], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 98, "column": 4}}, {"id": 431, "type": "pointer_declarator", "text": "*s_strdup(const char *s)", "parent": 429, "children": [432, 433], "start_point": {"row": 98, "column": 5}, "end_point": {"row": 98, "column": 29}}, {"id": 432, "type": "*", "text": "*", "parent": 431, "children": [], "start_point": {"row": 98, "column": 5}, "end_point": {"row": 98, "column": 6}}, {"id": 433, "type": "function_declarator", "text": "s_strdup(const char *s)", "parent": 431, "children": [434, 435], "start_point": {"row": 98, "column": 6}, "end_point": {"row": 98, "column": 29}}, {"id": 434, "type": "identifier", "text": "s_strdup", "parent": 433, "children": [], "start_point": {"row": 98, "column": 6}, "end_point": {"row": 98, "column": 14}}, {"id": 435, "type": "parameter_list", "text": "(const char *s)", "parent": 433, "children": [436], "start_point": {"row": 98, "column": 14}, "end_point": {"row": 98, "column": 29}}, {"id": 436, "type": "parameter_declaration", "text": "const char *s", "parent": 435, "children": [437, 438], "start_point": {"row": 98, "column": 15}, "end_point": {"row": 98, "column": 28}}, {"id": 437, "type": "primitive_type", "text": "char", "parent": 436, "children": [], "start_point": {"row": 98, "column": 21}, "end_point": {"row": 98, "column": 25}}, {"id": 438, "type": "pointer_declarator", "text": "*s", "parent": 436, "children": [439, 440], "start_point": {"row": 98, "column": 26}, "end_point": {"row": 98, "column": 28}}, {"id": 439, "type": "*", "text": "*", "parent": 438, "children": [], "start_point": {"row": 98, "column": 26}, "end_point": {"row": 98, "column": 27}}, {"id": 440, "type": "identifier", "text": "s", "parent": 438, "children": [], "start_point": {"row": 98, "column": 27}, "end_point": {"row": 98, "column": 28}}, {"id": 441, "type": "return_statement", "text": "return (strdup(s == NULL ? \"\" : s));", "parent": 429, "children": [442], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 40}}, {"id": 442, "type": "parenthesized_expression", "text": "(strdup(s == NULL ? \"\" : s))", "parent": 441, "children": [443], "start_point": {"row": 100, "column": 11}, "end_point": {"row": 100, "column": 39}}, {"id": 443, "type": "call_expression", "text": "strdup(s == NULL ? \"\" : s)", "parent": 442, "children": [444, 445], "start_point": {"row": 100, "column": 12}, "end_point": {"row": 100, "column": 38}}, {"id": 444, "type": "identifier", "text": "strdup", "parent": 443, "children": [], "start_point": {"row": 100, "column": 12}, "end_point": {"row": 100, "column": 18}}, {"id": 445, "type": "argument_list", "text": "(s == NULL ? \"\" : s)", "parent": 443, "children": [446], "start_point": {"row": 100, "column": 18}, "end_point": {"row": 100, "column": 38}}, {"id": 446, "type": "conditional_expression", "text": "s == NULL ? \"\" : s", "parent": 445, "children": [447, 452, 453, 454], "start_point": {"row": 100, "column": 19}, "end_point": {"row": 100, "column": 37}}, {"id": 447, "type": "binary_expression", "text": "s == NULL", "parent": 446, "children": [448, 449, 450], "start_point": {"row": 100, "column": 19}, "end_point": {"row": 100, "column": 28}}, {"id": 448, "type": "identifier", "text": "s", "parent": 447, "children": [], "start_point": {"row": 100, "column": 19}, "end_point": {"row": 100, "column": 20}}, {"id": 449, "type": "==", "text": "==", "parent": 447, "children": [], "start_point": {"row": 100, "column": 21}, "end_point": {"row": 100, "column": 23}}, {"id": 450, "type": "null", "text": "NULL", "parent": 447, "children": [451], "start_point": {"row": 100, "column": 24}, "end_point": {"row": 100, "column": 28}}, {"id": 451, "type": "NULL", "text": "NULL", "parent": 450, "children": [], "start_point": {"row": 100, "column": 24}, "end_point": {"row": 100, "column": 28}}, {"id": 452, "type": "?", "text": "?", "parent": 446, "children": [], "start_point": {"row": 100, "column": 29}, "end_point": {"row": 100, "column": 30}}, {"id": 453, "type": "string_literal", "text": "\"\"", "parent": 446, "children": [], "start_point": {"row": 100, "column": 31}, "end_point": {"row": 100, "column": 33}}, {"id": 454, "type": "identifier", "text": "s", "parent": 446, "children": [], "start_point": {"row": 100, "column": 36}, "end_point": {"row": 100, "column": 37}}, {"id": 455, "type": "#endif", "text": "#endif", "parent": 211, "children": [], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 102, "column": 6}}, {"id": 456, "type": "declaration", "text": "CAMLexport value alloc_inet_addr(struct in_addr *inaddr);", "parent": 3, "children": [457, 458, 460], "start_point": {"row": 104, "column": 0}, "end_point": {"row": 104, "column": 57}}, {"id": 457, "type": "type_identifier", "text": "CAMLexport", "parent": 456, "children": [], "start_point": {"row": 104, "column": 0}, "end_point": {"row": 104, "column": 10}}, {"id": 458, "type": "ERROR", "text": "value", "parent": 456, "children": [459], "start_point": {"row": 104, "column": 11}, "end_point": {"row": 104, "column": 16}}, {"id": 459, "type": "identifier", "text": "value", "parent": 458, "children": [], "start_point": {"row": 104, "column": 11}, "end_point": {"row": 104, "column": 16}}, {"id": 460, "type": "function_declarator", "text": "alloc_inet_addr(struct in_addr *inaddr)", "parent": 456, "children": [461, 462], "start_point": {"row": 104, "column": 17}, "end_point": {"row": 104, "column": 56}}, {"id": 461, "type": "identifier", "text": "alloc_inet_addr", "parent": 460, "children": [], "start_point": {"row": 104, "column": 17}, "end_point": {"row": 104, "column": 32}}, {"id": 462, "type": "parameter_list", "text": "(struct in_addr *inaddr)", "parent": 460, "children": [463], "start_point": {"row": 104, "column": 32}, "end_point": {"row": 104, "column": 56}}, {"id": 463, "type": "parameter_declaration", "text": "struct in_addr *inaddr", "parent": 462, "children": [464, 467], "start_point": {"row": 104, "column": 33}, "end_point": {"row": 104, "column": 55}}, {"id": 464, "type": "struct_specifier", "text": "struct in_addr", "parent": 463, "children": [465, 466], "start_point": {"row": 104, "column": 33}, "end_point": {"row": 104, "column": 47}}, {"id": 465, "type": "struct", "text": "struct", "parent": 464, "children": [], "start_point": {"row": 104, "column": 33}, "end_point": {"row": 104, "column": 39}}, {"id": 466, "type": "type_identifier", "text": "in_addr", "parent": 464, "children": [], "start_point": {"row": 104, "column": 40}, "end_point": {"row": 104, "column": 47}}, {"id": 467, "type": "pointer_declarator", "text": "*inaddr", "parent": 463, "children": [468, 469], "start_point": {"row": 104, "column": 48}, "end_point": {"row": 104, "column": 55}}, {"id": 468, "type": "*", "text": "*", "parent": 467, "children": [], "start_point": {"row": 104, "column": 48}, "end_point": {"row": 104, "column": 49}}, {"id": 469, "type": "identifier", "text": "inaddr", "parent": 467, "children": [], "start_point": {"row": 104, "column": 49}, "end_point": {"row": 104, "column": 55}}, {"id": 470, "type": "declaration", "text": "CAMLexport value alloc_inet6_addr(struct in6_addr *inaddr);", "parent": 3, "children": [471, 472, 474], "start_point": {"row": 105, "column": 0}, "end_point": {"row": 105, "column": 59}}, {"id": 471, "type": "type_identifier", "text": "CAMLexport", "parent": 470, "children": [], "start_point": {"row": 105, "column": 0}, "end_point": {"row": 105, "column": 10}}, {"id": 472, "type": "ERROR", "text": "value", "parent": 470, "children": [473], "start_point": {"row": 105, "column": 11}, "end_point": {"row": 105, "column": 16}}, {"id": 473, "type": "identifier", "text": "value", "parent": 472, "children": [], "start_point": {"row": 105, "column": 11}, "end_point": {"row": 105, "column": 16}}, {"id": 474, "type": "function_declarator", "text": "alloc_inet6_addr(struct in6_addr *inaddr)", "parent": 470, "children": [475, 476], "start_point": {"row": 105, "column": 17}, "end_point": {"row": 105, "column": 58}}, {"id": 475, "type": "identifier", "text": "alloc_inet6_addr", "parent": 474, "children": [], "start_point": {"row": 105, "column": 17}, "end_point": {"row": 105, "column": 33}}, {"id": 476, "type": "parameter_list", "text": "(struct in6_addr *inaddr)", "parent": 474, "children": [477], "start_point": {"row": 105, "column": 33}, "end_point": {"row": 105, "column": 58}}, {"id": 477, "type": "parameter_declaration", "text": "struct in6_addr *inaddr", "parent": 476, "children": [478, 481], "start_point": {"row": 105, "column": 34}, "end_point": {"row": 105, "column": 57}}, {"id": 478, "type": "struct_specifier", "text": "struct in6_addr", "parent": 477, "children": [479, 480], "start_point": {"row": 105, "column": 34}, "end_point": {"row": 105, "column": 49}}, {"id": 479, "type": "struct", "text": "struct", "parent": 478, "children": [], "start_point": {"row": 105, "column": 34}, "end_point": {"row": 105, "column": 40}}, {"id": 480, "type": "type_identifier", "text": "in6_addr", "parent": 478, "children": [], "start_point": {"row": 105, "column": 41}, "end_point": {"row": 105, "column": 49}}, {"id": 481, "type": "pointer_declarator", "text": "*inaddr", "parent": 477, "children": [482, 483], "start_point": {"row": 105, "column": 50}, "end_point": {"row": 105, "column": 57}}, {"id": 482, "type": "*", "text": "*", "parent": 481, "children": [], "start_point": {"row": 105, "column": 50}, "end_point": {"row": 105, "column": 51}}, {"id": 483, "type": "identifier", "text": "inaddr", "parent": 481, "children": [], "start_point": {"row": 105, "column": 51}, "end_point": {"row": 105, "column": 57}}, {"id": 484, "type": "function_definition", "text": "static value alloc_one_addr(char const *a)\n{\n struct in_addr addr;\n memmove(&addr, a, 4);\n return alloc_inet_addr(&addr);\n}", "parent": 3, "children": [485, 486], "start_point": {"row": 107, "column": 0}, "end_point": {"row": 112, "column": 1}}, {"id": 485, "type": "type_identifier", "text": "value", "parent": 484, "children": [], "start_point": {"row": 107, "column": 7}, "end_point": {"row": 107, "column": 12}}, {"id": 486, "type": "function_declarator", "text": "alloc_one_addr(char const *a)", "parent": 484, "children": [487, 488], "start_point": {"row": 107, "column": 13}, "end_point": {"row": 107, "column": 42}}, {"id": 487, "type": "identifier", "text": "alloc_one_addr", "parent": 486, "children": [], "start_point": {"row": 107, "column": 13}, "end_point": {"row": 107, "column": 27}}, {"id": 488, "type": "parameter_list", "text": "(char const *a)", "parent": 486, "children": [489], "start_point": {"row": 107, "column": 27}, "end_point": {"row": 107, "column": 42}}, {"id": 489, "type": "parameter_declaration", "text": "char const *a", "parent": 488, "children": [490, 491], "start_point": {"row": 107, "column": 28}, "end_point": {"row": 107, "column": 41}}, {"id": 490, "type": "primitive_type", "text": "char", "parent": 489, "children": [], "start_point": {"row": 107, "column": 28}, "end_point": {"row": 107, "column": 32}}, {"id": 491, "type": "pointer_declarator", "text": "*a", "parent": 489, "children": [492, 493], "start_point": {"row": 107, "column": 39}, "end_point": {"row": 107, "column": 41}}, {"id": 492, "type": "*", "text": "*", "parent": 491, "children": [], "start_point": {"row": 107, "column": 39}, "end_point": {"row": 107, "column": 40}}, {"id": 493, "type": "identifier", "text": "a", "parent": 491, "children": [], "start_point": {"row": 107, "column": 40}, "end_point": {"row": 107, "column": 41}}, {"id": 494, "type": "declaration", "text": "struct in_addr addr;", "parent": 484, "children": [495, 498], "start_point": {"row": 109, "column": 4}, "end_point": {"row": 109, "column": 24}}, {"id": 495, "type": "struct_specifier", "text": "struct in_addr", "parent": 494, "children": [496, 497], "start_point": {"row": 109, "column": 4}, "end_point": {"row": 109, "column": 18}}, {"id": 496, "type": "struct", "text": "struct", "parent": 495, "children": [], "start_point": {"row": 109, "column": 4}, "end_point": {"row": 109, "column": 10}}, {"id": 497, "type": "type_identifier", "text": "in_addr", "parent": 495, "children": [], "start_point": {"row": 109, "column": 11}, "end_point": {"row": 109, "column": 18}}, {"id": 498, "type": "identifier", "text": "addr", "parent": 494, "children": [], "start_point": {"row": 109, "column": 19}, "end_point": {"row": 109, "column": 23}}, {"id": 499, "type": "call_expression", "text": "memmove(&addr, a, 4)", "parent": 484, "children": [500, 501], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 24}}, {"id": 500, "type": "identifier", "text": "memmove", "parent": 499, "children": [], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 11}}, {"id": 501, "type": "argument_list", "text": "(&addr, a, 4)", "parent": 499, "children": [502, 504, 505], "start_point": {"row": 110, "column": 11}, "end_point": {"row": 110, "column": 24}}, {"id": 502, "type": "pointer_expression", "text": "&addr", "parent": 501, "children": [503], "start_point": {"row": 110, "column": 12}, "end_point": {"row": 110, "column": 17}}, {"id": 503, "type": "identifier", "text": "addr", "parent": 502, "children": [], "start_point": {"row": 110, "column": 13}, "end_point": {"row": 110, "column": 17}}, {"id": 504, "type": "identifier", "text": "a", "parent": 501, "children": [], "start_point": {"row": 110, "column": 19}, "end_point": {"row": 110, "column": 20}}, {"id": 505, "type": "number_literal", "text": "4", "parent": 501, "children": [], "start_point": {"row": 110, "column": 22}, "end_point": {"row": 110, "column": 23}}, {"id": 506, "type": "return_statement", "text": "return alloc_inet_addr(&addr);", "parent": 484, "children": [507], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 111, "column": 34}}, {"id": 507, "type": "call_expression", "text": "alloc_inet_addr(&addr)", "parent": 506, "children": [508, 509], "start_point": {"row": 111, "column": 11}, "end_point": {"row": 111, "column": 33}}, {"id": 508, "type": "identifier", "text": "alloc_inet_addr", "parent": 507, "children": [], "start_point": {"row": 111, "column": 11}, "end_point": {"row": 111, "column": 26}}, {"id": 509, "type": "argument_list", "text": "(&addr)", "parent": 507, "children": [510], "start_point": {"row": 111, "column": 26}, "end_point": {"row": 111, "column": 33}}, {"id": 510, "type": "pointer_expression", "text": "&addr", "parent": 509, "children": [511], "start_point": {"row": 111, "column": 27}, "end_point": {"row": 111, "column": 32}}, {"id": 511, "type": "identifier", "text": "addr", "parent": 510, "children": [], "start_point": {"row": 111, "column": 28}, "end_point": {"row": 111, "column": 32}}, {"id": 512, "type": "function_definition", "text": "static value alloc_one_addr6(char const *a)\n{\n struct in6_addr addr;\n memmove(&addr, a, 16);\n return alloc_inet6_addr(&addr);\n}", "parent": 3, "children": [513, 514], "start_point": {"row": 114, "column": 0}, "end_point": {"row": 119, "column": 1}}, {"id": 513, "type": "type_identifier", "text": "value", "parent": 512, "children": [], "start_point": {"row": 114, "column": 7}, "end_point": {"row": 114, "column": 12}}, {"id": 514, "type": "function_declarator", "text": "alloc_one_addr6(char const *a)", "parent": 512, "children": [515, 516], "start_point": {"row": 114, "column": 13}, "end_point": {"row": 114, "column": 43}}, {"id": 515, "type": "identifier", "text": "alloc_one_addr6", "parent": 514, "children": [], "start_point": {"row": 114, "column": 13}, "end_point": {"row": 114, "column": 28}}, {"id": 516, "type": "parameter_list", "text": "(char const *a)", "parent": 514, "children": [517], "start_point": {"row": 114, "column": 28}, "end_point": {"row": 114, "column": 43}}, {"id": 517, "type": "parameter_declaration", "text": "char const *a", "parent": 516, "children": [518, 519], "start_point": {"row": 114, "column": 29}, "end_point": {"row": 114, "column": 42}}, {"id": 518, "type": "primitive_type", "text": "char", "parent": 517, "children": [], "start_point": {"row": 114, "column": 29}, "end_point": {"row": 114, "column": 33}}, {"id": 519, "type": "pointer_declarator", "text": "*a", "parent": 517, "children": [520, 521], "start_point": {"row": 114, "column": 40}, "end_point": {"row": 114, "column": 42}}, {"id": 520, "type": "*", "text": "*", "parent": 519, "children": [], "start_point": {"row": 114, "column": 40}, "end_point": {"row": 114, "column": 41}}, {"id": 521, "type": "identifier", "text": "a", "parent": 519, "children": [], "start_point": {"row": 114, "column": 41}, "end_point": {"row": 114, "column": 42}}, {"id": 522, "type": "declaration", "text": "struct in6_addr addr;", "parent": 512, "children": [523, 526], "start_point": {"row": 116, "column": 4}, "end_point": {"row": 116, "column": 25}}, {"id": 523, "type": "struct_specifier", "text": "struct in6_addr", "parent": 522, "children": [524, 525], "start_point": {"row": 116, "column": 4}, "end_point": {"row": 116, "column": 19}}, {"id": 524, "type": "struct", "text": "struct", "parent": 523, "children": [], "start_point": {"row": 116, "column": 4}, "end_point": {"row": 116, "column": 10}}, {"id": 525, "type": "type_identifier", "text": "in6_addr", "parent": 523, "children": [], "start_point": {"row": 116, "column": 11}, "end_point": {"row": 116, "column": 19}}, {"id": 526, "type": "identifier", "text": "addr", "parent": 522, "children": [], "start_point": {"row": 116, "column": 20}, "end_point": {"row": 116, "column": 24}}, {"id": 527, "type": "call_expression", "text": "memmove(&addr, a, 16)", "parent": 512, "children": [528, 529], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 25}}, {"id": 528, "type": "identifier", "text": "memmove", "parent": 527, "children": [], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 11}}, {"id": 529, "type": "argument_list", "text": "(&addr, a, 16)", "parent": 527, "children": [530, 532, 533], "start_point": {"row": 117, "column": 11}, "end_point": {"row": 117, "column": 25}}, {"id": 530, "type": "pointer_expression", "text": "&addr", "parent": 529, "children": [531], "start_point": {"row": 117, "column": 12}, "end_point": {"row": 117, "column": 17}}, {"id": 531, "type": "identifier", "text": "addr", "parent": 530, "children": [], "start_point": {"row": 117, "column": 13}, "end_point": {"row": 117, "column": 17}}, {"id": 532, "type": "identifier", "text": "a", "parent": 529, "children": [], "start_point": {"row": 117, "column": 19}, "end_point": {"row": 117, "column": 20}}, {"id": 533, "type": "number_literal", "text": "16", "parent": 529, "children": [], "start_point": {"row": 117, "column": 22}, "end_point": {"row": 117, "column": 24}}, {"id": 534, "type": "return_statement", "text": "return alloc_inet6_addr(&addr);", "parent": 512, "children": [535], "start_point": {"row": 118, "column": 4}, "end_point": {"row": 118, "column": 35}}, {"id": 535, "type": "call_expression", "text": "alloc_inet6_addr(&addr)", "parent": 534, "children": [536, 537], "start_point": {"row": 118, "column": 11}, "end_point": {"row": 118, "column": 34}}, {"id": 536, "type": "identifier", "text": "alloc_inet6_addr", "parent": 535, "children": [], "start_point": {"row": 118, "column": 11}, "end_point": {"row": 118, "column": 27}}, {"id": 537, "type": "argument_list", "text": "(&addr)", "parent": 535, "children": [538], "start_point": {"row": 118, "column": 27}, "end_point": {"row": 118, "column": 34}}, {"id": 538, "type": "pointer_expression", "text": "&addr", "parent": 537, "children": [539], "start_point": {"row": 118, "column": 28}, "end_point": {"row": 118, "column": 33}}, {"id": 539, "type": "identifier", "text": "addr", "parent": 538, "children": [], "start_point": {"row": 118, "column": 29}, "end_point": {"row": 118, "column": 33}}, {"id": 540, "type": "function_definition", "text": "value alloc_host_entry(struct hostent *entry)\n{\n value res;\n value name = Val_unit, aliases = Val_unit;\n value addr_list = Val_unit, adr = Val_unit;\n\n Begin_roots4(name, aliases, addr_list, adr);\n name = caml_copy_string((char *)(entry->h_name));\n /* PR#4043: protect against buggy implementations of gethostbynamee()\n that return a NULL pointer in h_aliases */\n if (entry->h_aliases)\n aliases = caml_copy_string_array((const char **)entry->h_aliases);\n else\n aliases = Atom(0);\n if (entry->h_length == 16)\n addr_list = caml_alloc_array(alloc_one_addr6,\n (const char **)entry->h_addr_list);\n else\n addr_list =\n caml_alloc_array(alloc_one_addr, (const char **)entry->h_addr_list);\n res = caml_alloc_small(4, 0);\n Field(res, 0) = name;\n Field(res, 1) = aliases;\n switch (entry->h_addrtype) {\n case PF_UNIX:\n Field(res, 2) = Val_int(0);\n break;\n case PF_INET:\n Field(res, 2) = Val_int(1);\n break;\n default: /*PF_INET6 */\n Field(res, 2) = Val_int(2);\n break;\n }\n Field(res, 3) = addr_list;\n End_roots();\n return res;\n}", "parent": 3, "children": [541, 542], "start_point": {"row": 121, "column": 0}, "end_point": {"row": 158, "column": 1}}, {"id": 541, "type": "type_identifier", "text": "value", "parent": 540, "children": [], "start_point": {"row": 121, "column": 0}, "end_point": {"row": 121, "column": 5}}, {"id": 542, "type": "function_declarator", "text": "alloc_host_entry(struct hostent *entry)", "parent": 540, "children": [543, 544], "start_point": {"row": 121, "column": 6}, "end_point": {"row": 121, "column": 45}}, {"id": 543, "type": "identifier", "text": "alloc_host_entry", "parent": 542, "children": [], "start_point": {"row": 121, "column": 6}, "end_point": {"row": 121, "column": 22}}, {"id": 544, "type": "parameter_list", "text": "(struct hostent *entry)", "parent": 542, "children": [545], "start_point": {"row": 121, "column": 22}, "end_point": {"row": 121, "column": 45}}, {"id": 545, "type": "parameter_declaration", "text": "struct hostent *entry", "parent": 544, "children": [546, 549], "start_point": {"row": 121, "column": 23}, "end_point": {"row": 121, "column": 44}}, {"id": 546, "type": "struct_specifier", "text": "struct hostent", "parent": 545, "children": [547, 548], "start_point": {"row": 121, "column": 23}, "end_point": {"row": 121, "column": 37}}, {"id": 547, "type": "struct", "text": "struct", "parent": 546, "children": [], "start_point": {"row": 121, "column": 23}, "end_point": {"row": 121, "column": 29}}, {"id": 548, "type": "type_identifier", "text": "hostent", "parent": 546, "children": [], "start_point": {"row": 121, "column": 30}, "end_point": {"row": 121, "column": 37}}, {"id": 549, "type": "pointer_declarator", "text": "*entry", "parent": 545, "children": [550, 551], "start_point": {"row": 121, "column": 38}, "end_point": {"row": 121, "column": 44}}, {"id": 550, "type": "*", "text": "*", "parent": 549, "children": [], "start_point": {"row": 121, "column": 38}, "end_point": {"row": 121, "column": 39}}, {"id": 551, "type": "identifier", "text": "entry", "parent": 549, "children": [], "start_point": {"row": 121, "column": 39}, "end_point": {"row": 121, "column": 44}}, {"id": 552, "type": "declaration", "text": "value res;", "parent": 540, "children": [553, 554], "start_point": {"row": 123, "column": 4}, "end_point": {"row": 123, "column": 14}}, {"id": 553, "type": "type_identifier", "text": "value", "parent": 552, "children": [], "start_point": {"row": 123, "column": 4}, "end_point": {"row": 123, "column": 9}}, {"id": 554, "type": "identifier", "text": "res", "parent": 552, "children": [], "start_point": {"row": 123, "column": 10}, "end_point": {"row": 123, "column": 13}}, {"id": 555, "type": "declaration", "text": "value name = Val_unit, aliases = Val_unit;", "parent": 540, "children": [556, 557, 561], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 124, "column": 46}}, {"id": 556, "type": "type_identifier", "text": "value", "parent": 555, "children": [], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 124, "column": 9}}, {"id": 557, "type": "init_declarator", "text": "name = Val_unit", "parent": 555, "children": [558, 559, 560], "start_point": {"row": 124, "column": 10}, "end_point": {"row": 124, "column": 25}}, {"id": 558, "type": "identifier", "text": "name", "parent": 557, "children": [], "start_point": {"row": 124, "column": 10}, "end_point": {"row": 124, "column": 14}}, {"id": 559, "type": "=", "text": "=", "parent": 557, "children": [], "start_point": {"row": 124, "column": 15}, "end_point": {"row": 124, "column": 16}}, {"id": 560, "type": "identifier", "text": "Val_unit", "parent": 557, "children": [], "start_point": {"row": 124, "column": 17}, "end_point": {"row": 124, "column": 25}}, {"id": 561, "type": "init_declarator", "text": "aliases = Val_unit", "parent": 555, "children": [562, 563, 564], "start_point": {"row": 124, "column": 27}, "end_point": {"row": 124, "column": 45}}, {"id": 562, "type": "identifier", "text": "aliases", "parent": 561, "children": [], "start_point": {"row": 124, "column": 27}, "end_point": {"row": 124, "column": 34}}, {"id": 563, "type": "=", "text": "=", "parent": 561, "children": [], "start_point": {"row": 124, "column": 35}, "end_point": {"row": 124, "column": 36}}, {"id": 564, "type": "identifier", "text": "Val_unit", "parent": 561, "children": [], "start_point": {"row": 124, "column": 37}, "end_point": {"row": 124, "column": 45}}, {"id": 565, "type": "declaration", "text": "value addr_list = Val_unit, adr = Val_unit;", "parent": 540, "children": [566, 567, 571], "start_point": {"row": 125, "column": 4}, "end_point": {"row": 125, "column": 47}}, {"id": 566, "type": "type_identifier", "text": "value", "parent": 565, "children": [], "start_point": {"row": 125, "column": 4}, "end_point": {"row": 125, "column": 9}}, {"id": 567, "type": "init_declarator", "text": "addr_list = Val_unit", "parent": 565, "children": [568, 569, 570], "start_point": {"row": 125, "column": 10}, "end_point": {"row": 125, "column": 30}}, {"id": 568, "type": "identifier", "text": "addr_list", "parent": 567, "children": [], "start_point": {"row": 125, "column": 10}, "end_point": {"row": 125, "column": 19}}, {"id": 569, "type": "=", "text": "=", "parent": 567, "children": [], "start_point": {"row": 125, "column": 20}, "end_point": {"row": 125, "column": 21}}, {"id": 570, "type": "identifier", "text": "Val_unit", "parent": 567, "children": [], "start_point": {"row": 125, "column": 22}, "end_point": {"row": 125, "column": 30}}, {"id": 571, "type": "init_declarator", "text": "adr = Val_unit", "parent": 565, "children": [572, 573, 574], "start_point": {"row": 125, "column": 32}, "end_point": {"row": 125, "column": 46}}, {"id": 572, "type": "identifier", "text": "adr", "parent": 571, "children": [], "start_point": {"row": 125, "column": 32}, "end_point": {"row": 125, "column": 35}}, {"id": 573, "type": "=", "text": "=", "parent": 571, "children": [], "start_point": {"row": 125, "column": 36}, "end_point": {"row": 125, "column": 37}}, {"id": 574, "type": "identifier", "text": "Val_unit", "parent": 571, "children": [], "start_point": {"row": 125, "column": 38}, "end_point": {"row": 125, "column": 46}}, {"id": 575, "type": "call_expression", "text": "Begin_roots4(name, aliases, addr_list, adr)", "parent": 540, "children": [576, 577], "start_point": {"row": 127, "column": 4}, "end_point": {"row": 127, "column": 47}}, {"id": 576, "type": "identifier", "text": "Begin_roots4", "parent": 575, "children": [], "start_point": {"row": 127, "column": 4}, "end_point": {"row": 127, "column": 16}}, {"id": 577, "type": "argument_list", "text": "(name, aliases, addr_list, adr)", "parent": 575, "children": [578, 579, 580, 581], "start_point": {"row": 127, "column": 16}, "end_point": {"row": 127, "column": 47}}, {"id": 578, "type": "identifier", "text": "name", "parent": 577, "children": [], "start_point": {"row": 127, "column": 17}, "end_point": {"row": 127, "column": 21}}, {"id": 579, "type": "identifier", "text": "aliases", "parent": 577, "children": [], "start_point": {"row": 127, "column": 23}, "end_point": {"row": 127, "column": 30}}, {"id": 580, "type": "identifier", "text": "addr_list", "parent": 577, "children": [], "start_point": {"row": 127, "column": 32}, "end_point": {"row": 127, "column": 41}}, {"id": 581, "type": "identifier", "text": "adr", "parent": 577, "children": [], "start_point": {"row": 127, "column": 43}, "end_point": {"row": 127, "column": 46}}, {"id": 582, "type": "assignment_expression", "text": "name = caml_copy_string((char *)(entry->h_name))", "parent": 540, "children": [583, 584, 585], "start_point": {"row": 128, "column": 4}, "end_point": {"row": 128, "column": 52}}, {"id": 583, "type": "identifier", "text": "name", "parent": 582, "children": [], "start_point": {"row": 128, "column": 4}, "end_point": {"row": 128, "column": 8}}, {"id": 584, "type": "=", "text": "=", "parent": 582, "children": [], "start_point": {"row": 128, "column": 9}, "end_point": {"row": 128, "column": 10}}, {"id": 585, "type": "call_expression", "text": "caml_copy_string((char *)(entry->h_name))", "parent": 582, "children": [586, 587], "start_point": {"row": 128, "column": 11}, "end_point": {"row": 128, "column": 52}}, {"id": 586, "type": "identifier", "text": "caml_copy_string", "parent": 585, "children": [], "start_point": {"row": 128, "column": 11}, "end_point": {"row": 128, "column": 27}}, {"id": 587, "type": "argument_list", "text": "((char *)(entry->h_name))", "parent": 585, "children": [588], "start_point": {"row": 128, "column": 27}, "end_point": {"row": 128, "column": 52}}, {"id": 588, "type": "cast_expression", "text": "(char *)(entry->h_name)", "parent": 587, "children": [589, 593], "start_point": {"row": 128, "column": 28}, "end_point": {"row": 128, "column": 51}}, {"id": 589, "type": "type_descriptor", "text": "char *", "parent": 588, "children": [590, 591], "start_point": {"row": 128, "column": 29}, "end_point": {"row": 128, "column": 35}}, {"id": 590, "type": "primitive_type", "text": "char", "parent": 589, "children": [], "start_point": {"row": 128, "column": 29}, "end_point": {"row": 128, "column": 33}}, {"id": 591, "type": "abstract_pointer_declarator", "text": "*", "parent": 589, "children": [592], "start_point": {"row": 128, "column": 34}, "end_point": {"row": 128, "column": 35}}, {"id": 592, "type": "*", "text": "*", "parent": 591, "children": [], "start_point": {"row": 128, "column": 34}, "end_point": {"row": 128, "column": 35}}, {"id": 593, "type": "parenthesized_expression", "text": "(entry->h_name)", "parent": 588, "children": [594], "start_point": {"row": 128, "column": 36}, "end_point": {"row": 128, "column": 51}}, {"id": 594, "type": "field_expression", "text": "entry->h_name", "parent": 593, "children": [595, 596], "start_point": {"row": 128, "column": 37}, "end_point": {"row": 128, "column": 50}}, {"id": 595, "type": "identifier", "text": "entry", "parent": 594, "children": [], "start_point": {"row": 128, "column": 37}, "end_point": {"row": 128, "column": 42}}, {"id": 596, "type": "field_identifier", "text": "h_name", "parent": 594, "children": [], "start_point": {"row": 128, "column": 44}, "end_point": {"row": 128, "column": 50}}, {"id": 597, "type": "if_statement", "text": "if (entry->h_aliases)\n aliases = caml_copy_string_array((const char **)entry->h_aliases);\n else\n aliases = Atom(0);", "parent": 540, "children": [598, 618], "start_point": {"row": 131, "column": 4}, "end_point": {"row": 134, "column": 26}}, {"id": 598, "type": "parenthesized_expression", "text": "(entry->h_aliases)", "parent": 597, "children": [599], "start_point": {"row": 131, "column": 7}, "end_point": {"row": 131, "column": 25}}, {"id": 599, "type": "field_expression", "text": "entry->h_aliases", "parent": 598, "children": [600, 601], "start_point": {"row": 131, "column": 8}, "end_point": {"row": 131, "column": 24}}, {"id": 600, "type": "identifier", "text": "entry", "parent": 599, "children": [], "start_point": {"row": 131, "column": 8}, "end_point": {"row": 131, "column": 13}}, {"id": 601, "type": "field_identifier", "text": "h_aliases", "parent": 599, "children": [], "start_point": {"row": 131, "column": 15}, "end_point": {"row": 131, "column": 24}}, {"id": 602, "type": "assignment_expression", "text": "aliases = caml_copy_string_array((const char **)entry->h_aliases)", "parent": 597, "children": [603, 604, 605], "start_point": {"row": 132, "column": 8}, "end_point": {"row": 132, "column": 73}}, {"id": 603, "type": "identifier", "text": "aliases", "parent": 602, "children": [], "start_point": {"row": 132, "column": 8}, "end_point": {"row": 132, "column": 15}}, {"id": 604, "type": "=", "text": "=", "parent": 602, "children": [], "start_point": {"row": 132, "column": 16}, "end_point": {"row": 132, "column": 17}}, {"id": 605, "type": "call_expression", "text": "caml_copy_string_array((const char **)entry->h_aliases)", "parent": 602, "children": [606, 607], "start_point": {"row": 132, "column": 18}, "end_point": {"row": 132, "column": 73}}, {"id": 606, "type": "identifier", "text": "caml_copy_string_array", "parent": 605, "children": [], "start_point": {"row": 132, "column": 18}, "end_point": {"row": 132, "column": 40}}, {"id": 607, "type": "argument_list", "text": "((const char **)entry->h_aliases)", "parent": 605, "children": [608], "start_point": {"row": 132, "column": 40}, "end_point": {"row": 132, "column": 73}}, {"id": 608, "type": "cast_expression", "text": "(const char **)entry->h_aliases", "parent": 607, "children": [609, 615], "start_point": {"row": 132, "column": 41}, "end_point": {"row": 132, "column": 72}}, {"id": 609, "type": "type_descriptor", "text": "const char **", "parent": 608, "children": [610, 611], "start_point": {"row": 132, "column": 42}, "end_point": {"row": 132, "column": 55}}, {"id": 610, "type": "primitive_type", "text": "char", "parent": 609, "children": [], "start_point": {"row": 132, "column": 48}, "end_point": {"row": 132, "column": 52}}, {"id": 611, "type": "abstract_pointer_declarator", "text": "**", "parent": 609, "children": [612, 613], "start_point": {"row": 132, "column": 53}, "end_point": {"row": 132, "column": 55}}, {"id": 612, "type": "*", "text": "*", "parent": 611, "children": [], "start_point": {"row": 132, "column": 53}, "end_point": {"row": 132, "column": 54}}, {"id": 613, "type": "abstract_pointer_declarator", "text": "*", "parent": 611, "children": [614], "start_point": {"row": 132, "column": 54}, "end_point": {"row": 132, "column": 55}}, {"id": 614, "type": "*", "text": "*", "parent": 613, "children": [], "start_point": {"row": 132, "column": 54}, "end_point": {"row": 132, "column": 55}}, {"id": 615, "type": "field_expression", "text": "entry->h_aliases", "parent": 608, "children": [616, 617], "start_point": {"row": 132, "column": 56}, "end_point": {"row": 132, "column": 72}}, {"id": 616, "type": "identifier", "text": "entry", "parent": 615, "children": [], "start_point": {"row": 132, "column": 56}, "end_point": {"row": 132, "column": 61}}, {"id": 617, "type": "field_identifier", "text": "h_aliases", "parent": 615, "children": [], "start_point": {"row": 132, "column": 63}, "end_point": {"row": 132, "column": 72}}, {"id": 618, "type": "else_clause", "text": "else\n aliases = Atom(0);", "parent": 597, "children": [], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 134, "column": 26}}, {"id": 619, "type": "assignment_expression", "text": "aliases = Atom(0)", "parent": 618, "children": [620, 621, 622], "start_point": {"row": 134, "column": 8}, "end_point": {"row": 134, "column": 25}}, {"id": 620, "type": "identifier", "text": "aliases", "parent": 619, "children": [], "start_point": {"row": 134, "column": 8}, "end_point": {"row": 134, "column": 15}}, {"id": 621, "type": "=", "text": "=", "parent": 619, "children": [], "start_point": {"row": 134, "column": 16}, "end_point": {"row": 134, "column": 17}}, {"id": 622, "type": "call_expression", "text": "Atom(0)", "parent": 619, "children": [623, 624], "start_point": {"row": 134, "column": 18}, "end_point": {"row": 134, "column": 25}}, {"id": 623, "type": "identifier", "text": "Atom", "parent": 622, "children": [], "start_point": {"row": 134, "column": 18}, "end_point": {"row": 134, "column": 22}}, {"id": 624, "type": "argument_list", "text": "(0)", "parent": 622, "children": [625], "start_point": {"row": 134, "column": 22}, "end_point": {"row": 134, "column": 25}}, {"id": 625, "type": "number_literal", "text": "0", "parent": 624, "children": [], "start_point": {"row": 134, "column": 23}, "end_point": {"row": 134, "column": 24}}, {"id": 626, "type": "if_statement", "text": "if (entry->h_length == 16)\n addr_list = caml_alloc_array(alloc_one_addr6,\n (const char **)entry->h_addr_list);\n else\n addr_list =\n caml_alloc_array(alloc_one_addr, (const char **)entry->h_addr_list);", "parent": 540, "children": [627, 651], "start_point": {"row": 135, "column": 4}, "end_point": {"row": 140, "column": 80}}, {"id": 627, "type": "parenthesized_expression", "text": "(entry->h_length == 16)", "parent": 626, "children": [628], "start_point": {"row": 135, "column": 7}, "end_point": {"row": 135, "column": 30}}, {"id": 628, "type": "binary_expression", "text": "entry->h_length == 16", "parent": 627, "children": [629, 632, 633], "start_point": {"row": 135, "column": 8}, "end_point": {"row": 135, "column": 29}}, {"id": 629, "type": "field_expression", "text": "entry->h_length", "parent": 628, "children": [630, 631], "start_point": {"row": 135, "column": 8}, "end_point": {"row": 135, "column": 23}}, {"id": 630, "type": "identifier", "text": "entry", "parent": 629, "children": [], "start_point": {"row": 135, "column": 8}, "end_point": {"row": 135, "column": 13}}, {"id": 631, "type": "field_identifier", "text": "h_length", "parent": 629, "children": [], "start_point": {"row": 135, "column": 15}, "end_point": {"row": 135, "column": 23}}, {"id": 632, "type": "==", "text": "==", "parent": 628, "children": [], "start_point": {"row": 135, "column": 24}, "end_point": {"row": 135, "column": 26}}, {"id": 633, "type": "number_literal", "text": "16", "parent": 628, "children": [], "start_point": {"row": 135, "column": 27}, "end_point": {"row": 135, "column": 29}}, {"id": 634, "type": "assignment_expression", "text": "addr_list = caml_alloc_array(alloc_one_addr6,\n (const char **)entry->h_addr_list)", "parent": 626, "children": [635, 636, 637], "start_point": {"row": 136, "column": 8}, "end_point": {"row": 137, "column": 71}}, {"id": 635, "type": "identifier", "text": "addr_list", "parent": 634, "children": [], "start_point": {"row": 136, "column": 8}, "end_point": {"row": 136, "column": 17}}, {"id": 636, "type": "=", "text": "=", "parent": 634, "children": [], "start_point": {"row": 136, "column": 18}, "end_point": {"row": 136, "column": 19}}, {"id": 637, "type": "call_expression", "text": "caml_alloc_array(alloc_one_addr6,\n (const char **)entry->h_addr_list)", "parent": 634, "children": [638, 639], "start_point": {"row": 136, "column": 20}, "end_point": {"row": 137, "column": 71}}, {"id": 638, "type": "identifier", "text": "caml_alloc_array", "parent": 637, "children": [], "start_point": {"row": 136, "column": 20}, "end_point": {"row": 136, "column": 36}}, {"id": 639, "type": "argument_list", "text": "(alloc_one_addr6,\n (const char **)entry->h_addr_list)", "parent": 637, "children": [640, 641], "start_point": {"row": 136, "column": 36}, "end_point": {"row": 137, "column": 71}}, {"id": 640, "type": "identifier", "text": "alloc_one_addr6", "parent": 639, "children": [], "start_point": {"row": 136, "column": 37}, "end_point": {"row": 136, "column": 52}}, {"id": 641, "type": "cast_expression", "text": "(const char **)entry->h_addr_list", "parent": 639, "children": [642, 648], "start_point": {"row": 137, "column": 37}, "end_point": {"row": 137, "column": 70}}, {"id": 642, "type": "type_descriptor", "text": "const char **", "parent": 641, "children": [643, 644], "start_point": {"row": 137, "column": 38}, "end_point": {"row": 137, "column": 51}}, {"id": 643, "type": "primitive_type", "text": "char", "parent": 642, "children": [], "start_point": {"row": 137, "column": 44}, "end_point": {"row": 137, "column": 48}}, {"id": 644, "type": "abstract_pointer_declarator", "text": "**", "parent": 642, "children": [645, 646], "start_point": {"row": 137, "column": 49}, "end_point": {"row": 137, "column": 51}}, {"id": 645, "type": "*", "text": "*", "parent": 644, "children": [], "start_point": {"row": 137, "column": 49}, "end_point": {"row": 137, "column": 50}}, {"id": 646, "type": "abstract_pointer_declarator", "text": "*", "parent": 644, "children": [647], "start_point": {"row": 137, "column": 50}, "end_point": {"row": 137, "column": 51}}, {"id": 647, "type": "*", "text": "*", "parent": 646, "children": [], "start_point": {"row": 137, "column": 50}, "end_point": {"row": 137, "column": 51}}, {"id": 648, "type": "field_expression", "text": "entry->h_addr_list", "parent": 641, "children": [649, 650], "start_point": {"row": 137, "column": 52}, "end_point": {"row": 137, "column": 70}}, {"id": 649, "type": "identifier", "text": "entry", "parent": 648, "children": [], "start_point": {"row": 137, "column": 52}, "end_point": {"row": 137, "column": 57}}, {"id": 650, "type": "field_identifier", "text": "h_addr_list", "parent": 648, "children": [], "start_point": {"row": 137, "column": 59}, "end_point": {"row": 137, "column": 70}}, {"id": 651, "type": "else_clause", "text": "else\n addr_list =\n caml_alloc_array(alloc_one_addr, (const char **)entry->h_addr_list);", "parent": 626, "children": [], "start_point": {"row": 138, "column": 4}, "end_point": {"row": 140, "column": 80}}, {"id": 652, "type": "assignment_expression", "text": "addr_list =\n caml_alloc_array(alloc_one_addr, (const char **)entry->h_addr_list)", "parent": 651, "children": [653, 654, 655], "start_point": {"row": 139, "column": 8}, "end_point": {"row": 140, "column": 79}}, {"id": 653, "type": "identifier", "text": "addr_list", "parent": 652, "children": [], "start_point": {"row": 139, "column": 8}, "end_point": {"row": 139, "column": 17}}, {"id": 654, "type": "=", "text": "=", "parent": 652, "children": [], "start_point": {"row": 139, "column": 18}, "end_point": {"row": 139, "column": 19}}, {"id": 655, "type": "call_expression", "text": "caml_alloc_array(alloc_one_addr, (const char **)entry->h_addr_list)", "parent": 652, "children": [656, 657], "start_point": {"row": 140, "column": 12}, "end_point": {"row": 140, "column": 79}}, {"id": 656, "type": "identifier", "text": "caml_alloc_array", "parent": 655, "children": [], "start_point": {"row": 140, "column": 12}, "end_point": {"row": 140, "column": 28}}, {"id": 657, "type": "argument_list", "text": "(alloc_one_addr, (const char **)entry->h_addr_list)", "parent": 655, "children": [658, 659], "start_point": {"row": 140, "column": 28}, "end_point": {"row": 140, "column": 79}}, {"id": 658, "type": "identifier", "text": "alloc_one_addr", "parent": 657, "children": [], "start_point": {"row": 140, "column": 29}, "end_point": {"row": 140, "column": 43}}, {"id": 659, "type": "cast_expression", "text": "(const char **)entry->h_addr_list", "parent": 657, "children": [660, 666], "start_point": {"row": 140, "column": 45}, "end_point": {"row": 140, "column": 78}}, {"id": 660, "type": "type_descriptor", "text": "const char **", "parent": 659, "children": [661, 662], "start_point": {"row": 140, "column": 46}, "end_point": {"row": 140, "column": 59}}, {"id": 661, "type": "primitive_type", "text": "char", "parent": 660, "children": [], "start_point": {"row": 140, "column": 52}, "end_point": {"row": 140, "column": 56}}, {"id": 662, "type": "abstract_pointer_declarator", "text": "**", "parent": 660, "children": [663, 664], "start_point": {"row": 140, "column": 57}, "end_point": {"row": 140, "column": 59}}, {"id": 663, "type": "*", "text": "*", "parent": 662, "children": [], "start_point": {"row": 140, "column": 57}, "end_point": {"row": 140, "column": 58}}, {"id": 664, "type": "abstract_pointer_declarator", "text": "*", "parent": 662, "children": [665], "start_point": {"row": 140, "column": 58}, "end_point": {"row": 140, "column": 59}}, {"id": 665, "type": "*", "text": "*", "parent": 664, "children": [], "start_point": {"row": 140, "column": 58}, "end_point": {"row": 140, "column": 59}}, {"id": 666, "type": "field_expression", "text": "entry->h_addr_list", "parent": 659, "children": [667, 668], "start_point": {"row": 140, "column": 60}, "end_point": {"row": 140, "column": 78}}, {"id": 667, "type": "identifier", "text": "entry", "parent": 666, "children": [], "start_point": {"row": 140, "column": 60}, "end_point": {"row": 140, "column": 65}}, {"id": 668, "type": "field_identifier", "text": "h_addr_list", "parent": 666, "children": [], "start_point": {"row": 140, "column": 67}, "end_point": {"row": 140, "column": 78}}, {"id": 669, "type": "assignment_expression", "text": "res = caml_alloc_small(4, 0)", "parent": 540, "children": [670, 671, 672], "start_point": {"row": 141, "column": 4}, "end_point": {"row": 141, "column": 32}}, {"id": 670, "type": "identifier", "text": "res", "parent": 669, "children": [], "start_point": {"row": 141, "column": 4}, "end_point": {"row": 141, "column": 7}}, {"id": 671, "type": "=", "text": "=", "parent": 669, "children": [], "start_point": {"row": 141, "column": 8}, "end_point": {"row": 141, "column": 9}}, {"id": 672, "type": "call_expression", "text": "caml_alloc_small(4, 0)", "parent": 669, "children": [673, 674], "start_point": {"row": 141, "column": 10}, "end_point": {"row": 141, "column": 32}}, {"id": 673, "type": "identifier", "text": "caml_alloc_small", "parent": 672, "children": [], "start_point": {"row": 141, "column": 10}, "end_point": {"row": 141, "column": 26}}, {"id": 674, "type": "argument_list", "text": "(4, 0)", "parent": 672, "children": [675, 676], "start_point": {"row": 141, "column": 26}, "end_point": {"row": 141, "column": 32}}, {"id": 675, "type": "number_literal", "text": "4", "parent": 674, "children": [], "start_point": {"row": 141, "column": 27}, "end_point": {"row": 141, "column": 28}}, {"id": 676, "type": "number_literal", "text": "0", "parent": 674, "children": [], "start_point": {"row": 141, "column": 30}, "end_point": {"row": 141, "column": 31}}, {"id": 677, "type": "assignment_expression", "text": "Field(res, 0) = name", "parent": 540, "children": [678, 683, 684], "start_point": {"row": 142, "column": 4}, "end_point": {"row": 142, "column": 24}}, {"id": 678, "type": "call_expression", "text": "Field(res, 0)", "parent": 677, "children": [679, 680], "start_point": {"row": 142, "column": 4}, "end_point": {"row": 142, "column": 17}}, {"id": 679, "type": "identifier", "text": "Field", "parent": 678, "children": [], "start_point": {"row": 142, "column": 4}, "end_point": {"row": 142, "column": 9}}, {"id": 680, "type": "argument_list", "text": "(res, 0)", "parent": 678, "children": [681, 682], "start_point": {"row": 142, "column": 9}, "end_point": {"row": 142, "column": 17}}, {"id": 681, "type": "identifier", "text": "res", "parent": 680, "children": [], "start_point": {"row": 142, "column": 10}, "end_point": {"row": 142, "column": 13}}, {"id": 682, "type": "number_literal", "text": "0", "parent": 680, "children": [], "start_point": {"row": 142, "column": 15}, "end_point": {"row": 142, "column": 16}}, {"id": 683, "type": "=", "text": "=", "parent": 677, "children": [], "start_point": {"row": 142, "column": 18}, "end_point": {"row": 142, "column": 19}}, {"id": 684, "type": "identifier", "text": "name", "parent": 677, "children": [], "start_point": {"row": 142, "column": 20}, "end_point": {"row": 142, "column": 24}}, {"id": 685, "type": "assignment_expression", "text": "Field(res, 1) = aliases", "parent": 540, "children": [686, 691, 692], "start_point": {"row": 143, "column": 4}, "end_point": {"row": 143, "column": 27}}, {"id": 686, "type": "call_expression", "text": "Field(res, 1)", "parent": 685, "children": [687, 688], "start_point": {"row": 143, "column": 4}, "end_point": {"row": 143, "column": 17}}, {"id": 687, "type": "identifier", "text": "Field", "parent": 686, "children": [], "start_point": {"row": 143, "column": 4}, "end_point": {"row": 143, "column": 9}}, {"id": 688, "type": "argument_list", "text": "(res, 1)", "parent": 686, "children": [689, 690], "start_point": {"row": 143, "column": 9}, "end_point": {"row": 143, "column": 17}}, {"id": 689, "type": "identifier", "text": "res", "parent": 688, "children": [], "start_point": {"row": 143, "column": 10}, "end_point": {"row": 143, "column": 13}}, {"id": 690, "type": "number_literal", "text": "1", "parent": 688, "children": [], "start_point": {"row": 143, "column": 15}, "end_point": {"row": 143, "column": 16}}, {"id": 691, "type": "=", "text": "=", "parent": 685, "children": [], "start_point": {"row": 143, "column": 18}, "end_point": {"row": 143, "column": 19}}, {"id": 692, "type": "identifier", "text": "aliases", "parent": 685, "children": [], "start_point": {"row": 143, "column": 20}, "end_point": {"row": 143, "column": 27}}, {"id": 693, "type": "switch_statement", "text": "switch (entry->h_addrtype) {\n case PF_UNIX:\n Field(res, 2) = Val_int(0);\n break;\n case PF_INET:\n Field(res, 2) = Val_int(1);\n break;\n default: /*PF_INET6 */\n Field(res, 2) = Val_int(2);\n break;\n }", "parent": 540, "children": [694, 695], "start_point": {"row": 144, "column": 4}, "end_point": {"row": 154, "column": 5}}, {"id": 694, "type": "switch", "text": "switch", "parent": 693, "children": [], "start_point": {"row": 144, "column": 4}, "end_point": {"row": 144, "column": 10}}, {"id": 695, "type": "parenthesized_expression", "text": "(entry->h_addrtype)", "parent": 693, "children": [696], "start_point": {"row": 144, "column": 11}, "end_point": {"row": 144, "column": 30}}, {"id": 696, "type": "field_expression", "text": "entry->h_addrtype", "parent": 695, "children": [697, 698], "start_point": {"row": 144, "column": 12}, "end_point": {"row": 144, "column": 29}}, {"id": 697, "type": "identifier", "text": "entry", "parent": 696, "children": [], "start_point": {"row": 144, "column": 12}, "end_point": {"row": 144, "column": 17}}, {"id": 698, "type": "field_identifier", "text": "h_addrtype", "parent": 696, "children": [], "start_point": {"row": 144, "column": 19}, "end_point": {"row": 144, "column": 29}}, {"id": 699, "type": "case_statement", "text": "case PF_UNIX:\n Field(res, 2) = Val_int(0);\n break;", "parent": 693, "children": [700, 701, 713], "start_point": {"row": 145, "column": 8}, "end_point": {"row": 147, "column": 18}}, {"id": 700, "type": "case", "text": "case", "parent": 699, "children": [], "start_point": {"row": 145, "column": 8}, "end_point": {"row": 145, "column": 12}}, {"id": 701, "type": "identifier", "text": "PF_UNIX", "parent": 699, "children": [], "start_point": {"row": 145, "column": 13}, "end_point": {"row": 145, "column": 20}}, {"id": 702, "type": "assignment_expression", "text": "Field(res, 2) = Val_int(0)", "parent": 699, "children": [703, 708, 709], "start_point": {"row": 146, "column": 12}, "end_point": {"row": 146, "column": 38}}, {"id": 703, "type": "call_expression", "text": "Field(res, 2)", "parent": 702, "children": [704, 705], "start_point": {"row": 146, "column": 12}, "end_point": {"row": 146, "column": 25}}, {"id": 704, "type": "identifier", "text": "Field", "parent": 703, "children": [], "start_point": {"row": 146, "column": 12}, "end_point": {"row": 146, "column": 17}}, {"id": 705, "type": "argument_list", "text": "(res, 2)", "parent": 703, "children": [706, 707], "start_point": {"row": 146, "column": 17}, "end_point": {"row": 146, "column": 25}}, {"id": 706, "type": "identifier", "text": "res", "parent": 705, "children": [], "start_point": {"row": 146, "column": 18}, "end_point": {"row": 146, "column": 21}}, {"id": 707, "type": "number_literal", "text": "2", "parent": 705, "children": [], "start_point": {"row": 146, "column": 23}, "end_point": {"row": 146, "column": 24}}, {"id": 708, "type": "=", "text": "=", "parent": 702, "children": [], "start_point": {"row": 146, "column": 26}, "end_point": {"row": 146, "column": 27}}, {"id": 709, "type": "call_expression", "text": "Val_int(0)", "parent": 702, "children": [710, 711], "start_point": {"row": 146, "column": 28}, "end_point": {"row": 146, "column": 38}}, {"id": 710, "type": "identifier", "text": "Val_int", "parent": 709, "children": [], "start_point": {"row": 146, "column": 28}, "end_point": {"row": 146, "column": 35}}, {"id": 711, "type": "argument_list", "text": "(0)", "parent": 709, "children": [712], "start_point": {"row": 146, "column": 35}, "end_point": {"row": 146, "column": 38}}, {"id": 712, "type": "number_literal", "text": "0", "parent": 711, "children": [], "start_point": {"row": 146, "column": 36}, "end_point": {"row": 146, "column": 37}}, {"id": 713, "type": "break_statement", "text": "break;", "parent": 699, "children": [714], "start_point": {"row": 147, "column": 12}, "end_point": {"row": 147, "column": 18}}, {"id": 714, "type": "break", "text": "break", "parent": 713, "children": [], "start_point": {"row": 147, "column": 12}, "end_point": {"row": 147, "column": 17}}, {"id": 715, "type": "case_statement", "text": "case PF_INET:\n Field(res, 2) = Val_int(1);\n break;", "parent": 693, "children": [716, 717, 729], "start_point": {"row": 148, "column": 8}, "end_point": {"row": 150, "column": 18}}, {"id": 716, "type": "case", "text": "case", "parent": 715, "children": [], "start_point": {"row": 148, "column": 8}, "end_point": {"row": 148, "column": 12}}, {"id": 717, "type": "identifier", "text": "PF_INET", "parent": 715, "children": [], "start_point": {"row": 148, "column": 13}, "end_point": {"row": 148, "column": 20}}, {"id": 718, "type": "assignment_expression", "text": "Field(res, 2) = Val_int(1)", "parent": 715, "children": [719, 724, 725], "start_point": {"row": 149, "column": 12}, "end_point": {"row": 149, "column": 38}}, {"id": 719, "type": "call_expression", "text": "Field(res, 2)", "parent": 718, "children": [720, 721], "start_point": {"row": 149, "column": 12}, "end_point": {"row": 149, "column": 25}}, {"id": 720, "type": "identifier", "text": "Field", "parent": 719, "children": [], "start_point": {"row": 149, "column": 12}, "end_point": {"row": 149, "column": 17}}, {"id": 721, "type": "argument_list", "text": "(res, 2)", "parent": 719, "children": [722, 723], "start_point": {"row": 149, "column": 17}, "end_point": {"row": 149, "column": 25}}, {"id": 722, "type": "identifier", "text": "res", "parent": 721, "children": [], "start_point": {"row": 149, "column": 18}, "end_point": {"row": 149, "column": 21}}, {"id": 723, "type": "number_literal", "text": "2", "parent": 721, "children": [], "start_point": {"row": 149, "column": 23}, "end_point": {"row": 149, "column": 24}}, {"id": 724, "type": "=", "text": "=", "parent": 718, "children": [], "start_point": {"row": 149, "column": 26}, "end_point": {"row": 149, "column": 27}}, {"id": 725, "type": "call_expression", "text": "Val_int(1)", "parent": 718, "children": [726, 727], "start_point": {"row": 149, "column": 28}, "end_point": {"row": 149, "column": 38}}, {"id": 726, "type": "identifier", "text": "Val_int", "parent": 725, "children": [], "start_point": {"row": 149, "column": 28}, "end_point": {"row": 149, "column": 35}}, {"id": 727, "type": "argument_list", "text": "(1)", "parent": 725, "children": [728], "start_point": {"row": 149, "column": 35}, "end_point": {"row": 149, "column": 38}}, {"id": 728, "type": "number_literal", "text": "1", "parent": 727, "children": [], "start_point": {"row": 149, "column": 36}, "end_point": {"row": 149, "column": 37}}, {"id": 729, "type": "break_statement", "text": "break;", "parent": 715, "children": [730], "start_point": {"row": 150, "column": 12}, "end_point": {"row": 150, "column": 18}}, {"id": 730, "type": "break", "text": "break", "parent": 729, "children": [], "start_point": {"row": 150, "column": 12}, "end_point": {"row": 150, "column": 17}}, {"id": 731, "type": "case_statement", "text": "default: /*PF_INET6 */\n Field(res, 2) = Val_int(2);\n break;", "parent": 693, "children": [732, 744], "start_point": {"row": 151, "column": 8}, "end_point": {"row": 153, "column": 18}}, {"id": 732, "type": "default", "text": "default", "parent": 731, "children": [], "start_point": {"row": 151, "column": 8}, "end_point": {"row": 151, "column": 15}}, {"id": 733, "type": "assignment_expression", "text": "Field(res, 2) = Val_int(2)", "parent": 731, "children": [734, 739, 740], "start_point": {"row": 152, "column": 12}, "end_point": {"row": 152, "column": 38}}, {"id": 734, "type": "call_expression", "text": "Field(res, 2)", "parent": 733, "children": [735, 736], "start_point": {"row": 152, "column": 12}, "end_point": {"row": 152, "column": 25}}, {"id": 735, "type": "identifier", "text": "Field", "parent": 734, "children": [], "start_point": {"row": 152, "column": 12}, "end_point": {"row": 152, "column": 17}}, {"id": 736, "type": "argument_list", "text": "(res, 2)", "parent": 734, "children": [737, 738], "start_point": {"row": 152, "column": 17}, "end_point": {"row": 152, "column": 25}}, {"id": 737, "type": "identifier", "text": "res", "parent": 736, "children": [], "start_point": {"row": 152, "column": 18}, "end_point": {"row": 152, "column": 21}}, {"id": 738, "type": "number_literal", "text": "2", "parent": 736, "children": [], "start_point": {"row": 152, "column": 23}, "end_point": {"row": 152, "column": 24}}, {"id": 739, "type": "=", "text": "=", "parent": 733, "children": [], "start_point": {"row": 152, "column": 26}, "end_point": {"row": 152, "column": 27}}, {"id": 740, "type": "call_expression", "text": "Val_int(2)", "parent": 733, "children": [741, 742], "start_point": {"row": 152, "column": 28}, "end_point": {"row": 152, "column": 38}}, {"id": 741, "type": "identifier", "text": "Val_int", "parent": 740, "children": [], "start_point": {"row": 152, "column": 28}, "end_point": {"row": 152, "column": 35}}, {"id": 742, "type": "argument_list", "text": "(2)", "parent": 740, "children": [743], "start_point": {"row": 152, "column": 35}, "end_point": {"row": 152, "column": 38}}, {"id": 743, "type": "number_literal", "text": "2", "parent": 742, "children": [], "start_point": {"row": 152, "column": 36}, "end_point": {"row": 152, "column": 37}}, {"id": 744, "type": "break_statement", "text": "break;", "parent": 731, "children": [745], "start_point": {"row": 153, "column": 12}, "end_point": {"row": 153, "column": 18}}, {"id": 745, "type": "break", "text": "break", "parent": 744, "children": [], "start_point": {"row": 153, "column": 12}, "end_point": {"row": 153, "column": 17}}, {"id": 746, "type": "assignment_expression", "text": "Field(res, 3) = addr_list", "parent": 540, "children": [747, 752, 753], "start_point": {"row": 155, "column": 4}, "end_point": {"row": 155, "column": 29}}, {"id": 747, "type": "call_expression", "text": "Field(res, 3)", "parent": 746, "children": [748, 749], "start_point": {"row": 155, "column": 4}, "end_point": {"row": 155, "column": 17}}, {"id": 748, "type": "identifier", "text": "Field", "parent": 747, "children": [], "start_point": {"row": 155, "column": 4}, "end_point": {"row": 155, "column": 9}}, {"id": 749, "type": "argument_list", "text": "(res, 3)", "parent": 747, "children": [750, 751], "start_point": {"row": 155, "column": 9}, "end_point": {"row": 155, "column": 17}}, {"id": 750, "type": "identifier", "text": "res", "parent": 749, "children": [], "start_point": {"row": 155, "column": 10}, "end_point": {"row": 155, "column": 13}}, {"id": 751, "type": "number_literal", "text": "3", "parent": 749, "children": [], "start_point": {"row": 155, "column": 15}, "end_point": {"row": 155, "column": 16}}, {"id": 752, "type": "=", "text": "=", "parent": 746, "children": [], "start_point": {"row": 155, "column": 18}, "end_point": {"row": 155, "column": 19}}, {"id": 753, "type": "identifier", "text": "addr_list", "parent": 746, "children": [], "start_point": {"row": 155, "column": 20}, "end_point": {"row": 155, "column": 29}}, {"id": 754, "type": "call_expression", "text": "End_roots()", "parent": 540, "children": [755, 756], "start_point": {"row": 156, "column": 4}, "end_point": {"row": 156, "column": 15}}, {"id": 755, "type": "identifier", "text": "End_roots", "parent": 754, "children": [], "start_point": {"row": 156, "column": 4}, "end_point": {"row": 156, "column": 13}}, {"id": 756, "type": "argument_list", "text": "()", "parent": 754, "children": [], "start_point": {"row": 156, "column": 13}, "end_point": {"row": 156, "column": 15}}, {"id": 757, "type": "return_statement", "text": "return res;", "parent": 540, "children": [758], "start_point": {"row": 157, "column": 4}, "end_point": {"row": 157, "column": 15}}, {"id": 758, "type": "identifier", "text": "res", "parent": 757, "children": [], "start_point": {"row": 157, "column": 11}, "end_point": {"row": 157, "column": 14}}, {"id": 759, "type": "preproc_if", "text": "#if defined(NON_R_GETHOSTBYADDR) || defined(NON_R_GETHOSTBYNAME)\nstruct hostent *hostent_dup(struct hostent *orig)\n{\n if (orig == NULL) {\n return NULL;\n }\n struct hostent *h = malloc(sizeof *h);\n if (h == NULL) {\n return NULL;\n }\n h->h_name = s_strdup(orig->h_name);\n if (!h->h_name) {\n goto nomem1;\n }\n if (!orig->h_aliases) {\n h->h_aliases = NULL;\n } else {\n h->h_aliases = c_copy_string_array(orig->h_aliases);\n if (!h->h_aliases) {\n goto nomem2;\n }\n }\n if (!orig->h_addr_list) {\n h->h_addr_list = NULL;\n } else {\n h->h_addr_list = c_copy_addr_array(orig->h_addr_list, orig->h_length);\n if (!h->h_addr_list) {\n goto nomem3;\n }\n }\n h->h_addrtype = orig->h_addrtype;\n h->h_length = orig->h_length;\n return h;\nnomem3:\n c_free_string_array(h->h_aliases);\nnomem2:\n free((char *)h->h_name);\nnomem1:\n free(h);\n return NULL;\n}\n\nvoid hostent_free(struct hostent *h)\n{\n if (h) {\n c_free_string_array(h->h_addr_list);\n c_free_string_array(h->h_aliases);\n free((char *)h->h_name);\n free(h);\n }\n}\n#endif", "parent": 3, "children": [760, 761, 769, 770, 966, 1008], "start_point": {"row": 160, "column": 0}, "end_point": {"row": 211, "column": 6}}, {"id": 760, "type": "#if", "text": "#if", "parent": 759, "children": [], "start_point": {"row": 160, "column": 0}, "end_point": {"row": 160, "column": 3}}, {"id": 761, "type": "binary_expression", "text": "defined(NON_R_GETHOSTBYADDR) || defined(NON_R_GETHOSTBYNAME)", "parent": 759, "children": [762, 765, 766], "start_point": {"row": 160, "column": 4}, "end_point": {"row": 160, "column": 64}}, {"id": 762, "type": "preproc_defined", "text": "defined(NON_R_GETHOSTBYADDR)", "parent": 761, "children": [763, 764], "start_point": {"row": 160, "column": 4}, "end_point": {"row": 160, "column": 32}}, {"id": 763, "type": "defined", "text": "defined", "parent": 762, "children": [], "start_point": {"row": 160, "column": 4}, "end_point": {"row": 160, "column": 11}}, {"id": 764, "type": "identifier", "text": "NON_R_GETHOSTBYADDR", "parent": 762, "children": [], "start_point": {"row": 160, "column": 12}, "end_point": {"row": 160, "column": 31}}, {"id": 765, "type": "||", "text": "||", "parent": 761, "children": [], "start_point": {"row": 160, "column": 33}, "end_point": {"row": 160, "column": 35}}, {"id": 766, "type": "preproc_defined", "text": "defined(NON_R_GETHOSTBYNAME)", "parent": 761, "children": [767, 768], "start_point": {"row": 160, "column": 36}, "end_point": {"row": 160, "column": 64}}, {"id": 767, "type": "defined", "text": "defined", "parent": 766, "children": [], "start_point": {"row": 160, "column": 36}, "end_point": {"row": 160, "column": 43}}, {"id": 768, "type": "identifier", "text": "NON_R_GETHOSTBYNAME", "parent": 766, "children": [], "start_point": {"row": 160, "column": 44}, "end_point": {"row": 160, "column": 63}}, {"id": 769, "type": "\n", "text": "\n", "parent": 759, "children": [], "start_point": {"row": 160, "column": 64}, "end_point": {"row": 161, "column": 0}}, {"id": 770, "type": "function_definition", "text": "struct hostent *hostent_dup(struct hostent *orig)\n{\n if (orig == NULL) {\n return NULL;\n }\n struct hostent *h = malloc(sizeof *h);\n if (h == NULL) {\n return NULL;\n }\n h->h_name = s_strdup(orig->h_name);\n if (!h->h_name) {\n goto nomem1;\n }\n if (!orig->h_aliases) {\n h->h_aliases = NULL;\n } else {\n h->h_aliases = c_copy_string_array(orig->h_aliases);\n if (!h->h_aliases) {\n goto nomem2;\n }\n }\n if (!orig->h_addr_list) {\n h->h_addr_list = NULL;\n } else {\n h->h_addr_list = c_copy_addr_array(orig->h_addr_list, orig->h_length);\n if (!h->h_addr_list) {\n goto nomem3;\n }\n }\n h->h_addrtype = orig->h_addrtype;\n h->h_length = orig->h_length;\n return h;\nnomem3:\n c_free_string_array(h->h_aliases);\nnomem2:\n free((char *)h->h_name);\nnomem1:\n free(h);\n return NULL;\n}", "parent": 759, "children": [771, 774], "start_point": {"row": 161, "column": 0}, "end_point": {"row": 200, "column": 1}}, {"id": 771, "type": "struct_specifier", "text": "struct hostent", "parent": 770, "children": [772, 773], "start_point": {"row": 161, "column": 0}, "end_point": {"row": 161, "column": 14}}, {"id": 772, "type": "struct", "text": "struct", "parent": 771, "children": [], "start_point": {"row": 161, "column": 0}, "end_point": {"row": 161, "column": 6}}, {"id": 773, "type": "type_identifier", "text": "hostent", "parent": 771, "children": [], "start_point": {"row": 161, "column": 7}, "end_point": {"row": 161, "column": 14}}, {"id": 774, "type": "pointer_declarator", "text": "*hostent_dup(struct hostent *orig)", "parent": 770, "children": [775, 776], "start_point": {"row": 161, "column": 15}, "end_point": {"row": 161, "column": 49}}, {"id": 775, "type": "*", "text": "*", "parent": 774, "children": [], "start_point": {"row": 161, "column": 15}, "end_point": {"row": 161, "column": 16}}, {"id": 776, "type": "function_declarator", "text": "hostent_dup(struct hostent *orig)", "parent": 774, "children": [777, 778], "start_point": {"row": 161, "column": 16}, "end_point": {"row": 161, "column": 49}}, {"id": 777, "type": "identifier", "text": "hostent_dup", "parent": 776, "children": [], "start_point": {"row": 161, "column": 16}, "end_point": {"row": 161, "column": 27}}, {"id": 778, "type": "parameter_list", "text": "(struct hostent *orig)", "parent": 776, "children": [779], "start_point": {"row": 161, "column": 27}, "end_point": {"row": 161, "column": 49}}, {"id": 779, "type": "parameter_declaration", "text": "struct hostent *orig", "parent": 778, "children": [780, 783], "start_point": {"row": 161, "column": 28}, "end_point": {"row": 161, "column": 48}}, {"id": 780, "type": "struct_specifier", "text": "struct hostent", "parent": 779, "children": [781, 782], "start_point": {"row": 161, "column": 28}, "end_point": {"row": 161, "column": 42}}, {"id": 781, "type": "struct", "text": "struct", "parent": 780, "children": [], "start_point": {"row": 161, "column": 28}, "end_point": {"row": 161, "column": 34}}, {"id": 782, "type": "type_identifier", "text": "hostent", "parent": 780, "children": [], "start_point": {"row": 161, "column": 35}, "end_point": {"row": 161, "column": 42}}, {"id": 783, "type": "pointer_declarator", "text": "*orig", "parent": 779, "children": [784, 785], "start_point": {"row": 161, "column": 43}, "end_point": {"row": 161, "column": 48}}, {"id": 784, "type": "*", "text": "*", "parent": 783, "children": [], "start_point": {"row": 161, "column": 43}, "end_point": {"row": 161, "column": 44}}, {"id": 785, "type": "identifier", "text": "orig", "parent": 783, "children": [], "start_point": {"row": 161, "column": 44}, "end_point": {"row": 161, "column": 48}}, {"id": 786, "type": "if_statement", "text": "if (orig == NULL) {\n return NULL;\n }", "parent": 770, "children": [787], "start_point": {"row": 163, "column": 4}, "end_point": {"row": 165, "column": 5}}, {"id": 787, "type": "parenthesized_expression", "text": "(orig == NULL)", "parent": 786, "children": [788], "start_point": {"row": 163, "column": 7}, "end_point": {"row": 163, "column": 21}}, {"id": 788, "type": "binary_expression", "text": "orig == NULL", "parent": 787, "children": [789, 790, 791], "start_point": {"row": 163, "column": 8}, "end_point": {"row": 163, "column": 20}}, {"id": 789, "type": "identifier", "text": "orig", "parent": 788, "children": [], "start_point": {"row": 163, "column": 8}, "end_point": {"row": 163, "column": 12}}, {"id": 790, "type": "==", "text": "==", "parent": 788, "children": [], "start_point": {"row": 163, "column": 13}, "end_point": {"row": 163, "column": 15}}, {"id": 791, "type": "null", "text": "NULL", "parent": 788, "children": [792], "start_point": {"row": 163, "column": 16}, "end_point": {"row": 163, "column": 20}}, {"id": 792, "type": "NULL", "text": "NULL", "parent": 791, "children": [], "start_point": {"row": 163, "column": 16}, "end_point": {"row": 163, "column": 20}}, {"id": 793, "type": "return_statement", "text": "return NULL;", "parent": 786, "children": [794], "start_point": {"row": 164, "column": 8}, "end_point": {"row": 164, "column": 20}}, {"id": 794, "type": "null", "text": "NULL", "parent": 793, "children": [795], "start_point": {"row": 164, "column": 15}, "end_point": {"row": 164, "column": 19}}, {"id": 795, "type": "NULL", "text": "NULL", "parent": 794, "children": [], "start_point": {"row": 164, "column": 15}, "end_point": {"row": 164, "column": 19}}, {"id": 796, "type": "declaration", "text": "struct hostent *h = malloc(sizeof *h);", "parent": 770, "children": [797, 800], "start_point": {"row": 166, "column": 4}, "end_point": {"row": 166, "column": 42}}, {"id": 797, "type": "struct_specifier", "text": "struct hostent", "parent": 796, "children": [798, 799], "start_point": {"row": 166, "column": 4}, "end_point": {"row": 166, "column": 18}}, {"id": 798, "type": "struct", "text": "struct", "parent": 797, "children": [], "start_point": {"row": 166, "column": 4}, "end_point": {"row": 166, "column": 10}}, {"id": 799, "type": "type_identifier", "text": "hostent", "parent": 797, "children": [], "start_point": {"row": 166, "column": 11}, "end_point": {"row": 166, "column": 18}}, {"id": 800, "type": "init_declarator", "text": "*h = malloc(sizeof *h)", "parent": 796, "children": [801, 804, 805], "start_point": {"row": 166, "column": 19}, "end_point": {"row": 166, "column": 41}}, {"id": 801, "type": "pointer_declarator", "text": "*h", "parent": 800, "children": [802, 803], "start_point": {"row": 166, "column": 19}, "end_point": {"row": 166, "column": 21}}, {"id": 802, "type": "*", "text": "*", "parent": 801, "children": [], "start_point": {"row": 166, "column": 19}, "end_point": {"row": 166, "column": 20}}, {"id": 803, "type": "identifier", "text": "h", "parent": 801, "children": [], "start_point": {"row": 166, "column": 20}, "end_point": {"row": 166, "column": 21}}, {"id": 804, "type": "=", "text": "=", "parent": 800, "children": [], "start_point": {"row": 166, "column": 22}, "end_point": {"row": 166, "column": 23}}, {"id": 805, "type": "call_expression", "text": "malloc(sizeof *h)", "parent": 800, "children": [806, 807], "start_point": {"row": 166, "column": 24}, "end_point": {"row": 166, "column": 41}}, {"id": 806, "type": "identifier", "text": "malloc", "parent": 805, "children": [], "start_point": {"row": 166, "column": 24}, "end_point": {"row": 166, "column": 30}}, {"id": 807, "type": "argument_list", "text": "(sizeof *h)", "parent": 805, "children": [808], "start_point": {"row": 166, "column": 30}, "end_point": {"row": 166, "column": 41}}, {"id": 808, "type": "sizeof_expression", "text": "sizeof *h", "parent": 807, "children": [809], "start_point": {"row": 166, "column": 31}, "end_point": {"row": 166, "column": 40}}, {"id": 809, "type": "pointer_expression", "text": "*h", "parent": 808, "children": [810, 811], "start_point": {"row": 166, "column": 38}, "end_point": {"row": 166, "column": 40}}, {"id": 810, "type": "*", "text": "*", "parent": 809, "children": [], "start_point": {"row": 166, "column": 38}, "end_point": {"row": 166, "column": 39}}, {"id": 811, "type": "identifier", "text": "h", "parent": 809, "children": [], "start_point": {"row": 166, "column": 39}, "end_point": {"row": 166, "column": 40}}, {"id": 812, "type": "if_statement", "text": "if (h == NULL) {\n return NULL;\n }", "parent": 770, "children": [813], "start_point": {"row": 167, "column": 4}, "end_point": {"row": 169, "column": 5}}, {"id": 813, "type": "parenthesized_expression", "text": "(h == NULL)", "parent": 812, "children": [814], "start_point": {"row": 167, "column": 7}, "end_point": {"row": 167, "column": 18}}, {"id": 814, "type": "binary_expression", "text": "h == NULL", "parent": 813, "children": [815, 816, 817], "start_point": {"row": 167, "column": 8}, "end_point": {"row": 167, "column": 17}}, {"id": 815, "type": "identifier", "text": "h", "parent": 814, "children": [], "start_point": {"row": 167, "column": 8}, "end_point": {"row": 167, "column": 9}}, {"id": 816, "type": "==", "text": "==", "parent": 814, "children": [], "start_point": {"row": 167, "column": 10}, "end_point": {"row": 167, "column": 12}}, {"id": 817, "type": "null", "text": "NULL", "parent": 814, "children": [818], "start_point": {"row": 167, "column": 13}, "end_point": {"row": 167, "column": 17}}, {"id": 818, "type": "NULL", "text": "NULL", "parent": 817, "children": [], "start_point": {"row": 167, "column": 13}, "end_point": {"row": 167, "column": 17}}, {"id": 819, "type": "return_statement", "text": "return NULL;", "parent": 812, "children": [820], "start_point": {"row": 168, "column": 8}, "end_point": {"row": 168, "column": 20}}, {"id": 820, "type": "null", "text": "NULL", "parent": 819, "children": [821], "start_point": {"row": 168, "column": 15}, "end_point": {"row": 168, "column": 19}}, {"id": 821, "type": "NULL", "text": "NULL", "parent": 820, "children": [], "start_point": {"row": 168, "column": 15}, "end_point": {"row": 168, "column": 19}}, {"id": 822, "type": "assignment_expression", "text": "h->h_name = s_strdup(orig->h_name)", "parent": 770, "children": [823, 826, 827], "start_point": {"row": 170, "column": 4}, "end_point": {"row": 170, "column": 38}}, {"id": 823, "type": "field_expression", "text": "h->h_name", "parent": 822, "children": [824, 825], "start_point": {"row": 170, "column": 4}, "end_point": {"row": 170, "column": 13}}, {"id": 824, "type": "identifier", "text": "h", "parent": 823, "children": [], "start_point": {"row": 170, "column": 4}, "end_point": {"row": 170, "column": 5}}, {"id": 825, "type": "field_identifier", "text": "h_name", "parent": 823, "children": [], "start_point": {"row": 170, "column": 7}, "end_point": {"row": 170, "column": 13}}, {"id": 826, "type": "=", "text": "=", "parent": 822, "children": [], "start_point": {"row": 170, "column": 14}, "end_point": {"row": 170, "column": 15}}, {"id": 827, "type": "call_expression", "text": "s_strdup(orig->h_name)", "parent": 822, "children": [828, 829], "start_point": {"row": 170, "column": 16}, "end_point": {"row": 170, "column": 38}}, {"id": 828, "type": "identifier", "text": "s_strdup", "parent": 827, "children": [], "start_point": {"row": 170, "column": 16}, "end_point": {"row": 170, "column": 24}}, {"id": 829, "type": "argument_list", "text": "(orig->h_name)", "parent": 827, "children": [830], "start_point": {"row": 170, "column": 24}, "end_point": {"row": 170, "column": 38}}, {"id": 830, "type": "field_expression", "text": "orig->h_name", "parent": 829, "children": [831, 832], "start_point": {"row": 170, "column": 25}, "end_point": {"row": 170, "column": 37}}, {"id": 831, "type": "identifier", "text": "orig", "parent": 830, "children": [], "start_point": {"row": 170, "column": 25}, "end_point": {"row": 170, "column": 29}}, {"id": 832, "type": "field_identifier", "text": "h_name", "parent": 830, "children": [], "start_point": {"row": 170, "column": 31}, "end_point": {"row": 170, "column": 37}}, {"id": 833, "type": "if_statement", "text": "if (!h->h_name) {\n goto nomem1;\n }", "parent": 770, "children": [834], "start_point": {"row": 171, "column": 4}, "end_point": {"row": 173, "column": 5}}, {"id": 834, "type": "parenthesized_expression", "text": "(!h->h_name)", "parent": 833, "children": [835], "start_point": {"row": 171, "column": 7}, "end_point": {"row": 171, "column": 19}}, {"id": 835, "type": "unary_expression", "text": "!h->h_name", "parent": 834, "children": [836, 837], "start_point": {"row": 171, "column": 8}, "end_point": {"row": 171, "column": 18}}, {"id": 836, "type": "!", "text": "!", "parent": 835, "children": [], "start_point": {"row": 171, "column": 8}, "end_point": {"row": 171, "column": 9}}, {"id": 837, "type": "field_expression", "text": "h->h_name", "parent": 835, "children": [838, 839], "start_point": {"row": 171, "column": 9}, "end_point": {"row": 171, "column": 18}}, {"id": 838, "type": "identifier", "text": "h", "parent": 837, "children": [], "start_point": {"row": 171, "column": 9}, "end_point": {"row": 171, "column": 10}}, {"id": 839, "type": "field_identifier", "text": "h_name", "parent": 837, "children": [], "start_point": {"row": 171, "column": 12}, "end_point": {"row": 171, "column": 18}}, {"id": 840, "type": "goto_statement", "text": "goto nomem1;", "parent": 833, "children": [841, 842], "start_point": {"row": 172, "column": 8}, "end_point": {"row": 172, "column": 20}}, {"id": 841, "type": "goto", "text": "goto", "parent": 840, "children": [], "start_point": {"row": 172, "column": 8}, "end_point": {"row": 172, "column": 12}}, {"id": 842, "type": "statement_identifier", "text": "nomem1", "parent": 840, "children": [], "start_point": {"row": 172, "column": 13}, "end_point": {"row": 172, "column": 19}}, {"id": 843, "type": "if_statement", "text": "if (!orig->h_aliases) {\n h->h_aliases = NULL;\n } else {\n h->h_aliases = c_copy_string_array(orig->h_aliases);\n if (!h->h_aliases) {\n goto nomem2;\n }\n }", "parent": 770, "children": [844, 857], "start_point": {"row": 174, "column": 4}, "end_point": {"row": 181, "column": 5}}, {"id": 844, "type": "parenthesized_expression", "text": "(!orig->h_aliases)", "parent": 843, "children": [845], "start_point": {"row": 174, "column": 7}, "end_point": {"row": 174, "column": 25}}, {"id": 845, "type": "unary_expression", "text": "!orig->h_aliases", "parent": 844, "children": [846, 847], "start_point": {"row": 174, "column": 8}, "end_point": {"row": 174, "column": 24}}, {"id": 846, "type": "!", "text": "!", "parent": 845, "children": [], "start_point": {"row": 174, "column": 8}, "end_point": {"row": 174, "column": 9}}, {"id": 847, "type": "field_expression", "text": "orig->h_aliases", "parent": 845, "children": [848, 849], "start_point": {"row": 174, "column": 9}, "end_point": {"row": 174, "column": 24}}, {"id": 848, "type": "identifier", "text": "orig", "parent": 847, "children": [], "start_point": {"row": 174, "column": 9}, "end_point": {"row": 174, "column": 13}}, {"id": 849, "type": "field_identifier", "text": "h_aliases", "parent": 847, "children": [], "start_point": {"row": 174, "column": 15}, "end_point": {"row": 174, "column": 24}}, {"id": 850, "type": "assignment_expression", "text": "h->h_aliases = NULL", "parent": 843, "children": [851, 854, 855], "start_point": {"row": 175, "column": 8}, "end_point": {"row": 175, "column": 27}}, {"id": 851, "type": "field_expression", "text": "h->h_aliases", "parent": 850, "children": [852, 853], "start_point": {"row": 175, "column": 8}, "end_point": {"row": 175, "column": 20}}, {"id": 852, "type": "identifier", "text": "h", "parent": 851, "children": [], "start_point": {"row": 175, "column": 8}, "end_point": {"row": 175, "column": 9}}, {"id": 853, "type": "field_identifier", "text": "h_aliases", "parent": 851, "children": [], "start_point": {"row": 175, "column": 11}, "end_point": {"row": 175, "column": 20}}, {"id": 854, "type": "=", "text": "=", "parent": 850, "children": [], "start_point": {"row": 175, "column": 21}, "end_point": {"row": 175, "column": 22}}, {"id": 855, "type": "null", "text": "NULL", "parent": 850, "children": [856], "start_point": {"row": 175, "column": 23}, "end_point": {"row": 175, "column": 27}}, {"id": 856, "type": "NULL", "text": "NULL", "parent": 855, "children": [], "start_point": {"row": 175, "column": 23}, "end_point": {"row": 175, "column": 27}}, {"id": 857, "type": "else_clause", "text": "else {\n h->h_aliases = c_copy_string_array(orig->h_aliases);\n if (!h->h_aliases) {\n goto nomem2;\n }\n }", "parent": 843, "children": [], "start_point": {"row": 176, "column": 6}, "end_point": {"row": 181, "column": 5}}, {"id": 858, "type": "assignment_expression", "text": "h->h_aliases = c_copy_string_array(orig->h_aliases)", "parent": 857, "children": [859, 862, 863], "start_point": {"row": 177, "column": 8}, "end_point": {"row": 177, "column": 59}}, {"id": 859, "type": "field_expression", "text": "h->h_aliases", "parent": 858, "children": [860, 861], "start_point": {"row": 177, "column": 8}, "end_point": {"row": 177, "column": 20}}, {"id": 860, "type": "identifier", "text": "h", "parent": 859, "children": [], "start_point": {"row": 177, "column": 8}, "end_point": {"row": 177, "column": 9}}, {"id": 861, "type": "field_identifier", "text": "h_aliases", "parent": 859, "children": [], "start_point": {"row": 177, "column": 11}, "end_point": {"row": 177, "column": 20}}, {"id": 862, "type": "=", "text": "=", "parent": 858, "children": [], "start_point": {"row": 177, "column": 21}, "end_point": {"row": 177, "column": 22}}, {"id": 863, "type": "call_expression", "text": "c_copy_string_array(orig->h_aliases)", "parent": 858, "children": [864, 865], "start_point": {"row": 177, "column": 23}, "end_point": {"row": 177, "column": 59}}, {"id": 864, "type": "identifier", "text": "c_copy_string_array", "parent": 863, "children": [], "start_point": {"row": 177, "column": 23}, "end_point": {"row": 177, "column": 42}}, {"id": 865, "type": "argument_list", "text": "(orig->h_aliases)", "parent": 863, "children": [866], "start_point": {"row": 177, "column": 42}, "end_point": {"row": 177, "column": 59}}, {"id": 866, "type": "field_expression", "text": "orig->h_aliases", "parent": 865, "children": [867, 868], "start_point": {"row": 177, "column": 43}, "end_point": {"row": 177, "column": 58}}, {"id": 867, "type": "identifier", "text": "orig", "parent": 866, "children": [], "start_point": {"row": 177, "column": 43}, "end_point": {"row": 177, "column": 47}}, {"id": 868, "type": "field_identifier", "text": "h_aliases", "parent": 866, "children": [], "start_point": {"row": 177, "column": 49}, "end_point": {"row": 177, "column": 58}}, {"id": 869, "type": "if_statement", "text": "if (!h->h_aliases) {\n goto nomem2;\n }", "parent": 857, "children": [870], "start_point": {"row": 178, "column": 8}, "end_point": {"row": 180, "column": 9}}, {"id": 870, "type": "parenthesized_expression", "text": "(!h->h_aliases)", "parent": 869, "children": [871], "start_point": {"row": 178, "column": 11}, "end_point": {"row": 178, "column": 26}}, {"id": 871, "type": "unary_expression", "text": "!h->h_aliases", "parent": 870, "children": [872, 873], "start_point": {"row": 178, "column": 12}, "end_point": {"row": 178, "column": 25}}, {"id": 872, "type": "!", "text": "!", "parent": 871, "children": [], "start_point": {"row": 178, "column": 12}, "end_point": {"row": 178, "column": 13}}, {"id": 873, "type": "field_expression", "text": "h->h_aliases", "parent": 871, "children": [874, 875], "start_point": {"row": 178, "column": 13}, "end_point": {"row": 178, "column": 25}}, {"id": 874, "type": "identifier", "text": "h", "parent": 873, "children": [], "start_point": {"row": 178, "column": 13}, "end_point": {"row": 178, "column": 14}}, {"id": 875, "type": "field_identifier", "text": "h_aliases", "parent": 873, "children": [], "start_point": {"row": 178, "column": 16}, "end_point": {"row": 178, "column": 25}}, {"id": 876, "type": "goto_statement", "text": "goto nomem2;", "parent": 869, "children": [877, 878], "start_point": {"row": 179, "column": 12}, "end_point": {"row": 179, "column": 24}}, {"id": 877, "type": "goto", "text": "goto", "parent": 876, "children": [], "start_point": {"row": 179, "column": 12}, "end_point": {"row": 179, "column": 16}}, {"id": 878, "type": "statement_identifier", "text": "nomem2", "parent": 876, "children": [], "start_point": {"row": 179, "column": 17}, "end_point": {"row": 179, "column": 23}}, {"id": 879, "type": "if_statement", "text": "if (!orig->h_addr_list) {\n h->h_addr_list = NULL;\n } else {\n h->h_addr_list = c_copy_addr_array(orig->h_addr_list, orig->h_length);\n if (!h->h_addr_list) {\n goto nomem3;\n }\n }", "parent": 770, "children": [880, 893], "start_point": {"row": 182, "column": 4}, "end_point": {"row": 189, "column": 5}}, {"id": 880, "type": "parenthesized_expression", "text": "(!orig->h_addr_list)", "parent": 879, "children": [881], "start_point": {"row": 182, "column": 7}, "end_point": {"row": 182, "column": 27}}, {"id": 881, "type": "unary_expression", "text": "!orig->h_addr_list", "parent": 880, "children": [882, 883], "start_point": {"row": 182, "column": 8}, "end_point": {"row": 182, "column": 26}}, {"id": 882, "type": "!", "text": "!", "parent": 881, "children": [], "start_point": {"row": 182, "column": 8}, "end_point": {"row": 182, "column": 9}}, {"id": 883, "type": "field_expression", "text": "orig->h_addr_list", "parent": 881, "children": [884, 885], "start_point": {"row": 182, "column": 9}, "end_point": {"row": 182, "column": 26}}, {"id": 884, "type": "identifier", "text": "orig", "parent": 883, "children": [], "start_point": {"row": 182, "column": 9}, "end_point": {"row": 182, "column": 13}}, {"id": 885, "type": "field_identifier", "text": "h_addr_list", "parent": 883, "children": [], "start_point": {"row": 182, "column": 15}, "end_point": {"row": 182, "column": 26}}, {"id": 886, "type": "assignment_expression", "text": "h->h_addr_list = NULL", "parent": 879, "children": [887, 890, 891], "start_point": {"row": 183, "column": 8}, "end_point": {"row": 183, "column": 29}}, {"id": 887, "type": "field_expression", "text": "h->h_addr_list", "parent": 886, "children": [888, 889], "start_point": {"row": 183, "column": 8}, "end_point": {"row": 183, "column": 22}}, {"id": 888, "type": "identifier", "text": "h", "parent": 887, "children": [], "start_point": {"row": 183, "column": 8}, "end_point": {"row": 183, "column": 9}}, {"id": 889, "type": "field_identifier", "text": "h_addr_list", "parent": 887, "children": [], "start_point": {"row": 183, "column": 11}, "end_point": {"row": 183, "column": 22}}, {"id": 890, "type": "=", "text": "=", "parent": 886, "children": [], "start_point": {"row": 183, "column": 23}, "end_point": {"row": 183, "column": 24}}, {"id": 891, "type": "null", "text": "NULL", "parent": 886, "children": [892], "start_point": {"row": 183, "column": 25}, "end_point": {"row": 183, "column": 29}}, {"id": 892, "type": "NULL", "text": "NULL", "parent": 891, "children": [], "start_point": {"row": 183, "column": 25}, "end_point": {"row": 183, "column": 29}}, {"id": 893, "type": "else_clause", "text": "else {\n h->h_addr_list = c_copy_addr_array(orig->h_addr_list, orig->h_length);\n if (!h->h_addr_list) {\n goto nomem3;\n }\n }", "parent": 879, "children": [], "start_point": {"row": 184, "column": 6}, "end_point": {"row": 189, "column": 5}}, {"id": 894, "type": "assignment_expression", "text": "h->h_addr_list = c_copy_addr_array(orig->h_addr_list, orig->h_length)", "parent": 893, "children": [895, 898, 899], "start_point": {"row": 185, "column": 8}, "end_point": {"row": 185, "column": 77}}, {"id": 895, "type": "field_expression", "text": "h->h_addr_list", "parent": 894, "children": [896, 897], "start_point": {"row": 185, "column": 8}, "end_point": {"row": 185, "column": 22}}, {"id": 896, "type": "identifier", "text": "h", "parent": 895, "children": [], "start_point": {"row": 185, "column": 8}, "end_point": {"row": 185, "column": 9}}, {"id": 897, "type": "field_identifier", "text": "h_addr_list", "parent": 895, "children": [], "start_point": {"row": 185, "column": 11}, "end_point": {"row": 185, "column": 22}}, {"id": 898, "type": "=", "text": "=", "parent": 894, "children": [], "start_point": {"row": 185, "column": 23}, "end_point": {"row": 185, "column": 24}}, {"id": 899, "type": "call_expression", "text": "c_copy_addr_array(orig->h_addr_list, orig->h_length)", "parent": 894, "children": [900, 901], "start_point": {"row": 185, "column": 25}, "end_point": {"row": 185, "column": 77}}, {"id": 900, "type": "identifier", "text": "c_copy_addr_array", "parent": 899, "children": [], "start_point": {"row": 185, "column": 25}, "end_point": {"row": 185, "column": 42}}, {"id": 901, "type": "argument_list", "text": "(orig->h_addr_list, orig->h_length)", "parent": 899, "children": [902, 905], "start_point": {"row": 185, "column": 42}, "end_point": {"row": 185, "column": 77}}, {"id": 902, "type": "field_expression", "text": "orig->h_addr_list", "parent": 901, "children": [903, 904], "start_point": {"row": 185, "column": 43}, "end_point": {"row": 185, "column": 60}}, {"id": 903, "type": "identifier", "text": "orig", "parent": 902, "children": [], "start_point": {"row": 185, "column": 43}, "end_point": {"row": 185, "column": 47}}, {"id": 904, "type": "field_identifier", "text": "h_addr_list", "parent": 902, "children": [], "start_point": {"row": 185, "column": 49}, "end_point": {"row": 185, "column": 60}}, {"id": 905, "type": "field_expression", "text": "orig->h_length", "parent": 901, "children": [906, 907], "start_point": {"row": 185, "column": 62}, "end_point": {"row": 185, "column": 76}}, {"id": 906, "type": "identifier", "text": "orig", "parent": 905, "children": [], "start_point": {"row": 185, "column": 62}, "end_point": {"row": 185, "column": 66}}, {"id": 907, "type": "field_identifier", "text": "h_length", "parent": 905, "children": [], "start_point": {"row": 185, "column": 68}, "end_point": {"row": 185, "column": 76}}, {"id": 908, "type": "if_statement", "text": "if (!h->h_addr_list) {\n goto nomem3;\n }", "parent": 893, "children": [909], "start_point": {"row": 186, "column": 8}, "end_point": {"row": 188, "column": 9}}, {"id": 909, "type": "parenthesized_expression", "text": "(!h->h_addr_list)", "parent": 908, "children": [910], "start_point": {"row": 186, "column": 11}, "end_point": {"row": 186, "column": 28}}, {"id": 910, "type": "unary_expression", "text": "!h->h_addr_list", "parent": 909, "children": [911, 912], "start_point": {"row": 186, "column": 12}, "end_point": {"row": 186, "column": 27}}, {"id": 911, "type": "!", "text": "!", "parent": 910, "children": [], "start_point": {"row": 186, "column": 12}, "end_point": {"row": 186, "column": 13}}, {"id": 912, "type": "field_expression", "text": "h->h_addr_list", "parent": 910, "children": [913, 914], "start_point": {"row": 186, "column": 13}, "end_point": {"row": 186, "column": 27}}, {"id": 913, "type": "identifier", "text": "h", "parent": 912, "children": [], "start_point": {"row": 186, "column": 13}, "end_point": {"row": 186, "column": 14}}, {"id": 914, "type": "field_identifier", "text": "h_addr_list", "parent": 912, "children": [], "start_point": {"row": 186, "column": 16}, "end_point": {"row": 186, "column": 27}}, {"id": 915, "type": "goto_statement", "text": "goto nomem3;", "parent": 908, "children": [916, 917], "start_point": {"row": 187, "column": 12}, "end_point": {"row": 187, "column": 24}}, {"id": 916, "type": "goto", "text": "goto", "parent": 915, "children": [], "start_point": {"row": 187, "column": 12}, "end_point": {"row": 187, "column": 16}}, {"id": 917, "type": "statement_identifier", "text": "nomem3", "parent": 915, "children": [], "start_point": {"row": 187, "column": 17}, "end_point": {"row": 187, "column": 23}}, {"id": 918, "type": "assignment_expression", "text": "h->h_addrtype = orig->h_addrtype", "parent": 770, "children": [919, 922, 923], "start_point": {"row": 190, "column": 4}, "end_point": {"row": 190, "column": 36}}, {"id": 919, "type": "field_expression", "text": "h->h_addrtype", "parent": 918, "children": [920, 921], "start_point": {"row": 190, "column": 4}, "end_point": {"row": 190, "column": 17}}, {"id": 920, "type": "identifier", "text": "h", "parent": 919, "children": [], "start_point": {"row": 190, "column": 4}, "end_point": {"row": 190, "column": 5}}, {"id": 921, "type": "field_identifier", "text": "h_addrtype", "parent": 919, "children": [], "start_point": {"row": 190, "column": 7}, "end_point": {"row": 190, "column": 17}}, {"id": 922, "type": "=", "text": "=", "parent": 918, "children": [], "start_point": {"row": 190, "column": 18}, "end_point": {"row": 190, "column": 19}}, {"id": 923, "type": "field_expression", "text": "orig->h_addrtype", "parent": 918, "children": [924, 925], "start_point": {"row": 190, "column": 20}, "end_point": {"row": 190, "column": 36}}, {"id": 924, "type": "identifier", "text": "orig", "parent": 923, "children": [], "start_point": {"row": 190, "column": 20}, "end_point": {"row": 190, "column": 24}}, {"id": 925, "type": "field_identifier", "text": "h_addrtype", "parent": 923, "children": [], "start_point": {"row": 190, "column": 26}, "end_point": {"row": 190, "column": 36}}, {"id": 926, "type": "assignment_expression", "text": "h->h_length = orig->h_length", "parent": 770, "children": [927, 930, 931], "start_point": {"row": 191, "column": 4}, "end_point": {"row": 191, "column": 32}}, {"id": 927, "type": "field_expression", "text": "h->h_length", "parent": 926, "children": [928, 929], "start_point": {"row": 191, "column": 4}, "end_point": {"row": 191, "column": 15}}, {"id": 928, "type": "identifier", "text": "h", "parent": 927, "children": [], "start_point": {"row": 191, "column": 4}, "end_point": {"row": 191, "column": 5}}, {"id": 929, "type": "field_identifier", "text": "h_length", "parent": 927, "children": [], "start_point": {"row": 191, "column": 7}, "end_point": {"row": 191, "column": 15}}, {"id": 930, "type": "=", "text": "=", "parent": 926, "children": [], "start_point": {"row": 191, "column": 16}, "end_point": {"row": 191, "column": 17}}, {"id": 931, "type": "field_expression", "text": "orig->h_length", "parent": 926, "children": [932, 933], "start_point": {"row": 191, "column": 18}, "end_point": {"row": 191, "column": 32}}, {"id": 932, "type": "identifier", "text": "orig", "parent": 931, "children": [], "start_point": {"row": 191, "column": 18}, "end_point": {"row": 191, "column": 22}}, {"id": 933, "type": "field_identifier", "text": "h_length", "parent": 931, "children": [], "start_point": {"row": 191, "column": 24}, "end_point": {"row": 191, "column": 32}}, {"id": 934, "type": "return_statement", "text": "return h;", "parent": 770, "children": [935], "start_point": {"row": 192, "column": 4}, "end_point": {"row": 192, "column": 13}}, {"id": 935, "type": "identifier", "text": "h", "parent": 934, "children": [], "start_point": {"row": 192, "column": 11}, "end_point": {"row": 192, "column": 12}}, {"id": 936, "type": "labeled_statement", "text": "nomem3:\n c_free_string_array(h->h_aliases);", "parent": 770, "children": [937], "start_point": {"row": 193, "column": 0}, "end_point": {"row": 194, "column": 38}}, {"id": 937, "type": "statement_identifier", "text": "nomem3", "parent": 936, "children": [], "start_point": {"row": 193, "column": 0}, "end_point": {"row": 193, "column": 6}}, {"id": 938, "type": "call_expression", "text": "c_free_string_array(h->h_aliases)", "parent": 936, "children": [939, 940], "start_point": {"row": 194, "column": 4}, "end_point": {"row": 194, "column": 37}}, {"id": 939, "type": "identifier", "text": "c_free_string_array", "parent": 938, "children": [], "start_point": {"row": 194, "column": 4}, "end_point": {"row": 194, "column": 23}}, {"id": 940, "type": "argument_list", "text": "(h->h_aliases)", "parent": 938, "children": [941], "start_point": {"row": 194, "column": 23}, "end_point": {"row": 194, "column": 37}}, {"id": 941, "type": "field_expression", "text": "h->h_aliases", "parent": 940, "children": [942, 943], "start_point": {"row": 194, "column": 24}, "end_point": {"row": 194, "column": 36}}, {"id": 942, "type": "identifier", "text": "h", "parent": 941, "children": [], "start_point": {"row": 194, "column": 24}, "end_point": {"row": 194, "column": 25}}, {"id": 943, "type": "field_identifier", "text": "h_aliases", "parent": 941, "children": [], "start_point": {"row": 194, "column": 27}, "end_point": {"row": 194, "column": 36}}, {"id": 944, "type": "labeled_statement", "text": "nomem2:\n free((char *)h->h_name);", "parent": 770, "children": [945], "start_point": {"row": 195, "column": 0}, "end_point": {"row": 196, "column": 28}}, {"id": 945, "type": "statement_identifier", "text": "nomem2", "parent": 944, "children": [], "start_point": {"row": 195, "column": 0}, "end_point": {"row": 195, "column": 6}}, {"id": 946, "type": "call_expression", "text": "free((char *)h->h_name)", "parent": 944, "children": [947, 948], "start_point": {"row": 196, "column": 4}, "end_point": {"row": 196, "column": 27}}, {"id": 947, "type": "identifier", "text": "free", "parent": 946, "children": [], "start_point": {"row": 196, "column": 4}, "end_point": {"row": 196, "column": 8}}, {"id": 948, "type": "argument_list", "text": "((char *)h->h_name)", "parent": 946, "children": [949], "start_point": {"row": 196, "column": 8}, "end_point": {"row": 196, "column": 27}}, {"id": 949, "type": "cast_expression", "text": "(char *)h->h_name", "parent": 948, "children": [950, 954], "start_point": {"row": 196, "column": 9}, "end_point": {"row": 196, "column": 26}}, {"id": 950, "type": "type_descriptor", "text": "char *", "parent": 949, "children": [951, 952], "start_point": {"row": 196, "column": 10}, "end_point": {"row": 196, "column": 16}}, {"id": 951, "type": "primitive_type", "text": "char", "parent": 950, "children": [], "start_point": {"row": 196, "column": 10}, "end_point": {"row": 196, "column": 14}}, {"id": 952, "type": "abstract_pointer_declarator", "text": "*", "parent": 950, "children": [953], "start_point": {"row": 196, "column": 15}, "end_point": {"row": 196, "column": 16}}, {"id": 953, "type": "*", "text": "*", "parent": 952, "children": [], "start_point": {"row": 196, "column": 15}, "end_point": {"row": 196, "column": 16}}, {"id": 954, "type": "field_expression", "text": "h->h_name", "parent": 949, "children": [955, 956], "start_point": {"row": 196, "column": 17}, "end_point": {"row": 196, "column": 26}}, {"id": 955, "type": "identifier", "text": "h", "parent": 954, "children": [], "start_point": {"row": 196, "column": 17}, "end_point": {"row": 196, "column": 18}}, {"id": 956, "type": "field_identifier", "text": "h_name", "parent": 954, "children": [], "start_point": {"row": 196, "column": 20}, "end_point": {"row": 196, "column": 26}}, {"id": 957, "type": "labeled_statement", "text": "nomem1:\n free(h);", "parent": 770, "children": [958], "start_point": {"row": 197, "column": 0}, "end_point": {"row": 198, "column": 12}}, {"id": 958, "type": "statement_identifier", "text": "nomem1", "parent": 957, "children": [], "start_point": {"row": 197, "column": 0}, "end_point": {"row": 197, "column": 6}}, {"id": 959, "type": "call_expression", "text": "free(h)", "parent": 957, "children": [960, 961], "start_point": {"row": 198, "column": 4}, "end_point": {"row": 198, "column": 11}}, {"id": 960, "type": "identifier", "text": "free", "parent": 959, "children": [], "start_point": {"row": 198, "column": 4}, "end_point": {"row": 198, "column": 8}}, {"id": 961, "type": "argument_list", "text": "(h)", "parent": 959, "children": [962], "start_point": {"row": 198, "column": 8}, "end_point": {"row": 198, "column": 11}}, {"id": 962, "type": "identifier", "text": "h", "parent": 961, "children": [], "start_point": {"row": 198, "column": 9}, "end_point": {"row": 198, "column": 10}}, {"id": 963, "type": "return_statement", "text": "return NULL;", "parent": 770, "children": [964], "start_point": {"row": 199, "column": 4}, "end_point": {"row": 199, "column": 16}}, {"id": 964, "type": "null", "text": "NULL", "parent": 963, "children": [965], "start_point": {"row": 199, "column": 11}, "end_point": {"row": 199, "column": 15}}, {"id": 965, "type": "NULL", "text": "NULL", "parent": 964, "children": [], "start_point": {"row": 199, "column": 11}, "end_point": {"row": 199, "column": 15}}, {"id": 966, "type": "function_definition", "text": "void hostent_free(struct hostent *h)\n{\n if (h) {\n c_free_string_array(h->h_addr_list);\n c_free_string_array(h->h_aliases);\n free((char *)h->h_name);\n free(h);\n }\n}", "parent": 759, "children": [967, 968], "start_point": {"row": 202, "column": 0}, "end_point": {"row": 210, "column": 1}}, {"id": 967, "type": "primitive_type", "text": "void", "parent": 966, "children": [], "start_point": {"row": 202, "column": 0}, "end_point": {"row": 202, "column": 4}}, {"id": 968, "type": "function_declarator", "text": "hostent_free(struct hostent *h)", "parent": 966, "children": [969, 970], "start_point": {"row": 202, "column": 5}, "end_point": {"row": 202, "column": 36}}, {"id": 969, "type": "identifier", "text": "hostent_free", "parent": 968, "children": [], "start_point": {"row": 202, "column": 5}, "end_point": {"row": 202, "column": 17}}, {"id": 970, "type": "parameter_list", "text": "(struct hostent *h)", "parent": 968, "children": [971], "start_point": {"row": 202, "column": 17}, "end_point": {"row": 202, "column": 36}}, {"id": 971, "type": "parameter_declaration", "text": "struct hostent *h", "parent": 970, "children": [972, 975], "start_point": {"row": 202, "column": 18}, "end_point": {"row": 202, "column": 35}}, {"id": 972, "type": "struct_specifier", "text": "struct hostent", "parent": 971, "children": [973, 974], "start_point": {"row": 202, "column": 18}, "end_point": {"row": 202, "column": 32}}, {"id": 973, "type": "struct", "text": "struct", "parent": 972, "children": [], "start_point": {"row": 202, "column": 18}, "end_point": {"row": 202, "column": 24}}, {"id": 974, "type": "type_identifier", "text": "hostent", "parent": 972, "children": [], "start_point": {"row": 202, "column": 25}, "end_point": {"row": 202, "column": 32}}, {"id": 975, "type": "pointer_declarator", "text": "*h", "parent": 971, "children": [976, 977], "start_point": {"row": 202, "column": 33}, "end_point": {"row": 202, "column": 35}}, {"id": 976, "type": "*", "text": "*", "parent": 975, "children": [], "start_point": {"row": 202, "column": 33}, "end_point": {"row": 202, "column": 34}}, {"id": 977, "type": "identifier", "text": "h", "parent": 975, "children": [], "start_point": {"row": 202, "column": 34}, "end_point": {"row": 202, "column": 35}}, {"id": 978, "type": "if_statement", "text": "if (h) {\n c_free_string_array(h->h_addr_list);\n c_free_string_array(h->h_aliases);\n free((char *)h->h_name);\n free(h);\n }", "parent": 966, "children": [979], "start_point": {"row": 204, "column": 4}, "end_point": {"row": 209, "column": 5}}, {"id": 979, "type": "parenthesized_expression", "text": "(h)", "parent": 978, "children": [980], "start_point": {"row": 204, "column": 7}, "end_point": {"row": 204, "column": 10}}, {"id": 980, "type": "identifier", "text": "h", "parent": 979, "children": [], "start_point": {"row": 204, "column": 8}, "end_point": {"row": 204, "column": 9}}, {"id": 981, "type": "call_expression", "text": "c_free_string_array(h->h_addr_list)", "parent": 978, "children": [982, 983], "start_point": {"row": 205, "column": 8}, "end_point": {"row": 205, "column": 43}}, {"id": 982, "type": "identifier", "text": "c_free_string_array", "parent": 981, "children": [], "start_point": {"row": 205, "column": 8}, "end_point": {"row": 205, "column": 27}}, {"id": 983, "type": "argument_list", "text": "(h->h_addr_list)", "parent": 981, "children": [984], "start_point": {"row": 205, "column": 27}, "end_point": {"row": 205, "column": 43}}, {"id": 984, "type": "field_expression", "text": "h->h_addr_list", "parent": 983, "children": [985, 986], "start_point": {"row": 205, "column": 28}, "end_point": {"row": 205, "column": 42}}, {"id": 985, "type": "identifier", "text": "h", "parent": 984, "children": [], "start_point": {"row": 205, "column": 28}, "end_point": {"row": 205, "column": 29}}, {"id": 986, "type": "field_identifier", "text": "h_addr_list", "parent": 984, "children": [], "start_point": {"row": 205, "column": 31}, "end_point": {"row": 205, "column": 42}}, {"id": 987, "type": "call_expression", "text": "c_free_string_array(h->h_aliases)", "parent": 978, "children": [988, 989], "start_point": {"row": 206, "column": 8}, "end_point": {"row": 206, "column": 41}}, {"id": 988, "type": "identifier", "text": "c_free_string_array", "parent": 987, "children": [], "start_point": {"row": 206, "column": 8}, "end_point": {"row": 206, "column": 27}}, {"id": 989, "type": "argument_list", "text": "(h->h_aliases)", "parent": 987, "children": [990], "start_point": {"row": 206, "column": 27}, "end_point": {"row": 206, "column": 41}}, {"id": 990, "type": "field_expression", "text": "h->h_aliases", "parent": 989, "children": [991, 992], "start_point": {"row": 206, "column": 28}, "end_point": {"row": 206, "column": 40}}, {"id": 991, "type": "identifier", "text": "h", "parent": 990, "children": [], "start_point": {"row": 206, "column": 28}, "end_point": {"row": 206, "column": 29}}, {"id": 992, "type": "field_identifier", "text": "h_aliases", "parent": 990, "children": [], "start_point": {"row": 206, "column": 31}, "end_point": {"row": 206, "column": 40}}, {"id": 993, "type": "call_expression", "text": "free((char *)h->h_name)", "parent": 978, "children": [994, 995], "start_point": {"row": 207, "column": 8}, "end_point": {"row": 207, "column": 31}}, {"id": 994, "type": "identifier", "text": "free", "parent": 993, "children": [], "start_point": {"row": 207, "column": 8}, "end_point": {"row": 207, "column": 12}}, {"id": 995, "type": "argument_list", "text": "((char *)h->h_name)", "parent": 993, "children": [996], "start_point": {"row": 207, "column": 12}, "end_point": {"row": 207, "column": 31}}, {"id": 996, "type": "cast_expression", "text": "(char *)h->h_name", "parent": 995, "children": [997, 1001], "start_point": {"row": 207, "column": 13}, "end_point": {"row": 207, "column": 30}}, {"id": 997, "type": "type_descriptor", "text": "char *", "parent": 996, "children": [998, 999], "start_point": {"row": 207, "column": 14}, "end_point": {"row": 207, "column": 20}}, {"id": 998, "type": "primitive_type", "text": "char", "parent": 997, "children": [], "start_point": {"row": 207, "column": 14}, "end_point": {"row": 207, "column": 18}}, {"id": 999, "type": "abstract_pointer_declarator", "text": "*", "parent": 997, "children": [1000], "start_point": {"row": 207, "column": 19}, "end_point": {"row": 207, "column": 20}}, {"id": 1000, "type": "*", "text": "*", "parent": 999, "children": [], "start_point": {"row": 207, "column": 19}, "end_point": {"row": 207, "column": 20}}, {"id": 1001, "type": "field_expression", "text": "h->h_name", "parent": 996, "children": [1002, 1003], "start_point": {"row": 207, "column": 21}, "end_point": {"row": 207, "column": 30}}, {"id": 1002, "type": "identifier", "text": "h", "parent": 1001, "children": [], "start_point": {"row": 207, "column": 21}, "end_point": {"row": 207, "column": 22}}, {"id": 1003, "type": "field_identifier", "text": "h_name", "parent": 1001, "children": [], "start_point": {"row": 207, "column": 24}, "end_point": {"row": 207, "column": 30}}, {"id": 1004, "type": "call_expression", "text": "free(h)", "parent": 978, "children": [1005, 1006], "start_point": {"row": 208, "column": 8}, "end_point": {"row": 208, "column": 15}}, {"id": 1005, "type": "identifier", "text": "free", "parent": 1004, "children": [], "start_point": {"row": 208, "column": 8}, "end_point": {"row": 208, "column": 12}}, {"id": 1006, "type": "argument_list", "text": "(h)", "parent": 1004, "children": [1007], "start_point": {"row": 208, "column": 12}, "end_point": {"row": 208, "column": 15}}, {"id": 1007, "type": "identifier", "text": "h", "parent": 1006, "children": [], "start_point": {"row": 208, "column": 13}, "end_point": {"row": 208, "column": 14}}, {"id": 1008, "type": "#endif", "text": "#endif", "parent": 759, "children": [], "start_point": {"row": 211, "column": 0}, "end_point": {"row": 211, "column": 6}}, {"id": 1009, "type": "#endif", "text": "#endif", "parent": 3, "children": [], "start_point": {"row": 213, "column": 0}, "end_point": {"row": 213, "column": 6}}]}, "node_categories": {"declarations": {"functions": [43, 49, 229, 235, 386, 388, 429, 433, 460, 474, 484, 486, 512, 514, 540, 542, 770, 776, 966, 968], "variables": [52, 59, 72, 82, 99, 163, 238, 245, 255, 261, 349, 391, 401, 436, 456, 463, 470, 477, 489, 494, 517, 522, 545, 552, 555, 565, 779, 796, 971], "classes": [464, 465, 478, 479, 495, 496, 523, 524, 546, 547, 771, 772, 780, 781, 797, 798, 972, 973], "imports": [0, 1, 11, 12, 14, 15, 17, 18, 20, 21, 23, 24, 26, 27, 29, 30], "modules": [], "enums": []}, "statements": {"expressions": [5, 34, 63, 64, 89, 90, 93, 96, 108, 111, 112, 113, 118, 124, 125, 138, 142, 146, 150, 155, 156, 157, 171, 175, 178, 181, 184, 191, 194, 197, 202, 213, 214, 215, 265, 266, 275, 276, 279, 282, 292, 295, 296, 297, 302, 308, 309, 322, 326, 330, 334, 337, 341, 342, 343, 357, 361, 364, 367, 370, 378, 399, 412, 413, 416, 419, 422, 425, 442, 443, 447, 499, 502, 507, 510, 527, 530, 535, 538, 575, 585, 588, 593, 594, 598, 599, 605, 608, 615, 622, 627, 628, 629, 637, 641, 648, 655, 659, 666, 672, 678, 686, 695, 696, 703, 709, 719, 725, 734, 740, 747, 754, 761, 787, 788, 805, 808, 809, 813, 814, 823, 827, 830, 834, 835, 837, 844, 845, 847, 851, 859, 863, 866, 870, 871, 873, 880, 881, 883, 887, 895, 899, 902, 905, 909, 910, 912, 919, 923, 927, 931, 938, 941, 946, 949, 954, 959, 979, 981, 984, 987, 990, 993, 996, 1001, 1004], "assignments": [105, 134, 145, 167, 201, 285, 289, 318, 329, 353, 377, 582, 602, 619, 634, 652, 669, 677, 685, 702, 718, 733, 746, 822, 850, 858, 886, 894, 918, 926], "loops": [88, 133, 166, 274, 317, 352, 411], "conditionals": [3, 4, 9, 32, 33, 37, 41, 50, 58, 61, 62, 65, 79, 81, 85, 92, 94, 97, 102, 104, 106, 109, 114, 123, 126, 135, 139, 141, 144, 147, 148, 151, 153, 154, 158, 159, 165, 168, 172, 174, 176, 179, 182, 183, 185, 187, 192, 195, 196, 198, 199, 200, 203, 204, 209, 210, 211, 212, 219, 223, 227, 236, 244, 252, 254, 258, 263, 264, 267, 278, 280, 283, 286, 288, 290, 293, 298, 307, 310, 319, 323, 325, 328, 331, 332, 335, 338, 339, 340, 344, 345, 351, 354, 358, 360, 362, 365, 368, 369, 371, 373, 379, 380, 385, 389, 397, 398, 400, 408, 410, 415, 417, 421, 424, 426, 428, 434, 440, 444, 446, 448, 454, 455, 457, 459, 461, 466, 469, 471, 473, 475, 480, 483, 485, 487, 493, 497, 498, 500, 503, 504, 508, 511, 513, 515, 521, 525, 526, 528, 531, 532, 536, 539, 541, 543, 548, 551, 553, 554, 556, 558, 560, 562, 564, 566, 568, 570, 572, 574, 576, 578, 579, 580, 581, 583, 586, 595, 596, 597, 600, 601, 603, 606, 616, 617, 620, 623, 626, 630, 631, 635, 638, 640, 649, 650, 653, 656, 658, 667, 668, 670, 673, 679, 681, 684, 687, 689, 692, 693, 694, 697, 698, 699, 700, 701, 704, 706, 710, 715, 716, 717, 720, 722, 726, 731, 735, 737, 741, 748, 750, 753, 755, 758, 759, 760, 764, 768, 773, 777, 782, 785, 786, 789, 799, 803, 806, 811, 812, 815, 824, 825, 828, 831, 832, 833, 838, 839, 842, 843, 848, 849, 852, 853, 860, 861, 864, 867, 868, 869, 874, 875, 878, 879, 884, 885, 888, 889, 896, 897, 900, 903, 904, 906, 907, 908, 913, 914, 917, 920, 921, 924, 925, 928, 929, 932, 933, 935, 937, 939, 942, 943, 945, 947, 955, 956, 958, 960, 962, 969, 974, 977, 978, 980, 982, 985, 986, 988, 991, 992, 994, 1002, 1003, 1005, 1007, 1008, 1009], "returns": [69, 130, 188, 208, 271, 314, 374, 384, 441, 506, 534, 757, 793, 819, 934, 963], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 13, 16, 19, 22, 25, 28, 31, 87, 116, 137, 170, 260, 300, 321, 356, 453, 505, 533, 625, 633, 675, 676, 682, 690, 707, 712, 723, 728, 738, 743, 751], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 43, "universal_type": "function", "name": "addr_len)", "text_snippet": "char **c_copy_addr_array(char **src, int addr_len)\n{\n if (src == NULL) {\n return NULL;\n "}, {"node_id": 49, "universal_type": "function", "name": "addr_len)", "text_snippet": "c_copy_addr_array(char **src, int addr_len)"}, {"node_id": 229, "universal_type": "function", "name": "unknown", "text_snippet": "char **c_copy_string_array(char **src)\n{\n char **p = src;\n size_t i = 0;\n size_t len;\n i"}, {"node_id": 235, "universal_type": "function", "name": "unknown", "text_snippet": "c_copy_string_array(char **src)"}, {"node_id": 386, "universal_type": "function", "name": "c_free_string_array", "text_snippet": "void c_free_string_array(char **src)\n{\n if (src) {\n char **p = src;\n while (*p) {\n "}, {"node_id": 388, "universal_type": "function", "name": "unknown", "text_snippet": "c_free_string_array(char **src)"}, {"node_id": 429, "universal_type": "function", "name": "unknown", "text_snippet": "char *s_strdup(const char *s)\n{\n return (strdup(s == NULL ? \"\" : s));\n}"}, {"node_id": 433, "universal_type": "function", "name": "unknown", "text_snippet": "s_strdup(const char *s)"}, {"node_id": 460, "universal_type": "function", "name": "unknown", "text_snippet": "alloc_inet_addr(struct in_addr *inaddr)"}, {"node_id": 474, "universal_type": "function", "name": "unknown", "text_snippet": "alloc_inet6_addr(struct in6_addr *inaddr)"}, {"node_id": 484, "universal_type": "function", "name": "in_addr", "text_snippet": "static value alloc_one_addr(char const *a)\n{\n struct in_addr addr;\n memmove(&addr, a, 4);\n "}, {"node_id": 486, "universal_type": "function", "name": "unknown", "text_snippet": "alloc_one_addr(char const *a)"}, {"node_id": 512, "universal_type": "function", "name": "in6_addr", "text_snippet": "static value alloc_one_addr6(char const *a)\n{\n struct in6_addr addr;\n memmove(&addr, a, 16);\n "}, {"node_id": 514, "universal_type": "function", "name": "unknown", "text_snippet": "alloc_one_addr6(char const *a)"}, {"node_id": 540, "universal_type": "function", "name": "unknown", "text_snippet": "value alloc_host_entry(struct hostent *entry)\n{\n value res;\n value name = Val_unit, aliases = "}, {"node_id": 542, "universal_type": "function", "name": "unknown", "text_snippet": "alloc_host_entry(struct hostent *entry)"}, {"node_id": 770, "universal_type": "function", "name": "hostent", "text_snippet": "struct hostent *hostent_dup(struct hostent *orig)\n{\n if (orig == NULL) {\n return NULL;\n "}, {"node_id": 776, "universal_type": "function", "name": "unknown", "text_snippet": "hostent_dup(struct hostent *orig)"}, {"node_id": 966, "universal_type": "function", "name": "hostent_free", "text_snippet": "void hostent_free(struct hostent *h)\n{\n if (h) {\n c_free_string_array(h->h_addr_list);\n "}, {"node_id": 968, "universal_type": "function", "name": "unknown", "text_snippet": "hostent_free(struct hostent *h)"}], "class_declarations": [{"node_id": 464, "universal_type": "class", "name": "in_addr", "text_snippet": "struct in_addr"}, {"node_id": 465, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 478, "universal_type": "class", "name": "in6_addr", "text_snippet": "struct in6_addr"}, {"node_id": 479, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 495, "universal_type": "class", "name": "in_addr", "text_snippet": "struct in_addr"}, {"node_id": 496, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 523, "universal_type": "class", "name": "in6_addr", "text_snippet": "struct in6_addr"}, {"node_id": 524, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 546, "universal_type": "class", "name": "hostent", "text_snippet": "struct hostent"}, {"node_id": 547, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 771, "universal_type": "class", "name": "hostent", "text_snippet": "struct hostent"}, {"node_id": 772, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 780, "universal_type": "class", "name": "hostent", "text_snippet": "struct hostent"}, {"node_id": 781, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 797, "universal_type": "class", "name": "hostent", "text_snippet": "struct hostent"}, {"node_id": 798, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 972, "universal_type": "class", "name": "hostent", "text_snippet": "struct hostent"}, {"node_id": 973, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include \"lwt_config.h\"\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 11, "text": "#include <caml/alloc.h>\n"}, {"node_id": 12, "text": "#include"}, {"node_id": 14, "text": "#include <caml/memory.h>\n"}, {"node_id": 15, "text": "#include"}, {"node_id": 17, "text": "#include <caml/mlvalues.h>\n"}, {"node_id": 18, "text": "#include"}, {"node_id": 20, "text": "#include <caml/socketaddr.h>\n"}, {"node_id": 21, "text": "#include"}, {"node_id": 23, "text": "#include <stdlib.h>\n"}, {"node_id": 24, "text": "#include"}, {"node_id": 26, "text": "#include <string.h>\n"}, {"node_id": 27, "text": "#include"}, {"node_id": 29, "text": "#include \"unix_get_network_information_utils.h\"\n"}, {"node_id": 30, "text": "#include"}]}, "original_source_code": "/* This file is part of Lwt, released under the MIT license. See LICENSE.md for\n details, or visit https://github.com/ocsigen/lwt/blob/master/LICENSE.md. */\n\n\n\n#include \"lwt_config.h\"\n\n#if !defined(LWT_ON_WINDOWS)\n\n#include <caml/alloc.h>\n#include <caml/memory.h>\n#include <caml/mlvalues.h>\n#include <caml/socketaddr.h>\n#include <stdlib.h>\n#include <string.h>\n\n#include \"unix_get_network_information_utils.h\"\n\n#if defined(NON_R_GETHOSTBYADDR) || defined(NON_R_GETHOSTBYNAME)\nchar **c_copy_addr_array(char **src, int addr_len)\n{\n if (src == NULL) {\n return NULL;\n }\n char **p = src;\n size_t i = 0;\n while (*p) {\n i++;\n p++;\n }\n const size_t ar_len = i;\n p = malloc((ar_len + 1) * sizeof(char *));\n if (p == NULL) {\n return NULL;\n }\n for (i = 0; i < ar_len; ++i) {\n p[i] = malloc(addr_len);\n if (p[i] == NULL) {\n size_t j;\n for (j = 0; j < i; j++) {\n free(p[j]);\n }\n free(p);\n return NULL;\n }\n memcpy(p[i], src[i], addr_len);\n }\n p[ar_len] = NULL;\n return p;\n}\n#endif\n\n#if !defined(HAVE_NETDB_REENTRANT) || defined(NON_R_GETHOSTBYADDR) || \\\n defined(NON_R_GETHOSTBYNAME)\nchar **c_copy_string_array(char **src)\n{\n char **p = src;\n size_t i = 0;\n size_t len;\n if (src == NULL) {\n return NULL;\n }\n while (*p) {\n i++;\n p++;\n }\n len = i;\n p = malloc((len + 1) * sizeof(char *));\n if (p == NULL) {\n return NULL;\n }\n for (i = 0; i < len; ++i) {\n p[i] = strdup(src[i]);\n if (p[i] == NULL) {\n size_t j;\n for (j = 0; j < i; j++) {\n free(p[j]);\n }\n free(p);\n return NULL;\n }\n }\n p[len] = NULL;\n return p;\n}\n\nvoid c_free_string_array(char **src)\n{\n if (src) {\n char **p = src;\n while (*p) {\n free(*p);\n ++p;\n }\n free(src);\n }\n}\n\nchar *s_strdup(const char *s)\n{\n return (strdup(s == NULL ? \"\" : s));\n}\n#endif\n\nCAMLexport value alloc_inet_addr(struct in_addr *inaddr);\nCAMLexport value alloc_inet6_addr(struct in6_addr *inaddr);\n\nstatic value alloc_one_addr(char const *a)\n{\n struct in_addr addr;\n memmove(&addr, a, 4);\n return alloc_inet_addr(&addr);\n}\n\nstatic value alloc_one_addr6(char const *a)\n{\n struct in6_addr addr;\n memmove(&addr, a, 16);\n return alloc_inet6_addr(&addr);\n}\n\nvalue alloc_host_entry(struct hostent *entry)\n{\n value res;\n value name = Val_unit, aliases = Val_unit;\n value addr_list = Val_unit, adr = Val_unit;\n\n Begin_roots4(name, aliases, addr_list, adr);\n name = caml_copy_string((char *)(entry->h_name));\n /* PR#4043: protect against buggy implementations of gethostbynamee()\n that return a NULL pointer in h_aliases */\n if (entry->h_aliases)\n aliases = caml_copy_string_array((const char **)entry->h_aliases);\n else\n aliases = Atom(0);\n if (entry->h_length == 16)\n addr_list = caml_alloc_array(alloc_one_addr6,\n (const char **)entry->h_addr_list);\n else\n addr_list =\n caml_alloc_array(alloc_one_addr, (const char **)entry->h_addr_list);\n res = caml_alloc_small(4, 0);\n Field(res, 0) = name;\n Field(res, 1) = aliases;\n switch (entry->h_addrtype) {\n case PF_UNIX:\n Field(res, 2) = Val_int(0);\n break;\n case PF_INET:\n Field(res, 2) = Val_int(1);\n break;\n default: /*PF_INET6 */\n Field(res, 2) = Val_int(2);\n break;\n }\n Field(res, 3) = addr_list;\n End_roots();\n return res;\n}\n\n#if defined(NON_R_GETHOSTBYADDR) || defined(NON_R_GETHOSTBYNAME)\nstruct hostent *hostent_dup(struct hostent *orig)\n{\n if (orig == NULL) {\n return NULL;\n }\n struct hostent *h = malloc(sizeof *h);\n if (h == NULL) {\n return NULL;\n }\n h->h_name = s_strdup(orig->h_name);\n if (!h->h_name) {\n goto nomem1;\n }\n if (!orig->h_aliases) {\n h->h_aliases = NULL;\n } else {\n h->h_aliases = c_copy_string_array(orig->h_aliases);\n if (!h->h_aliases) {\n goto nomem2;\n }\n }\n if (!orig->h_addr_list) {\n h->h_addr_list = NULL;\n } else {\n h->h_addr_list = c_copy_addr_array(orig->h_addr_list, orig->h_length);\n if (!h->h_addr_list) {\n goto nomem3;\n }\n }\n h->h_addrtype = orig->h_addrtype;\n h->h_length = orig->h_length;\n return h;\nnomem3:\n c_free_string_array(h->h_aliases);\nnomem2:\n free((char *)h->h_name);\nnomem1:\n free(h);\n return NULL;\n}\n\nvoid hostent_free(struct hostent *h)\n{\n if (h) {\n c_free_string_array(h->h_addr_list);\n c_free_string_array(h->h_aliases);\n free((char *)h->h_name);\n free(h);\n }\n}\n#endif\n\n#endif\n"}
80,281
c
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2018 Couchbase, Inc * * 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 "dcp/active_stream.h" #include "globaltask.h" #include <memcached/engine_common.h> #include <queue> #include <string> #include <unordered_set> class ActiveStream; class DcpProducer; class Stream; template <class E> class StreamContainer; class ActiveStreamCheckpointProcessorTask : public GlobalTask { public: ActiveStreamCheckpointProcessorTask(EventuallyPersistentEngine& e, std::shared_ptr<DcpProducer> p); std::string getDescription() { return description; } std::chrono::microseconds maxExpectedDuration() { // Empirical evidence from perf runs suggests this task runs under // 210ms 99.9999% of the time. return std::chrono::milliseconds(210); } bool run(); void schedule(std::shared_ptr<ActiveStream> stream); void wakeup(); /* Clears the queues and resets the producer reference */ void cancelTask(); /* Returns the number of unique streams waiting to be processed */ size_t queueSize() { LockHolder lh(workQueueLock); return queue.size(); } /// Outputs statistics related to this task via the given callback. void addStats(const std::string& name, const AddStatFn& add_stat, const void* c) const; private: std::shared_ptr<StreamContainer<std::shared_ptr<Stream>>> queuePop(); bool queueEmpty() { LockHolder lh(workQueueLock); return queue.empty(); } void pushUnique(Vbid vbid) { LockHolder lh(workQueueLock); if (queuedVbuckets.count(vbid) == 0) { queue.push(vbid); queuedVbuckets.insert(vbid); } } /// Human-readable description of this task. const std::string description; /// Guards queue && queuedVbuckets mutable std::mutex workQueueLock; /** * Maintain a queue of unique vbucket ids for which stream should be * processed. * There's no need to have the same stream in the queue more than once * * The streams are kept in the 'streams map' of the producer object. We * should not hold a shared reference (even a weak ref) to the stream object * here because 'streams map' is the actual owner. If we hold a weak ref * here and the streams map replaces the stream for the vbucket id with a * new one, then we would end up not updating it here as we append to the * queue only if there is no entry for the vbucket in the queue. */ std::queue<Vbid> queue; std::unordered_set<Vbid> queuedVbuckets; std::atomic<bool> notified; const size_t iterationsBeforeYield; const std::weak_ptr<DcpProducer> producerPtr; };
37.26
89
(translation_unit) "/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */\n/*\n * Copyright 2018 Couchbase, Inc\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#pragma once\n\n#include "dcp/active_stream.h"\n#include "globaltask.h"\n\n#include <memcached/engine_common.h>\n\n#include <queue>\n#include <string>\n#include <unordered_set>\n\nclass ActiveStream;\nclass DcpProducer;\nclass Stream;\ntemplate <class E>\nclass StreamContainer;\n\nclass ActiveStreamCheckpointProcessorTask : public GlobalTask {\npublic:\n ActiveStreamCheckpointProcessorTask(EventuallyPersistentEngine& e,\n std::shared_ptr<DcpProducer> p);\n\n std::string getDescription() {\n return description;\n }\n\n std::chrono::microseconds maxExpectedDuration() {\n // Empirical evidence from perf runs suggests this task runs under\n // 210ms 99.9999% of the time.\n return std::chrono::milliseconds(210);\n }\n\n bool run();\n void schedule(std::shared_ptr<ActiveStream> stream);\n void wakeup();\n\n /* Clears the queues and resets the producer reference */\n void cancelTask();\n\n /* Returns the number of unique streams waiting to be processed */\n size_t queueSize() {\n LockHolder lh(workQueueLock);\n return queue.size();\n }\n\n /// Outputs statistics related to this task via the given callback.\n void addStats(const std::string& name,\n const AddStatFn& add_stat,\n const void* c) const;\n\nprivate:\n std::shared_ptr<StreamContainer<std::shared_ptr<Stream>>> queuePop();\n\n bool queueEmpty() {\n LockHolder lh(workQueueLock);\n return queue.empty();\n }\n\n void pushUnique(Vbid vbid) {\n LockHolder lh(workQueueLock);\n if (queuedVbuckets.count(vbid) == 0) {\n queue.push(vbid);\n queuedVbuckets.insert(vbid);\n }\n }\n\n /// Human-readable description of this task.\n const std::string description;\n\n /// Guards queue && queuedVbuckets\n mutable std::mutex workQueueLock;\n\n /**\n * Maintain a queue of unique vbucket ids for which stream should be\n * processed.\n * There's no need to have the same stream in the queue more than once\n *\n * The streams are kept in the 'streams map' of the producer object. We\n * should not hold a shared reference (even a weak ref) to the stream object\n * here because 'streams map' is the actual owner. If we hold a weak ref\n * here and the streams map replaces the stream for the vbucket id with a\n * new one, then we would end up not updating it here as we append to the\n * queue only if there is no entry for the vbucket in the queue.\n */\n std::queue<Vbid> queue;\n std::unordered_set<Vbid> queuedVbuckets;\n\n std::atomic<bool> notified;\n const size_t iterationsBeforeYield;\n\n const std::weak_ptr<DcpProducer> producerPtr;\n};\n" (comment) "/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */" (comment) "/*\n * Copyright 2018 Couchbase, Inc\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_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "dcp/active_stream.h"\n" (#include) "#include" (string_literal) ""dcp/active_stream.h"" (") """ (string_content) "dcp/active_stream.h" (") """ (preproc_include) "#include "globaltask.h"\n" (#include) "#include" (string_literal) ""globaltask.h"" (") """ (string_content) "globaltask.h" (") """ (preproc_include) "#include <memcached/engine_common.h>\n" (#include) "#include" (system_lib_string) "<memcached/engine_common.h>" (preproc_include) "#include <queue>\n" (#include) "#include" (system_lib_string) "<queue>" (preproc_include) "#include <string>\n" (#include) "#include" (system_lib_string) "<string>" (preproc_include) "#include <unordered_set>\n" (#include) "#include" (system_lib_string) "<unordered_set>" (declaration) "class ActiveStream;" (type_identifier) "class" (identifier) "ActiveStream" (;) ";" (declaration) "class DcpProducer;" (type_identifier) "class" (identifier) "DcpProducer" (;) ";" (declaration) "class Stream;" (type_identifier) "class" (identifier) "Stream" (;) ";" (ERROR) "template <class E>\nclass StreamContainer;\n\nclass ActiveStreamCheckpointProcessorTask : public GlobalTask {\npublic:" (binary_expression) "template <class E>\nclass StreamContainer;\n\nclass ActiveStreamCheckpointProcessorTask : public GlobalTask {\npublic" (binary_expression) "template <class" (identifier) "template" (<) "<" (identifier) "class" (ERROR) "E" (identifier) "E" (>) ">" (ERROR) "class StreamContainer;\n\nclass ActiveStreamCheckpointProcessorTask : public GlobalTask {" (identifier) "class" (identifier) "StreamContainer" (;) ";" (identifier) "class" (identifier) "ActiveStreamCheckpointProcessorTask" (:) ":" (identifier) "public" (identifier) "GlobalTask" ({) "{" (identifier) "public" (:) ":" (expression_statement) "ActiveStreamCheckpointProcessorTask(EventuallyPersistentEngine& e,\n std::shared_ptr<DcpProducer> p);" (call_expression) "ActiveStreamCheckpointProcessorTask(EventuallyPersistentEngine& e,\n std::shared_ptr<DcpProducer> p)" (identifier) "ActiveStreamCheckpointProcessorTask" (argument_list) "(EventuallyPersistentEngine& e,\n std::shared_ptr<DcpProducer> p)" (() "(" (binary_expression) "EventuallyPersistentEngine& e" (identifier) "EventuallyPersistentEngine" (&) "&" (identifier) "e" (,) "," (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (binary_expression) "shared_ptr<DcpProducer> p" (binary_expression) "shared_ptr<DcpProducer" (identifier) "shared_ptr" (<) "<" (identifier) "DcpProducer" (>) ">" (identifier) "p" ()) ")" (;) ";" (labeled_statement) "std::string getDescription() {\n return description;\n }" (statement_identifier) "std" (:) ":" (ERROR) ":string getDescription()" (:) ":" (type_identifier) "string" (function_declarator) "getDescription()" (identifier) "getDescription" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n return description;\n }" ({) "{" (return_statement) "return description;" (return) "return" (identifier) "description" (;) ";" (}) "}" (labeled_statement) "std::chrono::microseconds maxExpectedDuration() {\n // Empirical evidence from perf runs suggests this task runs under\n // 210ms 99.9999% of the time.\n return std::chrono::milliseconds(210);\n }" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (labeled_statement) "chrono::microseconds maxExpectedDuration() {\n // Empirical evidence from perf runs suggests this task runs under\n // 210ms 99.9999% of the time.\n return std::chrono::milliseconds(210);\n }" (statement_identifier) "chrono" (:) ":" (ERROR) ":microseconds maxExpectedDuration()" (:) ":" (type_identifier) "microseconds" (function_declarator) "maxExpectedDuration()" (identifier) "maxExpectedDuration" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n // Empirical evidence from perf runs suggests this task runs under\n // 210ms 99.9999% of the time.\n return std::chrono::milliseconds(210);\n }" ({) "{" (comment) "// Empirical evidence from perf runs suggests this task runs under" (comment) "// 210ms 99.9999% of the time." (return_statement) "return std::chrono::milliseconds(210);" (return) "return" (ERROR) "std::chrono::" (identifier) "std" (:) ":" (:) ":" (identifier) "chrono" (:) ":" (:) ":" (call_expression) "milliseconds(210)" (identifier) "milliseconds" (argument_list) "(210)" (() "(" (number_literal) "210" ()) ")" (;) ";" (}) "}" (declaration) "bool run();" (primitive_type) "bool" (function_declarator) "run()" (identifier) "run" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void schedule(std::shared_ptr<ActiveStream> stream);" (primitive_type) "void" (function_declarator) "schedule(std::shared_ptr<ActiveStream> stream)" (identifier) "schedule" (parameter_list) "(std::shared_ptr<ActiveStream> stream)" (() "(" (parameter_declaration) "std::shared_ptr<ActiveStream> stream" (type_identifier) "std" (ERROR) "::shared_ptr<ActiveStream>" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "ActiveStream" (>) ">" (identifier) "stream" ()) ")" (;) ";" (declaration) "void wakeup();" (primitive_type) "void" (function_declarator) "wakeup()" (identifier) "wakeup" (parameter_list) "()" (() "(" ()) ")" (;) ";" (comment) "/* Clears the queues and resets the producer reference */" (declaration) "void cancelTask();" (primitive_type) "void" (function_declarator) "cancelTask()" (identifier) "cancelTask" (parameter_list) "()" (() "(" ()) ")" (;) ";" (comment) "/* Returns the number of unique streams waiting to be processed */" (function_definition) "size_t queueSize() {\n LockHolder lh(workQueueLock);\n return queue.size();\n }" (primitive_type) "size_t" (function_declarator) "queueSize()" (identifier) "queueSize" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n LockHolder lh(workQueueLock);\n return queue.size();\n }" ({) "{" (declaration) "LockHolder lh(workQueueLock);" (type_identifier) "LockHolder" (function_declarator) "lh(workQueueLock)" (identifier) "lh" (parameter_list) "(workQueueLock)" (() "(" (parameter_declaration) "workQueueLock" (type_identifier) "workQueueLock" ()) ")" (;) ";" (return_statement) "return queue.size();" (return) "return" (call_expression) "queue.size()" (field_expression) "queue.size" (identifier) "queue" (.) "." (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (comment) "/// Outputs statistics related to this task via the given callback." (ERROR) "void addStats(const std::string& name,\n const AddStatFn& add_stat,\n const void* c) const" (primitive_type) "void" (function_declarator) "addStats(const std::string& name,\n const AddStatFn& add_stat,\n const void* c) const" (identifier) "addStats" (parameter_list) "(const std::string& name,\n const AddStatFn& add_stat,\n const void* c)" (() "(" (parameter_declaration) "const std::string& name" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string&" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "name" (,) "," (parameter_declaration) "const AddStatFn& add_stat" (type_qualifier) "const" (const) "const" (type_identifier) "AddStatFn" (ERROR) "&" (&) "&" (identifier) "add_stat" (,) "," (parameter_declaration) "const void* c" (type_qualifier) "const" (const) "const" (primitive_type) "void" (pointer_declarator) "* c" (*) "*" (identifier) "c" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (labeled_statement) "private:\n std::shared_ptr<StreamContainer<std::shared_ptr<Stream>>> queuePop();" (statement_identifier) "private" (:) ":" (labeled_statement) "std::shared_ptr<StreamContainer<std::shared_ptr<Stream>>> queuePop();" (statement_identifier) "std" (ERROR) "::shared_ptr<StreamContainer<std:" (:) ":" (:) ":" (binary_expression) "shared_ptr<StreamContainer<std" (binary_expression) "shared_ptr<StreamContainer" (identifier) "shared_ptr" (<) "<" (identifier) "StreamContainer" (<) "<" (identifier) "std" (:) ":" (:) ":" (expression_statement) "shared_ptr<Stream>>> queuePop();" (binary_expression) "shared_ptr<Stream>>> queuePop()" (identifier) "shared_ptr" (<) "<" (binary_expression) "Stream>>> queuePop()" (identifier) "Stream" (>>) ">>" (ERROR) ">" (>) ">" (call_expression) "queuePop()" (identifier) "queuePop" (argument_list) "()" (() "(" ()) ")" (;) ";" (function_definition) "bool queueEmpty() {\n LockHolder lh(workQueueLock);\n return queue.empty();\n }" (primitive_type) "bool" (function_declarator) "queueEmpty()" (identifier) "queueEmpty" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n LockHolder lh(workQueueLock);\n return queue.empty();\n }" ({) "{" (declaration) "LockHolder lh(workQueueLock);" (type_identifier) "LockHolder" (function_declarator) "lh(workQueueLock)" (identifier) "lh" (parameter_list) "(workQueueLock)" (() "(" (parameter_declaration) "workQueueLock" (type_identifier) "workQueueLock" ()) ")" (;) ";" (return_statement) "return queue.empty();" (return) "return" (call_expression) "queue.empty()" (field_expression) "queue.empty" (identifier) "queue" (.) "." (field_identifier) "empty" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (function_definition) "void pushUnique(Vbid vbid) {\n LockHolder lh(workQueueLock);\n if (queuedVbuckets.count(vbid) == 0) {\n queue.push(vbid);\n queuedVbuckets.insert(vbid);\n }\n }" (primitive_type) "void" (function_declarator) "pushUnique(Vbid vbid)" (identifier) "pushUnique" (parameter_list) "(Vbid vbid)" (() "(" (parameter_declaration) "Vbid vbid" (type_identifier) "Vbid" (identifier) "vbid" ()) ")" (compound_statement) "{\n LockHolder lh(workQueueLock);\n if (queuedVbuckets.count(vbid) == 0) {\n queue.push(vbid);\n queuedVbuckets.insert(vbid);\n }\n }" ({) "{" (declaration) "LockHolder lh(workQueueLock);" (type_identifier) "LockHolder" (function_declarator) "lh(workQueueLock)" (identifier) "lh" (parameter_list) "(workQueueLock)" (() "(" (parameter_declaration) "workQueueLock" (type_identifier) "workQueueLock" ()) ")" (;) ";" (if_statement) "if (queuedVbuckets.count(vbid) == 0) {\n queue.push(vbid);\n queuedVbuckets.insert(vbid);\n }" (if) "if" (parenthesized_expression) "(queuedVbuckets.count(vbid) == 0)" (() "(" (binary_expression) "queuedVbuckets.count(vbid) == 0" (call_expression) "queuedVbuckets.count(vbid)" (field_expression) "queuedVbuckets.count" (identifier) "queuedVbuckets" (.) "." (field_identifier) "count" (argument_list) "(vbid)" (() "(" (identifier) "vbid" ()) ")" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n queue.push(vbid);\n queuedVbuckets.insert(vbid);\n }" ({) "{" (expression_statement) "queue.push(vbid);" (call_expression) "queue.push(vbid)" (field_expression) "queue.push" (identifier) "queue" (.) "." (field_identifier) "push" (argument_list) "(vbid)" (() "(" (identifier) "vbid" ()) ")" (;) ";" (expression_statement) "queuedVbuckets.insert(vbid);" (call_expression) "queuedVbuckets.insert(vbid)" (field_expression) "queuedVbuckets.insert" (identifier) "queuedVbuckets" (.) "." (field_identifier) "insert" (argument_list) "(vbid)" (() "(" (identifier) "vbid" ()) ")" (;) ";" (}) "}" (}) "}" (comment) "/// Human-readable description of this task." (declaration) "const std::string description;" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (identifier) "description" (;) ";" (comment) "/// Guards queue && queuedVbuckets" (declaration) "mutable std::mutex workQueueLock;" (type_identifier) "mutable" (ERROR) "std::mutex" (identifier) "std" (:) ":" (:) ":" (identifier) "mutex" (identifier) "workQueueLock" (;) ";" (comment) "/**\n * Maintain a queue of unique vbucket ids for which stream should be\n * processed.\n * There's no need to have the same stream in the queue more than once\n *\n * The streams are kept in the 'streams map' of the producer object. We\n * should not hold a shared reference (even a weak ref) to the stream object\n * here because 'streams map' is the actual owner. If we hold a weak ref\n * here and the streams map replaces the stream for the vbucket id with a\n * new one, then we would end up not updating it here as we append to the\n * queue only if there is no entry for the vbucket in the queue.\n */" (labeled_statement) "std::queue<Vbid> queue;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "queue<Vbid> queue;" (binary_expression) "queue<Vbid> queue" (binary_expression) "queue<Vbid" (identifier) "queue" (<) "<" (identifier) "Vbid" (>) ">" (identifier) "queue" (;) ";" (labeled_statement) "std::unordered_set<Vbid> queuedVbuckets;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "unordered_set<Vbid> queuedVbuckets;" (binary_expression) "unordered_set<Vbid> queuedVbuckets" (binary_expression) "unordered_set<Vbid" (identifier) "unordered_set" (<) "<" (identifier) "Vbid" (>) ">" (identifier) "queuedVbuckets" (;) ";" (labeled_statement) "std::atomic<bool> notified;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "atomic<bool> notified;" (binary_expression) "atomic<bool> notified" (binary_expression) "atomic<bool" (identifier) "atomic" (<) "<" (identifier) "bool" (>) ">" (identifier) "notified" (;) ";" (declaration) "const size_t iterationsBeforeYield;" (type_qualifier) "const" (const) "const" (primitive_type) "size_t" (identifier) "iterationsBeforeYield" (;) ";" (declaration) "const std::weak_ptr<DcpProducer> producerPtr;" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::weak_ptr<DcpProducer>" (:) ":" (:) ":" (identifier) "weak_ptr" (<) "<" (identifier) "DcpProducer" (>) ">" (identifier) "producerPtr" (;) ";" (ERROR) "}" (}) "}" (expression_statement) ";" (;) ";"
468
21
{"language": "c", "success": true, "metadata": {"lines": 89, "avg_line_length": 37.26, "nodes": 271, "errors": 0, "source_hash": "ce9e4e394f8204e625089599f852c2b1932815c19ed177ce91b26d1fc49763e7", "categorized_nodes": 193}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once", "parent": 0, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 12}}, {"id": 3, "type": "preproc_include", "text": "#include \"dcp/active_stream.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": "\"dcp/active_stream.h\"", "parent": 3, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 30}}, {"id": 6, "type": "preproc_include", "text": "#include \"globaltask.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": "\"globaltask.h\"", "parent": 6, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 23}}, {"id": 9, "type": "preproc_include", "text": "#include <memcached/engine_common.h>\n", "parent": null, "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": "system_lib_string", "text": "<memcached/engine_common.h>", "parent": 9, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 36}}, {"id": 12, "type": "preproc_include", "text": "#include <queue>\n", "parent": null, "children": [13, 14], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<queue>", "parent": 12, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 16}}, {"id": 15, "type": "preproc_include", "text": "#include <string>\n", "parent": null, "children": [16, 17], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<string>", "parent": 15, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 17}}, {"id": 18, "type": "preproc_include", "text": "#include <unordered_set>\n", "parent": null, "children": [19, 20], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 8}}, {"id": 20, "type": "system_lib_string", "text": "<unordered_set>", "parent": 18, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 24}}, {"id": 21, "type": "declaration", "text": "class ActiveStream;", "parent": null, "children": [22], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 19}}, {"id": 22, "type": "identifier", "text": "ActiveStream", "parent": 21, "children": [], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 18}}, {"id": 23, "type": "declaration", "text": "class DcpProducer;", "parent": null, "children": [24], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 18}}, {"id": 24, "type": "identifier", "text": "DcpProducer", "parent": 23, "children": [], "start_point": {"row": 29, "column": 6}, "end_point": {"row": 29, "column": 17}}, {"id": 25, "type": "declaration", "text": "class Stream;", "parent": null, "children": [26], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 13}}, {"id": 26, "type": "identifier", "text": "Stream", "parent": 25, "children": [], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 12}}, {"id": 27, "type": "ERROR", "text": "template <class E>\nclass StreamContainer;\n\nclass ActiveStreamCheckpointProcessorTask : public GlobalTask {\npublic:", "parent": null, "children": [28], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 35, "column": 7}}, {"id": 28, "type": "binary_expression", "text": "template <class E>\nclass StreamContainer;\n\nclass ActiveStreamCheckpointProcessorTask : public GlobalTask {\npublic", "parent": 27, "children": [29, 32, 34, 35], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 35, "column": 6}}, {"id": 29, "type": "binary_expression", "text": "template <class", "parent": 28, "children": [30, 31], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 15}}, {"id": 30, "type": "identifier", "text": "template", "parent": 29, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 8}}, {"id": 31, "type": "<", "text": "<", "parent": 29, "children": [], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 10}}, {"id": 32, "type": "ERROR", "text": "E", "parent": 28, "children": [33], "start_point": {"row": 31, "column": 16}, "end_point": {"row": 31, "column": 17}}, {"id": 33, "type": "identifier", "text": "E", "parent": 32, "children": [], "start_point": {"row": 31, "column": 16}, "end_point": {"row": 31, "column": 17}}, {"id": 34, "type": ">", "text": ">", "parent": 28, "children": [], "start_point": {"row": 31, "column": 17}, "end_point": {"row": 31, "column": 18}}, {"id": 35, "type": "ERROR", "text": "class StreamContainer;\n\nclass ActiveStreamCheckpointProcessorTask : public GlobalTask {", "parent": 28, "children": [36, 37, 38], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 34, "column": 63}}, {"id": 36, "type": "identifier", "text": "StreamContainer", "parent": 35, "children": [], "start_point": {"row": 32, "column": 6}, "end_point": {"row": 32, "column": 21}}, {"id": 37, "type": "identifier", "text": "ActiveStreamCheckpointProcessorTask", "parent": 35, "children": [], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 41}}, {"id": 38, "type": "identifier", "text": "GlobalTask", "parent": 35, "children": [], "start_point": {"row": 34, "column": 51}, "end_point": {"row": 34, "column": 61}}, {"id": 39, "type": "call_expression", "text": "ActiveStreamCheckpointProcessorTask(EventuallyPersistentEngine& e,\n std::shared_ptr<DcpProducer> p)", "parent": null, "children": [40, 41], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 37, "column": 71}}, {"id": 40, "type": "identifier", "text": "ActiveStreamCheckpointProcessorTask", "parent": 39, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 39}}, {"id": 41, "type": "argument_list", "text": "(EventuallyPersistentEngine& e,\n std::shared_ptr<DcpProducer> p)", "parent": 39, "children": [42, 45, 47], "start_point": {"row": 36, "column": 39}, "end_point": {"row": 37, "column": 71}}, {"id": 42, "type": "binary_expression", "text": "EventuallyPersistentEngine& e", "parent": 41, "children": [43, 44], "start_point": {"row": 36, "column": 40}, "end_point": {"row": 36, "column": 69}}, {"id": 43, "type": "identifier", "text": "EventuallyPersistentEngine", "parent": 42, "children": [], "start_point": {"row": 36, "column": 40}, "end_point": {"row": 36, "column": 66}}, {"id": 44, "type": "identifier", "text": "e", "parent": 42, "children": [], "start_point": {"row": 36, "column": 68}, "end_point": {"row": 36, "column": 69}}, {"id": 45, "type": "ERROR", "text": "std::", "parent": 41, "children": [46], "start_point": {"row": 37, "column": 40}, "end_point": {"row": 37, "column": 45}}, {"id": 46, "type": "identifier", "text": "std", "parent": 45, "children": [], "start_point": {"row": 37, "column": 40}, "end_point": {"row": 37, "column": 43}}, {"id": 47, "type": "binary_expression", "text": "shared_ptr<DcpProducer> p", "parent": 41, "children": [48, 52, 53], "start_point": {"row": 37, "column": 45}, "end_point": {"row": 37, "column": 70}}, {"id": 48, "type": "binary_expression", "text": "shared_ptr<DcpProducer", "parent": 47, "children": [49, 50, 51], "start_point": {"row": 37, "column": 45}, "end_point": {"row": 37, "column": 67}}, {"id": 49, "type": "identifier", "text": "shared_ptr", "parent": 48, "children": [], "start_point": {"row": 37, "column": 45}, "end_point": {"row": 37, "column": 55}}, {"id": 50, "type": "<", "text": "<", "parent": 48, "children": [], "start_point": {"row": 37, "column": 55}, "end_point": {"row": 37, "column": 56}}, {"id": 51, "type": "identifier", "text": "DcpProducer", "parent": 48, "children": [], "start_point": {"row": 37, "column": 56}, "end_point": {"row": 37, "column": 67}}, {"id": 52, "type": ">", "text": ">", "parent": 47, "children": [], "start_point": {"row": 37, "column": 67}, "end_point": {"row": 37, "column": 68}}, {"id": 53, "type": "identifier", "text": "p", "parent": 47, "children": [], "start_point": {"row": 37, "column": 69}, "end_point": {"row": 37, "column": 70}}, {"id": 54, "type": "labeled_statement", "text": "std::string getDescription() {\n return description;\n }", "parent": null, "children": [55, 56], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 41, "column": 5}}, {"id": 55, "type": "statement_identifier", "text": "std", "parent": 54, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 7}}, {"id": 56, "type": "ERROR", "text": ":string getDescription()", "parent": 54, "children": [57, 58], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 32}}, {"id": 57, "type": "type_identifier", "text": "string", "parent": 56, "children": [], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 15}}, {"id": 58, "type": "function_declarator", "text": "getDescription()", "parent": 56, "children": [59, 60], "start_point": {"row": 39, "column": 16}, "end_point": {"row": 39, "column": 32}}, {"id": 59, "type": "identifier", "text": "getDescription", "parent": 58, "children": [], "start_point": {"row": 39, "column": 16}, "end_point": {"row": 39, "column": 30}}, {"id": 60, "type": "parameter_list", "text": "()", "parent": 58, "children": [], "start_point": {"row": 39, "column": 30}, "end_point": {"row": 39, "column": 32}}, {"id": 61, "type": "return_statement", "text": "return description;", "parent": 54, "children": [62], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 27}}, {"id": 62, "type": "identifier", "text": "description", "parent": 61, "children": [], "start_point": {"row": 40, "column": 15}, "end_point": {"row": 40, "column": 26}}, {"id": 63, "type": "labeled_statement", "text": "std::chrono::microseconds maxExpectedDuration() {\n // Empirical evidence from perf runs suggests this task runs under\n // 210ms 99.9999% of the time.\n return std::chrono::milliseconds(210);\n }", "parent": null, "children": [64, 65], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 47, "column": 5}}, {"id": 64, "type": "statement_identifier", "text": "std", "parent": 63, "children": [], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 7}}, {"id": 65, "type": "labeled_statement", "text": "chrono::microseconds maxExpectedDuration() {\n // Empirical evidence from perf runs suggests this task runs under\n // 210ms 99.9999% of the time.\n return std::chrono::milliseconds(210);\n }", "parent": 63, "children": [66, 67], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 47, "column": 5}}, {"id": 66, "type": "statement_identifier", "text": "chrono", "parent": 65, "children": [], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 15}}, {"id": 67, "type": "ERROR", "text": ":microseconds maxExpectedDuration()", "parent": 65, "children": [68, 69], "start_point": {"row": 43, "column": 16}, "end_point": {"row": 43, "column": 51}}, {"id": 68, "type": "type_identifier", "text": "microseconds", "parent": 67, "children": [], "start_point": {"row": 43, "column": 17}, "end_point": {"row": 43, "column": 29}}, {"id": 69, "type": "function_declarator", "text": "maxExpectedDuration()", "parent": 67, "children": [70, 71], "start_point": {"row": 43, "column": 30}, "end_point": {"row": 43, "column": 51}}, {"id": 70, "type": "identifier", "text": "maxExpectedDuration", "parent": 69, "children": [], "start_point": {"row": 43, "column": 30}, "end_point": {"row": 43, "column": 49}}, {"id": 71, "type": "parameter_list", "text": "()", "parent": 69, "children": [], "start_point": {"row": 43, "column": 49}, "end_point": {"row": 43, "column": 51}}, {"id": 72, "type": "return_statement", "text": "return std::chrono::milliseconds(210);", "parent": 65, "children": [73, 76], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 46}}, {"id": 73, "type": "ERROR", "text": "std::chrono::", "parent": 72, "children": [74, 75], "start_point": {"row": 46, "column": 15}, "end_point": {"row": 46, "column": 28}}, {"id": 74, "type": "identifier", "text": "std", "parent": 73, "children": [], "start_point": {"row": 46, "column": 15}, "end_point": {"row": 46, "column": 18}}, {"id": 75, "type": "identifier", "text": "chrono", "parent": 73, "children": [], "start_point": {"row": 46, "column": 20}, "end_point": {"row": 46, "column": 26}}, {"id": 76, "type": "call_expression", "text": "milliseconds(210)", "parent": 72, "children": [77, 78], "start_point": {"row": 46, "column": 28}, "end_point": {"row": 46, "column": 45}}, {"id": 77, "type": "identifier", "text": "milliseconds", "parent": 76, "children": [], "start_point": {"row": 46, "column": 28}, "end_point": {"row": 46, "column": 40}}, {"id": 78, "type": "argument_list", "text": "(210)", "parent": 76, "children": [79], "start_point": {"row": 46, "column": 40}, "end_point": {"row": 46, "column": 45}}, {"id": 79, "type": "number_literal", "text": "210", "parent": 78, "children": [], "start_point": {"row": 46, "column": 41}, "end_point": {"row": 46, "column": 44}}, {"id": 80, "type": "declaration", "text": "bool run();", "parent": null, "children": [81, 82], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 15}}, {"id": 81, "type": "primitive_type", "text": "bool", "parent": 80, "children": [], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 8}}, {"id": 82, "type": "function_declarator", "text": "run()", "parent": 80, "children": [83, 84], "start_point": {"row": 49, "column": 9}, "end_point": {"row": 49, "column": 14}}, {"id": 83, "type": "identifier", "text": "run", "parent": 82, "children": [], "start_point": {"row": 49, "column": 9}, "end_point": {"row": 49, "column": 12}}, {"id": 84, "type": "parameter_list", "text": "()", "parent": 82, "children": [], "start_point": {"row": 49, "column": 12}, "end_point": {"row": 49, "column": 14}}, {"id": 85, "type": "declaration", "text": "void schedule(std::shared_ptr<ActiveStream> stream);", "parent": null, "children": [86, 87], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 56}}, {"id": 86, "type": "primitive_type", "text": "void", "parent": 85, "children": [], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 8}}, {"id": 87, "type": "function_declarator", "text": "schedule(std::shared_ptr<ActiveStream> stream)", "parent": 85, "children": [88, 89], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 55}}, {"id": 88, "type": "identifier", "text": "schedule", "parent": 87, "children": [], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 17}}, {"id": 89, "type": "parameter_list", "text": "(std::shared_ptr<ActiveStream> stream)", "parent": 87, "children": [90], "start_point": {"row": 50, "column": 17}, "end_point": {"row": 50, "column": 55}}, {"id": 90, "type": "parameter_declaration", "text": "std::shared_ptr<ActiveStream> stream", "parent": 89, "children": [91, 92, 97], "start_point": {"row": 50, "column": 18}, "end_point": {"row": 50, "column": 54}}, {"id": 91, "type": "type_identifier", "text": "std", "parent": 90, "children": [], "start_point": {"row": 50, "column": 18}, "end_point": {"row": 50, "column": 21}}, {"id": 92, "type": "ERROR", "text": "::shared_ptr<ActiveStream>", "parent": 90, "children": [93, 94, 95, 96], "start_point": {"row": 50, "column": 21}, "end_point": {"row": 50, "column": 47}}, {"id": 93, "type": "identifier", "text": "shared_ptr", "parent": 92, "children": [], "start_point": {"row": 50, "column": 23}, "end_point": {"row": 50, "column": 33}}, {"id": 94, "type": "<", "text": "<", "parent": 92, "children": [], "start_point": {"row": 50, "column": 33}, "end_point": {"row": 50, "column": 34}}, {"id": 95, "type": "identifier", "text": "ActiveStream", "parent": 92, "children": [], "start_point": {"row": 50, "column": 34}, "end_point": {"row": 50, "column": 46}}, {"id": 96, "type": ">", "text": ">", "parent": 92, "children": [], "start_point": {"row": 50, "column": 46}, "end_point": {"row": 50, "column": 47}}, {"id": 97, "type": "identifier", "text": "stream", "parent": 90, "children": [], "start_point": {"row": 50, "column": 48}, "end_point": {"row": 50, "column": 54}}, {"id": 98, "type": "declaration", "text": "void wakeup();", "parent": null, "children": [99, 100], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 18}}, {"id": 99, "type": "primitive_type", "text": "void", "parent": 98, "children": [], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 8}}, {"id": 100, "type": "function_declarator", "text": "wakeup()", "parent": 98, "children": [101, 102], "start_point": {"row": 51, "column": 9}, "end_point": {"row": 51, "column": 17}}, {"id": 101, "type": "identifier", "text": "wakeup", "parent": 100, "children": [], "start_point": {"row": 51, "column": 9}, "end_point": {"row": 51, "column": 15}}, {"id": 102, "type": "parameter_list", "text": "()", "parent": 100, "children": [], "start_point": {"row": 51, "column": 15}, "end_point": {"row": 51, "column": 17}}, {"id": 103, "type": "declaration", "text": "void cancelTask();", "parent": null, "children": [104, 105], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 22}}, {"id": 104, "type": "primitive_type", "text": "void", "parent": 103, "children": [], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 8}}, {"id": 105, "type": "function_declarator", "text": "cancelTask()", "parent": 103, "children": [106, 107], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 21}}, {"id": 106, "type": "identifier", "text": "cancelTask", "parent": 105, "children": [], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 19}}, {"id": 107, "type": "parameter_list", "text": "()", "parent": 105, "children": [], "start_point": {"row": 54, "column": 19}, "end_point": {"row": 54, "column": 21}}, {"id": 108, "type": "function_definition", "text": "size_t queueSize() {\n LockHolder lh(workQueueLock);\n return queue.size();\n }", "parent": null, "children": [109, 110], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 60, "column": 5}}, {"id": 109, "type": "primitive_type", "text": "size_t", "parent": 108, "children": [], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 10}}, {"id": 110, "type": "function_declarator", "text": "queueSize()", "parent": 108, "children": [111, 112], "start_point": {"row": 57, "column": 11}, "end_point": {"row": 57, "column": 22}}, {"id": 111, "type": "identifier", "text": "queueSize", "parent": 110, "children": [], "start_point": {"row": 57, "column": 11}, "end_point": {"row": 57, "column": 20}}, {"id": 112, "type": "parameter_list", "text": "()", "parent": 110, "children": [], "start_point": {"row": 57, "column": 20}, "end_point": {"row": 57, "column": 22}}, {"id": 113, "type": "declaration", "text": "LockHolder lh(workQueueLock);", "parent": 108, "children": [114, 115], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 37}}, {"id": 114, "type": "type_identifier", "text": "LockHolder", "parent": 113, "children": [], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 18}}, {"id": 115, "type": "function_declarator", "text": "lh(workQueueLock)", "parent": 113, "children": [116, 117], "start_point": {"row": 58, "column": 19}, "end_point": {"row": 58, "column": 36}}, {"id": 116, "type": "identifier", "text": "lh", "parent": 115, "children": [], "start_point": {"row": 58, "column": 19}, "end_point": {"row": 58, "column": 21}}, {"id": 117, "type": "parameter_list", "text": "(workQueueLock)", "parent": 115, "children": [118], "start_point": {"row": 58, "column": 21}, "end_point": {"row": 58, "column": 36}}, {"id": 118, "type": "parameter_declaration", "text": "workQueueLock", "parent": 117, "children": [119], "start_point": {"row": 58, "column": 22}, "end_point": {"row": 58, "column": 35}}, {"id": 119, "type": "type_identifier", "text": "workQueueLock", "parent": 118, "children": [], "start_point": {"row": 58, "column": 22}, "end_point": {"row": 58, "column": 35}}, {"id": 120, "type": "return_statement", "text": "return queue.size();", "parent": 108, "children": [121], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 28}}, {"id": 121, "type": "call_expression", "text": "queue.size()", "parent": 120, "children": [122, 125], "start_point": {"row": 59, "column": 15}, "end_point": {"row": 59, "column": 27}}, {"id": 122, "type": "field_expression", "text": "queue.size", "parent": 121, "children": [123, 124], "start_point": {"row": 59, "column": 15}, "end_point": {"row": 59, "column": 25}}, {"id": 123, "type": "identifier", "text": "queue", "parent": 122, "children": [], "start_point": {"row": 59, "column": 15}, "end_point": {"row": 59, "column": 20}}, {"id": 124, "type": "field_identifier", "text": "size", "parent": 122, "children": [], "start_point": {"row": 59, "column": 21}, "end_point": {"row": 59, "column": 25}}, {"id": 125, "type": "argument_list", "text": "()", "parent": 121, "children": [], "start_point": {"row": 59, "column": 25}, "end_point": {"row": 59, "column": 27}}, {"id": 126, "type": "ERROR", "text": "void addStats(const std::string& name,\n const AddStatFn& add_stat,\n const void* c) const", "parent": null, "children": [127, 128], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 65, "column": 38}}, {"id": 127, "type": "primitive_type", "text": "void", "parent": 126, "children": [], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 8}}, {"id": 128, "type": "function_declarator", "text": "addStats(const std::string& name,\n const AddStatFn& add_stat,\n const void* c) const", "parent": 126, "children": [129, 130], "start_point": {"row": 63, "column": 9}, "end_point": {"row": 65, "column": 38}}, {"id": 129, "type": "identifier", "text": "addStats", "parent": 128, "children": [], "start_point": {"row": 63, "column": 9}, "end_point": {"row": 63, "column": 17}}, {"id": 130, "type": "parameter_list", "text": "(const std::string& name,\n const AddStatFn& add_stat,\n const void* c)", "parent": 128, "children": [131, 136, 139], "start_point": {"row": 63, "column": 17}, "end_point": {"row": 65, "column": 32}}, {"id": 131, "type": "parameter_declaration", "text": "const std::string& name", "parent": 130, "children": [132, 133, 135], "start_point": {"row": 63, "column": 18}, "end_point": {"row": 63, "column": 41}}, {"id": 132, "type": "type_identifier", "text": "std", "parent": 131, "children": [], "start_point": {"row": 63, "column": 24}, "end_point": {"row": 63, "column": 27}}, {"id": 133, "type": "ERROR", "text": "::string&", "parent": 131, "children": [134], "start_point": {"row": 63, "column": 27}, "end_point": {"row": 63, "column": 36}}, {"id": 134, "type": "identifier", "text": "string", "parent": 133, "children": [], "start_point": {"row": 63, "column": 29}, "end_point": {"row": 63, "column": 35}}, {"id": 135, "type": "identifier", "text": "name", "parent": 131, "children": [], "start_point": {"row": 63, "column": 37}, "end_point": {"row": 63, "column": 41}}, {"id": 136, "type": "parameter_declaration", "text": "const AddStatFn& add_stat", "parent": 130, "children": [137, 138], "start_point": {"row": 64, "column": 18}, "end_point": {"row": 64, "column": 43}}, {"id": 137, "type": "type_identifier", "text": "AddStatFn", "parent": 136, "children": [], "start_point": {"row": 64, "column": 24}, "end_point": {"row": 64, "column": 33}}, {"id": 138, "type": "identifier", "text": "add_stat", "parent": 136, "children": [], "start_point": {"row": 64, "column": 35}, "end_point": {"row": 64, "column": 43}}, {"id": 139, "type": "parameter_declaration", "text": "const void* c", "parent": 130, "children": [140, 141], "start_point": {"row": 65, "column": 18}, "end_point": {"row": 65, "column": 31}}, {"id": 140, "type": "primitive_type", "text": "void", "parent": 139, "children": [], "start_point": {"row": 65, "column": 24}, "end_point": {"row": 65, "column": 28}}, {"id": 141, "type": "pointer_declarator", "text": "* c", "parent": 139, "children": [142, 143], "start_point": {"row": 65, "column": 28}, "end_point": {"row": 65, "column": 31}}, {"id": 142, "type": "*", "text": "*", "parent": 141, "children": [], "start_point": {"row": 65, "column": 28}, "end_point": {"row": 65, "column": 29}}, {"id": 143, "type": "identifier", "text": "c", "parent": 141, "children": [], "start_point": {"row": 65, "column": 30}, "end_point": {"row": 65, "column": 31}}, {"id": 144, "type": "labeled_statement", "text": "private:\n std::shared_ptr<StreamContainer<std::shared_ptr<Stream>>> queuePop();", "parent": null, "children": [145], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 68, "column": 73}}, {"id": 145, "type": "labeled_statement", "text": "std::shared_ptr<StreamContainer<std::shared_ptr<Stream>>> queuePop();", "parent": 144, "children": [146, 147], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 73}}, {"id": 146, "type": "statement_identifier", "text": "std", "parent": 145, "children": [], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 7}}, {"id": 147, "type": "ERROR", "text": "::shared_ptr<StreamContainer<std:", "parent": 145, "children": [148], "start_point": {"row": 68, "column": 7}, "end_point": {"row": 68, "column": 40}}, {"id": 148, "type": "binary_expression", "text": "shared_ptr<StreamContainer<std", "parent": 147, "children": [149, 153, 154], "start_point": {"row": 68, "column": 9}, "end_point": {"row": 68, "column": 39}}, {"id": 149, "type": "binary_expression", "text": "shared_ptr<StreamContainer", "parent": 148, "children": [150, 151, 152], "start_point": {"row": 68, "column": 9}, "end_point": {"row": 68, "column": 35}}, {"id": 150, "type": "identifier", "text": "shared_ptr", "parent": 149, "children": [], "start_point": {"row": 68, "column": 9}, "end_point": {"row": 68, "column": 19}}, {"id": 151, "type": "<", "text": "<", "parent": 149, "children": [], "start_point": {"row": 68, "column": 19}, "end_point": {"row": 68, "column": 20}}, {"id": 152, "type": "identifier", "text": "StreamContainer", "parent": 149, "children": [], "start_point": {"row": 68, "column": 20}, "end_point": {"row": 68, "column": 35}}, {"id": 153, "type": "<", "text": "<", "parent": 148, "children": [], "start_point": {"row": 68, "column": 35}, "end_point": {"row": 68, "column": 36}}, {"id": 154, "type": "identifier", "text": "std", "parent": 148, "children": [], "start_point": {"row": 68, "column": 36}, "end_point": {"row": 68, "column": 39}}, {"id": 155, "type": "binary_expression", "text": "shared_ptr<Stream>>> queuePop()", "parent": 145, "children": [156, 157, 158], "start_point": {"row": 68, "column": 41}, "end_point": {"row": 68, "column": 72}}, {"id": 156, "type": "identifier", "text": "shared_ptr", "parent": 155, "children": [], "start_point": {"row": 68, "column": 41}, "end_point": {"row": 68, "column": 51}}, {"id": 157, "type": "<", "text": "<", "parent": 155, "children": [], "start_point": {"row": 68, "column": 51}, "end_point": {"row": 68, "column": 52}}, {"id": 158, "type": "binary_expression", "text": "Stream>>> queuePop()", "parent": 155, "children": [159, 160, 161, 163], "start_point": {"row": 68, "column": 52}, "end_point": {"row": 68, "column": 72}}, {"id": 159, "type": "identifier", "text": "Stream", "parent": 158, "children": [], "start_point": {"row": 68, "column": 52}, "end_point": {"row": 68, "column": 58}}, {"id": 160, "type": ">>", "text": ">>", "parent": 158, "children": [], "start_point": {"row": 68, "column": 58}, "end_point": {"row": 68, "column": 60}}, {"id": 161, "type": "ERROR", "text": ">", "parent": 158, "children": [162], "start_point": {"row": 68, "column": 60}, "end_point": {"row": 68, "column": 61}}, {"id": 162, "type": ">", "text": ">", "parent": 161, "children": [], "start_point": {"row": 68, "column": 60}, "end_point": {"row": 68, "column": 61}}, {"id": 163, "type": "call_expression", "text": "queuePop()", "parent": 158, "children": [164, 165], "start_point": {"row": 68, "column": 62}, "end_point": {"row": 68, "column": 72}}, {"id": 164, "type": "identifier", "text": "queuePop", "parent": 163, "children": [], "start_point": {"row": 68, "column": 62}, "end_point": {"row": 68, "column": 70}}, {"id": 165, "type": "argument_list", "text": "()", "parent": 163, "children": [], "start_point": {"row": 68, "column": 70}, "end_point": {"row": 68, "column": 72}}, {"id": 166, "type": "function_definition", "text": "bool queueEmpty() {\n LockHolder lh(workQueueLock);\n return queue.empty();\n }", "parent": null, "children": [167, 168], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 73, "column": 5}}, {"id": 167, "type": "primitive_type", "text": "bool", "parent": 166, "children": [], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 8}}, {"id": 168, "type": "function_declarator", "text": "queueEmpty()", "parent": 166, "children": [169, 170], "start_point": {"row": 70, "column": 9}, "end_point": {"row": 70, "column": 21}}, {"id": 169, "type": "identifier", "text": "queueEmpty", "parent": 168, "children": [], "start_point": {"row": 70, "column": 9}, "end_point": {"row": 70, "column": 19}}, {"id": 170, "type": "parameter_list", "text": "()", "parent": 168, "children": [], "start_point": {"row": 70, "column": 19}, "end_point": {"row": 70, "column": 21}}, {"id": 171, "type": "declaration", "text": "LockHolder lh(workQueueLock);", "parent": 166, "children": [172, 173], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 37}}, {"id": 172, "type": "type_identifier", "text": "LockHolder", "parent": 171, "children": [], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 18}}, {"id": 173, "type": "function_declarator", "text": "lh(workQueueLock)", "parent": 171, "children": [174, 175], "start_point": {"row": 71, "column": 19}, "end_point": {"row": 71, "column": 36}}, {"id": 174, "type": "identifier", "text": "lh", "parent": 173, "children": [], "start_point": {"row": 71, "column": 19}, "end_point": {"row": 71, "column": 21}}, {"id": 175, "type": "parameter_list", "text": "(workQueueLock)", "parent": 173, "children": [176], "start_point": {"row": 71, "column": 21}, "end_point": {"row": 71, "column": 36}}, {"id": 176, "type": "parameter_declaration", "text": "workQueueLock", "parent": 175, "children": [177], "start_point": {"row": 71, "column": 22}, "end_point": {"row": 71, "column": 35}}, {"id": 177, "type": "type_identifier", "text": "workQueueLock", "parent": 176, "children": [], "start_point": {"row": 71, "column": 22}, "end_point": {"row": 71, "column": 35}}, {"id": 178, "type": "return_statement", "text": "return queue.empty();", "parent": 166, "children": [179], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 29}}, {"id": 179, "type": "call_expression", "text": "queue.empty()", "parent": 178, "children": [180, 183], "start_point": {"row": 72, "column": 15}, "end_point": {"row": 72, "column": 28}}, {"id": 180, "type": "field_expression", "text": "queue.empty", "parent": 179, "children": [181, 182], "start_point": {"row": 72, "column": 15}, "end_point": {"row": 72, "column": 26}}, {"id": 181, "type": "identifier", "text": "queue", "parent": 180, "children": [], "start_point": {"row": 72, "column": 15}, "end_point": {"row": 72, "column": 20}}, {"id": 182, "type": "field_identifier", "text": "empty", "parent": 180, "children": [], "start_point": {"row": 72, "column": 21}, "end_point": {"row": 72, "column": 26}}, {"id": 183, "type": "argument_list", "text": "()", "parent": 179, "children": [], "start_point": {"row": 72, "column": 26}, "end_point": {"row": 72, "column": 28}}, {"id": 184, "type": "function_definition", "text": "void pushUnique(Vbid vbid) {\n LockHolder lh(workQueueLock);\n if (queuedVbuckets.count(vbid) == 0) {\n queue.push(vbid);\n queuedVbuckets.insert(vbid);\n }\n }", "parent": null, "children": [185, 186], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 81, "column": 5}}, {"id": 185, "type": "primitive_type", "text": "void", "parent": 184, "children": [], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 8}}, {"id": 186, "type": "function_declarator", "text": "pushUnique(Vbid vbid)", "parent": 184, "children": [187, 188], "start_point": {"row": 75, "column": 9}, "end_point": {"row": 75, "column": 30}}, {"id": 187, "type": "identifier", "text": "pushUnique", "parent": 186, "children": [], "start_point": {"row": 75, "column": 9}, "end_point": {"row": 75, "column": 19}}, {"id": 188, "type": "parameter_list", "text": "(Vbid vbid)", "parent": 186, "children": [189], "start_point": {"row": 75, "column": 19}, "end_point": {"row": 75, "column": 30}}, {"id": 189, "type": "parameter_declaration", "text": "Vbid vbid", "parent": 188, "children": [190, 191], "start_point": {"row": 75, "column": 20}, "end_point": {"row": 75, "column": 29}}, {"id": 190, "type": "type_identifier", "text": "Vbid", "parent": 189, "children": [], "start_point": {"row": 75, "column": 20}, "end_point": {"row": 75, "column": 24}}, {"id": 191, "type": "identifier", "text": "vbid", "parent": 189, "children": [], "start_point": {"row": 75, "column": 25}, "end_point": {"row": 75, "column": 29}}, {"id": 192, "type": "declaration", "text": "LockHolder lh(workQueueLock);", "parent": 184, "children": [193, 194], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 37}}, {"id": 193, "type": "type_identifier", "text": "LockHolder", "parent": 192, "children": [], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 18}}, {"id": 194, "type": "function_declarator", "text": "lh(workQueueLock)", "parent": 192, "children": [195, 196], "start_point": {"row": 76, "column": 19}, "end_point": {"row": 76, "column": 36}}, {"id": 195, "type": "identifier", "text": "lh", "parent": 194, "children": [], "start_point": {"row": 76, "column": 19}, "end_point": {"row": 76, "column": 21}}, {"id": 196, "type": "parameter_list", "text": "(workQueueLock)", "parent": 194, "children": [197], "start_point": {"row": 76, "column": 21}, "end_point": {"row": 76, "column": 36}}, {"id": 197, "type": "parameter_declaration", "text": "workQueueLock", "parent": 196, "children": [198], "start_point": {"row": 76, "column": 22}, "end_point": {"row": 76, "column": 35}}, {"id": 198, "type": "type_identifier", "text": "workQueueLock", "parent": 197, "children": [], "start_point": {"row": 76, "column": 22}, "end_point": {"row": 76, "column": 35}}, {"id": 199, "type": "if_statement", "text": "if (queuedVbuckets.count(vbid) == 0) {\n queue.push(vbid);\n queuedVbuckets.insert(vbid);\n }", "parent": 184, "children": [200], "start_point": {"row": 77, "column": 8}, "end_point": {"row": 80, "column": 9}}, {"id": 200, "type": "parenthesized_expression", "text": "(queuedVbuckets.count(vbid) == 0)", "parent": 199, "children": [201], "start_point": {"row": 77, "column": 11}, "end_point": {"row": 77, "column": 44}}, {"id": 201, "type": "binary_expression", "text": "queuedVbuckets.count(vbid) == 0", "parent": 200, "children": [202, 208, 209], "start_point": {"row": 77, "column": 12}, "end_point": {"row": 77, "column": 43}}, {"id": 202, "type": "call_expression", "text": "queuedVbuckets.count(vbid)", "parent": 201, "children": [203, 206], "start_point": {"row": 77, "column": 12}, "end_point": {"row": 77, "column": 38}}, {"id": 203, "type": "field_expression", "text": "queuedVbuckets.count", "parent": 202, "children": [204, 205], "start_point": {"row": 77, "column": 12}, "end_point": {"row": 77, "column": 32}}, {"id": 204, "type": "identifier", "text": "queuedVbuckets", "parent": 203, "children": [], "start_point": {"row": 77, "column": 12}, "end_point": {"row": 77, "column": 26}}, {"id": 205, "type": "field_identifier", "text": "count", "parent": 203, "children": [], "start_point": {"row": 77, "column": 27}, "end_point": {"row": 77, "column": 32}}, {"id": 206, "type": "argument_list", "text": "(vbid)", "parent": 202, "children": [207], "start_point": {"row": 77, "column": 32}, "end_point": {"row": 77, "column": 38}}, {"id": 207, "type": "identifier", "text": "vbid", "parent": 206, "children": [], "start_point": {"row": 77, "column": 33}, "end_point": {"row": 77, "column": 37}}, {"id": 208, "type": "==", "text": "==", "parent": 201, "children": [], "start_point": {"row": 77, "column": 39}, "end_point": {"row": 77, "column": 41}}, {"id": 209, "type": "number_literal", "text": "0", "parent": 201, "children": [], "start_point": {"row": 77, "column": 42}, "end_point": {"row": 77, "column": 43}}, {"id": 210, "type": "call_expression", "text": "queue.push(vbid)", "parent": 199, "children": [211, 214], "start_point": {"row": 78, "column": 12}, "end_point": {"row": 78, "column": 28}}, {"id": 211, "type": "field_expression", "text": "queue.push", "parent": 210, "children": [212, 213], "start_point": {"row": 78, "column": 12}, "end_point": {"row": 78, "column": 22}}, {"id": 212, "type": "identifier", "text": "queue", "parent": 211, "children": [], "start_point": {"row": 78, "column": 12}, "end_point": {"row": 78, "column": 17}}, {"id": 213, "type": "field_identifier", "text": "push", "parent": 211, "children": [], "start_point": {"row": 78, "column": 18}, "end_point": {"row": 78, "column": 22}}, {"id": 214, "type": "argument_list", "text": "(vbid)", "parent": 210, "children": [215], "start_point": {"row": 78, "column": 22}, "end_point": {"row": 78, "column": 28}}, {"id": 215, "type": "identifier", "text": "vbid", "parent": 214, "children": [], "start_point": {"row": 78, "column": 23}, "end_point": {"row": 78, "column": 27}}, {"id": 216, "type": "call_expression", "text": "queuedVbuckets.insert(vbid)", "parent": 199, "children": [217, 220], "start_point": {"row": 79, "column": 12}, "end_point": {"row": 79, "column": 39}}, {"id": 217, "type": "field_expression", "text": "queuedVbuckets.insert", "parent": 216, "children": [218, 219], "start_point": {"row": 79, "column": 12}, "end_point": {"row": 79, "column": 33}}, {"id": 218, "type": "identifier", "text": "queuedVbuckets", "parent": 217, "children": [], "start_point": {"row": 79, "column": 12}, "end_point": {"row": 79, "column": 26}}, {"id": 219, "type": "field_identifier", "text": "insert", "parent": 217, "children": [], "start_point": {"row": 79, "column": 27}, "end_point": {"row": 79, "column": 33}}, {"id": 220, "type": "argument_list", "text": "(vbid)", "parent": 216, "children": [221], "start_point": {"row": 79, "column": 33}, "end_point": {"row": 79, "column": 39}}, {"id": 221, "type": "identifier", "text": "vbid", "parent": 220, "children": [], "start_point": {"row": 79, "column": 34}, "end_point": {"row": 79, "column": 38}}, {"id": 222, "type": "declaration", "text": "const std::string description;", "parent": null, "children": [223, 224, 226], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 34}}, {"id": 223, "type": "type_identifier", "text": "std", "parent": 222, "children": [], "start_point": {"row": 84, "column": 10}, "end_point": {"row": 84, "column": 13}}, {"id": 224, "type": "ERROR", "text": "::string", "parent": 222, "children": [225], "start_point": {"row": 84, "column": 13}, "end_point": {"row": 84, "column": 21}}, {"id": 225, "type": "identifier", "text": "string", "parent": 224, "children": [], "start_point": {"row": 84, "column": 15}, "end_point": {"row": 84, "column": 21}}, {"id": 226, "type": "identifier", "text": "description", "parent": 222, "children": [], "start_point": {"row": 84, "column": 22}, "end_point": {"row": 84, "column": 33}}, {"id": 227, "type": "declaration", "text": "mutable std::mutex workQueueLock;", "parent": null, "children": [228, 229, 232], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 37}}, {"id": 228, "type": "type_identifier", "text": "mutable", "parent": 227, "children": [], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 11}}, {"id": 229, "type": "ERROR", "text": "std::mutex", "parent": 227, "children": [230, 231], "start_point": {"row": 87, "column": 12}, "end_point": {"row": 87, "column": 22}}, {"id": 230, "type": "identifier", "text": "std", "parent": 229, "children": [], "start_point": {"row": 87, "column": 12}, "end_point": {"row": 87, "column": 15}}, {"id": 231, "type": "identifier", "text": "mutex", "parent": 229, "children": [], "start_point": {"row": 87, "column": 17}, "end_point": {"row": 87, "column": 22}}, {"id": 232, "type": "identifier", "text": "workQueueLock", "parent": 227, "children": [], "start_point": {"row": 87, "column": 23}, "end_point": {"row": 87, "column": 36}}, {"id": 233, "type": "labeled_statement", "text": "std::queue<Vbid> queue;", "parent": null, "children": [234], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 27}}, {"id": 234, "type": "statement_identifier", "text": "std", "parent": 233, "children": [], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 7}}, {"id": 235, "type": "binary_expression", "text": "queue<Vbid> queue", "parent": 233, "children": [236, 240, 241], "start_point": {"row": 101, "column": 9}, "end_point": {"row": 101, "column": 26}}, {"id": 236, "type": "binary_expression", "text": "queue<Vbid", "parent": 235, "children": [237, 238, 239], "start_point": {"row": 101, "column": 9}, "end_point": {"row": 101, "column": 19}}, {"id": 237, "type": "identifier", "text": "queue", "parent": 236, "children": [], "start_point": {"row": 101, "column": 9}, "end_point": {"row": 101, "column": 14}}, {"id": 238, "type": "<", "text": "<", "parent": 236, "children": [], "start_point": {"row": 101, "column": 14}, "end_point": {"row": 101, "column": 15}}, {"id": 239, "type": "identifier", "text": "Vbid", "parent": 236, "children": [], "start_point": {"row": 101, "column": 15}, "end_point": {"row": 101, "column": 19}}, {"id": 240, "type": ">", "text": ">", "parent": 235, "children": [], "start_point": {"row": 101, "column": 19}, "end_point": {"row": 101, "column": 20}}, {"id": 241, "type": "identifier", "text": "queue", "parent": 235, "children": [], "start_point": {"row": 101, "column": 21}, "end_point": {"row": 101, "column": 26}}, {"id": 242, "type": "labeled_statement", "text": "std::unordered_set<Vbid> queuedVbuckets;", "parent": null, "children": [243], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 44}}, {"id": 243, "type": "statement_identifier", "text": "std", "parent": 242, "children": [], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 7}}, {"id": 244, "type": "binary_expression", "text": "unordered_set<Vbid> queuedVbuckets", "parent": 242, "children": [245, 249, 250], "start_point": {"row": 102, "column": 9}, "end_point": {"row": 102, "column": 43}}, {"id": 245, "type": "binary_expression", "text": "unordered_set<Vbid", "parent": 244, "children": [246, 247, 248], "start_point": {"row": 102, "column": 9}, "end_point": {"row": 102, "column": 27}}, {"id": 246, "type": "identifier", "text": "unordered_set", "parent": 245, "children": [], "start_point": {"row": 102, "column": 9}, "end_point": {"row": 102, "column": 22}}, {"id": 247, "type": "<", "text": "<", "parent": 245, "children": [], "start_point": {"row": 102, "column": 22}, "end_point": {"row": 102, "column": 23}}, {"id": 248, "type": "identifier", "text": "Vbid", "parent": 245, "children": [], "start_point": {"row": 102, "column": 23}, "end_point": {"row": 102, "column": 27}}, {"id": 249, "type": ">", "text": ">", "parent": 244, "children": [], "start_point": {"row": 102, "column": 27}, "end_point": {"row": 102, "column": 28}}, {"id": 250, "type": "identifier", "text": "queuedVbuckets", "parent": 244, "children": [], "start_point": {"row": 102, "column": 29}, "end_point": {"row": 102, "column": 43}}, {"id": 251, "type": "labeled_statement", "text": "std::atomic<bool> notified;", "parent": null, "children": [252], "start_point": {"row": 104, "column": 4}, "end_point": {"row": 104, "column": 31}}, {"id": 252, "type": "statement_identifier", "text": "std", "parent": 251, "children": [], "start_point": {"row": 104, "column": 4}, "end_point": {"row": 104, "column": 7}}, {"id": 253, "type": "binary_expression", "text": "atomic<bool> notified", "parent": 251, "children": [254, 258, 259], "start_point": {"row": 104, "column": 9}, "end_point": {"row": 104, "column": 30}}, {"id": 254, "type": "binary_expression", "text": "atomic<bool", "parent": 253, "children": [255, 256, 257], "start_point": {"row": 104, "column": 9}, "end_point": {"row": 104, "column": 20}}, {"id": 255, "type": "identifier", "text": "atomic", "parent": 254, "children": [], "start_point": {"row": 104, "column": 9}, "end_point": {"row": 104, "column": 15}}, {"id": 256, "type": "<", "text": "<", "parent": 254, "children": [], "start_point": {"row": 104, "column": 15}, "end_point": {"row": 104, "column": 16}}, {"id": 257, "type": "identifier", "text": "bool", "parent": 254, "children": [], "start_point": {"row": 104, "column": 16}, "end_point": {"row": 104, "column": 20}}, {"id": 258, "type": ">", "text": ">", "parent": 253, "children": [], "start_point": {"row": 104, "column": 20}, "end_point": {"row": 104, "column": 21}}, {"id": 259, "type": "identifier", "text": "notified", "parent": 253, "children": [], "start_point": {"row": 104, "column": 22}, "end_point": {"row": 104, "column": 30}}, {"id": 260, "type": "declaration", "text": "const size_t iterationsBeforeYield;", "parent": null, "children": [261, 262], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 39}}, {"id": 261, "type": "primitive_type", "text": "size_t", "parent": 260, "children": [], "start_point": {"row": 105, "column": 10}, "end_point": {"row": 105, "column": 16}}, {"id": 262, "type": "identifier", "text": "iterationsBeforeYield", "parent": 260, "children": [], "start_point": {"row": 105, "column": 17}, "end_point": {"row": 105, "column": 38}}, {"id": 263, "type": "declaration", "text": "const std::weak_ptr<DcpProducer> producerPtr;", "parent": null, "children": [264, 265, 270], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 49}}, {"id": 264, "type": "type_identifier", "text": "std", "parent": 263, "children": [], "start_point": {"row": 107, "column": 10}, "end_point": {"row": 107, "column": 13}}, {"id": 265, "type": "ERROR", "text": "::weak_ptr<DcpProducer>", "parent": 263, "children": [266, 267, 268, 269], "start_point": {"row": 107, "column": 13}, "end_point": {"row": 107, "column": 36}}, {"id": 266, "type": "identifier", "text": "weak_ptr", "parent": 265, "children": [], "start_point": {"row": 107, "column": 15}, "end_point": {"row": 107, "column": 23}}, {"id": 267, "type": "<", "text": "<", "parent": 265, "children": [], "start_point": {"row": 107, "column": 23}, "end_point": {"row": 107, "column": 24}}, {"id": 268, "type": "identifier", "text": "DcpProducer", "parent": 265, "children": [], "start_point": {"row": 107, "column": 24}, "end_point": {"row": 107, "column": 35}}, {"id": 269, "type": ">", "text": ">", "parent": 265, "children": [], "start_point": {"row": 107, "column": 35}, "end_point": {"row": 107, "column": 36}}, {"id": 270, "type": "identifier", "text": "producerPtr", "parent": 263, "children": [], "start_point": {"row": 107, "column": 37}, "end_point": {"row": 107, "column": 48}}]}, "node_categories": {"declarations": {"functions": [58, 69, 82, 87, 100, 105, 108, 110, 115, 128, 166, 168, 173, 184, 186, 194], "variables": [21, 23, 25, 80, 85, 90, 98, 103, 113, 118, 131, 136, 139, 171, 176, 189, 192, 197, 222, 227, 260, 263], "classes": [], "imports": [3, 4, 6, 7, 9, 10, 12, 13, 15, 16, 18, 19], "modules": [], "enums": []}, "statements": {"expressions": [28, 29, 39, 42, 47, 48, 76, 121, 122, 148, 149, 155, 158, 163, 179, 180, 200, 201, 202, 203, 210, 211, 216, 217, 235, 236, 244, 245, 253, 254], "assignments": [], "loops": [], "conditionals": [22, 24, 26, 30, 33, 36, 37, 38, 40, 43, 44, 46, 49, 51, 53, 55, 57, 59, 62, 64, 66, 68, 70, 74, 75, 77, 83, 88, 91, 93, 95, 97, 101, 106, 111, 114, 116, 119, 123, 124, 129, 132, 134, 135, 137, 138, 143, 146, 150, 152, 154, 156, 159, 164, 169, 172, 174, 177, 181, 182, 187, 190, 191, 193, 195, 198, 199, 204, 205, 207, 212, 213, 215, 218, 219, 221, 223, 225, 226, 228, 230, 231, 232, 234, 237, 239, 241, 243, 246, 248, 250, 252, 255, 257, 259, 262, 264, 266, 268, 270], "returns": [61, 72, 120, 178], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 11, 14, 17, 20, 79, 209], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 58, "universal_type": "function", "name": "unknown", "text_snippet": "getDescription()"}, {"node_id": 69, "universal_type": "function", "name": "unknown", "text_snippet": "maxExpectedDuration()"}, {"node_id": 82, "universal_type": "function", "name": "unknown", "text_snippet": "run()"}, {"node_id": 87, "universal_type": "function", "name": "unknown", "text_snippet": "schedule(std::shared_ptr<ActiveStream> stream)"}, {"node_id": 100, "universal_type": "function", "name": "unknown", "text_snippet": "wakeup()"}, {"node_id": 105, "universal_type": "function", "name": "unknown", "text_snippet": "cancelTask()"}, {"node_id": 108, "universal_type": "function", "name": "unknown", "text_snippet": "size_t queueSize() {\n LockHolder lh(workQueueLock);\n return queue.size();\n }"}, {"node_id": 110, "universal_type": "function", "name": "unknown", "text_snippet": "queueSize()"}, {"node_id": 115, "universal_type": "function", "name": "unknown", "text_snippet": "lh(workQueueLock)"}, {"node_id": 128, "universal_type": "function", "name": "unknown", "text_snippet": "addStats(const std::string& name,\n const AddStatFn& add_stat,\n con"}, {"node_id": 166, "universal_type": "function", "name": "queueEmpty", "text_snippet": "bool queueEmpty() {\n LockHolder lh(workQueueLock);\n return queue.empty();\n }"}, {"node_id": 168, "universal_type": "function", "name": "unknown", "text_snippet": "queueEmpty()"}, {"node_id": 173, "universal_type": "function", "name": "unknown", "text_snippet": "lh(workQueueLock)"}, {"node_id": 184, "universal_type": "function", "name": "pushUnique", "text_snippet": "void pushUnique(Vbid vbid) {\n LockHolder lh(workQueueLock);\n if (queuedVbuckets.count("}, {"node_id": 186, "universal_type": "function", "name": "unknown", "text_snippet": "pushUnique(Vbid vbid)"}, {"node_id": 194, "universal_type": "function", "name": "unknown", "text_snippet": "lh(workQueueLock)"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include \"dcp/active_stream.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"globaltask.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <memcached/engine_common.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <queue>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <string>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <unordered_set>\n"}, {"node_id": 19, "text": "#include"}]}, "original_source_code": "/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */\n/*\n * Copyright 2018 Couchbase, Inc\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#pragma once\n\n#include \"dcp/active_stream.h\"\n#include \"globaltask.h\"\n\n#include <memcached/engine_common.h>\n\n#include <queue>\n#include <string>\n#include <unordered_set>\n\nclass ActiveStream;\nclass DcpProducer;\nclass Stream;\ntemplate <class E>\nclass StreamContainer;\n\nclass ActiveStreamCheckpointProcessorTask : public GlobalTask {\npublic:\n ActiveStreamCheckpointProcessorTask(EventuallyPersistentEngine& e,\n std::shared_ptr<DcpProducer> p);\n\n std::string getDescription() {\n return description;\n }\n\n std::chrono::microseconds maxExpectedDuration() {\n // Empirical evidence from perf runs suggests this task runs under\n // 210ms 99.9999% of the time.\n return std::chrono::milliseconds(210);\n }\n\n bool run();\n void schedule(std::shared_ptr<ActiveStream> stream);\n void wakeup();\n\n /* Clears the queues and resets the producer reference */\n void cancelTask();\n\n /* Returns the number of unique streams waiting to be processed */\n size_t queueSize() {\n LockHolder lh(workQueueLock);\n return queue.size();\n }\n\n /// Outputs statistics related to this task via the given callback.\n void addStats(const std::string& name,\n const AddStatFn& add_stat,\n const void* c) const;\n\nprivate:\n std::shared_ptr<StreamContainer<std::shared_ptr<Stream>>> queuePop();\n\n bool queueEmpty() {\n LockHolder lh(workQueueLock);\n return queue.empty();\n }\n\n void pushUnique(Vbid vbid) {\n LockHolder lh(workQueueLock);\n if (queuedVbuckets.count(vbid) == 0) {\n queue.push(vbid);\n queuedVbuckets.insert(vbid);\n }\n }\n\n /// Human-readable description of this task.\n const std::string description;\n\n /// Guards queue && queuedVbuckets\n mutable std::mutex workQueueLock;\n\n /**\n * Maintain a queue of unique vbucket ids for which stream should be\n * processed.\n * There's no need to have the same stream in the queue more than once\n *\n * The streams are kept in the 'streams map' of the producer object. We\n * should not hold a shared reference (even a weak ref) to the stream object\n * here because 'streams map' is the actual owner. If we hold a weak ref\n * here and the streams map replaces the stream for the vbucket id with a\n * new one, then we would end up not updating it here as we append to the\n * queue only if there is no entry for the vbucket in the queue.\n */\n std::queue<Vbid> queue;\n std::unordered_set<Vbid> queuedVbuckets;\n\n std::atomic<bool> notified;\n const size_t iterationsBeforeYield;\n\n const std::weak_ptr<DcpProducer> producerPtr;\n};\n"}
80,282
c
//////////////////////////////////////////////////////////////////////////////// // // Package: RoadNarrows Robotics Application Tool Kit // // Link: https://github.com/roadnarrows-robotics/rnr-sdk // // Library: librnr_appkit // // File: CmdFormDef.h // /*! \file * * \brief Command line command form definition class interface. * * \author <NAME> (<EMAIL>) * * \par Copyright * \h_copy 2016-2017. RoadNarrows LLC.\n * http://www.roadnarrows.com\n * All Rights Reserved * * \par License: * MIT */ /* * @EulaBegin@ * * Permission is hereby granted, without written agreement and without * license or royalty fees, to use, copy, modify, and distribute this * software and its documentation for any purpose, provided that * (1) The above copyright notice and the following two paragraphs * appear in all copies of the source code and (2) redistributions * including binaries reproduces these notices in the supporting * documentation. Substantial modifications to this software may be * copyrighted by their authors and need not follow the licensing terms * described here, provided that the new terms are clearly indicated in * all files where they apply. * * IN NO EVENT SHALL THE AUTHOR, ROADNARROWS LLC, OR ANY MEMBERS/EMPLOYEES * OF ROADNARROW LLC OR DISTRIBUTORS OF THIS SOFTWARE BE LIABLE TO ANY * PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL * DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, * EVEN IF THE AUTHORS OR ANY OF THE ABOVE PARTIES HAVE BEEN ADVISED OF * THE POSSIBILITY OF SUCH DAMAGE. * * THE AUTHOR AND ROADNARROWS LLC SPECIFICALLY DISCLAIM ANY WARRANTIES, * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN * "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * @EulaEnd@ */ //////////////////////////////////////////////////////////////////////////////// #ifndef _RNR_CMD_FORM_DEF_H #define _RNR_CMD_FORM_DEF_H #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <iostream> #include <string> #include <vector> #include "rnr/rnrconfig.h" #include "rnr/log.h" #include "rnr/appkit/IOManip.h" #include "rnr/appkit/CmdCore.h" #include "rnr/appkit/CmdArgDef.h" /*! * \brief RoadNarrows Robotics */ namespace rnr { /*! * \brief Commands */ namespace cmd { // forward declarations in namespace rnr::cmd class CmdFormDef; std::ostream &operator<<(std::ostream &os, const CmdFormDef &formdef); //-------------------------------------------------------------------------- // CmdFormDef Class //-------------------------------------------------------------------------- /*! * \brief Compiled command form defintion class. */ class CmdFormDef { public: /*! * \brief Default constructor. */ CmdFormDef(); /*! * \brief Initialization constructor. */ CmdFormDef(const std::string &strSyntax); /*! * \brief Copy constructor. * * \param src Source object. */ CmdFormDef(const CmdFormDef &src); /*! * \brief Destructor. */ virtual ~CmdFormDef(); /*! * \brief Assignment operator. * * \param rhs Right-hand side object. * * \return *this */ CmdFormDef &operator=(const CmdFormDef &rhs); // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . // Public Attribute Methods // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . /* * \brief Test if form definition is sufficiently defined. * * \return Returns true or false. */ bool isDefined() const; /*! * \brief Get parent command's unique id. * * \return Unique id. */ int getParentCmdUid() const { return m_nCmdUid; } /*! * \brief Get forms's index. * * \return Zero based index. */ int getIndex() const { return m_nIndex; } /*! * \brief Get form's extended usage syntax. */ std::string getSyntax() const { return m_strSyntax; } /*! * \brief Get form's argument at index. * * \param nIndex Argument index. * * \return Command argument definition reference. */ const CmdArgDef &at(const int nIndex) const; /*! * \brief Index operator. * * Get form's argument at index. * * \param nIndex Argument index. * * \return Command argument definition reference. */ const CmdArgDef &operator[](const int nIndex) const { return at(nIndex); } /*! * \brief Get the total number of arguments. * * The first argument (argv0) is the command. * * \return Number of arguments. */ int numOfArgs() const { return (int)m_argDefs.size(); } /*! * \brief Get the total number of required arguments. * * The required number includes the command argv0. * * Required arguments start at argument index 0. * * \return Number of arguments. */ int numOfRequiredArgs() const { return m_nArgcReq; } /*! * \brief Get the total number of optional arguments. * * Optional arguments start at argument index numOfRequiredArgs(). * * \return Number of arguments. */ int numOfOptionalArgs() const { return m_nArgcOpt; } // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . // Output Methods and Operators // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . /*! * \brief Insert object into output stream. * * \param os Output stream. * \param formdef Object to insert. * * \return Reference to output stream. */ friend std::ostream &rnr::cmd::operator<<(std::ostream &os, const CmdFormDef &formdef); // // Friends // friend class CmdDef; friend class CommandLine; protected: int m_nCmdUid; ///< parent command's unique id int m_nIndex; ///< forms index std::string m_strSyntax; ///< command extened usage syntax ArgDefVec m_argDefs; ///< command argument definitions int m_nArgcReq; ///< number of required arguments int m_nArgcOpt; ///< number of optional arguments /*! * \brief Reset form definition to pre-compiled state. */ void reset(); /*! * \brief Set parent's command id. * * \param nCmdUid Command unique id. */ void setParent(const int nCmdUid); /*! * \brief Set forms's index. * * \param nIndex Zero based index. */ void setIndex(const int nIndex); /*! * \brief Set command's extended usage syntax. * * \param strSyntax Syntax string. */ void setSyntax(const std::string &strSyntax); /*! * \brief Push argument to end of argument list. * * \param argdef Command argument definition. */ void pushArg(CmdArgDef &argdef); /*! * \brief Get form's modifiable argument at index. * * Protected version of at(). * * \param nIndex Argument index. * * \return Command argument definition reference. */ CmdArgDef &argAt(const int nIndex); /*! * \brief Get the last pushed argument. * * \return Argument definition reference. */ CmdArgDef &lastArg(); }; // class CmdFormDef // // Types and Data // typedef std::vector<CmdFormDef> CmdFormDefVec; ///< vector of command forms } // namespace cmd } // namespace rnr #endif // _RNR_CMD_FORM_DEF_H
27.87
288
(translation_unit) "////////////////////////////////////////////////////////////////////////////////\n//\n// Package: RoadNarrows Robotics Application Tool Kit\n//\n// Link: https://github.com/roadnarrows-robotics/rnr-sdk\n//\n// Library: librnr_appkit\n//\n// File: CmdFormDef.h\n//\n/*! \file\n *\n * \brief Command line command form definition class interface.\n *\n * \author <NAME> (<EMAIL>)\n *\n * \par Copyright\n * \h_copy 2016-2017. RoadNarrows LLC.\n\n * http://www.roadnarrows.com\n\n * All Rights Reserved\n *\n * \par License:\n * MIT\n */\n/*\n * @EulaBegin@\n * \n * Permission is hereby granted, without written agreement and without\n * license or royalty fees, to use, copy, modify, and distribute this\n * software and its documentation for any purpose, provided that\n * (1) The above copyright notice and the following two paragraphs\n * appear in all copies of the source code and (2) redistributions\n * including binaries reproduces these notices in the supporting\n * documentation. Substantial modifications to this software may be\n * copyrighted by their authors and need not follow the licensing terms\n * described here, provided that the new terms are clearly indicated in\n * all files where they apply.\n * \n * IN NO EVENT SHALL THE AUTHOR, ROADNARROWS LLC, OR ANY MEMBERS/EMPLOYEES\n * OF ROADNARROW LLC OR DISTRIBUTORS OF THIS SOFTWARE BE LIABLE TO ANY\n * PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL\n * DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION,\n * EVEN IF THE AUTHORS OR ANY OF THE ABOVE PARTIES HAVE BEEN ADVISED OF\n * THE POSSIBILITY OF SUCH DAMAGE.\n * \n * THE AUTHOR AND ROADNARROWS LLC SPECIFICALLY DISCLAIM ANY WARRANTIES,\n * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND\n * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN\n * "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO\n * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.\n * \n * @EulaEnd@\n */\n////////////////////////////////////////////////////////////////////////////////\n\n#ifndef _RNR_CMD_FORM_DEF_H\n#define _RNR_CMD_FORM_DEF_H\n\n#include <stdio.h>\n#include <unistd.h>\n#include <stdlib.h>\n\n#include <iostream>\n#include <string>\n#include <vector>\n\n#include "rnr/rnrconfig.h"\n#include "rnr/log.h"\n\n#include "rnr/appkit/IOManip.h"\n#include "rnr/appkit/CmdCore.h"\n#include "rnr/appkit/CmdArgDef.h"\n\n/*!\n * \brief RoadNarrows Robotics\n */\nnamespace rnr\n{\n /*!\n * \brief Commands\n */\n namespace cmd\n {\n // forward declarations in namespace rnr::cmd\n class CmdFormDef;\n std::ostream &operator<<(std::ostream &os, const CmdFormDef &formdef);\n\n //--------------------------------------------------------------------------\n // CmdFormDef Class\n //--------------------------------------------------------------------------\n\n /*!\n * \brief Compiled command form defintion class.\n */\n class CmdFormDef\n {\n public:\n /*!\n * \brief Default constructor.\n */\n CmdFormDef();\n \n /*!\n * \brief Initialization constructor.\n */\n CmdFormDef(const std::string &strSyntax);\n \n /*!\n * \brief Copy constructor.\n *\n * \param src Source object.\n */\n CmdFormDef(const CmdFormDef &src);\n\n /*!\n * \brief Destructor.\n */\n virtual ~CmdFormDef();\n \n /*!\n * \brief Assignment operator.\n *\n * \param rhs Right-hand side object.\n *\n * \return *this\n */\n CmdFormDef &operator=(const CmdFormDef &rhs);\n \n\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n // Public Attribute Methods\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n\n /*\n * \brief Test if form definition is sufficiently defined.\n *\n * \return Returns true or false.\n */\n bool isDefined() const;\n\n /*!\n * \brief Get parent command's unique id.\n *\n * \return Unique id.\n */\n int getParentCmdUid() const\n {\n return m_nCmdUid;\n }\n\n /*!\n * \brief Get forms's index.\n *\n * \return Zero based index.\n */\n int getIndex() const\n {\n return m_nIndex;\n }\n\n /*!\n * \brief Get form's extended usage syntax.\n */\n std::string getSyntax() const\n {\n return m_strSyntax;\n }\n\n /*!\n * \brief Get form's argument at index.\n *\n * \param nIndex Argument index.\n *\n * \return Command argument definition reference.\n */\n const CmdArgDef &at(const int nIndex) const;\n\n /*!\n * \brief Index operator.\n *\n * Get form's argument at index.\n *\n * \param nIndex Argument index.\n *\n * \return Command argument definition reference.\n */\n const CmdArgDef &operator[](const int nIndex) const\n {\n return at(nIndex);\n }\n\n /*!\n * \brief Get the total number of arguments.\n *\n * The first argument (argv0) is the command.\n *\n * \return Number of arguments.\n */\n int numOfArgs() const\n {\n return (int)m_argDefs.size();\n }\n\n /*!\n * \brief Get the total number of required arguments.\n *\n * The required number includes the command argv0.\n *\n * Required arguments start at argument index 0.\n *\n * \return Number of arguments.\n */\n int numOfRequiredArgs() const\n {\n return m_nArgcReq;\n }\n\n /*!\n * \brief Get the total number of optional arguments.\n *\n * Optional arguments start at argument index numOfRequiredArgs().\n *\n * \return Number of arguments.\n */\n int numOfOptionalArgs() const\n {\n return m_nArgcOpt;\n }\n \n\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n // Output Methods and Operators\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n\n /*!\n * \brief Insert object into output stream.\n *\n * \param os Output stream.\n * \param formdef Object to insert.\n *\n * \return Reference to output stream.\n */\n friend std::ostream &rnr::cmd::operator<<(std::ostream &os,\n const CmdFormDef &formdef);\n\n //\n // Friends\n //\n friend class CmdDef;\n friend class CommandLine;\n\n protected:\n int m_nCmdUid; ///< parent command's unique id\n int m_nIndex; ///< forms index\n std::string m_strSyntax; ///< command extened usage syntax\n ArgDefVec m_argDefs; ///< command argument definitions\n int m_nArgcReq; ///< number of required arguments\n int m_nArgcOpt; ///< number of optional arguments\n\n /*!\n * \brief Reset form definition to pre-compiled state.\n */\n void reset();\n\n /*!\n * \brief Set parent's command id.\n *\n * \param nCmdUid Command unique id.\n */\n void setParent(const int nCmdUid);\n\n /*!\n * \brief Set forms's index.\n *\n * \param nIndex Zero based index.\n */\n void setIndex(const int nIndex);\n\n /*!\n * \brief Set command's extended usage syntax.\n *\n * \param strSyntax Syntax string.\n */\n void setSyntax(const std::string &strSyntax);\n\n /*!\n * \brief Push argument to end of argument list.\n *\n * \param argdef Command argument definition.\n */\n void pushArg(CmdArgDef &argdef);\n\n /*!\n * \brief Get form's modifiable argument at index.\n *\n * Protected version of at().\n *\n * \param nIndex Argument index.\n *\n * \return Command argument definition reference.\n */\n CmdArgDef &argAt(const int nIndex);\n\n /*!\n * \brief Get the last pushed argument.\n *\n * \return Argument definition reference.\n */\n CmdArgDef &lastArg();\n }; // class CmdFormDef\n\n //\n // Types and Data\n //\n typedef std::vector<CmdFormDef> CmdFormDefVec; ///< vector of command forms\n \n } // namespace cmd\n} // namespace rnr\n\n#endif // _RNR_CMD_FORM_DEF_H\n" (comment) "////////////////////////////////////////////////////////////////////////////////" (comment) "//" (comment) "// Package: RoadNarrows Robotics Application Tool Kit" (comment) "//" (comment) "// Link: https://github.com/roadnarrows-robotics/rnr-sdk" (comment) "//" (comment) "// Library: librnr_appkit" (comment) "//" (comment) "// File: CmdFormDef.h" (comment) "//" (comment) "/*! \file\n *\n * \brief Command line command form definition class interface.\n *\n * \author <NAME> (<EMAIL>)\n *\n * \par Copyright\n * \h_copy 2016-2017. RoadNarrows LLC.\n\n * http://www.roadnarrows.com\n\n * All Rights Reserved\n *\n * \par License:\n * MIT\n */" (comment) "/*\n * @EulaBegin@\n * \n * Permission is hereby granted, without written agreement and without\n * license or royalty fees, to use, copy, modify, and distribute this\n * software and its documentation for any purpose, provided that\n * (1) The above copyright notice and the following two paragraphs\n * appear in all copies of the source code and (2) redistributions\n * including binaries reproduces these notices in the supporting\n * documentation. Substantial modifications to this software may be\n * copyrighted by their authors and need not follow the licensing terms\n * described here, provided that the new terms are clearly indicated in\n * all files where they apply.\n * \n * IN NO EVENT SHALL THE AUTHOR, ROADNARROWS LLC, OR ANY MEMBERS/EMPLOYEES\n * OF ROADNARROW LLC OR DISTRIBUTORS OF THIS SOFTWARE BE LIABLE TO ANY\n * PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL\n * DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION,\n * EVEN IF THE AUTHORS OR ANY OF THE ABOVE PARTIES HAVE BEEN ADVISED OF\n * THE POSSIBILITY OF SUCH DAMAGE.\n * \n * THE AUTHOR AND ROADNARROWS LLC SPECIFICALLY DISCLAIM ANY WARRANTIES,\n * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND\n * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN\n * "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO\n * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.\n * \n * @EulaEnd@\n */" (comment) "////////////////////////////////////////////////////////////////////////////////" (preproc_ifdef) "#ifndef _RNR_CMD_FORM_DEF_H\n#define _RNR_CMD_FORM_DEF_H\n\n#include <stdio.h>\n#include <unistd.h>\n#include <stdlib.h>\n\n#include <iostream>\n#include <string>\n#include <vector>\n\n#include "rnr/rnrconfig.h"\n#include "rnr/log.h"\n\n#include "rnr/appkit/IOManip.h"\n#include "rnr/appkit/CmdCore.h"\n#include "rnr/appkit/CmdArgDef.h"\n\n/*!\n * \brief RoadNarrows Robotics\n */\nnamespace rnr\n{\n /*!\n * \brief Commands\n */\n namespace cmd\n {\n // forward declarations in namespace rnr::cmd\n class CmdFormDef;\n std::ostream &operator<<(std::ostream &os, const CmdFormDef &formdef);\n\n //--------------------------------------------------------------------------\n // CmdFormDef Class\n //--------------------------------------------------------------------------\n\n /*!\n * \brief Compiled command form defintion class.\n */\n class CmdFormDef\n {\n public:\n /*!\n * \brief Default constructor.\n */\n CmdFormDef();\n \n /*!\n * \brief Initialization constructor.\n */\n CmdFormDef(const std::string &strSyntax);\n \n /*!\n * \brief Copy constructor.\n *\n * \param src Source object.\n */\n CmdFormDef(const CmdFormDef &src);\n\n /*!\n * \brief Destructor.\n */\n virtual ~CmdFormDef();\n \n /*!\n * \brief Assignment operator.\n *\n * \param rhs Right-hand side object.\n *\n * \return *this\n */\n CmdFormDef &operator=(const CmdFormDef &rhs);\n \n\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n // Public Attribute Methods\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n\n /*\n * \brief Test if form definition is sufficiently defined.\n *\n * \return Returns true or false.\n */\n bool isDefined() const;\n\n /*!\n * \brief Get parent command's unique id.\n *\n * \return Unique id.\n */\n int getParentCmdUid() const\n {\n return m_nCmdUid;\n }\n\n /*!\n * \brief Get forms's index.\n *\n * \return Zero based index.\n */\n int getIndex() const\n {\n return m_nIndex;\n }\n\n /*!\n * \brief Get form's extended usage syntax.\n */\n std::string getSyntax() const\n {\n return m_strSyntax;\n }\n\n /*!\n * \brief Get form's argument at index.\n *\n * \param nIndex Argument index.\n *\n * \return Command argument definition reference.\n */\n const CmdArgDef &at(const int nIndex) const;\n\n /*!\n * \brief Index operator.\n *\n * Get form's argument at index.\n *\n * \param nIndex Argument index.\n *\n * \return Command argument definition reference.\n */\n const CmdArgDef &operator[](const int nIndex) const\n {\n return at(nIndex);\n }\n\n /*!\n * \brief Get the total number of arguments.\n *\n * The first argument (argv0) is the command.\n *\n * \return Number of arguments.\n */\n int numOfArgs() const\n {\n return (int)m_argDefs.size();\n }\n\n /*!\n * \brief Get the total number of required arguments.\n *\n * The required number includes the command argv0.\n *\n * Required arguments start at argument index 0.\n *\n * \return Number of arguments.\n */\n int numOfRequiredArgs() const\n {\n return m_nArgcReq;\n }\n\n /*!\n * \brief Get the total number of optional arguments.\n *\n * Optional arguments start at argument index numOfRequiredArgs().\n *\n * \return Number of arguments.\n */\n int numOfOptionalArgs() const\n {\n return m_nArgcOpt;\n }\n \n\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n // Output Methods and Operators\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n\n /*!\n * \brief Insert object into output stream.\n *\n * \param os Output stream.\n * \param formdef Object to insert.\n *\n * \return Reference to output stream.\n */\n friend std::ostream &rnr::cmd::operator<<(std::ostream &os,\n const CmdFormDef &formdef);\n\n //\n // Friends\n //\n friend class CmdDef;\n friend class CommandLine;\n\n protected:\n int m_nCmdUid; ///< parent command's unique id\n int m_nIndex; ///< forms index\n std::string m_strSyntax; ///< command extened usage syntax\n ArgDefVec m_argDefs; ///< command argument definitions\n int m_nArgcReq; ///< number of required arguments\n int m_nArgcOpt; ///< number of optional arguments\n\n /*!\n * \brief Reset form definition to pre-compiled state.\n */\n void reset();\n\n /*!\n * \brief Set parent's command id.\n *\n * \param nCmdUid Command unique id.\n */\n void setParent(const int nCmdUid);\n\n /*!\n * \brief Set forms's index.\n *\n * \param nIndex Zero based index.\n */\n void setIndex(const int nIndex);\n\n /*!\n * \brief Set command's extended usage syntax.\n *\n * \param strSyntax Syntax string.\n */\n void setSyntax(const std::string &strSyntax);\n\n /*!\n * \brief Push argument to end of argument list.\n *\n * \param argdef Command argument definition.\n */\n void pushArg(CmdArgDef &argdef);\n\n /*!\n * \brief Get form's modifiable argument at index.\n *\n * Protected version of at().\n *\n * \param nIndex Argument index.\n *\n * \return Command argument definition reference.\n */\n CmdArgDef &argAt(const int nIndex);\n\n /*!\n * \brief Get the last pushed argument.\n *\n * \return Argument definition reference.\n */\n CmdArgDef &lastArg();\n }; // class CmdFormDef\n\n //\n // Types and Data\n //\n typedef std::vector<CmdFormDef> CmdFormDefVec; ///< vector of command forms\n \n } // namespace cmd\n} // namespace rnr\n\n#endif" (#ifndef) "#ifndef" (identifier) "_RNR_CMD_FORM_DEF_H" (preproc_def) "#define _RNR_CMD_FORM_DEF_H\n" (#define) "#define" (identifier) "_RNR_CMD_FORM_DEF_H" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include <unistd.h>\n" (#include) "#include" (system_lib_string) "<unistd.h>" (preproc_include) "#include <stdlib.h>\n" (#include) "#include" (system_lib_string) "<stdlib.h>" (preproc_include) "#include <iostream>\n" (#include) "#include" (system_lib_string) "<iostream>" (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 "rnr/rnrconfig.h"\n" (#include) "#include" (string_literal) ""rnr/rnrconfig.h"" (") """ (string_content) "rnr/rnrconfig.h" (") """ (preproc_include) "#include "rnr/log.h"\n" (#include) "#include" (string_literal) ""rnr/log.h"" (") """ (string_content) "rnr/log.h" (") """ (preproc_include) "#include "rnr/appkit/IOManip.h"\n" (#include) "#include" (string_literal) ""rnr/appkit/IOManip.h"" (") """ (string_content) "rnr/appkit/IOManip.h" (") """ (preproc_include) "#include "rnr/appkit/CmdCore.h"\n" (#include) "#include" (string_literal) ""rnr/appkit/CmdCore.h"" (") """ (string_content) "rnr/appkit/CmdCore.h" (") """ (preproc_include) "#include "rnr/appkit/CmdArgDef.h"\n" (#include) "#include" (string_literal) ""rnr/appkit/CmdArgDef.h"" (") """ (string_content) "rnr/appkit/CmdArgDef.h" (") """ (comment) "/*!\n * \brief RoadNarrows Robotics\n */" (function_definition) "namespace rnr\n{\n /*!\n * \brief Commands\n */\n namespace cmd\n {\n // forward declarations in namespace rnr::cmd\n class CmdFormDef;\n std::ostream &operator<<(std::ostream &os, const CmdFormDef &formdef);\n\n //--------------------------------------------------------------------------\n // CmdFormDef Class\n //--------------------------------------------------------------------------\n\n /*!\n * \brief Compiled command form defintion class.\n */\n class CmdFormDef\n {\n public:\n /*!\n * \brief Default constructor.\n */\n CmdFormDef();\n \n /*!\n * \brief Initialization constructor.\n */\n CmdFormDef(const std::string &strSyntax);\n \n /*!\n * \brief Copy constructor.\n *\n * \param src Source object.\n */\n CmdFormDef(const CmdFormDef &src);\n\n /*!\n * \brief Destructor.\n */\n virtual ~CmdFormDef();\n \n /*!\n * \brief Assignment operator.\n *\n * \param rhs Right-hand side object.\n *\n * \return *this\n */\n CmdFormDef &operator=(const CmdFormDef &rhs);\n \n\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n // Public Attribute Methods\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n\n /*\n * \brief Test if form definition is sufficiently defined.\n *\n * \return Returns true or false.\n */\n bool isDefined() const;\n\n /*!\n * \brief Get parent command's unique id.\n *\n * \return Unique id.\n */\n int getParentCmdUid() const\n {\n return m_nCmdUid;\n }\n\n /*!\n * \brief Get forms's index.\n *\n * \return Zero based index.\n */\n int getIndex() const\n {\n return m_nIndex;\n }\n\n /*!\n * \brief Get form's extended usage syntax.\n */\n std::string getSyntax() const\n {\n return m_strSyntax;\n }\n\n /*!\n * \brief Get form's argument at index.\n *\n * \param nIndex Argument index.\n *\n * \return Command argument definition reference.\n */\n const CmdArgDef &at(const int nIndex) const;\n\n /*!\n * \brief Index operator.\n *\n * Get form's argument at index.\n *\n * \param nIndex Argument index.\n *\n * \return Command argument definition reference.\n */\n const CmdArgDef &operator[](const int nIndex) const\n {\n return at(nIndex);\n }\n\n /*!\n * \brief Get the total number of arguments.\n *\n * The first argument (argv0) is the command.\n *\n * \return Number of arguments.\n */\n int numOfArgs() const\n {\n return (int)m_argDefs.size();\n }\n\n /*!\n * \brief Get the total number of required arguments.\n *\n * The required number includes the command argv0.\n *\n * Required arguments start at argument index 0.\n *\n * \return Number of arguments.\n */\n int numOfRequiredArgs() const\n {\n return m_nArgcReq;\n }\n\n /*!\n * \brief Get the total number of optional arguments.\n *\n * Optional arguments start at argument index numOfRequiredArgs().\n *\n * \return Number of arguments.\n */\n int numOfOptionalArgs() const\n {\n return m_nArgcOpt;\n }\n \n\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n // Output Methods and Operators\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n\n /*!\n * \brief Insert object into output stream.\n *\n * \param os Output stream.\n * \param formdef Object to insert.\n *\n * \return Reference to output stream.\n */\n friend std::ostream &rnr::cmd::operator<<(std::ostream &os,\n const CmdFormDef &formdef);\n\n //\n // Friends\n //\n friend class CmdDef;\n friend class CommandLine;\n\n protected:\n int m_nCmdUid; ///< parent command's unique id\n int m_nIndex; ///< forms index\n std::string m_strSyntax; ///< command extened usage syntax\n ArgDefVec m_argDefs; ///< command argument definitions\n int m_nArgcReq; ///< number of required arguments\n int m_nArgcOpt; ///< number of optional arguments\n\n /*!\n * \brief Reset form definition to pre-compiled state.\n */\n void reset();\n\n /*!\n * \brief Set parent's command id.\n *\n * \param nCmdUid Command unique id.\n */\n void setParent(const int nCmdUid);\n\n /*!\n * \brief Set forms's index.\n *\n * \param nIndex Zero based index.\n */\n void setIndex(const int nIndex);\n\n /*!\n * \brief Set command's extended usage syntax.\n *\n * \param strSyntax Syntax string.\n */\n void setSyntax(const std::string &strSyntax);\n\n /*!\n * \brief Push argument to end of argument list.\n *\n * \param argdef Command argument definition.\n */\n void pushArg(CmdArgDef &argdef);\n\n /*!\n * \brief Get form's modifiable argument at index.\n *\n * Protected version of at().\n *\n * \param nIndex Argument index.\n *\n * \return Command argument definition reference.\n */\n CmdArgDef &argAt(const int nIndex);\n\n /*!\n * \brief Get the last pushed argument.\n *\n * \return Argument definition reference.\n */\n CmdArgDef &lastArg();\n }; // class CmdFormDef\n\n //\n // Types and Data\n //\n typedef std::vector<CmdFormDef> CmdFormDefVec; ///< vector of command forms\n \n } // namespace cmd\n}" (type_identifier) "namespace" (identifier) "rnr" (compound_statement) "{\n /*!\n * \brief Commands\n */\n namespace cmd\n {\n // forward declarations in namespace rnr::cmd\n class CmdFormDef;\n std::ostream &operator<<(std::ostream &os, const CmdFormDef &formdef);\n\n //--------------------------------------------------------------------------\n // CmdFormDef Class\n //--------------------------------------------------------------------------\n\n /*!\n * \brief Compiled command form defintion class.\n */\n class CmdFormDef\n {\n public:\n /*!\n * \brief Default constructor.\n */\n CmdFormDef();\n \n /*!\n * \brief Initialization constructor.\n */\n CmdFormDef(const std::string &strSyntax);\n \n /*!\n * \brief Copy constructor.\n *\n * \param src Source object.\n */\n CmdFormDef(const CmdFormDef &src);\n\n /*!\n * \brief Destructor.\n */\n virtual ~CmdFormDef();\n \n /*!\n * \brief Assignment operator.\n *\n * \param rhs Right-hand side object.\n *\n * \return *this\n */\n CmdFormDef &operator=(const CmdFormDef &rhs);\n \n\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n // Public Attribute Methods\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n\n /*\n * \brief Test if form definition is sufficiently defined.\n *\n * \return Returns true or false.\n */\n bool isDefined() const;\n\n /*!\n * \brief Get parent command's unique id.\n *\n * \return Unique id.\n */\n int getParentCmdUid() const\n {\n return m_nCmdUid;\n }\n\n /*!\n * \brief Get forms's index.\n *\n * \return Zero based index.\n */\n int getIndex() const\n {\n return m_nIndex;\n }\n\n /*!\n * \brief Get form's extended usage syntax.\n */\n std::string getSyntax() const\n {\n return m_strSyntax;\n }\n\n /*!\n * \brief Get form's argument at index.\n *\n * \param nIndex Argument index.\n *\n * \return Command argument definition reference.\n */\n const CmdArgDef &at(const int nIndex) const;\n\n /*!\n * \brief Index operator.\n *\n * Get form's argument at index.\n *\n * \param nIndex Argument index.\n *\n * \return Command argument definition reference.\n */\n const CmdArgDef &operator[](const int nIndex) const\n {\n return at(nIndex);\n }\n\n /*!\n * \brief Get the total number of arguments.\n *\n * The first argument (argv0) is the command.\n *\n * \return Number of arguments.\n */\n int numOfArgs() const\n {\n return (int)m_argDefs.size();\n }\n\n /*!\n * \brief Get the total number of required arguments.\n *\n * The required number includes the command argv0.\n *\n * Required arguments start at argument index 0.\n *\n * \return Number of arguments.\n */\n int numOfRequiredArgs() const\n {\n return m_nArgcReq;\n }\n\n /*!\n * \brief Get the total number of optional arguments.\n *\n * Optional arguments start at argument index numOfRequiredArgs().\n *\n * \return Number of arguments.\n */\n int numOfOptionalArgs() const\n {\n return m_nArgcOpt;\n }\n \n\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n // Output Methods and Operators\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n\n /*!\n * \brief Insert object into output stream.\n *\n * \param os Output stream.\n * \param formdef Object to insert.\n *\n * \return Reference to output stream.\n */\n friend std::ostream &rnr::cmd::operator<<(std::ostream &os,\n const CmdFormDef &formdef);\n\n //\n // Friends\n //\n friend class CmdDef;\n friend class CommandLine;\n\n protected:\n int m_nCmdUid; ///< parent command's unique id\n int m_nIndex; ///< forms index\n std::string m_strSyntax; ///< command extened usage syntax\n ArgDefVec m_argDefs; ///< command argument definitions\n int m_nArgcReq; ///< number of required arguments\n int m_nArgcOpt; ///< number of optional arguments\n\n /*!\n * \brief Reset form definition to pre-compiled state.\n */\n void reset();\n\n /*!\n * \brief Set parent's command id.\n *\n * \param nCmdUid Command unique id.\n */\n void setParent(const int nCmdUid);\n\n /*!\n * \brief Set forms's index.\n *\n * \param nIndex Zero based index.\n */\n void setIndex(const int nIndex);\n\n /*!\n * \brief Set command's extended usage syntax.\n *\n * \param strSyntax Syntax string.\n */\n void setSyntax(const std::string &strSyntax);\n\n /*!\n * \brief Push argument to end of argument list.\n *\n * \param argdef Command argument definition.\n */\n void pushArg(CmdArgDef &argdef);\n\n /*!\n * \brief Get form's modifiable argument at index.\n *\n * Protected version of at().\n *\n * \param nIndex Argument index.\n *\n * \return Command argument definition reference.\n */\n CmdArgDef &argAt(const int nIndex);\n\n /*!\n * \brief Get the last pushed argument.\n *\n * \return Argument definition reference.\n */\n CmdArgDef &lastArg();\n }; // class CmdFormDef\n\n //\n // Types and Data\n //\n typedef std::vector<CmdFormDef> CmdFormDefVec; ///< vector of command forms\n \n } // namespace cmd\n}" ({) "{" (comment) "/*!\n * \brief Commands\n */" (function_definition) "namespace cmd\n {\n // forward declarations in namespace rnr::cmd\n class CmdFormDef;\n std::ostream &operator<<(std::ostream &os, const CmdFormDef &formdef);\n\n //--------------------------------------------------------------------------\n // CmdFormDef Class\n //--------------------------------------------------------------------------\n\n /*!\n * \brief Compiled command form defintion class.\n */\n class CmdFormDef\n {\n public:\n /*!\n * \brief Default constructor.\n */\n CmdFormDef();\n \n /*!\n * \brief Initialization constructor.\n */\n CmdFormDef(const std::string &strSyntax);\n \n /*!\n * \brief Copy constructor.\n *\n * \param src Source object.\n */\n CmdFormDef(const CmdFormDef &src);\n\n /*!\n * \brief Destructor.\n */\n virtual ~CmdFormDef();\n \n /*!\n * \brief Assignment operator.\n *\n * \param rhs Right-hand side object.\n *\n * \return *this\n */\n CmdFormDef &operator=(const CmdFormDef &rhs);\n \n\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n // Public Attribute Methods\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n\n /*\n * \brief Test if form definition is sufficiently defined.\n *\n * \return Returns true or false.\n */\n bool isDefined() const;\n\n /*!\n * \brief Get parent command's unique id.\n *\n * \return Unique id.\n */\n int getParentCmdUid() const\n {\n return m_nCmdUid;\n }\n\n /*!\n * \brief Get forms's index.\n *\n * \return Zero based index.\n */\n int getIndex() const\n {\n return m_nIndex;\n }\n\n /*!\n * \brief Get form's extended usage syntax.\n */\n std::string getSyntax() const\n {\n return m_strSyntax;\n }\n\n /*!\n * \brief Get form's argument at index.\n *\n * \param nIndex Argument index.\n *\n * \return Command argument definition reference.\n */\n const CmdArgDef &at(const int nIndex) const;\n\n /*!\n * \brief Index operator.\n *\n * Get form's argument at index.\n *\n * \param nIndex Argument index.\n *\n * \return Command argument definition reference.\n */\n const CmdArgDef &operator[](const int nIndex) const\n {\n return at(nIndex);\n }\n\n /*!\n * \brief Get the total number of arguments.\n *\n * The first argument (argv0) is the command.\n *\n * \return Number of arguments.\n */\n int numOfArgs() const\n {\n return (int)m_argDefs.size();\n }\n\n /*!\n * \brief Get the total number of required arguments.\n *\n * The required number includes the command argv0.\n *\n * Required arguments start at argument index 0.\n *\n * \return Number of arguments.\n */\n int numOfRequiredArgs() const\n {\n return m_nArgcReq;\n }\n\n /*!\n * \brief Get the total number of optional arguments.\n *\n * Optional arguments start at argument index numOfRequiredArgs().\n *\n * \return Number of arguments.\n */\n int numOfOptionalArgs() const\n {\n return m_nArgcOpt;\n }\n \n\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n // Output Methods and Operators\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n\n /*!\n * \brief Insert object into output stream.\n *\n * \param os Output stream.\n * \param formdef Object to insert.\n *\n * \return Reference to output stream.\n */\n friend std::ostream &rnr::cmd::operator<<(std::ostream &os,\n const CmdFormDef &formdef);\n\n //\n // Friends\n //\n friend class CmdDef;\n friend class CommandLine;\n\n protected:\n int m_nCmdUid; ///< parent command's unique id\n int m_nIndex; ///< forms index\n std::string m_strSyntax; ///< command extened usage syntax\n ArgDefVec m_argDefs; ///< command argument definitions\n int m_nArgcReq; ///< number of required arguments\n int m_nArgcOpt; ///< number of optional arguments\n\n /*!\n * \brief Reset form definition to pre-compiled state.\n */\n void reset();\n\n /*!\n * \brief Set parent's command id.\n *\n * \param nCmdUid Command unique id.\n */\n void setParent(const int nCmdUid);\n\n /*!\n * \brief Set forms's index.\n *\n * \param nIndex Zero based index.\n */\n void setIndex(const int nIndex);\n\n /*!\n * \brief Set command's extended usage syntax.\n *\n * \param strSyntax Syntax string.\n */\n void setSyntax(const std::string &strSyntax);\n\n /*!\n * \brief Push argument to end of argument list.\n *\n * \param argdef Command argument definition.\n */\n void pushArg(CmdArgDef &argdef);\n\n /*!\n * \brief Get form's modifiable argument at index.\n *\n * Protected version of at().\n *\n * \param nIndex Argument index.\n *\n * \return Command argument definition reference.\n */\n CmdArgDef &argAt(const int nIndex);\n\n /*!\n * \brief Get the last pushed argument.\n *\n * \return Argument definition reference.\n */\n CmdArgDef &lastArg();\n }; // class CmdFormDef\n\n //\n // Types and Data\n //\n typedef std::vector<CmdFormDef> CmdFormDefVec; ///< vector of command forms\n \n }" (type_identifier) "namespace" (identifier) "cmd" (compound_statement) "{\n // forward declarations in namespace rnr::cmd\n class CmdFormDef;\n std::ostream &operator<<(std::ostream &os, const CmdFormDef &formdef);\n\n //--------------------------------------------------------------------------\n // CmdFormDef Class\n //--------------------------------------------------------------------------\n\n /*!\n * \brief Compiled command form defintion class.\n */\n class CmdFormDef\n {\n public:\n /*!\n * \brief Default constructor.\n */\n CmdFormDef();\n \n /*!\n * \brief Initialization constructor.\n */\n CmdFormDef(const std::string &strSyntax);\n \n /*!\n * \brief Copy constructor.\n *\n * \param src Source object.\n */\n CmdFormDef(const CmdFormDef &src);\n\n /*!\n * \brief Destructor.\n */\n virtual ~CmdFormDef();\n \n /*!\n * \brief Assignment operator.\n *\n * \param rhs Right-hand side object.\n *\n * \return *this\n */\n CmdFormDef &operator=(const CmdFormDef &rhs);\n \n\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n // Public Attribute Methods\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n\n /*\n * \brief Test if form definition is sufficiently defined.\n *\n * \return Returns true or false.\n */\n bool isDefined() const;\n\n /*!\n * \brief Get parent command's unique id.\n *\n * \return Unique id.\n */\n int getParentCmdUid() const\n {\n return m_nCmdUid;\n }\n\n /*!\n * \brief Get forms's index.\n *\n * \return Zero based index.\n */\n int getIndex() const\n {\n return m_nIndex;\n }\n\n /*!\n * \brief Get form's extended usage syntax.\n */\n std::string getSyntax() const\n {\n return m_strSyntax;\n }\n\n /*!\n * \brief Get form's argument at index.\n *\n * \param nIndex Argument index.\n *\n * \return Command argument definition reference.\n */\n const CmdArgDef &at(const int nIndex) const;\n\n /*!\n * \brief Index operator.\n *\n * Get form's argument at index.\n *\n * \param nIndex Argument index.\n *\n * \return Command argument definition reference.\n */\n const CmdArgDef &operator[](const int nIndex) const\n {\n return at(nIndex);\n }\n\n /*!\n * \brief Get the total number of arguments.\n *\n * The first argument (argv0) is the command.\n *\n * \return Number of arguments.\n */\n int numOfArgs() const\n {\n return (int)m_argDefs.size();\n }\n\n /*!\n * \brief Get the total number of required arguments.\n *\n * The required number includes the command argv0.\n *\n * Required arguments start at argument index 0.\n *\n * \return Number of arguments.\n */\n int numOfRequiredArgs() const\n {\n return m_nArgcReq;\n }\n\n /*!\n * \brief Get the total number of optional arguments.\n *\n * Optional arguments start at argument index numOfRequiredArgs().\n *\n * \return Number of arguments.\n */\n int numOfOptionalArgs() const\n {\n return m_nArgcOpt;\n }\n \n\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n // Output Methods and Operators\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n\n /*!\n * \brief Insert object into output stream.\n *\n * \param os Output stream.\n * \param formdef Object to insert.\n *\n * \return Reference to output stream.\n */\n friend std::ostream &rnr::cmd::operator<<(std::ostream &os,\n const CmdFormDef &formdef);\n\n //\n // Friends\n //\n friend class CmdDef;\n friend class CommandLine;\n\n protected:\n int m_nCmdUid; ///< parent command's unique id\n int m_nIndex; ///< forms index\n std::string m_strSyntax; ///< command extened usage syntax\n ArgDefVec m_argDefs; ///< command argument definitions\n int m_nArgcReq; ///< number of required arguments\n int m_nArgcOpt; ///< number of optional arguments\n\n /*!\n * \brief Reset form definition to pre-compiled state.\n */\n void reset();\n\n /*!\n * \brief Set parent's command id.\n *\n * \param nCmdUid Command unique id.\n */\n void setParent(const int nCmdUid);\n\n /*!\n * \brief Set forms's index.\n *\n * \param nIndex Zero based index.\n */\n void setIndex(const int nIndex);\n\n /*!\n * \brief Set command's extended usage syntax.\n *\n * \param strSyntax Syntax string.\n */\n void setSyntax(const std::string &strSyntax);\n\n /*!\n * \brief Push argument to end of argument list.\n *\n * \param argdef Command argument definition.\n */\n void pushArg(CmdArgDef &argdef);\n\n /*!\n * \brief Get form's modifiable argument at index.\n *\n * Protected version of at().\n *\n * \param nIndex Argument index.\n *\n * \return Command argument definition reference.\n */\n CmdArgDef &argAt(const int nIndex);\n\n /*!\n * \brief Get the last pushed argument.\n *\n * \return Argument definition reference.\n */\n CmdArgDef &lastArg();\n }; // class CmdFormDef\n\n //\n // Types and Data\n //\n typedef std::vector<CmdFormDef> CmdFormDefVec; ///< vector of command forms\n \n }" ({) "{" (comment) "// forward declarations in namespace rnr::cmd" (declaration) "class CmdFormDef;" (type_identifier) "class" (identifier) "CmdFormDef" (;) ";" (labeled_statement) "std::ostream &operator<<(std::ostream &os, const CmdFormDef &formdef);" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "ostream &operator<<(std::ostream &os, const CmdFormDef &formdef);" (binary_expression) "ostream &operator<<(std::ostream &os, const CmdFormDef &formdef)" (identifier) "ostream" (&) "&" (binary_expression) "operator<<(std::ostream &os, const CmdFormDef &formdef)" (identifier) "operator" (<<) "<<" (parenthesized_expression) "(std::ostream &os, const CmdFormDef &formdef)" (() "(" (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (comma_expression) "ostream &os, const CmdFormDef &formdef" (binary_expression) "ostream &os" (identifier) "ostream" (&) "&" (identifier) "os" (,) "," (ERROR) "const" (identifier) "const" (binary_expression) "CmdFormDef &formdef" (identifier) "CmdFormDef" (&) "&" (identifier) "formdef" ()) ")" (;) ";" (comment) "//--------------------------------------------------------------------------" (comment) "// CmdFormDef Class" (comment) "//--------------------------------------------------------------------------" (comment) "/*!\n * \brief Compiled command form defintion class.\n */" (function_definition) "class CmdFormDef\n {\n public:\n /*!\n * \brief Default constructor.\n */\n CmdFormDef();\n \n /*!\n * \brief Initialization constructor.\n */\n CmdFormDef(const std::string &strSyntax);\n \n /*!\n * \brief Copy constructor.\n *\n * \param src Source object.\n */\n CmdFormDef(const CmdFormDef &src);\n\n /*!\n * \brief Destructor.\n */\n virtual ~CmdFormDef();\n \n /*!\n * \brief Assignment operator.\n *\n * \param rhs Right-hand side object.\n *\n * \return *this\n */\n CmdFormDef &operator=(const CmdFormDef &rhs);\n \n\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n // Public Attribute Methods\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n\n /*\n * \brief Test if form definition is sufficiently defined.\n *\n * \return Returns true or false.\n */\n bool isDefined() const;\n\n /*!\n * \brief Get parent command's unique id.\n *\n * \return Unique id.\n */\n int getParentCmdUid() const\n {\n return m_nCmdUid;\n }\n\n /*!\n * \brief Get forms's index.\n *\n * \return Zero based index.\n */\n int getIndex() const\n {\n return m_nIndex;\n }\n\n /*!\n * \brief Get form's extended usage syntax.\n */\n std::string getSyntax() const\n {\n return m_strSyntax;\n }\n\n /*!\n * \brief Get form's argument at index.\n *\n * \param nIndex Argument index.\n *\n * \return Command argument definition reference.\n */\n const CmdArgDef &at(const int nIndex) const;\n\n /*!\n * \brief Index operator.\n *\n * Get form's argument at index.\n *\n * \param nIndex Argument index.\n *\n * \return Command argument definition reference.\n */\n const CmdArgDef &operator[](const int nIndex) const\n {\n return at(nIndex);\n }\n\n /*!\n * \brief Get the total number of arguments.\n *\n * The first argument (argv0) is the command.\n *\n * \return Number of arguments.\n */\n int numOfArgs() const\n {\n return (int)m_argDefs.size();\n }\n\n /*!\n * \brief Get the total number of required arguments.\n *\n * The required number includes the command argv0.\n *\n * Required arguments start at argument index 0.\n *\n * \return Number of arguments.\n */\n int numOfRequiredArgs() const\n {\n return m_nArgcReq;\n }\n\n /*!\n * \brief Get the total number of optional arguments.\n *\n * Optional arguments start at argument index numOfRequiredArgs().\n *\n * \return Number of arguments.\n */\n int numOfOptionalArgs() const\n {\n return m_nArgcOpt;\n }\n \n\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n // Output Methods and Operators\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n\n /*!\n * \brief Insert object into output stream.\n *\n * \param os Output stream.\n * \param formdef Object to insert.\n *\n * \return Reference to output stream.\n */\n friend std::ostream &rnr::cmd::operator<<(std::ostream &os,\n const CmdFormDef &formdef);\n\n //\n // Friends\n //\n friend class CmdDef;\n friend class CommandLine;\n\n protected:\n int m_nCmdUid; ///< parent command's unique id\n int m_nIndex; ///< forms index\n std::string m_strSyntax; ///< command extened usage syntax\n ArgDefVec m_argDefs; ///< command argument definitions\n int m_nArgcReq; ///< number of required arguments\n int m_nArgcOpt; ///< number of optional arguments\n\n /*!\n * \brief Reset form definition to pre-compiled state.\n */\n void reset();\n\n /*!\n * \brief Set parent's command id.\n *\n * \param nCmdUid Command unique id.\n */\n void setParent(const int nCmdUid);\n\n /*!\n * \brief Set forms's index.\n *\n * \param nIndex Zero based index.\n */\n void setIndex(const int nIndex);\n\n /*!\n * \brief Set command's extended usage syntax.\n *\n * \param strSyntax Syntax string.\n */\n void setSyntax(const std::string &strSyntax);\n\n /*!\n * \brief Push argument to end of argument list.\n *\n * \param argdef Command argument definition.\n */\n void pushArg(CmdArgDef &argdef);\n\n /*!\n * \brief Get form's modifiable argument at index.\n *\n * Protected version of at().\n *\n * \param nIndex Argument index.\n *\n * \return Command argument definition reference.\n */\n CmdArgDef &argAt(const int nIndex);\n\n /*!\n * \brief Get the last pushed argument.\n *\n * \return Argument definition reference.\n */\n CmdArgDef &lastArg();\n }" (type_identifier) "class" (identifier) "CmdFormDef" (compound_statement) "{\n public:\n /*!\n * \brief Default constructor.\n */\n CmdFormDef();\n \n /*!\n * \brief Initialization constructor.\n */\n CmdFormDef(const std::string &strSyntax);\n \n /*!\n * \brief Copy constructor.\n *\n * \param src Source object.\n */\n CmdFormDef(const CmdFormDef &src);\n\n /*!\n * \brief Destructor.\n */\n virtual ~CmdFormDef();\n \n /*!\n * \brief Assignment operator.\n *\n * \param rhs Right-hand side object.\n *\n * \return *this\n */\n CmdFormDef &operator=(const CmdFormDef &rhs);\n \n\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n // Public Attribute Methods\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n\n /*\n * \brief Test if form definition is sufficiently defined.\n *\n * \return Returns true or false.\n */\n bool isDefined() const;\n\n /*!\n * \brief Get parent command's unique id.\n *\n * \return Unique id.\n */\n int getParentCmdUid() const\n {\n return m_nCmdUid;\n }\n\n /*!\n * \brief Get forms's index.\n *\n * \return Zero based index.\n */\n int getIndex() const\n {\n return m_nIndex;\n }\n\n /*!\n * \brief Get form's extended usage syntax.\n */\n std::string getSyntax() const\n {\n return m_strSyntax;\n }\n\n /*!\n * \brief Get form's argument at index.\n *\n * \param nIndex Argument index.\n *\n * \return Command argument definition reference.\n */\n const CmdArgDef &at(const int nIndex) const;\n\n /*!\n * \brief Index operator.\n *\n * Get form's argument at index.\n *\n * \param nIndex Argument index.\n *\n * \return Command argument definition reference.\n */\n const CmdArgDef &operator[](const int nIndex) const\n {\n return at(nIndex);\n }\n\n /*!\n * \brief Get the total number of arguments.\n *\n * The first argument (argv0) is the command.\n *\n * \return Number of arguments.\n */\n int numOfArgs() const\n {\n return (int)m_argDefs.size();\n }\n\n /*!\n * \brief Get the total number of required arguments.\n *\n * The required number includes the command argv0.\n *\n * Required arguments start at argument index 0.\n *\n * \return Number of arguments.\n */\n int numOfRequiredArgs() const\n {\n return m_nArgcReq;\n }\n\n /*!\n * \brief Get the total number of optional arguments.\n *\n * Optional arguments start at argument index numOfRequiredArgs().\n *\n * \return Number of arguments.\n */\n int numOfOptionalArgs() const\n {\n return m_nArgcOpt;\n }\n \n\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n // Output Methods and Operators\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n\n /*!\n * \brief Insert object into output stream.\n *\n * \param os Output stream.\n * \param formdef Object to insert.\n *\n * \return Reference to output stream.\n */\n friend std::ostream &rnr::cmd::operator<<(std::ostream &os,\n const CmdFormDef &formdef);\n\n //\n // Friends\n //\n friend class CmdDef;\n friend class CommandLine;\n\n protected:\n int m_nCmdUid; ///< parent command's unique id\n int m_nIndex; ///< forms index\n std::string m_strSyntax; ///< command extened usage syntax\n ArgDefVec m_argDefs; ///< command argument definitions\n int m_nArgcReq; ///< number of required arguments\n int m_nArgcOpt; ///< number of optional arguments\n\n /*!\n * \brief Reset form definition to pre-compiled state.\n */\n void reset();\n\n /*!\n * \brief Set parent's command id.\n *\n * \param nCmdUid Command unique id.\n */\n void setParent(const int nCmdUid);\n\n /*!\n * \brief Set forms's index.\n *\n * \param nIndex Zero based index.\n */\n void setIndex(const int nIndex);\n\n /*!\n * \brief Set command's extended usage syntax.\n *\n * \param strSyntax Syntax string.\n */\n void setSyntax(const std::string &strSyntax);\n\n /*!\n * \brief Push argument to end of argument list.\n *\n * \param argdef Command argument definition.\n */\n void pushArg(CmdArgDef &argdef);\n\n /*!\n * \brief Get form's modifiable argument at index.\n *\n * Protected version of at().\n *\n * \param nIndex Argument index.\n *\n * \return Command argument definition reference.\n */\n CmdArgDef &argAt(const int nIndex);\n\n /*!\n * \brief Get the last pushed argument.\n *\n * \return Argument definition reference.\n */\n CmdArgDef &lastArg();\n }" ({) "{" (labeled_statement) "public:\n /*!\n * \brief Default constructor.\n */\n CmdFormDef();" (statement_identifier) "public" (:) ":" (comment) "/*!\n * \brief Default constructor.\n */" (expression_statement) "CmdFormDef();" (call_expression) "CmdFormDef()" (identifier) "CmdFormDef" (argument_list) "()" (() "(" ()) ")" (;) ";" (comment) "/*!\n * \brief Initialization constructor.\n */" (labeled_statement) "CmdFormDef(const std::string &strSyntax);" (statement_identifier) "CmdFormDef" (ERROR) "(const std:" (() "(" (type_descriptor) "const std" (type_qualifier) "const" (const) "const" (type_identifier) "std" (:) ":" (:) ":" (expression_statement) "string &strSyntax);" (binary_expression) "string &strSyntax" (identifier) "string" (&) "&" (identifier) "strSyntax" (ERROR) ")" ()) ")" (;) ";" (comment) "/*!\n * \brief Copy constructor.\n *\n * \param src Source object.\n */" (macro_type_specifier) "CmdFormDef(const CmdFormDef &src)" (identifier) "CmdFormDef" (() "(" (type_descriptor) "const CmdFormDef" (type_qualifier) "const" (const) "const" (type_identifier) "CmdFormDef" (ERROR) "&src" (&) "&" (identifier) "src" ()) ")" (;) ";" (comment) "/*!\n * \brief Destructor.\n */" (declaration) "virtual ~CmdFormDef();" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "CmdFormDef()" (identifier) "CmdFormDef" (parameter_list) "()" (() "(" ()) ")" (;) ";" (comment) "/*!\n * \brief Assignment operator.\n *\n * \param rhs Right-hand side object.\n *\n * \return *this\n */" (expression_statement) "CmdFormDef &operator=(const CmdFormDef &rhs);" (binary_expression) "CmdFormDef &operator=(const CmdFormDef &rhs)" (identifier) "CmdFormDef" (&) "&" (assignment_expression) "operator=(const CmdFormDef &rhs)" (identifier) "operator" (=) "=" (parenthesized_expression) "(const CmdFormDef &rhs)" (() "(" (ERROR) "const CmdFormDef" (type_descriptor) "const CmdFormDef" (type_qualifier) "const" (const) "const" (type_identifier) "CmdFormDef" (pointer_expression) "&rhs" (&) "&" (identifier) "rhs" ()) ")" (;) ";" (comment) "// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ." (comment) "// Public Attribute Methods" (comment) "// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ." (comment) "/*\n * \brief Test if form definition is sufficiently defined.\n *\n * \return Returns true or false.\n */" (function_definition) "bool isDefined() const;\n\n /*!\n * \brief Get parent command's unique id.\n *\n * \return Unique id.\n */\n int getParentCmdUid() const\n {\n return m_nCmdUid;\n }\n\n /*!\n * \brief Get forms's index.\n *\n * \return Zero based index.\n */\n int getIndex() const\n {\n return m_nIndex;\n }" (primitive_type) "bool" (function_declarator) "isDefined()" (identifier) "isDefined" (parameter_list) "()" (() "(" ()) ")" (declaration) "const;\n\n /*!\n * \brief Get parent command's unique id.\n *\n * \return Unique id.\n */\n int getParentCmdUid() const\n {\n return m_nCmdUid;" (type_qualifier) "const" (const) "const" (ERROR) ";" (;) ";" (comment) "/*!\n * \brief Get parent command's unique id.\n *\n * \return Unique id.\n */" (primitive_type) "int" (ERROR) "getParentCmdUid() const\n {\n return" (function_declarator) "getParentCmdUid() const" (identifier) "getParentCmdUid" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" ({) "{" (return) "return" (identifier) "m_nCmdUid" (;) ";" (ERROR) "}" (}) "}" (comment) "/*!\n * \brief Get forms's index.\n *\n * \return Zero based index.\n */" (ERROR) "int getIndex() const" (primitive_type) "int" (function_declarator) "getIndex() const" (identifier) "getIndex" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{\n return m_nIndex;\n }" ({) "{" (return_statement) "return m_nIndex;" (return) "return" (identifier) "m_nIndex" (;) ";" (}) "}" (comment) "/*!\n * \brief Get form's extended usage syntax.\n */" (labeled_statement) "std::string getSyntax() const\n {\n return m_strSyntax;\n }" (statement_identifier) "std" (:) ":" (ERROR) ":string getSyntax() const" (:) ":" (type_identifier) "string" (function_declarator) "getSyntax() const" (identifier) "getSyntax" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{\n return m_strSyntax;\n }" ({) "{" (return_statement) "return m_strSyntax;" (return) "return" (identifier) "m_strSyntax" (;) ";" (}) "}" (comment) "/*!\n * \brief Get form's argument at index.\n *\n * \param nIndex Argument index.\n *\n * \return Command argument definition reference.\n */" (ERROR) "const CmdArgDef &at(const int nIndex) const" (type_qualifier) "const" (const) "const" (type_identifier) "CmdArgDef" (ERROR) "&" (&) "&" (function_declarator) "at(const int nIndex) const" (identifier) "at" (parameter_list) "(const int nIndex)" (() "(" (parameter_declaration) "const int nIndex" (type_qualifier) "const" (const) "const" (primitive_type) "int" (identifier) "nIndex" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (comment) "/*!\n * \brief Index operator.\n *\n * Get form's argument at index.\n *\n * \param nIndex Argument index.\n *\n * \return Command argument definition reference.\n */" (function_definition) "const CmdArgDef &operator[](const int nIndex) const\n {\n return at(nIndex);\n }" (type_qualifier) "const" (const) "const" (type_identifier) "CmdArgDef" (ERROR) "&" (&) "&" (function_declarator) "operator[](const int nIndex) const" (array_declarator) "operator[]" (identifier) "operator" ([) "[" (]) "]" (parameter_list) "(const int nIndex)" (() "(" (parameter_declaration) "const int nIndex" (type_qualifier) "const" (const) "const" (primitive_type) "int" (identifier) "nIndex" ()) ")" (identifier) "const" (compound_statement) "{\n return at(nIndex);\n }" ({) "{" (return_statement) "return at(nIndex);" (return) "return" (call_expression) "at(nIndex)" (identifier) "at" (argument_list) "(nIndex)" (() "(" (identifier) "nIndex" ()) ")" (;) ";" (}) "}" (comment) "/*!\n * \brief Get the total number of arguments.\n *\n * The first argument (argv0) is the command.\n *\n * \return Number of arguments.\n */" (ERROR) "int numOfArgs() const" (primitive_type) "int" (function_declarator) "numOfArgs()" (identifier) "numOfArgs" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{\n return (int)m_argDefs.size();\n }" ({) "{" (return_statement) "return (int)m_argDefs.size();" (return) "return" (cast_expression) "(int)m_argDefs.size()" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (call_expression) "m_argDefs.size()" (field_expression) "m_argDefs.size" (identifier) "m_argDefs" (.) "." (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (comment) "/*!\n * \brief Get the total number of required arguments.\n *\n * The required number includes the command argv0.\n *\n * Required arguments start at argument index 0.\n *\n * \return Number of arguments.\n */" (ERROR) "int numOfRequiredArgs() const" (primitive_type) "int" (function_declarator) "numOfRequiredArgs()" (identifier) "numOfRequiredArgs" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{\n return m_nArgcReq;\n }" ({) "{" (return_statement) "return m_nArgcReq;" (return) "return" (identifier) "m_nArgcReq" (;) ";" (}) "}" (comment) "/*!\n * \brief Get the total number of optional arguments.\n *\n * Optional arguments start at argument index numOfRequiredArgs().\n *\n * \return Number of arguments.\n */" (ERROR) "int numOfOptionalArgs() const" (primitive_type) "int" (function_declarator) "numOfOptionalArgs()" (identifier) "numOfOptionalArgs" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{\n return m_nArgcOpt;\n }" ({) "{" (return_statement) "return m_nArgcOpt;" (return) "return" (identifier) "m_nArgcOpt" (;) ";" (}) "}" (comment) "// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ." (comment) "// Output Methods and Operators" (comment) "// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ." (comment) "/*!\n * \brief Insert object into output stream.\n *\n * \param os Output stream.\n * \param formdef Object to insert.\n *\n * \return Reference to output stream.\n */" (declaration) "friend std::ostream &rnr::cmd::operator<<(std::ostream &os,\n const CmdFormDef &formdef);" (type_identifier) "friend" (ERROR) "std::ostream &rnr::cmd::operator<<(std::ostream &" (identifier) "std" (:) ":" (:) ":" (identifier) "ostream" (&) "&" (identifier) "rnr" (:) ":" (:) ":" (identifier) "cmd" (:) ":" (:) ":" (identifier) "operator" (<<) "<<" (() "(" (identifier) "std" (:) ":" (:) ":" (identifier) "ostream" (&) "&" (identifier) "os" (,) "," (ERROR) "const CmdFormDef &" (identifier) "const" (identifier) "CmdFormDef" (&) "&" (identifier) "formdef" (ERROR) ")" ()) ")" (;) ";" (comment) "//" (comment) "// Friends" (comment) "//" (declaration) "friend class CmdDef;" (type_identifier) "friend" (ERROR) "class" (identifier) "class" (identifier) "CmdDef" (;) ";" (declaration) "friend class CommandLine;" (type_identifier) "friend" (ERROR) "class" (identifier) "class" (identifier) "CommandLine" (;) ";" (labeled_statement) "protected:\n int m_nCmdUid;" (statement_identifier) "protected" (:) ":" (declaration) "int m_nCmdUid;" (primitive_type) "int" (identifier) "m_nCmdUid" (;) ";" (comment) "///< parent command's unique id" (declaration) "int m_nIndex;" (primitive_type) "int" (identifier) "m_nIndex" (;) ";" (comment) "///< forms index" (labeled_statement) "std::string m_strSyntax;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (declaration) "string m_strSyntax;" (type_identifier) "string" (identifier) "m_strSyntax" (;) ";" (comment) "///< command extened usage syntax" (declaration) "ArgDefVec m_argDefs;" (type_identifier) "ArgDefVec" (identifier) "m_argDefs" (;) ";" (comment) "///< command argument definitions" (declaration) "int m_nArgcReq;" (primitive_type) "int" (identifier) "m_nArgcReq" (;) ";" (comment) "///< number of required arguments" (declaration) "int m_nArgcOpt;" (primitive_type) "int" (identifier) "m_nArgcOpt" (;) ";" (comment) "///< number of optional arguments" (comment) "/*!\n * \brief Reset form definition to pre-compiled state.\n */" (declaration) "void reset();" (primitive_type) "void" (function_declarator) "reset()" (identifier) "reset" (parameter_list) "()" (() "(" ()) ")" (;) ";" (comment) "/*!\n * \brief Set parent's command id.\n *\n * \param nCmdUid Command unique id.\n */" (declaration) "void setParent(const int nCmdUid);" (primitive_type) "void" (function_declarator) "setParent(const int nCmdUid)" (identifier) "setParent" (parameter_list) "(const int nCmdUid)" (() "(" (parameter_declaration) "const int nCmdUid" (type_qualifier) "const" (const) "const" (primitive_type) "int" (identifier) "nCmdUid" ()) ")" (;) ";" (comment) "/*!\n * \brief Set forms's index.\n *\n * \param nIndex Zero based index.\n */" (declaration) "void setIndex(const int nIndex);" (primitive_type) "void" (function_declarator) "setIndex(const int nIndex)" (identifier) "setIndex" (parameter_list) "(const int nIndex)" (() "(" (parameter_declaration) "const int nIndex" (type_qualifier) "const" (const) "const" (primitive_type) "int" (identifier) "nIndex" ()) ")" (;) ";" (comment) "/*!\n * \brief Set command's extended usage syntax.\n *\n * \param strSyntax Syntax string.\n */" (declaration) "void setSyntax(const std::string &strSyntax);" (primitive_type) "void" (function_declarator) "setSyntax(const std::string &strSyntax)" (identifier) "setSyntax" (parameter_list) "(const std::string &strSyntax)" (() "(" (parameter_declaration) "const std::string &strSyntax" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string &" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "strSyntax" ()) ")" (;) ";" (comment) "/*!\n * \brief Push argument to end of argument list.\n *\n * \param argdef Command argument definition.\n */" (declaration) "void pushArg(CmdArgDef &argdef);" (primitive_type) "void" (function_declarator) "pushArg(CmdArgDef &argdef)" (identifier) "pushArg" (parameter_list) "(CmdArgDef &argdef)" (() "(" (parameter_declaration) "CmdArgDef &argdef" (type_identifier) "CmdArgDef" (ERROR) "&" (&) "&" (identifier) "argdef" ()) ")" (;) ";" (comment) "/*!\n * \brief Get form's modifiable argument at index.\n *\n * Protected version of at().\n *\n * \param nIndex Argument index.\n *\n * \return Command argument definition reference.\n */" (expression_statement) "CmdArgDef &argAt(const int nIndex);" (binary_expression) "CmdArgDef &argAt(const int nIndex)" (identifier) "CmdArgDef" (&) "&" (call_expression) "argAt(const int nIndex)" (identifier) "argAt" (argument_list) "(const int nIndex)" (() "(" (ERROR) "const int" (identifier) "const" (identifier) "int" (identifier) "nIndex" ()) ")" (;) ";" (comment) "/*!\n * \brief Get the last pushed argument.\n *\n * \return Argument definition reference.\n */" (expression_statement) "CmdArgDef &lastArg();" (binary_expression) "CmdArgDef &lastArg()" (identifier) "CmdArgDef" (&) "&" (call_expression) "lastArg()" (identifier) "lastArg" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (comment) "// class CmdFormDef" (comment) "//" (comment) "// Types and Data" (comment) "//" (type_definition) "typedef std::vector<CmdFormDef> CmdFormDefVec;" (typedef) "typedef" (type_identifier) "std" (ERROR) "::vector<CmdFormDef>" (:) ":" (:) ":" (type_identifier) "vector" (<) "<" (type_identifier) "CmdFormDef" (>) ">" (type_identifier) "CmdFormDefVec" (;) ";" (comment) "///< vector of command forms" (}) "}" (comment) "// namespace cmd" (}) "}" (comment) "// namespace rnr" (#endif) "#endif" (comment) "// _RNR_CMD_FORM_DEF_H"
594
29
{"language": "c", "success": true, "metadata": {"lines": 288, "avg_line_length": 27.87, "nodes": 284, "errors": 0, "source_hash": "51f05ca9ebe6dda81baf4295de408ce664fc9d3fe3e5d5f99f607b784ba16660", "categorized_nodes": 207}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _RNR_CMD_FORM_DEF_H\n#define _RNR_CMD_FORM_DEF_H\n\n#include <stdio.h>\n#include <unistd.h>\n#include <stdlib.h>\n\n#include <iostream>\n#include <string>\n#include <vector>\n\n#include \"rnr/rnrconfig.h\"\n#include \"rnr/log.h\"\n\n#include \"rnr/appkit/IOManip.h\"\n#include \"rnr/appkit/CmdCore.h\"\n#include \"rnr/appkit/CmdArgDef.h\"\n\n/*!\n * \\brief RoadNarrows Robotics\n */\nnamespace rnr\n{\n /*!\n * \\brief Commands\n */\n namespace cmd\n {\n // forward declarations in namespace rnr::cmd\n class CmdFormDef;\n std::ostream &operator<<(std::ostream &os, const CmdFormDef &formdef);\n\n //--------------------------------------------------------------------------\n // CmdFormDef Class\n //--------------------------------------------------------------------------\n\n /*!\n * \\brief Compiled command form defintion class.\n */\n class CmdFormDef\n {\n public:\n /*!\n * \\brief Default constructor.\n */\n CmdFormDef();\n \n /*!\n * \\brief Initialization constructor.\n */\n CmdFormDef(const std::string &strSyntax);\n \n /*!\n * \\brief Copy constructor.\n *\n * \\param src Source object.\n */\n CmdFormDef(const CmdFormDef &src);\n\n /*!\n * \\brief Destructor.\n */\n virtual ~CmdFormDef();\n \n /*!\n * \\brief Assignment operator.\n *\n * \\param rhs Right-hand side object.\n *\n * \\return *this\n */\n CmdFormDef &operator=(const CmdFormDef &rhs);\n \n\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n // Public Attribute Methods\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n\n /*\n * \\brief Test if form definition is sufficiently defined.\n *\n * \\return Returns true or false.\n */\n bool isDefined() const;\n\n /*!\n * \\brief Get parent command's unique id.\n *\n * \\return Unique id.\n */\n int getParentCmdUid() const\n {\n return m_nCmdUid;\n }\n\n /*!\n * \\brief Get forms's index.\n *\n * \\return Zero based index.\n */\n int getIndex() const\n {\n return m_nIndex;\n }\n\n /*!\n * \\brief Get form's extended usage syntax.\n */\n std::string getSyntax() const\n {\n return m_strSyntax;\n }\n\n /*!\n * \\brief Get form's argument at index.\n *\n * \\param nIndex Argument index.\n *\n * \\return Command argument definition reference.\n */\n const CmdArgDef &at(const int nIndex) const;\n\n /*!\n * \\brief Index operator.\n *\n * Get form's argument at index.\n *\n * \\param nIndex Argument index.\n *\n * \\return Command argument definition reference.\n */\n const CmdArgDef &operator[](const int nIndex) const\n {\n return at(nIndex);\n }\n\n /*!\n * \\brief Get the total number of arguments.\n *\n * The first argument (argv0) is the command.\n *\n * \\return Number of arguments.\n */\n int numOfArgs() const\n {\n return (int)m_argDefs.size();\n }\n\n /*!\n * \\brief Get the total number of required arguments.\n *\n * The required number includes the command argv0.\n *\n * Required arguments start at argument index 0.\n *\n * \\return Number of arguments.\n */\n int numOfRequiredArgs() const\n {\n return m_nArgcReq;\n }\n\n /*!\n * \\brief Get the total number of optional arguments.\n *\n * Optional arguments start at argument index numOfRequiredArgs().\n *\n * \\return Number of arguments.\n */\n int numOfOptionalArgs() const\n {\n return m_nArgcOpt;\n }\n \n\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n // Output Methods and Operators\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n\n /*!\n * \\brief Insert object into output stream.\n *\n * \\param os Output stream.\n * \\param formdef Object to insert.\n *\n * \\return Reference to output stream.\n */\n friend std::ostream &rnr::cmd::operator<<(std::ostream &os,\n const CmdFormDef &formdef);\n\n //\n // Friends\n //\n friend class CmdDef;\n friend class CommandLine;\n\n protected:\n int m_nCmdUid; ///< parent command's unique id\n int m_nIndex; ///< forms index\n std::string m_strSyntax; ///< command extened usage syntax\n ArgDefVec m_argDefs; ///< command argument definitions\n int m_nArgcReq; ///< number of required arguments\n int m_nArgcOpt; ///< number of optional arguments\n\n /*!\n * \\brief Reset form definition to pre-compiled state.\n */\n void reset();\n\n /*!\n * \\brief Set parent's command id.\n *\n * \\param nCmdUid Command unique id.\n */\n void setParent(const int nCmdUid);\n\n /*!\n * \\brief Set forms's index.\n *\n * \\param nIndex Zero based index.\n */\n void setIndex(const int nIndex);\n\n /*!\n * \\brief Set command's extended usage syntax.\n *\n * \\param strSyntax Syntax string.\n */\n void setSyntax(const std::string &strSyntax);\n\n /*!\n * \\brief Push argument to end of argument list.\n *\n * \\param argdef Command argument definition.\n */\n void pushArg(CmdArgDef &argdef);\n\n /*!\n * \\brief Get form's modifiable argument at index.\n *\n * Protected version of at().\n *\n * \\param nIndex Argument index.\n *\n * \\return Command argument definition reference.\n */\n CmdArgDef &argAt(const int nIndex);\n\n /*!\n * \\brief Get the last pushed argument.\n *\n * \\return Argument definition reference.\n */\n CmdArgDef &lastArg();\n }; // class CmdFormDef\n\n //\n // Types and Data\n //\n typedef std::vector<CmdFormDef> CmdFormDefVec; ///< vector of command forms\n \n } // namespace cmd\n} // namespace rnr\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 283], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 319, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 7}}, {"id": 2, "type": "identifier", "text": "_RNR_CMD_FORM_DEF_H", "parent": 0, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 27}}, {"id": 3, "type": "preproc_def", "text": "#define _RNR_CMD_FORM_DEF_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 57, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 7}}, {"id": 5, "type": "identifier", "text": "_RNR_CMD_FORM_DEF_H", "parent": 3, "children": [], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 27}}, {"id": 6, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 59, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<stdio.h>", "parent": 6, "children": [], "start_point": {"row": 58, "column": 9}, "end_point": {"row": 58, "column": 18}}, {"id": 9, "type": "preproc_include", "text": "#include <unistd.h>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 60, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<unistd.h>", "parent": 9, "children": [], "start_point": {"row": 59, "column": 9}, "end_point": {"row": 59, "column": 19}}, {"id": 12, "type": "preproc_include", "text": "#include <stdlib.h>\n", "parent": 0, "children": [13, 14], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 61, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<stdlib.h>", "parent": 12, "children": [], "start_point": {"row": 60, "column": 9}, "end_point": {"row": 60, "column": 19}}, {"id": 15, "type": "preproc_include", "text": "#include <iostream>\n", "parent": 0, "children": [16, 17], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 63, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 62, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<iostream>", "parent": 15, "children": [], "start_point": {"row": 62, "column": 9}, "end_point": {"row": 62, "column": 19}}, {"id": 18, "type": "preproc_include", "text": "#include <string>\n", "parent": 0, "children": [19, 20], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 64, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 8}}, {"id": 20, "type": "system_lib_string", "text": "<string>", "parent": 18, "children": [], "start_point": {"row": 63, "column": 9}, "end_point": {"row": 63, "column": 17}}, {"id": 21, "type": "preproc_include", "text": "#include <vector>\n", "parent": 0, "children": [22, 23], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 65, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 8}}, {"id": 23, "type": "system_lib_string", "text": "<vector>", "parent": 21, "children": [], "start_point": {"row": 64, "column": 9}, "end_point": {"row": 64, "column": 17}}, {"id": 24, "type": "preproc_include", "text": "#include \"rnr/rnrconfig.h\"\n", "parent": 0, "children": [25, 26], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 67, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 8}}, {"id": 26, "type": "string_literal", "text": "\"rnr/rnrconfig.h\"", "parent": 24, "children": [], "start_point": {"row": 66, "column": 9}, "end_point": {"row": 66, "column": 26}}, {"id": 27, "type": "preproc_include", "text": "#include \"rnr/log.h\"\n", "parent": 0, "children": [28, 29], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 68, "column": 0}}, {"id": 28, "type": "#include", "text": "#include", "parent": 27, "children": [], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 8}}, {"id": 29, "type": "string_literal", "text": "\"rnr/log.h\"", "parent": 27, "children": [], "start_point": {"row": 67, "column": 9}, "end_point": {"row": 67, "column": 20}}, {"id": 30, "type": "preproc_include", "text": "#include \"rnr/appkit/IOManip.h\"\n", "parent": 0, "children": [31, 32], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 70, "column": 0}}, {"id": 31, "type": "#include", "text": "#include", "parent": 30, "children": [], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 8}}, {"id": 32, "type": "string_literal", "text": "\"rnr/appkit/IOManip.h\"", "parent": 30, "children": [], "start_point": {"row": 69, "column": 9}, "end_point": {"row": 69, "column": 31}}, {"id": 33, "type": "preproc_include", "text": "#include \"rnr/appkit/CmdCore.h\"\n", "parent": 0, "children": [34, 35], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 71, "column": 0}}, {"id": 34, "type": "#include", "text": "#include", "parent": 33, "children": [], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 70, "column": 8}}, {"id": 35, "type": "string_literal", "text": "\"rnr/appkit/CmdCore.h\"", "parent": 33, "children": [], "start_point": {"row": 70, "column": 9}, "end_point": {"row": 70, "column": 31}}, {"id": 36, "type": "preproc_include", "text": "#include \"rnr/appkit/CmdArgDef.h\"\n", "parent": 0, "children": [37, 38], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 72, "column": 0}}, {"id": 37, "type": "#include", "text": "#include", "parent": 36, "children": [], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 71, "column": 8}}, {"id": 38, "type": "string_literal", "text": "\"rnr/appkit/CmdArgDef.h\"", "parent": 36, "children": [], "start_point": {"row": 71, "column": 9}, "end_point": {"row": 71, "column": 33}}, {"id": 39, "type": "function_definition", "text": "namespace rnr\n{\n /*!\n * \\brief Commands\n */\n namespace cmd\n {\n // forward declarations in namespace rnr::cmd\n class CmdFormDef;\n std::ostream &operator<<(std::ostream &os, const CmdFormDef &formdef);\n\n //--------------------------------------------------------------------------\n // CmdFormDef Class\n //--------------------------------------------------------------------------\n\n /*!\n * \\brief Compiled command form defintion class.\n */\n class CmdFormDef\n {\n public:\n /*!\n * \\brief Default constructor.\n */\n CmdFormDef();\n \n /*!\n * \\brief Initialization constructor.\n */\n CmdFormDef(const std::string &strSyntax);\n \n /*!\n * \\brief Copy constructor.\n *\n * \\param src Source object.\n */\n CmdFormDef(const CmdFormDef &src);\n\n /*!\n * \\brief Destructor.\n */\n virtual ~CmdFormDef();\n \n /*!\n * \\brief Assignment operator.\n *\n * \\param rhs Right-hand side object.\n *\n * \\return *this\n */\n CmdFormDef &operator=(const CmdFormDef &rhs);\n \n\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n // Public Attribute Methods\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n\n /*\n * \\brief Test if form definition is sufficiently defined.\n *\n * \\return Returns true or false.\n */\n bool isDefined() const;\n\n /*!\n * \\brief Get parent command's unique id.\n *\n * \\return Unique id.\n */\n int getParentCmdUid() const\n {\n return m_nCmdUid;\n }\n\n /*!\n * \\brief Get forms's index.\n *\n * \\return Zero based index.\n */\n int getIndex() const\n {\n return m_nIndex;\n }\n\n /*!\n * \\brief Get form's extended usage syntax.\n */\n std::string getSyntax() const\n {\n return m_strSyntax;\n }\n\n /*!\n * \\brief Get form's argument at index.\n *\n * \\param nIndex Argument index.\n *\n * \\return Command argument definition reference.\n */\n const CmdArgDef &at(const int nIndex) const;\n\n /*!\n * \\brief Index operator.\n *\n * Get form's argument at index.\n *\n * \\param nIndex Argument index.\n *\n * \\return Command argument definition reference.\n */\n const CmdArgDef &operator[](const int nIndex) const\n {\n return at(nIndex);\n }\n\n /*!\n * \\brief Get the total number of arguments.\n *\n * The first argument (argv0) is the command.\n *\n * \\return Number of arguments.\n */\n int numOfArgs() const\n {\n return (int)m_argDefs.size();\n }\n\n /*!\n * \\brief Get the total number of required arguments.\n *\n * The required number includes the command argv0.\n *\n * Required arguments start at argument index 0.\n *\n * \\return Number of arguments.\n */\n int numOfRequiredArgs() const\n {\n return m_nArgcReq;\n }\n\n /*!\n * \\brief Get the total number of optional arguments.\n *\n * Optional arguments start at argument index numOfRequiredArgs().\n *\n * \\return Number of arguments.\n */\n int numOfOptionalArgs() const\n {\n return m_nArgcOpt;\n }\n \n\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n // Output Methods and Operators\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n\n /*!\n * \\brief Insert object into output stream.\n *\n * \\param os Output stream.\n * \\param formdef Object to insert.\n *\n * \\return Reference to output stream.\n */\n friend std::ostream &rnr::cmd::operator<<(std::ostream &os,\n const CmdFormDef &formdef);\n\n //\n // Friends\n //\n friend class CmdDef;\n friend class CommandLine;\n\n protected:\n int m_nCmdUid; ///< parent command's unique id\n int m_nIndex; ///< forms index\n std::string m_strSyntax; ///< command extened usage syntax\n ArgDefVec m_argDefs; ///< command argument definitions\n int m_nArgcReq; ///< number of required arguments\n int m_nArgcOpt; ///< number of optional arguments\n\n /*!\n * \\brief Reset form definition to pre-compiled state.\n */\n void reset();\n\n /*!\n * \\brief Set parent's command id.\n *\n * \\param nCmdUid Command unique id.\n */\n void setParent(const int nCmdUid);\n\n /*!\n * \\brief Set forms's index.\n *\n * \\param nIndex Zero based index.\n */\n void setIndex(const int nIndex);\n\n /*!\n * \\brief Set command's extended usage syntax.\n *\n * \\param strSyntax Syntax string.\n */\n void setSyntax(const std::string &strSyntax);\n\n /*!\n * \\brief Push argument to end of argument list.\n *\n * \\param argdef Command argument definition.\n */\n void pushArg(CmdArgDef &argdef);\n\n /*!\n * \\brief Get form's modifiable argument at index.\n *\n * Protected version of at().\n *\n * \\param nIndex Argument index.\n *\n * \\return Command argument definition reference.\n */\n CmdArgDef &argAt(const int nIndex);\n\n /*!\n * \\brief Get the last pushed argument.\n *\n * \\return Argument definition reference.\n */\n CmdArgDef &lastArg();\n }; // class CmdFormDef\n\n //\n // Types and Data\n //\n typedef std::vector<CmdFormDef> CmdFormDefVec; ///< vector of command forms\n \n } // namespace cmd\n}", "parent": 0, "children": [40, 41], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 317, "column": 1}}, {"id": 40, "type": "type_identifier", "text": "namespace", "parent": 39, "children": [], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 76, "column": 9}}, {"id": 41, "type": "identifier", "text": "rnr", "parent": 39, "children": [], "start_point": {"row": 76, "column": 10}, "end_point": {"row": 76, "column": 13}}, {"id": 42, "type": "function_definition", "text": "namespace cmd\n {\n // forward declarations in namespace rnr::cmd\n class CmdFormDef;\n std::ostream &operator<<(std::ostream &os, const CmdFormDef &formdef);\n\n //--------------------------------------------------------------------------\n // CmdFormDef Class\n //--------------------------------------------------------------------------\n\n /*!\n * \\brief Compiled command form defintion class.\n */\n class CmdFormDef\n {\n public:\n /*!\n * \\brief Default constructor.\n */\n CmdFormDef();\n \n /*!\n * \\brief Initialization constructor.\n */\n CmdFormDef(const std::string &strSyntax);\n \n /*!\n * \\brief Copy constructor.\n *\n * \\param src Source object.\n */\n CmdFormDef(const CmdFormDef &src);\n\n /*!\n * \\brief Destructor.\n */\n virtual ~CmdFormDef();\n \n /*!\n * \\brief Assignment operator.\n *\n * \\param rhs Right-hand side object.\n *\n * \\return *this\n */\n CmdFormDef &operator=(const CmdFormDef &rhs);\n \n\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n // Public Attribute Methods\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n\n /*\n * \\brief Test if form definition is sufficiently defined.\n *\n * \\return Returns true or false.\n */\n bool isDefined() const;\n\n /*!\n * \\brief Get parent command's unique id.\n *\n * \\return Unique id.\n */\n int getParentCmdUid() const\n {\n return m_nCmdUid;\n }\n\n /*!\n * \\brief Get forms's index.\n *\n * \\return Zero based index.\n */\n int getIndex() const\n {\n return m_nIndex;\n }\n\n /*!\n * \\brief Get form's extended usage syntax.\n */\n std::string getSyntax() const\n {\n return m_strSyntax;\n }\n\n /*!\n * \\brief Get form's argument at index.\n *\n * \\param nIndex Argument index.\n *\n * \\return Command argument definition reference.\n */\n const CmdArgDef &at(const int nIndex) const;\n\n /*!\n * \\brief Index operator.\n *\n * Get form's argument at index.\n *\n * \\param nIndex Argument index.\n *\n * \\return Command argument definition reference.\n */\n const CmdArgDef &operator[](const int nIndex) const\n {\n return at(nIndex);\n }\n\n /*!\n * \\brief Get the total number of arguments.\n *\n * The first argument (argv0) is the command.\n *\n * \\return Number of arguments.\n */\n int numOfArgs() const\n {\n return (int)m_argDefs.size();\n }\n\n /*!\n * \\brief Get the total number of required arguments.\n *\n * The required number includes the command argv0.\n *\n * Required arguments start at argument index 0.\n *\n * \\return Number of arguments.\n */\n int numOfRequiredArgs() const\n {\n return m_nArgcReq;\n }\n\n /*!\n * \\brief Get the total number of optional arguments.\n *\n * Optional arguments start at argument index numOfRequiredArgs().\n *\n * \\return Number of arguments.\n */\n int numOfOptionalArgs() const\n {\n return m_nArgcOpt;\n }\n \n\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n // Output Methods and Operators\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n\n /*!\n * \\brief Insert object into output stream.\n *\n * \\param os Output stream.\n * \\param formdef Object to insert.\n *\n * \\return Reference to output stream.\n */\n friend std::ostream &rnr::cmd::operator<<(std::ostream &os,\n const CmdFormDef &formdef);\n\n //\n // Friends\n //\n friend class CmdDef;\n friend class CommandLine;\n\n protected:\n int m_nCmdUid; ///< parent command's unique id\n int m_nIndex; ///< forms index\n std::string m_strSyntax; ///< command extened usage syntax\n ArgDefVec m_argDefs; ///< command argument definitions\n int m_nArgcReq; ///< number of required arguments\n int m_nArgcOpt; ///< number of optional arguments\n\n /*!\n * \\brief Reset form definition to pre-compiled state.\n */\n void reset();\n\n /*!\n * \\brief Set parent's command id.\n *\n * \\param nCmdUid Command unique id.\n */\n void setParent(const int nCmdUid);\n\n /*!\n * \\brief Set forms's index.\n *\n * \\param nIndex Zero based index.\n */\n void setIndex(const int nIndex);\n\n /*!\n * \\brief Set command's extended usage syntax.\n *\n * \\param strSyntax Syntax string.\n */\n void setSyntax(const std::string &strSyntax);\n\n /*!\n * \\brief Push argument to end of argument list.\n *\n * \\param argdef Command argument definition.\n */\n void pushArg(CmdArgDef &argdef);\n\n /*!\n * \\brief Get form's modifiable argument at index.\n *\n * Protected version of at().\n *\n * \\param nIndex Argument index.\n *\n * \\return Command argument definition reference.\n */\n CmdArgDef &argAt(const int nIndex);\n\n /*!\n * \\brief Get the last pushed argument.\n *\n * \\return Argument definition reference.\n */\n CmdArgDef &lastArg();\n }; // class CmdFormDef\n\n //\n // Types and Data\n //\n typedef std::vector<CmdFormDef> CmdFormDefVec; ///< vector of command forms\n \n }", "parent": 39, "children": [43, 44], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 316, "column": 3}}, {"id": 43, "type": "type_identifier", "text": "namespace", "parent": 42, "children": [], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 11}}, {"id": 44, "type": "identifier", "text": "cmd", "parent": 42, "children": [], "start_point": {"row": 81, "column": 12}, "end_point": {"row": 81, "column": 15}}, {"id": 45, "type": "declaration", "text": "class CmdFormDef;", "parent": 42, "children": [46], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 21}}, {"id": 46, "type": "identifier", "text": "CmdFormDef", "parent": 45, "children": [], "start_point": {"row": 84, "column": 10}, "end_point": {"row": 84, "column": 20}}, {"id": 47, "type": "labeled_statement", "text": "std::ostream &operator<<(std::ostream &os, const CmdFormDef &formdef);", "parent": 42, "children": [48], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 74}}, {"id": 48, "type": "statement_identifier", "text": "std", "parent": 47, "children": [], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 7}}, {"id": 49, "type": "binary_expression", "text": "ostream &operator<<(std::ostream &os, const CmdFormDef &formdef)", "parent": 47, "children": [50, 51], "start_point": {"row": 85, "column": 9}, "end_point": {"row": 85, "column": 73}}, {"id": 50, "type": "identifier", "text": "ostream", "parent": 49, "children": [], "start_point": {"row": 85, "column": 9}, "end_point": {"row": 85, "column": 16}}, {"id": 51, "type": "binary_expression", "text": "operator<<(std::ostream &os, const CmdFormDef &formdef)", "parent": 49, "children": [52, 53, 54], "start_point": {"row": 85, "column": 18}, "end_point": {"row": 85, "column": 73}}, {"id": 52, "type": "identifier", "text": "operator", "parent": 51, "children": [], "start_point": {"row": 85, "column": 18}, "end_point": {"row": 85, "column": 26}}, {"id": 53, "type": "<<", "text": "<<", "parent": 51, "children": [], "start_point": {"row": 85, "column": 26}, "end_point": {"row": 85, "column": 28}}, {"id": 54, "type": "parenthesized_expression", "text": "(std::ostream &os, const CmdFormDef &formdef)", "parent": 51, "children": [55, 57], "start_point": {"row": 85, "column": 28}, "end_point": {"row": 85, "column": 73}}, {"id": 55, "type": "ERROR", "text": "std::", "parent": 54, "children": [56], "start_point": {"row": 85, "column": 29}, "end_point": {"row": 85, "column": 34}}, {"id": 56, "type": "identifier", "text": "std", "parent": 55, "children": [], "start_point": {"row": 85, "column": 29}, "end_point": {"row": 85, "column": 32}}, {"id": 57, "type": "comma_expression", "text": "ostream &os, const CmdFormDef &formdef", "parent": 54, "children": [58, 61], "start_point": {"row": 85, "column": 34}, "end_point": {"row": 85, "column": 72}}, {"id": 58, "type": "binary_expression", "text": "ostream &os", "parent": 57, "children": [59, 60], "start_point": {"row": 85, "column": 34}, "end_point": {"row": 85, "column": 45}}, {"id": 59, "type": "identifier", "text": "ostream", "parent": 58, "children": [], "start_point": {"row": 85, "column": 34}, "end_point": {"row": 85, "column": 41}}, {"id": 60, "type": "identifier", "text": "os", "parent": 58, "children": [], "start_point": {"row": 85, "column": 43}, "end_point": {"row": 85, "column": 45}}, {"id": 61, "type": "binary_expression", "text": "CmdFormDef &formdef", "parent": 57, "children": [62, 63], "start_point": {"row": 85, "column": 53}, "end_point": {"row": 85, "column": 72}}, {"id": 62, "type": "identifier", "text": "CmdFormDef", "parent": 61, "children": [], "start_point": {"row": 85, "column": 53}, "end_point": {"row": 85, "column": 63}}, {"id": 63, "type": "identifier", "text": "formdef", "parent": 61, "children": [], "start_point": {"row": 85, "column": 65}, "end_point": {"row": 85, "column": 72}}, {"id": 64, "type": "function_definition", "text": "class CmdFormDef\n {\n public:\n /*!\n * \\brief Default constructor.\n */\n CmdFormDef();\n \n /*!\n * \\brief Initialization constructor.\n */\n CmdFormDef(const std::string &strSyntax);\n \n /*!\n * \\brief Copy constructor.\n *\n * \\param src Source object.\n */\n CmdFormDef(const CmdFormDef &src);\n\n /*!\n * \\brief Destructor.\n */\n virtual ~CmdFormDef();\n \n /*!\n * \\brief Assignment operator.\n *\n * \\param rhs Right-hand side object.\n *\n * \\return *this\n */\n CmdFormDef &operator=(const CmdFormDef &rhs);\n \n\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n // Public Attribute Methods\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n\n /*\n * \\brief Test if form definition is sufficiently defined.\n *\n * \\return Returns true or false.\n */\n bool isDefined() const;\n\n /*!\n * \\brief Get parent command's unique id.\n *\n * \\return Unique id.\n */\n int getParentCmdUid() const\n {\n return m_nCmdUid;\n }\n\n /*!\n * \\brief Get forms's index.\n *\n * \\return Zero based index.\n */\n int getIndex() const\n {\n return m_nIndex;\n }\n\n /*!\n * \\brief Get form's extended usage syntax.\n */\n std::string getSyntax() const\n {\n return m_strSyntax;\n }\n\n /*!\n * \\brief Get form's argument at index.\n *\n * \\param nIndex Argument index.\n *\n * \\return Command argument definition reference.\n */\n const CmdArgDef &at(const int nIndex) const;\n\n /*!\n * \\brief Index operator.\n *\n * Get form's argument at index.\n *\n * \\param nIndex Argument index.\n *\n * \\return Command argument definition reference.\n */\n const CmdArgDef &operator[](const int nIndex) const\n {\n return at(nIndex);\n }\n\n /*!\n * \\brief Get the total number of arguments.\n *\n * The first argument (argv0) is the command.\n *\n * \\return Number of arguments.\n */\n int numOfArgs() const\n {\n return (int)m_argDefs.size();\n }\n\n /*!\n * \\brief Get the total number of required arguments.\n *\n * The required number includes the command argv0.\n *\n * Required arguments start at argument index 0.\n *\n * \\return Number of arguments.\n */\n int numOfRequiredArgs() const\n {\n return m_nArgcReq;\n }\n\n /*!\n * \\brief Get the total number of optional arguments.\n *\n * Optional arguments start at argument index numOfRequiredArgs().\n *\n * \\return Number of arguments.\n */\n int numOfOptionalArgs() const\n {\n return m_nArgcOpt;\n }\n \n\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n // Output Methods and Operators\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n\n /*!\n * \\brief Insert object into output stream.\n *\n * \\param os Output stream.\n * \\param formdef Object to insert.\n *\n * \\return Reference to output stream.\n */\n friend std::ostream &rnr::cmd::operator<<(std::ostream &os,\n const CmdFormDef &formdef);\n\n //\n // Friends\n //\n friend class CmdDef;\n friend class CommandLine;\n\n protected:\n int m_nCmdUid; ///< parent command's unique id\n int m_nIndex; ///< forms index\n std::string m_strSyntax; ///< command extened usage syntax\n ArgDefVec m_argDefs; ///< command argument definitions\n int m_nArgcReq; ///< number of required arguments\n int m_nArgcOpt; ///< number of optional arguments\n\n /*!\n * \\brief Reset form definition to pre-compiled state.\n */\n void reset();\n\n /*!\n * \\brief Set parent's command id.\n *\n * \\param nCmdUid Command unique id.\n */\n void setParent(const int nCmdUid);\n\n /*!\n * \\brief Set forms's index.\n *\n * \\param nIndex Zero based index.\n */\n void setIndex(const int nIndex);\n\n /*!\n * \\brief Set command's extended usage syntax.\n *\n * \\param strSyntax Syntax string.\n */\n void setSyntax(const std::string &strSyntax);\n\n /*!\n * \\brief Push argument to end of argument list.\n *\n * \\param argdef Command argument definition.\n */\n void pushArg(CmdArgDef &argdef);\n\n /*!\n * \\brief Get form's modifiable argument at index.\n *\n * Protected version of at().\n *\n * \\param nIndex Argument index.\n *\n * \\return Command argument definition reference.\n */\n CmdArgDef &argAt(const int nIndex);\n\n /*!\n * \\brief Get the last pushed argument.\n *\n * \\return Argument definition reference.\n */\n CmdArgDef &lastArg();\n }", "parent": 42, "children": [65], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 309, "column": 5}}, {"id": 65, "type": "identifier", "text": "CmdFormDef", "parent": 64, "children": [], "start_point": {"row": 94, "column": 10}, "end_point": {"row": 94, "column": 20}}, {"id": 66, "type": "labeled_statement", "text": "public:\n /*!\n * \\brief Default constructor.\n */\n CmdFormDef();", "parent": 64, "children": [], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 100, "column": 19}}, {"id": 67, "type": "call_expression", "text": "CmdFormDef()", "parent": 66, "children": [68, 69], "start_point": {"row": 100, "column": 6}, "end_point": {"row": 100, "column": 18}}, {"id": 68, "type": "identifier", "text": "CmdFormDef", "parent": 67, "children": [], "start_point": {"row": 100, "column": 6}, "end_point": {"row": 100, "column": 16}}, {"id": 69, "type": "argument_list", "text": "()", "parent": 67, "children": [], "start_point": {"row": 100, "column": 16}, "end_point": {"row": 100, "column": 18}}, {"id": 70, "type": "labeled_statement", "text": "CmdFormDef(const std::string &strSyntax);", "parent": 64, "children": [71, 72], "start_point": {"row": 105, "column": 6}, "end_point": {"row": 105, "column": 47}}, {"id": 71, "type": "statement_identifier", "text": "CmdFormDef", "parent": 70, "children": [], "start_point": {"row": 105, "column": 6}, "end_point": {"row": 105, "column": 16}}, {"id": 72, "type": "ERROR", "text": "(const std:", "parent": 70, "children": [73], "start_point": {"row": 105, "column": 16}, "end_point": {"row": 105, "column": 27}}, {"id": 73, "type": "type_descriptor", "text": "const std", "parent": 72, "children": [74], "start_point": {"row": 105, "column": 17}, "end_point": {"row": 105, "column": 26}}, {"id": 74, "type": "type_identifier", "text": "std", "parent": 73, "children": [], "start_point": {"row": 105, "column": 23}, "end_point": {"row": 105, "column": 26}}, {"id": 75, "type": "binary_expression", "text": "string &strSyntax", "parent": 70, "children": [76, 77], "start_point": {"row": 105, "column": 28}, "end_point": {"row": 105, "column": 45}}, {"id": 76, "type": "identifier", "text": "string", "parent": 75, "children": [], "start_point": {"row": 105, "column": 28}, "end_point": {"row": 105, "column": 34}}, {"id": 77, "type": "identifier", "text": "strSyntax", "parent": 75, "children": [], "start_point": {"row": 105, "column": 36}, "end_point": {"row": 105, "column": 45}}, {"id": 78, "type": "macro_type_specifier", "text": "CmdFormDef(const CmdFormDef &src)", "parent": 64, "children": [79, 80, 82], "start_point": {"row": 112, "column": 6}, "end_point": {"row": 112, "column": 39}}, {"id": 79, "type": "identifier", "text": "CmdFormDef", "parent": 78, "children": [], "start_point": {"row": 112, "column": 6}, "end_point": {"row": 112, "column": 16}}, {"id": 80, "type": "type_descriptor", "text": "const CmdFormDef", "parent": 78, "children": [81], "start_point": {"row": 112, "column": 17}, "end_point": {"row": 112, "column": 33}}, {"id": 81, "type": "type_identifier", "text": "CmdFormDef", "parent": 80, "children": [], "start_point": {"row": 112, "column": 23}, "end_point": {"row": 112, "column": 33}}, {"id": 82, "type": "ERROR", "text": "&src", "parent": 78, "children": [83], "start_point": {"row": 112, "column": 34}, "end_point": {"row": 112, "column": 38}}, {"id": 83, "type": "identifier", "text": "src", "parent": 82, "children": [], "start_point": {"row": 112, "column": 35}, "end_point": {"row": 112, "column": 38}}, {"id": 84, "type": "declaration", "text": "virtual ~CmdFormDef();", "parent": 64, "children": [85, 86, 88], "start_point": {"row": 117, "column": 6}, "end_point": {"row": 117, "column": 28}}, {"id": 85, "type": "type_identifier", "text": "virtual", "parent": 84, "children": [], "start_point": {"row": 117, "column": 6}, "end_point": {"row": 117, "column": 13}}, {"id": 86, "type": "ERROR", "text": "~", "parent": 84, "children": [87], "start_point": {"row": 117, "column": 14}, "end_point": {"row": 117, "column": 15}}, {"id": 87, "type": "~", "text": "~", "parent": 86, "children": [], "start_point": {"row": 117, "column": 14}, "end_point": {"row": 117, "column": 15}}, {"id": 88, "type": "function_declarator", "text": "CmdFormDef()", "parent": 84, "children": [89, 90], "start_point": {"row": 117, "column": 15}, "end_point": {"row": 117, "column": 27}}, {"id": 89, "type": "identifier", "text": "CmdFormDef", "parent": 88, "children": [], "start_point": {"row": 117, "column": 15}, "end_point": {"row": 117, "column": 25}}, {"id": 90, "type": "parameter_list", "text": "()", "parent": 88, "children": [], "start_point": {"row": 117, "column": 25}, "end_point": {"row": 117, "column": 27}}, {"id": 91, "type": "binary_expression", "text": "CmdFormDef &operator=(const CmdFormDef &rhs)", "parent": 64, "children": [92, 93], "start_point": {"row": 126, "column": 6}, "end_point": {"row": 126, "column": 50}}, {"id": 92, "type": "identifier", "text": "CmdFormDef", "parent": 91, "children": [], "start_point": {"row": 126, "column": 6}, "end_point": {"row": 126, "column": 16}}, {"id": 93, "type": "assignment_expression", "text": "operator=(const CmdFormDef &rhs)", "parent": 91, "children": [94, 95, 96], "start_point": {"row": 126, "column": 18}, "end_point": {"row": 126, "column": 50}}, {"id": 94, "type": "identifier", "text": "operator", "parent": 93, "children": [], "start_point": {"row": 126, "column": 18}, "end_point": {"row": 126, "column": 26}}, {"id": 95, "type": "=", "text": "=", "parent": 93, "children": [], "start_point": {"row": 126, "column": 26}, "end_point": {"row": 126, "column": 27}}, {"id": 96, "type": "parenthesized_expression", "text": "(const CmdFormDef &rhs)", "parent": 93, "children": [97, 100], "start_point": {"row": 126, "column": 27}, "end_point": {"row": 126, "column": 50}}, {"id": 97, "type": "ERROR", "text": "const CmdFormDef", "parent": 96, "children": [98], "start_point": {"row": 126, "column": 28}, "end_point": {"row": 126, "column": 44}}, {"id": 98, "type": "type_descriptor", "text": "const CmdFormDef", "parent": 97, "children": [99], "start_point": {"row": 126, "column": 28}, "end_point": {"row": 126, "column": 44}}, {"id": 99, "type": "type_identifier", "text": "CmdFormDef", "parent": 98, "children": [], "start_point": {"row": 126, "column": 34}, "end_point": {"row": 126, "column": 44}}, {"id": 100, "type": "pointer_expression", "text": "&rhs", "parent": 96, "children": [101], "start_point": {"row": 126, "column": 45}, "end_point": {"row": 126, "column": 49}}, {"id": 101, "type": "identifier", "text": "rhs", "parent": 100, "children": [], "start_point": {"row": 126, "column": 46}, "end_point": {"row": 126, "column": 49}}, {"id": 102, "type": "function_definition", "text": "bool isDefined() const;\n\n /*!\n * \\brief Get parent command's unique id.\n *\n * \\return Unique id.\n */\n int getParentCmdUid() const\n {\n return m_nCmdUid;\n }\n\n /*!\n * \\brief Get forms's index.\n *\n * \\return Zero based index.\n */\n int getIndex() const\n {\n return m_nIndex;\n }", "parent": 64, "children": [103, 104, 107, 114], "start_point": {"row": 138, "column": 6}, "end_point": {"row": 158, "column": 7}}, {"id": 103, "type": "primitive_type", "text": "bool", "parent": 102, "children": [], "start_point": {"row": 138, "column": 6}, "end_point": {"row": 138, "column": 10}}, {"id": 104, "type": "function_declarator", "text": "isDefined()", "parent": 102, "children": [105, 106], "start_point": {"row": 138, "column": 11}, "end_point": {"row": 138, "column": 22}}, {"id": 105, "type": "identifier", "text": "isDefined", "parent": 104, "children": [], "start_point": {"row": 138, "column": 11}, "end_point": {"row": 138, "column": 20}}, {"id": 106, "type": "parameter_list", "text": "()", "parent": 104, "children": [], "start_point": {"row": 138, "column": 20}, "end_point": {"row": 138, "column": 22}}, {"id": 107, "type": "declaration", "text": "const;\n\n /*!\n * \\brief Get parent command's unique id.\n *\n * \\return Unique id.\n */\n int getParentCmdUid() const\n {\n return m_nCmdUid;", "parent": 102, "children": [108, 109, 113], "start_point": {"row": 138, "column": 23}, "end_point": {"row": 147, "column": 25}}, {"id": 108, "type": "primitive_type", "text": "int", "parent": 107, "children": [], "start_point": {"row": 145, "column": 6}, "end_point": {"row": 145, "column": 9}}, {"id": 109, "type": "ERROR", "text": "getParentCmdUid() const\n {\n return", "parent": 107, "children": [110], "start_point": {"row": 145, "column": 10}, "end_point": {"row": 147, "column": 14}}, {"id": 110, "type": "function_declarator", "text": "getParentCmdUid() const", "parent": 109, "children": [111, 112], "start_point": {"row": 145, "column": 10}, "end_point": {"row": 145, "column": 33}}, {"id": 111, "type": "identifier", "text": "getParentCmdUid", "parent": 110, "children": [], "start_point": {"row": 145, "column": 10}, "end_point": {"row": 145, "column": 25}}, {"id": 112, "type": "parameter_list", "text": "()", "parent": 110, "children": [], "start_point": {"row": 145, "column": 25}, "end_point": {"row": 145, "column": 27}}, {"id": 113, "type": "identifier", "text": "m_nCmdUid", "parent": 107, "children": [], "start_point": {"row": 147, "column": 15}, "end_point": {"row": 147, "column": 24}}, {"id": 114, "type": "ERROR", "text": "int getIndex() const", "parent": 102, "children": [115, 116], "start_point": {"row": 155, "column": 6}, "end_point": {"row": 155, "column": 26}}, {"id": 115, "type": "primitive_type", "text": "int", "parent": 114, "children": [], "start_point": {"row": 155, "column": 6}, "end_point": {"row": 155, "column": 9}}, {"id": 116, "type": "function_declarator", "text": "getIndex() const", "parent": 114, "children": [117, 118], "start_point": {"row": 155, "column": 10}, "end_point": {"row": 155, "column": 26}}, {"id": 117, "type": "identifier", "text": "getIndex", "parent": 116, "children": [], "start_point": {"row": 155, "column": 10}, "end_point": {"row": 155, "column": 18}}, {"id": 118, "type": "parameter_list", "text": "()", "parent": 116, "children": [], "start_point": {"row": 155, "column": 18}, "end_point": {"row": 155, "column": 20}}, {"id": 119, "type": "return_statement", "text": "return m_nIndex;", "parent": 102, "children": [120], "start_point": {"row": 157, "column": 8}, "end_point": {"row": 157, "column": 24}}, {"id": 120, "type": "identifier", "text": "m_nIndex", "parent": 119, "children": [], "start_point": {"row": 157, "column": 15}, "end_point": {"row": 157, "column": 23}}, {"id": 121, "type": "labeled_statement", "text": "std::string getSyntax() const\n {\n return m_strSyntax;\n }", "parent": 64, "children": [122, 123], "start_point": {"row": 163, "column": 6}, "end_point": {"row": 166, "column": 7}}, {"id": 122, "type": "statement_identifier", "text": "std", "parent": 121, "children": [], "start_point": {"row": 163, "column": 6}, "end_point": {"row": 163, "column": 9}}, {"id": 123, "type": "ERROR", "text": ":string getSyntax() const", "parent": 121, "children": [124, 125], "start_point": {"row": 163, "column": 10}, "end_point": {"row": 163, "column": 35}}, {"id": 124, "type": "type_identifier", "text": "string", "parent": 123, "children": [], "start_point": {"row": 163, "column": 11}, "end_point": {"row": 163, "column": 17}}, {"id": 125, "type": "function_declarator", "text": "getSyntax() const", "parent": 123, "children": [126, 127], "start_point": {"row": 163, "column": 18}, "end_point": {"row": 163, "column": 35}}, {"id": 126, "type": "identifier", "text": "getSyntax", "parent": 125, "children": [], "start_point": {"row": 163, "column": 18}, "end_point": {"row": 163, "column": 27}}, {"id": 127, "type": "parameter_list", "text": "()", "parent": 125, "children": [], "start_point": {"row": 163, "column": 27}, "end_point": {"row": 163, "column": 29}}, {"id": 128, "type": "return_statement", "text": "return m_strSyntax;", "parent": 121, "children": [129], "start_point": {"row": 165, "column": 8}, "end_point": {"row": 165, "column": 27}}, {"id": 129, "type": "identifier", "text": "m_strSyntax", "parent": 128, "children": [], "start_point": {"row": 165, "column": 15}, "end_point": {"row": 165, "column": 26}}, {"id": 130, "type": "ERROR", "text": "const CmdArgDef &at(const int nIndex) const", "parent": 64, "children": [131, 132], "start_point": {"row": 175, "column": 6}, "end_point": {"row": 175, "column": 49}}, {"id": 131, "type": "type_identifier", "text": "CmdArgDef", "parent": 130, "children": [], "start_point": {"row": 175, "column": 12}, "end_point": {"row": 175, "column": 21}}, {"id": 132, "type": "function_declarator", "text": "at(const int nIndex) const", "parent": 130, "children": [133, 134], "start_point": {"row": 175, "column": 23}, "end_point": {"row": 175, "column": 49}}, {"id": 133, "type": "identifier", "text": "at", "parent": 132, "children": [], "start_point": {"row": 175, "column": 23}, "end_point": {"row": 175, "column": 25}}, {"id": 134, "type": "parameter_list", "text": "(const int nIndex)", "parent": 132, "children": [135], "start_point": {"row": 175, "column": 25}, "end_point": {"row": 175, "column": 43}}, {"id": 135, "type": "parameter_declaration", "text": "const int nIndex", "parent": 134, "children": [136, 137], "start_point": {"row": 175, "column": 26}, "end_point": {"row": 175, "column": 42}}, {"id": 136, "type": "primitive_type", "text": "int", "parent": 135, "children": [], "start_point": {"row": 175, "column": 32}, "end_point": {"row": 175, "column": 35}}, {"id": 137, "type": "identifier", "text": "nIndex", "parent": 135, "children": [], "start_point": {"row": 175, "column": 36}, "end_point": {"row": 175, "column": 42}}, {"id": 138, "type": "function_definition", "text": "const CmdArgDef &operator[](const int nIndex) const\n {\n return at(nIndex);\n }", "parent": 64, "children": [139, 140], "start_point": {"row": 186, "column": 6}, "end_point": {"row": 189, "column": 7}}, {"id": 139, "type": "type_identifier", "text": "CmdArgDef", "parent": 138, "children": [], "start_point": {"row": 186, "column": 12}, "end_point": {"row": 186, "column": 21}}, {"id": 140, "type": "function_declarator", "text": "operator[](const int nIndex) const", "parent": 138, "children": [141, 143], "start_point": {"row": 186, "column": 23}, "end_point": {"row": 186, "column": 57}}, {"id": 141, "type": "array_declarator", "text": "operator[]", "parent": 140, "children": [142], "start_point": {"row": 186, "column": 23}, "end_point": {"row": 186, "column": 33}}, {"id": 142, "type": "identifier", "text": "operator", "parent": 141, "children": [], "start_point": {"row": 186, "column": 23}, "end_point": {"row": 186, "column": 31}}, {"id": 143, "type": "parameter_list", "text": "(const int nIndex)", "parent": 140, "children": [144], "start_point": {"row": 186, "column": 33}, "end_point": {"row": 186, "column": 51}}, {"id": 144, "type": "parameter_declaration", "text": "const int nIndex", "parent": 143, "children": [145, 146], "start_point": {"row": 186, "column": 34}, "end_point": {"row": 186, "column": 50}}, {"id": 145, "type": "primitive_type", "text": "int", "parent": 144, "children": [], "start_point": {"row": 186, "column": 40}, "end_point": {"row": 186, "column": 43}}, {"id": 146, "type": "identifier", "text": "nIndex", "parent": 144, "children": [], "start_point": {"row": 186, "column": 44}, "end_point": {"row": 186, "column": 50}}, {"id": 147, "type": "return_statement", "text": "return at(nIndex);", "parent": 138, "children": [148], "start_point": {"row": 188, "column": 8}, "end_point": {"row": 188, "column": 26}}, {"id": 148, "type": "call_expression", "text": "at(nIndex)", "parent": 147, "children": [149, 150], "start_point": {"row": 188, "column": 15}, "end_point": {"row": 188, "column": 25}}, {"id": 149, "type": "identifier", "text": "at", "parent": 148, "children": [], "start_point": {"row": 188, "column": 15}, "end_point": {"row": 188, "column": 17}}, {"id": 150, "type": "argument_list", "text": "(nIndex)", "parent": 148, "children": [151], "start_point": {"row": 188, "column": 17}, "end_point": {"row": 188, "column": 25}}, {"id": 151, "type": "identifier", "text": "nIndex", "parent": 150, "children": [], "start_point": {"row": 188, "column": 18}, "end_point": {"row": 188, "column": 24}}, {"id": 152, "type": "ERROR", "text": "int numOfArgs() const", "parent": 64, "children": [153, 154], "start_point": {"row": 198, "column": 6}, "end_point": {"row": 198, "column": 27}}, {"id": 153, "type": "primitive_type", "text": "int", "parent": 152, "children": [], "start_point": {"row": 198, "column": 6}, "end_point": {"row": 198, "column": 9}}, {"id": 154, "type": "function_declarator", "text": "numOfArgs()", "parent": 152, "children": [155, 156], "start_point": {"row": 198, "column": 10}, "end_point": {"row": 198, "column": 21}}, {"id": 155, "type": "identifier", "text": "numOfArgs", "parent": 154, "children": [], "start_point": {"row": 198, "column": 10}, "end_point": {"row": 198, "column": 19}}, {"id": 156, "type": "parameter_list", "text": "()", "parent": 154, "children": [], "start_point": {"row": 198, "column": 19}, "end_point": {"row": 198, "column": 21}}, {"id": 157, "type": "return_statement", "text": "return (int)m_argDefs.size();", "parent": 64, "children": [158], "start_point": {"row": 200, "column": 8}, "end_point": {"row": 200, "column": 37}}, {"id": 158, "type": "cast_expression", "text": "(int)m_argDefs.size()", "parent": 157, "children": [159, 161], "start_point": {"row": 200, "column": 15}, "end_point": {"row": 200, "column": 36}}, {"id": 159, "type": "type_descriptor", "text": "int", "parent": 158, "children": [160], "start_point": {"row": 200, "column": 16}, "end_point": {"row": 200, "column": 19}}, {"id": 160, "type": "primitive_type", "text": "int", "parent": 159, "children": [], "start_point": {"row": 200, "column": 16}, "end_point": {"row": 200, "column": 19}}, {"id": 161, "type": "call_expression", "text": "m_argDefs.size()", "parent": 158, "children": [162, 165], "start_point": {"row": 200, "column": 20}, "end_point": {"row": 200, "column": 36}}, {"id": 162, "type": "field_expression", "text": "m_argDefs.size", "parent": 161, "children": [163, 164], "start_point": {"row": 200, "column": 20}, "end_point": {"row": 200, "column": 34}}, {"id": 163, "type": "identifier", "text": "m_argDefs", "parent": 162, "children": [], "start_point": {"row": 200, "column": 20}, "end_point": {"row": 200, "column": 29}}, {"id": 164, "type": "field_identifier", "text": "size", "parent": 162, "children": [], "start_point": {"row": 200, "column": 30}, "end_point": {"row": 200, "column": 34}}, {"id": 165, "type": "argument_list", "text": "()", "parent": 161, "children": [], "start_point": {"row": 200, "column": 34}, "end_point": {"row": 200, "column": 36}}, {"id": 166, "type": "ERROR", "text": "int numOfRequiredArgs() const", "parent": 64, "children": [167, 168], "start_point": {"row": 212, "column": 6}, "end_point": {"row": 212, "column": 35}}, {"id": 167, "type": "primitive_type", "text": "int", "parent": 166, "children": [], "start_point": {"row": 212, "column": 6}, "end_point": {"row": 212, "column": 9}}, {"id": 168, "type": "function_declarator", "text": "numOfRequiredArgs()", "parent": 166, "children": [169, 170], "start_point": {"row": 212, "column": 10}, "end_point": {"row": 212, "column": 29}}, {"id": 169, "type": "identifier", "text": "numOfRequiredArgs", "parent": 168, "children": [], "start_point": {"row": 212, "column": 10}, "end_point": {"row": 212, "column": 27}}, {"id": 170, "type": "parameter_list", "text": "()", "parent": 168, "children": [], "start_point": {"row": 212, "column": 27}, "end_point": {"row": 212, "column": 29}}, {"id": 171, "type": "return_statement", "text": "return m_nArgcReq;", "parent": 64, "children": [172], "start_point": {"row": 214, "column": 8}, "end_point": {"row": 214, "column": 26}}, {"id": 172, "type": "identifier", "text": "m_nArgcReq", "parent": 171, "children": [], "start_point": {"row": 214, "column": 15}, "end_point": {"row": 214, "column": 25}}, {"id": 173, "type": "ERROR", "text": "int numOfOptionalArgs() const", "parent": 64, "children": [174, 175], "start_point": {"row": 224, "column": 6}, "end_point": {"row": 224, "column": 35}}, {"id": 174, "type": "primitive_type", "text": "int", "parent": 173, "children": [], "start_point": {"row": 224, "column": 6}, "end_point": {"row": 224, "column": 9}}, {"id": 175, "type": "function_declarator", "text": "numOfOptionalArgs()", "parent": 173, "children": [176, 177], "start_point": {"row": 224, "column": 10}, "end_point": {"row": 224, "column": 29}}, {"id": 176, "type": "identifier", "text": "numOfOptionalArgs", "parent": 175, "children": [], "start_point": {"row": 224, "column": 10}, "end_point": {"row": 224, "column": 27}}, {"id": 177, "type": "parameter_list", "text": "()", "parent": 175, "children": [], "start_point": {"row": 224, "column": 27}, "end_point": {"row": 224, "column": 29}}, {"id": 178, "type": "return_statement", "text": "return m_nArgcOpt;", "parent": 64, "children": [179], "start_point": {"row": 226, "column": 8}, "end_point": {"row": 226, "column": 26}}, {"id": 179, "type": "identifier", "text": "m_nArgcOpt", "parent": 178, "children": [], "start_point": {"row": 226, "column": 15}, "end_point": {"row": 226, "column": 25}}, {"id": 180, "type": "declaration", "text": "friend std::ostream &rnr::cmd::operator<<(std::ostream &os,\n const CmdFormDef &formdef);", "parent": 64, "children": [181, 182, 191, 192, 194], "start_point": {"row": 242, "column": 6}, "end_point": {"row": 243, "column": 75}}, {"id": 181, "type": "type_identifier", "text": "friend", "parent": 180, "children": [], "start_point": {"row": 242, "column": 6}, "end_point": {"row": 242, "column": 12}}, {"id": 182, "type": "ERROR", "text": "std::ostream &rnr::cmd::operator<<(std::ostream &", "parent": 180, "children": [183, 184, 185, 186, 187, 188, 189, 190], "start_point": {"row": 242, "column": 13}, "end_point": {"row": 242, "column": 66}}, {"id": 183, "type": "identifier", "text": "std", "parent": 182, "children": [], "start_point": {"row": 242, "column": 13}, "end_point": {"row": 242, "column": 16}}, {"id": 184, "type": "identifier", "text": "ostream", "parent": 182, "children": [], "start_point": {"row": 242, "column": 18}, "end_point": {"row": 242, "column": 25}}, {"id": 185, "type": "identifier", "text": "rnr", "parent": 182, "children": [], "start_point": {"row": 242, "column": 27}, "end_point": {"row": 242, "column": 30}}, {"id": 186, "type": "identifier", "text": "cmd", "parent": 182, "children": [], "start_point": {"row": 242, "column": 32}, "end_point": {"row": 242, "column": 35}}, {"id": 187, "type": "identifier", "text": "operator", "parent": 182, "children": [], "start_point": {"row": 242, "column": 37}, "end_point": {"row": 242, "column": 45}}, {"id": 188, "type": "<<", "text": "<<", "parent": 182, "children": [], "start_point": {"row": 242, "column": 45}, "end_point": {"row": 242, "column": 47}}, {"id": 189, "type": "identifier", "text": "std", "parent": 182, "children": [], "start_point": {"row": 242, "column": 48}, "end_point": {"row": 242, "column": 51}}, {"id": 190, "type": "identifier", "text": "ostream", "parent": 182, "children": [], "start_point": {"row": 242, "column": 53}, "end_point": {"row": 242, "column": 60}}, {"id": 191, "type": "identifier", "text": "os", "parent": 180, "children": [], "start_point": {"row": 242, "column": 66}, "end_point": {"row": 242, "column": 68}}, {"id": 192, "type": "ERROR", "text": "const CmdFormDef &", "parent": 180, "children": [193], "start_point": {"row": 243, "column": 48}, "end_point": {"row": 243, "column": 66}}, {"id": 193, "type": "identifier", "text": "CmdFormDef", "parent": 192, "children": [], "start_point": {"row": 243, "column": 54}, "end_point": {"row": 243, "column": 64}}, {"id": 194, "type": "identifier", "text": "formdef", "parent": 180, "children": [], "start_point": {"row": 243, "column": 66}, "end_point": {"row": 243, "column": 73}}, {"id": 195, "type": "declaration", "text": "friend class CmdDef;", "parent": 64, "children": [196, 197], "start_point": {"row": 248, "column": 6}, "end_point": {"row": 248, "column": 26}}, {"id": 196, "type": "type_identifier", "text": "friend", "parent": 195, "children": [], "start_point": {"row": 248, "column": 6}, "end_point": {"row": 248, "column": 12}}, {"id": 197, "type": "identifier", "text": "CmdDef", "parent": 195, "children": [], "start_point": {"row": 248, "column": 19}, "end_point": {"row": 248, "column": 25}}, {"id": 198, "type": "declaration", "text": "friend class CommandLine;", "parent": 64, "children": [199, 200], "start_point": {"row": 249, "column": 6}, "end_point": {"row": 249, "column": 31}}, {"id": 199, "type": "type_identifier", "text": "friend", "parent": 198, "children": [], "start_point": {"row": 249, "column": 6}, "end_point": {"row": 249, "column": 12}}, {"id": 200, "type": "identifier", "text": "CommandLine", "parent": 198, "children": [], "start_point": {"row": 249, "column": 19}, "end_point": {"row": 249, "column": 30}}, {"id": 201, "type": "labeled_statement", "text": "protected:\n int m_nCmdUid;", "parent": 64, "children": [202], "start_point": {"row": 251, "column": 4}, "end_point": {"row": 252, "column": 28}}, {"id": 202, "type": "declaration", "text": "int m_nCmdUid;", "parent": 201, "children": [203, 204], "start_point": {"row": 252, "column": 6}, "end_point": {"row": 252, "column": 28}}, {"id": 203, "type": "primitive_type", "text": "int", "parent": 202, "children": [], "start_point": {"row": 252, "column": 6}, "end_point": {"row": 252, "column": 9}}, {"id": 204, "type": "identifier", "text": "m_nCmdUid", "parent": 202, "children": [], "start_point": {"row": 252, "column": 18}, "end_point": {"row": 252, "column": 27}}, {"id": 205, "type": "declaration", "text": "int m_nIndex;", "parent": 64, "children": [206, 207], "start_point": {"row": 253, "column": 6}, "end_point": {"row": 253, "column": 27}}, {"id": 206, "type": "primitive_type", "text": "int", "parent": 205, "children": [], "start_point": {"row": 253, "column": 6}, "end_point": {"row": 253, "column": 9}}, {"id": 207, "type": "identifier", "text": "m_nIndex", "parent": 205, "children": [], "start_point": {"row": 253, "column": 18}, "end_point": {"row": 253, "column": 26}}, {"id": 208, "type": "labeled_statement", "text": "std::string m_strSyntax;", "parent": 64, "children": [209, 210], "start_point": {"row": 254, "column": 6}, "end_point": {"row": 254, "column": 30}}, {"id": 209, "type": "statement_identifier", "text": "std", "parent": 208, "children": [], "start_point": {"row": 254, "column": 6}, "end_point": {"row": 254, "column": 9}}, {"id": 210, "type": "declaration", "text": "string m_strSyntax;", "parent": 208, "children": [211, 212], "start_point": {"row": 254, "column": 11}, "end_point": {"row": 254, "column": 30}}, {"id": 211, "type": "type_identifier", "text": "string", "parent": 210, "children": [], "start_point": {"row": 254, "column": 11}, "end_point": {"row": 254, "column": 17}}, {"id": 212, "type": "identifier", "text": "m_strSyntax", "parent": 210, "children": [], "start_point": {"row": 254, "column": 18}, "end_point": {"row": 254, "column": 29}}, {"id": 213, "type": "declaration", "text": "ArgDefVec m_argDefs;", "parent": 64, "children": [214, 215], "start_point": {"row": 255, "column": 6}, "end_point": {"row": 255, "column": 28}}, {"id": 214, "type": "type_identifier", "text": "ArgDefVec", "parent": 213, "children": [], "start_point": {"row": 255, "column": 6}, "end_point": {"row": 255, "column": 15}}, {"id": 215, "type": "identifier", "text": "m_argDefs", "parent": 213, "children": [], "start_point": {"row": 255, "column": 18}, "end_point": {"row": 255, "column": 27}}, {"id": 216, "type": "declaration", "text": "int m_nArgcReq;", "parent": 64, "children": [217, 218], "start_point": {"row": 256, "column": 6}, "end_point": {"row": 256, "column": 29}}, {"id": 217, "type": "primitive_type", "text": "int", "parent": 216, "children": [], "start_point": {"row": 256, "column": 6}, "end_point": {"row": 256, "column": 9}}, {"id": 218, "type": "identifier", "text": "m_nArgcReq", "parent": 216, "children": [], "start_point": {"row": 256, "column": 18}, "end_point": {"row": 256, "column": 28}}, {"id": 219, "type": "declaration", "text": "int m_nArgcOpt;", "parent": 64, "children": [220, 221], "start_point": {"row": 257, "column": 6}, "end_point": {"row": 257, "column": 29}}, {"id": 220, "type": "primitive_type", "text": "int", "parent": 219, "children": [], "start_point": {"row": 257, "column": 6}, "end_point": {"row": 257, "column": 9}}, {"id": 221, "type": "identifier", "text": "m_nArgcOpt", "parent": 219, "children": [], "start_point": {"row": 257, "column": 18}, "end_point": {"row": 257, "column": 28}}, {"id": 222, "type": "declaration", "text": "void reset();", "parent": 64, "children": [223, 224], "start_point": {"row": 262, "column": 6}, "end_point": {"row": 262, "column": 19}}, {"id": 223, "type": "primitive_type", "text": "void", "parent": 222, "children": [], "start_point": {"row": 262, "column": 6}, "end_point": {"row": 262, "column": 10}}, {"id": 224, "type": "function_declarator", "text": "reset()", "parent": 222, "children": [225, 226], "start_point": {"row": 262, "column": 11}, "end_point": {"row": 262, "column": 18}}, {"id": 225, "type": "identifier", "text": "reset", "parent": 224, "children": [], "start_point": {"row": 262, "column": 11}, "end_point": {"row": 262, "column": 16}}, {"id": 226, "type": "parameter_list", "text": "()", "parent": 224, "children": [], "start_point": {"row": 262, "column": 16}, "end_point": {"row": 262, "column": 18}}, {"id": 227, "type": "declaration", "text": "void setParent(const int nCmdUid);", "parent": 64, "children": [228, 229], "start_point": {"row": 269, "column": 6}, "end_point": {"row": 269, "column": 40}}, {"id": 228, "type": "primitive_type", "text": "void", "parent": 227, "children": [], "start_point": {"row": 269, "column": 6}, "end_point": {"row": 269, "column": 10}}, {"id": 229, "type": "function_declarator", "text": "setParent(const int nCmdUid)", "parent": 227, "children": [230, 231], "start_point": {"row": 269, "column": 11}, "end_point": {"row": 269, "column": 39}}, {"id": 230, "type": "identifier", "text": "setParent", "parent": 229, "children": [], "start_point": {"row": 269, "column": 11}, "end_point": {"row": 269, "column": 20}}, {"id": 231, "type": "parameter_list", "text": "(const int nCmdUid)", "parent": 229, "children": [232], "start_point": {"row": 269, "column": 20}, "end_point": {"row": 269, "column": 39}}, {"id": 232, "type": "parameter_declaration", "text": "const int nCmdUid", "parent": 231, "children": [233, 234], "start_point": {"row": 269, "column": 21}, "end_point": {"row": 269, "column": 38}}, {"id": 233, "type": "primitive_type", "text": "int", "parent": 232, "children": [], "start_point": {"row": 269, "column": 27}, "end_point": {"row": 269, "column": 30}}, {"id": 234, "type": "identifier", "text": "nCmdUid", "parent": 232, "children": [], "start_point": {"row": 269, "column": 31}, "end_point": {"row": 269, "column": 38}}, {"id": 235, "type": "declaration", "text": "void setIndex(const int nIndex);", "parent": 64, "children": [236, 237], "start_point": {"row": 276, "column": 6}, "end_point": {"row": 276, "column": 38}}, {"id": 236, "type": "primitive_type", "text": "void", "parent": 235, "children": [], "start_point": {"row": 276, "column": 6}, "end_point": {"row": 276, "column": 10}}, {"id": 237, "type": "function_declarator", "text": "setIndex(const int nIndex)", "parent": 235, "children": [238, 239], "start_point": {"row": 276, "column": 11}, "end_point": {"row": 276, "column": 37}}, {"id": 238, "type": "identifier", "text": "setIndex", "parent": 237, "children": [], "start_point": {"row": 276, "column": 11}, "end_point": {"row": 276, "column": 19}}, {"id": 239, "type": "parameter_list", "text": "(const int nIndex)", "parent": 237, "children": [240], "start_point": {"row": 276, "column": 19}, "end_point": {"row": 276, "column": 37}}, {"id": 240, "type": "parameter_declaration", "text": "const int nIndex", "parent": 239, "children": [241, 242], "start_point": {"row": 276, "column": 20}, "end_point": {"row": 276, "column": 36}}, {"id": 241, "type": "primitive_type", "text": "int", "parent": 240, "children": [], "start_point": {"row": 276, "column": 26}, "end_point": {"row": 276, "column": 29}}, {"id": 242, "type": "identifier", "text": "nIndex", "parent": 240, "children": [], "start_point": {"row": 276, "column": 30}, "end_point": {"row": 276, "column": 36}}, {"id": 243, "type": "declaration", "text": "void setSyntax(const std::string &strSyntax);", "parent": 64, "children": [244, 245], "start_point": {"row": 283, "column": 6}, "end_point": {"row": 283, "column": 51}}, {"id": 244, "type": "primitive_type", "text": "void", "parent": 243, "children": [], "start_point": {"row": 283, "column": 6}, "end_point": {"row": 283, "column": 10}}, {"id": 245, "type": "function_declarator", "text": "setSyntax(const std::string &strSyntax)", "parent": 243, "children": [246, 247], "start_point": {"row": 283, "column": 11}, "end_point": {"row": 283, "column": 50}}, {"id": 246, "type": "identifier", "text": "setSyntax", "parent": 245, "children": [], "start_point": {"row": 283, "column": 11}, "end_point": {"row": 283, "column": 20}}, {"id": 247, "type": "parameter_list", "text": "(const std::string &strSyntax)", "parent": 245, "children": [248], "start_point": {"row": 283, "column": 20}, "end_point": {"row": 283, "column": 50}}, {"id": 248, "type": "parameter_declaration", "text": "const std::string &strSyntax", "parent": 247, "children": [249, 250, 252], "start_point": {"row": 283, "column": 21}, "end_point": {"row": 283, "column": 49}}, {"id": 249, "type": "type_identifier", "text": "std", "parent": 248, "children": [], "start_point": {"row": 283, "column": 27}, "end_point": {"row": 283, "column": 30}}, {"id": 250, "type": "ERROR", "text": "::string &", "parent": 248, "children": [251], "start_point": {"row": 283, "column": 30}, "end_point": {"row": 283, "column": 40}}, {"id": 251, "type": "identifier", "text": "string", "parent": 250, "children": [], "start_point": {"row": 283, "column": 32}, "end_point": {"row": 283, "column": 38}}, {"id": 252, "type": "identifier", "text": "strSyntax", "parent": 248, "children": [], "start_point": {"row": 283, "column": 40}, "end_point": {"row": 283, "column": 49}}, {"id": 253, "type": "declaration", "text": "void pushArg(CmdArgDef &argdef);", "parent": 64, "children": [254, 255], "start_point": {"row": 290, "column": 6}, "end_point": {"row": 290, "column": 38}}, {"id": 254, "type": "primitive_type", "text": "void", "parent": 253, "children": [], "start_point": {"row": 290, "column": 6}, "end_point": {"row": 290, "column": 10}}, {"id": 255, "type": "function_declarator", "text": "pushArg(CmdArgDef &argdef)", "parent": 253, "children": [256, 257], "start_point": {"row": 290, "column": 11}, "end_point": {"row": 290, "column": 37}}, {"id": 256, "type": "identifier", "text": "pushArg", "parent": 255, "children": [], "start_point": {"row": 290, "column": 11}, "end_point": {"row": 290, "column": 18}}, {"id": 257, "type": "parameter_list", "text": "(CmdArgDef &argdef)", "parent": 255, "children": [258], "start_point": {"row": 290, "column": 18}, "end_point": {"row": 290, "column": 37}}, {"id": 258, "type": "parameter_declaration", "text": "CmdArgDef &argdef", "parent": 257, "children": [259, 260], "start_point": {"row": 290, "column": 19}, "end_point": {"row": 290, "column": 36}}, {"id": 259, "type": "type_identifier", "text": "CmdArgDef", "parent": 258, "children": [], "start_point": {"row": 290, "column": 19}, "end_point": {"row": 290, "column": 28}}, {"id": 260, "type": "identifier", "text": "argdef", "parent": 258, "children": [], "start_point": {"row": 290, "column": 30}, "end_point": {"row": 290, "column": 36}}, {"id": 261, "type": "binary_expression", "text": "CmdArgDef &argAt(const int nIndex)", "parent": 64, "children": [262, 263], "start_point": {"row": 301, "column": 6}, "end_point": {"row": 301, "column": 40}}, {"id": 262, "type": "identifier", "text": "CmdArgDef", "parent": 261, "children": [], "start_point": {"row": 301, "column": 6}, "end_point": {"row": 301, "column": 15}}, {"id": 263, "type": "call_expression", "text": "argAt(const int nIndex)", "parent": 261, "children": [264, 265], "start_point": {"row": 301, "column": 17}, "end_point": {"row": 301, "column": 40}}, {"id": 264, "type": "identifier", "text": "argAt", "parent": 263, "children": [], "start_point": {"row": 301, "column": 17}, "end_point": {"row": 301, "column": 22}}, {"id": 265, "type": "argument_list", "text": "(const int nIndex)", "parent": 263, "children": [266, 268], "start_point": {"row": 301, "column": 22}, "end_point": {"row": 301, "column": 40}}, {"id": 266, "type": "ERROR", "text": "const int", "parent": 265, "children": [267], "start_point": {"row": 301, "column": 23}, "end_point": {"row": 301, "column": 32}}, {"id": 267, "type": "identifier", "text": "int", "parent": 266, "children": [], "start_point": {"row": 301, "column": 29}, "end_point": {"row": 301, "column": 32}}, {"id": 268, "type": "identifier", "text": "nIndex", "parent": 265, "children": [], "start_point": {"row": 301, "column": 33}, "end_point": {"row": 301, "column": 39}}, {"id": 269, "type": "binary_expression", "text": "CmdArgDef &lastArg()", "parent": 64, "children": [270, 271], "start_point": {"row": 308, "column": 6}, "end_point": {"row": 308, "column": 26}}, {"id": 270, "type": "identifier", "text": "CmdArgDef", "parent": 269, "children": [], "start_point": {"row": 308, "column": 6}, "end_point": {"row": 308, "column": 15}}, {"id": 271, "type": "call_expression", "text": "lastArg()", "parent": 269, "children": [272, 273], "start_point": {"row": 308, "column": 17}, "end_point": {"row": 308, "column": 26}}, {"id": 272, "type": "identifier", "text": "lastArg", "parent": 271, "children": [], "start_point": {"row": 308, "column": 17}, "end_point": {"row": 308, "column": 24}}, {"id": 273, "type": "argument_list", "text": "()", "parent": 271, "children": [], "start_point": {"row": 308, "column": 24}, "end_point": {"row": 308, "column": 26}}, {"id": 274, "type": "type_definition", "text": "typedef std::vector<CmdFormDef> CmdFormDefVec;", "parent": 42, "children": [275, 276, 277, 282], "start_point": {"row": 314, "column": 4}, "end_point": {"row": 314, "column": 50}}, {"id": 275, "type": "typedef", "text": "typedef", "parent": 274, "children": [], "start_point": {"row": 314, "column": 4}, "end_point": {"row": 314, "column": 11}}, {"id": 276, "type": "type_identifier", "text": "std", "parent": 274, "children": [], "start_point": {"row": 314, "column": 12}, "end_point": {"row": 314, "column": 15}}, {"id": 277, "type": "ERROR", "text": "::vector<CmdFormDef>", "parent": 274, "children": [278, 279, 280, 281], "start_point": {"row": 314, "column": 15}, "end_point": {"row": 314, "column": 35}}, {"id": 278, "type": "type_identifier", "text": "vector", "parent": 277, "children": [], "start_point": {"row": 314, "column": 17}, "end_point": {"row": 314, "column": 23}}, {"id": 279, "type": "<", "text": "<", "parent": 277, "children": [], "start_point": {"row": 314, "column": 23}, "end_point": {"row": 314, "column": 24}}, {"id": 280, "type": "type_identifier", "text": "CmdFormDef", "parent": 277, "children": [], "start_point": {"row": 314, "column": 24}, "end_point": {"row": 314, "column": 34}}, {"id": 281, "type": ">", "text": ">", "parent": 277, "children": [], "start_point": {"row": 314, "column": 34}, "end_point": {"row": 314, "column": 35}}, {"id": 282, "type": "type_identifier", "text": "CmdFormDefVec", "parent": 274, "children": [], "start_point": {"row": 314, "column": 36}, "end_point": {"row": 314, "column": 49}}, {"id": 283, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 319, "column": 0}, "end_point": {"row": 319, "column": 6}}]}, "node_categories": {"declarations": {"functions": [39, 42, 64, 88, 102, 104, 110, 116, 125, 132, 138, 140, 154, 168, 175, 224, 229, 237, 245, 255], "variables": [45, 84, 107, 135, 144, 180, 195, 198, 202, 205, 210, 213, 216, 219, 222, 227, 232, 235, 240, 243, 248, 253, 258, 274], "classes": [], "imports": [6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25, 27, 28, 30, 31, 33, 34, 36, 37], "modules": [], "enums": []}, "statements": {"expressions": [49, 51, 54, 57, 58, 61, 67, 75, 91, 96, 100, 148, 158, 161, 162, 261, 263, 269, 271], "assignments": [93], "loops": [], "conditionals": [0, 1, 2, 5, 40, 41, 43, 44, 46, 48, 50, 52, 56, 59, 60, 62, 63, 65, 68, 71, 74, 76, 77, 78, 79, 81, 83, 85, 89, 92, 94, 99, 101, 105, 111, 113, 117, 120, 122, 124, 126, 129, 131, 133, 137, 139, 142, 146, 149, 151, 155, 163, 164, 169, 172, 176, 179, 181, 183, 184, 185, 186, 187, 189, 190, 191, 193, 194, 196, 197, 199, 200, 204, 207, 209, 211, 212, 214, 215, 218, 221, 225, 230, 234, 238, 242, 246, 249, 251, 252, 256, 259, 260, 262, 264, 267, 268, 270, 272, 276, 278, 280, 282, 283], "returns": [119, 128, 147, 157, 171, 178], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 20, 23, 26, 29, 32, 35, 38], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 39, "universal_type": "function", "name": "CmdFormDef;", "text_snippet": "namespace rnr\n{\n /*!\n * \\brief Commands\n */\n namespace cmd\n {\n // forward declarations in "}, {"node_id": 42, "universal_type": "function", "name": "CmdFormDef;", "text_snippet": "namespace cmd\n {\n // forward declarations in namespace rnr::cmd\n class CmdFormDef;\n std::o"}, {"node_id": 64, "universal_type": "function", "name": "CmdFormDef", "text_snippet": "class CmdFormDef\n {\n public:\n /*!\n * \\brief Default constructor.\n */\n Cm"}, {"node_id": 88, "universal_type": "function", "name": "unknown", "text_snippet": "CmdFormDef()"}, {"node_id": 102, "universal_type": "function", "name": "isDefined", "text_snippet": "bool isDefined() const;\n\n /*!\n * \\brief Get parent command's unique id.\n *\n *"}, {"node_id": 104, "universal_type": "function", "name": "unknown", "text_snippet": "isDefined()"}, {"node_id": 110, "universal_type": "function", "name": "unknown", "text_snippet": "getParentCmdUid() const"}, {"node_id": 116, "universal_type": "function", "name": "unknown", "text_snippet": "getIndex() const"}, {"node_id": 125, "universal_type": "function", "name": "unknown", "text_snippet": "getSyntax() const"}, {"node_id": 132, "universal_type": "function", "name": "nIndex)", "text_snippet": "at(const int nIndex) const"}, {"node_id": 138, "universal_type": "function", "name": "nIndex)", "text_snippet": "const CmdArgDef &operator[](const int nIndex) const\n {\n return at(nIndex);\n }"}, {"node_id": 140, "universal_type": "function", "name": "nIndex)", "text_snippet": "operator[](const int nIndex) const"}, {"node_id": 154, "universal_type": "function", "name": "unknown", "text_snippet": "numOfArgs()"}, {"node_id": 168, "universal_type": "function", "name": "unknown", "text_snippet": "numOfRequiredArgs()"}, {"node_id": 175, "universal_type": "function", "name": "unknown", "text_snippet": "numOfOptionalArgs()"}, {"node_id": 224, "universal_type": "function", "name": "unknown", "text_snippet": "reset()"}, {"node_id": 229, "universal_type": "function", "name": "nCmdUid)", "text_snippet": "setParent(const int nCmdUid)"}, {"node_id": 237, "universal_type": "function", "name": "nIndex)", "text_snippet": "setIndex(const int nIndex)"}, {"node_id": 245, "universal_type": "function", "name": "unknown", "text_snippet": "setSyntax(const std::string &strSyntax)"}, {"node_id": 255, "universal_type": "function", "name": "unknown", "text_snippet": "pushArg(CmdArgDef &argdef)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <stdio.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <unistd.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <stdlib.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <iostream>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <string>\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include <vector>\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include \"rnr/rnrconfig.h\"\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include \"rnr/log.h\"\n"}, {"node_id": 28, "text": "#include"}, {"node_id": 30, "text": "#include \"rnr/appkit/IOManip.h\"\n"}, {"node_id": 31, "text": "#include"}, {"node_id": 33, "text": "#include \"rnr/appkit/CmdCore.h\"\n"}, {"node_id": 34, "text": "#include"}, {"node_id": 36, "text": "#include \"rnr/appkit/CmdArgDef.h\"\n"}, {"node_id": 37, "text": "#include"}]}, "original_source_code": "////////////////////////////////////////////////////////////////////////////////\n//\n// Package: RoadNarrows Robotics Application Tool Kit\n//\n// Link: https://github.com/roadnarrows-robotics/rnr-sdk\n//\n// Library: librnr_appkit\n//\n// File: CmdFormDef.h\n//\n/*! \\file\n *\n * \\brief Command line command form definition class interface.\n *\n * \\author <NAME> (<EMAIL>)\n *\n * \\par Copyright\n * \\h_copy 2016-2017. RoadNarrows LLC.\\n\n * http://www.roadnarrows.com\\n\n * All Rights Reserved\n *\n * \\par License:\n * MIT\n */\n/*\n * @EulaBegin@\n * \n * Permission is hereby granted, without written agreement and without\n * license or royalty fees, to use, copy, modify, and distribute this\n * software and its documentation for any purpose, provided that\n * (1) The above copyright notice and the following two paragraphs\n * appear in all copies of the source code and (2) redistributions\n * including binaries reproduces these notices in the supporting\n * documentation. Substantial modifications to this software may be\n * copyrighted by their authors and need not follow the licensing terms\n * described here, provided that the new terms are clearly indicated in\n * all files where they apply.\n * \n * IN NO EVENT SHALL THE AUTHOR, ROADNARROWS LLC, OR ANY MEMBERS/EMPLOYEES\n * OF ROADNARROW LLC OR DISTRIBUTORS OF THIS SOFTWARE BE LIABLE TO ANY\n * PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL\n * DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION,\n * EVEN IF THE AUTHORS OR ANY OF THE ABOVE PARTIES HAVE BEEN ADVISED OF\n * THE POSSIBILITY OF SUCH DAMAGE.\n * \n * THE AUTHOR AND ROADNARROWS LLC SPECIFICALLY DISCLAIM ANY WARRANTIES,\n * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND\n * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN\n * \"AS IS\" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO\n * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.\n * \n * @EulaEnd@\n */\n////////////////////////////////////////////////////////////////////////////////\n\n#ifndef _RNR_CMD_FORM_DEF_H\n#define _RNR_CMD_FORM_DEF_H\n\n#include <stdio.h>\n#include <unistd.h>\n#include <stdlib.h>\n\n#include <iostream>\n#include <string>\n#include <vector>\n\n#include \"rnr/rnrconfig.h\"\n#include \"rnr/log.h\"\n\n#include \"rnr/appkit/IOManip.h\"\n#include \"rnr/appkit/CmdCore.h\"\n#include \"rnr/appkit/CmdArgDef.h\"\n\n/*!\n * \\brief RoadNarrows Robotics\n */\nnamespace rnr\n{\n /*!\n * \\brief Commands\n */\n namespace cmd\n {\n // forward declarations in namespace rnr::cmd\n class CmdFormDef;\n std::ostream &operator<<(std::ostream &os, const CmdFormDef &formdef);\n\n //--------------------------------------------------------------------------\n // CmdFormDef Class\n //--------------------------------------------------------------------------\n\n /*!\n * \\brief Compiled command form defintion class.\n */\n class CmdFormDef\n {\n public:\n /*!\n * \\brief Default constructor.\n */\n CmdFormDef();\n \n /*!\n * \\brief Initialization constructor.\n */\n CmdFormDef(const std::string &strSyntax);\n \n /*!\n * \\brief Copy constructor.\n *\n * \\param src Source object.\n */\n CmdFormDef(const CmdFormDef &src);\n\n /*!\n * \\brief Destructor.\n */\n virtual ~CmdFormDef();\n \n /*!\n * \\brief Assignment operator.\n *\n * \\param rhs Right-hand side object.\n *\n * \\return *this\n */\n CmdFormDef &operator=(const CmdFormDef &rhs);\n \n\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n // Public Attribute Methods\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n\n /*\n * \\brief Test if form definition is sufficiently defined.\n *\n * \\return Returns true or false.\n */\n bool isDefined() const;\n\n /*!\n * \\brief Get parent command's unique id.\n *\n * \\return Unique id.\n */\n int getParentCmdUid() const\n {\n return m_nCmdUid;\n }\n\n /*!\n * \\brief Get forms's index.\n *\n * \\return Zero based index.\n */\n int getIndex() const\n {\n return m_nIndex;\n }\n\n /*!\n * \\brief Get form's extended usage syntax.\n */\n std::string getSyntax() const\n {\n return m_strSyntax;\n }\n\n /*!\n * \\brief Get form's argument at index.\n *\n * \\param nIndex Argument index.\n *\n * \\return Command argument definition reference.\n */\n const CmdArgDef &at(const int nIndex) const;\n\n /*!\n * \\brief Index operator.\n *\n * Get form's argument at index.\n *\n * \\param nIndex Argument index.\n *\n * \\return Command argument definition reference.\n */\n const CmdArgDef &operator[](const int nIndex) const\n {\n return at(nIndex);\n }\n\n /*!\n * \\brief Get the total number of arguments.\n *\n * The first argument (argv0) is the command.\n *\n * \\return Number of arguments.\n */\n int numOfArgs() const\n {\n return (int)m_argDefs.size();\n }\n\n /*!\n * \\brief Get the total number of required arguments.\n *\n * The required number includes the command argv0.\n *\n * Required arguments start at argument index 0.\n *\n * \\return Number of arguments.\n */\n int numOfRequiredArgs() const\n {\n return m_nArgcReq;\n }\n\n /*!\n * \\brief Get the total number of optional arguments.\n *\n * Optional arguments start at argument index numOfRequiredArgs().\n *\n * \\return Number of arguments.\n */\n int numOfOptionalArgs() const\n {\n return m_nArgcOpt;\n }\n \n\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n // Output Methods and Operators\n // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\n\n /*!\n * \\brief Insert object into output stream.\n *\n * \\param os Output stream.\n * \\param formdef Object to insert.\n *\n * \\return Reference to output stream.\n */\n friend std::ostream &rnr::cmd::operator<<(std::ostream &os,\n const CmdFormDef &formdef);\n\n //\n // Friends\n //\n friend class CmdDef;\n friend class CommandLine;\n\n protected:\n int m_nCmdUid; ///< parent command's unique id\n int m_nIndex; ///< forms index\n std::string m_strSyntax; ///< command extened usage syntax\n ArgDefVec m_argDefs; ///< command argument definitions\n int m_nArgcReq; ///< number of required arguments\n int m_nArgcOpt; ///< number of optional arguments\n\n /*!\n * \\brief Reset form definition to pre-compiled state.\n */\n void reset();\n\n /*!\n * \\brief Set parent's command id.\n *\n * \\param nCmdUid Command unique id.\n */\n void setParent(const int nCmdUid);\n\n /*!\n * \\brief Set forms's index.\n *\n * \\param nIndex Zero based index.\n */\n void setIndex(const int nIndex);\n\n /*!\n * \\brief Set command's extended usage syntax.\n *\n * \\param strSyntax Syntax string.\n */\n void setSyntax(const std::string &strSyntax);\n\n /*!\n * \\brief Push argument to end of argument list.\n *\n * \\param argdef Command argument definition.\n */\n void pushArg(CmdArgDef &argdef);\n\n /*!\n * \\brief Get form's modifiable argument at index.\n *\n * Protected version of at().\n *\n * \\param nIndex Argument index.\n *\n * \\return Command argument definition reference.\n */\n CmdArgDef &argAt(const int nIndex);\n\n /*!\n * \\brief Get the last pushed argument.\n *\n * \\return Argument definition reference.\n */\n CmdArgDef &lastArg();\n }; // class CmdFormDef\n\n //\n // Types and Data\n //\n typedef std::vector<CmdFormDef> CmdFormDefVec; ///< vector of command forms\n \n } // namespace cmd\n} // namespace rnr\n\n#endif // _RNR_CMD_FORM_DEF_H\n"}
80,283
c
#ifndef NODE_H #define NODE_H #include "MVector.h" class Node { private: MVector weights; double bias; double z; double activation; public: Node(MVector _weights = MVector(), double _bias = 0, double _z = 0, double _activation = 0); double getBias() const { return bias; }; void setBias( double _bias) { bias = _bias; }; MVector getWeights() const { return weights; }; void setWeights(MVector _weights) { weights = _weights; }; double getActivation() const { return activation; }; double getZ() const { return z; }; void setActivation( double _act ) { activation = _act; }; void setZ( double _z ) { z = _z; }; void update(MVector _acts); }; #endif
24.48
29
(translation_unit) "#ifndef NODE_H \n#define NODE_H \n \n#include "MVector.h" \n \n \nclass Node { \nprivate: \n MVector weights; \n double bias; \n double z; \n double activation; \npublic: \n Node(MVector _weights = MVector(), double _bias = 0, double _z = 0, double _activation = 0); \n double getBias() const { return bias; }; \n void setBias( double _bias) { bias = _bias; }; \n MVector getWeights() const { return weights; }; \n void setWeights(MVector _weights) { weights = _weights; }; \n double getActivation() const { return activation; }; \n double getZ() const { return z; }; \n void setActivation( double _act ) { activation = _act; }; \n void setZ( double _z ) { z = _z; }; \n void update(MVector _acts); \n}; \n \n \n \n \n#endif" (preproc_ifdef) "#ifndef NODE_H \n#define NODE_H \n \n#include "MVector.h" \n \n \nclass Node { \nprivate: \n MVector weights; \n double bias; \n double z; \n double activation; \npublic: \n Node(MVector _weights = MVector(), double _bias = 0, double _z = 0, double _activation = 0); \n double getBias() const { return bias; }; \n void setBias( double _bias) { bias = _bias; }; \n MVector getWeights() const { return weights; }; \n void setWeights(MVector _weights) { weights = _weights; }; \n double getActivation() const { return activation; }; \n double getZ() const { return z; }; \n void setActivation( double _act ) { activation = _act; }; \n void setZ( double _z ) { z = _z; }; \n void update(MVector _acts); \n}; \n \n \n \n \n#endif" (#ifndef) "#ifndef" (identifier) "NODE_H" (preproc_def) "#define NODE_H \n" (#define) "#define" (identifier) "NODE_H" (preproc_include) "#include "MVector.h" \n" (#include) "#include" (string_literal) ""MVector.h"" (") """ (string_content) "MVector.h" (") """ (function_definition) "class Node { \nprivate: \n MVector weights; \n double bias; \n double z; \n double activation; \npublic: \n Node(MVector _weights = MVector(), double _bias = 0, double _z = 0, double _activation = 0); \n double getBias() const { return bias; }; \n void setBias( double _bias) { bias = _bias; }; \n MVector getWeights() const { return weights; }; \n void setWeights(MVector _weights) { weights = _weights; }; \n double getActivation() const { return activation; }; \n double getZ() const { return z; }; \n void setActivation( double _act ) { activation = _act; }; \n void setZ( double _z ) { z = _z; }; \n void update(MVector _acts); \n}" (type_identifier) "class" (identifier) "Node" (compound_statement) "{ \nprivate: \n MVector weights; \n double bias; \n double z; \n double activation; \npublic: \n Node(MVector _weights = MVector(), double _bias = 0, double _z = 0, double _activation = 0); \n double getBias() const { return bias; }; \n void setBias( double _bias) { bias = _bias; }; \n MVector getWeights() const { return weights; }; \n void setWeights(MVector _weights) { weights = _weights; }; \n double getActivation() const { return activation; }; \n double getZ() const { return z; }; \n void setActivation( double _act ) { activation = _act; }; \n void setZ( double _z ) { z = _z; }; \n void update(MVector _acts); \n}" ({) "{" (labeled_statement) "private: \n MVector weights;" (statement_identifier) "private" (:) ":" (declaration) "MVector weights;" (type_identifier) "MVector" (identifier) "weights" (;) ";" (declaration) "double bias;" (primitive_type) "double" (identifier) "bias" (;) ";" (declaration) "double z;" (primitive_type) "double" (identifier) "z" (;) ";" (declaration) "double activation;" (primitive_type) "double" (identifier) "activation" (;) ";" (labeled_statement) "public: \n Node(MVector _weights = MVector(), double _bias = 0, double _z = 0, double _activation = 0);" (statement_identifier) "public" (:) ":" (declaration) "Node(MVector _weights = MVector(), double _bias = 0, double _z = 0, double _activation = 0);" (macro_type_specifier) "Node(MVector" (identifier) "Node" (() "(" (type_descriptor) "MVector" (type_identifier) "MVector" ()) "" (init_declarator) "_weights = MVector()" (identifier) "_weights" (=) "=" (call_expression) "MVector()" (identifier) "MVector" (argument_list) "()" (() "(" ()) ")" (,) "," (init_declarator) "double _bias = 0" (identifier) "double" (ERROR) "_bias" (identifier) "_bias" (=) "=" (number_literal) "0" (,) "," (init_declarator) "double _z = 0" (identifier) "double" (ERROR) "_z" (identifier) "_z" (=) "=" (number_literal) "0" (,) "," (ERROR) "double" (identifier) "double" (init_declarator) "_activation = 0" (identifier) "_activation" (=) "=" (number_literal) "0" (ERROR) ")" ()) ")" (;) ";" (ERROR) "double getBias() const" (primitive_type) "double" (function_declarator) "getBias()" (identifier) "getBias" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{ return bias; }" ({) "{" (return_statement) "return bias;" (return) "return" (identifier) "bias" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "void setBias( double _bias) { bias = _bias; }" (primitive_type) "void" (function_declarator) "setBias( double _bias)" (identifier) "setBias" (parameter_list) "( double _bias)" (() "(" (parameter_declaration) "double _bias" (primitive_type) "double" (identifier) "_bias" ()) ")" (compound_statement) "{ bias = _bias; }" ({) "{" (expression_statement) "bias = _bias;" (assignment_expression) "bias = _bias" (identifier) "bias" (=) "=" (identifier) "_bias" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (ERROR) "MVector getWeights() const" (type_identifier) "MVector" (function_declarator) "getWeights()" (identifier) "getWeights" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{ return weights; }" ({) "{" (return_statement) "return weights;" (return) "return" (identifier) "weights" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "void setWeights(MVector _weights) { weights = _weights; }" (primitive_type) "void" (function_declarator) "setWeights(MVector _weights)" (identifier) "setWeights" (parameter_list) "(MVector _weights)" (() "(" (parameter_declaration) "MVector _weights" (type_identifier) "MVector" (identifier) "_weights" ()) ")" (compound_statement) "{ weights = _weights; }" ({) "{" (expression_statement) "weights = _weights;" (assignment_expression) "weights = _weights" (identifier) "weights" (=) "=" (identifier) "_weights" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (ERROR) "double getActivation() const" (primitive_type) "double" (function_declarator) "getActivation()" (identifier) "getActivation" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{ return activation; }" ({) "{" (return_statement) "return activation;" (return) "return" (identifier) "activation" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (ERROR) "double getZ() const" (primitive_type) "double" (function_declarator) "getZ()" (identifier) "getZ" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{ return z; }" ({) "{" (return_statement) "return z;" (return) "return" (identifier) "z" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "void setActivation( double _act ) { activation = _act; }" (primitive_type) "void" (function_declarator) "setActivation( double _act )" (identifier) "setActivation" (parameter_list) "( double _act )" (() "(" (parameter_declaration) "double _act" (primitive_type) "double" (identifier) "_act" ()) ")" (compound_statement) "{ activation = _act; }" ({) "{" (expression_statement) "activation = _act;" (assignment_expression) "activation = _act" (identifier) "activation" (=) "=" (identifier) "_act" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "void setZ( double _z ) { z = _z; }" (primitive_type) "void" (function_declarator) "setZ( double _z )" (identifier) "setZ" (parameter_list) "( double _z )" (() "(" (parameter_declaration) "double _z" (primitive_type) "double" (identifier) "_z" ()) ")" (compound_statement) "{ z = _z; }" ({) "{" (expression_statement) "z = _z;" (assignment_expression) "z = _z" (identifier) "z" (=) "=" (identifier) "_z" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (declaration) "void update(MVector _acts);" (primitive_type) "void" (function_declarator) "update(MVector _acts)" (identifier) "update" (parameter_list) "(MVector _acts)" (() "(" (parameter_declaration) "MVector _acts" (type_identifier) "MVector" (identifier) "_acts" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif"
250
8
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 24.48, "nodes": 139, "errors": 0, "source_hash": "7477b3f45fe6bf4d60ef92c01b45b908a62b103abb92a65caa9a192712f4a0cc", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef NODE_H\r\n#define NODE_H\r\n\r\n#include \"MVector.h\"\r\n\r\n\r\nclass Node {\r\nprivate:\r\n MVector weights;\r\n double bias;\r\n double z;\r\n double activation;\r\npublic:\r\n Node(MVector _weights = MVector(), double _bias = 0, double _z = 0, double _activation = 0);\r\n double getBias() const { return bias; };\r\n void setBias( double _bias) { bias = _bias; };\r\n MVector getWeights() const { return weights; };\r\n void setWeights(MVector _weights) { weights = _weights; };\r\n double getActivation() const { return activation; };\r\n double getZ() const { return z; };\r\n void setActivation( double _act ) { activation = _act; };\r\n void setZ( double _z ) { z = _z; };\r\n void update(MVector _acts);\r\n};\r\n\r\n\r\n\r\n\r\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 138], "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": "NODE_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 14}}, {"id": 3, "type": "preproc_def", "text": "#define NODE_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": "NODE_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 14}}, {"id": 6, "type": "preproc_include", "text": "#include \"MVector.h\"\r\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": "\"MVector.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 20}}, {"id": 9, "type": "function_definition", "text": "class Node {\r\nprivate:\r\n MVector weights;\r\n double bias;\r\n double z;\r\n double activation;\r\npublic:\r\n Node(MVector _weights = MVector(), double _bias = 0, double _z = 0, double _activation = 0);\r\n double getBias() const { return bias; };\r\n void setBias( double _bias) { bias = _bias; };\r\n MVector getWeights() const { return weights; };\r\n void setWeights(MVector _weights) { weights = _weights; };\r\n double getActivation() const { return activation; };\r\n double getZ() const { return z; };\r\n void setActivation( double _act ) { activation = _act; };\r\n void setZ( double _z ) { z = _z; };\r\n void update(MVector _acts);\r\n}", "parent": 0, "children": [10], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 10, "type": "identifier", "text": "Node", "parent": 9, "children": [], "start_point": {"row": 6, "column": 6}, "end_point": {"row": 6, "column": 10}}, {"id": 11, "type": "labeled_statement", "text": "private:\r\n MVector weights;", "parent": 9, "children": [12], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 20}}, {"id": 12, "type": "declaration", "text": "MVector weights;", "parent": 11, "children": [13, 14], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 20}}, {"id": 13, "type": "type_identifier", "text": "MVector", "parent": 12, "children": [], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 11}}, {"id": 14, "type": "identifier", "text": "weights", "parent": 12, "children": [], "start_point": {"row": 8, "column": 12}, "end_point": {"row": 8, "column": 19}}, {"id": 15, "type": "declaration", "text": "double bias;", "parent": 9, "children": [16, 17], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 16}}, {"id": 16, "type": "primitive_type", "text": "double", "parent": 15, "children": [], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 10}}, {"id": 17, "type": "identifier", "text": "bias", "parent": 15, "children": [], "start_point": {"row": 9, "column": 11}, "end_point": {"row": 9, "column": 15}}, {"id": 18, "type": "declaration", "text": "double z;", "parent": 9, "children": [19, 20], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 13}}, {"id": 19, "type": "primitive_type", "text": "double", "parent": 18, "children": [], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 10}}, {"id": 20, "type": "identifier", "text": "z", "parent": 18, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 12}}, {"id": 21, "type": "declaration", "text": "double activation;", "parent": 9, "children": [22, 23], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 22}}, {"id": 22, "type": "primitive_type", "text": "double", "parent": 21, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 10}}, {"id": 23, "type": "identifier", "text": "activation", "parent": 21, "children": [], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 21}}, {"id": 24, "type": "labeled_statement", "text": "public:\r\n Node(MVector _weights = MVector(), double _bias = 0, double _z = 0, double _activation = 0);", "parent": 9, "children": [25], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 96}}, {"id": 25, "type": "declaration", "text": "Node(MVector _weights = MVector(), double _bias = 0, double _z = 0, double _activation = 0);", "parent": 24, "children": [26, 30, 36, 42, 48, 50], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 96}}, {"id": 26, "type": "macro_type_specifier", "text": "Node(MVector", "parent": 25, "children": [27, 28], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 16}}, {"id": 27, "type": "identifier", "text": "Node", "parent": 26, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 8}}, {"id": 28, "type": "type_descriptor", "text": "MVector", "parent": 26, "children": [29], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 16}}, {"id": 29, "type": "type_identifier", "text": "MVector", "parent": 28, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 16}}, {"id": 30, "type": "init_declarator", "text": "_weights = MVector()", "parent": 25, "children": [31, 32, 33], "start_point": {"row": 13, "column": 17}, "end_point": {"row": 13, "column": 37}}, {"id": 31, "type": "identifier", "text": "_weights", "parent": 30, "children": [], "start_point": {"row": 13, "column": 17}, "end_point": {"row": 13, "column": 25}}, {"id": 32, "type": "=", "text": "=", "parent": 30, "children": [], "start_point": {"row": 13, "column": 26}, "end_point": {"row": 13, "column": 27}}, {"id": 33, "type": "call_expression", "text": "MVector()", "parent": 30, "children": [34, 35], "start_point": {"row": 13, "column": 28}, "end_point": {"row": 13, "column": 37}}, {"id": 34, "type": "identifier", "text": "MVector", "parent": 33, "children": [], "start_point": {"row": 13, "column": 28}, "end_point": {"row": 13, "column": 35}}, {"id": 35, "type": "argument_list", "text": "()", "parent": 33, "children": [], "start_point": {"row": 13, "column": 35}, "end_point": {"row": 13, "column": 37}}, {"id": 36, "type": "init_declarator", "text": "double _bias = 0", "parent": 25, "children": [37, 38, 40, 41], "start_point": {"row": 13, "column": 39}, "end_point": {"row": 13, "column": 55}}, {"id": 37, "type": "identifier", "text": "double", "parent": 36, "children": [], "start_point": {"row": 13, "column": 39}, "end_point": {"row": 13, "column": 45}}, {"id": 38, "type": "ERROR", "text": "_bias", "parent": 36, "children": [39], "start_point": {"row": 13, "column": 46}, "end_point": {"row": 13, "column": 51}}, {"id": 39, "type": "identifier", "text": "_bias", "parent": 38, "children": [], "start_point": {"row": 13, "column": 46}, "end_point": {"row": 13, "column": 51}}, {"id": 40, "type": "=", "text": "=", "parent": 36, "children": [], "start_point": {"row": 13, "column": 52}, "end_point": {"row": 13, "column": 53}}, {"id": 41, "type": "number_literal", "text": "0", "parent": 36, "children": [], "start_point": {"row": 13, "column": 54}, "end_point": {"row": 13, "column": 55}}, {"id": 42, "type": "init_declarator", "text": "double _z = 0", "parent": 25, "children": [43, 44, 46, 47], "start_point": {"row": 13, "column": 57}, "end_point": {"row": 13, "column": 70}}, {"id": 43, "type": "identifier", "text": "double", "parent": 42, "children": [], "start_point": {"row": 13, "column": 57}, "end_point": {"row": 13, "column": 63}}, {"id": 44, "type": "ERROR", "text": "_z", "parent": 42, "children": [45], "start_point": {"row": 13, "column": 64}, "end_point": {"row": 13, "column": 66}}, {"id": 45, "type": "identifier", "text": "_z", "parent": 44, "children": [], "start_point": {"row": 13, "column": 64}, "end_point": {"row": 13, "column": 66}}, {"id": 46, "type": "=", "text": "=", "parent": 42, "children": [], "start_point": {"row": 13, "column": 67}, "end_point": {"row": 13, "column": 68}}, {"id": 47, "type": "number_literal", "text": "0", "parent": 42, "children": [], "start_point": {"row": 13, "column": 69}, "end_point": {"row": 13, "column": 70}}, {"id": 48, "type": "ERROR", "text": "double", "parent": 25, "children": [49], "start_point": {"row": 13, "column": 72}, "end_point": {"row": 13, "column": 78}}, {"id": 49, "type": "identifier", "text": "double", "parent": 48, "children": [], "start_point": {"row": 13, "column": 72}, "end_point": {"row": 13, "column": 78}}, {"id": 50, "type": "init_declarator", "text": "_activation = 0", "parent": 25, "children": [51, 52, 53], "start_point": {"row": 13, "column": 79}, "end_point": {"row": 13, "column": 94}}, {"id": 51, "type": "identifier", "text": "_activation", "parent": 50, "children": [], "start_point": {"row": 13, "column": 79}, "end_point": {"row": 13, "column": 90}}, {"id": 52, "type": "=", "text": "=", "parent": 50, "children": [], "start_point": {"row": 13, "column": 91}, "end_point": {"row": 13, "column": 92}}, {"id": 53, "type": "number_literal", "text": "0", "parent": 50, "children": [], "start_point": {"row": 13, "column": 93}, "end_point": {"row": 13, "column": 94}}, {"id": 54, "type": "ERROR", "text": "double getBias() const", "parent": 9, "children": [55, 56], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 26}}, {"id": 55, "type": "primitive_type", "text": "double", "parent": 54, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 10}}, {"id": 56, "type": "function_declarator", "text": "getBias()", "parent": 54, "children": [57, 58], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 20}}, {"id": 57, "type": "identifier", "text": "getBias", "parent": 56, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 18}}, {"id": 58, "type": "parameter_list", "text": "()", "parent": 56, "children": [], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 20}}, {"id": 59, "type": "return_statement", "text": "return bias;", "parent": 9, "children": [60], "start_point": {"row": 14, "column": 29}, "end_point": {"row": 14, "column": 41}}, {"id": 60, "type": "identifier", "text": "bias", "parent": 59, "children": [], "start_point": {"row": 14, "column": 36}, "end_point": {"row": 14, "column": 40}}, {"id": 61, "type": "function_definition", "text": "void setBias( double _bias) { bias = _bias; }", "parent": 9, "children": [62, 63], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 49}}, {"id": 62, "type": "primitive_type", "text": "void", "parent": 61, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 8}}, {"id": 63, "type": "function_declarator", "text": "setBias( double _bias)", "parent": 61, "children": [64, 65], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 31}}, {"id": 64, "type": "identifier", "text": "setBias", "parent": 63, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 16}}, {"id": 65, "type": "parameter_list", "text": "( double _bias)", "parent": 63, "children": [66], "start_point": {"row": 15, "column": 16}, "end_point": {"row": 15, "column": 31}}, {"id": 66, "type": "parameter_declaration", "text": "double _bias", "parent": 65, "children": [67, 68], "start_point": {"row": 15, "column": 18}, "end_point": {"row": 15, "column": 30}}, {"id": 67, "type": "primitive_type", "text": "double", "parent": 66, "children": [], "start_point": {"row": 15, "column": 18}, "end_point": {"row": 15, "column": 24}}, {"id": 68, "type": "identifier", "text": "_bias", "parent": 66, "children": [], "start_point": {"row": 15, "column": 25}, "end_point": {"row": 15, "column": 30}}, {"id": 69, "type": "assignment_expression", "text": "bias = _bias", "parent": 61, "children": [70, 71, 72], "start_point": {"row": 15, "column": 34}, "end_point": {"row": 15, "column": 46}}, {"id": 70, "type": "identifier", "text": "bias", "parent": 69, "children": [], "start_point": {"row": 15, "column": 34}, "end_point": {"row": 15, "column": 38}}, {"id": 71, "type": "=", "text": "=", "parent": 69, "children": [], "start_point": {"row": 15, "column": 39}, "end_point": {"row": 15, "column": 40}}, {"id": 72, "type": "identifier", "text": "_bias", "parent": 69, "children": [], "start_point": {"row": 15, "column": 41}, "end_point": {"row": 15, "column": 46}}, {"id": 73, "type": "ERROR", "text": "MVector getWeights() const", "parent": 9, "children": [74, 75], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 30}}, {"id": 74, "type": "type_identifier", "text": "MVector", "parent": 73, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 11}}, {"id": 75, "type": "function_declarator", "text": "getWeights()", "parent": 73, "children": [76, 77], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 16, "column": 24}}, {"id": 76, "type": "identifier", "text": "getWeights", "parent": 75, "children": [], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 16, "column": 22}}, {"id": 77, "type": "parameter_list", "text": "()", "parent": 75, "children": [], "start_point": {"row": 16, "column": 22}, "end_point": {"row": 16, "column": 24}}, {"id": 78, "type": "return_statement", "text": "return weights;", "parent": 9, "children": [79], "start_point": {"row": 16, "column": 33}, "end_point": {"row": 16, "column": 48}}, {"id": 79, "type": "identifier", "text": "weights", "parent": 78, "children": [], "start_point": {"row": 16, "column": 40}, "end_point": {"row": 16, "column": 47}}, {"id": 80, "type": "function_definition", "text": "void setWeights(MVector _weights) { weights = _weights; }", "parent": 9, "children": [81, 82], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 61}}, {"id": 81, "type": "primitive_type", "text": "void", "parent": 80, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 8}}, {"id": 82, "type": "function_declarator", "text": "setWeights(MVector _weights)", "parent": 80, "children": [83, 84], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 37}}, {"id": 83, "type": "identifier", "text": "setWeights", "parent": 82, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 19}}, {"id": 84, "type": "parameter_list", "text": "(MVector _weights)", "parent": 82, "children": [85], "start_point": {"row": 17, "column": 19}, "end_point": {"row": 17, "column": 37}}, {"id": 85, "type": "parameter_declaration", "text": "MVector _weights", "parent": 84, "children": [86, 87], "start_point": {"row": 17, "column": 20}, "end_point": {"row": 17, "column": 36}}, {"id": 86, "type": "type_identifier", "text": "MVector", "parent": 85, "children": [], "start_point": {"row": 17, "column": 20}, "end_point": {"row": 17, "column": 27}}, {"id": 87, "type": "identifier", "text": "_weights", "parent": 85, "children": [], "start_point": {"row": 17, "column": 28}, "end_point": {"row": 17, "column": 36}}, {"id": 88, "type": "assignment_expression", "text": "weights = _weights", "parent": 80, "children": [89, 90, 91], "start_point": {"row": 17, "column": 40}, "end_point": {"row": 17, "column": 58}}, {"id": 89, "type": "identifier", "text": "weights", "parent": 88, "children": [], "start_point": {"row": 17, "column": 40}, "end_point": {"row": 17, "column": 47}}, {"id": 90, "type": "=", "text": "=", "parent": 88, "children": [], "start_point": {"row": 17, "column": 48}, "end_point": {"row": 17, "column": 49}}, {"id": 91, "type": "identifier", "text": "_weights", "parent": 88, "children": [], "start_point": {"row": 17, "column": 50}, "end_point": {"row": 17, "column": 58}}, {"id": 92, "type": "ERROR", "text": "double getActivation() const", "parent": 9, "children": [93, 94], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 32}}, {"id": 93, "type": "primitive_type", "text": "double", "parent": 92, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 10}}, {"id": 94, "type": "function_declarator", "text": "getActivation()", "parent": 92, "children": [95, 96], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 26}}, {"id": 95, "type": "identifier", "text": "getActivation", "parent": 94, "children": [], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 24}}, {"id": 96, "type": "parameter_list", "text": "()", "parent": 94, "children": [], "start_point": {"row": 18, "column": 24}, "end_point": {"row": 18, "column": 26}}, {"id": 97, "type": "return_statement", "text": "return activation;", "parent": 9, "children": [98], "start_point": {"row": 18, "column": 35}, "end_point": {"row": 18, "column": 53}}, {"id": 98, "type": "identifier", "text": "activation", "parent": 97, "children": [], "start_point": {"row": 18, "column": 42}, "end_point": {"row": 18, "column": 52}}, {"id": 99, "type": "ERROR", "text": "double getZ() const", "parent": 9, "children": [100, 101], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 23}}, {"id": 100, "type": "primitive_type", "text": "double", "parent": 99, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 10}}, {"id": 101, "type": "function_declarator", "text": "getZ()", "parent": 99, "children": [102, 103], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 17}}, {"id": 102, "type": "identifier", "text": "getZ", "parent": 101, "children": [], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 15}}, {"id": 103, "type": "parameter_list", "text": "()", "parent": 101, "children": [], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 17}}, {"id": 104, "type": "return_statement", "text": "return z;", "parent": 9, "children": [105], "start_point": {"row": 19, "column": 26}, "end_point": {"row": 19, "column": 35}}, {"id": 105, "type": "identifier", "text": "z", "parent": 104, "children": [], "start_point": {"row": 19, "column": 33}, "end_point": {"row": 19, "column": 34}}, {"id": 106, "type": "function_definition", "text": "void setActivation( double _act ) { activation = _act; }", "parent": 9, "children": [107, 108], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 60}}, {"id": 107, "type": "primitive_type", "text": "void", "parent": 106, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 8}}, {"id": 108, "type": "function_declarator", "text": "setActivation( double _act )", "parent": 106, "children": [109, 110], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 37}}, {"id": 109, "type": "identifier", "text": "setActivation", "parent": 108, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 22}}, {"id": 110, "type": "parameter_list", "text": "( double _act )", "parent": 108, "children": [111], "start_point": {"row": 20, "column": 22}, "end_point": {"row": 20, "column": 37}}, {"id": 111, "type": "parameter_declaration", "text": "double _act", "parent": 110, "children": [112, 113], "start_point": {"row": 20, "column": 24}, "end_point": {"row": 20, "column": 35}}, {"id": 112, "type": "primitive_type", "text": "double", "parent": 111, "children": [], "start_point": {"row": 20, "column": 24}, "end_point": {"row": 20, "column": 30}}, {"id": 113, "type": "identifier", "text": "_act", "parent": 111, "children": [], "start_point": {"row": 20, "column": 31}, "end_point": {"row": 20, "column": 35}}, {"id": 114, "type": "assignment_expression", "text": "activation = _act", "parent": 106, "children": [115, 116, 117], "start_point": {"row": 20, "column": 40}, "end_point": {"row": 20, "column": 57}}, {"id": 115, "type": "identifier", "text": "activation", "parent": 114, "children": [], "start_point": {"row": 20, "column": 40}, "end_point": {"row": 20, "column": 50}}, {"id": 116, "type": "=", "text": "=", "parent": 114, "children": [], "start_point": {"row": 20, "column": 51}, "end_point": {"row": 20, "column": 52}}, {"id": 117, "type": "identifier", "text": "_act", "parent": 114, "children": [], "start_point": {"row": 20, "column": 53}, "end_point": {"row": 20, "column": 57}}, {"id": 118, "type": "function_definition", "text": "void setZ( double _z ) { z = _z; }", "parent": 9, "children": [119, 120], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 38}}, {"id": 119, "type": "primitive_type", "text": "void", "parent": 118, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 8}}, {"id": 120, "type": "function_declarator", "text": "setZ( double _z )", "parent": 118, "children": [121, 122], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 26}}, {"id": 121, "type": "identifier", "text": "setZ", "parent": 120, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 13}}, {"id": 122, "type": "parameter_list", "text": "( double _z )", "parent": 120, "children": [123], "start_point": {"row": 21, "column": 13}, "end_point": {"row": 21, "column": 26}}, {"id": 123, "type": "parameter_declaration", "text": "double _z", "parent": 122, "children": [124, 125], "start_point": {"row": 21, "column": 15}, "end_point": {"row": 21, "column": 24}}, {"id": 124, "type": "primitive_type", "text": "double", "parent": 123, "children": [], "start_point": {"row": 21, "column": 15}, "end_point": {"row": 21, "column": 21}}, {"id": 125, "type": "identifier", "text": "_z", "parent": 123, "children": [], "start_point": {"row": 21, "column": 22}, "end_point": {"row": 21, "column": 24}}, {"id": 126, "type": "assignment_expression", "text": "z = _z", "parent": 118, "children": [127, 128, 129], "start_point": {"row": 21, "column": 29}, "end_point": {"row": 21, "column": 35}}, {"id": 127, "type": "identifier", "text": "z", "parent": 126, "children": [], "start_point": {"row": 21, "column": 29}, "end_point": {"row": 21, "column": 30}}, {"id": 128, "type": "=", "text": "=", "parent": 126, "children": [], "start_point": {"row": 21, "column": 31}, "end_point": {"row": 21, "column": 32}}, {"id": 129, "type": "identifier", "text": "_z", "parent": 126, "children": [], "start_point": {"row": 21, "column": 33}, "end_point": {"row": 21, "column": 35}}, {"id": 130, "type": "declaration", "text": "void update(MVector _acts);", "parent": 9, "children": [131, 132], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 31}}, {"id": 131, "type": "primitive_type", "text": "void", "parent": 130, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 8}}, {"id": 132, "type": "function_declarator", "text": "update(MVector _acts)", "parent": 130, "children": [133, 134], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 30}}, {"id": 133, "type": "identifier", "text": "update", "parent": 132, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 15}}, {"id": 134, "type": "parameter_list", "text": "(MVector _acts)", "parent": 132, "children": [135], "start_point": {"row": 22, "column": 15}, "end_point": {"row": 22, "column": 30}}, {"id": 135, "type": "parameter_declaration", "text": "MVector _acts", "parent": 134, "children": [136, 137], "start_point": {"row": 22, "column": 16}, "end_point": {"row": 22, "column": 29}}, {"id": 136, "type": "type_identifier", "text": "MVector", "parent": 135, "children": [], "start_point": {"row": 22, "column": 16}, "end_point": {"row": 22, "column": 23}}, {"id": 137, "type": "identifier", "text": "_acts", "parent": 135, "children": [], "start_point": {"row": 22, "column": 24}, "end_point": {"row": 22, "column": 29}}, {"id": 138, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 6}}]}, "node_categories": {"declarations": {"functions": [9, 56, 61, 63, 75, 80, 82, 94, 101, 106, 108, 118, 120, 132], "variables": [12, 15, 18, 21, 25, 66, 85, 111, 123, 130, 135], "classes": [], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [33], "assignments": [69, 88, 114, 126], "loops": [], "conditionals": [0, 1, 2, 5, 10, 13, 14, 17, 20, 23, 26, 27, 29, 31, 34, 37, 39, 43, 45, 49, 51, 57, 60, 64, 68, 70, 72, 74, 76, 79, 83, 86, 87, 89, 91, 95, 98, 102, 105, 109, 113, 115, 117, 121, 125, 127, 129, 133, 136, 137, 138], "returns": [59, 78, 97, 104], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 41, 47, 53], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "Node", "text_snippet": "class Node {\r\nprivate:\r\n MVector weights;\r\n double bias;\r\n double z;\r\n double activation"}, {"node_id": 56, "universal_type": "function", "name": "unknown", "text_snippet": "getBias()"}, {"node_id": 61, "universal_type": "function", "name": "setBias", "text_snippet": "void setBias( double _bias) { bias = _bias; }"}, {"node_id": 63, "universal_type": "function", "name": "unknown", "text_snippet": "setBias( double _bias)"}, {"node_id": 75, "universal_type": "function", "name": "unknown", "text_snippet": "getWeights()"}, {"node_id": 80, "universal_type": "function", "name": "setWeights", "text_snippet": "void setWeights(MVector _weights) { weights = _weights; }"}, {"node_id": 82, "universal_type": "function", "name": "unknown", "text_snippet": "setWeights(MVector _weights)"}, {"node_id": 94, "universal_type": "function", "name": "unknown", "text_snippet": "getActivation()"}, {"node_id": 101, "universal_type": "function", "name": "unknown", "text_snippet": "getZ()"}, {"node_id": 106, "universal_type": "function", "name": "setActivation", "text_snippet": "void setActivation( double _act ) { activation = _act; }"}, {"node_id": 108, "universal_type": "function", "name": "unknown", "text_snippet": "setActivation( double _act )"}, {"node_id": 118, "universal_type": "function", "name": "setZ", "text_snippet": "void setZ( double _z ) { z = _z; }"}, {"node_id": 120, "universal_type": "function", "name": "unknown", "text_snippet": "setZ( double _z )"}, {"node_id": 132, "universal_type": "function", "name": "unknown", "text_snippet": "update(MVector _acts)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"MVector.h\"\r\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#ifndef NODE_H\r\n#define NODE_H\r\n\r\n#include \"MVector.h\"\r\n\r\n\r\nclass Node {\r\nprivate:\r\n MVector weights;\r\n double bias;\r\n double z;\r\n double activation;\r\npublic:\r\n Node(MVector _weights = MVector(), double _bias = 0, double _z = 0, double _activation = 0);\r\n double getBias() const { return bias; };\r\n void setBias( double _bias) { bias = _bias; };\r\n MVector getWeights() const { return weights; };\r\n void setWeights(MVector _weights) { weights = _weights; };\r\n double getActivation() const { return activation; };\r\n double getZ() const { return z; };\r\n void setActivation( double _act ) { activation = _act; };\r\n void setZ( double _z ) { z = _z; };\r\n void update(MVector _acts);\r\n};\r\n\r\n\r\n\r\n\r\n#endif"}
80,284
c
// // MMHTTPRequestHandler.h // Demo // // Created by Tank on 08/06/2017. // Copyright © 2017 Tank. All rights reserved. // #import <Foundation/Foundation.h> #import "MMHTTPConfig.h" @interface MMHTTPRequestHandler : NSObject @property(nonatomic, readonly) ZGHTTPRequestHead *requestHead; @property(nonatomic, readonly) u_int64_t bodyDataLength; @property(nonatomic, readonly) u_int64_t bodyDataOffset; + (instancetype)initWithHeadData:(NSData *)data delegate:(id <ZGHTTPRequestDelegate>)delegate rootDir:(NSString *)dir; - (instancetype)initWithHeadData:(NSData *)data delegate:(id <ZGHTTPRequestDelegate>)delegate rootDir:(NSString *)dir; //- (NSError *)refuseError; - (NSError *)invalidError; - (BOOL)isRequestFinish; - (void)writeBodyData:(NSData *)data; - (void)writeBodyDataError:(NSError *)error; @end @interface ZGHTTPRequestHead (ZGHTTPPrivateAPI) + (instancetype)initWithData:(NSData *)data; - (instancetype)initWithData:(NSData *)data; - (void)setMethod:(NSString *)method; - (void)setPath:(NSString *)path; - (void)setProtocol:(NSString *)protocol; - (void)setVersion:(NSString *)version; - (void)setHost:(NSString *)host; - (void)setHeadDic:(NSDictionary *)headDic; - (BOOL)hasRangeHead; - (NSRange)range; @end
32.23
40
(translation_unit) "//\n// MMHTTPRequestHandler.h\n// Demo\n//\n// Created by Tank on 08/06/2017.\n// Copyright © 2017 Tank. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "MMHTTPConfig.h"\n\n\n@interface MMHTTPRequestHandler : NSObject\n\n@property(nonatomic, readonly) ZGHTTPRequestHead *requestHead;\n@property(nonatomic, readonly) u_int64_t bodyDataLength;\n@property(nonatomic, readonly) u_int64_t bodyDataOffset;\n\n\n+ (instancetype)initWithHeadData:(NSData *)data\n delegate:(id <ZGHTTPRequestDelegate>)delegate\n rootDir:(NSString *)dir;\n\n- (instancetype)initWithHeadData:(NSData *)data\n delegate:(id <ZGHTTPRequestDelegate>)delegate\n rootDir:(NSString *)dir;\n\n//- (NSError *)refuseError;\n- (NSError *)invalidError;\n\n- (BOOL)isRequestFinish;\n\n- (void)writeBodyData:(NSData *)data;\n\n- (void)writeBodyDataError:(NSError *)error;\n\n@end\n\n\n@interface ZGHTTPRequestHead (ZGHTTPPrivateAPI)\n\n+ (instancetype)initWithData:(NSData *)data;\n\n- (instancetype)initWithData:(NSData *)data;\n\n- (void)setMethod:(NSString *)method;\n\n- (void)setPath:(NSString *)path;\n\n- (void)setProtocol:(NSString *)protocol;\n\n- (void)setVersion:(NSString *)version;\n\n- (void)setHost:(NSString *)host;\n\n- (void)setHeadDic:(NSDictionary *)headDic;\n\n- (BOOL)hasRangeHead;\n\n- (NSRange)range;\n\n@end\n" (comment) "//" (comment) "// MMHTTPRequestHandler.h" (comment) "// Demo" (comment) "//" (comment) "// Created by Tank on 08/06/2017." (comment) "// Copyright © 2017 Tank. All rights reserved.\n" (comment) "/\n" (preproc_call) "import <Foundation/Foundation.h>\n#" (preproc_directive) "import " (preproc_arg) "Foundation/Foundation.h>\n" (preproc_call) "import "MMHTTPConfig.h"\n\n" (preproc_directive) "import " (preproc_arg) "MMHTTPConfig.h"\n" (ERROR) "interface MMHTTPRequestHandler : NSObject\n\n@property(nonatomic, readonly) ZGHTTPRequestHead *requestHead;\n@property(nonatomic, readonly) u_int64_t bodyDataLength;\n@property(nonatomic, readonly) u_int64_t bodyDataOffset;\n\n\n+ (instancetype)initWithHeadData:(NSData *)data\n delegate:(id <ZGHTTPRequestDelegate>)delegate\n rootDir:(NSString *)dir;\n\n- (instancetype)initWithHeadData:(NSData *)data\n delegate:(id <ZGHTTPRequestDelegate>)delegate\n rootDir:(NSString *)dir;\n\n//- (NSError *)refuseError;\n- (NSError *)invalidError;\n\n- (BOOL)isRequestFinish;\n\n- (void)writeBodyData:(NSData *)data;\n\n- (void)writeBodyDataError:(NSError *)error;\n\n@end\n\n\n@interface ZGHTTPRequestHead (ZGHTTPPrivateAPI)\n\n+ (instancetype)initWithData:(NSData *)data;\n\n- (instancetype)initWithData:(NSData *)data;\n\n- (void)setMethod:(NSString *)method;\n\n- (void)setPath:(NSString *)path;\n\n- (void)setProtocol:(NSString *)protocol;\n\n- (void)setVersion:(NSString *)version;\n\n- (void)setHost:(NSString *)host;\n\n- (void)setHeadDic:(NSDictionary *)headDic;\n\n- (BOOL)hasRangeHead;\n\n- (NSRange)range;\n\n@end\n" (ERROR) "i" (type_identifier) "nterface " (ERROR) "MHTTPRequestHandler : NSObject\n\n@p" (identifier) "MHTTPRequestHandler " (:) " " (identifier) "SObject\n" (ERROR) "p" (function_declarator) "roperty(nonatomic, readonly) " (identifier) "roperty(" (parameter_list) "nonatomic, readonly) " (() "n" (identifier) "onatomic," (,) " " (identifier) "eadonly)" ()) " " (declaration) "GHTTPRequestHead *requestHead;\n" (type_identifier) "GHTTPRequestHead " (pointer_declarator) "requestHead;" (*) "r" (identifier) "equestHead;" (;) "\n" (ERROR) "p" (ERROR) "p" (declaration) "roperty(nonatomic, readonly) u_int64_t bodyDataLength;\n" (macro_type_specifier) "roperty(nonatomic, readonly) " (identifier) "roperty(" (() "n" (type_descriptor) "onatomic," (type_identifier) "onatomic," (ERROR) " readonly)" (,) " " (identifier) "eadonly)" ()) " " (ERROR) "_int64_t " (identifier) "_int64_t " (identifier) "odyDataLength;" (;) "\n" (ERROR) "p" (ERROR) "p" (declaration) "roperty(nonatomic, readonly) u_int64_t bodyDataOffset;\n" (macro_type_specifier) "roperty(nonatomic, readonly) " (identifier) "roperty(" (() "n" (type_descriptor) "onatomic," (type_identifier) "onatomic," (ERROR) " readonly)" (,) " " (identifier) "eadonly)" ()) " " (ERROR) "_int64_t " (identifier) "_int64_t " (identifier) "odyDataOffset;" (;) "\n" (ERROR) " (i" (+) " " (() "i" (declaration) "nstancetype)initWithHeadData:(NSData *)data\n delegate:(id <ZGHTTPRequestDelegate>)delegate\n rootDir:(NSString *)dir;\n" (type_identifier) "nstancetype)" (ERROR) "initWithHeadData:(NSData *)data\n delegate:(id <ZGHTTPRequestDelegate>)delegate\n rootDir:(NSString *)d" ()) "i" (identifier) "nitWithHeadData:" (:) "(" (() "N" (identifier) "SData " (*) ")" ()) "d" (identifier) "ata\n" (identifier) "elegate:" (:) "(" (() "i" (identifier) "d " (<) "Z" (identifier) "GHTTPRequestDelegate>" (>) ")" ()) "d" (identifier) "elegate\n" (identifier) "ootDir:" (:) "(" (() "N" (identifier) "SString " (*) ")" ()) "d" (identifier) "ir;" (;) "\n" (ERROR) " (i" (-) " " (() "i" (declaration) "nstancetype)initWithHeadData:(NSData *)data\n delegate:(id <ZGHTTPRequestDelegate>)delegate\n rootDir:(NSString *)dir;\n" (type_identifier) "nstancetype)" (ERROR) "initWithHeadData:(NSData *)data\n delegate:(id <ZGHTTPRequestDelegate>)delegate\n rootDir:(NSString *)d" ()) "i" (identifier) "nitWithHeadData:" (:) "(" (() "N" (identifier) "SData " (*) ")" ()) "d" (identifier) "ata\n" (identifier) "elegate:" (:) "(" (() "i" (identifier) "d " (<) "Z" (identifier) "GHTTPRequestDelegate>" (>) ")" ()) "d" (identifier) "elegate\n" (identifier) "ootDir:" (:) "(" (() "N" (identifier) "SString " (*) ")" ()) "d" (identifier) "ir;" (;) "\n" (comment) "/- (NSError *)refuseError;\n" (ERROR) " (N" (-) " " (() "N" (declaration) "SError *)invalidError;\n" (type_identifier) "SError " (pointer_declarator) ")invalidError;" (*) ")" (ERROR) "i" ()) "i" (identifier) "nvalidError;" (;) "\n" (ERROR) " (B" (-) " " (() "B" (declaration) "OOL)isRequestFinish;\n" (type_identifier) "OOL)" (ERROR) "i" ()) "i" (identifier) "sRequestFinish;" (;) "\n" (ERROR) " (v" (-) " " (() "v" (declaration) "oid)writeBodyData:(NSData *)data;\n" (primitive_type) "oid)" (ERROR) "writeBodyData:(NSData *)d" ()) "w" (identifier) "riteBodyData:" (:) "(" (() "N" (identifier) "SData " (*) ")" ()) "d" (identifier) "ata;" (;) "\n" (ERROR) " (v" (-) " " (() "v" (declaration) "oid)writeBodyDataError:(NSError *)error;\n" (primitive_type) "oid)" (ERROR) "writeBodyDataError:(NSError *)e" ()) "w" (identifier) "riteBodyDataError:" (:) "(" (() "N" (identifier) "SError " (*) ")" ()) "e" (identifier) "rror;" (;) "\n" (ERROR) "e" (ERROR) "e" (type_identifier) "nd\n" (ERROR) "interface " (ERROR) "i" (identifier) "nterface " (function_declarator) "GHTTPRequestHead (ZGHTTPPrivateAPI)\n\n+ (instancetype)initWithData:(NSData *)data;\n\n- (instancetype)initWithData:(NSData *)data;\n\n- (void)setMethod:(NSString *)method;\n\n- (void)setPath:(NSString *)path;\n\n- (void)setProtocol:(NSString *)protocol;\n\n- (void)setVersion:(NSString *)version;\n\n- (void)setHost:(NSString *)host;\n\n- (void)setHeadDic:(NSDictionary *)headDic;\n\n- (BOOL)hasRangeHead;\n\n- (NSRange)range;" (function_declarator) "GHTTPRequestHead (ZGHTTPPrivateAPI)\n\n+ (instancetype)initWithData:(NSData *)data;\n\n- (instancetype)initWithData:(NSData *)data;\n\n- (void)setMethod:(NSString *)method;\n\n- (void)setPath:(NSString *)path;\n\n- (void)setProtocol:(NSString *)protocol;\n\n- (void)setVersion:(NSString *)version;\n\n- (void)setHost:(NSString *)host;\n\n- (void)setHeadDic:(NSDictionary *)headDic;\n\n- (BOOL)hasRangeHead;" (function_declarator) "GHTTPRequestHead (ZGHTTPPrivateAPI)\n\n+ (instancetype)initWithData:(NSData *)data;\n\n- (instancetype)initWithData:(NSData *)data;\n\n- (void)setMethod:(NSString *)method;\n\n- (void)setPath:(NSString *)path;\n\n- (void)setProtocol:(NSString *)protocol;\n\n- (void)setVersion:(NSString *)version;\n\n- (void)setHost:(NSString *)host;\n\n- (void)setHeadDic:(NSDictionary *)headDic;" (function_declarator) "GHTTPRequestHead (ZGHTTPPrivateAPI)\n\n+ (instancetype)initWithData:(NSData *)data;\n\n- (instancetype)initWithData:(NSData *)data;\n\n- (void)setMethod:(NSString *)method;\n\n- (void)setPath:(NSString *)path;\n\n- (void)setProtocol:(NSString *)protocol;\n\n- (void)setVersion:(NSString *)version;\n\n- (void)setHost:(NSString *)host;" (function_declarator) "GHTTPRequestHead (ZGHTTPPrivateAPI)\n\n+ (instancetype)initWithData:(NSData *)data;\n\n- (instancetype)initWithData:(NSData *)data;\n\n- (void)setMethod:(NSString *)method;\n\n- (void)setPath:(NSString *)path;\n\n- (void)setProtocol:(NSString *)protocol;\n\n- (void)setVersion:(NSString *)version;" (function_declarator) "GHTTPRequestHead (ZGHTTPPrivateAPI)\n\n+ (instancetype)initWithData:(NSData *)data;\n\n- (instancetype)initWithData:(NSData *)data;\n\n- (void)setMethod:(NSString *)method;\n\n- (void)setPath:(NSString *)path;\n\n- (void)setProtocol:(NSString *)protocol;" (function_declarator) "GHTTPRequestHead (ZGHTTPPrivateAPI)\n\n+ (instancetype)initWithData:(NSData *)data;\n\n- (instancetype)initWithData:(NSData *)data;\n\n- (void)setMethod:(NSString *)method;\n\n- (void)setPath:(NSString *)path;" (function_declarator) "GHTTPRequestHead (ZGHTTPPrivateAPI)\n\n+ (instancetype)initWithData:(NSData *)data;\n\n- (instancetype)initWithData:(NSData *)data;\n\n- (void)setMethod:(NSString *)method;" (function_declarator) "GHTTPRequestHead (ZGHTTPPrivateAPI)\n\n+ (instancetype)initWithData:(NSData *)data;\n\n- (instancetype)initWithData:(NSData *)data;" (function_declarator) "GHTTPRequestHead (ZGHTTPPrivateAPI)\n\n+ (instancetype)initWithData:(NSData *)data;" (function_declarator) "GHTTPRequestHead (ZGHTTPPrivateAPI)\n" (identifier) "GHTTPRequestHead " (parameter_list) "ZGHTTPPrivateAPI)\n" (() "Z" (parameter_declaration) "GHTTPPrivateAPI)" (type_identifier) "GHTTPPrivateAPI)" ()) "\n" (ERROR) " " (+) " " (parameter_list) "instancetype)i" (() "i" (parameter_declaration) "nstancetype)" (type_identifier) "nstancetype)" ()) "i" (identifier) "nitWithData:" (ERROR) "(N" (:) "(" (() "N" (identifier) "SData " (ERROR) ")d" (*) ")" ()) "d" (identifier) "ata;" (ERROR) "\n\n- " (;) "\n" (-) " " (parameter_list) "instancetype)i" (() "i" (parameter_declaration) "nstancetype)" (type_identifier) "nstancetype)" ()) "i" (identifier) "nitWithData:" (ERROR) "(N" (:) "(" (() "N" (identifier) "SData " (ERROR) ")d" (*) ")" ()) "d" (identifier) "ata;" (ERROR) "\n\n- " (;) "\n" (-) " " (parameter_list) "void)s" (() "v" (parameter_declaration) "oid)" (primitive_type) "oid)" ()) "s" (identifier) "etMethod:" (ERROR) "(N" (:) "(" (() "N" (identifier) "SString " (ERROR) ")m" (*) ")" ()) "m" (identifier) "ethod;" (ERROR) "\n\n- " (;) "\n" (-) " " (parameter_list) "void)s" (() "v" (parameter_declaration) "oid)" (primitive_type) "oid)" ()) "s" (identifier) "etPath:" (ERROR) "(N" (:) "(" (() "N" (identifier) "SString " (ERROR) ")p" (*) ")" ()) "p" (identifier) "ath;" (ERROR) "\n\n- " (;) "\n" (-) " " (parameter_list) "void)s" (() "v" (parameter_declaration) "oid)" (primitive_type) "oid)" ()) "s" (identifier) "etProtocol:" (ERROR) "(N" (:) "(" (() "N" (identifier) "SString " (ERROR) ")p" (*) ")" ()) "p" (identifier) "rotocol;" (ERROR) "\n\n- " (;) "\n" (-) " " (parameter_list) "void)s" (() "v" (parameter_declaration) "oid)" (primitive_type) "oid)" ()) "s" (identifier) "etVersion:" (ERROR) "(N" (:) "(" (() "N" (identifier) "SString " (ERROR) ")v" (*) ")" ()) "v" (identifier) "ersion;" (ERROR) "\n\n- " (;) "\n" (-) " " (parameter_list) "void)s" (() "v" (parameter_declaration) "oid)" (primitive_type) "oid)" ()) "s" (identifier) "etHost:" (ERROR) "(N" (:) "(" (() "N" (identifier) "SString " (ERROR) ")h" (*) ")" ()) "h" (identifier) "ost;" (ERROR) "\n\n- " (;) "\n" (-) " " (parameter_list) "void)s" (() "v" (parameter_declaration) "oid)" (primitive_type) "oid)" ()) "s" (identifier) "etHeadDic:" (ERROR) "(N" (:) "(" (() "N" (identifier) "SDictionary " (ERROR) ")h" (*) ")" ()) "h" (identifier) "eadDic;" (ERROR) "\n\n- " (;) "\n" (-) " " (parameter_list) "BOOL)h" (() "B" (parameter_declaration) "OOL)" (type_identifier) "OOL)" ()) "h" (identifier) "asRangeHead;" (ERROR) "\n\n- " (;) "\n" (-) " " (parameter_list) "NSRange)r" (() "N" (parameter_declaration) "SRange)" (type_identifier) "SRange)" ()) "r" (identifier) "ange;" (;) "\n" (ERROR) "e" (identifier) "nd\n"
360
55
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 32.23, "nodes": 221, "errors": 0, "source_hash": "d1435bed4f405f324204f7dca4e0e2a6a7e91e839c47ae8e080472825c2a3d1d", "categorized_nodes": 121}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <Foundation/Foundation.h>\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": "preproc_call", "text": "import \"MMHTTPConfig.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": "MMHTTPConfig.h\"\n", "parent": 2, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 24}}, {"id": 4, "type": "ERROR", "text": "interface MMHTTPRequestHandler : NSObject\n\n@property(nonatomic, readonly) ZGHTTPRequestHead *requestHead;\n@property(nonatomic, readonly) u_int64_t bodyDataLength;\n@property(nonatomic, readonly) u_int64_t bodyDataOffset;\n\n\n+ (instancetype)initWithHeadData:(NSData *)data\n delegate:(id <ZGHTTPRequestDelegate>)delegate\n rootDir:(NSString *)dir;\n\n- (instancetype)initWithHeadData:(NSData *)data\n delegate:(id <ZGHTTPRequestDelegate>)delegate\n rootDir:(NSString *)dir;\n\n//- (NSError *)refuseError;\n- (NSError *)invalidError;\n\n- (BOOL)isRequestFinish;\n\n- (void)writeBodyData:(NSData *)data;\n\n- (void)writeBodyDataError:(NSError *)error;\n\n@end\n\n\n@interface ZGHTTPRequestHead (ZGHTTPPrivateAPI)\n\n+ (instancetype)initWithData:(NSData *)data;\n\n- (instancetype)initWithData:(NSData *)data;\n\n- (void)setMethod:(NSString *)method;\n\n- (void)setPath:(NSString *)path;\n\n- (void)setProtocol:(NSString *)protocol;\n\n- (void)setVersion:(NSString *)version;\n\n- (void)setHost:(NSString *)host;\n\n- (void)setHeadDic:(NSDictionary *)headDic;\n\n- (BOOL)hasRangeHead;\n\n- (NSRange)range;\n\n@end\n", "parent": null, "children": [5, 6, 7, 11, 16, 21, 23, 33, 35, 45, 47, 61, 63, 77, 79, 84, 86, 90, 92, 98, 100, 106, 108, 109, 112, 219, 220], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 61, "column": 4}}, {"id": 5, "type": "ERROR", "text": "i", "parent": 4, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 6, "type": "type_identifier", "text": "nterface ", "parent": 4, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 10}}, {"id": 7, "type": "ERROR", "text": "MHTTPRequestHandler : NSObject\n\n@p", "parent": 4, "children": [8, 9, 10], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 14, "column": 1}}, {"id": 8, "type": "identifier", "text": "MHTTPRequestHandler ", "parent": 7, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 31}}, {"id": 9, "type": "identifier", "text": "SObject\n", "parent": 7, "children": [], "start_point": {"row": 12, "column": 34}, "end_point": {"row": 12, "column": 42}}, {"id": 10, "type": "ERROR", "text": "p", "parent": 7, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 11, "type": "function_declarator", "text": "roperty(nonatomic, readonly) ", "parent": 4, "children": [12, 13], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 30}}, {"id": 12, "type": "identifier", "text": "roperty(", "parent": 11, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 9}}, {"id": 13, "type": "parameter_list", "text": "nonatomic, readonly) ", "parent": 11, "children": [14, 15], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 30}}, {"id": 14, "type": "identifier", "text": "onatomic,", "parent": 13, "children": [], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 19}}, {"id": 15, "type": "identifier", "text": "eadonly)", "parent": 13, "children": [], "start_point": {"row": 14, "column": 21}, "end_point": {"row": 14, "column": 29}}, {"id": 16, "type": "declaration", "text": "GHTTPRequestHead *requestHead;\n", "parent": 4, "children": [17, 18], "start_point": {"row": 14, "column": 31}, "end_point": {"row": 14, "column": 62}}, {"id": 17, "type": "type_identifier", "text": "GHTTPRequestHead ", "parent": 16, "children": [], "start_point": {"row": 14, "column": 31}, "end_point": {"row": 14, "column": 48}}, {"id": 18, "type": "pointer_declarator", "text": "requestHead;", "parent": 16, "children": [19, 20], "start_point": {"row": 14, "column": 49}, "end_point": {"row": 14, "column": 61}}, {"id": 19, "type": "*", "text": "r", "parent": 18, "children": [], "start_point": {"row": 14, "column": 49}, "end_point": {"row": 14, "column": 50}}, {"id": 20, "type": "identifier", "text": "equestHead;", "parent": 18, "children": [], "start_point": {"row": 14, "column": 50}, "end_point": {"row": 14, "column": 61}}, {"id": 21, "type": "ERROR", "text": "p", "parent": 4, "children": [22], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 22, "type": "ERROR", "text": "p", "parent": 21, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 23, "type": "declaration", "text": "roperty(nonatomic, readonly) u_int64_t bodyDataLength;\n", "parent": 4, "children": [24, 30, 32], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 56}}, {"id": 24, "type": "macro_type_specifier", "text": "roperty(nonatomic, readonly) ", "parent": 23, "children": [25, 26, 28], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 30}}, {"id": 25, "type": "identifier", "text": "roperty(", "parent": 24, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 9}}, {"id": 26, "type": "type_descriptor", "text": "onatomic,", "parent": 24, "children": [27], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 19}}, {"id": 27, "type": "type_identifier", "text": "onatomic,", "parent": 26, "children": [], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 19}}, {"id": 28, "type": "ERROR", "text": " readonly)", "parent": 24, "children": [29], "start_point": {"row": 15, "column": 19}, "end_point": {"row": 15, "column": 29}}, {"id": 29, "type": "identifier", "text": "eadonly)", "parent": 28, "children": [], "start_point": {"row": 15, "column": 21}, "end_point": {"row": 15, "column": 29}}, {"id": 30, "type": "ERROR", "text": "_int64_t ", "parent": 23, "children": [31], "start_point": {"row": 15, "column": 31}, "end_point": {"row": 15, "column": 40}}, {"id": 31, "type": "identifier", "text": "_int64_t ", "parent": 30, "children": [], "start_point": {"row": 15, "column": 31}, "end_point": {"row": 15, "column": 40}}, {"id": 32, "type": "identifier", "text": "odyDataLength;", "parent": 23, "children": [], "start_point": {"row": 15, "column": 41}, "end_point": {"row": 15, "column": 55}}, {"id": 33, "type": "ERROR", "text": "p", "parent": 4, "children": [34], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 34, "type": "ERROR", "text": "p", "parent": 33, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 35, "type": "declaration", "text": "roperty(nonatomic, readonly) u_int64_t bodyDataOffset;\n", "parent": 4, "children": [36, 42, 44], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 56}}, {"id": 36, "type": "macro_type_specifier", "text": "roperty(nonatomic, readonly) ", "parent": 35, "children": [37, 38, 40], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 30}}, {"id": 37, "type": "identifier", "text": "roperty(", "parent": 36, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 9}}, {"id": 38, "type": "type_descriptor", "text": "onatomic,", "parent": 36, "children": [39], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 19}}, {"id": 39, "type": "type_identifier", "text": "onatomic,", "parent": 38, "children": [], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 19}}, {"id": 40, "type": "ERROR", "text": " readonly)", "parent": 36, "children": [41], "start_point": {"row": 16, "column": 19}, "end_point": {"row": 16, "column": 29}}, {"id": 41, "type": "identifier", "text": "eadonly)", "parent": 40, "children": [], "start_point": {"row": 16, "column": 21}, "end_point": {"row": 16, "column": 29}}, {"id": 42, "type": "ERROR", "text": "_int64_t ", "parent": 35, "children": [43], "start_point": {"row": 16, "column": 31}, "end_point": {"row": 16, "column": 40}}, {"id": 43, "type": "identifier", "text": "_int64_t ", "parent": 42, "children": [], "start_point": {"row": 16, "column": 31}, "end_point": {"row": 16, "column": 40}}, {"id": 44, "type": "identifier", "text": "odyDataOffset;", "parent": 35, "children": [], "start_point": {"row": 16, "column": 41}, "end_point": {"row": 16, "column": 55}}, {"id": 45, "type": "ERROR", "text": " (i", "parent": 4, "children": [46], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 3}}, {"id": 46, "type": "+", "text": " ", "parent": 45, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 47, "type": "declaration", "text": "nstancetype)initWithHeadData:(NSData *)data\n delegate:(id <ZGHTTPRequestDelegate>)delegate\n rootDir:(NSString *)dir;\n", "parent": 4, "children": [48, 49, 60], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 21, "column": 49}}, {"id": 48, "type": "type_identifier", "text": "nstancetype)", "parent": 47, "children": [], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 15}}, {"id": 49, "type": "ERROR", "text": "initWithHeadData:(NSData *)data\n delegate:(id <ZGHTTPRequestDelegate>)delegate\n rootDir:(NSString *)d", "parent": 47, "children": [50, 51, 52, 53, 54, 55, 56, 57, 58, 59], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 21, "column": 45}}, {"id": 50, "type": "identifier", "text": "nitWithHeadData:", "parent": 49, "children": [], "start_point": {"row": 19, "column": 16}, "end_point": {"row": 19, "column": 32}}, {"id": 51, "type": "identifier", "text": "SData ", "parent": 49, "children": [], "start_point": {"row": 19, "column": 34}, "end_point": {"row": 19, "column": 40}}, {"id": 52, "type": "identifier", "text": "ata\n", "parent": 49, "children": [], "start_point": {"row": 19, "column": 43}, "end_point": {"row": 19, "column": 47}}, {"id": 53, "type": "identifier", "text": "elegate:", "parent": 49, "children": [], "start_point": {"row": 20, "column": 24}, "end_point": {"row": 20, "column": 32}}, {"id": 54, "type": "identifier", "text": "d ", "parent": 49, "children": [], "start_point": {"row": 20, "column": 34}, "end_point": {"row": 20, "column": 36}}, {"id": 55, "type": "<", "text": "Z", "parent": 49, "children": [], "start_point": {"row": 20, "column": 37}, "end_point": {"row": 20, "column": 38}}, {"id": 56, "type": "identifier", "text": "GHTTPRequestDelegate>", "parent": 49, "children": [], "start_point": {"row": 20, "column": 38}, "end_point": {"row": 20, "column": 59}}, {"id": 57, "type": "identifier", "text": "elegate\n", "parent": 49, "children": [], "start_point": {"row": 20, "column": 61}, "end_point": {"row": 20, "column": 69}}, {"id": 58, "type": "identifier", "text": "ootDir:", "parent": 49, "children": [], "start_point": {"row": 21, "column": 25}, "end_point": {"row": 21, "column": 32}}, {"id": 59, "type": "identifier", "text": "SString ", "parent": 49, "children": [], "start_point": {"row": 21, "column": 34}, "end_point": {"row": 21, "column": 42}}, {"id": 60, "type": "identifier", "text": "ir;", "parent": 47, "children": [], "start_point": {"row": 21, "column": 45}, "end_point": {"row": 21, "column": 48}}, {"id": 61, "type": "ERROR", "text": " (i", "parent": 4, "children": [62], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 3}}, {"id": 62, "type": "-", "text": " ", "parent": 61, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 63, "type": "declaration", "text": "nstancetype)initWithHeadData:(NSData *)data\n delegate:(id <ZGHTTPRequestDelegate>)delegate\n rootDir:(NSString *)dir;\n", "parent": 4, "children": [64, 65, 76], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 25, "column": 49}}, {"id": 64, "type": "type_identifier", "text": "nstancetype)", "parent": 63, "children": [], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 15}}, {"id": 65, "type": "ERROR", "text": "initWithHeadData:(NSData *)data\n delegate:(id <ZGHTTPRequestDelegate>)delegate\n rootDir:(NSString *)d", "parent": 63, "children": [66, 67, 68, 69, 70, 71, 72, 73, 74, 75], "start_point": {"row": 23, "column": 15}, "end_point": {"row": 25, "column": 45}}, {"id": 66, "type": "identifier", "text": "nitWithHeadData:", "parent": 65, "children": [], "start_point": {"row": 23, "column": 16}, "end_point": {"row": 23, "column": 32}}, {"id": 67, "type": "identifier", "text": "SData ", "parent": 65, "children": [], "start_point": {"row": 23, "column": 34}, "end_point": {"row": 23, "column": 40}}, {"id": 68, "type": "identifier", "text": "ata\n", "parent": 65, "children": [], "start_point": {"row": 23, "column": 43}, "end_point": {"row": 23, "column": 47}}, {"id": 69, "type": "identifier", "text": "elegate:", "parent": 65, "children": [], "start_point": {"row": 24, "column": 24}, "end_point": {"row": 24, "column": 32}}, {"id": 70, "type": "identifier", "text": "d ", "parent": 65, "children": [], "start_point": {"row": 24, "column": 34}, "end_point": {"row": 24, "column": 36}}, {"id": 71, "type": "<", "text": "Z", "parent": 65, "children": [], "start_point": {"row": 24, "column": 37}, "end_point": {"row": 24, "column": 38}}, {"id": 72, "type": "identifier", "text": "GHTTPRequestDelegate>", "parent": 65, "children": [], "start_point": {"row": 24, "column": 38}, "end_point": {"row": 24, "column": 59}}, {"id": 73, "type": "identifier", "text": "elegate\n", "parent": 65, "children": [], "start_point": {"row": 24, "column": 61}, "end_point": {"row": 24, "column": 69}}, {"id": 74, "type": "identifier", "text": "ootDir:", "parent": 65, "children": [], "start_point": {"row": 25, "column": 25}, "end_point": {"row": 25, "column": 32}}, {"id": 75, "type": "identifier", "text": "SString ", "parent": 65, "children": [], "start_point": {"row": 25, "column": 34}, "end_point": {"row": 25, "column": 42}}, {"id": 76, "type": "identifier", "text": "ir;", "parent": 63, "children": [], "start_point": {"row": 25, "column": 45}, "end_point": {"row": 25, "column": 48}}, {"id": 77, "type": "ERROR", "text": " (N", "parent": 4, "children": [78], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 3}}, {"id": 78, "type": "-", "text": " ", "parent": 77, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 1}}, {"id": 79, "type": "declaration", "text": "SError *)invalidError;\n", "parent": 4, "children": [80, 81], "start_point": {"row": 28, "column": 3}, "end_point": {"row": 28, "column": 26}}, {"id": 80, "type": "type_identifier", "text": "SError ", "parent": 79, "children": [], "start_point": {"row": 28, "column": 3}, "end_point": {"row": 28, "column": 10}}, {"id": 81, "type": "pointer_declarator", "text": ")invalidError;", "parent": 79, "children": [82, 83], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 25}}, {"id": 82, "type": "ERROR", "text": "i", "parent": 81, "children": [], "start_point": {"row": 28, "column": 12}, "end_point": {"row": 28, "column": 13}}, {"id": 83, "type": "identifier", "text": "nvalidError;", "parent": 81, "children": [], "start_point": {"row": 28, "column": 13}, "end_point": {"row": 28, "column": 25}}, {"id": 84, "type": "ERROR", "text": " (B", "parent": 4, "children": [85], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 3}}, {"id": 85, "type": "-", "text": " ", "parent": 84, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 1}}, {"id": 86, "type": "declaration", "text": "OOL)isRequestFinish;\n", "parent": 4, "children": [87, 88, 89], "start_point": {"row": 30, "column": 3}, "end_point": {"row": 30, "column": 24}}, {"id": 87, "type": "type_identifier", "text": "OOL)", "parent": 86, "children": [], "start_point": {"row": 30, "column": 3}, "end_point": {"row": 30, "column": 7}}, {"id": 88, "type": "ERROR", "text": "i", "parent": 86, "children": [], "start_point": {"row": 30, "column": 7}, "end_point": {"row": 30, "column": 8}}, {"id": 89, "type": "identifier", "text": "sRequestFinish;", "parent": 86, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 23}}, {"id": 90, "type": "ERROR", "text": " (v", "parent": 4, "children": [91], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 3}}, {"id": 91, "type": "-", "text": " ", "parent": 90, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 1}}, {"id": 92, "type": "declaration", "text": "oid)writeBodyData:(NSData *)data;\n", "parent": 4, "children": [93, 94, 97], "start_point": {"row": 32, "column": 3}, "end_point": {"row": 32, "column": 37}}, {"id": 93, "type": "primitive_type", "text": "oid)", "parent": 92, "children": [], "start_point": {"row": 32, "column": 3}, "end_point": {"row": 32, "column": 7}}, {"id": 94, "type": "ERROR", "text": "writeBodyData:(NSData *)d", "parent": 92, "children": [95, 96], "start_point": {"row": 32, "column": 7}, "end_point": {"row": 32, "column": 32}}, {"id": 95, "type": "identifier", "text": "riteBodyData:", "parent": 94, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 21}}, {"id": 96, "type": "identifier", "text": "SData ", "parent": 94, "children": [], "start_point": {"row": 32, "column": 23}, "end_point": {"row": 32, "column": 29}}, {"id": 97, "type": "identifier", "text": "ata;", "parent": 92, "children": [], "start_point": {"row": 32, "column": 32}, "end_point": {"row": 32, "column": 36}}, {"id": 98, "type": "ERROR", "text": " (v", "parent": 4, "children": [99], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 3}}, {"id": 99, "type": "-", "text": " ", "parent": 98, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 1}}, {"id": 100, "type": "declaration", "text": "oid)writeBodyDataError:(NSError *)error;\n", "parent": 4, "children": [101, 102, 105], "start_point": {"row": 34, "column": 3}, "end_point": {"row": 34, "column": 44}}, {"id": 101, "type": "primitive_type", "text": "oid)", "parent": 100, "children": [], "start_point": {"row": 34, "column": 3}, "end_point": {"row": 34, "column": 7}}, {"id": 102, "type": "ERROR", "text": "writeBodyDataError:(NSError *)e", "parent": 100, "children": [103, 104], "start_point": {"row": 34, "column": 7}, "end_point": {"row": 34, "column": 38}}, {"id": 103, "type": "identifier", "text": "riteBodyDataError:", "parent": 102, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 26}}, {"id": 104, "type": "identifier", "text": "SError ", "parent": 102, "children": [], "start_point": {"row": 34, "column": 28}, "end_point": {"row": 34, "column": 35}}, {"id": 105, "type": "identifier", "text": "rror;", "parent": 100, "children": [], "start_point": {"row": 34, "column": 38}, "end_point": {"row": 34, "column": 43}}, {"id": 106, "type": "ERROR", "text": "e", "parent": 4, "children": [107], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 1}}, {"id": 107, "type": "ERROR", "text": "e", "parent": 106, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 1}}, {"id": 108, "type": "type_identifier", "text": "nd\n", "parent": 4, "children": [], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 4}}, {"id": 109, "type": "ERROR", "text": "interface ", "parent": 4, "children": [110, 111], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 10}}, {"id": 110, "type": "ERROR", "text": "i", "parent": 109, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 1}}, {"id": 111, "type": "identifier", "text": "nterface ", "parent": 109, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 10}}, {"id": 112, "type": "function_declarator", "text": "GHTTPRequestHead (ZGHTTPPrivateAPI)\n\n+ (instancetype)initWithData:(NSData *)data;\n\n- (instancetype)initWithData:(NSData *)data;\n\n- (void)setMethod:(NSString *)method;\n\n- (void)setPath:(NSString *)path;\n\n- (void)setProtocol:(NSString *)protocol;\n\n- (void)setVersion:(NSString *)version;\n\n- (void)setHost:(NSString *)host;\n\n- (void)setHeadDic:(NSDictionary *)headDic;\n\n- (BOOL)hasRangeHead;\n\n- (NSRange)range;", "parent": 4, "children": [113, 213, 215, 218], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 59, "column": 16}}, {"id": 113, "type": "function_declarator", "text": "GHTTPRequestHead (ZGHTTPPrivateAPI)\n\n+ (instancetype)initWithData:(NSData *)data;\n\n- (instancetype)initWithData:(NSData *)data;\n\n- (void)setMethod:(NSString *)method;\n\n- (void)setPath:(NSString *)path;\n\n- (void)setProtocol:(NSString *)protocol;\n\n- (void)setVersion:(NSString *)version;\n\n- (void)setHost:(NSString *)host;\n\n- (void)setHeadDic:(NSDictionary *)headDic;\n\n- (BOOL)hasRangeHead;", "parent": 112, "children": [114, 207, 209, 212], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 57, "column": 20}}, {"id": 114, "type": "function_declarator", "text": "GHTTPRequestHead (ZGHTTPPrivateAPI)\n\n+ (instancetype)initWithData:(NSData *)data;\n\n- (instancetype)initWithData:(NSData *)data;\n\n- (void)setMethod:(NSString *)method;\n\n- (void)setPath:(NSString *)path;\n\n- (void)setProtocol:(NSString *)protocol;\n\n- (void)setVersion:(NSString *)version;\n\n- (void)setHost:(NSString *)host;\n\n- (void)setHeadDic:(NSDictionary *)headDic;", "parent": 113, "children": [115, 197, 199, 202, 203, 204, 205, 206], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 55, "column": 42}}, {"id": 115, "type": "function_declarator", "text": "GHTTPRequestHead (ZGHTTPPrivateAPI)\n\n+ (instancetype)initWithData:(NSData *)data;\n\n- (instancetype)initWithData:(NSData *)data;\n\n- (void)setMethod:(NSString *)method;\n\n- (void)setPath:(NSString *)path;\n\n- (void)setProtocol:(NSString *)protocol;\n\n- (void)setVersion:(NSString *)version;\n\n- (void)setHost:(NSString *)host;", "parent": 114, "children": [116, 187, 189, 192, 193, 194, 195, 196], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 53, "column": 32}}, {"id": 116, "type": "function_declarator", "text": "GHTTPRequestHead (ZGHTTPPrivateAPI)\n\n+ (instancetype)initWithData:(NSData *)data;\n\n- (instancetype)initWithData:(NSData *)data;\n\n- (void)setMethod:(NSString *)method;\n\n- (void)setPath:(NSString *)path;\n\n- (void)setProtocol:(NSString *)protocol;\n\n- (void)setVersion:(NSString *)version;", "parent": 115, "children": [117, 177, 179, 182, 183, 184, 185, 186], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 51, "column": 38}}, {"id": 117, "type": "function_declarator", "text": "GHTTPRequestHead (ZGHTTPPrivateAPI)\n\n+ (instancetype)initWithData:(NSData *)data;\n\n- (instancetype)initWithData:(NSData *)data;\n\n- (void)setMethod:(NSString *)method;\n\n- (void)setPath:(NSString *)path;\n\n- (void)setProtocol:(NSString *)protocol;", "parent": 116, "children": [118, 167, 169, 172, 173, 174, 175, 176], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 49, "column": 40}}, {"id": 118, "type": "function_declarator", "text": "GHTTPRequestHead (ZGHTTPPrivateAPI)\n\n+ (instancetype)initWithData:(NSData *)data;\n\n- (instancetype)initWithData:(NSData *)data;\n\n- (void)setMethod:(NSString *)method;\n\n- (void)setPath:(NSString *)path;", "parent": 117, "children": [119, 157, 159, 162, 163, 164, 165, 166], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 47, "column": 32}}, {"id": 119, "type": "function_declarator", "text": "GHTTPRequestHead (ZGHTTPPrivateAPI)\n\n+ (instancetype)initWithData:(NSData *)data;\n\n- (instancetype)initWithData:(NSData *)data;\n\n- (void)setMethod:(NSString *)method;", "parent": 118, "children": [120, 147, 149, 152, 153, 154, 155, 156], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 45, "column": 36}}, {"id": 120, "type": "function_declarator", "text": "GHTTPRequestHead (ZGHTTPPrivateAPI)\n\n+ (instancetype)initWithData:(NSData *)data;\n\n- (instancetype)initWithData:(NSData *)data;", "parent": 119, "children": [121, 137, 139, 142, 143, 144, 145, 146], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 43, "column": 43}}, {"id": 121, "type": "function_declarator", "text": "GHTTPRequestHead (ZGHTTPPrivateAPI)\n\n+ (instancetype)initWithData:(NSData *)data;", "parent": 120, "children": [122, 127, 129, 132, 133, 134, 135, 136], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 41, "column": 43}}, {"id": 122, "type": "function_declarator", "text": "GHTTPRequestHead (ZGHTTPPrivateAPI)\n", "parent": 121, "children": [123, 124], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 47}}, {"id": 123, "type": "identifier", "text": "GHTTPRequestHead ", "parent": 122, "children": [], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 28}}, {"id": 124, "type": "parameter_list", "text": "ZGHTTPPrivateAPI)\n", "parent": 122, "children": [125], "start_point": {"row": 39, "column": 29}, "end_point": {"row": 39, "column": 47}}, {"id": 125, "type": "parameter_declaration", "text": "GHTTPPrivateAPI)", "parent": 124, "children": [126], "start_point": {"row": 39, "column": 30}, "end_point": {"row": 39, "column": 46}}, {"id": 126, "type": "type_identifier", "text": "GHTTPPrivateAPI)", "parent": 125, "children": [], "start_point": {"row": 39, "column": 30}, "end_point": {"row": 39, "column": 46}}, {"id": 127, "type": "ERROR", "text": " ", "parent": 121, "children": [128], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 1}}, {"id": 128, "type": "+", "text": " ", "parent": 127, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 1}}, {"id": 129, "type": "parameter_list", "text": "instancetype)i", "parent": 121, "children": [130], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 16}}, {"id": 130, "type": "parameter_declaration", "text": "nstancetype)", "parent": 129, "children": [131], "start_point": {"row": 41, "column": 3}, "end_point": {"row": 41, "column": 15}}, {"id": 131, "type": "type_identifier", "text": "nstancetype)", "parent": 130, "children": [], "start_point": {"row": 41, "column": 3}, "end_point": {"row": 41, "column": 15}}, {"id": 132, "type": "identifier", "text": "nitWithData:", "parent": 121, "children": [], "start_point": {"row": 41, "column": 16}, "end_point": {"row": 41, "column": 28}}, {"id": 133, "type": "ERROR", "text": "(N", "parent": 121, "children": [], "start_point": {"row": 41, "column": 28}, "end_point": {"row": 41, "column": 30}}, {"id": 134, "type": "identifier", "text": "SData ", "parent": 121, "children": [], "start_point": {"row": 41, "column": 30}, "end_point": {"row": 41, "column": 36}}, {"id": 135, "type": "ERROR", "text": ")d", "parent": 121, "children": [], "start_point": {"row": 41, "column": 37}, "end_point": {"row": 41, "column": 39}}, {"id": 136, "type": "identifier", "text": "ata;", "parent": 121, "children": [], "start_point": {"row": 41, "column": 39}, "end_point": {"row": 41, "column": 43}}, {"id": 137, "type": "ERROR", "text": "\n\n- ", "parent": 120, "children": [138], "start_point": {"row": 41, "column": 43}, "end_point": {"row": 43, "column": 1}}, {"id": 138, "type": "-", "text": " ", "parent": 137, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 1}}, {"id": 139, "type": "parameter_list", "text": "instancetype)i", "parent": 120, "children": [140], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 16}}, {"id": 140, "type": "parameter_declaration", "text": "nstancetype)", "parent": 139, "children": [141], "start_point": {"row": 43, "column": 3}, "end_point": {"row": 43, "column": 15}}, {"id": 141, "type": "type_identifier", "text": "nstancetype)", "parent": 140, "children": [], "start_point": {"row": 43, "column": 3}, "end_point": {"row": 43, "column": 15}}, {"id": 142, "type": "identifier", "text": "nitWithData:", "parent": 120, "children": [], "start_point": {"row": 43, "column": 16}, "end_point": {"row": 43, "column": 28}}, {"id": 143, "type": "ERROR", "text": "(N", "parent": 120, "children": [], "start_point": {"row": 43, "column": 28}, "end_point": {"row": 43, "column": 30}}, {"id": 144, "type": "identifier", "text": "SData ", "parent": 120, "children": [], "start_point": {"row": 43, "column": 30}, "end_point": {"row": 43, "column": 36}}, {"id": 145, "type": "ERROR", "text": ")d", "parent": 120, "children": [], "start_point": {"row": 43, "column": 37}, "end_point": {"row": 43, "column": 39}}, {"id": 146, "type": "identifier", "text": "ata;", "parent": 120, "children": [], "start_point": {"row": 43, "column": 39}, "end_point": {"row": 43, "column": 43}}, {"id": 147, "type": "ERROR", "text": "\n\n- ", "parent": 119, "children": [148], "start_point": {"row": 43, "column": 43}, "end_point": {"row": 45, "column": 1}}, {"id": 148, "type": "-", "text": " ", "parent": 147, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 1}}, {"id": 149, "type": "parameter_list", "text": "void)s", "parent": 119, "children": [150], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 8}}, {"id": 150, "type": "parameter_declaration", "text": "oid)", "parent": 149, "children": [151], "start_point": {"row": 45, "column": 3}, "end_point": {"row": 45, "column": 7}}, {"id": 151, "type": "primitive_type", "text": "oid)", "parent": 150, "children": [], "start_point": {"row": 45, "column": 3}, "end_point": {"row": 45, "column": 7}}, {"id": 152, "type": "identifier", "text": "etMethod:", "parent": 119, "children": [], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 17}}, {"id": 153, "type": "ERROR", "text": "(N", "parent": 119, "children": [], "start_point": {"row": 45, "column": 17}, "end_point": {"row": 45, "column": 19}}, {"id": 154, "type": "identifier", "text": "SString ", "parent": 119, "children": [], "start_point": {"row": 45, "column": 19}, "end_point": {"row": 45, "column": 27}}, {"id": 155, "type": "ERROR", "text": ")m", "parent": 119, "children": [], "start_point": {"row": 45, "column": 28}, "end_point": {"row": 45, "column": 30}}, {"id": 156, "type": "identifier", "text": "ethod;", "parent": 119, "children": [], "start_point": {"row": 45, "column": 30}, "end_point": {"row": 45, "column": 36}}, {"id": 157, "type": "ERROR", "text": "\n\n- ", "parent": 118, "children": [158], "start_point": {"row": 45, "column": 36}, "end_point": {"row": 47, "column": 1}}, {"id": 158, "type": "-", "text": " ", "parent": 157, "children": [], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 1}}, {"id": 159, "type": "parameter_list", "text": "void)s", "parent": 118, "children": [160], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 8}}, {"id": 160, "type": "parameter_declaration", "text": "oid)", "parent": 159, "children": [161], "start_point": {"row": 47, "column": 3}, "end_point": {"row": 47, "column": 7}}, {"id": 161, "type": "primitive_type", "text": "oid)", "parent": 160, "children": [], "start_point": {"row": 47, "column": 3}, "end_point": {"row": 47, "column": 7}}, {"id": 162, "type": "identifier", "text": "etPath:", "parent": 118, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 15}}, {"id": 163, "type": "ERROR", "text": "(N", "parent": 118, "children": [], "start_point": {"row": 47, "column": 15}, "end_point": {"row": 47, "column": 17}}, {"id": 164, "type": "identifier", "text": "SString ", "parent": 118, "children": [], "start_point": {"row": 47, "column": 17}, "end_point": {"row": 47, "column": 25}}, {"id": 165, "type": "ERROR", "text": ")p", "parent": 118, "children": [], "start_point": {"row": 47, "column": 26}, "end_point": {"row": 47, "column": 28}}, {"id": 166, "type": "identifier", "text": "ath;", "parent": 118, "children": [], "start_point": {"row": 47, "column": 28}, "end_point": {"row": 47, "column": 32}}, {"id": 167, "type": "ERROR", "text": "\n\n- ", "parent": 117, "children": [168], "start_point": {"row": 47, "column": 32}, "end_point": {"row": 49, "column": 1}}, {"id": 168, "type": "-", "text": " ", "parent": 167, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 1}}, {"id": 169, "type": "parameter_list", "text": "void)s", "parent": 117, "children": [170], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 8}}, {"id": 170, "type": "parameter_declaration", "text": "oid)", "parent": 169, "children": [171], "start_point": {"row": 49, "column": 3}, "end_point": {"row": 49, "column": 7}}, {"id": 171, "type": "primitive_type", "text": "oid)", "parent": 170, "children": [], "start_point": {"row": 49, "column": 3}, "end_point": {"row": 49, "column": 7}}, {"id": 172, "type": "identifier", "text": "etProtocol:", "parent": 117, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 19}}, {"id": 173, "type": "ERROR", "text": "(N", "parent": 117, "children": [], "start_point": {"row": 49, "column": 19}, "end_point": {"row": 49, "column": 21}}, {"id": 174, "type": "identifier", "text": "SString ", "parent": 117, "children": [], "start_point": {"row": 49, "column": 21}, "end_point": {"row": 49, "column": 29}}, {"id": 175, "type": "ERROR", "text": ")p", "parent": 117, "children": [], "start_point": {"row": 49, "column": 30}, "end_point": {"row": 49, "column": 32}}, {"id": 176, "type": "identifier", "text": "rotocol;", "parent": 117, "children": [], "start_point": {"row": 49, "column": 32}, "end_point": {"row": 49, "column": 40}}, {"id": 177, "type": "ERROR", "text": "\n\n- ", "parent": 116, "children": [178], "start_point": {"row": 49, "column": 40}, "end_point": {"row": 51, "column": 1}}, {"id": 178, "type": "-", "text": " ", "parent": 177, "children": [], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 1}}, {"id": 179, "type": "parameter_list", "text": "void)s", "parent": 116, "children": [180], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 8}}, {"id": 180, "type": "parameter_declaration", "text": "oid)", "parent": 179, "children": [181], "start_point": {"row": 51, "column": 3}, "end_point": {"row": 51, "column": 7}}, {"id": 181, "type": "primitive_type", "text": "oid)", "parent": 180, "children": [], "start_point": {"row": 51, "column": 3}, "end_point": {"row": 51, "column": 7}}, {"id": 182, "type": "identifier", "text": "etVersion:", "parent": 116, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 18}}, {"id": 183, "type": "ERROR", "text": "(N", "parent": 116, "children": [], "start_point": {"row": 51, "column": 18}, "end_point": {"row": 51, "column": 20}}, {"id": 184, "type": "identifier", "text": "SString ", "parent": 116, "children": [], "start_point": {"row": 51, "column": 20}, "end_point": {"row": 51, "column": 28}}, {"id": 185, "type": "ERROR", "text": ")v", "parent": 116, "children": [], "start_point": {"row": 51, "column": 29}, "end_point": {"row": 51, "column": 31}}, {"id": 186, "type": "identifier", "text": "ersion;", "parent": 116, "children": [], "start_point": {"row": 51, "column": 31}, "end_point": {"row": 51, "column": 38}}, {"id": 187, "type": "ERROR", "text": "\n\n- ", "parent": 115, "children": [188], "start_point": {"row": 51, "column": 38}, "end_point": {"row": 53, "column": 1}}, {"id": 188, "type": "-", "text": " ", "parent": 187, "children": [], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 1}}, {"id": 189, "type": "parameter_list", "text": "void)s", "parent": 115, "children": [190], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 53, "column": 8}}, {"id": 190, "type": "parameter_declaration", "text": "oid)", "parent": 189, "children": [191], "start_point": {"row": 53, "column": 3}, "end_point": {"row": 53, "column": 7}}, {"id": 191, "type": "primitive_type", "text": "oid)", "parent": 190, "children": [], "start_point": {"row": 53, "column": 3}, "end_point": {"row": 53, "column": 7}}, {"id": 192, "type": "identifier", "text": "etHost:", "parent": 115, "children": [], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 15}}, {"id": 193, "type": "ERROR", "text": "(N", "parent": 115, "children": [], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 17}}, {"id": 194, "type": "identifier", "text": "SString ", "parent": 115, "children": [], "start_point": {"row": 53, "column": 17}, "end_point": {"row": 53, "column": 25}}, {"id": 195, "type": "ERROR", "text": ")h", "parent": 115, "children": [], "start_point": {"row": 53, "column": 26}, "end_point": {"row": 53, "column": 28}}, {"id": 196, "type": "identifier", "text": "ost;", "parent": 115, "children": [], "start_point": {"row": 53, "column": 28}, "end_point": {"row": 53, "column": 32}}, {"id": 197, "type": "ERROR", "text": "\n\n- ", "parent": 114, "children": [198], "start_point": {"row": 53, "column": 32}, "end_point": {"row": 55, "column": 1}}, {"id": 198, "type": "-", "text": " ", "parent": 197, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 1}}, {"id": 199, "type": "parameter_list", "text": "void)s", "parent": 114, "children": [200], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 8}}, {"id": 200, "type": "parameter_declaration", "text": "oid)", "parent": 199, "children": [201], "start_point": {"row": 55, "column": 3}, "end_point": {"row": 55, "column": 7}}, {"id": 201, "type": "primitive_type", "text": "oid)", "parent": 200, "children": [], "start_point": {"row": 55, "column": 3}, "end_point": {"row": 55, "column": 7}}, {"id": 202, "type": "identifier", "text": "etHeadDic:", "parent": 114, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 18}}, {"id": 203, "type": "ERROR", "text": "(N", "parent": 114, "children": [], "start_point": {"row": 55, "column": 18}, "end_point": {"row": 55, "column": 20}}, {"id": 204, "type": "identifier", "text": "SDictionary ", "parent": 114, "children": [], "start_point": {"row": 55, "column": 20}, "end_point": {"row": 55, "column": 32}}, {"id": 205, "type": "ERROR", "text": ")h", "parent": 114, "children": [], "start_point": {"row": 55, "column": 33}, "end_point": {"row": 55, "column": 35}}, {"id": 206, "type": "identifier", "text": "eadDic;", "parent": 114, "children": [], "start_point": {"row": 55, "column": 35}, "end_point": {"row": 55, "column": 42}}, {"id": 207, "type": "ERROR", "text": "\n\n- ", "parent": 113, "children": [208], "start_point": {"row": 55, "column": 42}, "end_point": {"row": 57, "column": 1}}, {"id": 208, "type": "-", "text": " ", "parent": 207, "children": [], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 1}}, {"id": 209, "type": "parameter_list", "text": "BOOL)h", "parent": 113, "children": [210], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 8}}, {"id": 210, "type": "parameter_declaration", "text": "OOL)", "parent": 209, "children": [211], "start_point": {"row": 57, "column": 3}, "end_point": {"row": 57, "column": 7}}, {"id": 211, "type": "type_identifier", "text": "OOL)", "parent": 210, "children": [], "start_point": {"row": 57, "column": 3}, "end_point": {"row": 57, "column": 7}}, {"id": 212, "type": "identifier", "text": "asRangeHead;", "parent": 113, "children": [], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 20}}, {"id": 213, "type": "ERROR", "text": "\n\n- ", "parent": 112, "children": [214], "start_point": {"row": 57, "column": 20}, "end_point": {"row": 59, "column": 1}}, {"id": 214, "type": "-", "text": " ", "parent": 213, "children": [], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 1}}, {"id": 215, "type": "parameter_list", "text": "NSRange)r", "parent": 112, "children": [216], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 11}}, {"id": 216, "type": "parameter_declaration", "text": "SRange)", "parent": 215, "children": [217], "start_point": {"row": 59, "column": 3}, "end_point": {"row": 59, "column": 10}}, {"id": 217, "type": "type_identifier", "text": "SRange)", "parent": 216, "children": [], "start_point": {"row": 59, "column": 3}, "end_point": {"row": 59, "column": 10}}, {"id": 218, "type": "identifier", "text": "ange;", "parent": 112, "children": [], "start_point": {"row": 59, "column": 11}, "end_point": {"row": 59, "column": 16}}, {"id": 219, "type": "ERROR", "text": "e", "parent": 4, "children": [], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 1}}, {"id": 220, "type": "identifier", "text": "nd\n", "parent": 4, "children": [], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 4}}]}, "node_categories": {"declarations": {"functions": [11, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122], "variables": [16, 23, 35, 47, 63, 79, 86, 92, 100, 125, 130, 140, 150, 160, 170, 180, 190, 200, 210, 216], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [6, 8, 9, 12, 14, 15, 17, 20, 24, 25, 27, 29, 31, 32, 36, 37, 39, 41, 43, 44, 48, 50, 51, 52, 53, 54, 56, 57, 58, 59, 60, 64, 66, 67, 68, 69, 70, 72, 73, 74, 75, 76, 80, 83, 87, 89, 95, 96, 97, 103, 104, 105, 108, 111, 123, 126, 131, 132, 134, 136, 141, 142, 144, 146, 152, 154, 156, 162, 164, 166, 172, 174, 176, 182, 184, 186, 192, 194, 196, 202, 204, 206, 211, 212, 217, 218, 220], "returns": [], "exceptions": []}, "expressions": {"calls": [0, 2], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 11, "universal_type": "function", "name": "unknown", "text_snippet": "roperty(nonatomic, readonly) "}, {"node_id": 112, "universal_type": "function", "name": "unknown", "text_snippet": "GHTTPRequestHead (ZGHTTPPrivateAPI)\n\n+ (instancetype)initWithData:(NSData *)data;\n\n- (instancetype)i"}, {"node_id": 113, "universal_type": "function", "name": "unknown", "text_snippet": "GHTTPRequestHead (ZGHTTPPrivateAPI)\n\n+ (instancetype)initWithData:(NSData *)data;\n\n- (instancetype)i"}, {"node_id": 114, "universal_type": "function", "name": "unknown", "text_snippet": "GHTTPRequestHead (ZGHTTPPrivateAPI)\n\n+ (instancetype)initWithData:(NSData *)data;\n\n- (instancetype)i"}, {"node_id": 115, "universal_type": "function", "name": "unknown", "text_snippet": "GHTTPRequestHead (ZGHTTPPrivateAPI)\n\n+ (instancetype)initWithData:(NSData *)data;\n\n- (instancetype)i"}, {"node_id": 116, "universal_type": "function", "name": "unknown", "text_snippet": "GHTTPRequestHead (ZGHTTPPrivateAPI)\n\n+ (instancetype)initWithData:(NSData *)data;\n\n- (instancetype)i"}, {"node_id": 117, "universal_type": "function", "name": "unknown", "text_snippet": "GHTTPRequestHead (ZGHTTPPrivateAPI)\n\n+ (instancetype)initWithData:(NSData *)data;\n\n- (instancetype)i"}, {"node_id": 118, "universal_type": "function", "name": "unknown", "text_snippet": "GHTTPRequestHead (ZGHTTPPrivateAPI)\n\n+ (instancetype)initWithData:(NSData *)data;\n\n- (instancetype)i"}, {"node_id": 119, "universal_type": "function", "name": "unknown", "text_snippet": "GHTTPRequestHead (ZGHTTPPrivateAPI)\n\n+ (instancetype)initWithData:(NSData *)data;\n\n- (instancetype)i"}, {"node_id": 120, "universal_type": "function", "name": "unknown", "text_snippet": "GHTTPRequestHead (ZGHTTPPrivateAPI)\n\n+ (instancetype)initWithData:(NSData *)data;\n\n- (instancetype)i"}, {"node_id": 121, "universal_type": "function", "name": "unknown", "text_snippet": "GHTTPRequestHead (ZGHTTPPrivateAPI)\n\n+ (instancetype)initWithData:(NSData *)data;"}, {"node_id": 122, "universal_type": "function", "name": "unknown", "text_snippet": "GHTTPRequestHead (ZGHTTPPrivateAPI)\n"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// MMHTTPRequestHandler.h\n// Demo\n//\n// Created by Tank on 08/06/2017.\n// Copyright \u00a9 2017 Tank. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import \"MMHTTPConfig.h\"\n\n\n@interface MMHTTPRequestHandler : NSObject\n\n@property(nonatomic, readonly) ZGHTTPRequestHead *requestHead;\n@property(nonatomic, readonly) u_int64_t bodyDataLength;\n@property(nonatomic, readonly) u_int64_t bodyDataOffset;\n\n\n+ (instancetype)initWithHeadData:(NSData *)data\n delegate:(id <ZGHTTPRequestDelegate>)delegate\n rootDir:(NSString *)dir;\n\n- (instancetype)initWithHeadData:(NSData *)data\n delegate:(id <ZGHTTPRequestDelegate>)delegate\n rootDir:(NSString *)dir;\n\n//- (NSError *)refuseError;\n- (NSError *)invalidError;\n\n- (BOOL)isRequestFinish;\n\n- (void)writeBodyData:(NSData *)data;\n\n- (void)writeBodyDataError:(NSError *)error;\n\n@end\n\n\n@interface ZGHTTPRequestHead (ZGHTTPPrivateAPI)\n\n+ (instancetype)initWithData:(NSData *)data;\n\n- (instancetype)initWithData:(NSData *)data;\n\n- (void)setMethod:(NSString *)method;\n\n- (void)setPath:(NSString *)path;\n\n- (void)setProtocol:(NSString *)protocol;\n\n- (void)setVersion:(NSString *)version;\n\n- (void)setHost:(NSString *)host;\n\n- (void)setHeadDic:(NSDictionary *)headDic;\n\n- (BOOL)hasRangeHead;\n\n- (NSRange)range;\n\n@end\n"}
80,285
c
#include <stdio.h> #include <cs50.h> int main(void) { printf("minutes:\n"); int min = GetInt(); int bottles = min * 12; printf("bottles: %i\n", bottles); }
18.11
9
(translation_unit) "#include <stdio.h>\n#include <cs50.h>\n\nint main(void)\n{\n printf("minutes:\n");\n int min = GetInt();\n int bottles = min * 12;\n printf("bottles: %i\n", bottles);\n}" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include <cs50.h>\n" (#include) "#include" (system_lib_string) "<cs50.h>" (function_definition) "int main(void)\n{\n printf("minutes:\n");\n int min = GetInt();\n int bottles = min * 12;\n printf("bottles: %i\n", bottles);\n}" (primitive_type) "int" (function_declarator) "main(void)" (identifier) "main" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n printf("minutes:\n");\n int min = GetInt();\n int bottles = min * 12;\n printf("bottles: %i\n", bottles);\n}" ({) "{" (expression_statement) "printf("minutes:\n");" (call_expression) "printf("minutes:\n")" (identifier) "printf" (argument_list) "("minutes:\n")" (() "(" (string_literal) ""minutes:\n"" (") """ (string_content) "minutes:" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (declaration) "int min = GetInt();" (primitive_type) "int" (init_declarator) "min = GetInt()" (identifier) "min" (=) "=" (call_expression) "GetInt()" (identifier) "GetInt" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "int bottles = min * 12;" (primitive_type) "int" (init_declarator) "bottles = min * 12" (identifier) "bottles" (=) "=" (binary_expression) "min * 12" (identifier) "min" (*) "*" (number_literal) "12" (;) ";" (expression_statement) "printf("bottles: %i\n", bottles);" (call_expression) "printf("bottles: %i\n", bottles)" (identifier) "printf" (argument_list) "("bottles: %i\n", bottles)" (() "(" (string_literal) ""bottles: %i\n"" (") """ (string_content) "bottles: %i" (escape_sequence) "\n" (") """ (,) "," (identifier) "bottles" ()) ")" (;) ";" (}) "}"
66
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 18.11, "nodes": 41, "errors": 0, "source_hash": "f7936a94874998bdc93df200cf67facc1ddfbb75dfd8429f209ab86d2c394f43", "categorized_nodes": 26}, "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 <cs50.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": "<cs50.h>", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 17}}, {"id": 6, "type": "function_definition", "text": "int main(void)\n{\n printf(\"minutes:\\n\");\n int min = GetInt();\n int bottles = min * 12;\n printf(\"bottles: %i\\n\", bottles);\n}", "parent": null, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 9, "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(void)", "parent": 6, "children": [9, 10], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 14}}, {"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": "(void)", "parent": 8, "children": [11], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 14}}, {"id": 11, "type": "parameter_declaration", "text": "void", "parent": 10, "children": [12], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 13}}, {"id": 12, "type": "primitive_type", "text": "void", "parent": 11, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 13}}, {"id": 13, "type": "call_expression", "text": "printf(\"minutes:\\n\")", "parent": 6, "children": [14, 15], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 24}}, {"id": 14, "type": "identifier", "text": "printf", "parent": 13, "children": [], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 10}}, {"id": 15, "type": "argument_list", "text": "(\"minutes:\\n\")", "parent": 13, "children": [16], "start_point": {"row": 5, "column": 10}, "end_point": {"row": 5, "column": 24}}, {"id": 16, "type": "string_literal", "text": "\"minutes:\\n\"", "parent": 15, "children": [17], "start_point": {"row": 5, "column": 11}, "end_point": {"row": 5, "column": 23}}, {"id": 17, "type": "escape_sequence", "text": "\\n", "parent": 16, "children": [], "start_point": {"row": 5, "column": 20}, "end_point": {"row": 5, "column": 22}}, {"id": 18, "type": "declaration", "text": "int min = GetInt();", "parent": 6, "children": [19, 20], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 23}}, {"id": 19, "type": "primitive_type", "text": "int", "parent": 18, "children": [], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 7}}, {"id": 20, "type": "init_declarator", "text": "min = GetInt()", "parent": 18, "children": [21, 22, 23], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 22}}, {"id": 21, "type": "identifier", "text": "min", "parent": 20, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 11}}, {"id": 22, "type": "=", "text": "=", "parent": 20, "children": [], "start_point": {"row": 6, "column": 12}, "end_point": {"row": 6, "column": 13}}, {"id": 23, "type": "call_expression", "text": "GetInt()", "parent": 20, "children": [24, 25], "start_point": {"row": 6, "column": 14}, "end_point": {"row": 6, "column": 22}}, {"id": 24, "type": "identifier", "text": "GetInt", "parent": 23, "children": [], "start_point": {"row": 6, "column": 14}, "end_point": {"row": 6, "column": 20}}, {"id": 25, "type": "argument_list", "text": "()", "parent": 23, "children": [], "start_point": {"row": 6, "column": 20}, "end_point": {"row": 6, "column": 22}}, {"id": 26, "type": "declaration", "text": "int bottles = min * 12;", "parent": 6, "children": [27, 28], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 27}}, {"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": "bottles = min * 12", "parent": 26, "children": [29, 30, 31], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 26}}, {"id": 29, "type": "identifier", "text": "bottles", "parent": 28, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 15}}, {"id": 30, "type": "=", "text": "=", "parent": 28, "children": [], "start_point": {"row": 7, "column": 16}, "end_point": {"row": 7, "column": 17}}, {"id": 31, "type": "binary_expression", "text": "min * 12", "parent": 28, "children": [32, 33, 34], "start_point": {"row": 7, "column": 18}, "end_point": {"row": 7, "column": 26}}, {"id": 32, "type": "identifier", "text": "min", "parent": 31, "children": [], "start_point": {"row": 7, "column": 18}, "end_point": {"row": 7, "column": 21}}, {"id": 33, "type": "*", "text": "*", "parent": 31, "children": [], "start_point": {"row": 7, "column": 22}, "end_point": {"row": 7, "column": 23}}, {"id": 34, "type": "number_literal", "text": "12", "parent": 31, "children": [], "start_point": {"row": 7, "column": 24}, "end_point": {"row": 7, "column": 26}}, {"id": 35, "type": "call_expression", "text": "printf(\"bottles: %i\\n\", bottles)", "parent": 6, "children": [36, 37], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 36}}, {"id": 36, "type": "identifier", "text": "printf", "parent": 35, "children": [], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 10}}, {"id": 37, "type": "argument_list", "text": "(\"bottles: %i\\n\", bottles)", "parent": 35, "children": [38, 40], "start_point": {"row": 8, "column": 10}, "end_point": {"row": 8, "column": 36}}, {"id": 38, "type": "string_literal", "text": "\"bottles: %i\\n\"", "parent": 37, "children": [39], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 26}}, {"id": 39, "type": "escape_sequence", "text": "\\n", "parent": 38, "children": [], "start_point": {"row": 8, "column": 23}, "end_point": {"row": 8, "column": 25}}, {"id": 40, "type": "identifier", "text": "bottles", "parent": 37, "children": [], "start_point": {"row": 8, "column": 28}, "end_point": {"row": 8, "column": 35}}]}, "node_categories": {"declarations": {"functions": [6, 8], "variables": [11, 18, 26], "classes": [], "imports": [0, 1, 3, 4], "modules": [], "enums": []}, "statements": {"expressions": [13, 23, 31, 35], "assignments": [], "loops": [], "conditionals": [9, 14, 21, 24, 29, 32, 36, 40], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 16, 34, 38], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 6, "universal_type": "function", "name": "main", "text_snippet": "int main(void)\n{\n printf(\"minutes:\\n\");\n int min = GetInt();\n int bottles = min * 12;\n p"}, {"node_id": 8, "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"}, {"node_id": 3, "text": "#include <cs50.h>\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "#include <stdio.h>\n#include <cs50.h>\n\nint main(void)\n{\n printf(\"minutes:\\n\");\n int min = GetInt();\n int bottles = min * 12;\n printf(\"bottles: %i\\n\", bottles);\n}"}
80,286
c
// // RecommendHeaderView.h // Live // // Created by Cheng on 2017/5/9. // Copyright © 2017年 Joe. All rights reserved. // #import <UIKit/UIKit.h> @interface RecommendHeaderView : UICollectionReusableView @property (weak, nonatomic) IBOutlet UIImageView *iconImageView; @property (weak, nonatomic) IBOutlet UILabel *title; @end
26.58
12
(translation_unit) "//\n// RecommendHeaderView.h\n// Live\n//\n// Created by Cheng on 2017/5/9.\n// Copyright © 2017年 Joe. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface RecommendHeaderView : UICollectionReusableView\n@property (weak, nonatomic) IBOutlet UIImageView *iconImageView;\n@property (weak, nonatomic) IBOutlet UILabel *title;\n\n@end\n" (comment) "//" (comment) "// RecommendHeaderView.h" (comment) "// Live" (comment) "//" (comment) "// Created by Cheng on 2017/5/9." (comment) "// Copyright © 2017年 Joe. All rights reserved.\n//" (comment) "\n#" (preproc_call) "port <UIKit/UIKit.h>\n\n@i" (preproc_directive) "port <U" (preproc_arg) "Kit/UIKit.h>\n\n@" (ERROR) "terface RecommendHeaderView : UICollectionReusableView\n@property (weak, nonatomic) IBOutlet UIImageView *iconImageView;\n@property (weak, nonatomic) IBOutlet UILabel *title;\n\n@end\n" (ERROR) "t" (type_identifier) "erface Re" (ERROR) "ommendHeaderView : UICollectionReusableView\n@pro" (identifier) "ommendHeaderView : " (:) "I" (identifier) "ollectionReusableView\n@p" (ERROR) "o" (function_declarator) "perty (weak, nonatomic) IB" (identifier) "perty (w" (parameter_list) "ak, nonatomic) IB" (() "a" (identifier) "k, n" (,) "o" (identifier) "atomic) I" ()) "B" (declaration) "utlet UIImageView *iconImageView;\n@p" (type_identifier) "utlet UI" (ERROR) "mageView *i" (identifier) "mageView *i" (pointer_declarator) "onImageView;\n@" (*) "o" (identifier) "nImageView;\n@" (;) "p" (ERROR) "o" (ERROR) "o" (declaration) "perty (weak, nonatomic) IBOutlet UI" (macro_type_specifier) "perty (weak, nonatomic) IB" (identifier) "perty (w" (() "a" (ERROR) "k, no" (type_descriptor) "k, n" (type_identifier) "k, n" (,) "o" (type_descriptor) "atomic) I" (type_identifier) "atomic) I" ()) "B" (identifier) "utlet UI" (;) "" (declaration) "abel *title;\n\n@" (type_identifier) "abel *t" (pointer_declarator) "tle;\n\n" (*) "t" (identifier) "le;\n\n" (;) "@" (ERROR) "d" (ERROR) "d" (identifier) "\n"
59
10
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 26.58, "nodes": 41, "errors": 0, "source_hash": "d7206f7414d95a328ed5ccb456a4d0411947b39676ccd2c0147ddcd69ed3a83c", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKit/UIKit.h>\n\n@i", "parent": null, "children": [1, 2], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "port <U", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "Kit/UIKit.h>\n\n@", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 23}}, {"id": 3, "type": "ERROR", "text": "terface RecommendHeaderView : UICollectionReusableView\n@property (weak, nonatomic) IBOutlet UIImageView *iconImageView;\n@property (weak, nonatomic) IBOutlet UILabel *title;\n\n@end\n", "parent": null, "children": [4, 5, 6, 10, 15, 22, 24, 33, 38, 40], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 14, "column": 4}}, {"id": 4, "type": "ERROR", "text": "t", "parent": 3, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 5, "type": "type_identifier", "text": "erface Re", "parent": 3, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 10}}, {"id": 6, "type": "ERROR", "text": "ommendHeaderView : UICollectionReusableView\n@pro", "parent": 3, "children": [7, 8, 9], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 11, "column": 1}}, {"id": 7, "type": "identifier", "text": "ommendHeaderView : ", "parent": 6, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 30}}, {"id": 8, "type": "identifier", "text": "ollectionReusableView\n@p", "parent": 6, "children": [], "start_point": {"row": 10, "column": 33}, "end_point": {"row": 10, "column": 57}}, {"id": 9, "type": "ERROR", "text": "o", "parent": 6, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 1}}, {"id": 10, "type": "function_declarator", "text": "perty (weak, nonatomic) IB", "parent": 3, "children": [11, 12], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 27}}, {"id": 11, "type": "identifier", "text": "perty (w", "parent": 10, "children": [], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 9}}, {"id": 12, "type": "parameter_list", "text": "ak, nonatomic) IB", "parent": 10, "children": [13, 14], "start_point": {"row": 11, "column": 10}, "end_point": {"row": 11, "column": 27}}, {"id": 13, "type": "identifier", "text": "k, n", "parent": 12, "children": [], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 15}}, {"id": 14, "type": "identifier", "text": "atomic) I", "parent": 12, "children": [], "start_point": {"row": 11, "column": 17}, "end_point": {"row": 11, "column": 26}}, {"id": 15, "type": "declaration", "text": "utlet UIImageView *iconImageView;\n@p", "parent": 3, "children": [16, 17, 19], "start_point": {"row": 11, "column": 28}, "end_point": {"row": 11, "column": 64}}, {"id": 16, "type": "type_identifier", "text": "utlet UI", "parent": 15, "children": [], "start_point": {"row": 11, "column": 28}, "end_point": {"row": 11, "column": 36}}, {"id": 17, "type": "ERROR", "text": "mageView *i", "parent": 15, "children": [18], "start_point": {"row": 11, "column": 37}, "end_point": {"row": 11, "column": 48}}, {"id": 18, "type": "identifier", "text": "mageView *i", "parent": 17, "children": [], "start_point": {"row": 11, "column": 37}, "end_point": {"row": 11, "column": 48}}, {"id": 19, "type": "pointer_declarator", "text": "onImageView;\n@", "parent": 15, "children": [20, 21], "start_point": {"row": 11, "column": 49}, "end_point": {"row": 11, "column": 63}}, {"id": 20, "type": "*", "text": "o", "parent": 19, "children": [], "start_point": {"row": 11, "column": 49}, "end_point": {"row": 11, "column": 50}}, {"id": 21, "type": "identifier", "text": "nImageView;\n@", "parent": 19, "children": [], "start_point": {"row": 11, "column": 50}, "end_point": {"row": 11, "column": 63}}, {"id": 22, "type": "ERROR", "text": "o", "parent": 3, "children": [23], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 23, "type": "ERROR", "text": "o", "parent": 22, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 24, "type": "declaration", "text": "perty (weak, nonatomic) IBOutlet UI", "parent": 3, "children": [25, 32], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 36}}, {"id": 25, "type": "macro_type_specifier", "text": "perty (weak, nonatomic) IB", "parent": 24, "children": [26, 27, 30], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 27}}, {"id": 26, "type": "identifier", "text": "perty (w", "parent": 25, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 9}}, {"id": 27, "type": "ERROR", "text": "k, no", "parent": 25, "children": [28], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 16}}, {"id": 28, "type": "type_descriptor", "text": "k, n", "parent": 27, "children": [29], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 15}}, {"id": 29, "type": "type_identifier", "text": "k, n", "parent": 28, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 15}}, {"id": 30, "type": "type_descriptor", "text": "atomic) I", "parent": 25, "children": [31], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 12, "column": 26}}, {"id": 31, "type": "type_identifier", "text": "atomic) I", "parent": 30, "children": [], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 12, "column": 26}}, {"id": 32, "type": "identifier", "text": "utlet UI", "parent": 24, "children": [], "start_point": {"row": 12, "column": 28}, "end_point": {"row": 12, "column": 36}}, {"id": 33, "type": "declaration", "text": "abel *title;\n\n@", "parent": 3, "children": [34, 35], "start_point": {"row": 12, "column": 37}, "end_point": {"row": 12, "column": 52}}, {"id": 34, "type": "type_identifier", "text": "abel *t", "parent": 33, "children": [], "start_point": {"row": 12, "column": 37}, "end_point": {"row": 12, "column": 44}}, {"id": 35, "type": "pointer_declarator", "text": "tle;\n\n", "parent": 33, "children": [36, 37], "start_point": {"row": 12, "column": 45}, "end_point": {"row": 12, "column": 51}}, {"id": 36, "type": "*", "text": "t", "parent": 35, "children": [], "start_point": {"row": 12, "column": 45}, "end_point": {"row": 12, "column": 46}}, {"id": 37, "type": "identifier", "text": "le;\n\n", "parent": 35, "children": [], "start_point": {"row": 12, "column": 46}, "end_point": {"row": 12, "column": 51}}, {"id": 38, "type": "ERROR", "text": "d", "parent": 3, "children": [39], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 39, "type": "ERROR", "text": "d", "parent": 38, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 40, "type": "identifier", "text": "\n", "parent": 3, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 4}}]}, "node_categories": {"declarations": {"functions": [10], "variables": [15, 24, 33], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [5, 7, 8, 11, 13, 14, 16, 18, 21, 25, 26, 29, 31, 32, 34, 37, 40], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 10, "universal_type": "function", "name": "unknown", "text_snippet": "perty (weak, nonatomic) IB"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// RecommendHeaderView.h\n// Live\n//\n// Created by Cheng on 2017/5/9.\n// Copyright \u00a9 2017\u5e74 Joe. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface RecommendHeaderView : UICollectionReusableView\n@property (weak, nonatomic) IBOutlet UIImageView *iconImageView;\n@property (weak, nonatomic) IBOutlet UILabel *title;\n\n@end\n"}
80,287
c
// Generated by generate_test_data.py using TFL version 2.6.0 as reference. #pragma once #define CONV_2_OUT_CH 4 #define CONV_2_IN_CH 2 #define CONV_2_INPUT_W 6 #define CONV_2_INPUT_H 3 #define CONV_2_DST_SIZE 72 #define CONV_2_INPUT_SIZE 36 #define CONV_2_OUT_ACTIVATION_MIN -101 #define CONV_2_OUT_ACTIVATION_MAX 127 #define CONV_2_INPUT_BATCHES 1 #define CONV_2_FILTER_X 3 #define CONV_2_FILTER_Y 3 #define CONV_2_STRIDE_X 1 #define CONV_2_STRIDE_Y 1 #define CONV_2_PAD_X 1 #define CONV_2_PAD_Y 1 #define CONV_2_OUTPUT_W 6 #define CONV_2_OUTPUT_H 3 #define CONV_2_INPUT_OFFSET 128 #define CONV_2_OUTPUT_OFFSET -9 #define CONV_2_DILATION_X 1 #define CONV_2_DILATION_Y 1
28.22
23
(translation_unit) "// Generated by generate_test_data.py using TFL version 2.6.0 as reference.\n#pragma once\n#define CONV_2_OUT_CH 4\n#define CONV_2_IN_CH 2\n#define CONV_2_INPUT_W 6\n#define CONV_2_INPUT_H 3\n#define CONV_2_DST_SIZE 72\n#define CONV_2_INPUT_SIZE 36\n#define CONV_2_OUT_ACTIVATION_MIN -101\n#define CONV_2_OUT_ACTIVATION_MAX 127\n#define CONV_2_INPUT_BATCHES 1\n#define CONV_2_FILTER_X 3\n#define CONV_2_FILTER_Y 3\n#define CONV_2_STRIDE_X 1\n#define CONV_2_STRIDE_Y 1\n#define CONV_2_PAD_X 1\n#define CONV_2_PAD_Y 1\n#define CONV_2_OUTPUT_W 6\n#define CONV_2_OUTPUT_H 3\n#define CONV_2_INPUT_OFFSET 128\n#define CONV_2_OUTPUT_OFFSET -9\n#define CONV_2_DILATION_X 1\n#define CONV_2_DILATION_Y 1\n" (comment) "// Generated by generate_test_data.py using TFL version 2.6.0 as reference." (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_def) "#define CONV_2_OUT_CH 4\n" (#define) "#define" (identifier) "CONV_2_OUT_CH" (preproc_arg) "4" (preproc_def) "#define CONV_2_IN_CH 2\n" (#define) "#define" (identifier) "CONV_2_IN_CH" (preproc_arg) "2" (preproc_def) "#define CONV_2_INPUT_W 6\n" (#define) "#define" (identifier) "CONV_2_INPUT_W" (preproc_arg) "6" (preproc_def) "#define CONV_2_INPUT_H 3\n" (#define) "#define" (identifier) "CONV_2_INPUT_H" (preproc_arg) "3" (preproc_def) "#define CONV_2_DST_SIZE 72\n" (#define) "#define" (identifier) "CONV_2_DST_SIZE" (preproc_arg) "72" (preproc_def) "#define CONV_2_INPUT_SIZE 36\n" (#define) "#define" (identifier) "CONV_2_INPUT_SIZE" (preproc_arg) "36" (preproc_def) "#define CONV_2_OUT_ACTIVATION_MIN -101\n" (#define) "#define" (identifier) "CONV_2_OUT_ACTIVATION_MIN" (preproc_arg) "-101" (preproc_def) "#define CONV_2_OUT_ACTIVATION_MAX 127\n" (#define) "#define" (identifier) "CONV_2_OUT_ACTIVATION_MAX" (preproc_arg) "127" (preproc_def) "#define CONV_2_INPUT_BATCHES 1\n" (#define) "#define" (identifier) "CONV_2_INPUT_BATCHES" (preproc_arg) "1" (preproc_def) "#define CONV_2_FILTER_X 3\n" (#define) "#define" (identifier) "CONV_2_FILTER_X" (preproc_arg) "3" (preproc_def) "#define CONV_2_FILTER_Y 3\n" (#define) "#define" (identifier) "CONV_2_FILTER_Y" (preproc_arg) "3" (preproc_def) "#define CONV_2_STRIDE_X 1\n" (#define) "#define" (identifier) "CONV_2_STRIDE_X" (preproc_arg) "1" (preproc_def) "#define CONV_2_STRIDE_Y 1\n" (#define) "#define" (identifier) "CONV_2_STRIDE_Y" (preproc_arg) "1" (preproc_def) "#define CONV_2_PAD_X 1\n" (#define) "#define" (identifier) "CONV_2_PAD_X" (preproc_arg) "1" (preproc_def) "#define CONV_2_PAD_Y 1\n" (#define) "#define" (identifier) "CONV_2_PAD_Y" (preproc_arg) "1" (preproc_def) "#define CONV_2_OUTPUT_W 6\n" (#define) "#define" (identifier) "CONV_2_OUTPUT_W" (preproc_arg) "6" (preproc_def) "#define CONV_2_OUTPUT_H 3\n" (#define) "#define" (identifier) "CONV_2_OUTPUT_H" (preproc_arg) "3" (preproc_def) "#define CONV_2_INPUT_OFFSET 128\n" (#define) "#define" (identifier) "CONV_2_INPUT_OFFSET" (preproc_arg) "128" (preproc_def) "#define CONV_2_OUTPUT_OFFSET -9\n" (#define) "#define" (identifier) "CONV_2_OUTPUT_OFFSET" (preproc_arg) "-9" (preproc_def) "#define CONV_2_DILATION_X 1\n" (#define) "#define" (identifier) "CONV_2_DILATION_X" (preproc_arg) "1" (preproc_def) "#define CONV_2_DILATION_Y 1\n" (#define) "#define" (identifier) "CONV_2_DILATION_Y" (preproc_arg) "1"
89
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 28.22, "nodes": 87, "errors": 0, "source_hash": "52ff89e25f1712d0ba2f29da2c5bc3be7d00162ea96b74c9d4d87f8b158391ba", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once", "parent": 0, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 12}}, {"id": 3, "type": "preproc_def", "text": "#define CONV_2_OUT_CH 4\n", "parent": null, "children": [4, 5, 6], "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": "CONV_2_OUT_CH", "parent": 3, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 21}}, {"id": 6, "type": "preproc_arg", "text": "4", "parent": 3, "children": [], "start_point": {"row": 2, "column": 22}, "end_point": {"row": 2, "column": 23}}, {"id": 7, "type": "preproc_def", "text": "#define CONV_2_IN_CH 2\n", "parent": null, "children": [8, 9, 10], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 8, "type": "#define", "text": "#define", "parent": 7, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 7}}, {"id": 9, "type": "identifier", "text": "CONV_2_IN_CH", "parent": 7, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 20}}, {"id": 10, "type": "preproc_arg", "text": "2", "parent": 7, "children": [], "start_point": {"row": 3, "column": 21}, "end_point": {"row": 3, "column": 22}}, {"id": 11, "type": "preproc_def", "text": "#define CONV_2_INPUT_W 6\n", "parent": null, "children": [12, 13, 14], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 12, "type": "#define", "text": "#define", "parent": 11, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 7}}, {"id": 13, "type": "identifier", "text": "CONV_2_INPUT_W", "parent": 11, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 22}}, {"id": 14, "type": "preproc_arg", "text": "6", "parent": 11, "children": [], "start_point": {"row": 4, "column": 23}, "end_point": {"row": 4, "column": 24}}, {"id": 15, "type": "preproc_def", "text": "#define CONV_2_INPUT_H 3\n", "parent": null, "children": [16, 17, 18], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 16, "type": "#define", "text": "#define", "parent": 15, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 17, "type": "identifier", "text": "CONV_2_INPUT_H", "parent": 15, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 22}}, {"id": 18, "type": "preproc_arg", "text": "3", "parent": 15, "children": [], "start_point": {"row": 5, "column": 23}, "end_point": {"row": 5, "column": 24}}, {"id": 19, "type": "preproc_def", "text": "#define CONV_2_DST_SIZE 72\n", "parent": null, "children": [20, 21, 22], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 20, "type": "#define", "text": "#define", "parent": 19, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 7}}, {"id": 21, "type": "identifier", "text": "CONV_2_DST_SIZE", "parent": 19, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 23}}, {"id": 22, "type": "preproc_arg", "text": "72", "parent": 19, "children": [], "start_point": {"row": 6, "column": 24}, "end_point": {"row": 6, "column": 26}}, {"id": 23, "type": "preproc_def", "text": "#define CONV_2_INPUT_SIZE 36\n", "parent": null, "children": [24, 25, 26], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 24, "type": "#define", "text": "#define", "parent": 23, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 7}}, {"id": 25, "type": "identifier", "text": "CONV_2_INPUT_SIZE", "parent": 23, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 25}}, {"id": 26, "type": "preproc_arg", "text": "36", "parent": 23, "children": [], "start_point": {"row": 7, "column": 26}, "end_point": {"row": 7, "column": 28}}, {"id": 27, "type": "preproc_def", "text": "#define CONV_2_OUT_ACTIVATION_MIN -101\n", "parent": null, "children": [28, 29, 30], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 28, "type": "#define", "text": "#define", "parent": 27, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 29, "type": "identifier", "text": "CONV_2_OUT_ACTIVATION_MIN", "parent": 27, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 33}}, {"id": 30, "type": "preproc_arg", "text": "-101", "parent": 27, "children": [], "start_point": {"row": 8, "column": 34}, "end_point": {"row": 8, "column": 38}}, {"id": 31, "type": "preproc_def", "text": "#define CONV_2_OUT_ACTIVATION_MAX 127\n", "parent": null, "children": [32, 33, 34], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 32, "type": "#define", "text": "#define", "parent": 31, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 33, "type": "identifier", "text": "CONV_2_OUT_ACTIVATION_MAX", "parent": 31, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 33}}, {"id": 34, "type": "preproc_arg", "text": "127", "parent": 31, "children": [], "start_point": {"row": 9, "column": 34}, "end_point": {"row": 9, "column": 37}}, {"id": 35, "type": "preproc_def", "text": "#define CONV_2_INPUT_BATCHES 1\n", "parent": null, "children": [36, 37, 38], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 36, "type": "#define", "text": "#define", "parent": 35, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 7}}, {"id": 37, "type": "identifier", "text": "CONV_2_INPUT_BATCHES", "parent": 35, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 28}}, {"id": 38, "type": "preproc_arg", "text": "1", "parent": 35, "children": [], "start_point": {"row": 10, "column": 29}, "end_point": {"row": 10, "column": 30}}, {"id": 39, "type": "preproc_def", "text": "#define CONV_2_FILTER_X 3\n", "parent": null, "children": [40, 41, 42], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 40, "type": "#define", "text": "#define", "parent": 39, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 7}}, {"id": 41, "type": "identifier", "text": "CONV_2_FILTER_X", "parent": 39, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 23}}, {"id": 42, "type": "preproc_arg", "text": "3", "parent": 39, "children": [], "start_point": {"row": 11, "column": 24}, "end_point": {"row": 11, "column": 25}}, {"id": 43, "type": "preproc_def", "text": "#define CONV_2_FILTER_Y 3\n", "parent": null, "children": [44, 45, 46], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 44, "type": "#define", "text": "#define", "parent": 43, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 7}}, {"id": 45, "type": "identifier", "text": "CONV_2_FILTER_Y", "parent": 43, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 23}}, {"id": 46, "type": "preproc_arg", "text": "3", "parent": 43, "children": [], "start_point": {"row": 12, "column": 24}, "end_point": {"row": 12, "column": 25}}, {"id": 47, "type": "preproc_def", "text": "#define CONV_2_STRIDE_X 1\n", "parent": null, "children": [48, 49, 50], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 48, "type": "#define", "text": "#define", "parent": 47, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 7}}, {"id": 49, "type": "identifier", "text": "CONV_2_STRIDE_X", "parent": 47, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 23}}, {"id": 50, "type": "preproc_arg", "text": "1", "parent": 47, "children": [], "start_point": {"row": 13, "column": 24}, "end_point": {"row": 13, "column": 25}}, {"id": 51, "type": "preproc_def", "text": "#define CONV_2_STRIDE_Y 1\n", "parent": null, "children": [52, 53, 54], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 52, "type": "#define", "text": "#define", "parent": 51, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 7}}, {"id": 53, "type": "identifier", "text": "CONV_2_STRIDE_Y", "parent": 51, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 23}}, {"id": 54, "type": "preproc_arg", "text": "1", "parent": 51, "children": [], "start_point": {"row": 14, "column": 24}, "end_point": {"row": 14, "column": 25}}, {"id": 55, "type": "preproc_def", "text": "#define CONV_2_PAD_X 1\n", "parent": null, "children": [56, 57, 58], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 56, "type": "#define", "text": "#define", "parent": 55, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 7}}, {"id": 57, "type": "identifier", "text": "CONV_2_PAD_X", "parent": 55, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 20}}, {"id": 58, "type": "preproc_arg", "text": "1", "parent": 55, "children": [], "start_point": {"row": 15, "column": 21}, "end_point": {"row": 15, "column": 22}}, {"id": 59, "type": "preproc_def", "text": "#define CONV_2_PAD_Y 1\n", "parent": null, "children": [60, 61, 62], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 60, "type": "#define", "text": "#define", "parent": 59, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 7}}, {"id": 61, "type": "identifier", "text": "CONV_2_PAD_Y", "parent": 59, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 20}}, {"id": 62, "type": "preproc_arg", "text": "1", "parent": 59, "children": [], "start_point": {"row": 16, "column": 21}, "end_point": {"row": 16, "column": 22}}, {"id": 63, "type": "preproc_def", "text": "#define CONV_2_OUTPUT_W 6\n", "parent": null, "children": [64, 65, 66], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 64, "type": "#define", "text": "#define", "parent": 63, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 7}}, {"id": 65, "type": "identifier", "text": "CONV_2_OUTPUT_W", "parent": 63, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 23}}, {"id": 66, "type": "preproc_arg", "text": "6", "parent": 63, "children": [], "start_point": {"row": 17, "column": 24}, "end_point": {"row": 17, "column": 25}}, {"id": 67, "type": "preproc_def", "text": "#define CONV_2_OUTPUT_H 3\n", "parent": null, "children": [68, 69, 70], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 68, "type": "#define", "text": "#define", "parent": 67, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 7}}, {"id": 69, "type": "identifier", "text": "CONV_2_OUTPUT_H", "parent": 67, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 23}}, {"id": 70, "type": "preproc_arg", "text": "3", "parent": 67, "children": [], "start_point": {"row": 18, "column": 24}, "end_point": {"row": 18, "column": 25}}, {"id": 71, "type": "preproc_def", "text": "#define CONV_2_INPUT_OFFSET 128\n", "parent": null, "children": [72, 73, 74], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 72, "type": "#define", "text": "#define", "parent": 71, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 7}}, {"id": 73, "type": "identifier", "text": "CONV_2_INPUT_OFFSET", "parent": 71, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 27}}, {"id": 74, "type": "preproc_arg", "text": "128", "parent": 71, "children": [], "start_point": {"row": 19, "column": 28}, "end_point": {"row": 19, "column": 31}}, {"id": 75, "type": "preproc_def", "text": "#define CONV_2_OUTPUT_OFFSET -9\n", "parent": null, "children": [76, 77, 78], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 76, "type": "#define", "text": "#define", "parent": 75, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 7}}, {"id": 77, "type": "identifier", "text": "CONV_2_OUTPUT_OFFSET", "parent": 75, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 28}}, {"id": 78, "type": "preproc_arg", "text": "-9", "parent": 75, "children": [], "start_point": {"row": 20, "column": 29}, "end_point": {"row": 20, "column": 31}}, {"id": 79, "type": "preproc_def", "text": "#define CONV_2_DILATION_X 1\n", "parent": null, "children": [80, 81, 82], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 80, "type": "#define", "text": "#define", "parent": 79, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 7}}, {"id": 81, "type": "identifier", "text": "CONV_2_DILATION_X", "parent": 79, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 25}}, {"id": 82, "type": "preproc_arg", "text": "1", "parent": 79, "children": [], "start_point": {"row": 21, "column": 26}, "end_point": {"row": 21, "column": 27}}, {"id": 83, "type": "preproc_def", "text": "#define CONV_2_DILATION_Y 1\n", "parent": null, "children": [84, 85, 86], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 84, "type": "#define", "text": "#define", "parent": 83, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 7}}, {"id": 85, "type": "identifier", "text": "CONV_2_DILATION_Y", "parent": 83, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 25}}, {"id": 86, "type": "preproc_arg", "text": "1", "parent": 83, "children": [], "start_point": {"row": 22, "column": 26}, "end_point": {"row": 22, "column": 27}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [5, 9, 13, 17, 21, 25, 29, 33, 37, 41, 45, 49, 53, 57, 61, 65, 69, 73, 77, 81, 85], "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": "// Generated by generate_test_data.py using TFL version 2.6.0 as reference.\n#pragma once\n#define CONV_2_OUT_CH 4\n#define CONV_2_IN_CH 2\n#define CONV_2_INPUT_W 6\n#define CONV_2_INPUT_H 3\n#define CONV_2_DST_SIZE 72\n#define CONV_2_INPUT_SIZE 36\n#define CONV_2_OUT_ACTIVATION_MIN -101\n#define CONV_2_OUT_ACTIVATION_MAX 127\n#define CONV_2_INPUT_BATCHES 1\n#define CONV_2_FILTER_X 3\n#define CONV_2_FILTER_Y 3\n#define CONV_2_STRIDE_X 1\n#define CONV_2_STRIDE_Y 1\n#define CONV_2_PAD_X 1\n#define CONV_2_PAD_Y 1\n#define CONV_2_OUTPUT_W 6\n#define CONV_2_OUTPUT_H 3\n#define CONV_2_INPUT_OFFSET 128\n#define CONV_2_OUTPUT_OFFSET -9\n#define CONV_2_DILATION_X 1\n#define CONV_2_DILATION_Y 1\n"}
80,288
c
@import Cocoa; @interface NotificationWindowManager : NSObject @property(nonatomic) NSString* text; @end
25.25
4
(translation_unit) "@import Cocoa;\n\n@interface NotificationWindowManager : NSObject\n\n@property(nonatomic) NSString* text;\n\n@end\n" (ERROR) "@" (ERROR) "@" (declaration) "import Cocoa;" (type_identifier) "import" (identifier) "Cocoa" (;) ";" (ERROR) "@interface NotificationWindowManager : NSObject\n\n@property(nonatomic) NSString* text;\n\n@end" (ERROR) "@" (type_identifier) "interface" (ERROR) "NotificationWindowManager : NSObject\n\n@" (identifier) "NotificationWindowManager" (:) ":" (identifier) "NSObject" (ERROR) "@" (function_declarator) "property(nonatomic)" (identifier) "property" (parameter_list) "(nonatomic)" (() "(" (identifier) "nonatomic" ()) ")" (declaration) "NSString* text;" (type_identifier) "NSString" (pointer_declarator) "* text" (*) "*" (identifier) "text" (;) ";" (ERROR) "@" (ERROR) "@" (identifier) "end"
30
8
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 25.25, "nodes": 22, "errors": 0, "source_hash": "6f5e75eaea42f9d9043beb8d97c603f8833abb1b33089f6bf09b5b6eb0bb5f93", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": null, "children": [1], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 1}}, {"id": 1, "type": "ERROR", "text": "@", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 1}}, {"id": 2, "type": "declaration", "text": "import Cocoa;", "parent": null, "children": [3], "start_point": {"row": 0, "column": 1}, "end_point": {"row": 0, "column": 14}}, {"id": 3, "type": "identifier", "text": "Cocoa", "parent": 2, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 13}}, {"id": 4, "type": "ERROR", "text": "@interface NotificationWindowManager : NSObject\n\n@property(nonatomic) NSString* text;\n\n@end", "parent": null, "children": [5, 6, 7, 11, 15, 20], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 6, "column": 4}}, {"id": 5, "type": "ERROR", "text": "@", "parent": 4, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 1}}, {"id": 6, "type": "type_identifier", "text": "interface", "parent": 4, "children": [], "start_point": {"row": 2, "column": 1}, "end_point": {"row": 2, "column": 10}}, {"id": 7, "type": "ERROR", "text": "NotificationWindowManager : NSObject\n\n@", "parent": 4, "children": [8, 9, 10], "start_point": {"row": 2, "column": 11}, "end_point": {"row": 4, "column": 1}}, {"id": 8, "type": "identifier", "text": "NotificationWindowManager", "parent": 7, "children": [], "start_point": {"row": 2, "column": 11}, "end_point": {"row": 2, "column": 36}}, {"id": 9, "type": "identifier", "text": "NSObject", "parent": 7, "children": [], "start_point": {"row": 2, "column": 39}, "end_point": {"row": 2, "column": 47}}, {"id": 10, "type": "ERROR", "text": "@", "parent": 7, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 1}}, {"id": 11, "type": "function_declarator", "text": "property(nonatomic)", "parent": 4, "children": [12, 13], "start_point": {"row": 4, "column": 1}, "end_point": {"row": 4, "column": 20}}, {"id": 12, "type": "identifier", "text": "property", "parent": 11, "children": [], "start_point": {"row": 4, "column": 1}, "end_point": {"row": 4, "column": 9}}, {"id": 13, "type": "parameter_list", "text": "(nonatomic)", "parent": 11, "children": [14], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 20}}, {"id": 14, "type": "identifier", "text": "nonatomic", "parent": 13, "children": [], "start_point": {"row": 4, "column": 10}, "end_point": {"row": 4, "column": 19}}, {"id": 15, "type": "declaration", "text": "NSString* text;", "parent": 4, "children": [16, 17], "start_point": {"row": 4, "column": 21}, "end_point": {"row": 4, "column": 36}}, {"id": 16, "type": "type_identifier", "text": "NSString", "parent": 15, "children": [], "start_point": {"row": 4, "column": 21}, "end_point": {"row": 4, "column": 29}}, {"id": 17, "type": "pointer_declarator", "text": "* text", "parent": 15, "children": [18, 19], "start_point": {"row": 4, "column": 29}, "end_point": {"row": 4, "column": 35}}, {"id": 18, "type": "*", "text": "*", "parent": 17, "children": [], "start_point": {"row": 4, "column": 29}, "end_point": {"row": 4, "column": 30}}, {"id": 19, "type": "identifier", "text": "text", "parent": 17, "children": [], "start_point": {"row": 4, "column": 31}, "end_point": {"row": 4, "column": 35}}, {"id": 20, "type": "ERROR", "text": "@", "parent": 4, "children": [21], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 1}}, {"id": 21, "type": "ERROR", "text": "@", "parent": 20, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 1}}]}, "node_categories": {"declarations": {"functions": [11], "variables": [2, 15], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [3, 6, 8, 9, 12, 14, 16, 19], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 11, "universal_type": "function", "name": "unknown", "text_snippet": "property(nonatomic)"}], "class_declarations": [], "import_statements": []}, "original_source_code": "@import Cocoa;\n\n@interface NotificationWindowManager : NSObject\n\n@property(nonatomic) NSString* text;\n\n@end\n"}
80,289
c
/* * $Header: /Book/EditWnd.h 6 3.07.99 17:46 Oslph312 $ */ #pragma once AbstractEditWnd *createEdit( HWND hwndParent, LPCTSTR pszText, bool bWordWrap ); // end of file
24.57
7
(translation_unit) "/*\n * $Header: /Book/EditWnd.h 6 3.07.99 17:46 Oslph312 $\n */\n\n#pragma once\n\nAbstractEditWnd *createEdit( \n HWND hwndParent, LPCTSTR pszText, bool bWordWrap );\n\n// end of file\n" (comment) "/*\n * $Header: /Book/EditWnd.h 6 3.07.99 17:46 Oslph312 $\n */" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (declaration) "AbstractEditWnd *createEdit( \n HWND hwndParent, LPCTSTR pszText, bool bWordWrap );" (type_identifier) "AbstractEditWnd" (pointer_declarator) "*createEdit( \n HWND hwndParent, LPCTSTR pszText, bool bWordWrap )" (*) "*" (function_declarator) "createEdit( \n HWND hwndParent, LPCTSTR pszText, bool bWordWrap )" (identifier) "createEdit" (parameter_list) "( \n HWND hwndParent, LPCTSTR pszText, bool bWordWrap )" (() "(" (parameter_declaration) "HWND hwndParent" (type_identifier) "HWND" (identifier) "hwndParent" (,) "," (parameter_declaration) "LPCTSTR pszText" (type_identifier) "LPCTSTR" (identifier) "pszText" (,) "," (parameter_declaration) "bool bWordWrap" (primitive_type) "bool" (identifier) "bWordWrap" ()) ")" (;) ";" (comment) "// end of file"
27
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 24.57, "nodes": 19, "errors": 0, "source_hash": "717d30c2db9f35e76b03c2b79e39f5b641e280078df093e2c9210bbedb35595a", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once", "parent": 0, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 12}}, {"id": 3, "type": "declaration", "text": "AbstractEditWnd *createEdit( \n HWND hwndParent, LPCTSTR pszText, bool bWordWrap );", "parent": null, "children": [4, 5], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 54}}, {"id": 4, "type": "type_identifier", "text": "AbstractEditWnd", "parent": 3, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 15}}, {"id": 5, "type": "pointer_declarator", "text": "*createEdit( \n HWND hwndParent, LPCTSTR pszText, bool bWordWrap )", "parent": 3, "children": [6, 7], "start_point": {"row": 6, "column": 16}, "end_point": {"row": 7, "column": 53}}, {"id": 6, "type": "*", "text": "*", "parent": 5, "children": [], "start_point": {"row": 6, "column": 16}, "end_point": {"row": 6, "column": 17}}, {"id": 7, "type": "function_declarator", "text": "createEdit( \n HWND hwndParent, LPCTSTR pszText, bool bWordWrap )", "parent": 5, "children": [8, 9], "start_point": {"row": 6, "column": 17}, "end_point": {"row": 7, "column": 53}}, {"id": 8, "type": "identifier", "text": "createEdit", "parent": 7, "children": [], "start_point": {"row": 6, "column": 17}, "end_point": {"row": 6, "column": 27}}, {"id": 9, "type": "parameter_list", "text": "( \n HWND hwndParent, LPCTSTR pszText, bool bWordWrap )", "parent": 7, "children": [10, 13, 16], "start_point": {"row": 6, "column": 27}, "end_point": {"row": 7, "column": 53}}, {"id": 10, "type": "parameter_declaration", "text": "HWND hwndParent", "parent": 9, "children": [11, 12], "start_point": {"row": 7, "column": 3}, "end_point": {"row": 7, "column": 18}}, {"id": 11, "type": "type_identifier", "text": "HWND", "parent": 10, "children": [], "start_point": {"row": 7, "column": 3}, "end_point": {"row": 7, "column": 7}}, {"id": 12, "type": "identifier", "text": "hwndParent", "parent": 10, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 18}}, {"id": 13, "type": "parameter_declaration", "text": "LPCTSTR pszText", "parent": 9, "children": [14, 15], "start_point": {"row": 7, "column": 20}, "end_point": {"row": 7, "column": 35}}, {"id": 14, "type": "type_identifier", "text": "LPCTSTR", "parent": 13, "children": [], "start_point": {"row": 7, "column": 20}, "end_point": {"row": 7, "column": 27}}, {"id": 15, "type": "identifier", "text": "pszText", "parent": 13, "children": [], "start_point": {"row": 7, "column": 28}, "end_point": {"row": 7, "column": 35}}, {"id": 16, "type": "parameter_declaration", "text": "bool bWordWrap", "parent": 9, "children": [17, 18], "start_point": {"row": 7, "column": 37}, "end_point": {"row": 7, "column": 51}}, {"id": 17, "type": "primitive_type", "text": "bool", "parent": 16, "children": [], "start_point": {"row": 7, "column": 37}, "end_point": {"row": 7, "column": 41}}, {"id": 18, "type": "identifier", "text": "bWordWrap", "parent": 16, "children": [], "start_point": {"row": 7, "column": 42}, "end_point": {"row": 7, "column": 51}}]}, "node_categories": {"declarations": {"functions": [7], "variables": [3, 10, 13, 16], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [4, 8, 11, 12, 14, 15, 18], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 7, "universal_type": "function", "name": "bWordWrap", "text_snippet": "createEdit( \n HWND hwndParent, LPCTSTR pszText, bool bWordWrap )"}], "class_declarations": [], "import_statements": []}, "original_source_code": "/*\n * $Header: /Book/EditWnd.h 6 3.07.99 17:46 Oslph312 $\n */\n\n#pragma once\n\nAbstractEditWnd *createEdit( \n HWND hwndParent, LPCTSTR pszText, bool bWordWrap );\n\n// end of file\n"}
80,290
c
// This file is part of the Peano project. For conditions of distribution and // use, please see the copyright notice at www.peano-framework.org #ifndef _MATRIXFREE_SOLVER_STENCIL_H_ #define _MATRIXFREE_SOLVER_STENCIL_H_ #include "peano/utils/Globals.h" #include "tarch/la/Vector.h" #include "tarch/la/Matrix.h" #include <complex> namespace matrixfree { namespace stencil { /** * Element-wise Matrix */ typedef tarch::la::Matrix<NUMBER_OF_VERTICES_PER_ELEMENT,NUMBER_OF_VERTICES_PER_ELEMENT, double> ElementWiseAssemblyMatrix; typedef tarch::la::Matrix<NUMBER_OF_VERTICES_PER_ELEMENT,NUMBER_OF_VERTICES_PER_ELEMENT, std::complex<double> > ComplexElementWiseAssemblyMatrix; typedef tarch::la::Matrix<TWO_POWER_D,TWO_POWER_D, double> InterGridTransferMatrix; typedef tarch::la::Matrix<NUMBER_OF_VERTICES_PER_ELEMENT/2,NUMBER_OF_VERTICES_PER_ELEMENT/2, double> ElementWiseAssemblyMatrixOnSpaceTimeGrid; /** * Stencil */ typedef tarch::la::Vector<THREE_POWER_D,double> Stencil; typedef tarch::la::Vector<THREE_POWER_D,std::complex<double> > ComplexStencil; /** * Vectors. */ typedef tarch::la::Vector<TWO_POWER_D_TIMES_THREE_POWER_D,double> VectorOfStencils; typedef tarch::la::Vector<TWO_POWER_D_TIMES_THREE_POWER_D,std::complex<double> > VectorOfComplexStencils; /** * Vector of Element (Lexicographic Ordering of Unknowns) */ typedef tarch::la::Vector<NUMBER_OF_VERTICES_PER_ELEMENT,double> ElementWiseVector; int getStencilEntryLinearisedIndex( const tarch::la::Vector<DIMENSIONS,int> stencilEntry); } } #endif
43.97
37
(translation_unit) "// This file is part of the Peano project. For conditions of distribution and\n// use, please see the copyright notice at www.peano-framework.org\n#ifndef _MATRIXFREE_SOLVER_STENCIL_H_\n#define _MATRIXFREE_SOLVER_STENCIL_H_\n\n#include "peano/utils/Globals.h"\n\n#include "tarch/la/Vector.h"\n#include "tarch/la/Matrix.h"\n\n#include <complex>\n\n\nnamespace matrixfree {\n namespace stencil {\n /**\n * Element-wise Matrix\n */\n typedef tarch::la::Matrix<NUMBER_OF_VERTICES_PER_ELEMENT,NUMBER_OF_VERTICES_PER_ELEMENT, double> ElementWiseAssemblyMatrix;\n\n typedef tarch::la::Matrix<NUMBER_OF_VERTICES_PER_ELEMENT,NUMBER_OF_VERTICES_PER_ELEMENT, std::complex<double> > ComplexElementWiseAssemblyMatrix;\n\n typedef tarch::la::Matrix<TWO_POWER_D,TWO_POWER_D, double> InterGridTransferMatrix;\n\n typedef tarch::la::Matrix<NUMBER_OF_VERTICES_PER_ELEMENT/2,NUMBER_OF_VERTICES_PER_ELEMENT/2, double> ElementWiseAssemblyMatrixOnSpaceTimeGrid;\n\n /**\n * Stencil\n */\n typedef tarch::la::Vector<THREE_POWER_D,double> Stencil;\n typedef tarch::la::Vector<THREE_POWER_D,std::complex<double> > ComplexStencil;\n\n /**\n * Vectors.\n */\n typedef tarch::la::Vector<TWO_POWER_D_TIMES_THREE_POWER_D,double> VectorOfStencils;\n typedef tarch::la::Vector<TWO_POWER_D_TIMES_THREE_POWER_D,std::complex<double> > VectorOfComplexStencils;\n\n /**\n * Vector of Element (Lexicographic Ordering of Unknowns)\n */\n typedef tarch::la::Vector<NUMBER_OF_VERTICES_PER_ELEMENT,double> ElementWiseVector;\n\n int getStencilEntryLinearisedIndex( const tarch::la::Vector<DIMENSIONS,int> stencilEntry);\n\n\n }\n}\n\n#endif\n" (comment) "// This file is part of the Peano project. For conditions of distribution and" (comment) "// use, please see the copyright notice at www.peano-framework.org" (preproc_ifdef) "#ifndef _MATRIXFREE_SOLVER_STENCIL_H_\n#define _MATRIXFREE_SOLVER_STENCIL_H_\n\n#include "peano/utils/Globals.h"\n\n#include "tarch/la/Vector.h"\n#include "tarch/la/Matrix.h"\n\n#include <complex>\n\n\nnamespace matrixfree {\n namespace stencil {\n /**\n * Element-wise Matrix\n */\n typedef tarch::la::Matrix<NUMBER_OF_VERTICES_PER_ELEMENT,NUMBER_OF_VERTICES_PER_ELEMENT, double> ElementWiseAssemblyMatrix;\n\n typedef tarch::la::Matrix<NUMBER_OF_VERTICES_PER_ELEMENT,NUMBER_OF_VERTICES_PER_ELEMENT, std::complex<double> > ComplexElementWiseAssemblyMatrix;\n\n typedef tarch::la::Matrix<TWO_POWER_D,TWO_POWER_D, double> InterGridTransferMatrix;\n\n typedef tarch::la::Matrix<NUMBER_OF_VERTICES_PER_ELEMENT/2,NUMBER_OF_VERTICES_PER_ELEMENT/2, double> ElementWiseAssemblyMatrixOnSpaceTimeGrid;\n\n /**\n * Stencil\n */\n typedef tarch::la::Vector<THREE_POWER_D,double> Stencil;\n typedef tarch::la::Vector<THREE_POWER_D,std::complex<double> > ComplexStencil;\n\n /**\n * Vectors.\n */\n typedef tarch::la::Vector<TWO_POWER_D_TIMES_THREE_POWER_D,double> VectorOfStencils;\n typedef tarch::la::Vector<TWO_POWER_D_TIMES_THREE_POWER_D,std::complex<double> > VectorOfComplexStencils;\n\n /**\n * Vector of Element (Lexicographic Ordering of Unknowns)\n */\n typedef tarch::la::Vector<NUMBER_OF_VERTICES_PER_ELEMENT,double> ElementWiseVector;\n\n int getStencilEntryLinearisedIndex( const tarch::la::Vector<DIMENSIONS,int> stencilEntry);\n\n\n }\n}\n\n#endif" (#ifndef) "#ifndef" (identifier) "_MATRIXFREE_SOLVER_STENCIL_H_" (preproc_def) "#define _MATRIXFREE_SOLVER_STENCIL_H_\n" (#define) "#define" (identifier) "_MATRIXFREE_SOLVER_STENCIL_H_" (preproc_include) "#include "peano/utils/Globals.h"\n" (#include) "#include" (string_literal) ""peano/utils/Globals.h"" (") """ (string_content) "peano/utils/Globals.h" (") """ (preproc_include) "#include "tarch/la/Vector.h"\n" (#include) "#include" (string_literal) ""tarch/la/Vector.h"" (") """ (string_content) "tarch/la/Vector.h" (") """ (preproc_include) "#include "tarch/la/Matrix.h"\n" (#include) "#include" (string_literal) ""tarch/la/Matrix.h"" (") """ (string_content) "tarch/la/Matrix.h" (") """ (preproc_include) "#include <complex>\n" (#include) "#include" (system_lib_string) "<complex>" (function_definition) "namespace matrixfree {\n namespace stencil {\n /**\n * Element-wise Matrix\n */\n typedef tarch::la::Matrix<NUMBER_OF_VERTICES_PER_ELEMENT,NUMBER_OF_VERTICES_PER_ELEMENT, double> ElementWiseAssemblyMatrix;\n\n typedef tarch::la::Matrix<NUMBER_OF_VERTICES_PER_ELEMENT,NUMBER_OF_VERTICES_PER_ELEMENT, std::complex<double> > ComplexElementWiseAssemblyMatrix;\n\n typedef tarch::la::Matrix<TWO_POWER_D,TWO_POWER_D, double> InterGridTransferMatrix;\n\n typedef tarch::la::Matrix<NUMBER_OF_VERTICES_PER_ELEMENT/2,NUMBER_OF_VERTICES_PER_ELEMENT/2, double> ElementWiseAssemblyMatrixOnSpaceTimeGrid;\n\n /**\n * Stencil\n */\n typedef tarch::la::Vector<THREE_POWER_D,double> Stencil;\n typedef tarch::la::Vector<THREE_POWER_D,std::complex<double> > ComplexStencil;\n\n /**\n * Vectors.\n */\n typedef tarch::la::Vector<TWO_POWER_D_TIMES_THREE_POWER_D,double> VectorOfStencils;\n typedef tarch::la::Vector<TWO_POWER_D_TIMES_THREE_POWER_D,std::complex<double> > VectorOfComplexStencils;\n\n /**\n * Vector of Element (Lexicographic Ordering of Unknowns)\n */\n typedef tarch::la::Vector<NUMBER_OF_VERTICES_PER_ELEMENT,double> ElementWiseVector;\n\n int getStencilEntryLinearisedIndex( const tarch::la::Vector<DIMENSIONS,int> stencilEntry);\n\n\n }\n}" (type_identifier) "namespace" (identifier) "matrixfree" (compound_statement) "{\n namespace stencil {\n /**\n * Element-wise Matrix\n */\n typedef tarch::la::Matrix<NUMBER_OF_VERTICES_PER_ELEMENT,NUMBER_OF_VERTICES_PER_ELEMENT, double> ElementWiseAssemblyMatrix;\n\n typedef tarch::la::Matrix<NUMBER_OF_VERTICES_PER_ELEMENT,NUMBER_OF_VERTICES_PER_ELEMENT, std::complex<double> > ComplexElementWiseAssemblyMatrix;\n\n typedef tarch::la::Matrix<TWO_POWER_D,TWO_POWER_D, double> InterGridTransferMatrix;\n\n typedef tarch::la::Matrix<NUMBER_OF_VERTICES_PER_ELEMENT/2,NUMBER_OF_VERTICES_PER_ELEMENT/2, double> ElementWiseAssemblyMatrixOnSpaceTimeGrid;\n\n /**\n * Stencil\n */\n typedef tarch::la::Vector<THREE_POWER_D,double> Stencil;\n typedef tarch::la::Vector<THREE_POWER_D,std::complex<double> > ComplexStencil;\n\n /**\n * Vectors.\n */\n typedef tarch::la::Vector<TWO_POWER_D_TIMES_THREE_POWER_D,double> VectorOfStencils;\n typedef tarch::la::Vector<TWO_POWER_D_TIMES_THREE_POWER_D,std::complex<double> > VectorOfComplexStencils;\n\n /**\n * Vector of Element (Lexicographic Ordering of Unknowns)\n */\n typedef tarch::la::Vector<NUMBER_OF_VERTICES_PER_ELEMENT,double> ElementWiseVector;\n\n int getStencilEntryLinearisedIndex( const tarch::la::Vector<DIMENSIONS,int> stencilEntry);\n\n\n }\n}" ({) "{" (function_definition) "namespace stencil {\n /**\n * Element-wise Matrix\n */\n typedef tarch::la::Matrix<NUMBER_OF_VERTICES_PER_ELEMENT,NUMBER_OF_VERTICES_PER_ELEMENT, double> ElementWiseAssemblyMatrix;\n\n typedef tarch::la::Matrix<NUMBER_OF_VERTICES_PER_ELEMENT,NUMBER_OF_VERTICES_PER_ELEMENT, std::complex<double> > ComplexElementWiseAssemblyMatrix;\n\n typedef tarch::la::Matrix<TWO_POWER_D,TWO_POWER_D, double> InterGridTransferMatrix;\n\n typedef tarch::la::Matrix<NUMBER_OF_VERTICES_PER_ELEMENT/2,NUMBER_OF_VERTICES_PER_ELEMENT/2, double> ElementWiseAssemblyMatrixOnSpaceTimeGrid;\n\n /**\n * Stencil\n */\n typedef tarch::la::Vector<THREE_POWER_D,double> Stencil;\n typedef tarch::la::Vector<THREE_POWER_D,std::complex<double> > ComplexStencil;\n\n /**\n * Vectors.\n */\n typedef tarch::la::Vector<TWO_POWER_D_TIMES_THREE_POWER_D,double> VectorOfStencils;\n typedef tarch::la::Vector<TWO_POWER_D_TIMES_THREE_POWER_D,std::complex<double> > VectorOfComplexStencils;\n\n /**\n * Vector of Element (Lexicographic Ordering of Unknowns)\n */\n typedef tarch::la::Vector<NUMBER_OF_VERTICES_PER_ELEMENT,double> ElementWiseVector;\n\n int getStencilEntryLinearisedIndex( const tarch::la::Vector<DIMENSIONS,int> stencilEntry);\n\n\n }" (type_identifier) "namespace" (identifier) "stencil" (compound_statement) "{\n /**\n * Element-wise Matrix\n */\n typedef tarch::la::Matrix<NUMBER_OF_VERTICES_PER_ELEMENT,NUMBER_OF_VERTICES_PER_ELEMENT, double> ElementWiseAssemblyMatrix;\n\n typedef tarch::la::Matrix<NUMBER_OF_VERTICES_PER_ELEMENT,NUMBER_OF_VERTICES_PER_ELEMENT, std::complex<double> > ComplexElementWiseAssemblyMatrix;\n\n typedef tarch::la::Matrix<TWO_POWER_D,TWO_POWER_D, double> InterGridTransferMatrix;\n\n typedef tarch::la::Matrix<NUMBER_OF_VERTICES_PER_ELEMENT/2,NUMBER_OF_VERTICES_PER_ELEMENT/2, double> ElementWiseAssemblyMatrixOnSpaceTimeGrid;\n\n /**\n * Stencil\n */\n typedef tarch::la::Vector<THREE_POWER_D,double> Stencil;\n typedef tarch::la::Vector<THREE_POWER_D,std::complex<double> > ComplexStencil;\n\n /**\n * Vectors.\n */\n typedef tarch::la::Vector<TWO_POWER_D_TIMES_THREE_POWER_D,double> VectorOfStencils;\n typedef tarch::la::Vector<TWO_POWER_D_TIMES_THREE_POWER_D,std::complex<double> > VectorOfComplexStencils;\n\n /**\n * Vector of Element (Lexicographic Ordering of Unknowns)\n */\n typedef tarch::la::Vector<NUMBER_OF_VERTICES_PER_ELEMENT,double> ElementWiseVector;\n\n int getStencilEntryLinearisedIndex( const tarch::la::Vector<DIMENSIONS,int> stencilEntry);\n\n\n }" ({) "{" (comment) "/**\n * Element-wise Matrix\n */" (type_definition) "typedef tarch::la::Matrix<NUMBER_OF_VERTICES_PER_ELEMENT,NUMBER_OF_VERTICES_PER_ELEMENT, double> ElementWiseAssemblyMatrix;" (typedef) "typedef" (type_identifier) "tarch" (ERROR) "::la::Matrix<" (:) ":" (:) ":" (type_identifier) "la" (:) ":" (:) ":" (type_identifier) "Matrix" (<) "<" (type_identifier) "NUMBER_OF_VERTICES_PER_ELEMENT" (,) "," (type_identifier) "NUMBER_OF_VERTICES_PER_ELEMENT" (,) "," (ERROR) "double>" (primitive_type) "double" (>) ">" (type_identifier) "ElementWiseAssemblyMatrix" (;) ";" (type_definition) "typedef tarch::la::Matrix<NUMBER_OF_VERTICES_PER_ELEMENT,NUMBER_OF_VERTICES_PER_ELEMENT, std::complex<double> > ComplexElementWiseAssemblyMatrix;" (typedef) "typedef" (type_identifier) "tarch" (ERROR) "::la::Matrix<" (:) ":" (:) ":" (type_identifier) "la" (:) ":" (:) ":" (type_identifier) "Matrix" (<) "<" (type_identifier) "NUMBER_OF_VERTICES_PER_ELEMENT" (,) "," (type_identifier) "NUMBER_OF_VERTICES_PER_ELEMENT" (,) "," (ERROR) "std::complex<double> >" (type_identifier) "std" (:) ":" (:) ":" (type_identifier) "complex" (<) "<" (primitive_type) "double" (>) ">" (>) ">" (type_identifier) "ComplexElementWiseAssemblyMatrix" (;) ";" (type_definition) "typedef tarch::la::Matrix<TWO_POWER_D,TWO_POWER_D, double> InterGridTransferMatrix;" (typedef) "typedef" (type_identifier) "tarch" (ERROR) "::la::Matrix<" (:) ":" (:) ":" (type_identifier) "la" (:) ":" (:) ":" (type_identifier) "Matrix" (<) "<" (type_identifier) "TWO_POWER_D" (,) "," (type_identifier) "TWO_POWER_D" (,) "," (ERROR) "double>" (primitive_type) "double" (>) ">" (type_identifier) "InterGridTransferMatrix" (;) ";" (ERROR) "typedef tarch::la::Matrix<NUMBER_OF_VERTICES_PER_ELEMENT/" (typedef) "typedef" (type_identifier) "tarch" (ERROR) "::la::Matrix<" (:) ":" (:) ":" (type_identifier) "la" (:) ":" (:) ":" (type_identifier) "Matrix" (<) "<" (type_identifier) "NUMBER_OF_VERTICES_PER_ELEMENT" (/) "/" (expression_statement) "2,NUMBER_OF_VERTICES_PER_ELEMENT/2, double> ElementWiseAssemblyMatrixOnSpaceTimeGrid;" (comma_expression) "2,NUMBER_OF_VERTICES_PER_ELEMENT/2, double> ElementWiseAssemblyMatrixOnSpaceTimeGrid" (number_literal) "2" (,) "," (comma_expression) "NUMBER_OF_VERTICES_PER_ELEMENT/2, double> ElementWiseAssemblyMatrixOnSpaceTimeGrid" (binary_expression) "NUMBER_OF_VERTICES_PER_ELEMENT/2" (identifier) "NUMBER_OF_VERTICES_PER_ELEMENT" (/) "/" (number_literal) "2" (,) "," (binary_expression) "double> ElementWiseAssemblyMatrixOnSpaceTimeGrid" (identifier) "double" (>) ">" (identifier) "ElementWiseAssemblyMatrixOnSpaceTimeGrid" (;) ";" (comment) "/**\n * Stencil\n */" (type_definition) "typedef tarch::la::Vector<THREE_POWER_D,double> Stencil;" (typedef) "typedef" (type_identifier) "tarch" (ERROR) "::la::Vector<" (:) ":" (:) ":" (type_identifier) "la" (:) ":" (:) ":" (type_identifier) "Vector" (<) "<" (type_identifier) "THREE_POWER_D" (,) "," (ERROR) "double>" (primitive_type) "double" (>) ">" (type_identifier) "Stencil" (;) ";" (type_definition) "typedef tarch::la::Vector<THREE_POWER_D,std::complex<double> > ComplexStencil;" (typedef) "typedef" (type_identifier) "tarch" (ERROR) "::la::Vector<" (:) ":" (:) ":" (type_identifier) "la" (:) ":" (:) ":" (type_identifier) "Vector" (<) "<" (type_identifier) "THREE_POWER_D" (,) "," (ERROR) "std::complex<double> >" (type_identifier) "std" (:) ":" (:) ":" (type_identifier) "complex" (<) "<" (primitive_type) "double" (>) ">" (>) ">" (type_identifier) "ComplexStencil" (;) ";" (comment) "/**\n * Vectors.\n */" (type_definition) "typedef tarch::la::Vector<TWO_POWER_D_TIMES_THREE_POWER_D,double> VectorOfStencils;" (typedef) "typedef" (type_identifier) "tarch" (ERROR) "::la::Vector<" (:) ":" (:) ":" (type_identifier) "la" (:) ":" (:) ":" (type_identifier) "Vector" (<) "<" (type_identifier) "TWO_POWER_D_TIMES_THREE_POWER_D" (,) "," (ERROR) "double>" (primitive_type) "double" (>) ">" (type_identifier) "VectorOfStencils" (;) ";" (type_definition) "typedef tarch::la::Vector<TWO_POWER_D_TIMES_THREE_POWER_D,std::complex<double> > VectorOfComplexStencils;" (typedef) "typedef" (type_identifier) "tarch" (ERROR) "::la::Vector<" (:) ":" (:) ":" (type_identifier) "la" (:) ":" (:) ":" (type_identifier) "Vector" (<) "<" (type_identifier) "TWO_POWER_D_TIMES_THREE_POWER_D" (,) "," (ERROR) "std::complex<double> >" (type_identifier) "std" (:) ":" (:) ":" (type_identifier) "complex" (<) "<" (primitive_type) "double" (>) ">" (>) ">" (type_identifier) "VectorOfComplexStencils" (;) ";" (comment) "/**\n * Vector of Element (Lexicographic Ordering of Unknowns)\n */" (type_definition) "typedef tarch::la::Vector<NUMBER_OF_VERTICES_PER_ELEMENT,double> ElementWiseVector;" (typedef) "typedef" (type_identifier) "tarch" (ERROR) "::la::Vector<" (:) ":" (:) ":" (type_identifier) "la" (:) ":" (:) ":" (type_identifier) "Vector" (<) "<" (type_identifier) "NUMBER_OF_VERTICES_PER_ELEMENT" (,) "," (ERROR) "double>" (primitive_type) "double" (>) ">" (type_identifier) "ElementWiseVector" (;) ";" (declaration) "int getStencilEntryLinearisedIndex( const tarch::la::Vector<DIMENSIONS,int> stencilEntry);" (primitive_type) "int" (function_declarator) "getStencilEntryLinearisedIndex( const tarch::la::Vector<DIMENSIONS,int> stencilEntry)" (identifier) "getStencilEntryLinearisedIndex" (parameter_list) "( const tarch::la::Vector<DIMENSIONS,int> stencilEntry)" (() "(" (parameter_declaration) "const tarch::la::Vector<DIMENSIONS" (type_qualifier) "const" (const) "const" (type_identifier) "tarch" (ERROR) "::la::Vector<" (:) ":" (:) ":" (identifier) "la" (:) ":" (:) ":" (identifier) "Vector" (<) "<" (identifier) "DIMENSIONS" (,) "," (parameter_declaration) "int> stencilEntry" (primitive_type) "int" (ERROR) ">" (>) ">" (identifier) "stencilEntry" ()) ")" (;) ";" (}) "}" (}) "}" (#endif) "#endif"
270
20
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 43.97, "nodes": 173, "errors": 0, "source_hash": "b71840e7ce294e25993c6868a2434b3df58c1bb234708aa00720a86e83abcc1b", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _MATRIXFREE_SOLVER_STENCIL_H_\n#define _MATRIXFREE_SOLVER_STENCIL_H_\n\n#include \"peano/utils/Globals.h\"\n\n#include \"tarch/la/Vector.h\"\n#include \"tarch/la/Matrix.h\"\n\n#include <complex>\n\n\nnamespace matrixfree {\n namespace stencil {\n /**\n * Element-wise Matrix\n */\n typedef tarch::la::Matrix<NUMBER_OF_VERTICES_PER_ELEMENT,NUMBER_OF_VERTICES_PER_ELEMENT, double> ElementWiseAssemblyMatrix;\n\n typedef tarch::la::Matrix<NUMBER_OF_VERTICES_PER_ELEMENT,NUMBER_OF_VERTICES_PER_ELEMENT, std::complex<double> > ComplexElementWiseAssemblyMatrix;\n\n typedef tarch::la::Matrix<TWO_POWER_D,TWO_POWER_D, double> InterGridTransferMatrix;\n\n typedef tarch::la::Matrix<NUMBER_OF_VERTICES_PER_ELEMENT/2,NUMBER_OF_VERTICES_PER_ELEMENT/2, double> ElementWiseAssemblyMatrixOnSpaceTimeGrid;\n\n /**\n * Stencil\n */\n typedef tarch::la::Vector<THREE_POWER_D,double> Stencil;\n typedef tarch::la::Vector<THREE_POWER_D,std::complex<double> > ComplexStencil;\n\n /**\n * Vectors.\n */\n typedef tarch::la::Vector<TWO_POWER_D_TIMES_THREE_POWER_D,double> VectorOfStencils;\n typedef tarch::la::Vector<TWO_POWER_D_TIMES_THREE_POWER_D,std::complex<double> > VectorOfComplexStencils;\n\n /**\n * Vector of Element (Lexicographic Ordering of Unknowns)\n */\n typedef tarch::la::Vector<NUMBER_OF_VERTICES_PER_ELEMENT,double> ElementWiseVector;\n\n int getStencilEntryLinearisedIndex( const tarch::la::Vector<DIMENSIONS,int> stencilEntry);\n\n\n }\n}\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 172], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 49, "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": "_MATRIXFREE_SOLVER_STENCIL_H_", "parent": 0, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 37}}, {"id": 3, "type": "preproc_def", "text": "#define _MATRIXFREE_SOLVER_STENCIL_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": "_MATRIXFREE_SOLVER_STENCIL_H_", "parent": 3, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 37}}, {"id": 6, "type": "preproc_include", "text": "#include \"peano/utils/Globals.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": "\"peano/utils/Globals.h\"", "parent": 6, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 32}}, {"id": 9, "type": "preproc_include", "text": "#include \"tarch/la/Vector.h\"\n", "parent": 0, "children": [10, 11], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"tarch/la/Vector.h\"", "parent": 9, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 28}}, {"id": 12, "type": "preproc_include", "text": "#include \"tarch/la/Matrix.h\"\n", "parent": 0, "children": [13, 14], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"tarch/la/Matrix.h\"", "parent": 12, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 28}}, {"id": 15, "type": "preproc_include", "text": "#include <complex>\n", "parent": 0, "children": [16, 17], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<complex>", "parent": 15, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 18}}, {"id": 18, "type": "function_definition", "text": "namespace matrixfree {\n namespace stencil {\n /**\n * Element-wise Matrix\n */\n typedef tarch::la::Matrix<NUMBER_OF_VERTICES_PER_ELEMENT,NUMBER_OF_VERTICES_PER_ELEMENT, double> ElementWiseAssemblyMatrix;\n\n typedef tarch::la::Matrix<NUMBER_OF_VERTICES_PER_ELEMENT,NUMBER_OF_VERTICES_PER_ELEMENT, std::complex<double> > ComplexElementWiseAssemblyMatrix;\n\n typedef tarch::la::Matrix<TWO_POWER_D,TWO_POWER_D, double> InterGridTransferMatrix;\n\n typedef tarch::la::Matrix<NUMBER_OF_VERTICES_PER_ELEMENT/2,NUMBER_OF_VERTICES_PER_ELEMENT/2, double> ElementWiseAssemblyMatrixOnSpaceTimeGrid;\n\n /**\n * Stencil\n */\n typedef tarch::la::Vector<THREE_POWER_D,double> Stencil;\n typedef tarch::la::Vector<THREE_POWER_D,std::complex<double> > ComplexStencil;\n\n /**\n * Vectors.\n */\n typedef tarch::la::Vector<TWO_POWER_D_TIMES_THREE_POWER_D,double> VectorOfStencils;\n typedef tarch::la::Vector<TWO_POWER_D_TIMES_THREE_POWER_D,std::complex<double> > VectorOfComplexStencils;\n\n /**\n * Vector of Element (Lexicographic Ordering of Unknowns)\n */\n typedef tarch::la::Vector<NUMBER_OF_VERTICES_PER_ELEMENT,double> ElementWiseVector;\n\n int getStencilEntryLinearisedIndex( const tarch::la::Vector<DIMENSIONS,int> stencilEntry);\n\n\n }\n}", "parent": 0, "children": [19, 20], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 47, "column": 1}}, {"id": 19, "type": "type_identifier", "text": "namespace", "parent": 18, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 9}}, {"id": 20, "type": "identifier", "text": "matrixfree", "parent": 18, "children": [], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 20}}, {"id": 21, "type": "function_definition", "text": "namespace stencil {\n /**\n * Element-wise Matrix\n */\n typedef tarch::la::Matrix<NUMBER_OF_VERTICES_PER_ELEMENT,NUMBER_OF_VERTICES_PER_ELEMENT, double> ElementWiseAssemblyMatrix;\n\n typedef tarch::la::Matrix<NUMBER_OF_VERTICES_PER_ELEMENT,NUMBER_OF_VERTICES_PER_ELEMENT, std::complex<double> > ComplexElementWiseAssemblyMatrix;\n\n typedef tarch::la::Matrix<TWO_POWER_D,TWO_POWER_D, double> InterGridTransferMatrix;\n\n typedef tarch::la::Matrix<NUMBER_OF_VERTICES_PER_ELEMENT/2,NUMBER_OF_VERTICES_PER_ELEMENT/2, double> ElementWiseAssemblyMatrixOnSpaceTimeGrid;\n\n /**\n * Stencil\n */\n typedef tarch::la::Vector<THREE_POWER_D,double> Stencil;\n typedef tarch::la::Vector<THREE_POWER_D,std::complex<double> > ComplexStencil;\n\n /**\n * Vectors.\n */\n typedef tarch::la::Vector<TWO_POWER_D_TIMES_THREE_POWER_D,double> VectorOfStencils;\n typedef tarch::la::Vector<TWO_POWER_D_TIMES_THREE_POWER_D,std::complex<double> > VectorOfComplexStencils;\n\n /**\n * Vector of Element (Lexicographic Ordering of Unknowns)\n */\n typedef tarch::la::Vector<NUMBER_OF_VERTICES_PER_ELEMENT,double> ElementWiseVector;\n\n int getStencilEntryLinearisedIndex( const tarch::la::Vector<DIMENSIONS,int> stencilEntry);\n\n\n }", "parent": 18, "children": [22, 23], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 46, "column": 5}}, {"id": 22, "type": "type_identifier", "text": "namespace", "parent": 21, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 13}}, {"id": 23, "type": "identifier", "text": "stencil", "parent": 21, "children": [], "start_point": {"row": 14, "column": 14}, "end_point": {"row": 14, "column": 21}}, {"id": 24, "type": "type_definition", "text": "typedef tarch::la::Matrix<NUMBER_OF_VERTICES_PER_ELEMENT,NUMBER_OF_VERTICES_PER_ELEMENT, double> ElementWiseAssemblyMatrix;", "parent": 21, "children": [25, 26, 27, 31, 32, 33, 36], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 129}}, {"id": 25, "type": "typedef", "text": "typedef", "parent": 24, "children": [], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 13}}, {"id": 26, "type": "type_identifier", "text": "tarch", "parent": 24, "children": [], "start_point": {"row": 18, "column": 14}, "end_point": {"row": 18, "column": 19}}, {"id": 27, "type": "ERROR", "text": "::la::Matrix<", "parent": 24, "children": [28, 29, 30], "start_point": {"row": 18, "column": 19}, "end_point": {"row": 18, "column": 32}}, {"id": 28, "type": "type_identifier", "text": "la", "parent": 27, "children": [], "start_point": {"row": 18, "column": 21}, "end_point": {"row": 18, "column": 23}}, {"id": 29, "type": "type_identifier", "text": "Matrix", "parent": 27, "children": [], "start_point": {"row": 18, "column": 25}, "end_point": {"row": 18, "column": 31}}, {"id": 30, "type": "<", "text": "<", "parent": 27, "children": [], "start_point": {"row": 18, "column": 31}, "end_point": {"row": 18, "column": 32}}, {"id": 31, "type": "type_identifier", "text": "NUMBER_OF_VERTICES_PER_ELEMENT", "parent": 24, "children": [], "start_point": {"row": 18, "column": 32}, "end_point": {"row": 18, "column": 62}}, {"id": 32, "type": "type_identifier", "text": "NUMBER_OF_VERTICES_PER_ELEMENT", "parent": 24, "children": [], "start_point": {"row": 18, "column": 63}, "end_point": {"row": 18, "column": 93}}, {"id": 33, "type": "ERROR", "text": "double>", "parent": 24, "children": [34, 35], "start_point": {"row": 18, "column": 95}, "end_point": {"row": 18, "column": 102}}, {"id": 34, "type": "primitive_type", "text": "double", "parent": 33, "children": [], "start_point": {"row": 18, "column": 95}, "end_point": {"row": 18, "column": 101}}, {"id": 35, "type": ">", "text": ">", "parent": 33, "children": [], "start_point": {"row": 18, "column": 101}, "end_point": {"row": 18, "column": 102}}, {"id": 36, "type": "type_identifier", "text": "ElementWiseAssemblyMatrix", "parent": 24, "children": [], "start_point": {"row": 18, "column": 103}, "end_point": {"row": 18, "column": 128}}, {"id": 37, "type": "type_definition", "text": "typedef tarch::la::Matrix<NUMBER_OF_VERTICES_PER_ELEMENT,NUMBER_OF_VERTICES_PER_ELEMENT, std::complex<double> > ComplexElementWiseAssemblyMatrix;", "parent": 21, "children": [38, 39, 40, 44, 45, 46, 53], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 151}}, {"id": 38, "type": "typedef", "text": "typedef", "parent": 37, "children": [], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 13}}, {"id": 39, "type": "type_identifier", "text": "tarch", "parent": 37, "children": [], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 19}}, {"id": 40, "type": "ERROR", "text": "::la::Matrix<", "parent": 37, "children": [41, 42, 43], "start_point": {"row": 20, "column": 19}, "end_point": {"row": 20, "column": 32}}, {"id": 41, "type": "type_identifier", "text": "la", "parent": 40, "children": [], "start_point": {"row": 20, "column": 21}, "end_point": {"row": 20, "column": 23}}, {"id": 42, "type": "type_identifier", "text": "Matrix", "parent": 40, "children": [], "start_point": {"row": 20, "column": 25}, "end_point": {"row": 20, "column": 31}}, {"id": 43, "type": "<", "text": "<", "parent": 40, "children": [], "start_point": {"row": 20, "column": 31}, "end_point": {"row": 20, "column": 32}}, {"id": 44, "type": "type_identifier", "text": "NUMBER_OF_VERTICES_PER_ELEMENT", "parent": 37, "children": [], "start_point": {"row": 20, "column": 32}, "end_point": {"row": 20, "column": 62}}, {"id": 45, "type": "type_identifier", "text": "NUMBER_OF_VERTICES_PER_ELEMENT", "parent": 37, "children": [], "start_point": {"row": 20, "column": 63}, "end_point": {"row": 20, "column": 93}}, {"id": 46, "type": "ERROR", "text": "std::complex<double> >", "parent": 37, "children": [47, 48, 49, 50, 51, 52], "start_point": {"row": 20, "column": 95}, "end_point": {"row": 20, "column": 117}}, {"id": 47, "type": "type_identifier", "text": "std", "parent": 46, "children": [], "start_point": {"row": 20, "column": 95}, "end_point": {"row": 20, "column": 98}}, {"id": 48, "type": "type_identifier", "text": "complex", "parent": 46, "children": [], "start_point": {"row": 20, "column": 100}, "end_point": {"row": 20, "column": 107}}, {"id": 49, "type": "<", "text": "<", "parent": 46, "children": [], "start_point": {"row": 20, "column": 107}, "end_point": {"row": 20, "column": 108}}, {"id": 50, "type": "primitive_type", "text": "double", "parent": 46, "children": [], "start_point": {"row": 20, "column": 108}, "end_point": {"row": 20, "column": 114}}, {"id": 51, "type": ">", "text": ">", "parent": 46, "children": [], "start_point": {"row": 20, "column": 114}, "end_point": {"row": 20, "column": 115}}, {"id": 52, "type": ">", "text": ">", "parent": 46, "children": [], "start_point": {"row": 20, "column": 116}, "end_point": {"row": 20, "column": 117}}, {"id": 53, "type": "type_identifier", "text": "ComplexElementWiseAssemblyMatrix", "parent": 37, "children": [], "start_point": {"row": 20, "column": 118}, "end_point": {"row": 20, "column": 150}}, {"id": 54, "type": "type_definition", "text": "typedef tarch::la::Matrix<TWO_POWER_D,TWO_POWER_D, double> InterGridTransferMatrix;", "parent": 21, "children": [55, 56, 57, 61, 62, 63, 66], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 89}}, {"id": 55, "type": "typedef", "text": "typedef", "parent": 54, "children": [], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 13}}, {"id": 56, "type": "type_identifier", "text": "tarch", "parent": 54, "children": [], "start_point": {"row": 22, "column": 14}, "end_point": {"row": 22, "column": 19}}, {"id": 57, "type": "ERROR", "text": "::la::Matrix<", "parent": 54, "children": [58, 59, 60], "start_point": {"row": 22, "column": 19}, "end_point": {"row": 22, "column": 32}}, {"id": 58, "type": "type_identifier", "text": "la", "parent": 57, "children": [], "start_point": {"row": 22, "column": 21}, "end_point": {"row": 22, "column": 23}}, {"id": 59, "type": "type_identifier", "text": "Matrix", "parent": 57, "children": [], "start_point": {"row": 22, "column": 25}, "end_point": {"row": 22, "column": 31}}, {"id": 60, "type": "<", "text": "<", "parent": 57, "children": [], "start_point": {"row": 22, "column": 31}, "end_point": {"row": 22, "column": 32}}, {"id": 61, "type": "type_identifier", "text": "TWO_POWER_D", "parent": 54, "children": [], "start_point": {"row": 22, "column": 32}, "end_point": {"row": 22, "column": 43}}, {"id": 62, "type": "type_identifier", "text": "TWO_POWER_D", "parent": 54, "children": [], "start_point": {"row": 22, "column": 44}, "end_point": {"row": 22, "column": 55}}, {"id": 63, "type": "ERROR", "text": "double>", "parent": 54, "children": [64, 65], "start_point": {"row": 22, "column": 57}, "end_point": {"row": 22, "column": 64}}, {"id": 64, "type": "primitive_type", "text": "double", "parent": 63, "children": [], "start_point": {"row": 22, "column": 57}, "end_point": {"row": 22, "column": 63}}, {"id": 65, "type": ">", "text": ">", "parent": 63, "children": [], "start_point": {"row": 22, "column": 63}, "end_point": {"row": 22, "column": 64}}, {"id": 66, "type": "type_identifier", "text": "InterGridTransferMatrix", "parent": 54, "children": [], "start_point": {"row": 22, "column": 65}, "end_point": {"row": 22, "column": 88}}, {"id": 67, "type": "ERROR", "text": "typedef tarch::la::Matrix<NUMBER_OF_VERTICES_PER_ELEMENT/", "parent": 21, "children": [68, 69, 70, 74, 75], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 63}}, {"id": 68, "type": "typedef", "text": "typedef", "parent": 67, "children": [], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 13}}, {"id": 69, "type": "type_identifier", "text": "tarch", "parent": 67, "children": [], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 24, "column": 19}}, {"id": 70, "type": "ERROR", "text": "::la::Matrix<", "parent": 67, "children": [71, 72, 73], "start_point": {"row": 24, "column": 19}, "end_point": {"row": 24, "column": 32}}, {"id": 71, "type": "type_identifier", "text": "la", "parent": 70, "children": [], "start_point": {"row": 24, "column": 21}, "end_point": {"row": 24, "column": 23}}, {"id": 72, "type": "type_identifier", "text": "Matrix", "parent": 70, "children": [], "start_point": {"row": 24, "column": 25}, "end_point": {"row": 24, "column": 31}}, {"id": 73, "type": "<", "text": "<", "parent": 70, "children": [], "start_point": {"row": 24, "column": 31}, "end_point": {"row": 24, "column": 32}}, {"id": 74, "type": "type_identifier", "text": "NUMBER_OF_VERTICES_PER_ELEMENT", "parent": 67, "children": [], "start_point": {"row": 24, "column": 32}, "end_point": {"row": 24, "column": 62}}, {"id": 75, "type": "/", "text": "/", "parent": 67, "children": [], "start_point": {"row": 24, "column": 62}, "end_point": {"row": 24, "column": 63}}, {"id": 76, "type": "comma_expression", "text": "2,NUMBER_OF_VERTICES_PER_ELEMENT/2, double> ElementWiseAssemblyMatrixOnSpaceTimeGrid", "parent": 21, "children": [77, 78], "start_point": {"row": 24, "column": 63}, "end_point": {"row": 24, "column": 147}}, {"id": 77, "type": "number_literal", "text": "2", "parent": 76, "children": [], "start_point": {"row": 24, "column": 63}, "end_point": {"row": 24, "column": 64}}, {"id": 78, "type": "comma_expression", "text": "NUMBER_OF_VERTICES_PER_ELEMENT/2, double> ElementWiseAssemblyMatrixOnSpaceTimeGrid", "parent": 76, "children": [79, 83], "start_point": {"row": 24, "column": 65}, "end_point": {"row": 24, "column": 147}}, {"id": 79, "type": "binary_expression", "text": "NUMBER_OF_VERTICES_PER_ELEMENT/2", "parent": 78, "children": [80, 81, 82], "start_point": {"row": 24, "column": 65}, "end_point": {"row": 24, "column": 97}}, {"id": 80, "type": "identifier", "text": "NUMBER_OF_VERTICES_PER_ELEMENT", "parent": 79, "children": [], "start_point": {"row": 24, "column": 65}, "end_point": {"row": 24, "column": 95}}, {"id": 81, "type": "/", "text": "/", "parent": 79, "children": [], "start_point": {"row": 24, "column": 95}, "end_point": {"row": 24, "column": 96}}, {"id": 82, "type": "number_literal", "text": "2", "parent": 79, "children": [], "start_point": {"row": 24, "column": 96}, "end_point": {"row": 24, "column": 97}}, {"id": 83, "type": "binary_expression", "text": "double> ElementWiseAssemblyMatrixOnSpaceTimeGrid", "parent": 78, "children": [84, 85, 86], "start_point": {"row": 24, "column": 99}, "end_point": {"row": 24, "column": 147}}, {"id": 84, "type": "identifier", "text": "double", "parent": 83, "children": [], "start_point": {"row": 24, "column": 99}, "end_point": {"row": 24, "column": 105}}, {"id": 85, "type": ">", "text": ">", "parent": 83, "children": [], "start_point": {"row": 24, "column": 105}, "end_point": {"row": 24, "column": 106}}, {"id": 86, "type": "identifier", "text": "ElementWiseAssemblyMatrixOnSpaceTimeGrid", "parent": 83, "children": [], "start_point": {"row": 24, "column": 107}, "end_point": {"row": 24, "column": 147}}, {"id": 87, "type": "type_definition", "text": "typedef tarch::la::Vector<THREE_POWER_D,double> Stencil;", "parent": 21, "children": [88, 89, 90, 94, 95, 98], "start_point": {"row": 29, "column": 6}, "end_point": {"row": 29, "column": 63}}, {"id": 88, "type": "typedef", "text": "typedef", "parent": 87, "children": [], "start_point": {"row": 29, "column": 6}, "end_point": {"row": 29, "column": 13}}, {"id": 89, "type": "type_identifier", "text": "tarch", "parent": 87, "children": [], "start_point": {"row": 29, "column": 14}, "end_point": {"row": 29, "column": 19}}, {"id": 90, "type": "ERROR", "text": "::la::Vector<", "parent": 87, "children": [91, 92, 93], "start_point": {"row": 29, "column": 19}, "end_point": {"row": 29, "column": 32}}, {"id": 91, "type": "type_identifier", "text": "la", "parent": 90, "children": [], "start_point": {"row": 29, "column": 21}, "end_point": {"row": 29, "column": 23}}, {"id": 92, "type": "type_identifier", "text": "Vector", "parent": 90, "children": [], "start_point": {"row": 29, "column": 25}, "end_point": {"row": 29, "column": 31}}, {"id": 93, "type": "<", "text": "<", "parent": 90, "children": [], "start_point": {"row": 29, "column": 31}, "end_point": {"row": 29, "column": 32}}, {"id": 94, "type": "type_identifier", "text": "THREE_POWER_D", "parent": 87, "children": [], "start_point": {"row": 29, "column": 32}, "end_point": {"row": 29, "column": 45}}, {"id": 95, "type": "ERROR", "text": "double>", "parent": 87, "children": [96, 97], "start_point": {"row": 29, "column": 46}, "end_point": {"row": 29, "column": 53}}, {"id": 96, "type": "primitive_type", "text": "double", "parent": 95, "children": [], "start_point": {"row": 29, "column": 46}, "end_point": {"row": 29, "column": 52}}, {"id": 97, "type": ">", "text": ">", "parent": 95, "children": [], "start_point": {"row": 29, "column": 52}, "end_point": {"row": 29, "column": 53}}, {"id": 98, "type": "type_identifier", "text": "Stencil", "parent": 87, "children": [], "start_point": {"row": 29, "column": 55}, "end_point": {"row": 29, "column": 62}}, {"id": 99, "type": "type_definition", "text": "typedef tarch::la::Vector<THREE_POWER_D,std::complex<double> > ComplexStencil;", "parent": 21, "children": [100, 101, 102, 106, 107, 114], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 85}}, {"id": 100, "type": "typedef", "text": "typedef", "parent": 99, "children": [], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 13}}, {"id": 101, "type": "type_identifier", "text": "tarch", "parent": 99, "children": [], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 19}}, {"id": 102, "type": "ERROR", "text": "::la::Vector<", "parent": 99, "children": [103, 104, 105], "start_point": {"row": 30, "column": 19}, "end_point": {"row": 30, "column": 32}}, {"id": 103, "type": "type_identifier", "text": "la", "parent": 102, "children": [], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 23}}, {"id": 104, "type": "type_identifier", "text": "Vector", "parent": 102, "children": [], "start_point": {"row": 30, "column": 25}, "end_point": {"row": 30, "column": 31}}, {"id": 105, "type": "<", "text": "<", "parent": 102, "children": [], "start_point": {"row": 30, "column": 31}, "end_point": {"row": 30, "column": 32}}, {"id": 106, "type": "type_identifier", "text": "THREE_POWER_D", "parent": 99, "children": [], "start_point": {"row": 30, "column": 32}, "end_point": {"row": 30, "column": 45}}, {"id": 107, "type": "ERROR", "text": "std::complex<double> >", "parent": 99, "children": [108, 109, 110, 111, 112, 113], "start_point": {"row": 30, "column": 46}, "end_point": {"row": 30, "column": 68}}, {"id": 108, "type": "type_identifier", "text": "std", "parent": 107, "children": [], "start_point": {"row": 30, "column": 46}, "end_point": {"row": 30, "column": 49}}, {"id": 109, "type": "type_identifier", "text": "complex", "parent": 107, "children": [], "start_point": {"row": 30, "column": 51}, "end_point": {"row": 30, "column": 58}}, {"id": 110, "type": "<", "text": "<", "parent": 107, "children": [], "start_point": {"row": 30, "column": 58}, "end_point": {"row": 30, "column": 59}}, {"id": 111, "type": "primitive_type", "text": "double", "parent": 107, "children": [], "start_point": {"row": 30, "column": 59}, "end_point": {"row": 30, "column": 65}}, {"id": 112, "type": ">", "text": ">", "parent": 107, "children": [], "start_point": {"row": 30, "column": 65}, "end_point": {"row": 30, "column": 66}}, {"id": 113, "type": ">", "text": ">", "parent": 107, "children": [], "start_point": {"row": 30, "column": 67}, "end_point": {"row": 30, "column": 68}}, {"id": 114, "type": "type_identifier", "text": "ComplexStencil", "parent": 99, "children": [], "start_point": {"row": 30, "column": 70}, "end_point": {"row": 30, "column": 84}}, {"id": 115, "type": "type_definition", "text": "typedef tarch::la::Vector<TWO_POWER_D_TIMES_THREE_POWER_D,double> VectorOfStencils;", "parent": 21, "children": [116, 117, 118, 122, 123, 126], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 90}}, {"id": 116, "type": "typedef", "text": "typedef", "parent": 115, "children": [], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 13}}, {"id": 117, "type": "type_identifier", "text": "tarch", "parent": 115, "children": [], "start_point": {"row": 35, "column": 14}, "end_point": {"row": 35, "column": 19}}, {"id": 118, "type": "ERROR", "text": "::la::Vector<", "parent": 115, "children": [119, 120, 121], "start_point": {"row": 35, "column": 19}, "end_point": {"row": 35, "column": 32}}, {"id": 119, "type": "type_identifier", "text": "la", "parent": 118, "children": [], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 23}}, {"id": 120, "type": "type_identifier", "text": "Vector", "parent": 118, "children": [], "start_point": {"row": 35, "column": 25}, "end_point": {"row": 35, "column": 31}}, {"id": 121, "type": "<", "text": "<", "parent": 118, "children": [], "start_point": {"row": 35, "column": 31}, "end_point": {"row": 35, "column": 32}}, {"id": 122, "type": "type_identifier", "text": "TWO_POWER_D_TIMES_THREE_POWER_D", "parent": 115, "children": [], "start_point": {"row": 35, "column": 32}, "end_point": {"row": 35, "column": 63}}, {"id": 123, "type": "ERROR", "text": "double>", "parent": 115, "children": [124, 125], "start_point": {"row": 35, "column": 64}, "end_point": {"row": 35, "column": 71}}, {"id": 124, "type": "primitive_type", "text": "double", "parent": 123, "children": [], "start_point": {"row": 35, "column": 64}, "end_point": {"row": 35, "column": 70}}, {"id": 125, "type": ">", "text": ">", "parent": 123, "children": [], "start_point": {"row": 35, "column": 70}, "end_point": {"row": 35, "column": 71}}, {"id": 126, "type": "type_identifier", "text": "VectorOfStencils", "parent": 115, "children": [], "start_point": {"row": 35, "column": 73}, "end_point": {"row": 35, "column": 89}}, {"id": 127, "type": "type_definition", "text": "typedef tarch::la::Vector<TWO_POWER_D_TIMES_THREE_POWER_D,std::complex<double> > VectorOfComplexStencils;", "parent": 21, "children": [128, 129, 130, 134, 135, 142], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 110}}, {"id": 128, "type": "typedef", "text": "typedef", "parent": 127, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 11}}, {"id": 129, "type": "type_identifier", "text": "tarch", "parent": 127, "children": [], "start_point": {"row": 36, "column": 12}, "end_point": {"row": 36, "column": 17}}, {"id": 130, "type": "ERROR", "text": "::la::Vector<", "parent": 127, "children": [131, 132, 133], "start_point": {"row": 36, "column": 17}, "end_point": {"row": 36, "column": 30}}, {"id": 131, "type": "type_identifier", "text": "la", "parent": 130, "children": [], "start_point": {"row": 36, "column": 19}, "end_point": {"row": 36, "column": 21}}, {"id": 132, "type": "type_identifier", "text": "Vector", "parent": 130, "children": [], "start_point": {"row": 36, "column": 23}, "end_point": {"row": 36, "column": 29}}, {"id": 133, "type": "<", "text": "<", "parent": 130, "children": [], "start_point": {"row": 36, "column": 29}, "end_point": {"row": 36, "column": 30}}, {"id": 134, "type": "type_identifier", "text": "TWO_POWER_D_TIMES_THREE_POWER_D", "parent": 127, "children": [], "start_point": {"row": 36, "column": 30}, "end_point": {"row": 36, "column": 61}}, {"id": 135, "type": "ERROR", "text": "std::complex<double> >", "parent": 127, "children": [136, 137, 138, 139, 140, 141], "start_point": {"row": 36, "column": 62}, "end_point": {"row": 36, "column": 84}}, {"id": 136, "type": "type_identifier", "text": "std", "parent": 135, "children": [], "start_point": {"row": 36, "column": 62}, "end_point": {"row": 36, "column": 65}}, {"id": 137, "type": "type_identifier", "text": "complex", "parent": 135, "children": [], "start_point": {"row": 36, "column": 67}, "end_point": {"row": 36, "column": 74}}, {"id": 138, "type": "<", "text": "<", "parent": 135, "children": [], "start_point": {"row": 36, "column": 74}, "end_point": {"row": 36, "column": 75}}, {"id": 139, "type": "primitive_type", "text": "double", "parent": 135, "children": [], "start_point": {"row": 36, "column": 75}, "end_point": {"row": 36, "column": 81}}, {"id": 140, "type": ">", "text": ">", "parent": 135, "children": [], "start_point": {"row": 36, "column": 81}, "end_point": {"row": 36, "column": 82}}, {"id": 141, "type": ">", "text": ">", "parent": 135, "children": [], "start_point": {"row": 36, "column": 83}, "end_point": {"row": 36, "column": 84}}, {"id": 142, "type": "type_identifier", "text": "VectorOfComplexStencils", "parent": 127, "children": [], "start_point": {"row": 36, "column": 86}, "end_point": {"row": 36, "column": 109}}, {"id": 143, "type": "type_definition", "text": "typedef tarch::la::Vector<NUMBER_OF_VERTICES_PER_ELEMENT,double> ElementWiseVector;", "parent": 21, "children": [144, 145, 146, 150, 151, 154], "start_point": {"row": 41, "column": 6}, "end_point": {"row": 41, "column": 89}}, {"id": 144, "type": "typedef", "text": "typedef", "parent": 143, "children": [], "start_point": {"row": 41, "column": 6}, "end_point": {"row": 41, "column": 13}}, {"id": 145, "type": "type_identifier", "text": "tarch", "parent": 143, "children": [], "start_point": {"row": 41, "column": 14}, "end_point": {"row": 41, "column": 19}}, {"id": 146, "type": "ERROR", "text": "::la::Vector<", "parent": 143, "children": [147, 148, 149], "start_point": {"row": 41, "column": 19}, "end_point": {"row": 41, "column": 32}}, {"id": 147, "type": "type_identifier", "text": "la", "parent": 146, "children": [], "start_point": {"row": 41, "column": 21}, "end_point": {"row": 41, "column": 23}}, {"id": 148, "type": "type_identifier", "text": "Vector", "parent": 146, "children": [], "start_point": {"row": 41, "column": 25}, "end_point": {"row": 41, "column": 31}}, {"id": 149, "type": "<", "text": "<", "parent": 146, "children": [], "start_point": {"row": 41, "column": 31}, "end_point": {"row": 41, "column": 32}}, {"id": 150, "type": "type_identifier", "text": "NUMBER_OF_VERTICES_PER_ELEMENT", "parent": 143, "children": [], "start_point": {"row": 41, "column": 32}, "end_point": {"row": 41, "column": 62}}, {"id": 151, "type": "ERROR", "text": "double>", "parent": 143, "children": [152, 153], "start_point": {"row": 41, "column": 63}, "end_point": {"row": 41, "column": 70}}, {"id": 152, "type": "primitive_type", "text": "double", "parent": 151, "children": [], "start_point": {"row": 41, "column": 63}, "end_point": {"row": 41, "column": 69}}, {"id": 153, "type": ">", "text": ">", "parent": 151, "children": [], "start_point": {"row": 41, "column": 69}, "end_point": {"row": 41, "column": 70}}, {"id": 154, "type": "type_identifier", "text": "ElementWiseVector", "parent": 143, "children": [], "start_point": {"row": 41, "column": 71}, "end_point": {"row": 41, "column": 88}}, {"id": 155, "type": "declaration", "text": "int getStencilEntryLinearisedIndex( const tarch::la::Vector<DIMENSIONS,int> stencilEntry);", "parent": 21, "children": [156, 157], "start_point": {"row": 43, "column": 6}, "end_point": {"row": 43, "column": 97}}, {"id": 156, "type": "primitive_type", "text": "int", "parent": 155, "children": [], "start_point": {"row": 43, "column": 6}, "end_point": {"row": 43, "column": 9}}, {"id": 157, "type": "function_declarator", "text": "getStencilEntryLinearisedIndex( const tarch::la::Vector<DIMENSIONS,int> stencilEntry)", "parent": 155, "children": [158, 159], "start_point": {"row": 43, "column": 10}, "end_point": {"row": 43, "column": 96}}, {"id": 158, "type": "identifier", "text": "getStencilEntryLinearisedIndex", "parent": 157, "children": [], "start_point": {"row": 43, "column": 10}, "end_point": {"row": 43, "column": 40}}, {"id": 159, "type": "parameter_list", "text": "( const tarch::la::Vector<DIMENSIONS,int> stencilEntry)", "parent": 157, "children": [160, 167], "start_point": {"row": 43, "column": 40}, "end_point": {"row": 43, "column": 96}}, {"id": 160, "type": "parameter_declaration", "text": "const tarch::la::Vector<DIMENSIONS", "parent": 159, "children": [161, 162, 166], "start_point": {"row": 43, "column": 42}, "end_point": {"row": 43, "column": 76}}, {"id": 161, "type": "type_identifier", "text": "tarch", "parent": 160, "children": [], "start_point": {"row": 43, "column": 48}, "end_point": {"row": 43, "column": 53}}, {"id": 162, "type": "ERROR", "text": "::la::Vector<", "parent": 160, "children": [163, 164, 165], "start_point": {"row": 43, "column": 53}, "end_point": {"row": 43, "column": 66}}, {"id": 163, "type": "identifier", "text": "la", "parent": 162, "children": [], "start_point": {"row": 43, "column": 55}, "end_point": {"row": 43, "column": 57}}, {"id": 164, "type": "identifier", "text": "Vector", "parent": 162, "children": [], "start_point": {"row": 43, "column": 59}, "end_point": {"row": 43, "column": 65}}, {"id": 165, "type": "<", "text": "<", "parent": 162, "children": [], "start_point": {"row": 43, "column": 65}, "end_point": {"row": 43, "column": 66}}, {"id": 166, "type": "identifier", "text": "DIMENSIONS", "parent": 160, "children": [], "start_point": {"row": 43, "column": 66}, "end_point": {"row": 43, "column": 76}}, {"id": 167, "type": "parameter_declaration", "text": "int> stencilEntry", "parent": 159, "children": [168, 169, 171], "start_point": {"row": 43, "column": 77}, "end_point": {"row": 43, "column": 95}}, {"id": 168, "type": "primitive_type", "text": "int", "parent": 167, "children": [], "start_point": {"row": 43, "column": 77}, "end_point": {"row": 43, "column": 80}}, {"id": 169, "type": "ERROR", "text": ">", "parent": 167, "children": [170], "start_point": {"row": 43, "column": 80}, "end_point": {"row": 43, "column": 81}}, {"id": 170, "type": ">", "text": ">", "parent": 169, "children": [], "start_point": {"row": 43, "column": 80}, "end_point": {"row": 43, "column": 81}}, {"id": 171, "type": "identifier", "text": "stencilEntry", "parent": 167, "children": [], "start_point": {"row": 43, "column": 83}, "end_point": {"row": 43, "column": 95}}, {"id": 172, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 6}}]}, "node_categories": {"declarations": {"functions": [18, 21, 157], "variables": [24, 37, 54, 87, 99, 115, 127, 143, 155, 160, 167], "classes": [], "imports": [6, 7, 9, 10, 12, 13, 15, 16], "modules": [], "enums": []}, "statements": {"expressions": [76, 78, 79, 83], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 19, 20, 22, 23, 26, 28, 29, 31, 32, 36, 39, 41, 42, 44, 45, 47, 48, 53, 56, 58, 59, 61, 62, 66, 69, 71, 72, 74, 80, 84, 86, 89, 91, 92, 94, 98, 101, 103, 104, 106, 108, 109, 114, 117, 119, 120, 122, 126, 129, 131, 132, 134, 136, 137, 142, 145, 147, 148, 150, 154, 158, 161, 163, 164, 166, 171, 172], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 77, 82], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 18, "universal_type": "function", "name": "getStencilEntryLinearisedIndex", "text_snippet": "namespace matrixfree {\n namespace stencil {\n /**\n * Element-wise Matrix\n */\n "}, {"node_id": 21, "universal_type": "function", "name": "getStencilEntryLinearisedIndex", "text_snippet": "namespace stencil {\n /**\n * Element-wise Matrix\n */\n typedef tarch::la::Matrix"}, {"node_id": 157, "universal_type": "function", "name": "unknown", "text_snippet": "getStencilEntryLinearisedIndex( const tarch::la::Vector<DIMENSIONS,int> stencilEntry)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"peano/utils/Globals.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"tarch/la/Vector.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"tarch/la/Matrix.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <complex>\n"}, {"node_id": 16, "text": "#include"}]}, "original_source_code": "// This file is part of the Peano project. For conditions of distribution and\n// use, please see the copyright notice at www.peano-framework.org\n#ifndef _MATRIXFREE_SOLVER_STENCIL_H_\n#define _MATRIXFREE_SOLVER_STENCIL_H_\n\n#include \"peano/utils/Globals.h\"\n\n#include \"tarch/la/Vector.h\"\n#include \"tarch/la/Matrix.h\"\n\n#include <complex>\n\n\nnamespace matrixfree {\n namespace stencil {\n /**\n * Element-wise Matrix\n */\n typedef tarch::la::Matrix<NUMBER_OF_VERTICES_PER_ELEMENT,NUMBER_OF_VERTICES_PER_ELEMENT, double> ElementWiseAssemblyMatrix;\n\n typedef tarch::la::Matrix<NUMBER_OF_VERTICES_PER_ELEMENT,NUMBER_OF_VERTICES_PER_ELEMENT, std::complex<double> > ComplexElementWiseAssemblyMatrix;\n\n typedef tarch::la::Matrix<TWO_POWER_D,TWO_POWER_D, double> InterGridTransferMatrix;\n\n typedef tarch::la::Matrix<NUMBER_OF_VERTICES_PER_ELEMENT/2,NUMBER_OF_VERTICES_PER_ELEMENT/2, double> ElementWiseAssemblyMatrixOnSpaceTimeGrid;\n\n /**\n * Stencil\n */\n typedef tarch::la::Vector<THREE_POWER_D,double> Stencil;\n typedef tarch::la::Vector<THREE_POWER_D,std::complex<double> > ComplexStencil;\n\n /**\n * Vectors.\n */\n typedef tarch::la::Vector<TWO_POWER_D_TIMES_THREE_POWER_D,double> VectorOfStencils;\n typedef tarch::la::Vector<TWO_POWER_D_TIMES_THREE_POWER_D,std::complex<double> > VectorOfComplexStencils;\n\n /**\n * Vector of Element (Lexicographic Ordering of Unknowns)\n */\n typedef tarch::la::Vector<NUMBER_OF_VERTICES_PER_ELEMENT,double> ElementWiseVector;\n\n int getStencilEntryLinearisedIndex( const tarch::la::Vector<DIMENSIONS,int> stencilEntry);\n\n\n }\n}\n\n#endif\n"}
80,291
c
#pragma once #include <led.h> #include <stdint.h> #define LED_R_PIN PORTD.PODR.BIT.B2 //R #define LED_G_PIN PORTD.PODR.BIT.B3 //G #define LED_B_PIN PORTD.PODR.BIT.B4 //B namespace umouse { /////////////////////////////////////////////////////////////////// class LED_R : public LED { public: void setState(bool state_) { LED_R_PIN = 1-state_; state = state_; }; }; /////////////////////////////////////////////////////////////////// class LED_G : public LED { public: void setState(bool state_) { LED_G_PIN = 1-state_; state = state_; }; }; /////////////////////////////////////////////////////////////////// class LED_B : public LED { public: void setState(bool state_) { LED_B_PIN = 1-state_; state = state_; }; }; /////////////////////////////////////////////////////////////////// class FcLed { public: static FcLed& getInstance() { static FcLed instance; return instance; } LED_R R; LED_G G; LED_B B; void update() { R.update(); G.update(); B.update(); } void turn(bool r, bool g, bool b) { R.turn(r); G.turn(g); B.turn(b); } void flash(bool r, bool g, bool b, uint16_t on_count, uint16_t off_count) { if(r == 1) R.flash(on_count, off_count); else R.turn(0); if(g == 1) G.flash(on_count, off_count); else G.turn(0); if(b == 1) B.flash(on_count, off_count); else B.turn(0); } private: FcLed() {turn(0,0,0);} ~FcLed() {turn(0,0,0);} FcLed(FcLed&) {turn(0,0,0);} }; }
27.28
65
(translation_unit) "#pragma once\n\n#include <led.h>\n#include <stdint.h>\n\n#define LED_R_PIN PORTD.PODR.BIT.B2 //R\n#define LED_G_PIN PORTD.PODR.BIT.B3 //G\n#define LED_B_PIN PORTD.PODR.BIT.B4 //B\n\nnamespace umouse {\n\n///////////////////////////////////////////////////////////////////\n class LED_R : public LED {\n public:\n void setState(bool state_) {\n LED_R_PIN = 1-state_;\n state = state_;\n };\n };\n///////////////////////////////////////////////////////////////////\n class LED_G : public LED {\n public:\n void setState(bool state_) {\n LED_G_PIN = 1-state_;\n state = state_;\n };\n };\n///////////////////////////////////////////////////////////////////\n class LED_B : public LED {\n public:\n void setState(bool state_) {\n LED_B_PIN = 1-state_;\n state = state_;\n };\n };\n///////////////////////////////////////////////////////////////////\n class FcLed {\n public:\n static FcLed& getInstance() {\n static FcLed instance;\n return instance;\n }\n\n LED_R R;\n LED_G G;\n LED_B B;\n void update() {\n R.update();\n G.update();\n B.update();\n }\n void turn(bool r, bool g, bool b) {\n R.turn(r);\n G.turn(g);\n B.turn(b);\n }\n\n void flash(bool r, bool g, bool b, uint16_t on_count, uint16_t off_count) {\n if(r == 1) R.flash(on_count, off_count);\n else R.turn(0);\n\n if(g == 1) G.flash(on_count, off_count);\n else G.turn(0);\n\n if(b == 1) B.flash(on_count, off_count);\n else B.turn(0);\n }\n private:\n FcLed() {turn(0,0,0);}\n ~FcLed() {turn(0,0,0);}\n FcLed(FcLed&) {turn(0,0,0);}\n };\n\n}\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <led.h>\n" (#include) "#include" (system_lib_string) "<led.h>" (preproc_include) "#include <stdint.h>\n" (#include) "#include" (system_lib_string) "<stdint.h>" (preproc_def) "#define LED_R_PIN PORTD.PODR.BIT.B2 //R\n" (#define) "#define" (identifier) "LED_R_PIN" (preproc_arg) "PORTD.PODR.BIT.B2 //R" (preproc_def) "#define LED_G_PIN PORTD.PODR.BIT.B3 //G\n" (#define) "#define" (identifier) "LED_G_PIN" (preproc_arg) "PORTD.PODR.BIT.B3 //G" (preproc_def) "#define LED_B_PIN PORTD.PODR.BIT.B4 //B\n" (#define) "#define" (identifier) "LED_B_PIN" (preproc_arg) "PORTD.PODR.BIT.B4 //B" (function_definition) "namespace umouse {\n\n///////////////////////////////////////////////////////////////////\n class LED_R : public LED {\n public:\n void setState(bool state_) {\n LED_R_PIN = 1-state_;\n state = state_;\n };\n }" (type_identifier) "namespace" (identifier) "umouse" (compound_statement) "{\n\n///////////////////////////////////////////////////////////////////\n class LED_R : public LED {\n public:\n void setState(bool state_) {\n LED_R_PIN = 1-state_;\n state = state_;\n };\n }" ({) "{" (comment) "///////////////////////////////////////////////////////////////////" (function_definition) "class LED_R : public LED {\n public:\n void setState(bool state_) {\n LED_R_PIN = 1-state_;\n state = state_;\n }" (type_identifier) "class" (ERROR) "LED_R : public" (identifier) "LED_R" (:) ":" (identifier) "public" (identifier) "LED" (compound_statement) "{\n public:\n void setState(bool state_) {\n LED_R_PIN = 1-state_;\n state = state_;\n }" ({) "{" (labeled_statement) "public:\n void setState(bool state_) {\n LED_R_PIN = 1-state_;" (statement_identifier) "public" (:) ":" (declaration) "void setState(bool state_) {\n LED_R_PIN = 1-state_;" (primitive_type) "void" (ERROR) "setState(bool state_) {" (function_declarator) "setState(bool state_)" (identifier) "setState" (parameter_list) "(bool state_)" (() "(" (parameter_declaration) "bool state_" (primitive_type) "bool" (identifier) "state_" ()) ")" ({) "{" (init_declarator) "LED_R_PIN = 1-state_" (identifier) "LED_R_PIN" (=) "=" (binary_expression) "1-state_" (number_literal) "1" (-) "-" (identifier) "state_" (;) ";" (expression_statement) "state = state_;" (assignment_expression) "state = state_" (identifier) "state" (=) "=" (identifier) "state_" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (comment) "///////////////////////////////////////////////////////////////////" (function_definition) "class LED_G : public LED {\n public:\n void setState(bool state_) {\n LED_G_PIN = 1-state_;\n state = state_;\n };\n }" (type_identifier) "class" (ERROR) "LED_G : public" (identifier) "LED_G" (:) ":" (identifier) "public" (identifier) "LED" (compound_statement) "{\n public:\n void setState(bool state_) {\n LED_G_PIN = 1-state_;\n state = state_;\n };\n }" ({) "{" (labeled_statement) "public:\n void setState(bool state_) {\n LED_G_PIN = 1-state_;\n state = state_;\n }" (statement_identifier) "public" (:) ":" (ERROR) "void setState(bool state_)" (primitive_type) "void" (function_declarator) "setState(bool state_)" (identifier) "setState" (parameter_list) "(bool state_)" (() "(" (parameter_declaration) "bool state_" (primitive_type) "bool" (identifier) "state_" ()) ")" (compound_statement) "{\n LED_G_PIN = 1-state_;\n state = state_;\n }" ({) "{" (expression_statement) "LED_G_PIN = 1-state_;" (assignment_expression) "LED_G_PIN = 1-state_" (identifier) "LED_G_PIN" (=) "=" (binary_expression) "1-state_" (number_literal) "1" (-) "-" (identifier) "state_" (;) ";" (expression_statement) "state = state_;" (assignment_expression) "state = state_" (identifier) "state" (=) "=" (identifier) "state_" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (comment) "///////////////////////////////////////////////////////////////////" (function_definition) "class LED_B : public LED {\n public:\n void setState(bool state_) {\n LED_B_PIN = 1-state_;\n state = state_;\n };\n }" (type_identifier) "class" (ERROR) "LED_B : public" (identifier) "LED_B" (:) ":" (identifier) "public" (identifier) "LED" (compound_statement) "{\n public:\n void setState(bool state_) {\n LED_B_PIN = 1-state_;\n state = state_;\n };\n }" ({) "{" (labeled_statement) "public:\n void setState(bool state_) {\n LED_B_PIN = 1-state_;\n state = state_;\n }" (statement_identifier) "public" (:) ":" (ERROR) "void setState(bool state_)" (primitive_type) "void" (function_declarator) "setState(bool state_)" (identifier) "setState" (parameter_list) "(bool state_)" (() "(" (parameter_declaration) "bool state_" (primitive_type) "bool" (identifier) "state_" ()) ")" (compound_statement) "{\n LED_B_PIN = 1-state_;\n state = state_;\n }" ({) "{" (expression_statement) "LED_B_PIN = 1-state_;" (assignment_expression) "LED_B_PIN = 1-state_" (identifier) "LED_B_PIN" (=) "=" (binary_expression) "1-state_" (number_literal) "1" (-) "-" (identifier) "state_" (;) ";" (expression_statement) "state = state_;" (assignment_expression) "state = state_" (identifier) "state" (=) "=" (identifier) "state_" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (comment) "///////////////////////////////////////////////////////////////////" (function_definition) "class FcLed {\n public:\n static FcLed& getInstance() {\n static FcLed instance;\n return instance;\n }" (type_identifier) "class" (identifier) "FcLed" (compound_statement) "{\n public:\n static FcLed& getInstance() {\n static FcLed instance;\n return instance;\n }" ({) "{" (labeled_statement) "public:\n static FcLed& getInstance() {\n static FcLed instance;" (statement_identifier) "public" (:) ":" (declaration) "static FcLed& getInstance() {\n static FcLed instance;" (storage_class_specifier) "static" (static) "static" (type_identifier) "FcLed" (ERROR) "& getInstance() {\n static FcLed" (&) "&" (function_declarator) "getInstance()" (identifier) "getInstance" (parameter_list) "()" (() "(" ()) ")" ({) "{" (static) "static" (identifier) "FcLed" (identifier) "instance" (;) ";" (return_statement) "return instance;" (return) "return" (identifier) "instance" (;) ";" (}) "}" (declaration) "LED_R R;" (type_identifier) "LED_R" (identifier) "R" (;) ";" (declaration) "LED_G G;" (type_identifier) "LED_G" (identifier) "G" (;) ";" (declaration) "LED_B B;" (type_identifier) "LED_B" (identifier) "B" (;) ";" (function_definition) "void update() {\n R.update();\n G.update();\n B.update();\n }" (primitive_type) "void" (function_declarator) "update()" (identifier) "update" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n R.update();\n G.update();\n B.update();\n }" ({) "{" (expression_statement) "R.update();" (call_expression) "R.update()" (field_expression) "R.update" (identifier) "R" (.) "." (field_identifier) "update" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "G.update();" (call_expression) "G.update()" (field_expression) "G.update" (identifier) "G" (.) "." (field_identifier) "update" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "B.update();" (call_expression) "B.update()" (field_expression) "B.update" (identifier) "B" (.) "." (field_identifier) "update" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (function_definition) "void turn(bool r, bool g, bool b) {\n R.turn(r);\n G.turn(g);\n B.turn(b);\n }" (primitive_type) "void" (function_declarator) "turn(bool r, bool g, bool b)" (identifier) "turn" (parameter_list) "(bool r, bool g, bool b)" (() "(" (parameter_declaration) "bool r" (primitive_type) "bool" (identifier) "r" (,) "," (parameter_declaration) "bool g" (primitive_type) "bool" (identifier) "g" (,) "," (parameter_declaration) "bool b" (primitive_type) "bool" (identifier) "b" ()) ")" (compound_statement) "{\n R.turn(r);\n G.turn(g);\n B.turn(b);\n }" ({) "{" (expression_statement) "R.turn(r);" (call_expression) "R.turn(r)" (field_expression) "R.turn" (identifier) "R" (.) "." (field_identifier) "turn" (argument_list) "(r)" (() "(" (identifier) "r" ()) ")" (;) ";" (expression_statement) "G.turn(g);" (call_expression) "G.turn(g)" (field_expression) "G.turn" (identifier) "G" (.) "." (field_identifier) "turn" (argument_list) "(g)" (() "(" (identifier) "g" ()) ")" (;) ";" (expression_statement) "B.turn(b);" (call_expression) "B.turn(b)" (field_expression) "B.turn" (identifier) "B" (.) "." (field_identifier) "turn" (argument_list) "(b)" (() "(" (identifier) "b" ()) ")" (;) ";" (}) "}" (function_definition) "void flash(bool r, bool g, bool b, uint16_t on_count, uint16_t off_count) {\n if(r == 1) R.flash(on_count, off_count);\n else R.turn(0);\n\n if(g == 1) G.flash(on_count, off_count);\n else G.turn(0);\n\n if(b == 1) B.flash(on_count, off_count);\n else B.turn(0);\n }" (primitive_type) "void" (function_declarator) "flash(bool r, bool g, bool b, uint16_t on_count, uint16_t off_count)" (identifier) "flash" (parameter_list) "(bool r, bool g, bool b, uint16_t on_count, uint16_t off_count)" (() "(" (parameter_declaration) "bool r" (primitive_type) "bool" (identifier) "r" (,) "," (parameter_declaration) "bool g" (primitive_type) "bool" (identifier) "g" (,) "," (parameter_declaration) "bool b" (primitive_type) "bool" (identifier) "b" (,) "," (parameter_declaration) "uint16_t on_count" (primitive_type) "uint16_t" (identifier) "on_count" (,) "," (parameter_declaration) "uint16_t off_count" (primitive_type) "uint16_t" (identifier) "off_count" ()) ")" (compound_statement) "{\n if(r == 1) R.flash(on_count, off_count);\n else R.turn(0);\n\n if(g == 1) G.flash(on_count, off_count);\n else G.turn(0);\n\n if(b == 1) B.flash(on_count, off_count);\n else B.turn(0);\n }" ({) "{" (if_statement) "if(r == 1) R.flash(on_count, off_count);\n else R.turn(0);" (if) "if" (parenthesized_expression) "(r == 1)" (() "(" (binary_expression) "r == 1" (identifier) "r" (==) "==" (number_literal) "1" ()) ")" (expression_statement) "R.flash(on_count, off_count);" (call_expression) "R.flash(on_count, off_count)" (field_expression) "R.flash" (identifier) "R" (.) "." (field_identifier) "flash" (argument_list) "(on_count, off_count)" (() "(" (identifier) "on_count" (,) "," (identifier) "off_count" ()) ")" (;) ";" (else_clause) "else R.turn(0);" (else) "else" (expression_statement) "R.turn(0);" (call_expression) "R.turn(0)" (field_expression) "R.turn" (identifier) "R" (.) "." (field_identifier) "turn" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (;) ";" (if_statement) "if(g == 1) G.flash(on_count, off_count);\n else G.turn(0);" (if) "if" (parenthesized_expression) "(g == 1)" (() "(" (binary_expression) "g == 1" (identifier) "g" (==) "==" (number_literal) "1" ()) ")" (expression_statement) "G.flash(on_count, off_count);" (call_expression) "G.flash(on_count, off_count)" (field_expression) "G.flash" (identifier) "G" (.) "." (field_identifier) "flash" (argument_list) "(on_count, off_count)" (() "(" (identifier) "on_count" (,) "," (identifier) "off_count" ()) ")" (;) ";" (else_clause) "else G.turn(0);" (else) "else" (expression_statement) "G.turn(0);" (call_expression) "G.turn(0)" (field_expression) "G.turn" (identifier) "G" (.) "." (field_identifier) "turn" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (;) ";" (if_statement) "if(b == 1) B.flash(on_count, off_count);\n else B.turn(0);" (if) "if" (parenthesized_expression) "(b == 1)" (() "(" (binary_expression) "b == 1" (identifier) "b" (==) "==" (number_literal) "1" ()) ")" (expression_statement) "B.flash(on_count, off_count);" (call_expression) "B.flash(on_count, off_count)" (field_expression) "B.flash" (identifier) "B" (.) "." (field_identifier) "flash" (argument_list) "(on_count, off_count)" (() "(" (identifier) "on_count" (,) "," (identifier) "off_count" ()) ")" (;) ";" (else_clause) "else B.turn(0);" (else) "else" (expression_statement) "B.turn(0);" (call_expression) "B.turn(0)" (field_expression) "B.turn" (identifier) "B" (.) "." (field_identifier) "turn" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (;) ";" (}) "}" (labeled_statement) "private:\n FcLed() {turn(0,0,0);}" (statement_identifier) "private" (:) ":" (ERROR) "FcLed()" (call_expression) "FcLed()" (identifier) "FcLed" (argument_list) "()" (() "(" ()) ")" (compound_statement) "{turn(0,0,0);}" ({) "{" (expression_statement) "turn(0,0,0);" (call_expression) "turn(0,0,0)" (identifier) "turn" (argument_list) "(0,0,0)" (() "(" (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" ()) ")" (;) ";" (}) "}" (expression_statement) "~FcLed()" (unary_expression) "~FcLed()" (~) "~" (call_expression) "FcLed()" (identifier) "FcLed" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{turn(0,0,0);}" ({) "{" (expression_statement) "turn(0,0,0);" (call_expression) "turn(0,0,0)" (identifier) "turn" (argument_list) "(0,0,0)" (() "(" (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" ()) ")" (;) ";" (}) "}" (ERROR) "FcLed(FcLed&) {turn(0,0,0);}\n };\n\n}" (identifier) "FcLed" (() "(" (ERROR) "FcLed&)" (identifier) "FcLed" (&) "&" ()) ")" (compound_statement) "{turn(0,0,0);}" ({) "{" (expression_statement) "turn(0,0,0);" (call_expression) "turn(0,0,0)" (identifier) "turn" (argument_list) "(0,0,0)" (() "(" (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" ()) ")" (;) ";" (}) "}" (}) "}" (;) ";" (}) "}"
507
10
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 27.28, "nodes": 283, "errors": 0, "source_hash": "3eda8b70295d3dc82d0a1b7e1156c3e452255bf0d6af96bb2e9c3f3f9f2343ac", "categorized_nodes": 199}, "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 <led.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": "system_lib_string", "text": "<led.h>", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 16}}, {"id": 6, "type": "preproc_include", "text": "#include <stdint.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": "system_lib_string", "text": "<stdint.h>", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 19}}, {"id": 9, "type": "preproc_def", "text": "#define LED_R_PIN PORTD.PODR.BIT.B2 //R\n", "parent": null, "children": [10, 11, 12], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 10, "type": "#define", "text": "#define", "parent": 9, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 11, "type": "identifier", "text": "LED_R_PIN", "parent": 9, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 17}}, {"id": 12, "type": "preproc_arg", "text": "PORTD.PODR.BIT.B2 //R", "parent": 9, "children": [], "start_point": {"row": 5, "column": 20}, "end_point": {"row": 5, "column": 41}}, {"id": 13, "type": "preproc_def", "text": "#define LED_G_PIN PORTD.PODR.BIT.B3 //G\n", "parent": null, "children": [14, 15, 16], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 14, "type": "#define", "text": "#define", "parent": 13, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 7}}, {"id": 15, "type": "identifier", "text": "LED_G_PIN", "parent": 13, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 17}}, {"id": 16, "type": "preproc_arg", "text": "PORTD.PODR.BIT.B3 //G", "parent": 13, "children": [], "start_point": {"row": 6, "column": 20}, "end_point": {"row": 6, "column": 41}}, {"id": 17, "type": "preproc_def", "text": "#define LED_B_PIN PORTD.PODR.BIT.B4 //B\n", "parent": null, "children": [18, 19, 20], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 18, "type": "#define", "text": "#define", "parent": 17, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 7}}, {"id": 19, "type": "identifier", "text": "LED_B_PIN", "parent": 17, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 17}}, {"id": 20, "type": "preproc_arg", "text": "PORTD.PODR.BIT.B4 //B", "parent": 17, "children": [], "start_point": {"row": 7, "column": 20}, "end_point": {"row": 7, "column": 41}}, {"id": 21, "type": "function_definition", "text": "namespace umouse {\n\n///////////////////////////////////////////////////////////////////\n class LED_R : public LED {\n public:\n void setState(bool state_) {\n LED_R_PIN = 1-state_;\n state = state_;\n };\n }", "parent": null, "children": [22, 23], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 18, "column": 5}}, {"id": 22, "type": "type_identifier", "text": "namespace", "parent": 21, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 9}}, {"id": 23, "type": "identifier", "text": "umouse", "parent": 21, "children": [], "start_point": {"row": 9, "column": 10}, "end_point": {"row": 9, "column": 16}}, {"id": 24, "type": "function_definition", "text": "class LED_R : public LED {\n public:\n void setState(bool state_) {\n LED_R_PIN = 1-state_;\n state = state_;\n }", "parent": 21, "children": [25, 27], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 17, "column": 9}}, {"id": 25, "type": "ERROR", "text": "LED_R : public", "parent": 24, "children": [26], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 24}}, {"id": 26, "type": "identifier", "text": "LED_R", "parent": 25, "children": [], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 15}}, {"id": 27, "type": "identifier", "text": "LED", "parent": 24, "children": [], "start_point": {"row": 12, "column": 25}, "end_point": {"row": 12, "column": 28}}, {"id": 28, "type": "labeled_statement", "text": "public:\n void setState(bool state_) {\n LED_R_PIN = 1-state_;", "parent": 24, "children": [29], "start_point": {"row": 13, "column": 6}, "end_point": {"row": 15, "column": 33}}, {"id": 29, "type": "declaration", "text": "void setState(bool state_) {\n LED_R_PIN = 1-state_;", "parent": 28, "children": [30, 31, 38], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 15, "column": 33}}, {"id": 30, "type": "primitive_type", "text": "void", "parent": 29, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 12}}, {"id": 31, "type": "ERROR", "text": "setState(bool state_) {", "parent": 29, "children": [32], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 36}}, {"id": 32, "type": "function_declarator", "text": "setState(bool state_)", "parent": 31, "children": [33, 34], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 34}}, {"id": 33, "type": "identifier", "text": "setState", "parent": 32, "children": [], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 21}}, {"id": 34, "type": "parameter_list", "text": "(bool state_)", "parent": 32, "children": [35], "start_point": {"row": 14, "column": 21}, "end_point": {"row": 14, "column": 34}}, {"id": 35, "type": "parameter_declaration", "text": "bool state_", "parent": 34, "children": [36, 37], "start_point": {"row": 14, "column": 22}, "end_point": {"row": 14, "column": 33}}, {"id": 36, "type": "primitive_type", "text": "bool", "parent": 35, "children": [], "start_point": {"row": 14, "column": 22}, "end_point": {"row": 14, "column": 26}}, {"id": 37, "type": "identifier", "text": "state_", "parent": 35, "children": [], "start_point": {"row": 14, "column": 27}, "end_point": {"row": 14, "column": 33}}, {"id": 38, "type": "init_declarator", "text": "LED_R_PIN = 1-state_", "parent": 29, "children": [39, 40, 41], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 32}}, {"id": 39, "type": "identifier", "text": "LED_R_PIN", "parent": 38, "children": [], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 21}}, {"id": 40, "type": "=", "text": "=", "parent": 38, "children": [], "start_point": {"row": 15, "column": 22}, "end_point": {"row": 15, "column": 23}}, {"id": 41, "type": "binary_expression", "text": "1-state_", "parent": 38, "children": [42, 43, 44], "start_point": {"row": 15, "column": 24}, "end_point": {"row": 15, "column": 32}}, {"id": 42, "type": "number_literal", "text": "1", "parent": 41, "children": [], "start_point": {"row": 15, "column": 24}, "end_point": {"row": 15, "column": 25}}, {"id": 43, "type": "-", "text": "-", "parent": 41, "children": [], "start_point": {"row": 15, "column": 25}, "end_point": {"row": 15, "column": 26}}, {"id": 44, "type": "identifier", "text": "state_", "parent": 41, "children": [], "start_point": {"row": 15, "column": 26}, "end_point": {"row": 15, "column": 32}}, {"id": 45, "type": "assignment_expression", "text": "state = state_", "parent": 24, "children": [46, 47, 48], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 16, "column": 26}}, {"id": 46, "type": "identifier", "text": "state", "parent": 45, "children": [], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 16, "column": 17}}, {"id": 47, "type": "=", "text": "=", "parent": 45, "children": [], "start_point": {"row": 16, "column": 18}, "end_point": {"row": 16, "column": 19}}, {"id": 48, "type": "identifier", "text": "state_", "parent": 45, "children": [], "start_point": {"row": 16, "column": 20}, "end_point": {"row": 16, "column": 26}}, {"id": 49, "type": "function_definition", "text": "class LED_G : public LED {\n public:\n void setState(bool state_) {\n LED_G_PIN = 1-state_;\n state = state_;\n };\n }", "parent": null, "children": [50, 52], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 26, "column": 5}}, {"id": 50, "type": "ERROR", "text": "LED_G : public", "parent": 49, "children": [51], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 24}}, {"id": 51, "type": "identifier", "text": "LED_G", "parent": 50, "children": [], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 15}}, {"id": 52, "type": "identifier", "text": "LED", "parent": 49, "children": [], "start_point": {"row": 20, "column": 25}, "end_point": {"row": 20, "column": 28}}, {"id": 53, "type": "labeled_statement", "text": "public:\n void setState(bool state_) {\n LED_G_PIN = 1-state_;\n state = state_;\n }", "parent": 49, "children": [54], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 25, "column": 9}}, {"id": 54, "type": "ERROR", "text": "void setState(bool state_)", "parent": 53, "children": [55, 56], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 34}}, {"id": 55, "type": "primitive_type", "text": "void", "parent": 54, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 12}}, {"id": 56, "type": "function_declarator", "text": "setState(bool state_)", "parent": 54, "children": [57, 58], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 34}}, {"id": 57, "type": "identifier", "text": "setState", "parent": 56, "children": [], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 21}}, {"id": 58, "type": "parameter_list", "text": "(bool state_)", "parent": 56, "children": [59], "start_point": {"row": 22, "column": 21}, "end_point": {"row": 22, "column": 34}}, {"id": 59, "type": "parameter_declaration", "text": "bool state_", "parent": 58, "children": [60, 61], "start_point": {"row": 22, "column": 22}, "end_point": {"row": 22, "column": 33}}, {"id": 60, "type": "primitive_type", "text": "bool", "parent": 59, "children": [], "start_point": {"row": 22, "column": 22}, "end_point": {"row": 22, "column": 26}}, {"id": 61, "type": "identifier", "text": "state_", "parent": 59, "children": [], "start_point": {"row": 22, "column": 27}, "end_point": {"row": 22, "column": 33}}, {"id": 62, "type": "assignment_expression", "text": "LED_G_PIN = 1-state_", "parent": 53, "children": [63, 64, 65], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 32}}, {"id": 63, "type": "identifier", "text": "LED_G_PIN", "parent": 62, "children": [], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 21}}, {"id": 64, "type": "=", "text": "=", "parent": 62, "children": [], "start_point": {"row": 23, "column": 22}, "end_point": {"row": 23, "column": 23}}, {"id": 65, "type": "binary_expression", "text": "1-state_", "parent": 62, "children": [66, 67, 68], "start_point": {"row": 23, "column": 24}, "end_point": {"row": 23, "column": 32}}, {"id": 66, "type": "number_literal", "text": "1", "parent": 65, "children": [], "start_point": {"row": 23, "column": 24}, "end_point": {"row": 23, "column": 25}}, {"id": 67, "type": "-", "text": "-", "parent": 65, "children": [], "start_point": {"row": 23, "column": 25}, "end_point": {"row": 23, "column": 26}}, {"id": 68, "type": "identifier", "text": "state_", "parent": 65, "children": [], "start_point": {"row": 23, "column": 26}, "end_point": {"row": 23, "column": 32}}, {"id": 69, "type": "assignment_expression", "text": "state = state_", "parent": 53, "children": [70, 71, 72], "start_point": {"row": 24, "column": 12}, "end_point": {"row": 24, "column": 26}}, {"id": 70, "type": "identifier", "text": "state", "parent": 69, "children": [], "start_point": {"row": 24, "column": 12}, "end_point": {"row": 24, "column": 17}}, {"id": 71, "type": "=", "text": "=", "parent": 69, "children": [], "start_point": {"row": 24, "column": 18}, "end_point": {"row": 24, "column": 19}}, {"id": 72, "type": "identifier", "text": "state_", "parent": 69, "children": [], "start_point": {"row": 24, "column": 20}, "end_point": {"row": 24, "column": 26}}, {"id": 73, "type": "function_definition", "text": "class LED_B : public LED {\n public:\n void setState(bool state_) {\n LED_B_PIN = 1-state_;\n state = state_;\n };\n }", "parent": null, "children": [74, 76], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 34, "column": 5}}, {"id": 74, "type": "ERROR", "text": "LED_B : public", "parent": 73, "children": [75], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 24}}, {"id": 75, "type": "identifier", "text": "LED_B", "parent": 74, "children": [], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 15}}, {"id": 76, "type": "identifier", "text": "LED", "parent": 73, "children": [], "start_point": {"row": 28, "column": 25}, "end_point": {"row": 28, "column": 28}}, {"id": 77, "type": "labeled_statement", "text": "public:\n void setState(bool state_) {\n LED_B_PIN = 1-state_;\n state = state_;\n }", "parent": 73, "children": [78], "start_point": {"row": 29, "column": 6}, "end_point": {"row": 33, "column": 9}}, {"id": 78, "type": "ERROR", "text": "void setState(bool state_)", "parent": 77, "children": [79, 80], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 34}}, {"id": 79, "type": "primitive_type", "text": "void", "parent": 78, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 12}}, {"id": 80, "type": "function_declarator", "text": "setState(bool state_)", "parent": 78, "children": [81, 82], "start_point": {"row": 30, "column": 13}, "end_point": {"row": 30, "column": 34}}, {"id": 81, "type": "identifier", "text": "setState", "parent": 80, "children": [], "start_point": {"row": 30, "column": 13}, "end_point": {"row": 30, "column": 21}}, {"id": 82, "type": "parameter_list", "text": "(bool state_)", "parent": 80, "children": [83], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 34}}, {"id": 83, "type": "parameter_declaration", "text": "bool state_", "parent": 82, "children": [84, 85], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 33}}, {"id": 84, "type": "primitive_type", "text": "bool", "parent": 83, "children": [], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 26}}, {"id": 85, "type": "identifier", "text": "state_", "parent": 83, "children": [], "start_point": {"row": 30, "column": 27}, "end_point": {"row": 30, "column": 33}}, {"id": 86, "type": "assignment_expression", "text": "LED_B_PIN = 1-state_", "parent": 77, "children": [87, 88, 89], "start_point": {"row": 31, "column": 12}, "end_point": {"row": 31, "column": 32}}, {"id": 87, "type": "identifier", "text": "LED_B_PIN", "parent": 86, "children": [], "start_point": {"row": 31, "column": 12}, "end_point": {"row": 31, "column": 21}}, {"id": 88, "type": "=", "text": "=", "parent": 86, "children": [], "start_point": {"row": 31, "column": 22}, "end_point": {"row": 31, "column": 23}}, {"id": 89, "type": "binary_expression", "text": "1-state_", "parent": 86, "children": [90, 91, 92], "start_point": {"row": 31, "column": 24}, "end_point": {"row": 31, "column": 32}}, {"id": 90, "type": "number_literal", "text": "1", "parent": 89, "children": [], "start_point": {"row": 31, "column": 24}, "end_point": {"row": 31, "column": 25}}, {"id": 91, "type": "-", "text": "-", "parent": 89, "children": [], "start_point": {"row": 31, "column": 25}, "end_point": {"row": 31, "column": 26}}, {"id": 92, "type": "identifier", "text": "state_", "parent": 89, "children": [], "start_point": {"row": 31, "column": 26}, "end_point": {"row": 31, "column": 32}}, {"id": 93, "type": "assignment_expression", "text": "state = state_", "parent": 77, "children": [94, 95, 96], "start_point": {"row": 32, "column": 12}, "end_point": {"row": 32, "column": 26}}, {"id": 94, "type": "identifier", "text": "state", "parent": 93, "children": [], "start_point": {"row": 32, "column": 12}, "end_point": {"row": 32, "column": 17}}, {"id": 95, "type": "=", "text": "=", "parent": 93, "children": [], "start_point": {"row": 32, "column": 18}, "end_point": {"row": 32, "column": 19}}, {"id": 96, "type": "identifier", "text": "state_", "parent": 93, "children": [], "start_point": {"row": 32, "column": 20}, "end_point": {"row": 32, "column": 26}}, {"id": 97, "type": "function_definition", "text": "class FcLed {\n public:\n static FcLed& getInstance() {\n static FcLed instance;\n return instance;\n }", "parent": null, "children": [98], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 41, "column": 9}}, {"id": 98, "type": "identifier", "text": "FcLed", "parent": 97, "children": [], "start_point": {"row": 36, "column": 10}, "end_point": {"row": 36, "column": 15}}, {"id": 99, "type": "labeled_statement", "text": "public:\n static FcLed& getInstance() {\n static FcLed instance;", "parent": 97, "children": [100], "start_point": {"row": 37, "column": 6}, "end_point": {"row": 39, "column": 34}}, {"id": 100, "type": "declaration", "text": "static FcLed& getInstance() {\n static FcLed instance;", "parent": 99, "children": [101, 102, 107], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 39, "column": 34}}, {"id": 101, "type": "type_identifier", "text": "FcLed", "parent": 100, "children": [], "start_point": {"row": 38, "column": 15}, "end_point": {"row": 38, "column": 20}}, {"id": 102, "type": "ERROR", "text": "& getInstance() {\n static FcLed", "parent": 100, "children": [103, 106], "start_point": {"row": 38, "column": 20}, "end_point": {"row": 39, "column": 24}}, {"id": 103, "type": "function_declarator", "text": "getInstance()", "parent": 102, "children": [104, 105], "start_point": {"row": 38, "column": 22}, "end_point": {"row": 38, "column": 35}}, {"id": 104, "type": "identifier", "text": "getInstance", "parent": 103, "children": [], "start_point": {"row": 38, "column": 22}, "end_point": {"row": 38, "column": 33}}, {"id": 105, "type": "parameter_list", "text": "()", "parent": 103, "children": [], "start_point": {"row": 38, "column": 33}, "end_point": {"row": 38, "column": 35}}, {"id": 106, "type": "identifier", "text": "FcLed", "parent": 102, "children": [], "start_point": {"row": 39, "column": 19}, "end_point": {"row": 39, "column": 24}}, {"id": 107, "type": "identifier", "text": "instance", "parent": 100, "children": [], "start_point": {"row": 39, "column": 25}, "end_point": {"row": 39, "column": 33}}, {"id": 108, "type": "return_statement", "text": "return instance;", "parent": 97, "children": [109], "start_point": {"row": 40, "column": 12}, "end_point": {"row": 40, "column": 28}}, {"id": 109, "type": "identifier", "text": "instance", "parent": 108, "children": [], "start_point": {"row": 40, "column": 19}, "end_point": {"row": 40, "column": 27}}, {"id": 110, "type": "declaration", "text": "LED_R R;", "parent": null, "children": [111, 112], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 16}}, {"id": 111, "type": "type_identifier", "text": "LED_R", "parent": 110, "children": [], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 13}}, {"id": 112, "type": "identifier", "text": "R", "parent": 110, "children": [], "start_point": {"row": 43, "column": 14}, "end_point": {"row": 43, "column": 15}}, {"id": 113, "type": "declaration", "text": "LED_G G;", "parent": null, "children": [114, 115], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 16}}, {"id": 114, "type": "type_identifier", "text": "LED_G", "parent": 113, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 13}}, {"id": 115, "type": "identifier", "text": "G", "parent": 113, "children": [], "start_point": {"row": 44, "column": 14}, "end_point": {"row": 44, "column": 15}}, {"id": 116, "type": "declaration", "text": "LED_B B;", "parent": null, "children": [117, 118], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 16}}, {"id": 117, "type": "type_identifier", "text": "LED_B", "parent": 116, "children": [], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 13}}, {"id": 118, "type": "identifier", "text": "B", "parent": 116, "children": [], "start_point": {"row": 45, "column": 14}, "end_point": {"row": 45, "column": 15}}, {"id": 119, "type": "function_definition", "text": "void update() {\n R.update();\n G.update();\n B.update();\n }", "parent": null, "children": [120, 121], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 50, "column": 9}}, {"id": 120, "type": "primitive_type", "text": "void", "parent": 119, "children": [], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 12}}, {"id": 121, "type": "function_declarator", "text": "update()", "parent": 119, "children": [122, 123], "start_point": {"row": 46, "column": 13}, "end_point": {"row": 46, "column": 21}}, {"id": 122, "type": "identifier", "text": "update", "parent": 121, "children": [], "start_point": {"row": 46, "column": 13}, "end_point": {"row": 46, "column": 19}}, {"id": 123, "type": "parameter_list", "text": "()", "parent": 121, "children": [], "start_point": {"row": 46, "column": 19}, "end_point": {"row": 46, "column": 21}}, {"id": 124, "type": "call_expression", "text": "R.update()", "parent": 119, "children": [125, 128], "start_point": {"row": 47, "column": 12}, "end_point": {"row": 47, "column": 22}}, {"id": 125, "type": "field_expression", "text": "R.update", "parent": 124, "children": [126, 127], "start_point": {"row": 47, "column": 12}, "end_point": {"row": 47, "column": 20}}, {"id": 126, "type": "identifier", "text": "R", "parent": 125, "children": [], "start_point": {"row": 47, "column": 12}, "end_point": {"row": 47, "column": 13}}, {"id": 127, "type": "field_identifier", "text": "update", "parent": 125, "children": [], "start_point": {"row": 47, "column": 14}, "end_point": {"row": 47, "column": 20}}, {"id": 128, "type": "argument_list", "text": "()", "parent": 124, "children": [], "start_point": {"row": 47, "column": 20}, "end_point": {"row": 47, "column": 22}}, {"id": 129, "type": "call_expression", "text": "G.update()", "parent": 119, "children": [130, 133], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 22}}, {"id": 130, "type": "field_expression", "text": "G.update", "parent": 129, "children": [131, 132], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 20}}, {"id": 131, "type": "identifier", "text": "G", "parent": 130, "children": [], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 13}}, {"id": 132, "type": "field_identifier", "text": "update", "parent": 130, "children": [], "start_point": {"row": 48, "column": 14}, "end_point": {"row": 48, "column": 20}}, {"id": 133, "type": "argument_list", "text": "()", "parent": 129, "children": [], "start_point": {"row": 48, "column": 20}, "end_point": {"row": 48, "column": 22}}, {"id": 134, "type": "call_expression", "text": "B.update()", "parent": 119, "children": [135, 138], "start_point": {"row": 49, "column": 12}, "end_point": {"row": 49, "column": 22}}, {"id": 135, "type": "field_expression", "text": "B.update", "parent": 134, "children": [136, 137], "start_point": {"row": 49, "column": 12}, "end_point": {"row": 49, "column": 20}}, {"id": 136, "type": "identifier", "text": "B", "parent": 135, "children": [], "start_point": {"row": 49, "column": 12}, "end_point": {"row": 49, "column": 13}}, {"id": 137, "type": "field_identifier", "text": "update", "parent": 135, "children": [], "start_point": {"row": 49, "column": 14}, "end_point": {"row": 49, "column": 20}}, {"id": 138, "type": "argument_list", "text": "()", "parent": 134, "children": [], "start_point": {"row": 49, "column": 20}, "end_point": {"row": 49, "column": 22}}, {"id": 139, "type": "function_definition", "text": "void turn(bool r, bool g, bool b) {\n R.turn(r);\n G.turn(g);\n B.turn(b);\n }", "parent": null, "children": [140, 141], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 55, "column": 9}}, {"id": 140, "type": "primitive_type", "text": "void", "parent": 139, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 12}}, {"id": 141, "type": "function_declarator", "text": "turn(bool r, bool g, bool b)", "parent": 139, "children": [142, 143], "start_point": {"row": 51, "column": 13}, "end_point": {"row": 51, "column": 41}}, {"id": 142, "type": "identifier", "text": "turn", "parent": 141, "children": [], "start_point": {"row": 51, "column": 13}, "end_point": {"row": 51, "column": 17}}, {"id": 143, "type": "parameter_list", "text": "(bool r, bool g, bool b)", "parent": 141, "children": [144, 147, 150], "start_point": {"row": 51, "column": 17}, "end_point": {"row": 51, "column": 41}}, {"id": 144, "type": "parameter_declaration", "text": "bool r", "parent": 143, "children": [145, 146], "start_point": {"row": 51, "column": 18}, "end_point": {"row": 51, "column": 24}}, {"id": 145, "type": "primitive_type", "text": "bool", "parent": 144, "children": [], "start_point": {"row": 51, "column": 18}, "end_point": {"row": 51, "column": 22}}, {"id": 146, "type": "identifier", "text": "r", "parent": 144, "children": [], "start_point": {"row": 51, "column": 23}, "end_point": {"row": 51, "column": 24}}, {"id": 147, "type": "parameter_declaration", "text": "bool g", "parent": 143, "children": [148, 149], "start_point": {"row": 51, "column": 26}, "end_point": {"row": 51, "column": 32}}, {"id": 148, "type": "primitive_type", "text": "bool", "parent": 147, "children": [], "start_point": {"row": 51, "column": 26}, "end_point": {"row": 51, "column": 30}}, {"id": 149, "type": "identifier", "text": "g", "parent": 147, "children": [], "start_point": {"row": 51, "column": 31}, "end_point": {"row": 51, "column": 32}}, {"id": 150, "type": "parameter_declaration", "text": "bool b", "parent": 143, "children": [151, 152], "start_point": {"row": 51, "column": 34}, "end_point": {"row": 51, "column": 40}}, {"id": 151, "type": "primitive_type", "text": "bool", "parent": 150, "children": [], "start_point": {"row": 51, "column": 34}, "end_point": {"row": 51, "column": 38}}, {"id": 152, "type": "identifier", "text": "b", "parent": 150, "children": [], "start_point": {"row": 51, "column": 39}, "end_point": {"row": 51, "column": 40}}, {"id": 153, "type": "call_expression", "text": "R.turn(r)", "parent": 139, "children": [154, 157], "start_point": {"row": 52, "column": 12}, "end_point": {"row": 52, "column": 21}}, {"id": 154, "type": "field_expression", "text": "R.turn", "parent": 153, "children": [155, 156], "start_point": {"row": 52, "column": 12}, "end_point": {"row": 52, "column": 18}}, {"id": 155, "type": "identifier", "text": "R", "parent": 154, "children": [], "start_point": {"row": 52, "column": 12}, "end_point": {"row": 52, "column": 13}}, {"id": 156, "type": "field_identifier", "text": "turn", "parent": 154, "children": [], "start_point": {"row": 52, "column": 14}, "end_point": {"row": 52, "column": 18}}, {"id": 157, "type": "argument_list", "text": "(r)", "parent": 153, "children": [158], "start_point": {"row": 52, "column": 18}, "end_point": {"row": 52, "column": 21}}, {"id": 158, "type": "identifier", "text": "r", "parent": 157, "children": [], "start_point": {"row": 52, "column": 19}, "end_point": {"row": 52, "column": 20}}, {"id": 159, "type": "call_expression", "text": "G.turn(g)", "parent": 139, "children": [160, 163], "start_point": {"row": 53, "column": 12}, "end_point": {"row": 53, "column": 21}}, {"id": 160, "type": "field_expression", "text": "G.turn", "parent": 159, "children": [161, 162], "start_point": {"row": 53, "column": 12}, "end_point": {"row": 53, "column": 18}}, {"id": 161, "type": "identifier", "text": "G", "parent": 160, "children": [], "start_point": {"row": 53, "column": 12}, "end_point": {"row": 53, "column": 13}}, {"id": 162, "type": "field_identifier", "text": "turn", "parent": 160, "children": [], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 18}}, {"id": 163, "type": "argument_list", "text": "(g)", "parent": 159, "children": [164], "start_point": {"row": 53, "column": 18}, "end_point": {"row": 53, "column": 21}}, {"id": 164, "type": "identifier", "text": "g", "parent": 163, "children": [], "start_point": {"row": 53, "column": 19}, "end_point": {"row": 53, "column": 20}}, {"id": 165, "type": "call_expression", "text": "B.turn(b)", "parent": 139, "children": [166, 169], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 21}}, {"id": 166, "type": "field_expression", "text": "B.turn", "parent": 165, "children": [167, 168], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 18}}, {"id": 167, "type": "identifier", "text": "B", "parent": 166, "children": [], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 13}}, {"id": 168, "type": "field_identifier", "text": "turn", "parent": 166, "children": [], "start_point": {"row": 54, "column": 14}, "end_point": {"row": 54, "column": 18}}, {"id": 169, "type": "argument_list", "text": "(b)", "parent": 165, "children": [170], "start_point": {"row": 54, "column": 18}, "end_point": {"row": 54, "column": 21}}, {"id": 170, "type": "identifier", "text": "b", "parent": 169, "children": [], "start_point": {"row": 54, "column": 19}, "end_point": {"row": 54, "column": 20}}, {"id": 171, "type": "function_definition", "text": "void flash(bool r, bool g, bool b, uint16_t on_count, uint16_t off_count) {\n if(r == 1) R.flash(on_count, off_count);\n else R.turn(0);\n\n if(g == 1) G.flash(on_count, off_count);\n else G.turn(0);\n\n if(b == 1) B.flash(on_count, off_count);\n else B.turn(0);\n }", "parent": null, "children": [172, 173], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 66, "column": 9}}, {"id": 172, "type": "primitive_type", "text": "void", "parent": 171, "children": [], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 12}}, {"id": 173, "type": "function_declarator", "text": "flash(bool r, bool g, bool b, uint16_t on_count, uint16_t off_count)", "parent": 171, "children": [174, 175], "start_point": {"row": 57, "column": 13}, "end_point": {"row": 57, "column": 81}}, {"id": 174, "type": "identifier", "text": "flash", "parent": 173, "children": [], "start_point": {"row": 57, "column": 13}, "end_point": {"row": 57, "column": 18}}, {"id": 175, "type": "parameter_list", "text": "(bool r, bool g, bool b, uint16_t on_count, uint16_t off_count)", "parent": 173, "children": [176, 179, 182, 185, 188], "start_point": {"row": 57, "column": 18}, "end_point": {"row": 57, "column": 81}}, {"id": 176, "type": "parameter_declaration", "text": "bool r", "parent": 175, "children": [177, 178], "start_point": {"row": 57, "column": 19}, "end_point": {"row": 57, "column": 25}}, {"id": 177, "type": "primitive_type", "text": "bool", "parent": 176, "children": [], "start_point": {"row": 57, "column": 19}, "end_point": {"row": 57, "column": 23}}, {"id": 178, "type": "identifier", "text": "r", "parent": 176, "children": [], "start_point": {"row": 57, "column": 24}, "end_point": {"row": 57, "column": 25}}, {"id": 179, "type": "parameter_declaration", "text": "bool g", "parent": 175, "children": [180, 181], "start_point": {"row": 57, "column": 27}, "end_point": {"row": 57, "column": 33}}, {"id": 180, "type": "primitive_type", "text": "bool", "parent": 179, "children": [], "start_point": {"row": 57, "column": 27}, "end_point": {"row": 57, "column": 31}}, {"id": 181, "type": "identifier", "text": "g", "parent": 179, "children": [], "start_point": {"row": 57, "column": 32}, "end_point": {"row": 57, "column": 33}}, {"id": 182, "type": "parameter_declaration", "text": "bool b", "parent": 175, "children": [183, 184], "start_point": {"row": 57, "column": 35}, "end_point": {"row": 57, "column": 41}}, {"id": 183, "type": "primitive_type", "text": "bool", "parent": 182, "children": [], "start_point": {"row": 57, "column": 35}, "end_point": {"row": 57, "column": 39}}, {"id": 184, "type": "identifier", "text": "b", "parent": 182, "children": [], "start_point": {"row": 57, "column": 40}, "end_point": {"row": 57, "column": 41}}, {"id": 185, "type": "parameter_declaration", "text": "uint16_t on_count", "parent": 175, "children": [186, 187], "start_point": {"row": 57, "column": 43}, "end_point": {"row": 57, "column": 60}}, {"id": 186, "type": "primitive_type", "text": "uint16_t", "parent": 185, "children": [], "start_point": {"row": 57, "column": 43}, "end_point": {"row": 57, "column": 51}}, {"id": 187, "type": "identifier", "text": "on_count", "parent": 185, "children": [], "start_point": {"row": 57, "column": 52}, "end_point": {"row": 57, "column": 60}}, {"id": 188, "type": "parameter_declaration", "text": "uint16_t off_count", "parent": 175, "children": [189, 190], "start_point": {"row": 57, "column": 62}, "end_point": {"row": 57, "column": 80}}, {"id": 189, "type": "primitive_type", "text": "uint16_t", "parent": 188, "children": [], "start_point": {"row": 57, "column": 62}, "end_point": {"row": 57, "column": 70}}, {"id": 190, "type": "identifier", "text": "off_count", "parent": 188, "children": [], "start_point": {"row": 57, "column": 71}, "end_point": {"row": 57, "column": 80}}, {"id": 191, "type": "if_statement", "text": "if(r == 1) R.flash(on_count, off_count);\n else R.turn(0);", "parent": 171, "children": [192, 204], "start_point": {"row": 58, "column": 12}, "end_point": {"row": 59, "column": 27}}, {"id": 192, "type": "parenthesized_expression", "text": "(r == 1)", "parent": 191, "children": [193], "start_point": {"row": 58, "column": 14}, "end_point": {"row": 58, "column": 22}}, {"id": 193, "type": "binary_expression", "text": "r == 1", "parent": 192, "children": [194, 195, 196], "start_point": {"row": 58, "column": 15}, "end_point": {"row": 58, "column": 21}}, {"id": 194, "type": "identifier", "text": "r", "parent": 193, "children": [], "start_point": {"row": 58, "column": 15}, "end_point": {"row": 58, "column": 16}}, {"id": 195, "type": "==", "text": "==", "parent": 193, "children": [], "start_point": {"row": 58, "column": 17}, "end_point": {"row": 58, "column": 19}}, {"id": 196, "type": "number_literal", "text": "1", "parent": 193, "children": [], "start_point": {"row": 58, "column": 20}, "end_point": {"row": 58, "column": 21}}, {"id": 197, "type": "call_expression", "text": "R.flash(on_count, off_count)", "parent": 191, "children": [198, 201], "start_point": {"row": 58, "column": 23}, "end_point": {"row": 58, "column": 51}}, {"id": 198, "type": "field_expression", "text": "R.flash", "parent": 197, "children": [199, 200], "start_point": {"row": 58, "column": 23}, "end_point": {"row": 58, "column": 30}}, {"id": 199, "type": "identifier", "text": "R", "parent": 198, "children": [], "start_point": {"row": 58, "column": 23}, "end_point": {"row": 58, "column": 24}}, {"id": 200, "type": "field_identifier", "text": "flash", "parent": 198, "children": [], "start_point": {"row": 58, "column": 25}, "end_point": {"row": 58, "column": 30}}, {"id": 201, "type": "argument_list", "text": "(on_count, off_count)", "parent": 197, "children": [202, 203], "start_point": {"row": 58, "column": 30}, "end_point": {"row": 58, "column": 51}}, {"id": 202, "type": "identifier", "text": "on_count", "parent": 201, "children": [], "start_point": {"row": 58, "column": 31}, "end_point": {"row": 58, "column": 39}}, {"id": 203, "type": "identifier", "text": "off_count", "parent": 201, "children": [], "start_point": {"row": 58, "column": 41}, "end_point": {"row": 58, "column": 50}}, {"id": 204, "type": "else_clause", "text": "else R.turn(0);", "parent": 191, "children": [], "start_point": {"row": 59, "column": 12}, "end_point": {"row": 59, "column": 27}}, {"id": 205, "type": "call_expression", "text": "R.turn(0)", "parent": 204, "children": [206, 209], "start_point": {"row": 59, "column": 17}, "end_point": {"row": 59, "column": 26}}, {"id": 206, "type": "field_expression", "text": "R.turn", "parent": 205, "children": [207, 208], "start_point": {"row": 59, "column": 17}, "end_point": {"row": 59, "column": 23}}, {"id": 207, "type": "identifier", "text": "R", "parent": 206, "children": [], "start_point": {"row": 59, "column": 17}, "end_point": {"row": 59, "column": 18}}, {"id": 208, "type": "field_identifier", "text": "turn", "parent": 206, "children": [], "start_point": {"row": 59, "column": 19}, "end_point": {"row": 59, "column": 23}}, {"id": 209, "type": "argument_list", "text": "(0)", "parent": 205, "children": [210], "start_point": {"row": 59, "column": 23}, "end_point": {"row": 59, "column": 26}}, {"id": 210, "type": "number_literal", "text": "0", "parent": 209, "children": [], "start_point": {"row": 59, "column": 24}, "end_point": {"row": 59, "column": 25}}, {"id": 211, "type": "if_statement", "text": "if(g == 1) G.flash(on_count, off_count);\n else G.turn(0);", "parent": 171, "children": [212, 224], "start_point": {"row": 61, "column": 12}, "end_point": {"row": 62, "column": 27}}, {"id": 212, "type": "parenthesized_expression", "text": "(g == 1)", "parent": 211, "children": [213], "start_point": {"row": 61, "column": 14}, "end_point": {"row": 61, "column": 22}}, {"id": 213, "type": "binary_expression", "text": "g == 1", "parent": 212, "children": [214, 215, 216], "start_point": {"row": 61, "column": 15}, "end_point": {"row": 61, "column": 21}}, {"id": 214, "type": "identifier", "text": "g", "parent": 213, "children": [], "start_point": {"row": 61, "column": 15}, "end_point": {"row": 61, "column": 16}}, {"id": 215, "type": "==", "text": "==", "parent": 213, "children": [], "start_point": {"row": 61, "column": 17}, "end_point": {"row": 61, "column": 19}}, {"id": 216, "type": "number_literal", "text": "1", "parent": 213, "children": [], "start_point": {"row": 61, "column": 20}, "end_point": {"row": 61, "column": 21}}, {"id": 217, "type": "call_expression", "text": "G.flash(on_count, off_count)", "parent": 211, "children": [218, 221], "start_point": {"row": 61, "column": 23}, "end_point": {"row": 61, "column": 51}}, {"id": 218, "type": "field_expression", "text": "G.flash", "parent": 217, "children": [219, 220], "start_point": {"row": 61, "column": 23}, "end_point": {"row": 61, "column": 30}}, {"id": 219, "type": "identifier", "text": "G", "parent": 218, "children": [], "start_point": {"row": 61, "column": 23}, "end_point": {"row": 61, "column": 24}}, {"id": 220, "type": "field_identifier", "text": "flash", "parent": 218, "children": [], "start_point": {"row": 61, "column": 25}, "end_point": {"row": 61, "column": 30}}, {"id": 221, "type": "argument_list", "text": "(on_count, off_count)", "parent": 217, "children": [222, 223], "start_point": {"row": 61, "column": 30}, "end_point": {"row": 61, "column": 51}}, {"id": 222, "type": "identifier", "text": "on_count", "parent": 221, "children": [], "start_point": {"row": 61, "column": 31}, "end_point": {"row": 61, "column": 39}}, {"id": 223, "type": "identifier", "text": "off_count", "parent": 221, "children": [], "start_point": {"row": 61, "column": 41}, "end_point": {"row": 61, "column": 50}}, {"id": 224, "type": "else_clause", "text": "else G.turn(0);", "parent": 211, "children": [], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 62, "column": 27}}, {"id": 225, "type": "call_expression", "text": "G.turn(0)", "parent": 224, "children": [226, 229], "start_point": {"row": 62, "column": 17}, "end_point": {"row": 62, "column": 26}}, {"id": 226, "type": "field_expression", "text": "G.turn", "parent": 225, "children": [227, 228], "start_point": {"row": 62, "column": 17}, "end_point": {"row": 62, "column": 23}}, {"id": 227, "type": "identifier", "text": "G", "parent": 226, "children": [], "start_point": {"row": 62, "column": 17}, "end_point": {"row": 62, "column": 18}}, {"id": 228, "type": "field_identifier", "text": "turn", "parent": 226, "children": [], "start_point": {"row": 62, "column": 19}, "end_point": {"row": 62, "column": 23}}, {"id": 229, "type": "argument_list", "text": "(0)", "parent": 225, "children": [230], "start_point": {"row": 62, "column": 23}, "end_point": {"row": 62, "column": 26}}, {"id": 230, "type": "number_literal", "text": "0", "parent": 229, "children": [], "start_point": {"row": 62, "column": 24}, "end_point": {"row": 62, "column": 25}}, {"id": 231, "type": "if_statement", "text": "if(b == 1) B.flash(on_count, off_count);\n else B.turn(0);", "parent": 171, "children": [232, 244], "start_point": {"row": 64, "column": 12}, "end_point": {"row": 65, "column": 27}}, {"id": 232, "type": "parenthesized_expression", "text": "(b == 1)", "parent": 231, "children": [233], "start_point": {"row": 64, "column": 14}, "end_point": {"row": 64, "column": 22}}, {"id": 233, "type": "binary_expression", "text": "b == 1", "parent": 232, "children": [234, 235, 236], "start_point": {"row": 64, "column": 15}, "end_point": {"row": 64, "column": 21}}, {"id": 234, "type": "identifier", "text": "b", "parent": 233, "children": [], "start_point": {"row": 64, "column": 15}, "end_point": {"row": 64, "column": 16}}, {"id": 235, "type": "==", "text": "==", "parent": 233, "children": [], "start_point": {"row": 64, "column": 17}, "end_point": {"row": 64, "column": 19}}, {"id": 236, "type": "number_literal", "text": "1", "parent": 233, "children": [], "start_point": {"row": 64, "column": 20}, "end_point": {"row": 64, "column": 21}}, {"id": 237, "type": "call_expression", "text": "B.flash(on_count, off_count)", "parent": 231, "children": [238, 241], "start_point": {"row": 64, "column": 23}, "end_point": {"row": 64, "column": 51}}, {"id": 238, "type": "field_expression", "text": "B.flash", "parent": 237, "children": [239, 240], "start_point": {"row": 64, "column": 23}, "end_point": {"row": 64, "column": 30}}, {"id": 239, "type": "identifier", "text": "B", "parent": 238, "children": [], "start_point": {"row": 64, "column": 23}, "end_point": {"row": 64, "column": 24}}, {"id": 240, "type": "field_identifier", "text": "flash", "parent": 238, "children": [], "start_point": {"row": 64, "column": 25}, "end_point": {"row": 64, "column": 30}}, {"id": 241, "type": "argument_list", "text": "(on_count, off_count)", "parent": 237, "children": [242, 243], "start_point": {"row": 64, "column": 30}, "end_point": {"row": 64, "column": 51}}, {"id": 242, "type": "identifier", "text": "on_count", "parent": 241, "children": [], "start_point": {"row": 64, "column": 31}, "end_point": {"row": 64, "column": 39}}, {"id": 243, "type": "identifier", "text": "off_count", "parent": 241, "children": [], "start_point": {"row": 64, "column": 41}, "end_point": {"row": 64, "column": 50}}, {"id": 244, "type": "else_clause", "text": "else B.turn(0);", "parent": 231, "children": [], "start_point": {"row": 65, "column": 12}, "end_point": {"row": 65, "column": 27}}, {"id": 245, "type": "call_expression", "text": "B.turn(0)", "parent": 244, "children": [246, 249], "start_point": {"row": 65, "column": 17}, "end_point": {"row": 65, "column": 26}}, {"id": 246, "type": "field_expression", "text": "B.turn", "parent": 245, "children": [247, 248], "start_point": {"row": 65, "column": 17}, "end_point": {"row": 65, "column": 23}}, {"id": 247, "type": "identifier", "text": "B", "parent": 246, "children": [], "start_point": {"row": 65, "column": 17}, "end_point": {"row": 65, "column": 18}}, {"id": 248, "type": "field_identifier", "text": "turn", "parent": 246, "children": [], "start_point": {"row": 65, "column": 19}, "end_point": {"row": 65, "column": 23}}, {"id": 249, "type": "argument_list", "text": "(0)", "parent": 245, "children": [250], "start_point": {"row": 65, "column": 23}, "end_point": {"row": 65, "column": 26}}, {"id": 250, "type": "number_literal", "text": "0", "parent": 249, "children": [], "start_point": {"row": 65, "column": 24}, "end_point": {"row": 65, "column": 25}}, {"id": 251, "type": "labeled_statement", "text": "private:\n FcLed() {turn(0,0,0);}", "parent": null, "children": [252], "start_point": {"row": 67, "column": 6}, "end_point": {"row": 68, "column": 30}}, {"id": 252, "type": "ERROR", "text": "FcLed()", "parent": 251, "children": [253], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 15}}, {"id": 253, "type": "call_expression", "text": "FcLed()", "parent": 252, "children": [254, 255], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 15}}, {"id": 254, "type": "identifier", "text": "FcLed", "parent": 253, "children": [], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 13}}, {"id": 255, "type": "argument_list", "text": "()", "parent": 253, "children": [], "start_point": {"row": 68, "column": 13}, "end_point": {"row": 68, "column": 15}}, {"id": 256, "type": "call_expression", "text": "turn(0,0,0)", "parent": 251, "children": [257, 258], "start_point": {"row": 68, "column": 17}, "end_point": {"row": 68, "column": 28}}, {"id": 257, "type": "identifier", "text": "turn", "parent": 256, "children": [], "start_point": {"row": 68, "column": 17}, "end_point": {"row": 68, "column": 21}}, {"id": 258, "type": "argument_list", "text": "(0,0,0)", "parent": 256, "children": [259, 260, 261], "start_point": {"row": 68, "column": 21}, "end_point": {"row": 68, "column": 28}}, {"id": 259, "type": "number_literal", "text": "0", "parent": 258, "children": [], "start_point": {"row": 68, "column": 22}, "end_point": {"row": 68, "column": 23}}, {"id": 260, "type": "number_literal", "text": "0", "parent": 258, "children": [], "start_point": {"row": 68, "column": 24}, "end_point": {"row": 68, "column": 25}}, {"id": 261, "type": "number_literal", "text": "0", "parent": 258, "children": [], "start_point": {"row": 68, "column": 26}, "end_point": {"row": 68, "column": 27}}, {"id": 262, "type": "unary_expression", "text": "~FcLed()", "parent": null, "children": [263, 264], "start_point": {"row": 69, "column": 8}, "end_point": {"row": 69, "column": 16}}, {"id": 263, "type": "~", "text": "~", "parent": 262, "children": [], "start_point": {"row": 69, "column": 8}, "end_point": {"row": 69, "column": 9}}, {"id": 264, "type": "call_expression", "text": "FcLed()", "parent": 262, "children": [265, 266], "start_point": {"row": 69, "column": 9}, "end_point": {"row": 69, "column": 16}}, {"id": 265, "type": "identifier", "text": "FcLed", "parent": 264, "children": [], "start_point": {"row": 69, "column": 9}, "end_point": {"row": 69, "column": 14}}, {"id": 266, "type": "argument_list", "text": "()", "parent": 264, "children": [], "start_point": {"row": 69, "column": 14}, "end_point": {"row": 69, "column": 16}}, {"id": 267, "type": "call_expression", "text": "turn(0,0,0)", "parent": null, "children": [268, 269], "start_point": {"row": 69, "column": 18}, "end_point": {"row": 69, "column": 29}}, {"id": 268, "type": "identifier", "text": "turn", "parent": 267, "children": [], "start_point": {"row": 69, "column": 18}, "end_point": {"row": 69, "column": 22}}, {"id": 269, "type": "argument_list", "text": "(0,0,0)", "parent": 267, "children": [270, 271, 272], "start_point": {"row": 69, "column": 22}, "end_point": {"row": 69, "column": 29}}, {"id": 270, "type": "number_literal", "text": "0", "parent": 269, "children": [], "start_point": {"row": 69, "column": 23}, "end_point": {"row": 69, "column": 24}}, {"id": 271, "type": "number_literal", "text": "0", "parent": 269, "children": [], "start_point": {"row": 69, "column": 25}, "end_point": {"row": 69, "column": 26}}, {"id": 272, "type": "number_literal", "text": "0", "parent": 269, "children": [], "start_point": {"row": 69, "column": 27}, "end_point": {"row": 69, "column": 28}}, {"id": 273, "type": "ERROR", "text": "FcLed(FcLed&) {turn(0,0,0);}\n };\n\n}", "parent": null, "children": [274, 275], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 73, "column": 1}}, {"id": 274, "type": "identifier", "text": "FcLed", "parent": 273, "children": [], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 13}}, {"id": 275, "type": "ERROR", "text": "FcLed&)", "parent": 273, "children": [276], "start_point": {"row": 70, "column": 14}, "end_point": {"row": 70, "column": 21}}, {"id": 276, "type": "identifier", "text": "FcLed", "parent": 275, "children": [], "start_point": {"row": 70, "column": 14}, "end_point": {"row": 70, "column": 19}}, {"id": 277, "type": "call_expression", "text": "turn(0,0,0)", "parent": 273, "children": [278, 279], "start_point": {"row": 70, "column": 23}, "end_point": {"row": 70, "column": 34}}, {"id": 278, "type": "identifier", "text": "turn", "parent": 277, "children": [], "start_point": {"row": 70, "column": 23}, "end_point": {"row": 70, "column": 27}}, {"id": 279, "type": "argument_list", "text": "(0,0,0)", "parent": 277, "children": [280, 281, 282], "start_point": {"row": 70, "column": 27}, "end_point": {"row": 70, "column": 34}}, {"id": 280, "type": "number_literal", "text": "0", "parent": 279, "children": [], "start_point": {"row": 70, "column": 28}, "end_point": {"row": 70, "column": 29}}, {"id": 281, "type": "number_literal", "text": "0", "parent": 279, "children": [], "start_point": {"row": 70, "column": 30}, "end_point": {"row": 70, "column": 31}}, {"id": 282, "type": "number_literal", "text": "0", "parent": 279, "children": [], "start_point": {"row": 70, "column": 32}, "end_point": {"row": 70, "column": 33}}]}, "node_categories": {"declarations": {"functions": [21, 24, 32, 49, 56, 73, 80, 97, 103, 119, 121, 139, 141, 171, 173], "variables": [29, 35, 59, 83, 100, 110, 113, 116, 144, 147, 150, 176, 179, 182, 185, 188], "classes": [], "imports": [3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [41, 65, 89, 124, 125, 129, 130, 134, 135, 153, 154, 159, 160, 165, 166, 192, 193, 197, 198, 205, 206, 212, 213, 217, 218, 225, 226, 232, 233, 237, 238, 245, 246, 253, 256, 262, 264, 267, 277], "assignments": [45, 62, 69, 86, 93], "loops": [], "conditionals": [11, 15, 19, 22, 23, 26, 27, 33, 37, 39, 44, 46, 48, 51, 52, 57, 61, 63, 68, 70, 72, 75, 76, 81, 85, 87, 92, 94, 96, 98, 101, 104, 106, 107, 109, 111, 112, 114, 115, 117, 118, 122, 126, 127, 131, 132, 136, 137, 142, 146, 149, 152, 155, 156, 158, 161, 162, 164, 167, 168, 170, 174, 178, 181, 184, 187, 190, 191, 194, 199, 200, 202, 203, 207, 208, 211, 214, 219, 220, 222, 223, 227, 228, 231, 234, 239, 240, 242, 243, 247, 248, 254, 257, 265, 268, 274, 276, 278], "returns": [108], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 42, 66, 90, 196, 210, 216, 230, 236, 250, 259, 260, 261, 270, 271, 272, 280, 281, 282], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 21, "universal_type": "function", "name": "LED_R", "text_snippet": "namespace umouse {\n\n///////////////////////////////////////////////////////////////////\n class LE"}, {"node_id": 24, "universal_type": "function", "name": "LED_R", "text_snippet": "class LED_R : public LED {\n public:\n void setState(bool state_) {\n LED_R_PIN "}, {"node_id": 32, "universal_type": "function", "name": "unknown", "text_snippet": "setState(bool state_)"}, {"node_id": 49, "universal_type": "function", "name": "LED_G", "text_snippet": "class LED_G : public LED {\n public:\n void setState(bool state_) {\n LED_G_PIN "}, {"node_id": 56, "universal_type": "function", "name": "unknown", "text_snippet": "setState(bool state_)"}, {"node_id": 73, "universal_type": "function", "name": "LED_B", "text_snippet": "class LED_B : public LED {\n public:\n void setState(bool state_) {\n LED_B_PIN "}, {"node_id": 80, "universal_type": "function", "name": "unknown", "text_snippet": "setState(bool state_)"}, {"node_id": 97, "universal_type": "function", "name": "FcLed", "text_snippet": "class FcLed {\n public:\n static FcLed& getInstance() {\n static FcLed instance;"}, {"node_id": 103, "universal_type": "function", "name": "unknown", "text_snippet": "getInstance()"}, {"node_id": 119, "universal_type": "function", "name": "update", "text_snippet": "void update() {\n R.update();\n G.update();\n B.update();\n }"}, {"node_id": 121, "universal_type": "function", "name": "unknown", "text_snippet": "update()"}, {"node_id": 139, "universal_type": "function", "name": "turn", "text_snippet": "void turn(bool r, bool g, bool b) {\n R.turn(r);\n G.turn(g);\n B.turn"}, {"node_id": 141, "universal_type": "function", "name": "g,", "text_snippet": "turn(bool r, bool g, bool b)"}, {"node_id": 171, "universal_type": "function", "name": "flash", "text_snippet": "void flash(bool r, bool g, bool b, uint16_t on_count, uint16_t off_count) {\n if(r == 1) R"}, {"node_id": 173, "universal_type": "function", "name": "g,", "text_snippet": "flash(bool r, bool g, bool b, uint16_t on_count, uint16_t off_count)"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include <led.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <stdint.h>\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#pragma once\n\n#include <led.h>\n#include <stdint.h>\n\n#define LED_R_PIN PORTD.PODR.BIT.B2 //R\n#define LED_G_PIN PORTD.PODR.BIT.B3 //G\n#define LED_B_PIN PORTD.PODR.BIT.B4 //B\n\nnamespace umouse {\n\n///////////////////////////////////////////////////////////////////\n class LED_R : public LED {\n public:\n void setState(bool state_) {\n LED_R_PIN = 1-state_;\n state = state_;\n };\n };\n///////////////////////////////////////////////////////////////////\n class LED_G : public LED {\n public:\n void setState(bool state_) {\n LED_G_PIN = 1-state_;\n state = state_;\n };\n };\n///////////////////////////////////////////////////////////////////\n class LED_B : public LED {\n public:\n void setState(bool state_) {\n LED_B_PIN = 1-state_;\n state = state_;\n };\n };\n///////////////////////////////////////////////////////////////////\n class FcLed {\n public:\n static FcLed& getInstance() {\n static FcLed instance;\n return instance;\n }\n\n LED_R R;\n LED_G G;\n LED_B B;\n void update() {\n R.update();\n G.update();\n B.update();\n }\n void turn(bool r, bool g, bool b) {\n R.turn(r);\n G.turn(g);\n B.turn(b);\n }\n\n void flash(bool r, bool g, bool b, uint16_t on_count, uint16_t off_count) {\n if(r == 1) R.flash(on_count, off_count);\n else R.turn(0);\n\n if(g == 1) G.flash(on_count, off_count);\n else G.turn(0);\n\n if(b == 1) B.flash(on_count, off_count);\n else B.turn(0);\n }\n private:\n FcLed() {turn(0,0,0);}\n ~FcLed() {turn(0,0,0);}\n FcLed(FcLed&) {turn(0,0,0);}\n };\n\n}\n"}
80,292
c
// Scene.h: interface for the Scene class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_SCENE_H__CB8FF316_9C3D_4B74_94F6_B504E5AC18A5__INCLUDED_) #define AFX_SCENE_H__CB8FF316_9C3D_4B74_94F6_B504E5AC18A5__INCLUDED_ #include <GL/gl.h> #include <GL/glu.h> // #include <gl/Glaux.h> #include "z-edmap.h" #include "Poly.h" #include "Brush.h" #include "texsys.h" #include "SceItem.h" #include "Skydom.h" #include "bspfilestr.h" #include "Motion.h" #include "ScriptItem.h" #include "SoundItem.h" #include "CustItemCat.h" /// item categories #include "rfHillTerrain.h" //--------------------------------------------------------------------------------------- class Scene : public SceItem { public: Scene(){ Initialize(); } void Initialize() { strcpy(_si.author,"<NAME>"); strcpy(_si.comments,"Getic 2.3"); _si.levelType = LEV_QUEST; _si.maxActors = 8; _si.maxFrags = 100; _si.maxTime = 15; _si.defLumin = CLR(128,128,128); _si.gravAcc = 9.81; _si.camFar = 65535; _si.camFov = 64.0; _si.sceSpeed = 2.0; _si.sceFlags = 0; _si.fogNear = 0; _si.fogFar = 0; _si.fogColor = ZWHITE; _si.fogDens = 0; _si.fogFallOff =0; strcpy(_name, "scene"); //_si.camOrient1 //_si.camOrient2 }; virtual ~Scene(){ Clear(); } void Clear(){ // items first. they may release owned brushes Initialize(); ClearItems(); ClearBrushes(); ClearMotions(); ClearScripts(); ClearSounds(); ClearCats(); ClearPrimitives(); _terrain.Clear(); _descs.clear(); _errstring=""; } void ClearScripts(){_scripts.deleteelements();} void ClearSounds(){_sounds.deleteelements();} void ClearItems(){_items.deleteelements();} void ClearMotions(){_motions.deleteelements();} void ClearPrimitives(); void ClearBrushes(); int GetPolyCnt(); PBrushes* GetPrimitives(){return &_primitives;}; void AddBrush(Brush* pB){_brushes <<(pB);} PBrushes* GetBrushes(){return &_brushes;}; void AddPrimitive(Brush* pB){pB->_brushflags &= ~BRSH_NEW;_primitives << (pB);} Brush* GetPrimitive(int brSel){if(brSel < (int)_primitives.size()) return _primitives[brSel];return 0;} Brush* GetBrush(int brSel){if(brSel < (int)_brushes.size()) return _brushes[brSel];return 0;} Brush* GetBrushByID(int brushID){FOREACH(PBrushes, _primitives, ppb){if((*ppb)->_unicID == brushID){return *ppb;}}return 0;} int AddItem(SceItem* pi){int sz = _items.size();_items << pi;return sz;} void DelItem(SceItem* pi){ vvector<SceItem*>::iterator fi = _items.findelement(pi); if(fi != _items.end()){_items.erase(fi);delete pi;} } SceItem* GetItem(int idx){return (idx < (int)_items.size()) ? _items[idx] : 0;} vvector<SceItem*>* GetItems(){return &_items;} SceItem* GetItemByID(int itemID){ FOREACH(vvector<SceItem*>, _items, ppi){ if((*ppi)->_id == itemID){ return *ppi; } } return 0; } int GetItemsByType(SceItem** ppArray, size_t type, int imax) { int retval = 0; FOREACH(vvector<SceItem*>, _items, ppi){ if((*ppi)->_item==ITM_LIGTBULB){ ppArray[retval++] = (*ppi); if(retval >= imax) break; } } return retval; } SceItem* GetItemByPtr(size_t itemPtr){ FOREACH(vvector<SceItem*>, _items, ppi){ if((size_t)(*ppi) == itemPtr){ return *ppi; } } return 0; } long GetIndex(SceItem* pi) { return _items.getindex(pi); } // motions long GetIndex(CMotion* pi) { return _motions.getindex(pi); } int AddMotion(CMotion* pi) { int sz = _items.size(); _motions << pi; return sz; } void DelMotion(CMotion* pi){ vvector<CMotion*>::iterator fi = _motions.findelement(pi); if(fi != _motions.end()) { delete pi; _motions.erase(fi); } } vvector<CMotion*>* GetMotions(){return &_motions;} int AddScript(ScriptItem* pi) { int sz = _scripts.size(); _scripts << pi; return sz; } void DelScript(ScriptItem* pi) { vvector<ScriptItem*>::iterator fi = _scripts.findelement(pi); if(fi != _scripts.end()) { delete pi; _scripts.erase(fi); } } ScriptItem* GetScript(long index){ return _scripts[index]; } vvector<ScriptItem*>* GetScripts(){ return &_scripts; } long GetIndex(ScriptItem* pi){ vvector<ScriptItem*>::iterator fi = _scripts.findelement(pi); if(fi != _scripts.end()) { return fi-_scripts.begin(); } return -1; } int FindSoundByName(const char* psz); int AddSound(CSoundItem* pi) { int sz = _sounds.size(); _sounds << pi; return sz; } void DelSound(CSoundItem* pi) { vvector<CSoundItem*>::iterator fi = _sounds.findelement(pi); if(fi != _sounds.end()) { delete pi; _sounds.erase(fi); } } vvector<CSoundItem*>* GetSounds(){ return &_sounds; } long GetIndex(CSoundItem* ps){ vvector<CSoundItem*>::iterator fi = _sounds.findelement(ps); if(fi != _sounds.end()) { return fi-_sounds.begin(); } return -1; } CSoundItem* GetSound(int idx){ return _sounds[idx]; } // item cathegories managemenet (per game) BOOL HasCats(){return _gamecats.size()!=0;} BOOL SearchCats(const char* fileName); void ClearCats(); vvector<ItemCat>* GetCats(){return &_gamecats;} ItemCat* GetCat(const char* catname) { FOREACH(vvector<ItemCat>,_gamecats,pc) { if(!strcmp(pc->_catname,catname)){ return &(*pc); } } return 0; } CBigTerrain& Terrain(){return _terrain;} map<string ,string>& Descriptions(){ return _descs;} void SetCam(const V3& pos, const V3& elr){_campos=pos; _cameuler=elr;}; private: BOOL ParseSection(string& errors, vvector<char*>& classes, vvector<char*>& items); private: vvector<Brush*> _primitives; vvector<Brush*> _brushes; vvector<SceItem*> _items; vvector<CMotion*> _motions; vvector<ScriptItem*> _scripts; vvector<CSoundItem*> _sounds; vvector<ItemCat> _gamecats; CBigTerrain _terrain; map<string ,string> _descs; string _errstring; public: BST_SceneInfo _si; SkyDom _dom; int _GCarving; int _dummy[3]; V3 _campos; V3 _cameuler; }; #endif // !defined(AFX_SCENE_H__CB8FF316_9C3D_4B74_94F6_B504E5AC18A5__INCLUDED_)
26.41
273
(translation_unit) "// Scene.h: interface for the Scene class. \n// \n////////////////////////////////////////////////////////////////////// \n#if !defined(AFX_SCENE_H__CB8FF316_9C3D_4B74_94F6_B504E5AC18A5__INCLUDED_) \n#define AFX_SCENE_H__CB8FF316_9C3D_4B74_94F6_B504E5AC18A5__INCLUDED_ \n \n \n \n \n#include <GL/gl.h> \n#include <GL/glu.h> \n// #include <gl/Glaux.h> \n#include "z-edmap.h" \n#include "Poly.h" \n#include "Brush.h" \n#include "texsys.h" \n#include "SceItem.h" \n#include "Skydom.h" \n#include "bspfilestr.h" \n#include "Motion.h" \n#include "ScriptItem.h" \n#include "SoundItem.h" \n#include "CustItemCat.h" /// item categories \n#include "rfHillTerrain.h" \n \n//--------------------------------------------------------------------------------------- \nclass Scene : public SceItem \n{ \npublic: \n Scene(){ \n Initialize(); \n } \n \n void Initialize() \n { \n strcpy(_si.author,"<NAME>"); \n strcpy(_si.comments,"Getic 2.3"); \n _si.levelType = LEV_QUEST; \n _si.maxActors = 8; \n _si.maxFrags = 100; \n _si.maxTime = 15; \n _si.defLumin = CLR(128,128,128); \n _si.gravAcc = 9.81; \n _si.camFar = 65535; \n _si.camFov = 64.0; \n _si.sceSpeed = 2.0; \n _si.sceFlags = 0; \n _si.fogNear = 0; \n _si.fogFar = 0; \n _si.fogColor = ZWHITE; \n _si.fogDens = 0; \n _si.fogFallOff =0; \n \n strcpy(_name, "scene"); \n //_si.camOrient1 \n //_si.camOrient2 \n \n }; \n virtual ~Scene(){ \n Clear(); \n } \n \n void Clear(){ \n // items first. they may release owned brushes \n Initialize(); \n ClearItems(); \n ClearBrushes(); \n ClearMotions(); \n ClearScripts(); \n ClearSounds(); \n ClearCats(); \n ClearPrimitives(); \n _terrain.Clear(); \n _descs.clear(); \n _errstring=""; \n } \n void ClearScripts(){_scripts.deleteelements();} \n void ClearSounds(){_sounds.deleteelements();} \n void ClearItems(){_items.deleteelements();} \n void ClearMotions(){_motions.deleteelements();} \n void ClearPrimitives(); \n void ClearBrushes(); \n int GetPolyCnt(); \n PBrushes* GetPrimitives(){return &_primitives;}; \n void AddBrush(Brush* pB){_brushes <<(pB);} \n PBrushes* GetBrushes(){return &_brushes;}; \n void AddPrimitive(Brush* pB){pB->_brushflags &= ~BRSH_NEW;_primitives << (pB);} \n Brush* GetPrimitive(int brSel){if(brSel < (int)_primitives.size()) return _primitives[brSel];return 0;} \n Brush* GetBrush(int brSel){if(brSel < (int)_brushes.size()) return _brushes[brSel];return 0;} \n Brush* GetBrushByID(int brushID){FOREACH(PBrushes, _primitives, ppb){if((*ppb)->_unicID == brushID){return *ppb;}}return 0;} \n int AddItem(SceItem* pi){int sz = _items.size();_items << pi;return sz;} \n void DelItem(SceItem* pi){ \n vvector<SceItem*>::iterator fi = _items.findelement(pi); \n if(fi != _items.end()){_items.erase(fi);delete pi;} \n } \n SceItem* GetItem(int idx){return (idx < (int)_items.size()) ? _items[idx] : 0;} \n vvector<SceItem*>* GetItems(){return &_items;} \n SceItem* GetItemByID(int itemID){ \n FOREACH(vvector<SceItem*>, _items, ppi){ \n if((*ppi)->_id == itemID){ \n return *ppi; \n } \n } \n return 0; \n } \n \n int GetItemsByType(SceItem** ppArray, size_t type, int imax) \n { \n int retval = 0; \n FOREACH(vvector<SceItem*>, _items, ppi){ \n if((*ppi)->_item==ITM_LIGTBULB){ \n ppArray[retval++] = (*ppi); \n if(retval >= imax) \n break; \n } \n } \n return retval; \n } \n \n SceItem* GetItemByPtr(size_t itemPtr){ \n FOREACH(vvector<SceItem*>, _items, ppi){ \n if((size_t)(*ppi) == itemPtr){ \n return *ppi; \n } \n } \n return 0; \n } \n \n long GetIndex(SceItem* pi) \n { \n return _items.getindex(pi); \n } \n \n// motions \n long GetIndex(CMotion* pi) \n { \n return _motions.getindex(pi); \n } \n \n \n int AddMotion(CMotion* pi) \n { \n int sz = _items.size(); \n _motions << pi; \n return sz; \n } \n \n void DelMotion(CMotion* pi){ \n vvector<CMotion*>::iterator fi = _motions.findelement(pi); \n if(fi != _motions.end()) \n { \n delete pi; \n _motions.erase(fi); \n } \n } \n vvector<CMotion*>* GetMotions(){return &_motions;} \n int AddScript(ScriptItem* pi) \n { \n int sz = _scripts.size(); \n _scripts << pi; \n return sz; \n } \n \n void DelScript(ScriptItem* pi) \n { \n vvector<ScriptItem*>::iterator fi = _scripts.findelement(pi); \n if(fi != _scripts.end()) \n { \n delete pi; \n _scripts.erase(fi); \n } \n } \n \n ScriptItem* GetScript(long index){ \n return _scripts[index]; \n } \n \n \n vvector<ScriptItem*>* GetScripts(){ \n return &_scripts; \n } \n \n long GetIndex(ScriptItem* pi){ \n vvector<ScriptItem*>::iterator fi = _scripts.findelement(pi); \n if(fi != _scripts.end()) \n { \n return fi-_scripts.begin(); \n } \n return -1; \n } \n \n int FindSoundByName(const char* psz); \n \n int AddSound(CSoundItem* pi) \n { \n int sz = _sounds.size(); \n _sounds << pi; \n return sz; \n } \n \n void DelSound(CSoundItem* pi) \n { \n vvector<CSoundItem*>::iterator fi = _sounds.findelement(pi); \n if(fi != _sounds.end()) \n { \n delete pi; \n _sounds.erase(fi); \n } \n } \n \n vvector<CSoundItem*>* GetSounds(){ \n return &_sounds; \n } \n \n long GetIndex(CSoundItem* ps){ \n vvector<CSoundItem*>::iterator fi = _sounds.findelement(ps); \n if(fi != _sounds.end()) \n { \n return fi-_sounds.begin(); \n } \n return -1; \n } \n \n CSoundItem* GetSound(int idx){ \n return _sounds[idx]; \n } \n \n// item cathegories managemenet (per game) \n BOOL HasCats(){return _gamecats.size()!=0;} \n BOOL SearchCats(const char* fileName); \n void ClearCats(); \n vvector<ItemCat>* GetCats(){return &_gamecats;} \n ItemCat* GetCat(const char* catname) \n { \n FOREACH(vvector<ItemCat>,_gamecats,pc) \n { \n if(!strcmp(pc->_catname,catname)){ \n return &(*pc); \n } \n } \n return 0; \n } \n \n CBigTerrain& Terrain(){return _terrain;} \n map<string ,string>& Descriptions(){ return _descs;} \n void SetCam(const V3& pos, const V3& elr){_campos=pos; _cameuler=elr;}; \nprivate: \n \n BOOL ParseSection(string& errors, vvector<char*>& classes, vvector<char*>& items); \n \n \nprivate: \n vvector<Brush*> _primitives; \n vvector<Brush*> _brushes; \n vvector<SceItem*> _items; \n vvector<CMotion*> _motions; \n vvector<ScriptItem*> _scripts; \n vvector<CSoundItem*> _sounds; \n vvector<ItemCat> _gamecats; \n CBigTerrain _terrain; \n map<string ,string> _descs; \n string _errstring; \npublic: \n BST_SceneInfo _si; \n SkyDom _dom; \n int _GCarving; \n int _dummy[3]; \n V3 _campos; \n V3 _cameuler; \n}; \n \n \n#endif // !defined(AFX_SCENE_H__CB8FF316_9C3D_4B74_94F6_B504E5AC18A5__INCLUDED_) \n \n" (comment) "// Scene.h: interface for the Scene class. " (comment) "// " (comment) "////////////////////////////////////////////////////////////////////// " (preproc_if) "#if !defined(AFX_SCENE_H__CB8FF316_9C3D_4B74_94F6_B504E5AC18A5__INCLUDED_) \n#define AFX_SCENE_H__CB8FF316_9C3D_4B74_94F6_B504E5AC18A5__INCLUDED_ \n \n \n \n \n#include <GL/gl.h> \n#include <GL/glu.h> \n// #include <gl/Glaux.h> \n#include "z-edmap.h" \n#include "Poly.h" \n#include "Brush.h" \n#include "texsys.h" \n#include "SceItem.h" \n#include "Skydom.h" \n#include "bspfilestr.h" \n#include "Motion.h" \n#include "ScriptItem.h" \n#include "SoundItem.h" \n#include "CustItemCat.h" /// item categories \n#include "rfHillTerrain.h" \n \n//--------------------------------------------------------------------------------------- \nclass Scene : public SceItem \n{ \npublic: \n Scene(){ \n Initialize(); \n } \n \n void Initialize() \n { \n strcpy(_si.author,"<NAME>"); \n strcpy(_si.comments,"Getic 2.3"); \n _si.levelType = LEV_QUEST; \n _si.maxActors = 8; \n _si.maxFrags = 100; \n _si.maxTime = 15; \n _si.defLumin = CLR(128,128,128); \n _si.gravAcc = 9.81; \n _si.camFar = 65535; \n _si.camFov = 64.0; \n _si.sceSpeed = 2.0; \n _si.sceFlags = 0; \n _si.fogNear = 0; \n _si.fogFar = 0; \n _si.fogColor = ZWHITE; \n _si.fogDens = 0; \n _si.fogFallOff =0; \n \n strcpy(_name, "scene"); \n //_si.camOrient1 \n //_si.camOrient2 \n \n }; \n virtual ~Scene(){ \n Clear(); \n } \n \n void Clear(){ \n // items first. they may release owned brushes \n Initialize(); \n ClearItems(); \n ClearBrushes(); \n ClearMotions(); \n ClearScripts(); \n ClearSounds(); \n ClearCats(); \n ClearPrimitives(); \n _terrain.Clear(); \n _descs.clear(); \n _errstring=""; \n } \n void ClearScripts(){_scripts.deleteelements();} \n void ClearSounds(){_sounds.deleteelements();} \n void ClearItems(){_items.deleteelements();} \n void ClearMotions(){_motions.deleteelements();} \n void ClearPrimitives(); \n void ClearBrushes(); \n int GetPolyCnt(); \n PBrushes* GetPrimitives(){return &_primitives;}; \n void AddBrush(Brush* pB){_brushes <<(pB);} \n PBrushes* GetBrushes(){return &_brushes;}; \n void AddPrimitive(Brush* pB){pB->_brushflags &= ~BRSH_NEW;_primitives << (pB);} \n Brush* GetPrimitive(int brSel){if(brSel < (int)_primitives.size()) return _primitives[brSel];return 0;} \n Brush* GetBrush(int brSel){if(brSel < (int)_brushes.size()) return _brushes[brSel];return 0;} \n Brush* GetBrushByID(int brushID){FOREACH(PBrushes, _primitives, ppb){if((*ppb)->_unicID == brushID){return *ppb;}}return 0;} \n int AddItem(SceItem* pi){int sz = _items.size();_items << pi;return sz;} \n void DelItem(SceItem* pi){ \n vvector<SceItem*>::iterator fi = _items.findelement(pi); \n if(fi != _items.end()){_items.erase(fi);delete pi;} \n } \n SceItem* GetItem(int idx){return (idx < (int)_items.size()) ? _items[idx] : 0;} \n vvector<SceItem*>* GetItems(){return &_items;} \n SceItem* GetItemByID(int itemID){ \n FOREACH(vvector<SceItem*>, _items, ppi){ \n if((*ppi)->_id == itemID){ \n return *ppi; \n } \n } \n return 0; \n } \n \n int GetItemsByType(SceItem** ppArray, size_t type, int imax) \n { \n int retval = 0; \n FOREACH(vvector<SceItem*>, _items, ppi){ \n if((*ppi)->_item==ITM_LIGTBULB){ \n ppArray[retval++] = (*ppi); \n if(retval >= imax) \n break; \n } \n } \n return retval; \n } \n \n SceItem* GetItemByPtr(size_t itemPtr){ \n FOREACH(vvector<SceItem*>, _items, ppi){ \n if((size_t)(*ppi) == itemPtr){ \n return *ppi; \n } \n } \n return 0; \n } \n \n long GetIndex(SceItem* pi) \n { \n return _items.getindex(pi); \n } \n \n// motions \n long GetIndex(CMotion* pi) \n { \n return _motions.getindex(pi); \n } \n \n \n int AddMotion(CMotion* pi) \n { \n int sz = _items.size(); \n _motions << pi; \n return sz; \n } \n \n void DelMotion(CMotion* pi){ \n vvector<CMotion*>::iterator fi = _motions.findelement(pi); \n if(fi != _motions.end()) \n { \n delete pi; \n _motions.erase(fi); \n } \n } \n vvector<CMotion*>* GetMotions(){return &_motions;} \n int AddScript(ScriptItem* pi) \n { \n int sz = _scripts.size(); \n _scripts << pi; \n return sz; \n } \n \n void DelScript(ScriptItem* pi) \n { \n vvector<ScriptItem*>::iterator fi = _scripts.findelement(pi); \n if(fi != _scripts.end()) \n { \n delete pi; \n _scripts.erase(fi); \n } \n } \n \n ScriptItem* GetScript(long index){ \n return _scripts[index]; \n } \n \n \n vvector<ScriptItem*>* GetScripts(){ \n return &_scripts; \n } \n \n long GetIndex(ScriptItem* pi){ \n vvector<ScriptItem*>::iterator fi = _scripts.findelement(pi); \n if(fi != _scripts.end()) \n { \n return fi-_scripts.begin(); \n } \n return -1; \n } \n \n int FindSoundByName(const char* psz); \n \n int AddSound(CSoundItem* pi) \n { \n int sz = _sounds.size(); \n _sounds << pi; \n return sz; \n } \n \n void DelSound(CSoundItem* pi) \n { \n vvector<CSoundItem*>::iterator fi = _sounds.findelement(pi); \n if(fi != _sounds.end()) \n { \n delete pi; \n _sounds.erase(fi); \n } \n } \n \n vvector<CSoundItem*>* GetSounds(){ \n return &_sounds; \n } \n \n long GetIndex(CSoundItem* ps){ \n vvector<CSoundItem*>::iterator fi = _sounds.findelement(ps); \n if(fi != _sounds.end()) \n { \n return fi-_sounds.begin(); \n } \n return -1; \n } \n \n CSoundItem* GetSound(int idx){ \n return _sounds[idx]; \n } \n \n// item cathegories managemenet (per game) \n BOOL HasCats(){return _gamecats.size()!=0;} \n BOOL SearchCats(const char* fileName); \n void ClearCats(); \n vvector<ItemCat>* GetCats(){return &_gamecats;} \n ItemCat* GetCat(const char* catname) \n { \n FOREACH(vvector<ItemCat>,_gamecats,pc) \n { \n if(!strcmp(pc->_catname,catname)){ \n return &(*pc); \n } \n } \n return 0; \n } \n \n CBigTerrain& Terrain(){return _terrain;} \n map<string ,string>& Descriptions(){ return _descs;} \n void SetCam(const V3& pos, const V3& elr){_campos=pos; _cameuler=elr;}; \nprivate: \n \n BOOL ParseSection(string& errors, vvector<char*>& classes, vvector<char*>& items); \n \n \nprivate: \n vvector<Brush*> _primitives; \n vvector<Brush*> _brushes; \n vvector<SceItem*> _items; \n vvector<CMotion*> _motions; \n vvector<ScriptItem*> _scripts; \n vvector<CSoundItem*> _sounds; \n vvector<ItemCat> _gamecats; \n CBigTerrain _terrain; \n map<string ,string> _descs; \n string _errstring; \npublic: \n BST_SceneInfo _si; \n SkyDom _dom; \n int _GCarving; \n int _dummy[3]; \n V3 _campos; \n V3 _cameuler; \n}; \n \n \n#endif" (#if) "#if" (unary_expression) "!defined(AFX_SCENE_H__CB8FF316_9C3D_4B74_94F6_B504E5AC18A5__INCLUDED_)" (!) "!" (preproc_defined) "defined(AFX_SCENE_H__CB8FF316_9C3D_4B74_94F6_B504E5AC18A5__INCLUDED_)" (defined) "defined" (() "(" (identifier) "AFX_SCENE_H__CB8FF316_9C3D_4B74_94F6_B504E5AC18A5__INCLUDED_" ()) ")" ( ) "\n" (preproc_def) "#define AFX_SCENE_H__CB8FF316_9C3D_4B74_94F6_B504E5AC18A5__INCLUDED_ \n" (#define) "#define" (identifier) "AFX_SCENE_H__CB8FF316_9C3D_4B74_94F6_B504E5AC18A5__INCLUDED_" (preproc_include) "#include <GL/gl.h> \n" (#include) "#include" (system_lib_string) "<GL/gl.h>" (preproc_include) "#include <GL/glu.h> \n" (#include) "#include" (system_lib_string) "<GL/glu.h>" (comment) "// #include <gl/Glaux.h> " (preproc_include) "#include "z-edmap.h" \n" (#include) "#include" (string_literal) ""z-edmap.h"" (") """ (string_content) "z-edmap.h" (") """ (preproc_include) "#include "Poly.h" \n" (#include) "#include" (string_literal) ""Poly.h"" (") """ (string_content) "Poly.h" (") """ (preproc_include) "#include "Brush.h" \n" (#include) "#include" (string_literal) ""Brush.h"" (") """ (string_content) "Brush.h" (") """ (preproc_include) "#include "texsys.h" \n" (#include) "#include" (string_literal) ""texsys.h"" (") """ (string_content) "texsys.h" (") """ (preproc_include) "#include "SceItem.h" \n" (#include) "#include" (string_literal) ""SceItem.h"" (") """ (string_content) "SceItem.h" (") """ (preproc_include) "#include "Skydom.h" \n" (#include) "#include" (string_literal) ""Skydom.h"" (") """ (string_content) "Skydom.h" (") """ (preproc_include) "#include "bspfilestr.h" \n" (#include) "#include" (string_literal) ""bspfilestr.h"" (") """ (string_content) "bspfilestr.h" (") """ (preproc_include) "#include "Motion.h" \n" (#include) "#include" (string_literal) ""Motion.h"" (") """ (string_content) "Motion.h" (") """ (preproc_include) "#include "ScriptItem.h" \n" (#include) "#include" (string_literal) ""ScriptItem.h"" (") """ (string_content) "ScriptItem.h" (") """ (preproc_include) "#include "SoundItem.h" \n" (#include) "#include" (string_literal) ""SoundItem.h"" (") """ (string_content) "SoundItem.h" (") """ (preproc_include) "#include "CustItemCat.h" /// item categories \n" (#include) "#include" (string_literal) ""CustItemCat.h"" (") """ (string_content) "CustItemCat.h" (") """ (comment) "/// item categories " (preproc_include) "#include "rfHillTerrain.h" \n" (#include) "#include" (string_literal) ""rfHillTerrain.h"" (") """ (string_content) "rfHillTerrain.h" (") """ (comment) "//--------------------------------------------------------------------------------------- " (function_definition) "class Scene : public SceItem \n{ \npublic: \n Scene(){ \n Initialize(); \n } \n \n void Initialize() \n { \n strcpy(_si.author,"<NAME>"); \n strcpy(_si.comments,"Getic 2.3"); \n _si.levelType = LEV_QUEST; \n _si.maxActors = 8; \n _si.maxFrags = 100; \n _si.maxTime = 15; \n _si.defLumin = CLR(128,128,128); \n _si.gravAcc = 9.81; \n _si.camFar = 65535; \n _si.camFov = 64.0; \n _si.sceSpeed = 2.0; \n _si.sceFlags = 0; \n _si.fogNear = 0; \n _si.fogFar = 0; \n _si.fogColor = ZWHITE; \n _si.fogDens = 0; \n _si.fogFallOff =0; \n \n strcpy(_name, "scene"); \n //_si.camOrient1 \n //_si.camOrient2 \n \n }; \n virtual ~Scene(){ \n Clear(); \n } \n \n void Clear(){ \n // items first. they may release owned brushes \n Initialize(); \n ClearItems(); \n ClearBrushes(); \n ClearMotions(); \n ClearScripts(); \n ClearSounds(); \n ClearCats(); \n ClearPrimitives(); \n _terrain.Clear(); \n _descs.clear(); \n _errstring=""; \n } \n void ClearScripts(){_scripts.deleteelements();} \n void ClearSounds(){_sounds.deleteelements();} \n void ClearItems(){_items.deleteelements();} \n void ClearMotions(){_motions.deleteelements();} \n void ClearPrimitives(); \n void ClearBrushes(); \n int GetPolyCnt(); \n PBrushes* GetPrimitives(){return &_primitives;}; \n void AddBrush(Brush* pB){_brushes <<(pB);} \n PBrushes* GetBrushes(){return &_brushes;}; \n void AddPrimitive(Brush* pB){pB->_brushflags &= ~BRSH_NEW;_primitives << (pB);} \n Brush* GetPrimitive(int brSel){if(brSel < (int)_primitives.size()) return _primitives[brSel];return 0;} \n Brush* GetBrush(int brSel){if(brSel < (int)_brushes.size()) return _brushes[brSel];return 0;} \n Brush* GetBrushByID(int brushID){FOREACH(PBrushes, _primitives, ppb){if((*ppb)->_unicID == brushID){return *ppb;}}return 0;} \n int AddItem(SceItem* pi){int sz = _items.size();_items << pi;return sz;} \n void DelItem(SceItem* pi){ \n vvector<SceItem*>::iterator fi = _items.findelement(pi); \n if(fi != _items.end()){_items.erase(fi);delete pi;} \n } \n SceItem* GetItem(int idx){return (idx < (int)_items.size()) ? _items[idx] : 0;} \n vvector<SceItem*>* GetItems(){return &_items;} \n SceItem* GetItemByID(int itemID){ \n FOREACH(vvector<SceItem*>, _items, ppi){ \n if((*ppi)->_id == itemID){ \n return *ppi; \n } \n } \n return 0; \n } \n \n int GetItemsByType(SceItem** ppArray, size_t type, int imax) \n { \n int retval = 0; \n FOREACH(vvector<SceItem*>, _items, ppi){ \n if((*ppi)->_item==ITM_LIGTBULB){ \n ppArray[retval++] = (*ppi); \n if(retval >= imax) \n break; \n } \n } \n return retval; \n } \n \n SceItem* GetItemByPtr(size_t itemPtr){ \n FOREACH(vvector<SceItem*>, _items, ppi){ \n if((size_t)(*ppi) == itemPtr){ \n return *ppi; \n } \n } \n return 0; \n } \n \n long GetIndex(SceItem* pi) \n { \n return _items.getindex(pi); \n } \n \n// motions \n long GetIndex(CMotion* pi) \n { \n return _motions.getindex(pi); \n } \n \n \n int AddMotion(CMotion* pi) \n { \n int sz = _items.size(); \n _motions << pi; \n return sz; \n } \n \n void DelMotion(CMotion* pi){ \n vvector<CMotion*>::iterator fi = _motions.findelement(pi); \n if(fi != _motions.end()) \n { \n delete pi; \n _motions.erase(fi); \n } \n } \n vvector<CMotion*>* GetMotions(){return &_motions;} \n int AddScript(ScriptItem* pi) \n { \n int sz = _scripts.size(); \n _scripts << pi; \n return sz; \n } \n \n void DelScript(ScriptItem* pi) \n { \n vvector<ScriptItem*>::iterator fi = _scripts.findelement(pi); \n if(fi != _scripts.end()) \n { \n delete pi; \n _scripts.erase(fi); \n } \n } \n \n ScriptItem* GetScript(long index){ \n return _scripts[index]; \n } \n \n \n vvector<ScriptItem*>* GetScripts(){ \n return &_scripts; \n } \n \n long GetIndex(ScriptItem* pi){ \n vvector<ScriptItem*>::iterator fi = _scripts.findelement(pi); \n if(fi != _scripts.end()) \n { \n return fi-_scripts.begin(); \n } \n return -1; \n } \n \n int FindSoundByName(const char* psz); \n \n int AddSound(CSoundItem* pi) \n { \n int sz = _sounds.size(); \n _sounds << pi; \n return sz; \n } \n \n void DelSound(CSoundItem* pi) \n { \n vvector<CSoundItem*>::iterator fi = _sounds.findelement(pi); \n if(fi != _sounds.end()) \n { \n delete pi; \n _sounds.erase(fi); \n } \n } \n \n vvector<CSoundItem*>* GetSounds(){ \n return &_sounds; \n } \n \n long GetIndex(CSoundItem* ps){ \n vvector<CSoundItem*>::iterator fi = _sounds.findelement(ps); \n if(fi != _sounds.end()) \n { \n return fi-_sounds.begin(); \n } \n return -1; \n } \n \n CSoundItem* GetSound(int idx){ \n return _sounds[idx]; \n } \n \n// item cathegories managemenet (per game) \n BOOL HasCats(){return _gamecats.size()!=0;} \n BOOL SearchCats(const char* fileName); \n void ClearCats(); \n vvector<ItemCat>* GetCats(){return &_gamecats;} \n ItemCat* GetCat(const char* catname) \n { \n FOREACH(vvector<ItemCat>,_gamecats,pc) \n { \n if(!strcmp(pc->_catname,catname)){ \n return &(*pc); \n } \n } \n return 0; \n } \n \n CBigTerrain& Terrain(){return _terrain;} \n map<string ,string>& Descriptions(){ return _descs;} \n void SetCam(const V3& pos, const V3& elr){_campos=pos; _cameuler=elr;}; \nprivate: \n \n BOOL ParseSection(string& errors, vvector<char*>& classes, vvector<char*>& items); \n \n \nprivate: \n vvector<Brush*> _primitives; \n vvector<Brush*> _brushes; \n vvector<SceItem*> _items; \n vvector<CMotion*> _motions; \n vvector<ScriptItem*> _scripts; \n vvector<CSoundItem*> _sounds; \n vvector<ItemCat> _gamecats; \n CBigTerrain _terrain; \n map<string ,string> _descs; \n string _errstring; \npublic: \n BST_SceneInfo _si; \n SkyDom _dom; \n int _GCarving; \n int _dummy[3]; \n V3 _campos; \n V3 _cameuler; \n}" (type_identifier) "class" (ERROR) "Scene : public" (identifier) "Scene" (:) ":" (identifier) "public" (identifier) "SceItem" (compound_statement) "{ \npublic: \n Scene(){ \n Initialize(); \n } \n \n void Initialize() \n { \n strcpy(_si.author,"<NAME>"); \n strcpy(_si.comments,"Getic 2.3"); \n _si.levelType = LEV_QUEST; \n _si.maxActors = 8; \n _si.maxFrags = 100; \n _si.maxTime = 15; \n _si.defLumin = CLR(128,128,128); \n _si.gravAcc = 9.81; \n _si.camFar = 65535; \n _si.camFov = 64.0; \n _si.sceSpeed = 2.0; \n _si.sceFlags = 0; \n _si.fogNear = 0; \n _si.fogFar = 0; \n _si.fogColor = ZWHITE; \n _si.fogDens = 0; \n _si.fogFallOff =0; \n \n strcpy(_name, "scene"); \n //_si.camOrient1 \n //_si.camOrient2 \n \n }; \n virtual ~Scene(){ \n Clear(); \n } \n \n void Clear(){ \n // items first. they may release owned brushes \n Initialize(); \n ClearItems(); \n ClearBrushes(); \n ClearMotions(); \n ClearScripts(); \n ClearSounds(); \n ClearCats(); \n ClearPrimitives(); \n _terrain.Clear(); \n _descs.clear(); \n _errstring=""; \n } \n void ClearScripts(){_scripts.deleteelements();} \n void ClearSounds(){_sounds.deleteelements();} \n void ClearItems(){_items.deleteelements();} \n void ClearMotions(){_motions.deleteelements();} \n void ClearPrimitives(); \n void ClearBrushes(); \n int GetPolyCnt(); \n PBrushes* GetPrimitives(){return &_primitives;}; \n void AddBrush(Brush* pB){_brushes <<(pB);} \n PBrushes* GetBrushes(){return &_brushes;}; \n void AddPrimitive(Brush* pB){pB->_brushflags &= ~BRSH_NEW;_primitives << (pB);} \n Brush* GetPrimitive(int brSel){if(brSel < (int)_primitives.size()) return _primitives[brSel];return 0;} \n Brush* GetBrush(int brSel){if(brSel < (int)_brushes.size()) return _brushes[brSel];return 0;} \n Brush* GetBrushByID(int brushID){FOREACH(PBrushes, _primitives, ppb){if((*ppb)->_unicID == brushID){return *ppb;}}return 0;} \n int AddItem(SceItem* pi){int sz = _items.size();_items << pi;return sz;} \n void DelItem(SceItem* pi){ \n vvector<SceItem*>::iterator fi = _items.findelement(pi); \n if(fi != _items.end()){_items.erase(fi);delete pi;} \n } \n SceItem* GetItem(int idx){return (idx < (int)_items.size()) ? _items[idx] : 0;} \n vvector<SceItem*>* GetItems(){return &_items;} \n SceItem* GetItemByID(int itemID){ \n FOREACH(vvector<SceItem*>, _items, ppi){ \n if((*ppi)->_id == itemID){ \n return *ppi; \n } \n } \n return 0; \n } \n \n int GetItemsByType(SceItem** ppArray, size_t type, int imax) \n { \n int retval = 0; \n FOREACH(vvector<SceItem*>, _items, ppi){ \n if((*ppi)->_item==ITM_LIGTBULB){ \n ppArray[retval++] = (*ppi); \n if(retval >= imax) \n break; \n } \n } \n return retval; \n } \n \n SceItem* GetItemByPtr(size_t itemPtr){ \n FOREACH(vvector<SceItem*>, _items, ppi){ \n if((size_t)(*ppi) == itemPtr){ \n return *ppi; \n } \n } \n return 0; \n } \n \n long GetIndex(SceItem* pi) \n { \n return _items.getindex(pi); \n } \n \n// motions \n long GetIndex(CMotion* pi) \n { \n return _motions.getindex(pi); \n } \n \n \n int AddMotion(CMotion* pi) \n { \n int sz = _items.size(); \n _motions << pi; \n return sz; \n } \n \n void DelMotion(CMotion* pi){ \n vvector<CMotion*>::iterator fi = _motions.findelement(pi); \n if(fi != _motions.end()) \n { \n delete pi; \n _motions.erase(fi); \n } \n } \n vvector<CMotion*>* GetMotions(){return &_motions;} \n int AddScript(ScriptItem* pi) \n { \n int sz = _scripts.size(); \n _scripts << pi; \n return sz; \n } \n \n void DelScript(ScriptItem* pi) \n { \n vvector<ScriptItem*>::iterator fi = _scripts.findelement(pi); \n if(fi != _scripts.end()) \n { \n delete pi; \n _scripts.erase(fi); \n } \n } \n \n ScriptItem* GetScript(long index){ \n return _scripts[index]; \n } \n \n \n vvector<ScriptItem*>* GetScripts(){ \n return &_scripts; \n } \n \n long GetIndex(ScriptItem* pi){ \n vvector<ScriptItem*>::iterator fi = _scripts.findelement(pi); \n if(fi != _scripts.end()) \n { \n return fi-_scripts.begin(); \n } \n return -1; \n } \n \n int FindSoundByName(const char* psz); \n \n int AddSound(CSoundItem* pi) \n { \n int sz = _sounds.size(); \n _sounds << pi; \n return sz; \n } \n \n void DelSound(CSoundItem* pi) \n { \n vvector<CSoundItem*>::iterator fi = _sounds.findelement(pi); \n if(fi != _sounds.end()) \n { \n delete pi; \n _sounds.erase(fi); \n } \n } \n \n vvector<CSoundItem*>* GetSounds(){ \n return &_sounds; \n } \n \n long GetIndex(CSoundItem* ps){ \n vvector<CSoundItem*>::iterator fi = _sounds.findelement(ps); \n if(fi != _sounds.end()) \n { \n return fi-_sounds.begin(); \n } \n return -1; \n } \n \n CSoundItem* GetSound(int idx){ \n return _sounds[idx]; \n } \n \n// item cathegories managemenet (per game) \n BOOL HasCats(){return _gamecats.size()!=0;} \n BOOL SearchCats(const char* fileName); \n void ClearCats(); \n vvector<ItemCat>* GetCats(){return &_gamecats;} \n ItemCat* GetCat(const char* catname) \n { \n FOREACH(vvector<ItemCat>,_gamecats,pc) \n { \n if(!strcmp(pc->_catname,catname)){ \n return &(*pc); \n } \n } \n return 0; \n } \n \n CBigTerrain& Terrain(){return _terrain;} \n map<string ,string>& Descriptions(){ return _descs;} \n void SetCam(const V3& pos, const V3& elr){_campos=pos; _cameuler=elr;}; \nprivate: \n \n BOOL ParseSection(string& errors, vvector<char*>& classes, vvector<char*>& items); \n \n \nprivate: \n vvector<Brush*> _primitives; \n vvector<Brush*> _brushes; \n vvector<SceItem*> _items; \n vvector<CMotion*> _motions; \n vvector<ScriptItem*> _scripts; \n vvector<CSoundItem*> _sounds; \n vvector<ItemCat> _gamecats; \n CBigTerrain _terrain; \n map<string ,string> _descs; \n string _errstring; \npublic: \n BST_SceneInfo _si; \n SkyDom _dom; \n int _GCarving; \n int _dummy[3]; \n V3 _campos; \n V3 _cameuler; \n}" ({) "{" (labeled_statement) "public: \n Scene(){ \n Initialize(); \n }" (statement_identifier) "public" (:) ":" (ERROR) "Scene()" (call_expression) "Scene()" (identifier) "Scene" (argument_list) "()" (() "(" ()) ")" (compound_statement) "{ \n Initialize(); \n }" ({) "{" (expression_statement) "Initialize();" (call_expression) "Initialize()" (identifier) "Initialize" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (function_definition) "void Initialize() \n { \n strcpy(_si.author,"<NAME>"); \n strcpy(_si.comments,"Getic 2.3"); \n _si.levelType = LEV_QUEST; \n _si.maxActors = 8; \n _si.maxFrags = 100; \n _si.maxTime = 15; \n _si.defLumin = CLR(128,128,128); \n _si.gravAcc = 9.81; \n _si.camFar = 65535; \n _si.camFov = 64.0; \n _si.sceSpeed = 2.0; \n _si.sceFlags = 0; \n _si.fogNear = 0; \n _si.fogFar = 0; \n _si.fogColor = ZWHITE; \n _si.fogDens = 0; \n _si.fogFallOff =0; \n \n strcpy(_name, "scene"); \n //_si.camOrient1 \n //_si.camOrient2 \n \n }" (primitive_type) "void" (function_declarator) "Initialize()" (identifier) "Initialize" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ \n strcpy(_si.author,"<NAME>"); \n strcpy(_si.comments,"Getic 2.3"); \n _si.levelType = LEV_QUEST; \n _si.maxActors = 8; \n _si.maxFrags = 100; \n _si.maxTime = 15; \n _si.defLumin = CLR(128,128,128); \n _si.gravAcc = 9.81; \n _si.camFar = 65535; \n _si.camFov = 64.0; \n _si.sceSpeed = 2.0; \n _si.sceFlags = 0; \n _si.fogNear = 0; \n _si.fogFar = 0; \n _si.fogColor = ZWHITE; \n _si.fogDens = 0; \n _si.fogFallOff =0; \n \n strcpy(_name, "scene"); \n //_si.camOrient1 \n //_si.camOrient2 \n \n }" ({) "{" (expression_statement) "strcpy(_si.author,"<NAME>");" (call_expression) "strcpy(_si.author,"<NAME>")" (identifier) "strcpy" (argument_list) "(_si.author,"<NAME>")" (() "(" (field_expression) "_si.author" (identifier) "_si" (.) "." (field_identifier) "author" (,) "," (string_literal) ""<NAME>"" (") """ (string_content) "<NAME>" (") """ ()) ")" (;) ";" (expression_statement) "strcpy(_si.comments,"Getic 2.3");" (call_expression) "strcpy(_si.comments,"Getic 2.3")" (identifier) "strcpy" (argument_list) "(_si.comments,"Getic 2.3")" (() "(" (field_expression) "_si.comments" (identifier) "_si" (.) "." (field_identifier) "comments" (,) "," (string_literal) ""Getic 2.3"" (") """ (string_content) "Getic 2.3" (") """ ()) ")" (;) ";" (expression_statement) "_si.levelType = LEV_QUEST;" (assignment_expression) "_si.levelType = LEV_QUEST" (field_expression) "_si.levelType" (identifier) "_si" (.) "." (field_identifier) "levelType" (=) "=" (identifier) "LEV_QUEST" (;) ";" (expression_statement) "_si.maxActors = 8;" (assignment_expression) "_si.maxActors = 8" (field_expression) "_si.maxActors" (identifier) "_si" (.) "." (field_identifier) "maxActors" (=) "=" (number_literal) "8" (;) ";" (expression_statement) "_si.maxFrags = 100;" (assignment_expression) "_si.maxFrags = 100" (field_expression) "_si.maxFrags" (identifier) "_si" (.) "." (field_identifier) "maxFrags" (=) "=" (number_literal) "100" (;) ";" (expression_statement) "_si.maxTime = 15;" (assignment_expression) "_si.maxTime = 15" (field_expression) "_si.maxTime" (identifier) "_si" (.) "." (field_identifier) "maxTime" (=) "=" (number_literal) "15" (;) ";" (expression_statement) "_si.defLumin = CLR(128,128,128);" (assignment_expression) "_si.defLumin = CLR(128,128,128)" (field_expression) "_si.defLumin" (identifier) "_si" (.) "." (field_identifier) "defLumin" (=) "=" (call_expression) "CLR(128,128,128)" (identifier) "CLR" (argument_list) "(128,128,128)" (() "(" (number_literal) "128" (,) "," (number_literal) "128" (,) "," (number_literal) "128" ()) ")" (;) ";" (expression_statement) "_si.gravAcc = 9.81;" (assignment_expression) "_si.gravAcc = 9.81" (field_expression) "_si.gravAcc" (identifier) "_si" (.) "." (field_identifier) "gravAcc" (=) "=" (number_literal) "9.81" (;) ";" (expression_statement) "_si.camFar = 65535;" (assignment_expression) "_si.camFar = 65535" (field_expression) "_si.camFar" (identifier) "_si" (.) "." (field_identifier) "camFar" (=) "=" (number_literal) "65535" (;) ";" (expression_statement) "_si.camFov = 64.0;" (assignment_expression) "_si.camFov = 64.0" (field_expression) "_si.camFov" (identifier) "_si" (.) "." (field_identifier) "camFov" (=) "=" (number_literal) "64.0" (;) ";" (expression_statement) "_si.sceSpeed = 2.0;" (assignment_expression) "_si.sceSpeed = 2.0" (field_expression) "_si.sceSpeed" (identifier) "_si" (.) "." (field_identifier) "sceSpeed" (=) "=" (number_literal) "2.0" (;) ";" (expression_statement) "_si.sceFlags = 0;" (assignment_expression) "_si.sceFlags = 0" (field_expression) "_si.sceFlags" (identifier) "_si" (.) "." (field_identifier) "sceFlags" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "_si.fogNear = 0;" (assignment_expression) "_si.fogNear = 0" (field_expression) "_si.fogNear" (identifier) "_si" (.) "." (field_identifier) "fogNear" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "_si.fogFar = 0;" (assignment_expression) "_si.fogFar = 0" (field_expression) "_si.fogFar" (identifier) "_si" (.) "." (field_identifier) "fogFar" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "_si.fogColor = ZWHITE;" (assignment_expression) "_si.fogColor = ZWHITE" (field_expression) "_si.fogColor" (identifier) "_si" (.) "." (field_identifier) "fogColor" (=) "=" (identifier) "ZWHITE" (;) ";" (expression_statement) "_si.fogDens = 0;" (assignment_expression) "_si.fogDens = 0" (field_expression) "_si.fogDens" (identifier) "_si" (.) "." (field_identifier) "fogDens" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "_si.fogFallOff =0;" (assignment_expression) "_si.fogFallOff =0" (field_expression) "_si.fogFallOff" (identifier) "_si" (.) "." (field_identifier) "fogFallOff" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "strcpy(_name, "scene");" (call_expression) "strcpy(_name, "scene")" (identifier) "strcpy" (argument_list) "(_name, "scene")" (() "(" (identifier) "_name" (,) "," (string_literal) ""scene"" (") """ (string_content) "scene" (") """ ()) ")" (;) ";" (comment) "//_si.camOrient1 " (comment) "//_si.camOrient2 " (}) "}" (expression_statement) ";" (;) ";" (function_definition) "virtual ~Scene(){ \n Clear(); \n }" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "Scene()" (identifier) "Scene" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ \n Clear(); \n }" ({) "{" (expression_statement) "Clear();" (call_expression) "Clear()" (identifier) "Clear" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (function_definition) "void Clear(){ \n // items first. they may release owned brushes \n Initialize(); \n ClearItems(); \n ClearBrushes(); \n ClearMotions(); \n ClearScripts(); \n ClearSounds(); \n ClearCats(); \n ClearPrimitives(); \n _terrain.Clear(); \n _descs.clear(); \n _errstring=""; \n }" (primitive_type) "void" (function_declarator) "Clear()" (identifier) "Clear" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ \n // items first. they may release owned brushes \n Initialize(); \n ClearItems(); \n ClearBrushes(); \n ClearMotions(); \n ClearScripts(); \n ClearSounds(); \n ClearCats(); \n ClearPrimitives(); \n _terrain.Clear(); \n _descs.clear(); \n _errstring=""; \n }" ({) "{" (comment) "// items first. they may release owned brushes " (expression_statement) "Initialize();" (call_expression) "Initialize()" (identifier) "Initialize" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "ClearItems();" (call_expression) "ClearItems()" (identifier) "ClearItems" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "ClearBrushes();" (call_expression) "ClearBrushes()" (identifier) "ClearBrushes" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "ClearMotions();" (call_expression) "ClearMotions()" (identifier) "ClearMotions" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "ClearScripts();" (call_expression) "ClearScripts()" (identifier) "ClearScripts" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "ClearSounds();" (call_expression) "ClearSounds()" (identifier) "ClearSounds" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "ClearCats();" (call_expression) "ClearCats()" (identifier) "ClearCats" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "ClearPrimitives();" (call_expression) "ClearPrimitives()" (identifier) "ClearPrimitives" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "_terrain.Clear();" (call_expression) "_terrain.Clear()" (field_expression) "_terrain.Clear" (identifier) "_terrain" (.) "." (field_identifier) "Clear" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "_descs.clear();" (call_expression) "_descs.clear()" (field_expression) "_descs.clear" (identifier) "_descs" (.) "." (field_identifier) "clear" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "_errstring="";" (assignment_expression) "_errstring=""" (identifier) "_errstring" (=) "=" (string_literal) """" (") """ (") """ (;) ";" (}) "}" (function_definition) "void ClearScripts(){_scripts.deleteelements();}" (primitive_type) "void" (function_declarator) "ClearScripts()" (identifier) "ClearScripts" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{_scripts.deleteelements();}" ({) "{" (expression_statement) "_scripts.deleteelements();" (call_expression) "_scripts.deleteelements()" (field_expression) "_scripts.deleteelements" (identifier) "_scripts" (.) "." (field_identifier) "deleteelements" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (function_definition) "void ClearSounds(){_sounds.deleteelements();}" (primitive_type) "void" (function_declarator) "ClearSounds()" (identifier) "ClearSounds" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{_sounds.deleteelements();}" ({) "{" (expression_statement) "_sounds.deleteelements();" (call_expression) "_sounds.deleteelements()" (field_expression) "_sounds.deleteelements" (identifier) "_sounds" (.) "." (field_identifier) "deleteelements" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (function_definition) "void ClearItems(){_items.deleteelements();}" (primitive_type) "void" (function_declarator) "ClearItems()" (identifier) "ClearItems" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{_items.deleteelements();}" ({) "{" (expression_statement) "_items.deleteelements();" (call_expression) "_items.deleteelements()" (field_expression) "_items.deleteelements" (identifier) "_items" (.) "." (field_identifier) "deleteelements" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (function_definition) "void ClearMotions(){_motions.deleteelements();}" (primitive_type) "void" (function_declarator) "ClearMotions()" (identifier) "ClearMotions" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{_motions.deleteelements();}" ({) "{" (expression_statement) "_motions.deleteelements();" (call_expression) "_motions.deleteelements()" (field_expression) "_motions.deleteelements" (identifier) "_motions" (.) "." (field_identifier) "deleteelements" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (declaration) "void ClearPrimitives();" (primitive_type) "void" (function_declarator) "ClearPrimitives()" (identifier) "ClearPrimitives" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void ClearBrushes();" (primitive_type) "void" (function_declarator) "ClearBrushes()" (identifier) "ClearBrushes" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "int GetPolyCnt();" (primitive_type) "int" (function_declarator) "GetPolyCnt()" (identifier) "GetPolyCnt" (parameter_list) "()" (() "(" ()) ")" (;) ";" (function_definition) "PBrushes* GetPrimitives(){return &_primitives;}" (type_identifier) "PBrushes" (pointer_declarator) "* GetPrimitives()" (*) "*" (function_declarator) "GetPrimitives()" (identifier) "GetPrimitives" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{return &_primitives;}" ({) "{" (return_statement) "return &_primitives;" (return) "return" (pointer_expression) "&_primitives" (&) "&" (identifier) "_primitives" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "void AddBrush(Brush* pB){_brushes <<(pB);}" (primitive_type) "void" (function_declarator) "AddBrush(Brush* pB)" (identifier) "AddBrush" (parameter_list) "(Brush* pB)" (() "(" (parameter_declaration) "Brush* pB" (type_identifier) "Brush" (pointer_declarator) "* pB" (*) "*" (identifier) "pB" ()) ")" (compound_statement) "{_brushes <<(pB);}" ({) "{" (expression_statement) "_brushes <<(pB);" (binary_expression) "_brushes <<(pB)" (identifier) "_brushes" (<<) "<<" (parenthesized_expression) "(pB)" (() "(" (identifier) "pB" ()) ")" (;) ";" (}) "}" (function_definition) "PBrushes* GetBrushes(){return &_brushes;}" (type_identifier) "PBrushes" (pointer_declarator) "* GetBrushes()" (*) "*" (function_declarator) "GetBrushes()" (identifier) "GetBrushes" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{return &_brushes;}" ({) "{" (return_statement) "return &_brushes;" (return) "return" (pointer_expression) "&_brushes" (&) "&" (identifier) "_brushes" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "void AddPrimitive(Brush* pB){pB->_brushflags &= ~BRSH_NEW;_primitives << (pB);}" (primitive_type) "void" (function_declarator) "AddPrimitive(Brush* pB)" (identifier) "AddPrimitive" (parameter_list) "(Brush* pB)" (() "(" (parameter_declaration) "Brush* pB" (type_identifier) "Brush" (pointer_declarator) "* pB" (*) "*" (identifier) "pB" ()) ")" (compound_statement) "{pB->_brushflags &= ~BRSH_NEW;_primitives << (pB);}" ({) "{" (expression_statement) "pB->_brushflags &= ~BRSH_NEW;" (assignment_expression) "pB->_brushflags &= ~BRSH_NEW" (field_expression) "pB->_brushflags" (identifier) "pB" (->) "->" (field_identifier) "_brushflags" (&=) "&=" (unary_expression) "~BRSH_NEW" (~) "~" (identifier) "BRSH_NEW" (;) ";" (expression_statement) "_primitives << (pB);" (binary_expression) "_primitives << (pB)" (identifier) "_primitives" (<<) "<<" (parenthesized_expression) "(pB)" (() "(" (identifier) "pB" ()) ")" (;) ";" (}) "}" (function_definition) "Brush* GetPrimitive(int brSel){if(brSel < (int)_primitives.size()) return _primitives[brSel];return 0;}" (type_identifier) "Brush" (pointer_declarator) "* GetPrimitive(int brSel)" (*) "*" (function_declarator) "GetPrimitive(int brSel)" (identifier) "GetPrimitive" (parameter_list) "(int brSel)" (() "(" (parameter_declaration) "int brSel" (primitive_type) "int" (identifier) "brSel" ()) ")" (compound_statement) "{if(brSel < (int)_primitives.size()) return _primitives[brSel];return 0;}" ({) "{" (if_statement) "if(brSel < (int)_primitives.size()) return _primitives[brSel];" (if) "if" (parenthesized_expression) "(brSel < (int)_primitives.size())" (() "(" (binary_expression) "brSel < (int)_primitives.size()" (identifier) "brSel" (<) "<" (cast_expression) "(int)_primitives.size()" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (call_expression) "_primitives.size()" (field_expression) "_primitives.size" (identifier) "_primitives" (.) "." (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" ()) ")" (return_statement) "return _primitives[brSel];" (return) "return" (subscript_expression) "_primitives[brSel]" (identifier) "_primitives" ([) "[" (identifier) "brSel" (]) "]" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "Brush* GetBrush(int brSel){if(brSel < (int)_brushes.size()) return _brushes[brSel];return 0;}" (type_identifier) "Brush" (pointer_declarator) "* GetBrush(int brSel)" (*) "*" (function_declarator) "GetBrush(int brSel)" (identifier) "GetBrush" (parameter_list) "(int brSel)" (() "(" (parameter_declaration) "int brSel" (primitive_type) "int" (identifier) "brSel" ()) ")" (compound_statement) "{if(brSel < (int)_brushes.size()) return _brushes[brSel];return 0;}" ({) "{" (if_statement) "if(brSel < (int)_brushes.size()) return _brushes[brSel];" (if) "if" (parenthesized_expression) "(brSel < (int)_brushes.size())" (() "(" (binary_expression) "brSel < (int)_brushes.size()" (identifier) "brSel" (<) "<" (cast_expression) "(int)_brushes.size()" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (call_expression) "_brushes.size()" (field_expression) "_brushes.size" (identifier) "_brushes" (.) "." (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" ()) ")" (return_statement) "return _brushes[brSel];" (return) "return" (subscript_expression) "_brushes[brSel]" (identifier) "_brushes" ([) "[" (identifier) "brSel" (]) "]" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "Brush* GetBrushByID(int brushID){FOREACH(PBrushes, _primitives, ppb){if((*ppb)->_unicID == brushID){return *ppb;}}return 0;}" (type_identifier) "Brush" (pointer_declarator) "* GetBrushByID(int brushID)" (*) "*" (function_declarator) "GetBrushByID(int brushID)" (identifier) "GetBrushByID" (parameter_list) "(int brushID)" (() "(" (parameter_declaration) "int brushID" (primitive_type) "int" (identifier) "brushID" ()) ")" (compound_statement) "{FOREACH(PBrushes, _primitives, ppb){if((*ppb)->_unicID == brushID){return *ppb;}}return 0;}" ({) "{" (expression_statement) "FOREACH(PBrushes, _primitives, ppb)" (call_expression) "FOREACH(PBrushes, _primitives, ppb)" (identifier) "FOREACH" (argument_list) "(PBrushes, _primitives, ppb)" (() "(" (identifier) "PBrushes" (,) "," (identifier) "_primitives" (,) "," (identifier) "ppb" ()) ")" (;) "" (compound_statement) "{if((*ppb)->_unicID == brushID){return *ppb;}}" ({) "{" (if_statement) "if((*ppb)->_unicID == brushID){return *ppb;}" (if) "if" (parenthesized_expression) "((*ppb)->_unicID == brushID)" (() "(" (binary_expression) "(*ppb)->_unicID == brushID" (field_expression) "(*ppb)->_unicID" (parenthesized_expression) "(*ppb)" (() "(" (pointer_expression) "*ppb" (*) "*" (identifier) "ppb" ()) ")" (->) "->" (field_identifier) "_unicID" (==) "==" (identifier) "brushID" ()) ")" (compound_statement) "{return *ppb;}" ({) "{" (return_statement) "return *ppb;" (return) "return" (pointer_expression) "*ppb" (*) "*" (identifier) "ppb" (;) ";" (}) "}" (}) "}" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "int AddItem(SceItem* pi){int sz = _items.size();_items << pi;return sz;}" (primitive_type) "int" (function_declarator) "AddItem(SceItem* pi)" (identifier) "AddItem" (parameter_list) "(SceItem* pi)" (() "(" (parameter_declaration) "SceItem* pi" (type_identifier) "SceItem" (pointer_declarator) "* pi" (*) "*" (identifier) "pi" ()) ")" (compound_statement) "{int sz = _items.size();_items << pi;return sz;}" ({) "{" (declaration) "int sz = _items.size();" (primitive_type) "int" (init_declarator) "sz = _items.size()" (identifier) "sz" (=) "=" (call_expression) "_items.size()" (field_expression) "_items.size" (identifier) "_items" (.) "." (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "_items << pi;" (binary_expression) "_items << pi" (identifier) "_items" (<<) "<<" (identifier) "pi" (;) ";" (return_statement) "return sz;" (return) "return" (identifier) "sz" (;) ";" (}) "}" (function_definition) "void DelItem(SceItem* pi){ \n vvector<SceItem*>::iterator fi = _items.findelement(pi); \n if(fi != _items.end()){_items.erase(fi);delete pi;} \n }" (primitive_type) "void" (function_declarator) "DelItem(SceItem* pi)" (identifier) "DelItem" (parameter_list) "(SceItem* pi)" (() "(" (parameter_declaration) "SceItem* pi" (type_identifier) "SceItem" (pointer_declarator) "* pi" (*) "*" (identifier) "pi" ()) ")" (compound_statement) "{ \n vvector<SceItem*>::iterator fi = _items.findelement(pi); \n if(fi != _items.end()){_items.erase(fi);delete pi;} \n }" ({) "{" (expression_statement) "vvector<SceItem*>::iterator fi = _items.findelement(pi);" (binary_expression) "vvector<SceItem*>::iterator fi = _items.findelement(pi)" (identifier) "vvector" (<) "<" (binary_expression) "SceItem*>::iterator fi = _items.findelement(pi)" (identifier) "SceItem" (*) "*" (ERROR) ">::iterator" (>) ">" (:) ":" (:) ":" (identifier) "iterator" (assignment_expression) "fi = _items.findelement(pi)" (identifier) "fi" (=) "=" (call_expression) "_items.findelement(pi)" (field_expression) "_items.findelement" (identifier) "_items" (.) "." (field_identifier) "findelement" (argument_list) "(pi)" (() "(" (identifier) "pi" ()) ")" (;) ";" (if_statement) "if(fi != _items.end()){_items.erase(fi);delete pi;}" (if) "if" (parenthesized_expression) "(fi != _items.end())" (() "(" (binary_expression) "fi != _items.end()" (identifier) "fi" (!=) "!=" (call_expression) "_items.end()" (field_expression) "_items.end" (identifier) "_items" (.) "." (field_identifier) "end" (argument_list) "()" (() "(" ()) ")" ()) ")" (compound_statement) "{_items.erase(fi);delete pi;}" ({) "{" (expression_statement) "_items.erase(fi);" (call_expression) "_items.erase(fi)" (field_expression) "_items.erase" (identifier) "_items" (.) "." (field_identifier) "erase" (argument_list) "(fi)" (() "(" (identifier) "fi" ()) ")" (;) ";" (declaration) "delete pi;" (type_identifier) "delete" (identifier) "pi" (;) ";" (}) "}" (}) "}" (function_definition) "SceItem* GetItem(int idx){return (idx < (int)_items.size()) ? _items[idx] : 0;}" (type_identifier) "SceItem" (pointer_declarator) "* GetItem(int idx)" (*) "*" (function_declarator) "GetItem(int idx)" (identifier) "GetItem" (parameter_list) "(int idx)" (() "(" (parameter_declaration) "int idx" (primitive_type) "int" (identifier) "idx" ()) ")" (compound_statement) "{return (idx < (int)_items.size()) ? _items[idx] : 0;}" ({) "{" (return_statement) "return (idx < (int)_items.size()) ? _items[idx] : 0;" (return) "return" (conditional_expression) "(idx < (int)_items.size()) ? _items[idx] : 0" (parenthesized_expression) "(idx < (int)_items.size())" (() "(" (binary_expression) "idx < (int)_items.size()" (identifier) "idx" (<) "<" (cast_expression) "(int)_items.size()" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (call_expression) "_items.size()" (field_expression) "_items.size" (identifier) "_items" (.) "." (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" ()) ")" (?) "?" (subscript_expression) "_items[idx]" (identifier) "_items" ([) "[" (identifier) "idx" (]) "]" (:) ":" (number_literal) "0" (;) ";" (}) "}" (expression_statement) "vvector<SceItem*>* GetItems()" (binary_expression) "vvector<SceItem*>* GetItems()" (binary_expression) "vvector<SceItem" (identifier) "vvector" (<) "<" (identifier) "SceItem" (ERROR) "*" (*) "*" (>) ">" (pointer_expression) "* GetItems()" (*) "*" (call_expression) "GetItems()" (identifier) "GetItems" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{return &_items;}" ({) "{" (return_statement) "return &_items;" (return) "return" (pointer_expression) "&_items" (&) "&" (identifier) "_items" (;) ";" (}) "}" (function_definition) "SceItem* GetItemByID(int itemID){ \n FOREACH(vvector<SceItem*>, _items, ppi){ \n if((*ppi)->_id == itemID){ \n return *ppi; \n } \n } \n return 0; \n }" (type_identifier) "SceItem" (pointer_declarator) "* GetItemByID(int itemID)" (*) "*" (function_declarator) "GetItemByID(int itemID)" (identifier) "GetItemByID" (parameter_list) "(int itemID)" (() "(" (parameter_declaration) "int itemID" (primitive_type) "int" (identifier) "itemID" ()) ")" (compound_statement) "{ \n FOREACH(vvector<SceItem*>, _items, ppi){ \n if((*ppi)->_id == itemID){ \n return *ppi; \n } \n } \n return 0; \n }" ({) "{" (expression_statement) "FOREACH(vvector<SceItem*>, _items, ppi)" (call_expression) "FOREACH(vvector<SceItem*>, _items, ppi)" (identifier) "FOREACH" (argument_list) "(vvector<SceItem*>, _items, ppi)" (() "(" (binary_expression) "vvector<SceItem" (identifier) "vvector" (<) "<" (identifier) "SceItem" (ERROR) "*>" (*) "*" (>) ">" (,) "," (identifier) "_items" (,) "," (identifier) "ppi" ()) ")" (;) "" (compound_statement) "{ \n if((*ppi)->_id == itemID){ \n return *ppi; \n } \n }" ({) "{" (if_statement) "if((*ppi)->_id == itemID){ \n return *ppi; \n }" (if) "if" (parenthesized_expression) "((*ppi)->_id == itemID)" (() "(" (binary_expression) "(*ppi)->_id == itemID" (field_expression) "(*ppi)->_id" (parenthesized_expression) "(*ppi)" (() "(" (pointer_expression) "*ppi" (*) "*" (identifier) "ppi" ()) ")" (->) "->" (field_identifier) "_id" (==) "==" (identifier) "itemID" ()) ")" (compound_statement) "{ \n return *ppi; \n }" ({) "{" (return_statement) "return *ppi;" (return) "return" (pointer_expression) "*ppi" (*) "*" (identifier) "ppi" (;) ";" (}) "}" (}) "}" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "int GetItemsByType(SceItem** ppArray, size_t type, int imax) \n { \n int retval = 0; \n FOREACH(vvector<SceItem*>, _items, ppi){ \n if((*ppi)->_item==ITM_LIGTBULB){ \n ppArray[retval++] = (*ppi); \n if(retval >= imax) \n break; \n } \n } \n return retval; \n }" (primitive_type) "int" (function_declarator) "GetItemsByType(SceItem** ppArray, size_t type, int imax)" (identifier) "GetItemsByType" (parameter_list) "(SceItem** ppArray, size_t type, int imax)" (() "(" (parameter_declaration) "SceItem** ppArray" (type_identifier) "SceItem" (pointer_declarator) "** ppArray" (*) "*" (pointer_declarator) "* ppArray" (*) "*" (identifier) "ppArray" (,) "," (parameter_declaration) "size_t type" (primitive_type) "size_t" (identifier) "type" (,) "," (parameter_declaration) "int imax" (primitive_type) "int" (identifier) "imax" ()) ")" (compound_statement) "{ \n int retval = 0; \n FOREACH(vvector<SceItem*>, _items, ppi){ \n if((*ppi)->_item==ITM_LIGTBULB){ \n ppArray[retval++] = (*ppi); \n if(retval >= imax) \n break; \n } \n } \n return retval; \n }" ({) "{" (declaration) "int retval = 0;" (primitive_type) "int" (init_declarator) "retval = 0" (identifier) "retval" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "FOREACH(vvector<SceItem*>, _items, ppi)" (call_expression) "FOREACH(vvector<SceItem*>, _items, ppi)" (identifier) "FOREACH" (argument_list) "(vvector<SceItem*>, _items, ppi)" (() "(" (binary_expression) "vvector<SceItem" (identifier) "vvector" (<) "<" (identifier) "SceItem" (ERROR) "*>" (*) "*" (>) ">" (,) "," (identifier) "_items" (,) "," (identifier) "ppi" ()) ")" (;) "" (compound_statement) "{ \n if((*ppi)->_item==ITM_LIGTBULB){ \n ppArray[retval++] = (*ppi); \n if(retval >= imax) \n break; \n } \n }" ({) "{" (if_statement) "if((*ppi)->_item==ITM_LIGTBULB){ \n ppArray[retval++] = (*ppi); \n if(retval >= imax) \n break; \n }" (if) "if" (parenthesized_expression) "((*ppi)->_item==ITM_LIGTBULB)" (() "(" (binary_expression) "(*ppi)->_item==ITM_LIGTBULB" (field_expression) "(*ppi)->_item" (parenthesized_expression) "(*ppi)" (() "(" (pointer_expression) "*ppi" (*) "*" (identifier) "ppi" ()) ")" (->) "->" (field_identifier) "_item" (==) "==" (identifier) "ITM_LIGTBULB" ()) ")" (compound_statement) "{ \n ppArray[retval++] = (*ppi); \n if(retval >= imax) \n break; \n }" ({) "{" (expression_statement) "ppArray[retval++] = (*ppi);" (assignment_expression) "ppArray[retval++] = (*ppi)" (subscript_expression) "ppArray[retval++]" (identifier) "ppArray" ([) "[" (update_expression) "retval++" (identifier) "retval" (++) "++" (]) "]" (=) "=" (parenthesized_expression) "(*ppi)" (() "(" (pointer_expression) "*ppi" (*) "*" (identifier) "ppi" ()) ")" (;) ";" (if_statement) "if(retval >= imax) \n break;" (if) "if" (parenthesized_expression) "(retval >= imax)" (() "(" (binary_expression) "retval >= imax" (identifier) "retval" (>=) ">=" (identifier) "imax" ()) ")" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (}) "}" (return_statement) "return retval;" (return) "return" (identifier) "retval" (;) ";" (}) "}" (function_definition) "SceItem* GetItemByPtr(size_t itemPtr){ \n FOREACH(vvector<SceItem*>, _items, ppi){ \n if((size_t)(*ppi) == itemPtr){ \n return *ppi; \n } \n } \n return 0; \n }" (type_identifier) "SceItem" (pointer_declarator) "* GetItemByPtr(size_t itemPtr)" (*) "*" (function_declarator) "GetItemByPtr(size_t itemPtr)" (identifier) "GetItemByPtr" (parameter_list) "(size_t itemPtr)" (() "(" (parameter_declaration) "size_t itemPtr" (primitive_type) "size_t" (identifier) "itemPtr" ()) ")" (compound_statement) "{ \n FOREACH(vvector<SceItem*>, _items, ppi){ \n if((size_t)(*ppi) == itemPtr){ \n return *ppi; \n } \n } \n return 0; \n }" ({) "{" (expression_statement) "FOREACH(vvector<SceItem*>, _items, ppi)" (call_expression) "FOREACH(vvector<SceItem*>, _items, ppi)" (identifier) "FOREACH" (argument_list) "(vvector<SceItem*>, _items, ppi)" (() "(" (binary_expression) "vvector<SceItem" (identifier) "vvector" (<) "<" (identifier) "SceItem" (ERROR) "*>" (*) "*" (>) ">" (,) "," (identifier) "_items" (,) "," (identifier) "ppi" ()) ")" (;) "" (compound_statement) "{ \n if((size_t)(*ppi) == itemPtr){ \n return *ppi; \n } \n }" ({) "{" (if_statement) "if((size_t)(*ppi) == itemPtr){ \n return *ppi; \n }" (if) "if" (parenthesized_expression) "((size_t)(*ppi) == itemPtr)" (() "(" (binary_expression) "(size_t)(*ppi) == itemPtr" (cast_expression) "(size_t)(*ppi)" (() "(" (type_descriptor) "size_t" (primitive_type) "size_t" ()) ")" (parenthesized_expression) "(*ppi)" (() "(" (pointer_expression) "*ppi" (*) "*" (identifier) "ppi" ()) ")" (==) "==" (identifier) "itemPtr" ()) ")" (compound_statement) "{ \n return *ppi; \n }" ({) "{" (return_statement) "return *ppi;" (return) "return" (pointer_expression) "*ppi" (*) "*" (identifier) "ppi" (;) ";" (}) "}" (}) "}" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "long GetIndex(SceItem* pi) \n { \n return _items.getindex(pi); \n }" (sized_type_specifier) "long" (long) "long" (function_declarator) "GetIndex(SceItem* pi)" (identifier) "GetIndex" (parameter_list) "(SceItem* pi)" (() "(" (parameter_declaration) "SceItem* pi" (type_identifier) "SceItem" (pointer_declarator) "* pi" (*) "*" (identifier) "pi" ()) ")" (compound_statement) "{ \n return _items.getindex(pi); \n }" ({) "{" (return_statement) "return _items.getindex(pi);" (return) "return" (call_expression) "_items.getindex(pi)" (field_expression) "_items.getindex" (identifier) "_items" (.) "." (field_identifier) "getindex" (argument_list) "(pi)" (() "(" (identifier) "pi" ()) ")" (;) ";" (}) "}" (comment) "// motions " (function_definition) "long GetIndex(CMotion* pi) \n { \n return _motions.getindex(pi); \n }" (sized_type_specifier) "long" (long) "long" (function_declarator) "GetIndex(CMotion* pi)" (identifier) "GetIndex" (parameter_list) "(CMotion* pi)" (() "(" (parameter_declaration) "CMotion* pi" (type_identifier) "CMotion" (pointer_declarator) "* pi" (*) "*" (identifier) "pi" ()) ")" (compound_statement) "{ \n return _motions.getindex(pi); \n }" ({) "{" (return_statement) "return _motions.getindex(pi);" (return) "return" (call_expression) "_motions.getindex(pi)" (field_expression) "_motions.getindex" (identifier) "_motions" (.) "." (field_identifier) "getindex" (argument_list) "(pi)" (() "(" (identifier) "pi" ()) ")" (;) ";" (}) "}" (function_definition) "int AddMotion(CMotion* pi) \n { \n int sz = _items.size(); \n _motions << pi; \n return sz; \n }" (primitive_type) "int" (function_declarator) "AddMotion(CMotion* pi)" (identifier) "AddMotion" (parameter_list) "(CMotion* pi)" (() "(" (parameter_declaration) "CMotion* pi" (type_identifier) "CMotion" (pointer_declarator) "* pi" (*) "*" (identifier) "pi" ()) ")" (compound_statement) "{ \n int sz = _items.size(); \n _motions << pi; \n return sz; \n }" ({) "{" (declaration) "int sz = _items.size();" (primitive_type) "int" (init_declarator) "sz = _items.size()" (identifier) "sz" (=) "=" (call_expression) "_items.size()" (field_expression) "_items.size" (identifier) "_items" (.) "." (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "_motions << pi;" (binary_expression) "_motions << pi" (identifier) "_motions" (<<) "<<" (identifier) "pi" (;) ";" (return_statement) "return sz;" (return) "return" (identifier) "sz" (;) ";" (}) "}" (function_definition) "void DelMotion(CMotion* pi){ \n vvector<CMotion*>::iterator fi = _motions.findelement(pi); \n if(fi != _motions.end()) \n { \n delete pi; \n _motions.erase(fi); \n } \n }" (primitive_type) "void" (function_declarator) "DelMotion(CMotion* pi)" (identifier) "DelMotion" (parameter_list) "(CMotion* pi)" (() "(" (parameter_declaration) "CMotion* pi" (type_identifier) "CMotion" (pointer_declarator) "* pi" (*) "*" (identifier) "pi" ()) ")" (compound_statement) "{ \n vvector<CMotion*>::iterator fi = _motions.findelement(pi); \n if(fi != _motions.end()) \n { \n delete pi; \n _motions.erase(fi); \n } \n }" ({) "{" (expression_statement) "vvector<CMotion*>::iterator fi = _motions.findelement(pi);" (binary_expression) "vvector<CMotion*>::iterator fi = _motions.findelement(pi)" (identifier) "vvector" (<) "<" (binary_expression) "CMotion*>::iterator fi = _motions.findelement(pi)" (identifier) "CMotion" (*) "*" (ERROR) ">::iterator" (>) ">" (:) ":" (:) ":" (identifier) "iterator" (assignment_expression) "fi = _motions.findelement(pi)" (identifier) "fi" (=) "=" (call_expression) "_motions.findelement(pi)" (field_expression) "_motions.findelement" (identifier) "_motions" (.) "." (field_identifier) "findelement" (argument_list) "(pi)" (() "(" (identifier) "pi" ()) ")" (;) ";" (if_statement) "if(fi != _motions.end()) \n { \n delete pi; \n _motions.erase(fi); \n }" (if) "if" (parenthesized_expression) "(fi != _motions.end())" (() "(" (binary_expression) "fi != _motions.end()" (identifier) "fi" (!=) "!=" (call_expression) "_motions.end()" (field_expression) "_motions.end" (identifier) "_motions" (.) "." (field_identifier) "end" (argument_list) "()" (() "(" ()) ")" ()) ")" (compound_statement) "{ \n delete pi; \n _motions.erase(fi); \n }" ({) "{" (declaration) "delete pi;" (type_identifier) "delete" (identifier) "pi" (;) ";" (expression_statement) "_motions.erase(fi);" (call_expression) "_motions.erase(fi)" (field_expression) "_motions.erase" (identifier) "_motions" (.) "." (field_identifier) "erase" (argument_list) "(fi)" (() "(" (identifier) "fi" ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) "vvector<CMotion*>* GetMotions()" (binary_expression) "vvector<CMotion*>* GetMotions()" (binary_expression) "vvector<CMotion" (identifier) "vvector" (<) "<" (identifier) "CMotion" (ERROR) "*" (*) "*" (>) ">" (pointer_expression) "* GetMotions()" (*) "*" (call_expression) "GetMotions()" (identifier) "GetMotions" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{return &_motions;}" ({) "{" (return_statement) "return &_motions;" (return) "return" (pointer_expression) "&_motions" (&) "&" (identifier) "_motions" (;) ";" (}) "}" (function_definition) "int AddScript(ScriptItem* pi) \n { \n int sz = _scripts.size(); \n _scripts << pi; \n return sz; \n }" (primitive_type) "int" (function_declarator) "AddScript(ScriptItem* pi)" (identifier) "AddScript" (parameter_list) "(ScriptItem* pi)" (() "(" (parameter_declaration) "ScriptItem* pi" (type_identifier) "ScriptItem" (pointer_declarator) "* pi" (*) "*" (identifier) "pi" ()) ")" (compound_statement) "{ \n int sz = _scripts.size(); \n _scripts << pi; \n return sz; \n }" ({) "{" (declaration) "int sz = _scripts.size();" (primitive_type) "int" (init_declarator) "sz = _scripts.size()" (identifier) "sz" (=) "=" (call_expression) "_scripts.size()" (field_expression) "_scripts.size" (identifier) "_scripts" (.) "." (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "_scripts << pi;" (binary_expression) "_scripts << pi" (identifier) "_scripts" (<<) "<<" (identifier) "pi" (;) ";" (return_statement) "return sz;" (return) "return" (identifier) "sz" (;) ";" (}) "}" (function_definition) "void DelScript(ScriptItem* pi) \n { \n vvector<ScriptItem*>::iterator fi = _scripts.findelement(pi); \n if(fi != _scripts.end()) \n { \n delete pi; \n _scripts.erase(fi); \n } \n }" (primitive_type) "void" (function_declarator) "DelScript(ScriptItem* pi)" (identifier) "DelScript" (parameter_list) "(ScriptItem* pi)" (() "(" (parameter_declaration) "ScriptItem* pi" (type_identifier) "ScriptItem" (pointer_declarator) "* pi" (*) "*" (identifier) "pi" ()) ")" (compound_statement) "{ \n vvector<ScriptItem*>::iterator fi = _scripts.findelement(pi); \n if(fi != _scripts.end()) \n { \n delete pi; \n _scripts.erase(fi); \n } \n }" ({) "{" (expression_statement) "vvector<ScriptItem*>::iterator fi = _scripts.findelement(pi);" (binary_expression) "vvector<ScriptItem*>::iterator fi = _scripts.findelement(pi)" (identifier) "vvector" (<) "<" (binary_expression) "ScriptItem*>::iterator fi = _scripts.findelement(pi)" (identifier) "ScriptItem" (*) "*" (ERROR) ">::iterator" (>) ">" (:) ":" (:) ":" (identifier) "iterator" (assignment_expression) "fi = _scripts.findelement(pi)" (identifier) "fi" (=) "=" (call_expression) "_scripts.findelement(pi)" (field_expression) "_scripts.findelement" (identifier) "_scripts" (.) "." (field_identifier) "findelement" (argument_list) "(pi)" (() "(" (identifier) "pi" ()) ")" (;) ";" (if_statement) "if(fi != _scripts.end()) \n { \n delete pi; \n _scripts.erase(fi); \n }" (if) "if" (parenthesized_expression) "(fi != _scripts.end())" (() "(" (binary_expression) "fi != _scripts.end()" (identifier) "fi" (!=) "!=" (call_expression) "_scripts.end()" (field_expression) "_scripts.end" (identifier) "_scripts" (.) "." (field_identifier) "end" (argument_list) "()" (() "(" ()) ")" ()) ")" (compound_statement) "{ \n delete pi; \n _scripts.erase(fi); \n }" ({) "{" (declaration) "delete pi;" (type_identifier) "delete" (identifier) "pi" (;) ";" (expression_statement) "_scripts.erase(fi);" (call_expression) "_scripts.erase(fi)" (field_expression) "_scripts.erase" (identifier) "_scripts" (.) "." (field_identifier) "erase" (argument_list) "(fi)" (() "(" (identifier) "fi" ()) ")" (;) ";" (}) "}" (}) "}" (function_definition) "ScriptItem* GetScript(long index){ \n return _scripts[index]; \n }" (type_identifier) "ScriptItem" (pointer_declarator) "* GetScript(long index)" (*) "*" (function_declarator) "GetScript(long index)" (identifier) "GetScript" (parameter_list) "(long index)" (() "(" (parameter_declaration) "long index" (sized_type_specifier) "long" (long) "long" (identifier) "index" ()) ")" (compound_statement) "{ \n return _scripts[index]; \n }" ({) "{" (return_statement) "return _scripts[index];" (return) "return" (subscript_expression) "_scripts[index]" (identifier) "_scripts" ([) "[" (identifier) "index" (]) "]" (;) ";" (}) "}" (expression_statement) "vvector<ScriptItem*>* GetScripts()" (binary_expression) "vvector<ScriptItem*>* GetScripts()" (binary_expression) "vvector<ScriptItem" (identifier) "vvector" (<) "<" (identifier) "ScriptItem" (ERROR) "*" (*) "*" (>) ">" (pointer_expression) "* GetScripts()" (*) "*" (call_expression) "GetScripts()" (identifier) "GetScripts" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{ \n return &_scripts; \n }" ({) "{" (return_statement) "return &_scripts;" (return) "return" (pointer_expression) "&_scripts" (&) "&" (identifier) "_scripts" (;) ";" (}) "}" (function_definition) "long GetIndex(ScriptItem* pi){ \n vvector<ScriptItem*>::iterator fi = _scripts.findelement(pi); \n if(fi != _scripts.end()) \n { \n return fi-_scripts.begin(); \n } \n return -1; \n }" (sized_type_specifier) "long" (long) "long" (function_declarator) "GetIndex(ScriptItem* pi)" (identifier) "GetIndex" (parameter_list) "(ScriptItem* pi)" (() "(" (parameter_declaration) "ScriptItem* pi" (type_identifier) "ScriptItem" (pointer_declarator) "* pi" (*) "*" (identifier) "pi" ()) ")" (compound_statement) "{ \n vvector<ScriptItem*>::iterator fi = _scripts.findelement(pi); \n if(fi != _scripts.end()) \n { \n return fi-_scripts.begin(); \n } \n return -1; \n }" ({) "{" (expression_statement) "vvector<ScriptItem*>::iterator fi = _scripts.findelement(pi);" (binary_expression) "vvector<ScriptItem*>::iterator fi = _scripts.findelement(pi)" (identifier) "vvector" (<) "<" (binary_expression) "ScriptItem*>::iterator fi = _scripts.findelement(pi)" (identifier) "ScriptItem" (*) "*" (ERROR) ">::iterator" (>) ">" (:) ":" (:) ":" (identifier) "iterator" (assignment_expression) "fi = _scripts.findelement(pi)" (identifier) "fi" (=) "=" (call_expression) "_scripts.findelement(pi)" (field_expression) "_scripts.findelement" (identifier) "_scripts" (.) "." (field_identifier) "findelement" (argument_list) "(pi)" (() "(" (identifier) "pi" ()) ")" (;) ";" (if_statement) "if(fi != _scripts.end()) \n { \n return fi-_scripts.begin(); \n }" (if) "if" (parenthesized_expression) "(fi != _scripts.end())" (() "(" (binary_expression) "fi != _scripts.end()" (identifier) "fi" (!=) "!=" (call_expression) "_scripts.end()" (field_expression) "_scripts.end" (identifier) "_scripts" (.) "." (field_identifier) "end" (argument_list) "()" (() "(" ()) ")" ()) ")" (compound_statement) "{ \n return fi-_scripts.begin(); \n }" ({) "{" (return_statement) "return fi-_scripts.begin();" (return) "return" (binary_expression) "fi-_scripts.begin()" (identifier) "fi" (-) "-" (call_expression) "_scripts.begin()" (field_expression) "_scripts.begin" (identifier) "_scripts" (.) "." (field_identifier) "begin" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (return_statement) "return -1;" (return) "return" (number_literal) "-1" (;) ";" (}) "}" (declaration) "int FindSoundByName(const char* psz);" (primitive_type) "int" (function_declarator) "FindSoundByName(const char* psz)" (identifier) "FindSoundByName" (parameter_list) "(const char* psz)" (() "(" (parameter_declaration) "const char* psz" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* psz" (*) "*" (identifier) "psz" ()) ")" (;) ";" (function_definition) "int AddSound(CSoundItem* pi) \n { \n int sz = _sounds.size(); \n _sounds << pi; \n return sz; \n }" (primitive_type) "int" (function_declarator) "AddSound(CSoundItem* pi)" (identifier) "AddSound" (parameter_list) "(CSoundItem* pi)" (() "(" (parameter_declaration) "CSoundItem* pi" (type_identifier) "CSoundItem" (pointer_declarator) "* pi" (*) "*" (identifier) "pi" ()) ")" (compound_statement) "{ \n int sz = _sounds.size(); \n _sounds << pi; \n return sz; \n }" ({) "{" (declaration) "int sz = _sounds.size();" (primitive_type) "int" (init_declarator) "sz = _sounds.size()" (identifier) "sz" (=) "=" (call_expression) "_sounds.size()" (field_expression) "_sounds.size" (identifier) "_sounds" (.) "." (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "_sounds << pi;" (binary_expression) "_sounds << pi" (identifier) "_sounds" (<<) "<<" (identifier) "pi" (;) ";" (return_statement) "return sz;" (return) "return" (identifier) "sz" (;) ";" (}) "}" (function_definition) "void DelSound(CSoundItem* pi) \n { \n vvector<CSoundItem*>::iterator fi = _sounds.findelement(pi); \n if(fi != _sounds.end()) \n { \n delete pi; \n _sounds.erase(fi); \n } \n }" (primitive_type) "void" (function_declarator) "DelSound(CSoundItem* pi)" (identifier) "DelSound" (parameter_list) "(CSoundItem* pi)" (() "(" (parameter_declaration) "CSoundItem* pi" (type_identifier) "CSoundItem" (pointer_declarator) "* pi" (*) "*" (identifier) "pi" ()) ")" (compound_statement) "{ \n vvector<CSoundItem*>::iterator fi = _sounds.findelement(pi); \n if(fi != _sounds.end()) \n { \n delete pi; \n _sounds.erase(fi); \n } \n }" ({) "{" (expression_statement) "vvector<CSoundItem*>::iterator fi = _sounds.findelement(pi);" (binary_expression) "vvector<CSoundItem*>::iterator fi = _sounds.findelement(pi)" (identifier) "vvector" (<) "<" (binary_expression) "CSoundItem*>::iterator fi = _sounds.findelement(pi)" (identifier) "CSoundItem" (*) "*" (ERROR) ">::iterator" (>) ">" (:) ":" (:) ":" (identifier) "iterator" (assignment_expression) "fi = _sounds.findelement(pi)" (identifier) "fi" (=) "=" (call_expression) "_sounds.findelement(pi)" (field_expression) "_sounds.findelement" (identifier) "_sounds" (.) "." (field_identifier) "findelement" (argument_list) "(pi)" (() "(" (identifier) "pi" ()) ")" (;) ";" (if_statement) "if(fi != _sounds.end()) \n { \n delete pi; \n _sounds.erase(fi); \n }" (if) "if" (parenthesized_expression) "(fi != _sounds.end())" (() "(" (binary_expression) "fi != _sounds.end()" (identifier) "fi" (!=) "!=" (call_expression) "_sounds.end()" (field_expression) "_sounds.end" (identifier) "_sounds" (.) "." (field_identifier) "end" (argument_list) "()" (() "(" ()) ")" ()) ")" (compound_statement) "{ \n delete pi; \n _sounds.erase(fi); \n }" ({) "{" (declaration) "delete pi;" (type_identifier) "delete" (identifier) "pi" (;) ";" (expression_statement) "_sounds.erase(fi);" (call_expression) "_sounds.erase(fi)" (field_expression) "_sounds.erase" (identifier) "_sounds" (.) "." (field_identifier) "erase" (argument_list) "(fi)" (() "(" (identifier) "fi" ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) "vvector<CSoundItem*>* GetSounds()" (binary_expression) "vvector<CSoundItem*>* GetSounds()" (binary_expression) "vvector<CSoundItem" (identifier) "vvector" (<) "<" (identifier) "CSoundItem" (ERROR) "*" (*) "*" (>) ">" (pointer_expression) "* GetSounds()" (*) "*" (call_expression) "GetSounds()" (identifier) "GetSounds" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{ \n return &_sounds; \n }" ({) "{" (return_statement) "return &_sounds;" (return) "return" (pointer_expression) "&_sounds" (&) "&" (identifier) "_sounds" (;) ";" (}) "}" (function_definition) "long GetIndex(CSoundItem* ps){ \n vvector<CSoundItem*>::iterator fi = _sounds.findelement(ps); \n if(fi != _sounds.end()) \n { \n return fi-_sounds.begin(); \n } \n return -1; \n }" (sized_type_specifier) "long" (long) "long" (function_declarator) "GetIndex(CSoundItem* ps)" (identifier) "GetIndex" (parameter_list) "(CSoundItem* ps)" (() "(" (parameter_declaration) "CSoundItem* ps" (type_identifier) "CSoundItem" (pointer_declarator) "* ps" (*) "*" (identifier) "ps" ()) ")" (compound_statement) "{ \n vvector<CSoundItem*>::iterator fi = _sounds.findelement(ps); \n if(fi != _sounds.end()) \n { \n return fi-_sounds.begin(); \n } \n return -1; \n }" ({) "{" (expression_statement) "vvector<CSoundItem*>::iterator fi = _sounds.findelement(ps);" (binary_expression) "vvector<CSoundItem*>::iterator fi = _sounds.findelement(ps)" (identifier) "vvector" (<) "<" (binary_expression) "CSoundItem*>::iterator fi = _sounds.findelement(ps)" (identifier) "CSoundItem" (*) "*" (ERROR) ">::iterator" (>) ">" (:) ":" (:) ":" (identifier) "iterator" (assignment_expression) "fi = _sounds.findelement(ps)" (identifier) "fi" (=) "=" (call_expression) "_sounds.findelement(ps)" (field_expression) "_sounds.findelement" (identifier) "_sounds" (.) "." (field_identifier) "findelement" (argument_list) "(ps)" (() "(" (identifier) "ps" ()) ")" (;) ";" (if_statement) "if(fi != _sounds.end()) \n { \n return fi-_sounds.begin(); \n }" (if) "if" (parenthesized_expression) "(fi != _sounds.end())" (() "(" (binary_expression) "fi != _sounds.end()" (identifier) "fi" (!=) "!=" (call_expression) "_sounds.end()" (field_expression) "_sounds.end" (identifier) "_sounds" (.) "." (field_identifier) "end" (argument_list) "()" (() "(" ()) ")" ()) ")" (compound_statement) "{ \n return fi-_sounds.begin(); \n }" ({) "{" (return_statement) "return fi-_sounds.begin();" (return) "return" (binary_expression) "fi-_sounds.begin()" (identifier) "fi" (-) "-" (call_expression) "_sounds.begin()" (field_expression) "_sounds.begin" (identifier) "_sounds" (.) "." (field_identifier) "begin" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (return_statement) "return -1;" (return) "return" (number_literal) "-1" (;) ";" (}) "}" (function_definition) "CSoundItem* GetSound(int idx){ \n return _sounds[idx]; \n }" (type_identifier) "CSoundItem" (pointer_declarator) "* GetSound(int idx)" (*) "*" (function_declarator) "GetSound(int idx)" (identifier) "GetSound" (parameter_list) "(int idx)" (() "(" (parameter_declaration) "int idx" (primitive_type) "int" (identifier) "idx" ()) ")" (compound_statement) "{ \n return _sounds[idx]; \n }" ({) "{" (return_statement) "return _sounds[idx];" (return) "return" (subscript_expression) "_sounds[idx]" (identifier) "_sounds" ([) "[" (identifier) "idx" (]) "]" (;) ";" (}) "}" (comment) "// item cathegories managemenet (per game) " (function_definition) "BOOL HasCats(){return _gamecats.size()!=0;}" (type_identifier) "BOOL" (function_declarator) "HasCats()" (identifier) "HasCats" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{return _gamecats.size()!=0;}" ({) "{" (return_statement) "return _gamecats.size()!=0;" (return) "return" (binary_expression) "_gamecats.size()!=0" (call_expression) "_gamecats.size()" (field_expression) "_gamecats.size" (identifier) "_gamecats" (.) "." (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" (!=) "!=" (number_literal) "0" (;) ";" (}) "}" (declaration) "BOOL SearchCats(const char* fileName);" (type_identifier) "BOOL" (function_declarator) "SearchCats(const char* fileName)" (identifier) "SearchCats" (parameter_list) "(const char* fileName)" (() "(" (parameter_declaration) "const char* fileName" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* fileName" (*) "*" (identifier) "fileName" ()) ")" (;) ";" (declaration) "void ClearCats();" (primitive_type) "void" (function_declarator) "ClearCats()" (identifier) "ClearCats" (parameter_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "vvector<ItemCat>* GetCats()" (binary_expression) "vvector<ItemCat>* GetCats()" (binary_expression) "vvector<ItemCat" (identifier) "vvector" (<) "<" (identifier) "ItemCat" (>) ">" (pointer_expression) "* GetCats()" (*) "*" (call_expression) "GetCats()" (identifier) "GetCats" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{return &_gamecats;}" ({) "{" (return_statement) "return &_gamecats;" (return) "return" (pointer_expression) "&_gamecats" (&) "&" (identifier) "_gamecats" (;) ";" (}) "}" (function_definition) "ItemCat* GetCat(const char* catname) \n { \n FOREACH(vvector<ItemCat>,_gamecats,pc) \n { \n if(!strcmp(pc->_catname,catname)){ \n return &(*pc); \n } \n } \n return 0; \n }" (type_identifier) "ItemCat" (pointer_declarator) "* GetCat(const char* catname)" (*) "*" (function_declarator) "GetCat(const char* catname)" (identifier) "GetCat" (parameter_list) "(const char* catname)" (() "(" (parameter_declaration) "const char* catname" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* catname" (*) "*" (identifier) "catname" ()) ")" (compound_statement) "{ \n FOREACH(vvector<ItemCat>,_gamecats,pc) \n { \n if(!strcmp(pc->_catname,catname)){ \n return &(*pc); \n } \n } \n return 0; \n }" ({) "{" (expression_statement) "FOREACH(vvector<ItemCat>,_gamecats,pc)" (call_expression) "FOREACH(vvector<ItemCat>,_gamecats,pc)" (identifier) "FOREACH" (argument_list) "(vvector<ItemCat>,_gamecats,pc)" (() "(" (binary_expression) "vvector<ItemCat>,_gamecats" (binary_expression) "vvector<ItemCat" (identifier) "vvector" (<) "<" (identifier) "ItemCat" (>) ">" (ERROR) "," (,) "," (identifier) "_gamecats" (,) "," (identifier) "pc" ()) ")" (;) "" (compound_statement) "{ \n if(!strcmp(pc->_catname,catname)){ \n return &(*pc); \n } \n }" ({) "{" (if_statement) "if(!strcmp(pc->_catname,catname)){ \n return &(*pc); \n }" (if) "if" (parenthesized_expression) "(!strcmp(pc->_catname,catname))" (() "(" (unary_expression) "!strcmp(pc->_catname,catname)" (!) "!" (call_expression) "strcmp(pc->_catname,catname)" (identifier) "strcmp" (argument_list) "(pc->_catname,catname)" (() "(" (field_expression) "pc->_catname" (identifier) "pc" (->) "->" (field_identifier) "_catname" (,) "," (identifier) "catname" ()) ")" ()) ")" (compound_statement) "{ \n return &(*pc); \n }" ({) "{" (return_statement) "return &(*pc);" (return) "return" (pointer_expression) "&(*pc)" (&) "&" (parenthesized_expression) "(*pc)" (() "(" (pointer_expression) "*pc" (*) "*" (identifier) "pc" ()) ")" (;) ";" (}) "}" (}) "}" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (expression_statement) "CBigTerrain& Terrain()" (binary_expression) "CBigTerrain& Terrain()" (identifier) "CBigTerrain" (&) "&" (call_expression) "Terrain()" (identifier) "Terrain" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{return _terrain;}" ({) "{" (return_statement) "return _terrain;" (return) "return" (identifier) "_terrain" (;) ";" (}) "}" (expression_statement) "map<string ,string>& Descriptions()" (comma_expression) "map<string ,string>& Descriptions()" (binary_expression) "map<string" (identifier) "map" (<) "<" (identifier) "string" (,) "," (binary_expression) "string>& Descriptions()" (identifier) "string" (>) ">" (pointer_expression) "& Descriptions()" (&) "&" (call_expression) "Descriptions()" (identifier) "Descriptions" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{ return _descs;}" ({) "{" (return_statement) "return _descs;" (return) "return" (identifier) "_descs" (;) ";" (}) "}" (function_definition) "void SetCam(const V3& pos, const V3& elr){_campos=pos; _cameuler=elr;}" (primitive_type) "void" (function_declarator) "SetCam(const V3& pos, const V3& elr)" (identifier) "SetCam" (parameter_list) "(const V3& pos, const V3& elr)" (() "(" (parameter_declaration) "const V3& pos" (type_qualifier) "const" (const) "const" (type_identifier) "V3" (ERROR) "&" (&) "&" (identifier) "pos" (,) "," (parameter_declaration) "const V3& elr" (type_qualifier) "const" (const) "const" (type_identifier) "V3" (ERROR) "&" (&) "&" (identifier) "elr" ()) ")" (compound_statement) "{_campos=pos; _cameuler=elr;}" ({) "{" (expression_statement) "_campos=pos;" (assignment_expression) "_campos=pos" (identifier) "_campos" (=) "=" (identifier) "pos" (;) ";" (expression_statement) "_cameuler=elr;" (assignment_expression) "_cameuler=elr" (identifier) "_cameuler" (=) "=" (identifier) "elr" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (labeled_statement) "private: \n \n BOOL ParseSection(string& errors, vvector<char*>& classes, vvector<char*>& items);" (statement_identifier) "private" (:) ":" (declaration) "BOOL ParseSection(string& errors, vvector<char*>& classes, vvector<char*>& items);" (type_identifier) "BOOL" (function_declarator) "ParseSection(string& errors, vvector<char*>& classes, vvector<char*>& items)" (identifier) "ParseSection" (parameter_list) "(string& errors, vvector<char*>& classes, vvector<char*>& items)" (() "(" (parameter_declaration) "string& errors" (type_identifier) "string" (ERROR) "&" (&) "&" (identifier) "errors" (,) "," (parameter_declaration) "vvector<char*>& classes" (type_identifier) "vvector" (ERROR) "<char" (<) "<" (primitive_type) "char" (pointer_declarator) "*>& classes" (*) "*" (ERROR) ">&" (>) ">" (&) "&" (identifier) "classes" (,) "," (parameter_declaration) "vvector<char*>& items" (type_identifier) "vvector" (ERROR) "<char" (<) "<" (primitive_type) "char" (pointer_declarator) "*>& items" (*) "*" (ERROR) ">&" (>) ">" (&) "&" (identifier) "items" ()) ")" (;) ";" (labeled_statement) "private: \n vvector<Brush*> _primitives;" (statement_identifier) "private" (:) ":" (expression_statement) "vvector<Brush*> _primitives;" (binary_expression) "vvector<Brush*> _primitives" (binary_expression) "vvector<Brush" (identifier) "vvector" (<) "<" (identifier) "Brush" (ERROR) "*" (*) "*" (>) ">" (identifier) "_primitives" (;) ";" (expression_statement) "vvector<Brush*> _brushes;" (binary_expression) "vvector<Brush*> _brushes" (binary_expression) "vvector<Brush" (identifier) "vvector" (<) "<" (identifier) "Brush" (ERROR) "*" (*) "*" (>) ">" (identifier) "_brushes" (;) ";" (expression_statement) "vvector<SceItem*> _items;" (binary_expression) "vvector<SceItem*> _items" (binary_expression) "vvector<SceItem" (identifier) "vvector" (<) "<" (identifier) "SceItem" (ERROR) "*" (*) "*" (>) ">" (identifier) "_items" (;) ";" (expression_statement) "vvector<CMotion*> _motions;" (binary_expression) "vvector<CMotion*> _motions" (binary_expression) "vvector<CMotion" (identifier) "vvector" (<) "<" (identifier) "CMotion" (ERROR) "*" (*) "*" (>) ">" (identifier) "_motions" (;) ";" (expression_statement) "vvector<ScriptItem*> _scripts;" (binary_expression) "vvector<ScriptItem*> _scripts" (binary_expression) "vvector<ScriptItem" (identifier) "vvector" (<) "<" (identifier) "ScriptItem" (ERROR) "*" (*) "*" (>) ">" (identifier) "_scripts" (;) ";" (expression_statement) "vvector<CSoundItem*> _sounds;" (binary_expression) "vvector<CSoundItem*> _sounds" (binary_expression) "vvector<CSoundItem" (identifier) "vvector" (<) "<" (identifier) "CSoundItem" (ERROR) "*" (*) "*" (>) ">" (identifier) "_sounds" (;) ";" (expression_statement) "vvector<ItemCat> _gamecats;" (binary_expression) "vvector<ItemCat> _gamecats" (binary_expression) "vvector<ItemCat" (identifier) "vvector" (<) "<" (identifier) "ItemCat" (>) ">" (identifier) "_gamecats" (;) ";" (declaration) "CBigTerrain _terrain;" (type_identifier) "CBigTerrain" (identifier) "_terrain" (;) ";" (expression_statement) "map<string ,string> _descs;" (comma_expression) "map<string ,string> _descs" (binary_expression) "map<string" (identifier) "map" (<) "<" (identifier) "string" (,) "," (binary_expression) "string> _descs" (identifier) "string" (>) ">" (identifier) "_descs" (;) ";" (declaration) "string _errstring;" (type_identifier) "string" (identifier) "_errstring" (;) ";" (labeled_statement) "public: \n BST_SceneInfo _si;" (statement_identifier) "public" (:) ":" (declaration) "BST_SceneInfo _si;" (type_identifier) "BST_SceneInfo" (identifier) "_si" (;) ";" (declaration) "SkyDom _dom;" (type_identifier) "SkyDom" (identifier) "_dom" (;) ";" (declaration) "int _GCarving;" (primitive_type) "int" (identifier) "_GCarving" (;) ";" (declaration) "int _dummy[3];" (primitive_type) "int" (array_declarator) "_dummy[3]" (identifier) "_dummy" ([) "[" (number_literal) "3" (]) "]" (;) ";" (declaration) "V3 _campos;" (type_identifier) "V3" (identifier) "_campos" (;) ";" (declaration) "V3 _cameuler;" (type_identifier) "V3" (identifier) "_cameuler" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif" (comment) "// !defined(AFX_SCENE_H__CB8FF316_9C3D_4B74_94F6_B504E5AC18A5__INCLUDED_) "
2,322
30
{"language": "c", "success": true, "metadata": {"lines": 273, "avg_line_length": 26.41, "nodes": 1389, "errors": 0, "source_hash": "1371d2d2ca0c6b93d14fb836088c4a9b632b67e671437e9816fdc5c1442d9412", "categorized_nodes": 976}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !defined(AFX_SCENE_H__CB8FF316_9C3D_4B74_94F6_B504E5AC18A5__INCLUDED_)\r\n#define AFX_SCENE_H__CB8FF316_9C3D_4B74_94F6_B504E5AC18A5__INCLUDED_\r\n\r\n\r\n\r\n\r\n#include <GL/gl.h>\r\n#include <GL/glu.h>\r\n// #include <gl/Glaux.h>\r\n#include \"z-edmap.h\"\r\n#include \"Poly.h\"\r\n#include \"Brush.h\"\r\n#include \"texsys.h\"\r\n#include \"SceItem.h\"\r\n#include \"Skydom.h\"\r\n#include \"bspfilestr.h\"\r\n#include \"Motion.h\"\r\n#include \"ScriptItem.h\"\r\n#include \"SoundItem.h\"\r\n#include \"CustItemCat.h\" /// item categories\r\n#include \"rfHillTerrain.h\"\r\n\r\n//---------------------------------------------------------------------------------------\r\nclass Scene : public SceItem\r\n{\r\npublic:\r\n Scene(){\r\n Initialize();\r\n }\r\n\r\n void Initialize()\r\n {\r\n strcpy(_si.author,\"<NAME>\");\r\n strcpy(_si.comments,\"Getic 2.3\");\r\n _si.levelType = LEV_QUEST;\r\n _si.maxActors = 8;\r\n _si.maxFrags = 100;\r\n _si.maxTime = 15;\r\n _si.defLumin = CLR(128,128,128);\r\n _si.gravAcc = 9.81;\r\n _si.camFar = 65535;\r\n _si.camFov = 64.0;\r\n _si.sceSpeed = 2.0;\r\n _si.sceFlags = 0;\r\n _si.fogNear = 0;\r\n _si.fogFar = 0;\r\n _si.fogColor = ZWHITE;\r\n _si.fogDens = 0;\r\n _si.fogFallOff =0;\r\n\r\n strcpy(_name, \"scene\");\r\n //_si.camOrient1\r\n //_si.camOrient2\r\n\r\n };\r\n virtual ~Scene(){\r\n\t\tClear();\r\n }\r\n\r\n void Clear(){\r\n // items first. they may release owned brushes\r\n Initialize();\r\n ClearItems();\r\n ClearBrushes();\r\n ClearMotions();\r\n\t\tClearScripts();\r\n ClearSounds();\r\n ClearCats();\r\n ClearPrimitives();\r\n _terrain.Clear();\r\n _descs.clear();\r\n _errstring=\"\";\r\n }\r\n void ClearScripts(){_scripts.deleteelements();}\r\n void ClearSounds(){_sounds.deleteelements();}\r\n void ClearItems(){_items.deleteelements();}\r\n void ClearMotions(){_motions.deleteelements();}\r\n\tvoid ClearPrimitives();\r\n void ClearBrushes();\r\n\tint\t GetPolyCnt();\r\n PBrushes* GetPrimitives(){return &_primitives;};\r\n void AddBrush(Brush* pB){_brushes <<(pB);}\r\n PBrushes* GetBrushes(){return &_brushes;};\r\n\tvoid AddPrimitive(Brush* pB){pB->_brushflags &= ~BRSH_NEW;_primitives << (pB);}\r\n Brush* GetPrimitive(int brSel){if(brSel < (int)_primitives.size()) return _primitives[brSel];return 0;}\r\n Brush* GetBrush(int brSel){if(brSel < (int)_brushes.size()) return _brushes[brSel];return 0;}\r\n Brush* GetBrushByID(int brushID){FOREACH(PBrushes, _primitives, ppb){if((*ppb)->_unicID == brushID){return *ppb;}}return 0;}\r\n int AddItem(SceItem* pi){int sz = _items.size();_items << pi;return sz;}\r\n void DelItem(SceItem* pi){\r\n vvector<SceItem*>::iterator fi = _items.findelement(pi);\r\n if(fi != _items.end()){_items.erase(fi);delete pi;}\r\n }\r\n SceItem* GetItem(int idx){return (idx < (int)_items.size()) ? _items[idx] : 0;}\r\n vvector<SceItem*>* GetItems(){return &_items;}\r\n SceItem* GetItemByID(int itemID){\r\n FOREACH(vvector<SceItem*>, _items, ppi){\r\n if((*ppi)->_id == itemID){\r\n return *ppi;\r\n }\r\n }\r\n return 0;\r\n }\r\n\r\n int GetItemsByType(SceItem** ppArray, size_t type, int imax)\r\n {\r\n int retval = 0;\r\n FOREACH(vvector<SceItem*>, _items, ppi){\r\n if((*ppi)->_item==ITM_LIGTBULB){\r\n ppArray[retval++] = (*ppi);\r\n if(retval >= imax) \r\n break;\r\n }\r\n }\r\n return retval;\r\n }\r\n\r\n SceItem* GetItemByPtr(size_t itemPtr){\r\n FOREACH(vvector<SceItem*>, _items, ppi){\r\n if((size_t)(*ppi) == itemPtr){\r\n return *ppi;\r\n }\r\n }\r\n return 0;\r\n }\r\n\r\n long GetIndex(SceItem* pi)\r\n {\r\n return _items.getindex(pi);\r\n }\r\n\r\n// motions\r\n\tlong\tGetIndex(CMotion* pi)\r\n\t{\r\n return _motions.getindex(pi);\r\n\t}\r\n\r\n\r\n int AddMotion(CMotion* pi)\r\n {\r\n int sz = _items.size();\r\n _motions << pi;\r\n return sz;\r\n }\r\n\r\n void DelMotion(CMotion* pi){\r\n vvector<CMotion*>::iterator fi = _motions.findelement(pi);\r\n if(fi != _motions.end())\r\n {\r\n delete pi;\r\n _motions.erase(fi);\r\n }\r\n }\r\n vvector<CMotion*>* GetMotions(){return &_motions;}\r\n int AddScript(ScriptItem* pi)\r\n {\r\n int sz = _scripts.size();\r\n _scripts << pi;\r\n return sz;\r\n }\r\n\r\n void DelScript(ScriptItem* pi)\r\n\t{\r\n vvector<ScriptItem*>::iterator fi = _scripts.findelement(pi);\r\n if(fi != _scripts.end())\r\n {\r\n delete pi;\r\n _scripts.erase(fi);\r\n }\r\n }\r\n \r\n ScriptItem* GetScript(long index){\r\n return _scripts[index];\r\n }\r\n\r\n\r\n vvector<ScriptItem*>* GetScripts(){\r\n return &_scripts;\r\n }\r\n\r\n long GetIndex(ScriptItem* pi){\r\n vvector<ScriptItem*>::iterator fi = _scripts.findelement(pi);\r\n if(fi != _scripts.end())\r\n {\r\n\t\t\treturn fi-_scripts.begin();\r\n }\r\n\t\treturn -1;\r\n }\r\n\r\n int FindSoundByName(const char* psz);\r\n\r\n int AddSound(CSoundItem* pi)\r\n {\r\n int sz = _sounds.size();\r\n _sounds << pi;\r\n return sz;\r\n }\r\n\r\n void DelSound(CSoundItem* pi)\r\n\t{\r\n vvector<CSoundItem*>::iterator fi = _sounds.findelement(pi);\r\n if(fi != _sounds.end())\r\n {\r\n delete pi;\r\n _sounds.erase(fi);\r\n }\r\n }\r\n\r\n vvector<CSoundItem*>* GetSounds(){\r\n return &_sounds;\r\n }\r\n\r\n long GetIndex(CSoundItem* ps){\r\n vvector<CSoundItem*>::iterator fi = _sounds.findelement(ps);\r\n if(fi != _sounds.end())\r\n {\r\n\t\t\treturn fi-_sounds.begin();\r\n }\r\n\t\treturn -1;\r\n }\r\n\r\n CSoundItem* GetSound(int idx){\r\n return _sounds[idx];\r\n }\r\n\r\n// item cathegories managemenet (per game)\r\n BOOL HasCats(){return _gamecats.size()!=0;}\r\n BOOL SearchCats(const char* fileName);\r\n void ClearCats();\r\n vvector<ItemCat>* GetCats(){return &_gamecats;}\r\n ItemCat* GetCat(const char* catname)\r\n {\r\n FOREACH(vvector<ItemCat>,_gamecats,pc)\r\n {\r\n if(!strcmp(pc->_catname,catname)){\r\n return &(*pc);\r\n }\r\n }\r\n return 0;\r\n }\r\n\r\n CBigTerrain& Terrain(){return _terrain;}\r\n map<string ,string>& Descriptions(){ return _descs;}\r\n void SetCam(const V3& pos, const V3& elr){_campos=pos; _cameuler=elr;};\r\nprivate:\r\n\r\n BOOL ParseSection(string& errors, vvector<char*>& classes, vvector<char*>& items);\r\n\r\n\r\nprivate:\r\n vvector<Brush*>\t\t\t_primitives;\r\n vvector<Brush*>\t\t\t_brushes;\r\n vvector<SceItem*>\t\t_items;\r\n vvector<CMotion*>\t\t_motions;\r\n\tvvector<ScriptItem*>\t_scripts;\r\n vvector<CSoundItem*> _sounds;\r\n vvector<ItemCat> _gamecats;\r\n CBigTerrain _terrain;\r\n map<string ,string> _descs;\r\n string _errstring;\r\npublic:\r\n BST_SceneInfo\t\t\t_si;\r\n SkyDom\t\t\t\t\t_dom;\r\n int _GCarving;\r\n\tint\t\t\t\t\t\t_dummy[3];\r\n V3 _campos;\r\n V3 _cameuler;\r\n};\r\n\r\n\r\n#endif", "parent": null, "children": [1, 2, 7, 8, 11, 14, 17, 20, 23, 26, 29, 32, 35, 38, 41, 44, 47, 50, 53, 1388], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 272, "column": 6}}, {"id": 1, "type": "#if", "text": "#if", "parent": 0, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 3}}, {"id": 2, "type": "unary_expression", "text": "!defined(AFX_SCENE_H__CB8FF316_9C3D_4B74_94F6_B504E5AC18A5__INCLUDED_)", "parent": 0, "children": [3, 4], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 74}}, {"id": 3, "type": "!", "text": "!", "parent": 2, "children": [], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 5}}, {"id": 4, "type": "preproc_defined", "text": "defined(AFX_SCENE_H__CB8FF316_9C3D_4B74_94F6_B504E5AC18A5__INCLUDED_)", "parent": 2, "children": [5, 6], "start_point": {"row": 3, "column": 5}, "end_point": {"row": 3, "column": 74}}, {"id": 5, "type": "defined", "text": "defined", "parent": 4, "children": [], "start_point": {"row": 3, "column": 5}, "end_point": {"row": 3, "column": 12}}, {"id": 6, "type": "identifier", "text": "AFX_SCENE_H__CB8FF316_9C3D_4B74_94F6_B504E5AC18A5__INCLUDED_", "parent": 4, "children": [], "start_point": {"row": 3, "column": 13}, "end_point": {"row": 3, "column": 73}}, {"id": 7, "type": "\n", "text": "\n", "parent": 0, "children": [], "start_point": {"row": 3, "column": 75}, "end_point": {"row": 4, "column": 0}}, {"id": 8, "type": "preproc_def", "text": "#define AFX_SCENE_H__CB8FF316_9C3D_4B74_94F6_B504E5AC18A5__INCLUDED_\r\n", "parent": 0, "children": [9, 10], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 9, "type": "#define", "text": "#define", "parent": 8, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 7}}, {"id": 10, "type": "identifier", "text": "AFX_SCENE_H__CB8FF316_9C3D_4B74_94F6_B504E5AC18A5__INCLUDED_", "parent": 8, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 68}}, {"id": 11, "type": "preproc_include", "text": "#include <GL/gl.h>\r\n", "parent": 0, "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": "<GL/gl.h>", "parent": 11, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 18}}, {"id": 14, "type": "preproc_include", "text": "#include <GL/glu.h>\r\n", "parent": 0, "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": "system_lib_string", "text": "<GL/glu.h>", "parent": 14, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 19}}, {"id": 17, "type": "preproc_include", "text": "#include \"z-edmap.h\"\r\n", "parent": 0, "children": [18, 19], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 18, "type": "#include", "text": "#include", "parent": 17, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 19, "type": "string_literal", "text": "\"z-edmap.h\"", "parent": 17, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 20}}, {"id": 20, "type": "preproc_include", "text": "#include \"Poly.h\"\r\n", "parent": 0, "children": [21, 22], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 21, "type": "#include", "text": "#include", "parent": 20, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 22, "type": "string_literal", "text": "\"Poly.h\"", "parent": 20, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 17}}, {"id": 23, "type": "preproc_include", "text": "#include \"Brush.h\"\r\n", "parent": 0, "children": [24, 25], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 24, "type": "#include", "text": "#include", "parent": 23, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 8}}, {"id": 25, "type": "string_literal", "text": "\"Brush.h\"", "parent": 23, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 18}}, {"id": 26, "type": "preproc_include", "text": "#include \"texsys.h\"\r\n", "parent": 0, "children": [27, 28], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 27, "type": "#include", "text": "#include", "parent": 26, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 8}}, {"id": 28, "type": "string_literal", "text": "\"texsys.h\"", "parent": 26, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 19}}, {"id": 29, "type": "preproc_include", "text": "#include \"SceItem.h\"\r\n", "parent": 0, "children": [30, 31], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 30, "type": "#include", "text": "#include", "parent": 29, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 8}}, {"id": 31, "type": "string_literal", "text": "\"SceItem.h\"", "parent": 29, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 20}}, {"id": 32, "type": "preproc_include", "text": "#include \"Skydom.h\"\r\n", "parent": 0, "children": [33, 34], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 33, "type": "#include", "text": "#include", "parent": 32, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 8}}, {"id": 34, "type": "string_literal", "text": "\"Skydom.h\"", "parent": 32, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 19}}, {"id": 35, "type": "preproc_include", "text": "#include \"bspfilestr.h\"\r\n", "parent": 0, "children": [36, 37], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 36, "type": "#include", "text": "#include", "parent": 35, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 8}}, {"id": 37, "type": "string_literal", "text": "\"bspfilestr.h\"", "parent": 35, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 23}}, {"id": 38, "type": "preproc_include", "text": "#include \"Motion.h\"\r\n", "parent": 0, "children": [39, 40], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 39, "type": "#include", "text": "#include", "parent": 38, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 8}}, {"id": 40, "type": "string_literal", "text": "\"Motion.h\"", "parent": 38, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 19}}, {"id": 41, "type": "preproc_include", "text": "#include \"ScriptItem.h\"\r\n", "parent": 0, "children": [42, 43], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 42, "type": "#include", "text": "#include", "parent": 41, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 8}}, {"id": 43, "type": "string_literal", "text": "\"ScriptItem.h\"", "parent": 41, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 23}}, {"id": 44, "type": "preproc_include", "text": "#include \"SoundItem.h\"\r\n", "parent": 0, "children": [45, 46], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 45, "type": "#include", "text": "#include", "parent": 44, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 8}}, {"id": 46, "type": "string_literal", "text": "\"SoundItem.h\"", "parent": 44, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 22}}, {"id": 47, "type": "preproc_include", "text": "#include \"CustItemCat.h\" /// item categories\r\n", "parent": 0, "children": [48, 49], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 48, "type": "#include", "text": "#include", "parent": 47, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 8}}, {"id": 49, "type": "string_literal", "text": "\"CustItemCat.h\"", "parent": 47, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 24}}, {"id": 50, "type": "preproc_include", "text": "#include \"rfHillTerrain.h\"\r\n", "parent": 0, "children": [51, 52], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 51, "type": "#include", "text": "#include", "parent": 50, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 8}}, {"id": 52, "type": "string_literal", "text": "\"rfHillTerrain.h\"", "parent": 50, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 26}}, {"id": 53, "type": "function_definition", "text": "class Scene : public SceItem\r\n{\r\npublic:\r\n Scene(){\r\n Initialize();\r\n }\r\n\r\n void Initialize()\r\n {\r\n strcpy(_si.author,\"<NAME>\");\r\n strcpy(_si.comments,\"Getic 2.3\");\r\n _si.levelType = LEV_QUEST;\r\n _si.maxActors = 8;\r\n _si.maxFrags = 100;\r\n _si.maxTime = 15;\r\n _si.defLumin = CLR(128,128,128);\r\n _si.gravAcc = 9.81;\r\n _si.camFar = 65535;\r\n _si.camFov = 64.0;\r\n _si.sceSpeed = 2.0;\r\n _si.sceFlags = 0;\r\n _si.fogNear = 0;\r\n _si.fogFar = 0;\r\n _si.fogColor = ZWHITE;\r\n _si.fogDens = 0;\r\n _si.fogFallOff =0;\r\n\r\n strcpy(_name, \"scene\");\r\n //_si.camOrient1\r\n //_si.camOrient2\r\n\r\n };\r\n virtual ~Scene(){\r\n\t\tClear();\r\n }\r\n\r\n void Clear(){\r\n // items first. they may release owned brushes\r\n Initialize();\r\n ClearItems();\r\n ClearBrushes();\r\n ClearMotions();\r\n\t\tClearScripts();\r\n ClearSounds();\r\n ClearCats();\r\n ClearPrimitives();\r\n _terrain.Clear();\r\n _descs.clear();\r\n _errstring=\"\";\r\n }\r\n void ClearScripts(){_scripts.deleteelements();}\r\n void ClearSounds(){_sounds.deleteelements();}\r\n void ClearItems(){_items.deleteelements();}\r\n void ClearMotions(){_motions.deleteelements();}\r\n\tvoid ClearPrimitives();\r\n void ClearBrushes();\r\n\tint\t GetPolyCnt();\r\n PBrushes* GetPrimitives(){return &_primitives;};\r\n void AddBrush(Brush* pB){_brushes <<(pB);}\r\n PBrushes* GetBrushes(){return &_brushes;};\r\n\tvoid AddPrimitive(Brush* pB){pB->_brushflags &= ~BRSH_NEW;_primitives << (pB);}\r\n Brush* GetPrimitive(int brSel){if(brSel < (int)_primitives.size()) return _primitives[brSel];return 0;}\r\n Brush* GetBrush(int brSel){if(brSel < (int)_brushes.size()) return _brushes[brSel];return 0;}\r\n Brush* GetBrushByID(int brushID){FOREACH(PBrushes, _primitives, ppb){if((*ppb)->_unicID == brushID){return *ppb;}}return 0;}\r\n int AddItem(SceItem* pi){int sz = _items.size();_items << pi;return sz;}\r\n void DelItem(SceItem* pi){\r\n vvector<SceItem*>::iterator fi = _items.findelement(pi);\r\n if(fi != _items.end()){_items.erase(fi);delete pi;}\r\n }\r\n SceItem* GetItem(int idx){return (idx < (int)_items.size()) ? _items[idx] : 0;}\r\n vvector<SceItem*>* GetItems(){return &_items;}\r\n SceItem* GetItemByID(int itemID){\r\n FOREACH(vvector<SceItem*>, _items, ppi){\r\n if((*ppi)->_id == itemID){\r\n return *ppi;\r\n }\r\n }\r\n return 0;\r\n }\r\n\r\n int GetItemsByType(SceItem** ppArray, size_t type, int imax)\r\n {\r\n int retval = 0;\r\n FOREACH(vvector<SceItem*>, _items, ppi){\r\n if((*ppi)->_item==ITM_LIGTBULB){\r\n ppArray[retval++] = (*ppi);\r\n if(retval >= imax) \r\n break;\r\n }\r\n }\r\n return retval;\r\n }\r\n\r\n SceItem* GetItemByPtr(size_t itemPtr){\r\n FOREACH(vvector<SceItem*>, _items, ppi){\r\n if((size_t)(*ppi) == itemPtr){\r\n return *ppi;\r\n }\r\n }\r\n return 0;\r\n }\r\n\r\n long GetIndex(SceItem* pi)\r\n {\r\n return _items.getindex(pi);\r\n }\r\n\r\n// motions\r\n\tlong\tGetIndex(CMotion* pi)\r\n\t{\r\n return _motions.getindex(pi);\r\n\t}\r\n\r\n\r\n int AddMotion(CMotion* pi)\r\n {\r\n int sz = _items.size();\r\n _motions << pi;\r\n return sz;\r\n }\r\n\r\n void DelMotion(CMotion* pi){\r\n vvector<CMotion*>::iterator fi = _motions.findelement(pi);\r\n if(fi != _motions.end())\r\n {\r\n delete pi;\r\n _motions.erase(fi);\r\n }\r\n }\r\n vvector<CMotion*>* GetMotions(){return &_motions;}\r\n int AddScript(ScriptItem* pi)\r\n {\r\n int sz = _scripts.size();\r\n _scripts << pi;\r\n return sz;\r\n }\r\n\r\n void DelScript(ScriptItem* pi)\r\n\t{\r\n vvector<ScriptItem*>::iterator fi = _scripts.findelement(pi);\r\n if(fi != _scripts.end())\r\n {\r\n delete pi;\r\n _scripts.erase(fi);\r\n }\r\n }\r\n \r\n ScriptItem* GetScript(long index){\r\n return _scripts[index];\r\n }\r\n\r\n\r\n vvector<ScriptItem*>* GetScripts(){\r\n return &_scripts;\r\n }\r\n\r\n long GetIndex(ScriptItem* pi){\r\n vvector<ScriptItem*>::iterator fi = _scripts.findelement(pi);\r\n if(fi != _scripts.end())\r\n {\r\n\t\t\treturn fi-_scripts.begin();\r\n }\r\n\t\treturn -1;\r\n }\r\n\r\n int FindSoundByName(const char* psz);\r\n\r\n int AddSound(CSoundItem* pi)\r\n {\r\n int sz = _sounds.size();\r\n _sounds << pi;\r\n return sz;\r\n }\r\n\r\n void DelSound(CSoundItem* pi)\r\n\t{\r\n vvector<CSoundItem*>::iterator fi = _sounds.findelement(pi);\r\n if(fi != _sounds.end())\r\n {\r\n delete pi;\r\n _sounds.erase(fi);\r\n }\r\n }\r\n\r\n vvector<CSoundItem*>* GetSounds(){\r\n return &_sounds;\r\n }\r\n\r\n long GetIndex(CSoundItem* ps){\r\n vvector<CSoundItem*>::iterator fi = _sounds.findelement(ps);\r\n if(fi != _sounds.end())\r\n {\r\n\t\t\treturn fi-_sounds.begin();\r\n }\r\n\t\treturn -1;\r\n }\r\n\r\n CSoundItem* GetSound(int idx){\r\n return _sounds[idx];\r\n }\r\n\r\n// item cathegories managemenet (per game)\r\n BOOL HasCats(){return _gamecats.size()!=0;}\r\n BOOL SearchCats(const char* fileName);\r\n void ClearCats();\r\n vvector<ItemCat>* GetCats(){return &_gamecats;}\r\n ItemCat* GetCat(const char* catname)\r\n {\r\n FOREACH(vvector<ItemCat>,_gamecats,pc)\r\n {\r\n if(!strcmp(pc->_catname,catname)){\r\n return &(*pc);\r\n }\r\n }\r\n return 0;\r\n }\r\n\r\n CBigTerrain& Terrain(){return _terrain;}\r\n map<string ,string>& Descriptions(){ return _descs;}\r\n void SetCam(const V3& pos, const V3& elr){_campos=pos; _cameuler=elr;};\r\nprivate:\r\n\r\n BOOL ParseSection(string& errors, vvector<char*>& classes, vvector<char*>& items);\r\n\r\n\r\nprivate:\r\n vvector<Brush*>\t\t\t_primitives;\r\n vvector<Brush*>\t\t\t_brushes;\r\n vvector<SceItem*>\t\t_items;\r\n vvector<CMotion*>\t\t_motions;\r\n\tvvector<ScriptItem*>\t_scripts;\r\n vvector<CSoundItem*> _sounds;\r\n vvector<ItemCat> _gamecats;\r\n CBigTerrain _terrain;\r\n map<string ,string> _descs;\r\n string _errstring;\r\npublic:\r\n BST_SceneInfo\t\t\t_si;\r\n SkyDom\t\t\t\t\t_dom;\r\n int _GCarving;\r\n\tint\t\t\t\t\t\t_dummy[3];\r\n V3 _campos;\r\n V3 _cameuler;\r\n}", "parent": 0, "children": [54, 56], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 269, "column": 1}}, {"id": 54, "type": "ERROR", "text": "Scene : public", "parent": 53, "children": [55], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 21}}, {"id": 55, "type": "identifier", "text": "Scene", "parent": 54, "children": [], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 11}}, {"id": 56, "type": "identifier", "text": "SceItem", "parent": 53, "children": [], "start_point": {"row": 26, "column": 22}, "end_point": {"row": 26, "column": 29}}, {"id": 57, "type": "labeled_statement", "text": "public:\r\n Scene(){\r\n Initialize();\r\n }", "parent": 53, "children": [58], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 31, "column": 5}}, {"id": 58, "type": "ERROR", "text": "Scene()", "parent": 57, "children": [59], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 11}}, {"id": 59, "type": "call_expression", "text": "Scene()", "parent": 58, "children": [60, 61], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 11}}, {"id": 60, "type": "identifier", "text": "Scene", "parent": 59, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 9}}, {"id": 61, "type": "argument_list", "text": "()", "parent": 59, "children": [], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 11}}, {"id": 62, "type": "call_expression", "text": "Initialize()", "parent": 57, "children": [63, 64], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 20}}, {"id": 63, "type": "identifier", "text": "Initialize", "parent": 62, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 18}}, {"id": 64, "type": "argument_list", "text": "()", "parent": 62, "children": [], "start_point": {"row": 30, "column": 18}, "end_point": {"row": 30, "column": 20}}, {"id": 65, "type": "function_definition", "text": "void Initialize()\r\n {\r\n strcpy(_si.author,\"<NAME>\");\r\n strcpy(_si.comments,\"Getic 2.3\");\r\n _si.levelType = LEV_QUEST;\r\n _si.maxActors = 8;\r\n _si.maxFrags = 100;\r\n _si.maxTime = 15;\r\n _si.defLumin = CLR(128,128,128);\r\n _si.gravAcc = 9.81;\r\n _si.camFar = 65535;\r\n _si.camFov = 64.0;\r\n _si.sceSpeed = 2.0;\r\n _si.sceFlags = 0;\r\n _si.fogNear = 0;\r\n _si.fogFar = 0;\r\n _si.fogColor = ZWHITE;\r\n _si.fogDens = 0;\r\n _si.fogFallOff =0;\r\n\r\n strcpy(_name, \"scene\");\r\n //_si.camOrient1\r\n //_si.camOrient2\r\n\r\n }", "parent": 53, "children": [66, 67], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 57, "column": 5}}, {"id": 66, "type": "primitive_type", "text": "void", "parent": 65, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 8}}, {"id": 67, "type": "function_declarator", "text": "Initialize()", "parent": 65, "children": [68, 69], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 21}}, {"id": 68, "type": "identifier", "text": "Initialize", "parent": 67, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 19}}, {"id": 69, "type": "parameter_list", "text": "()", "parent": 67, "children": [], "start_point": {"row": 33, "column": 19}, "end_point": {"row": 33, "column": 21}}, {"id": 70, "type": "call_expression", "text": "strcpy(_si.author,\"<NAME>\")", "parent": 65, "children": [71, 72], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 35}}, {"id": 71, "type": "identifier", "text": "strcpy", "parent": 70, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 14}}, {"id": 72, "type": "argument_list", "text": "(_si.author,\"<NAME>\")", "parent": 70, "children": [73, 76], "start_point": {"row": 35, "column": 14}, "end_point": {"row": 35, "column": 35}}, {"id": 73, "type": "field_expression", "text": "_si.author", "parent": 72, "children": [74, 75], "start_point": {"row": 35, "column": 15}, "end_point": {"row": 35, "column": 25}}, {"id": 74, "type": "identifier", "text": "_si", "parent": 73, "children": [], "start_point": {"row": 35, "column": 15}, "end_point": {"row": 35, "column": 18}}, {"id": 75, "type": "field_identifier", "text": "author", "parent": 73, "children": [], "start_point": {"row": 35, "column": 19}, "end_point": {"row": 35, "column": 25}}, {"id": 76, "type": "string_literal", "text": "\"<NAME>\"", "parent": 72, "children": [], "start_point": {"row": 35, "column": 26}, "end_point": {"row": 35, "column": 34}}, {"id": 77, "type": "call_expression", "text": "strcpy(_si.comments,\"Getic 2.3\")", "parent": 65, "children": [78, 79], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 40}}, {"id": 78, "type": "identifier", "text": "strcpy", "parent": 77, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 14}}, {"id": 79, "type": "argument_list", "text": "(_si.comments,\"Getic 2.3\")", "parent": 77, "children": [80, 83], "start_point": {"row": 36, "column": 14}, "end_point": {"row": 36, "column": 40}}, {"id": 80, "type": "field_expression", "text": "_si.comments", "parent": 79, "children": [81, 82], "start_point": {"row": 36, "column": 15}, "end_point": {"row": 36, "column": 27}}, {"id": 81, "type": "identifier", "text": "_si", "parent": 80, "children": [], "start_point": {"row": 36, "column": 15}, "end_point": {"row": 36, "column": 18}}, {"id": 82, "type": "field_identifier", "text": "comments", "parent": 80, "children": [], "start_point": {"row": 36, "column": 19}, "end_point": {"row": 36, "column": 27}}, {"id": 83, "type": "string_literal", "text": "\"Getic 2.3\"", "parent": 79, "children": [], "start_point": {"row": 36, "column": 28}, "end_point": {"row": 36, "column": 39}}, {"id": 84, "type": "assignment_expression", "text": "_si.levelType = LEV_QUEST", "parent": 65, "children": [85, 88, 89], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 33}}, {"id": 85, "type": "field_expression", "text": "_si.levelType", "parent": 84, "children": [86, 87], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 21}}, {"id": 86, "type": "identifier", "text": "_si", "parent": 85, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 11}}, {"id": 87, "type": "field_identifier", "text": "levelType", "parent": 85, "children": [], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 21}}, {"id": 88, "type": "=", "text": "=", "parent": 84, "children": [], "start_point": {"row": 37, "column": 22}, "end_point": {"row": 37, "column": 23}}, {"id": 89, "type": "identifier", "text": "LEV_QUEST", "parent": 84, "children": [], "start_point": {"row": 37, "column": 24}, "end_point": {"row": 37, "column": 33}}, {"id": 90, "type": "assignment_expression", "text": "_si.maxActors = 8", "parent": 65, "children": [91, 94, 95], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 25}}, {"id": 91, "type": "field_expression", "text": "_si.maxActors", "parent": 90, "children": [92, 93], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 21}}, {"id": 92, "type": "identifier", "text": "_si", "parent": 91, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 11}}, {"id": 93, "type": "field_identifier", "text": "maxActors", "parent": 91, "children": [], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 21}}, {"id": 94, "type": "=", "text": "=", "parent": 90, "children": [], "start_point": {"row": 38, "column": 22}, "end_point": {"row": 38, "column": 23}}, {"id": 95, "type": "number_literal", "text": "8", "parent": 90, "children": [], "start_point": {"row": 38, "column": 24}, "end_point": {"row": 38, "column": 25}}, {"id": 96, "type": "assignment_expression", "text": "_si.maxFrags = 100", "parent": 65, "children": [97, 100, 101], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 27}}, {"id": 97, "type": "field_expression", "text": "_si.maxFrags", "parent": 96, "children": [98, 99], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 20}}, {"id": 98, "type": "identifier", "text": "_si", "parent": 97, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 11}}, {"id": 99, "type": "field_identifier", "text": "maxFrags", "parent": 97, "children": [], "start_point": {"row": 39, "column": 12}, "end_point": {"row": 39, "column": 20}}, {"id": 100, "type": "=", "text": "=", "parent": 96, "children": [], "start_point": {"row": 39, "column": 22}, "end_point": {"row": 39, "column": 23}}, {"id": 101, "type": "number_literal", "text": "100", "parent": 96, "children": [], "start_point": {"row": 39, "column": 24}, "end_point": {"row": 39, "column": 27}}, {"id": 102, "type": "assignment_expression", "text": "_si.maxTime = 15", "parent": 65, "children": [103, 106, 107], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 26}}, {"id": 103, "type": "field_expression", "text": "_si.maxTime", "parent": 102, "children": [104, 105], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 19}}, {"id": 104, "type": "identifier", "text": "_si", "parent": 103, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 11}}, {"id": 105, "type": "field_identifier", "text": "maxTime", "parent": 103, "children": [], "start_point": {"row": 40, "column": 12}, "end_point": {"row": 40, "column": 19}}, {"id": 106, "type": "=", "text": "=", "parent": 102, "children": [], "start_point": {"row": 40, "column": 22}, "end_point": {"row": 40, "column": 23}}, {"id": 107, "type": "number_literal", "text": "15", "parent": 102, "children": [], "start_point": {"row": 40, "column": 24}, "end_point": {"row": 40, "column": 26}}, {"id": 108, "type": "assignment_expression", "text": "_si.defLumin = CLR(128,128,128)", "parent": 65, "children": [109, 112, 113], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 40}}, {"id": 109, "type": "field_expression", "text": "_si.defLumin", "parent": 108, "children": [110, 111], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 20}}, {"id": 110, "type": "identifier", "text": "_si", "parent": 109, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 11}}, {"id": 111, "type": "field_identifier", "text": "defLumin", "parent": 109, "children": [], "start_point": {"row": 41, "column": 12}, "end_point": {"row": 41, "column": 20}}, {"id": 112, "type": "=", "text": "=", "parent": 108, "children": [], "start_point": {"row": 41, "column": 22}, "end_point": {"row": 41, "column": 23}}, {"id": 113, "type": "call_expression", "text": "CLR(128,128,128)", "parent": 108, "children": [114, 115], "start_point": {"row": 41, "column": 24}, "end_point": {"row": 41, "column": 40}}, {"id": 114, "type": "identifier", "text": "CLR", "parent": 113, "children": [], "start_point": {"row": 41, "column": 24}, "end_point": {"row": 41, "column": 27}}, {"id": 115, "type": "argument_list", "text": "(128,128,128)", "parent": 113, "children": [116, 117, 118], "start_point": {"row": 41, "column": 27}, "end_point": {"row": 41, "column": 40}}, {"id": 116, "type": "number_literal", "text": "128", "parent": 115, "children": [], "start_point": {"row": 41, "column": 28}, "end_point": {"row": 41, "column": 31}}, {"id": 117, "type": "number_literal", "text": "128", "parent": 115, "children": [], "start_point": {"row": 41, "column": 32}, "end_point": {"row": 41, "column": 35}}, {"id": 118, "type": "number_literal", "text": "128", "parent": 115, "children": [], "start_point": {"row": 41, "column": 36}, "end_point": {"row": 41, "column": 39}}, {"id": 119, "type": "assignment_expression", "text": "_si.gravAcc = 9.81", "parent": 65, "children": [120, 123, 124], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 28}}, {"id": 120, "type": "field_expression", "text": "_si.gravAcc", "parent": 119, "children": [121, 122], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 19}}, {"id": 121, "type": "identifier", "text": "_si", "parent": 120, "children": [], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 11}}, {"id": 122, "type": "field_identifier", "text": "gravAcc", "parent": 120, "children": [], "start_point": {"row": 42, "column": 12}, "end_point": {"row": 42, "column": 19}}, {"id": 123, "type": "=", "text": "=", "parent": 119, "children": [], "start_point": {"row": 42, "column": 22}, "end_point": {"row": 42, "column": 23}}, {"id": 124, "type": "number_literal", "text": "9.81", "parent": 119, "children": [], "start_point": {"row": 42, "column": 24}, "end_point": {"row": 42, "column": 28}}, {"id": 125, "type": "assignment_expression", "text": "_si.camFar = 65535", "parent": 65, "children": [126, 129, 130], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 29}}, {"id": 126, "type": "field_expression", "text": "_si.camFar", "parent": 125, "children": [127, 128], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 18}}, {"id": 127, "type": "identifier", "text": "_si", "parent": 126, "children": [], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 11}}, {"id": 128, "type": "field_identifier", "text": "camFar", "parent": 126, "children": [], "start_point": {"row": 43, "column": 12}, "end_point": {"row": 43, "column": 18}}, {"id": 129, "type": "=", "text": "=", "parent": 125, "children": [], "start_point": {"row": 43, "column": 22}, "end_point": {"row": 43, "column": 23}}, {"id": 130, "type": "number_literal", "text": "65535", "parent": 125, "children": [], "start_point": {"row": 43, "column": 24}, "end_point": {"row": 43, "column": 29}}, {"id": 131, "type": "assignment_expression", "text": "_si.camFov = 64.0", "parent": 65, "children": [132, 135, 136], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 28}}, {"id": 132, "type": "field_expression", "text": "_si.camFov", "parent": 131, "children": [133, 134], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 18}}, {"id": 133, "type": "identifier", "text": "_si", "parent": 132, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 11}}, {"id": 134, "type": "field_identifier", "text": "camFov", "parent": 132, "children": [], "start_point": {"row": 44, "column": 12}, "end_point": {"row": 44, "column": 18}}, {"id": 135, "type": "=", "text": "=", "parent": 131, "children": [], "start_point": {"row": 44, "column": 22}, "end_point": {"row": 44, "column": 23}}, {"id": 136, "type": "number_literal", "text": "64.0", "parent": 131, "children": [], "start_point": {"row": 44, "column": 24}, "end_point": {"row": 44, "column": 28}}, {"id": 137, "type": "assignment_expression", "text": "_si.sceSpeed = 2.0", "parent": 65, "children": [138, 141, 142], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 27}}, {"id": 138, "type": "field_expression", "text": "_si.sceSpeed", "parent": 137, "children": [139, 140], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 20}}, {"id": 139, "type": "identifier", "text": "_si", "parent": 138, "children": [], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 11}}, {"id": 140, "type": "field_identifier", "text": "sceSpeed", "parent": 138, "children": [], "start_point": {"row": 45, "column": 12}, "end_point": {"row": 45, "column": 20}}, {"id": 141, "type": "=", "text": "=", "parent": 137, "children": [], "start_point": {"row": 45, "column": 22}, "end_point": {"row": 45, "column": 23}}, {"id": 142, "type": "number_literal", "text": "2.0", "parent": 137, "children": [], "start_point": {"row": 45, "column": 24}, "end_point": {"row": 45, "column": 27}}, {"id": 143, "type": "assignment_expression", "text": "_si.sceFlags = 0", "parent": 65, "children": [144, 147, 148], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 25}}, {"id": 144, "type": "field_expression", "text": "_si.sceFlags", "parent": 143, "children": [145, 146], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 20}}, {"id": 145, "type": "identifier", "text": "_si", "parent": 144, "children": [], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 11}}, {"id": 146, "type": "field_identifier", "text": "sceFlags", "parent": 144, "children": [], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 46, "column": 20}}, {"id": 147, "type": "=", "text": "=", "parent": 143, "children": [], "start_point": {"row": 46, "column": 22}, "end_point": {"row": 46, "column": 23}}, {"id": 148, "type": "number_literal", "text": "0", "parent": 143, "children": [], "start_point": {"row": 46, "column": 24}, "end_point": {"row": 46, "column": 25}}, {"id": 149, "type": "assignment_expression", "text": "_si.fogNear = 0", "parent": 65, "children": [150, 153, 154], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 25}}, {"id": 150, "type": "field_expression", "text": "_si.fogNear", "parent": 149, "children": [151, 152], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 19}}, {"id": 151, "type": "identifier", "text": "_si", "parent": 150, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 11}}, {"id": 152, "type": "field_identifier", "text": "fogNear", "parent": 150, "children": [], "start_point": {"row": 47, "column": 12}, "end_point": {"row": 47, "column": 19}}, {"id": 153, "type": "=", "text": "=", "parent": 149, "children": [], "start_point": {"row": 47, "column": 22}, "end_point": {"row": 47, "column": 23}}, {"id": 154, "type": "number_literal", "text": "0", "parent": 149, "children": [], "start_point": {"row": 47, "column": 24}, "end_point": {"row": 47, "column": 25}}, {"id": 155, "type": "assignment_expression", "text": "_si.fogFar = 0", "parent": 65, "children": [156, 159, 160], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 26}}, {"id": 156, "type": "field_expression", "text": "_si.fogFar", "parent": 155, "children": [157, 158], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 18}}, {"id": 157, "type": "identifier", "text": "_si", "parent": 156, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 11}}, {"id": 158, "type": "field_identifier", "text": "fogFar", "parent": 156, "children": [], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 18}}, {"id": 159, "type": "=", "text": "=", "parent": 155, "children": [], "start_point": {"row": 48, "column": 23}, "end_point": {"row": 48, "column": 24}}, {"id": 160, "type": "number_literal", "text": "0", "parent": 155, "children": [], "start_point": {"row": 48, "column": 25}, "end_point": {"row": 48, "column": 26}}, {"id": 161, "type": "assignment_expression", "text": "_si.fogColor = ZWHITE", "parent": 65, "children": [162, 165, 166], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 31}}, {"id": 162, "type": "field_expression", "text": "_si.fogColor", "parent": 161, "children": [163, 164], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 20}}, {"id": 163, "type": "identifier", "text": "_si", "parent": 162, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 11}}, {"id": 164, "type": "field_identifier", "text": "fogColor", "parent": 162, "children": [], "start_point": {"row": 49, "column": 12}, "end_point": {"row": 49, "column": 20}}, {"id": 165, "type": "=", "text": "=", "parent": 161, "children": [], "start_point": {"row": 49, "column": 23}, "end_point": {"row": 49, "column": 24}}, {"id": 166, "type": "identifier", "text": "ZWHITE", "parent": 161, "children": [], "start_point": {"row": 49, "column": 25}, "end_point": {"row": 49, "column": 31}}, {"id": 167, "type": "assignment_expression", "text": "_si.fogDens = 0", "parent": 65, "children": [168, 171, 172], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 26}}, {"id": 168, "type": "field_expression", "text": "_si.fogDens", "parent": 167, "children": [169, 170], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 19}}, {"id": 169, "type": "identifier", "text": "_si", "parent": 168, "children": [], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 11}}, {"id": 170, "type": "field_identifier", "text": "fogDens", "parent": 168, "children": [], "start_point": {"row": 50, "column": 12}, "end_point": {"row": 50, "column": 19}}, {"id": 171, "type": "=", "text": "=", "parent": 167, "children": [], "start_point": {"row": 50, "column": 23}, "end_point": {"row": 50, "column": 24}}, {"id": 172, "type": "number_literal", "text": "0", "parent": 167, "children": [], "start_point": {"row": 50, "column": 25}, "end_point": {"row": 50, "column": 26}}, {"id": 173, "type": "assignment_expression", "text": "_si.fogFallOff =0", "parent": 65, "children": [174, 177, 178], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 25}}, {"id": 174, "type": "field_expression", "text": "_si.fogFallOff", "parent": 173, "children": [175, 176], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 22}}, {"id": 175, "type": "identifier", "text": "_si", "parent": 174, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 11}}, {"id": 176, "type": "field_identifier", "text": "fogFallOff", "parent": 174, "children": [], "start_point": {"row": 51, "column": 12}, "end_point": {"row": 51, "column": 22}}, {"id": 177, "type": "=", "text": "=", "parent": 173, "children": [], "start_point": {"row": 51, "column": 23}, "end_point": {"row": 51, "column": 24}}, {"id": 178, "type": "number_literal", "text": "0", "parent": 173, "children": [], "start_point": {"row": 51, "column": 24}, "end_point": {"row": 51, "column": 25}}, {"id": 179, "type": "call_expression", "text": "strcpy(_name, \"scene\")", "parent": 65, "children": [180, 181], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 30}}, {"id": 180, "type": "identifier", "text": "strcpy", "parent": 179, "children": [], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 14}}, {"id": 181, "type": "argument_list", "text": "(_name, \"scene\")", "parent": 179, "children": [182, 183], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 30}}, {"id": 182, "type": "identifier", "text": "_name", "parent": 181, "children": [], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 20}}, {"id": 183, "type": "string_literal", "text": "\"scene\"", "parent": 181, "children": [], "start_point": {"row": 53, "column": 22}, "end_point": {"row": 53, "column": 29}}, {"id": 184, "type": "function_definition", "text": "virtual ~Scene(){\r\n\t\tClear();\r\n }", "parent": 53, "children": [185, 186, 188], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 60, "column": 5}}, {"id": 185, "type": "type_identifier", "text": "virtual", "parent": 184, "children": [], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 11}}, {"id": 186, "type": "ERROR", "text": "~", "parent": 184, "children": [187], "start_point": {"row": 58, "column": 12}, "end_point": {"row": 58, "column": 13}}, {"id": 187, "type": "~", "text": "~", "parent": 186, "children": [], "start_point": {"row": 58, "column": 12}, "end_point": {"row": 58, "column": 13}}, {"id": 188, "type": "function_declarator", "text": "Scene()", "parent": 184, "children": [189, 190], "start_point": {"row": 58, "column": 13}, "end_point": {"row": 58, "column": 20}}, {"id": 189, "type": "identifier", "text": "Scene", "parent": 188, "children": [], "start_point": {"row": 58, "column": 13}, "end_point": {"row": 58, "column": 18}}, {"id": 190, "type": "parameter_list", "text": "()", "parent": 188, "children": [], "start_point": {"row": 58, "column": 18}, "end_point": {"row": 58, "column": 20}}, {"id": 191, "type": "call_expression", "text": "Clear()", "parent": 184, "children": [192, 193], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 9}}, {"id": 192, "type": "identifier", "text": "Clear", "parent": 191, "children": [], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 7}}, {"id": 193, "type": "argument_list", "text": "()", "parent": 191, "children": [], "start_point": {"row": 59, "column": 7}, "end_point": {"row": 59, "column": 9}}, {"id": 194, "type": "function_definition", "text": "void Clear(){\r\n // items first. they may release owned brushes\r\n Initialize();\r\n ClearItems();\r\n ClearBrushes();\r\n ClearMotions();\r\n\t\tClearScripts();\r\n ClearSounds();\r\n ClearCats();\r\n ClearPrimitives();\r\n _terrain.Clear();\r\n _descs.clear();\r\n _errstring=\"\";\r\n }", "parent": 53, "children": [195, 196], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 75, "column": 5}}, {"id": 195, "type": "primitive_type", "text": "void", "parent": 194, "children": [], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 8}}, {"id": 196, "type": "function_declarator", "text": "Clear()", "parent": 194, "children": [197, 198], "start_point": {"row": 62, "column": 9}, "end_point": {"row": 62, "column": 16}}, {"id": 197, "type": "identifier", "text": "Clear", "parent": 196, "children": [], "start_point": {"row": 62, "column": 9}, "end_point": {"row": 62, "column": 14}}, {"id": 198, "type": "parameter_list", "text": "()", "parent": 196, "children": [], "start_point": {"row": 62, "column": 14}, "end_point": {"row": 62, "column": 16}}, {"id": 199, "type": "call_expression", "text": "Initialize()", "parent": 194, "children": [200, 201], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 20}}, {"id": 200, "type": "identifier", "text": "Initialize", "parent": 199, "children": [], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 18}}, {"id": 201, "type": "argument_list", "text": "()", "parent": 199, "children": [], "start_point": {"row": 64, "column": 18}, "end_point": {"row": 64, "column": 20}}, {"id": 202, "type": "call_expression", "text": "ClearItems()", "parent": 194, "children": [203, 204], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 20}}, {"id": 203, "type": "identifier", "text": "ClearItems", "parent": 202, "children": [], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 18}}, {"id": 204, "type": "argument_list", "text": "()", "parent": 202, "children": [], "start_point": {"row": 65, "column": 18}, "end_point": {"row": 65, "column": 20}}, {"id": 205, "type": "call_expression", "text": "ClearBrushes()", "parent": 194, "children": [206, 207], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 22}}, {"id": 206, "type": "identifier", "text": "ClearBrushes", "parent": 205, "children": [], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 20}}, {"id": 207, "type": "argument_list", "text": "()", "parent": 205, "children": [], "start_point": {"row": 66, "column": 20}, "end_point": {"row": 66, "column": 22}}, {"id": 208, "type": "call_expression", "text": "ClearMotions()", "parent": 194, "children": [209, 210], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 22}}, {"id": 209, "type": "identifier", "text": "ClearMotions", "parent": 208, "children": [], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 20}}, {"id": 210, "type": "argument_list", "text": "()", "parent": 208, "children": [], "start_point": {"row": 67, "column": 20}, "end_point": {"row": 67, "column": 22}}, {"id": 211, "type": "call_expression", "text": "ClearScripts()", "parent": 194, "children": [212, 213], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 16}}, {"id": 212, "type": "identifier", "text": "ClearScripts", "parent": 211, "children": [], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 14}}, {"id": 213, "type": "argument_list", "text": "()", "parent": 211, "children": [], "start_point": {"row": 68, "column": 14}, "end_point": {"row": 68, "column": 16}}, {"id": 214, "type": "call_expression", "text": "ClearSounds()", "parent": 194, "children": [215, 216], "start_point": {"row": 69, "column": 8}, "end_point": {"row": 69, "column": 21}}, {"id": 215, "type": "identifier", "text": "ClearSounds", "parent": 214, "children": [], "start_point": {"row": 69, "column": 8}, "end_point": {"row": 69, "column": 19}}, {"id": 216, "type": "argument_list", "text": "()", "parent": 214, "children": [], "start_point": {"row": 69, "column": 19}, "end_point": {"row": 69, "column": 21}}, {"id": 217, "type": "call_expression", "text": "ClearCats()", "parent": 194, "children": [218, 219], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 19}}, {"id": 218, "type": "identifier", "text": "ClearCats", "parent": 217, "children": [], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 17}}, {"id": 219, "type": "argument_list", "text": "()", "parent": 217, "children": [], "start_point": {"row": 70, "column": 17}, "end_point": {"row": 70, "column": 19}}, {"id": 220, "type": "call_expression", "text": "ClearPrimitives()", "parent": 194, "children": [221, 222], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 25}}, {"id": 221, "type": "identifier", "text": "ClearPrimitives", "parent": 220, "children": [], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 23}}, {"id": 222, "type": "argument_list", "text": "()", "parent": 220, "children": [], "start_point": {"row": 71, "column": 23}, "end_point": {"row": 71, "column": 25}}, {"id": 223, "type": "call_expression", "text": "_terrain.Clear()", "parent": 194, "children": [224, 227], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 24}}, {"id": 224, "type": "field_expression", "text": "_terrain.Clear", "parent": 223, "children": [225, 226], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 22}}, {"id": 225, "type": "identifier", "text": "_terrain", "parent": 224, "children": [], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 16}}, {"id": 226, "type": "field_identifier", "text": "Clear", "parent": 224, "children": [], "start_point": {"row": 72, "column": 17}, "end_point": {"row": 72, "column": 22}}, {"id": 227, "type": "argument_list", "text": "()", "parent": 223, "children": [], "start_point": {"row": 72, "column": 22}, "end_point": {"row": 72, "column": 24}}, {"id": 228, "type": "call_expression", "text": "_descs.clear()", "parent": 194, "children": [229, 232], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 22}}, {"id": 229, "type": "field_expression", "text": "_descs.clear", "parent": 228, "children": [230, 231], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 20}}, {"id": 230, "type": "identifier", "text": "_descs", "parent": 229, "children": [], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 14}}, {"id": 231, "type": "field_identifier", "text": "clear", "parent": 229, "children": [], "start_point": {"row": 73, "column": 15}, "end_point": {"row": 73, "column": 20}}, {"id": 232, "type": "argument_list", "text": "()", "parent": 228, "children": [], "start_point": {"row": 73, "column": 20}, "end_point": {"row": 73, "column": 22}}, {"id": 233, "type": "assignment_expression", "text": "_errstring=\"\"", "parent": 194, "children": [234, 235, 236], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 21}}, {"id": 234, "type": "identifier", "text": "_errstring", "parent": 233, "children": [], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 18}}, {"id": 235, "type": "=", "text": "=", "parent": 233, "children": [], "start_point": {"row": 74, "column": 18}, "end_point": {"row": 74, "column": 19}}, {"id": 236, "type": "string_literal", "text": "\"\"", "parent": 233, "children": [], "start_point": {"row": 74, "column": 19}, "end_point": {"row": 74, "column": 21}}, {"id": 237, "type": "function_definition", "text": "void ClearScripts(){_scripts.deleteelements();}", "parent": 53, "children": [238, 239], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 51}}, {"id": 238, "type": "primitive_type", "text": "void", "parent": 237, "children": [], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 8}}, {"id": 239, "type": "function_declarator", "text": "ClearScripts()", "parent": 237, "children": [240, 241], "start_point": {"row": 76, "column": 9}, "end_point": {"row": 76, "column": 23}}, {"id": 240, "type": "identifier", "text": "ClearScripts", "parent": 239, "children": [], "start_point": {"row": 76, "column": 9}, "end_point": {"row": 76, "column": 21}}, {"id": 241, "type": "parameter_list", "text": "()", "parent": 239, "children": [], "start_point": {"row": 76, "column": 21}, "end_point": {"row": 76, "column": 23}}, {"id": 242, "type": "call_expression", "text": "_scripts.deleteelements()", "parent": 237, "children": [243, 246], "start_point": {"row": 76, "column": 24}, "end_point": {"row": 76, "column": 49}}, {"id": 243, "type": "field_expression", "text": "_scripts.deleteelements", "parent": 242, "children": [244, 245], "start_point": {"row": 76, "column": 24}, "end_point": {"row": 76, "column": 47}}, {"id": 244, "type": "identifier", "text": "_scripts", "parent": 243, "children": [], "start_point": {"row": 76, "column": 24}, "end_point": {"row": 76, "column": 32}}, {"id": 245, "type": "field_identifier", "text": "deleteelements", "parent": 243, "children": [], "start_point": {"row": 76, "column": 33}, "end_point": {"row": 76, "column": 47}}, {"id": 246, "type": "argument_list", "text": "()", "parent": 242, "children": [], "start_point": {"row": 76, "column": 47}, "end_point": {"row": 76, "column": 49}}, {"id": 247, "type": "function_definition", "text": "void ClearSounds(){_sounds.deleteelements();}", "parent": 53, "children": [248, 249], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 49}}, {"id": 248, "type": "primitive_type", "text": "void", "parent": 247, "children": [], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 8}}, {"id": 249, "type": "function_declarator", "text": "ClearSounds()", "parent": 247, "children": [250, 251], "start_point": {"row": 77, "column": 9}, "end_point": {"row": 77, "column": 22}}, {"id": 250, "type": "identifier", "text": "ClearSounds", "parent": 249, "children": [], "start_point": {"row": 77, "column": 9}, "end_point": {"row": 77, "column": 20}}, {"id": 251, "type": "parameter_list", "text": "()", "parent": 249, "children": [], "start_point": {"row": 77, "column": 20}, "end_point": {"row": 77, "column": 22}}, {"id": 252, "type": "call_expression", "text": "_sounds.deleteelements()", "parent": 247, "children": [253, 256], "start_point": {"row": 77, "column": 23}, "end_point": {"row": 77, "column": 47}}, {"id": 253, "type": "field_expression", "text": "_sounds.deleteelements", "parent": 252, "children": [254, 255], "start_point": {"row": 77, "column": 23}, "end_point": {"row": 77, "column": 45}}, {"id": 254, "type": "identifier", "text": "_sounds", "parent": 253, "children": [], "start_point": {"row": 77, "column": 23}, "end_point": {"row": 77, "column": 30}}, {"id": 255, "type": "field_identifier", "text": "deleteelements", "parent": 253, "children": [], "start_point": {"row": 77, "column": 31}, "end_point": {"row": 77, "column": 45}}, {"id": 256, "type": "argument_list", "text": "()", "parent": 252, "children": [], "start_point": {"row": 77, "column": 45}, "end_point": {"row": 77, "column": 47}}, {"id": 257, "type": "function_definition", "text": "void ClearItems(){_items.deleteelements();}", "parent": 53, "children": [258, 259], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 47}}, {"id": 258, "type": "primitive_type", "text": "void", "parent": 257, "children": [], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 8}}, {"id": 259, "type": "function_declarator", "text": "ClearItems()", "parent": 257, "children": [260, 261], "start_point": {"row": 78, "column": 9}, "end_point": {"row": 78, "column": 21}}, {"id": 260, "type": "identifier", "text": "ClearItems", "parent": 259, "children": [], "start_point": {"row": 78, "column": 9}, "end_point": {"row": 78, "column": 19}}, {"id": 261, "type": "parameter_list", "text": "()", "parent": 259, "children": [], "start_point": {"row": 78, "column": 19}, "end_point": {"row": 78, "column": 21}}, {"id": 262, "type": "call_expression", "text": "_items.deleteelements()", "parent": 257, "children": [263, 266], "start_point": {"row": 78, "column": 22}, "end_point": {"row": 78, "column": 45}}, {"id": 263, "type": "field_expression", "text": "_items.deleteelements", "parent": 262, "children": [264, 265], "start_point": {"row": 78, "column": 22}, "end_point": {"row": 78, "column": 43}}, {"id": 264, "type": "identifier", "text": "_items", "parent": 263, "children": [], "start_point": {"row": 78, "column": 22}, "end_point": {"row": 78, "column": 28}}, {"id": 265, "type": "field_identifier", "text": "deleteelements", "parent": 263, "children": [], "start_point": {"row": 78, "column": 29}, "end_point": {"row": 78, "column": 43}}, {"id": 266, "type": "argument_list", "text": "()", "parent": 262, "children": [], "start_point": {"row": 78, "column": 43}, "end_point": {"row": 78, "column": 45}}, {"id": 267, "type": "function_definition", "text": "void ClearMotions(){_motions.deleteelements();}", "parent": 53, "children": [268, 269], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 51}}, {"id": 268, "type": "primitive_type", "text": "void", "parent": 267, "children": [], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 8}}, {"id": 269, "type": "function_declarator", "text": "ClearMotions()", "parent": 267, "children": [270, 271], "start_point": {"row": 79, "column": 9}, "end_point": {"row": 79, "column": 23}}, {"id": 270, "type": "identifier", "text": "ClearMotions", "parent": 269, "children": [], "start_point": {"row": 79, "column": 9}, "end_point": {"row": 79, "column": 21}}, {"id": 271, "type": "parameter_list", "text": "()", "parent": 269, "children": [], "start_point": {"row": 79, "column": 21}, "end_point": {"row": 79, "column": 23}}, {"id": 272, "type": "call_expression", "text": "_motions.deleteelements()", "parent": 267, "children": [273, 276], "start_point": {"row": 79, "column": 24}, "end_point": {"row": 79, "column": 49}}, {"id": 273, "type": "field_expression", "text": "_motions.deleteelements", "parent": 272, "children": [274, 275], "start_point": {"row": 79, "column": 24}, "end_point": {"row": 79, "column": 47}}, {"id": 274, "type": "identifier", "text": "_motions", "parent": 273, "children": [], "start_point": {"row": 79, "column": 24}, "end_point": {"row": 79, "column": 32}}, {"id": 275, "type": "field_identifier", "text": "deleteelements", "parent": 273, "children": [], "start_point": {"row": 79, "column": 33}, "end_point": {"row": 79, "column": 47}}, {"id": 276, "type": "argument_list", "text": "()", "parent": 272, "children": [], "start_point": {"row": 79, "column": 47}, "end_point": {"row": 79, "column": 49}}, {"id": 277, "type": "declaration", "text": "void ClearPrimitives();", "parent": 53, "children": [278, 279], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 24}}, {"id": 278, "type": "primitive_type", "text": "void", "parent": 277, "children": [], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 5}}, {"id": 279, "type": "function_declarator", "text": "ClearPrimitives()", "parent": 277, "children": [280, 281], "start_point": {"row": 80, "column": 6}, "end_point": {"row": 80, "column": 23}}, {"id": 280, "type": "identifier", "text": "ClearPrimitives", "parent": 279, "children": [], "start_point": {"row": 80, "column": 6}, "end_point": {"row": 80, "column": 21}}, {"id": 281, "type": "parameter_list", "text": "()", "parent": 279, "children": [], "start_point": {"row": 80, "column": 21}, "end_point": {"row": 80, "column": 23}}, {"id": 282, "type": "declaration", "text": "void ClearBrushes();", "parent": 53, "children": [283, 284], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 24}}, {"id": 283, "type": "primitive_type", "text": "void", "parent": 282, "children": [], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 8}}, {"id": 284, "type": "function_declarator", "text": "ClearBrushes()", "parent": 282, "children": [285, 286], "start_point": {"row": 81, "column": 9}, "end_point": {"row": 81, "column": 23}}, {"id": 285, "type": "identifier", "text": "ClearBrushes", "parent": 284, "children": [], "start_point": {"row": 81, "column": 9}, "end_point": {"row": 81, "column": 21}}, {"id": 286, "type": "parameter_list", "text": "()", "parent": 284, "children": [], "start_point": {"row": 81, "column": 21}, "end_point": {"row": 81, "column": 23}}, {"id": 287, "type": "declaration", "text": "int\t GetPolyCnt();", "parent": 53, "children": [288, 289], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 19}}, {"id": 288, "type": "primitive_type", "text": "int", "parent": 287, "children": [], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 4}}, {"id": 289, "type": "function_declarator", "text": "GetPolyCnt()", "parent": 287, "children": [290, 291], "start_point": {"row": 82, "column": 6}, "end_point": {"row": 82, "column": 18}}, {"id": 290, "type": "identifier", "text": "GetPolyCnt", "parent": 289, "children": [], "start_point": {"row": 82, "column": 6}, "end_point": {"row": 82, "column": 16}}, {"id": 291, "type": "parameter_list", "text": "()", "parent": 289, "children": [], "start_point": {"row": 82, "column": 16}, "end_point": {"row": 82, "column": 18}}, {"id": 292, "type": "function_definition", "text": "PBrushes* GetPrimitives(){return &_primitives;}", "parent": 53, "children": [293, 294], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 53}}, {"id": 293, "type": "type_identifier", "text": "PBrushes", "parent": 292, "children": [], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 12}}, {"id": 294, "type": "pointer_declarator", "text": "* GetPrimitives()", "parent": 292, "children": [295, 296], "start_point": {"row": 83, "column": 12}, "end_point": {"row": 83, "column": 31}}, {"id": 295, "type": "*", "text": "*", "parent": 294, "children": [], "start_point": {"row": 83, "column": 12}, "end_point": {"row": 83, "column": 13}}, {"id": 296, "type": "function_declarator", "text": "GetPrimitives()", "parent": 294, "children": [297, 298], "start_point": {"row": 83, "column": 16}, "end_point": {"row": 83, "column": 31}}, {"id": 297, "type": "identifier", "text": "GetPrimitives", "parent": 296, "children": [], "start_point": {"row": 83, "column": 16}, "end_point": {"row": 83, "column": 29}}, {"id": 298, "type": "parameter_list", "text": "()", "parent": 296, "children": [], "start_point": {"row": 83, "column": 29}, "end_point": {"row": 83, "column": 31}}, {"id": 299, "type": "return_statement", "text": "return &_primitives;", "parent": 292, "children": [300], "start_point": {"row": 83, "column": 32}, "end_point": {"row": 83, "column": 52}}, {"id": 300, "type": "pointer_expression", "text": "&_primitives", "parent": 299, "children": [301], "start_point": {"row": 83, "column": 39}, "end_point": {"row": 83, "column": 51}}, {"id": 301, "type": "identifier", "text": "_primitives", "parent": 300, "children": [], "start_point": {"row": 83, "column": 40}, "end_point": {"row": 83, "column": 51}}, {"id": 302, "type": "function_definition", "text": "void AddBrush(Brush* pB){_brushes <<(pB);}", "parent": 53, "children": [303, 304], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 53}}, {"id": 303, "type": "primitive_type", "text": "void", "parent": 302, "children": [], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 8}}, {"id": 304, "type": "function_declarator", "text": "AddBrush(Brush* pB)", "parent": 302, "children": [305, 306], "start_point": {"row": 84, "column": 16}, "end_point": {"row": 84, "column": 35}}, {"id": 305, "type": "identifier", "text": "AddBrush", "parent": 304, "children": [], "start_point": {"row": 84, "column": 16}, "end_point": {"row": 84, "column": 24}}, {"id": 306, "type": "parameter_list", "text": "(Brush* pB)", "parent": 304, "children": [307], "start_point": {"row": 84, "column": 24}, "end_point": {"row": 84, "column": 35}}, {"id": 307, "type": "parameter_declaration", "text": "Brush* pB", "parent": 306, "children": [308, 309], "start_point": {"row": 84, "column": 25}, "end_point": {"row": 84, "column": 34}}, {"id": 308, "type": "type_identifier", "text": "Brush", "parent": 307, "children": [], "start_point": {"row": 84, "column": 25}, "end_point": {"row": 84, "column": 30}}, {"id": 309, "type": "pointer_declarator", "text": "* pB", "parent": 307, "children": [310, 311], "start_point": {"row": 84, "column": 30}, "end_point": {"row": 84, "column": 34}}, {"id": 310, "type": "*", "text": "*", "parent": 309, "children": [], "start_point": {"row": 84, "column": 30}, "end_point": {"row": 84, "column": 31}}, {"id": 311, "type": "identifier", "text": "pB", "parent": 309, "children": [], "start_point": {"row": 84, "column": 32}, "end_point": {"row": 84, "column": 34}}, {"id": 312, "type": "binary_expression", "text": "_brushes <<(pB)", "parent": 302, "children": [313, 314, 315], "start_point": {"row": 84, "column": 36}, "end_point": {"row": 84, "column": 51}}, {"id": 313, "type": "identifier", "text": "_brushes", "parent": 312, "children": [], "start_point": {"row": 84, "column": 36}, "end_point": {"row": 84, "column": 44}}, {"id": 314, "type": "<<", "text": "<<", "parent": 312, "children": [], "start_point": {"row": 84, "column": 45}, "end_point": {"row": 84, "column": 47}}, {"id": 315, "type": "parenthesized_expression", "text": "(pB)", "parent": 312, "children": [316], "start_point": {"row": 84, "column": 47}, "end_point": {"row": 84, "column": 51}}, {"id": 316, "type": "identifier", "text": "pB", "parent": 315, "children": [], "start_point": {"row": 84, "column": 48}, "end_point": {"row": 84, "column": 50}}, {"id": 317, "type": "function_definition", "text": "PBrushes* GetBrushes(){return &_brushes;}", "parent": 53, "children": [318, 319], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 47}}, {"id": 318, "type": "type_identifier", "text": "PBrushes", "parent": 317, "children": [], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 12}}, {"id": 319, "type": "pointer_declarator", "text": "* GetBrushes()", "parent": 317, "children": [320, 321], "start_point": {"row": 85, "column": 12}, "end_point": {"row": 85, "column": 28}}, {"id": 320, "type": "*", "text": "*", "parent": 319, "children": [], "start_point": {"row": 85, "column": 12}, "end_point": {"row": 85, "column": 13}}, {"id": 321, "type": "function_declarator", "text": "GetBrushes()", "parent": 319, "children": [322, 323], "start_point": {"row": 85, "column": 16}, "end_point": {"row": 85, "column": 28}}, {"id": 322, "type": "identifier", "text": "GetBrushes", "parent": 321, "children": [], "start_point": {"row": 85, "column": 16}, "end_point": {"row": 85, "column": 26}}, {"id": 323, "type": "parameter_list", "text": "()", "parent": 321, "children": [], "start_point": {"row": 85, "column": 26}, "end_point": {"row": 85, "column": 28}}, {"id": 324, "type": "return_statement", "text": "return &_brushes;", "parent": 317, "children": [325], "start_point": {"row": 85, "column": 29}, "end_point": {"row": 85, "column": 46}}, {"id": 325, "type": "pointer_expression", "text": "&_brushes", "parent": 324, "children": [326], "start_point": {"row": 85, "column": 36}, "end_point": {"row": 85, "column": 45}}, {"id": 326, "type": "identifier", "text": "_brushes", "parent": 325, "children": [], "start_point": {"row": 85, "column": 37}, "end_point": {"row": 85, "column": 45}}, {"id": 327, "type": "function_definition", "text": "void AddPrimitive(Brush* pB){pB->_brushflags &= ~BRSH_NEW;_primitives << (pB);}", "parent": 53, "children": [328, 329], "start_point": {"row": 86, "column": 1}, "end_point": {"row": 86, "column": 87}}, {"id": 328, "type": "primitive_type", "text": "void", "parent": 327, "children": [], "start_point": {"row": 86, "column": 1}, "end_point": {"row": 86, "column": 5}}, {"id": 329, "type": "function_declarator", "text": "AddPrimitive(Brush* pB)", "parent": 327, "children": [330, 331], "start_point": {"row": 86, "column": 13}, "end_point": {"row": 86, "column": 36}}, {"id": 330, "type": "identifier", "text": "AddPrimitive", "parent": 329, "children": [], "start_point": {"row": 86, "column": 13}, "end_point": {"row": 86, "column": 25}}, {"id": 331, "type": "parameter_list", "text": "(Brush* pB)", "parent": 329, "children": [332], "start_point": {"row": 86, "column": 25}, "end_point": {"row": 86, "column": 36}}, {"id": 332, "type": "parameter_declaration", "text": "Brush* pB", "parent": 331, "children": [333, 334], "start_point": {"row": 86, "column": 26}, "end_point": {"row": 86, "column": 35}}, {"id": 333, "type": "type_identifier", "text": "Brush", "parent": 332, "children": [], "start_point": {"row": 86, "column": 26}, "end_point": {"row": 86, "column": 31}}, {"id": 334, "type": "pointer_declarator", "text": "* pB", "parent": 332, "children": [335, 336], "start_point": {"row": 86, "column": 31}, "end_point": {"row": 86, "column": 35}}, {"id": 335, "type": "*", "text": "*", "parent": 334, "children": [], "start_point": {"row": 86, "column": 31}, "end_point": {"row": 86, "column": 32}}, {"id": 336, "type": "identifier", "text": "pB", "parent": 334, "children": [], "start_point": {"row": 86, "column": 33}, "end_point": {"row": 86, "column": 35}}, {"id": 337, "type": "assignment_expression", "text": "pB->_brushflags &= ~BRSH_NEW", "parent": 327, "children": [338, 341, 342], "start_point": {"row": 86, "column": 37}, "end_point": {"row": 86, "column": 65}}, {"id": 338, "type": "field_expression", "text": "pB->_brushflags", "parent": 337, "children": [339, 340], "start_point": {"row": 86, "column": 37}, "end_point": {"row": 86, "column": 52}}, {"id": 339, "type": "identifier", "text": "pB", "parent": 338, "children": [], "start_point": {"row": 86, "column": 37}, "end_point": {"row": 86, "column": 39}}, {"id": 340, "type": "field_identifier", "text": "_brushflags", "parent": 338, "children": [], "start_point": {"row": 86, "column": 41}, "end_point": {"row": 86, "column": 52}}, {"id": 341, "type": "&=", "text": "&=", "parent": 337, "children": [], "start_point": {"row": 86, "column": 53}, "end_point": {"row": 86, "column": 55}}, {"id": 342, "type": "unary_expression", "text": "~BRSH_NEW", "parent": 337, "children": [343, 344], "start_point": {"row": 86, "column": 56}, "end_point": {"row": 86, "column": 65}}, {"id": 343, "type": "~", "text": "~", "parent": 342, "children": [], "start_point": {"row": 86, "column": 56}, "end_point": {"row": 86, "column": 57}}, {"id": 344, "type": "identifier", "text": "BRSH_NEW", "parent": 342, "children": [], "start_point": {"row": 86, "column": 57}, "end_point": {"row": 86, "column": 65}}, {"id": 345, "type": "binary_expression", "text": "_primitives << (pB)", "parent": 327, "children": [346, 347, 348], "start_point": {"row": 86, "column": 66}, "end_point": {"row": 86, "column": 85}}, {"id": 346, "type": "identifier", "text": "_primitives", "parent": 345, "children": [], "start_point": {"row": 86, "column": 66}, "end_point": {"row": 86, "column": 77}}, {"id": 347, "type": "<<", "text": "<<", "parent": 345, "children": [], "start_point": {"row": 86, "column": 78}, "end_point": {"row": 86, "column": 80}}, {"id": 348, "type": "parenthesized_expression", "text": "(pB)", "parent": 345, "children": [349], "start_point": {"row": 86, "column": 81}, "end_point": {"row": 86, "column": 85}}, {"id": 349, "type": "identifier", "text": "pB", "parent": 348, "children": [], "start_point": {"row": 86, "column": 82}, "end_point": {"row": 86, "column": 84}}, {"id": 350, "type": "function_definition", "text": "Brush* GetPrimitive(int brSel){if(brSel < (int)_primitives.size()) return _primitives[brSel];return 0;}", "parent": 53, "children": [351, 352], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 112}}, {"id": 351, "type": "type_identifier", "text": "Brush", "parent": 350, "children": [], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 9}}, {"id": 352, "type": "pointer_declarator", "text": "* GetPrimitive(int brSel)", "parent": 350, "children": [353, 354], "start_point": {"row": 87, "column": 9}, "end_point": {"row": 87, "column": 39}}, {"id": 353, "type": "*", "text": "*", "parent": 352, "children": [], "start_point": {"row": 87, "column": 9}, "end_point": {"row": 87, "column": 10}}, {"id": 354, "type": "function_declarator", "text": "GetPrimitive(int brSel)", "parent": 352, "children": [355, 356], "start_point": {"row": 87, "column": 16}, "end_point": {"row": 87, "column": 39}}, {"id": 355, "type": "identifier", "text": "GetPrimitive", "parent": 354, "children": [], "start_point": {"row": 87, "column": 16}, "end_point": {"row": 87, "column": 28}}, {"id": 356, "type": "parameter_list", "text": "(int brSel)", "parent": 354, "children": [357], "start_point": {"row": 87, "column": 28}, "end_point": {"row": 87, "column": 39}}, {"id": 357, "type": "parameter_declaration", "text": "int brSel", "parent": 356, "children": [358, 359], "start_point": {"row": 87, "column": 29}, "end_point": {"row": 87, "column": 38}}, {"id": 358, "type": "primitive_type", "text": "int", "parent": 357, "children": [], "start_point": {"row": 87, "column": 29}, "end_point": {"row": 87, "column": 32}}, {"id": 359, "type": "identifier", "text": "brSel", "parent": 357, "children": [], "start_point": {"row": 87, "column": 33}, "end_point": {"row": 87, "column": 38}}, {"id": 360, "type": "if_statement", "text": "if(brSel < (int)_primitives.size()) return _primitives[brSel];", "parent": 350, "children": [361, 373], "start_point": {"row": 87, "column": 40}, "end_point": {"row": 87, "column": 102}}, {"id": 361, "type": "parenthesized_expression", "text": "(brSel < (int)_primitives.size())", "parent": 360, "children": [362], "start_point": {"row": 87, "column": 42}, "end_point": {"row": 87, "column": 75}}, {"id": 362, "type": "binary_expression", "text": "brSel < (int)_primitives.size()", "parent": 361, "children": [363, 364, 365], "start_point": {"row": 87, "column": 43}, "end_point": {"row": 87, "column": 74}}, {"id": 363, "type": "identifier", "text": "brSel", "parent": 362, "children": [], "start_point": {"row": 87, "column": 43}, "end_point": {"row": 87, "column": 48}}, {"id": 364, "type": "<", "text": "<", "parent": 362, "children": [], "start_point": {"row": 87, "column": 49}, "end_point": {"row": 87, "column": 50}}, {"id": 365, "type": "cast_expression", "text": "(int)_primitives.size()", "parent": 362, "children": [366, 368], "start_point": {"row": 87, "column": 51}, "end_point": {"row": 87, "column": 74}}, {"id": 366, "type": "type_descriptor", "text": "int", "parent": 365, "children": [367], "start_point": {"row": 87, "column": 52}, "end_point": {"row": 87, "column": 55}}, {"id": 367, "type": "primitive_type", "text": "int", "parent": 366, "children": [], "start_point": {"row": 87, "column": 52}, "end_point": {"row": 87, "column": 55}}, {"id": 368, "type": "call_expression", "text": "_primitives.size()", "parent": 365, "children": [369, 372], "start_point": {"row": 87, "column": 56}, "end_point": {"row": 87, "column": 74}}, {"id": 369, "type": "field_expression", "text": "_primitives.size", "parent": 368, "children": [370, 371], "start_point": {"row": 87, "column": 56}, "end_point": {"row": 87, "column": 72}}, {"id": 370, "type": "identifier", "text": "_primitives", "parent": 369, "children": [], "start_point": {"row": 87, "column": 56}, "end_point": {"row": 87, "column": 67}}, {"id": 371, "type": "field_identifier", "text": "size", "parent": 369, "children": [], "start_point": {"row": 87, "column": 68}, "end_point": {"row": 87, "column": 72}}, {"id": 372, "type": "argument_list", "text": "()", "parent": 368, "children": [], "start_point": {"row": 87, "column": 72}, "end_point": {"row": 87, "column": 74}}, {"id": 373, "type": "return_statement", "text": "return _primitives[brSel];", "parent": 360, "children": [374], "start_point": {"row": 87, "column": 76}, "end_point": {"row": 87, "column": 102}}, {"id": 374, "type": "subscript_expression", "text": "_primitives[brSel]", "parent": 373, "children": [375, 376], "start_point": {"row": 87, "column": 83}, "end_point": {"row": 87, "column": 101}}, {"id": 375, "type": "identifier", "text": "_primitives", "parent": 374, "children": [], "start_point": {"row": 87, "column": 83}, "end_point": {"row": 87, "column": 94}}, {"id": 376, "type": "identifier", "text": "brSel", "parent": 374, "children": [], "start_point": {"row": 87, "column": 95}, "end_point": {"row": 87, "column": 100}}, {"id": 377, "type": "return_statement", "text": "return 0;", "parent": 350, "children": [378], "start_point": {"row": 87, "column": 102}, "end_point": {"row": 87, "column": 111}}, {"id": 378, "type": "number_literal", "text": "0", "parent": 377, "children": [], "start_point": {"row": 87, "column": 109}, "end_point": {"row": 87, "column": 110}}, {"id": 379, "type": "function_definition", "text": "Brush* GetBrush(int brSel){if(brSel < (int)_brushes.size()) return _brushes[brSel];return 0;}", "parent": 53, "children": [380, 381], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 102}}, {"id": 380, "type": "type_identifier", "text": "Brush", "parent": 379, "children": [], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 9}}, {"id": 381, "type": "pointer_declarator", "text": "* GetBrush(int brSel)", "parent": 379, "children": [382, 383], "start_point": {"row": 88, "column": 9}, "end_point": {"row": 88, "column": 35}}, {"id": 382, "type": "*", "text": "*", "parent": 381, "children": [], "start_point": {"row": 88, "column": 9}, "end_point": {"row": 88, "column": 10}}, {"id": 383, "type": "function_declarator", "text": "GetBrush(int brSel)", "parent": 381, "children": [384, 385], "start_point": {"row": 88, "column": 16}, "end_point": {"row": 88, "column": 35}}, {"id": 384, "type": "identifier", "text": "GetBrush", "parent": 383, "children": [], "start_point": {"row": 88, "column": 16}, "end_point": {"row": 88, "column": 24}}, {"id": 385, "type": "parameter_list", "text": "(int brSel)", "parent": 383, "children": [386], "start_point": {"row": 88, "column": 24}, "end_point": {"row": 88, "column": 35}}, {"id": 386, "type": "parameter_declaration", "text": "int brSel", "parent": 385, "children": [387, 388], "start_point": {"row": 88, "column": 25}, "end_point": {"row": 88, "column": 34}}, {"id": 387, "type": "primitive_type", "text": "int", "parent": 386, "children": [], "start_point": {"row": 88, "column": 25}, "end_point": {"row": 88, "column": 28}}, {"id": 388, "type": "identifier", "text": "brSel", "parent": 386, "children": [], "start_point": {"row": 88, "column": 29}, "end_point": {"row": 88, "column": 34}}, {"id": 389, "type": "if_statement", "text": "if(brSel < (int)_brushes.size()) return _brushes[brSel];", "parent": 379, "children": [390, 402], "start_point": {"row": 88, "column": 36}, "end_point": {"row": 88, "column": 92}}, {"id": 390, "type": "parenthesized_expression", "text": "(brSel < (int)_brushes.size())", "parent": 389, "children": [391], "start_point": {"row": 88, "column": 38}, "end_point": {"row": 88, "column": 68}}, {"id": 391, "type": "binary_expression", "text": "brSel < (int)_brushes.size()", "parent": 390, "children": [392, 393, 394], "start_point": {"row": 88, "column": 39}, "end_point": {"row": 88, "column": 67}}, {"id": 392, "type": "identifier", "text": "brSel", "parent": 391, "children": [], "start_point": {"row": 88, "column": 39}, "end_point": {"row": 88, "column": 44}}, {"id": 393, "type": "<", "text": "<", "parent": 391, "children": [], "start_point": {"row": 88, "column": 45}, "end_point": {"row": 88, "column": 46}}, {"id": 394, "type": "cast_expression", "text": "(int)_brushes.size()", "parent": 391, "children": [395, 397], "start_point": {"row": 88, "column": 47}, "end_point": {"row": 88, "column": 67}}, {"id": 395, "type": "type_descriptor", "text": "int", "parent": 394, "children": [396], "start_point": {"row": 88, "column": 48}, "end_point": {"row": 88, "column": 51}}, {"id": 396, "type": "primitive_type", "text": "int", "parent": 395, "children": [], "start_point": {"row": 88, "column": 48}, "end_point": {"row": 88, "column": 51}}, {"id": 397, "type": "call_expression", "text": "_brushes.size()", "parent": 394, "children": [398, 401], "start_point": {"row": 88, "column": 52}, "end_point": {"row": 88, "column": 67}}, {"id": 398, "type": "field_expression", "text": "_brushes.size", "parent": 397, "children": [399, 400], "start_point": {"row": 88, "column": 52}, "end_point": {"row": 88, "column": 65}}, {"id": 399, "type": "identifier", "text": "_brushes", "parent": 398, "children": [], "start_point": {"row": 88, "column": 52}, "end_point": {"row": 88, "column": 60}}, {"id": 400, "type": "field_identifier", "text": "size", "parent": 398, "children": [], "start_point": {"row": 88, "column": 61}, "end_point": {"row": 88, "column": 65}}, {"id": 401, "type": "argument_list", "text": "()", "parent": 397, "children": [], "start_point": {"row": 88, "column": 65}, "end_point": {"row": 88, "column": 67}}, {"id": 402, "type": "return_statement", "text": "return _brushes[brSel];", "parent": 389, "children": [403], "start_point": {"row": 88, "column": 69}, "end_point": {"row": 88, "column": 92}}, {"id": 403, "type": "subscript_expression", "text": "_brushes[brSel]", "parent": 402, "children": [404, 405], "start_point": {"row": 88, "column": 76}, "end_point": {"row": 88, "column": 91}}, {"id": 404, "type": "identifier", "text": "_brushes", "parent": 403, "children": [], "start_point": {"row": 88, "column": 76}, "end_point": {"row": 88, "column": 84}}, {"id": 405, "type": "identifier", "text": "brSel", "parent": 403, "children": [], "start_point": {"row": 88, "column": 85}, "end_point": {"row": 88, "column": 90}}, {"id": 406, "type": "return_statement", "text": "return 0;", "parent": 379, "children": [407], "start_point": {"row": 88, "column": 92}, "end_point": {"row": 88, "column": 101}}, {"id": 407, "type": "number_literal", "text": "0", "parent": 406, "children": [], "start_point": {"row": 88, "column": 99}, "end_point": {"row": 88, "column": 100}}, {"id": 408, "type": "function_definition", "text": "Brush* GetBrushByID(int brushID){FOREACH(PBrushes, _primitives, ppb){if((*ppb)->_unicID == brushID){return *ppb;}}return 0;}", "parent": 53, "children": [409, 410], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 133}}, {"id": 409, "type": "type_identifier", "text": "Brush", "parent": 408, "children": [], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 9}}, {"id": 410, "type": "pointer_declarator", "text": "* GetBrushByID(int brushID)", "parent": 408, "children": [411, 412], "start_point": {"row": 89, "column": 9}, "end_point": {"row": 89, "column": 41}}, {"id": 411, "type": "*", "text": "*", "parent": 410, "children": [], "start_point": {"row": 89, "column": 9}, "end_point": {"row": 89, "column": 10}}, {"id": 412, "type": "function_declarator", "text": "GetBrushByID(int brushID)", "parent": 410, "children": [413, 414], "start_point": {"row": 89, "column": 16}, "end_point": {"row": 89, "column": 41}}, {"id": 413, "type": "identifier", "text": "GetBrushByID", "parent": 412, "children": [], "start_point": {"row": 89, "column": 16}, "end_point": {"row": 89, "column": 28}}, {"id": 414, "type": "parameter_list", "text": "(int brushID)", "parent": 412, "children": [415], "start_point": {"row": 89, "column": 28}, "end_point": {"row": 89, "column": 41}}, {"id": 415, "type": "parameter_declaration", "text": "int brushID", "parent": 414, "children": [416, 417], "start_point": {"row": 89, "column": 29}, "end_point": {"row": 89, "column": 40}}, {"id": 416, "type": "primitive_type", "text": "int", "parent": 415, "children": [], "start_point": {"row": 89, "column": 29}, "end_point": {"row": 89, "column": 32}}, {"id": 417, "type": "identifier", "text": "brushID", "parent": 415, "children": [], "start_point": {"row": 89, "column": 33}, "end_point": {"row": 89, "column": 40}}, {"id": 418, "type": "call_expression", "text": "FOREACH(PBrushes, _primitives, ppb)", "parent": 408, "children": [419, 420], "start_point": {"row": 89, "column": 42}, "end_point": {"row": 89, "column": 77}}, {"id": 419, "type": "identifier", "text": "FOREACH", "parent": 418, "children": [], "start_point": {"row": 89, "column": 42}, "end_point": {"row": 89, "column": 49}}, {"id": 420, "type": "argument_list", "text": "(PBrushes, _primitives, ppb)", "parent": 418, "children": [421, 422, 423], "start_point": {"row": 89, "column": 49}, "end_point": {"row": 89, "column": 77}}, {"id": 421, "type": "identifier", "text": "PBrushes", "parent": 420, "children": [], "start_point": {"row": 89, "column": 50}, "end_point": {"row": 89, "column": 58}}, {"id": 422, "type": "identifier", "text": "_primitives", "parent": 420, "children": [], "start_point": {"row": 89, "column": 60}, "end_point": {"row": 89, "column": 71}}, {"id": 423, "type": "identifier", "text": "ppb", "parent": 420, "children": [], "start_point": {"row": 89, "column": 73}, "end_point": {"row": 89, "column": 76}}, {"id": 424, "type": "if_statement", "text": "if((*ppb)->_unicID == brushID){return *ppb;}", "parent": 408, "children": [425], "start_point": {"row": 89, "column": 78}, "end_point": {"row": 89, "column": 122}}, {"id": 425, "type": "parenthesized_expression", "text": "((*ppb)->_unicID == brushID)", "parent": 424, "children": [426], "start_point": {"row": 89, "column": 80}, "end_point": {"row": 89, "column": 108}}, {"id": 426, "type": "binary_expression", "text": "(*ppb)->_unicID == brushID", "parent": 425, "children": [427, 433, 434], "start_point": {"row": 89, "column": 81}, "end_point": {"row": 89, "column": 107}}, {"id": 427, "type": "field_expression", "text": "(*ppb)->_unicID", "parent": 426, "children": [428, 432], "start_point": {"row": 89, "column": 81}, "end_point": {"row": 89, "column": 96}}, {"id": 428, "type": "parenthesized_expression", "text": "(*ppb)", "parent": 427, "children": [429], "start_point": {"row": 89, "column": 81}, "end_point": {"row": 89, "column": 87}}, {"id": 429, "type": "pointer_expression", "text": "*ppb", "parent": 428, "children": [430, 431], "start_point": {"row": 89, "column": 82}, "end_point": {"row": 89, "column": 86}}, {"id": 430, "type": "*", "text": "*", "parent": 429, "children": [], "start_point": {"row": 89, "column": 82}, "end_point": {"row": 89, "column": 83}}, {"id": 431, "type": "identifier", "text": "ppb", "parent": 429, "children": [], "start_point": {"row": 89, "column": 83}, "end_point": {"row": 89, "column": 86}}, {"id": 432, "type": "field_identifier", "text": "_unicID", "parent": 427, "children": [], "start_point": {"row": 89, "column": 89}, "end_point": {"row": 89, "column": 96}}, {"id": 433, "type": "==", "text": "==", "parent": 426, "children": [], "start_point": {"row": 89, "column": 97}, "end_point": {"row": 89, "column": 99}}, {"id": 434, "type": "identifier", "text": "brushID", "parent": 426, "children": [], "start_point": {"row": 89, "column": 100}, "end_point": {"row": 89, "column": 107}}, {"id": 435, "type": "return_statement", "text": "return *ppb;", "parent": 424, "children": [436], "start_point": {"row": 89, "column": 109}, "end_point": {"row": 89, "column": 121}}, {"id": 436, "type": "pointer_expression", "text": "*ppb", "parent": 435, "children": [437, 438], "start_point": {"row": 89, "column": 116}, "end_point": {"row": 89, "column": 120}}, {"id": 437, "type": "*", "text": "*", "parent": 436, "children": [], "start_point": {"row": 89, "column": 116}, "end_point": {"row": 89, "column": 117}}, {"id": 438, "type": "identifier", "text": "ppb", "parent": 436, "children": [], "start_point": {"row": 89, "column": 117}, "end_point": {"row": 89, "column": 120}}, {"id": 439, "type": "return_statement", "text": "return 0;", "parent": 408, "children": [440], "start_point": {"row": 89, "column": 123}, "end_point": {"row": 89, "column": 132}}, {"id": 440, "type": "number_literal", "text": "0", "parent": 439, "children": [], "start_point": {"row": 89, "column": 130}, "end_point": {"row": 89, "column": 131}}, {"id": 441, "type": "function_definition", "text": "int AddItem(SceItem* pi){int sz = _items.size();_items << pi;return sz;}", "parent": 53, "children": [442, 443], "start_point": {"row": 90, "column": 4}, "end_point": {"row": 90, "column": 84}}, {"id": 442, "type": "primitive_type", "text": "int", "parent": 441, "children": [], "start_point": {"row": 90, "column": 4}, "end_point": {"row": 90, "column": 7}}, {"id": 443, "type": "function_declarator", "text": "AddItem(SceItem* pi)", "parent": 441, "children": [444, 445], "start_point": {"row": 90, "column": 16}, "end_point": {"row": 90, "column": 36}}, {"id": 444, "type": "identifier", "text": "AddItem", "parent": 443, "children": [], "start_point": {"row": 90, "column": 16}, "end_point": {"row": 90, "column": 23}}, {"id": 445, "type": "parameter_list", "text": "(SceItem* pi)", "parent": 443, "children": [446], "start_point": {"row": 90, "column": 23}, "end_point": {"row": 90, "column": 36}}, {"id": 446, "type": "parameter_declaration", "text": "SceItem* pi", "parent": 445, "children": [447, 448], "start_point": {"row": 90, "column": 24}, "end_point": {"row": 90, "column": 35}}, {"id": 447, "type": "type_identifier", "text": "SceItem", "parent": 446, "children": [], "start_point": {"row": 90, "column": 24}, "end_point": {"row": 90, "column": 31}}, {"id": 448, "type": "pointer_declarator", "text": "* pi", "parent": 446, "children": [449, 450], "start_point": {"row": 90, "column": 31}, "end_point": {"row": 90, "column": 35}}, {"id": 449, "type": "*", "text": "*", "parent": 448, "children": [], "start_point": {"row": 90, "column": 31}, "end_point": {"row": 90, "column": 32}}, {"id": 450, "type": "identifier", "text": "pi", "parent": 448, "children": [], "start_point": {"row": 90, "column": 33}, "end_point": {"row": 90, "column": 35}}, {"id": 451, "type": "declaration", "text": "int sz = _items.size();", "parent": 441, "children": [452, 453], "start_point": {"row": 90, "column": 37}, "end_point": {"row": 90, "column": 60}}, {"id": 452, "type": "primitive_type", "text": "int", "parent": 451, "children": [], "start_point": {"row": 90, "column": 37}, "end_point": {"row": 90, "column": 40}}, {"id": 453, "type": "init_declarator", "text": "sz = _items.size()", "parent": 451, "children": [454, 455, 456], "start_point": {"row": 90, "column": 41}, "end_point": {"row": 90, "column": 59}}, {"id": 454, "type": "identifier", "text": "sz", "parent": 453, "children": [], "start_point": {"row": 90, "column": 41}, "end_point": {"row": 90, "column": 43}}, {"id": 455, "type": "=", "text": "=", "parent": 453, "children": [], "start_point": {"row": 90, "column": 44}, "end_point": {"row": 90, "column": 45}}, {"id": 456, "type": "call_expression", "text": "_items.size()", "parent": 453, "children": [457, 460], "start_point": {"row": 90, "column": 46}, "end_point": {"row": 90, "column": 59}}, {"id": 457, "type": "field_expression", "text": "_items.size", "parent": 456, "children": [458, 459], "start_point": {"row": 90, "column": 46}, "end_point": {"row": 90, "column": 57}}, {"id": 458, "type": "identifier", "text": "_items", "parent": 457, "children": [], "start_point": {"row": 90, "column": 46}, "end_point": {"row": 90, "column": 52}}, {"id": 459, "type": "field_identifier", "text": "size", "parent": 457, "children": [], "start_point": {"row": 90, "column": 53}, "end_point": {"row": 90, "column": 57}}, {"id": 460, "type": "argument_list", "text": "()", "parent": 456, "children": [], "start_point": {"row": 90, "column": 57}, "end_point": {"row": 90, "column": 59}}, {"id": 461, "type": "binary_expression", "text": "_items << pi", "parent": 441, "children": [462, 463, 464], "start_point": {"row": 90, "column": 60}, "end_point": {"row": 90, "column": 72}}, {"id": 462, "type": "identifier", "text": "_items", "parent": 461, "children": [], "start_point": {"row": 90, "column": 60}, "end_point": {"row": 90, "column": 66}}, {"id": 463, "type": "<<", "text": "<<", "parent": 461, "children": [], "start_point": {"row": 90, "column": 67}, "end_point": {"row": 90, "column": 69}}, {"id": 464, "type": "identifier", "text": "pi", "parent": 461, "children": [], "start_point": {"row": 90, "column": 70}, "end_point": {"row": 90, "column": 72}}, {"id": 465, "type": "return_statement", "text": "return sz;", "parent": 441, "children": [466], "start_point": {"row": 90, "column": 73}, "end_point": {"row": 90, "column": 83}}, {"id": 466, "type": "identifier", "text": "sz", "parent": 465, "children": [], "start_point": {"row": 90, "column": 80}, "end_point": {"row": 90, "column": 82}}, {"id": 467, "type": "function_definition", "text": "void DelItem(SceItem* pi){\r\n vvector<SceItem*>::iterator fi = _items.findelement(pi);\r\n if(fi != _items.end()){_items.erase(fi);delete pi;}\r\n }", "parent": 53, "children": [468, 469], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 94, "column": 5}}, {"id": 468, "type": "primitive_type", "text": "void", "parent": 467, "children": [], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 91, "column": 8}}, {"id": 469, "type": "function_declarator", "text": "DelItem(SceItem* pi)", "parent": 467, "children": [470, 471], "start_point": {"row": 91, "column": 16}, "end_point": {"row": 91, "column": 36}}, {"id": 470, "type": "identifier", "text": "DelItem", "parent": 469, "children": [], "start_point": {"row": 91, "column": 16}, "end_point": {"row": 91, "column": 23}}, {"id": 471, "type": "parameter_list", "text": "(SceItem* pi)", "parent": 469, "children": [472], "start_point": {"row": 91, "column": 23}, "end_point": {"row": 91, "column": 36}}, {"id": 472, "type": "parameter_declaration", "text": "SceItem* pi", "parent": 471, "children": [473, 474], "start_point": {"row": 91, "column": 24}, "end_point": {"row": 91, "column": 35}}, {"id": 473, "type": "type_identifier", "text": "SceItem", "parent": 472, "children": [], "start_point": {"row": 91, "column": 24}, "end_point": {"row": 91, "column": 31}}, {"id": 474, "type": "pointer_declarator", "text": "* pi", "parent": 472, "children": [475, 476], "start_point": {"row": 91, "column": 31}, "end_point": {"row": 91, "column": 35}}, {"id": 475, "type": "*", "text": "*", "parent": 474, "children": [], "start_point": {"row": 91, "column": 31}, "end_point": {"row": 91, "column": 32}}, {"id": 476, "type": "identifier", "text": "pi", "parent": 474, "children": [], "start_point": {"row": 91, "column": 33}, "end_point": {"row": 91, "column": 35}}, {"id": 477, "type": "binary_expression", "text": "vvector<SceItem*>::iterator fi = _items.findelement(pi)", "parent": 467, "children": [478, 479, 480], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 63}}, {"id": 478, "type": "identifier", "text": "vvector", "parent": 477, "children": [], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 15}}, {"id": 479, "type": "<", "text": "<", "parent": 477, "children": [], "start_point": {"row": 92, "column": 15}, "end_point": {"row": 92, "column": 16}}, {"id": 480, "type": "binary_expression", "text": "SceItem*>::iterator fi = _items.findelement(pi)", "parent": 477, "children": [481, 482, 483, 486], "start_point": {"row": 92, "column": 16}, "end_point": {"row": 92, "column": 63}}, {"id": 481, "type": "identifier", "text": "SceItem", "parent": 480, "children": [], "start_point": {"row": 92, "column": 16}, "end_point": {"row": 92, "column": 23}}, {"id": 482, "type": "*", "text": "*", "parent": 480, "children": [], "start_point": {"row": 92, "column": 23}, "end_point": {"row": 92, "column": 24}}, {"id": 483, "type": "ERROR", "text": ">::iterator", "parent": 480, "children": [484, 485], "start_point": {"row": 92, "column": 24}, "end_point": {"row": 92, "column": 35}}, {"id": 484, "type": ">", "text": ">", "parent": 483, "children": [], "start_point": {"row": 92, "column": 24}, "end_point": {"row": 92, "column": 25}}, {"id": 485, "type": "identifier", "text": "iterator", "parent": 483, "children": [], "start_point": {"row": 92, "column": 27}, "end_point": {"row": 92, "column": 35}}, {"id": 486, "type": "assignment_expression", "text": "fi = _items.findelement(pi)", "parent": 480, "children": [487, 488, 489], "start_point": {"row": 92, "column": 36}, "end_point": {"row": 92, "column": 63}}, {"id": 487, "type": "identifier", "text": "fi", "parent": 486, "children": [], "start_point": {"row": 92, "column": 36}, "end_point": {"row": 92, "column": 38}}, {"id": 488, "type": "=", "text": "=", "parent": 486, "children": [], "start_point": {"row": 92, "column": 39}, "end_point": {"row": 92, "column": 40}}, {"id": 489, "type": "call_expression", "text": "_items.findelement(pi)", "parent": 486, "children": [490, 493], "start_point": {"row": 92, "column": 41}, "end_point": {"row": 92, "column": 63}}, {"id": 490, "type": "field_expression", "text": "_items.findelement", "parent": 489, "children": [491, 492], "start_point": {"row": 92, "column": 41}, "end_point": {"row": 92, "column": 59}}, {"id": 491, "type": "identifier", "text": "_items", "parent": 490, "children": [], "start_point": {"row": 92, "column": 41}, "end_point": {"row": 92, "column": 47}}, {"id": 492, "type": "field_identifier", "text": "findelement", "parent": 490, "children": [], "start_point": {"row": 92, "column": 48}, "end_point": {"row": 92, "column": 59}}, {"id": 493, "type": "argument_list", "text": "(pi)", "parent": 489, "children": [494], "start_point": {"row": 92, "column": 59}, "end_point": {"row": 92, "column": 63}}, {"id": 494, "type": "identifier", "text": "pi", "parent": 493, "children": [], "start_point": {"row": 92, "column": 60}, "end_point": {"row": 92, "column": 62}}, {"id": 495, "type": "if_statement", "text": "if(fi != _items.end()){_items.erase(fi);delete pi;}", "parent": 467, "children": [496], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 93, "column": 59}}, {"id": 496, "type": "parenthesized_expression", "text": "(fi != _items.end())", "parent": 495, "children": [497], "start_point": {"row": 93, "column": 10}, "end_point": {"row": 93, "column": 30}}, {"id": 497, "type": "binary_expression", "text": "fi != _items.end()", "parent": 496, "children": [498, 499, 500], "start_point": {"row": 93, "column": 11}, "end_point": {"row": 93, "column": 29}}, {"id": 498, "type": "identifier", "text": "fi", "parent": 497, "children": [], "start_point": {"row": 93, "column": 11}, "end_point": {"row": 93, "column": 13}}, {"id": 499, "type": "!=", "text": "!=", "parent": 497, "children": [], "start_point": {"row": 93, "column": 14}, "end_point": {"row": 93, "column": 16}}, {"id": 500, "type": "call_expression", "text": "_items.end()", "parent": 497, "children": [501, 503], "start_point": {"row": 93, "column": 17}, "end_point": {"row": 93, "column": 29}}, {"id": 501, "type": "field_expression", "text": "_items.end", "parent": 500, "children": [502], "start_point": {"row": 93, "column": 17}, "end_point": {"row": 93, "column": 27}}, {"id": 502, "type": "identifier", "text": "_items", "parent": 501, "children": [], "start_point": {"row": 93, "column": 17}, "end_point": {"row": 93, "column": 23}}, {"id": 503, "type": "argument_list", "text": "()", "parent": 500, "children": [], "start_point": {"row": 93, "column": 27}, "end_point": {"row": 93, "column": 29}}, {"id": 504, "type": "call_expression", "text": "_items.erase(fi)", "parent": 495, "children": [505, 508], "start_point": {"row": 93, "column": 31}, "end_point": {"row": 93, "column": 47}}, {"id": 505, "type": "field_expression", "text": "_items.erase", "parent": 504, "children": [506, 507], "start_point": {"row": 93, "column": 31}, "end_point": {"row": 93, "column": 43}}, {"id": 506, "type": "identifier", "text": "_items", "parent": 505, "children": [], "start_point": {"row": 93, "column": 31}, "end_point": {"row": 93, "column": 37}}, {"id": 507, "type": "field_identifier", "text": "erase", "parent": 505, "children": [], "start_point": {"row": 93, "column": 38}, "end_point": {"row": 93, "column": 43}}, {"id": 508, "type": "argument_list", "text": "(fi)", "parent": 504, "children": [509], "start_point": {"row": 93, "column": 43}, "end_point": {"row": 93, "column": 47}}, {"id": 509, "type": "identifier", "text": "fi", "parent": 508, "children": [], "start_point": {"row": 93, "column": 44}, "end_point": {"row": 93, "column": 46}}, {"id": 510, "type": "declaration", "text": "delete pi;", "parent": 495, "children": [511], "start_point": {"row": 93, "column": 48}, "end_point": {"row": 93, "column": 58}}, {"id": 511, "type": "identifier", "text": "pi", "parent": 510, "children": [], "start_point": {"row": 93, "column": 55}, "end_point": {"row": 93, "column": 57}}, {"id": 512, "type": "function_definition", "text": "SceItem* GetItem(int idx){return (idx < (int)_items.size()) ? _items[idx] : 0;}", "parent": 53, "children": [513, 514], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 84}}, {"id": 513, "type": "type_identifier", "text": "SceItem", "parent": 512, "children": [], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 11}}, {"id": 514, "type": "pointer_declarator", "text": "* GetItem(int idx)", "parent": 512, "children": [515, 516], "start_point": {"row": 95, "column": 11}, "end_point": {"row": 95, "column": 30}}, {"id": 515, "type": "*", "text": "*", "parent": 514, "children": [], "start_point": {"row": 95, "column": 11}, "end_point": {"row": 95, "column": 12}}, {"id": 516, "type": "function_declarator", "text": "GetItem(int idx)", "parent": 514, "children": [517, 518], "start_point": {"row": 95, "column": 14}, "end_point": {"row": 95, "column": 30}}, {"id": 517, "type": "identifier", "text": "GetItem", "parent": 516, "children": [], "start_point": {"row": 95, "column": 14}, "end_point": {"row": 95, "column": 21}}, {"id": 518, "type": "parameter_list", "text": "(int idx)", "parent": 516, "children": [519], "start_point": {"row": 95, "column": 21}, "end_point": {"row": 95, "column": 30}}, {"id": 519, "type": "parameter_declaration", "text": "int idx", "parent": 518, "children": [520, 521], "start_point": {"row": 95, "column": 22}, "end_point": {"row": 95, "column": 29}}, {"id": 520, "type": "primitive_type", "text": "int", "parent": 519, "children": [], "start_point": {"row": 95, "column": 22}, "end_point": {"row": 95, "column": 25}}, {"id": 521, "type": "identifier", "text": "idx", "parent": 519, "children": [], "start_point": {"row": 95, "column": 26}, "end_point": {"row": 95, "column": 29}}, {"id": 522, "type": "return_statement", "text": "return (idx < (int)_items.size()) ? _items[idx] : 0;", "parent": 512, "children": [523], "start_point": {"row": 95, "column": 31}, "end_point": {"row": 95, "column": 83}}, {"id": 523, "type": "conditional_expression", "text": "(idx < (int)_items.size()) ? _items[idx] : 0", "parent": 522, "children": [524, 536, 537, 540], "start_point": {"row": 95, "column": 38}, "end_point": {"row": 95, "column": 82}}, {"id": 524, "type": "parenthesized_expression", "text": "(idx < (int)_items.size())", "parent": 523, "children": [525], "start_point": {"row": 95, "column": 38}, "end_point": {"row": 95, "column": 64}}, {"id": 525, "type": "binary_expression", "text": "idx < (int)_items.size()", "parent": 524, "children": [526, 527, 528], "start_point": {"row": 95, "column": 39}, "end_point": {"row": 95, "column": 63}}, {"id": 526, "type": "identifier", "text": "idx", "parent": 525, "children": [], "start_point": {"row": 95, "column": 39}, "end_point": {"row": 95, "column": 42}}, {"id": 527, "type": "<", "text": "<", "parent": 525, "children": [], "start_point": {"row": 95, "column": 43}, "end_point": {"row": 95, "column": 44}}, {"id": 528, "type": "cast_expression", "text": "(int)_items.size()", "parent": 525, "children": [529, 531], "start_point": {"row": 95, "column": 45}, "end_point": {"row": 95, "column": 63}}, {"id": 529, "type": "type_descriptor", "text": "int", "parent": 528, "children": [530], "start_point": {"row": 95, "column": 46}, "end_point": {"row": 95, "column": 49}}, {"id": 530, "type": "primitive_type", "text": "int", "parent": 529, "children": [], "start_point": {"row": 95, "column": 46}, "end_point": {"row": 95, "column": 49}}, {"id": 531, "type": "call_expression", "text": "_items.size()", "parent": 528, "children": [532, 535], "start_point": {"row": 95, "column": 50}, "end_point": {"row": 95, "column": 63}}, {"id": 532, "type": "field_expression", "text": "_items.size", "parent": 531, "children": [533, 534], "start_point": {"row": 95, "column": 50}, "end_point": {"row": 95, "column": 61}}, {"id": 533, "type": "identifier", "text": "_items", "parent": 532, "children": [], "start_point": {"row": 95, "column": 50}, "end_point": {"row": 95, "column": 56}}, {"id": 534, "type": "field_identifier", "text": "size", "parent": 532, "children": [], "start_point": {"row": 95, "column": 57}, "end_point": {"row": 95, "column": 61}}, {"id": 535, "type": "argument_list", "text": "()", "parent": 531, "children": [], "start_point": {"row": 95, "column": 61}, "end_point": {"row": 95, "column": 63}}, {"id": 536, "type": "?", "text": "?", "parent": 523, "children": [], "start_point": {"row": 95, "column": 65}, "end_point": {"row": 95, "column": 66}}, {"id": 537, "type": "subscript_expression", "text": "_items[idx]", "parent": 523, "children": [538, 539], "start_point": {"row": 95, "column": 67}, "end_point": {"row": 95, "column": 78}}, {"id": 538, "type": "identifier", "text": "_items", "parent": 537, "children": [], "start_point": {"row": 95, "column": 67}, "end_point": {"row": 95, "column": 73}}, {"id": 539, "type": "identifier", "text": "idx", "parent": 537, "children": [], "start_point": {"row": 95, "column": 74}, "end_point": {"row": 95, "column": 77}}, {"id": 540, "type": "number_literal", "text": "0", "parent": 523, "children": [], "start_point": {"row": 95, "column": 81}, "end_point": {"row": 95, "column": 82}}, {"id": 541, "type": "binary_expression", "text": "vvector<SceItem*>* GetItems()", "parent": 53, "children": [542, 546, 548, 549], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 35}}, {"id": 542, "type": "binary_expression", "text": "vvector<SceItem", "parent": 541, "children": [543, 544, 545], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 19}}, {"id": 543, "type": "identifier", "text": "vvector", "parent": 542, "children": [], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 11}}, {"id": 544, "type": "<", "text": "<", "parent": 542, "children": [], "start_point": {"row": 96, "column": 11}, "end_point": {"row": 96, "column": 12}}, {"id": 545, "type": "identifier", "text": "SceItem", "parent": 542, "children": [], "start_point": {"row": 96, "column": 12}, "end_point": {"row": 96, "column": 19}}, {"id": 546, "type": "ERROR", "text": "*", "parent": 541, "children": [547], "start_point": {"row": 96, "column": 19}, "end_point": {"row": 96, "column": 20}}, {"id": 547, "type": "*", "text": "*", "parent": 546, "children": [], "start_point": {"row": 96, "column": 19}, "end_point": {"row": 96, "column": 20}}, {"id": 548, "type": ">", "text": ">", "parent": 541, "children": [], "start_point": {"row": 96, "column": 20}, "end_point": {"row": 96, "column": 21}}, {"id": 549, "type": "pointer_expression", "text": "* GetItems()", "parent": 541, "children": [550, 551], "start_point": {"row": 96, "column": 21}, "end_point": {"row": 96, "column": 35}}, {"id": 550, "type": "*", "text": "*", "parent": 549, "children": [], "start_point": {"row": 96, "column": 21}, "end_point": {"row": 96, "column": 22}}, {"id": 551, "type": "call_expression", "text": "GetItems()", "parent": 549, "children": [552, 553], "start_point": {"row": 96, "column": 25}, "end_point": {"row": 96, "column": 35}}, {"id": 552, "type": "identifier", "text": "GetItems", "parent": 551, "children": [], "start_point": {"row": 96, "column": 25}, "end_point": {"row": 96, "column": 33}}, {"id": 553, "type": "argument_list", "text": "()", "parent": 551, "children": [], "start_point": {"row": 96, "column": 33}, "end_point": {"row": 96, "column": 35}}, {"id": 554, "type": "return_statement", "text": "return &_items;", "parent": 53, "children": [555], "start_point": {"row": 96, "column": 36}, "end_point": {"row": 96, "column": 51}}, {"id": 555, "type": "pointer_expression", "text": "&_items", "parent": 554, "children": [556], "start_point": {"row": 96, "column": 43}, "end_point": {"row": 96, "column": 50}}, {"id": 556, "type": "identifier", "text": "_items", "parent": 555, "children": [], "start_point": {"row": 96, "column": 44}, "end_point": {"row": 96, "column": 50}}, {"id": 557, "type": "function_definition", "text": "SceItem* GetItemByID(int itemID){\r\n FOREACH(vvector<SceItem*>, _items, ppi){\r\n if((*ppi)->_id == itemID){\r\n return *ppi;\r\n }\r\n }\r\n return 0;\r\n }", "parent": 53, "children": [558, 559], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 104, "column": 5}}, {"id": 558, "type": "type_identifier", "text": "SceItem", "parent": 557, "children": [], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 11}}, {"id": 559, "type": "pointer_declarator", "text": "* GetItemByID(int itemID)", "parent": 557, "children": [560, 561], "start_point": {"row": 97, "column": 11}, "end_point": {"row": 97, "column": 37}}, {"id": 560, "type": "*", "text": "*", "parent": 559, "children": [], "start_point": {"row": 97, "column": 11}, "end_point": {"row": 97, "column": 12}}, {"id": 561, "type": "function_declarator", "text": "GetItemByID(int itemID)", "parent": 559, "children": [562, 563], "start_point": {"row": 97, "column": 14}, "end_point": {"row": 97, "column": 37}}, {"id": 562, "type": "identifier", "text": "GetItemByID", "parent": 561, "children": [], "start_point": {"row": 97, "column": 14}, "end_point": {"row": 97, "column": 25}}, {"id": 563, "type": "parameter_list", "text": "(int itemID)", "parent": 561, "children": [564], "start_point": {"row": 97, "column": 25}, "end_point": {"row": 97, "column": 37}}, {"id": 564, "type": "parameter_declaration", "text": "int itemID", "parent": 563, "children": [565, 566], "start_point": {"row": 97, "column": 26}, "end_point": {"row": 97, "column": 36}}, {"id": 565, "type": "primitive_type", "text": "int", "parent": 564, "children": [], "start_point": {"row": 97, "column": 26}, "end_point": {"row": 97, "column": 29}}, {"id": 566, "type": "identifier", "text": "itemID", "parent": 564, "children": [], "start_point": {"row": 97, "column": 30}, "end_point": {"row": 97, "column": 36}}, {"id": 567, "type": "call_expression", "text": "FOREACH(vvector<SceItem*>, _items, ppi)", "parent": 557, "children": [568, 569], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 47}}, {"id": 568, "type": "identifier", "text": "FOREACH", "parent": 567, "children": [], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 15}}, {"id": 569, "type": "argument_list", "text": "(vvector<SceItem*>, _items, ppi)", "parent": 567, "children": [570, 574, 577, 578], "start_point": {"row": 98, "column": 15}, "end_point": {"row": 98, "column": 47}}, {"id": 570, "type": "binary_expression", "text": "vvector<SceItem", "parent": 569, "children": [571, 572, 573], "start_point": {"row": 98, "column": 16}, "end_point": {"row": 98, "column": 31}}, {"id": 571, "type": "identifier", "text": "vvector", "parent": 570, "children": [], "start_point": {"row": 98, "column": 16}, "end_point": {"row": 98, "column": 23}}, {"id": 572, "type": "<", "text": "<", "parent": 570, "children": [], "start_point": {"row": 98, "column": 23}, "end_point": {"row": 98, "column": 24}}, {"id": 573, "type": "identifier", "text": "SceItem", "parent": 570, "children": [], "start_point": {"row": 98, "column": 24}, "end_point": {"row": 98, "column": 31}}, {"id": 574, "type": "ERROR", "text": "*>", "parent": 569, "children": [575, 576], "start_point": {"row": 98, "column": 31}, "end_point": {"row": 98, "column": 33}}, {"id": 575, "type": "*", "text": "*", "parent": 574, "children": [], "start_point": {"row": 98, "column": 31}, "end_point": {"row": 98, "column": 32}}, {"id": 576, "type": ">", "text": ">", "parent": 574, "children": [], "start_point": {"row": 98, "column": 32}, "end_point": {"row": 98, "column": 33}}, {"id": 577, "type": "identifier", "text": "_items", "parent": 569, "children": [], "start_point": {"row": 98, "column": 35}, "end_point": {"row": 98, "column": 41}}, {"id": 578, "type": "identifier", "text": "ppi", "parent": 569, "children": [], "start_point": {"row": 98, "column": 43}, "end_point": {"row": 98, "column": 46}}, {"id": 579, "type": "if_statement", "text": "if((*ppi)->_id == itemID){\r\n return *ppi;\r\n }", "parent": 557, "children": [580], "start_point": {"row": 99, "column": 12}, "end_point": {"row": 101, "column": 13}}, {"id": 580, "type": "parenthesized_expression", "text": "((*ppi)->_id == itemID)", "parent": 579, "children": [581], "start_point": {"row": 99, "column": 14}, "end_point": {"row": 99, "column": 37}}, {"id": 581, "type": "binary_expression", "text": "(*ppi)->_id == itemID", "parent": 580, "children": [582, 588, 589], "start_point": {"row": 99, "column": 15}, "end_point": {"row": 99, "column": 36}}, {"id": 582, "type": "field_expression", "text": "(*ppi)->_id", "parent": 581, "children": [583, 587], "start_point": {"row": 99, "column": 15}, "end_point": {"row": 99, "column": 26}}, {"id": 583, "type": "parenthesized_expression", "text": "(*ppi)", "parent": 582, "children": [584], "start_point": {"row": 99, "column": 15}, "end_point": {"row": 99, "column": 21}}, {"id": 584, "type": "pointer_expression", "text": "*ppi", "parent": 583, "children": [585, 586], "start_point": {"row": 99, "column": 16}, "end_point": {"row": 99, "column": 20}}, {"id": 585, "type": "*", "text": "*", "parent": 584, "children": [], "start_point": {"row": 99, "column": 16}, "end_point": {"row": 99, "column": 17}}, {"id": 586, "type": "identifier", "text": "ppi", "parent": 584, "children": [], "start_point": {"row": 99, "column": 17}, "end_point": {"row": 99, "column": 20}}, {"id": 587, "type": "field_identifier", "text": "_id", "parent": 582, "children": [], "start_point": {"row": 99, "column": 23}, "end_point": {"row": 99, "column": 26}}, {"id": 588, "type": "==", "text": "==", "parent": 581, "children": [], "start_point": {"row": 99, "column": 27}, "end_point": {"row": 99, "column": 29}}, {"id": 589, "type": "identifier", "text": "itemID", "parent": 581, "children": [], "start_point": {"row": 99, "column": 30}, "end_point": {"row": 99, "column": 36}}, {"id": 590, "type": "return_statement", "text": "return *ppi;", "parent": 579, "children": [591], "start_point": {"row": 100, "column": 16}, "end_point": {"row": 100, "column": 28}}, {"id": 591, "type": "pointer_expression", "text": "*ppi", "parent": 590, "children": [592, 593], "start_point": {"row": 100, "column": 23}, "end_point": {"row": 100, "column": 27}}, {"id": 592, "type": "*", "text": "*", "parent": 591, "children": [], "start_point": {"row": 100, "column": 23}, "end_point": {"row": 100, "column": 24}}, {"id": 593, "type": "identifier", "text": "ppi", "parent": 591, "children": [], "start_point": {"row": 100, "column": 24}, "end_point": {"row": 100, "column": 27}}, {"id": 594, "type": "return_statement", "text": "return 0;", "parent": 557, "children": [595], "start_point": {"row": 103, "column": 8}, "end_point": {"row": 103, "column": 17}}, {"id": 595, "type": "number_literal", "text": "0", "parent": 594, "children": [], "start_point": {"row": 103, "column": 15}, "end_point": {"row": 103, "column": 16}}, {"id": 596, "type": "function_definition", "text": "int GetItemsByType(SceItem** ppArray, size_t type, int imax)\r\n {\r\n int retval = 0;\r\n FOREACH(vvector<SceItem*>, _items, ppi){\r\n if((*ppi)->_item==ITM_LIGTBULB){\r\n ppArray[retval++] = (*ppi);\r\n if(retval >= imax) \r\n break;\r\n }\r\n }\r\n return retval;\r\n }", "parent": 53, "children": [597, 598], "start_point": {"row": 106, "column": 3}, "end_point": {"row": 117, "column": 4}}, {"id": 597, "type": "primitive_type", "text": "int", "parent": 596, "children": [], "start_point": {"row": 106, "column": 3}, "end_point": {"row": 106, "column": 6}}, {"id": 598, "type": "function_declarator", "text": "GetItemsByType(SceItem** ppArray, size_t type, int imax)", "parent": 596, "children": [599, 600], "start_point": {"row": 106, "column": 7}, "end_point": {"row": 106, "column": 63}}, {"id": 599, "type": "identifier", "text": "GetItemsByType", "parent": 598, "children": [], "start_point": {"row": 106, "column": 7}, "end_point": {"row": 106, "column": 21}}, {"id": 600, "type": "parameter_list", "text": "(SceItem** ppArray, size_t type, int imax)", "parent": 598, "children": [601, 608, 611], "start_point": {"row": 106, "column": 21}, "end_point": {"row": 106, "column": 63}}, {"id": 601, "type": "parameter_declaration", "text": "SceItem** ppArray", "parent": 600, "children": [602, 603], "start_point": {"row": 106, "column": 22}, "end_point": {"row": 106, "column": 39}}, {"id": 602, "type": "type_identifier", "text": "SceItem", "parent": 601, "children": [], "start_point": {"row": 106, "column": 22}, "end_point": {"row": 106, "column": 29}}, {"id": 603, "type": "pointer_declarator", "text": "** ppArray", "parent": 601, "children": [604, 605], "start_point": {"row": 106, "column": 29}, "end_point": {"row": 106, "column": 39}}, {"id": 604, "type": "*", "text": "*", "parent": 603, "children": [], "start_point": {"row": 106, "column": 29}, "end_point": {"row": 106, "column": 30}}, {"id": 605, "type": "pointer_declarator", "text": "* ppArray", "parent": 603, "children": [606, 607], "start_point": {"row": 106, "column": 30}, "end_point": {"row": 106, "column": 39}}, {"id": 606, "type": "*", "text": "*", "parent": 605, "children": [], "start_point": {"row": 106, "column": 30}, "end_point": {"row": 106, "column": 31}}, {"id": 607, "type": "identifier", "text": "ppArray", "parent": 605, "children": [], "start_point": {"row": 106, "column": 32}, "end_point": {"row": 106, "column": 39}}, {"id": 608, "type": "parameter_declaration", "text": "size_t type", "parent": 600, "children": [609, 610], "start_point": {"row": 106, "column": 41}, "end_point": {"row": 106, "column": 52}}, {"id": 609, "type": "primitive_type", "text": "size_t", "parent": 608, "children": [], "start_point": {"row": 106, "column": 41}, "end_point": {"row": 106, "column": 47}}, {"id": 610, "type": "identifier", "text": "type", "parent": 608, "children": [], "start_point": {"row": 106, "column": 48}, "end_point": {"row": 106, "column": 52}}, {"id": 611, "type": "parameter_declaration", "text": "int imax", "parent": 600, "children": [612, 613], "start_point": {"row": 106, "column": 54}, "end_point": {"row": 106, "column": 62}}, {"id": 612, "type": "primitive_type", "text": "int", "parent": 611, "children": [], "start_point": {"row": 106, "column": 54}, "end_point": {"row": 106, "column": 57}}, {"id": 613, "type": "identifier", "text": "imax", "parent": 611, "children": [], "start_point": {"row": 106, "column": 58}, "end_point": {"row": 106, "column": 62}}, {"id": 614, "type": "declaration", "text": "int retval = 0;", "parent": 596, "children": [615, 616], "start_point": {"row": 108, "column": 7}, "end_point": {"row": 108, "column": 22}}, {"id": 615, "type": "primitive_type", "text": "int", "parent": 614, "children": [], "start_point": {"row": 108, "column": 7}, "end_point": {"row": 108, "column": 10}}, {"id": 616, "type": "init_declarator", "text": "retval = 0", "parent": 614, "children": [617, 618, 619], "start_point": {"row": 108, "column": 11}, "end_point": {"row": 108, "column": 21}}, {"id": 617, "type": "identifier", "text": "retval", "parent": 616, "children": [], "start_point": {"row": 108, "column": 11}, "end_point": {"row": 108, "column": 17}}, {"id": 618, "type": "=", "text": "=", "parent": 616, "children": [], "start_point": {"row": 108, "column": 18}, "end_point": {"row": 108, "column": 19}}, {"id": 619, "type": "number_literal", "text": "0", "parent": 616, "children": [], "start_point": {"row": 108, "column": 20}, "end_point": {"row": 108, "column": 21}}, {"id": 620, "type": "call_expression", "text": "FOREACH(vvector<SceItem*>, _items, ppi)", "parent": 596, "children": [621, 622], "start_point": {"row": 109, "column": 8}, "end_point": {"row": 109, "column": 47}}, {"id": 621, "type": "identifier", "text": "FOREACH", "parent": 620, "children": [], "start_point": {"row": 109, "column": 8}, "end_point": {"row": 109, "column": 15}}, {"id": 622, "type": "argument_list", "text": "(vvector<SceItem*>, _items, ppi)", "parent": 620, "children": [623, 627, 630, 631], "start_point": {"row": 109, "column": 15}, "end_point": {"row": 109, "column": 47}}, {"id": 623, "type": "binary_expression", "text": "vvector<SceItem", "parent": 622, "children": [624, 625, 626], "start_point": {"row": 109, "column": 16}, "end_point": {"row": 109, "column": 31}}, {"id": 624, "type": "identifier", "text": "vvector", "parent": 623, "children": [], "start_point": {"row": 109, "column": 16}, "end_point": {"row": 109, "column": 23}}, {"id": 625, "type": "<", "text": "<", "parent": 623, "children": [], "start_point": {"row": 109, "column": 23}, "end_point": {"row": 109, "column": 24}}, {"id": 626, "type": "identifier", "text": "SceItem", "parent": 623, "children": [], "start_point": {"row": 109, "column": 24}, "end_point": {"row": 109, "column": 31}}, {"id": 627, "type": "ERROR", "text": "*>", "parent": 622, "children": [628, 629], "start_point": {"row": 109, "column": 31}, "end_point": {"row": 109, "column": 33}}, {"id": 628, "type": "*", "text": "*", "parent": 627, "children": [], "start_point": {"row": 109, "column": 31}, "end_point": {"row": 109, "column": 32}}, {"id": 629, "type": ">", "text": ">", "parent": 627, "children": [], "start_point": {"row": 109, "column": 32}, "end_point": {"row": 109, "column": 33}}, {"id": 630, "type": "identifier", "text": "_items", "parent": 622, "children": [], "start_point": {"row": 109, "column": 35}, "end_point": {"row": 109, "column": 41}}, {"id": 631, "type": "identifier", "text": "ppi", "parent": 622, "children": [], "start_point": {"row": 109, "column": 43}, "end_point": {"row": 109, "column": 46}}, {"id": 632, "type": "if_statement", "text": "if((*ppi)->_item==ITM_LIGTBULB){\r\n ppArray[retval++] = (*ppi);\r\n if(retval >= imax) \r\n break;\r\n }", "parent": 596, "children": [633], "start_point": {"row": 110, "column": 12}, "end_point": {"row": 114, "column": 13}}, {"id": 633, "type": "parenthesized_expression", "text": "((*ppi)->_item==ITM_LIGTBULB)", "parent": 632, "children": [634], "start_point": {"row": 110, "column": 14}, "end_point": {"row": 110, "column": 43}}, {"id": 634, "type": "binary_expression", "text": "(*ppi)->_item==ITM_LIGTBULB", "parent": 633, "children": [635, 641, 642], "start_point": {"row": 110, "column": 15}, "end_point": {"row": 110, "column": 42}}, {"id": 635, "type": "field_expression", "text": "(*ppi)->_item", "parent": 634, "children": [636, 640], "start_point": {"row": 110, "column": 15}, "end_point": {"row": 110, "column": 28}}, {"id": 636, "type": "parenthesized_expression", "text": "(*ppi)", "parent": 635, "children": [637], "start_point": {"row": 110, "column": 15}, "end_point": {"row": 110, "column": 21}}, {"id": 637, "type": "pointer_expression", "text": "*ppi", "parent": 636, "children": [638, 639], "start_point": {"row": 110, "column": 16}, "end_point": {"row": 110, "column": 20}}, {"id": 638, "type": "*", "text": "*", "parent": 637, "children": [], "start_point": {"row": 110, "column": 16}, "end_point": {"row": 110, "column": 17}}, {"id": 639, "type": "identifier", "text": "ppi", "parent": 637, "children": [], "start_point": {"row": 110, "column": 17}, "end_point": {"row": 110, "column": 20}}, {"id": 640, "type": "field_identifier", "text": "_item", "parent": 635, "children": [], "start_point": {"row": 110, "column": 23}, "end_point": {"row": 110, "column": 28}}, {"id": 641, "type": "==", "text": "==", "parent": 634, "children": [], "start_point": {"row": 110, "column": 28}, "end_point": {"row": 110, "column": 30}}, {"id": 642, "type": "identifier", "text": "ITM_LIGTBULB", "parent": 634, "children": [], "start_point": {"row": 110, "column": 30}, "end_point": {"row": 110, "column": 42}}, {"id": 643, "type": "assignment_expression", "text": "ppArray[retval++] = (*ppi)", "parent": 632, "children": [644, 649, 650], "start_point": {"row": 111, "column": 16}, "end_point": {"row": 111, "column": 42}}, {"id": 644, "type": "subscript_expression", "text": "ppArray[retval++]", "parent": 643, "children": [645, 646], "start_point": {"row": 111, "column": 16}, "end_point": {"row": 111, "column": 33}}, {"id": 645, "type": "identifier", "text": "ppArray", "parent": 644, "children": [], "start_point": {"row": 111, "column": 16}, "end_point": {"row": 111, "column": 23}}, {"id": 646, "type": "update_expression", "text": "retval++", "parent": 644, "children": [647, 648], "start_point": {"row": 111, "column": 24}, "end_point": {"row": 111, "column": 32}}, {"id": 647, "type": "identifier", "text": "retval", "parent": 646, "children": [], "start_point": {"row": 111, "column": 24}, "end_point": {"row": 111, "column": 30}}, {"id": 648, "type": "++", "text": "++", "parent": 646, "children": [], "start_point": {"row": 111, "column": 30}, "end_point": {"row": 111, "column": 32}}, {"id": 649, "type": "=", "text": "=", "parent": 643, "children": [], "start_point": {"row": 111, "column": 34}, "end_point": {"row": 111, "column": 35}}, {"id": 650, "type": "parenthesized_expression", "text": "(*ppi)", "parent": 643, "children": [651], "start_point": {"row": 111, "column": 36}, "end_point": {"row": 111, "column": 42}}, {"id": 651, "type": "pointer_expression", "text": "*ppi", "parent": 650, "children": [652, 653], "start_point": {"row": 111, "column": 37}, "end_point": {"row": 111, "column": 41}}, {"id": 652, "type": "*", "text": "*", "parent": 651, "children": [], "start_point": {"row": 111, "column": 37}, "end_point": {"row": 111, "column": 38}}, {"id": 653, "type": "identifier", "text": "ppi", "parent": 651, "children": [], "start_point": {"row": 111, "column": 38}, "end_point": {"row": 111, "column": 41}}, {"id": 654, "type": "if_statement", "text": "if(retval >= imax) \r\n break;", "parent": 632, "children": [655, 660], "start_point": {"row": 112, "column": 16}, "end_point": {"row": 113, "column": 26}}, {"id": 655, "type": "parenthesized_expression", "text": "(retval >= imax)", "parent": 654, "children": [656], "start_point": {"row": 112, "column": 18}, "end_point": {"row": 112, "column": 34}}, {"id": 656, "type": "binary_expression", "text": "retval >= imax", "parent": 655, "children": [657, 658, 659], "start_point": {"row": 112, "column": 19}, "end_point": {"row": 112, "column": 33}}, {"id": 657, "type": "identifier", "text": "retval", "parent": 656, "children": [], "start_point": {"row": 112, "column": 19}, "end_point": {"row": 112, "column": 25}}, {"id": 658, "type": ">=", "text": ">=", "parent": 656, "children": [], "start_point": {"row": 112, "column": 26}, "end_point": {"row": 112, "column": 28}}, {"id": 659, "type": "identifier", "text": "imax", "parent": 656, "children": [], "start_point": {"row": 112, "column": 29}, "end_point": {"row": 112, "column": 33}}, {"id": 660, "type": "break_statement", "text": "break;", "parent": 654, "children": [661], "start_point": {"row": 113, "column": 20}, "end_point": {"row": 113, "column": 26}}, {"id": 661, "type": "break", "text": "break", "parent": 660, "children": [], "start_point": {"row": 113, "column": 20}, "end_point": {"row": 113, "column": 25}}, {"id": 662, "type": "return_statement", "text": "return retval;", "parent": 596, "children": [663], "start_point": {"row": 116, "column": 8}, "end_point": {"row": 116, "column": 22}}, {"id": 663, "type": "identifier", "text": "retval", "parent": 662, "children": [], "start_point": {"row": 116, "column": 15}, "end_point": {"row": 116, "column": 21}}, {"id": 664, "type": "function_definition", "text": "SceItem* GetItemByPtr(size_t itemPtr){\r\n FOREACH(vvector<SceItem*>, _items, ppi){\r\n if((size_t)(*ppi) == itemPtr){\r\n return *ppi;\r\n }\r\n }\r\n return 0;\r\n }", "parent": 53, "children": [665, 666], "start_point": {"row": 119, "column": 3}, "end_point": {"row": 126, "column": 5}}, {"id": 665, "type": "type_identifier", "text": "SceItem", "parent": 664, "children": [], "start_point": {"row": 119, "column": 3}, "end_point": {"row": 119, "column": 10}}, {"id": 666, "type": "pointer_declarator", "text": "* GetItemByPtr(size_t itemPtr)", "parent": 664, "children": [667, 668], "start_point": {"row": 119, "column": 10}, "end_point": {"row": 119, "column": 41}}, {"id": 667, "type": "*", "text": "*", "parent": 666, "children": [], "start_point": {"row": 119, "column": 10}, "end_point": {"row": 119, "column": 11}}, {"id": 668, "type": "function_declarator", "text": "GetItemByPtr(size_t itemPtr)", "parent": 666, "children": [669, 670], "start_point": {"row": 119, "column": 13}, "end_point": {"row": 119, "column": 41}}, {"id": 669, "type": "identifier", "text": "GetItemByPtr", "parent": 668, "children": [], "start_point": {"row": 119, "column": 13}, "end_point": {"row": 119, "column": 25}}, {"id": 670, "type": "parameter_list", "text": "(size_t itemPtr)", "parent": 668, "children": [671], "start_point": {"row": 119, "column": 25}, "end_point": {"row": 119, "column": 41}}, {"id": 671, "type": "parameter_declaration", "text": "size_t itemPtr", "parent": 670, "children": [672, 673], "start_point": {"row": 119, "column": 26}, "end_point": {"row": 119, "column": 40}}, {"id": 672, "type": "primitive_type", "text": "size_t", "parent": 671, "children": [], "start_point": {"row": 119, "column": 26}, "end_point": {"row": 119, "column": 32}}, {"id": 673, "type": "identifier", "text": "itemPtr", "parent": 671, "children": [], "start_point": {"row": 119, "column": 33}, "end_point": {"row": 119, "column": 40}}, {"id": 674, "type": "call_expression", "text": "FOREACH(vvector<SceItem*>, _items, ppi)", "parent": 664, "children": [675, 676], "start_point": {"row": 120, "column": 8}, "end_point": {"row": 120, "column": 47}}, {"id": 675, "type": "identifier", "text": "FOREACH", "parent": 674, "children": [], "start_point": {"row": 120, "column": 8}, "end_point": {"row": 120, "column": 15}}, {"id": 676, "type": "argument_list", "text": "(vvector<SceItem*>, _items, ppi)", "parent": 674, "children": [677, 681, 684, 685], "start_point": {"row": 120, "column": 15}, "end_point": {"row": 120, "column": 47}}, {"id": 677, "type": "binary_expression", "text": "vvector<SceItem", "parent": 676, "children": [678, 679, 680], "start_point": {"row": 120, "column": 16}, "end_point": {"row": 120, "column": 31}}, {"id": 678, "type": "identifier", "text": "vvector", "parent": 677, "children": [], "start_point": {"row": 120, "column": 16}, "end_point": {"row": 120, "column": 23}}, {"id": 679, "type": "<", "text": "<", "parent": 677, "children": [], "start_point": {"row": 120, "column": 23}, "end_point": {"row": 120, "column": 24}}, {"id": 680, "type": "identifier", "text": "SceItem", "parent": 677, "children": [], "start_point": {"row": 120, "column": 24}, "end_point": {"row": 120, "column": 31}}, {"id": 681, "type": "ERROR", "text": "*>", "parent": 676, "children": [682, 683], "start_point": {"row": 120, "column": 31}, "end_point": {"row": 120, "column": 33}}, {"id": 682, "type": "*", "text": "*", "parent": 681, "children": [], "start_point": {"row": 120, "column": 31}, "end_point": {"row": 120, "column": 32}}, {"id": 683, "type": ">", "text": ">", "parent": 681, "children": [], "start_point": {"row": 120, "column": 32}, "end_point": {"row": 120, "column": 33}}, {"id": 684, "type": "identifier", "text": "_items", "parent": 676, "children": [], "start_point": {"row": 120, "column": 35}, "end_point": {"row": 120, "column": 41}}, {"id": 685, "type": "identifier", "text": "ppi", "parent": 676, "children": [], "start_point": {"row": 120, "column": 43}, "end_point": {"row": 120, "column": 46}}, {"id": 686, "type": "if_statement", "text": "if((size_t)(*ppi) == itemPtr){\r\n return *ppi;\r\n }", "parent": 664, "children": [687], "start_point": {"row": 121, "column": 12}, "end_point": {"row": 123, "column": 13}}, {"id": 687, "type": "parenthesized_expression", "text": "((size_t)(*ppi) == itemPtr)", "parent": 686, "children": [688], "start_point": {"row": 121, "column": 14}, "end_point": {"row": 121, "column": 41}}, {"id": 688, "type": "binary_expression", "text": "(size_t)(*ppi) == itemPtr", "parent": 687, "children": [689, 696, 697], "start_point": {"row": 121, "column": 15}, "end_point": {"row": 121, "column": 40}}, {"id": 689, "type": "cast_expression", "text": "(size_t)(*ppi)", "parent": 688, "children": [690, 692], "start_point": {"row": 121, "column": 15}, "end_point": {"row": 121, "column": 29}}, {"id": 690, "type": "type_descriptor", "text": "size_t", "parent": 689, "children": [691], "start_point": {"row": 121, "column": 16}, "end_point": {"row": 121, "column": 22}}, {"id": 691, "type": "primitive_type", "text": "size_t", "parent": 690, "children": [], "start_point": {"row": 121, "column": 16}, "end_point": {"row": 121, "column": 22}}, {"id": 692, "type": "parenthesized_expression", "text": "(*ppi)", "parent": 689, "children": [693], "start_point": {"row": 121, "column": 23}, "end_point": {"row": 121, "column": 29}}, {"id": 693, "type": "pointer_expression", "text": "*ppi", "parent": 692, "children": [694, 695], "start_point": {"row": 121, "column": 24}, "end_point": {"row": 121, "column": 28}}, {"id": 694, "type": "*", "text": "*", "parent": 693, "children": [], "start_point": {"row": 121, "column": 24}, "end_point": {"row": 121, "column": 25}}, {"id": 695, "type": "identifier", "text": "ppi", "parent": 693, "children": [], "start_point": {"row": 121, "column": 25}, "end_point": {"row": 121, "column": 28}}, {"id": 696, "type": "==", "text": "==", "parent": 688, "children": [], "start_point": {"row": 121, "column": 30}, "end_point": {"row": 121, "column": 32}}, {"id": 697, "type": "identifier", "text": "itemPtr", "parent": 688, "children": [], "start_point": {"row": 121, "column": 33}, "end_point": {"row": 121, "column": 40}}, {"id": 698, "type": "return_statement", "text": "return *ppi;", "parent": 686, "children": [699], "start_point": {"row": 122, "column": 16}, "end_point": {"row": 122, "column": 28}}, {"id": 699, "type": "pointer_expression", "text": "*ppi", "parent": 698, "children": [700, 701], "start_point": {"row": 122, "column": 23}, "end_point": {"row": 122, "column": 27}}, {"id": 700, "type": "*", "text": "*", "parent": 699, "children": [], "start_point": {"row": 122, "column": 23}, "end_point": {"row": 122, "column": 24}}, {"id": 701, "type": "identifier", "text": "ppi", "parent": 699, "children": [], "start_point": {"row": 122, "column": 24}, "end_point": {"row": 122, "column": 27}}, {"id": 702, "type": "return_statement", "text": "return 0;", "parent": 664, "children": [703], "start_point": {"row": 125, "column": 8}, "end_point": {"row": 125, "column": 17}}, {"id": 703, "type": "number_literal", "text": "0", "parent": 702, "children": [], "start_point": {"row": 125, "column": 15}, "end_point": {"row": 125, "column": 16}}, {"id": 704, "type": "function_definition", "text": "long GetIndex(SceItem* pi)\r\n {\r\n return _items.getindex(pi);\r\n }", "parent": 53, "children": [705, 707], "start_point": {"row": 128, "column": 3}, "end_point": {"row": 131, "column": 4}}, {"id": 705, "type": "sized_type_specifier", "text": "long", "parent": 704, "children": [706], "start_point": {"row": 128, "column": 3}, "end_point": {"row": 128, "column": 7}}, {"id": 706, "type": "long", "text": "long", "parent": 705, "children": [], "start_point": {"row": 128, "column": 3}, "end_point": {"row": 128, "column": 7}}, {"id": 707, "type": "function_declarator", "text": "GetIndex(SceItem* pi)", "parent": 704, "children": [708, 709], "start_point": {"row": 128, "column": 11}, "end_point": {"row": 128, "column": 32}}, {"id": 708, "type": "identifier", "text": "GetIndex", "parent": 707, "children": [], "start_point": {"row": 128, "column": 11}, "end_point": {"row": 128, "column": 19}}, {"id": 709, "type": "parameter_list", "text": "(SceItem* pi)", "parent": 707, "children": [710], "start_point": {"row": 128, "column": 19}, "end_point": {"row": 128, "column": 32}}, {"id": 710, "type": "parameter_declaration", "text": "SceItem* pi", "parent": 709, "children": [711, 712], "start_point": {"row": 128, "column": 20}, "end_point": {"row": 128, "column": 31}}, {"id": 711, "type": "type_identifier", "text": "SceItem", "parent": 710, "children": [], "start_point": {"row": 128, "column": 20}, "end_point": {"row": 128, "column": 27}}, {"id": 712, "type": "pointer_declarator", "text": "* pi", "parent": 710, "children": [713, 714], "start_point": {"row": 128, "column": 27}, "end_point": {"row": 128, "column": 31}}, {"id": 713, "type": "*", "text": "*", "parent": 712, "children": [], "start_point": {"row": 128, "column": 27}, "end_point": {"row": 128, "column": 28}}, {"id": 714, "type": "identifier", "text": "pi", "parent": 712, "children": [], "start_point": {"row": 128, "column": 29}, "end_point": {"row": 128, "column": 31}}, {"id": 715, "type": "return_statement", "text": "return _items.getindex(pi);", "parent": 704, "children": [716], "start_point": {"row": 130, "column": 7}, "end_point": {"row": 130, "column": 34}}, {"id": 716, "type": "call_expression", "text": "_items.getindex(pi)", "parent": 715, "children": [717, 720], "start_point": {"row": 130, "column": 14}, "end_point": {"row": 130, "column": 33}}, {"id": 717, "type": "field_expression", "text": "_items.getindex", "parent": 716, "children": [718, 719], "start_point": {"row": 130, "column": 14}, "end_point": {"row": 130, "column": 29}}, {"id": 718, "type": "identifier", "text": "_items", "parent": 717, "children": [], "start_point": {"row": 130, "column": 14}, "end_point": {"row": 130, "column": 20}}, {"id": 719, "type": "field_identifier", "text": "getindex", "parent": 717, "children": [], "start_point": {"row": 130, "column": 21}, "end_point": {"row": 130, "column": 29}}, {"id": 720, "type": "argument_list", "text": "(pi)", "parent": 716, "children": [721], "start_point": {"row": 130, "column": 29}, "end_point": {"row": 130, "column": 33}}, {"id": 721, "type": "identifier", "text": "pi", "parent": 720, "children": [], "start_point": {"row": 130, "column": 30}, "end_point": {"row": 130, "column": 32}}, {"id": 722, "type": "function_definition", "text": "long\tGetIndex(CMotion* pi)\r\n\t{\r\n return _motions.getindex(pi);\r\n\t}", "parent": 53, "children": [723, 725], "start_point": {"row": 134, "column": 1}, "end_point": {"row": 137, "column": 2}}, {"id": 723, "type": "sized_type_specifier", "text": "long", "parent": 722, "children": [724], "start_point": {"row": 134, "column": 1}, "end_point": {"row": 134, "column": 5}}, {"id": 724, "type": "long", "text": "long", "parent": 723, "children": [], "start_point": {"row": 134, "column": 1}, "end_point": {"row": 134, "column": 5}}, {"id": 725, "type": "function_declarator", "text": "GetIndex(CMotion* pi)", "parent": 722, "children": [726, 727], "start_point": {"row": 134, "column": 6}, "end_point": {"row": 134, "column": 27}}, {"id": 726, "type": "identifier", "text": "GetIndex", "parent": 725, "children": [], "start_point": {"row": 134, "column": 6}, "end_point": {"row": 134, "column": 14}}, {"id": 727, "type": "parameter_list", "text": "(CMotion* pi)", "parent": 725, "children": [728], "start_point": {"row": 134, "column": 14}, "end_point": {"row": 134, "column": 27}}, {"id": 728, "type": "parameter_declaration", "text": "CMotion* pi", "parent": 727, "children": [729, 730], "start_point": {"row": 134, "column": 15}, "end_point": {"row": 134, "column": 26}}, {"id": 729, "type": "type_identifier", "text": "CMotion", "parent": 728, "children": [], "start_point": {"row": 134, "column": 15}, "end_point": {"row": 134, "column": 22}}, {"id": 730, "type": "pointer_declarator", "text": "* pi", "parent": 728, "children": [731, 732], "start_point": {"row": 134, "column": 22}, "end_point": {"row": 134, "column": 26}}, {"id": 731, "type": "*", "text": "*", "parent": 730, "children": [], "start_point": {"row": 134, "column": 22}, "end_point": {"row": 134, "column": 23}}, {"id": 732, "type": "identifier", "text": "pi", "parent": 730, "children": [], "start_point": {"row": 134, "column": 24}, "end_point": {"row": 134, "column": 26}}, {"id": 733, "type": "return_statement", "text": "return _motions.getindex(pi);", "parent": 722, "children": [734], "start_point": {"row": 136, "column": 8}, "end_point": {"row": 136, "column": 37}}, {"id": 734, "type": "call_expression", "text": "_motions.getindex(pi)", "parent": 733, "children": [735, 738], "start_point": {"row": 136, "column": 15}, "end_point": {"row": 136, "column": 36}}, {"id": 735, "type": "field_expression", "text": "_motions.getindex", "parent": 734, "children": [736, 737], "start_point": {"row": 136, "column": 15}, "end_point": {"row": 136, "column": 32}}, {"id": 736, "type": "identifier", "text": "_motions", "parent": 735, "children": [], "start_point": {"row": 136, "column": 15}, "end_point": {"row": 136, "column": 23}}, {"id": 737, "type": "field_identifier", "text": "getindex", "parent": 735, "children": [], "start_point": {"row": 136, "column": 24}, "end_point": {"row": 136, "column": 32}}, {"id": 738, "type": "argument_list", "text": "(pi)", "parent": 734, "children": [739], "start_point": {"row": 136, "column": 32}, "end_point": {"row": 136, "column": 36}}, {"id": 739, "type": "identifier", "text": "pi", "parent": 738, "children": [], "start_point": {"row": 136, "column": 33}, "end_point": {"row": 136, "column": 35}}, {"id": 740, "type": "function_definition", "text": "int AddMotion(CMotion* pi)\r\n {\r\n int sz = _items.size();\r\n _motions << pi;\r\n return sz;\r\n }", "parent": 53, "children": [741, 742], "start_point": {"row": 140, "column": 4}, "end_point": {"row": 145, "column": 5}}, {"id": 741, "type": "primitive_type", "text": "int", "parent": 740, "children": [], "start_point": {"row": 140, "column": 4}, "end_point": {"row": 140, "column": 7}}, {"id": 742, "type": "function_declarator", "text": "AddMotion(CMotion* pi)", "parent": 740, "children": [743, 744], "start_point": {"row": 140, "column": 8}, "end_point": {"row": 140, "column": 30}}, {"id": 743, "type": "identifier", "text": "AddMotion", "parent": 742, "children": [], "start_point": {"row": 140, "column": 8}, "end_point": {"row": 140, "column": 17}}, {"id": 744, "type": "parameter_list", "text": "(CMotion* pi)", "parent": 742, "children": [745], "start_point": {"row": 140, "column": 17}, "end_point": {"row": 140, "column": 30}}, {"id": 745, "type": "parameter_declaration", "text": "CMotion* pi", "parent": 744, "children": [746, 747], "start_point": {"row": 140, "column": 18}, "end_point": {"row": 140, "column": 29}}, {"id": 746, "type": "type_identifier", "text": "CMotion", "parent": 745, "children": [], "start_point": {"row": 140, "column": 18}, "end_point": {"row": 140, "column": 25}}, {"id": 747, "type": "pointer_declarator", "text": "* pi", "parent": 745, "children": [748, 749], "start_point": {"row": 140, "column": 25}, "end_point": {"row": 140, "column": 29}}, {"id": 748, "type": "*", "text": "*", "parent": 747, "children": [], "start_point": {"row": 140, "column": 25}, "end_point": {"row": 140, "column": 26}}, {"id": 749, "type": "identifier", "text": "pi", "parent": 747, "children": [], "start_point": {"row": 140, "column": 27}, "end_point": {"row": 140, "column": 29}}, {"id": 750, "type": "declaration", "text": "int sz = _items.size();", "parent": 740, "children": [751, 752], "start_point": {"row": 142, "column": 8}, "end_point": {"row": 142, "column": 31}}, {"id": 751, "type": "primitive_type", "text": "int", "parent": 750, "children": [], "start_point": {"row": 142, "column": 8}, "end_point": {"row": 142, "column": 11}}, {"id": 752, "type": "init_declarator", "text": "sz = _items.size()", "parent": 750, "children": [753, 754, 755], "start_point": {"row": 142, "column": 12}, "end_point": {"row": 142, "column": 30}}, {"id": 753, "type": "identifier", "text": "sz", "parent": 752, "children": [], "start_point": {"row": 142, "column": 12}, "end_point": {"row": 142, "column": 14}}, {"id": 754, "type": "=", "text": "=", "parent": 752, "children": [], "start_point": {"row": 142, "column": 15}, "end_point": {"row": 142, "column": 16}}, {"id": 755, "type": "call_expression", "text": "_items.size()", "parent": 752, "children": [756, 759], "start_point": {"row": 142, "column": 17}, "end_point": {"row": 142, "column": 30}}, {"id": 756, "type": "field_expression", "text": "_items.size", "parent": 755, "children": [757, 758], "start_point": {"row": 142, "column": 17}, "end_point": {"row": 142, "column": 28}}, {"id": 757, "type": "identifier", "text": "_items", "parent": 756, "children": [], "start_point": {"row": 142, "column": 17}, "end_point": {"row": 142, "column": 23}}, {"id": 758, "type": "field_identifier", "text": "size", "parent": 756, "children": [], "start_point": {"row": 142, "column": 24}, "end_point": {"row": 142, "column": 28}}, {"id": 759, "type": "argument_list", "text": "()", "parent": 755, "children": [], "start_point": {"row": 142, "column": 28}, "end_point": {"row": 142, "column": 30}}, {"id": 760, "type": "binary_expression", "text": "_motions << pi", "parent": 740, "children": [761, 762, 763], "start_point": {"row": 143, "column": 8}, "end_point": {"row": 143, "column": 22}}, {"id": 761, "type": "identifier", "text": "_motions", "parent": 760, "children": [], "start_point": {"row": 143, "column": 8}, "end_point": {"row": 143, "column": 16}}, {"id": 762, "type": "<<", "text": "<<", "parent": 760, "children": [], "start_point": {"row": 143, "column": 17}, "end_point": {"row": 143, "column": 19}}, {"id": 763, "type": "identifier", "text": "pi", "parent": 760, "children": [], "start_point": {"row": 143, "column": 20}, "end_point": {"row": 143, "column": 22}}, {"id": 764, "type": "return_statement", "text": "return sz;", "parent": 740, "children": [765], "start_point": {"row": 144, "column": 8}, "end_point": {"row": 144, "column": 18}}, {"id": 765, "type": "identifier", "text": "sz", "parent": 764, "children": [], "start_point": {"row": 144, "column": 15}, "end_point": {"row": 144, "column": 17}}, {"id": 766, "type": "function_definition", "text": "void DelMotion(CMotion* pi){\r\n vvector<CMotion*>::iterator fi = _motions.findelement(pi);\r\n if(fi != _motions.end())\r\n {\r\n delete pi;\r\n _motions.erase(fi);\r\n }\r\n }", "parent": 53, "children": [767, 768], "start_point": {"row": 147, "column": 4}, "end_point": {"row": 154, "column": 5}}, {"id": 767, "type": "primitive_type", "text": "void", "parent": 766, "children": [], "start_point": {"row": 147, "column": 4}, "end_point": {"row": 147, "column": 8}}, {"id": 768, "type": "function_declarator", "text": "DelMotion(CMotion* pi)", "parent": 766, "children": [769, 770], "start_point": {"row": 147, "column": 9}, "end_point": {"row": 147, "column": 31}}, {"id": 769, "type": "identifier", "text": "DelMotion", "parent": 768, "children": [], "start_point": {"row": 147, "column": 9}, "end_point": {"row": 147, "column": 18}}, {"id": 770, "type": "parameter_list", "text": "(CMotion* pi)", "parent": 768, "children": [771], "start_point": {"row": 147, "column": 18}, "end_point": {"row": 147, "column": 31}}, {"id": 771, "type": "parameter_declaration", "text": "CMotion* pi", "parent": 770, "children": [772, 773], "start_point": {"row": 147, "column": 19}, "end_point": {"row": 147, "column": 30}}, {"id": 772, "type": "type_identifier", "text": "CMotion", "parent": 771, "children": [], "start_point": {"row": 147, "column": 19}, "end_point": {"row": 147, "column": 26}}, {"id": 773, "type": "pointer_declarator", "text": "* pi", "parent": 771, "children": [774, 775], "start_point": {"row": 147, "column": 26}, "end_point": {"row": 147, "column": 30}}, {"id": 774, "type": "*", "text": "*", "parent": 773, "children": [], "start_point": {"row": 147, "column": 26}, "end_point": {"row": 147, "column": 27}}, {"id": 775, "type": "identifier", "text": "pi", "parent": 773, "children": [], "start_point": {"row": 147, "column": 28}, "end_point": {"row": 147, "column": 30}}, {"id": 776, "type": "binary_expression", "text": "vvector<CMotion*>::iterator fi = _motions.findelement(pi)", "parent": 766, "children": [777, 778, 779], "start_point": {"row": 148, "column": 8}, "end_point": {"row": 148, "column": 65}}, {"id": 777, "type": "identifier", "text": "vvector", "parent": 776, "children": [], "start_point": {"row": 148, "column": 8}, "end_point": {"row": 148, "column": 15}}, {"id": 778, "type": "<", "text": "<", "parent": 776, "children": [], "start_point": {"row": 148, "column": 15}, "end_point": {"row": 148, "column": 16}}, {"id": 779, "type": "binary_expression", "text": "CMotion*>::iterator fi = _motions.findelement(pi)", "parent": 776, "children": [780, 781, 782, 785], "start_point": {"row": 148, "column": 16}, "end_point": {"row": 148, "column": 65}}, {"id": 780, "type": "identifier", "text": "CMotion", "parent": 779, "children": [], "start_point": {"row": 148, "column": 16}, "end_point": {"row": 148, "column": 23}}, {"id": 781, "type": "*", "text": "*", "parent": 779, "children": [], "start_point": {"row": 148, "column": 23}, "end_point": {"row": 148, "column": 24}}, {"id": 782, "type": "ERROR", "text": ">::iterator", "parent": 779, "children": [783, 784], "start_point": {"row": 148, "column": 24}, "end_point": {"row": 148, "column": 35}}, {"id": 783, "type": ">", "text": ">", "parent": 782, "children": [], "start_point": {"row": 148, "column": 24}, "end_point": {"row": 148, "column": 25}}, {"id": 784, "type": "identifier", "text": "iterator", "parent": 782, "children": [], "start_point": {"row": 148, "column": 27}, "end_point": {"row": 148, "column": 35}}, {"id": 785, "type": "assignment_expression", "text": "fi = _motions.findelement(pi)", "parent": 779, "children": [786, 787, 788], "start_point": {"row": 148, "column": 36}, "end_point": {"row": 148, "column": 65}}, {"id": 786, "type": "identifier", "text": "fi", "parent": 785, "children": [], "start_point": {"row": 148, "column": 36}, "end_point": {"row": 148, "column": 38}}, {"id": 787, "type": "=", "text": "=", "parent": 785, "children": [], "start_point": {"row": 148, "column": 39}, "end_point": {"row": 148, "column": 40}}, {"id": 788, "type": "call_expression", "text": "_motions.findelement(pi)", "parent": 785, "children": [789, 792], "start_point": {"row": 148, "column": 41}, "end_point": {"row": 148, "column": 65}}, {"id": 789, "type": "field_expression", "text": "_motions.findelement", "parent": 788, "children": [790, 791], "start_point": {"row": 148, "column": 41}, "end_point": {"row": 148, "column": 61}}, {"id": 790, "type": "identifier", "text": "_motions", "parent": 789, "children": [], "start_point": {"row": 148, "column": 41}, "end_point": {"row": 148, "column": 49}}, {"id": 791, "type": "field_identifier", "text": "findelement", "parent": 789, "children": [], "start_point": {"row": 148, "column": 50}, "end_point": {"row": 148, "column": 61}}, {"id": 792, "type": "argument_list", "text": "(pi)", "parent": 788, "children": [793], "start_point": {"row": 148, "column": 61}, "end_point": {"row": 148, "column": 65}}, {"id": 793, "type": "identifier", "text": "pi", "parent": 792, "children": [], "start_point": {"row": 148, "column": 62}, "end_point": {"row": 148, "column": 64}}, {"id": 794, "type": "if_statement", "text": "if(fi != _motions.end())\r\n {\r\n delete pi;\r\n _motions.erase(fi);\r\n }", "parent": 766, "children": [795], "start_point": {"row": 149, "column": 8}, "end_point": {"row": 153, "column": 9}}, {"id": 795, "type": "parenthesized_expression", "text": "(fi != _motions.end())", "parent": 794, "children": [796], "start_point": {"row": 149, "column": 10}, "end_point": {"row": 149, "column": 32}}, {"id": 796, "type": "binary_expression", "text": "fi != _motions.end()", "parent": 795, "children": [797, 798, 799], "start_point": {"row": 149, "column": 11}, "end_point": {"row": 149, "column": 31}}, {"id": 797, "type": "identifier", "text": "fi", "parent": 796, "children": [], "start_point": {"row": 149, "column": 11}, "end_point": {"row": 149, "column": 13}}, {"id": 798, "type": "!=", "text": "!=", "parent": 796, "children": [], "start_point": {"row": 149, "column": 14}, "end_point": {"row": 149, "column": 16}}, {"id": 799, "type": "call_expression", "text": "_motions.end()", "parent": 796, "children": [800, 802], "start_point": {"row": 149, "column": 17}, "end_point": {"row": 149, "column": 31}}, {"id": 800, "type": "field_expression", "text": "_motions.end", "parent": 799, "children": [801], "start_point": {"row": 149, "column": 17}, "end_point": {"row": 149, "column": 29}}, {"id": 801, "type": "identifier", "text": "_motions", "parent": 800, "children": [], "start_point": {"row": 149, "column": 17}, "end_point": {"row": 149, "column": 25}}, {"id": 802, "type": "argument_list", "text": "()", "parent": 799, "children": [], "start_point": {"row": 149, "column": 29}, "end_point": {"row": 149, "column": 31}}, {"id": 803, "type": "declaration", "text": "delete pi;", "parent": 794, "children": [804], "start_point": {"row": 151, "column": 12}, "end_point": {"row": 151, "column": 22}}, {"id": 804, "type": "identifier", "text": "pi", "parent": 803, "children": [], "start_point": {"row": 151, "column": 19}, "end_point": {"row": 151, "column": 21}}, {"id": 805, "type": "call_expression", "text": "_motions.erase(fi)", "parent": 794, "children": [806, 809], "start_point": {"row": 152, "column": 12}, "end_point": {"row": 152, "column": 30}}, {"id": 806, "type": "field_expression", "text": "_motions.erase", "parent": 805, "children": [807, 808], "start_point": {"row": 152, "column": 12}, "end_point": {"row": 152, "column": 26}}, {"id": 807, "type": "identifier", "text": "_motions", "parent": 806, "children": [], "start_point": {"row": 152, "column": 12}, "end_point": {"row": 152, "column": 20}}, {"id": 808, "type": "field_identifier", "text": "erase", "parent": 806, "children": [], "start_point": {"row": 152, "column": 21}, "end_point": {"row": 152, "column": 26}}, {"id": 809, "type": "argument_list", "text": "(fi)", "parent": 805, "children": [810], "start_point": {"row": 152, "column": 26}, "end_point": {"row": 152, "column": 30}}, {"id": 810, "type": "identifier", "text": "fi", "parent": 809, "children": [], "start_point": {"row": 152, "column": 27}, "end_point": {"row": 152, "column": 29}}, {"id": 811, "type": "binary_expression", "text": "vvector<CMotion*>* GetMotions()", "parent": 53, "children": [812, 816, 818, 819], "start_point": {"row": 155, "column": 4}, "end_point": {"row": 155, "column": 37}}, {"id": 812, "type": "binary_expression", "text": "vvector<CMotion", "parent": 811, "children": [813, 814, 815], "start_point": {"row": 155, "column": 4}, "end_point": {"row": 155, "column": 19}}, {"id": 813, "type": "identifier", "text": "vvector", "parent": 812, "children": [], "start_point": {"row": 155, "column": 4}, "end_point": {"row": 155, "column": 11}}, {"id": 814, "type": "<", "text": "<", "parent": 812, "children": [], "start_point": {"row": 155, "column": 11}, "end_point": {"row": 155, "column": 12}}, {"id": 815, "type": "identifier", "text": "CMotion", "parent": 812, "children": [], "start_point": {"row": 155, "column": 12}, "end_point": {"row": 155, "column": 19}}, {"id": 816, "type": "ERROR", "text": "*", "parent": 811, "children": [817], "start_point": {"row": 155, "column": 19}, "end_point": {"row": 155, "column": 20}}, {"id": 817, "type": "*", "text": "*", "parent": 816, "children": [], "start_point": {"row": 155, "column": 19}, "end_point": {"row": 155, "column": 20}}, {"id": 818, "type": ">", "text": ">", "parent": 811, "children": [], "start_point": {"row": 155, "column": 20}, "end_point": {"row": 155, "column": 21}}, {"id": 819, "type": "pointer_expression", "text": "* GetMotions()", "parent": 811, "children": [820, 821], "start_point": {"row": 155, "column": 21}, "end_point": {"row": 155, "column": 37}}, {"id": 820, "type": "*", "text": "*", "parent": 819, "children": [], "start_point": {"row": 155, "column": 21}, "end_point": {"row": 155, "column": 22}}, {"id": 821, "type": "call_expression", "text": "GetMotions()", "parent": 819, "children": [822, 823], "start_point": {"row": 155, "column": 25}, "end_point": {"row": 155, "column": 37}}, {"id": 822, "type": "identifier", "text": "GetMotions", "parent": 821, "children": [], "start_point": {"row": 155, "column": 25}, "end_point": {"row": 155, "column": 35}}, {"id": 823, "type": "argument_list", "text": "()", "parent": 821, "children": [], "start_point": {"row": 155, "column": 35}, "end_point": {"row": 155, "column": 37}}, {"id": 824, "type": "return_statement", "text": "return &_motions;", "parent": 53, "children": [825], "start_point": {"row": 155, "column": 38}, "end_point": {"row": 155, "column": 55}}, {"id": 825, "type": "pointer_expression", "text": "&_motions", "parent": 824, "children": [826], "start_point": {"row": 155, "column": 45}, "end_point": {"row": 155, "column": 54}}, {"id": 826, "type": "identifier", "text": "_motions", "parent": 825, "children": [], "start_point": {"row": 155, "column": 46}, "end_point": {"row": 155, "column": 54}}, {"id": 827, "type": "function_definition", "text": "int AddScript(ScriptItem* pi)\r\n {\r\n int sz = _scripts.size();\r\n _scripts << pi;\r\n return sz;\r\n }", "parent": 53, "children": [828, 829], "start_point": {"row": 156, "column": 4}, "end_point": {"row": 161, "column": 5}}, {"id": 828, "type": "primitive_type", "text": "int", "parent": 827, "children": [], "start_point": {"row": 156, "column": 4}, "end_point": {"row": 156, "column": 7}}, {"id": 829, "type": "function_declarator", "text": "AddScript(ScriptItem* pi)", "parent": 827, "children": [830, 831], "start_point": {"row": 156, "column": 8}, "end_point": {"row": 156, "column": 33}}, {"id": 830, "type": "identifier", "text": "AddScript", "parent": 829, "children": [], "start_point": {"row": 156, "column": 8}, "end_point": {"row": 156, "column": 17}}, {"id": 831, "type": "parameter_list", "text": "(ScriptItem* pi)", "parent": 829, "children": [832], "start_point": {"row": 156, "column": 17}, "end_point": {"row": 156, "column": 33}}, {"id": 832, "type": "parameter_declaration", "text": "ScriptItem* pi", "parent": 831, "children": [833, 834], "start_point": {"row": 156, "column": 18}, "end_point": {"row": 156, "column": 32}}, {"id": 833, "type": "type_identifier", "text": "ScriptItem", "parent": 832, "children": [], "start_point": {"row": 156, "column": 18}, "end_point": {"row": 156, "column": 28}}, {"id": 834, "type": "pointer_declarator", "text": "* pi", "parent": 832, "children": [835, 836], "start_point": {"row": 156, "column": 28}, "end_point": {"row": 156, "column": 32}}, {"id": 835, "type": "*", "text": "*", "parent": 834, "children": [], "start_point": {"row": 156, "column": 28}, "end_point": {"row": 156, "column": 29}}, {"id": 836, "type": "identifier", "text": "pi", "parent": 834, "children": [], "start_point": {"row": 156, "column": 30}, "end_point": {"row": 156, "column": 32}}, {"id": 837, "type": "declaration", "text": "int sz = _scripts.size();", "parent": 827, "children": [838, 839], "start_point": {"row": 158, "column": 8}, "end_point": {"row": 158, "column": 33}}, {"id": 838, "type": "primitive_type", "text": "int", "parent": 837, "children": [], "start_point": {"row": 158, "column": 8}, "end_point": {"row": 158, "column": 11}}, {"id": 839, "type": "init_declarator", "text": "sz = _scripts.size()", "parent": 837, "children": [840, 841, 842], "start_point": {"row": 158, "column": 12}, "end_point": {"row": 158, "column": 32}}, {"id": 840, "type": "identifier", "text": "sz", "parent": 839, "children": [], "start_point": {"row": 158, "column": 12}, "end_point": {"row": 158, "column": 14}}, {"id": 841, "type": "=", "text": "=", "parent": 839, "children": [], "start_point": {"row": 158, "column": 15}, "end_point": {"row": 158, "column": 16}}, {"id": 842, "type": "call_expression", "text": "_scripts.size()", "parent": 839, "children": [843, 846], "start_point": {"row": 158, "column": 17}, "end_point": {"row": 158, "column": 32}}, {"id": 843, "type": "field_expression", "text": "_scripts.size", "parent": 842, "children": [844, 845], "start_point": {"row": 158, "column": 17}, "end_point": {"row": 158, "column": 30}}, {"id": 844, "type": "identifier", "text": "_scripts", "parent": 843, "children": [], "start_point": {"row": 158, "column": 17}, "end_point": {"row": 158, "column": 25}}, {"id": 845, "type": "field_identifier", "text": "size", "parent": 843, "children": [], "start_point": {"row": 158, "column": 26}, "end_point": {"row": 158, "column": 30}}, {"id": 846, "type": "argument_list", "text": "()", "parent": 842, "children": [], "start_point": {"row": 158, "column": 30}, "end_point": {"row": 158, "column": 32}}, {"id": 847, "type": "binary_expression", "text": "_scripts << pi", "parent": 827, "children": [848, 849, 850], "start_point": {"row": 159, "column": 8}, "end_point": {"row": 159, "column": 22}}, {"id": 848, "type": "identifier", "text": "_scripts", "parent": 847, "children": [], "start_point": {"row": 159, "column": 8}, "end_point": {"row": 159, "column": 16}}, {"id": 849, "type": "<<", "text": "<<", "parent": 847, "children": [], "start_point": {"row": 159, "column": 17}, "end_point": {"row": 159, "column": 19}}, {"id": 850, "type": "identifier", "text": "pi", "parent": 847, "children": [], "start_point": {"row": 159, "column": 20}, "end_point": {"row": 159, "column": 22}}, {"id": 851, "type": "return_statement", "text": "return sz;", "parent": 827, "children": [852], "start_point": {"row": 160, "column": 8}, "end_point": {"row": 160, "column": 18}}, {"id": 852, "type": "identifier", "text": "sz", "parent": 851, "children": [], "start_point": {"row": 160, "column": 15}, "end_point": {"row": 160, "column": 17}}, {"id": 853, "type": "function_definition", "text": "void DelScript(ScriptItem* pi)\r\n\t{\r\n vvector<ScriptItem*>::iterator fi = _scripts.findelement(pi);\r\n if(fi != _scripts.end())\r\n {\r\n delete pi;\r\n _scripts.erase(fi);\r\n }\r\n }", "parent": 53, "children": [854, 855], "start_point": {"row": 163, "column": 4}, "end_point": {"row": 171, "column": 5}}, {"id": 854, "type": "primitive_type", "text": "void", "parent": 853, "children": [], "start_point": {"row": 163, "column": 4}, "end_point": {"row": 163, "column": 8}}, {"id": 855, "type": "function_declarator", "text": "DelScript(ScriptItem* pi)", "parent": 853, "children": [856, 857], "start_point": {"row": 163, "column": 9}, "end_point": {"row": 163, "column": 34}}, {"id": 856, "type": "identifier", "text": "DelScript", "parent": 855, "children": [], "start_point": {"row": 163, "column": 9}, "end_point": {"row": 163, "column": 18}}, {"id": 857, "type": "parameter_list", "text": "(ScriptItem* pi)", "parent": 855, "children": [858], "start_point": {"row": 163, "column": 18}, "end_point": {"row": 163, "column": 34}}, {"id": 858, "type": "parameter_declaration", "text": "ScriptItem* pi", "parent": 857, "children": [859, 860], "start_point": {"row": 163, "column": 19}, "end_point": {"row": 163, "column": 33}}, {"id": 859, "type": "type_identifier", "text": "ScriptItem", "parent": 858, "children": [], "start_point": {"row": 163, "column": 19}, "end_point": {"row": 163, "column": 29}}, {"id": 860, "type": "pointer_declarator", "text": "* pi", "parent": 858, "children": [861, 862], "start_point": {"row": 163, "column": 29}, "end_point": {"row": 163, "column": 33}}, {"id": 861, "type": "*", "text": "*", "parent": 860, "children": [], "start_point": {"row": 163, "column": 29}, "end_point": {"row": 163, "column": 30}}, {"id": 862, "type": "identifier", "text": "pi", "parent": 860, "children": [], "start_point": {"row": 163, "column": 31}, "end_point": {"row": 163, "column": 33}}, {"id": 863, "type": "binary_expression", "text": "vvector<ScriptItem*>::iterator fi = _scripts.findelement(pi)", "parent": 853, "children": [864, 865, 866], "start_point": {"row": 165, "column": 8}, "end_point": {"row": 165, "column": 68}}, {"id": 864, "type": "identifier", "text": "vvector", "parent": 863, "children": [], "start_point": {"row": 165, "column": 8}, "end_point": {"row": 165, "column": 15}}, {"id": 865, "type": "<", "text": "<", "parent": 863, "children": [], "start_point": {"row": 165, "column": 15}, "end_point": {"row": 165, "column": 16}}, {"id": 866, "type": "binary_expression", "text": "ScriptItem*>::iterator fi = _scripts.findelement(pi)", "parent": 863, "children": [867, 868, 869, 872], "start_point": {"row": 165, "column": 16}, "end_point": {"row": 165, "column": 68}}, {"id": 867, "type": "identifier", "text": "ScriptItem", "parent": 866, "children": [], "start_point": {"row": 165, "column": 16}, "end_point": {"row": 165, "column": 26}}, {"id": 868, "type": "*", "text": "*", "parent": 866, "children": [], "start_point": {"row": 165, "column": 26}, "end_point": {"row": 165, "column": 27}}, {"id": 869, "type": "ERROR", "text": ">::iterator", "parent": 866, "children": [870, 871], "start_point": {"row": 165, "column": 27}, "end_point": {"row": 165, "column": 38}}, {"id": 870, "type": ">", "text": ">", "parent": 869, "children": [], "start_point": {"row": 165, "column": 27}, "end_point": {"row": 165, "column": 28}}, {"id": 871, "type": "identifier", "text": "iterator", "parent": 869, "children": [], "start_point": {"row": 165, "column": 30}, "end_point": {"row": 165, "column": 38}}, {"id": 872, "type": "assignment_expression", "text": "fi = _scripts.findelement(pi)", "parent": 866, "children": [873, 874, 875], "start_point": {"row": 165, "column": 39}, "end_point": {"row": 165, "column": 68}}, {"id": 873, "type": "identifier", "text": "fi", "parent": 872, "children": [], "start_point": {"row": 165, "column": 39}, "end_point": {"row": 165, "column": 41}}, {"id": 874, "type": "=", "text": "=", "parent": 872, "children": [], "start_point": {"row": 165, "column": 42}, "end_point": {"row": 165, "column": 43}}, {"id": 875, "type": "call_expression", "text": "_scripts.findelement(pi)", "parent": 872, "children": [876, 879], "start_point": {"row": 165, "column": 44}, "end_point": {"row": 165, "column": 68}}, {"id": 876, "type": "field_expression", "text": "_scripts.findelement", "parent": 875, "children": [877, 878], "start_point": {"row": 165, "column": 44}, "end_point": {"row": 165, "column": 64}}, {"id": 877, "type": "identifier", "text": "_scripts", "parent": 876, "children": [], "start_point": {"row": 165, "column": 44}, "end_point": {"row": 165, "column": 52}}, {"id": 878, "type": "field_identifier", "text": "findelement", "parent": 876, "children": [], "start_point": {"row": 165, "column": 53}, "end_point": {"row": 165, "column": 64}}, {"id": 879, "type": "argument_list", "text": "(pi)", "parent": 875, "children": [880], "start_point": {"row": 165, "column": 64}, "end_point": {"row": 165, "column": 68}}, {"id": 880, "type": "identifier", "text": "pi", "parent": 879, "children": [], "start_point": {"row": 165, "column": 65}, "end_point": {"row": 165, "column": 67}}, {"id": 881, "type": "if_statement", "text": "if(fi != _scripts.end())\r\n {\r\n delete pi;\r\n _scripts.erase(fi);\r\n }", "parent": 853, "children": [882], "start_point": {"row": 166, "column": 8}, "end_point": {"row": 170, "column": 9}}, {"id": 882, "type": "parenthesized_expression", "text": "(fi != _scripts.end())", "parent": 881, "children": [883], "start_point": {"row": 166, "column": 10}, "end_point": {"row": 166, "column": 32}}, {"id": 883, "type": "binary_expression", "text": "fi != _scripts.end()", "parent": 882, "children": [884, 885, 886], "start_point": {"row": 166, "column": 11}, "end_point": {"row": 166, "column": 31}}, {"id": 884, "type": "identifier", "text": "fi", "parent": 883, "children": [], "start_point": {"row": 166, "column": 11}, "end_point": {"row": 166, "column": 13}}, {"id": 885, "type": "!=", "text": "!=", "parent": 883, "children": [], "start_point": {"row": 166, "column": 14}, "end_point": {"row": 166, "column": 16}}, {"id": 886, "type": "call_expression", "text": "_scripts.end()", "parent": 883, "children": [887, 889], "start_point": {"row": 166, "column": 17}, "end_point": {"row": 166, "column": 31}}, {"id": 887, "type": "field_expression", "text": "_scripts.end", "parent": 886, "children": [888], "start_point": {"row": 166, "column": 17}, "end_point": {"row": 166, "column": 29}}, {"id": 888, "type": "identifier", "text": "_scripts", "parent": 887, "children": [], "start_point": {"row": 166, "column": 17}, "end_point": {"row": 166, "column": 25}}, {"id": 889, "type": "argument_list", "text": "()", "parent": 886, "children": [], "start_point": {"row": 166, "column": 29}, "end_point": {"row": 166, "column": 31}}, {"id": 890, "type": "declaration", "text": "delete pi;", "parent": 881, "children": [891], "start_point": {"row": 168, "column": 12}, "end_point": {"row": 168, "column": 22}}, {"id": 891, "type": "identifier", "text": "pi", "parent": 890, "children": [], "start_point": {"row": 168, "column": 19}, "end_point": {"row": 168, "column": 21}}, {"id": 892, "type": "call_expression", "text": "_scripts.erase(fi)", "parent": 881, "children": [893, 896], "start_point": {"row": 169, "column": 12}, "end_point": {"row": 169, "column": 30}}, {"id": 893, "type": "field_expression", "text": "_scripts.erase", "parent": 892, "children": [894, 895], "start_point": {"row": 169, "column": 12}, "end_point": {"row": 169, "column": 26}}, {"id": 894, "type": "identifier", "text": "_scripts", "parent": 893, "children": [], "start_point": {"row": 169, "column": 12}, "end_point": {"row": 169, "column": 20}}, {"id": 895, "type": "field_identifier", "text": "erase", "parent": 893, "children": [], "start_point": {"row": 169, "column": 21}, "end_point": {"row": 169, "column": 26}}, {"id": 896, "type": "argument_list", "text": "(fi)", "parent": 892, "children": [897], "start_point": {"row": 169, "column": 26}, "end_point": {"row": 169, "column": 30}}, {"id": 897, "type": "identifier", "text": "fi", "parent": 896, "children": [], "start_point": {"row": 169, "column": 27}, "end_point": {"row": 169, "column": 29}}, {"id": 898, "type": "function_definition", "text": "ScriptItem* GetScript(long index){\r\n return _scripts[index];\r\n }", "parent": 53, "children": [899, 900], "start_point": {"row": 173, "column": 4}, "end_point": {"row": 175, "column": 5}}, {"id": 899, "type": "type_identifier", "text": "ScriptItem", "parent": 898, "children": [], "start_point": {"row": 173, "column": 4}, "end_point": {"row": 173, "column": 14}}, {"id": 900, "type": "pointer_declarator", "text": "* GetScript(long index)", "parent": 898, "children": [901, 902], "start_point": {"row": 173, "column": 14}, "end_point": {"row": 173, "column": 39}}, {"id": 901, "type": "*", "text": "*", "parent": 900, "children": [], "start_point": {"row": 173, "column": 14}, "end_point": {"row": 173, "column": 15}}, {"id": 902, "type": "function_declarator", "text": "GetScript(long index)", "parent": 900, "children": [903, 904], "start_point": {"row": 173, "column": 18}, "end_point": {"row": 173, "column": 39}}, {"id": 903, "type": "identifier", "text": "GetScript", "parent": 902, "children": [], "start_point": {"row": 173, "column": 18}, "end_point": {"row": 173, "column": 27}}, {"id": 904, "type": "parameter_list", "text": "(long index)", "parent": 902, "children": [905], "start_point": {"row": 173, "column": 27}, "end_point": {"row": 173, "column": 39}}, {"id": 905, "type": "parameter_declaration", "text": "long index", "parent": 904, "children": [906, 908], "start_point": {"row": 173, "column": 28}, "end_point": {"row": 173, "column": 38}}, {"id": 906, "type": "sized_type_specifier", "text": "long", "parent": 905, "children": [907], "start_point": {"row": 173, "column": 28}, "end_point": {"row": 173, "column": 32}}, {"id": 907, "type": "long", "text": "long", "parent": 906, "children": [], "start_point": {"row": 173, "column": 28}, "end_point": {"row": 173, "column": 32}}, {"id": 908, "type": "identifier", "text": "index", "parent": 905, "children": [], "start_point": {"row": 173, "column": 33}, "end_point": {"row": 173, "column": 38}}, {"id": 909, "type": "return_statement", "text": "return _scripts[index];", "parent": 898, "children": [910], "start_point": {"row": 174, "column": 8}, "end_point": {"row": 174, "column": 31}}, {"id": 910, "type": "subscript_expression", "text": "_scripts[index]", "parent": 909, "children": [911, 912], "start_point": {"row": 174, "column": 15}, "end_point": {"row": 174, "column": 30}}, {"id": 911, "type": "identifier", "text": "_scripts", "parent": 910, "children": [], "start_point": {"row": 174, "column": 15}, "end_point": {"row": 174, "column": 23}}, {"id": 912, "type": "identifier", "text": "index", "parent": 910, "children": [], "start_point": {"row": 174, "column": 24}, "end_point": {"row": 174, "column": 29}}, {"id": 913, "type": "binary_expression", "text": "vvector<ScriptItem*>* GetScripts()", "parent": 53, "children": [914, 918, 920, 921], "start_point": {"row": 178, "column": 4}, "end_point": {"row": 178, "column": 40}}, {"id": 914, "type": "binary_expression", "text": "vvector<ScriptItem", "parent": 913, "children": [915, 916, 917], "start_point": {"row": 178, "column": 4}, "end_point": {"row": 178, "column": 22}}, {"id": 915, "type": "identifier", "text": "vvector", "parent": 914, "children": [], "start_point": {"row": 178, "column": 4}, "end_point": {"row": 178, "column": 11}}, {"id": 916, "type": "<", "text": "<", "parent": 914, "children": [], "start_point": {"row": 178, "column": 11}, "end_point": {"row": 178, "column": 12}}, {"id": 917, "type": "identifier", "text": "ScriptItem", "parent": 914, "children": [], "start_point": {"row": 178, "column": 12}, "end_point": {"row": 178, "column": 22}}, {"id": 918, "type": "ERROR", "text": "*", "parent": 913, "children": [919], "start_point": {"row": 178, "column": 22}, "end_point": {"row": 178, "column": 23}}, {"id": 919, "type": "*", "text": "*", "parent": 918, "children": [], "start_point": {"row": 178, "column": 22}, "end_point": {"row": 178, "column": 23}}, {"id": 920, "type": ">", "text": ">", "parent": 913, "children": [], "start_point": {"row": 178, "column": 23}, "end_point": {"row": 178, "column": 24}}, {"id": 921, "type": "pointer_expression", "text": "* GetScripts()", "parent": 913, "children": [922, 923], "start_point": {"row": 178, "column": 24}, "end_point": {"row": 178, "column": 40}}, {"id": 922, "type": "*", "text": "*", "parent": 921, "children": [], "start_point": {"row": 178, "column": 24}, "end_point": {"row": 178, "column": 25}}, {"id": 923, "type": "call_expression", "text": "GetScripts()", "parent": 921, "children": [924, 925], "start_point": {"row": 178, "column": 28}, "end_point": {"row": 178, "column": 40}}, {"id": 924, "type": "identifier", "text": "GetScripts", "parent": 923, "children": [], "start_point": {"row": 178, "column": 28}, "end_point": {"row": 178, "column": 38}}, {"id": 925, "type": "argument_list", "text": "()", "parent": 923, "children": [], "start_point": {"row": 178, "column": 38}, "end_point": {"row": 178, "column": 40}}, {"id": 926, "type": "return_statement", "text": "return &_scripts;", "parent": 53, "children": [927], "start_point": {"row": 179, "column": 8}, "end_point": {"row": 179, "column": 25}}, {"id": 927, "type": "pointer_expression", "text": "&_scripts", "parent": 926, "children": [928], "start_point": {"row": 179, "column": 15}, "end_point": {"row": 179, "column": 24}}, {"id": 928, "type": "identifier", "text": "_scripts", "parent": 927, "children": [], "start_point": {"row": 179, "column": 16}, "end_point": {"row": 179, "column": 24}}, {"id": 929, "type": "function_definition", "text": "long GetIndex(ScriptItem* pi){\r\n vvector<ScriptItem*>::iterator fi = _scripts.findelement(pi);\r\n if(fi != _scripts.end())\r\n {\r\n\t\t\treturn fi-_scripts.begin();\r\n }\r\n\t\treturn -1;\r\n }", "parent": 53, "children": [930, 932], "start_point": {"row": 182, "column": 3}, "end_point": {"row": 189, "column": 5}}, {"id": 930, "type": "sized_type_specifier", "text": "long", "parent": 929, "children": [931], "start_point": {"row": 182, "column": 3}, "end_point": {"row": 182, "column": 7}}, {"id": 931, "type": "long", "text": "long", "parent": 930, "children": [], "start_point": {"row": 182, "column": 3}, "end_point": {"row": 182, "column": 7}}, {"id": 932, "type": "function_declarator", "text": "GetIndex(ScriptItem* pi)", "parent": 929, "children": [933, 934], "start_point": {"row": 182, "column": 11}, "end_point": {"row": 182, "column": 35}}, {"id": 933, "type": "identifier", "text": "GetIndex", "parent": 932, "children": [], "start_point": {"row": 182, "column": 11}, "end_point": {"row": 182, "column": 19}}, {"id": 934, "type": "parameter_list", "text": "(ScriptItem* pi)", "parent": 932, "children": [935], "start_point": {"row": 182, "column": 19}, "end_point": {"row": 182, "column": 35}}, {"id": 935, "type": "parameter_declaration", "text": "ScriptItem* pi", "parent": 934, "children": [936, 937], "start_point": {"row": 182, "column": 20}, "end_point": {"row": 182, "column": 34}}, {"id": 936, "type": "type_identifier", "text": "ScriptItem", "parent": 935, "children": [], "start_point": {"row": 182, "column": 20}, "end_point": {"row": 182, "column": 30}}, {"id": 937, "type": "pointer_declarator", "text": "* pi", "parent": 935, "children": [938, 939], "start_point": {"row": 182, "column": 30}, "end_point": {"row": 182, "column": 34}}, {"id": 938, "type": "*", "text": "*", "parent": 937, "children": [], "start_point": {"row": 182, "column": 30}, "end_point": {"row": 182, "column": 31}}, {"id": 939, "type": "identifier", "text": "pi", "parent": 937, "children": [], "start_point": {"row": 182, "column": 32}, "end_point": {"row": 182, "column": 34}}, {"id": 940, "type": "binary_expression", "text": "vvector<ScriptItem*>::iterator fi = _scripts.findelement(pi)", "parent": 929, "children": [941, 942, 943], "start_point": {"row": 183, "column": 8}, "end_point": {"row": 183, "column": 68}}, {"id": 941, "type": "identifier", "text": "vvector", "parent": 940, "children": [], "start_point": {"row": 183, "column": 8}, "end_point": {"row": 183, "column": 15}}, {"id": 942, "type": "<", "text": "<", "parent": 940, "children": [], "start_point": {"row": 183, "column": 15}, "end_point": {"row": 183, "column": 16}}, {"id": 943, "type": "binary_expression", "text": "ScriptItem*>::iterator fi = _scripts.findelement(pi)", "parent": 940, "children": [944, 945, 946, 949], "start_point": {"row": 183, "column": 16}, "end_point": {"row": 183, "column": 68}}, {"id": 944, "type": "identifier", "text": "ScriptItem", "parent": 943, "children": [], "start_point": {"row": 183, "column": 16}, "end_point": {"row": 183, "column": 26}}, {"id": 945, "type": "*", "text": "*", "parent": 943, "children": [], "start_point": {"row": 183, "column": 26}, "end_point": {"row": 183, "column": 27}}, {"id": 946, "type": "ERROR", "text": ">::iterator", "parent": 943, "children": [947, 948], "start_point": {"row": 183, "column": 27}, "end_point": {"row": 183, "column": 38}}, {"id": 947, "type": ">", "text": ">", "parent": 946, "children": [], "start_point": {"row": 183, "column": 27}, "end_point": {"row": 183, "column": 28}}, {"id": 948, "type": "identifier", "text": "iterator", "parent": 946, "children": [], "start_point": {"row": 183, "column": 30}, "end_point": {"row": 183, "column": 38}}, {"id": 949, "type": "assignment_expression", "text": "fi = _scripts.findelement(pi)", "parent": 943, "children": [950, 951, 952], "start_point": {"row": 183, "column": 39}, "end_point": {"row": 183, "column": 68}}, {"id": 950, "type": "identifier", "text": "fi", "parent": 949, "children": [], "start_point": {"row": 183, "column": 39}, "end_point": {"row": 183, "column": 41}}, {"id": 951, "type": "=", "text": "=", "parent": 949, "children": [], "start_point": {"row": 183, "column": 42}, "end_point": {"row": 183, "column": 43}}, {"id": 952, "type": "call_expression", "text": "_scripts.findelement(pi)", "parent": 949, "children": [953, 956], "start_point": {"row": 183, "column": 44}, "end_point": {"row": 183, "column": 68}}, {"id": 953, "type": "field_expression", "text": "_scripts.findelement", "parent": 952, "children": [954, 955], "start_point": {"row": 183, "column": 44}, "end_point": {"row": 183, "column": 64}}, {"id": 954, "type": "identifier", "text": "_scripts", "parent": 953, "children": [], "start_point": {"row": 183, "column": 44}, "end_point": {"row": 183, "column": 52}}, {"id": 955, "type": "field_identifier", "text": "findelement", "parent": 953, "children": [], "start_point": {"row": 183, "column": 53}, "end_point": {"row": 183, "column": 64}}, {"id": 956, "type": "argument_list", "text": "(pi)", "parent": 952, "children": [957], "start_point": {"row": 183, "column": 64}, "end_point": {"row": 183, "column": 68}}, {"id": 957, "type": "identifier", "text": "pi", "parent": 956, "children": [], "start_point": {"row": 183, "column": 65}, "end_point": {"row": 183, "column": 67}}, {"id": 958, "type": "if_statement", "text": "if(fi != _scripts.end())\r\n {\r\n\t\t\treturn fi-_scripts.begin();\r\n }", "parent": 929, "children": [959], "start_point": {"row": 184, "column": 8}, "end_point": {"row": 187, "column": 9}}, {"id": 959, "type": "parenthesized_expression", "text": "(fi != _scripts.end())", "parent": 958, "children": [960], "start_point": {"row": 184, "column": 10}, "end_point": {"row": 184, "column": 32}}, {"id": 960, "type": "binary_expression", "text": "fi != _scripts.end()", "parent": 959, "children": [961, 962, 963], "start_point": {"row": 184, "column": 11}, "end_point": {"row": 184, "column": 31}}, {"id": 961, "type": "identifier", "text": "fi", "parent": 960, "children": [], "start_point": {"row": 184, "column": 11}, "end_point": {"row": 184, "column": 13}}, {"id": 962, "type": "!=", "text": "!=", "parent": 960, "children": [], "start_point": {"row": 184, "column": 14}, "end_point": {"row": 184, "column": 16}}, {"id": 963, "type": "call_expression", "text": "_scripts.end()", "parent": 960, "children": [964, 966], "start_point": {"row": 184, "column": 17}, "end_point": {"row": 184, "column": 31}}, {"id": 964, "type": "field_expression", "text": "_scripts.end", "parent": 963, "children": [965], "start_point": {"row": 184, "column": 17}, "end_point": {"row": 184, "column": 29}}, {"id": 965, "type": "identifier", "text": "_scripts", "parent": 964, "children": [], "start_point": {"row": 184, "column": 17}, "end_point": {"row": 184, "column": 25}}, {"id": 966, "type": "argument_list", "text": "()", "parent": 963, "children": [], "start_point": {"row": 184, "column": 29}, "end_point": {"row": 184, "column": 31}}, {"id": 967, "type": "return_statement", "text": "return fi-_scripts.begin();", "parent": 958, "children": [968], "start_point": {"row": 186, "column": 3}, "end_point": {"row": 186, "column": 30}}, {"id": 968, "type": "binary_expression", "text": "fi-_scripts.begin()", "parent": 967, "children": [969, 970, 971], "start_point": {"row": 186, "column": 10}, "end_point": {"row": 186, "column": 29}}, {"id": 969, "type": "identifier", "text": "fi", "parent": 968, "children": [], "start_point": {"row": 186, "column": 10}, "end_point": {"row": 186, "column": 12}}, {"id": 970, "type": "-", "text": "-", "parent": 968, "children": [], "start_point": {"row": 186, "column": 12}, "end_point": {"row": 186, "column": 13}}, {"id": 971, "type": "call_expression", "text": "_scripts.begin()", "parent": 968, "children": [972, 974], "start_point": {"row": 186, "column": 13}, "end_point": {"row": 186, "column": 29}}, {"id": 972, "type": "field_expression", "text": "_scripts.begin", "parent": 971, "children": [973], "start_point": {"row": 186, "column": 13}, "end_point": {"row": 186, "column": 27}}, {"id": 973, "type": "identifier", "text": "_scripts", "parent": 972, "children": [], "start_point": {"row": 186, "column": 13}, "end_point": {"row": 186, "column": 21}}, {"id": 974, "type": "argument_list", "text": "()", "parent": 971, "children": [], "start_point": {"row": 186, "column": 27}, "end_point": {"row": 186, "column": 29}}, {"id": 975, "type": "return_statement", "text": "return -1;", "parent": 929, "children": [976], "start_point": {"row": 188, "column": 2}, "end_point": {"row": 188, "column": 12}}, {"id": 976, "type": "number_literal", "text": "-1", "parent": 975, "children": [], "start_point": {"row": 188, "column": 9}, "end_point": {"row": 188, "column": 11}}, {"id": 977, "type": "declaration", "text": "int FindSoundByName(const char* psz);", "parent": 53, "children": [978, 979], "start_point": {"row": 191, "column": 4}, "end_point": {"row": 191, "column": 41}}, {"id": 978, "type": "primitive_type", "text": "int", "parent": 977, "children": [], "start_point": {"row": 191, "column": 4}, "end_point": {"row": 191, "column": 7}}, {"id": 979, "type": "function_declarator", "text": "FindSoundByName(const char* psz)", "parent": 977, "children": [980, 981], "start_point": {"row": 191, "column": 8}, "end_point": {"row": 191, "column": 40}}, {"id": 980, "type": "identifier", "text": "FindSoundByName", "parent": 979, "children": [], "start_point": {"row": 191, "column": 8}, "end_point": {"row": 191, "column": 23}}, {"id": 981, "type": "parameter_list", "text": "(const char* psz)", "parent": 979, "children": [982], "start_point": {"row": 191, "column": 23}, "end_point": {"row": 191, "column": 40}}, {"id": 982, "type": "parameter_declaration", "text": "const char* psz", "parent": 981, "children": [983, 984], "start_point": {"row": 191, "column": 24}, "end_point": {"row": 191, "column": 39}}, {"id": 983, "type": "primitive_type", "text": "char", "parent": 982, "children": [], "start_point": {"row": 191, "column": 30}, "end_point": {"row": 191, "column": 34}}, {"id": 984, "type": "pointer_declarator", "text": "* psz", "parent": 982, "children": [985, 986], "start_point": {"row": 191, "column": 34}, "end_point": {"row": 191, "column": 39}}, {"id": 985, "type": "*", "text": "*", "parent": 984, "children": [], "start_point": {"row": 191, "column": 34}, "end_point": {"row": 191, "column": 35}}, {"id": 986, "type": "identifier", "text": "psz", "parent": 984, "children": [], "start_point": {"row": 191, "column": 36}, "end_point": {"row": 191, "column": 39}}, {"id": 987, "type": "function_definition", "text": "int AddSound(CSoundItem* pi)\r\n {\r\n int sz = _sounds.size();\r\n _sounds << pi;\r\n return sz;\r\n }", "parent": 53, "children": [988, 989], "start_point": {"row": 193, "column": 4}, "end_point": {"row": 198, "column": 5}}, {"id": 988, "type": "primitive_type", "text": "int", "parent": 987, "children": [], "start_point": {"row": 193, "column": 4}, "end_point": {"row": 193, "column": 7}}, {"id": 989, "type": "function_declarator", "text": "AddSound(CSoundItem* pi)", "parent": 987, "children": [990, 991], "start_point": {"row": 193, "column": 8}, "end_point": {"row": 193, "column": 32}}, {"id": 990, "type": "identifier", "text": "AddSound", "parent": 989, "children": [], "start_point": {"row": 193, "column": 8}, "end_point": {"row": 193, "column": 16}}, {"id": 991, "type": "parameter_list", "text": "(CSoundItem* pi)", "parent": 989, "children": [992], "start_point": {"row": 193, "column": 16}, "end_point": {"row": 193, "column": 32}}, {"id": 992, "type": "parameter_declaration", "text": "CSoundItem* pi", "parent": 991, "children": [993, 994], "start_point": {"row": 193, "column": 17}, "end_point": {"row": 193, "column": 31}}, {"id": 993, "type": "type_identifier", "text": "CSoundItem", "parent": 992, "children": [], "start_point": {"row": 193, "column": 17}, "end_point": {"row": 193, "column": 27}}, {"id": 994, "type": "pointer_declarator", "text": "* pi", "parent": 992, "children": [995, 996], "start_point": {"row": 193, "column": 27}, "end_point": {"row": 193, "column": 31}}, {"id": 995, "type": "*", "text": "*", "parent": 994, "children": [], "start_point": {"row": 193, "column": 27}, "end_point": {"row": 193, "column": 28}}, {"id": 996, "type": "identifier", "text": "pi", "parent": 994, "children": [], "start_point": {"row": 193, "column": 29}, "end_point": {"row": 193, "column": 31}}, {"id": 997, "type": "declaration", "text": "int sz = _sounds.size();", "parent": 987, "children": [998, 999], "start_point": {"row": 195, "column": 8}, "end_point": {"row": 195, "column": 32}}, {"id": 998, "type": "primitive_type", "text": "int", "parent": 997, "children": [], "start_point": {"row": 195, "column": 8}, "end_point": {"row": 195, "column": 11}}, {"id": 999, "type": "init_declarator", "text": "sz = _sounds.size()", "parent": 997, "children": [1000, 1001, 1002], "start_point": {"row": 195, "column": 12}, "end_point": {"row": 195, "column": 31}}, {"id": 1000, "type": "identifier", "text": "sz", "parent": 999, "children": [], "start_point": {"row": 195, "column": 12}, "end_point": {"row": 195, "column": 14}}, {"id": 1001, "type": "=", "text": "=", "parent": 999, "children": [], "start_point": {"row": 195, "column": 15}, "end_point": {"row": 195, "column": 16}}, {"id": 1002, "type": "call_expression", "text": "_sounds.size()", "parent": 999, "children": [1003, 1006], "start_point": {"row": 195, "column": 17}, "end_point": {"row": 195, "column": 31}}, {"id": 1003, "type": "field_expression", "text": "_sounds.size", "parent": 1002, "children": [1004, 1005], "start_point": {"row": 195, "column": 17}, "end_point": {"row": 195, "column": 29}}, {"id": 1004, "type": "identifier", "text": "_sounds", "parent": 1003, "children": [], "start_point": {"row": 195, "column": 17}, "end_point": {"row": 195, "column": 24}}, {"id": 1005, "type": "field_identifier", "text": "size", "parent": 1003, "children": [], "start_point": {"row": 195, "column": 25}, "end_point": {"row": 195, "column": 29}}, {"id": 1006, "type": "argument_list", "text": "()", "parent": 1002, "children": [], "start_point": {"row": 195, "column": 29}, "end_point": {"row": 195, "column": 31}}, {"id": 1007, "type": "binary_expression", "text": "_sounds << pi", "parent": 987, "children": [1008, 1009, 1010], "start_point": {"row": 196, "column": 8}, "end_point": {"row": 196, "column": 21}}, {"id": 1008, "type": "identifier", "text": "_sounds", "parent": 1007, "children": [], "start_point": {"row": 196, "column": 8}, "end_point": {"row": 196, "column": 15}}, {"id": 1009, "type": "<<", "text": "<<", "parent": 1007, "children": [], "start_point": {"row": 196, "column": 16}, "end_point": {"row": 196, "column": 18}}, {"id": 1010, "type": "identifier", "text": "pi", "parent": 1007, "children": [], "start_point": {"row": 196, "column": 19}, "end_point": {"row": 196, "column": 21}}, {"id": 1011, "type": "return_statement", "text": "return sz;", "parent": 987, "children": [1012], "start_point": {"row": 197, "column": 8}, "end_point": {"row": 197, "column": 18}}, {"id": 1012, "type": "identifier", "text": "sz", "parent": 1011, "children": [], "start_point": {"row": 197, "column": 15}, "end_point": {"row": 197, "column": 17}}, {"id": 1013, "type": "function_definition", "text": "void DelSound(CSoundItem* pi)\r\n\t{\r\n vvector<CSoundItem*>::iterator fi = _sounds.findelement(pi);\r\n if(fi != _sounds.end())\r\n {\r\n delete pi;\r\n _sounds.erase(fi);\r\n }\r\n }", "parent": 53, "children": [1014, 1015], "start_point": {"row": 200, "column": 4}, "end_point": {"row": 208, "column": 5}}, {"id": 1014, "type": "primitive_type", "text": "void", "parent": 1013, "children": [], "start_point": {"row": 200, "column": 4}, "end_point": {"row": 200, "column": 8}}, {"id": 1015, "type": "function_declarator", "text": "DelSound(CSoundItem* pi)", "parent": 1013, "children": [1016, 1017], "start_point": {"row": 200, "column": 9}, "end_point": {"row": 200, "column": 33}}, {"id": 1016, "type": "identifier", "text": "DelSound", "parent": 1015, "children": [], "start_point": {"row": 200, "column": 9}, "end_point": {"row": 200, "column": 17}}, {"id": 1017, "type": "parameter_list", "text": "(CSoundItem* pi)", "parent": 1015, "children": [1018], "start_point": {"row": 200, "column": 17}, "end_point": {"row": 200, "column": 33}}, {"id": 1018, "type": "parameter_declaration", "text": "CSoundItem* pi", "parent": 1017, "children": [1019, 1020], "start_point": {"row": 200, "column": 18}, "end_point": {"row": 200, "column": 32}}, {"id": 1019, "type": "type_identifier", "text": "CSoundItem", "parent": 1018, "children": [], "start_point": {"row": 200, "column": 18}, "end_point": {"row": 200, "column": 28}}, {"id": 1020, "type": "pointer_declarator", "text": "* pi", "parent": 1018, "children": [1021, 1022], "start_point": {"row": 200, "column": 28}, "end_point": {"row": 200, "column": 32}}, {"id": 1021, "type": "*", "text": "*", "parent": 1020, "children": [], "start_point": {"row": 200, "column": 28}, "end_point": {"row": 200, "column": 29}}, {"id": 1022, "type": "identifier", "text": "pi", "parent": 1020, "children": [], "start_point": {"row": 200, "column": 30}, "end_point": {"row": 200, "column": 32}}, {"id": 1023, "type": "binary_expression", "text": "vvector<CSoundItem*>::iterator fi = _sounds.findelement(pi)", "parent": 1013, "children": [1024, 1025, 1026], "start_point": {"row": 202, "column": 8}, "end_point": {"row": 202, "column": 67}}, {"id": 1024, "type": "identifier", "text": "vvector", "parent": 1023, "children": [], "start_point": {"row": 202, "column": 8}, "end_point": {"row": 202, "column": 15}}, {"id": 1025, "type": "<", "text": "<", "parent": 1023, "children": [], "start_point": {"row": 202, "column": 15}, "end_point": {"row": 202, "column": 16}}, {"id": 1026, "type": "binary_expression", "text": "CSoundItem*>::iterator fi = _sounds.findelement(pi)", "parent": 1023, "children": [1027, 1028, 1029, 1032], "start_point": {"row": 202, "column": 16}, "end_point": {"row": 202, "column": 67}}, {"id": 1027, "type": "identifier", "text": "CSoundItem", "parent": 1026, "children": [], "start_point": {"row": 202, "column": 16}, "end_point": {"row": 202, "column": 26}}, {"id": 1028, "type": "*", "text": "*", "parent": 1026, "children": [], "start_point": {"row": 202, "column": 26}, "end_point": {"row": 202, "column": 27}}, {"id": 1029, "type": "ERROR", "text": ">::iterator", "parent": 1026, "children": [1030, 1031], "start_point": {"row": 202, "column": 27}, "end_point": {"row": 202, "column": 38}}, {"id": 1030, "type": ">", "text": ">", "parent": 1029, "children": [], "start_point": {"row": 202, "column": 27}, "end_point": {"row": 202, "column": 28}}, {"id": 1031, "type": "identifier", "text": "iterator", "parent": 1029, "children": [], "start_point": {"row": 202, "column": 30}, "end_point": {"row": 202, "column": 38}}, {"id": 1032, "type": "assignment_expression", "text": "fi = _sounds.findelement(pi)", "parent": 1026, "children": [1033, 1034, 1035], "start_point": {"row": 202, "column": 39}, "end_point": {"row": 202, "column": 67}}, {"id": 1033, "type": "identifier", "text": "fi", "parent": 1032, "children": [], "start_point": {"row": 202, "column": 39}, "end_point": {"row": 202, "column": 41}}, {"id": 1034, "type": "=", "text": "=", "parent": 1032, "children": [], "start_point": {"row": 202, "column": 42}, "end_point": {"row": 202, "column": 43}}, {"id": 1035, "type": "call_expression", "text": "_sounds.findelement(pi)", "parent": 1032, "children": [1036, 1039], "start_point": {"row": 202, "column": 44}, "end_point": {"row": 202, "column": 67}}, {"id": 1036, "type": "field_expression", "text": "_sounds.findelement", "parent": 1035, "children": [1037, 1038], "start_point": {"row": 202, "column": 44}, "end_point": {"row": 202, "column": 63}}, {"id": 1037, "type": "identifier", "text": "_sounds", "parent": 1036, "children": [], "start_point": {"row": 202, "column": 44}, "end_point": {"row": 202, "column": 51}}, {"id": 1038, "type": "field_identifier", "text": "findelement", "parent": 1036, "children": [], "start_point": {"row": 202, "column": 52}, "end_point": {"row": 202, "column": 63}}, {"id": 1039, "type": "argument_list", "text": "(pi)", "parent": 1035, "children": [1040], "start_point": {"row": 202, "column": 63}, "end_point": {"row": 202, "column": 67}}, {"id": 1040, "type": "identifier", "text": "pi", "parent": 1039, "children": [], "start_point": {"row": 202, "column": 64}, "end_point": {"row": 202, "column": 66}}, {"id": 1041, "type": "if_statement", "text": "if(fi != _sounds.end())\r\n {\r\n delete pi;\r\n _sounds.erase(fi);\r\n }", "parent": 1013, "children": [1042], "start_point": {"row": 203, "column": 8}, "end_point": {"row": 207, "column": 9}}, {"id": 1042, "type": "parenthesized_expression", "text": "(fi != _sounds.end())", "parent": 1041, "children": [1043], "start_point": {"row": 203, "column": 10}, "end_point": {"row": 203, "column": 31}}, {"id": 1043, "type": "binary_expression", "text": "fi != _sounds.end()", "parent": 1042, "children": [1044, 1045, 1046], "start_point": {"row": 203, "column": 11}, "end_point": {"row": 203, "column": 30}}, {"id": 1044, "type": "identifier", "text": "fi", "parent": 1043, "children": [], "start_point": {"row": 203, "column": 11}, "end_point": {"row": 203, "column": 13}}, {"id": 1045, "type": "!=", "text": "!=", "parent": 1043, "children": [], "start_point": {"row": 203, "column": 14}, "end_point": {"row": 203, "column": 16}}, {"id": 1046, "type": "call_expression", "text": "_sounds.end()", "parent": 1043, "children": [1047, 1049], "start_point": {"row": 203, "column": 17}, "end_point": {"row": 203, "column": 30}}, {"id": 1047, "type": "field_expression", "text": "_sounds.end", "parent": 1046, "children": [1048], "start_point": {"row": 203, "column": 17}, "end_point": {"row": 203, "column": 28}}, {"id": 1048, "type": "identifier", "text": "_sounds", "parent": 1047, "children": [], "start_point": {"row": 203, "column": 17}, "end_point": {"row": 203, "column": 24}}, {"id": 1049, "type": "argument_list", "text": "()", "parent": 1046, "children": [], "start_point": {"row": 203, "column": 28}, "end_point": {"row": 203, "column": 30}}, {"id": 1050, "type": "declaration", "text": "delete pi;", "parent": 1041, "children": [1051], "start_point": {"row": 205, "column": 12}, "end_point": {"row": 205, "column": 22}}, {"id": 1051, "type": "identifier", "text": "pi", "parent": 1050, "children": [], "start_point": {"row": 205, "column": 19}, "end_point": {"row": 205, "column": 21}}, {"id": 1052, "type": "call_expression", "text": "_sounds.erase(fi)", "parent": 1041, "children": [1053, 1056], "start_point": {"row": 206, "column": 12}, "end_point": {"row": 206, "column": 29}}, {"id": 1053, "type": "field_expression", "text": "_sounds.erase", "parent": 1052, "children": [1054, 1055], "start_point": {"row": 206, "column": 12}, "end_point": {"row": 206, "column": 25}}, {"id": 1054, "type": "identifier", "text": "_sounds", "parent": 1053, "children": [], "start_point": {"row": 206, "column": 12}, "end_point": {"row": 206, "column": 19}}, {"id": 1055, "type": "field_identifier", "text": "erase", "parent": 1053, "children": [], "start_point": {"row": 206, "column": 20}, "end_point": {"row": 206, "column": 25}}, {"id": 1056, "type": "argument_list", "text": "(fi)", "parent": 1052, "children": [1057], "start_point": {"row": 206, "column": 25}, "end_point": {"row": 206, "column": 29}}, {"id": 1057, "type": "identifier", "text": "fi", "parent": 1056, "children": [], "start_point": {"row": 206, "column": 26}, "end_point": {"row": 206, "column": 28}}, {"id": 1058, "type": "binary_expression", "text": "vvector<CSoundItem*>* GetSounds()", "parent": 53, "children": [1059, 1063, 1065, 1066], "start_point": {"row": 210, "column": 4}, "end_point": {"row": 210, "column": 39}}, {"id": 1059, "type": "binary_expression", "text": "vvector<CSoundItem", "parent": 1058, "children": [1060, 1061, 1062], "start_point": {"row": 210, "column": 4}, "end_point": {"row": 210, "column": 22}}, {"id": 1060, "type": "identifier", "text": "vvector", "parent": 1059, "children": [], "start_point": {"row": 210, "column": 4}, "end_point": {"row": 210, "column": 11}}, {"id": 1061, "type": "<", "text": "<", "parent": 1059, "children": [], "start_point": {"row": 210, "column": 11}, "end_point": {"row": 210, "column": 12}}, {"id": 1062, "type": "identifier", "text": "CSoundItem", "parent": 1059, "children": [], "start_point": {"row": 210, "column": 12}, "end_point": {"row": 210, "column": 22}}, {"id": 1063, "type": "ERROR", "text": "*", "parent": 1058, "children": [1064], "start_point": {"row": 210, "column": 22}, "end_point": {"row": 210, "column": 23}}, {"id": 1064, "type": "*", "text": "*", "parent": 1063, "children": [], "start_point": {"row": 210, "column": 22}, "end_point": {"row": 210, "column": 23}}, {"id": 1065, "type": ">", "text": ">", "parent": 1058, "children": [], "start_point": {"row": 210, "column": 23}, "end_point": {"row": 210, "column": 24}}, {"id": 1066, "type": "pointer_expression", "text": "* GetSounds()", "parent": 1058, "children": [1067, 1068], "start_point": {"row": 210, "column": 24}, "end_point": {"row": 210, "column": 39}}, {"id": 1067, "type": "*", "text": "*", "parent": 1066, "children": [], "start_point": {"row": 210, "column": 24}, "end_point": {"row": 210, "column": 25}}, {"id": 1068, "type": "call_expression", "text": "GetSounds()", "parent": 1066, "children": [1069, 1070], "start_point": {"row": 210, "column": 28}, "end_point": {"row": 210, "column": 39}}, {"id": 1069, "type": "identifier", "text": "GetSounds", "parent": 1068, "children": [], "start_point": {"row": 210, "column": 28}, "end_point": {"row": 210, "column": 37}}, {"id": 1070, "type": "argument_list", "text": "()", "parent": 1068, "children": [], "start_point": {"row": 210, "column": 37}, "end_point": {"row": 210, "column": 39}}, {"id": 1071, "type": "return_statement", "text": "return &_sounds;", "parent": 53, "children": [1072], "start_point": {"row": 211, "column": 8}, "end_point": {"row": 211, "column": 24}}, {"id": 1072, "type": "pointer_expression", "text": "&_sounds", "parent": 1071, "children": [1073], "start_point": {"row": 211, "column": 15}, "end_point": {"row": 211, "column": 23}}, {"id": 1073, "type": "identifier", "text": "_sounds", "parent": 1072, "children": [], "start_point": {"row": 211, "column": 16}, "end_point": {"row": 211, "column": 23}}, {"id": 1074, "type": "function_definition", "text": "long GetIndex(CSoundItem* ps){\r\n vvector<CSoundItem*>::iterator fi = _sounds.findelement(ps);\r\n if(fi != _sounds.end())\r\n {\r\n\t\t\treturn fi-_sounds.begin();\r\n }\r\n\t\treturn -1;\r\n }", "parent": 53, "children": [1075, 1077], "start_point": {"row": 214, "column": 3}, "end_point": {"row": 221, "column": 5}}, {"id": 1075, "type": "sized_type_specifier", "text": "long", "parent": 1074, "children": [1076], "start_point": {"row": 214, "column": 3}, "end_point": {"row": 214, "column": 7}}, {"id": 1076, "type": "long", "text": "long", "parent": 1075, "children": [], "start_point": {"row": 214, "column": 3}, "end_point": {"row": 214, "column": 7}}, {"id": 1077, "type": "function_declarator", "text": "GetIndex(CSoundItem* ps)", "parent": 1074, "children": [1078, 1079], "start_point": {"row": 214, "column": 11}, "end_point": {"row": 214, "column": 35}}, {"id": 1078, "type": "identifier", "text": "GetIndex", "parent": 1077, "children": [], "start_point": {"row": 214, "column": 11}, "end_point": {"row": 214, "column": 19}}, {"id": 1079, "type": "parameter_list", "text": "(CSoundItem* ps)", "parent": 1077, "children": [1080], "start_point": {"row": 214, "column": 19}, "end_point": {"row": 214, "column": 35}}, {"id": 1080, "type": "parameter_declaration", "text": "CSoundItem* ps", "parent": 1079, "children": [1081, 1082], "start_point": {"row": 214, "column": 20}, "end_point": {"row": 214, "column": 34}}, {"id": 1081, "type": "type_identifier", "text": "CSoundItem", "parent": 1080, "children": [], "start_point": {"row": 214, "column": 20}, "end_point": {"row": 214, "column": 30}}, {"id": 1082, "type": "pointer_declarator", "text": "* ps", "parent": 1080, "children": [1083, 1084], "start_point": {"row": 214, "column": 30}, "end_point": {"row": 214, "column": 34}}, {"id": 1083, "type": "*", "text": "*", "parent": 1082, "children": [], "start_point": {"row": 214, "column": 30}, "end_point": {"row": 214, "column": 31}}, {"id": 1084, "type": "identifier", "text": "ps", "parent": 1082, "children": [], "start_point": {"row": 214, "column": 32}, "end_point": {"row": 214, "column": 34}}, {"id": 1085, "type": "binary_expression", "text": "vvector<CSoundItem*>::iterator fi = _sounds.findelement(ps)", "parent": 1074, "children": [1086, 1087, 1088], "start_point": {"row": 215, "column": 8}, "end_point": {"row": 215, "column": 67}}, {"id": 1086, "type": "identifier", "text": "vvector", "parent": 1085, "children": [], "start_point": {"row": 215, "column": 8}, "end_point": {"row": 215, "column": 15}}, {"id": 1087, "type": "<", "text": "<", "parent": 1085, "children": [], "start_point": {"row": 215, "column": 15}, "end_point": {"row": 215, "column": 16}}, {"id": 1088, "type": "binary_expression", "text": "CSoundItem*>::iterator fi = _sounds.findelement(ps)", "parent": 1085, "children": [1089, 1090, 1091, 1094], "start_point": {"row": 215, "column": 16}, "end_point": {"row": 215, "column": 67}}, {"id": 1089, "type": "identifier", "text": "CSoundItem", "parent": 1088, "children": [], "start_point": {"row": 215, "column": 16}, "end_point": {"row": 215, "column": 26}}, {"id": 1090, "type": "*", "text": "*", "parent": 1088, "children": [], "start_point": {"row": 215, "column": 26}, "end_point": {"row": 215, "column": 27}}, {"id": 1091, "type": "ERROR", "text": ">::iterator", "parent": 1088, "children": [1092, 1093], "start_point": {"row": 215, "column": 27}, "end_point": {"row": 215, "column": 38}}, {"id": 1092, "type": ">", "text": ">", "parent": 1091, "children": [], "start_point": {"row": 215, "column": 27}, "end_point": {"row": 215, "column": 28}}, {"id": 1093, "type": "identifier", "text": "iterator", "parent": 1091, "children": [], "start_point": {"row": 215, "column": 30}, "end_point": {"row": 215, "column": 38}}, {"id": 1094, "type": "assignment_expression", "text": "fi = _sounds.findelement(ps)", "parent": 1088, "children": [1095, 1096, 1097], "start_point": {"row": 215, "column": 39}, "end_point": {"row": 215, "column": 67}}, {"id": 1095, "type": "identifier", "text": "fi", "parent": 1094, "children": [], "start_point": {"row": 215, "column": 39}, "end_point": {"row": 215, "column": 41}}, {"id": 1096, "type": "=", "text": "=", "parent": 1094, "children": [], "start_point": {"row": 215, "column": 42}, "end_point": {"row": 215, "column": 43}}, {"id": 1097, "type": "call_expression", "text": "_sounds.findelement(ps)", "parent": 1094, "children": [1098, 1101], "start_point": {"row": 215, "column": 44}, "end_point": {"row": 215, "column": 67}}, {"id": 1098, "type": "field_expression", "text": "_sounds.findelement", "parent": 1097, "children": [1099, 1100], "start_point": {"row": 215, "column": 44}, "end_point": {"row": 215, "column": 63}}, {"id": 1099, "type": "identifier", "text": "_sounds", "parent": 1098, "children": [], "start_point": {"row": 215, "column": 44}, "end_point": {"row": 215, "column": 51}}, {"id": 1100, "type": "field_identifier", "text": "findelement", "parent": 1098, "children": [], "start_point": {"row": 215, "column": 52}, "end_point": {"row": 215, "column": 63}}, {"id": 1101, "type": "argument_list", "text": "(ps)", "parent": 1097, "children": [1102], "start_point": {"row": 215, "column": 63}, "end_point": {"row": 215, "column": 67}}, {"id": 1102, "type": "identifier", "text": "ps", "parent": 1101, "children": [], "start_point": {"row": 215, "column": 64}, "end_point": {"row": 215, "column": 66}}, {"id": 1103, "type": "if_statement", "text": "if(fi != _sounds.end())\r\n {\r\n\t\t\treturn fi-_sounds.begin();\r\n }", "parent": 1074, "children": [1104], "start_point": {"row": 216, "column": 8}, "end_point": {"row": 219, "column": 9}}, {"id": 1104, "type": "parenthesized_expression", "text": "(fi != _sounds.end())", "parent": 1103, "children": [1105], "start_point": {"row": 216, "column": 10}, "end_point": {"row": 216, "column": 31}}, {"id": 1105, "type": "binary_expression", "text": "fi != _sounds.end()", "parent": 1104, "children": [1106, 1107, 1108], "start_point": {"row": 216, "column": 11}, "end_point": {"row": 216, "column": 30}}, {"id": 1106, "type": "identifier", "text": "fi", "parent": 1105, "children": [], "start_point": {"row": 216, "column": 11}, "end_point": {"row": 216, "column": 13}}, {"id": 1107, "type": "!=", "text": "!=", "parent": 1105, "children": [], "start_point": {"row": 216, "column": 14}, "end_point": {"row": 216, "column": 16}}, {"id": 1108, "type": "call_expression", "text": "_sounds.end()", "parent": 1105, "children": [1109, 1111], "start_point": {"row": 216, "column": 17}, "end_point": {"row": 216, "column": 30}}, {"id": 1109, "type": "field_expression", "text": "_sounds.end", "parent": 1108, "children": [1110], "start_point": {"row": 216, "column": 17}, "end_point": {"row": 216, "column": 28}}, {"id": 1110, "type": "identifier", "text": "_sounds", "parent": 1109, "children": [], "start_point": {"row": 216, "column": 17}, "end_point": {"row": 216, "column": 24}}, {"id": 1111, "type": "argument_list", "text": "()", "parent": 1108, "children": [], "start_point": {"row": 216, "column": 28}, "end_point": {"row": 216, "column": 30}}, {"id": 1112, "type": "return_statement", "text": "return fi-_sounds.begin();", "parent": 1103, "children": [1113], "start_point": {"row": 218, "column": 3}, "end_point": {"row": 218, "column": 29}}, {"id": 1113, "type": "binary_expression", "text": "fi-_sounds.begin()", "parent": 1112, "children": [1114, 1115, 1116], "start_point": {"row": 218, "column": 10}, "end_point": {"row": 218, "column": 28}}, {"id": 1114, "type": "identifier", "text": "fi", "parent": 1113, "children": [], "start_point": {"row": 218, "column": 10}, "end_point": {"row": 218, "column": 12}}, {"id": 1115, "type": "-", "text": "-", "parent": 1113, "children": [], "start_point": {"row": 218, "column": 12}, "end_point": {"row": 218, "column": 13}}, {"id": 1116, "type": "call_expression", "text": "_sounds.begin()", "parent": 1113, "children": [1117, 1119], "start_point": {"row": 218, "column": 13}, "end_point": {"row": 218, "column": 28}}, {"id": 1117, "type": "field_expression", "text": "_sounds.begin", "parent": 1116, "children": [1118], "start_point": {"row": 218, "column": 13}, "end_point": {"row": 218, "column": 26}}, {"id": 1118, "type": "identifier", "text": "_sounds", "parent": 1117, "children": [], "start_point": {"row": 218, "column": 13}, "end_point": {"row": 218, "column": 20}}, {"id": 1119, "type": "argument_list", "text": "()", "parent": 1116, "children": [], "start_point": {"row": 218, "column": 26}, "end_point": {"row": 218, "column": 28}}, {"id": 1120, "type": "return_statement", "text": "return -1;", "parent": 1074, "children": [1121], "start_point": {"row": 220, "column": 2}, "end_point": {"row": 220, "column": 12}}, {"id": 1121, "type": "number_literal", "text": "-1", "parent": 1120, "children": [], "start_point": {"row": 220, "column": 9}, "end_point": {"row": 220, "column": 11}}, {"id": 1122, "type": "function_definition", "text": "CSoundItem* GetSound(int idx){\r\n return _sounds[idx];\r\n }", "parent": 53, "children": [1123, 1124], "start_point": {"row": 223, "column": 4}, "end_point": {"row": 225, "column": 5}}, {"id": 1123, "type": "type_identifier", "text": "CSoundItem", "parent": 1122, "children": [], "start_point": {"row": 223, "column": 4}, "end_point": {"row": 223, "column": 14}}, {"id": 1124, "type": "pointer_declarator", "text": "* GetSound(int idx)", "parent": 1122, "children": [1125, 1126], "start_point": {"row": 223, "column": 14}, "end_point": {"row": 223, "column": 35}}, {"id": 1125, "type": "*", "text": "*", "parent": 1124, "children": [], "start_point": {"row": 223, "column": 14}, "end_point": {"row": 223, "column": 15}}, {"id": 1126, "type": "function_declarator", "text": "GetSound(int idx)", "parent": 1124, "children": [1127, 1128], "start_point": {"row": 223, "column": 18}, "end_point": {"row": 223, "column": 35}}, {"id": 1127, "type": "identifier", "text": "GetSound", "parent": 1126, "children": [], "start_point": {"row": 223, "column": 18}, "end_point": {"row": 223, "column": 26}}, {"id": 1128, "type": "parameter_list", "text": "(int idx)", "parent": 1126, "children": [1129], "start_point": {"row": 223, "column": 26}, "end_point": {"row": 223, "column": 35}}, {"id": 1129, "type": "parameter_declaration", "text": "int idx", "parent": 1128, "children": [1130, 1131], "start_point": {"row": 223, "column": 27}, "end_point": {"row": 223, "column": 34}}, {"id": 1130, "type": "primitive_type", "text": "int", "parent": 1129, "children": [], "start_point": {"row": 223, "column": 27}, "end_point": {"row": 223, "column": 30}}, {"id": 1131, "type": "identifier", "text": "idx", "parent": 1129, "children": [], "start_point": {"row": 223, "column": 31}, "end_point": {"row": 223, "column": 34}}, {"id": 1132, "type": "return_statement", "text": "return _sounds[idx];", "parent": 1122, "children": [1133], "start_point": {"row": 224, "column": 8}, "end_point": {"row": 224, "column": 28}}, {"id": 1133, "type": "subscript_expression", "text": "_sounds[idx]", "parent": 1132, "children": [1134, 1135], "start_point": {"row": 224, "column": 15}, "end_point": {"row": 224, "column": 27}}, {"id": 1134, "type": "identifier", "text": "_sounds", "parent": 1133, "children": [], "start_point": {"row": 224, "column": 15}, "end_point": {"row": 224, "column": 22}}, {"id": 1135, "type": "identifier", "text": "idx", "parent": 1133, "children": [], "start_point": {"row": 224, "column": 23}, "end_point": {"row": 224, "column": 26}}, {"id": 1136, "type": "function_definition", "text": "BOOL HasCats(){return _gamecats.size()!=0;}", "parent": 53, "children": [1137, 1138], "start_point": {"row": 228, "column": 4}, "end_point": {"row": 228, "column": 50}}, {"id": 1137, "type": "type_identifier", "text": "BOOL", "parent": 1136, "children": [], "start_point": {"row": 228, "column": 4}, "end_point": {"row": 228, "column": 8}}, {"id": 1138, "type": "function_declarator", "text": "HasCats()", "parent": 1136, "children": [1139, 1140], "start_point": {"row": 228, "column": 12}, "end_point": {"row": 228, "column": 21}}, {"id": 1139, "type": "identifier", "text": "HasCats", "parent": 1138, "children": [], "start_point": {"row": 228, "column": 12}, "end_point": {"row": 228, "column": 19}}, {"id": 1140, "type": "parameter_list", "text": "()", "parent": 1138, "children": [], "start_point": {"row": 228, "column": 19}, "end_point": {"row": 228, "column": 21}}, {"id": 1141, "type": "return_statement", "text": "return _gamecats.size()!=0;", "parent": 1136, "children": [1142], "start_point": {"row": 228, "column": 22}, "end_point": {"row": 228, "column": 49}}, {"id": 1142, "type": "binary_expression", "text": "_gamecats.size()!=0", "parent": 1141, "children": [1143, 1148, 1149], "start_point": {"row": 228, "column": 29}, "end_point": {"row": 228, "column": 48}}, {"id": 1143, "type": "call_expression", "text": "_gamecats.size()", "parent": 1142, "children": [1144, 1147], "start_point": {"row": 228, "column": 29}, "end_point": {"row": 228, "column": 45}}, {"id": 1144, "type": "field_expression", "text": "_gamecats.size", "parent": 1143, "children": [1145, 1146], "start_point": {"row": 228, "column": 29}, "end_point": {"row": 228, "column": 43}}, {"id": 1145, "type": "identifier", "text": "_gamecats", "parent": 1144, "children": [], "start_point": {"row": 228, "column": 29}, "end_point": {"row": 228, "column": 38}}, {"id": 1146, "type": "field_identifier", "text": "size", "parent": 1144, "children": [], "start_point": {"row": 228, "column": 39}, "end_point": {"row": 228, "column": 43}}, {"id": 1147, "type": "argument_list", "text": "()", "parent": 1143, "children": [], "start_point": {"row": 228, "column": 43}, "end_point": {"row": 228, "column": 45}}, {"id": 1148, "type": "!=", "text": "!=", "parent": 1142, "children": [], "start_point": {"row": 228, "column": 45}, "end_point": {"row": 228, "column": 47}}, {"id": 1149, "type": "number_literal", "text": "0", "parent": 1142, "children": [], "start_point": {"row": 228, "column": 47}, "end_point": {"row": 228, "column": 48}}, {"id": 1150, "type": "declaration", "text": "BOOL SearchCats(const char* fileName);", "parent": 53, "children": [1151, 1152], "start_point": {"row": 229, "column": 4}, "end_point": {"row": 229, "column": 45}}, {"id": 1151, "type": "type_identifier", "text": "BOOL", "parent": 1150, "children": [], "start_point": {"row": 229, "column": 4}, "end_point": {"row": 229, "column": 8}}, {"id": 1152, "type": "function_declarator", "text": "SearchCats(const char* fileName)", "parent": 1150, "children": [1153, 1154], "start_point": {"row": 229, "column": 12}, "end_point": {"row": 229, "column": 44}}, {"id": 1153, "type": "identifier", "text": "SearchCats", "parent": 1152, "children": [], "start_point": {"row": 229, "column": 12}, "end_point": {"row": 229, "column": 22}}, {"id": 1154, "type": "parameter_list", "text": "(const char* fileName)", "parent": 1152, "children": [1155], "start_point": {"row": 229, "column": 22}, "end_point": {"row": 229, "column": 44}}, {"id": 1155, "type": "parameter_declaration", "text": "const char* fileName", "parent": 1154, "children": [1156, 1157], "start_point": {"row": 229, "column": 23}, "end_point": {"row": 229, "column": 43}}, {"id": 1156, "type": "primitive_type", "text": "char", "parent": 1155, "children": [], "start_point": {"row": 229, "column": 29}, "end_point": {"row": 229, "column": 33}}, {"id": 1157, "type": "pointer_declarator", "text": "* fileName", "parent": 1155, "children": [1158, 1159], "start_point": {"row": 229, "column": 33}, "end_point": {"row": 229, "column": 43}}, {"id": 1158, "type": "*", "text": "*", "parent": 1157, "children": [], "start_point": {"row": 229, "column": 33}, "end_point": {"row": 229, "column": 34}}, {"id": 1159, "type": "identifier", "text": "fileName", "parent": 1157, "children": [], "start_point": {"row": 229, "column": 35}, "end_point": {"row": 229, "column": 43}}, {"id": 1160, "type": "declaration", "text": "void ClearCats();", "parent": 53, "children": [1161, 1162], "start_point": {"row": 230, "column": 4}, "end_point": {"row": 230, "column": 24}}, {"id": 1161, "type": "primitive_type", "text": "void", "parent": 1160, "children": [], "start_point": {"row": 230, "column": 4}, "end_point": {"row": 230, "column": 8}}, {"id": 1162, "type": "function_declarator", "text": "ClearCats()", "parent": 1160, "children": [1163, 1164], "start_point": {"row": 230, "column": 12}, "end_point": {"row": 230, "column": 23}}, {"id": 1163, "type": "identifier", "text": "ClearCats", "parent": 1162, "children": [], "start_point": {"row": 230, "column": 12}, "end_point": {"row": 230, "column": 21}}, {"id": 1164, "type": "parameter_list", "text": "()", "parent": 1162, "children": [], "start_point": {"row": 230, "column": 21}, "end_point": {"row": 230, "column": 23}}, {"id": 1165, "type": "binary_expression", "text": "vvector<ItemCat>* GetCats()", "parent": 53, "children": [1166, 1170, 1171], "start_point": {"row": 231, "column": 4}, "end_point": {"row": 231, "column": 31}}, {"id": 1166, "type": "binary_expression", "text": "vvector<ItemCat", "parent": 1165, "children": [1167, 1168, 1169], "start_point": {"row": 231, "column": 4}, "end_point": {"row": 231, "column": 19}}, {"id": 1167, "type": "identifier", "text": "vvector", "parent": 1166, "children": [], "start_point": {"row": 231, "column": 4}, "end_point": {"row": 231, "column": 11}}, {"id": 1168, "type": "<", "text": "<", "parent": 1166, "children": [], "start_point": {"row": 231, "column": 11}, "end_point": {"row": 231, "column": 12}}, {"id": 1169, "type": "identifier", "text": "ItemCat", "parent": 1166, "children": [], "start_point": {"row": 231, "column": 12}, "end_point": {"row": 231, "column": 19}}, {"id": 1170, "type": ">", "text": ">", "parent": 1165, "children": [], "start_point": {"row": 231, "column": 19}, "end_point": {"row": 231, "column": 20}}, {"id": 1171, "type": "pointer_expression", "text": "* GetCats()", "parent": 1165, "children": [1172, 1173], "start_point": {"row": 231, "column": 20}, "end_point": {"row": 231, "column": 31}}, {"id": 1172, "type": "*", "text": "*", "parent": 1171, "children": [], "start_point": {"row": 231, "column": 20}, "end_point": {"row": 231, "column": 21}}, {"id": 1173, "type": "call_expression", "text": "GetCats()", "parent": 1171, "children": [1174, 1175], "start_point": {"row": 231, "column": 22}, "end_point": {"row": 231, "column": 31}}, {"id": 1174, "type": "identifier", "text": "GetCats", "parent": 1173, "children": [], "start_point": {"row": 231, "column": 22}, "end_point": {"row": 231, "column": 29}}, {"id": 1175, "type": "argument_list", "text": "()", "parent": 1173, "children": [], "start_point": {"row": 231, "column": 29}, "end_point": {"row": 231, "column": 31}}, {"id": 1176, "type": "return_statement", "text": "return &_gamecats;", "parent": 53, "children": [1177], "start_point": {"row": 231, "column": 32}, "end_point": {"row": 231, "column": 50}}, {"id": 1177, "type": "pointer_expression", "text": "&_gamecats", "parent": 1176, "children": [1178], "start_point": {"row": 231, "column": 39}, "end_point": {"row": 231, "column": 49}}, {"id": 1178, "type": "identifier", "text": "_gamecats", "parent": 1177, "children": [], "start_point": {"row": 231, "column": 40}, "end_point": {"row": 231, "column": 49}}, {"id": 1179, "type": "function_definition", "text": "ItemCat* GetCat(const char* catname)\r\n {\r\n FOREACH(vvector<ItemCat>,_gamecats,pc)\r\n {\r\n if(!strcmp(pc->_catname,catname)){\r\n return &(*pc);\r\n }\r\n }\r\n return 0;\r\n }", "parent": 53, "children": [1180, 1181], "start_point": {"row": 232, "column": 4}, "end_point": {"row": 241, "column": 5}}, {"id": 1180, "type": "type_identifier", "text": "ItemCat", "parent": 1179, "children": [], "start_point": {"row": 232, "column": 4}, "end_point": {"row": 232, "column": 11}}, {"id": 1181, "type": "pointer_declarator", "text": "* GetCat(const char* catname)", "parent": 1179, "children": [1182, 1183], "start_point": {"row": 232, "column": 11}, "end_point": {"row": 232, "column": 40}}, {"id": 1182, "type": "*", "text": "*", "parent": 1181, "children": [], "start_point": {"row": 232, "column": 11}, "end_point": {"row": 232, "column": 12}}, {"id": 1183, "type": "function_declarator", "text": "GetCat(const char* catname)", "parent": 1181, "children": [1184, 1185], "start_point": {"row": 232, "column": 13}, "end_point": {"row": 232, "column": 40}}, {"id": 1184, "type": "identifier", "text": "GetCat", "parent": 1183, "children": [], "start_point": {"row": 232, "column": 13}, "end_point": {"row": 232, "column": 19}}, {"id": 1185, "type": "parameter_list", "text": "(const char* catname)", "parent": 1183, "children": [1186], "start_point": {"row": 232, "column": 19}, "end_point": {"row": 232, "column": 40}}, {"id": 1186, "type": "parameter_declaration", "text": "const char* catname", "parent": 1185, "children": [1187, 1188], "start_point": {"row": 232, "column": 20}, "end_point": {"row": 232, "column": 39}}, {"id": 1187, "type": "primitive_type", "text": "char", "parent": 1186, "children": [], "start_point": {"row": 232, "column": 26}, "end_point": {"row": 232, "column": 30}}, {"id": 1188, "type": "pointer_declarator", "text": "* catname", "parent": 1186, "children": [1189, 1190], "start_point": {"row": 232, "column": 30}, "end_point": {"row": 232, "column": 39}}, {"id": 1189, "type": "*", "text": "*", "parent": 1188, "children": [], "start_point": {"row": 232, "column": 30}, "end_point": {"row": 232, "column": 31}}, {"id": 1190, "type": "identifier", "text": "catname", "parent": 1188, "children": [], "start_point": {"row": 232, "column": 32}, "end_point": {"row": 232, "column": 39}}, {"id": 1191, "type": "call_expression", "text": "FOREACH(vvector<ItemCat>,_gamecats,pc)", "parent": 1179, "children": [1192, 1193], "start_point": {"row": 234, "column": 8}, "end_point": {"row": 234, "column": 46}}, {"id": 1192, "type": "identifier", "text": "FOREACH", "parent": 1191, "children": [], "start_point": {"row": 234, "column": 8}, "end_point": {"row": 234, "column": 15}}, {"id": 1193, "type": "argument_list", "text": "(vvector<ItemCat>,_gamecats,pc)", "parent": 1191, "children": [1194, 1201], "start_point": {"row": 234, "column": 15}, "end_point": {"row": 234, "column": 46}}, {"id": 1194, "type": "binary_expression", "text": "vvector<ItemCat>,_gamecats", "parent": 1193, "children": [1195, 1199, 1200], "start_point": {"row": 234, "column": 16}, "end_point": {"row": 234, "column": 42}}, {"id": 1195, "type": "binary_expression", "text": "vvector<ItemCat", "parent": 1194, "children": [1196, 1197, 1198], "start_point": {"row": 234, "column": 16}, "end_point": {"row": 234, "column": 31}}, {"id": 1196, "type": "identifier", "text": "vvector", "parent": 1195, "children": [], "start_point": {"row": 234, "column": 16}, "end_point": {"row": 234, "column": 23}}, {"id": 1197, "type": "<", "text": "<", "parent": 1195, "children": [], "start_point": {"row": 234, "column": 23}, "end_point": {"row": 234, "column": 24}}, {"id": 1198, "type": "identifier", "text": "ItemCat", "parent": 1195, "children": [], "start_point": {"row": 234, "column": 24}, "end_point": {"row": 234, "column": 31}}, {"id": 1199, "type": ">", "text": ">", "parent": 1194, "children": [], "start_point": {"row": 234, "column": 31}, "end_point": {"row": 234, "column": 32}}, {"id": 1200, "type": "identifier", "text": "_gamecats", "parent": 1194, "children": [], "start_point": {"row": 234, "column": 33}, "end_point": {"row": 234, "column": 42}}, {"id": 1201, "type": "identifier", "text": "pc", "parent": 1193, "children": [], "start_point": {"row": 234, "column": 43}, "end_point": {"row": 234, "column": 45}}, {"id": 1202, "type": "if_statement", "text": "if(!strcmp(pc->_catname,catname)){\r\n return &(*pc);\r\n }", "parent": 1179, "children": [1203], "start_point": {"row": 236, "column": 12}, "end_point": {"row": 238, "column": 13}}, {"id": 1203, "type": "parenthesized_expression", "text": "(!strcmp(pc->_catname,catname))", "parent": 1202, "children": [1204], "start_point": {"row": 236, "column": 14}, "end_point": {"row": 236, "column": 45}}, {"id": 1204, "type": "unary_expression", "text": "!strcmp(pc->_catname,catname)", "parent": 1203, "children": [1205, 1206], "start_point": {"row": 236, "column": 15}, "end_point": {"row": 236, "column": 44}}, {"id": 1205, "type": "!", "text": "!", "parent": 1204, "children": [], "start_point": {"row": 236, "column": 15}, "end_point": {"row": 236, "column": 16}}, {"id": 1206, "type": "call_expression", "text": "strcmp(pc->_catname,catname)", "parent": 1204, "children": [1207, 1208], "start_point": {"row": 236, "column": 16}, "end_point": {"row": 236, "column": 44}}, {"id": 1207, "type": "identifier", "text": "strcmp", "parent": 1206, "children": [], "start_point": {"row": 236, "column": 16}, "end_point": {"row": 236, "column": 22}}, {"id": 1208, "type": "argument_list", "text": "(pc->_catname,catname)", "parent": 1206, "children": [1209, 1212], "start_point": {"row": 236, "column": 22}, "end_point": {"row": 236, "column": 44}}, {"id": 1209, "type": "field_expression", "text": "pc->_catname", "parent": 1208, "children": [1210, 1211], "start_point": {"row": 236, "column": 23}, "end_point": {"row": 236, "column": 35}}, {"id": 1210, "type": "identifier", "text": "pc", "parent": 1209, "children": [], "start_point": {"row": 236, "column": 23}, "end_point": {"row": 236, "column": 25}}, {"id": 1211, "type": "field_identifier", "text": "_catname", "parent": 1209, "children": [], "start_point": {"row": 236, "column": 27}, "end_point": {"row": 236, "column": 35}}, {"id": 1212, "type": "identifier", "text": "catname", "parent": 1208, "children": [], "start_point": {"row": 236, "column": 36}, "end_point": {"row": 236, "column": 43}}, {"id": 1213, "type": "return_statement", "text": "return &(*pc);", "parent": 1202, "children": [1214], "start_point": {"row": 237, "column": 16}, "end_point": {"row": 237, "column": 30}}, {"id": 1214, "type": "pointer_expression", "text": "&(*pc)", "parent": 1213, "children": [1215], "start_point": {"row": 237, "column": 23}, "end_point": {"row": 237, "column": 29}}, {"id": 1215, "type": "parenthesized_expression", "text": "(*pc)", "parent": 1214, "children": [1216], "start_point": {"row": 237, "column": 24}, "end_point": {"row": 237, "column": 29}}, {"id": 1216, "type": "pointer_expression", "text": "*pc", "parent": 1215, "children": [1217, 1218], "start_point": {"row": 237, "column": 25}, "end_point": {"row": 237, "column": 28}}, {"id": 1217, "type": "*", "text": "*", "parent": 1216, "children": [], "start_point": {"row": 237, "column": 25}, "end_point": {"row": 237, "column": 26}}, {"id": 1218, "type": "identifier", "text": "pc", "parent": 1216, "children": [], "start_point": {"row": 237, "column": 26}, "end_point": {"row": 237, "column": 28}}, {"id": 1219, "type": "return_statement", "text": "return 0;", "parent": 1179, "children": [1220], "start_point": {"row": 240, "column": 8}, "end_point": {"row": 240, "column": 17}}, {"id": 1220, "type": "number_literal", "text": "0", "parent": 1219, "children": [], "start_point": {"row": 240, "column": 15}, "end_point": {"row": 240, "column": 16}}, {"id": 1221, "type": "binary_expression", "text": "CBigTerrain& Terrain()", "parent": 53, "children": [1222, 1223], "start_point": {"row": 243, "column": 4}, "end_point": {"row": 243, "column": 29}}, {"id": 1222, "type": "identifier", "text": "CBigTerrain", "parent": 1221, "children": [], "start_point": {"row": 243, "column": 4}, "end_point": {"row": 243, "column": 15}}, {"id": 1223, "type": "call_expression", "text": "Terrain()", "parent": 1221, "children": [1224, 1225], "start_point": {"row": 243, "column": 20}, "end_point": {"row": 243, "column": 29}}, {"id": 1224, "type": "identifier", "text": "Terrain", "parent": 1223, "children": [], "start_point": {"row": 243, "column": 20}, "end_point": {"row": 243, "column": 27}}, {"id": 1225, "type": "argument_list", "text": "()", "parent": 1223, "children": [], "start_point": {"row": 243, "column": 27}, "end_point": {"row": 243, "column": 29}}, {"id": 1226, "type": "return_statement", "text": "return _terrain;", "parent": 53, "children": [1227], "start_point": {"row": 243, "column": 30}, "end_point": {"row": 243, "column": 46}}, {"id": 1227, "type": "identifier", "text": "_terrain", "parent": 1226, "children": [], "start_point": {"row": 243, "column": 37}, "end_point": {"row": 243, "column": 45}}, {"id": 1228, "type": "comma_expression", "text": "map<string ,string>& Descriptions()", "parent": 53, "children": [1229, 1233], "start_point": {"row": 244, "column": 4}, "end_point": {"row": 244, "column": 39}}, {"id": 1229, "type": "binary_expression", "text": "map<string", "parent": 1228, "children": [1230, 1231, 1232], "start_point": {"row": 244, "column": 4}, "end_point": {"row": 244, "column": 14}}, {"id": 1230, "type": "identifier", "text": "map", "parent": 1229, "children": [], "start_point": {"row": 244, "column": 4}, "end_point": {"row": 244, "column": 7}}, {"id": 1231, "type": "<", "text": "<", "parent": 1229, "children": [], "start_point": {"row": 244, "column": 7}, "end_point": {"row": 244, "column": 8}}, {"id": 1232, "type": "identifier", "text": "string", "parent": 1229, "children": [], "start_point": {"row": 244, "column": 8}, "end_point": {"row": 244, "column": 14}}, {"id": 1233, "type": "binary_expression", "text": "string>& Descriptions()", "parent": 1228, "children": [1234, 1235, 1236], "start_point": {"row": 244, "column": 16}, "end_point": {"row": 244, "column": 39}}, {"id": 1234, "type": "identifier", "text": "string", "parent": 1233, "children": [], "start_point": {"row": 244, "column": 16}, "end_point": {"row": 244, "column": 22}}, {"id": 1235, "type": ">", "text": ">", "parent": 1233, "children": [], "start_point": {"row": 244, "column": 22}, "end_point": {"row": 244, "column": 23}}, {"id": 1236, "type": "pointer_expression", "text": "& Descriptions()", "parent": 1233, "children": [1237], "start_point": {"row": 244, "column": 23}, "end_point": {"row": 244, "column": 39}}, {"id": 1237, "type": "call_expression", "text": "Descriptions()", "parent": 1236, "children": [1238, 1239], "start_point": {"row": 244, "column": 25}, "end_point": {"row": 244, "column": 39}}, {"id": 1238, "type": "identifier", "text": "Descriptions", "parent": 1237, "children": [], "start_point": {"row": 244, "column": 25}, "end_point": {"row": 244, "column": 37}}, {"id": 1239, "type": "argument_list", "text": "()", "parent": 1237, "children": [], "start_point": {"row": 244, "column": 37}, "end_point": {"row": 244, "column": 39}}, {"id": 1240, "type": "return_statement", "text": "return _descs;", "parent": 53, "children": [1241], "start_point": {"row": 244, "column": 41}, "end_point": {"row": 244, "column": 56}}, {"id": 1241, "type": "identifier", "text": "_descs", "parent": 1240, "children": [], "start_point": {"row": 244, "column": 49}, "end_point": {"row": 244, "column": 55}}, {"id": 1242, "type": "function_definition", "text": "void SetCam(const V3& pos, const V3& elr){_campos=pos; _cameuler=elr;}", "parent": 53, "children": [1243, 1244], "start_point": {"row": 245, "column": 4}, "end_point": {"row": 245, "column": 74}}, {"id": 1243, "type": "primitive_type", "text": "void", "parent": 1242, "children": [], "start_point": {"row": 245, "column": 4}, "end_point": {"row": 245, "column": 8}}, {"id": 1244, "type": "function_declarator", "text": "SetCam(const V3& pos, const V3& elr)", "parent": 1242, "children": [1245, 1246], "start_point": {"row": 245, "column": 9}, "end_point": {"row": 245, "column": 45}}, {"id": 1245, "type": "identifier", "text": "SetCam", "parent": 1244, "children": [], "start_point": {"row": 245, "column": 9}, "end_point": {"row": 245, "column": 15}}, {"id": 1246, "type": "parameter_list", "text": "(const V3& pos, const V3& elr)", "parent": 1244, "children": [1247, 1250], "start_point": {"row": 245, "column": 15}, "end_point": {"row": 245, "column": 45}}, {"id": 1247, "type": "parameter_declaration", "text": "const V3& pos", "parent": 1246, "children": [1248, 1249], "start_point": {"row": 245, "column": 16}, "end_point": {"row": 245, "column": 29}}, {"id": 1248, "type": "type_identifier", "text": "V3", "parent": 1247, "children": [], "start_point": {"row": 245, "column": 22}, "end_point": {"row": 245, "column": 24}}, {"id": 1249, "type": "identifier", "text": "pos", "parent": 1247, "children": [], "start_point": {"row": 245, "column": 26}, "end_point": {"row": 245, "column": 29}}, {"id": 1250, "type": "parameter_declaration", "text": "const V3& elr", "parent": 1246, "children": [1251, 1252], "start_point": {"row": 245, "column": 31}, "end_point": {"row": 245, "column": 44}}, {"id": 1251, "type": "type_identifier", "text": "V3", "parent": 1250, "children": [], "start_point": {"row": 245, "column": 37}, "end_point": {"row": 245, "column": 39}}, {"id": 1252, "type": "identifier", "text": "elr", "parent": 1250, "children": [], "start_point": {"row": 245, "column": 41}, "end_point": {"row": 245, "column": 44}}, {"id": 1253, "type": "assignment_expression", "text": "_campos=pos", "parent": 1242, "children": [1254, 1255, 1256], "start_point": {"row": 245, "column": 46}, "end_point": {"row": 245, "column": 57}}, {"id": 1254, "type": "identifier", "text": "_campos", "parent": 1253, "children": [], "start_point": {"row": 245, "column": 46}, "end_point": {"row": 245, "column": 53}}, {"id": 1255, "type": "=", "text": "=", "parent": 1253, "children": [], "start_point": {"row": 245, "column": 53}, "end_point": {"row": 245, "column": 54}}, {"id": 1256, "type": "identifier", "text": "pos", "parent": 1253, "children": [], "start_point": {"row": 245, "column": 54}, "end_point": {"row": 245, "column": 57}}, {"id": 1257, "type": "assignment_expression", "text": "_cameuler=elr", "parent": 1242, "children": [1258, 1259, 1260], "start_point": {"row": 245, "column": 59}, "end_point": {"row": 245, "column": 72}}, {"id": 1258, "type": "identifier", "text": "_cameuler", "parent": 1257, "children": [], "start_point": {"row": 245, "column": 59}, "end_point": {"row": 245, "column": 68}}, {"id": 1259, "type": "=", "text": "=", "parent": 1257, "children": [], "start_point": {"row": 245, "column": 68}, "end_point": {"row": 245, "column": 69}}, {"id": 1260, "type": "identifier", "text": "elr", "parent": 1257, "children": [], "start_point": {"row": 245, "column": 69}, "end_point": {"row": 245, "column": 72}}, {"id": 1261, "type": "labeled_statement", "text": "private:\r\n\r\n BOOL ParseSection(string& errors, vvector<char*>& classes, vvector<char*>& items);", "parent": 53, "children": [1262], "start_point": {"row": 246, "column": 0}, "end_point": {"row": 248, "column": 89}}, {"id": 1262, "type": "declaration", "text": "BOOL ParseSection(string& errors, vvector<char*>& classes, vvector<char*>& items);", "parent": 1261, "children": [1263, 1264], "start_point": {"row": 248, "column": 4}, "end_point": {"row": 248, "column": 89}}, {"id": 1263, "type": "type_identifier", "text": "BOOL", "parent": 1262, "children": [], "start_point": {"row": 248, "column": 4}, "end_point": {"row": 248, "column": 8}}, {"id": 1264, "type": "function_declarator", "text": "ParseSection(string& errors, vvector<char*>& classes, vvector<char*>& items)", "parent": 1262, "children": [1265, 1266], "start_point": {"row": 248, "column": 12}, "end_point": {"row": 248, "column": 88}}, {"id": 1265, "type": "identifier", "text": "ParseSection", "parent": 1264, "children": [], "start_point": {"row": 248, "column": 12}, "end_point": {"row": 248, "column": 24}}, {"id": 1266, "type": "parameter_list", "text": "(string& errors, vvector<char*>& classes, vvector<char*>& items)", "parent": 1264, "children": [1267, 1270, 1280], "start_point": {"row": 248, "column": 24}, "end_point": {"row": 248, "column": 88}}, {"id": 1267, "type": "parameter_declaration", "text": "string& errors", "parent": 1266, "children": [1268, 1269], "start_point": {"row": 248, "column": 25}, "end_point": {"row": 248, "column": 39}}, {"id": 1268, "type": "type_identifier", "text": "string", "parent": 1267, "children": [], "start_point": {"row": 248, "column": 25}, "end_point": {"row": 248, "column": 31}}, {"id": 1269, "type": "identifier", "text": "errors", "parent": 1267, "children": [], "start_point": {"row": 248, "column": 33}, "end_point": {"row": 248, "column": 39}}, {"id": 1270, "type": "parameter_declaration", "text": "vvector<char*>& classes", "parent": 1266, "children": [1271, 1272, 1275], "start_point": {"row": 248, "column": 41}, "end_point": {"row": 248, "column": 64}}, {"id": 1271, "type": "type_identifier", "text": "vvector", "parent": 1270, "children": [], "start_point": {"row": 248, "column": 41}, "end_point": {"row": 248, "column": 48}}, {"id": 1272, "type": "ERROR", "text": "<char", "parent": 1270, "children": [1273, 1274], "start_point": {"row": 248, "column": 48}, "end_point": {"row": 248, "column": 53}}, {"id": 1273, "type": "<", "text": "<", "parent": 1272, "children": [], "start_point": {"row": 248, "column": 48}, "end_point": {"row": 248, "column": 49}}, {"id": 1274, "type": "primitive_type", "text": "char", "parent": 1272, "children": [], "start_point": {"row": 248, "column": 49}, "end_point": {"row": 248, "column": 53}}, {"id": 1275, "type": "pointer_declarator", "text": "*>& classes", "parent": 1270, "children": [1276, 1277, 1279], "start_point": {"row": 248, "column": 53}, "end_point": {"row": 248, "column": 64}}, {"id": 1276, "type": "*", "text": "*", "parent": 1275, "children": [], "start_point": {"row": 248, "column": 53}, "end_point": {"row": 248, "column": 54}}, {"id": 1277, "type": "ERROR", "text": ">&", "parent": 1275, "children": [1278], "start_point": {"row": 248, "column": 54}, "end_point": {"row": 248, "column": 56}}, {"id": 1278, "type": ">", "text": ">", "parent": 1277, "children": [], "start_point": {"row": 248, "column": 54}, "end_point": {"row": 248, "column": 55}}, {"id": 1279, "type": "identifier", "text": "classes", "parent": 1275, "children": [], "start_point": {"row": 248, "column": 57}, "end_point": {"row": 248, "column": 64}}, {"id": 1280, "type": "parameter_declaration", "text": "vvector<char*>& items", "parent": 1266, "children": [1281, 1282, 1285], "start_point": {"row": 248, "column": 66}, "end_point": {"row": 248, "column": 87}}, {"id": 1281, "type": "type_identifier", "text": "vvector", "parent": 1280, "children": [], "start_point": {"row": 248, "column": 66}, "end_point": {"row": 248, "column": 73}}, {"id": 1282, "type": "ERROR", "text": "<char", "parent": 1280, "children": [1283, 1284], "start_point": {"row": 248, "column": 73}, "end_point": {"row": 248, "column": 78}}, {"id": 1283, "type": "<", "text": "<", "parent": 1282, "children": [], "start_point": {"row": 248, "column": 73}, "end_point": {"row": 248, "column": 74}}, {"id": 1284, "type": "primitive_type", "text": "char", "parent": 1282, "children": [], "start_point": {"row": 248, "column": 74}, "end_point": {"row": 248, "column": 78}}, {"id": 1285, "type": "pointer_declarator", "text": "*>& items", "parent": 1280, "children": [1286, 1287, 1289], "start_point": {"row": 248, "column": 78}, "end_point": {"row": 248, "column": 87}}, {"id": 1286, "type": "*", "text": "*", "parent": 1285, "children": [], "start_point": {"row": 248, "column": 78}, "end_point": {"row": 248, "column": 79}}, {"id": 1287, "type": "ERROR", "text": ">&", "parent": 1285, "children": [1288], "start_point": {"row": 248, "column": 79}, "end_point": {"row": 248, "column": 81}}, {"id": 1288, "type": ">", "text": ">", "parent": 1287, "children": [], "start_point": {"row": 248, "column": 79}, "end_point": {"row": 248, "column": 80}}, {"id": 1289, "type": "identifier", "text": "items", "parent": 1285, "children": [], "start_point": {"row": 248, "column": 82}, "end_point": {"row": 248, "column": 87}}, {"id": 1290, "type": "labeled_statement", "text": "private:\r\n vvector<Brush*>\t\t\t_primitives;", "parent": 53, "children": [], "start_point": {"row": 251, "column": 0}, "end_point": {"row": 252, "column": 34}}, {"id": 1291, "type": "binary_expression", "text": "vvector<Brush*>\t\t\t_primitives", "parent": 1290, "children": [1292, 1296, 1298, 1299], "start_point": {"row": 252, "column": 4}, "end_point": {"row": 252, "column": 33}}, {"id": 1292, "type": "binary_expression", "text": "vvector<Brush", "parent": 1291, "children": [1293, 1294, 1295], "start_point": {"row": 252, "column": 4}, "end_point": {"row": 252, "column": 17}}, {"id": 1293, "type": "identifier", "text": "vvector", "parent": 1292, "children": [], "start_point": {"row": 252, "column": 4}, "end_point": {"row": 252, "column": 11}}, {"id": 1294, "type": "<", "text": "<", "parent": 1292, "children": [], "start_point": {"row": 252, "column": 11}, "end_point": {"row": 252, "column": 12}}, {"id": 1295, "type": "identifier", "text": "Brush", "parent": 1292, "children": [], "start_point": {"row": 252, "column": 12}, "end_point": {"row": 252, "column": 17}}, {"id": 1296, "type": "ERROR", "text": "*", "parent": 1291, "children": [1297], "start_point": {"row": 252, "column": 17}, "end_point": {"row": 252, "column": 18}}, {"id": 1297, "type": "*", "text": "*", "parent": 1296, "children": [], "start_point": {"row": 252, "column": 17}, "end_point": {"row": 252, "column": 18}}, {"id": 1298, "type": ">", "text": ">", "parent": 1291, "children": [], "start_point": {"row": 252, "column": 18}, "end_point": {"row": 252, "column": 19}}, {"id": 1299, "type": "identifier", "text": "_primitives", "parent": 1291, "children": [], "start_point": {"row": 252, "column": 22}, "end_point": {"row": 252, "column": 33}}, {"id": 1300, "type": "binary_expression", "text": "vvector<Brush*>\t\t\t_brushes", "parent": 53, "children": [1301, 1305, 1307, 1308], "start_point": {"row": 253, "column": 4}, "end_point": {"row": 253, "column": 30}}, {"id": 1301, "type": "binary_expression", "text": "vvector<Brush", "parent": 1300, "children": [1302, 1303, 1304], "start_point": {"row": 253, "column": 4}, "end_point": {"row": 253, "column": 17}}, {"id": 1302, "type": "identifier", "text": "vvector", "parent": 1301, "children": [], "start_point": {"row": 253, "column": 4}, "end_point": {"row": 253, "column": 11}}, {"id": 1303, "type": "<", "text": "<", "parent": 1301, "children": [], "start_point": {"row": 253, "column": 11}, "end_point": {"row": 253, "column": 12}}, {"id": 1304, "type": "identifier", "text": "Brush", "parent": 1301, "children": [], "start_point": {"row": 253, "column": 12}, "end_point": {"row": 253, "column": 17}}, {"id": 1305, "type": "ERROR", "text": "*", "parent": 1300, "children": [1306], "start_point": {"row": 253, "column": 17}, "end_point": {"row": 253, "column": 18}}, {"id": 1306, "type": "*", "text": "*", "parent": 1305, "children": [], "start_point": {"row": 253, "column": 17}, "end_point": {"row": 253, "column": 18}}, {"id": 1307, "type": ">", "text": ">", "parent": 1300, "children": [], "start_point": {"row": 253, "column": 18}, "end_point": {"row": 253, "column": 19}}, {"id": 1308, "type": "identifier", "text": "_brushes", "parent": 1300, "children": [], "start_point": {"row": 253, "column": 22}, "end_point": {"row": 253, "column": 30}}, {"id": 1309, "type": "binary_expression", "text": "vvector<SceItem*>\t\t_items", "parent": 53, "children": [1310, 1314, 1316, 1317], "start_point": {"row": 254, "column": 4}, "end_point": {"row": 254, "column": 29}}, {"id": 1310, "type": "binary_expression", "text": "vvector<SceItem", "parent": 1309, "children": [1311, 1312, 1313], "start_point": {"row": 254, "column": 4}, "end_point": {"row": 254, "column": 19}}, {"id": 1311, "type": "identifier", "text": "vvector", "parent": 1310, "children": [], "start_point": {"row": 254, "column": 4}, "end_point": {"row": 254, "column": 11}}, {"id": 1312, "type": "<", "text": "<", "parent": 1310, "children": [], "start_point": {"row": 254, "column": 11}, "end_point": {"row": 254, "column": 12}}, {"id": 1313, "type": "identifier", "text": "SceItem", "parent": 1310, "children": [], "start_point": {"row": 254, "column": 12}, "end_point": {"row": 254, "column": 19}}, {"id": 1314, "type": "ERROR", "text": "*", "parent": 1309, "children": [1315], "start_point": {"row": 254, "column": 19}, "end_point": {"row": 254, "column": 20}}, {"id": 1315, "type": "*", "text": "*", "parent": 1314, "children": [], "start_point": {"row": 254, "column": 19}, "end_point": {"row": 254, "column": 20}}, {"id": 1316, "type": ">", "text": ">", "parent": 1309, "children": [], "start_point": {"row": 254, "column": 20}, "end_point": {"row": 254, "column": 21}}, {"id": 1317, "type": "identifier", "text": "_items", "parent": 1309, "children": [], "start_point": {"row": 254, "column": 23}, "end_point": {"row": 254, "column": 29}}, {"id": 1318, "type": "binary_expression", "text": "vvector<CMotion*>\t\t_motions", "parent": 53, "children": [1319, 1323, 1325, 1326], "start_point": {"row": 255, "column": 4}, "end_point": {"row": 255, "column": 31}}, {"id": 1319, "type": "binary_expression", "text": "vvector<CMotion", "parent": 1318, "children": [1320, 1321, 1322], "start_point": {"row": 255, "column": 4}, "end_point": {"row": 255, "column": 19}}, {"id": 1320, "type": "identifier", "text": "vvector", "parent": 1319, "children": [], "start_point": {"row": 255, "column": 4}, "end_point": {"row": 255, "column": 11}}, {"id": 1321, "type": "<", "text": "<", "parent": 1319, "children": [], "start_point": {"row": 255, "column": 11}, "end_point": {"row": 255, "column": 12}}, {"id": 1322, "type": "identifier", "text": "CMotion", "parent": 1319, "children": [], "start_point": {"row": 255, "column": 12}, "end_point": {"row": 255, "column": 19}}, {"id": 1323, "type": "ERROR", "text": "*", "parent": 1318, "children": [1324], "start_point": {"row": 255, "column": 19}, "end_point": {"row": 255, "column": 20}}, {"id": 1324, "type": "*", "text": "*", "parent": 1323, "children": [], "start_point": {"row": 255, "column": 19}, "end_point": {"row": 255, "column": 20}}, {"id": 1325, "type": ">", "text": ">", "parent": 1318, "children": [], "start_point": {"row": 255, "column": 20}, "end_point": {"row": 255, "column": 21}}, {"id": 1326, "type": "identifier", "text": "_motions", "parent": 1318, "children": [], "start_point": {"row": 255, "column": 23}, "end_point": {"row": 255, "column": 31}}, {"id": 1327, "type": "binary_expression", "text": "vvector<ScriptItem*>\t_scripts", "parent": 53, "children": [1328, 1332, 1334, 1335], "start_point": {"row": 256, "column": 1}, "end_point": {"row": 256, "column": 30}}, {"id": 1328, "type": "binary_expression", "text": "vvector<ScriptItem", "parent": 1327, "children": [1329, 1330, 1331], "start_point": {"row": 256, "column": 1}, "end_point": {"row": 256, "column": 19}}, {"id": 1329, "type": "identifier", "text": "vvector", "parent": 1328, "children": [], "start_point": {"row": 256, "column": 1}, "end_point": {"row": 256, "column": 8}}, {"id": 1330, "type": "<", "text": "<", "parent": 1328, "children": [], "start_point": {"row": 256, "column": 8}, "end_point": {"row": 256, "column": 9}}, {"id": 1331, "type": "identifier", "text": "ScriptItem", "parent": 1328, "children": [], "start_point": {"row": 256, "column": 9}, "end_point": {"row": 256, "column": 19}}, {"id": 1332, "type": "ERROR", "text": "*", "parent": 1327, "children": [1333], "start_point": {"row": 256, "column": 19}, "end_point": {"row": 256, "column": 20}}, {"id": 1333, "type": "*", "text": "*", "parent": 1332, "children": [], "start_point": {"row": 256, "column": 19}, "end_point": {"row": 256, "column": 20}}, {"id": 1334, "type": ">", "text": ">", "parent": 1327, "children": [], "start_point": {"row": 256, "column": 20}, "end_point": {"row": 256, "column": 21}}, {"id": 1335, "type": "identifier", "text": "_scripts", "parent": 1327, "children": [], "start_point": {"row": 256, "column": 22}, "end_point": {"row": 256, "column": 30}}, {"id": 1336, "type": "binary_expression", "text": "vvector<CSoundItem*> _sounds", "parent": 53, "children": [1337, 1341, 1343, 1344], "start_point": {"row": 257, "column": 4}, "end_point": {"row": 257, "column": 35}}, {"id": 1337, "type": "binary_expression", "text": "vvector<CSoundItem", "parent": 1336, "children": [1338, 1339, 1340], "start_point": {"row": 257, "column": 4}, "end_point": {"row": 257, "column": 22}}, {"id": 1338, "type": "identifier", "text": "vvector", "parent": 1337, "children": [], "start_point": {"row": 257, "column": 4}, "end_point": {"row": 257, "column": 11}}, {"id": 1339, "type": "<", "text": "<", "parent": 1337, "children": [], "start_point": {"row": 257, "column": 11}, "end_point": {"row": 257, "column": 12}}, {"id": 1340, "type": "identifier", "text": "CSoundItem", "parent": 1337, "children": [], "start_point": {"row": 257, "column": 12}, "end_point": {"row": 257, "column": 22}}, {"id": 1341, "type": "ERROR", "text": "*", "parent": 1336, "children": [1342], "start_point": {"row": 257, "column": 22}, "end_point": {"row": 257, "column": 23}}, {"id": 1342, "type": "*", "text": "*", "parent": 1341, "children": [], "start_point": {"row": 257, "column": 22}, "end_point": {"row": 257, "column": 23}}, {"id": 1343, "type": ">", "text": ">", "parent": 1336, "children": [], "start_point": {"row": 257, "column": 23}, "end_point": {"row": 257, "column": 24}}, {"id": 1344, "type": "identifier", "text": "_sounds", "parent": 1336, "children": [], "start_point": {"row": 257, "column": 28}, "end_point": {"row": 257, "column": 35}}, {"id": 1345, "type": "binary_expression", "text": "vvector<ItemCat> _gamecats", "parent": 53, "children": [1346, 1350, 1351], "start_point": {"row": 258, "column": 4}, "end_point": {"row": 258, "column": 37}}, {"id": 1346, "type": "binary_expression", "text": "vvector<ItemCat", "parent": 1345, "children": [1347, 1348, 1349], "start_point": {"row": 258, "column": 4}, "end_point": {"row": 258, "column": 19}}, {"id": 1347, "type": "identifier", "text": "vvector", "parent": 1346, "children": [], "start_point": {"row": 258, "column": 4}, "end_point": {"row": 258, "column": 11}}, {"id": 1348, "type": "<", "text": "<", "parent": 1346, "children": [], "start_point": {"row": 258, "column": 11}, "end_point": {"row": 258, "column": 12}}, {"id": 1349, "type": "identifier", "text": "ItemCat", "parent": 1346, "children": [], "start_point": {"row": 258, "column": 12}, "end_point": {"row": 258, "column": 19}}, {"id": 1350, "type": ">", "text": ">", "parent": 1345, "children": [], "start_point": {"row": 258, "column": 19}, "end_point": {"row": 258, "column": 20}}, {"id": 1351, "type": "identifier", "text": "_gamecats", "parent": 1345, "children": [], "start_point": {"row": 258, "column": 28}, "end_point": {"row": 258, "column": 37}}, {"id": 1352, "type": "declaration", "text": "CBigTerrain _terrain;", "parent": 53, "children": [1353, 1354], "start_point": {"row": 259, "column": 4}, "end_point": {"row": 259, "column": 37}}, {"id": 1353, "type": "type_identifier", "text": "CBigTerrain", "parent": 1352, "children": [], "start_point": {"row": 259, "column": 4}, "end_point": {"row": 259, "column": 15}}, {"id": 1354, "type": "identifier", "text": "_terrain", "parent": 1352, "children": [], "start_point": {"row": 259, "column": 28}, "end_point": {"row": 259, "column": 36}}, {"id": 1355, "type": "comma_expression", "text": "map<string ,string> _descs", "parent": 53, "children": [1356, 1360], "start_point": {"row": 260, "column": 4}, "end_point": {"row": 260, "column": 34}}, {"id": 1356, "type": "binary_expression", "text": "map<string", "parent": 1355, "children": [1357, 1358, 1359], "start_point": {"row": 260, "column": 4}, "end_point": {"row": 260, "column": 14}}, {"id": 1357, "type": "identifier", "text": "map", "parent": 1356, "children": [], "start_point": {"row": 260, "column": 4}, "end_point": {"row": 260, "column": 7}}, {"id": 1358, "type": "<", "text": "<", "parent": 1356, "children": [], "start_point": {"row": 260, "column": 7}, "end_point": {"row": 260, "column": 8}}, {"id": 1359, "type": "identifier", "text": "string", "parent": 1356, "children": [], "start_point": {"row": 260, "column": 8}, "end_point": {"row": 260, "column": 14}}, {"id": 1360, "type": "binary_expression", "text": "string> _descs", "parent": 1355, "children": [1361, 1362, 1363], "start_point": {"row": 260, "column": 16}, "end_point": {"row": 260, "column": 34}}, {"id": 1361, "type": "identifier", "text": "string", "parent": 1360, "children": [], "start_point": {"row": 260, "column": 16}, "end_point": {"row": 260, "column": 22}}, {"id": 1362, "type": ">", "text": ">", "parent": 1360, "children": [], "start_point": {"row": 260, "column": 22}, "end_point": {"row": 260, "column": 23}}, {"id": 1363, "type": "identifier", "text": "_descs", "parent": 1360, "children": [], "start_point": {"row": 260, "column": 28}, "end_point": {"row": 260, "column": 34}}, {"id": 1364, "type": "declaration", "text": "string _errstring;", "parent": 53, "children": [1365, 1366], "start_point": {"row": 261, "column": 4}, "end_point": {"row": 261, "column": 39}}, {"id": 1365, "type": "type_identifier", "text": "string", "parent": 1364, "children": [], "start_point": {"row": 261, "column": 4}, "end_point": {"row": 261, "column": 10}}, {"id": 1366, "type": "identifier", "text": "_errstring", "parent": 1364, "children": [], "start_point": {"row": 261, "column": 28}, "end_point": {"row": 261, "column": 38}}, {"id": 1367, "type": "labeled_statement", "text": "public:\r\n BST_SceneInfo\t\t\t_si;", "parent": 53, "children": [1368], "start_point": {"row": 262, "column": 0}, "end_point": {"row": 263, "column": 24}}, {"id": 1368, "type": "declaration", "text": "BST_SceneInfo\t\t\t_si;", "parent": 1367, "children": [1369, 1370], "start_point": {"row": 263, "column": 4}, "end_point": {"row": 263, "column": 24}}, {"id": 1369, "type": "type_identifier", "text": "BST_SceneInfo", "parent": 1368, "children": [], "start_point": {"row": 263, "column": 4}, "end_point": {"row": 263, "column": 17}}, {"id": 1370, "type": "identifier", "text": "_si", "parent": 1368, "children": [], "start_point": {"row": 263, "column": 20}, "end_point": {"row": 263, "column": 23}}, {"id": 1371, "type": "declaration", "text": "SkyDom\t\t\t\t\t_dom;", "parent": 53, "children": [1372, 1373], "start_point": {"row": 264, "column": 4}, "end_point": {"row": 264, "column": 20}}, {"id": 1372, "type": "type_identifier", "text": "SkyDom", "parent": 1371, "children": [], "start_point": {"row": 264, "column": 4}, "end_point": {"row": 264, "column": 10}}, {"id": 1373, "type": "identifier", "text": "_dom", "parent": 1371, "children": [], "start_point": {"row": 264, "column": 15}, "end_point": {"row": 264, "column": 19}}, {"id": 1374, "type": "declaration", "text": "int _GCarving;", "parent": 53, "children": [1375, 1376], "start_point": {"row": 265, "column": 4}, "end_point": {"row": 265, "column": 38}}, {"id": 1375, "type": "primitive_type", "text": "int", "parent": 1374, "children": [], "start_point": {"row": 265, "column": 4}, "end_point": {"row": 265, "column": 7}}, {"id": 1376, "type": "identifier", "text": "_GCarving", "parent": 1374, "children": [], "start_point": {"row": 265, "column": 28}, "end_point": {"row": 265, "column": 37}}, {"id": 1377, "type": "declaration", "text": "int\t\t\t\t\t\t_dummy[3];", "parent": 53, "children": [1378, 1379], "start_point": {"row": 266, "column": 1}, "end_point": {"row": 266, "column": 20}}, {"id": 1378, "type": "primitive_type", "text": "int", "parent": 1377, "children": [], "start_point": {"row": 266, "column": 1}, "end_point": {"row": 266, "column": 4}}, {"id": 1379, "type": "array_declarator", "text": "_dummy[3]", "parent": 1377, "children": [1380, 1381], "start_point": {"row": 266, "column": 10}, "end_point": {"row": 266, "column": 19}}, {"id": 1380, "type": "identifier", "text": "_dummy", "parent": 1379, "children": [], "start_point": {"row": 266, "column": 10}, "end_point": {"row": 266, "column": 16}}, {"id": 1381, "type": "number_literal", "text": "3", "parent": 1379, "children": [], "start_point": {"row": 266, "column": 17}, "end_point": {"row": 266, "column": 18}}, {"id": 1382, "type": "declaration", "text": "V3 _campos;", "parent": 53, "children": [1383, 1384], "start_point": {"row": 267, "column": 4}, "end_point": {"row": 267, "column": 36}}, {"id": 1383, "type": "type_identifier", "text": "V3", "parent": 1382, "children": [], "start_point": {"row": 267, "column": 4}, "end_point": {"row": 267, "column": 6}}, {"id": 1384, "type": "identifier", "text": "_campos", "parent": 1382, "children": [], "start_point": {"row": 267, "column": 28}, "end_point": {"row": 267, "column": 35}}, {"id": 1385, "type": "declaration", "text": "V3 _cameuler;", "parent": 53, "children": [1386, 1387], "start_point": {"row": 268, "column": 4}, "end_point": {"row": 268, "column": 38}}, {"id": 1386, "type": "type_identifier", "text": "V3", "parent": 1385, "children": [], "start_point": {"row": 268, "column": 4}, "end_point": {"row": 268, "column": 6}}, {"id": 1387, "type": "identifier", "text": "_cameuler", "parent": 1385, "children": [], "start_point": {"row": 268, "column": 28}, "end_point": {"row": 268, "column": 37}}, {"id": 1388, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 272, "column": 0}, "end_point": {"row": 272, "column": 6}}]}, "node_categories": {"declarations": {"functions": [53, 65, 67, 184, 188, 194, 196, 237, 239, 247, 249, 257, 259, 267, 269, 279, 284, 289, 292, 296, 302, 304, 317, 321, 327, 329, 350, 354, 379, 383, 408, 412, 441, 443, 467, 469, 512, 516, 557, 561, 596, 598, 664, 668, 704, 707, 722, 725, 740, 742, 766, 768, 827, 829, 853, 855, 898, 902, 929, 932, 979, 987, 989, 1013, 1015, 1074, 1077, 1122, 1126, 1136, 1138, 1152, 1162, 1179, 1183, 1242, 1244, 1264], "variables": [277, 282, 287, 307, 332, 357, 386, 415, 446, 451, 472, 510, 519, 564, 601, 608, 611, 614, 671, 710, 728, 745, 750, 771, 803, 832, 837, 858, 890, 905, 935, 977, 982, 992, 997, 1018, 1050, 1080, 1129, 1150, 1155, 1160, 1186, 1247, 1250, 1262, 1267, 1270, 1280, 1352, 1364, 1368, 1371, 1374, 1377, 1382, 1385], "classes": [], "imports": [11, 12, 14, 15, 17, 18, 20, 21, 23, 24, 26, 27, 29, 30, 32, 33, 35, 36, 38, 39, 41, 42, 44, 45, 47, 48, 50, 51], "modules": [], "enums": []}, "statements": {"expressions": [2, 59, 62, 70, 73, 77, 80, 85, 91, 97, 103, 109, 113, 120, 126, 132, 138, 144, 150, 156, 162, 168, 174, 179, 191, 199, 202, 205, 208, 211, 214, 217, 220, 223, 224, 228, 229, 242, 243, 252, 253, 262, 263, 272, 273, 300, 312, 315, 325, 338, 342, 345, 348, 361, 362, 365, 368, 369, 374, 390, 391, 394, 397, 398, 403, 418, 425, 426, 427, 428, 429, 436, 456, 457, 461, 477, 480, 489, 490, 496, 497, 500, 501, 504, 505, 524, 525, 528, 531, 532, 537, 541, 542, 549, 551, 555, 567, 570, 580, 581, 582, 583, 584, 591, 620, 623, 633, 634, 635, 636, 637, 644, 646, 650, 651, 655, 656, 674, 677, 687, 688, 689, 692, 693, 699, 716, 717, 734, 735, 755, 756, 760, 776, 779, 788, 789, 795, 796, 799, 800, 805, 806, 811, 812, 819, 821, 825, 842, 843, 847, 863, 866, 875, 876, 882, 883, 886, 887, 892, 893, 910, 913, 914, 921, 923, 927, 940, 943, 952, 953, 959, 960, 963, 964, 968, 971, 972, 1002, 1003, 1007, 1023, 1026, 1035, 1036, 1042, 1043, 1046, 1047, 1052, 1053, 1058, 1059, 1066, 1068, 1072, 1085, 1088, 1097, 1098, 1104, 1105, 1108, 1109, 1113, 1116, 1117, 1133, 1142, 1143, 1144, 1165, 1166, 1171, 1173, 1177, 1191, 1194, 1195, 1203, 1204, 1206, 1209, 1214, 1215, 1216, 1221, 1223, 1228, 1229, 1233, 1236, 1237, 1291, 1292, 1300, 1301, 1309, 1310, 1318, 1319, 1327, 1328, 1336, 1337, 1345, 1346, 1355, 1356, 1360], "assignments": [84, 90, 96, 102, 108, 119, 125, 131, 137, 143, 149, 155, 161, 167, 173, 233, 337, 486, 643, 785, 872, 949, 1032, 1094, 1253, 1257], "loops": [], "conditionals": [0, 1, 6, 10, 55, 56, 60, 63, 68, 71, 74, 75, 78, 81, 82, 86, 87, 89, 92, 93, 98, 99, 104, 105, 110, 111, 114, 121, 122, 127, 128, 133, 134, 139, 140, 145, 146, 151, 152, 157, 158, 163, 164, 166, 169, 170, 175, 176, 180, 182, 185, 189, 192, 197, 200, 203, 206, 209, 212, 215, 218, 221, 225, 226, 230, 231, 234, 240, 244, 245, 250, 254, 255, 260, 264, 265, 270, 274, 275, 280, 285, 290, 293, 297, 301, 305, 308, 311, 313, 316, 318, 322, 326, 330, 333, 336, 339, 340, 344, 346, 349, 351, 355, 359, 360, 363, 370, 371, 375, 376, 380, 384, 388, 389, 392, 399, 400, 404, 405, 409, 413, 417, 419, 421, 422, 423, 424, 431, 432, 434, 438, 444, 447, 450, 454, 458, 459, 462, 464, 466, 470, 473, 476, 478, 481, 485, 487, 491, 492, 494, 495, 498, 502, 506, 507, 509, 511, 513, 517, 521, 523, 526, 533, 534, 538, 539, 543, 545, 552, 556, 558, 562, 566, 568, 571, 573, 577, 578, 579, 586, 587, 589, 593, 599, 602, 607, 610, 613, 617, 621, 624, 626, 630, 631, 632, 639, 640, 642, 645, 647, 653, 654, 657, 659, 663, 665, 669, 673, 675, 678, 680, 684, 685, 686, 695, 697, 701, 705, 708, 711, 714, 718, 719, 721, 723, 726, 729, 732, 736, 737, 739, 743, 746, 749, 753, 757, 758, 761, 763, 765, 769, 772, 775, 777, 780, 784, 786, 790, 791, 793, 794, 797, 801, 804, 807, 808, 810, 813, 815, 822, 826, 830, 833, 836, 840, 844, 845, 848, 850, 852, 856, 859, 862, 864, 867, 871, 873, 877, 878, 880, 881, 884, 888, 891, 894, 895, 897, 899, 903, 906, 908, 911, 912, 915, 917, 924, 928, 930, 933, 936, 939, 941, 944, 948, 950, 954, 955, 957, 958, 961, 965, 969, 973, 980, 986, 990, 993, 996, 1000, 1004, 1005, 1008, 1010, 1012, 1016, 1019, 1022, 1024, 1027, 1031, 1033, 1037, 1038, 1040, 1041, 1044, 1048, 1051, 1054, 1055, 1057, 1060, 1062, 1069, 1073, 1075, 1078, 1081, 1084, 1086, 1089, 1093, 1095, 1099, 1100, 1102, 1103, 1106, 1110, 1114, 1118, 1123, 1127, 1131, 1134, 1135, 1137, 1139, 1145, 1146, 1151, 1153, 1159, 1163, 1167, 1169, 1174, 1178, 1180, 1184, 1190, 1192, 1196, 1198, 1200, 1201, 1202, 1207, 1210, 1211, 1212, 1218, 1222, 1224, 1227, 1230, 1232, 1234, 1238, 1241, 1245, 1248, 1249, 1251, 1252, 1254, 1256, 1258, 1260, 1263, 1265, 1268, 1269, 1271, 1279, 1281, 1289, 1293, 1295, 1299, 1302, 1304, 1308, 1311, 1313, 1317, 1320, 1322, 1326, 1329, 1331, 1335, 1338, 1340, 1344, 1347, 1349, 1351, 1353, 1354, 1357, 1359, 1361, 1363, 1365, 1366, 1369, 1370, 1372, 1373, 1376, 1380, 1383, 1384, 1386, 1387, 1388], "returns": [299, 324, 373, 377, 402, 406, 435, 439, 465, 522, 554, 590, 594, 662, 698, 702, 715, 733, 764, 824, 851, 909, 926, 967, 975, 1011, 1071, 1112, 1120, 1132, 1141, 1176, 1213, 1219, 1226, 1240], "exceptions": []}, "expressions": {"calls": [], "literals": [13, 16, 19, 22, 25, 28, 31, 34, 37, 40, 43, 46, 49, 52, 76, 83, 95, 101, 107, 116, 117, 118, 124, 130, 136, 142, 148, 154, 160, 172, 178, 183, 236, 378, 407, 440, 540, 595, 619, 703, 976, 1121, 1149, 1220, 1381], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 53, "universal_type": "function", "name": "Scene", "text_snippet": "class Scene : public SceItem\r\n{\r\npublic:\r\n Scene(){\r\n Initialize();\r\n }\r\n\r\n void In"}, {"node_id": 65, "universal_type": "function", "name": "Initialize", "text_snippet": "void Initialize()\r\n {\r\n strcpy(_si.author,\"<NAME>\");\r\n strcpy(_si.comments,\"Getic 2"}, {"node_id": 67, "universal_type": "function", "name": "unknown", "text_snippet": "Initialize()"}, {"node_id": 184, "universal_type": "function", "name": "unknown", "text_snippet": "virtual ~Scene(){\r\n\t\tClear();\r\n }"}, {"node_id": 188, "universal_type": "function", "name": "unknown", "text_snippet": "Scene()"}, {"node_id": 194, "universal_type": "function", "name": "Clear", "text_snippet": "void Clear(){\r\n // items first. they may release owned brushes\r\n Initialize();\r\n "}, {"node_id": 196, "universal_type": "function", "name": "unknown", "text_snippet": "Clear()"}, {"node_id": 237, "universal_type": "function", "name": "ClearScripts", "text_snippet": "void ClearScripts(){_scripts.deleteelements();}"}, {"node_id": 239, "universal_type": "function", "name": "unknown", "text_snippet": "ClearScripts()"}, {"node_id": 247, "universal_type": "function", "name": "ClearSounds", "text_snippet": "void ClearSounds(){_sounds.deleteelements();}"}, {"node_id": 249, "universal_type": "function", "name": "unknown", "text_snippet": "ClearSounds()"}, {"node_id": 257, "universal_type": "function", "name": "ClearItems", "text_snippet": "void ClearItems(){_items.deleteelements();}"}, {"node_id": 259, "universal_type": "function", "name": "unknown", "text_snippet": "ClearItems()"}, {"node_id": 267, "universal_type": "function", "name": "ClearMotions", "text_snippet": "void ClearMotions(){_motions.deleteelements();}"}, {"node_id": 269, "universal_type": "function", "name": "unknown", "text_snippet": "ClearMotions()"}, {"node_id": 279, "universal_type": "function", "name": "unknown", "text_snippet": "ClearPrimitives()"}, {"node_id": 284, "universal_type": "function", "name": "unknown", "text_snippet": "ClearBrushes()"}, {"node_id": 289, "universal_type": "function", "name": "unknown", "text_snippet": "GetPolyCnt()"}, {"node_id": 292, "universal_type": "function", "name": "unknown", "text_snippet": "PBrushes* GetPrimitives(){return &_primitives;}"}, {"node_id": 296, "universal_type": "function", "name": "unknown", "text_snippet": "GetPrimitives()"}, {"node_id": 302, "universal_type": "function", "name": "AddBrush", "text_snippet": "void AddBrush(Brush* pB){_brushes <<(pB);}"}, {"node_id": 304, "universal_type": "function", "name": "unknown", "text_snippet": "AddBrush(Brush* pB)"}, {"node_id": 317, "universal_type": "function", "name": "unknown", "text_snippet": "PBrushes* GetBrushes(){return &_brushes;}"}, {"node_id": 321, "universal_type": "function", "name": "unknown", "text_snippet": "GetBrushes()"}, {"node_id": 327, "universal_type": "function", "name": "AddPrimitive", "text_snippet": "void AddPrimitive(Brush* pB){pB->_brushflags &= ~BRSH_NEW;_primitives << (pB);}"}, {"node_id": 329, "universal_type": "function", "name": "unknown", "text_snippet": "AddPrimitive(Brush* pB)"}, {"node_id": 350, "universal_type": "function", "name": "unknown", "text_snippet": "Brush* GetPrimitive(int brSel){if(brSel < (int)_primitives.size()) return _primitives[brSel];re"}, {"node_id": 354, "universal_type": "function", "name": "unknown", "text_snippet": "GetPrimitive(int brSel)"}, {"node_id": 379, "universal_type": "function", "name": "unknown", "text_snippet": "Brush* GetBrush(int brSel){if(brSel < (int)_brushes.size()) return _brushes[brSel];return 0;}"}, {"node_id": 383, "universal_type": "function", "name": "unknown", "text_snippet": "GetBrush(int brSel)"}, {"node_id": 408, "universal_type": "function", "name": "unknown", "text_snippet": "Brush* GetBrushByID(int brushID){FOREACH(PBrushes, _primitives, ppb){if((*ppb)->_unicID == brus"}, {"node_id": 412, "universal_type": "function", "name": "unknown", "text_snippet": "GetBrushByID(int brushID)"}, {"node_id": 441, "universal_type": "function", "name": "AddItem", "text_snippet": "int AddItem(SceItem* pi){int sz = _items.size();_items << pi;return sz;}"}, {"node_id": 443, "universal_type": "function", "name": "unknown", "text_snippet": "AddItem(SceItem* pi)"}, {"node_id": 467, "universal_type": "function", "name": "DelItem", "text_snippet": "void DelItem(SceItem* pi){\r\n vvector<SceItem*>::iterator fi = _items.findelement(pi);\r"}, {"node_id": 469, "universal_type": "function", "name": "unknown", "text_snippet": "DelItem(SceItem* pi)"}, {"node_id": 512, "universal_type": "function", "name": "unknown", "text_snippet": "SceItem* GetItem(int idx){return (idx < (int)_items.size()) ? _items[idx] : 0;}"}, {"node_id": 516, "universal_type": "function", "name": "unknown", "text_snippet": "GetItem(int idx)"}, {"node_id": 557, "universal_type": "function", "name": "unknown", "text_snippet": "SceItem* GetItemByID(int itemID){\r\n FOREACH(vvector<SceItem*>, _items, ppi){\r\n if"}, {"node_id": 561, "universal_type": "function", "name": "unknown", "text_snippet": "GetItemByID(int itemID)"}, {"node_id": 596, "universal_type": "function", "name": "GetItemsByType", "text_snippet": "int GetItemsByType(SceItem** ppArray, size_t type, int imax)\r\n {\r\n int retval = 0;\r\n "}, {"node_id": 598, "universal_type": "function", "name": "imax)", "text_snippet": "GetItemsByType(SceItem** ppArray, size_t type, int imax)"}, {"node_id": 664, "universal_type": "function", "name": "unknown", "text_snippet": "SceItem* GetItemByPtr(size_t itemPtr){\r\n FOREACH(vvector<SceItem*>, _items, ppi){\r\n "}, {"node_id": 668, "universal_type": "function", "name": "unknown", "text_snippet": "GetItemByPtr(size_t itemPtr)"}, {"node_id": 704, "universal_type": "function", "name": "unknown", "text_snippet": "long GetIndex(SceItem* pi)\r\n {\r\n return _items.getindex(pi);\r\n }"}, {"node_id": 707, "universal_type": "function", "name": "unknown", "text_snippet": "GetIndex(SceItem* pi)"}, {"node_id": 722, "universal_type": "function", "name": "unknown", "text_snippet": "long\tGetIndex(CMotion* pi)\r\n\t{\r\n return _motions.getindex(pi);\r\n\t}"}, {"node_id": 725, "universal_type": "function", "name": "unknown", "text_snippet": "GetIndex(CMotion* pi)"}, {"node_id": 740, "universal_type": "function", "name": "AddMotion", "text_snippet": "int AddMotion(CMotion* pi)\r\n {\r\n int sz = _items.size();\r\n _motions << pi;\r\n "}, {"node_id": 742, "universal_type": "function", "name": "unknown", "text_snippet": "AddMotion(CMotion* pi)"}, {"node_id": 766, "universal_type": "function", "name": "DelMotion", "text_snippet": "void DelMotion(CMotion* pi){\r\n vvector<CMotion*>::iterator fi = _motions.findelement(pi);\r\n "}, {"node_id": 768, "universal_type": "function", "name": "unknown", "text_snippet": "DelMotion(CMotion* pi)"}, {"node_id": 827, "universal_type": "function", "name": "AddScript", "text_snippet": "int AddScript(ScriptItem* pi)\r\n {\r\n int sz = _scripts.size();\r\n _scripts << pi;\r\n "}, {"node_id": 829, "universal_type": "function", "name": "unknown", "text_snippet": "AddScript(ScriptItem* pi)"}, {"node_id": 853, "universal_type": "function", "name": "DelScript", "text_snippet": "void DelScript(ScriptItem* pi)\r\n\t{\r\n vvector<ScriptItem*>::iterator fi = _scripts.findelement"}, {"node_id": 855, "universal_type": "function", "name": "unknown", "text_snippet": "DelScript(ScriptItem* pi)"}, {"node_id": 898, "universal_type": "function", "name": "unknown", "text_snippet": "ScriptItem* GetScript(long index){\r\n return _scripts[index];\r\n }"}, {"node_id": 902, "universal_type": "function", "name": "unknown", "text_snippet": "GetScript(long index)"}, {"node_id": 929, "universal_type": "function", "name": "unknown", "text_snippet": "long GetIndex(ScriptItem* pi){\r\n vvector<ScriptItem*>::iterator fi = _scripts.findelement("}, {"node_id": 932, "universal_type": "function", "name": "unknown", "text_snippet": "GetIndex(ScriptItem* pi)"}, {"node_id": 979, "universal_type": "function", "name": "unknown", "text_snippet": "FindSoundByName(const char* psz)"}, {"node_id": 987, "universal_type": "function", "name": "AddSound", "text_snippet": "int AddSound(CSoundItem* pi)\r\n {\r\n int sz = _sounds.size();\r\n _sounds << pi;\r\n "}, {"node_id": 989, "universal_type": "function", "name": "unknown", "text_snippet": "AddSound(CSoundItem* pi)"}, {"node_id": 1013, "universal_type": "function", "name": "DelSound", "text_snippet": "void DelSound(CSoundItem* pi)\r\n\t{\r\n vvector<CSoundItem*>::iterator fi = _sounds.findelement(p"}, {"node_id": 1015, "universal_type": "function", "name": "unknown", "text_snippet": "DelSound(CSoundItem* pi)"}, {"node_id": 1074, "universal_type": "function", "name": "unknown", "text_snippet": "long GetIndex(CSoundItem* ps){\r\n vvector<CSoundItem*>::iterator fi = _sounds.findelement(p"}, {"node_id": 1077, "universal_type": "function", "name": "unknown", "text_snippet": "GetIndex(CSoundItem* ps)"}, {"node_id": 1122, "universal_type": "function", "name": "unknown", "text_snippet": "CSoundItem* GetSound(int idx){\r\n return _sounds[idx];\r\n }"}, {"node_id": 1126, "universal_type": "function", "name": "unknown", "text_snippet": "GetSound(int idx)"}, {"node_id": 1136, "universal_type": "function", "name": "unknown", "text_snippet": "BOOL HasCats(){return _gamecats.size()!=0;}"}, {"node_id": 1138, "universal_type": "function", "name": "unknown", "text_snippet": "HasCats()"}, {"node_id": 1152, "universal_type": "function", "name": "unknown", "text_snippet": "SearchCats(const char* fileName)"}, {"node_id": 1162, "universal_type": "function", "name": "unknown", "text_snippet": "ClearCats()"}, {"node_id": 1179, "universal_type": "function", "name": "unknown", "text_snippet": "ItemCat* GetCat(const char* catname)\r\n {\r\n FOREACH(vvector<ItemCat>,_gamecats,pc)\r\n "}, {"node_id": 1183, "universal_type": "function", "name": "unknown", "text_snippet": "GetCat(const char* catname)"}, {"node_id": 1242, "universal_type": "function", "name": "SetCam", "text_snippet": "void SetCam(const V3& pos, const V3& elr){_campos=pos; _cameuler=elr;}"}, {"node_id": 1244, "universal_type": "function", "name": "unknown", "text_snippet": "SetCam(const V3& pos, const V3& elr)"}, {"node_id": 1264, "universal_type": "function", "name": "unknown", "text_snippet": "ParseSection(string& errors, vvector<char*>& classes, vvector<char*>& items)"}], "class_declarations": [], "import_statements": [{"node_id": 11, "text": "#include <GL/gl.h>\r\n"}, {"node_id": 12, "text": "#include"}, {"node_id": 14, "text": "#include <GL/glu.h>\r\n"}, {"node_id": 15, "text": "#include"}, {"node_id": 17, "text": "#include \"z-edmap.h\"\r\n"}, {"node_id": 18, "text": "#include"}, {"node_id": 20, "text": "#include \"Poly.h\"\r\n"}, {"node_id": 21, "text": "#include"}, {"node_id": 23, "text": "#include \"Brush.h\"\r\n"}, {"node_id": 24, "text": "#include"}, {"node_id": 26, "text": "#include \"texsys.h\"\r\n"}, {"node_id": 27, "text": "#include"}, {"node_id": 29, "text": "#include \"SceItem.h\"\r\n"}, {"node_id": 30, "text": "#include"}, {"node_id": 32, "text": "#include \"Skydom.h\"\r\n"}, {"node_id": 33, "text": "#include"}, {"node_id": 35, "text": "#include \"bspfilestr.h\"\r\n"}, {"node_id": 36, "text": "#include"}, {"node_id": 38, "text": "#include \"Motion.h\"\r\n"}, {"node_id": 39, "text": "#include"}, {"node_id": 41, "text": "#include \"ScriptItem.h\"\r\n"}, {"node_id": 42, "text": "#include"}, {"node_id": 44, "text": "#include \"SoundItem.h\"\r\n"}, {"node_id": 45, "text": "#include"}, {"node_id": 47, "text": "#include \"CustItemCat.h\" /// item categories\r\n"}, {"node_id": 48, "text": "#include"}, {"node_id": 50, "text": "#include \"rfHillTerrain.h\"\r\n"}, {"node_id": 51, "text": "#include"}]}, "original_source_code": "// Scene.h: interface for the Scene class.\r\n//\r\n//////////////////////////////////////////////////////////////////////\r\n#if !defined(AFX_SCENE_H__CB8FF316_9C3D_4B74_94F6_B504E5AC18A5__INCLUDED_)\r\n#define AFX_SCENE_H__CB8FF316_9C3D_4B74_94F6_B504E5AC18A5__INCLUDED_\r\n\r\n\r\n\r\n\r\n#include <GL/gl.h>\r\n#include <GL/glu.h>\r\n// #include <gl/Glaux.h>\r\n#include \"z-edmap.h\"\r\n#include \"Poly.h\"\r\n#include \"Brush.h\"\r\n#include \"texsys.h\"\r\n#include \"SceItem.h\"\r\n#include \"Skydom.h\"\r\n#include \"bspfilestr.h\"\r\n#include \"Motion.h\"\r\n#include \"ScriptItem.h\"\r\n#include \"SoundItem.h\"\r\n#include \"CustItemCat.h\" /// item categories\r\n#include \"rfHillTerrain.h\"\r\n\r\n//---------------------------------------------------------------------------------------\r\nclass Scene : public SceItem\r\n{\r\npublic:\r\n Scene(){\r\n Initialize();\r\n }\r\n\r\n void Initialize()\r\n {\r\n strcpy(_si.author,\"<NAME>\");\r\n strcpy(_si.comments,\"Getic 2.3\");\r\n _si.levelType = LEV_QUEST;\r\n _si.maxActors = 8;\r\n _si.maxFrags = 100;\r\n _si.maxTime = 15;\r\n _si.defLumin = CLR(128,128,128);\r\n _si.gravAcc = 9.81;\r\n _si.camFar = 65535;\r\n _si.camFov = 64.0;\r\n _si.sceSpeed = 2.0;\r\n _si.sceFlags = 0;\r\n _si.fogNear = 0;\r\n _si.fogFar = 0;\r\n _si.fogColor = ZWHITE;\r\n _si.fogDens = 0;\r\n _si.fogFallOff =0;\r\n\r\n strcpy(_name, \"scene\");\r\n //_si.camOrient1\r\n //_si.camOrient2\r\n\r\n };\r\n virtual ~Scene(){\r\n\t\tClear();\r\n }\r\n\r\n void Clear(){\r\n // items first. they may release owned brushes\r\n Initialize();\r\n ClearItems();\r\n ClearBrushes();\r\n ClearMotions();\r\n\t\tClearScripts();\r\n ClearSounds();\r\n ClearCats();\r\n ClearPrimitives();\r\n _terrain.Clear();\r\n _descs.clear();\r\n _errstring=\"\";\r\n }\r\n void ClearScripts(){_scripts.deleteelements();}\r\n void ClearSounds(){_sounds.deleteelements();}\r\n void ClearItems(){_items.deleteelements();}\r\n void ClearMotions(){_motions.deleteelements();}\r\n\tvoid ClearPrimitives();\r\n void ClearBrushes();\r\n\tint\t GetPolyCnt();\r\n PBrushes* GetPrimitives(){return &_primitives;};\r\n void AddBrush(Brush* pB){_brushes <<(pB);}\r\n PBrushes* GetBrushes(){return &_brushes;};\r\n\tvoid AddPrimitive(Brush* pB){pB->_brushflags &= ~BRSH_NEW;_primitives << (pB);}\r\n Brush* GetPrimitive(int brSel){if(brSel < (int)_primitives.size()) return _primitives[brSel];return 0;}\r\n Brush* GetBrush(int brSel){if(brSel < (int)_brushes.size()) return _brushes[brSel];return 0;}\r\n Brush* GetBrushByID(int brushID){FOREACH(PBrushes, _primitives, ppb){if((*ppb)->_unicID == brushID){return *ppb;}}return 0;}\r\n int AddItem(SceItem* pi){int sz = _items.size();_items << pi;return sz;}\r\n void DelItem(SceItem* pi){\r\n vvector<SceItem*>::iterator fi = _items.findelement(pi);\r\n if(fi != _items.end()){_items.erase(fi);delete pi;}\r\n }\r\n SceItem* GetItem(int idx){return (idx < (int)_items.size()) ? _items[idx] : 0;}\r\n vvector<SceItem*>* GetItems(){return &_items;}\r\n SceItem* GetItemByID(int itemID){\r\n FOREACH(vvector<SceItem*>, _items, ppi){\r\n if((*ppi)->_id == itemID){\r\n return *ppi;\r\n }\r\n }\r\n return 0;\r\n }\r\n\r\n int GetItemsByType(SceItem** ppArray, size_t type, int imax)\r\n {\r\n int retval = 0;\r\n FOREACH(vvector<SceItem*>, _items, ppi){\r\n if((*ppi)->_item==ITM_LIGTBULB){\r\n ppArray[retval++] = (*ppi);\r\n if(retval >= imax) \r\n break;\r\n }\r\n }\r\n return retval;\r\n }\r\n\r\n SceItem* GetItemByPtr(size_t itemPtr){\r\n FOREACH(vvector<SceItem*>, _items, ppi){\r\n if((size_t)(*ppi) == itemPtr){\r\n return *ppi;\r\n }\r\n }\r\n return 0;\r\n }\r\n\r\n long GetIndex(SceItem* pi)\r\n {\r\n return _items.getindex(pi);\r\n }\r\n\r\n// motions\r\n\tlong\tGetIndex(CMotion* pi)\r\n\t{\r\n return _motions.getindex(pi);\r\n\t}\r\n\r\n\r\n int AddMotion(CMotion* pi)\r\n {\r\n int sz = _items.size();\r\n _motions << pi;\r\n return sz;\r\n }\r\n\r\n void DelMotion(CMotion* pi){\r\n vvector<CMotion*>::iterator fi = _motions.findelement(pi);\r\n if(fi != _motions.end())\r\n {\r\n delete pi;\r\n _motions.erase(fi);\r\n }\r\n }\r\n vvector<CMotion*>* GetMotions(){return &_motions;}\r\n int AddScript(ScriptItem* pi)\r\n {\r\n int sz = _scripts.size();\r\n _scripts << pi;\r\n return sz;\r\n }\r\n\r\n void DelScript(ScriptItem* pi)\r\n\t{\r\n vvector<ScriptItem*>::iterator fi = _scripts.findelement(pi);\r\n if(fi != _scripts.end())\r\n {\r\n delete pi;\r\n _scripts.erase(fi);\r\n }\r\n }\r\n \r\n ScriptItem* GetScript(long index){\r\n return _scripts[index];\r\n }\r\n\r\n\r\n vvector<ScriptItem*>* GetScripts(){\r\n return &_scripts;\r\n }\r\n\r\n long GetIndex(ScriptItem* pi){\r\n vvector<ScriptItem*>::iterator fi = _scripts.findelement(pi);\r\n if(fi != _scripts.end())\r\n {\r\n\t\t\treturn fi-_scripts.begin();\r\n }\r\n\t\treturn -1;\r\n }\r\n\r\n int FindSoundByName(const char* psz);\r\n\r\n int AddSound(CSoundItem* pi)\r\n {\r\n int sz = _sounds.size();\r\n _sounds << pi;\r\n return sz;\r\n }\r\n\r\n void DelSound(CSoundItem* pi)\r\n\t{\r\n vvector<CSoundItem*>::iterator fi = _sounds.findelement(pi);\r\n if(fi != _sounds.end())\r\n {\r\n delete pi;\r\n _sounds.erase(fi);\r\n }\r\n }\r\n\r\n vvector<CSoundItem*>* GetSounds(){\r\n return &_sounds;\r\n }\r\n\r\n long GetIndex(CSoundItem* ps){\r\n vvector<CSoundItem*>::iterator fi = _sounds.findelement(ps);\r\n if(fi != _sounds.end())\r\n {\r\n\t\t\treturn fi-_sounds.begin();\r\n }\r\n\t\treturn -1;\r\n }\r\n\r\n CSoundItem* GetSound(int idx){\r\n return _sounds[idx];\r\n }\r\n\r\n// item cathegories managemenet (per game)\r\n BOOL HasCats(){return _gamecats.size()!=0;}\r\n BOOL SearchCats(const char* fileName);\r\n void ClearCats();\r\n vvector<ItemCat>* GetCats(){return &_gamecats;}\r\n ItemCat* GetCat(const char* catname)\r\n {\r\n FOREACH(vvector<ItemCat>,_gamecats,pc)\r\n {\r\n if(!strcmp(pc->_catname,catname)){\r\n return &(*pc);\r\n }\r\n }\r\n return 0;\r\n }\r\n\r\n CBigTerrain& Terrain(){return _terrain;}\r\n map<string ,string>& Descriptions(){ return _descs;}\r\n void SetCam(const V3& pos, const V3& elr){_campos=pos; _cameuler=elr;};\r\nprivate:\r\n\r\n BOOL ParseSection(string& errors, vvector<char*>& classes, vvector<char*>& items);\r\n\r\n\r\nprivate:\r\n vvector<Brush*>\t\t\t_primitives;\r\n vvector<Brush*>\t\t\t_brushes;\r\n vvector<SceItem*>\t\t_items;\r\n vvector<CMotion*>\t\t_motions;\r\n\tvvector<ScriptItem*>\t_scripts;\r\n vvector<CSoundItem*> _sounds;\r\n vvector<ItemCat> _gamecats;\r\n CBigTerrain _terrain;\r\n map<string ,string> _descs;\r\n string _errstring;\r\npublic:\r\n BST_SceneInfo\t\t\t_si;\r\n SkyDom\t\t\t\t\t_dom;\r\n int _GCarving;\r\n\tint\t\t\t\t\t\t_dummy[3];\r\n V3 _campos;\r\n V3 _cameuler;\r\n};\r\n\r\n\r\n#endif // !defined(AFX_SCENE_H__CB8FF316_9C3D_4B74_94F6_B504E5AC18A5__INCLUDED_)\r\n\r\n"}
80,293
c
#ifeq($(.Name),Optional||Nillable) #ifneq($($aStaffIncludes.!match/$(.Name).h/),true) #var aStaffIncludes $($aStaffIncludes)[staff/common/$(.Name).h] #ifeqend #ifeqend // optional or nillable \ #ifeq($(.Namespace),std::) \ #var sCurrCheckType $(.Name) #ifeq($($sCurrCheckType),multimap) #var sCurrCheckType map #ifeqend #ifneq($($aStdIncludes.!match/[$($sCurrCheckType)]/),true) #var aStdIncludes $($aStdIncludes)[$($sCurrCheckType)] #ifeqend \ #else #ifeq($(.Namespace),staff::) \ #ifeq($(.Name),DataObject||Abstract||Attribute||QName||Operation||ICallback||Array) #ifneq($($aStaffIncludes.!match/$(.Name).h/),true) #var aStaffIncludes $($aStaffIncludes)[staff/common/$(.Name).h] #ifeqend #else \ #ifneq($($aStaffIncludes.!match/WsdlTypes.h/),true) #var aStaffIncludes $($aStaffIncludes)[staff/common/WsdlTypes.h] #ifeqend // wsdl types \ #ifeq($(.Name),anyAttribute) #ifneq($($aStaffIncludes.!match/Attribute.h/),true) #var aStaffIncludes $($aStaffIncludes)[staff/common/Attribute.h] #ifeqend // any attribute #ifeqend // any attribute \ #ifeq($(.Name),hexBinary) #ifneq($($aStaffIncludes.!match/HexBinary.h/),true) #var aStaffIncludes $($aStaffIncludes)[staff/utils/HexBinary.h] #ifeqend #ifeqend \ #ifeq($(.Name),base64Binary) #ifneq($($aStaffIncludes.!match/Base64Binary.h/),true) #var aStaffIncludes $($aStaffIncludes)[staff/utils/Base64Binary.h] #ifeqend #ifeqend \ #ifeqend // staff types #ifeqend // staff #ifeqend // std \ #ifeq($(.Type),template) #foreach $(.TemplateParams) #cginclude "DetectTypeInclude.h" #end #ifeqend \
28.11
46
(translation_unit) "#ifeq($(.Name),Optional||Nillable)\n#ifneq($($aStaffIncludes.!match/$(.Name).h/),true)\n#var aStaffIncludes $($aStaffIncludes)[staff/common/$(.Name).h]\n#ifeqend\n#ifeqend // optional or nillable\n\\n#ifeq($(.Namespace),std::)\n\\n#var sCurrCheckType $(.Name)\n#ifeq($($sCurrCheckType),multimap)\n#var sCurrCheckType map\n#ifeqend\n#ifneq($($aStdIncludes.!match/[$($sCurrCheckType)]/),true)\n#var aStdIncludes $($aStdIncludes)[$($sCurrCheckType)]\n#ifeqend\n\\n#else\n#ifeq($(.Namespace),staff::)\n\\n#ifeq($(.Name),DataObject||Abstract||Attribute||QName||Operation||ICallback||Array)\n#ifneq($($aStaffIncludes.!match/$(.Name).h/),true)\n#var aStaffIncludes $($aStaffIncludes)[staff/common/$(.Name).h]\n#ifeqend\n#else\n\\n#ifneq($($aStaffIncludes.!match/WsdlTypes.h/),true)\n#var aStaffIncludes $($aStaffIncludes)[staff/common/WsdlTypes.h]\n#ifeqend // wsdl types\n\\n#ifeq($(.Name),anyAttribute)\n#ifneq($($aStaffIncludes.!match/Attribute.h/),true)\n#var aStaffIncludes $($aStaffIncludes)[staff/common/Attribute.h]\n#ifeqend // any attribute\n#ifeqend // any attribute\n\\n#ifeq($(.Name),hexBinary)\n#ifneq($($aStaffIncludes.!match/HexBinary.h/),true)\n#var aStaffIncludes $($aStaffIncludes)[staff/utils/HexBinary.h]\n#ifeqend\n#ifeqend\n\\n#ifeq($(.Name),base64Binary)\n#ifneq($($aStaffIncludes.!match/Base64Binary.h/),true)\n#var aStaffIncludes $($aStaffIncludes)[staff/utils/Base64Binary.h]\n#ifeqend\n#ifeqend\n\\n#ifeqend // staff types\n#ifeqend // staff\n#ifeqend // std\n\\n#ifeq($(.Type),template)\n#foreach $(.TemplateParams)\n#cginclude "DetectTypeInclude.h"\n#end\n#ifeqend\n\\n" (preproc_call) "#ifeq($(.Name),Optional||Nillable)\n" (preproc_directive) "#ifeq" (preproc_arg) "($(.Name),Optional||Nillable)" (preproc_call) "#ifneq($($aStaffIncludes.!match/$(.Name).h/),true)\n" (preproc_directive) "#ifneq" (preproc_arg) "($($aStaffIncludes.!match/$(.Name).h/),true)" (preproc_call) "#var aStaffIncludes $($aStaffIncludes)[staff/common/$(.Name).h]\n" (preproc_directive) "#var" (preproc_arg) "aStaffIncludes $($aStaffIncludes)[staff/common/$(.Name).h]" (preproc_call) "#ifeqend\n" (preproc_directive) "#ifeqend" (preproc_call) "#ifeqend // optional or nillable\n" (preproc_directive) "#ifeqend" (comment) "// optional or nillable" (preproc_call) "#ifeq($(.Namespace),std::)\n" (preproc_directive) "#ifeq" (preproc_arg) "($(.Namespace),std::)" (preproc_call) "#var sCurrCheckType $(.Name)\n" (preproc_directive) "#var" (preproc_arg) "sCurrCheckType $(.Name)" (preproc_call) "#ifeq($($sCurrCheckType),multimap)\n" (preproc_directive) "#ifeq" (preproc_arg) "($($sCurrCheckType),multimap)" (preproc_call) "#var sCurrCheckType map\n" (preproc_directive) "#var" (preproc_arg) "sCurrCheckType map" (preproc_call) "#ifeqend\n" (preproc_directive) "#ifeqend" (preproc_call) "#ifneq($($aStdIncludes.!match/[$($sCurrCheckType)]/),true)\n" (preproc_directive) "#ifneq" (preproc_arg) "($($aStdIncludes.!match/[$($sCurrCheckType)]/),true)" (preproc_call) "#var aStdIncludes $($aStdIncludes)[$($sCurrCheckType)]\n" (preproc_directive) "#var" (preproc_arg) "aStdIncludes $($aStdIncludes)[$($sCurrCheckType)]" (preproc_call) "#ifeqend\n" (preproc_directive) "#ifeqend" (preproc_call) "#else\n" (preproc_directive) "#else" (preproc_call) "#ifeq($(.Namespace),staff::)\n" (preproc_directive) "#ifeq" (preproc_arg) "($(.Namespace),staff::)" (preproc_call) "#ifeq($(.Name),DataObject||Abstract||Attribute||QName||Operation||ICallback||Array)\n" (preproc_directive) "#ifeq" (preproc_arg) "($(.Name),DataObject||Abstract||Attribute||QName||Operation||ICallback||Array)" (preproc_call) "#ifneq($($aStaffIncludes.!match/$(.Name).h/),true)\n" (preproc_directive) "#ifneq" (preproc_arg) "($($aStaffIncludes.!match/$(.Name).h/),true)" (preproc_call) "#var aStaffIncludes $($aStaffIncludes)[staff/common/$(.Name).h]\n" (preproc_directive) "#var" (preproc_arg) "aStaffIncludes $($aStaffIncludes)[staff/common/$(.Name).h]" (preproc_call) "#ifeqend\n" (preproc_directive) "#ifeqend" (preproc_call) "#else\n" (preproc_directive) "#else" (preproc_call) "#ifneq($($aStaffIncludes.!match/WsdlTypes.h/),true)\n" (preproc_directive) "#ifneq" (preproc_arg) "($($aStaffIncludes.!match/WsdlTypes.h/),true)" (preproc_call) "#var aStaffIncludes $($aStaffIncludes)[staff/common/WsdlTypes.h]\n" (preproc_directive) "#var" (preproc_arg) "aStaffIncludes $($aStaffIncludes)[staff/common/WsdlTypes.h]" (preproc_call) "#ifeqend // wsdl types\n" (preproc_directive) "#ifeqend" (comment) "// wsdl types" (preproc_call) "#ifeq($(.Name),anyAttribute)\n" (preproc_directive) "#ifeq" (preproc_arg) "($(.Name),anyAttribute)" (preproc_call) "#ifneq($($aStaffIncludes.!match/Attribute.h/),true)\n" (preproc_directive) "#ifneq" (preproc_arg) "($($aStaffIncludes.!match/Attribute.h/),true)" (preproc_call) "#var aStaffIncludes $($aStaffIncludes)[staff/common/Attribute.h]\n" (preproc_directive) "#var" (preproc_arg) "aStaffIncludes $($aStaffIncludes)[staff/common/Attribute.h]" (preproc_call) "#ifeqend // any attribute\n" (preproc_directive) "#ifeqend" (comment) "// any attribute" (preproc_call) "#ifeqend // any attribute\n" (preproc_directive) "#ifeqend" (comment) "// any attribute" (preproc_call) "#ifeq($(.Name),hexBinary)\n" (preproc_directive) "#ifeq" (preproc_arg) "($(.Name),hexBinary)" (preproc_call) "#ifneq($($aStaffIncludes.!match/HexBinary.h/),true)\n" (preproc_directive) "#ifneq" (preproc_arg) "($($aStaffIncludes.!match/HexBinary.h/),true)" (preproc_call) "#var aStaffIncludes $($aStaffIncludes)[staff/utils/HexBinary.h]\n" (preproc_directive) "#var" (preproc_arg) "aStaffIncludes $($aStaffIncludes)[staff/utils/HexBinary.h]" (preproc_call) "#ifeqend\n" (preproc_directive) "#ifeqend" (preproc_call) "#ifeqend\n" (preproc_directive) "#ifeqend" (preproc_call) "#ifeq($(.Name),base64Binary)\n" (preproc_directive) "#ifeq" (preproc_arg) "($(.Name),base64Binary)" (preproc_call) "#ifneq($($aStaffIncludes.!match/Base64Binary.h/),true)\n" (preproc_directive) "#ifneq" (preproc_arg) "($($aStaffIncludes.!match/Base64Binary.h/),true)" (preproc_call) "#var aStaffIncludes $($aStaffIncludes)[staff/utils/Base64Binary.h]\n" (preproc_directive) "#var" (preproc_arg) "aStaffIncludes $($aStaffIncludes)[staff/utils/Base64Binary.h]" (preproc_call) "#ifeqend\n" (preproc_directive) "#ifeqend" (preproc_call) "#ifeqend\n" (preproc_directive) "#ifeqend" (preproc_call) "#ifeqend // staff types\n" (preproc_directive) "#ifeqend" (comment) "// staff types" (preproc_call) "#ifeqend // staff\n" (preproc_directive) "#ifeqend" (comment) "// staff" (preproc_call) "#ifeqend // std\n" (preproc_directive) "#ifeqend" (comment) "// std" (preproc_call) "#ifeq($(.Type),template)\n" (preproc_directive) "#ifeq" (preproc_arg) "($(.Type),template)" (preproc_call) "#foreach $(.TemplateParams)\n" (preproc_directive) "#foreach" (preproc_arg) "$(.TemplateParams)" (preproc_call) "#cginclude "DetectTypeInclude.h"\n" (preproc_directive) "#cginclude" (preproc_arg) ""DetectTypeInclude.h"" (preproc_call) "#end\n" (preproc_directive) "#end" (preproc_call) "#ifeqend\n" (preproc_directive) "#ifeqend" (ERROR) "" (ERROR) ""
129
2
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 28.11, "nodes": 121, "errors": 0, "source_hash": "46e77292787b268db249e12f76d2fdff5268818aa77db55d5e595569ef638d72", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#ifeq($(.Name),Optional||Nillable)\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#ifeq", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 5}}, {"id": 2, "type": "preproc_arg", "text": "($(.Name),Optional||Nillable)", "parent": 0, "children": [], "start_point": {"row": 0, "column": 5}, "end_point": {"row": 0, "column": 34}}, {"id": 3, "type": "preproc_call", "text": "#ifneq($($aStaffIncludes.!match/$(.Name).h/),true)\n", "parent": null, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "preproc_directive", "text": "#ifneq", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 6}}, {"id": 5, "type": "preproc_arg", "text": "($($aStaffIncludes.!match/$(.Name).h/),true)", "parent": 3, "children": [], "start_point": {"row": 1, "column": 6}, "end_point": {"row": 1, "column": 50}}, {"id": 6, "type": "preproc_call", "text": "#var aStaffIncludes $($aStaffIncludes)[staff/common/$(.Name).h]\n", "parent": null, "children": [7, 8], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 7, "type": "preproc_directive", "text": "#var", "parent": 6, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 4}}, {"id": 8, "type": "preproc_arg", "text": "aStaffIncludes $($aStaffIncludes)[staff/common/$(.Name).h]", "parent": 6, "children": [], "start_point": {"row": 2, "column": 5}, "end_point": {"row": 2, "column": 63}}, {"id": 9, "type": "preproc_call", "text": "#ifeqend\n", "parent": null, "children": [10], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 10, "type": "preproc_directive", "text": "#ifeqend", "parent": 9, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 11, "type": "preproc_call", "text": "#ifeqend // optional or nillable\n", "parent": null, "children": [12], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 12, "type": "preproc_directive", "text": "#ifeqend", "parent": 11, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 13, "type": "preproc_call", "text": "#ifeq($(.Namespace),std::)\n", "parent": null, "children": [14, 15], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 14, "type": "preproc_directive", "text": "#ifeq", "parent": 13, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 5}}, {"id": 15, "type": "preproc_arg", "text": "($(.Namespace),std::)", "parent": 13, "children": [], "start_point": {"row": 6, "column": 5}, "end_point": {"row": 6, "column": 26}}, {"id": 16, "type": "preproc_call", "text": "#var sCurrCheckType $(.Name)\n", "parent": null, "children": [17, 18], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 17, "type": "preproc_directive", "text": "#var", "parent": 16, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 4}}, {"id": 18, "type": "preproc_arg", "text": "sCurrCheckType $(.Name)", "parent": 16, "children": [], "start_point": {"row": 8, "column": 5}, "end_point": {"row": 8, "column": 28}}, {"id": 19, "type": "preproc_call", "text": "#ifeq($($sCurrCheckType),multimap)\n", "parent": null, "children": [20, 21], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 20, "type": "preproc_directive", "text": "#ifeq", "parent": 19, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 5}}, {"id": 21, "type": "preproc_arg", "text": "($($sCurrCheckType),multimap)", "parent": 19, "children": [], "start_point": {"row": 9, "column": 5}, "end_point": {"row": 9, "column": 34}}, {"id": 22, "type": "preproc_call", "text": "#var sCurrCheckType map\n", "parent": null, "children": [23, 24], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 23, "type": "preproc_directive", "text": "#var", "parent": 22, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 4}}, {"id": 24, "type": "preproc_arg", "text": "sCurrCheckType map", "parent": 22, "children": [], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 23}}, {"id": 25, "type": "preproc_call", "text": "#ifeqend\n", "parent": null, "children": [26], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 26, "type": "preproc_directive", "text": "#ifeqend", "parent": 25, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 27, "type": "preproc_call", "text": "#ifneq($($aStdIncludes.!match/[$($sCurrCheckType)]/),true)\n", "parent": null, "children": [28, 29], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 28, "type": "preproc_directive", "text": "#ifneq", "parent": 27, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 6}}, {"id": 29, "type": "preproc_arg", "text": "($($aStdIncludes.!match/[$($sCurrCheckType)]/),true)", "parent": 27, "children": [], "start_point": {"row": 12, "column": 6}, "end_point": {"row": 12, "column": 58}}, {"id": 30, "type": "preproc_call", "text": "#var aStdIncludes $($aStdIncludes)[$($sCurrCheckType)]\n", "parent": null, "children": [31, 32], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 31, "type": "preproc_directive", "text": "#var", "parent": 30, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 4}}, {"id": 32, "type": "preproc_arg", "text": "aStdIncludes $($aStdIncludes)[$($sCurrCheckType)]", "parent": 30, "children": [], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 54}}, {"id": 33, "type": "preproc_call", "text": "#ifeqend\n", "parent": null, "children": [34], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 34, "type": "preproc_directive", "text": "#ifeqend", "parent": 33, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 8}}, {"id": 35, "type": "preproc_call", "text": "#else\n", "parent": null, "children": [36], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 36, "type": "preproc_directive", "text": "#else", "parent": 35, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 5}}, {"id": 37, "type": "preproc_call", "text": "#ifeq($(.Namespace),staff::)\n", "parent": null, "children": [38, 39], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 38, "type": "preproc_directive", "text": "#ifeq", "parent": 37, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 5}}, {"id": 39, "type": "preproc_arg", "text": "($(.Namespace),staff::)", "parent": 37, "children": [], "start_point": {"row": 17, "column": 5}, "end_point": {"row": 17, "column": 28}}, {"id": 40, "type": "preproc_call", "text": "#ifeq($(.Name),DataObject||Abstract||Attribute||QName||Operation||ICallback||Array)\n", "parent": null, "children": [41, 42], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 41, "type": "preproc_directive", "text": "#ifeq", "parent": 40, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 5}}, {"id": 42, "type": "preproc_arg", "text": "($(.Name),DataObject||Abstract||Attribute||QName||Operation||ICallback||Array)", "parent": 40, "children": [], "start_point": {"row": 19, "column": 5}, "end_point": {"row": 19, "column": 83}}, {"id": 43, "type": "preproc_call", "text": "#ifneq($($aStaffIncludes.!match/$(.Name).h/),true)\n", "parent": null, "children": [44, 45], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 44, "type": "preproc_directive", "text": "#ifneq", "parent": 43, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 6}}, {"id": 45, "type": "preproc_arg", "text": "($($aStaffIncludes.!match/$(.Name).h/),true)", "parent": 43, "children": [], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 50}}, {"id": 46, "type": "preproc_call", "text": "#var aStaffIncludes $($aStaffIncludes)[staff/common/$(.Name).h]\n", "parent": null, "children": [47, 48], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 47, "type": "preproc_directive", "text": "#var", "parent": 46, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 4}}, {"id": 48, "type": "preproc_arg", "text": "aStaffIncludes $($aStaffIncludes)[staff/common/$(.Name).h]", "parent": 46, "children": [], "start_point": {"row": 21, "column": 5}, "end_point": {"row": 21, "column": 63}}, {"id": 49, "type": "preproc_call", "text": "#ifeqend\n", "parent": null, "children": [50], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 50, "type": "preproc_directive", "text": "#ifeqend", "parent": 49, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 8}}, {"id": 51, "type": "preproc_call", "text": "#else\n", "parent": null, "children": [52], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 52, "type": "preproc_directive", "text": "#else", "parent": 51, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 5}}, {"id": 53, "type": "preproc_call", "text": "#ifneq($($aStaffIncludes.!match/WsdlTypes.h/),true)\n", "parent": null, "children": [54, 55], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 54, "type": "preproc_directive", "text": "#ifneq", "parent": 53, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 6}}, {"id": 55, "type": "preproc_arg", "text": "($($aStaffIncludes.!match/WsdlTypes.h/),true)", "parent": 53, "children": [], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 51}}, {"id": 56, "type": "preproc_call", "text": "#var aStaffIncludes $($aStaffIncludes)[staff/common/WsdlTypes.h]\n", "parent": null, "children": [57, 58], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 57, "type": "preproc_directive", "text": "#var", "parent": 56, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 4}}, {"id": 58, "type": "preproc_arg", "text": "aStaffIncludes $($aStaffIncludes)[staff/common/WsdlTypes.h]", "parent": 56, "children": [], "start_point": {"row": 26, "column": 5}, "end_point": {"row": 26, "column": 64}}, {"id": 59, "type": "preproc_call", "text": "#ifeqend // wsdl types\n", "parent": null, "children": [60], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 60, "type": "preproc_directive", "text": "#ifeqend", "parent": 59, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 8}}, {"id": 61, "type": "preproc_call", "text": "#ifeq($(.Name),anyAttribute)\n", "parent": null, "children": [62, 63], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 0}}, {"id": 62, "type": "preproc_directive", "text": "#ifeq", "parent": 61, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 5}}, {"id": 63, "type": "preproc_arg", "text": "($(.Name),anyAttribute)", "parent": 61, "children": [], "start_point": {"row": 29, "column": 5}, "end_point": {"row": 29, "column": 28}}, {"id": 64, "type": "preproc_call", "text": "#ifneq($($aStaffIncludes.!match/Attribute.h/),true)\n", "parent": null, "children": [65, 66], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 31, "column": 0}}, {"id": 65, "type": "preproc_directive", "text": "#ifneq", "parent": 64, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 6}}, {"id": 66, "type": "preproc_arg", "text": "($($aStaffIncludes.!match/Attribute.h/),true)", "parent": 64, "children": [], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 51}}, {"id": 67, "type": "preproc_call", "text": "#var aStaffIncludes $($aStaffIncludes)[staff/common/Attribute.h]\n", "parent": null, "children": [68, 69], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 68, "type": "preproc_directive", "text": "#var", "parent": 67, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 4}}, {"id": 69, "type": "preproc_arg", "text": "aStaffIncludes $($aStaffIncludes)[staff/common/Attribute.h]", "parent": 67, "children": [], "start_point": {"row": 31, "column": 5}, "end_point": {"row": 31, "column": 64}}, {"id": 70, "type": "preproc_call", "text": "#ifeqend // any attribute\n", "parent": null, "children": [71], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 33, "column": 0}}, {"id": 71, "type": "preproc_directive", "text": "#ifeqend", "parent": 70, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 8}}, {"id": 72, "type": "preproc_call", "text": "#ifeqend // any attribute\n", "parent": null, "children": [73], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 34, "column": 0}}, {"id": 73, "type": "preproc_directive", "text": "#ifeqend", "parent": 72, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 8}}, {"id": 74, "type": "preproc_call", "text": "#ifeq($(.Name),hexBinary)\n", "parent": null, "children": [75, 76], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 36, "column": 0}}, {"id": 75, "type": "preproc_directive", "text": "#ifeq", "parent": 74, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 5}}, {"id": 76, "type": "preproc_arg", "text": "($(.Name),hexBinary)", "parent": 74, "children": [], "start_point": {"row": 35, "column": 5}, "end_point": {"row": 35, "column": 25}}, {"id": 77, "type": "preproc_call", "text": "#ifneq($($aStaffIncludes.!match/HexBinary.h/),true)\n", "parent": null, "children": [78, 79], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 37, "column": 0}}, {"id": 78, "type": "preproc_directive", "text": "#ifneq", "parent": 77, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 6}}, {"id": 79, "type": "preproc_arg", "text": "($($aStaffIncludes.!match/HexBinary.h/),true)", "parent": 77, "children": [], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 51}}, {"id": 80, "type": "preproc_call", "text": "#var aStaffIncludes $($aStaffIncludes)[staff/utils/HexBinary.h]\n", "parent": null, "children": [81, 82], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 0}}, {"id": 81, "type": "preproc_directive", "text": "#var", "parent": 80, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 4}}, {"id": 82, "type": "preproc_arg", "text": "aStaffIncludes $($aStaffIncludes)[staff/utils/HexBinary.h]", "parent": 80, "children": [], "start_point": {"row": 37, "column": 5}, "end_point": {"row": 37, "column": 63}}, {"id": 83, "type": "preproc_call", "text": "#ifeqend\n", "parent": null, "children": [84], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 39, "column": 0}}, {"id": 84, "type": "preproc_directive", "text": "#ifeqend", "parent": 83, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 8}}, {"id": 85, "type": "preproc_call", "text": "#ifeqend\n", "parent": null, "children": [86], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 40, "column": 0}}, {"id": 86, "type": "preproc_directive", "text": "#ifeqend", "parent": 85, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 8}}, {"id": 87, "type": "preproc_call", "text": "#ifeq($(.Name),base64Binary)\n", "parent": null, "children": [88, 89], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 42, "column": 0}}, {"id": 88, "type": "preproc_directive", "text": "#ifeq", "parent": 87, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 5}}, {"id": 89, "type": "preproc_arg", "text": "($(.Name),base64Binary)", "parent": 87, "children": [], "start_point": {"row": 41, "column": 5}, "end_point": {"row": 41, "column": 28}}, {"id": 90, "type": "preproc_call", "text": "#ifneq($($aStaffIncludes.!match/Base64Binary.h/),true)\n", "parent": null, "children": [91, 92], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 43, "column": 0}}, {"id": 91, "type": "preproc_directive", "text": "#ifneq", "parent": 90, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 6}}, {"id": 92, "type": "preproc_arg", "text": "($($aStaffIncludes.!match/Base64Binary.h/),true)", "parent": 90, "children": [], "start_point": {"row": 42, "column": 6}, "end_point": {"row": 42, "column": 54}}, {"id": 93, "type": "preproc_call", "text": "#var aStaffIncludes $($aStaffIncludes)[staff/utils/Base64Binary.h]\n", "parent": null, "children": [94, 95], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 44, "column": 0}}, {"id": 94, "type": "preproc_directive", "text": "#var", "parent": 93, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 4}}, {"id": 95, "type": "preproc_arg", "text": "aStaffIncludes $($aStaffIncludes)[staff/utils/Base64Binary.h]", "parent": 93, "children": [], "start_point": {"row": 43, "column": 5}, "end_point": {"row": 43, "column": 66}}, {"id": 96, "type": "preproc_call", "text": "#ifeqend\n", "parent": null, "children": [97], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 45, "column": 0}}, {"id": 97, "type": "preproc_directive", "text": "#ifeqend", "parent": 96, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 8}}, {"id": 98, "type": "preproc_call", "text": "#ifeqend\n", "parent": null, "children": [99], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 46, "column": 0}}, {"id": 99, "type": "preproc_directive", "text": "#ifeqend", "parent": 98, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 8}}, {"id": 100, "type": "preproc_call", "text": "#ifeqend // staff types\n", "parent": null, "children": [101], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 48, "column": 0}}, {"id": 101, "type": "preproc_directive", "text": "#ifeqend", "parent": 100, "children": [], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 8}}, {"id": 102, "type": "preproc_call", "text": "#ifeqend // staff\n", "parent": null, "children": [103], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 49, "column": 0}}, {"id": 103, "type": "preproc_directive", "text": "#ifeqend", "parent": 102, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 8}}, {"id": 104, "type": "preproc_call", "text": "#ifeqend // std\n", "parent": null, "children": [105], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 50, "column": 0}}, {"id": 105, "type": "preproc_directive", "text": "#ifeqend", "parent": 104, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 8}}, {"id": 106, "type": "preproc_call", "text": "#ifeq($(.Type),template)\n", "parent": null, "children": [107, 108], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 52, "column": 0}}, {"id": 107, "type": "preproc_directive", "text": "#ifeq", "parent": 106, "children": [], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 5}}, {"id": 108, "type": "preproc_arg", "text": "($(.Type),template)", "parent": 106, "children": [], "start_point": {"row": 51, "column": 5}, "end_point": {"row": 51, "column": 24}}, {"id": 109, "type": "preproc_call", "text": "#foreach $(.TemplateParams)\n", "parent": null, "children": [110, 111], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 53, "column": 0}}, {"id": 110, "type": "preproc_directive", "text": "#foreach", "parent": 109, "children": [], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 8}}, {"id": 111, "type": "preproc_arg", "text": "$(.TemplateParams)", "parent": 109, "children": [], "start_point": {"row": 52, "column": 9}, "end_point": {"row": 52, "column": 27}}, {"id": 112, "type": "preproc_call", "text": "#cginclude \"DetectTypeInclude.h\"\n", "parent": null, "children": [113, 114], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 54, "column": 0}}, {"id": 113, "type": "preproc_directive", "text": "#cginclude", "parent": 112, "children": [], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 10}}, {"id": 114, "type": "preproc_arg", "text": "\"DetectTypeInclude.h\"", "parent": 112, "children": [], "start_point": {"row": 53, "column": 11}, "end_point": {"row": 53, "column": 32}}, {"id": 115, "type": "preproc_call", "text": "#end\n", "parent": null, "children": [116], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 55, "column": 0}}, {"id": 116, "type": "preproc_directive", "text": "#end", "parent": 115, "children": [], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 4}}, {"id": 117, "type": "preproc_call", "text": "#ifeqend\n", "parent": null, "children": [118], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 56, "column": 0}}, {"id": 118, "type": "preproc_directive", "text": "#ifeqend", "parent": 117, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 8}}, {"id": 119, "type": "ERROR", "text": "", "parent": null, "children": [120], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 0}}, {"id": 120, "type": "ERROR", "text": "", "parent": 119, "children": [], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 0}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [], "returns": [], "exceptions": []}, "expressions": {"calls": [0, 3, 6, 9, 11, 13, 16, 19, 22, 25, 27, 30, 33, 35, 37, 40, 43, 46, 49, 51, 53, 56, 59, 61, 64, 67, 70, 72, 74, 77, 80, 83, 85, 87, 90, 93, 96, 98, 100, 102, 104, 106, 109, 112, 115, 117], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "#ifeq($(.Name),Optional||Nillable)\n#ifneq($($aStaffIncludes.!match/$(.Name).h/),true)\n#var aStaffIncludes $($aStaffIncludes)[staff/common/$(.Name).h]\n#ifeqend\n#ifeqend // optional or nillable\n\\\n#ifeq($(.Namespace),std::)\n\\\n#var sCurrCheckType $(.Name)\n#ifeq($($sCurrCheckType),multimap)\n#var sCurrCheckType map\n#ifeqend\n#ifneq($($aStdIncludes.!match/[$($sCurrCheckType)]/),true)\n#var aStdIncludes $($aStdIncludes)[$($sCurrCheckType)]\n#ifeqend\n\\\n#else\n#ifeq($(.Namespace),staff::)\n\\\n#ifeq($(.Name),DataObject||Abstract||Attribute||QName||Operation||ICallback||Array)\n#ifneq($($aStaffIncludes.!match/$(.Name).h/),true)\n#var aStaffIncludes $($aStaffIncludes)[staff/common/$(.Name).h]\n#ifeqend\n#else\n\\\n#ifneq($($aStaffIncludes.!match/WsdlTypes.h/),true)\n#var aStaffIncludes $($aStaffIncludes)[staff/common/WsdlTypes.h]\n#ifeqend // wsdl types\n\\\n#ifeq($(.Name),anyAttribute)\n#ifneq($($aStaffIncludes.!match/Attribute.h/),true)\n#var aStaffIncludes $($aStaffIncludes)[staff/common/Attribute.h]\n#ifeqend // any attribute\n#ifeqend // any attribute\n\\\n#ifeq($(.Name),hexBinary)\n#ifneq($($aStaffIncludes.!match/HexBinary.h/),true)\n#var aStaffIncludes $($aStaffIncludes)[staff/utils/HexBinary.h]\n#ifeqend\n#ifeqend\n\\\n#ifeq($(.Name),base64Binary)\n#ifneq($($aStaffIncludes.!match/Base64Binary.h/),true)\n#var aStaffIncludes $($aStaffIncludes)[staff/utils/Base64Binary.h]\n#ifeqend\n#ifeqend\n\\\n#ifeqend // staff types\n#ifeqend // staff\n#ifeqend // std\n\\\n#ifeq($(.Type),template)\n#foreach $(.TemplateParams)\n#cginclude \"DetectTypeInclude.h\"\n#end\n#ifeqend\n\\\n"}
80,294
c
#ifndef SCENETEXTURE_H #define SCENETEXTURE_H #include "scene.h" #include "glslprogram.h" #include "cube.h" #include <glm/glm.hpp> class SceneTexture : public Scene { private: GLSLProgram prog; Cube cube; float angle; void setMatrices(); void compileAndLinkShader(); public: SceneTexture(); void initScene(); void update( float t ); void render(); void resize(int, int); }; #endif // SCENEPERFRAGMENT_H
14.55
31
(translation_unit) "#ifndef SCENETEXTURE_H \n#define SCENETEXTURE_H \n \n#include "scene.h" \n#include "glslprogram.h" \n#include "cube.h" \n \n#include <glm/glm.hpp> \n \nclass SceneTexture : public Scene \n{ \nprivate: \n GLSLProgram prog; \n \n Cube cube; \n \n float angle; \n \n void setMatrices(); \n void compileAndLinkShader(); \n \npublic: \n SceneTexture(); \n \n void initScene(); \n void update( float t ); \n void render(); \n void resize(int, int); \n}; \n \n#endif // SCENEPERFRAGMENT_H \n" (preproc_ifdef) "#ifndef SCENETEXTURE_H \n#define SCENETEXTURE_H \n \n#include "scene.h" \n#include "glslprogram.h" \n#include "cube.h" \n \n#include <glm/glm.hpp> \n \nclass SceneTexture : public Scene \n{ \nprivate: \n GLSLProgram prog; \n \n Cube cube; \n \n float angle; \n \n void setMatrices(); \n void compileAndLinkShader(); \n \npublic: \n SceneTexture(); \n \n void initScene(); \n void update( float t ); \n void render(); \n void resize(int, int); \n}; \n \n#endif" (#ifndef) "#ifndef" (identifier) "SCENETEXTURE_H" (preproc_def) "#define SCENETEXTURE_H \n" (#define) "#define" (identifier) "SCENETEXTURE_H" (preproc_include) "#include "scene.h" \n" (#include) "#include" (string_literal) ""scene.h"" (") """ (string_content) "scene.h" (") """ (preproc_include) "#include "glslprogram.h" \n" (#include) "#include" (string_literal) ""glslprogram.h"" (") """ (string_content) "glslprogram.h" (") """ (preproc_include) "#include "cube.h" \n" (#include) "#include" (string_literal) ""cube.h"" (") """ (string_content) "cube.h" (") """ (preproc_include) "#include <glm/glm.hpp> \n" (#include) "#include" (system_lib_string) "<glm/glm.hpp>" (function_definition) "class SceneTexture : public Scene \n{ \nprivate: \n GLSLProgram prog; \n \n Cube cube; \n \n float angle; \n \n void setMatrices(); \n void compileAndLinkShader(); \n \npublic: \n SceneTexture(); \n \n void initScene(); \n void update( float t ); \n void render(); \n void resize(int, int); \n}" (type_identifier) "class" (identifier) "SceneTexture" (ERROR) ": public Scene" (:) ":" (identifier) "public" (identifier) "Scene" (compound_statement) "{ \nprivate: \n GLSLProgram prog; \n \n Cube cube; \n \n float angle; \n \n void setMatrices(); \n void compileAndLinkShader(); \n \npublic: \n SceneTexture(); \n \n void initScene(); \n void update( float t ); \n void render(); \n void resize(int, int); \n}" ({) "{" (labeled_statement) "private: \n GLSLProgram prog;" (statement_identifier) "private" (:) ":" (declaration) "GLSLProgram prog;" (type_identifier) "GLSLProgram" (identifier) "prog" (;) ";" (declaration) "Cube cube;" (type_identifier) "Cube" (identifier) "cube" (;) ";" (declaration) "float angle;" (primitive_type) "float" (identifier) "angle" (;) ";" (declaration) "void setMatrices();" (primitive_type) "void" (function_declarator) "setMatrices()" (identifier) "setMatrices" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void compileAndLinkShader();" (primitive_type) "void" (function_declarator) "compileAndLinkShader()" (identifier) "compileAndLinkShader" (parameter_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "public: \n SceneTexture();" (statement_identifier) "public" (:) ":" (expression_statement) "SceneTexture();" (call_expression) "SceneTexture()" (identifier) "SceneTexture" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void initScene();" (primitive_type) "void" (function_declarator) "initScene()" (identifier) "initScene" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void update( float t );" (primitive_type) "void" (function_declarator) "update( float t )" (identifier) "update" (parameter_list) "( float t )" (() "(" (parameter_declaration) "float t" (primitive_type) "float" (identifier) "t" ()) ")" (;) ";" (declaration) "void render();" (primitive_type) "void" (function_declarator) "render()" (identifier) "render" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void resize(int, int);" (primitive_type) "void" (function_declarator) "resize(int, int)" (identifier) "resize" (parameter_list) "(int, int)" (() "(" (parameter_declaration) "int" (primitive_type) "int" (,) "," (parameter_declaration) "int" (primitive_type) "int" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif" (comment) "// SCENEPERFRAGMENT_H "
123
1
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 14.55, "nodes": 74, "errors": 0, "source_hash": "ca56f47b00b197c097b5511cb0fd639687fdb8dd9d55d8ad69b59965c8fc7548", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef SCENETEXTURE_H\r\n#define SCENETEXTURE_H\r\n\r\n#include \"scene.h\"\r\n#include \"glslprogram.h\"\r\n#include \"cube.h\"\r\n\r\n#include <glm/glm.hpp>\r\n\r\nclass SceneTexture : public Scene\r\n{\r\nprivate:\r\n GLSLProgram prog;\r\n\r\n Cube cube;\r\n\r\n float angle;\r\n\r\n void setMatrices();\r\n void compileAndLinkShader();\r\n\r\npublic:\r\n SceneTexture();\r\n\r\n void initScene();\r\n void update( float t );\r\n void render();\r\n void resize(int, int);\r\n};\r\n\r\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 73], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 30, "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": "SCENETEXTURE_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 22}}, {"id": 3, "type": "preproc_def", "text": "#define SCENETEXTURE_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": "SCENETEXTURE_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 22}}, {"id": 6, "type": "preproc_include", "text": "#include \"scene.h\"\r\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": "\"scene.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 18}}, {"id": 9, "type": "preproc_include", "text": "#include \"glslprogram.h\"\r\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": "\"glslprogram.h\"", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 24}}, {"id": 12, "type": "preproc_include", "text": "#include \"cube.h\"\r\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": "\"cube.h\"", "parent": 12, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 17}}, {"id": 15, "type": "preproc_include", "text": "#include <glm/glm.hpp>\r\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": "system_lib_string", "text": "<glm/glm.hpp>", "parent": 15, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 22}}, {"id": 18, "type": "function_definition", "text": "class SceneTexture : public Scene\r\n{\r\nprivate:\r\n GLSLProgram prog;\r\n\r\n Cube cube;\r\n\r\n float angle;\r\n\r\n void setMatrices();\r\n void compileAndLinkShader();\r\n\r\npublic:\r\n SceneTexture();\r\n\r\n void initScene();\r\n void update( float t );\r\n void render();\r\n void resize(int, int);\r\n}", "parent": 0, "children": [19, 20], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 28, "column": 1}}, {"id": 19, "type": "identifier", "text": "SceneTexture", "parent": 18, "children": [], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 18}}, {"id": 20, "type": "ERROR", "text": ": public Scene", "parent": 18, "children": [21], "start_point": {"row": 9, "column": 19}, "end_point": {"row": 9, "column": 33}}, {"id": 21, "type": "identifier", "text": "Scene", "parent": 20, "children": [], "start_point": {"row": 9, "column": 28}, "end_point": {"row": 9, "column": 33}}, {"id": 22, "type": "labeled_statement", "text": "private:\r\n GLSLProgram prog;", "parent": 18, "children": [23], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 21}}, {"id": 23, "type": "declaration", "text": "GLSLProgram prog;", "parent": 22, "children": [24, 25], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 21}}, {"id": 24, "type": "type_identifier", "text": "GLSLProgram", "parent": 23, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 15}}, {"id": 25, "type": "identifier", "text": "prog", "parent": 23, "children": [], "start_point": {"row": 12, "column": 16}, "end_point": {"row": 12, "column": 20}}, {"id": 26, "type": "declaration", "text": "Cube cube;", "parent": 18, "children": [27, 28], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 14}}, {"id": 27, "type": "type_identifier", "text": "Cube", "parent": 26, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 8}}, {"id": 28, "type": "identifier", "text": "cube", "parent": 26, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 13}}, {"id": 29, "type": "declaration", "text": "float angle;", "parent": 18, "children": [30, 31], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 16}}, {"id": 30, "type": "primitive_type", "text": "float", "parent": 29, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 9}}, {"id": 31, "type": "identifier", "text": "angle", "parent": 29, "children": [], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 15}}, {"id": 32, "type": "declaration", "text": "void setMatrices();", "parent": 18, "children": [33, 34], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 23}}, {"id": 33, "type": "primitive_type", "text": "void", "parent": 32, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 8}}, {"id": 34, "type": "function_declarator", "text": "setMatrices()", "parent": 32, "children": [35, 36], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 22}}, {"id": 35, "type": "identifier", "text": "setMatrices", "parent": 34, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 20}}, {"id": 36, "type": "parameter_list", "text": "()", "parent": 34, "children": [], "start_point": {"row": 18, "column": 20}, "end_point": {"row": 18, "column": 22}}, {"id": 37, "type": "declaration", "text": "void compileAndLinkShader();", "parent": 18, "children": [38, 39], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 32}}, {"id": 38, "type": "primitive_type", "text": "void", "parent": 37, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 8}}, {"id": 39, "type": "function_declarator", "text": "compileAndLinkShader()", "parent": 37, "children": [40, 41], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 31}}, {"id": 40, "type": "identifier", "text": "compileAndLinkShader", "parent": 39, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 29}}, {"id": 41, "type": "parameter_list", "text": "()", "parent": 39, "children": [], "start_point": {"row": 19, "column": 29}, "end_point": {"row": 19, "column": 31}}, {"id": 42, "type": "labeled_statement", "text": "public:\r\n SceneTexture();", "parent": 18, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 19}}, {"id": 43, "type": "call_expression", "text": "SceneTexture()", "parent": 42, "children": [44, 45], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 18}}, {"id": 44, "type": "identifier", "text": "SceneTexture", "parent": 43, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 16}}, {"id": 45, "type": "argument_list", "text": "()", "parent": 43, "children": [], "start_point": {"row": 22, "column": 16}, "end_point": {"row": 22, "column": 18}}, {"id": 46, "type": "declaration", "text": "void initScene();", "parent": 18, "children": [47, 48], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 21}}, {"id": 47, "type": "primitive_type", "text": "void", "parent": 46, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 8}}, {"id": 48, "type": "function_declarator", "text": "initScene()", "parent": 46, "children": [49, 50], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 20}}, {"id": 49, "type": "identifier", "text": "initScene", "parent": 48, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 18}}, {"id": 50, "type": "parameter_list", "text": "()", "parent": 48, "children": [], "start_point": {"row": 24, "column": 18}, "end_point": {"row": 24, "column": 20}}, {"id": 51, "type": "declaration", "text": "void update( float t );", "parent": 18, "children": [52, 53], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 27}}, {"id": 52, "type": "primitive_type", "text": "void", "parent": 51, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 8}}, {"id": 53, "type": "function_declarator", "text": "update( float t )", "parent": 51, "children": [54, 55], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 26}}, {"id": 54, "type": "identifier", "text": "update", "parent": 53, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 15}}, {"id": 55, "type": "parameter_list", "text": "( float t )", "parent": 53, "children": [56], "start_point": {"row": 25, "column": 15}, "end_point": {"row": 25, "column": 26}}, {"id": 56, "type": "parameter_declaration", "text": "float t", "parent": 55, "children": [57, 58], "start_point": {"row": 25, "column": 17}, "end_point": {"row": 25, "column": 24}}, {"id": 57, "type": "primitive_type", "text": "float", "parent": 56, "children": [], "start_point": {"row": 25, "column": 17}, "end_point": {"row": 25, "column": 22}}, {"id": 58, "type": "identifier", "text": "t", "parent": 56, "children": [], "start_point": {"row": 25, "column": 23}, "end_point": {"row": 25, "column": 24}}, {"id": 59, "type": "declaration", "text": "void render();", "parent": 18, "children": [60, 61], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 18}}, {"id": 60, "type": "primitive_type", "text": "void", "parent": 59, "children": [], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 8}}, {"id": 61, "type": "function_declarator", "text": "render()", "parent": 59, "children": [62, 63], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 17}}, {"id": 62, "type": "identifier", "text": "render", "parent": 61, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 15}}, {"id": 63, "type": "parameter_list", "text": "()", "parent": 61, "children": [], "start_point": {"row": 26, "column": 15}, "end_point": {"row": 26, "column": 17}}, {"id": 64, "type": "declaration", "text": "void resize(int, int);", "parent": 18, "children": [65, 66], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 26}}, {"id": 65, "type": "primitive_type", "text": "void", "parent": 64, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 8}}, {"id": 66, "type": "function_declarator", "text": "resize(int, int)", "parent": 64, "children": [67, 68], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 25}}, {"id": 67, "type": "identifier", "text": "resize", "parent": 66, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 15}}, {"id": 68, "type": "parameter_list", "text": "(int, int)", "parent": 66, "children": [69, 71], "start_point": {"row": 27, "column": 15}, "end_point": {"row": 27, "column": 25}}, {"id": 69, "type": "parameter_declaration", "text": "int", "parent": 68, "children": [70], "start_point": {"row": 27, "column": 16}, "end_point": {"row": 27, "column": 19}}, {"id": 70, "type": "primitive_type", "text": "int", "parent": 69, "children": [], "start_point": {"row": 27, "column": 16}, "end_point": {"row": 27, "column": 19}}, {"id": 71, "type": "parameter_declaration", "text": "int", "parent": 68, "children": [72], "start_point": {"row": 27, "column": 21}, "end_point": {"row": 27, "column": 24}}, {"id": 72, "type": "primitive_type", "text": "int", "parent": 71, "children": [], "start_point": {"row": 27, "column": 21}, "end_point": {"row": 27, "column": 24}}, {"id": 73, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 6}}]}, "node_categories": {"declarations": {"functions": [18, 34, 39, 48, 53, 61, 66], "variables": [23, 26, 29, 32, 37, 46, 51, 56, 59, 64, 69, 71], "classes": [], "imports": [6, 7, 9, 10, 12, 13, 15, 16], "modules": [], "enums": []}, "statements": {"expressions": [43], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 19, 21, 24, 25, 27, 28, 31, 35, 40, 44, 49, 54, 58, 62, 67, 73], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 18, "universal_type": "function", "name": "SceneTexture", "text_snippet": "class SceneTexture : public Scene\r\n{\r\nprivate:\r\n GLSLProgram prog;\r\n\r\n Cube cube;\r\n\r\n float"}, {"node_id": 34, "universal_type": "function", "name": "unknown", "text_snippet": "setMatrices()"}, {"node_id": 39, "universal_type": "function", "name": "unknown", "text_snippet": "compileAndLinkShader()"}, {"node_id": 48, "universal_type": "function", "name": "unknown", "text_snippet": "initScene()"}, {"node_id": 53, "universal_type": "function", "name": "unknown", "text_snippet": "update( float t )"}, {"node_id": 61, "universal_type": "function", "name": "unknown", "text_snippet": "render()"}, {"node_id": 66, "universal_type": "function", "name": "unknown", "text_snippet": "resize(int, int)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"scene.h\"\r\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"glslprogram.h\"\r\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"cube.h\"\r\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <glm/glm.hpp>\r\n"}, {"node_id": 16, "text": "#include"}]}, "original_source_code": "#ifndef SCENETEXTURE_H\r\n#define SCENETEXTURE_H\r\n\r\n#include \"scene.h\"\r\n#include \"glslprogram.h\"\r\n#include \"cube.h\"\r\n\r\n#include <glm/glm.hpp>\r\n\r\nclass SceneTexture : public Scene\r\n{\r\nprivate:\r\n GLSLProgram prog;\r\n\r\n Cube cube;\r\n\r\n float angle;\r\n\r\n void setMatrices();\r\n void compileAndLinkShader();\r\n\r\npublic:\r\n SceneTexture();\r\n\r\n void initScene();\r\n void update( float t );\r\n void render();\r\n void resize(int, int);\r\n};\r\n\r\n#endif // SCENEPERFRAGMENT_H\r\n"}
80,295
c
#pragma once template <typename T> struct MaxHeap { // O(N) static void heapify(T data[], int size) { for (int i = (size - 2) / 2; i >= 0; i--) siftDown(data, i, size); } static void heapify(vector<T>& data) { heapy(data.data(), int(data.size())); } // O(NlogN) static void sort(T data[], int size) { // heapify for (int i = (size - 2) / 2; i >= 0; i--) siftDown(data, i, size); // sorting for (int i = size - 1; i > 0; i--) { swap(data[0], data[i]); siftDown(data, 0, i); } } static void sort(vector<T>& data) { return sort(data.data(), int(data.size())); } private: // O(logN) static void siftDown(T data[], int start, int end) { int i = start; int j = start * 2 + 1; while (j < end) { if (j + 1 < end && data[j] < data[j + 1]) j++; if (!(data[i] < data[j])) break; swap(data[i], data[j]); i = j; j = j * 2 + 1; } } };
26.05
41
(translation_unit) "#pragma once\n\ntemplate <typename T>\nstruct MaxHeap {\n // O(N)\n static void heapify(T data[], int size) {\n for (int i = (size - 2) / 2; i >= 0; i--)\n siftDown(data, i, size);\n }\n\n static void heapify(vector<T>& data) {\n heapy(data.data(), int(data.size()));\n }\n\n // O(NlogN)\n static void sort(T data[], int size) {\n // heapify\n for (int i = (size - 2) / 2; i >= 0; i--)\n siftDown(data, i, size);\n\n // sorting\n for (int i = size - 1; i > 0; i--) {\n swap(data[0], data[i]);\n siftDown(data, 0, i);\n }\n }\n\n static void sort(vector<T>& data) {\n return sort(data.data(), int(data.size()));\n }\n\nprivate:\n // O(logN)\n static void siftDown(T data[], int start, int end) {\n int i = start;\n int j = start * 2 + 1;\n\n while (j < end) {\n if (j + 1 < end && data[j] < data[j + 1])\n j++;\n\n if (!(data[i] < data[j]))\n break;\n\n swap(data[i], data[j]);\n\n i = j;\n j = j * 2 + 1;\n }\n }\n};\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (ERROR) "template <typename T>\nstruct MaxHeap" (binary_expression) "template <typename T>\nstruct" (binary_expression) "template <typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "T" (identifier) "T" (>) ">" (identifier) "struct" (identifier) "MaxHeap" (compound_statement) "{\n // O(N)\n static void heapify(T data[], int size) {\n for (int i = (size - 2) / 2; i >= 0; i--)\n siftDown(data, i, size);\n }\n\n static void heapify(vector<T>& data) {\n heapy(data.data(), int(data.size()));\n }\n\n // O(NlogN)\n static void sort(T data[], int size) {\n // heapify\n for (int i = (size - 2) / 2; i >= 0; i--)\n siftDown(data, i, size);\n\n // sorting\n for (int i = size - 1; i > 0; i--) {\n swap(data[0], data[i]);\n siftDown(data, 0, i);\n }\n }\n\n static void sort(vector<T>& data) {\n return sort(data.data(), int(data.size()));\n }\n\nprivate:\n // O(logN)\n static void siftDown(T data[], int start, int end) {\n int i = start;\n int j = start * 2 + 1;\n\n while (j < end) {\n if (j + 1 < end && data[j] < data[j + 1])\n j++;\n\n if (!(data[i] < data[j]))\n break;\n\n swap(data[i], data[j]);\n\n i = j;\n j = j * 2 + 1;\n }\n }\n}" ({) "{" (comment) "// O(N)" (function_definition) "static void heapify(T data[], int size) {\n for (int i = (size - 2) / 2; i >= 0; i--)\n siftDown(data, i, size);\n }" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "heapify(T data[], int size)" (identifier) "heapify" (parameter_list) "(T data[], int size)" (() "(" (parameter_declaration) "T data[]" (type_identifier) "T" (array_declarator) "data[]" (identifier) "data" ([) "[" (]) "]" (,) "," (parameter_declaration) "int size" (primitive_type) "int" (identifier) "size" ()) ")" (compound_statement) "{\n for (int i = (size - 2) / 2; i >= 0; i--)\n siftDown(data, i, size);\n }" ({) "{" (for_statement) "for (int i = (size - 2) / 2; i >= 0; i--)\n siftDown(data, i, size);" (for) "for" (() "(" (declaration) "int i = (size - 2) / 2;" (primitive_type) "int" (init_declarator) "i = (size - 2) / 2" (identifier) "i" (=) "=" (binary_expression) "(size - 2) / 2" (parenthesized_expression) "(size - 2)" (() "(" (binary_expression) "size - 2" (identifier) "size" (-) "-" (number_literal) "2" ()) ")" (/) "/" (number_literal) "2" (;) ";" (binary_expression) "i >= 0" (identifier) "i" (>=) ">=" (number_literal) "0" (;) ";" (update_expression) "i--" (identifier) "i" (--) "--" ()) ")" (expression_statement) "siftDown(data, i, size);" (call_expression) "siftDown(data, i, size)" (identifier) "siftDown" (argument_list) "(data, i, size)" (() "(" (identifier) "data" (,) "," (identifier) "i" (,) "," (identifier) "size" ()) ")" (;) ";" (}) "}" (function_definition) "static void heapify(vector<T>& data) {\n heapy(data.data(), int(data.size()));\n }" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "heapify(vector<T>& data)" (identifier) "heapify" (parameter_list) "(vector<T>& data)" (() "(" (parameter_declaration) "vector<T>& data" (type_identifier) "vector" (ERROR) "<T>&" (<) "<" (identifier) "T" (>) ">" (&) "&" (identifier) "data" ()) ")" (compound_statement) "{\n heapy(data.data(), int(data.size()));\n }" ({) "{" (expression_statement) "heapy(data.data(), int(data.size()));" (call_expression) "heapy(data.data(), int(data.size()))" (identifier) "heapy" (argument_list) "(data.data(), int(data.size()))" (() "(" (call_expression) "data.data()" (field_expression) "data.data" (identifier) "data" (.) "." (field_identifier) "data" (argument_list) "()" (() "(" ()) ")" (,) "," (call_expression) "int(data.size())" (identifier) "int" (argument_list) "(data.size())" (() "(" (call_expression) "data.size()" (field_expression) "data.size" (identifier) "data" (.) "." (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" ()) ")" ()) ")" (;) ";" (}) "}" (comment) "// O(NlogN)" (function_definition) "static void sort(T data[], int size) {\n // heapify\n for (int i = (size - 2) / 2; i >= 0; i--)\n siftDown(data, i, size);\n\n // sorting\n for (int i = size - 1; i > 0; i--) {\n swap(data[0], data[i]);\n siftDown(data, 0, i);\n }\n }" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "sort(T data[], int size)" (identifier) "sort" (parameter_list) "(T data[], int size)" (() "(" (parameter_declaration) "T data[]" (type_identifier) "T" (array_declarator) "data[]" (identifier) "data" ([) "[" (]) "]" (,) "," (parameter_declaration) "int size" (primitive_type) "int" (identifier) "size" ()) ")" (compound_statement) "{\n // heapify\n for (int i = (size - 2) / 2; i >= 0; i--)\n siftDown(data, i, size);\n\n // sorting\n for (int i = size - 1; i > 0; i--) {\n swap(data[0], data[i]);\n siftDown(data, 0, i);\n }\n }" ({) "{" (comment) "// heapify" (for_statement) "for (int i = (size - 2) / 2; i >= 0; i--)\n siftDown(data, i, size);" (for) "for" (() "(" (declaration) "int i = (size - 2) / 2;" (primitive_type) "int" (init_declarator) "i = (size - 2) / 2" (identifier) "i" (=) "=" (binary_expression) "(size - 2) / 2" (parenthesized_expression) "(size - 2)" (() "(" (binary_expression) "size - 2" (identifier) "size" (-) "-" (number_literal) "2" ()) ")" (/) "/" (number_literal) "2" (;) ";" (binary_expression) "i >= 0" (identifier) "i" (>=) ">=" (number_literal) "0" (;) ";" (update_expression) "i--" (identifier) "i" (--) "--" ()) ")" (expression_statement) "siftDown(data, i, size);" (call_expression) "siftDown(data, i, size)" (identifier) "siftDown" (argument_list) "(data, i, size)" (() "(" (identifier) "data" (,) "," (identifier) "i" (,) "," (identifier) "size" ()) ")" (;) ";" (comment) "// sorting" (for_statement) "for (int i = size - 1; i > 0; i--) {\n swap(data[0], data[i]);\n siftDown(data, 0, i);\n }" (for) "for" (() "(" (declaration) "int i = size - 1;" (primitive_type) "int" (init_declarator) "i = size - 1" (identifier) "i" (=) "=" (binary_expression) "size - 1" (identifier) "size" (-) "-" (number_literal) "1" (;) ";" (binary_expression) "i > 0" (identifier) "i" (>) ">" (number_literal) "0" (;) ";" (update_expression) "i--" (identifier) "i" (--) "--" ()) ")" (compound_statement) "{\n swap(data[0], data[i]);\n siftDown(data, 0, i);\n }" ({) "{" (expression_statement) "swap(data[0], data[i]);" (call_expression) "swap(data[0], data[i])" (identifier) "swap" (argument_list) "(data[0], data[i])" (() "(" (subscript_expression) "data[0]" (identifier) "data" ([) "[" (number_literal) "0" (]) "]" (,) "," (subscript_expression) "data[i]" (identifier) "data" ([) "[" (identifier) "i" (]) "]" ()) ")" (;) ";" (expression_statement) "siftDown(data, 0, i);" (call_expression) "siftDown(data, 0, i)" (identifier) "siftDown" (argument_list) "(data, 0, i)" (() "(" (identifier) "data" (,) "," (number_literal) "0" (,) "," (identifier) "i" ()) ")" (;) ";" (}) "}" (}) "}" (function_definition) "static void sort(vector<T>& data) {\n return sort(data.data(), int(data.size()));\n }" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "sort(vector<T>& data)" (identifier) "sort" (parameter_list) "(vector<T>& data)" (() "(" (parameter_declaration) "vector<T>& data" (type_identifier) "vector" (ERROR) "<T>&" (<) "<" (identifier) "T" (>) ">" (&) "&" (identifier) "data" ()) ")" (compound_statement) "{\n return sort(data.data(), int(data.size()));\n }" ({) "{" (return_statement) "return sort(data.data(), int(data.size()));" (return) "return" (call_expression) "sort(data.data(), int(data.size()))" (identifier) "sort" (argument_list) "(data.data(), int(data.size()))" (() "(" (call_expression) "data.data()" (field_expression) "data.data" (identifier) "data" (.) "." (field_identifier) "data" (argument_list) "()" (() "(" ()) ")" (,) "," (call_expression) "int(data.size())" (identifier) "int" (argument_list) "(data.size())" (() "(" (call_expression) "data.size()" (field_expression) "data.size" (identifier) "data" (.) "." (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" ()) ")" ()) ")" (;) ";" (}) "}" (labeled_statement) "private:\n // O(logN)\n static void siftDown(T data[], int start, int end) {\n int i = start;\n int j = start * 2 + 1;\n\n while (j < end) {\n if (j + 1 < end && data[j] < data[j + 1])\n j++;\n\n if (!(data[i] < data[j]))\n break;\n\n swap(data[i], data[j]);\n\n i = j;\n j = j * 2 + 1;\n }\n }" (statement_identifier) "private" (:) ":" (comment) "// O(logN)" (ERROR) "static void siftDown(T data[], int start, int end)" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "siftDown(T data[], int start, int end)" (identifier) "siftDown" (parameter_list) "(T data[], int start, int end)" (() "(" (parameter_declaration) "T data[]" (type_identifier) "T" (array_declarator) "data[]" (identifier) "data" ([) "[" (]) "]" (,) "," (parameter_declaration) "int start" (primitive_type) "int" (identifier) "start" (,) "," (parameter_declaration) "int end" (primitive_type) "int" (identifier) "end" ()) ")" (compound_statement) "{\n int i = start;\n int j = start * 2 + 1;\n\n while (j < end) {\n if (j + 1 < end && data[j] < data[j + 1])\n j++;\n\n if (!(data[i] < data[j]))\n break;\n\n swap(data[i], data[j]);\n\n i = j;\n j = j * 2 + 1;\n }\n }" ({) "{" (declaration) "int i = start;" (primitive_type) "int" (init_declarator) "i = start" (identifier) "i" (=) "=" (identifier) "start" (;) ";" (declaration) "int j = start * 2 + 1;" (primitive_type) "int" (init_declarator) "j = start * 2 + 1" (identifier) "j" (=) "=" (binary_expression) "start * 2 + 1" (binary_expression) "start * 2" (identifier) "start" (*) "*" (number_literal) "2" (+) "+" (number_literal) "1" (;) ";" (while_statement) "while (j < end) {\n if (j + 1 < end && data[j] < data[j + 1])\n j++;\n\n if (!(data[i] < data[j]))\n break;\n\n swap(data[i], data[j]);\n\n i = j;\n j = j * 2 + 1;\n }" (while) "while" (parenthesized_expression) "(j < end)" (() "(" (binary_expression) "j < end" (identifier) "j" (<) "<" (identifier) "end" ()) ")" (compound_statement) "{\n if (j + 1 < end && data[j] < data[j + 1])\n j++;\n\n if (!(data[i] < data[j]))\n break;\n\n swap(data[i], data[j]);\n\n i = j;\n j = j * 2 + 1;\n }" ({) "{" (if_statement) "if (j + 1 < end && data[j] < data[j + 1])\n j++;" (if) "if" (parenthesized_expression) "(j + 1 < end && data[j] < data[j + 1])" (() "(" (binary_expression) "j + 1 < end && data[j] < data[j + 1]" (binary_expression) "j + 1 < end" (binary_expression) "j + 1" (identifier) "j" (+) "+" (number_literal) "1" (<) "<" (identifier) "end" (&&) "&&" (binary_expression) "data[j] < data[j + 1]" (subscript_expression) "data[j]" (identifier) "data" ([) "[" (identifier) "j" (]) "]" (<) "<" (subscript_expression) "data[j + 1]" (identifier) "data" ([) "[" (binary_expression) "j + 1" (identifier) "j" (+) "+" (number_literal) "1" (]) "]" ()) ")" (expression_statement) "j++;" (update_expression) "j++" (identifier) "j" (++) "++" (;) ";" (if_statement) "if (!(data[i] < data[j]))\n break;" (if) "if" (parenthesized_expression) "(!(data[i] < data[j]))" (() "(" (unary_expression) "!(data[i] < data[j])" (!) "!" (parenthesized_expression) "(data[i] < data[j])" (() "(" (binary_expression) "data[i] < data[j]" (subscript_expression) "data[i]" (identifier) "data" ([) "[" (identifier) "i" (]) "]" (<) "<" (subscript_expression) "data[j]" (identifier) "data" ([) "[" (identifier) "j" (]) "]" ()) ")" ()) ")" (break_statement) "break;" (break) "break" (;) ";" (expression_statement) "swap(data[i], data[j]);" (call_expression) "swap(data[i], data[j])" (identifier) "swap" (argument_list) "(data[i], data[j])" (() "(" (subscript_expression) "data[i]" (identifier) "data" ([) "[" (identifier) "i" (]) "]" (,) "," (subscript_expression) "data[j]" (identifier) "data" ([) "[" (identifier) "j" (]) "]" ()) ")" (;) ";" (expression_statement) "i = j;" (assignment_expression) "i = j" (identifier) "i" (=) "=" (identifier) "j" (;) ";" (expression_statement) "j = j * 2 + 1;" (assignment_expression) "j = j * 2 + 1" (identifier) "j" (=) "=" (binary_expression) "j * 2 + 1" (binary_expression) "j * 2" (identifier) "j" (*) "*" (number_literal) "2" (+) "+" (number_literal) "1" (;) ";" (}) "}" (}) "}" (}) "}" (expression_statement) ";" (;) ";"
459
5
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 26.05, "nodes": 281, "errors": 0, "source_hash": "a863ed287f7bbc4a50b71151cfad20d629836c166f244eaf3068c1dbf0717ed9", "categorized_nodes": 194}, "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": "ERROR", "text": "template <typename T>\nstruct MaxHeap", "parent": null, "children": [4, 13], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 14}}, {"id": 4, "type": "binary_expression", "text": "template <typename T>\nstruct", "parent": 3, "children": [5, 9, 11, 12], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 6}}, {"id": 5, "type": "binary_expression", "text": "template <typename", "parent": 4, "children": [6, 7, 8], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 18}}, {"id": 6, "type": "identifier", "text": "template", "parent": 5, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 8}}, {"id": 7, "type": "<", "text": "<", "parent": 5, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 10}}, {"id": 8, "type": "identifier", "text": "typename", "parent": 5, "children": [], "start_point": {"row": 2, "column": 10}, "end_point": {"row": 2, "column": 18}}, {"id": 9, "type": "ERROR", "text": "T", "parent": 4, "children": [10], "start_point": {"row": 2, "column": 19}, "end_point": {"row": 2, "column": 20}}, {"id": 10, "type": "identifier", "text": "T", "parent": 9, "children": [], "start_point": {"row": 2, "column": 19}, "end_point": {"row": 2, "column": 20}}, {"id": 11, "type": ">", "text": ">", "parent": 4, "children": [], "start_point": {"row": 2, "column": 20}, "end_point": {"row": 2, "column": 21}}, {"id": 12, "type": "identifier", "text": "struct", "parent": 4, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 6}}, {"id": 13, "type": "identifier", "text": "MaxHeap", "parent": 3, "children": [], "start_point": {"row": 3, "column": 7}, "end_point": {"row": 3, "column": 14}}, {"id": 14, "type": "function_definition", "text": "static void heapify(T data[], int size) {\n for (int i = (size - 2) / 2; i >= 0; i--)\n siftDown(data, i, size);\n }", "parent": null, "children": [15, 16], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 8, "column": 5}}, {"id": 15, "type": "primitive_type", "text": "void", "parent": 14, "children": [], "start_point": {"row": 5, "column": 11}, "end_point": {"row": 5, "column": 15}}, {"id": 16, "type": "function_declarator", "text": "heapify(T data[], int size)", "parent": 14, "children": [17, 18], "start_point": {"row": 5, "column": 16}, "end_point": {"row": 5, "column": 43}}, {"id": 17, "type": "identifier", "text": "heapify", "parent": 16, "children": [], "start_point": {"row": 5, "column": 16}, "end_point": {"row": 5, "column": 23}}, {"id": 18, "type": "parameter_list", "text": "(T data[], int size)", "parent": 16, "children": [19, 23], "start_point": {"row": 5, "column": 23}, "end_point": {"row": 5, "column": 43}}, {"id": 19, "type": "parameter_declaration", "text": "T data[]", "parent": 18, "children": [20, 21], "start_point": {"row": 5, "column": 24}, "end_point": {"row": 5, "column": 32}}, {"id": 20, "type": "type_identifier", "text": "T", "parent": 19, "children": [], "start_point": {"row": 5, "column": 24}, "end_point": {"row": 5, "column": 25}}, {"id": 21, "type": "array_declarator", "text": "data[]", "parent": 19, "children": [22], "start_point": {"row": 5, "column": 26}, "end_point": {"row": 5, "column": 32}}, {"id": 22, "type": "identifier", "text": "data", "parent": 21, "children": [], "start_point": {"row": 5, "column": 26}, "end_point": {"row": 5, "column": 30}}, {"id": 23, "type": "parameter_declaration", "text": "int size", "parent": 18, "children": [24, 25], "start_point": {"row": 5, "column": 34}, "end_point": {"row": 5, "column": 42}}, {"id": 24, "type": "primitive_type", "text": "int", "parent": 23, "children": [], "start_point": {"row": 5, "column": 34}, "end_point": {"row": 5, "column": 37}}, {"id": 25, "type": "identifier", "text": "size", "parent": 23, "children": [], "start_point": {"row": 5, "column": 38}, "end_point": {"row": 5, "column": 42}}, {"id": 26, "type": "for_statement", "text": "for (int i = (size - 2) / 2; i >= 0; i--)\n siftDown(data, i, size);", "parent": 14, "children": [27, 40, 44], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 7, "column": 36}}, {"id": 27, "type": "declaration", "text": "int i = (size - 2) / 2;", "parent": 26, "children": [28, 29], "start_point": {"row": 6, "column": 13}, "end_point": {"row": 6, "column": 36}}, {"id": 28, "type": "primitive_type", "text": "int", "parent": 27, "children": [], "start_point": {"row": 6, "column": 13}, "end_point": {"row": 6, "column": 16}}, {"id": 29, "type": "init_declarator", "text": "i = (size - 2) / 2", "parent": 27, "children": [30, 31, 32], "start_point": {"row": 6, "column": 17}, "end_point": {"row": 6, "column": 35}}, {"id": 30, "type": "identifier", "text": "i", "parent": 29, "children": [], "start_point": {"row": 6, "column": 17}, "end_point": {"row": 6, "column": 18}}, {"id": 31, "type": "=", "text": "=", "parent": 29, "children": [], "start_point": {"row": 6, "column": 19}, "end_point": {"row": 6, "column": 20}}, {"id": 32, "type": "binary_expression", "text": "(size - 2) / 2", "parent": 29, "children": [33, 38, 39], "start_point": {"row": 6, "column": 21}, "end_point": {"row": 6, "column": 35}}, {"id": 33, "type": "parenthesized_expression", "text": "(size - 2)", "parent": 32, "children": [34], "start_point": {"row": 6, "column": 21}, "end_point": {"row": 6, "column": 31}}, {"id": 34, "type": "binary_expression", "text": "size - 2", "parent": 33, "children": [35, 36, 37], "start_point": {"row": 6, "column": 22}, "end_point": {"row": 6, "column": 30}}, {"id": 35, "type": "identifier", "text": "size", "parent": 34, "children": [], "start_point": {"row": 6, "column": 22}, "end_point": {"row": 6, "column": 26}}, {"id": 36, "type": "-", "text": "-", "parent": 34, "children": [], "start_point": {"row": 6, "column": 27}, "end_point": {"row": 6, "column": 28}}, {"id": 37, "type": "number_literal", "text": "2", "parent": 34, "children": [], "start_point": {"row": 6, "column": 29}, "end_point": {"row": 6, "column": 30}}, {"id": 38, "type": "/", "text": "/", "parent": 32, "children": [], "start_point": {"row": 6, "column": 32}, "end_point": {"row": 6, "column": 33}}, {"id": 39, "type": "number_literal", "text": "2", "parent": 32, "children": [], "start_point": {"row": 6, "column": 34}, "end_point": {"row": 6, "column": 35}}, {"id": 40, "type": "binary_expression", "text": "i >= 0", "parent": 26, "children": [41, 42, 43], "start_point": {"row": 6, "column": 37}, "end_point": {"row": 6, "column": 43}}, {"id": 41, "type": "identifier", "text": "i", "parent": 40, "children": [], "start_point": {"row": 6, "column": 37}, "end_point": {"row": 6, "column": 38}}, {"id": 42, "type": ">=", "text": ">=", "parent": 40, "children": [], "start_point": {"row": 6, "column": 39}, "end_point": {"row": 6, "column": 41}}, {"id": 43, "type": "number_literal", "text": "0", "parent": 40, "children": [], "start_point": {"row": 6, "column": 42}, "end_point": {"row": 6, "column": 43}}, {"id": 44, "type": "update_expression", "text": "i--", "parent": 26, "children": [45, 46], "start_point": {"row": 6, "column": 45}, "end_point": {"row": 6, "column": 48}}, {"id": 45, "type": "identifier", "text": "i", "parent": 44, "children": [], "start_point": {"row": 6, "column": 45}, "end_point": {"row": 6, "column": 46}}, {"id": 46, "type": "--", "text": "--", "parent": 44, "children": [], "start_point": {"row": 6, "column": 46}, "end_point": {"row": 6, "column": 48}}, {"id": 47, "type": "call_expression", "text": "siftDown(data, i, size)", "parent": 26, "children": [48, 49], "start_point": {"row": 7, "column": 12}, "end_point": {"row": 7, "column": 35}}, {"id": 48, "type": "identifier", "text": "siftDown", "parent": 47, "children": [], "start_point": {"row": 7, "column": 12}, "end_point": {"row": 7, "column": 20}}, {"id": 49, "type": "argument_list", "text": "(data, i, size)", "parent": 47, "children": [50, 51, 52], "start_point": {"row": 7, "column": 20}, "end_point": {"row": 7, "column": 35}}, {"id": 50, "type": "identifier", "text": "data", "parent": 49, "children": [], "start_point": {"row": 7, "column": 21}, "end_point": {"row": 7, "column": 25}}, {"id": 51, "type": "identifier", "text": "i", "parent": 49, "children": [], "start_point": {"row": 7, "column": 27}, "end_point": {"row": 7, "column": 28}}, {"id": 52, "type": "identifier", "text": "size", "parent": 49, "children": [], "start_point": {"row": 7, "column": 30}, "end_point": {"row": 7, "column": 34}}, {"id": 53, "type": "function_definition", "text": "static void heapify(vector<T>& data) {\n heapy(data.data(), int(data.size()));\n }", "parent": null, "children": [54, 55], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 12, "column": 5}}, {"id": 54, "type": "primitive_type", "text": "void", "parent": 53, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 15}}, {"id": 55, "type": "function_declarator", "text": "heapify(vector<T>& data)", "parent": 53, "children": [56, 57], "start_point": {"row": 10, "column": 16}, "end_point": {"row": 10, "column": 40}}, {"id": 56, "type": "identifier", "text": "heapify", "parent": 55, "children": [], "start_point": {"row": 10, "column": 16}, "end_point": {"row": 10, "column": 23}}, {"id": 57, "type": "parameter_list", "text": "(vector<T>& data)", "parent": 55, "children": [58], "start_point": {"row": 10, "column": 23}, "end_point": {"row": 10, "column": 40}}, {"id": 58, "type": "parameter_declaration", "text": "vector<T>& data", "parent": 57, "children": [59, 60, 64], "start_point": {"row": 10, "column": 24}, "end_point": {"row": 10, "column": 39}}, {"id": 59, "type": "type_identifier", "text": "vector", "parent": 58, "children": [], "start_point": {"row": 10, "column": 24}, "end_point": {"row": 10, "column": 30}}, {"id": 60, "type": "ERROR", "text": "<T>&", "parent": 58, "children": [61, 62, 63], "start_point": {"row": 10, "column": 30}, "end_point": {"row": 10, "column": 34}}, {"id": 61, "type": "<", "text": "<", "parent": 60, "children": [], "start_point": {"row": 10, "column": 30}, "end_point": {"row": 10, "column": 31}}, {"id": 62, "type": "identifier", "text": "T", "parent": 60, "children": [], "start_point": {"row": 10, "column": 31}, "end_point": {"row": 10, "column": 32}}, {"id": 63, "type": ">", "text": ">", "parent": 60, "children": [], "start_point": {"row": 10, "column": 32}, "end_point": {"row": 10, "column": 33}}, {"id": 64, "type": "identifier", "text": "data", "parent": 58, "children": [], "start_point": {"row": 10, "column": 35}, "end_point": {"row": 10, "column": 39}}, {"id": 65, "type": "call_expression", "text": "heapy(data.data(), int(data.size()))", "parent": 53, "children": [66, 67], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 44}}, {"id": 66, "type": "identifier", "text": "heapy", "parent": 65, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 13}}, {"id": 67, "type": "argument_list", "text": "(data.data(), int(data.size()))", "parent": 65, "children": [68, 73], "start_point": {"row": 11, "column": 13}, "end_point": {"row": 11, "column": 44}}, {"id": 68, "type": "call_expression", "text": "data.data()", "parent": 67, "children": [69, 72], "start_point": {"row": 11, "column": 14}, "end_point": {"row": 11, "column": 25}}, {"id": 69, "type": "field_expression", "text": "data.data", "parent": 68, "children": [70, 71], "start_point": {"row": 11, "column": 14}, "end_point": {"row": 11, "column": 23}}, {"id": 70, "type": "identifier", "text": "data", "parent": 69, "children": [], "start_point": {"row": 11, "column": 14}, "end_point": {"row": 11, "column": 18}}, {"id": 71, "type": "field_identifier", "text": "data", "parent": 69, "children": [], "start_point": {"row": 11, "column": 19}, "end_point": {"row": 11, "column": 23}}, {"id": 72, "type": "argument_list", "text": "()", "parent": 68, "children": [], "start_point": {"row": 11, "column": 23}, "end_point": {"row": 11, "column": 25}}, {"id": 73, "type": "call_expression", "text": "int(data.size())", "parent": 67, "children": [74, 75], "start_point": {"row": 11, "column": 27}, "end_point": {"row": 11, "column": 43}}, {"id": 74, "type": "identifier", "text": "int", "parent": 73, "children": [], "start_point": {"row": 11, "column": 27}, "end_point": {"row": 11, "column": 30}}, {"id": 75, "type": "argument_list", "text": "(data.size())", "parent": 73, "children": [76], "start_point": {"row": 11, "column": 30}, "end_point": {"row": 11, "column": 43}}, {"id": 76, "type": "call_expression", "text": "data.size()", "parent": 75, "children": [77, 80], "start_point": {"row": 11, "column": 31}, "end_point": {"row": 11, "column": 42}}, {"id": 77, "type": "field_expression", "text": "data.size", "parent": 76, "children": [78, 79], "start_point": {"row": 11, "column": 31}, "end_point": {"row": 11, "column": 40}}, {"id": 78, "type": "identifier", "text": "data", "parent": 77, "children": [], "start_point": {"row": 11, "column": 31}, "end_point": {"row": 11, "column": 35}}, {"id": 79, "type": "field_identifier", "text": "size", "parent": 77, "children": [], "start_point": {"row": 11, "column": 36}, "end_point": {"row": 11, "column": 40}}, {"id": 80, "type": "argument_list", "text": "()", "parent": 76, "children": [], "start_point": {"row": 11, "column": 40}, "end_point": {"row": 11, "column": 42}}, {"id": 81, "type": "function_definition", "text": "static void sort(T data[], int size) {\n // heapify\n for (int i = (size - 2) / 2; i >= 0; i--)\n siftDown(data, i, size);\n\n // sorting\n for (int i = size - 1; i > 0; i--) {\n swap(data[0], data[i]);\n siftDown(data, 0, i);\n }\n }", "parent": null, "children": [82, 83], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 25, "column": 5}}, {"id": 82, "type": "primitive_type", "text": "void", "parent": 81, "children": [], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 15}}, {"id": 83, "type": "function_declarator", "text": "sort(T data[], int size)", "parent": 81, "children": [84, 85], "start_point": {"row": 15, "column": 16}, "end_point": {"row": 15, "column": 40}}, {"id": 84, "type": "identifier", "text": "sort", "parent": 83, "children": [], "start_point": {"row": 15, "column": 16}, "end_point": {"row": 15, "column": 20}}, {"id": 85, "type": "parameter_list", "text": "(T data[], int size)", "parent": 83, "children": [86, 90], "start_point": {"row": 15, "column": 20}, "end_point": {"row": 15, "column": 40}}, {"id": 86, "type": "parameter_declaration", "text": "T data[]", "parent": 85, "children": [87, 88], "start_point": {"row": 15, "column": 21}, "end_point": {"row": 15, "column": 29}}, {"id": 87, "type": "type_identifier", "text": "T", "parent": 86, "children": [], "start_point": {"row": 15, "column": 21}, "end_point": {"row": 15, "column": 22}}, {"id": 88, "type": "array_declarator", "text": "data[]", "parent": 86, "children": [89], "start_point": {"row": 15, "column": 23}, "end_point": {"row": 15, "column": 29}}, {"id": 89, "type": "identifier", "text": "data", "parent": 88, "children": [], "start_point": {"row": 15, "column": 23}, "end_point": {"row": 15, "column": 27}}, {"id": 90, "type": "parameter_declaration", "text": "int size", "parent": 85, "children": [91, 92], "start_point": {"row": 15, "column": 31}, "end_point": {"row": 15, "column": 39}}, {"id": 91, "type": "primitive_type", "text": "int", "parent": 90, "children": [], "start_point": {"row": 15, "column": 31}, "end_point": {"row": 15, "column": 34}}, {"id": 92, "type": "identifier", "text": "size", "parent": 90, "children": [], "start_point": {"row": 15, "column": 35}, "end_point": {"row": 15, "column": 39}}, {"id": 93, "type": "for_statement", "text": "for (int i = (size - 2) / 2; i >= 0; i--)\n siftDown(data, i, size);", "parent": 81, "children": [94, 107, 111], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 18, "column": 36}}, {"id": 94, "type": "declaration", "text": "int i = (size - 2) / 2;", "parent": 93, "children": [95, 96], "start_point": {"row": 17, "column": 13}, "end_point": {"row": 17, "column": 36}}, {"id": 95, "type": "primitive_type", "text": "int", "parent": 94, "children": [], "start_point": {"row": 17, "column": 13}, "end_point": {"row": 17, "column": 16}}, {"id": 96, "type": "init_declarator", "text": "i = (size - 2) / 2", "parent": 94, "children": [97, 98, 99], "start_point": {"row": 17, "column": 17}, "end_point": {"row": 17, "column": 35}}, {"id": 97, "type": "identifier", "text": "i", "parent": 96, "children": [], "start_point": {"row": 17, "column": 17}, "end_point": {"row": 17, "column": 18}}, {"id": 98, "type": "=", "text": "=", "parent": 96, "children": [], "start_point": {"row": 17, "column": 19}, "end_point": {"row": 17, "column": 20}}, {"id": 99, "type": "binary_expression", "text": "(size - 2) / 2", "parent": 96, "children": [100, 105, 106], "start_point": {"row": 17, "column": 21}, "end_point": {"row": 17, "column": 35}}, {"id": 100, "type": "parenthesized_expression", "text": "(size - 2)", "parent": 99, "children": [101], "start_point": {"row": 17, "column": 21}, "end_point": {"row": 17, "column": 31}}, {"id": 101, "type": "binary_expression", "text": "size - 2", "parent": 100, "children": [102, 103, 104], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 30}}, {"id": 102, "type": "identifier", "text": "size", "parent": 101, "children": [], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 26}}, {"id": 103, "type": "-", "text": "-", "parent": 101, "children": [], "start_point": {"row": 17, "column": 27}, "end_point": {"row": 17, "column": 28}}, {"id": 104, "type": "number_literal", "text": "2", "parent": 101, "children": [], "start_point": {"row": 17, "column": 29}, "end_point": {"row": 17, "column": 30}}, {"id": 105, "type": "/", "text": "/", "parent": 99, "children": [], "start_point": {"row": 17, "column": 32}, "end_point": {"row": 17, "column": 33}}, {"id": 106, "type": "number_literal", "text": "2", "parent": 99, "children": [], "start_point": {"row": 17, "column": 34}, "end_point": {"row": 17, "column": 35}}, {"id": 107, "type": "binary_expression", "text": "i >= 0", "parent": 93, "children": [108, 109, 110], "start_point": {"row": 17, "column": 37}, "end_point": {"row": 17, "column": 43}}, {"id": 108, "type": "identifier", "text": "i", "parent": 107, "children": [], "start_point": {"row": 17, "column": 37}, "end_point": {"row": 17, "column": 38}}, {"id": 109, "type": ">=", "text": ">=", "parent": 107, "children": [], "start_point": {"row": 17, "column": 39}, "end_point": {"row": 17, "column": 41}}, {"id": 110, "type": "number_literal", "text": "0", "parent": 107, "children": [], "start_point": {"row": 17, "column": 42}, "end_point": {"row": 17, "column": 43}}, {"id": 111, "type": "update_expression", "text": "i--", "parent": 93, "children": [112, 113], "start_point": {"row": 17, "column": 45}, "end_point": {"row": 17, "column": 48}}, {"id": 112, "type": "identifier", "text": "i", "parent": 111, "children": [], "start_point": {"row": 17, "column": 45}, "end_point": {"row": 17, "column": 46}}, {"id": 113, "type": "--", "text": "--", "parent": 111, "children": [], "start_point": {"row": 17, "column": 46}, "end_point": {"row": 17, "column": 48}}, {"id": 114, "type": "call_expression", "text": "siftDown(data, i, size)", "parent": 93, "children": [115, 116], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 35}}, {"id": 115, "type": "identifier", "text": "siftDown", "parent": 114, "children": [], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 20}}, {"id": 116, "type": "argument_list", "text": "(data, i, size)", "parent": 114, "children": [117, 118, 119], "start_point": {"row": 18, "column": 20}, "end_point": {"row": 18, "column": 35}}, {"id": 117, "type": "identifier", "text": "data", "parent": 116, "children": [], "start_point": {"row": 18, "column": 21}, "end_point": {"row": 18, "column": 25}}, {"id": 118, "type": "identifier", "text": "i", "parent": 116, "children": [], "start_point": {"row": 18, "column": 27}, "end_point": {"row": 18, "column": 28}}, {"id": 119, "type": "identifier", "text": "size", "parent": 116, "children": [], "start_point": {"row": 18, "column": 30}, "end_point": {"row": 18, "column": 34}}, {"id": 120, "type": "for_statement", "text": "for (int i = size - 1; i > 0; i--) {\n swap(data[0], data[i]);\n siftDown(data, 0, i);\n }", "parent": 81, "children": [121, 130, 134], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 24, "column": 9}}, {"id": 121, "type": "declaration", "text": "int i = size - 1;", "parent": 120, "children": [122, 123], "start_point": {"row": 21, "column": 13}, "end_point": {"row": 21, "column": 30}}, {"id": 122, "type": "primitive_type", "text": "int", "parent": 121, "children": [], "start_point": {"row": 21, "column": 13}, "end_point": {"row": 21, "column": 16}}, {"id": 123, "type": "init_declarator", "text": "i = size - 1", "parent": 121, "children": [124, 125, 126], "start_point": {"row": 21, "column": 17}, "end_point": {"row": 21, "column": 29}}, {"id": 124, "type": "identifier", "text": "i", "parent": 123, "children": [], "start_point": {"row": 21, "column": 17}, "end_point": {"row": 21, "column": 18}}, {"id": 125, "type": "=", "text": "=", "parent": 123, "children": [], "start_point": {"row": 21, "column": 19}, "end_point": {"row": 21, "column": 20}}, {"id": 126, "type": "binary_expression", "text": "size - 1", "parent": 123, "children": [127, 128, 129], "start_point": {"row": 21, "column": 21}, "end_point": {"row": 21, "column": 29}}, {"id": 127, "type": "identifier", "text": "size", "parent": 126, "children": [], "start_point": {"row": 21, "column": 21}, "end_point": {"row": 21, "column": 25}}, {"id": 128, "type": "-", "text": "-", "parent": 126, "children": [], "start_point": {"row": 21, "column": 26}, "end_point": {"row": 21, "column": 27}}, {"id": 129, "type": "number_literal", "text": "1", "parent": 126, "children": [], "start_point": {"row": 21, "column": 28}, "end_point": {"row": 21, "column": 29}}, {"id": 130, "type": "binary_expression", "text": "i > 0", "parent": 120, "children": [131, 132, 133], "start_point": {"row": 21, "column": 31}, "end_point": {"row": 21, "column": 36}}, {"id": 131, "type": "identifier", "text": "i", "parent": 130, "children": [], "start_point": {"row": 21, "column": 31}, "end_point": {"row": 21, "column": 32}}, {"id": 132, "type": ">", "text": ">", "parent": 130, "children": [], "start_point": {"row": 21, "column": 33}, "end_point": {"row": 21, "column": 34}}, {"id": 133, "type": "number_literal", "text": "0", "parent": 130, "children": [], "start_point": {"row": 21, "column": 35}, "end_point": {"row": 21, "column": 36}}, {"id": 134, "type": "update_expression", "text": "i--", "parent": 120, "children": [135, 136], "start_point": {"row": 21, "column": 38}, "end_point": {"row": 21, "column": 41}}, {"id": 135, "type": "identifier", "text": "i", "parent": 134, "children": [], "start_point": {"row": 21, "column": 38}, "end_point": {"row": 21, "column": 39}}, {"id": 136, "type": "--", "text": "--", "parent": 134, "children": [], "start_point": {"row": 21, "column": 39}, "end_point": {"row": 21, "column": 41}}, {"id": 137, "type": "call_expression", "text": "swap(data[0], data[i])", "parent": 120, "children": [138, 139], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 34}}, {"id": 138, "type": "identifier", "text": "swap", "parent": 137, "children": [], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 16}}, {"id": 139, "type": "argument_list", "text": "(data[0], data[i])", "parent": 137, "children": [140, 143], "start_point": {"row": 22, "column": 16}, "end_point": {"row": 22, "column": 34}}, {"id": 140, "type": "subscript_expression", "text": "data[0]", "parent": 139, "children": [141, 142], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 24}}, {"id": 141, "type": "identifier", "text": "data", "parent": 140, "children": [], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 21}}, {"id": 142, "type": "number_literal", "text": "0", "parent": 140, "children": [], "start_point": {"row": 22, "column": 22}, "end_point": {"row": 22, "column": 23}}, {"id": 143, "type": "subscript_expression", "text": "data[i]", "parent": 139, "children": [144, 145], "start_point": {"row": 22, "column": 26}, "end_point": {"row": 22, "column": 33}}, {"id": 144, "type": "identifier", "text": "data", "parent": 143, "children": [], "start_point": {"row": 22, "column": 26}, "end_point": {"row": 22, "column": 30}}, {"id": 145, "type": "identifier", "text": "i", "parent": 143, "children": [], "start_point": {"row": 22, "column": 31}, "end_point": {"row": 22, "column": 32}}, {"id": 146, "type": "call_expression", "text": "siftDown(data, 0, i)", "parent": 120, "children": [147, 148], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 32}}, {"id": 147, "type": "identifier", "text": "siftDown", "parent": 146, "children": [], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 20}}, {"id": 148, "type": "argument_list", "text": "(data, 0, i)", "parent": 146, "children": [149, 150, 151], "start_point": {"row": 23, "column": 20}, "end_point": {"row": 23, "column": 32}}, {"id": 149, "type": "identifier", "text": "data", "parent": 148, "children": [], "start_point": {"row": 23, "column": 21}, "end_point": {"row": 23, "column": 25}}, {"id": 150, "type": "number_literal", "text": "0", "parent": 148, "children": [], "start_point": {"row": 23, "column": 27}, "end_point": {"row": 23, "column": 28}}, {"id": 151, "type": "identifier", "text": "i", "parent": 148, "children": [], "start_point": {"row": 23, "column": 30}, "end_point": {"row": 23, "column": 31}}, {"id": 152, "type": "function_definition", "text": "static void sort(vector<T>& data) {\n return sort(data.data(), int(data.size()));\n }", "parent": null, "children": [153, 154], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 29, "column": 5}}, {"id": 153, "type": "primitive_type", "text": "void", "parent": 152, "children": [], "start_point": {"row": 27, "column": 11}, "end_point": {"row": 27, "column": 15}}, {"id": 154, "type": "function_declarator", "text": "sort(vector<T>& data)", "parent": 152, "children": [155, 156], "start_point": {"row": 27, "column": 16}, "end_point": {"row": 27, "column": 37}}, {"id": 155, "type": "identifier", "text": "sort", "parent": 154, "children": [], "start_point": {"row": 27, "column": 16}, "end_point": {"row": 27, "column": 20}}, {"id": 156, "type": "parameter_list", "text": "(vector<T>& data)", "parent": 154, "children": [157], "start_point": {"row": 27, "column": 20}, "end_point": {"row": 27, "column": 37}}, {"id": 157, "type": "parameter_declaration", "text": "vector<T>& data", "parent": 156, "children": [158, 159, 163], "start_point": {"row": 27, "column": 21}, "end_point": {"row": 27, "column": 36}}, {"id": 158, "type": "type_identifier", "text": "vector", "parent": 157, "children": [], "start_point": {"row": 27, "column": 21}, "end_point": {"row": 27, "column": 27}}, {"id": 159, "type": "ERROR", "text": "<T>&", "parent": 157, "children": [160, 161, 162], "start_point": {"row": 27, "column": 27}, "end_point": {"row": 27, "column": 31}}, {"id": 160, "type": "<", "text": "<", "parent": 159, "children": [], "start_point": {"row": 27, "column": 27}, "end_point": {"row": 27, "column": 28}}, {"id": 161, "type": "identifier", "text": "T", "parent": 159, "children": [], "start_point": {"row": 27, "column": 28}, "end_point": {"row": 27, "column": 29}}, {"id": 162, "type": ">", "text": ">", "parent": 159, "children": [], "start_point": {"row": 27, "column": 29}, "end_point": {"row": 27, "column": 30}}, {"id": 163, "type": "identifier", "text": "data", "parent": 157, "children": [], "start_point": {"row": 27, "column": 32}, "end_point": {"row": 27, "column": 36}}, {"id": 164, "type": "return_statement", "text": "return sort(data.data(), int(data.size()));", "parent": 152, "children": [165], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 51}}, {"id": 165, "type": "call_expression", "text": "sort(data.data(), int(data.size()))", "parent": 164, "children": [166, 167], "start_point": {"row": 28, "column": 15}, "end_point": {"row": 28, "column": 50}}, {"id": 166, "type": "identifier", "text": "sort", "parent": 165, "children": [], "start_point": {"row": 28, "column": 15}, "end_point": {"row": 28, "column": 19}}, {"id": 167, "type": "argument_list", "text": "(data.data(), int(data.size()))", "parent": 165, "children": [168, 173], "start_point": {"row": 28, "column": 19}, "end_point": {"row": 28, "column": 50}}, {"id": 168, "type": "call_expression", "text": "data.data()", "parent": 167, "children": [169, 172], "start_point": {"row": 28, "column": 20}, "end_point": {"row": 28, "column": 31}}, {"id": 169, "type": "field_expression", "text": "data.data", "parent": 168, "children": [170, 171], "start_point": {"row": 28, "column": 20}, "end_point": {"row": 28, "column": 29}}, {"id": 170, "type": "identifier", "text": "data", "parent": 169, "children": [], "start_point": {"row": 28, "column": 20}, "end_point": {"row": 28, "column": 24}}, {"id": 171, "type": "field_identifier", "text": "data", "parent": 169, "children": [], "start_point": {"row": 28, "column": 25}, "end_point": {"row": 28, "column": 29}}, {"id": 172, "type": "argument_list", "text": "()", "parent": 168, "children": [], "start_point": {"row": 28, "column": 29}, "end_point": {"row": 28, "column": 31}}, {"id": 173, "type": "call_expression", "text": "int(data.size())", "parent": 167, "children": [174, 175], "start_point": {"row": 28, "column": 33}, "end_point": {"row": 28, "column": 49}}, {"id": 174, "type": "identifier", "text": "int", "parent": 173, "children": [], "start_point": {"row": 28, "column": 33}, "end_point": {"row": 28, "column": 36}}, {"id": 175, "type": "argument_list", "text": "(data.size())", "parent": 173, "children": [176], "start_point": {"row": 28, "column": 36}, "end_point": {"row": 28, "column": 49}}, {"id": 176, "type": "call_expression", "text": "data.size()", "parent": 175, "children": [177, 180], "start_point": {"row": 28, "column": 37}, "end_point": {"row": 28, "column": 48}}, {"id": 177, "type": "field_expression", "text": "data.size", "parent": 176, "children": [178, 179], "start_point": {"row": 28, "column": 37}, "end_point": {"row": 28, "column": 46}}, {"id": 178, "type": "identifier", "text": "data", "parent": 177, "children": [], "start_point": {"row": 28, "column": 37}, "end_point": {"row": 28, "column": 41}}, {"id": 179, "type": "field_identifier", "text": "size", "parent": 177, "children": [], "start_point": {"row": 28, "column": 42}, "end_point": {"row": 28, "column": 46}}, {"id": 180, "type": "argument_list", "text": "()", "parent": 176, "children": [], "start_point": {"row": 28, "column": 46}, "end_point": {"row": 28, "column": 48}}, {"id": 181, "type": "labeled_statement", "text": "private:\n // O(logN)\n static void siftDown(T data[], int start, int end) {\n int i = start;\n int j = start * 2 + 1;\n\n while (j < end) {\n if (j + 1 < end && data[j] < data[j + 1])\n j++;\n\n if (!(data[i] < data[j]))\n break;\n\n swap(data[i], data[j]);\n\n i = j;\n j = j * 2 + 1;\n }\n }", "parent": null, "children": [182], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 49, "column": 5}}, {"id": 182, "type": "ERROR", "text": "static void siftDown(T data[], int start, int end)", "parent": 181, "children": [183, 184], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 54}}, {"id": 183, "type": "primitive_type", "text": "void", "parent": 182, "children": [], "start_point": {"row": 33, "column": 11}, "end_point": {"row": 33, "column": 15}}, {"id": 184, "type": "function_declarator", "text": "siftDown(T data[], int start, int end)", "parent": 182, "children": [185, 186], "start_point": {"row": 33, "column": 16}, "end_point": {"row": 33, "column": 54}}, {"id": 185, "type": "identifier", "text": "siftDown", "parent": 184, "children": [], "start_point": {"row": 33, "column": 16}, "end_point": {"row": 33, "column": 24}}, {"id": 186, "type": "parameter_list", "text": "(T data[], int start, int end)", "parent": 184, "children": [187, 191, 194], "start_point": {"row": 33, "column": 24}, "end_point": {"row": 33, "column": 54}}, {"id": 187, "type": "parameter_declaration", "text": "T data[]", "parent": 186, "children": [188, 189], "start_point": {"row": 33, "column": 25}, "end_point": {"row": 33, "column": 33}}, {"id": 188, "type": "type_identifier", "text": "T", "parent": 187, "children": [], "start_point": {"row": 33, "column": 25}, "end_point": {"row": 33, "column": 26}}, {"id": 189, "type": "array_declarator", "text": "data[]", "parent": 187, "children": [190], "start_point": {"row": 33, "column": 27}, "end_point": {"row": 33, "column": 33}}, {"id": 190, "type": "identifier", "text": "data", "parent": 189, "children": [], "start_point": {"row": 33, "column": 27}, "end_point": {"row": 33, "column": 31}}, {"id": 191, "type": "parameter_declaration", "text": "int start", "parent": 186, "children": [192, 193], "start_point": {"row": 33, "column": 35}, "end_point": {"row": 33, "column": 44}}, {"id": 192, "type": "primitive_type", "text": "int", "parent": 191, "children": [], "start_point": {"row": 33, "column": 35}, "end_point": {"row": 33, "column": 38}}, {"id": 193, "type": "identifier", "text": "start", "parent": 191, "children": [], "start_point": {"row": 33, "column": 39}, "end_point": {"row": 33, "column": 44}}, {"id": 194, "type": "parameter_declaration", "text": "int end", "parent": 186, "children": [195], "start_point": {"row": 33, "column": 46}, "end_point": {"row": 33, "column": 53}}, {"id": 195, "type": "primitive_type", "text": "int", "parent": 194, "children": [], "start_point": {"row": 33, "column": 46}, "end_point": {"row": 33, "column": 49}}, {"id": 196, "type": "declaration", "text": "int i = start;", "parent": 181, "children": [197, 198], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 22}}, {"id": 197, "type": "primitive_type", "text": "int", "parent": 196, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 11}}, {"id": 198, "type": "init_declarator", "text": "i = start", "parent": 196, "children": [199, 200, 201], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 21}}, {"id": 199, "type": "identifier", "text": "i", "parent": 198, "children": [], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 13}}, {"id": 200, "type": "=", "text": "=", "parent": 198, "children": [], "start_point": {"row": 34, "column": 14}, "end_point": {"row": 34, "column": 15}}, {"id": 201, "type": "identifier", "text": "start", "parent": 198, "children": [], "start_point": {"row": 34, "column": 16}, "end_point": {"row": 34, "column": 21}}, {"id": 202, "type": "declaration", "text": "int j = start * 2 + 1;", "parent": 181, "children": [203, 204], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 30}}, {"id": 203, "type": "primitive_type", "text": "int", "parent": 202, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 11}}, {"id": 204, "type": "init_declarator", "text": "j = start * 2 + 1", "parent": 202, "children": [205, 206, 207], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 29}}, {"id": 205, "type": "identifier", "text": "j", "parent": 204, "children": [], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 13}}, {"id": 206, "type": "=", "text": "=", "parent": 204, "children": [], "start_point": {"row": 35, "column": 14}, "end_point": {"row": 35, "column": 15}}, {"id": 207, "type": "binary_expression", "text": "start * 2 + 1", "parent": 204, "children": [208, 212, 213], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 29}}, {"id": 208, "type": "binary_expression", "text": "start * 2", "parent": 207, "children": [209, 210, 211], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 25}}, {"id": 209, "type": "identifier", "text": "start", "parent": 208, "children": [], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 21}}, {"id": 210, "type": "*", "text": "*", "parent": 208, "children": [], "start_point": {"row": 35, "column": 22}, "end_point": {"row": 35, "column": 23}}, {"id": 211, "type": "number_literal", "text": "2", "parent": 208, "children": [], "start_point": {"row": 35, "column": 24}, "end_point": {"row": 35, "column": 25}}, {"id": 212, "type": "+", "text": "+", "parent": 207, "children": [], "start_point": {"row": 35, "column": 26}, "end_point": {"row": 35, "column": 27}}, {"id": 213, "type": "number_literal", "text": "1", "parent": 207, "children": [], "start_point": {"row": 35, "column": 28}, "end_point": {"row": 35, "column": 29}}, {"id": 214, "type": "while_statement", "text": "while (j < end) {\n if (j + 1 < end && data[j] < data[j + 1])\n j++;\n\n if (!(data[i] < data[j]))\n break;\n\n swap(data[i], data[j]);\n\n i = j;\n j = j * 2 + 1;\n }", "parent": 181, "children": [215], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 48, "column": 9}}, {"id": 215, "type": "parenthesized_expression", "text": "(j < end)", "parent": 214, "children": [216], "start_point": {"row": 37, "column": 14}, "end_point": {"row": 37, "column": 23}}, {"id": 216, "type": "binary_expression", "text": "j < end", "parent": 215, "children": [217, 218], "start_point": {"row": 37, "column": 15}, "end_point": {"row": 37, "column": 22}}, {"id": 217, "type": "identifier", "text": "j", "parent": 216, "children": [], "start_point": {"row": 37, "column": 15}, "end_point": {"row": 37, "column": 16}}, {"id": 218, "type": "<", "text": "<", "parent": 216, "children": [], "start_point": {"row": 37, "column": 17}, "end_point": {"row": 37, "column": 18}}, {"id": 219, "type": "if_statement", "text": "if (j + 1 < end && data[j] < data[j + 1])\n j++;", "parent": 214, "children": [220], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 39, "column": 20}}, {"id": 220, "type": "parenthesized_expression", "text": "(j + 1 < end && data[j] < data[j + 1])", "parent": 219, "children": [221], "start_point": {"row": 38, "column": 15}, "end_point": {"row": 38, "column": 53}}, {"id": 221, "type": "binary_expression", "text": "j + 1 < end && data[j] < data[j + 1]", "parent": 220, "children": [222, 228, 229], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 38, "column": 52}}, {"id": 222, "type": "binary_expression", "text": "j + 1 < end", "parent": 221, "children": [223, 227], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 38, "column": 27}}, {"id": 223, "type": "binary_expression", "text": "j + 1", "parent": 222, "children": [224, 225, 226], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 38, "column": 21}}, {"id": 224, "type": "identifier", "text": "j", "parent": 223, "children": [], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 38, "column": 17}}, {"id": 225, "type": "+", "text": "+", "parent": 223, "children": [], "start_point": {"row": 38, "column": 18}, "end_point": {"row": 38, "column": 19}}, {"id": 226, "type": "number_literal", "text": "1", "parent": 223, "children": [], "start_point": {"row": 38, "column": 20}, "end_point": {"row": 38, "column": 21}}, {"id": 227, "type": "<", "text": "<", "parent": 222, "children": [], "start_point": {"row": 38, "column": 22}, "end_point": {"row": 38, "column": 23}}, {"id": 228, "type": "&&", "text": "&&", "parent": 221, "children": [], "start_point": {"row": 38, "column": 28}, "end_point": {"row": 38, "column": 30}}, {"id": 229, "type": "binary_expression", "text": "data[j] < data[j + 1]", "parent": 221, "children": [230, 233, 234], "start_point": {"row": 38, "column": 31}, "end_point": {"row": 38, "column": 52}}, {"id": 230, "type": "subscript_expression", "text": "data[j]", "parent": 229, "children": [231, 232], "start_point": {"row": 38, "column": 31}, "end_point": {"row": 38, "column": 38}}, {"id": 231, "type": "identifier", "text": "data", "parent": 230, "children": [], "start_point": {"row": 38, "column": 31}, "end_point": {"row": 38, "column": 35}}, {"id": 232, "type": "identifier", "text": "j", "parent": 230, "children": [], "start_point": {"row": 38, "column": 36}, "end_point": {"row": 38, "column": 37}}, {"id": 233, "type": "<", "text": "<", "parent": 229, "children": [], "start_point": {"row": 38, "column": 39}, "end_point": {"row": 38, "column": 40}}, {"id": 234, "type": "subscript_expression", "text": "data[j + 1]", "parent": 229, "children": [235, 236], "start_point": {"row": 38, "column": 41}, "end_point": {"row": 38, "column": 52}}, {"id": 235, "type": "identifier", "text": "data", "parent": 234, "children": [], "start_point": {"row": 38, "column": 41}, "end_point": {"row": 38, "column": 45}}, {"id": 236, "type": "binary_expression", "text": "j + 1", "parent": 234, "children": [237, 238, 239], "start_point": {"row": 38, "column": 46}, "end_point": {"row": 38, "column": 51}}, {"id": 237, "type": "identifier", "text": "j", "parent": 236, "children": [], "start_point": {"row": 38, "column": 46}, "end_point": {"row": 38, "column": 47}}, {"id": 238, "type": "+", "text": "+", "parent": 236, "children": [], "start_point": {"row": 38, "column": 48}, "end_point": {"row": 38, "column": 49}}, {"id": 239, "type": "number_literal", "text": "1", "parent": 236, "children": [], "start_point": {"row": 38, "column": 50}, "end_point": {"row": 38, "column": 51}}, {"id": 240, "type": "update_expression", "text": "j++", "parent": 219, "children": [241, 242], "start_point": {"row": 39, "column": 16}, "end_point": {"row": 39, "column": 19}}, {"id": 241, "type": "identifier", "text": "j", "parent": 240, "children": [], "start_point": {"row": 39, "column": 16}, "end_point": {"row": 39, "column": 17}}, {"id": 242, "type": "++", "text": "++", "parent": 240, "children": [], "start_point": {"row": 39, "column": 17}, "end_point": {"row": 39, "column": 19}}, {"id": 243, "type": "if_statement", "text": "if (!(data[i] < data[j]))\n break;", "parent": 214, "children": [244, 256], "start_point": {"row": 41, "column": 12}, "end_point": {"row": 42, "column": 22}}, {"id": 244, "type": "parenthesized_expression", "text": "(!(data[i] < data[j]))", "parent": 243, "children": [245], "start_point": {"row": 41, "column": 15}, "end_point": {"row": 41, "column": 37}}, {"id": 245, "type": "unary_expression", "text": "!(data[i] < data[j])", "parent": 244, "children": [246, 247], "start_point": {"row": 41, "column": 16}, "end_point": {"row": 41, "column": 36}}, {"id": 246, "type": "!", "text": "!", "parent": 245, "children": [], "start_point": {"row": 41, "column": 16}, "end_point": {"row": 41, "column": 17}}, {"id": 247, "type": "parenthesized_expression", "text": "(data[i] < data[j])", "parent": 245, "children": [248], "start_point": {"row": 41, "column": 17}, "end_point": {"row": 41, "column": 36}}, {"id": 248, "type": "binary_expression", "text": "data[i] < data[j]", "parent": 247, "children": [249, 252, 253], "start_point": {"row": 41, "column": 18}, "end_point": {"row": 41, "column": 35}}, {"id": 249, "type": "subscript_expression", "text": "data[i]", "parent": 248, "children": [250, 251], "start_point": {"row": 41, "column": 18}, "end_point": {"row": 41, "column": 25}}, {"id": 250, "type": "identifier", "text": "data", "parent": 249, "children": [], "start_point": {"row": 41, "column": 18}, "end_point": {"row": 41, "column": 22}}, {"id": 251, "type": "identifier", "text": "i", "parent": 249, "children": [], "start_point": {"row": 41, "column": 23}, "end_point": {"row": 41, "column": 24}}, {"id": 252, "type": "<", "text": "<", "parent": 248, "children": [], "start_point": {"row": 41, "column": 26}, "end_point": {"row": 41, "column": 27}}, {"id": 253, "type": "subscript_expression", "text": "data[j]", "parent": 248, "children": [254, 255], "start_point": {"row": 41, "column": 28}, "end_point": {"row": 41, "column": 35}}, {"id": 254, "type": "identifier", "text": "data", "parent": 253, "children": [], "start_point": {"row": 41, "column": 28}, "end_point": {"row": 41, "column": 32}}, {"id": 255, "type": "identifier", "text": "j", "parent": 253, "children": [], "start_point": {"row": 41, "column": 33}, "end_point": {"row": 41, "column": 34}}, {"id": 256, "type": "break_statement", "text": "break;", "parent": 243, "children": [257], "start_point": {"row": 42, "column": 16}, "end_point": {"row": 42, "column": 22}}, {"id": 257, "type": "break", "text": "break", "parent": 256, "children": [], "start_point": {"row": 42, "column": 16}, "end_point": {"row": 42, "column": 21}}, {"id": 258, "type": "call_expression", "text": "swap(data[i], data[j])", "parent": 214, "children": [259, 260], "start_point": {"row": 44, "column": 12}, "end_point": {"row": 44, "column": 34}}, {"id": 259, "type": "identifier", "text": "swap", "parent": 258, "children": [], "start_point": {"row": 44, "column": 12}, "end_point": {"row": 44, "column": 16}}, {"id": 260, "type": "argument_list", "text": "(data[i], data[j])", "parent": 258, "children": [261, 264], "start_point": {"row": 44, "column": 16}, "end_point": {"row": 44, "column": 34}}, {"id": 261, "type": "subscript_expression", "text": "data[i]", "parent": 260, "children": [262, 263], "start_point": {"row": 44, "column": 17}, "end_point": {"row": 44, "column": 24}}, {"id": 262, "type": "identifier", "text": "data", "parent": 261, "children": [], "start_point": {"row": 44, "column": 17}, "end_point": {"row": 44, "column": 21}}, {"id": 263, "type": "identifier", "text": "i", "parent": 261, "children": [], "start_point": {"row": 44, "column": 22}, "end_point": {"row": 44, "column": 23}}, {"id": 264, "type": "subscript_expression", "text": "data[j]", "parent": 260, "children": [265, 266], "start_point": {"row": 44, "column": 26}, "end_point": {"row": 44, "column": 33}}, {"id": 265, "type": "identifier", "text": "data", "parent": 264, "children": [], "start_point": {"row": 44, "column": 26}, "end_point": {"row": 44, "column": 30}}, {"id": 266, "type": "identifier", "text": "j", "parent": 264, "children": [], "start_point": {"row": 44, "column": 31}, "end_point": {"row": 44, "column": 32}}, {"id": 267, "type": "assignment_expression", "text": "i = j", "parent": 214, "children": [268, 269, 270], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 46, "column": 17}}, {"id": 268, "type": "identifier", "text": "i", "parent": 267, "children": [], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 46, "column": 13}}, {"id": 269, "type": "=", "text": "=", "parent": 267, "children": [], "start_point": {"row": 46, "column": 14}, "end_point": {"row": 46, "column": 15}}, {"id": 270, "type": "identifier", "text": "j", "parent": 267, "children": [], "start_point": {"row": 46, "column": 16}, "end_point": {"row": 46, "column": 17}}, {"id": 271, "type": "assignment_expression", "text": "j = j * 2 + 1", "parent": 214, "children": [272, 273, 274], "start_point": {"row": 47, "column": 12}, "end_point": {"row": 47, "column": 25}}, {"id": 272, "type": "identifier", "text": "j", "parent": 271, "children": [], "start_point": {"row": 47, "column": 12}, "end_point": {"row": 47, "column": 13}}, {"id": 273, "type": "=", "text": "=", "parent": 271, "children": [], "start_point": {"row": 47, "column": 14}, "end_point": {"row": 47, "column": 15}}, {"id": 274, "type": "binary_expression", "text": "j * 2 + 1", "parent": 271, "children": [275, 279, 280], "start_point": {"row": 47, "column": 16}, "end_point": {"row": 47, "column": 25}}, {"id": 275, "type": "binary_expression", "text": "j * 2", "parent": 274, "children": [276, 277, 278], "start_point": {"row": 47, "column": 16}, "end_point": {"row": 47, "column": 21}}, {"id": 276, "type": "identifier", "text": "j", "parent": 275, "children": [], "start_point": {"row": 47, "column": 16}, "end_point": {"row": 47, "column": 17}}, {"id": 277, "type": "*", "text": "*", "parent": 275, "children": [], "start_point": {"row": 47, "column": 18}, "end_point": {"row": 47, "column": 19}}, {"id": 278, "type": "number_literal", "text": "2", "parent": 275, "children": [], "start_point": {"row": 47, "column": 20}, "end_point": {"row": 47, "column": 21}}, {"id": 279, "type": "+", "text": "+", "parent": 274, "children": [], "start_point": {"row": 47, "column": 22}, "end_point": {"row": 47, "column": 23}}, {"id": 280, "type": "number_literal", "text": "1", "parent": 274, "children": [], "start_point": {"row": 47, "column": 24}, "end_point": {"row": 47, "column": 25}}]}, "node_categories": {"declarations": {"functions": [14, 16, 53, 55, 81, 83, 152, 154, 184], "variables": [19, 23, 27, 58, 86, 90, 94, 121, 157, 187, 191, 194, 196, 202], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [4, 5, 32, 33, 34, 40, 44, 47, 65, 68, 69, 73, 76, 77, 99, 100, 101, 107, 111, 114, 126, 130, 134, 137, 140, 143, 146, 165, 168, 169, 173, 176, 177, 207, 208, 215, 216, 220, 221, 222, 223, 229, 230, 234, 236, 240, 244, 245, 247, 248, 249, 253, 258, 261, 264, 274, 275], "assignments": [267, 271], "loops": [26, 93, 120, 214], "conditionals": [6, 8, 10, 12, 13, 17, 20, 22, 25, 30, 35, 41, 45, 48, 50, 51, 52, 56, 59, 62, 64, 66, 70, 71, 74, 78, 79, 84, 87, 89, 92, 97, 102, 108, 112, 115, 117, 118, 119, 124, 127, 131, 135, 138, 141, 144, 145, 147, 149, 151, 155, 158, 161, 163, 166, 170, 171, 174, 178, 179, 185, 188, 190, 193, 199, 201, 205, 209, 217, 219, 224, 231, 232, 235, 237, 241, 243, 250, 251, 254, 255, 259, 262, 263, 265, 266, 268, 270, 272, 276], "returns": [164], "exceptions": []}, "expressions": {"calls": [0], "literals": [37, 39, 43, 104, 106, 110, 129, 133, 142, 150, 211, 213, 226, 239, 278, 280], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 14, "universal_type": "function", "name": "heapify", "text_snippet": "static void heapify(T data[], int size) {\n for (int i = (size - 2) / 2; i >= 0; i--)\n "}, {"node_id": 16, "universal_type": "function", "name": "size)", "text_snippet": "heapify(T data[], int size)"}, {"node_id": 53, "universal_type": "function", "name": "heapify", "text_snippet": "static void heapify(vector<T>& data) {\n heapy(data.data(), int(data.size()));\n }"}, {"node_id": 55, "universal_type": "function", "name": "unknown", "text_snippet": "heapify(vector<T>& data)"}, {"node_id": 81, "universal_type": "function", "name": "sort", "text_snippet": "static void sort(T data[], int size) {\n // heapify\n for (int i = (size - 2) / 2; i >= "}, {"node_id": 83, "universal_type": "function", "name": "size)", "text_snippet": "sort(T data[], int size)"}, {"node_id": 152, "universal_type": "function", "name": "sort", "text_snippet": "static void sort(vector<T>& data) {\n return sort(data.data(), int(data.size()));\n }"}, {"node_id": 154, "universal_type": "function", "name": "unknown", "text_snippet": "sort(vector<T>& data)"}, {"node_id": 184, "universal_type": "function", "name": "start,", "text_snippet": "siftDown(T data[], int start, int end)"}], "class_declarations": [], "import_statements": []}, "original_source_code": "#pragma once\n\ntemplate <typename T>\nstruct MaxHeap {\n // O(N)\n static void heapify(T data[], int size) {\n for (int i = (size - 2) / 2; i >= 0; i--)\n siftDown(data, i, size);\n }\n\n static void heapify(vector<T>& data) {\n heapy(data.data(), int(data.size()));\n }\n\n // O(NlogN)\n static void sort(T data[], int size) {\n // heapify\n for (int i = (size - 2) / 2; i >= 0; i--)\n siftDown(data, i, size);\n\n // sorting\n for (int i = size - 1; i > 0; i--) {\n swap(data[0], data[i]);\n siftDown(data, 0, i);\n }\n }\n\n static void sort(vector<T>& data) {\n return sort(data.data(), int(data.size()));\n }\n\nprivate:\n // O(logN)\n static void siftDown(T data[], int start, int end) {\n int i = start;\n int j = start * 2 + 1;\n\n while (j < end) {\n if (j + 1 < end && data[j] < data[j + 1])\n j++;\n\n if (!(data[i] < data[j]))\n break;\n\n swap(data[i], data[j]);\n\n i = j;\n j = j * 2 + 1;\n }\n }\n};\n"}
80,296
c
/*************************************************************************** * * * DynELA Project * * * * (c) Copyright 1997-2006 * * * * Equipe C.M.A.O * * Laboratoire Genie de production * * Ecole Nationale d'Ingenieurs de Tarbes * * BP 1629 - 65016 TARBES cedex * * * * * * Main Author: <NAME> * * * **************************************************************************/ // begin date : 12/03/1997 /* Class Domain definition */ #ifndef __Domain_h__ #define __Domain_h__ /*! \file Domain.h \brief fichier .h de d�finition des domaines �l�ments finis \ingroup femSolver Ce fichier sert � la d�finition de la classe Domain. \author <NAME> \version 0.9.4 \date 1997-2004 */ #include <upFemSolver.h> class Domain; class Node; class Element; class Material; class Interface; class Times; class HistoryFile; class Solver; /*! \class Domain Domain.h \brief Classe de gestion et manipulation des domaines �l�ments finis. \ingroup femLibrary \author <NAME> \version 0.9.4 \date 1997-2004 */ /** @dia:pos 199.8,6.8 */ class Domain { private: Indice numberOfDim; //!< Dimension associ�e au domaine Boolean massComputed; //!< Flag indiquant que la matrice de masse est d�ja calcul�e Vector EV_TimeStep; Real fmax0; public: String name; //!< Nom du domaine s'il existe MatrixDiag Mass; //!< Matrice de masse Vector Fint; //!< Vecteur des forces internes Real currentTime; //!< Temps actuel du domaine Real nextTime; //!< Temps actuel du domaine + increment de temps List<Solver *> solvers; //!<liste des solveurs associ�s au domaine List<HistoryFile *> historyFiles; //!<liste des history files List<Interface *> interfaces; //!< Liste des interfaces de contact du domaine Solver *currentSolver; //!<Solveur courant associ� au domaine FILE *history_file; //!< Fichier historique associ� au domaine ListId<Node *> nodes; //!< Liste des noeuds de la grille ListId<Element *> elements; //!< Liste des �l�ments de la grille Indice dimension; //!< Nombre de dimensions de la grille // constructeurs Domain(); Domain(const Domain &dom); ~Domain(); // fonctions membres Indice &NoDim(); Boolean initSolve(); Real getMaximumFrequency(); void computeMassMatrix(Boolean force = False); // gestion du temps Real getTime(); void updateTime(); // interfaces void addInterface(Interface *inter); // fonctions de calculs Boolean solve(Real upTime = -1.); void computeInternalMatrices(); void computeInternalForces(); void transfertQuantities(); Real getTotalMass(); Real getTotalKineticEnergy(); void starterWrite(String name); Real getCurrentTime(); Real getTimeStep(); Real getEndSolveTime(); void writeHistoryFiles(); void getGlobalBox(Vec3D &min, Vec3D &max); // fonctions entree sortie void print(ostream &os) const; friend ostream &operator<<(ostream &os, Domain &dom); void readData(ifstream &pfile); Real getReadTimeData(ifstream &pfile); void writeData(ofstream &pfile); // m�thodes li�es � la lecture des fichiers void createNode(Indice, Real, Real, Real); Node *getNodeByNumber(Indice); Boolean add(Node *pnd); Boolean add(Element *pel); void createElement(Element *pel, Indice *nNodes); Real computeCourantTimeStep(); // direct implementation Indice getNumberOfDimensions() { return dimension; } //!< Dimension topologique de la grille }; //----------------------------------------------------------------------------- inline Indice & Domain::NoDim() //----------------------------------------------------------------------------- { return numberOfDim; } #endif
36.5
121
(translation_unit) "/***************************************************************************\n * *\n * DynELA Project *\n * *\n * (c) Copyright 1997-2006 *\n * *\n * Equipe C.M.A.O *\n * Laboratoire Genie de production *\n * Ecole Nationale d'Ingenieurs de Tarbes *\n * BP 1629 - 65016 TARBES cedex *\n * *\n * *\n * Main Author: <NAME> *\n * *\n **************************************************************************/\n\n// begin date : 12/03/1997\n\n/*\n Class Domain definition\n*/\n\n#ifndef __Domain_h__\n#define __Domain_h__\n\n/*!\n \file Domain.h\n \brief fichier .h de d�finition des domaines �l�ments finis\n \ingroup femSolver\n\n Ce fichier sert � la d�finition de la classe Domain.\n\n \author <NAME>\n \version 0.9.4\n \date 1997-2004\n*/\n\n#include <upFemSolver.h>\nclass Domain;\nclass Node;\nclass Element;\nclass Material;\nclass Interface;\nclass Times;\nclass HistoryFile;\nclass Solver;\n\n/*!\n \class Domain Domain.h\n \brief Classe de gestion et manipulation des domaines �l�ments finis.\n \ingroup femLibrary\n\n\n \author <NAME>\n \version 0.9.4\n \date 1997-2004\n*/\n/** @dia:pos 199.8,6.8 */\nclass Domain\n{\n\nprivate:\n Indice numberOfDim; //!< Dimension associ�e au domaine\n Boolean massComputed; //!< Flag indiquant que la matrice de masse est d�ja calcul�e\n Vector EV_TimeStep;\n Real fmax0;\n\npublic:\n String name; //!< Nom du domaine s'il existe\n MatrixDiag Mass; //!< Matrice de masse\n Vector Fint; //!< Vecteur des forces internes\n Real currentTime; //!< Temps actuel du domaine\n Real nextTime; //!< Temps actuel du domaine + increment de temps\n List<Solver *> solvers; //!<liste des solveurs associ�s au domaine\n List<HistoryFile *> historyFiles; //!<liste des history files\n List<Interface *> interfaces; //!< Liste des interfaces de contact du domaine\n Solver *currentSolver; //!<Solveur courant associ� au domaine\n FILE *history_file; //!< Fichier historique associ� au domaine\n ListId<Node *> nodes; //!< Liste des noeuds de la grille\n ListId<Element *> elements; //!< Liste des �l�ments de la grille\n Indice dimension; //!< Nombre de dimensions de la grille\n\n // constructeurs\n Domain();\n Domain(const Domain &dom);\n ~Domain();\n\n // fonctions membres\n Indice &NoDim();\n Boolean initSolve();\n Real getMaximumFrequency();\n void computeMassMatrix(Boolean force = False);\n\n // gestion du temps\n Real getTime();\n void updateTime();\n\n // interfaces\n void addInterface(Interface *inter);\n // fonctions de calculs\n Boolean solve(Real upTime = -1.);\n void computeInternalMatrices();\n void computeInternalForces();\n\n void transfertQuantities();\n Real getTotalMass();\n Real getTotalKineticEnergy();\n void starterWrite(String name);\n Real getCurrentTime();\n Real getTimeStep();\n Real getEndSolveTime();\n void writeHistoryFiles();\n void getGlobalBox(Vec3D &min, Vec3D &max);\n\n // fonctions entree sortie\n void print(ostream &os) const;\n friend ostream &operator<<(ostream &os, Domain &dom);\n void readData(ifstream &pfile);\n Real getReadTimeData(ifstream &pfile);\n void writeData(ofstream &pfile);\n\n // m�thodes li�es � la lecture des fichiers\n void createNode(Indice, Real, Real, Real);\n Node *getNodeByNumber(Indice);\n Boolean add(Node *pnd);\n Boolean add(Element *pel);\n void createElement(Element *pel, Indice *nNodes);\n Real computeCourantTimeStep();\n\n // direct implementation\n Indice getNumberOfDimensions() { return dimension; } //!< Dimension topologique de la grille\n};\n\n//-----------------------------------------------------------------------------\ninline Indice &\nDomain::NoDim()\n//-----------------------------------------------------------------------------\n{\n return numberOfDim;\n}\n\n#endif\n" (comment) "/***************************************************************************\n * *\n * DynELA Project *\n * *\n * (c) Copyright 1997-2006 *\n * *\n * Equipe C.M.A.O *\n * Laboratoire Genie de production *\n * Ecole Nationale d'Ingenieurs de Tarbes *\n * BP 1629 - 65016 TARBES cedex *\n * *\n * *\n * Main Author: <NAME> *\n * *\n **************************************************************************/" (comment) "// begin date : 12/03/1997" (comment) "/*\n Class Domain definition\n*/" (preproc_ifdef) "#ifndef __Domain_h__\n#define __Domain_h__\n\n/*!\n \file Domain.h\n \brief fichier .h de d�finition des domaines �l�ments finis\n \ingroup femSolver\n\n Ce fichier sert � la d�finition de la classe Domain.\n\n \author <NAME>\n \version 0.9.4\n \date 1997-2004\n*/\n\n#include <upFemSolver.h>\nclass Domain;\nclass Node;\nclass Element;\nclass Material;\nclass Interface;\nclass Times;\nclass HistoryFile;\nclass Solver;\n\n/*!\n \class Domain Domain.h\n \brief Classe de gestion et manipulation des domaines �l�ments finis.\n \ingroup femLibrary\n\n\n \author <NAME>\n \version 0.9.4\n \date 1997-2004\n*/\n/** @dia:pos 199.8,6.8 */\nclass Domain\n{\n\nprivate:\n Indice numberOfDim; //!< Dimension associ�e au domaine\n Boolean massComputed; //!< Flag indiquant que la matrice de masse est d�ja calcul�e\n Vector EV_TimeStep;\n Real fmax0;\n\npublic:\n String name; //!< Nom du domaine s'il existe\n MatrixDiag Mass; //!< Matrice de masse\n Vector Fint; //!< Vecteur des forces internes\n Real currentTime; //!< Temps actuel du domaine\n Real nextTime; //!< Temps actuel du domaine + increment de temps\n List<Solver *> solvers; //!<liste des solveurs associ�s au domaine\n List<HistoryFile *> historyFiles; //!<liste des history files\n List<Interface *> interfaces; //!< Liste des interfaces de contact du domaine\n Solver *currentSolver; //!<Solveur courant associ� au domaine\n FILE *history_file; //!< Fichier historique associ� au domaine\n ListId<Node *> nodes; //!< Liste des noeuds de la grille\n ListId<Element *> elements; //!< Liste des �l�ments de la grille\n Indice dimension; //!< Nombre de dimensions de la grille\n\n // constructeurs\n Domain();\n Domain(const Domain &dom);\n ~Domain();\n\n // fonctions membres\n Indice &NoDim();\n Boolean initSolve();\n Real getMaximumFrequency();\n void computeMassMatrix(Boolean force = False);\n\n // gestion du temps\n Real getTime();\n void updateTime();\n\n // interfaces\n void addInterface(Interface *inter);\n // fonctions de calculs\n Boolean solve(Real upTime = -1.);\n void computeInternalMatrices();\n void computeInternalForces();\n\n void transfertQuantities();\n Real getTotalMass();\n Real getTotalKineticEnergy();\n void starterWrite(String name);\n Real getCurrentTime();\n Real getTimeStep();\n Real getEndSolveTime();\n void writeHistoryFiles();\n void getGlobalBox(Vec3D &min, Vec3D &max);\n\n // fonctions entree sortie\n void print(ostream &os) const;\n friend ostream &operator<<(ostream &os, Domain &dom);\n void readData(ifstream &pfile);\n Real getReadTimeData(ifstream &pfile);\n void writeData(ofstream &pfile);\n\n // m�thodes li�es � la lecture des fichiers\n void createNode(Indice, Real, Real, Real);\n Node *getNodeByNumber(Indice);\n Boolean add(Node *pnd);\n Boolean add(Element *pel);\n void createElement(Element *pel, Indice *nNodes);\n Real computeCourantTimeStep();\n\n // direct implementation\n Indice getNumberOfDimensions() { return dimension; } //!< Dimension topologique de la grille\n};\n\n//-----------------------------------------------------------------------------\ninline Indice &\nDomain::NoDim()\n//-----------------------------------------------------------------------------\n{\n return numberOfDim;\n}\n\n#endif\n" (#ifndef) "#ifndef" (identifier) "__Domain_h__" (preproc_def) "#define __Domain_h__\n" (#define) "#define" (identifier) "__Domain_h__" (comment) "/*!\n \file Domain.h\n \brief fichier .h de d�finition des domaines �l�ments finis\n \ingroup femSolver\n\n Ce fichier sert � la d�finition de la classe Domain.\n\n \author <NAME>\n \version 0.9.4\n \date 1997-2004\n*/\n\n#include" (preproc_include) "upFemSolver.h>\nclass Doma" (#include) "upFemSol" (system_lib_string) "er.h>\nclass Dom" (declaration) "in;\nclass Nod" (type_identifier) "in;\nc" (identifier) "ass No" (;) "d" (declaration) ";\nclass Ele" (type_identifier) ";\ncla" (identifier) "s El" (;) "e" (declaration) "ent;\nclass Mat" (type_identifier) "ent;\n" (identifier) "lass Ma" (;) "t" (declaration) "rial;\nclass Int" (type_identifier) "rial;" (identifier) "class In" (;) "t" (declaration) "rface;\nclass Tim" (type_identifier) "rface" (identifier) "\nclass Ti" (;) "m" (declaration) "s;\nclass His" (type_identifier) "s;\ncl" (identifier) "ss Hi" (;) "s" (declaration) "oryFile;\nclass Sol" (type_identifier) "oryFi" (identifier) "e;\nclass So" (;) "l" (declaration) "er;\n\n/*!\n \c" (type_identifier) "er;\n\n" (identifier) "*!\n \" (;) "c" (comment) "ss Domain Domain.h\n \brief Classe de gestion et manipulation des domaines �l�ments finis.\n \ingroup femLibrary\n\n\n \author <NAME>\n \version 0.9.4\n \date 1997-2004\n*/\n/** @dia:pos " (comment) "99.8,6.8 */\nclass Domain\n" (function_definition) "\n\nprivate:\n Indice numberOfDim; //!< Dimension associ�e au domaine\n Boolean massComputed; //!< Flag indiquant que la matrice de masse est d�ja calcul�e\n Vector EV_TimeStep;\n Real fmax0;\n\npublic:\n String name; //!< Nom du domaine s'il existe\n MatrixDiag Mass; //!< Matrice de masse\n Vector Fint; //!< Vecteur des forces internes\n Real currentTime; //!< Temps actuel du domaine\n Real nextTime; //!< Temps actuel du domaine + increment de temps\n List<Solver *> solvers; //!<liste des solveurs associ�s au domaine\n List<HistoryFile *> historyFiles; //!<liste des history files\n List<Interface *> interfaces; //!< Liste des interfaces de contact du domaine\n Solver *currentSolver; //!<Solveur courant associ� au domaine\n FILE *history_file; //!< Fichier historique associ� au domaine\n ListId<Node *> nodes; //!< Liste des noeuds de la grille\n ListId<Element *> elements; //!< Liste des �l�ments de la grille\n Indice dimension; //!< Nombre de dimensions de la grille\n\n // constructeurs\n Domain();\n Domain(const Domain &dom);\n ~Domain();\n\n // fonctions membres\n Indice &NoDim();\n Boolean initSolve();\n Real getMaximumFrequency();\n void computeMassMatrix(Boolean force = False);\n\n // gestion du temps\n Real getTime();\n void updateTime();\n\n // interfaces\n void addInterface(Interface *inter);\n // fonctions de calculs\n Boolean solve(Real upTime = -1.);\n void computeInternalMatrices();\n void computeInternalForces();\n\n void transfertQuantities();\n Real getTotalMass();\n Real getTotalKineticEnergy();\n void starterWrite(String name);\n Real getCurrentTime();\n Real getTimeStep();\n Real getEndSolveTime();\n void writeHistoryFiles();\n void getGlobalBox(Vec3D &min, Vec3D &max);\n\n // fonctions entree sortie\n void print(ostream &os) const;\n friend ostream &operator<<(ostream &os, Domain &dom);\n void readData(ifstream &pfile);\n Real getReadTimeData(ifstream &pfile);\n void writeData(ofstream &pfile);\n\n // m�thodes li�es � la lecture des fichiers\n void createNode(Indice, Real, Real, Real);\n Node *getNodeByNumber(Indice);\n Boolean add(Node *pnd);\n Boolean add(Element *pel);\n void createElement(Element *pel, Indice *nNodes);\n Real computeCourantTimeStep();\n\n // direct implementation\n Indice getNumberOfDimensions() { return dimension; } //!< Dimension topologique de la grille\n};\n\n//-------------------------------" (type_identifier) "\n\npri" (identifier) "ate:\n " (compound_statement) "Indice numberOfDim; //!< Dimension associ�e au domaine\n Boolean massComputed; //!< Flag indiquant que la matrice de masse est d�ja calcul�e\n Vector EV_TimeStep;\n Real fmax0;\n\npublic:\n String name; //!< Nom du domaine s'il existe\n MatrixDiag Mass; //!< Matrice de masse\n Vector Fint; //!< Vecteur des forces internes\n Real currentTime; //!< Temps actuel du domaine\n Real nextTime; //!< Temps actuel du domaine + increment de temps\n List<Solver *> solvers; //!<liste des solveurs associ�s au domaine\n List<HistoryFile *> historyFiles; //!<liste des history files\n List<Interface *> interfaces; //!< Liste des interfaces de contact du domaine\n Solver *currentSolver; //!<Solveur courant associ� au domaine\n FILE *history_file; //!< Fichier historique associ� au domaine\n ListId<Node *> nodes; //!< Liste des noeuds de la grille\n ListId<Element *> elements; //!< Liste des �l�ments de la grille\n Indice dimension; //!< Nombre de dimensions de la grille\n\n // constructeurs\n Domain();\n Domain(const Domain &dom);\n ~Domain();\n\n // fonctions membres\n Indice &NoDim();\n Boolean initSolve();\n Real getMaximumFrequency();\n void computeMassMatrix(Boolean force = False);\n\n // gestion du temps\n Real getTime();\n void updateTime();\n\n // interfaces\n void addInterface(Interface *inter);\n // fonctions de calculs\n Boolean solve(Real upTime = -1.);\n void computeInternalMatrices();\n void computeInternalForces();\n\n void transfertQuantities();\n Real getTotalMass();\n Real getTotalKineticEnergy();\n void starterWrite(String name);\n Real getCurrentTime();\n Real getTimeStep();\n Real getEndSolveTime();\n void writeHistoryFiles();\n void getGlobalBox(Vec3D &min, Vec3D &max);\n\n // fonctions entree sortie\n void print(ostream &os) const;\n friend ostream &operator<<(ostream &os, Domain &dom);\n void readData(ifstream &pfile);\n Real getReadTimeData(ifstream &pfile);\n void writeData(ofstream &pfile);\n\n // m�thodes li�es � la lecture des fichiers\n void createNode(Indice, Real, Real, Real);\n Node *getNodeByNumber(Indice);\n Boolean add(Node *pnd);\n Boolean add(Element *pel);\n void createElement(Element *pel, Indice *nNodes);\n Real computeCourantTimeStep();\n\n // direct implementation\n Indice getNumberOfDimensions() { return dimension; } //!< Dimension topologique de la grille\n};\n\n//-------------------------------" ({) "I" (labeled_statement) "ice numberOfDim; //!< Dimens" (statement_identifier) "ice num" (:) "b" (declaration) "fDim; //!< Dimens" (type_identifier) "fDim; " (identifier) " //!< Dimen" (;) "s" (comment) " associ�e au domaine\n Boolean massC" (declaration) "uted; //!< Flag indiq" (type_identifier) "uted; /" (identifier) "!< Flag indi" (;) "q" (comment) "ant que la matrice de masse est d�ja calcul�e\n Vector EV_TimeSte" (declaration) " Real fmax0;\n\npubl" (type_identifier) " Real" (identifier) "fmax0;\n\npub" (;) "l" (declaration) "\n String n" (type_identifier) "\n S" (identifier) "ring " (;) "n" (labeled_statement) "e; " (statement_identifier) "e; " (:) " " (declaration) " " (type_identifier) " " (identifier) " " (;) " " (comment) "s'il existe\n MatrixDiag Mass; " (declaration) " //" (type_identifier) " " (identifier) " /" (;) "/" (comment) "e\n Vector Fint; " (declaration) " " (type_identifier) " " (identifier) " " (;) " " (comment) "ces internes\n Real currentTime;" (declaration) " //!" (type_identifier) " " (identifier) " //" (;) "!" (comment) " domaine\n Real nextTime; " (declaration) " " (type_identifier) " " (identifier) " " (;) " " (comment) " domaine + increment de temps\n List<Solver *> so" (expression_statement) "rs; //!<liste" (binary_expression) "rs; //!<list" (binary_expression) "rs; " (identifier) "rs; " (<) " " (identifier) " " (ERROR) " " (*) " " (>) " " (identifier) "/!<list" (;) "e" (comment) "rs associ�s au domaine\n List<HistoryFile *>" (expression_statement) "storyFiles; //!<liste des history" (binary_expression) "storyFiles; //!<liste des histor" (binary_expression) "storyFiles; //!<" (identifier) "stor" (<) "y" (identifier) "Files; //!<" (ERROR) "i" (*) "i" (>) "s" (identifier) "e des histor" (;) "y" (comment) "files\n List<Interface *> i" (expression_statement) "rfaces; //!< Liste des in" (binary_expression) "rfaces; //!< Liste des i" (binary_expression) "rfaces; //" (identifier) "rfac" (<) "e" (identifier) "s; //" (ERROR) "<" (*) "<" (>) " " (identifier) "iste des i" (;) "n" (comment) "ces de contact du domaine\n Solver *currentSolv" (declaration) " //!<Solveu" (type_identifier) " " (pointer_declarator) " //!<Solve" (*) " " (identifier) " //!<Solve" (;) "u" (comment) "soci� au domaine\n FILE *history_file; " (declaration) " //!< Fich" (type_identifier) " " (pointer_declarator) " //!< Fic" (*) " " (identifier) " //!< Fic" (;) "h" (comment) "associ� au domaine\n ListId<Node *> nodes; " (expression_statement) " //!< Liste de" (binary_expression) " //!< Liste d" (binary_expression) " //!" (identifier) " " (<) " " (identifier) " //!" (ERROR) " " (*) " " (>) "L" (identifier) "ste d" (;) "e" (comment) "a grille\n ListId<Element *> eleme" (expression_statement) "; //!< Liste des �l�m" (binary_expression) "; //!< Liste des �l�" (binary_expression) "; //!< L" (identifier) "; " (<) " " (identifier) " //!< L" (ERROR) "s" (*) "s" (>) "t" (identifier) " des �l�" (;) "m" (comment) " la grille\n Indice dimension; " (declaration) " //!< Nombre d" (type_identifier) " //" (identifier) "< Nombre " (;) "d" (comment) "a grille\n\n // constructeurs\n Domain(" (comment) " Domain(const Do" (expression_statement) "n &dom);\n" (call_expression) "n &dom);" (identifier) "n &dom" (argument_list) ");" (() ")" ()) ";" (;) "\n" (macro_type_specifier) "Domain();\n\n // fonctions" (identifier) "Domain" (() "(" (type_descriptor) ");\n\n // fon" (type_qualifier) ");\n\n " (const) ");\n\n " (type_identifier) "// fon" (ERROR) "tion" (&) "t" (identifier) "ion" ()) "s" (;) " " (expression_statement) "bres\n Ind" (unary_expression) "bres\n In" (~) "b" (call_expression) "res\n In" (identifier) "res\n " (argument_list) "In" (() "I" ()) "n" (;) "d" (comment) "&NoDim();\n Boolean " (expression_statement) "tSolve();\n Real" (binary_expression) "tSolve();\n Rea" (identifier) "tSolve" (&) ")" (call_expression) ";\n Rea" (identifier) ";\n R" (argument_list) "ea" (() "e" ()) "a" (;) "l" (declaration) "tMaximumFrequency();" (type_identifier) "tMaximu" (function_declarator) "Frequency()" (identifier) "Frequency" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void computeMassMatrix(Bool" (type_identifier) "void" (function_declarator) "computeMassMatrix(Boo" (identifier) "computeMassMatrix(B" (parameter_list) "oo" (() "o" ()) "o" (;) "l" (declaration) " force = False);\n\n // gestion du temps\n Real" (primitive_type) " for" (function_declarator) "e = False);\n\n // gestion du temps\n Rea" (identifier) "e = False);\n\n //" (parameter_list) " gestion du temps\n Rea" (() " " (parameter_declaration) "gestion du temps\n Re" (type_identifier) "gestion" (ERROR) "du temp" (identifier) "du te" (=) "p" (identifier) "\n Re" ()) "a" (;) "l" (comment) "Time();\n void upda" (declaration) "ime();\n\n // in" (type_identifier) "ime(" (function_declarator) ";\n\n // i" (identifier) ";\n\n //" (parameter_list) " i" (() " " ()) "i" (;) "n" (declaration) "faces\n void addIn" (primitive_type) "face" (function_declarator) "\n void addI" (identifier) "\n void ad" (parameter_list) "dI" (() "d" ()) "I" (;) "n" (comment) "ace(Interface" (declaration) "nter);\n // fonctions de calculs\n B" (primitive_type) "nter" (function_declarator) ";\n // fonctions de calculs\n " (identifier) ";\n // fonct" (parameter_list) "ions de calculs\n " (() "i" (parameter_declaration) "ons de calculs\n " (type_identifier) "ons de ca" (pointer_declarator) "culs\n " (*) "c" (identifier) "uls\n " ()) " " (;) "B" (comment) "ean solve(Real upTime =" (declaration) ".);\n void computeInternalMatrice" (type_identifier) ".);\n v" (init_declarator) "id computeInternalMatri" (function_declarator) "id computeInterna" (identifier) "id co" (parameter_list) "mputeInterna" (() "m" (parameter_declaration) "puteInterna" (type_identifier) "pute" (identifier) "nterna" ()) "" (=) "M" (number_literal) "tri" (ERROR) "c" ()) "c" (;) "e" (declaration) ";\n void computeInternalForces(" (primitive_type) ";\n " (function_declarator) "oid computeInternalForces" (identifier) "oid computeInternalForc" (parameter_list) "es" (() "e" ()) "s" (;) "(" (declaration) "\n void transfertQuantities()" (primitive_type) "\n v" (function_declarator) "id transfertQuantities(" (identifier) "id transfertQuantitie" (parameter_list) "s(" (() "s" ()) "(" (;) ")" (declaration) "Real getTotalMass();\n Real" (primitive_type) "Real" (function_declarator) "getTotalMass();\n Rea" (identifier) "getTotalMass();\n R" (parameter_list) "ea" (() "e" ()) "a" (;) "l" (declaration) "tTotalKineticEnergy(" (type_identifier) "tTot" (function_declarator) "lKineticEnergy" (identifier) "lKineticEner" (parameter_list) "gy" (() "g" ()) "y" (;) "(" (declaration) " void starterWrite(String na" (type_identifier) " vo" (function_declarator) "d starterWrite(String n" (identifier) "d starterWrite(String" (parameter_list) " n" (() " " ()) "n" (;) "a" (declaration) ";\n Real getCurrentTime();\n Re" (primitive_type) ";\n " (function_declarator) "eal getCurrentTime();\n R" (identifier) "eal getCurre" (parameter_list) "ntTime();\n R" (() "n" (parameter_declaration) "tTime();\n " (type_identifier) "tTime(" (identifier) ";\n " ()) "R" (;) "e" (declaration) "getTimeStep();\n Real " (type_identifier) "getT" (function_declarator) "meStep();\n Real" (identifier) "meStep();\n Re" (parameter_list) "al" (() "a" ()) "l" (;) " " (declaration) "EndSolveTime();\n v" (type_identifier) "EndS" (function_declarator) "lveTime();\n " (identifier) "lveTime();\n" (parameter_list) " " (() " " ()) " " (;) "v" (declaration) " writeHistoryFiles();\n " (type_identifier) " wri" (function_declarator) "eHistoryFiles();\n" (identifier) "eHistoryFiles()" (parameter_list) ";\n" (() ";" ()) "\n" (;) " " (declaration) "id getGlobalBox(Vec3D &mi" (primitive_type) "id g" (function_declarator) "tGlobalBox(Vec3D &m" (identifier) "tGlobalBox(Vec3D " (parameter_list) "&m" (() "&" ()) "m" (;) "i" (declaration) "Vec3D &max);\n\n // fonctions entree sortie" (primitive_type) "Vec3" (function_declarator) " &max);\n\n // fonctions entree sorti" (identifier) " &max);\n\n /" (parameter_list) "/ fonctions entree sorti" (() "/" (parameter_declaration) " fonctions" (type_identifier) " fonc" (ERROR) "i" (&) "i" (identifier) "ons" (,) " " (parameter_declaration) "ntree sort" (type_identifier) "ntree" (ERROR) "s" (&) "s" (identifier) "ort" ()) "i" (;) "e" (comment) "oid print(ostream &os) con" (ERROR) "\n friend ostream &operator<<" (primitive_type) "\n f" (function_declarator) "iend ostream &operator<<" (identifier) "iend " (parameter_list) "ostream &oper" (() "o" (parameter_declaration) "stream &ope" (type_identifier) "stream " (ERROR) "o" (&) "o" (identifier) "pe" ()) "r" (identifier) "tor<<" (expression_statement) "(" (;) "(" (declaration) "ream &os, Doma" (type_identifier) "ream &" (identifier) "s, Doma" (;) "" (expression_statement) "n &dom);\n void readData(ifstream &pfi" (binary_expression) "n &dom);\n void readData(ifstream &pf" (pointer_expression) "n &dom);\n" (&) "n" (identifier) " &dom);\n" (<<) " " (parenthesized_expression) "void readData(ifstream &pf" (() "v" (comma_expression) "oid readData(ifstream &p" (binary_expression) "oid readDat" (identifier) "oid rea" (&) "D" (identifier) "at" (,) "a" (binary_expression) "ifstream &p" (identifier) "ifstre" (&) "m" (identifier) " &p" ()) "f" (;) "i" (declaration) ";\n Real getReadTimeData(ifstre" (primitive_type) ";\n " (function_declarator) "eal getReadTimeData(ifstr" (identifier) "eal getR" (parameter_list) "eadTimeData(ifstr" (() "e" (parameter_declaration) "adTimeData(ifst" (type_identifier) "adTimeDa" (ERROR) "a" (&) "a" (identifier) "(ifst" ()) "r" (;) "e" (declaration) "&pfile);\n void writeData(ofstream &pf" (type_identifier) "&pfi" (function_declarator) "e);\n void writeData(ofstream &p" (identifier) "e);\n void writ" (parameter_list) "eData(ofstream &p" (() "e" (parameter_declaration) "Data(ofstream &" (type_identifier) "Data(ofs" (ERROR) "r" (&) "r" (identifier) "eam &" ()) "p" (;) "f" (declaration) ");\n\n // m�thodes li�es � la lec" (primitive_type) ");\n\n" (function_declarator) " // m�thodes li�es � la le" (identifier) " // m�tho" (parameter_list) "des li�es � la le" (() "d" (parameter_declaration) "es li�es � la l" (type_identifier) "es li�es" (ERROR) "�" (&) "�" (identifier) " la l" ()) "e" (;) "c" (comment) " des fichiers\n void createNode(Indice, Real, Rea" (declaration) "Real);\n Node *getNodeByNumber(Indice);\n " (primitive_type) "Real" (function_declarator) ";\n Node *getNodeByNumber(Indice);\n " (identifier) ";\n Node *" (parameter_list) "getNodeByNumber(Indice);\n " (() "g" (parameter_declaration) "etNode" (type_identifier) "etNode" (,) "B" (parameter_declaration) "Numb" (type_identifier) "Numb" (,) "e" (parameter_declaration) "(Ind" (type_identifier) "(Ind" (,) "i" (parameter_declaration) "e);\n" (type_identifier) "e);\n" ()) " " (;) " " (declaration) "lean add(Node *pnd);\n Boolean" (type_identifier) "lean" (pointer_declarator) "add(Node *pnd);\n Boolea" (*) "a" (function_declarator) "dd(Node *pnd);\n Boolea" (identifier) "dd(Node *pnd);\n" (parameter_list) " Boolea" (() " " (parameter_declaration) " Boole" (type_identifier) " Boole" ()) "a" (;) "n" (declaration) "d(Element *pel);\n void" (type_identifier) "d(Eleme" (function_declarator) "t *pel);\n voi" (identifier) "t *" (parameter_list) "pel);\n voi" (() "p" (parameter_declaration) "el);\n vo" (type_identifier) "el);" (pointer_declarator) " vo" (*) " " (identifier) " vo" ()) "i" (;) "d" (declaration) "eateElement(Element *pel, " (type_identifier) "eateEle" (function_declarator) "ent(Element *pel," (identifier) "ent" (parameter_list) "(Element *pel," (() "(" (parameter_declaration) "Element *pel" (type_identifier) "Element" (pointer_declarator) "*pel" (*) "*" (identifier) "pel" ()) "," (;) " " (declaration) "ice *nNodes);\n Real computeCourantTimeStep();\n\n " (primitive_type) "ice " (function_declarator) "nNodes);\n Real computeCourantTimeStep();\n\n" (identifier) "nNodes);\n Re" (parameter_list) "al computeCourantTimeStep();\n\n" (() "a" (parameter_declaration) "l computeCou" (type_identifier) "l compu" (pointer_declarator) "eCou" (*) "e" (identifier) "Cou" (,) "r" (parameter_declaration) "ntTimeStep();\n" (type_identifier) "ntTime" (pointer_declarator) "tep();\n" (*) "t" (identifier) "ep();\n" ()) "\n" (;) " " (declaration) " direct implementation\n Indic" (type_identifier) " dir" (function_declarator) "ct implementation\n Indi" (identifier) "ct implementation\n In" (parameter_list) "di" (() "d" ()) "i" (;) "c" (comment) "tNumberOfDimensions() { " (function_definition) "urn dimension; } //!< Dimension topologique de la gr" (type_identifier) "urn di" (function_declarator) "ension; } //!< Dimensio" (identifier) "ension; } //!< Dimens" (parameter_list) "io" (() "i" ()) "o" (compound_statement) " topologique de la gr" ({) " " (return_statement) "opologique de la " (return) "opolog" (identifier) "que de la" (;) " " (}) "r" (comment) "lle\n};\n\n//-----------------------------" (}) "-" (expression_statement) "-" (;) "-" (comment) "-------------------------------------------\ninline Indice &\nDomain::NoDim()\n//-" (function_definition) "---------------------------------------------------------------------------\n{\n return numberOfDim;\n}\n\n#endif\n" (storage_class_specifier) "------" (inline) "------" (type_identifier) "------" (ERROR) "----------" (&) "-" (identifier) "------" (:) "-" (:) "-" (function_declarator) "-------" (identifier) "-----" (parameter_list) "--" (() "-" ()) "-" (comment) "-------------------------------------------\n{\n return numberOfDim;\n}\n\n#endif\n" (compound_statement) "" ({) "" (return_statement) "" (return) "" (identifier) "" (;) "" (}) "" (#endif) ""
608
16
{"language": "c", "success": true, "metadata": {"lines": 121, "avg_line_length": 36.5, "nodes": 401, "errors": 0, "source_hash": "d227d42ee42b1929671d951f839c9e21b7df6e385a031f4c45f81d99ec81a884", "categorized_nodes": 290}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __Domain_h__\n#define __Domain_h__\n\n/*!\n \\file Domain.h\n \\brief fichier .h de d\ufffdfinition des domaines \ufffdl\ufffdments finis\n \\ingroup femSolver\n\n Ce fichier sert \ufffd la d\ufffdfinition de la classe Domain.\n\n \\author <NAME>\n \\version 0.9.4\n \\date 1997-2004\n*/\n\n#include <upFemSolver.h>\nclass Domain;\nclass Node;\nclass Element;\nclass Material;\nclass Interface;\nclass Times;\nclass HistoryFile;\nclass Solver;\n\n/*!\n \\class Domain Domain.h\n \\brief Classe de gestion et manipulation des domaines \ufffdl\ufffdments finis.\n \\ingroup femLibrary\n\n\n \\author <NAME>\n \\version 0.9.4\n \\date 1997-2004\n*/\n/** @dia:pos 199.8,6.8 */\nclass Domain\n{\n\nprivate:\n Indice numberOfDim; //!< Dimension associ\ufffde au domaine\n Boolean massComputed; //!< Flag indiquant que la matrice de masse est d\ufffdja calcul\ufffde\n Vector EV_TimeStep;\n Real fmax0;\n\npublic:\n String name; //!< Nom du domaine s'il existe\n MatrixDiag Mass; //!< Matrice de masse\n Vector Fint; //!< Vecteur des forces internes\n Real currentTime; //!< Temps actuel du domaine\n Real nextTime; //!< Temps actuel du domaine + increment de temps\n List<Solver *> solvers; //!<liste des solveurs associ\ufffds au domaine\n List<HistoryFile *> historyFiles; //!<liste des history files\n List<Interface *> interfaces; //!< Liste des interfaces de contact du domaine\n Solver *currentSolver; //!<Solveur courant associ\ufffd au domaine\n FILE *history_file; //!< Fichier historique associ\ufffd au domaine\n ListId<Node *> nodes; //!< Liste des noeuds de la grille\n ListId<Element *> elements; //!< Liste des \ufffdl\ufffdments de la grille\n Indice dimension; //!< Nombre de dimensions de la grille\n\n // constructeurs\n Domain();\n Domain(const Domain &dom);\n ~Domain();\n\n // fonctions membres\n Indice &NoDim();\n Boolean initSolve();\n Real getMaximumFrequency();\n void computeMassMatrix(Boolean force = False);\n\n // gestion du temps\n Real getTime();\n void updateTime();\n\n // interfaces\n void addInterface(Interface *inter);\n // fonctions de calculs\n Boolean solve(Real upTime = -1.);\n void computeInternalMatrices();\n void computeInternalForces();\n\n void transfertQuantities();\n Real getTotalMass();\n Real getTotalKineticEnergy();\n void starterWrite(String name);\n Real getCurrentTime();\n Real getTimeStep();\n Real getEndSolveTime();\n void writeHistoryFiles();\n void getGlobalBox(Vec3D &min, Vec3D &max);\n\n // fonctions entree sortie\n void print(ostream &os) const;\n friend ostream &operator<<(ostream &os, Domain &dom);\n void readData(ifstream &pfile);\n Real getReadTimeData(ifstream &pfile);\n void writeData(ofstream &pfile);\n\n // m\ufffdthodes li\ufffdes \ufffd la lecture des fichiers\n void createNode(Indice, Real, Real, Real);\n Node *getNodeByNumber(Indice);\n Boolean add(Node *pnd);\n Boolean add(Element *pel);\n void createElement(Element *pel, Indice *nNodes);\n Real computeCourantTimeStep();\n\n // direct implementation\n Indice getNumberOfDimensions() { return dimension; } //!< Dimension topologique de la grille\n};\n\n//-----------------------------------------------------------------------------\ninline Indice &\nDomain::NoDim()\n//-----------------------------------------------------------------------------\n{\n return numberOfDim;\n}\n\n#endif\n", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 388, 400], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 141, "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": "__Domain_h__", "parent": 0, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 20}}, {"id": 3, "type": "preproc_def", "text": "#define __Domain_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": "__Domain_h__", "parent": 3, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 20}}, {"id": 6, "type": "preproc_include", "text": "upFemSolver.h>\nclass Doma", "parent": 0, "children": [7, 8], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 0}}, {"id": 7, "type": "#include", "text": "upFemSol", "parent": 6, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "er.h>\nclass Dom", "parent": 6, "children": [], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 24}}, {"id": 9, "type": "declaration", "text": "in;\nclass Nod", "parent": 0, "children": [10, 11], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 13}}, {"id": 10, "type": "type_identifier", "text": "in;\nc", "parent": 9, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 5}}, {"id": 11, "type": "identifier", "text": "ass No", "parent": 9, "children": [], "start_point": {"row": 38, "column": 6}, "end_point": {"row": 38, "column": 12}}, {"id": 12, "type": "declaration", "text": ";\nclass Ele", "parent": 0, "children": [13, 14], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 11}}, {"id": 13, "type": "type_identifier", "text": ";\ncla", "parent": 12, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 5}}, {"id": 14, "type": "identifier", "text": "s El", "parent": 12, "children": [], "start_point": {"row": 39, "column": 6}, "end_point": {"row": 39, "column": 10}}, {"id": 15, "type": "declaration", "text": "ent;\nclass Mat", "parent": 0, "children": [16, 17], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 14}}, {"id": 16, "type": "type_identifier", "text": "ent;\n", "parent": 15, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 5}}, {"id": 17, "type": "identifier", "text": "lass Ma", "parent": 15, "children": [], "start_point": {"row": 40, "column": 6}, "end_point": {"row": 40, "column": 13}}, {"id": 18, "type": "declaration", "text": "rial;\nclass Int", "parent": 0, "children": [19, 20], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 15}}, {"id": 19, "type": "type_identifier", "text": "rial;", "parent": 18, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 5}}, {"id": 20, "type": "identifier", "text": "class In", "parent": 18, "children": [], "start_point": {"row": 41, "column": 6}, "end_point": {"row": 41, "column": 14}}, {"id": 21, "type": "declaration", "text": "rface;\nclass Tim", "parent": 0, "children": [22, 23], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 16}}, {"id": 22, "type": "type_identifier", "text": "rface", "parent": 21, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 5}}, {"id": 23, "type": "identifier", "text": "\nclass Ti", "parent": 21, "children": [], "start_point": {"row": 42, "column": 6}, "end_point": {"row": 42, "column": 15}}, {"id": 24, "type": "declaration", "text": "s;\nclass His", "parent": 0, "children": [25, 26], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 12}}, {"id": 25, "type": "type_identifier", "text": "s;\ncl", "parent": 24, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 5}}, {"id": 26, "type": "identifier", "text": "ss Hi", "parent": 24, "children": [], "start_point": {"row": 43, "column": 6}, "end_point": {"row": 43, "column": 11}}, {"id": 27, "type": "declaration", "text": "oryFile;\nclass Sol", "parent": 0, "children": [28, 29], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 18}}, {"id": 28, "type": "type_identifier", "text": "oryFi", "parent": 27, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 5}}, {"id": 29, "type": "identifier", "text": "e;\nclass So", "parent": 27, "children": [], "start_point": {"row": 44, "column": 6}, "end_point": {"row": 44, "column": 17}}, {"id": 30, "type": "declaration", "text": "er;\n\n/*!\n \\c", "parent": 0, "children": [31, 32], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 13}}, {"id": 31, "type": "type_identifier", "text": "er;\n\n", "parent": 30, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 5}}, {"id": 32, "type": "identifier", "text": "*!\n \\", "parent": 30, "children": [], "start_point": {"row": 45, "column": 6}, "end_point": {"row": 45, "column": 12}}, {"id": 33, "type": "function_definition", "text": "\n\nprivate:\n Indice numberOfDim; //!< Dimension associ\ufffde au domaine\n Boolean massComputed; //!< Flag indiquant que la matrice de masse est d\ufffdja calcul\ufffde\n Vector EV_TimeStep;\n Real fmax0;\n\npublic:\n String name; //!< Nom du domaine s'il existe\n MatrixDiag Mass; //!< Matrice de masse\n Vector Fint; //!< Vecteur des forces internes\n Real currentTime; //!< Temps actuel du domaine\n Real nextTime; //!< Temps actuel du domaine + increment de temps\n List<Solver *> solvers; //!<liste des solveurs associ\ufffds au domaine\n List<HistoryFile *> historyFiles; //!<liste des history files\n List<Interface *> interfaces; //!< Liste des interfaces de contact du domaine\n Solver *currentSolver; //!<Solveur courant associ\ufffd au domaine\n FILE *history_file; //!< Fichier historique associ\ufffd au domaine\n ListId<Node *> nodes; //!< Liste des noeuds de la grille\n ListId<Element *> elements; //!< Liste des \ufffdl\ufffdments de la grille\n Indice dimension; //!< Nombre de dimensions de la grille\n\n // constructeurs\n Domain();\n Domain(const Domain &dom);\n ~Domain();\n\n // fonctions membres\n Indice &NoDim();\n Boolean initSolve();\n Real getMaximumFrequency();\n void computeMassMatrix(Boolean force = False);\n\n // gestion du temps\n Real getTime();\n void updateTime();\n\n // interfaces\n void addInterface(Interface *inter);\n // fonctions de calculs\n Boolean solve(Real upTime = -1.);\n void computeInternalMatrices();\n void computeInternalForces();\n\n void transfertQuantities();\n Real getTotalMass();\n Real getTotalKineticEnergy();\n void starterWrite(String name);\n Real getCurrentTime();\n Real getTimeStep();\n Real getEndSolveTime();\n void writeHistoryFiles();\n void getGlobalBox(Vec3D &min, Vec3D &max);\n\n // fonctions entree sortie\n void print(ostream &os) const;\n friend ostream &operator<<(ostream &os, Domain &dom);\n void readData(ifstream &pfile);\n Real getReadTimeData(ifstream &pfile);\n void writeData(ofstream &pfile);\n\n // m\ufffdthodes li\ufffdes \ufffd la lecture des fichiers\n void createNode(Indice, Real, Real, Real);\n Node *getNodeByNumber(Indice);\n Boolean add(Node *pnd);\n Boolean add(Element *pel);\n void createElement(Element *pel, Indice *nNodes);\n Real computeCourantTimeStep();\n\n // direct implementation\n Indice getNumberOfDimensions() { return dimension; } //!< Dimension topologique de la grille\n};\n\n//-------------------------------", "parent": 0, "children": [34, 35], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 131, "column": 1}}, {"id": 34, "type": "type_identifier", "text": "\n\npri", "parent": 33, "children": [], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 5}}, {"id": 35, "type": "identifier", "text": "ate:\n ", "parent": 33, "children": [], "start_point": {"row": 58, "column": 6}, "end_point": {"row": 58, "column": 12}}, {"id": 36, "type": "labeled_statement", "text": "ice numberOfDim; //!< Dimens", "parent": 33, "children": [37, 38], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 62, "column": 21}}, {"id": 37, "type": "statement_identifier", "text": "ice num", "parent": 36, "children": [], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 7}}, {"id": 38, "type": "declaration", "text": "fDim; //!< Dimens", "parent": 36, "children": [39, 40], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 21}}, {"id": 39, "type": "type_identifier", "text": "fDim; ", "parent": 38, "children": [], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 8}}, {"id": 40, "type": "identifier", "text": " //!< Dimen", "parent": 38, "children": [], "start_point": {"row": 62, "column": 9}, "end_point": {"row": 62, "column": 20}}, {"id": 41, "type": "declaration", "text": "uted; //!< Flag indiq", "parent": 33, "children": [42, 43], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 23}}, {"id": 42, "type": "type_identifier", "text": "uted; /", "parent": 41, "children": [], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 9}}, {"id": 43, "type": "identifier", "text": "!< Flag indi", "parent": 41, "children": [], "start_point": {"row": 63, "column": 10}, "end_point": {"row": 63, "column": 22}}, {"id": 44, "type": "declaration", "text": " Real fmax0;\n\npubl", "parent": 33, "children": [45, 46], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 64, "column": 21}}, {"id": 45, "type": "type_identifier", "text": " Real", "parent": 44, "children": [], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 64, "column": 8}}, {"id": 46, "type": "identifier", "text": "fmax0;\n\npub", "parent": 44, "children": [], "start_point": {"row": 64, "column": 9}, "end_point": {"row": 64, "column": 20}}, {"id": 47, "type": "declaration", "text": "\n String n", "parent": 33, "children": [48, 49], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 65, "column": 13}}, {"id": 48, "type": "type_identifier", "text": "\n S", "parent": 47, "children": [], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 65, "column": 6}}, {"id": 49, "type": "identifier", "text": "ring ", "parent": 47, "children": [], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 65, "column": 12}}, {"id": 50, "type": "labeled_statement", "text": "e; ", "parent": 33, "children": [51, 52], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 68, "column": 14}}, {"id": 51, "type": "statement_identifier", "text": "e; ", "parent": 50, "children": [], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 6}}, {"id": 52, "type": "declaration", "text": " ", "parent": 50, "children": [53, 54], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 14}}, {"id": 53, "type": "type_identifier", "text": " ", "parent": 52, "children": [], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 8}}, {"id": 54, "type": "identifier", "text": " ", "parent": 52, "children": [], "start_point": {"row": 68, "column": 9}, "end_point": {"row": 68, "column": 13}}, {"id": 55, "type": "declaration", "text": " //", "parent": 33, "children": [56, 57], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 18}}, {"id": 56, "type": "type_identifier", "text": " ", "parent": 55, "children": [], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 12}}, {"id": 57, "type": "identifier", "text": " /", "parent": 55, "children": [], "start_point": {"row": 69, "column": 13}, "end_point": {"row": 69, "column": 17}}, {"id": 58, "type": "declaration", "text": " ", "parent": 33, "children": [59, 60], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 14}}, {"id": 59, "type": "type_identifier", "text": " ", "parent": 58, "children": [], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 8}}, {"id": 60, "type": "identifier", "text": " ", "parent": 58, "children": [], "start_point": {"row": 70, "column": 9}, "end_point": {"row": 70, "column": 13}}, {"id": 61, "type": "declaration", "text": " //!", "parent": 33, "children": [62, 63], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 19}}, {"id": 62, "type": "type_identifier", "text": " ", "parent": 61, "children": [], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 6}}, {"id": 63, "type": "identifier", "text": " //", "parent": 61, "children": [], "start_point": {"row": 71, "column": 7}, "end_point": {"row": 71, "column": 18}}, {"id": 64, "type": "declaration", "text": " ", "parent": 33, "children": [65, 66], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 16}}, {"id": 65, "type": "type_identifier", "text": " ", "parent": 64, "children": [], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 6}}, {"id": 66, "type": "identifier", "text": " ", "parent": 64, "children": [], "start_point": {"row": 72, "column": 7}, "end_point": {"row": 72, "column": 15}}, {"id": 67, "type": "binary_expression", "text": "rs; //!<list", "parent": 33, "children": [68, 72, 74, 75], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 24}}, {"id": 68, "type": "binary_expression", "text": "rs; ", "parent": 67, "children": [69, 70, 71], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 13}}, {"id": 69, "type": "identifier", "text": "rs; ", "parent": 68, "children": [], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 6}}, {"id": 70, "type": "<", "text": " ", "parent": 68, "children": [], "start_point": {"row": 73, "column": 6}, "end_point": {"row": 73, "column": 7}}, {"id": 71, "type": "identifier", "text": " ", "parent": 68, "children": [], "start_point": {"row": 73, "column": 7}, "end_point": {"row": 73, "column": 13}}, {"id": 72, "type": "ERROR", "text": " ", "parent": 67, "children": [73], "start_point": {"row": 73, "column": 14}, "end_point": {"row": 73, "column": 15}}, {"id": 73, "type": "*", "text": " ", "parent": 72, "children": [], "start_point": {"row": 73, "column": 14}, "end_point": {"row": 73, "column": 15}}, {"id": 74, "type": ">", "text": " ", "parent": 67, "children": [], "start_point": {"row": 73, "column": 15}, "end_point": {"row": 73, "column": 16}}, {"id": 75, "type": "identifier", "text": "/!<list", "parent": 67, "children": [], "start_point": {"row": 73, "column": 17}, "end_point": {"row": 73, "column": 24}}, {"id": 76, "type": "binary_expression", "text": "storyFiles; //!<liste des histor", "parent": 33, "children": [77, 81, 83, 84], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 34}}, {"id": 77, "type": "binary_expression", "text": "storyFiles; //!<", "parent": 76, "children": [78, 79, 80], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 18}}, {"id": 78, "type": "identifier", "text": "stor", "parent": 77, "children": [], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 6}}, {"id": 79, "type": "<", "text": "y", "parent": 77, "children": [], "start_point": {"row": 74, "column": 6}, "end_point": {"row": 74, "column": 7}}, {"id": 80, "type": "identifier", "text": "Files; //!<", "parent": 77, "children": [], "start_point": {"row": 74, "column": 7}, "end_point": {"row": 74, "column": 18}}, {"id": 81, "type": "ERROR", "text": "i", "parent": 76, "children": [82], "start_point": {"row": 74, "column": 19}, "end_point": {"row": 74, "column": 20}}, {"id": 82, "type": "*", "text": "i", "parent": 81, "children": [], "start_point": {"row": 74, "column": 19}, "end_point": {"row": 74, "column": 20}}, {"id": 83, "type": ">", "text": "s", "parent": 76, "children": [], "start_point": {"row": 74, "column": 20}, "end_point": {"row": 74, "column": 21}}, {"id": 84, "type": "identifier", "text": "e des histor", "parent": 76, "children": [], "start_point": {"row": 74, "column": 22}, "end_point": {"row": 74, "column": 34}}, {"id": 85, "type": "binary_expression", "text": "rfaces; //!< Liste des i", "parent": 33, "children": [86, 90, 92, 93], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 30}}, {"id": 86, "type": "binary_expression", "text": "rfaces; //", "parent": 85, "children": [87, 88, 89], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 16}}, {"id": 87, "type": "identifier", "text": "rfac", "parent": 86, "children": [], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 6}}, {"id": 88, "type": "<", "text": "e", "parent": 86, "children": [], "start_point": {"row": 75, "column": 6}, "end_point": {"row": 75, "column": 7}}, {"id": 89, "type": "identifier", "text": "s; //", "parent": 86, "children": [], "start_point": {"row": 75, "column": 7}, "end_point": {"row": 75, "column": 16}}, {"id": 90, "type": "ERROR", "text": "<", "parent": 85, "children": [91], "start_point": {"row": 75, "column": 17}, "end_point": {"row": 75, "column": 18}}, {"id": 91, "type": "*", "text": "<", "parent": 90, "children": [], "start_point": {"row": 75, "column": 17}, "end_point": {"row": 75, "column": 18}}, {"id": 92, "type": ">", "text": " ", "parent": 85, "children": [], "start_point": {"row": 75, "column": 18}, "end_point": {"row": 75, "column": 19}}, {"id": 93, "type": "identifier", "text": "iste des i", "parent": 85, "children": [], "start_point": {"row": 75, "column": 20}, "end_point": {"row": 75, "column": 30}}, {"id": 94, "type": "declaration", "text": " //!<Solveu", "parent": 33, "children": [95, 96], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 24}}, {"id": 95, "type": "type_identifier", "text": " ", "parent": 94, "children": [], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 8}}, {"id": 96, "type": "pointer_declarator", "text": " //!<Solve", "parent": 94, "children": [97, 98], "start_point": {"row": 76, "column": 9}, "end_point": {"row": 76, "column": 23}}, {"id": 97, "type": "*", "text": " ", "parent": 96, "children": [], "start_point": {"row": 76, "column": 9}, "end_point": {"row": 76, "column": 10}}, {"id": 98, "type": "identifier", "text": " //!<Solve", "parent": 96, "children": [], "start_point": {"row": 76, "column": 10}, "end_point": {"row": 76, "column": 23}}, {"id": 99, "type": "declaration", "text": " //!< Fich", "parent": 33, "children": [100, 101], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 21}}, {"id": 100, "type": "type_identifier", "text": " ", "parent": 99, "children": [], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 6}}, {"id": 101, "type": "pointer_declarator", "text": " //!< Fic", "parent": 99, "children": [102, 103], "start_point": {"row": 77, "column": 7}, "end_point": {"row": 77, "column": 20}}, {"id": 102, "type": "*", "text": " ", "parent": 101, "children": [], "start_point": {"row": 77, "column": 7}, "end_point": {"row": 77, "column": 8}}, {"id": 103, "type": "identifier", "text": " //!< Fic", "parent": 101, "children": [], "start_point": {"row": 77, "column": 8}, "end_point": {"row": 77, "column": 20}}, {"id": 104, "type": "binary_expression", "text": " //!< Liste d", "parent": 33, "children": [105, 109, 111, 112], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 78, "column": 22}}, {"id": 105, "type": "binary_expression", "text": " //!", "parent": 104, "children": [106, 107, 108], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 78, "column": 13}}, {"id": 106, "type": "identifier", "text": " ", "parent": 105, "children": [], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 78, "column": 8}}, {"id": 107, "type": "<", "text": " ", "parent": 105, "children": [], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 78, "column": 9}}, {"id": 108, "type": "identifier", "text": " //!", "parent": 105, "children": [], "start_point": {"row": 78, "column": 9}, "end_point": {"row": 78, "column": 13}}, {"id": 109, "type": "ERROR", "text": " ", "parent": 104, "children": [110], "start_point": {"row": 78, "column": 14}, "end_point": {"row": 78, "column": 15}}, {"id": 110, "type": "*", "text": " ", "parent": 109, "children": [], "start_point": {"row": 78, "column": 14}, "end_point": {"row": 78, "column": 15}}, {"id": 111, "type": ">", "text": "L", "parent": 104, "children": [], "start_point": {"row": 78, "column": 15}, "end_point": {"row": 78, "column": 16}}, {"id": 112, "type": "identifier", "text": "ste d", "parent": 104, "children": [], "start_point": {"row": 78, "column": 17}, "end_point": {"row": 78, "column": 22}}, {"id": 113, "type": "binary_expression", "text": "; //!< Liste des \ufffdl\ufffd", "parent": 33, "children": [114, 117, 119, 120], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 28}}, {"id": 114, "type": "binary_expression", "text": "; //!< L", "parent": 113, "children": [115, 116], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 16}}, {"id": 115, "type": "<", "text": " ", "parent": 114, "children": [], "start_point": {"row": 79, "column": 8}, "end_point": {"row": 79, "column": 9}}, {"id": 116, "type": "identifier", "text": " //!< L", "parent": 114, "children": [], "start_point": {"row": 79, "column": 9}, "end_point": {"row": 79, "column": 16}}, {"id": 117, "type": "ERROR", "text": "s", "parent": 113, "children": [118], "start_point": {"row": 79, "column": 17}, "end_point": {"row": 79, "column": 18}}, {"id": 118, "type": "*", "text": "s", "parent": 117, "children": [], "start_point": {"row": 79, "column": 17}, "end_point": {"row": 79, "column": 18}}, {"id": 119, "type": ">", "text": "t", "parent": 113, "children": [], "start_point": {"row": 79, "column": 18}, "end_point": {"row": 79, "column": 19}}, {"id": 120, "type": "identifier", "text": " des \ufffdl\ufffd", "parent": 113, "children": [], "start_point": {"row": 79, "column": 20}, "end_point": {"row": 79, "column": 28}}, {"id": 121, "type": "declaration", "text": " //!< Nombre d", "parent": 33, "children": [122, 123], "start_point": {"row": 80, "column": 2}, "end_point": {"row": 80, "column": 19}}, {"id": 122, "type": "type_identifier", "text": " //", "parent": 121, "children": [], "start_point": {"row": 80, "column": 2}, "end_point": {"row": 80, "column": 8}}, {"id": 123, "type": "identifier", "text": "< Nombre ", "parent": 121, "children": [], "start_point": {"row": 80, "column": 9}, "end_point": {"row": 80, "column": 18}}, {"id": 124, "type": "call_expression", "text": "n &dom);", "parent": 33, "children": [125, 126], "start_point": {"row": 83, "column": 2}, "end_point": {"row": 83, "column": 10}}, {"id": 125, "type": "identifier", "text": "n &dom", "parent": 124, "children": [], "start_point": {"row": 83, "column": 2}, "end_point": {"row": 83, "column": 8}}, {"id": 126, "type": "argument_list", "text": ");", "parent": 124, "children": [], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 83, "column": 10}}, {"id": 127, "type": "macro_type_specifier", "text": "Domain();\n\n // fonctions", "parent": 33, "children": [128, 129, 132], "start_point": {"row": 84, "column": 2}, "end_point": {"row": 84, "column": 27}}, {"id": 128, "type": "identifier", "text": "Domain", "parent": 127, "children": [], "start_point": {"row": 84, "column": 2}, "end_point": {"row": 84, "column": 8}}, {"id": 129, "type": "type_descriptor", "text": ");\n\n // fon", "parent": 127, "children": [130, 131], "start_point": {"row": 84, "column": 9}, "end_point": {"row": 84, "column": 21}}, {"id": 130, "type": "type_qualifier", "text": ");\n\n ", "parent": 129, "children": [], "start_point": {"row": 84, "column": 9}, "end_point": {"row": 84, "column": 14}}, {"id": 131, "type": "type_identifier", "text": "// fon", "parent": 129, "children": [], "start_point": {"row": 84, "column": 15}, "end_point": {"row": 84, "column": 21}}, {"id": 132, "type": "ERROR", "text": "tion", "parent": 127, "children": [133, 134], "start_point": {"row": 84, "column": 22}, "end_point": {"row": 84, "column": 26}}, {"id": 133, "type": "&", "text": "t", "parent": 132, "children": [], "start_point": {"row": 84, "column": 22}, "end_point": {"row": 84, "column": 23}}, {"id": 134, "type": "identifier", "text": "ion", "parent": 132, "children": [], "start_point": {"row": 84, "column": 23}, "end_point": {"row": 84, "column": 26}}, {"id": 135, "type": "unary_expression", "text": "bres\n In", "parent": 33, "children": [136, 137], "start_point": {"row": 85, "column": 2}, "end_point": {"row": 85, "column": 11}}, {"id": 136, "type": "~", "text": "b", "parent": 135, "children": [], "start_point": {"row": 85, "column": 2}, "end_point": {"row": 85, "column": 3}}, {"id": 137, "type": "call_expression", "text": "res\n In", "parent": 135, "children": [138, 139], "start_point": {"row": 85, "column": 3}, "end_point": {"row": 85, "column": 11}}, {"id": 138, "type": "identifier", "text": "res\n ", "parent": 137, "children": [], "start_point": {"row": 85, "column": 3}, "end_point": {"row": 85, "column": 9}}, {"id": 139, "type": "argument_list", "text": "In", "parent": 137, "children": [], "start_point": {"row": 85, "column": 9}, "end_point": {"row": 85, "column": 11}}, {"id": 140, "type": "binary_expression", "text": "tSolve();\n Rea", "parent": 33, "children": [141, 142], "start_point": {"row": 88, "column": 2}, "end_point": {"row": 88, "column": 17}}, {"id": 141, "type": "identifier", "text": "tSolve", "parent": 140, "children": [], "start_point": {"row": 88, "column": 2}, "end_point": {"row": 88, "column": 8}}, {"id": 142, "type": "call_expression", "text": ";\n Rea", "parent": 140, "children": [143, 144], "start_point": {"row": 88, "column": 10}, "end_point": {"row": 88, "column": 17}}, {"id": 143, "type": "identifier", "text": ";\n R", "parent": 142, "children": [], "start_point": {"row": 88, "column": 10}, "end_point": {"row": 88, "column": 15}}, {"id": 144, "type": "argument_list", "text": "ea", "parent": 142, "children": [], "start_point": {"row": 88, "column": 15}, "end_point": {"row": 88, "column": 17}}, {"id": 145, "type": "declaration", "text": "tMaximumFrequency();", "parent": 33, "children": [146, 147], "start_point": {"row": 89, "column": 2}, "end_point": {"row": 89, "column": 22}}, {"id": 146, "type": "type_identifier", "text": "tMaximu", "parent": 145, "children": [], "start_point": {"row": 89, "column": 2}, "end_point": {"row": 89, "column": 9}}, {"id": 147, "type": "function_declarator", "text": "Frequency()", "parent": 145, "children": [148, 149], "start_point": {"row": 89, "column": 10}, "end_point": {"row": 89, "column": 21}}, {"id": 148, "type": "identifier", "text": "Frequency", "parent": 147, "children": [], "start_point": {"row": 89, "column": 10}, "end_point": {"row": 89, "column": 19}}, {"id": 149, "type": "parameter_list", "text": "()", "parent": 147, "children": [], "start_point": {"row": 89, "column": 19}, "end_point": {"row": 89, "column": 21}}, {"id": 150, "type": "declaration", "text": "void computeMassMatrix(Bool", "parent": 33, "children": [151, 152], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 29}}, {"id": 151, "type": "type_identifier", "text": "void", "parent": 150, "children": [], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 6}}, {"id": 152, "type": "function_declarator", "text": "computeMassMatrix(Boo", "parent": 150, "children": [153, 154], "start_point": {"row": 90, "column": 7}, "end_point": {"row": 90, "column": 28}}, {"id": 153, "type": "identifier", "text": "computeMassMatrix(B", "parent": 152, "children": [], "start_point": {"row": 90, "column": 7}, "end_point": {"row": 90, "column": 26}}, {"id": 154, "type": "parameter_list", "text": "oo", "parent": 152, "children": [], "start_point": {"row": 90, "column": 26}, "end_point": {"row": 90, "column": 28}}, {"id": 155, "type": "declaration", "text": " force = False);\n\n // gestion du temps\n Real", "parent": 33, "children": [156], "start_point": {"row": 91, "column": 2}, "end_point": {"row": 91, "column": 48}}, {"id": 156, "type": "function_declarator", "text": "e = False);\n\n // gestion du temps\n Rea", "parent": 155, "children": [157, 158], "start_point": {"row": 91, "column": 7}, "end_point": {"row": 91, "column": 47}}, {"id": 157, "type": "identifier", "text": "e = False);\n\n //", "parent": 156, "children": [], "start_point": {"row": 91, "column": 7}, "end_point": {"row": 91, "column": 24}}, {"id": 158, "type": "parameter_list", "text": " gestion du temps\n Rea", "parent": 156, "children": [159], "start_point": {"row": 91, "column": 24}, "end_point": {"row": 91, "column": 47}}, {"id": 159, "type": "parameter_declaration", "text": "gestion du temps\n Re", "parent": 158, "children": [160, 161, 164], "start_point": {"row": 91, "column": 25}, "end_point": {"row": 91, "column": 46}}, {"id": 160, "type": "type_identifier", "text": "gestion", "parent": 159, "children": [], "start_point": {"row": 91, "column": 25}, "end_point": {"row": 91, "column": 32}}, {"id": 161, "type": "ERROR", "text": "du temp", "parent": 159, "children": [162, 163], "start_point": {"row": 91, "column": 33}, "end_point": {"row": 91, "column": 40}}, {"id": 162, "type": "identifier", "text": "du te", "parent": 161, "children": [], "start_point": {"row": 91, "column": 33}, "end_point": {"row": 91, "column": 38}}, {"id": 163, "type": "=", "text": "p", "parent": 161, "children": [], "start_point": {"row": 91, "column": 39}, "end_point": {"row": 91, "column": 40}}, {"id": 164, "type": "identifier", "text": "\n Re", "parent": 159, "children": [], "start_point": {"row": 91, "column": 41}, "end_point": {"row": 91, "column": 46}}, {"id": 165, "type": "declaration", "text": "ime();\n\n // in", "parent": 33, "children": [166, 167], "start_point": {"row": 94, "column": 2}, "end_point": {"row": 94, "column": 17}}, {"id": 166, "type": "type_identifier", "text": "ime(", "parent": 165, "children": [], "start_point": {"row": 94, "column": 2}, "end_point": {"row": 94, "column": 6}}, {"id": 167, "type": "function_declarator", "text": ";\n\n // i", "parent": 165, "children": [168, 169], "start_point": {"row": 94, "column": 7}, "end_point": {"row": 94, "column": 16}}, {"id": 168, "type": "identifier", "text": ";\n\n //", "parent": 167, "children": [], "start_point": {"row": 94, "column": 7}, "end_point": {"row": 94, "column": 14}}, {"id": 169, "type": "parameter_list", "text": " i", "parent": 167, "children": [], "start_point": {"row": 94, "column": 14}, "end_point": {"row": 94, "column": 16}}, {"id": 170, "type": "declaration", "text": "faces\n void addIn", "parent": 33, "children": [171, 172], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 20}}, {"id": 171, "type": "primitive_type", "text": "face", "parent": 170, "children": [], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 6}}, {"id": 172, "type": "function_declarator", "text": "\n void addI", "parent": 170, "children": [173, 174], "start_point": {"row": 95, "column": 7}, "end_point": {"row": 95, "column": 19}}, {"id": 173, "type": "identifier", "text": "\n void ad", "parent": 172, "children": [], "start_point": {"row": 95, "column": 7}, "end_point": {"row": 95, "column": 17}}, {"id": 174, "type": "parameter_list", "text": "dI", "parent": 172, "children": [], "start_point": {"row": 95, "column": 17}, "end_point": {"row": 95, "column": 19}}, {"id": 175, "type": "declaration", "text": "nter);\n // fonctions de calculs\n B", "parent": 33, "children": [176, 177], "start_point": {"row": 98, "column": 2}, "end_point": {"row": 98, "column": 38}}, {"id": 176, "type": "primitive_type", "text": "nter", "parent": 175, "children": [], "start_point": {"row": 98, "column": 2}, "end_point": {"row": 98, "column": 6}}, {"id": 177, "type": "function_declarator", "text": ";\n // fonctions de calculs\n ", "parent": 175, "children": [178, 179], "start_point": {"row": 98, "column": 7}, "end_point": {"row": 98, "column": 37}}, {"id": 178, "type": "identifier", "text": ";\n // fonct", "parent": 177, "children": [], "start_point": {"row": 98, "column": 7}, "end_point": {"row": 98, "column": 19}}, {"id": 179, "type": "parameter_list", "text": "ions de calculs\n ", "parent": 177, "children": [180], "start_point": {"row": 98, "column": 19}, "end_point": {"row": 98, "column": 37}}, {"id": 180, "type": "parameter_declaration", "text": "ons de calculs\n ", "parent": 179, "children": [181, 182], "start_point": {"row": 98, "column": 20}, "end_point": {"row": 98, "column": 36}}, {"id": 181, "type": "type_identifier", "text": "ons de ca", "parent": 180, "children": [], "start_point": {"row": 98, "column": 20}, "end_point": {"row": 98, "column": 29}}, {"id": 182, "type": "pointer_declarator", "text": "culs\n ", "parent": 180, "children": [183, 184], "start_point": {"row": 98, "column": 30}, "end_point": {"row": 98, "column": 36}}, {"id": 183, "type": "*", "text": "c", "parent": 182, "children": [], "start_point": {"row": 98, "column": 30}, "end_point": {"row": 98, "column": 31}}, {"id": 184, "type": "identifier", "text": "uls\n ", "parent": 182, "children": [], "start_point": {"row": 98, "column": 31}, "end_point": {"row": 98, "column": 36}}, {"id": 185, "type": "declaration", "text": ".);\n void computeInternalMatrice", "parent": 33, "children": [186, 187, 196], "start_point": {"row": 100, "column": 2}, "end_point": {"row": 100, "column": 35}}, {"id": 186, "type": "type_identifier", "text": ".);\n v", "parent": 185, "children": [], "start_point": {"row": 100, "column": 2}, "end_point": {"row": 100, "column": 9}}, {"id": 187, "type": "init_declarator", "text": "id computeInternalMatri", "parent": 185, "children": [188, 194, 195], "start_point": {"row": 100, "column": 10}, "end_point": {"row": 100, "column": 33}}, {"id": 188, "type": "function_declarator", "text": "id computeInterna", "parent": 187, "children": [189, 190], "start_point": {"row": 100, "column": 10}, "end_point": {"row": 100, "column": 27}}, {"id": 189, "type": "identifier", "text": "id co", "parent": 188, "children": [], "start_point": {"row": 100, "column": 10}, "end_point": {"row": 100, "column": 15}}, {"id": 190, "type": "parameter_list", "text": "mputeInterna", "parent": 188, "children": [191], "start_point": {"row": 100, "column": 15}, "end_point": {"row": 100, "column": 27}}, {"id": 191, "type": "parameter_declaration", "text": "puteInterna", "parent": 190, "children": [192, 193], "start_point": {"row": 100, "column": 16}, "end_point": {"row": 100, "column": 27}}, {"id": 192, "type": "type_identifier", "text": "pute", "parent": 191, "children": [], "start_point": {"row": 100, "column": 16}, "end_point": {"row": 100, "column": 20}}, {"id": 193, "type": "identifier", "text": "nterna", "parent": 191, "children": [], "start_point": {"row": 100, "column": 21}, "end_point": {"row": 100, "column": 27}}, {"id": 194, "type": "=", "text": "M", "parent": 187, "children": [], "start_point": {"row": 100, "column": 28}, "end_point": {"row": 100, "column": 29}}, {"id": 195, "type": "number_literal", "text": "tri", "parent": 187, "children": [], "start_point": {"row": 100, "column": 30}, "end_point": {"row": 100, "column": 33}}, {"id": 196, "type": "ERROR", "text": "c", "parent": 185, "children": [], "start_point": {"row": 100, "column": 33}, "end_point": {"row": 100, "column": 34}}, {"id": 197, "type": "declaration", "text": ";\n void computeInternalForces(", "parent": 33, "children": [198], "start_point": {"row": 101, "column": 2}, "end_point": {"row": 101, "column": 33}}, {"id": 198, "type": "function_declarator", "text": "oid computeInternalForces", "parent": 197, "children": [199, 200], "start_point": {"row": 101, "column": 7}, "end_point": {"row": 101, "column": 32}}, {"id": 199, "type": "identifier", "text": "oid computeInternalForc", "parent": 198, "children": [], "start_point": {"row": 101, "column": 7}, "end_point": {"row": 101, "column": 30}}, {"id": 200, "type": "parameter_list", "text": "es", "parent": 198, "children": [], "start_point": {"row": 101, "column": 30}, "end_point": {"row": 101, "column": 32}}, {"id": 201, "type": "declaration", "text": "\n void transfertQuantities()", "parent": 33, "children": [202, 203], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 31}}, {"id": 202, "type": "primitive_type", "text": "\n v", "parent": 201, "children": [], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 6}}, {"id": 203, "type": "function_declarator", "text": "id transfertQuantities(", "parent": 201, "children": [204, 205], "start_point": {"row": 102, "column": 7}, "end_point": {"row": 102, "column": 30}}, {"id": 204, "type": "identifier", "text": "id transfertQuantitie", "parent": 203, "children": [], "start_point": {"row": 102, "column": 7}, "end_point": {"row": 102, "column": 28}}, {"id": 205, "type": "parameter_list", "text": "s(", "parent": 203, "children": [], "start_point": {"row": 102, "column": 28}, "end_point": {"row": 102, "column": 30}}, {"id": 206, "type": "declaration", "text": "Real getTotalMass();\n Real", "parent": 33, "children": [207, 208], "start_point": {"row": 104, "column": 2}, "end_point": {"row": 104, "column": 29}}, {"id": 207, "type": "primitive_type", "text": "Real", "parent": 206, "children": [], "start_point": {"row": 104, "column": 2}, "end_point": {"row": 104, "column": 6}}, {"id": 208, "type": "function_declarator", "text": "getTotalMass();\n Rea", "parent": 206, "children": [209, 210], "start_point": {"row": 104, "column": 7}, "end_point": {"row": 104, "column": 28}}, {"id": 209, "type": "identifier", "text": "getTotalMass();\n R", "parent": 208, "children": [], "start_point": {"row": 104, "column": 7}, "end_point": {"row": 104, "column": 26}}, {"id": 210, "type": "parameter_list", "text": "ea", "parent": 208, "children": [], "start_point": {"row": 104, "column": 26}, "end_point": {"row": 104, "column": 28}}, {"id": 211, "type": "declaration", "text": "tTotalKineticEnergy(", "parent": 33, "children": [212, 213], "start_point": {"row": 105, "column": 2}, "end_point": {"row": 105, "column": 22}}, {"id": 212, "type": "type_identifier", "text": "tTot", "parent": 211, "children": [], "start_point": {"row": 105, "column": 2}, "end_point": {"row": 105, "column": 6}}, {"id": 213, "type": "function_declarator", "text": "lKineticEnergy", "parent": 211, "children": [214, 215], "start_point": {"row": 105, "column": 7}, "end_point": {"row": 105, "column": 21}}, {"id": 214, "type": "identifier", "text": "lKineticEner", "parent": 213, "children": [], "start_point": {"row": 105, "column": 7}, "end_point": {"row": 105, "column": 19}}, {"id": 215, "type": "parameter_list", "text": "gy", "parent": 213, "children": [], "start_point": {"row": 105, "column": 19}, "end_point": {"row": 105, "column": 21}}, {"id": 216, "type": "declaration", "text": " void starterWrite(String na", "parent": 33, "children": [217, 218], "start_point": {"row": 106, "column": 2}, "end_point": {"row": 106, "column": 31}}, {"id": 217, "type": "type_identifier", "text": " vo", "parent": 216, "children": [], "start_point": {"row": 106, "column": 2}, "end_point": {"row": 106, "column": 6}}, {"id": 218, "type": "function_declarator", "text": "d starterWrite(String n", "parent": 216, "children": [219, 220], "start_point": {"row": 106, "column": 7}, "end_point": {"row": 106, "column": 30}}, {"id": 219, "type": "identifier", "text": "d starterWrite(String", "parent": 218, "children": [], "start_point": {"row": 106, "column": 7}, "end_point": {"row": 106, "column": 28}}, {"id": 220, "type": "parameter_list", "text": " n", "parent": 218, "children": [], "start_point": {"row": 106, "column": 28}, "end_point": {"row": 106, "column": 30}}, {"id": 221, "type": "declaration", "text": ";\n Real getCurrentTime();\n Re", "parent": 33, "children": [222], "start_point": {"row": 107, "column": 2}, "end_point": {"row": 107, "column": 33}}, {"id": 222, "type": "function_declarator", "text": "eal getCurrentTime();\n R", "parent": 221, "children": [223, 224], "start_point": {"row": 107, "column": 7}, "end_point": {"row": 107, "column": 32}}, {"id": 223, "type": "identifier", "text": "eal getCurre", "parent": 222, "children": [], "start_point": {"row": 107, "column": 7}, "end_point": {"row": 107, "column": 19}}, {"id": 224, "type": "parameter_list", "text": "ntTime();\n R", "parent": 222, "children": [225], "start_point": {"row": 107, "column": 19}, "end_point": {"row": 107, "column": 32}}, {"id": 225, "type": "parameter_declaration", "text": "tTime();\n ", "parent": 224, "children": [226], "start_point": {"row": 107, "column": 20}, "end_point": {"row": 107, "column": 31}}, {"id": 226, "type": "type_identifier", "text": "tTime(", "parent": 225, "children": [], "start_point": {"row": 107, "column": 20}, "end_point": {"row": 107, "column": 26}}, {"id": 227, "type": "declaration", "text": "getTimeStep();\n Real ", "parent": 33, "children": [228, 229], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 108, "column": 24}}, {"id": 228, "type": "type_identifier", "text": "getT", "parent": 227, "children": [], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 108, "column": 6}}, {"id": 229, "type": "function_declarator", "text": "meStep();\n Real", "parent": 227, "children": [230, 231], "start_point": {"row": 108, "column": 7}, "end_point": {"row": 108, "column": 23}}, {"id": 230, "type": "identifier", "text": "meStep();\n Re", "parent": 229, "children": [], "start_point": {"row": 108, "column": 7}, "end_point": {"row": 108, "column": 21}}, {"id": 231, "type": "parameter_list", "text": "al", "parent": 229, "children": [], "start_point": {"row": 108, "column": 21}, "end_point": {"row": 108, "column": 23}}, {"id": 232, "type": "declaration", "text": "EndSolveTime();\n v", "parent": 33, "children": [233, 234], "start_point": {"row": 109, "column": 2}, "end_point": {"row": 109, "column": 21}}, {"id": 233, "type": "type_identifier", "text": "EndS", "parent": 232, "children": [], "start_point": {"row": 109, "column": 2}, "end_point": {"row": 109, "column": 6}}, {"id": 234, "type": "function_declarator", "text": "lveTime();\n ", "parent": 232, "children": [235, 236], "start_point": {"row": 109, "column": 7}, "end_point": {"row": 109, "column": 20}}, {"id": 235, "type": "identifier", "text": "lveTime();\n", "parent": 234, "children": [], "start_point": {"row": 109, "column": 7}, "end_point": {"row": 109, "column": 18}}, {"id": 236, "type": "parameter_list", "text": " ", "parent": 234, "children": [], "start_point": {"row": 109, "column": 18}, "end_point": {"row": 109, "column": 20}}, {"id": 237, "type": "declaration", "text": " writeHistoryFiles();\n ", "parent": 33, "children": [238, 239], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 110, "column": 25}}, {"id": 238, "type": "type_identifier", "text": " wri", "parent": 237, "children": [], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 110, "column": 6}}, {"id": 239, "type": "function_declarator", "text": "eHistoryFiles();\n", "parent": 237, "children": [240], "start_point": {"row": 110, "column": 7}, "end_point": {"row": 110, "column": 24}}, {"id": 240, "type": "identifier", "text": "eHistoryFiles()", "parent": 239, "children": [], "start_point": {"row": 110, "column": 7}, "end_point": {"row": 110, "column": 22}}, {"id": 241, "type": "declaration", "text": "id getGlobalBox(Vec3D &mi", "parent": 33, "children": [242, 243], "start_point": {"row": 111, "column": 2}, "end_point": {"row": 111, "column": 27}}, {"id": 242, "type": "primitive_type", "text": "id g", "parent": 241, "children": [], "start_point": {"row": 111, "column": 2}, "end_point": {"row": 111, "column": 6}}, {"id": 243, "type": "function_declarator", "text": "tGlobalBox(Vec3D &m", "parent": 241, "children": [244, 245], "start_point": {"row": 111, "column": 7}, "end_point": {"row": 111, "column": 26}}, {"id": 244, "type": "identifier", "text": "tGlobalBox(Vec3D ", "parent": 243, "children": [], "start_point": {"row": 111, "column": 7}, "end_point": {"row": 111, "column": 24}}, {"id": 245, "type": "parameter_list", "text": "&m", "parent": 243, "children": [], "start_point": {"row": 111, "column": 24}, "end_point": {"row": 111, "column": 26}}, {"id": 246, "type": "declaration", "text": "Vec3D &max);\n\n // fonctions entree sortie", "parent": 33, "children": [247, 248], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 44}}, {"id": 247, "type": "primitive_type", "text": "Vec3", "parent": 246, "children": [], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 6}}, {"id": 248, "type": "function_declarator", "text": " &max);\n\n // fonctions entree sorti", "parent": 246, "children": [249, 250], "start_point": {"row": 112, "column": 7}, "end_point": {"row": 112, "column": 43}}, {"id": 249, "type": "identifier", "text": " &max);\n\n /", "parent": 248, "children": [], "start_point": {"row": 112, "column": 7}, "end_point": {"row": 112, "column": 19}}, {"id": 250, "type": "parameter_list", "text": "/ fonctions entree sorti", "parent": 248, "children": [251, 256], "start_point": {"row": 112, "column": 19}, "end_point": {"row": 112, "column": 43}}, {"id": 251, "type": "parameter_declaration", "text": " fonctions", "parent": 250, "children": [252, 253, 255], "start_point": {"row": 112, "column": 20}, "end_point": {"row": 112, "column": 30}}, {"id": 252, "type": "type_identifier", "text": " fonc", "parent": 251, "children": [], "start_point": {"row": 112, "column": 20}, "end_point": {"row": 112, "column": 25}}, {"id": 253, "type": "ERROR", "text": "i", "parent": 251, "children": [254], "start_point": {"row": 112, "column": 26}, "end_point": {"row": 112, "column": 27}}, {"id": 254, "type": "&", "text": "i", "parent": 253, "children": [], "start_point": {"row": 112, "column": 26}, "end_point": {"row": 112, "column": 27}}, {"id": 255, "type": "identifier", "text": "ons", "parent": 251, "children": [], "start_point": {"row": 112, "column": 27}, "end_point": {"row": 112, "column": 30}}, {"id": 256, "type": "parameter_declaration", "text": "ntree sort", "parent": 250, "children": [257, 258, 260], "start_point": {"row": 112, "column": 32}, "end_point": {"row": 112, "column": 42}}, {"id": 257, "type": "type_identifier", "text": "ntree", "parent": 256, "children": [], "start_point": {"row": 112, "column": 32}, "end_point": {"row": 112, "column": 37}}, {"id": 258, "type": "ERROR", "text": "s", "parent": 256, "children": [259], "start_point": {"row": 112, "column": 38}, "end_point": {"row": 112, "column": 39}}, {"id": 259, "type": "&", "text": "s", "parent": 258, "children": [], "start_point": {"row": 112, "column": 38}, "end_point": {"row": 112, "column": 39}}, {"id": 260, "type": "identifier", "text": "ort", "parent": 256, "children": [], "start_point": {"row": 112, "column": 39}, "end_point": {"row": 112, "column": 42}}, {"id": 261, "type": "ERROR", "text": "\n friend ostream &operator<<", "parent": 33, "children": [262, 263], "start_point": {"row": 115, "column": 2}, "end_point": {"row": 115, "column": 31}}, {"id": 262, "type": "primitive_type", "text": "\n f", "parent": 261, "children": [], "start_point": {"row": 115, "column": 2}, "end_point": {"row": 115, "column": 6}}, {"id": 263, "type": "function_declarator", "text": "iend ostream &operator<<", "parent": 261, "children": [264, 265, 271], "start_point": {"row": 115, "column": 7}, "end_point": {"row": 115, "column": 31}}, {"id": 264, "type": "identifier", "text": "iend ", "parent": 263, "children": [], "start_point": {"row": 115, "column": 7}, "end_point": {"row": 115, "column": 12}}, {"id": 265, "type": "parameter_list", "text": "ostream &oper", "parent": 263, "children": [266], "start_point": {"row": 115, "column": 12}, "end_point": {"row": 115, "column": 25}}, {"id": 266, "type": "parameter_declaration", "text": "stream &ope", "parent": 265, "children": [267, 268, 270], "start_point": {"row": 115, "column": 13}, "end_point": {"row": 115, "column": 24}}, {"id": 267, "type": "type_identifier", "text": "stream ", "parent": 266, "children": [], "start_point": {"row": 115, "column": 13}, "end_point": {"row": 115, "column": 20}}, {"id": 268, "type": "ERROR", "text": "o", "parent": 266, "children": [269], "start_point": {"row": 115, "column": 21}, "end_point": {"row": 115, "column": 22}}, {"id": 269, "type": "&", "text": "o", "parent": 268, "children": [], "start_point": {"row": 115, "column": 21}, "end_point": {"row": 115, "column": 22}}, {"id": 270, "type": "identifier", "text": "pe", "parent": 266, "children": [], "start_point": {"row": 115, "column": 22}, "end_point": {"row": 115, "column": 24}}, {"id": 271, "type": "identifier", "text": "tor<<", "parent": 263, "children": [], "start_point": {"row": 115, "column": 26}, "end_point": {"row": 115, "column": 31}}, {"id": 272, "type": "declaration", "text": "ream &os, Doma", "parent": 33, "children": [273, 274], "start_point": {"row": 116, "column": 2}, "end_point": {"row": 116, "column": 16}}, {"id": 273, "type": "type_identifier", "text": "ream &", "parent": 272, "children": [], "start_point": {"row": 116, "column": 2}, "end_point": {"row": 116, "column": 8}}, {"id": 274, "type": "identifier", "text": "s, Doma", "parent": 272, "children": [], "start_point": {"row": 116, "column": 9}, "end_point": {"row": 116, "column": 16}}, {"id": 275, "type": "binary_expression", "text": "n &dom);\n void readData(ifstream &pf", "parent": 33, "children": [276, 279, 280], "start_point": {"row": 116, "column": 17}, "end_point": {"row": 116, "column": 54}}, {"id": 276, "type": "pointer_expression", "text": "n &dom);\n", "parent": 275, "children": [277, 278], "start_point": {"row": 116, "column": 17}, "end_point": {"row": 116, "column": 26}}, {"id": 277, "type": "&", "text": "n", "parent": 276, "children": [], "start_point": {"row": 116, "column": 17}, "end_point": {"row": 116, "column": 18}}, {"id": 278, "type": "identifier", "text": " &dom);\n", "parent": 276, "children": [], "start_point": {"row": 116, "column": 18}, "end_point": {"row": 116, "column": 26}}, {"id": 279, "type": "<<", "text": " ", "parent": 275, "children": [], "start_point": {"row": 116, "column": 26}, "end_point": {"row": 116, "column": 28}}, {"id": 280, "type": "parenthesized_expression", "text": "void readData(ifstream &pf", "parent": 275, "children": [281], "start_point": {"row": 116, "column": 28}, "end_point": {"row": 116, "column": 54}}, {"id": 281, "type": "comma_expression", "text": "oid readData(ifstream &p", "parent": 280, "children": [282, 286], "start_point": {"row": 116, "column": 29}, "end_point": {"row": 116, "column": 53}}, {"id": 282, "type": "binary_expression", "text": "oid readDat", "parent": 281, "children": [283, 284, 285], "start_point": {"row": 116, "column": 29}, "end_point": {"row": 116, "column": 40}}, {"id": 283, "type": "identifier", "text": "oid rea", "parent": 282, "children": [], "start_point": {"row": 116, "column": 29}, "end_point": {"row": 116, "column": 36}}, {"id": 284, "type": "&", "text": "D", "parent": 282, "children": [], "start_point": {"row": 116, "column": 37}, "end_point": {"row": 116, "column": 38}}, {"id": 285, "type": "identifier", "text": "at", "parent": 282, "children": [], "start_point": {"row": 116, "column": 38}, "end_point": {"row": 116, "column": 40}}, {"id": 286, "type": "binary_expression", "text": "ifstream &p", "parent": 281, "children": [287, 288, 289], "start_point": {"row": 116, "column": 42}, "end_point": {"row": 116, "column": 53}}, {"id": 287, "type": "identifier", "text": "ifstre", "parent": 286, "children": [], "start_point": {"row": 116, "column": 42}, "end_point": {"row": 116, "column": 48}}, {"id": 288, "type": "&", "text": "m", "parent": 286, "children": [], "start_point": {"row": 116, "column": 49}, "end_point": {"row": 116, "column": 50}}, {"id": 289, "type": "identifier", "text": " &p", "parent": 286, "children": [], "start_point": {"row": 116, "column": 50}, "end_point": {"row": 116, "column": 53}}, {"id": 290, "type": "declaration", "text": ";\n Real getReadTimeData(ifstre", "parent": 33, "children": [291], "start_point": {"row": 117, "column": 2}, "end_point": {"row": 117, "column": 33}}, {"id": 291, "type": "function_declarator", "text": "eal getReadTimeData(ifstr", "parent": 290, "children": [292, 293], "start_point": {"row": 117, "column": 7}, "end_point": {"row": 117, "column": 32}}, {"id": 292, "type": "identifier", "text": "eal getR", "parent": 291, "children": [], "start_point": {"row": 117, "column": 7}, "end_point": {"row": 117, "column": 15}}, {"id": 293, "type": "parameter_list", "text": "eadTimeData(ifstr", "parent": 291, "children": [294], "start_point": {"row": 117, "column": 15}, "end_point": {"row": 117, "column": 32}}, {"id": 294, "type": "parameter_declaration", "text": "adTimeData(ifst", "parent": 293, "children": [295, 296, 298], "start_point": {"row": 117, "column": 16}, "end_point": {"row": 117, "column": 31}}, {"id": 295, "type": "type_identifier", "text": "adTimeDa", "parent": 294, "children": [], "start_point": {"row": 117, "column": 16}, "end_point": {"row": 117, "column": 24}}, {"id": 296, "type": "ERROR", "text": "a", "parent": 294, "children": [297], "start_point": {"row": 117, "column": 25}, "end_point": {"row": 117, "column": 26}}, {"id": 297, "type": "&", "text": "a", "parent": 296, "children": [], "start_point": {"row": 117, "column": 25}, "end_point": {"row": 117, "column": 26}}, {"id": 298, "type": "identifier", "text": "(ifst", "parent": 294, "children": [], "start_point": {"row": 117, "column": 26}, "end_point": {"row": 117, "column": 31}}, {"id": 299, "type": "declaration", "text": "&pfile);\n void writeData(ofstream &pf", "parent": 33, "children": [300, 301], "start_point": {"row": 118, "column": 2}, "end_point": {"row": 118, "column": 40}}, {"id": 300, "type": "type_identifier", "text": "&pfi", "parent": 299, "children": [], "start_point": {"row": 118, "column": 2}, "end_point": {"row": 118, "column": 6}}, {"id": 301, "type": "function_declarator", "text": "e);\n void writeData(ofstream &p", "parent": 299, "children": [302, 303], "start_point": {"row": 118, "column": 7}, "end_point": {"row": 118, "column": 39}}, {"id": 302, "type": "identifier", "text": "e);\n void writ", "parent": 301, "children": [], "start_point": {"row": 118, "column": 7}, "end_point": {"row": 118, "column": 22}}, {"id": 303, "type": "parameter_list", "text": "eData(ofstream &p", "parent": 301, "children": [304], "start_point": {"row": 118, "column": 22}, "end_point": {"row": 118, "column": 39}}, {"id": 304, "type": "parameter_declaration", "text": "Data(ofstream &", "parent": 303, "children": [305, 306, 308], "start_point": {"row": 118, "column": 23}, "end_point": {"row": 118, "column": 38}}, {"id": 305, "type": "type_identifier", "text": "Data(ofs", "parent": 304, "children": [], "start_point": {"row": 118, "column": 23}, "end_point": {"row": 118, "column": 31}}, {"id": 306, "type": "ERROR", "text": "r", "parent": 304, "children": [307], "start_point": {"row": 118, "column": 32}, "end_point": {"row": 118, "column": 33}}, {"id": 307, "type": "&", "text": "r", "parent": 306, "children": [], "start_point": {"row": 118, "column": 32}, "end_point": {"row": 118, "column": 33}}, {"id": 308, "type": "identifier", "text": "eam &", "parent": 304, "children": [], "start_point": {"row": 118, "column": 33}, "end_point": {"row": 118, "column": 38}}, {"id": 309, "type": "declaration", "text": ");\n\n // m\ufffdthodes li\ufffdes \ufffd la lec", "parent": 33, "children": [310, 311], "start_point": {"row": 119, "column": 2}, "end_point": {"row": 119, "column": 34}}, {"id": 310, "type": "primitive_type", "text": ");\n\n", "parent": 309, "children": [], "start_point": {"row": 119, "column": 2}, "end_point": {"row": 119, "column": 6}}, {"id": 311, "type": "function_declarator", "text": " // m\ufffdthodes li\ufffdes \ufffd la le", "parent": 309, "children": [312, 313], "start_point": {"row": 119, "column": 7}, "end_point": {"row": 119, "column": 33}}, {"id": 312, "type": "identifier", "text": " // m\ufffdtho", "parent": 311, "children": [], "start_point": {"row": 119, "column": 7}, "end_point": {"row": 119, "column": 16}}, {"id": 313, "type": "parameter_list", "text": "des li\ufffdes \ufffd la le", "parent": 311, "children": [314], "start_point": {"row": 119, "column": 16}, "end_point": {"row": 119, "column": 33}}, {"id": 314, "type": "parameter_declaration", "text": "es li\ufffdes \ufffd la l", "parent": 313, "children": [315, 316, 318], "start_point": {"row": 119, "column": 17}, "end_point": {"row": 119, "column": 32}}, {"id": 315, "type": "type_identifier", "text": "es li\ufffdes", "parent": 314, "children": [], "start_point": {"row": 119, "column": 17}, "end_point": {"row": 119, "column": 25}}, {"id": 316, "type": "ERROR", "text": "\ufffd", "parent": 314, "children": [317], "start_point": {"row": 119, "column": 26}, "end_point": {"row": 119, "column": 27}}, {"id": 317, "type": "&", "text": "\ufffd", "parent": 316, "children": [], "start_point": {"row": 119, "column": 26}, "end_point": {"row": 119, "column": 27}}, {"id": 318, "type": "identifier", "text": " la l", "parent": 314, "children": [], "start_point": {"row": 119, "column": 27}, "end_point": {"row": 119, "column": 32}}, {"id": 319, "type": "declaration", "text": "Real);\n Node *getNodeByNumber(Indice);\n ", "parent": 33, "children": [320, 321], "start_point": {"row": 122, "column": 2}, "end_point": {"row": 122, "column": 44}}, {"id": 320, "type": "primitive_type", "text": "Real", "parent": 319, "children": [], "start_point": {"row": 122, "column": 2}, "end_point": {"row": 122, "column": 6}}, {"id": 321, "type": "function_declarator", "text": ";\n Node *getNodeByNumber(Indice);\n ", "parent": 319, "children": [322, 323], "start_point": {"row": 122, "column": 7}, "end_point": {"row": 122, "column": 43}}, {"id": 322, "type": "identifier", "text": ";\n Node *", "parent": 321, "children": [], "start_point": {"row": 122, "column": 7}, "end_point": {"row": 122, "column": 17}}, {"id": 323, "type": "parameter_list", "text": "getNodeByNumber(Indice);\n ", "parent": 321, "children": [324, 326, 328, 330], "start_point": {"row": 122, "column": 17}, "end_point": {"row": 122, "column": 43}}, {"id": 324, "type": "parameter_declaration", "text": "etNode", "parent": 323, "children": [325], "start_point": {"row": 122, "column": 18}, "end_point": {"row": 122, "column": 24}}, {"id": 325, "type": "type_identifier", "text": "etNode", "parent": 324, "children": [], "start_point": {"row": 122, "column": 18}, "end_point": {"row": 122, "column": 24}}, {"id": 326, "type": "parameter_declaration", "text": "Numb", "parent": 323, "children": [327], "start_point": {"row": 122, "column": 26}, "end_point": {"row": 122, "column": 30}}, {"id": 327, "type": "type_identifier", "text": "Numb", "parent": 326, "children": [], "start_point": {"row": 122, "column": 26}, "end_point": {"row": 122, "column": 30}}, {"id": 328, "type": "parameter_declaration", "text": "(Ind", "parent": 323, "children": [329], "start_point": {"row": 122, "column": 32}, "end_point": {"row": 122, "column": 36}}, {"id": 329, "type": "type_identifier", "text": "(Ind", "parent": 328, "children": [], "start_point": {"row": 122, "column": 32}, "end_point": {"row": 122, "column": 36}}, {"id": 330, "type": "parameter_declaration", "text": "e);\n", "parent": 323, "children": [331], "start_point": {"row": 122, "column": 38}, "end_point": {"row": 122, "column": 42}}, {"id": 331, "type": "type_identifier", "text": "e);\n", "parent": 330, "children": [], "start_point": {"row": 122, "column": 38}, "end_point": {"row": 122, "column": 42}}, {"id": 332, "type": "declaration", "text": "lean add(Node *pnd);\n Boolean", "parent": 33, "children": [333, 334], "start_point": {"row": 123, "column": 2}, "end_point": {"row": 123, "column": 32}}, {"id": 333, "type": "type_identifier", "text": "lean", "parent": 332, "children": [], "start_point": {"row": 123, "column": 2}, "end_point": {"row": 123, "column": 6}}, {"id": 334, "type": "pointer_declarator", "text": "add(Node *pnd);\n Boolea", "parent": 332, "children": [335, 336], "start_point": {"row": 123, "column": 7}, "end_point": {"row": 123, "column": 31}}, {"id": 335, "type": "*", "text": "a", "parent": 334, "children": [], "start_point": {"row": 123, "column": 7}, "end_point": {"row": 123, "column": 8}}, {"id": 336, "type": "function_declarator", "text": "dd(Node *pnd);\n Boolea", "parent": 334, "children": [337, 338], "start_point": {"row": 123, "column": 8}, "end_point": {"row": 123, "column": 31}}, {"id": 337, "type": "identifier", "text": "dd(Node *pnd);\n", "parent": 336, "children": [], "start_point": {"row": 123, "column": 8}, "end_point": {"row": 123, "column": 23}}, {"id": 338, "type": "parameter_list", "text": " Boolea", "parent": 336, "children": [339], "start_point": {"row": 123, "column": 23}, "end_point": {"row": 123, "column": 31}}, {"id": 339, "type": "parameter_declaration", "text": " Boole", "parent": 338, "children": [340], "start_point": {"row": 123, "column": 24}, "end_point": {"row": 123, "column": 30}}, {"id": 340, "type": "type_identifier", "text": " Boole", "parent": 339, "children": [], "start_point": {"row": 123, "column": 24}, "end_point": {"row": 123, "column": 30}}, {"id": 341, "type": "declaration", "text": "d(Element *pel);\n void", "parent": 33, "children": [342, 343], "start_point": {"row": 124, "column": 2}, "end_point": {"row": 124, "column": 25}}, {"id": 342, "type": "type_identifier", "text": "d(Eleme", "parent": 341, "children": [], "start_point": {"row": 124, "column": 2}, "end_point": {"row": 124, "column": 9}}, {"id": 343, "type": "function_declarator", "text": "t *pel);\n voi", "parent": 341, "children": [344, 345], "start_point": {"row": 124, "column": 10}, "end_point": {"row": 124, "column": 24}}, {"id": 344, "type": "identifier", "text": "t *", "parent": 343, "children": [], "start_point": {"row": 124, "column": 10}, "end_point": {"row": 124, "column": 13}}, {"id": 345, "type": "parameter_list", "text": "pel);\n voi", "parent": 343, "children": [346], "start_point": {"row": 124, "column": 13}, "end_point": {"row": 124, "column": 24}}, {"id": 346, "type": "parameter_declaration", "text": "el);\n vo", "parent": 345, "children": [347, 348], "start_point": {"row": 124, "column": 14}, "end_point": {"row": 124, "column": 23}}, {"id": 347, "type": "type_identifier", "text": "el);", "parent": 346, "children": [], "start_point": {"row": 124, "column": 14}, "end_point": {"row": 124, "column": 18}}, {"id": 348, "type": "pointer_declarator", "text": " vo", "parent": 346, "children": [349, 350], "start_point": {"row": 124, "column": 19}, "end_point": {"row": 124, "column": 23}}, {"id": 349, "type": "*", "text": " ", "parent": 348, "children": [], "start_point": {"row": 124, "column": 19}, "end_point": {"row": 124, "column": 20}}, {"id": 350, "type": "identifier", "text": " vo", "parent": 348, "children": [], "start_point": {"row": 124, "column": 20}, "end_point": {"row": 124, "column": 23}}, {"id": 351, "type": "declaration", "text": "eateElement(Element *pel, ", "parent": 33, "children": [352, 353], "start_point": {"row": 125, "column": 2}, "end_point": {"row": 125, "column": 28}}, {"id": 352, "type": "type_identifier", "text": "eateEle", "parent": 351, "children": [], "start_point": {"row": 125, "column": 2}, "end_point": {"row": 125, "column": 9}}, {"id": 353, "type": "function_declarator", "text": "ent(Element *pel,", "parent": 351, "children": [354, 355], "start_point": {"row": 125, "column": 10}, "end_point": {"row": 125, "column": 27}}, {"id": 354, "type": "identifier", "text": "ent", "parent": 353, "children": [], "start_point": {"row": 125, "column": 10}, "end_point": {"row": 125, "column": 13}}, {"id": 355, "type": "parameter_list", "text": "(Element *pel,", "parent": 353, "children": [356], "start_point": {"row": 125, "column": 13}, "end_point": {"row": 125, "column": 27}}, {"id": 356, "type": "parameter_declaration", "text": "Element *pel", "parent": 355, "children": [357, 358], "start_point": {"row": 125, "column": 14}, "end_point": {"row": 125, "column": 26}}, {"id": 357, "type": "type_identifier", "text": "Element", "parent": 356, "children": [], "start_point": {"row": 125, "column": 14}, "end_point": {"row": 125, "column": 21}}, {"id": 358, "type": "pointer_declarator", "text": "*pel", "parent": 356, "children": [359, 360], "start_point": {"row": 125, "column": 22}, "end_point": {"row": 125, "column": 26}}, {"id": 359, "type": "*", "text": "*", "parent": 358, "children": [], "start_point": {"row": 125, "column": 22}, "end_point": {"row": 125, "column": 23}}, {"id": 360, "type": "identifier", "text": "pel", "parent": 358, "children": [], "start_point": {"row": 125, "column": 23}, "end_point": {"row": 125, "column": 26}}, {"id": 361, "type": "declaration", "text": "ice *nNodes);\n Real computeCourantTimeStep();\n\n ", "parent": 33, "children": [362, 363], "start_point": {"row": 126, "column": 2}, "end_point": {"row": 126, "column": 51}}, {"id": 362, "type": "primitive_type", "text": "ice ", "parent": 361, "children": [], "start_point": {"row": 126, "column": 2}, "end_point": {"row": 126, "column": 6}}, {"id": 363, "type": "function_declarator", "text": "nNodes);\n Real computeCourantTimeStep();\n\n", "parent": 361, "children": [364, 365], "start_point": {"row": 126, "column": 7}, "end_point": {"row": 126, "column": 50}}, {"id": 364, "type": "identifier", "text": "nNodes);\n Re", "parent": 363, "children": [], "start_point": {"row": 126, "column": 7}, "end_point": {"row": 126, "column": 20}}, {"id": 365, "type": "parameter_list", "text": "al computeCourantTimeStep();\n\n", "parent": 363, "children": [366, 371], "start_point": {"row": 126, "column": 20}, "end_point": {"row": 126, "column": 50}}, {"id": 366, "type": "parameter_declaration", "text": "l computeCou", "parent": 365, "children": [367, 368], "start_point": {"row": 126, "column": 21}, "end_point": {"row": 126, "column": 33}}, {"id": 367, "type": "type_identifier", "text": "l compu", "parent": 366, "children": [], "start_point": {"row": 126, "column": 21}, "end_point": {"row": 126, "column": 28}}, {"id": 368, "type": "pointer_declarator", "text": "eCou", "parent": 366, "children": [369, 370], "start_point": {"row": 126, "column": 29}, "end_point": {"row": 126, "column": 33}}, {"id": 369, "type": "*", "text": "e", "parent": 368, "children": [], "start_point": {"row": 126, "column": 29}, "end_point": {"row": 126, "column": 30}}, {"id": 370, "type": "identifier", "text": "Cou", "parent": 368, "children": [], "start_point": {"row": 126, "column": 30}, "end_point": {"row": 126, "column": 33}}, {"id": 371, "type": "parameter_declaration", "text": "ntTimeStep();\n", "parent": 365, "children": [372, 373], "start_point": {"row": 126, "column": 35}, "end_point": {"row": 126, "column": 49}}, {"id": 372, "type": "type_identifier", "text": "ntTime", "parent": 371, "children": [], "start_point": {"row": 126, "column": 35}, "end_point": {"row": 126, "column": 41}}, {"id": 373, "type": "pointer_declarator", "text": "tep();\n", "parent": 371, "children": [374, 375], "start_point": {"row": 126, "column": 42}, "end_point": {"row": 126, "column": 49}}, {"id": 374, "type": "*", "text": "t", "parent": 373, "children": [], "start_point": {"row": 126, "column": 42}, "end_point": {"row": 126, "column": 43}}, {"id": 375, "type": "identifier", "text": "ep();\n", "parent": 373, "children": [], "start_point": {"row": 126, "column": 43}, "end_point": {"row": 126, "column": 49}}, {"id": 376, "type": "declaration", "text": " direct implementation\n Indic", "parent": 33, "children": [377, 378], "start_point": {"row": 127, "column": 2}, "end_point": {"row": 127, "column": 32}}, {"id": 377, "type": "type_identifier", "text": " dir", "parent": 376, "children": [], "start_point": {"row": 127, "column": 2}, "end_point": {"row": 127, "column": 6}}, {"id": 378, "type": "function_declarator", "text": "ct implementation\n Indi", "parent": 376, "children": [379, 380], "start_point": {"row": 127, "column": 7}, "end_point": {"row": 127, "column": 31}}, {"id": 379, "type": "identifier", "text": "ct implementation\n In", "parent": 378, "children": [], "start_point": {"row": 127, "column": 7}, "end_point": {"row": 127, "column": 29}}, {"id": 380, "type": "parameter_list", "text": "di", "parent": 378, "children": [], "start_point": {"row": 127, "column": 29}, "end_point": {"row": 127, "column": 31}}, {"id": 381, "type": "function_definition", "text": "urn dimension; } //!< Dimension topologique de la gr", "parent": 33, "children": [382, 383], "start_point": {"row": 130, "column": 2}, "end_point": {"row": 130, "column": 54}}, {"id": 382, "type": "type_identifier", "text": "urn di", "parent": 381, "children": [], "start_point": {"row": 130, "column": 2}, "end_point": {"row": 130, "column": 8}}, {"id": 383, "type": "function_declarator", "text": "ension; } //!< Dimensio", "parent": 381, "children": [384, 385], "start_point": {"row": 130, "column": 9}, "end_point": {"row": 130, "column": 32}}, {"id": 384, "type": "identifier", "text": "ension; } //!< Dimens", "parent": 383, "children": [], "start_point": {"row": 130, "column": 9}, "end_point": {"row": 130, "column": 30}}, {"id": 385, "type": "parameter_list", "text": "io", "parent": 383, "children": [], "start_point": {"row": 130, "column": 30}, "end_point": {"row": 130, "column": 32}}, {"id": 386, "type": "return_statement", "text": "opologique de la ", "parent": 381, "children": [387], "start_point": {"row": 130, "column": 35}, "end_point": {"row": 130, "column": 52}}, {"id": 387, "type": "identifier", "text": "que de la", "parent": 386, "children": [], "start_point": {"row": 130, "column": 42}, "end_point": {"row": 130, "column": 51}}, {"id": 388, "type": "function_definition", "text": "---------------------------------------------------------------------------\n{\n return numberOfDim;\n}\n\n#endif\n", "parent": 0, "children": [389, 391, 392, 395], "start_point": {"row": 134, "column": 0}, "end_point": {"row": 139, "column": 1}}, {"id": 389, "type": "storage_class_specifier", "text": "------", "parent": 388, "children": [390], "start_point": {"row": 134, "column": 0}, "end_point": {"row": 134, "column": 6}}, {"id": 390, "type": "inline", "text": "------", "parent": 389, "children": [], "start_point": {"row": 134, "column": 0}, "end_point": {"row": 134, "column": 6}}, {"id": 391, "type": "type_identifier", "text": "------", "parent": 388, "children": [], "start_point": {"row": 134, "column": 7}, "end_point": {"row": 134, "column": 13}}, {"id": 392, "type": "ERROR", "text": "----------", "parent": 388, "children": [393, 394], "start_point": {"row": 134, "column": 14}, "end_point": {"row": 135, "column": 8}}, {"id": 393, "type": "&", "text": "-", "parent": 392, "children": [], "start_point": {"row": 134, "column": 14}, "end_point": {"row": 134, "column": 15}}, {"id": 394, "type": "identifier", "text": "------", "parent": 392, "children": [], "start_point": {"row": 135, "column": 0}, "end_point": {"row": 135, "column": 6}}, {"id": 395, "type": "function_declarator", "text": "-------", "parent": 388, "children": [396, 397], "start_point": {"row": 135, "column": 8}, "end_point": {"row": 135, "column": 15}}, {"id": 396, "type": "identifier", "text": "-----", "parent": 395, "children": [], "start_point": {"row": 135, "column": 8}, "end_point": {"row": 135, "column": 13}}, {"id": 397, "type": "parameter_list", "text": "--", "parent": 395, "children": [], "start_point": {"row": 135, "column": 13}, "end_point": {"row": 135, "column": 15}}, {"id": 398, "type": "return_statement", "text": "", "parent": 388, "children": [399], "start_point": {"row": 138, "column": 2}, "end_point": {"row": 138, "column": 21}}, {"id": 399, "type": "identifier", "text": "", "parent": 398, "children": [], "start_point": {"row": 138, "column": 9}, "end_point": {"row": 138, "column": 20}}, {"id": 400, "type": "#endif", "text": "", "parent": 0, "children": [], "start_point": {"row": 141, "column": 0}, "end_point": {"row": 141, "column": 6}}]}, "node_categories": {"declarations": {"functions": [33, 147, 152, 156, 167, 172, 177, 188, 198, 203, 208, 213, 218, 222, 229, 234, 239, 243, 248, 263, 291, 301, 311, 321, 336, 343, 353, 363, 378, 381, 383, 388, 395], "variables": [9, 12, 15, 18, 21, 24, 27, 30, 38, 41, 44, 47, 52, 55, 58, 61, 64, 94, 99, 121, 145, 150, 155, 159, 165, 170, 175, 180, 185, 191, 197, 201, 206, 211, 216, 221, 225, 227, 232, 237, 241, 246, 251, 256, 266, 272, 290, 294, 299, 304, 309, 314, 319, 324, 326, 328, 330, 332, 339, 341, 346, 351, 356, 361, 366, 371, 376], "classes": [389], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [67, 68, 76, 77, 85, 86, 104, 105, 113, 114, 124, 135, 137, 140, 142, 275, 276, 280, 281, 282, 286], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 10, 11, 13, 14, 16, 17, 19, 20, 22, 23, 25, 26, 28, 29, 31, 32, 34, 35, 37, 39, 40, 42, 43, 45, 46, 48, 49, 51, 53, 54, 56, 57, 59, 60, 62, 63, 65, 66, 69, 71, 75, 78, 80, 84, 87, 89, 93, 95, 98, 100, 103, 106, 108, 112, 116, 120, 122, 123, 125, 127, 128, 130, 131, 134, 138, 141, 143, 146, 148, 151, 153, 157, 160, 162, 164, 166, 168, 173, 178, 181, 184, 186, 189, 192, 193, 199, 204, 209, 212, 214, 217, 219, 223, 226, 228, 230, 233, 235, 238, 240, 244, 249, 252, 255, 257, 260, 264, 267, 270, 271, 273, 274, 278, 283, 285, 287, 289, 292, 295, 298, 300, 302, 305, 308, 312, 315, 318, 322, 325, 327, 329, 331, 333, 337, 340, 342, 344, 347, 350, 352, 354, 357, 360, 364, 367, 370, 372, 375, 377, 379, 382, 384, 387, 391, 394, 396, 399, 400], "returns": [386, 398], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 195], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 33, "universal_type": "function", "name": "computeMassMatrix", "text_snippet": "\n\nprivate:\n Indice numberOfDim; //!< Dimension associ\ufffde au domaine\n Boolean massComputed; //!< F"}, {"node_id": 147, "universal_type": "function", "name": "unknown", "text_snippet": "Frequency()"}, {"node_id": 152, "universal_type": "function", "name": "unknown", "text_snippet": "computeMassMatrix(Boo"}, {"node_id": 156, "universal_type": "function", "name": "unknown", "text_snippet": "e = False);\n\n // gestion du temps\n Rea"}, {"node_id": 167, "universal_type": "function", "name": "unknown", "text_snippet": ";\n\n // i"}, {"node_id": 172, "universal_type": "function", "name": "addI", "text_snippet": "\n void addI"}, {"node_id": 177, "universal_type": "function", "name": "unknown", "text_snippet": ";\n // fonctions de calculs\n "}, {"node_id": 188, "universal_type": "function", "name": "unknown", "text_snippet": "id computeInterna"}, {"node_id": 198, "universal_type": "function", "name": "unknown", "text_snippet": "oid computeInternalForces"}, {"node_id": 203, "universal_type": "function", "name": "unknown", "text_snippet": "id transfertQuantities("}, {"node_id": 208, "universal_type": "function", "name": "unknown", "text_snippet": "getTotalMass();\n Rea"}, {"node_id": 213, "universal_type": "function", "name": "unknown", "text_snippet": "lKineticEnergy"}, {"node_id": 218, "universal_type": "function", "name": "unknown", "text_snippet": "d starterWrite(String n"}, {"node_id": 222, "universal_type": "function", "name": "unknown", "text_snippet": "eal getCurrentTime();\n R"}, {"node_id": 229, "universal_type": "function", "name": "unknown", "text_snippet": "meStep();\n Real"}, {"node_id": 234, "universal_type": "function", "name": "unknown", "text_snippet": "lveTime();\n "}, {"node_id": 239, "universal_type": "function", "name": "unknown", "text_snippet": "eHistoryFiles();\n"}, {"node_id": 243, "universal_type": "function", "name": "unknown", "text_snippet": "tGlobalBox(Vec3D &m"}, {"node_id": 248, "universal_type": "function", "name": "unknown", "text_snippet": " &max);\n\n // fonctions entree sorti"}, {"node_id": 263, "universal_type": "function", "name": "unknown", "text_snippet": "iend ostream &operator<<"}, {"node_id": 291, "universal_type": "function", "name": "unknown", "text_snippet": "eal getReadTimeData(ifstr"}, {"node_id": 301, "universal_type": "function", "name": "writeData", "text_snippet": "e);\n void writeData(ofstream &p"}, {"node_id": 311, "universal_type": "function", "name": "unknown", "text_snippet": " // m\ufffdthodes li\ufffdes \ufffd la le"}, {"node_id": 321, "universal_type": "function", "name": "unknown", "text_snippet": ";\n Node *getNodeByNumber(Indice);\n "}, {"node_id": 336, "universal_type": "function", "name": "unknown", "text_snippet": "dd(Node *pnd);\n Boolea"}, {"node_id": 343, "universal_type": "function", "name": "unknown", "text_snippet": "t *pel);\n voi"}, {"node_id": 353, "universal_type": "function", "name": "unknown", "text_snippet": "ent(Element *pel,"}, {"node_id": 363, "universal_type": "function", "name": "unknown", "text_snippet": "nNodes);\n Real computeCourantTimeStep();\n\n"}, {"node_id": 378, "universal_type": "function", "name": "unknown", "text_snippet": "ct implementation\n Indi"}, {"node_id": 381, "universal_type": "function", "name": "unknown", "text_snippet": "urn dimension; } //!< Dimension topologique de la gr"}, {"node_id": 383, "universal_type": "function", "name": "unknown", "text_snippet": "ension; } //!< Dimensio"}, {"node_id": 388, "universal_type": "function", "name": "unknown", "text_snippet": "---------------------------------------------------------------------------\n{\n return numberOfDim;\n"}, {"node_id": 395, "universal_type": "function", "name": "unknown", "text_snippet": "-------"}], "class_declarations": [{"node_id": 389, "universal_type": "class", "name": "unknown", "text_snippet": "------"}], "import_statements": [{"node_id": 6, "text": "upFemSolver.h>\nclass Doma"}, {"node_id": 7, "text": "upFemSol"}]}, "original_source_code": "/***************************************************************************\n * *\n * DynELA Project *\n * *\n * (c) Copyright 1997-2006 *\n * *\n * Equipe C.M.A.O *\n * Laboratoire Genie de production *\n * Ecole Nationale d'Ingenieurs de Tarbes *\n * BP 1629 - 65016 TARBES cedex *\n * *\n * *\n * Main Author: <NAME> *\n * *\n **************************************************************************/\n\n// begin date : 12/03/1997\n\n/*\n Class Domain definition\n*/\n\n#ifndef __Domain_h__\n#define __Domain_h__\n\n/*!\n \\file Domain.h\n \\brief fichier .h de d\ufffdfinition des domaines \ufffdl\ufffdments finis\n \\ingroup femSolver\n\n Ce fichier sert \ufffd la d\ufffdfinition de la classe Domain.\n\n \\author <NAME>\n \\version 0.9.4\n \\date 1997-2004\n*/\n\n#include <upFemSolver.h>\nclass Domain;\nclass Node;\nclass Element;\nclass Material;\nclass Interface;\nclass Times;\nclass HistoryFile;\nclass Solver;\n\n/*!\n \\class Domain Domain.h\n \\brief Classe de gestion et manipulation des domaines \ufffdl\ufffdments finis.\n \\ingroup femLibrary\n\n\n \\author <NAME>\n \\version 0.9.4\n \\date 1997-2004\n*/\n/** @dia:pos 199.8,6.8 */\nclass Domain\n{\n\nprivate:\n Indice numberOfDim; //!< Dimension associ\ufffde au domaine\n Boolean massComputed; //!< Flag indiquant que la matrice de masse est d\ufffdja calcul\ufffde\n Vector EV_TimeStep;\n Real fmax0;\n\npublic:\n String name; //!< Nom du domaine s'il existe\n MatrixDiag Mass; //!< Matrice de masse\n Vector Fint; //!< Vecteur des forces internes\n Real currentTime; //!< Temps actuel du domaine\n Real nextTime; //!< Temps actuel du domaine + increment de temps\n List<Solver *> solvers; //!<liste des solveurs associ\ufffds au domaine\n List<HistoryFile *> historyFiles; //!<liste des history files\n List<Interface *> interfaces; //!< Liste des interfaces de contact du domaine\n Solver *currentSolver; //!<Solveur courant associ\ufffd au domaine\n FILE *history_file; //!< Fichier historique associ\ufffd au domaine\n ListId<Node *> nodes; //!< Liste des noeuds de la grille\n ListId<Element *> elements; //!< Liste des \ufffdl\ufffdments de la grille\n Indice dimension; //!< Nombre de dimensions de la grille\n\n // constructeurs\n Domain();\n Domain(const Domain &dom);\n ~Domain();\n\n // fonctions membres\n Indice &NoDim();\n Boolean initSolve();\n Real getMaximumFrequency();\n void computeMassMatrix(Boolean force = False);\n\n // gestion du temps\n Real getTime();\n void updateTime();\n\n // interfaces\n void addInterface(Interface *inter);\n // fonctions de calculs\n Boolean solve(Real upTime = -1.);\n void computeInternalMatrices();\n void computeInternalForces();\n\n void transfertQuantities();\n Real getTotalMass();\n Real getTotalKineticEnergy();\n void starterWrite(String name);\n Real getCurrentTime();\n Real getTimeStep();\n Real getEndSolveTime();\n void writeHistoryFiles();\n void getGlobalBox(Vec3D &min, Vec3D &max);\n\n // fonctions entree sortie\n void print(ostream &os) const;\n friend ostream &operator<<(ostream &os, Domain &dom);\n void readData(ifstream &pfile);\n Real getReadTimeData(ifstream &pfile);\n void writeData(ofstream &pfile);\n\n // m\ufffdthodes li\ufffdes \ufffd la lecture des fichiers\n void createNode(Indice, Real, Real, Real);\n Node *getNodeByNumber(Indice);\n Boolean add(Node *pnd);\n Boolean add(Element *pel);\n void createElement(Element *pel, Indice *nNodes);\n Real computeCourantTimeStep();\n\n // direct implementation\n Indice getNumberOfDimensions() { return dimension; } //!< Dimension topologique de la grille\n};\n\n//-----------------------------------------------------------------------------\ninline Indice &\nDomain::NoDim()\n//-----------------------------------------------------------------------------\n{\n return numberOfDim;\n}\n\n#endif\n"}
80,297
c
#pragma once #ifndef STARDUST_I_NONCOPYABLE_H #define STARDUST_I_NONCOPYABLE_H namespace stardust { class INoncopyable { protected: INoncopyable() = default; INoncopyable(const INoncopyable&) = delete; INoncopyable& operator =(const INoncopyable&) = delete; ~INoncopyable() noexcept = default; }; } #endif
22.6
15
(translation_unit) "#pragma once\n#ifndef STARDUST_I_NONCOPYABLE_H\n#define STARDUST_I_NONCOPYABLE_H\n\nnamespace stardust\n{\n class INoncopyable\n {\n protected:\n INoncopyable() = default;\n\n INoncopyable(const INoncopyable&) = delete;\n INoncopyable& operator =(const INoncopyable&) = delete;\n\n ~INoncopyable() noexcept = default;\n };\n}\n\n#endif" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_ifdef) "#ifndef STARDUST_I_NONCOPYABLE_H\n#define STARDUST_I_NONCOPYABLE_H\n\nnamespace stardust\n{\n class INoncopyable\n {\n protected:\n INoncopyable() = default;\n\n INoncopyable(const INoncopyable&) = delete;\n INoncopyable& operator =(const INoncopyable&) = delete;\n\n ~INoncopyable() noexcept = default;\n };\n}\n\n#endif" (#ifndef) "#ifndef" (identifier) "STARDUST_I_NONCOPYABLE_H" (preproc_def) "#define STARDUST_I_NONCOPYABLE_H\n" (#define) "#define" (identifier) "STARDUST_I_NONCOPYABLE_H" (function_definition) "namespace stardust\n{\n class INoncopyable\n {\n protected:\n INoncopyable() = default;\n\n INoncopyable(const INoncopyable&) = delete;\n INoncopyable& operator =(const INoncopyable&) = delete;\n\n ~INoncopyable() noexcept = default;\n };\n}" (type_identifier) "namespace" (identifier) "stardust" (compound_statement) "{\n class INoncopyable\n {\n protected:\n INoncopyable() = default;\n\n INoncopyable(const INoncopyable&) = delete;\n INoncopyable& operator =(const INoncopyable&) = delete;\n\n ~INoncopyable() noexcept = default;\n };\n}" ({) "{" (function_definition) "class INoncopyable\n {\n protected:\n INoncopyable() = default;\n\n INoncopyable(const INoncopyable&) = delete;\n INoncopyable& operator =(const INoncopyable&) = delete;\n\n ~INoncopyable() noexcept = default;\n }" (type_identifier) "class" (identifier) "INoncopyable" (compound_statement) "{\n protected:\n INoncopyable() = default;\n\n INoncopyable(const INoncopyable&) = delete;\n INoncopyable& operator =(const INoncopyable&) = delete;\n\n ~INoncopyable() noexcept = default;\n }" ({) "{" (labeled_statement) "protected:\n INoncopyable() = default;" (statement_identifier) "protected" (:) ":" (expression_statement) "INoncopyable() = default;" (assignment_expression) "INoncopyable() = default" (call_expression) "INoncopyable()" (identifier) "INoncopyable" (argument_list) "()" (() "(" ()) ")" (=) "=" (identifier) "default" (;) ";" (declaration) "INoncopyable(const INoncopyable&) = delete;" (macro_type_specifier) "INoncopyable(const INoncopyable&)" (identifier) "INoncopyable" (() "(" (type_descriptor) "const INoncopyable" (type_qualifier) "const" (const) "const" (type_identifier) "INoncopyable" (ERROR) "&" (&) "&" ()) ")" (ERROR) "=" (=) "=" (identifier) "delete" (;) ";" (expression_statement) "INoncopyable& operator =(const INoncopyable&) = delete;" (binary_expression) "INoncopyable& operator =(const INoncopyable&) = delete" (identifier) "INoncopyable" (&) "&" (assignment_expression) "operator =(const INoncopyable&) = delete" (identifier) "operator" (=) "=" (cast_expression) "(const INoncopyable&) = delete" (() "(" (type_descriptor) "const INoncopyable" (type_qualifier) "const" (const) "const" (type_identifier) "INoncopyable" (ERROR) "&" (&) "&" ()) ")" (ERROR) "=" (=) "=" (identifier) "delete" (;) ";" (expression_statement) "~INoncopyable() noexcept = default;" (unary_expression) "~INoncopyable() noexcept = default" (~) "~" (assignment_expression) "INoncopyable() noexcept = default" (call_expression) "INoncopyable()" (identifier) "INoncopyable" (argument_list) "()" (() "(" ()) ")" (ERROR) "noexcept" (identifier) "noexcept" (=) "=" (identifier) "default" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (#endif) "#endif"
87
5
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 22.6, "nodes": 49, "errors": 0, "source_hash": "65f9dc5d534eb083f0e03529741be489f17ce16890fe44b68f05fe09895efb6c", "categorized_nodes": 31}, "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": "#ifndef STARDUST_I_NONCOPYABLE_H\n#define STARDUST_I_NONCOPYABLE_H\n\nnamespace stardust\n{\n class INoncopyable\n {\n protected:\n INoncopyable() = default;\n\n INoncopyable(const INoncopyable&) = delete;\n INoncopyable& operator =(const INoncopyable&) = delete;\n\n ~INoncopyable() noexcept = default;\n };\n}\n\n#endif", "parent": null, "children": [4, 5, 6, 9, 48], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 18, "column": 6}}, {"id": 4, "type": "#ifndef", "text": "#ifndef", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 5, "type": "identifier", "text": "STARDUST_I_NONCOPYABLE_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 32}}, {"id": 6, "type": "preproc_def", "text": "#define STARDUST_I_NONCOPYABLE_H\n", "parent": 3, "children": [7, 8], "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": "STARDUST_I_NONCOPYABLE_H", "parent": 6, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 32}}, {"id": 9, "type": "function_definition", "text": "namespace stardust\n{\n class INoncopyable\n {\n protected:\n INoncopyable() = default;\n\n INoncopyable(const INoncopyable&) = delete;\n INoncopyable& operator =(const INoncopyable&) = delete;\n\n ~INoncopyable() noexcept = default;\n };\n}", "parent": 3, "children": [10, 11], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 10, "type": "type_identifier", "text": "namespace", "parent": 9, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 9}}, {"id": 11, "type": "identifier", "text": "stardust", "parent": 9, "children": [], "start_point": {"row": 4, "column": 10}, "end_point": {"row": 4, "column": 18}}, {"id": 12, "type": "function_definition", "text": "class INoncopyable\n {\n protected:\n INoncopyable() = default;\n\n INoncopyable(const INoncopyable&) = delete;\n INoncopyable& operator =(const INoncopyable&) = delete;\n\n ~INoncopyable() noexcept = default;\n }", "parent": 9, "children": [13], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 15, "column": 5}}, {"id": 13, "type": "identifier", "text": "INoncopyable", "parent": 12, "children": [], "start_point": {"row": 6, "column": 10}, "end_point": {"row": 6, "column": 22}}, {"id": 14, "type": "labeled_statement", "text": "protected:\n INoncopyable() = default;", "parent": 12, "children": [], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 9, "column": 33}}, {"id": 15, "type": "assignment_expression", "text": "INoncopyable() = default", "parent": 14, "children": [16, 19, 20], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 32}}, {"id": 16, "type": "call_expression", "text": "INoncopyable()", "parent": 15, "children": [17, 18], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 22}}, {"id": 17, "type": "identifier", "text": "INoncopyable", "parent": 16, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 20}}, {"id": 18, "type": "argument_list", "text": "()", "parent": 16, "children": [], "start_point": {"row": 9, "column": 20}, "end_point": {"row": 9, "column": 22}}, {"id": 19, "type": "=", "text": "=", "parent": 15, "children": [], "start_point": {"row": 9, "column": 23}, "end_point": {"row": 9, "column": 24}}, {"id": 20, "type": "identifier", "text": "default", "parent": 15, "children": [], "start_point": {"row": 9, "column": 25}, "end_point": {"row": 9, "column": 32}}, {"id": 21, "type": "declaration", "text": "INoncopyable(const INoncopyable&) = delete;", "parent": 12, "children": [22, 26], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 51}}, {"id": 22, "type": "macro_type_specifier", "text": "INoncopyable(const INoncopyable&)", "parent": 21, "children": [23, 24], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 41}}, {"id": 23, "type": "identifier", "text": "INoncopyable", "parent": 22, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 20}}, {"id": 24, "type": "type_descriptor", "text": "const INoncopyable", "parent": 22, "children": [25], "start_point": {"row": 11, "column": 21}, "end_point": {"row": 11, "column": 39}}, {"id": 25, "type": "type_identifier", "text": "INoncopyable", "parent": 24, "children": [], "start_point": {"row": 11, "column": 27}, "end_point": {"row": 11, "column": 39}}, {"id": 26, "type": "ERROR", "text": "=", "parent": 21, "children": [27], "start_point": {"row": 11, "column": 42}, "end_point": {"row": 11, "column": 43}}, {"id": 27, "type": "=", "text": "=", "parent": 26, "children": [], "start_point": {"row": 11, "column": 42}, "end_point": {"row": 11, "column": 43}}, {"id": 28, "type": "binary_expression", "text": "INoncopyable& operator =(const INoncopyable&) = delete", "parent": 12, "children": [29, 30], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 62}}, {"id": 29, "type": "identifier", "text": "INoncopyable", "parent": 28, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 20}}, {"id": 30, "type": "assignment_expression", "text": "operator =(const INoncopyable&) = delete", "parent": 28, "children": [31, 32, 33], "start_point": {"row": 12, "column": 22}, "end_point": {"row": 12, "column": 62}}, {"id": 31, "type": "identifier", "text": "operator", "parent": 30, "children": [], "start_point": {"row": 12, "column": 22}, "end_point": {"row": 12, "column": 30}}, {"id": 32, "type": "=", "text": "=", "parent": 30, "children": [], "start_point": {"row": 12, "column": 31}, "end_point": {"row": 12, "column": 32}}, {"id": 33, "type": "cast_expression", "text": "(const INoncopyable&) = delete", "parent": 30, "children": [34, 36], "start_point": {"row": 12, "column": 32}, "end_point": {"row": 12, "column": 62}}, {"id": 34, "type": "type_descriptor", "text": "const INoncopyable", "parent": 33, "children": [35], "start_point": {"row": 12, "column": 33}, "end_point": {"row": 12, "column": 51}}, {"id": 35, "type": "type_identifier", "text": "INoncopyable", "parent": 34, "children": [], "start_point": {"row": 12, "column": 39}, "end_point": {"row": 12, "column": 51}}, {"id": 36, "type": "ERROR", "text": "=", "parent": 33, "children": [37], "start_point": {"row": 12, "column": 54}, "end_point": {"row": 12, "column": 55}}, {"id": 37, "type": "=", "text": "=", "parent": 36, "children": [], "start_point": {"row": 12, "column": 54}, "end_point": {"row": 12, "column": 55}}, {"id": 38, "type": "unary_expression", "text": "~INoncopyable() noexcept = default", "parent": 12, "children": [39, 40], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 42}}, {"id": 39, "type": "~", "text": "~", "parent": 38, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 9}}, {"id": 40, "type": "assignment_expression", "text": "INoncopyable() noexcept = default", "parent": 38, "children": [41, 44, 46, 47], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 42}}, {"id": 41, "type": "call_expression", "text": "INoncopyable()", "parent": 40, "children": [42, 43], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 23}}, {"id": 42, "type": "identifier", "text": "INoncopyable", "parent": 41, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 21}}, {"id": 43, "type": "argument_list", "text": "()", "parent": 41, "children": [], "start_point": {"row": 14, "column": 21}, "end_point": {"row": 14, "column": 23}}, {"id": 44, "type": "ERROR", "text": "noexcept", "parent": 40, "children": [45], "start_point": {"row": 14, "column": 24}, "end_point": {"row": 14, "column": 32}}, {"id": 45, "type": "identifier", "text": "noexcept", "parent": 44, "children": [], "start_point": {"row": 14, "column": 24}, "end_point": {"row": 14, "column": 32}}, {"id": 46, "type": "=", "text": "=", "parent": 40, "children": [], "start_point": {"row": 14, "column": 33}, "end_point": {"row": 14, "column": 34}}, {"id": 47, "type": "identifier", "text": "default", "parent": 40, "children": [], "start_point": {"row": 14, "column": 35}, "end_point": {"row": 14, "column": 42}}, {"id": 48, "type": "#endif", "text": "#endif", "parent": 3, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 6}}]}, "node_categories": {"declarations": {"functions": [9, 12], "variables": [21], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [16, 28, 33, 38, 41], "assignments": [15, 30, 40], "loops": [], "conditionals": [3, 4, 5, 8, 10, 11, 13, 17, 20, 22, 23, 25, 29, 31, 35, 42, 45, 47, 48], "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": "INoncopyable", "text_snippet": "namespace stardust\n{\n class INoncopyable\n {\n protected:\n INoncopyable() = default;\n\n"}, {"node_id": 12, "universal_type": "function", "name": "INoncopyable", "text_snippet": "class INoncopyable\n {\n protected:\n INoncopyable() = default;\n\n INoncopyable(cons"}], "class_declarations": [], "import_statements": []}, "original_source_code": "#pragma once\n#ifndef STARDUST_I_NONCOPYABLE_H\n#define STARDUST_I_NONCOPYABLE_H\n\nnamespace stardust\n{\n class INoncopyable\n {\n protected:\n INoncopyable() = default;\n\n INoncopyable(const INoncopyable&) = delete;\n INoncopyable& operator =(const INoncopyable&) = delete;\n\n ~INoncopyable() noexcept = default;\n };\n}\n\n#endif"}
80,298
c
// // Created by xvzezi on 2019/3/25. // #ifndef HELLOCLION_QXHEADER_H #define HELLOCLION_QXHEADER_H #include "qxworld.h" #endif //HELLOCLION_QXHEADER_H
20.86
7
(translation_unit) "//\n// Created by xvzezi on 2019/3/25.\n//\n\n#ifndef HELLOCLION_QXHEADER_H\n#define HELLOCLION_QXHEADER_H\n\n#include "qxworld.h"\n\n#endif //HELLOCLION_QXHEADER_H\n" (comment) "//" (comment) "// Created by xvzezi on 2019/3/25." (comment) "//" (preproc_ifdef) "#ifndef HELLOCLION_QXHEADER_H\n#define HELLOCLION_QXHEADER_H\n\n#include "qxworld.h"\n\n#endif" (#ifndef) "#ifndef" (identifier) "HELLOCLION_QXHEADER_H" (preproc_def) "#define HELLOCLION_QXHEADER_H\n" (#define) "#define" (identifier) "HELLOCLION_QXHEADER_H" (preproc_include) "#include "qxworld.h"\n" (#include) "#include" (string_literal) ""qxworld.h"" (") """ (string_content) "qxworld.h" (") """ (#endif) "#endif" (comment) "//HELLOCLION_QXHEADER_H"
18
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 20.86, "nodes": 10, "errors": 0, "source_hash": "aa7a34c891842ce312a4f6059b030aab1e3a0770fae18840a7c60878e8c37223", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef HELLOCLION_QXHEADER_H\n#define HELLOCLION_QXHEADER_H\n\n#include \"qxworld.h\"\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 9, "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": "HELLOCLION_QXHEADER_H", "parent": 0, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 29}}, {"id": 3, "type": "preproc_def", "text": "#define HELLOCLION_QXHEADER_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": "HELLOCLION_QXHEADER_H", "parent": 3, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 29}}, {"id": 6, "type": "preproc_include", "text": "#include \"qxworld.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": "string_literal", "text": "\"qxworld.h\"", "parent": 6, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 20}}, {"id": 9, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "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 \"qxworld.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "//\n// Created by xvzezi on 2019/3/25.\n//\n\n#ifndef HELLOCLION_QXHEADER_H\n#define HELLOCLION_QXHEADER_H\n\n#include \"qxworld.h\"\n\n#endif //HELLOCLION_QXHEADER_H\n"}
80,299